issues-reporter-plugin 0.1.2

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,413 @@
1
+ (function(st,Rt){typeof exports=="object"&&typeof module!="undefined"?Rt(exports):typeof define=="function"&&define.amd?define(["exports"],Rt):(st=typeof globalThis!="undefined"?globalThis:st||self,Rt(st.IssuesReporter={}))})(this,function(st){"use strict";var vX=Object.defineProperty,wX=Object.defineProperties;var yX=Object.getOwnPropertyDescriptors;var lF=Object.getOwnPropertySymbols;var bX=Object.prototype.hasOwnProperty,BX=Object.prototype.propertyIsEnumerable;var uF=Math.pow,Kw=(st,Rt,Wr)=>Rt in st?vX(st,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Wr}):st[Rt]=Wr,St=(st,Rt)=>{for(var Wr in Rt||(Rt={}))bX.call(Rt,Wr)&&Kw(st,Wr,Rt[Wr]);if(lF)for(var Wr of lF(Rt))BX.call(Rt,Wr)&&Kw(st,Wr,Rt[Wr]);return st},Yn=(st,Rt)=>wX(st,yX(Rt));var Ee=(st,Rt,Wr)=>Kw(st,typeof Rt!="symbol"?Rt+"":Rt,Wr);var je=(st,Rt,Wr)=>new Promise((ku,Pu)=>{var bd=Yi=>{try{Us(Wr.next(Yi))}catch(Oa){Pu(Oa)}},Du=Yi=>{try{Us(Wr.throw(Yi))}catch(Oa){Pu(Oa)}},Us=Yi=>Yi.done?ku(Yi.value):Promise.resolve(Yi.value).then(bd,Du);Us((Wr=Wr.apply(st,Rt)).next())});class Rt{constructor(){Ee(this,"defaultSuccessCodes",["0","200","A000","0000","10000"]);Ee(this,"defaultCodeFields",["code","resultCode","errorCode","errCode","status"])}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,t)?{type:"http-error",severity:"major",businessCode:this.getBusinessCode(e,t),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 i,A;if(!t)return!1;const n=((i=e.config)==null?void 0:i.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,t),s=t.businessCodes.map(String);if(a&&s.includes(a))return!0}if(t.methods&&t.methods.length>0){const a=(((A=e.config)==null?void 0:A.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("[IssuesReporter] 自定义过滤函数执行失败:",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,i;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"))||((i=e.message)==null?void 0:i.includes("网络")))}isHttpError(e){const t=this.getHttpStatus(e);return!!t&&t>=400}isBusinessError(e,t){const n=this.getBusinessCode(e,t);return n?!((t==null?void 0:t.successCodes)||this.defaultSuccessCodes).includes(String(n)):!1}getHttpStatus(e){var t;return((t=e.response)==null?void 0:t.status)||e.status||e.httpStatus}getBusinessCode(e,t){var A;if((e==null?void 0:e.code)!==void 0)return String(e.code);const n=((A=e==null?void 0:e.response)==null?void 0:A.data)||(e==null?void 0:e.data)||(e==null?void 0:e.body);if(!n)return;const i=t!=null&&t.businessCodeField?Array.isArray(t.businessCodeField)?t.businessCodeField:[t.businessCodeField]:this.defaultCodeFields;for(const a of i){const s=n[a];if(s!==void 0)return String(s)}}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 i=t.message||t.msg||t.errorMsg||t.error||t.errorMessage;if(i)return i}return e.message?e.message:e.statusText?e.statusText:"服务器错误"}extractBusinessErrorMessage(e){var i;if(e!=null&&e.message)return e.message;const t=((i=e==null?void 0:e.response)==null?void 0:i.data)||(e==null?void 0:e.data)||(e==null?void 0: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)||"业务处理失败"}classifyJsError(e){var n;return{type:"js-error",severity:"critical",errorMessage:(e==null?void 0:e.message)||((n=e==null?void 0:e.reason)==null?void 0:n.message)||String(e)||"JS 运行时错误",isIgnored:!1}}classifyVueError(e,t){const n=(e==null?void 0:e.message)||String(e)||"Vue 组件错误";return{type:"vue-error",severity:"critical",errorMessage:`${(t==null?void 0:t.componentName)||"未知组件"}: ${n}`,isIgnored:!1}}classifyPromiseError(e){return{type:"promise-error",severity:"major",errorMessage:(e==null?void 0:e.message)||(e==null?void 0:e.stack)||(typeof e=="string"?e:String(e))||"未处理的 Promise 拒绝",isIgnored:!1}}classifyXhrError(e){var A;const t=(e==null?void 0:e.status)||((A=e==null?void 0:e.response)==null?void 0:A.status)||0,n=(e==null?void 0:e.statusText)||(e==null?void 0:e.message)||"XHR 请求异常";return{type:!!t&&t>=400?"http-error":"xhr-error",severity:this.getSeverityByStatus(t),httpStatus:t||void 0,errorMessage:n,isIgnored:this.shouldIgnore(e)}}classifyConsoleError(e){return{type:"console-error",severity:"minor",errorMessage:e.map(n=>typeof n=="object"?JSON.stringify(n):String(n)).join(" ")||"console.error 输出",isIgnored:!1}}classifyResourceError(e){return{type:"resource-error",severity:"minor",errorMessage:`${e.tagName} 资源加载失败: ${e.resourceUrl}`,isIgnored:!1}}}class Wr{constructor(e){Ee(this,"originalFetch",null);Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"ignoreConfig");this.ignoreConfig=e,this.errorClassifier=new Rt}start(e){if(typeof window=="undefined"||!window.fetch)return;this.callback=e,this.originalFetch=window.fetch;const t=this;window.fetch=function(n,i){return je(this,null,function*(){const A=typeof n=="string"?n:n instanceof URL?n.href:n.url,a=(i==null?void 0:i.method)||"GET",s=i==null?void 0:i.headers;let o=i==null?void 0:i.body;if(!o&&a.toUpperCase()==="GET"&&typeof A=="string"){const u=A.indexOf("?");if(u!==-1){const h=A.slice(u+1);o={},new URLSearchParams(h).forEach((c,g)=>{o[g]=c})}}const l=Date.now();try{const u=yield t.originalFetch.call(window,n,i);if(!u.ok){const h=Date.now()-l,f=u.clone();let c;try{c=yield f.json()}catch(y){c=yield f.text()}const g=new Error(`HTTP ${u.status}: ${u.statusText}`);g.response={status:u.status,statusText:u.statusText,data:c},g.config={url:A,method:a,headers:s};const m=t.errorClassifier.classify(g,t.ignoreConfig);!m.isIgnored&&t.callback&&t.callback({source:"http-error",errorMessage:m.errorMessage,url:A,method:a,headers:s,params:o,status:u.status,response:c,error:g,duration:h,classified:m})}return u}catch(u){const h=Date.now()-l;u.config={url:A,method:a,headers:s};const f=t.errorClassifier.classify(u,t.ignoreConfig);throw!f.isIgnored&&t.callback&&t.callback({source:"http-error",errorMessage:f.errorMessage,url:A,method:a,headers:s,params:o,error:u,duration:h,classified:f}),u}})}}stop(){this.originalFetch&&(window.fetch=this.originalFetch,this.originalFetch=null),this.callback=null}}function ku(r){if(!r)return null;const e=[/config\.url\s*[:=]\s*['"`]([^'"`]+)['"`]/,/url\s*[:=]\s*['"`]([^'"`]+)['"`]/,/请求地址出错:\s*(.+)/,/['"`](https?:\/\/[^'"`]+)['"`]/,/['"`](\/[a-zA-Z0-9_\-\/\.]+)['"`]/,/get\s+['"`]([^'"`]+)['"`]/i,/post\s+['"`]([^'"`]+)['"`]/i,/put\s+['"`]([^'"`]+)['"`]/i,/delete\s+['"`]([^'"`]+)['"`]/i,/['"`](api\/[^'"`]+)['"`]/];for(const t of e){const n=r.match(t);if(n){const i=n[1].trim();if(i.length>1&&!i.includes(" ")&&!i.includes("function")&&!i.includes("=>"))return i}}return null}function Pu(r){if(!r)return null;const e=r.match(/请求地址出错:\s*(.+)/);return e?e[1].trim():null}function bd(r){if(r){if(r.includes("401"))return 401;if(r.includes("403"))return 403;if(r.includes("404"))return 404;if(r.includes("500"))return 500;if(r.includes("502"))return 502;if(r.includes("503"))return 503;if(r.includes("504"))return 504}}function Du(r,e){const t=["postMessage","could not be cloned","Failed to execute","DOMException","ResizeObserver","MutationObserver","IntersectionObserver"],n=r.toLowerCase();for(const a of t)if(n.includes(a.toLowerCase()))return!1;const i=["resultCode","response","request","axios","fetch","http","api","接口","timeout","network","cors","跨域","ECONNABORTED","Network Error","Failed to fetch"],A=e.toLowerCase();for(const a of i)if(n.includes(a.toLowerCase()))return!0;for(const a of i)if(A.includes(a.toLowerCase()))return!0;return!!(A.includes("axios")||A.includes("fetch"))}const Us="__issuesReporterHandled",Yi="__issuesReporterAxiosContext";function Oa(r){if(r)try{r[Us]=!0}catch(e){}}function zw(r){return r&&r[Us]===!0}const Hu=[],cF=20,hF=5e3;function Xo(r,e,t){Hu.push({url:r,status:e,message:t,timestamp:Date.now()}),Hu.length>cF&&Hu.shift()}function fF(r,e,t){const n=Date.now();return Hu.some(i=>{if(n-i.timestamp>hF)return!1;const A=i.message===t,a=e===void 0||i.status===void 0||i.status===e,s=!r||!i.url||i.url===r||i.url.endsWith(r)||r.endsWith(i.url);return A&&a&&s})}function $w(r){const e=r.stack||"",t=r.url||"",n=r.errorMessage||"";return["issues-reporter-plugin","issues-reporter.umd.js","issues-reporter.es.js","issues-reporter-dialog","issues-reporter-toolbar","floating-toolbar","annotation-canvas"].some(A=>e.includes(A)||t.includes(A)||n.includes(A))}class dF{constructor(e){Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"ignoreConfig");Ee(this,"axiosRegistrations",[]);Ee(this,"recentRequestConfig",new Map);this.ignoreConfig=e,this.errorClassifier=new Rt}setCallback(e){this.callback=e}intercept(e){if(!(e!=null&&e.interceptors)){console.warn("[IssuesReporter] 无效的 axios 实例,跳过");return}if(this.axiosRegistrations.find(A=>A.instance===e))return;const n=e.interceptors.request.use(A=>{var o;A.metadata=A.metadata||{},A.metadata.startTime=Date.now();const a=this.extractRequestParams(A),s=`${((o=A.method)==null?void 0:o.toUpperCase())||"GET"}_${A.url}`;if(this.recentRequestConfig.set(s,{url:A.url,method:A.method,data:A.data,params:A.params,extractedParams:a,headers:A.headers,timestamp:Date.now()}),this.recentRequestConfig.size>50){const l=this.recentRequestConfig.keys().next().value;l&&this.recentRequestConfig.delete(l)}return A},A=>Promise.reject(A)),i=e.interceptors.response.use(A=>{var o,l,u,h,f,c,g,m,y,p,v,b,I,N,M,O,P,_;const a=A==null?void 0:A.data,s=(h=(u=(l=(o=a==null?void 0:a.resultCode)!=null?o:a==null?void 0:a.status)!=null?l:a==null?void 0:a.code)!=null?u:a==null?void 0:a.errorCode)!=null?h:a==null?void 0:a.errCode;if(a&&s!==void 0&&!this.isSuccessCode(s)){const G=new Error(a.message||a.msg||"业务错误");G.response=A,G.data=a,G.config=A.config;const D=this.errorClassifier.classify(G,this.ignoreConfig),S=((c=(f=A.config)==null?void 0:f.metadata)==null?void 0:c.startTime)||Date.now(),K=Date.now()-S;let F=this.findRecentConfig(((g=A.config)==null?void 0:g.method)||"GET",((m=A.config)==null?void 0:m.url)||"");F||(F=this.getMostRecentRequestConfig());let ee=F==null?void 0:F.extractedParams;ee||(ee=this.extractRequestParams(F||A.config)),(ee===void 0||Object.keys(ee).length===0)&&((v=(p=(y=F||A.config)==null?void 0:y.headers)==null?void 0:p["Content-Type"])!=null&&v.includes("multipart/form-data")||(N=(I=(b=F||A.config)==null?void 0:b.headers)==null?void 0:I["content-type"])!=null&&N.includes("multipart/form-data"))&&(ee="[FormData] 文件上传请求,参数已隐藏"),!D.isIgnored&&this.callback&&this.callback({source:"http-error",errorMessage:D.errorMessage,url:((M=A.config)==null?void 0:M.url)||"",method:((O=A.config)==null?void 0:O.method)||"GET",headers:(P=A.config)==null?void 0:P.headers,params:ee,status:A.status,response:a,error:G,duration:K,classified:D}),Oa(G),Xo(((_=A.config)==null?void 0:_.url)||"",A.status,D.errorMessage)}return A},A=>{if(!A.config)return Promise.reject(A);const a=this.resolveAxiosError(A),s=this.errorClassifier.classify(A,this.ignoreConfig);return!s.isIgnored&&this.callback&&this.callback({source:"http-error",errorMessage:s.errorMessage,url:a.url,method:a.method,headers:a.headers,params:a.params,status:a.status,response:a.response,error:A,duration:a.duration,classified:s}),Oa(A),Xo(a.url,a.status,s.errorMessage),Promise.reject(A)});this.axiosRegistrations.push({instance:e,requestInterceptorId:n,responseInterceptorId:i}),this.wrapAxiosRequest(e)}restoreAll(){for(const{instance:e,requestInterceptorId:t,responseInterceptorId:n}of this.axiosRegistrations)try{e!=null&&e.interceptors&&(e.interceptors.request.eject(t),e.interceptors.response.eject(n))}catch(i){console.warn("[IssuesReporter] eject axios 拦截器失败:",i)}this.axiosRegistrations=[],this.recentRequestConfig.clear()}ensureLast(e){if(!(e!=null&&e.interceptors)){console.warn("[IssuesReporter] 无效的 axios 实例,跳过");return}const t=this.axiosRegistrations.findIndex(n=>n.instance===e);if(t>=0){const{instance:n,requestInterceptorId:i,responseInterceptorId:A}=this.axiosRegistrations[t];try{n!=null&&n.interceptors&&(n.interceptors.request.eject(i),n.interceptors.response.eject(A))}catch(a){console.warn("[IssuesReporter] eject axios 拦截器失败:",a)}this.axiosRegistrations.splice(t,1)}this.intercept(e)}wrapAxiosRequest(e){if(!e||e.__issuesReporterRequestWrapped)return;const t=e.request.bind(e),n=this;e.request=function(...i){const A=i[0]||{},a={url:A.url,method:(A.method||"GET").toUpperCase(),headers:A.headers,params:A.params,data:A.data,startTime:Date.now()},s=t.apply(this,i);return s.catch(o=>{var c,g,m;try{o[Yi]=a}catch(y){}if(zw(o))return;const l=n.errorClassifier.classify(o,n.ignoreConfig),u=(g=(c=o.response)==null?void 0:c.status)!=null?g:typeof o.code=="number"?o.code:void 0,h=n.findRecentConfig(a.method,a.url||"");let f=h==null?void 0:h.extractedParams;f||(f=n.extractRequestParams(h||A)),(f===void 0||Object.keys(f).length===0)&&h&&h!==A&&(f=n.extractRequestParams(A)),!l.isIgnored&&n.callback&&n.callback({source:"http-error",errorMessage:l.errorMessage,url:a.url||"",method:a.method,headers:a.headers,params:f,status:u,response:((m=o.response)==null?void 0:m.data)||o.data,error:o,duration:Date.now()-a.startTime,classified:l}),Oa(o),Xo(a.url||"",u,l.errorMessage)}),s},e.__issuesReporterRequestWrapped=!0}isSuccessCode(e){return["0","200","A000","0000","10000",0,200].includes(e)}resolveAxiosError(e){var v,b,I,N,M,O,P,_,G,D,S,K,F,ee,Z;const t=e&&e.code!==void 0&&e.url!==void 0&&e.message!==void 0,n=t?String(e.code):void 0,i=t?e.url:void 0,A=Pu(e.message||"")||"",a=bd(e.message||"");let s=(v=e.response)==null?void 0:v.status;s===void 0&&e.code&&typeof e.code=="number"&&(s=e.code),s===void 0&&!t&&(s=a||void 0);let o=((b=e.config)==null?void 0:b.url)||i||e.url||A||"",l=((I=e.config)==null?void 0:I.method)||e.method||"GET",u=((N=e.config)==null?void 0:N.headers)||e.headers||{};const h=o?this.findRecentConfig(l,o):this.getMostRecentRequestConfig(),f=h||e.config;f&&(o||(o=f.url),l==="GET"&&f.method&&(l=f.method),(!u||Object.keys(u).length===0)&&(u=f.headers));let c=h==null?void 0:h.extractedParams;if(c||(c=this.extractRequestParams(h)||this.extractRequestParams(e.config)),c||(c=e.params||e.data),(c===void 0||Object.keys(c).length===0)&&(f!=null&&f.headers||(M=e.config)!=null&&M.headers)){const z=((O=f==null?void 0:f.headers)==null?void 0:O["Content-Type"])||((P=f==null?void 0:f.headers)==null?void 0:P["content-type"])||((G=(_=e.config)==null?void 0:_.headers)==null?void 0:G["Content-Type"])||((S=(D=e.config)==null?void 0:D.headers)==null?void 0:S["content-type"]);z!=null&&z.includes("multipart/form-data")&&(c="[FormData] 文件上传请求")}let g=((K=e.response)==null?void 0:K.data)||e.data||e.responseBody;t&&n&&!g&&(g={resultCode:n,msg:e.message});let m=((F=f==null?void 0:f.metadata)==null?void 0:F.startTime)||((Z=(ee=e.config)==null?void 0:ee.metadata)==null?void 0:Z.startTime);!m&&(f!=null&&f.timestamp)&&(m=f.timestamp),m||(m=Date.now());const y=Date.now()-m;return{url:o||e.name||"未知接口",method:l,headers:u,params:c,status:s,response:g,duration:y}}findRecentConfig(e,t){const n=`${e.toUpperCase()}_${t}`,i=this.recentRequestConfig.get(n);if(i)return i;for(const[,A]of this.recentRequestConfig.entries())if(A.url&&(A.url.includes(t)||t.includes(A.url)))return A;return this.getMostRecentRequestConfig()}getMostRecentRequestConfig(){let e=null,t=0;for(const[,n]of this.recentRequestConfig.entries())n.timestamp>t&&(t=n.timestamp,e=n);return e}extractRequestParams(e){var t,n,i,A,a,s;if(e){if(e.data){if(typeof FormData!="undefined"&&e.data instanceof FormData)try{const o={};return e.data.forEach((l,u)=>{l instanceof File?o[u]=`[File] ${l.name} (${l.type})`:o[u]=l}),(n=(t=e.headers)==null?void 0:t["Content-Type"])!=null&&n.includes("multipart/form-data")&&(o._hint="multipart/form-data 上传请求"),o}catch(o){return"[FormData] 无法解析的表单数据"}if(typeof e.data=="string"&&e.data.includes("------"))try{const o=e.data.split(`\r
2
+ `),l={};return o.forEach(u=>{if(u.includes('name="')){const h=u.match(/name="([^"]+)"/);if(h&&h[1]){const f=h[1],c=u.indexOf(`\r
3
+ \r
4
+ `)+4,g=u.indexOf(`\r
5
+ `,c);if(c>0&&g>c){const m=u.slice(c,g);l[f]=m}}}}),(A=(i=e.headers)==null?void 0:i["Content-Type"])!=null&&A.includes("multipart/form-data")&&(l._hint="multipart/form-data 上传请求"),Object.keys(l).length>0?l:"[FormData] 无法解析的表单数据"}catch(o){return e.data}if((s=(a=e.headers)==null?void 0:a["Content-Type"])!=null&&s.includes("multipart/form-data")&&!e.data)return"[FormData] 文件上传请求(已手动设置Content-Type)";if(typeof URLSearchParams!="undefined"&&e.data instanceof URLSearchParams)try{const o={};return e.data.forEach((l,u)=>{o[u]=l}),o}catch(o){return"[URLSearchParams] 无法解析的表单数据"}if(typeof e.data=="string"&&e.data.includes("="))try{const o={};return new URLSearchParams(e.data).forEach((u,h)=>{o[h]=u}),o}catch(o){return e.data}if(typeof e.data=="string")try{return JSON.parse(e.data)}catch(o){return e.data}return e.data}if(e.params)return e.params;if(e.url&&typeof e.url=="string"){const o=e.url.indexOf("?");if(o!==-1){const l=e.url.slice(o+1),u={};if(new URLSearchParams(l).forEach((f,c)=>{u[c]=f}),Object.keys(u).length>0)return u}}}}}class pF{constructor(e){Ee(this,"errorClassifier");Ee(this,"ignoreConfig");Ee(this,"callback",null);Ee(this,"errorHandler",null);Ee(this,"unhandledRejectionHandler",null);Ee(this,"getRecentConfig",null);this.ignoreConfig=e,this.errorClassifier=new Rt}setCallback(e){this.callback=e}setRecentConfigGetter(e){this.getRecentConfig=e}start(){typeof window!="undefined"&&(this.errorHandler=e=>{const t=e.error;if(!t)return;const n=t.message||String(t),i=t.stack||"";if(!Du(n,i))return;const{url:A,method:a,params:s}=this.resolveErrorInfo(gF(i),i),o=new Error(n);o.stack=i,o.config={url:A,method:a};const l=this.errorClassifier.classify(o,this.ignoreConfig);!l.isIgnored&&this.callback&&this.callback({url:A,method:a,headers:{},params:s,error:o,duration:0,classified:l})},this.unhandledRejectionHandler=e=>{var f,c;const t=e.reason;if(!t)return;const n=t.message||String(t),i=t.stack||"";if(!Du(n,i))return;const{url:A,method:a,params:s,status:o,response:l}=this.resolveErrorInfo(ku(i),i),u=new Error(n);u.stack=i,u.config={url:A,method:a},t.response&&(u.response=t.response);const h=this.errorClassifier.classify(u,this.ignoreConfig);!h.isIgnored&&this.callback&&this.callback({url:A,method:a,headers:{},params:s,status:o||((f=t.response)==null?void 0:f.status),response:l||((c=t.response)==null?void 0:c.data),error:u,duration:0,classified:h})},window.addEventListener("error",this.errorHandler),window.addEventListener("unhandledrejection",this.unhandledRejectionHandler))}stop(){typeof window!="undefined"&&(this.errorHandler&&(window.removeEventListener("error",this.errorHandler),this.errorHandler=null),this.unhandledRejectionHandler&&(window.removeEventListener("unhandledrejection",this.unhandledRejectionHandler),this.unhandledRejectionHandler=null),this.callback=null)}resolveErrorInfo(e,t){let n=e||"",i="UNKNOWN",A;if(!n&&this.getRecentConfig){const a=this.findMostRecentConfig();a&&(n=a.url,i=a.method||"UNKNOWN",A=a.data||a.params)}return n||(n="未知接口"),{url:n,method:i,params:A}}findMostRecentConfig(){if(!this.getRecentConfig)return null;const e=this.getRecentConfig();if(e.size===0)return null;let t=null,n=0;for(const[,i]of e.entries())i.timestamp>n&&(n=i.timestamp,t=i);return t}}function gF(r){return r?ku(r):null}class mF{constructor(){Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"errorHandler",null);Ee(this,"isListening",!1);this.errorClassifier=new Rt}start(e){this.isListening||typeof window=="undefined"||(this.callback=e,this.errorHandler=t=>{const n=t.error||{},i=this.errorClassifier.classifyJsError(n),A={source:"js-error",errorMessage:i.errorMessage,error:n,url:t.filename||window.location.href,stack:n.stack||"",metadata:{filename:t.filename,lineno:t.lineno,colno:t.colno},classified:i};this.callback&&this.callback(A)},window.addEventListener("error",this.errorHandler),this.isListening=!0)}stop(){!this.isListening||typeof window=="undefined"||(this.errorHandler&&(window.removeEventListener("error",this.errorHandler),this.errorHandler=null),this.callback=null,this.isListening=!1)}}class vF{constructor(){Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"originalHandler",null);Ee(this,"boundVue",null);this.errorClassifier=new Rt}bind(e,t){if(e&&(this.callback=t,this.boundVue=e,e.config&&typeof e.config=="object")){this.originalHandler=e.config.errorHandler||null,e.config.errorHandler=(n,i,A)=>{this.handleVueError(n,i,A),this.originalHandler?this.originalHandler(n,i,A):console.error(n)};return}}unbind(){this.boundVue&&this.boundVue.config&&(this.boundVue.config.errorHandler=this.originalHandler),this.originalHandler=null,this.callback=null,this.boundVue=null}handleVueError(e,t,n){const i=e instanceof Error?e:new Error(String(e)),A=this.getComponentName(t),a=(t==null?void 0:t.$props)||(t==null?void 0:t.props)||{},s=this.getComponentFilePath(t,i),o=this.errorClassifier.classifyVueError(i,{componentName:A,info:n}),l={source:"vue-error",errorMessage:o.errorMessage,error:i,url:typeof window!="undefined"?window.location.href:"",stack:i.stack||"",metadata:{componentName:A,filePath:s,props:a,info:n},classified:o};this.callback&&this.callback(l)}getComponentName(e){var i,A,a,s;if(!e)return"匿名组件";const t=((i=e.$options)==null?void 0:i.name)||((A=e.type)==null?void 0:A.name)||e.name;if(t)return String(t);const n=((a=e.$options)==null?void 0:a.__file)||((s=e.type)==null?void 0:s.__file);return n||"匿名组件"}getComponentFilePath(e,t){var i,A;const n=((i=e==null?void 0:e.$options)==null?void 0:i.__file)||((A=e==null?void 0:e.type)==null?void 0:A.__file);return n||this.extractVueFilePath(t.stack||"")}extractVueFilePath(e){if(!e)return;const t=e.match(/(?:webpack-internal:\/\/\/[^)\s]*?)?(src\/[^)?\s]+\.vue)/);if(t)return t[1];const n=e.match(/\b([\w-/]+\.vue)\b/);return n?n[1]:void 0}}function wF(r){var e,t,n,i,A,a;if(r){if(r.data){if(typeof FormData!="undefined"&&r.data instanceof FormData)try{const s={};return r.data.forEach((o,l)=>{o instanceof File?s[l]=`[File] ${o.name} (${o.type})`:s[l]=o}),(t=(e=r.headers)==null?void 0:e["Content-Type"])!=null&&t.includes("multipart/form-data")&&(s._hint="multipart/form-data 上传请求"),s}catch(s){return"[FormData] 无法解析的表单数据"}if(typeof r.data=="string"&&r.data.includes("------"))try{const s=r.data.split(`\r
6
+ `),o={};return s.forEach(l=>{if(l.includes('name="')){const u=l.match(/name="([^"]+)"/);if(u&&u[1]){const h=u[1],f=l.indexOf(`\r
7
+ \r
8
+ `)+4,c=l.indexOf(`\r
9
+ `,f);if(f>0&&c>f){const g=l.slice(f,c);o[h]=g}}}}),(i=(n=r.headers)==null?void 0:n["Content-Type"])!=null&&i.includes("multipart/form-data")&&(o._hint="multipart/form-data 上传请求"),Object.keys(o).length>0?o:"[FormData] 无法解析的表单数据"}catch(s){return r.data}if((a=(A=r.headers)==null?void 0:A["Content-Type"])!=null&&a.includes("multipart/form-data")&&!r.data)return"[FormData] 文件上传请求(已手动设置Content-Type)";if(typeof URLSearchParams!="undefined"&&r.data instanceof URLSearchParams)try{const s={};return r.data.forEach((o,l)=>{s[l]=o}),s}catch(s){return"[URLSearchParams] 无法解析的表单数据"}if(typeof r.data=="string"&&r.data.includes("="))try{const s={};return new URLSearchParams(r.data).forEach((l,u)=>{s[u]=l}),s}catch(s){return r.data}if(typeof r.data=="string")try{return JSON.parse(r.data)}catch(s){return r.data}return r.data}if(r.params)return r.params;if(r.url&&typeof r.url=="string"){const s=r.url.indexOf("?");if(s!==-1){const o=r.url.slice(s+1),l={};if(new URLSearchParams(o).forEach((h,f)=>{l[f]=h}),Object.keys(l).length>0)return l}}}}class yF{constructor(){Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"rejectionHandler",null);Ee(this,"isListening",!1);this.errorClassifier=new Rt}start(e){this.isListening||typeof window=="undefined"||(this.callback=e,this.rejectionHandler=t=>{var l,u,h,f;const n=t.reason;if(zw(n))return;const i=typeof(n==null?void 0:n.code)=="number"?n.code:void 0;if(fF(((l=n==null?void 0:n.config)==null?void 0:l.url)||(n==null?void 0:n.url),i,n==null?void 0:n.message))return;const A=n==null?void 0:n[Yi];if(A&&((n==null?void 0:n.code)!==void 0||(n==null?void 0:n.response)!==void 0)){const c=this.errorClassifier.classify(n,this.ignoreConfig),g=(h=(u=n.response)==null?void 0:u.status)!=null?h:typeof n.code=="number"?n.code:void 0;let m=wF({data:A.data,params:A.params,url:A.url});if((m===void 0||Object.keys(m).length===0)&&A.headers){const p=A.headers["Content-Type"]||A.headers["content-type"];p!=null&&p.includes("multipart/form-data")&&(m="[FormData] 文件上传请求")}const y={source:"http-error",errorMessage:c.errorMessage,error:n,url:A.url||"",method:A.method||"GET",headers:A.headers,params:m,status:g,response:((f=n.response)==null?void 0:f.data)||n.data,stack:n.stack||"",duration:Date.now()-A.startTime,classified:c};this.callback&&this.callback(y);return}const a=this.errorClassifier.classifyPromiseError(n),s=n instanceof Error?n:new Error(a.errorMessage);!s.stack&&typeof n=="string"&&(s.stack=n);const o={source:"promise-error",errorMessage:a.errorMessage,error:s,url:typeof window!="undefined"?window.location.href:"",stack:s.stack||"",metadata:{reason:n},classified:a};this.callback&&this.callback(o)},window.addEventListener("unhandledrejection",this.rejectionHandler),this.isListening=!0)}stop(){!this.isListening||typeof window=="undefined"||(this.rejectionHandler&&(window.removeEventListener("unhandledrejection",this.rejectionHandler),this.rejectionHandler=null),this.callback=null,this.isListening=!1)}}class bF{constructor(e){Ee(this,"originalOpen",null);Ee(this,"originalSend",null);Ee(this,"originalSetRequestHeader",null);Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"ignoreConfig");Ee(this,"isIntercepting",!1);Ee(this,"requestConfigMap",new WeakMap);this.ignoreConfig=e,this.errorClassifier=new Rt}start(e){if(this.isIntercepting||typeof window=="undefined"||!window.XMLHttpRequest)return;this.callback=e,this.originalOpen=XMLHttpRequest.prototype.open,this.originalSend=XMLHttpRequest.prototype.send,this.originalSetRequestHeader=XMLHttpRequest.prototype.setRequestHeader;const t=this;XMLHttpRequest.prototype.open=function(n,i,A,a,s){const l={url:typeof i=="string"?i:i.href,method:n.toUpperCase(),headers:{},startTime:Date.now()};return t.requestConfigMap.set(this,l),t.originalOpen.call(this,n,i,A!=null?A:!0,a,s)},XMLHttpRequest.prototype.setRequestHeader=function(n,i){const A=t.requestConfigMap.get(this);return A&&(A.headers[n]=i),t.originalSetRequestHeader.call(this,n,i)},XMLHttpRequest.prototype.send=function(n){const i=t.requestConfigMap.get(this);i&&(i.body=n);const A=()=>{const l=t.requestConfigMap.get(this);if(!l)return;const u=this.status;if(u>=400){t.handleError(this,l,u,this.statusText,this.response);return}t.handleBusinessErrorIfNeeded(this,l)},a=()=>{const l=t.requestConfigMap.get(this);l&&t.handleError(this,l,0,"网络错误",null)},s=()=>{const l=t.requestConfigMap.get(this);l&&t.handleError(this,l,0,"请求超时",null)},o=()=>{const l=t.requestConfigMap.get(this);l&&t.handleError(this,l,0,"请求已中断",null)};return this.addEventListener("load",A),this.addEventListener("error",a),this.addEventListener("timeout",s),this.addEventListener("abort",o),t.originalSend.call(this,n)},this.isIntercepting=!0}stop(){this.isIntercepting&&(this.originalOpen&&(XMLHttpRequest.prototype.open=this.originalOpen,this.originalOpen=null),this.originalSend&&(XMLHttpRequest.prototype.send=this.originalSend,this.originalSend=null),this.originalSetRequestHeader&&(XMLHttpRequest.prototype.setRequestHeader=this.originalSetRequestHeader,this.originalSetRequestHeader=null),this.callback=null,this.isIntercepting=!1)}extractXhrRequestParams(e){if(e){if(typeof FormData!="undefined"&&e instanceof FormData)try{const t={};return e.forEach((n,i)=>{n instanceof File?t[i]=`[File] ${n.name} (${n.type})`:t[i]=n}),t}catch(t){return"[FormData] 无法解析的表单数据"}if(typeof URLSearchParams!="undefined"&&e instanceof URLSearchParams)try{const t={};return e.forEach((n,i)=>{t[i]=n}),t}catch(t){return"[URLSearchParams] 无法解析的表单数据"}if(typeof e=="string"&&e.includes("="))try{const t={};return new URLSearchParams(e).forEach((i,A)=>{t[A]=i}),t}catch(t){return e}if(typeof e=="string")try{return JSON.parse(e)}catch(t){return e}return e}}handleError(e,t,n,i,A){const a=Date.now()-t.startTime,s=new Error(`XHR ${n||"Error"}: ${i}`);s.status=n,s.statusText=i,s.response=A,s.config={url:t.url,method:t.method,headers:t.headers};const o=this.errorClassifier.classifyXhrError(s);if(o.isIgnored||!this.callback)return;Xo(t.url,n,o.errorMessage);let l=A;if(typeof A=="string")try{l=JSON.parse(A)}catch(f){l=A}const u=this.extractXhrRequestParams(t.body),h={source:o.type==="http-error"?"http-error":"xhr-error",errorMessage:o.errorMessage,error:s,url:t.url,method:t.method,headers:t.headers,params:u,status:n,response:l,duration:a,classified:o,metadata:{headers:t.headers,params:u}};this.callback(h)}handleBusinessErrorIfNeeded(e,t){var c,g,m,y;if(!(e.getResponseHeader("content-type")||"").includes("application/json")&&typeof e.response=="string")try{JSON.parse(e.response)}catch(p){return}let i=e.response;if(typeof i=="string")try{i=JSON.parse(i)}catch(p){return}if(!i||typeof i!="object")return;const A=(y=(m=(g=(c=i==null?void 0:i.resultCode)!=null?c:i==null?void 0:i.status)!=null?g:i==null?void 0:i.code)!=null?m:i==null?void 0:i.errorCode)!=null?y:i==null?void 0:i.errCode;if(A===void 0||["0","200","A000","0000","10000",0,200].includes(A))return;const s=Date.now()-t.startTime,o=new Error(i.msg||i.message||"业务错误");o.code=A,o.response={data:i,status:e.status},o.config={url:t.url,method:t.method,headers:t.headers};const l=this.errorClassifier.classify(o,this.ignoreConfig);if(l.isIgnored||!this.callback)return;const u=this.extractXhrRequestParams(t.body),h=typeof A=="number"?A:void 0;Xo(t.url,h,l.errorMessage);const f={source:"http-error",errorMessage:l.errorMessage,error:o,url:t.url,method:t.method,headers:t.headers,params:u,status:h,response:i,duration:s,classified:l,metadata:{headers:t.headers,params:u}};this.callback(f)}}class BF{constructor(){Ee(this,"originalConsoleError",null);Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"isIntercepting",!1);Ee(this,"isInInterceptor",!1);this.errorClassifier=new Rt}start(e){if(this.isIntercepting||typeof console=="undefined")return;this.callback=e,this.originalConsoleError=console.error;const t=this;console.error=function(...n){if(t.originalConsoleError&&t.originalConsoleError.apply(console,n),!t.isInInterceptor){t.isInInterceptor=!0;try{const i=t.errorClassifier.classifyConsoleError(n),A=n[0]instanceof Error?n[0]:new Error(i.errorMessage),a={source:"console-error",errorMessage:i.errorMessage,error:A,url:typeof window!="undefined"?window.location.href:"",metadata:{args:n},classified:i};t.callback&&t.callback(a)}finally{t.isInInterceptor=!1}}},this.isIntercepting=!0}stop(){this.isIntercepting&&(this.originalConsoleError&&(console.error=this.originalConsoleError,this.originalConsoleError=null),this.callback=null,this.isIntercepting=!1)}}class xF{constructor(){Ee(this,"errorClassifier");Ee(this,"callback",null);Ee(this,"errorHandler",null);Ee(this,"isListening",!1);this.errorClassifier=new Rt}start(e){this.isListening||typeof window=="undefined"||(this.callback=e,this.errorHandler=t=>{var u;const n=t.target;if(!n)return;const i=(u=n.tagName)==null?void 0:u.toLowerCase();if(!i||!["img","script","link","audio","video","iframe"].includes(i))return;const A=n.getAttribute("src"),a=n.getAttribute("href"),s=n.src||n.href||"";if(!A&&!a||typeof A=="string"&&A.trim()===""||typeof a=="string"&&a.trim()==="")return;const o=this.errorClassifier.classifyResourceError({tagName:i,resourceUrl:s}),l={source:"resource-error",errorMessage:o.errorMessage,error:t,url:s,metadata:{tagName:i,resourceUrl:s,outerHTML:n.outerHTML},classified:o};this.callback&&this.callback(l)},window.addEventListener("error",this.errorHandler,!0),this.isListening=!0)}stop(){!this.isListening||typeof window=="undefined"||(this.errorHandler&&(window.removeEventListener("error",this.errorHandler,!0),this.errorHandler=null),this.callback=null,this.isListening=!1)}}function CF(r=new Set){var n;const e=[],t=new Set;for(const i of r)i&&Yo(i)&&!t.has(i)&&(e.push(i),t.add(i));ka(window.axios,t,e);try{const i=window.Vue;(n=i==null?void 0:i.prototype)!=null&&n.$axios&&ka(i.prototype.$axios,t,e,"Vue.prototype.$axios")}catch(i){}try{const i=document.querySelector("#app");if(i){const A=i.__vue__||i.__vue__;A!=null&&A.$axios&&ka(A.$axios,t,e,"Vue 实例 $axios")}}catch(i){}ka(window.__axios__,t,e);try{const i=window.webpackJsonp||window.__webpack_require__;if(i){const A=i.c||window.__webpack_modules__;if(A)for(const a in A){const s=A[a];if(s!=null&&s.exports){const o=s.exports;Yo(o)&&ka(o,t,e,`webpack 模块 ${a}`),Yo(o==null?void 0:o.default)&&ka(o.default,t,e,`webpack 模块 ${a} (default)`)}}}}catch(i){}try{for(const i of Object.keys(window))try{const A=window[i];Yo(A)&&ka(A,t,e,`全局变量 ${i}`)}catch(A){}}catch(i){}return e}function Yo(r){return r&&r.interceptors&&r.defaults}function ka(r,e,t,n){r&&Yo(r)&&!e.has(r)&&(e.add(r),t.push(r))}class Bd{constructor(e){Ee(this,"config");Ee(this,"fetchInterceptor");Ee(this,"axiosInterceptor");Ee(this,"globalErrorListener");Ee(this,"jsErrorListener");Ee(this,"vueErrorHandler");Ee(this,"promiseErrorListener");Ee(this,"xhrInterceptor");Ee(this,"consoleErrorInterceptor");Ee(this,"resourceErrorListener");Ee(this,"isIntercepting",!1);Ee(this,"manualAxiosInstances",new Set);Ee(this,"vueInstance",null);Ee(this,"activeCallback",null);this.config=e;const t=e.ignore||{};this.fetchInterceptor=new Wr(t),this.axiosInterceptor=new dF(t),this.globalErrorListener=new pF(t),this.jsErrorListener=new mF,this.vueErrorHandler=new vF,this.promiseErrorListener=new yF,this.xhrInterceptor=new bF(t),this.consoleErrorInterceptor=new BF,this.resourceErrorListener=new xF,this.globalErrorListener.setRecentConfigGetter(()=>this.axiosInterceptor.getRecentRequestConfig()),e.vue&&(this.vueInstance=e.vue)}setAxiosInstance(e){e&&(this.manualAxiosInstances.add(e),this.isIntercepting&&(this.axiosInterceptor.setCallback(this.getActiveCallback()),this.axiosInterceptor.ensureLast(e)))}setAxiosInstances(e){Array.isArray(e)&&e.forEach(t=>this.setAxiosInstance(t))}setVueInstance(e){e&&(this.vueInstance=e,this.isIntercepting&&this.config.vueError&&this.vueErrorHandler.bind(e,this.getActiveCallback()))}start(e){if(this.isIntercepting){console.warn("[IssuesReporter] HTTP 拦截器已在运行");return}this.isIntercepting=!0,this.saveCallback(e),this.axiosInterceptor.setCallback(e),this.fetchInterceptor.start(e),this.interceptAllAxios(),this.config.jsError!==!1&&this.jsErrorListener.start(e),this.config.vueError&&this.vueInstance&&this.vueErrorHandler.bind(this.vueInstance,e),this.config.promiseError!==!1&&this.promiseErrorListener.start(e),this.config.xhrError!==!1&&this.xhrInterceptor.start(e),this.config.consoleError&&this.consoleErrorInterceptor.start(e),this.config.resourceError!==!1&&this.resourceErrorListener.start(e)}stop(){this.isIntercepting&&(this.fetchInterceptor.stop(),this.axiosInterceptor.restoreAll(),this.jsErrorListener.stop(),this.vueErrorHandler.unbind(),this.promiseErrorListener.stop(),this.xhrInterceptor.stop(),this.consoleErrorInterceptor.stop(),this.resourceErrorListener.stop(),this.isIntercepting=!1)}saveCallback(e){this.activeCallback=e}getActiveCallback(){return this.activeCallback}interceptAllAxios(){if(typeof window=="undefined")return;const e=CF(this.manualAxiosInstances);if(e.length!==0)for(const t of e)this.axiosInterceptor.intercept(t)}}const EF=new Map;let Pa=null;class Gw{constructor(e={}){Ee(this,"windowMs");Ee(this,"enabled");Ee(this,"fingerprints",EF);Ee(this,"cleanupTimer",Pa);var t,n;this.windowMs=(t=e.windowMs)!=null?t:3e4,this.enabled=(n=e.enabled)!=null?n:!0}shouldCapture(e,t,n,i,A){if(i===void 0)return this.checkFingerprint(this.generateFingerprint(String(e),t,String(n)));const a=String(e),s=t,o=n,l=String(i),u=A||"",h=this.generateSourceFingerprint(a,s,o,l,u);return this.checkFingerprint(h)}checkFingerprint(e){if(!this.enabled)return!0;const t=Date.now(),n=this.fingerprints.get(e);return n&&t-n.timestamp<this.windowMs?!1:(this.fingerprints.set(e,{timestamp:t}),this.scheduleCleanup(),!0)}reset(){this.fingerprints.clear(),Pa&&(clearTimeout(Pa),Pa=null)}generateFingerprint(e,t,n){const i=e.split("?")[0]||e,A=n.substring(0,100);return`${i}|${t!=null?t:""}|${A}`}generateSourceFingerprint(e,t,n,i,A){if((e==="http-error"||e==="xhr-error")&&t)return this.generateFingerprint(t,n,i);const s=i.substring(0,100),o=A.substring(0,200);return`${e}|${s}|${o}`}scheduleCleanup(){Pa||(Pa=setTimeout(()=>{const e=Date.now(),t=this.windowMs*2;for(const[n,i]of this.fingerprints.entries())e-i.timestamp>t&&this.fingerprints.delete(n);Pa=null},this.windowMs))}}function SF(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"),i=t.createElement("a");return t.head.appendChild(n),t.body.appendChild(i),e&&(n.href=e),i.href=r,i.href}const FF=(()=>{let r=0;const e=()=>`0000${(Math.random()*uF(36,4)<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${e()}${r}`)})();function qA(r){const e=[];for(let t=0,n=r.length;t<n;t++)e.push(r[t]);return e}let Ts=null;function Ww(r={}){return Ts||(r.includeStyleProperties?(Ts=r.includeStyleProperties,Ts):(Ts=qA(window.getComputedStyle(document.documentElement)),Ts))}function Mu(r,e){const n=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function IF(r){const e=Mu(r,"border-left-width"),t=Mu(r,"border-right-width");return r.clientWidth+e+t}function UF(r){const e=Mu(r,"border-top-width"),t=Mu(r,"border-bottom-width");return r.clientHeight+e+t}function xd(r,e={}){const t=e.width||IF(r),n=e.height||UF(r);return{width:t,height:n}}function TF(){let r,e;try{e=process}catch(n){}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 Jn=16384;function _F(r){(r.width>Jn||r.height>Jn)&&(r.width>Jn&&r.height>Jn?r.width>r.height?(r.height*=Jn/r.width,r.width=Jn):(r.width*=Jn/r.height,r.height=Jn):r.width>Jn?(r.height*=Jn/r.width,r.width=Jn):(r.width*=Jn/r.height,r.height=Jn))}function LF(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]),i=n.length,A=new Uint8Array(i);for(let a=0;a<i;a+=1)A[a]=n.charCodeAt(a);t(new Blob([A],{type:e.type?e.type:"image/png"}))})}function ju(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})}function QF(r){return je(this,null,function*(){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)})}function NF(r,e,t){return je(this,null,function*(){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),A=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${t}`),i.setAttribute("viewBox",`0 0 ${e} ${t}`),A.setAttribute("width","100%"),A.setAttribute("height","100%"),A.setAttribute("x","0"),A.setAttribute("y","0"),A.setAttribute("externalResourcesRequired","true"),i.appendChild(A),A.appendChild(r),QF(i)})}const Hn=(r,e)=>{if(r instanceof e)return!0;const t=Object.getPrototypeOf(r);return t===null?!1:t.constructor.name===e.name||Hn(t,e)};function RF(r){const e=r.getPropertyValue("content");return`${r.cssText} content: '${e.replace(/'|"/g,"")}';`}function OF(r,e){return Ww(e).map(t=>{const n=r.getPropertyValue(t),i=r.getPropertyPriority(t);return`${t}: ${n}${i?" !important":""};`}).join(" ")}function kF(r,e,t,n){const i=`.${r}:${e}`,A=t.cssText?RF(t):OF(t,n);return document.createTextNode(`${i}{${A}}`)}function qw(r,e,t,n){const i=window.getComputedStyle(r,t),A=i.getPropertyValue("content");if(A===""||A==="none")return;const a=FF();try{e.className=`${e.className} ${a}`}catch(o){return}const s=document.createElement("style");s.appendChild(kF(a,t,i,n)),e.appendChild(s)}function PF(r,e,t){qw(r,e,":before",t),qw(r,e,":after",t)}const Xw="application/font-woff",Yw="image/jpeg",DF={woff:Xw,woff2:Xw,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Yw,jpeg:Yw,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function HF(r){const e=/\.([^./]*?)$/g.exec(r);return e?e[1]:""}function Cd(r){const e=HF(r).toLowerCase();return DF[e]||""}function MF(r){return r.split(/,/)[1]}function Ed(r){return r.search(/^(data:)/)!==-1}function jF(r,e){return`data:${e};base64,${r}`}function Jw(r,e,t){return je(this,null,function*(){const n=yield fetch(r,e);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);const i=yield n.blob();return new Promise((A,a)=>{const s=new FileReader;s.onerror=a,s.onloadend=()=>{try{A(t({res:n,result:s.result}))}catch(o){a(o)}},s.readAsDataURL(i)})})}const Sd={};function KF(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}function Fd(r,e,t){return je(this,null,function*(){const n=KF(r,e,t.includeQueryParams);if(Sd[n]!=null)return Sd[n];t.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let i;try{const A=yield Jw(r,t.fetchRequestInit,({res:a,result:s})=>(e||(e=a.headers.get("Content-Type")||""),MF(s)));i=jF(A,e)}catch(A){i=t.imagePlaceholder||"";let a=`Failed to fetch resource: ${r}`;A&&(a=typeof A=="string"?A:A.message),a&&console.warn(a)}return Sd[n]=i,i})}function VF(r){return je(this,null,function*(){const e=r.toDataURL();return e==="data:,"?r.cloneNode(!1):ju(e)})}function zF(r,e){return je(this,null,function*(){if(r.currentSrc){const A=document.createElement("canvas"),a=A.getContext("2d");A.width=r.clientWidth,A.height=r.clientHeight,a==null||a.drawImage(r,0,0,A.width,A.height);const s=A.toDataURL();return ju(s)}const t=r.poster,n=Cd(t),i=yield Fd(t,n,e);return ju(i)})}function $F(r,e){return je(this,null,function*(){var t;try{if(!((t=r==null?void 0:r.contentDocument)===null||t===void 0)&&t.body)return yield Ku(r.contentDocument.body,e,!0)}catch(n){}return r.cloneNode(!1)})}function GF(r,e){return je(this,null,function*(){return Hn(r,HTMLCanvasElement)?VF(r):Hn(r,HTMLVideoElement)?zF(r,e):Hn(r,HTMLIFrameElement)?$F(r,e):r.cloneNode(Zw(r))})}const WF=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT",Zw=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SVG";function qF(r,e,t){return je(this,null,function*(){var n,i;if(Zw(e))return e;let A=[];return WF(r)&&r.assignedNodes?A=qA(r.assignedNodes()):Hn(r,HTMLIFrameElement)&&(!((n=r.contentDocument)===null||n===void 0)&&n.body)?A=qA(r.contentDocument.body.childNodes):A=qA(((i=r.shadowRoot)!==null&&i!==void 0?i:r).childNodes),A.length===0||Hn(r,HTMLVideoElement)||(yield A.reduce((a,s)=>a.then(()=>Ku(s,t)).then(o=>{o&&e.appendChild(o)}),Promise.resolve())),e})}function XF(r,e,t){const n=e.style;if(!n)return;const i=window.getComputedStyle(r);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):Ww(t).forEach(A=>{let a=i.getPropertyValue(A);A==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),Hn(r,HTMLIFrameElement)&&A==="display"&&a==="inline"&&(a="block"),A==="d"&&e.getAttribute("d")&&(a=`path(${e.getAttribute("d")})`),n.setProperty(A,a,i.getPropertyPriority(A))})}function YF(r,e){Hn(r,HTMLTextAreaElement)&&(e.innerHTML=r.value),Hn(r,HTMLInputElement)&&e.setAttribute("value",r.value)}function JF(r,e){if(Hn(r,HTMLSelectElement)){const t=e,n=Array.from(t.children).find(i=>r.value===i.getAttribute("value"));n&&n.setAttribute("selected","")}}function ZF(r,e,t){return Hn(e,Element)&&(XF(r,e,t),PF(r,e,t),YF(r,e),JF(r,e)),e}function eI(r,e){return je(this,null,function*(){const t=r.querySelectorAll?r.querySelectorAll("use"):[];if(t.length===0)return r;const n={};for(let A=0;A<t.length;A++){const s=t[A].getAttribute("xlink:href");if(s){const o=r.querySelector(s),l=document.querySelector(s);!o&&l&&!n[s]&&(n[s]=yield Ku(l,e,!0))}}const i=Object.values(n);if(i.length){const A="http://www.w3.org/1999/xhtml",a=document.createElementNS(A,"svg");a.setAttribute("xmlns",A),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const s=document.createElementNS(A,"defs");a.appendChild(s);for(let o=0;o<i.length;o++)s.appendChild(i[o]);r.appendChild(a)}return r})}function Ku(r,e,t){return je(this,null,function*(){return!t&&e.filter&&!e.filter(r)?null:Promise.resolve(r).then(n=>GF(n,e)).then(n=>qF(r,n,e)).then(n=>ZF(r,n,e)).then(n=>eI(n,e))})}const e1=/url\((['"]?)([^'"]+?)\1\)/g,tI=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,rI=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function nI(r){const e=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function iI(r){const e=[];return r.replace(e1,(t,n,i)=>(e.push(i),t)),e.filter(t=>!Ed(t))}function AI(r,e,t,n,i){return je(this,null,function*(){try{const A=t?SF(e,t):e,a=Cd(e);let s;return i||(s=yield Fd(A,a,n)),r.replace(nI(e),`$1${s}$3`)}catch(A){}return r})}function aI(r,{preferredFontFormat:e}){return e?r.replace(rI,t=>{for(;;){const[n,,i]=tI.exec(t)||[];if(!i)return"";if(i===e)return`src: ${n};`}}):r}function t1(r){return r.search(e1)!==-1}function r1(r,e,t){return je(this,null,function*(){if(!t1(r))return r;const n=aI(r,t);return iI(n).reduce((A,a)=>A.then(s=>AI(s,a,e,t)),Promise.resolve(n))})}function _s(r,e,t){return je(this,null,function*(){var n;const i=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue(r);if(i){const A=yield r1(i,null,t);return e.style.setProperty(r,A,e.style.getPropertyPriority(r)),!0}return!1})}function sI(r,e){return je(this,null,function*(){(yield _s("background",r,e))||(yield _s("background-image",r,e)),(yield _s("mask",r,e))||(yield _s("-webkit-mask",r,e))||(yield _s("mask-image",r,e))||(yield _s("-webkit-mask-image",r,e))})}function oI(r,e){return je(this,null,function*(){const t=Hn(r,HTMLImageElement);if(!(t&&!Ed(r.src))&&!(Hn(r,SVGImageElement)&&!Ed(r.href.baseVal)))return;const n=t?r.src:r.href.baseVal,i=yield Fd(n,Cd(n),e);yield new Promise((A,a)=>{r.onload=A,r.onerror=e.onImageErrorHandler?(...o)=>{try{A(e.onImageErrorHandler(...o))}catch(l){a(l)}}:a;const s=r;s.decode&&(s.decode=A),s.loading==="lazy"&&(s.loading="eager"),t?(r.srcset="",r.src=i):r.href.baseVal=i})})}function lI(r,e){return je(this,null,function*(){const n=qA(r.childNodes).map(i=>n1(i,e));yield Promise.all(n).then(()=>r)})}function n1(r,e){return je(this,null,function*(){Hn(r,Element)&&(yield sI(r,e),yield oI(r,e),yield lI(r,e))})}function uI(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(i=>{t[i]=n[i]}),r}const i1={};function A1(r){return je(this,null,function*(){let e=i1[r];if(e!=null)return e;const n=yield(yield fetch(r)).text();return e={url:r,cssText:n},i1[r]=e,e})}function a1(r,e){return je(this,null,function*(){let t=r.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,A=(t.match(/url\([^)]+\)/g)||[]).map(a=>je(this,null,function*(){let s=a.replace(n,"$1");return s.startsWith("https://")||(s=new URL(s,r.url).href),Jw(s,e.fetchRequestInit,({result:o})=>(t=t.replace(a,`url(${o})`),[a,o]))}));return Promise.all(A).then(()=>t)})}function s1(r){if(r==null)return[];const e=[],t=/(\/\*[\s\S]*?\*\/)/gi;let n=r.replace(t,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const o=i.exec(n);if(o===null)break;e.push(o[0])}n=n.replace(i,"");const A=/@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=A.exec(n);if(o===null){if(o=s.exec(n),o===null)break;A.lastIndex=s.lastIndex}else s.lastIndex=A.lastIndex;e.push(o[0])}return e}function cI(r,e){return je(this,null,function*(){const t=[],n=[];return r.forEach(i=>{if("cssRules"in i)try{qA(i.cssRules||[]).forEach((A,a)=>{if(A.type===CSSRule.IMPORT_RULE){let s=a+1;const o=A.href,l=A1(o).then(u=>a1(u,e)).then(u=>s1(u).forEach(h=>{try{i.insertRule(h,h.startsWith("@import")?s+=1:i.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:h,error:f})}})).catch(u=>{console.error("Error loading remote css",u.toString())});n.push(l)}})}catch(A){const a=r.find(s=>s.href==null)||document.styleSheets[0];i.href!=null&&n.push(A1(i.href).then(s=>a1(s,e)).then(s=>s1(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",A)}}),Promise.all(n).then(()=>(r.forEach(i=>{if("cssRules"in i)try{qA(i.cssRules||[]).forEach(A=>{t.push(A)})}catch(A){console.error(`Error while reading CSS rules from ${i.href}`,A)}}),t))})}function hI(r){return r.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>t1(e.style.getPropertyValue("src")))}function fI(r,e){return je(this,null,function*(){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");const t=qA(r.ownerDocument.styleSheets),n=yield cI(t,e);return hI(n)})}function o1(r){return r.trim().replace(/["']/g,"")}function dI(r){const e=new Set;function t(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(A=>{e.add(o1(A))}),Array.from(n.children).forEach(A=>{A instanceof HTMLElement&&t(A)})}return t(r),e}function l1(r,e){return je(this,null,function*(){const t=yield fI(r,e),n=dI(r);return(yield Promise.all(t.filter(A=>n.has(o1(A.style.fontFamily))).map(A=>{const a=A.parentStyleSheet?A.parentStyleSheet.href:null;return r1(A.cssText,a,e)}))).join(`
10
+ `)})}function pI(r,e){return je(this,null,function*(){const t=e.fontEmbedCSS!=null?e.fontEmbedCSS:e.skipFonts?null:yield l1(r,e);if(t){const n=document.createElement("style"),i=document.createTextNode(t);n.appendChild(i),r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n)}})}function u1(t){return je(this,arguments,function*(r,e={}){const{width:n,height:i}=xd(r,e),A=yield Ku(r,e,!0);return yield pI(A,e),yield n1(A,e),uI(A,e),yield NF(A,n,i)})}function Jo(t){return je(this,arguments,function*(r,e={}){const{width:n,height:i}=xd(r,e),A=yield u1(r,e),a=yield ju(A),s=document.createElement("canvas"),o=s.getContext("2d"),l=e.pixelRatio||TF(),u=e.canvasWidth||n,h=e.canvasHeight||i;return s.width=u*l,s.height=h*l,e.skipAutoScale||_F(s),s.style.width=`${u}`,s.style.height=`${h}`,e.backgroundColor&&(o.fillStyle=e.backgroundColor,o.fillRect(0,0,s.width,s.height)),o.drawImage(a,0,0,s.width,s.height),s})}function gI(t){return je(this,arguments,function*(r,e={}){const{width:n,height:i}=xd(r,e);return(yield Jo(r,e)).getContext("2d").getImageData(0,0,n,i).data})}function c1(t){return je(this,arguments,function*(r,e={}){return(yield Jo(r,e)).toDataURL()})}function h1(t){return je(this,arguments,function*(r,e={}){return(yield Jo(r,e)).toDataURL("image/jpeg",e.quality||1)})}function mI(t){return je(this,arguments,function*(r,e={}){const n=yield Jo(r,e);return yield LF(n)})}function vI(t){return je(this,arguments,function*(r,e={}){return l1(r,e)})}const wI=Object.freeze(Object.defineProperty({__proto__:null,getFontEmbedCSS:vI,toBlob:mI,toCanvas:Jo,toJpeg:h1,toPixelData:gI,toPng:c1,toSvg:u1},Symbol.toStringTag,{value:"Module"}));class yI{constructor(){Ee(this,"processedImages",new WeakSet);Ee(this,"processedBgElements",new WeakSet)}prepare(e){return je(this,null,function*(){const n=Array.from(document.querySelectorAll("img")).map(a=>this.processImage(a)),A=this.findBackgroundImageElements().map(a=>this.processBackgroundImage(a));yield Promise.all([...n,...A]),yield e(100)})}restore(){document.querySelectorAll("[data-original-bg]").forEach(t=>{if(t instanceof HTMLElement){const n=t.dataset.originalBg;n?t.style.backgroundImage=n:t.style.backgroundImage="",delete t.dataset.originalBg}})}processImage(e){return je(this,null,function*(){this.processedImages.has(e)||(this.processedImages.add(e),!e.src||e.src.startsWith("data:"))||!(e.src.startsWith(window.location.origin)||e.src.startsWith("/"))||e.complete||(yield this.waitForImageLoad(e,e.src))})}waitForImageLoad(e,t){return new Promise(n=>{if(e.complete){n();return}const i=setTimeout(()=>{console.warn("[IssuesReporter] 图片加载超时:",t),n()},3e3),A=()=>{clearTimeout(i),e.removeEventListener("load",a),e.removeEventListener("error",s)},a=()=>{A(),n()},s=()=>{A(),console.warn("[IssuesReporter] 图片加载失败:",t),n()};e.addEventListener("load",a),e.addEventListener("error",s)})}findBackgroundImageElements(){const e=[];return document.body.querySelectorAll("*").forEach(n=>{if(n instanceof HTMLElement){const i=n.getBoundingClientRect();if(i.width===0||i.height===0)return;const a=window.getComputedStyle(n).backgroundImage;a&&a!=="none"&&a.includes("url(")&&e.push(n)}}),e}processBackgroundImage(e){return je(this,null,function*(){if(this.processedBgElements.has(e))return;this.processedBgElements.add(e);const n=window.getComputedStyle(e).backgroundImage;if(!n||n==="none"||!n.includes("url("))return;const i=n.match(/url\(["']?([^"')]+)["']?\)/);if(!i)return;const A=i[1];if(!A.startsWith("data:"))try{const a=yield this.imageToDataUrl(A);a?(e.dataset.originalBg||(e.dataset.originalBg=e.style.backgroundImage||""),e.style.backgroundImage=`url(${a})`):e.dataset.brokenBg="true"}catch(a){console.warn("[IssuesReporter] 背景图片转换失败:",A,a),e.dataset.brokenBg="true"}})}imageToDataUrl(e){return je(this,null,function*(){return new Promise(t=>{const n=new Image;n.crossOrigin="anonymous";const i=setTimeout(()=>{console.warn("[IssuesReporter] 图片转换超时:",e),t(null)},5e3);n.onload=()=>{clearTimeout(i);try{const A=document.createElement("canvas");A.width=n.naturalWidth||n.width,A.height=n.naturalHeight||n.height;const a=A.getContext("2d");if(!a){t(null);return}a.drawImage(n,0,0),t(A.toDataURL("image/png"))}catch(A){console.warn("[IssuesReporter] Canvas 转换失败:",e,A),t(null)}},n.onerror=()=>{clearTimeout(i),console.warn("[IssuesReporter] 图片加载失败:",e),t(null)},n.src=e})})}}class bI{constructor(){Ee(this,"replacements",[])}prepare(){return je(this,null,function*(){this.replacements=[];const e=Array.from(document.querySelectorAll("canvas"));for(const t of e)try{const n=t.toDataURL("image/png"),i=document.createElement("img");i.src=n,i.style.cssText=window.getComputedStyle(t).cssText,i.width=t.width,i.height=t.height,i.style.width=t.style.width||`${t.width}px`,i.style.height=t.style.height||`${t.height}px`;const A=t.parentNode;if(A){const a=t.nextSibling;A.replaceChild(i,t),this.replacements.push({original:t,replacement:i,parent:A,nextSibling:a})}}catch(n){console.warn("[IssuesReporter] Canvas 转换失败:",n)}})}restore(){for(const{original:e,replacement:t,parent:n,nextSibling:i}of this.replacements)try{i?n.insertBefore(e,i):n.appendChild(e),t.parentNode&&t.parentNode.removeChild(t)}catch(A){console.warn("[IssuesReporter] 恢复 Canvas 失败:",A)}this.replacements=[]}}class BI{constructor(){Ee(this,"restorations",[])}apply(e){this.restorations=[];const t=this.findScrollContainers(e);if(t.length!==0)for(const n of t)try{const i=n.scrollTop,A=n.scrollLeft;if(i===0&&A===0)continue;const a=n.style.transform||"";n.style.transform=`${a?a+" ":""}translate(-${A}px, -${i}px)`,n.scrollTop=0,n.scrollLeft=0,this.restorations.push({element:n,originalScrollTop:i,originalScrollLeft:A,originalTransform:a})}catch(i){console.warn("[IssuesReporter] 同步滚动容器偏移失败:",i)}}restore(){if(this.restorations.length!==0){for(const e of this.restorations)try{e.element.style.transform=e.originalTransform,e.element.scrollTop=e.originalScrollTop,e.element.scrollLeft=e.originalScrollLeft}catch(t){console.warn("[IssuesReporter] 恢复滚动容器偏移失败:",t)}this.restorations=[]}}findScrollContainers(e){var A;const t=[];if(e&&e.length>0){for(const a of e)try{const s=Array.from(document.querySelectorAll(a));for(const o of s)o instanceof HTMLElement&&this.isScrollable(o)&&this.isAllowedElement(o)&&t.push(o)}catch(s){console.warn("[IssuesReporter] 滚动容器选择器无效:",a,s)}return t}const n=20,i=((A=document.body)==null?void 0:A.querySelectorAll("*"))||[];for(const a of Array.from(i))if(a instanceof HTMLElement&&this.isAllowedElement(a)&&this.isScrollable(a)&&(t.push(a),t.length>=n)){console.warn("[IssuesReporter] 自动检测到过多滚动容器,已截断至",n);break}return t}isAllowedElement(e){const t=e.tagName.toLowerCase();if(t==="body"||t==="html")return!1;const n=typeof e.className=="string"?e.className:"";if(n.includes("issues-reporter")||n.includes("bug-dialog")||n.includes("bug-dialog-overlay")||n.includes("floating-toolbar")||n.includes("toolbar-panel")||n.includes("annotation-canvas"))return!1;const i=window.getComputedStyle(e);return!(i.position==="fixed"||i.position==="sticky")}isScrollable(e){const t=window.getComputedStyle(e),n=t.overflowY,i=t.overflowX,A=(n==="auto"||n==="scroll")&&e.scrollHeight>e.clientHeight,a=(i==="auto"||i==="scroll")&&e.scrollWidth>e.clientWidth;return A||a}}class xI{captureVisibleIframes(){return je(this,null,function*(){const e=Array.from(document.querySelectorAll("iframe")),t=[];for(const n of e)try{const i=n.getBoundingClientRect();if(i.width===0||i.height===0)continue;const A=n.contentDocument,a=n.contentWindow;if(!A||!a||!A.body)continue;const{toPng:s}=yield Promise.resolve().then(()=>wI),o=yield s(A.body,{cacheBust:!0,pixelRatio:1,skipFonts:!1,imagePlaceholder:{width:1,height:1,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},filter:l=>{var u,h;if(l instanceof HTMLElement){const f=((h=(u=l.tagName)==null?void 0:u.toLowerCase)==null?void 0:h.call(u))||"";if(f==="style"||f==="script")return!1}if(l instanceof HTMLImageElement){if(l.complete&&l.naturalWidth===0)return!1;const f=a.location.origin;if(l.src&&!l.src.startsWith(f)&&!l.src.startsWith("data:"))return!1}return!0}});t.push({iframe:n,rect:i,dataUrl:o})}catch(i){console.warn("[IssuesReporter] 单个 iframe 截图失败:",i)}return t})}mergeScreenshots(e,t){return je(this,null,function*(){return new Promise(n=>{const i=new Image;i.onload=()=>{const A=document.createElement("canvas");A.width=i.width,A.height=i.height;const a=A.getContext("2d");if(!a){n(e);return}a.drawImage(i,0,0);const s=i.width/window.innerWidth,o=i.height/window.innerHeight;let l=t.length;if(l===0){n(A.toDataURL("image/png"));return}const u=()=>{l--,l<=0&&n(A.toDataURL("image/png"))};t.forEach(h=>{if(!h.dataUrl){u();return}const f=new Image;f.onload=()=>{const c=h.rect.left*s,g=h.rect.top*o,m=h.rect.width*s,y=h.rect.height*o;a.drawImage(f,c,g,m,y),u()},f.onerror=()=>{console.warn("[IssuesReporter] iframe 截图图片加载失败"),u()},f.src=h.dataUrl})},i.onerror=()=>n(e),i.src=e})})}}class CI{constructor(e={}){Ee(this,"windowMs");Ee(this,"threshold");Ee(this,"checkIntervalMs");Ee(this,"errorTimestamps",[]);Ee(this,"inStorm",!1);Ee(this,"recoveryTimer",null);var t,n,i;this.windowMs=(t=e.windowMs)!=null?t:6e4,this.threshold=(n=e.threshold)!=null?n:10,this.checkIntervalMs=(i=e.checkIntervalMs)!=null?i:5e3}record(){const e=Date.now();return this.errorTimestamps.push(e),this.pruneExpired(e),!this.inStorm&&this.errorTimestamps.length>=this.threshold&&(this.inStorm=!0,console.warn(`[IssuesReporter] 检测到错误风暴(${this.errorTimestamps.length} 个错误 / ${this.windowMs/1e3}s),暂停自动截图以避免页面卡顿`),this.startRecoveryCheck()),this.inStorm}isStorming(){return this.inStorm}pruneExpired(e){for(;this.errorTimestamps.length>0&&e-this.errorTimestamps[0]>this.windowMs;)this.errorTimestamps.shift()}startRecoveryCheck(){this.recoveryTimer||(this.recoveryTimer=setInterval(()=>{const e=Date.now();this.pruneExpired(e),this.errorTimestamps.length<this.threshold&&(this.inStorm=!1,this.recoveryTimer&&(clearInterval(this.recoveryTimer),this.recoveryTimer=null))},this.checkIntervalMs))}dispose(){this.recoveryTimer&&(clearInterval(this.recoveryTimer),this.recoveryTimer=null),this.errorTimestamps=[],this.inStorm=!1}}class f1{constructor(){Ee(this,"defaultOptions",{quality:.6,maxSize:300*1024,delay:0,showFlash:!1,scrollContainerSelectors:[],excludeSelectors:[]});Ee(this,"isCapturing",!1);Ee(this,"captureQueue",[]);Ee(this,"stormGuard",new CI);Ee(this,"excludeSelectors",[".issues-reporter-toolbar",".issues-reporter-dialog",".bug-create-dialog",".bug-list-dialog",".bug-detail-dialog"])}capture(e){return je(this,null,function*(){if(this.stormGuard.record())return null;if(this.isCapturing)return new Promise((t,n)=>{this.captureQueue.push({options:e,resolve:t,reject:n})});this.isCapturing=!0;try{return yield this.doCapture(e)}finally{this.isCapturing=!1,this.processQueue()}})}processQueue(){if(this.captureQueue.length===0)return;const e=this.captureQueue.shift();this.capture(e.options).then(e.resolve,e.reject)}doCapture(e){return je(this,null,function*(){const t=St(St({},this.defaultOptions),e),n=Date.now(),i=new yI,A=new bI,a=new BI,s=new xI;try{t.delay>0&&(yield this.delay(t.delay)),yield this.waitForPageStable(),yield this.waitForFonts(),t.showFlash&&this.showFlash(),a.apply(t.scrollContainerSelectors),yield i.prepare(this.delay.bind(this)),yield A.prepare();let o="",l=0;const u=2,h=t.excludeSelectors||[];for(;l<=u;)try{o=yield this.captureWithFallback(document.documentElement,t.quality,h);break}catch(g){if(l++,console.warn(`[IssuesReporter] 截图尝试 ${l} 失败:`,g),l<=u){const m=500*l;yield this.delay(m)}else console.warn("[IssuesReporter] 所有截图尝试都失败,使用降级方案"),o=yield this.createInfoScreenshot()}try{const g=yield s.captureVisibleIframes();g.some(m=>m.dataUrl)&&(o=yield s.mergeScreenshots(o,g))}catch(g){console.warn("[IssuesReporter] iframe 截图合成失败:",g)}t.maxSize>0&&this.getDataUrlSize(o)>t.maxSize&&(o=yield this.compressImage(o,t.maxSize));const f=yield this.getImageDimensions(o);return{url:o,size:this.getDataUrlSize(o),width:f.width,height:f.height,duration:Date.now()-n}}finally{a.restore(),i.restore(),A.restore()}})}captureWithFallback(i,A){return je(this,arguments,function*(e,t,n=[]){const a=window.pageXOffset||document.documentElement.scrollLeft||0,s=window.pageYOffset||document.documentElement.scrollTop||0,o=window.innerWidth,l=window.innerHeight;try{return yield c1(e,{cacheBust:!0,pixelRatio:1,skipFonts:!1,x:a,y:s,width:o,height:l,canvasWidth:o,canvasHeight:l,imagePlaceholder:{width:1,height:1,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},filter:this.createNodeFilter(n)})}catch(u){console.warn("[IssuesReporter] toPng 失败:",u),u instanceof Error&&console.warn("[IssuesReporter] toPng 错误详情:",u.message,u.stack)}try{return yield h1(e,{quality:t,cacheBust:!0,pixelRatio:1,skipFonts:!1,x:a,y:s,width:o,height:l,canvasWidth:o,canvasHeight:l,imagePlaceholder:{width:1,height:1,src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},filter:this.createNodeFilter(n)})}catch(u){console.warn("[IssuesReporter] toJpeg 失败:",u)}throw new Error("所有截图方式都失败")})}createNodeFilter(e=[]){const t=[...this.excludeSelectors,...e];return n=>{var i,A,a,s;if(n instanceof HTMLElement){const o=((A=(i=n.tagName)==null?void 0:i.toLowerCase)==null?void 0:A.call(i))||"";if(o==="style"||o==="script")return!1;for(const u of t)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("issues-reporter")||l.includes("bug-dialog")||l.includes("bug-dialog-overlay")||l.includes("floating-toolbar")||l.includes("toolbar-panel")||l.includes("annotation-canvas"))||n.dataset.brokenBg==="true")return!1}return!(n instanceof HTMLImageElement&&(n.dataset.brokenImage==="true"||n.complete&&n.naturalWidth===0||n.src&&!n.src.startsWith(window.location.origin)&&!n.src.startsWith("data:")))}}createInfoScreenshot(){return je(this,null,function*(){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("IssuesReporter 截图记录",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 i=120;return n.forEach(A=>{t.fillText(A,50,i),i+=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)}compressImage(e,t){return je(this,null,function*(){return new Promise(n=>{const i=new Image;i.src=e,i.onload=()=>{const A=document.createElement("canvas");A.width=i.width,A.height=i.height;const a=A.getContext("2d");if(!a){n(e);return}a.drawImage(i,0,0);let s=.6;const o=()=>{A.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()},i.onerror=()=>{n(e)}})})}getImageDimensions(e){return je(this,null,function*(){return new Promise(t=>{const n=new Image;n.src=e;const i=setTimeout(()=>{console.warn("[IssuesReporter] 获取图片尺寸超时"),t({width:0,height:0})},2e3);n.onload=()=>{clearTimeout(i),t({width:n.width,height:n.height})},n.onerror=()=>{clearTimeout(i),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=`
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100vw;
15
+ height: 100vh;
16
+ background: white;
17
+ opacity: 0;
18
+ z-index: 999999;
19
+ pointer-events: none;
20
+ animation: issuesReporterFlash 0.3s ease-out;
21
+ `;const t=document.createElement("style");t.textContent=`
22
+ @keyframes issuesReporterFlash {
23
+ 0% { opacity: 0; }
24
+ 50% { opacity: 0.5; }
25
+ 100% { opacity: 0; }
26
+ }
27
+ `,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))}waitForPageStable(){return je(this,null,function*(){document.readyState!=="complete"&&(yield new Promise(e=>{const t=()=>{document.readyState==="complete"?e():setTimeout(t,100)};t()})),yield this.delay(200)})}waitForFonts(){return je(this,null,function*(){if(typeof document!="undefined"&&"fonts"in document)try{yield document.fonts.ready}catch(e){console.warn("[IssuesReporter] 等待字体加载失败:",e)}})}}class d1{constructor(e="BDC"){Ee(this,"system");Ee(this,"cached",null);this.system=e}collect(){return this.cached||(this.cached=this.doCollect()),Yn(St({},this.cached),{url:typeof window!="undefined"?window.location.href:this.cached.url,timestamp:new Date().toISOString()})}refresh(){return this.cached=null,this.collect()}doCollect(){const e=typeof navigator!="undefined"?navigator.userAgent:"";return{system:this.system,browser:this.parseBrowser(e),url:typeof window!="undefined"?window.location.href:"",route:"",screenWidth:typeof screen!="undefined"?screen.width:0,screenHeight:typeof screen!="undefined"?screen.height:0,os:this.detectOS(e),timestamp:new Date().toISOString()}}parseBrowser(e){const t=e,n=/Edg\/([\d.]+)/.exec(t);if(n)return`Edge ${n[1]}`;const i=/Chrome\/([\d.]+)/.exec(t);if(i)return`Chrome ${i[1]}`;const A=/Firefox\/([\d.]+)/.exec(t);if(A)return`Firefox ${A[1]}`;const a=/Version\/([\d.]+).*Safari\//.exec(t);if(a)return`Safari ${a[1]}`;const s=/MSIE ([\d.]+)/.exec(t)||/Trident.*rv:([\d.]+)/.exec(t);return s?`IE ${s[1]}`:"Unknown"}detectOS(e){const t=e.toLowerCase();return t.includes("windows nt 10.0")?"Windows 10":t.includes("windows nt 6.3")?"Windows 8.1":t.includes("windows nt 6.2")?"Windows 8":t.includes("windows nt 6.1")?"Windows 7":t.includes("windows")?"Windows":t.includes("mac os x")||t.includes("macintosh")?"macOS":t.includes("iphone")||t.includes("ipad")||t.includes("ipod")?"iOS":t.includes("android")?"Android":t.includes("linux")?"Linux":"Unknown"}}class p1{detect(){return typeof window=="undefined"?"":this.detectVue3Global()||this.detectVue3Router()||this.detectVueDevTools()||this.detectVue2Dom()||this.detectVue2Scan()||this.detectReact()||this.detectHashRoute()||this.detectHistoryRoute()||this.getFullHref()}detectVue3Global(){var t,n;const e=window.__VUE_APP__;if((n=(t=e==null?void 0:e.config)==null?void 0:t.globalProperties)!=null&&n.$route){const i=e.config.globalProperties.$route;if(i.path&&i.path!=="/")return i.path;if(i.fullPath)return i.fullPath}return""}detectVue3Router(){var t;const e=window.__VUE_ROUTER__;if((t=e==null?void 0:e.currentRoute)!=null&&t.value){const n=e.currentRoute.value;if(n.path&&n.path!=="/")return n.path;if(n.fullPath)return n.fullPath}return""}detectVueDevTools(){var e,t,n;try{const i=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;if((n=(t=(e=i==null?void 0:i.Vue)==null?void 0:e.config)==null?void 0:t.globalProperties)!=null&&n.$route){const A=i.Vue.config.globalProperties.$route;if(A.path)return A.path;if(A.fullPath)return A.fullPath}}catch(i){}return""}detectVue2Dom(){try{const e=document.querySelector("#app")||document.body;if(!e)return"";const t=e.__vue__||e.__vue__;if(!t)return"";const n=this.extractRouteFromVue2Instance(t);if(n)return n}catch(e){}return""}detectVue2Scan(){try{const e=document.querySelectorAll("*");for(let t=0;t<e.length;t++){const n=e[t];if(n.__vue__){const i=this.extractRouteFromVue2Instance(n.__vue__);if(i)return i}}}catch(e){}return""}extractRouteFromVue2Instance(e){var t;if(e!=null&&e.$route){const n=e.$route;if(n.path)return n.path;if(n.fullPath)return n.fullPath}if((t=e==null?void 0:e.$router)!=null&&t.currentRoute){const n=e.$router.currentRoute;if(typeof n=="object"){if(n.path)return n.path;if(n.fullPath)return n.fullPath}}return""}detectReact(){const e=window.__REACT_APP__;return e!=null&&e.location?e.location.pathname:""}detectHashRoute(){const e=window.location.hash;if(e&&e.startsWith("#")){const t=e.slice(1).split("?")[0];if(t&&t!=="/")return t}return""}detectHistoryRoute(){const e=window.location.pathname;return e&&e!=="/"?e:""}getFullHref(){return typeof window!="undefined"?window.location.href:""}}class Id{constructor(e="BDC"){Ee(this,"envCollector");Ee(this,"routeDetector");this.envCollector=new d1(e),this.routeDetector=new p1}buildFromHttpError(e,t){const{classified:n}=e;return{id:this.generateId(),source:"http-error",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",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:{}}}}buildFromJsError(e,t){var A,a,s;const n=e.classified||this.fallbackClassified(e),i={type:"js-error",message:n.errorMessage,stack:e.stack,filename:(A=e.metadata)==null?void 0:A.filename,lineno:(a=e.metadata)==null?void 0:a.lineno,colno:(s=e.metadata)==null?void 0:s.colno};return this.buildNonHttpReport("js-error",n,e,i,t)}buildFromVueError(e,t){var A,a,s,o;const n=e.classified||this.fallbackClassified(e),i={type:"vue-error",message:n.errorMessage,stack:e.stack,componentName:(A=e.metadata)==null?void 0:A.componentName,filePath:(a=e.metadata)==null?void 0:a.filePath,props:(s=e.metadata)==null?void 0:s.props,info:(o=e.metadata)==null?void 0:o.info};return this.buildNonHttpReport("vue-error",n,e,i,t)}buildFromPromiseError(e,t){var A;const n=e.classified||this.fallbackClassified(e),i={type:"promise-error",message:n.errorMessage,stack:e.stack,reason:(A=e.metadata)==null?void 0:A.reason};return this.buildNonHttpReport("promise-error",n,e,i,t)}buildFromXhrError(e,t){var A;const n=e.classified||this.fallbackClassified(e),i={type:"xhr-error",url:e.url||"",method:e.method||"GET",status:e.status||0,statusText:(A=e.error)==null?void 0:A.statusText,response:e.response,duration:e.duration||0};return this.buildNonHttpReport("xhr-error",n,e,i,t)}buildFromConsoleError(e,t){var A;const n=e.classified||this.fallbackClassified(e),i={type:"console-error",args:((A=e.metadata)==null?void 0:A.args)||[]};return this.buildNonHttpReport("console-error",n,e,i,t)}buildFromResourceError(e,t){var A,a;const n=e.classified||this.fallbackClassified(e),i={type:"resource-error",tagName:((A=e.metadata)==null?void 0:A.tagName)||"",resourceUrl:((a=e.metadata)==null?void 0:a.resourceUrl)||e.url||""};return this.buildNonHttpReport("resource-error",n,e,i,t)}getRouteDetector(){return this.routeDetector}getEnvironmentCollector(){return this.envCollector}captureEnvironment(){const e=this.envCollector.collect();return Yn(St({},e),{route:this.routeDetector.detect()})}generateId(){const e=new Date,t=e.toISOString().slice(0,10).replace(/-/g,""),n=e.toTimeString().slice(0,8).replace(/:/g,""),i=Math.random().toString(36).substring(2,8);return`bug-${t}-${n}-${i}`}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),i=this.generateAutoDescription(e,t);return{title:n,autoDescribe:i,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"),i=this.routeDetector.detect(),A=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;let h="无";if(t.response!==void 0)try{h=typeof t.response=="object"?JSON.stringify(t.response,null,2):String(t.response)}catch(f){h=String(t.response)}return`${n},在"${i}"页面,调用接口 ${A} ${a} 时发生错误。
28
+ 请求参数:${s}
29
+ 响应状态:${o},错误信息:${l}
30
+ 响应信息:${h}
31
+ 请求耗时:${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:{}}}buildNonHttpReport(e,t,n,i,A){return{id:this.generateId(),source:e,createdAt:new Date().toISOString(),environment:this.captureEnvironment(),errorDetails:i,description:this.buildSourceDescription(t,n),screenshots:A?[A]:[],metadata:this.buildSourceMetadata(t,n)}}buildSourceDescription(e,t){return{title:this.generateSourceTitle(e,t),autoDescribe:this.generateSourceAutoDescription(e,t),manualDescribe:""}}generateSourceTitle(e,t){var i,A,a;const n=e.errorMessage;switch(t.source){case"js-error":return`JS 运行时错误${n?": "+this.truncate(n,40):""}`;case"vue-error":{const s=(i=t.metadata)==null?void 0:i.componentName;return`Vue 组件错误${s?": "+s:""}`}case"promise-error":return`未处理的 Promise 拒绝${n?": "+this.truncate(n,40):""}`;case"xhr-error":return`XHR 请求错误${t.status?" "+t.status:""}: ${t.url||"未知接口"}`;case"console-error":return`console.error: ${this.truncate(n,40)}`;case"resource-error":return`${((A=t.metadata)==null?void 0:A.tagName)||"资源"} 加载失败: ${((a=t.metadata)==null?void 0:a.resourceUrl)||t.url||""}`;default:return n||"未知错误"}}generateSourceAutoDescription(e,t){var A,a,s,o,l,u,h,f,c,g,m,y;const n=new Date().toLocaleString("zh-CN"),i=this.routeDetector.detect();switch(t.source){case"js-error":{const p=((A=t.metadata)==null?void 0:A.filename)||"未知文件",v=(a=t.metadata)==null?void 0:a.lineno,b=(s=t.metadata)==null?void 0:s.colno,I=v!==void 0?`${p}:${v}${b!==void 0?":"+b:""}`:p;return`${n},在"${i}"页面发生 JS 运行时错误。
32
+ 错误位置:${I}
33
+ 错误信息:${e.errorMessage}
34
+ 堆栈:
35
+ ${t.stack||"无"}`}case"vue-error":{const p=((o=t.metadata)==null?void 0:o.componentName)||"未知组件",v=((l=t.metadata)==null?void 0:l.filePath)||"未知路径",b=(u=t.metadata)!=null&&u.props?JSON.stringify(t.metadata.props,null,2):"无",I=((h=t.metadata)==null?void 0:h.info)||"未知生命周期";return`${n},在"${i}"页面,Vue 组件"${p}"发生错误。
36
+ 组件路径:${v}
37
+ 错误钩子:${I}
38
+ 组件 props:${b}
39
+ 错误信息:${e.errorMessage}
40
+ 堆栈:
41
+ ${t.stack||"无"}`}case"promise-error":{const p=((f=t.metadata)==null?void 0:f.reason)!==void 0?typeof t.metadata.reason=="object"?JSON.stringify(t.metadata.reason,null,2):String(t.metadata.reason):"无";return`${n},在"${i}"页面触发未处理的 Promise 拒绝。
42
+ 拒绝原因:${p}
43
+ 错误信息:${e.errorMessage}
44
+ 堆栈:
45
+ ${t.stack||"无"}`}case"xhr-error":{const p=t.method||"GET",v=t.url||"未知接口",b=t.status||0,I=t.duration||0;return`${n},在"${i}"页面,XHR 请求 ${p} ${v} 发生错误。
46
+ 状态码:${b}
47
+ 错误信息:${e.errorMessage}
48
+ 请求耗时:${I}ms`}case"console-error":{const p=(c=t.metadata)!=null&&c.args?t.metadata.args.map(v=>typeof v=="object"?JSON.stringify(v):String(v)).join(" "):"无";return`${n},在"${i}"页面触发 console.error。
49
+ 输出内容:${p}
50
+ 错误信息:${e.errorMessage}`}case"resource-error":{const p=((g=t.metadata)==null?void 0:g.tagName)||"未知资源",v=((m=t.metadata)==null?void 0:m.resourceUrl)||t.url||"",b=((y=t.metadata)==null?void 0:y.outerHTML)||"";return`${n},在"${i}"页面,${p} 资源加载失败。
51
+ 资源地址:${v}
52
+ outerHTML:${b}`}default:return`${n},在"${i}"页面发生错误。
53
+ 错误信息:${e.errorMessage}`}}buildSourceMetadata(e,t){var i,A;const n=[];switch(t.source){case"js-error":n.push("JS错误");break;case"vue-error":n.push("Vue错误"),(i=t.metadata)!=null&&i.componentName&&n.push(t.metadata.componentName);break;case"promise-error":n.push("Promise拒绝");break;case"xhr-error":n.push("XHR"),t.status&&(t.status>=500?n.push("服务器错误"):t.status>=400&&n.push("客户端错误"),n.push(String(t.status)));break;case"console-error":n.push("console.error");break;case"resource-error":n.push("资源加载失败"),(A=t.metadata)!=null&&A.tagName&&n.push(t.metadata.tagName);break}return{tags:n,reporterName:"",extra:St({},t.metadata||{})}}fallbackClassified(e){return{type:e.source,errorMessage:e.errorMessage||"未知错误",isIgnored:!1}}truncate(e,t){return e?e.length>t?e.slice(0,t)+"...":e:""}}class Vu{constructor(e={}){Ee(this,"maxCount");Ee(this,"bugs",[]);this.maxCount=e.maxCount||50}add(e){this.bugs.push(e),this.autoClean(),this.notifyChanged()}addMany(e){this.bugs.push(...e),this.autoClean(),this.notifyChanged()}update(e,t){const n=this.bugs.findIndex(i=>i.id===e);n!==-1&&(this.bugs[n]=St(St({},this.bugs[n]),t),this.notifyChanged())}delete(e){this.bugs=this.bugs.filter(t=>t.id!==e),this.notifyChanged()}deleteMany(e){this.bugs=this.bugs.filter(t=>!e.includes(t.id)),this.notifyChanged()}get(e){return this.bugs.find(t=>t.id===e)}getAll(){return[...this.bugs].reverse()}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(),i=new Date(e.dateRange.end).getTime();t=t.filter(A=>{const a=new Date(A.createdAt).getTime();return a>=n&&a<=i})}if(e.keyword){const n=e.keyword.toLowerCase();t=t.filter(i=>i.description.title.toLowerCase().includes(n)||i.description.autoDescribe.toLowerCase().includes(n)||i.description.manualDescribe.toLowerCase().includes(n))}return t.sort((n,i)=>{const A=new Date(n.createdAt).getTime();return new Date(i.createdAt).getTime()-A}),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.notifyChanged()}notifyChanged(){typeof window!="undefined"&&window.dispatchEvent(new CustomEvent("issues-reporter:count-changed",{detail:this.bugs.length}))}autoClean(){for(;this.bugs.length>this.maxCount;)this.bugs.shift()}}const EI=/[\\/:*?"<>|]/g;function Ud(r){return r.replace(EI,"_").replace(/\s+/g,"_").slice(0,64)}function g1(r,e){if(!e)return{prefix:r.environment.system,includeTimestamp:!0,includeShortId:!0};if(typeof e=="string")return{prefix:e,includeTimestamp:!0,includeShortId:!0};const t=e(r);return typeof t=="string"?{prefix:t,includeTimestamp:!0,includeShortId:!0}:St({prefix:r.environment.system,includeTimestamp:!0,includeShortId:!0},t)}function m1(r,e,t,n){const i=g1(r,n);if(i.formatter){const a=i.formatter(r,e);return`${Ud(a)}.${t}`}const A=[];if(i.prefix&&A.push(Ud(i.prefix)),i.includeShortId){const a=r.id.replace(/^bug-/,"").slice(0,14);A.push(a)}if(i.includeTimestamp){const a=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);A.push(a)}return A.length===0&&A.push("bug"),`${A.join("-")}.${t}`}function v1(r,e,t,n){const i=g1(r[0],n),A=i.prefix?Ud(i.prefix):"bug-report",a=new Date().toISOString().replace(/[:.]/g,"-").slice(0,19);return`${A}-batch-${r.length}-${a}.${t}`}class Zo{constructor(){Ee(this,"exporters",new Map)}register(e){this.exporters.has(e.format)&&console.warn(`[IssuesReporter] 导出器 ${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)}export(e,t){return je(this,null,function*(){const{format:n}=t,i=this.getExporter(n);if(!i)throw new Error(`不支持的导出格式: ${n}`);return i.export(e,t)})}exportSingle(e,t){return je(this,null,function*(){const{format:n}=t,i=this.getExporter(n);if(!i)throw new Error(`不支持的导出格式: ${n}`);return i.exportSingle(e,t)})}exportAndDownload(e,t){return je(this,null,function*(){const{format:n,fileName:i}=t,A=this.getExporter(n);if(!A)throw new Error(`不支持的导出格式: ${n}`);const a=yield A.export(e,t);let s;i?s=`${i}.${A.extension}`:s=v1(e,n,A.extension,t.fileNameResolver);let o;typeof a=="string"?o=new Blob([a],{type:A.mimeType}):o=a;const l=URL.createObjectURL(o),u=document.createElement("a");u.href=l,u.download=s,u.style.display="none",document.body.appendChild(u),u.click(),setTimeout(()=>{URL.revokeObjectURL(l),document.body.removeChild(u)},100)})}}let Td=null;function SI(){return Td||(Td=new Zo),Td}function FI(r,e,t){return m1(r,"word",e,t)}function II(r,e){return new File([r],e,{type:r.type||"application/octet-stream"})}function w1(r){return`http://${r.host}:${r.port}/upload-bug`}function y1(r,e,t,n){return je(this,null,function*(){const i=w1(e);try{const A=yield t.exportSingle(r),a=typeof A=="string"?new Blob([A],{type:t.mimeType}):A,s=FI(r,t.extension,n),o=II(a,s),l=new FormData;l.append("files",o),l.append("metadata",JSON.stringify({bugId:r.id,title:r.description.title,sentAt:new Date().toISOString()}));const u=yield fetch(i,{method:"POST",body:l});if(!u.ok)throw new Error(`HTTP ${u.status}: ${u.statusText}`);const h=yield u.json();if(!h.ok)throw new Error(h.error||"上传失败");return{ok:!0,saved:h.saved||[s],count:h.count||1}}catch(A){return{ok:!1,saved:[],count:0,error:A instanceof Error?A.message:String(A)}}})}function b1(r){return r&&["json","markdown","word","pdf"].includes(r)?r:"word"}class _d{constructor(){Ee(this,"name","JSON 导出器");Ee(this,"format","json");Ee(this,"extension","json");Ee(this,"mimeType","application/json")}export(e,t){return je(this,null,function*(){const n={version:"1.0",exportedAt:new Date().toISOString(),count:e.length,bugs:e};return JSON.stringify(n,null,2)})}exportSingle(e,t){return je(this,null,function*(){return JSON.stringify(e,null,2)})}}function B1(r){const e=[r.autoDescribe,r.manualDescribe].filter(Boolean).join(`
54
+
55
+ `).trim(),t=/(?:\*\*)?重现步骤(?:\*\*)?\s*[::]\s*([\s\S]*?)(?=(?:\*\*)?预期结果(?:\*\*)?|$)/.exec(e),n=/(?:\*\*)?预期结果(?:\*\*)?\s*[::]\s*([\s\S]*?)(?=(?:\*\*)?实际结果(?:\*\*)?|$)/.exec(e),i=/(?:\*\*)?实际结果(?:\*\*)?\s*[::]\s*([\s\S]*?)$/.exec(e),A=(t==null?void 0:t[1].trim())||"",a=(n==null?void 0:n[1].trim())||"",s=(i==null?void 0:i[1].trim())||"";let o=e;if(A||a||s){const l=Math.min(t?t.index:1/0,n?n.index:1/0,i?i.index:1/0);l>0&&l!==1/0?o=e.slice(0,l).trim():o=""}return{overview:o,steps:A,expected:a,actual:s}}function UI(r){return{critical:"致命",major:"严重",minor:"一般",suggestion:"建议"}[r]||r}function TI(r){return new Date(r).toLocaleString("zh-CN",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function _I(r){try{return JSON.stringify(r,null,2)}catch(e){return String(r)}}function x1(r,e){const t=[],n=r.metadata.extra||{},i=[{label:"Bug 编号",value:r.id},{label:"缺陷名称",value:r.description.title},{label:"状态",value:n.status||"激活"},{label:"严重程度",value:UI(r.severity)},{label:"创建时间",value:TI(r.createdAt)},{label:"所属子系统",value:r.environment.system||"-"}];if(n.product&&i.splice(2,0,{label:"产品",value:String(n.product)}),n.version&&i.splice(3,0,{label:"版本",value:String(n.version)}),n.testAccount&&i.push({label:"测试账号",value:String(n.testAccount)}),t.push({title:"基本信息",blocks:[{type:"table",rows:i}]}),t.push({title:"页面信息",blocks:[{type:"paragraph",text:`页面 URL:${r.environment.url||"-"}`},{type:"paragraph",text:`路由:${r.environment.route||"-"}`}]}),r.httpInfo){const s=[{label:"接口地址",value:`${r.httpInfo.requestMethod} ${r.httpInfo.requestUrl}`},{label:"请求入参",value:_I(r.httpInfo.requestParams)}];r.httpInfo.responseStatus&&s.push({label:"响应状态",value:String(r.httpInfo.responseStatus)}),r.httpInfo.responseCode&&s.push({label:"业务错误码",value:r.httpInfo.responseCode}),r.httpInfo.errorMessage&&s.push({label:"错误信息",value:r.httpInfo.errorMessage}),r.httpInfo.duration&&s.push({label:"请求耗时",value:`${r.httpInfo.duration}ms`}),t.push({title:"接口信息",blocks:[{type:"table",rows:s}]})}const A=B1(r.description),a=[];if(A.overview&&a.push({type:"paragraph",text:A.overview}),A.steps&&(a.push({type:"paragraph",text:"重现步骤:",bold:!0}),a.push({type:"paragraph",text:A.steps})),A.expected&&a.push({type:"paragraph",text:`预期结果:${A.expected}`,bold:!0}),A.actual&&a.push({type:"paragraph",text:`实际结果:${A.actual}`,bold:!0}),a.length>0&&t.push({title:"Bug 描述",blocks:a}),r.screenshots&&r.screenshots.length>0){const s=[];r.screenshots.forEach((o,l)=>{s.push({type:"image",url:o.url,caption:`截图 ${l+1}`})}),t.push({title:"截图",blocks:s})}return t}function Ld(r,e){const t=(e==null?void 0:e.title)||(r.length===1?r[0].description.title:"Bug 报告"),n=[];return r.length>1&&n.push({title:"目录",blocks:r.map((i,A)=>({type:"paragraph",text:`${A+1}. ${i.description.title}`}))}),r.forEach((i,A)=>{const a=x1(i);r.length>1&&n.push({blocks:[{type:"heading",level:1,text:`${A+1}. ${i.description.title}`}]}),n.push(...a),A<r.length-1&&n.push({blocks:[{type:"divider"}]})}),{title:t,sections:n}}class Qd{constructor(){Ee(this,"name","Markdown 导出器");Ee(this,"format","markdown");Ee(this,"extension","md");Ee(this,"mimeType","text/markdown")}export(e,t){return je(this,null,function*(){const{title:n,sections:i}=Ld(e,{title:t==null?void 0:t.title}),A=[];return A.push(`# ${n}`),A.push(""),e.length>1&&(A.push(`导出时间:${new Date().toLocaleString("zh-CN")}`),A.push(`Bug 总数:${e.length}`),A.push("")),i.forEach(a=>{a.title&&(A.push(`## ${a.title}`),A.push("")),a.blocks.forEach(s=>{switch(s.type){case"heading":A.push(`${"#".repeat(s.level)} ${this.escapeMarkdown(s.text)}`),A.push("");break;case"paragraph":s.bold?A.push(`**${this.escapeMarkdown(s.text)}**`):A.push(this.escapeMarkdown(s.text)),A.push("");break;case"table":A.push("| 字段 | 值 |"),A.push("|------|------|"),s.rows.forEach(o=>{A.push(`| **${this.escapeMarkdown(o.label)}** | ${this.escapeMarkdown(o.value)} |`)}),A.push("");break;case"image":A.push(`![${this.escapeMarkdown(s.caption||"截图")}](${s.url})`),A.push("");break;case"divider":A.push("---"),A.push("");break}})}),A.join(`
56
+ `)})}exportSingle(e,t){return je(this,null,function*(){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 Nd{constructor(){Ee(this,"name","CSV 导出器");Ee(this,"format","csv");Ee(this,"extension","csv");Ee(this,"mimeType","text/csv")}export(e,t){return je(this,null,function*(){const n=[],i=["ID","来源","严重程度","创建时间","子系统","页面 URL","路由","标题","自动描述","手动描述","接口地址","请求方法","请求入参","响应状态","业务错误码","错误信息","请求耗时(ms)","标签","截图数量"];return n.push(i.map(A=>this.escapeCsv(A)).join(",")),e.forEach(A=>{var s,o,l,u,h,f,c;const a=[A.id,this.getSourceLabel(A.source),this.getSeverityLabel(A.severity),new Date(A.createdAt).toLocaleString("zh-CN"),A.environment.system,A.environment.url,A.environment.route,A.description.title,A.description.autoDescribe,A.description.manualDescribe,((s=A.httpInfo)==null?void 0:s.requestUrl)||"",((o=A.httpInfo)==null?void 0:o.requestMethod)||"",A.httpInfo?JSON.stringify(A.httpInfo.requestParams):"",((l=A.httpInfo)==null?void 0:l.responseStatus)||"",((u=A.httpInfo)==null?void 0:u.responseCode)||"",((h=A.httpInfo)==null?void 0:h.errorMessage)||"",((f=A.httpInfo)==null?void 0:f.duration)||"",A.metadata.tags.join(";"),((c=A.screenshots)==null?void 0:c.length)||0];n.push(a.map(g=>this.escapeCsv(String(g))).join(","))}),"\uFEFF"+n.join(`
57
+ `)})}exportSingle(e,t){return je(this,null,function*(){return this.export([e],t)})}escapeCsv(e){return e.includes(",")||e.includes(`
58
+ `)||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 LI=Object.defineProperty,QI=Object.defineProperties,NI=Object.getOwnPropertyDescriptors,C1=Object.getOwnPropertySymbols,RI=Object.prototype.hasOwnProperty,OI=Object.prototype.propertyIsEnumerable,Rd=(r,e,t)=>e in r?LI(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,_t=(r,e)=>{for(var t in e||(e={}))RI.call(e,t)&&Rd(r,t,e[t]);if(C1)for(var t of C1(e))OI.call(e,t)&&Rd(r,t,e[t]);return r},XA=(r,e)=>QI(r,NI(e)),Qe=(r,e,t)=>(Rd(r,typeof e!="symbol"?e+"":e,t),t),zu=(r,e,t)=>new Promise((n,i)=>{var A=o=>{try{s(t.next(o))}catch(l){i(l)}},a=o=>{try{s(t.throw(o))}catch(l){i(l)}},s=o=>o.done?n(o.value):Promise.resolve(o.value).then(A,a);s((t=t.apply(r,e)).next())});class $u{constructor(e){Qe(this,"rootKey"),this.rootKey=e}}const kI=Object.seal({});class Le extends $u{constructor(e){super(e),Qe(this,"root"),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const n=this.root.map(i=>i instanceof $u?i.prepForXml(e):i).filter(i=>i!==void 0);return e.stack.pop(),{[this.rootKey]:n.length?n.length===1&&((t=n[0])!=null&&t._attr)?n[0]:n:kI}}addChildElement(e){return this.root.push(e),this}}class gA extends Le{prepForXml(e){const t=super.prepForXml(e);if(t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}}class tt extends $u{constructor(e){super("_attr"),Qe(this,"xmlKeys"),this.root=e}prepForXml(e){const t={};return Object.keys(this.root).forEach(n=>{const i=this.root[n];if(i!==void 0){const A=this.xmlKeys&&this.xmlKeys[n]||n;t[A]=i}}),{_attr:t}}}class mA extends $u{constructor(e){super("_attr"),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:n})=>n!==void 0).reduce((n,{key:i,value:A})=>XA(_t({},n),{[i]:A}),{})}}}class vr extends tt{constructor(){super(...arguments),Qe(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 Ji=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function E1(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var S1={},Od={exports:{}},Ls=typeof Reflect=="object"?Reflect:null,F1=Ls&&typeof Ls.apply=="function"?Ls.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Gu;Ls&&typeof Ls.ownKeys=="function"?Gu=Ls.ownKeys:Object.getOwnPropertySymbols?Gu=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Gu=function(e){return Object.getOwnPropertyNames(e)};function PI(r){console&&console.warn&&console.warn(r)}var I1=Number.isNaN||function(e){return e!==e};function Yt(){Yt.init.call(this)}Od.exports=Yt,Od.exports.once=jI,Yt.EventEmitter=Yt,Yt.prototype._events=void 0,Yt.prototype._eventsCount=0,Yt.prototype._maxListeners=void 0;var U1=10;function Wu(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Yt,"defaultMaxListeners",{enumerable:!0,get:function(){return U1},set:function(r){if(typeof r!="number"||r<0||I1(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");U1=r}}),Yt.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},Yt.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||I1(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 T1(r){return r._maxListeners===void 0?Yt.defaultMaxListeners:r._maxListeners}Yt.prototype.getMaxListeners=function(){return T1(this)},Yt.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e==="error",A=this._events;if(A!==void 0)i=i&&A.error===void 0;else if(!i)return!1;if(i){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=A[e];if(o===void 0)return!1;if(typeof o=="function")F1(o,this,t);else for(var l=o.length,u=R1(o,l),n=0;n<l;++n)F1(u[n],this,t);return!0};function _1(r,e,t,n){var i,A,a;if(Wu(t),A=r._events,A===void 0?(A=r._events=Object.create(null),r._eventsCount=0):(A.newListener!==void 0&&(r.emit("newListener",e,t.listener?t.listener:t),A=r._events),a=A[e]),a===void 0)a=A[e]=t,++r._eventsCount;else if(typeof a=="function"?a=A[e]=n?[t,a]:[a,t]:n?a.unshift(t):a.push(t),i=T1(r),i>0&&a.length>i&&!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,PI(s)}return r}Yt.prototype.addListener=function(e,t){return _1(this,e,t,!1)},Yt.prototype.on=Yt.prototype.addListener,Yt.prototype.prependListener=function(e,t){return _1(this,e,t,!0)};function DI(){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 L1(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},i=DI.bind(n);return i.listener=t,n.wrapFn=i,i}Yt.prototype.once=function(e,t){return Wu(t),this.on(e,L1(this,e,t)),this},Yt.prototype.prependOnceListener=function(e,t){return Wu(t),this.prependListener(e,L1(this,e,t)),this},Yt.prototype.removeListener=function(e,t){var n,i,A,a,s;if(Wu(t),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(A=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,A=a;break}if(A<0)return this;A===0?n.shift():HI(n,A),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,s||t)}return this},Yt.prototype.off=Yt.prototype.removeListener,Yt.prototype.removeAllListeners=function(e){var t,n,i;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 A=Object.keys(n),a;for(i=0;i<A.length;++i)a=A[i],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(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this};function Q1(r,e,t){var n=r._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?t?[i.listener||i]:[i]:t?MI(i):R1(i,i.length)}Yt.prototype.listeners=function(e){return Q1(this,e,!0)},Yt.prototype.rawListeners=function(e){return Q1(this,e,!1)},Yt.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):N1.call(r,e)},Yt.prototype.listenerCount=N1;function N1(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}Yt.prototype.eventNames=function(){return this._eventsCount>0?Gu(this._events):[]};function R1(r,e){for(var t=new Array(e),n=0;n<e;++n)t[n]=r[n];return t}function HI(r,e){for(;e+1<r.length;e++)r[e]=r[e+1];r.pop()}function MI(r){for(var e=new Array(r.length),t=0;t<e.length;++t)e[t]=r[t].listener||r[t];return e}function jI(r,e){return new Promise(function(t,n){function i(a){r.removeListener(e,A),n(a)}function A(){typeof r.removeListener=="function"&&r.removeListener("error",i),t([].slice.call(arguments))}O1(r,e,A,{once:!0}),e!=="error"&&KI(r,i,{once:!0})})}function KI(r,e,t){typeof r.on=="function"&&O1(r,"error",e,t)}function O1(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 i(A){n.once&&r.removeEventListener(e,i),t(A)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r)}var kd=Od.exports,Pd={exports:{}};typeof Object.create=="function"?Pd.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Pd.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 Da=Pd.exports;function VI(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var k1={exports:{}},Fr=k1.exports={},Zi,eA;function Dd(){throw new Error("setTimeout has not been defined")}function Hd(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Zi=setTimeout:Zi=Dd}catch(r){Zi=Dd}try{typeof clearTimeout=="function"?eA=clearTimeout:eA=Hd}catch(r){eA=Hd}})();function P1(r){if(Zi===setTimeout)return setTimeout(r,0);if((Zi===Dd||!Zi)&&setTimeout)return Zi=setTimeout,setTimeout(r,0);try{return Zi(r,0)}catch(e){try{return Zi.call(null,r,0)}catch(t){return Zi.call(this,r,0)}}}function zI(r){if(eA===clearTimeout)return clearTimeout(r);if((eA===Hd||!eA)&&clearTimeout)return eA=clearTimeout,clearTimeout(r);try{return eA(r)}catch(e){try{return eA.call(null,r)}catch(t){return eA.call(this,r)}}}var vA=[],Qs=!1,Ha,qu=-1;function $I(){!Qs||!Ha||(Qs=!1,Ha.length?vA=Ha.concat(vA):qu=-1,vA.length&&D1())}function D1(){if(!Qs){var r=P1($I);Qs=!0;for(var e=vA.length;e;){for(Ha=vA,vA=[];++qu<e;)Ha&&Ha[qu].run();qu=-1,e=vA.length}Ha=null,Qs=!1,zI(r)}}Fr.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];vA.push(new H1(r,e)),vA.length===1&&!Qs&&P1(D1)};function H1(r,e){this.fun=r,this.array=e}H1.prototype.run=function(){this.fun.apply(null,this.array)},Fr.title="browser",Fr.browser=!0,Fr.env={},Fr.argv=[],Fr.version="",Fr.versions={};function wA(){}Fr.on=wA,Fr.addListener=wA,Fr.once=wA,Fr.off=wA,Fr.removeListener=wA,Fr.removeAllListeners=wA,Fr.emit=wA,Fr.prependListener=wA,Fr.prependOnceListener=wA,Fr.listeners=function(r){return[]},Fr.binding=function(r){throw new Error("process.binding is not supported")},Fr.cwd=function(){return"/"},Fr.chdir=function(r){throw new Error("process.chdir is not supported")},Fr.umask=function(){return 0};var GI=k1.exports;const Tt=VI(GI);var Md,M1;function j1(){return M1||(M1=1,Md=kd.EventEmitter),Md}var jd={},el={},K1;function WI(){if(K1)return el;K1=1,el.byteLength=s,el.toByteArray=l,el.fromByteArray=f;for(var r=[],e=[],t=typeof Uint8Array!="undefined"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,A=n.length;i<A;++i)r[i]=n[i],e[n.charCodeAt(i)]=i;e[45]=62,e[95]=63;function a(c){var g=c.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=c.indexOf("=");m===-1&&(m=g);var y=m===g?0:4-m%4;return[m,y]}function s(c){var g=a(c),m=g[0],y=g[1];return(m+y)*3/4-y}function o(c,g,m){return(g+m)*3/4-m}function l(c){var g,m=a(c),y=m[0],p=m[1],v=new t(o(c,y,p)),b=0,I=p>0?y-4:y,N;for(N=0;N<I;N+=4)g=e[c.charCodeAt(N)]<<18|e[c.charCodeAt(N+1)]<<12|e[c.charCodeAt(N+2)]<<6|e[c.charCodeAt(N+3)],v[b++]=g>>16&255,v[b++]=g>>8&255,v[b++]=g&255;return p===2&&(g=e[c.charCodeAt(N)]<<2|e[c.charCodeAt(N+1)]>>4,v[b++]=g&255),p===1&&(g=e[c.charCodeAt(N)]<<10|e[c.charCodeAt(N+1)]<<4|e[c.charCodeAt(N+2)]>>2,v[b++]=g>>8&255,v[b++]=g&255),v}function u(c){return r[c>>18&63]+r[c>>12&63]+r[c>>6&63]+r[c&63]}function h(c,g,m){for(var y,p=[],v=g;v<m;v+=3)y=(c[v]<<16&16711680)+(c[v+1]<<8&65280)+(c[v+2]&255),p.push(u(y));return p.join("")}function f(c){for(var g,m=c.length,y=m%3,p=[],v=16383,b=0,I=m-y;b<I;b+=v)p.push(h(c,b,b+v>I?I:b+v));return y===1?(g=c[m-1],p.push(r[g>>2]+r[g<<4&63]+"==")):y===2&&(g=(c[m-2]<<8)+c[m-1],p.push(r[g>>10]+r[g>>4&63]+r[g<<2&63]+"=")),p.join("")}return el}var Xu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var V1;function qI(){return V1||(V1=1,Xu.read=function(r,e,t,n,i){var A,a,s=i*8-n-1,o=(1<<s)-1,l=o>>1,u=-7,h=t?i-1:0,f=t?-1:1,c=r[e+h];for(h+=f,A=c&(1<<-u)-1,c>>=-u,u+=s;u>0;A=A*256+r[e+h],h+=f,u-=8);for(a=A&(1<<-u)-1,A>>=-u,u+=n;u>0;a=a*256+r[e+h],h+=f,u-=8);if(A===0)A=1-l;else{if(A===o)return a?NaN:(c?-1:1)*(1/0);a=a+Math.pow(2,n),A=A-l}return(c?-1:1)*a*Math.pow(2,A-n)},Xu.write=function(r,e,t,n,i,A){var a,s,o,l=A*8-i-1,u=(1<<l)-1,h=u>>1,f=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=n?0:A-1,g=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+=f/o:e+=f*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,i),a=a+h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;r[t+c]=s&255,c+=g,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;r[t+c]=a&255,c+=g,a/=256,l-=8);r[t+c-g]|=m*128}),Xu}/*!
59
+ * The buffer module from node.js, for the browser.
60
+ *
61
+ * @author Feross Aboukhadijeh <https://feross.org>
62
+ * @license MIT
63
+ */var z1;function Yu(){return z1||(z1=1,function(r){var e=WI(),t=qI(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=s,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var i=2147483647;r.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=A(),!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&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 A(){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(C){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>i)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,C){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,C)}s.poolSize=8192;function o(U,B,C){if(typeof U=="string")return f(U,B);if(ArrayBuffer.isView(U))return g(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(ve(U,ArrayBuffer)||U&&ve(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ve(U,SharedArrayBuffer)||U&&ve(U.buffer,SharedArrayBuffer)))return m(U,B,C);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var R=U.valueOf&&U.valueOf();if(R!=null&&R!==U)return s.from(R,B,C);var ae=y(U);if(ae)return ae;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return s.from(U[Symbol.toPrimitive]("string"),B,C);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,C){return o(U,B,C)},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,C){return l(U),U<=0?a(U):B!==void 0?typeof C=="string"?a(U).fill(B,C):a(U).fill(B):a(U)}s.alloc=function(U,B,C){return u(U,B,C)};function h(U){return l(U),a(U<0?0:p(U)|0)}s.allocUnsafe=function(U){return h(U)},s.allocUnsafeSlow=function(U){return h(U)};function f(U,B){if((typeof B!="string"||B==="")&&(B="utf8"),!s.isEncoding(B))throw new TypeError("Unknown encoding: "+B);var C=b(U,B)|0,R=a(C),ae=R.write(U,B);return ae!==C&&(R=R.slice(0,ae)),R}function c(U){for(var B=U.length<0?0:p(U.length)|0,C=a(B),R=0;R<B;R+=1)C[R]=U[R]&255;return C}function g(U){if(ve(U,Uint8Array)){var B=new Uint8Array(U);return m(B.buffer,B.byteOffset,B.byteLength)}return c(U)}function m(U,B,C){if(B<0||U.byteLength<B)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<B+(C||0))throw new RangeError('"length" is outside of buffer bounds');var R;return B===void 0&&C===void 0?R=new Uint8Array(U):C===void 0?R=new Uint8Array(U,B):R=new Uint8Array(U,B,C),Object.setPrototypeOf(R,s.prototype),R}function y(U){if(s.isBuffer(U)){var B=p(U.length)|0,C=a(B);return C.length===0||U.copy(C,0,0,B),C}if(U.length!==void 0)return typeof U.length!="number"||k(U.length)?a(0):c(U);if(U.type==="Buffer"&&Array.isArray(U.data))return c(U.data)}function p(U){if(U>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return U|0}function v(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,C){if(ve(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),ve(C,Uint8Array)&&(C=s.from(C,C.offset,C.byteLength)),!s.isBuffer(B)||!s.isBuffer(C))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===C)return 0;for(var R=B.length,ae=C.length,fe=0,ue=Math.min(R,ae);fe<ue;++fe)if(B[fe]!==C[fe]){R=B[fe],ae=C[fe];break}return R<ae?-1:ae<R?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,C){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return s.alloc(0);var R;if(C===void 0)for(C=0,R=0;R<B.length;++R)C+=B[R].length;var ae=s.allocUnsafe(C),fe=0;for(R=0;R<B.length;++R){var ue=B[R];if(ve(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)||ve(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 C=U.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&C===0)return 0;for(var ae=!1;;)switch(B){case"ascii":case"latin1":case"binary":return C;case"utf8":case"utf-8":return Q(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C*2;case"hex":return C>>>1;case"base64":return X(U).length;default:if(ae)return R?-1:Q(U).length;B=(""+B).toLowerCase(),ae=!0}}s.byteLength=b;function I(U,B,C){var R=!1;if((B===void 0||B<0)&&(B=0),B>this.length||((C===void 0||C>this.length)&&(C=this.length),C<=0)||(C>>>=0,B>>>=0,C<=B))return"";for(U||(U="utf8");;)switch(U){case"hex":return W(this,B,C);case"utf8":case"utf-8":return F(this,B,C);case"ascii":return z(this,B,C);case"latin1":case"binary":return oe(this,B,C);case"base64":return K(this,B,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,B,C);default:if(R)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),R=!0}}s.prototype._isBuffer=!0;function N(U,B,C){var R=U[B];U[B]=U[C],U[C]=R}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 C=0;C<B;C+=2)N(this,C,C+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 C=0;C<B;C+=4)N(this,C,C+3),N(this,C+1,C+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 C=0;C<B;C+=8)N(this,C,C+7),N(this,C+1,C+6),N(this,C+2,C+5),N(this,C+3,C+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="",C=r.INSPECT_MAX_BYTES;return B=this.toString("hex",0,C).replace(/(.{2})/g,"$1 ").trim(),this.length>C&&(B+=" ... "),"<Buffer "+B+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(B,C,R,ae,fe){if(ve(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(C===void 0&&(C=0),R===void 0&&(R=B?B.length:0),ae===void 0&&(ae=0),fe===void 0&&(fe=this.length),C<0||R>B.length||ae<0||fe>this.length)throw new RangeError("out of range index");if(ae>=fe&&C>=R)return 0;if(ae>=fe)return-1;if(C>=R)return 1;if(C>>>=0,R>>>=0,ae>>>=0,fe>>>=0,this===B)return 0;for(var ue=fe-ae,xe=R-C,Ue=Math.min(ue,xe),Ie=this.slice(ae,fe),ke=B.slice(C,R),ze=0;ze<Ue;++ze)if(Ie[ze]!==ke[ze]){ue=Ie[ze],xe=ke[ze];break}return ue<xe?-1:xe<ue?1:0};function M(U,B,C,R,ae){if(U.length===0)return-1;if(typeof C=="string"?(R=C,C=0):C>2147483647?C=2147483647:C<-2147483648&&(C=-2147483648),C=+C,k(C)&&(C=ae?0:U.length-1),C<0&&(C=U.length+C),C>=U.length){if(ae)return-1;C=U.length-1}else if(C<0)if(ae)C=0;else return-1;if(typeof B=="string"&&(B=s.from(B,R)),s.isBuffer(B))return B.length===0?-1:O(U,B,C,R,ae);if(typeof B=="number")return B=B&255,typeof Uint8Array.prototype.indexOf=="function"?ae?Uint8Array.prototype.indexOf.call(U,B,C):Uint8Array.prototype.lastIndexOf.call(U,B,C):O(U,[B],C,R,ae);throw new TypeError("val must be string, number or Buffer")}function O(U,B,C,R,ae){var fe=1,ue=U.length,xe=B.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(U.length<2||B.length<2)return-1;fe=2,ue/=2,xe/=2,C/=2}function Ue(rt,ft){return fe===1?rt[ft]:rt.readUInt16BE(ft*fe)}var Ie;if(ae){var ke=-1;for(Ie=C;Ie<ue;Ie++)if(Ue(U,Ie)===Ue(B,ke===-1?0:Ie-ke)){if(ke===-1&&(ke=Ie),Ie-ke+1===xe)return ke*fe}else ke!==-1&&(Ie-=Ie-ke),ke=-1}else for(C+xe>ue&&(C=ue-xe),Ie=C;Ie>=0;Ie--){for(var ze=!0,Xe=0;Xe<xe;Xe++)if(Ue(U,Ie+Xe)!==Ue(B,Xe)){ze=!1;break}if(ze)return Ie}return-1}s.prototype.includes=function(B,C,R){return this.indexOf(B,C,R)!==-1},s.prototype.indexOf=function(B,C,R){return M(this,B,C,R,!0)},s.prototype.lastIndexOf=function(B,C,R){return M(this,B,C,R,!1)};function P(U,B,C,R){C=Number(C)||0;var ae=U.length-C;R?(R=Number(R),R>ae&&(R=ae)):R=ae;var fe=B.length;R>fe/2&&(R=fe/2);for(var ue=0;ue<R;++ue){var xe=parseInt(B.substr(ue*2,2),16);if(k(xe))return ue;U[C+ue]=xe}return ue}function _(U,B,C,R){return ne(Q(B,U.length-C),U,C,R)}function G(U,B,C,R){return ne(te(B),U,C,R)}function D(U,B,C,R){return ne(X(B),U,C,R)}function S(U,B,C,R){return ne(se(B,U.length-C),U,C,R)}s.prototype.write=function(B,C,R,ae){if(C===void 0)ae="utf8",R=this.length,C=0;else if(R===void 0&&typeof C=="string")ae=C,R=this.length,C=0;else if(isFinite(C))C=C>>>0,isFinite(R)?(R=R>>>0,ae===void 0&&(ae="utf8")):(ae=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var fe=this.length-C;if((R===void 0||R>fe)&&(R=fe),B.length>0&&(R<0||C<0)||C>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var ue=!1;;)switch(ae){case"hex":return P(this,B,C,R);case"utf8":case"utf-8":return _(this,B,C,R);case"ascii":case"latin1":case"binary":return G(this,B,C,R);case"base64":return D(this,B,C,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,B,C,R);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,C){return B===0&&C===U.length?e.fromByteArray(U):e.fromByteArray(U.slice(B,C))}function F(U,B,C){C=Math.min(U.length,C);for(var R=[],ae=B;ae<C;){var fe=U[ae],ue=null,xe=fe>239?4:fe>223?3:fe>191?2:1;if(ae+xe<=C){var Ue,Ie,ke,ze;switch(xe){case 1:fe<128&&(ue=fe);break;case 2:Ue=U[ae+1],(Ue&192)===128&&(ze=(fe&31)<<6|Ue&63,ze>127&&(ue=ze));break;case 3:Ue=U[ae+1],Ie=U[ae+2],(Ue&192)===128&&(Ie&192)===128&&(ze=(fe&15)<<12|(Ue&63)<<6|Ie&63,ze>2047&&(ze<55296||ze>57343)&&(ue=ze));break;case 4:Ue=U[ae+1],Ie=U[ae+2],ke=U[ae+3],(Ue&192)===128&&(Ie&192)===128&&(ke&192)===128&&(ze=(fe&15)<<18|(Ue&63)<<12|(Ie&63)<<6|ke&63,ze>65535&&ze<1114112&&(ue=ze))}}ue===null?(ue=65533,xe=1):ue>65535&&(ue-=65536,R.push(ue>>>10&1023|55296),ue=56320|ue&1023),R.push(ue),ae+=xe}return Z(R)}var ee=4096;function Z(U){var B=U.length;if(B<=ee)return String.fromCharCode.apply(String,U);for(var C="",R=0;R<B;)C+=String.fromCharCode.apply(String,U.slice(R,R+=ee));return C}function z(U,B,C){var R="";C=Math.min(U.length,C);for(var ae=B;ae<C;++ae)R+=String.fromCharCode(U[ae]&127);return R}function oe(U,B,C){var R="";C=Math.min(U.length,C);for(var ae=B;ae<C;++ae)R+=String.fromCharCode(U[ae]);return R}function W(U,B,C){var R=U.length;(!B||B<0)&&(B=0),(!C||C<0||C>R)&&(C=R);for(var ae="",fe=B;fe<C;++fe)ae+=de[U[fe]];return ae}function ce(U,B,C){for(var R=U.slice(B,C),ae="",fe=0;fe<R.length-1;fe+=2)ae+=String.fromCharCode(R[fe]+R[fe+1]*256);return ae}s.prototype.slice=function(B,C){var R=this.length;B=~~B,C=C===void 0?R:~~C,B<0?(B+=R,B<0&&(B=0)):B>R&&(B=R),C<0?(C+=R,C<0&&(C=0)):C>R&&(C=R),C<B&&(C=B);var ae=this.subarray(B,C);return Object.setPrototypeOf(ae,s.prototype),ae};function ie(U,B,C){if(U%1!==0||U<0)throw new RangeError("offset is not uint");if(U+B>C)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(B,C,R){B=B>>>0,C=C>>>0,R||ie(B,C,this.length);for(var ae=this[B],fe=1,ue=0;++ue<C&&(fe*=256);)ae+=this[B+ue]*fe;return ae},s.prototype.readUintBE=s.prototype.readUIntBE=function(B,C,R){B=B>>>0,C=C>>>0,R||ie(B,C,this.length);for(var ae=this[B+--C],fe=1;C>0&&(fe*=256);)ae+=this[B+--C]*fe;return ae},s.prototype.readUint8=s.prototype.readUInt8=function(B,C){return B=B>>>0,C||ie(B,1,this.length),this[B]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(B,C){return B=B>>>0,C||ie(B,2,this.length),this[B]|this[B+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(B,C){return B=B>>>0,C||ie(B,2,this.length),this[B]<<8|this[B+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(B,C){return B=B>>>0,C||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,C){return B=B>>>0,C||ie(B,4,this.length),this[B]*16777216+(this[B+1]<<16|this[B+2]<<8|this[B+3])},s.prototype.readIntLE=function(B,C,R){B=B>>>0,C=C>>>0,R||ie(B,C,this.length);for(var ae=this[B],fe=1,ue=0;++ue<C&&(fe*=256);)ae+=this[B+ue]*fe;return fe*=128,ae>=fe&&(ae-=Math.pow(2,8*C)),ae},s.prototype.readIntBE=function(B,C,R){B=B>>>0,C=C>>>0,R||ie(B,C,this.length);for(var ae=C,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*C)),ue},s.prototype.readInt8=function(B,C){return B=B>>>0,C||ie(B,1,this.length),this[B]&128?(255-this[B]+1)*-1:this[B]},s.prototype.readInt16LE=function(B,C){B=B>>>0,C||ie(B,2,this.length);var R=this[B]|this[B+1]<<8;return R&32768?R|4294901760:R},s.prototype.readInt16BE=function(B,C){B=B>>>0,C||ie(B,2,this.length);var R=this[B+1]|this[B]<<8;return R&32768?R|4294901760:R},s.prototype.readInt32LE=function(B,C){return B=B>>>0,C||ie(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},s.prototype.readInt32BE=function(B,C){return B=B>>>0,C||ie(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},s.prototype.readFloatLE=function(B,C){return B=B>>>0,C||ie(B,4,this.length),t.read(this,B,!0,23,4)},s.prototype.readFloatBE=function(B,C){return B=B>>>0,C||ie(B,4,this.length),t.read(this,B,!1,23,4)},s.prototype.readDoubleLE=function(B,C){return B=B>>>0,C||ie(B,8,this.length),t.read(this,B,!0,52,8)},s.prototype.readDoubleBE=function(B,C){return B=B>>>0,C||ie(B,8,this.length),t.read(this,B,!1,52,8)};function x(U,B,C,R,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(C+R>U.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(B,C,R,ae){if(B=+B,C=C>>>0,R=R>>>0,!ae){var fe=Math.pow(2,8*R)-1;x(this,B,C,R,fe,0)}var ue=1,xe=0;for(this[C]=B&255;++xe<R&&(ue*=256);)this[C+xe]=B/ue&255;return C+R},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(B,C,R,ae){if(B=+B,C=C>>>0,R=R>>>0,!ae){var fe=Math.pow(2,8*R)-1;x(this,B,C,R,fe,0)}var ue=R-1,xe=1;for(this[C+ue]=B&255;--ue>=0&&(xe*=256);)this[C+ue]=B/xe&255;return C+R},s.prototype.writeUint8=s.prototype.writeUInt8=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,1,255,0),this[C]=B&255,C+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,2,65535,0),this[C]=B&255,this[C+1]=B>>>8,C+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,2,65535,0),this[C]=B>>>8,this[C+1]=B&255,C+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,4,4294967295,0),this[C+3]=B>>>24,this[C+2]=B>>>16,this[C+1]=B>>>8,this[C]=B&255,C+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,4,4294967295,0),this[C]=B>>>24,this[C+1]=B>>>16,this[C+2]=B>>>8,this[C+3]=B&255,C+4},s.prototype.writeIntLE=function(B,C,R,ae){if(B=+B,C=C>>>0,!ae){var fe=Math.pow(2,8*R-1);x(this,B,C,R,fe-1,-fe)}var ue=0,xe=1,Ue=0;for(this[C]=B&255;++ue<R&&(xe*=256);)B<0&&Ue===0&&this[C+ue-1]!==0&&(Ue=1),this[C+ue]=(B/xe>>0)-Ue&255;return C+R},s.prototype.writeIntBE=function(B,C,R,ae){if(B=+B,C=C>>>0,!ae){var fe=Math.pow(2,8*R-1);x(this,B,C,R,fe-1,-fe)}var ue=R-1,xe=1,Ue=0;for(this[C+ue]=B&255;--ue>=0&&(xe*=256);)B<0&&Ue===0&&this[C+ue+1]!==0&&(Ue=1),this[C+ue]=(B/xe>>0)-Ue&255;return C+R},s.prototype.writeInt8=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,1,127,-128),B<0&&(B=255+B+1),this[C]=B&255,C+1},s.prototype.writeInt16LE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,2,32767,-32768),this[C]=B&255,this[C+1]=B>>>8,C+2},s.prototype.writeInt16BE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,2,32767,-32768),this[C]=B>>>8,this[C+1]=B&255,C+2},s.prototype.writeInt32LE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,4,2147483647,-2147483648),this[C]=B&255,this[C+1]=B>>>8,this[C+2]=B>>>16,this[C+3]=B>>>24,C+4},s.prototype.writeInt32BE=function(B,C,R){return B=+B,C=C>>>0,R||x(this,B,C,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[C]=B>>>24,this[C+1]=B>>>16,this[C+2]=B>>>8,this[C+3]=B&255,C+4};function H(U,B,C,R,ae,fe){if(C+R>U.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("Index out of range")}function V(U,B,C,R,ae){return B=+B,C=C>>>0,ae||H(U,B,C,4),t.write(U,B,C,R,23,4),C+4}s.prototype.writeFloatLE=function(B,C,R){return V(this,B,C,!0,R)},s.prototype.writeFloatBE=function(B,C,R){return V(this,B,C,!1,R)};function q(U,B,C,R,ae){return B=+B,C=C>>>0,ae||H(U,B,C,8),t.write(U,B,C,R,52,8),C+8}s.prototype.writeDoubleLE=function(B,C,R){return q(this,B,C,!0,R)},s.prototype.writeDoubleBE=function(B,C,R){return q(this,B,C,!1,R)},s.prototype.copy=function(B,C,R,ae){if(!s.isBuffer(B))throw new TypeError("argument should be a Buffer");if(R||(R=0),!ae&&ae!==0&&(ae=this.length),C>=B.length&&(C=B.length),C||(C=0),ae>0&&ae<R&&(ae=R),ae===R||B.length===0||this.length===0)return 0;if(C<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=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-C<ae-R&&(ae=B.length-C+R);var fe=ae-R;return this===B&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(C,R,ae):Uint8Array.prototype.set.call(B,this.subarray(R,ae),C),fe},s.prototype.fill=function(B,C,R,ae){if(typeof B=="string"){if(typeof C=="string"?(ae=C,C=0,R=this.length):typeof R=="string"&&(ae=R,R=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(C<0||this.length<C||this.length<R)throw new RangeError("Out of range index");if(R<=C)return this;C=C>>>0,R=R===void 0?this.length:R>>>0,B||(B=0);var ue;if(typeof B=="number")for(ue=C;ue<R;++ue)this[ue]=B;else{var xe=s.isBuffer(B)?B:s.from(B,ae),Ue=xe.length;if(Ue===0)throw new TypeError('The value "'+B+'" is invalid for argument "value"');for(ue=0;ue<R-C;++ue)this[ue+C]=xe[ue%Ue]}return this};var $=/[^+/0-9A-Za-z-_]/g;function L(U){if(U=U.split("=")[0],U=U.trim().replace($,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function Q(U,B){B=B||1/0;for(var C,R=U.length,ae=null,fe=[],ue=0;ue<R;++ue){if(C=U.charCodeAt(ue),C>55295&&C<57344){if(!ae){if(C>56319){(B-=3)>-1&&fe.push(239,191,189);continue}else if(ue+1===R){(B-=3)>-1&&fe.push(239,191,189);continue}ae=C;continue}if(C<56320){(B-=3)>-1&&fe.push(239,191,189),ae=C;continue}C=(ae-55296<<10|C-56320)+65536}else ae&&(B-=3)>-1&&fe.push(239,191,189);if(ae=null,C<128){if((B-=1)<0)break;fe.push(C)}else if(C<2048){if((B-=2)<0)break;fe.push(C>>6|192,C&63|128)}else if(C<65536){if((B-=3)<0)break;fe.push(C>>12|224,C>>6&63|128,C&63|128)}else if(C<1114112){if((B-=4)<0)break;fe.push(C>>18|240,C>>12&63|128,C>>6&63|128,C&63|128)}else throw new Error("Invalid code point")}return fe}function te(U){for(var B=[],C=0;C<U.length;++C)B.push(U.charCodeAt(C)&255);return B}function se(U,B){for(var C,R,ae,fe=[],ue=0;ue<U.length&&!((B-=2)<0);++ue)C=U.charCodeAt(ue),R=C>>8,ae=C%256,fe.push(ae),fe.push(R);return fe}function X(U){return e.toByteArray(L(U))}function ne(U,B,C,R){for(var ae=0;ae<R&&!(ae+C>=B.length||ae>=U.length);++ae)B[ae+C]=U[ae];return ae}function ve(U,B){return U instanceof B||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===B.name}function k(U){return U!==U}var de=function(){for(var U="0123456789abcdef",B=new Array(256),C=0;C<16;++C)for(var R=C*16,ae=0;ae<16;++ae)B[R+ae]=U[C]+U[ae];return B}()}(jd)),jd}var Kd={},Vd={},zd,$1;function G1(){return $1||($1=1,zd=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 i=42;e[t]=i;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 A=Object.getOwnPropertySymbols(e);if(A.length!==1||A[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),zd}var $d,W1;function Gd(){if(W1)return $d;W1=1;var r=G1();return $d=function(){return r()&&!!Symbol.toStringTag},$d}var Wd,q1;function XI(){if(q1)return Wd;q1=1;var r=typeof Symbol!="undefined"&&Symbol,e=G1();return Wd=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Wd}var qd,X1;function YI(){if(X1)return qd;X1=1;var r={foo:{}},e=Object;return qd=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof e)},qd}var Xd,Y1;function JI(){if(Y1)return Xd;Y1=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(o,l){for(var u=[],h=0;h<o.length;h+=1)u[h]=o[h];for(var f=0;f<l.length;f+=1)u[f+o.length]=l[f];return u},A=function(o,l){for(var u=[],h=l,f=0;h<o.length;h+=1,f+=1)u[f]=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 Xd=function(o){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(r+l);for(var u=A(arguments,1),h,f=function(){if(this instanceof h){var p=l.apply(this,i(u,arguments));return Object(p)===p?p:this}return l.apply(o,i(u,arguments))},c=t(0,l.length-u.length),g=[],m=0;m<c;m++)g[m]="$"+m;if(h=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(f),l.prototype){var y=function(){};y.prototype=l.prototype,h.prototype=new y,y.prototype=null}return h},Xd}var Yd,J1;function Jd(){if(J1)return Yd;J1=1;var r=JI();return Yd=Function.prototype.bind||r,Yd}var Zd,Z1;function ZI(){if(Z1)return Zd;Z1=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Jd();return Zd=t.call(r,e),Zd}var ep,ey;function Ns(){if(ey)return ep;ey=1;var r,e=SyntaxError,t=Function,n=TypeError,i=function(S){try{return t('"use strict"; return ('+S+").constructor;")()}catch(K){}},A=Object.getOwnPropertyDescriptor;if(A)try{A({},"")}catch(S){A=null}var a=function(){throw new n},s=A?function(){try{return arguments.callee,a}catch(S){try{return A(arguments,"callee").get}catch(K){return a}}}():a,o=XI()(),l=YI()(),u=Object.getPrototypeOf||(l?function(S){return S.__proto__}:null),h={},f=typeof Uint8Array=="undefined"||!u?r:u(Uint8Array),c={"%AggregateError%":typeof AggregateError=="undefined"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?r:ArrayBuffer,"%ArrayIteratorPrototype%":o&&u?u([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics=="undefined"?r:Atomics,"%BigInt%":typeof BigInt=="undefined"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?r:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?r:FinalizationRegistry,"%Function%":t,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array=="undefined"?r:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?r:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":o&&u?u(u([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map=="undefined"?r:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!o||!u?r:u(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?r:Promise,"%Proxy%":typeof Proxy=="undefined"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?r:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!o||!u?r:u(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":o&&u?u(""[Symbol.iterator]()):r,"%Symbol%":o?Symbol:r,"%SyntaxError%":e,"%ThrowTypeError%":s,"%TypedArray%":f,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array=="undefined"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?r:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?r:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?r:WeakSet};if(u)try{null.error}catch(S){var g=u(u(S));c["%Error.prototype%"]=g}var m=function S(K){var F;if(K==="%AsyncFunction%")F=i("async function () {}");else if(K==="%GeneratorFunction%")F=i("function* () {}");else if(K==="%AsyncGeneratorFunction%")F=i("async function* () {}");else if(K==="%AsyncGenerator%"){var ee=S("%AsyncGeneratorFunction%");ee&&(F=ee.prototype)}else if(K==="%AsyncIteratorPrototype%"){var Z=S("%AsyncGenerator%");Z&&u&&(F=u(Z.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"]},p=Jd(),v=ZI(),b=p.call(Function.call,Array.prototype.concat),I=p.call(Function.apply,Array.prototype.splice),N=p.call(Function.call,String.prototype.replace),M=p.call(Function.call,String.prototype.slice),O=p.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_=/\\(\\)?/g,G=function(K){var F=M(K,0,1),ee=M(K,-1);if(F==="%"&&ee!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(ee==="%"&&F!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var Z=[];return N(K,P,function(z,oe,W,ce){Z[Z.length]=W?N(ce,_,"$1"):oe||z}),Z},D=function(K,F){var ee=K,Z;if(v(y,ee)&&(Z=y[ee],ee="%"+Z[0]+"%"),v(c,ee)){var z=c[ee];if(z===h&&(z=m(ee)),typeof z=="undefined"&&!F)throw new n("intrinsic "+K+" exists, but is not available. Please file an issue!");return{alias:Z,name:ee,value:z}}throw new e("intrinsic "+K+" does not exist!")};return ep=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(O(/^%?[^%]*%?$/,K)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ee=G(K),Z=ee.length>0?ee[0]:"",z=D("%"+Z+"%",F),oe=z.name,W=z.value,ce=!1,ie=z.alias;ie&&(Z=ie[0],I(ee,b([0,1],ie)));for(var x=1,H=!0;x<ee.length;x+=1){var V=ee[x],q=M(V,0,1),$=M(V,-1);if((q==='"'||q==="'"||q==="`"||$==='"'||$==="'"||$==="`")&&q!==$)throw new e("property names with quotes must have matching quotes");if((V==="constructor"||!H)&&(ce=!0),Z+="."+V,oe="%"+Z+"%",v(c,oe))W=c[oe];else if(W!=null){if(!(V in W)){if(!F)throw new n("base intrinsic for "+K+" exists, but the property is not available.");return}if(A&&x+1>=ee.length){var L=A(W,V);H=!!L,H&&"get"in L&&!("originalValue"in L.get)?W=L.get:W=W[V]}else H=v(W,V),W=W[V];H&&!ce&&(c[oe]=W)}}return W},ep}var tp={exports:{}},rp,ty;function ry(){if(ty)return rp;ty=1;var r=Ns(),e=r("%Object.defineProperty%",!0),t=function(){if(e)try{return e({},"a",{value:1}),!0}catch(i){return!1}return!1};return t.hasArrayLengthDefineBug=function(){if(!t())return null;try{return e([],"length",{value:1}).length!==1}catch(i){return!0}},rp=t,rp}var np,ny;function ip(){if(ny)return np;ny=1;var r=Ns(),e=r("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch(t){e=null}return np=e,np}var Ap,iy;function e3(){if(iy)return Ap;iy=1;var r=ry()(),e=Ns(),t=r&&e("%Object.defineProperty%",!0);if(t)try{t({},"a",{value:1})}catch(a){t=!1}var n=e("%SyntaxError%"),i=e("%TypeError%"),A=ip();return Ap=function(s,o,l){if(!s||typeof s!="object"&&typeof s!="function")throw new i("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new i("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,h=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,g=!!A&&A(s,o);if(t)t(s,o,{configurable:f===null&&g?g.configurable:!f,enumerable:u===null&&g?g.enumerable:!u,value:l,writable:h===null&&g?g.writable:!h});else if(c||!u&&!h&&!f)s[o]=l;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Ap}var ap,Ay;function t3(){if(Ay)return ap;Ay=1;var r=Ns(),e=e3(),t=ry()(),n=ip(),i=r("%TypeError%"),A=r("%Math.floor%");return ap=function(s,o){if(typeof s!="function")throw new i("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||A(o)!==o)throw new i("`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 f=n(s,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(h=!1)}return(u||h||!l)&&(t?e(s,"length",o,!0,!0):e(s,"length",o)),s},ap}var ay;function sy(){return ay||(ay=1,function(r){var e=Jd(),t=Ns(),n=t3(),i=t("%TypeError%"),A=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(a,A),o=t("%Object.defineProperty%",!0),l=t("%Math.max%");if(o)try{o({},"a",{value:1})}catch(h){o=null}r.exports=function(f){if(typeof f!="function")throw new i("a function is required");var c=s(e,a,arguments);return n(c,1+l(0,f.length-(arguments.length-1)),!0)};var u=function(){return s(e,A,arguments)};o?o(r.exports,"apply",{value:u}):r.exports.apply=u}(tp)),tp.exports}var sp,oy;function ly(){if(oy)return sp;oy=1;var r=Ns(),e=sy(),t=e(r("String.prototype.indexOf"));return sp=function(i,A){var a=r(i,!!A);return typeof a=="function"&&t(i,".prototype.")>-1?e(a):a},sp}var op,uy;function r3(){if(uy)return op;uy=1;var r=Gd()(),e=ly(),t=e("Object.prototype.toString"),n=function(s){return r&&s&&typeof s=="object"&&Symbol.toStringTag in s?!1:t(s)==="[object Arguments]"},i=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]"},A=function(){return n(arguments)}();return n.isLegacyArguments=i,op=A?n:i,op}var lp,cy;function n3(){if(cy)return lp;cy=1;var r=Object.prototype.toString,e=Function.prototype.toString,t=/^\s*(?:function)?\*/,n=Gd()(),i=Object.getPrototypeOf,A=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch(s){}},a;return lp=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(!i)return!1;if(typeof a=="undefined"){var u=A();a=u?i(u):!1}return i(o)===a},lp}var up,hy;function i3(){if(hy)return up;hy=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(v){v!==n&&(e=null)}else e=null;var i=/^\s*class\b/,A=function(b){try{var I=r.call(b);return i.test(I)}catch(N){return!1}},a=function(b){try{return A(b)?!1:(r.call(b),!0)}catch(I){return!1}},s=Object.prototype.toString,o="[object Object]",l="[object Function]",u="[object GeneratorFunction]",h="[object HTMLAllCollection]",f="[object HTML document.all class]",c="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,m=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var p=document.all;s.call(p)===s.call(document.all)&&(y=function(b){if((m||!b)&&(typeof b=="undefined"||typeof b=="object"))try{var I=s.call(b);return(I===h||I===f||I===c||I===o)&&b("")==null}catch(N){}return!1})}return up=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!A(b)&&a(b)}:function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(g)return a(b);if(A(b))return!1;var I=s.call(b);return I!==l&&I!==u&&!/^\[object HTML/.test(I)?!1:a(b)},up}var cp,fy;function A3(){if(fy)return cp;fy=1;var r=i3(),e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=function(o,l,u){for(var h=0,f=o.length;h<f;h++)t.call(o,h)&&(u==null?l(o[h],h,o):l.call(u,o[h],h,o))},i=function(o,l,u){for(var h=0,f=o.length;h<f;h++)u==null?l(o.charAt(h),h,o):l.call(u,o.charAt(h),h,o)},A=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"?i(o,l,h):A(o,l,h)};return cp=a,cp}var hp,dy;function a3(){if(dy)return hp;dy=1;var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e=typeof globalThis=="undefined"?Ji:globalThis;return hp=function(){for(var n=[],i=0;i<r.length;i++)typeof e[r[i]]=="function"&&(n[n.length]=r[i]);return n},hp}var fp,py;function gy(){if(py)return fp;py=1;var r=A3(),e=a3(),t=sy(),n=ly(),i=ip(),A=n("Object.prototype.toString"),a=Gd()(),s=typeof globalThis=="undefined"?Ji:globalThis,o=e(),l=n("String.prototype.slice"),u=Object.getPrototypeOf,h=n("Array.prototype.indexOf",!0)||function(y,p){for(var v=0;v<y.length;v+=1)if(y[v]===p)return v;return-1},f={__proto__:null};a&&i&&u?r(o,function(m){var y=new s[m];if(Symbol.toStringTag in y){var p=u(y),v=i(p,Symbol.toStringTag);if(!v){var b=u(p);v=i(b,Symbol.toStringTag)}f["$"+m]=t(v.get)}}):r(o,function(m){var y=new s[m],p=y.slice||y.set;p&&(f["$"+m]=t(p))});var c=function(y){var p=!1;return r(f,function(v,b){if(!p)try{"$"+v(y)===b&&(p=l(b,1))}catch(I){}}),p},g=function(y){var p=!1;return r(f,function(v,b){if(!p)try{v(y),p=l(b,1)}catch(I){}}),p};return fp=function(y){if(!y||typeof y!="object")return!1;if(!a){var p=l(A(y),8,-1);return h(o,p)>-1?p:p!=="Object"?!1:g(y)}return i?c(y):null},fp}var dp,my;function s3(){if(my)return dp;my=1;var r=gy();return dp=function(t){return!!r(t)},dp}var vy;function o3(){return vy||(vy=1,function(r){var e=r3(),t=n3(),n=gy(),i=s3();function A(R){return R.call.bind(R)}var a=typeof BigInt!="undefined",s=typeof Symbol!="undefined",o=A(Object.prototype.toString),l=A(Number.prototype.valueOf),u=A(String.prototype.valueOf),h=A(Boolean.prototype.valueOf);if(a)var f=A(BigInt.prototype.valueOf);if(s)var c=A(Symbol.prototype.valueOf);function g(R,ae){if(typeof R!="object")return!1;try{return ae(R),!0}catch(fe){return!1}}r.isArgumentsObject=e,r.isGeneratorFunction=t,r.isTypedArray=i;function m(R){return typeof Promise!="undefined"&&R instanceof Promise||R!==null&&typeof R=="object"&&typeof R.then=="function"&&typeof R.catch=="function"}r.isPromise=m;function y(R){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(R):i(R)||H(R)}r.isArrayBufferView=y;function p(R){return n(R)==="Uint8Array"}r.isUint8Array=p;function v(R){return n(R)==="Uint8ClampedArray"}r.isUint8ClampedArray=v;function b(R){return n(R)==="Uint16Array"}r.isUint16Array=b;function I(R){return n(R)==="Uint32Array"}r.isUint32Array=I;function N(R){return n(R)==="Int8Array"}r.isInt8Array=N;function M(R){return n(R)==="Int16Array"}r.isInt16Array=M;function O(R){return n(R)==="Int32Array"}r.isInt32Array=O;function P(R){return n(R)==="Float32Array"}r.isFloat32Array=P;function _(R){return n(R)==="Float64Array"}r.isFloat64Array=_;function G(R){return n(R)==="BigInt64Array"}r.isBigInt64Array=G;function D(R){return n(R)==="BigUint64Array"}r.isBigUint64Array=D;function S(R){return o(R)==="[object Map]"}S.working=typeof Map!="undefined"&&S(new Map);function K(R){return typeof Map=="undefined"?!1:S.working?S(R):R instanceof Map}r.isMap=K;function F(R){return o(R)==="[object Set]"}F.working=typeof Set!="undefined"&&F(new Set);function ee(R){return typeof Set=="undefined"?!1:F.working?F(R):R instanceof Set}r.isSet=ee;function Z(R){return o(R)==="[object WeakMap]"}Z.working=typeof WeakMap!="undefined"&&Z(new WeakMap);function z(R){return typeof WeakMap=="undefined"?!1:Z.working?Z(R):R instanceof WeakMap}r.isWeakMap=z;function oe(R){return o(R)==="[object WeakSet]"}oe.working=typeof WeakSet!="undefined"&&oe(new WeakSet);function W(R){return oe(R)}r.isWeakSet=W;function ce(R){return o(R)==="[object ArrayBuffer]"}ce.working=typeof ArrayBuffer!="undefined"&&ce(new ArrayBuffer);function ie(R){return typeof ArrayBuffer=="undefined"?!1:ce.working?ce(R):R instanceof ArrayBuffer}r.isArrayBuffer=ie;function x(R){return o(R)==="[object DataView]"}x.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&x(new DataView(new ArrayBuffer(1),0,1));function H(R){return typeof DataView=="undefined"?!1:x.working?x(R):R instanceof DataView}r.isDataView=H;var V=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function q(R){return o(R)==="[object SharedArrayBuffer]"}function $(R){return typeof V=="undefined"?!1:(typeof q.working=="undefined"&&(q.working=q(new V)),q.working?q(R):R instanceof V)}r.isSharedArrayBuffer=$;function L(R){return o(R)==="[object AsyncFunction]"}r.isAsyncFunction=L;function Q(R){return o(R)==="[object Map Iterator]"}r.isMapIterator=Q;function te(R){return o(R)==="[object Set Iterator]"}r.isSetIterator=te;function se(R){return o(R)==="[object Generator]"}r.isGeneratorObject=se;function X(R){return o(R)==="[object WebAssembly.Module]"}r.isWebAssemblyCompiledModule=X;function ne(R){return g(R,l)}r.isNumberObject=ne;function ve(R){return g(R,u)}r.isStringObject=ve;function k(R){return g(R,h)}r.isBooleanObject=k;function de(R){return a&&g(R,f)}r.isBigIntObject=de;function U(R){return s&&g(R,c)}r.isSymbolObject=U;function B(R){return ne(R)||ve(R)||k(R)||de(R)||U(R)}r.isBoxedPrimitive=B;function C(R){return typeof Uint8Array!="undefined"&&(ie(R)||$(R))}r.isAnyArrayBuffer=C,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(R){Object.defineProperty(r,R,{enumerable:!1,value:function(){throw new Error(R+" is not supported in userland")}})})}(Vd)),Vd}var pp,wy;function l3(){return wy||(wy=1,pp=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}),pp}var yy;function by(){return yy||(yy=1,function(r){var e=Object.getOwnPropertyDescriptors||function(H){for(var V=Object.keys(H),q={},$=0;$<V.length;$++)q[V[$]]=Object.getOwnPropertyDescriptor(H,V[$]);return q},t=/%[sdj%]/g;r.format=function(x){if(!N(x)){for(var H=[],V=0;V<arguments.length;V++)H.push(a(arguments[V]));return H.join(" ")}for(var V=1,q=arguments,$=q.length,L=String(x).replace(t,function(te){if(te==="%%")return"%";if(V>=$)return te;switch(te){case"%s":return String(q[V++]);case"%d":return Number(q[V++]);case"%j":try{return JSON.stringify(q[V++])}catch(se){return"[Circular]"}default:return te}}),Q=q[V];V<$;Q=q[++V])v(Q)||!_(Q)?L+=" "+Q:L+=" "+a(Q);return L},r.deprecate=function(x,H){if(typeof Tt!="undefined"&&Tt.noDeprecation===!0)return x;if(typeof Tt=="undefined")return function(){return r.deprecate(x,H).apply(this,arguments)};var V=!1;function q(){if(!V){if(Tt.throwDeprecation)throw new Error(H);Tt.traceDeprecation?console.trace(H):console.error(H),V=!0}return x.apply(this,arguments)}return q};var n={},i=/^$/;if(Tt.env.NODE_DEBUG){var A=Tt.env.NODE_DEBUG;A=A.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+A+"$","i")}r.debuglog=function(x){if(x=x.toUpperCase(),!n[x])if(i.test(x)){var H=Tt.pid;n[x]=function(){var V=r.format.apply(r,arguments);console.error("%s %d: %s",x,H,V)}}else n[x]=function(){};return n[x]};function a(x,H){var V={seen:[],stylize:o};return arguments.length>=3&&(V.depth=arguments[2]),arguments.length>=4&&(V.colors=arguments[3]),p(H)?V.showHidden=H:H&&r._extend(V,H),O(V.showHidden)&&(V.showHidden=!1),O(V.depth)&&(V.depth=2),O(V.colors)&&(V.colors=!1),O(V.customInspect)&&(V.customInspect=!0),V.colors&&(V.stylize=s),u(V,x,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(x,H){var V=a.styles[H];return V?"\x1B["+a.colors[V][0]+"m"+x+"\x1B["+a.colors[V][1]+"m":x}function o(x,H){return x}function l(x){var H={};return x.forEach(function(V,q){H[V]=!0}),H}function u(x,H,V){if(x.customInspect&&H&&S(H.inspect)&&H.inspect!==r.inspect&&!(H.constructor&&H.constructor.prototype===H)){var q=H.inspect(V,x);return N(q)||(q=u(x,q,V)),q}var $=h(x,H);if($)return $;var L=Object.keys(H),Q=l(L);if(x.showHidden&&(L=Object.getOwnPropertyNames(H)),D(H)&&(L.indexOf("message")>=0||L.indexOf("description")>=0))return f(H);if(L.length===0){if(S(H)){var te=H.name?": "+H.name:"";return x.stylize("[Function"+te+"]","special")}if(P(H))return x.stylize(RegExp.prototype.toString.call(H),"regexp");if(G(H))return x.stylize(Date.prototype.toString.call(H),"date");if(D(H))return f(H)}var se="",X=!1,ne=["{","}"];if(y(H)&&(X=!0,ne=["[","]"]),S(H)){var ve=H.name?": "+H.name:"";se=" [Function"+ve+"]"}if(P(H)&&(se=" "+RegExp.prototype.toString.call(H)),G(H)&&(se=" "+Date.prototype.toUTCString.call(H)),D(H)&&(se=" "+f(H)),L.length===0&&(!X||H.length==0))return ne[0]+se+ne[1];if(V<0)return P(H)?x.stylize(RegExp.prototype.toString.call(H),"regexp"):x.stylize("[Object]","special");x.seen.push(H);var k;return X?k=c(x,H,V,Q,L):k=L.map(function(de){return g(x,H,V,Q,de,X)}),x.seen.pop(),m(k,se,ne)}function h(x,H){if(O(H))return x.stylize("undefined","undefined");if(N(H)){var V="'"+JSON.stringify(H).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return x.stylize(V,"string")}if(I(H))return x.stylize(""+H,"number");if(p(H))return x.stylize(""+H,"boolean");if(v(H))return x.stylize("null","null")}function f(x){return"["+Error.prototype.toString.call(x)+"]"}function c(x,H,V,q,$){for(var L=[],Q=0,te=H.length;Q<te;++Q)oe(H,String(Q))?L.push(g(x,H,V,q,String(Q),!0)):L.push("");return $.forEach(function(se){se.match(/^\d+$/)||L.push(g(x,H,V,q,se,!0))}),L}function g(x,H,V,q,$,L){var Q,te,se;if(se=Object.getOwnPropertyDescriptor(H,$)||{value:H[$]},se.get?se.set?te=x.stylize("[Getter/Setter]","special"):te=x.stylize("[Getter]","special"):se.set&&(te=x.stylize("[Setter]","special")),oe(q,$)||(Q="["+$+"]"),te||(x.seen.indexOf(se.value)<0?(v(V)?te=u(x,se.value,null):te=u(x,se.value,V-1),te.indexOf(`
64
+ `)>-1&&(L?te=te.split(`
65
+ `).map(function(X){return" "+X}).join(`
66
+ `).slice(2):te=`
67
+ `+te.split(`
68
+ `).map(function(X){return" "+X}).join(`
69
+ `))):te=x.stylize("[Circular]","special")),O(Q)){if(L&&$.match(/^\d+$/))return te;Q=JSON.stringify(""+$),Q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Q=Q.slice(1,-1),Q=x.stylize(Q,"name")):(Q=Q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Q=x.stylize(Q,"string"))}return Q+": "+te}function m(x,H,V){var q=x.reduce(function($,L){return L.indexOf(`
70
+ `)>=0,$+L.replace(/\u001b\[\d\d?m/g,"").length+1},0);return q>60?V[0]+(H===""?"":H+`
71
+ `)+" "+x.join(`,
72
+ `)+" "+V[1]:V[0]+H+" "+x.join(", ")+" "+V[1]}r.types=o3();function y(x){return Array.isArray(x)}r.isArray=y;function p(x){return typeof x=="boolean"}r.isBoolean=p;function v(x){return x===null}r.isNull=v;function b(x){return x==null}r.isNullOrUndefined=b;function I(x){return typeof x=="number"}r.isNumber=I;function N(x){return typeof x=="string"}r.isString=N;function M(x){return typeof x=="symbol"}r.isSymbol=M;function O(x){return x===void 0}r.isUndefined=O;function P(x){return _(x)&&F(x)==="[object RegExp]"}r.isRegExp=P,r.types.isRegExp=P;function _(x){return typeof x=="object"&&x!==null}r.isObject=_;function G(x){return _(x)&&F(x)==="[object Date]"}r.isDate=G,r.types.isDate=G;function D(x){return _(x)&&(F(x)==="[object Error]"||x instanceof Error)}r.isError=D,r.types.isNativeError=D;function S(x){return typeof x=="function"}r.isFunction=S;function K(x){return x===null||typeof x=="boolean"||typeof x=="number"||typeof x=="string"||typeof x=="symbol"||typeof x=="undefined"}r.isPrimitive=K,r.isBuffer=l3();function F(x){return Object.prototype.toString.call(x)}function ee(x){return x<10?"0"+x.toString(10):x.toString(10)}var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function z(){var x=new Date,H=[ee(x.getHours()),ee(x.getMinutes()),ee(x.getSeconds())].join(":");return[x.getDate(),Z[x.getMonth()],H].join(" ")}r.log=function(){console.log("%s - %s",z(),r.format.apply(r,arguments))},r.inherits=Da,r._extend=function(x,H){if(!H||!_(H))return x;for(var V=Object.keys(H),q=V.length;q--;)x[V[q]]=H[V[q]];return x};function oe(x,H){return Object.prototype.hasOwnProperty.call(x,H)}var W=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;r.promisify=function(H){if(typeof H!="function")throw new TypeError('The "original" argument must be of type Function');if(W&&H[W]){var V=H[W];if(typeof V!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(V,W,{value:V,enumerable:!1,writable:!1,configurable:!0}),V}function V(){for(var q,$,L=new Promise(function(se,X){q=se,$=X}),Q=[],te=0;te<arguments.length;te++)Q.push(arguments[te]);Q.push(function(se,X){se?$(se):q(X)});try{H.apply(this,Q)}catch(se){$(se)}return L}return Object.setPrototypeOf(V,Object.getPrototypeOf(H)),W&&Object.defineProperty(V,W,{value:V,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(V,e(H))},r.promisify.custom=W;function ce(x,H){if(!x){var V=new Error("Promise was rejected with a falsy value");V.reason=x,x=V}return H(x)}function ie(x){if(typeof x!="function")throw new TypeError('The "original" argument must be of type Function');function H(){for(var V=[],q=0;q<arguments.length;q++)V.push(arguments[q]);var $=V.pop();if(typeof $!="function")throw new TypeError("The last argument must be of type Function");var L=this,Q=function(){return $.apply(L,arguments)};x.apply(this,V).then(function(te){Tt.nextTick(Q.bind(null,null,te))},function(te){Tt.nextTick(ce.bind(null,te,Q))})}return Object.setPrototypeOf(H,Object.getPrototypeOf(x)),Object.defineProperties(H,e(x)),H}r.callbackify=ie}(Kd)),Kd}var gp,By;function u3(){if(By)return gp;By=1;function r(f,c){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(f);c&&(m=m.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),g.push.apply(g,m)}return g}function e(f){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{};c%2?r(Object(g),!0).forEach(function(m){t(f,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(m){Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(g,m))})}return f}function t(f,c,g){return c in f?Object.defineProperty(f,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[c]=g,f}function n(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function i(f,c){for(var g=0;g<c.length;g++){var m=c[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(f,m.key,m)}}function A(f,c,g){return c&&i(f.prototype,c),f}var a=Yu(),s=a.Buffer,o=by(),l=o.inspect,u=l&&l.custom||"inspect";function h(f,c,g){s.prototype.copy.call(f,c,g)}return gp=function(){function f(){n(this,f),this.head=null,this.tail=null,this.length=0}return A(f,[{key:"push",value:function(g){var m={data:g,next:null};this.length>0?this.tail.next=m:this.head=m,this.tail=m,++this.length}},{key:"unshift",value:function(g){var m={data:g,next:this.head};this.length===0&&(this.tail=m),this.head=m,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var m=this.head,y=""+m.data;m=m.next;)y+=g+m.data;return y}},{key:"concat",value:function(g){if(this.length===0)return s.alloc(0);for(var m=s.allocUnsafe(g>>>0),y=this.head,p=0;y;)h(y.data,m,p),p+=y.data.length,y=y.next;return m}},{key:"consume",value:function(g,m){var y;return g<this.head.data.length?(y=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):g===this.head.data.length?y=this.shift():y=m?this._getString(g):this._getBuffer(g),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var m=this.head,y=1,p=m.data;for(g-=p.length;m=m.next;){var v=m.data,b=g>v.length?v.length:g;if(b===v.length?p+=v:p+=v.slice(0,g),g-=b,g===0){b===v.length?(++y,m.next?this.head=m.next:this.head=this.tail=null):(this.head=m,m.data=v.slice(b));break}++y}return this.length-=y,p}},{key:"_getBuffer",value:function(g){var m=s.allocUnsafe(g),y=this.head,p=1;for(y.data.copy(m),g-=y.data.length;y=y.next;){var v=y.data,b=g>v.length?v.length:g;if(v.copy(m,m.length-g,0,b),g-=b,g===0){b===v.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=v.slice(b));break}++p}return this.length-=p,m}},{key:u,value:function(g,m){return l(this,e({},m,{depth:0,customInspect:!1}))}}]),f}(),gp}var mp,xy;function Cy(){if(xy)return mp;xy=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,Tt.nextTick(i,this,a)):Tt.nextTick(i,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?Tt.nextTick(t,o):(o._writableState.errorEmitted=!0,Tt.nextTick(e,o,h)):Tt.nextTick(e,o,h):s?(Tt.nextTick(t,o),s(h)):Tt.nextTick(t,o)}),this)}function e(a,s){i(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 i(a,s){a.emit("error",s)}function A(a,s){var o=a._readableState,l=a._writableState;o&&o.autoDestroy||l&&l.autoDestroy?a.destroy(s):a.emit("error",s)}return mp={destroy:r,undestroy:n,errorOrDestroy:A},mp}var vp={},Ey;function Rs(){if(Ey)return vp;Ey=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(f,c,g){return typeof o=="string"?o:o(f,c,g)}var h=function(f){r(c,f);function c(g,m,y){return f.call(this,u(g,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 i(s,o,l){return s.substr(0,o.length)===o}function A(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"&&i(o,"not ")?(u="must not be",o=o.replace(/^not /,"")):u="must be";var h;if(A(s," argument"))h="The ".concat(s," ").concat(u," ").concat(n(o,"type"));else{var f=a(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(f," ").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"),vp.codes=e,vp}var wp,Sy;function Fy(){if(Sy)return wp;Sy=1;var r=Rs().codes.ERR_INVALID_OPT_VALUE;function e(n,i,A){return n.highWaterMark!=null?n.highWaterMark:i?n[A]:null}function t(n,i,A,a){var s=e(i,a,A);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var o=a?A:"highWaterMark";throw new r(o,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return wp={getHighWaterMark:t},wp}var yp,Iy;function c3(){if(Iy)return yp;Iy=1,yp=r;function r(t,n){if(e("noDeprecation"))return t;var i=!1;function A(){if(!i){if(e("throwDeprecation"))throw new Error(n);e("traceDeprecation")?console.trace(n):console.warn(n),i=!0}return t.apply(this,arguments)}return A}function e(t){try{if(!Ji.localStorage)return!1}catch(i){return!1}var n=Ji.localStorage[t];return n==null?!1:String(n).toLowerCase()==="true"}return yp}var bp,Uy;function Ty(){if(Uy)return bp;Uy=1,bp=P;function r($){var L=this;this.next=null,this.entry=null,this.finish=function(){q(L,$)}}var e;P.WritableState=M;var t={deprecate:c3()},n=j1(),i=Yu().Buffer,A=Ji.Uint8Array||function(){};function a($){return i.from($)}function s($){return i.isBuffer($)||$ instanceof A}var o=Cy(),l=Fy(),u=l.getHighWaterMark,h=Rs().codes,f=h.ERR_INVALID_ARG_TYPE,c=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,m=h.ERR_STREAM_CANNOT_PIPE,y=h.ERR_STREAM_DESTROYED,p=h.ERR_STREAM_NULL_VALUES,v=h.ERR_STREAM_WRITE_AFTER_END,b=h.ERR_UNKNOWN_ENCODING,I=o.errorOrDestroy;Da(P,n);function N(){}function M($,L,Q){e=e||Os(),$=$||{},typeof Q!="boolean"&&(Q=L instanceof e),this.objectMode=!!$.objectMode,Q&&(this.objectMode=this.objectMode||!!$.writableObjectMode),this.highWaterMark=u(this,$,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var te=$.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=$.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){Z(L,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=$.emitClose!==!1,this.autoDestroy=!!$.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}M.prototype.getBuffer=function(){for(var L=this.bufferedRequest,Q=[];L;)Q.push(L),L=L.next;return Q},function(){try{Object.defineProperty(M.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($){}}();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(L){return O.call(this,L)?!0:this!==P?!1:L&&L._writableState instanceof M}})):O=function(L){return L instanceof this};function P($){e=e||Os();var L=this instanceof e;if(!L&&!O.call(P,this))return new P($);this._writableState=new M($,this,L),this.writable=!0,$&&(typeof $.write=="function"&&(this._write=$.write),typeof $.writev=="function"&&(this._writev=$.writev),typeof $.destroy=="function"&&(this._destroy=$.destroy),typeof $.final=="function"&&(this._final=$.final)),n.call(this)}P.prototype.pipe=function(){I(this,new m)};function _($,L){var Q=new v;I($,Q),Tt.nextTick(L,Q)}function G($,L,Q,te){var se;return Q===null?se=new p:typeof Q!="string"&&!L.objectMode&&(se=new f("chunk",["string","Buffer"],Q)),se?(I($,se),Tt.nextTick(te,se),!1):!0}P.prototype.write=function($,L,Q){var te=this._writableState,se=!1,X=!te.objectMode&&s($);return X&&!i.isBuffer($)&&($=a($)),typeof L=="function"&&(Q=L,L=null),X?L="buffer":L||(L=te.defaultEncoding),typeof Q!="function"&&(Q=N),te.ending?_(this,Q):(X||G(this,te,$,Q))&&(te.pendingcb++,se=S(this,te,X,$,L,Q)),se},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var $=this._writableState;$.corked&&($.corked--,!$.writing&&!$.corked&&!$.bufferProcessing&&$.bufferedRequest&&W(this,$))},P.prototype.setDefaultEncoding=function(L){if(typeof L=="string"&&(L=L.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((L+"").toLowerCase())>-1))throw new b(L);return this._writableState.defaultEncoding=L,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D($,L,Q){return!$.objectMode&&$.decodeStrings!==!1&&typeof L=="string"&&(L=i.from(L,Q)),L}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function S($,L,Q,te,se,X){if(!Q){var ne=D(L,te,se);te!==ne&&(Q=!0,se="buffer",te=ne)}var ve=L.objectMode?1:te.length;L.length+=ve;var k=L.length<L.highWaterMark;if(k||(L.needDrain=!0),L.writing||L.corked){var de=L.lastBufferedRequest;L.lastBufferedRequest={chunk:te,encoding:se,isBuf:Q,callback:X,next:null},de?de.next=L.lastBufferedRequest:L.bufferedRequest=L.lastBufferedRequest,L.bufferedRequestCount+=1}else K($,L,!1,ve,te,se,X);return k}function K($,L,Q,te,se,X,ne){L.writelen=te,L.writecb=ne,L.writing=!0,L.sync=!0,L.destroyed?L.onwrite(new y("write")):Q?$._writev(se,L.onwrite):$._write(se,X,L.onwrite),L.sync=!1}function F($,L,Q,te,se){--L.pendingcb,Q?(Tt.nextTick(se,te),Tt.nextTick(H,$,L),$._writableState.errorEmitted=!0,I($,te)):(se(te),$._writableState.errorEmitted=!0,I($,te),H($,L))}function ee($){$.writing=!1,$.writecb=null,$.length-=$.writelen,$.writelen=0}function Z($,L){var Q=$._writableState,te=Q.sync,se=Q.writecb;if(typeof se!="function")throw new g;if(ee(Q),L)F($,Q,te,L,se);else{var X=ce(Q)||$.destroyed;!X&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&W($,Q),te?Tt.nextTick(z,$,Q,X,se):z($,Q,X,se)}}function z($,L,Q,te){Q||oe($,L),L.pendingcb--,te(),H($,L)}function oe($,L){L.length===0&&L.needDrain&&(L.needDrain=!1,$.emit("drain"))}function W($,L){L.bufferProcessing=!0;var Q=L.bufferedRequest;if($._writev&&Q&&Q.next){var te=L.bufferedRequestCount,se=new Array(te),X=L.corkedRequestsFree;X.entry=Q;for(var ne=0,ve=!0;Q;)se[ne]=Q,Q.isBuf||(ve=!1),Q=Q.next,ne+=1;se.allBuffers=ve,K($,L,!0,L.length,se,"",X.finish),L.pendingcb++,L.lastBufferedRequest=null,X.next?(L.corkedRequestsFree=X.next,X.next=null):L.corkedRequestsFree=new r(L),L.bufferedRequestCount=0}else{for(;Q;){var k=Q.chunk,de=Q.encoding,U=Q.callback,B=L.objectMode?1:k.length;if(K($,L,!1,B,k,de,U),Q=Q.next,L.bufferedRequestCount--,L.writing)break}Q===null&&(L.lastBufferedRequest=null)}L.bufferedRequest=Q,L.bufferProcessing=!1}P.prototype._write=function($,L,Q){Q(new c("_write()"))},P.prototype._writev=null,P.prototype.end=function($,L,Q){var te=this._writableState;return typeof $=="function"?(Q=$,$=null,L=null):typeof L=="function"&&(Q=L,L=null),$!=null&&this.write($,L),te.corked&&(te.corked=1,this.uncork()),te.ending||V(this,te,Q),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ce($){return $.ending&&$.length===0&&$.bufferedRequest===null&&!$.finished&&!$.writing}function ie($,L){$._final(function(Q){L.pendingcb--,Q&&I($,Q),L.prefinished=!0,$.emit("prefinish"),H($,L)})}function x($,L){!L.prefinished&&!L.finalCalled&&(typeof $._final=="function"&&!L.destroyed?(L.pendingcb++,L.finalCalled=!0,Tt.nextTick(ie,$,L)):(L.prefinished=!0,$.emit("prefinish")))}function H($,L){var Q=ce(L);if(Q&&(x($,L),L.pendingcb===0&&(L.finished=!0,$.emit("finish"),L.autoDestroy))){var te=$._readableState;(!te||te.autoDestroy&&te.endEmitted)&&$.destroy()}return Q}function V($,L,Q){L.ending=!0,H($,L),Q&&(L.finished?Tt.nextTick(Q):$.once("finish",Q)),L.ended=!0,$.writable=!1}function q($,L,Q){var te=$.entry;for($.entry=null;te;){var se=te.callback;L.pendingcb--,se(Q),te=te.next}L.corkedRequestsFree.next=$}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(L){this._writableState&&(this._writableState.destroyed=L)}}),P.prototype.destroy=o.destroy,P.prototype._undestroy=o.undestroy,P.prototype._destroy=function($,L){L($)},bp}var Bp,_y;function Os(){if(_y)return Bp;_y=1;var r=Object.keys||function(l){var u=[];for(var h in l)u.push(h);return u};Bp=a;var e=Py(),t=Ty();Da(a,e);for(var n=r(t.prototype),i=0;i<n.length;i++){var A=n[i];a.prototype[A]||(a.prototype[A]=t.prototype[A])}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||Tt.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)}}),Bp}var xp={},Ju={exports:{}},Ly;function h3(){return Ly||(Ly=1,function(r,e){var t=Yu(),n=t.Buffer;function i(a,s){for(var o in a)s[o]=a[o]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=t:(i(t,e),e.Buffer=A);function A(a,s,o){return n(a,s,o)}i(n,A),A.from=function(a,s,o){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,o)},A.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},A.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},A.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}}(Ju,Ju.exports)),Ju.exports}var Qy;function Cp(){if(Qy)return xp;Qy=1;var r=h3().Buffer,e=r.isEncoding||function(p){switch(p=""+p,p&&p.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(p){if(!p)return"utf8";for(var v;;)switch(p){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 p;default:if(v)return;p=(""+p).toLowerCase(),v=!0}}function n(p){var v=t(p);if(typeof v!="string"&&(r.isEncoding===e||!e(p)))throw new Error("Unknown encoding: "+p);return v||p}xp.StringDecoder=i;function i(p){this.encoding=n(p);var v;switch(this.encoding){case"utf16le":this.text=h,this.end=f,v=4;break;case"utf8":this.fillLast=o,v=4;break;case"base64":this.text=c,this.end=g,v=3;break;default:this.write=m,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(v)}i.prototype.write=function(p){if(p.length===0)return"";var v,b;if(this.lastNeed){if(v=this.fillLast(p),v===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<p.length?v?v+this.text(p,b):this.text(p,b):v||""},i.prototype.end=u,i.prototype.text=l,i.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function A(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function a(p,v,b){var I=v.length-1;if(I<b)return 0;var N=A(v[I]);return N>=0?(N>0&&(p.lastNeed=N-1),N):--I<b||N===-2?0:(N=A(v[I]),N>=0?(N>0&&(p.lastNeed=N-2),N):--I<b||N===-2?0:(N=A(v[I]),N>=0?(N>0&&(N===2?N=0:p.lastNeed=N-3),N):0))}function s(p,v,b){if((v[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return p.lastNeed=2,"�"}}function o(p){var v=this.lastTotal-this.lastNeed,b=s(this,p);if(b!==void 0)return b;if(this.lastNeed<=p.length)return p.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,v,0,p.length),this.lastNeed-=p.length}function l(p,v){var b=a(this,p,v);if(!this.lastNeed)return p.toString("utf8",v);this.lastTotal=b;var I=p.length-(b-this.lastNeed);return p.copy(this.lastChar,0,I),p.toString("utf8",v,I)}function u(p){var v=p&&p.length?this.write(p):"";return this.lastNeed?v+"�":v}function h(p,v){if((p.length-v)%2===0){var b=p.toString("utf16le",v);if(b){var I=b.charCodeAt(b.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",v,p.length-1)}function f(p){var v=p&&p.length?this.write(p):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function c(p,v){var b=(p.length-v)%3;return b===0?p.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",v,p.length-b))}function g(p){var v=p&&p.length?this.write(p):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function m(p){return p.toString(this.encoding)}function y(p){return p&&p.length?this.write(p):""}return xp}var Ep,Ny;function Sp(){if(Ny)return Ep;Ny=1;var r=Rs().codes.ERR_STREAM_PREMATURE_CLOSE;function e(A){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];A.apply(this,o)}}}function t(){}function n(A){return A.setHeader&&typeof A.abort=="function"}function i(A,a,s){if(typeof a=="function")return i(A,null,a);a||(a={}),s=e(s||t);var o=a.readable||a.readable!==!1&&A.readable,l=a.writable||a.writable!==!1&&A.writable,u=function(){A.writable||f()},h=A._writableState&&A._writableState.finished,f=function(){l=!1,h=!0,o||s.call(A)},c=A._readableState&&A._readableState.endEmitted,g=function(){o=!1,c=!0,l||s.call(A)},m=function(b){s.call(A,b)},y=function(){var b;if(o&&!c)return(!A._readableState||!A._readableState.ended)&&(b=new r),s.call(A,b);if(l&&!h)return(!A._writableState||!A._writableState.ended)&&(b=new r),s.call(A,b)},p=function(){A.req.on("finish",f)};return n(A)?(A.on("complete",f),A.on("abort",y),A.req?p():A.on("request",p)):l&&!A._writableState&&(A.on("end",u),A.on("close",u)),A.on("end",g),A.on("finish",f),a.error!==!1&&A.on("error",m),A.on("close",y),function(){A.removeListener("complete",f),A.removeListener("abort",y),A.removeListener("request",p),A.req&&A.req.removeListener("finish",f),A.removeListener("end",u),A.removeListener("close",u),A.removeListener("finish",f),A.removeListener("end",g),A.removeListener("error",m),A.removeListener("close",y)}}return Ep=i,Ep}var Fp,Ry;function f3(){if(Ry)return Fp;Ry=1;var r;function e(p,v,b){return v in p?Object.defineProperty(p,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[v]=b,p}var t=Sp(),n=Symbol("lastResolve"),i=Symbol("lastReject"),A=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),o=Symbol("handlePromise"),l=Symbol("stream");function u(p,v){return{value:p,done:v}}function h(p){var v=p[n];if(v!==null){var b=p[l].read();b!==null&&(p[s]=null,p[n]=null,p[i]=null,v(u(b,!1)))}}function f(p){Tt.nextTick(h,p)}function c(p,v){return function(b,I){p.then(function(){if(v[a]){b(u(void 0,!0));return}v[o](b,I)},I)}}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((r={get stream(){return this[l]},next:function(){var v=this,b=this[A];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(O,P){Tt.nextTick(function(){v[A]?P(v[A]):O(u(void 0,!0))})});var I=this[s],N;if(I)N=new Promise(c(I,this));else{var M=this[l].read();if(M!==null)return Promise.resolve(u(M,!1));N=new Promise(this[o])}return this[s]=N,N}},e(r,Symbol.asyncIterator,function(){return this}),e(r,"return",function(){var v=this;return new Promise(function(b,I){v[l].destroy(null,function(N){if(N){I(N);return}b(u(void 0,!0))})})}),r),g),y=function(v){var b,I=Object.create(m,(b={},e(b,l,{value:v,writable:!0}),e(b,n,{value:null,writable:!0}),e(b,i,{value:null,writable:!0}),e(b,A,{value:null,writable:!0}),e(b,a,{value:v._readableState.endEmitted,writable:!0}),e(b,o,{value:function(M,O){var P=I[l].read();P?(I[s]=null,I[n]=null,I[i]=null,M(u(P,!1))):(I[n]=M,I[i]=O)},writable:!0}),b));return I[s]=null,t(v,function(N){if(N&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"){var M=I[i];M!==null&&(I[s]=null,I[n]=null,I[i]=null,M(N)),I[A]=N;return}var O=I[n];O!==null&&(I[s]=null,I[n]=null,I[i]=null,O(u(void 0,!0))),I[a]=!0}),v.on("readable",f.bind(null,I)),I};return Fp=y,Fp}var Ip,Oy;function d3(){return Oy||(Oy=1,Ip=function(){throw new Error("Readable.from is not available in the browser")}),Ip}var Up,ky;function Py(){if(ky)return Up;ky=1,Up=_;var r;_.ReadableState=P,kd.EventEmitter;var e=function(ne,ve){return ne.listeners(ve).length},t=j1(),n=Yu().Buffer,i=Ji.Uint8Array||function(){};function A(X){return n.from(X)}function a(X){return n.isBuffer(X)||X instanceof i}var s=by(),o;s&&s.debuglog?o=s.debuglog("stream"):o=function(){};var l=u3(),u=Cy(),h=Fy(),f=h.getHighWaterMark,c=Rs().codes,g=c.ERR_INVALID_ARG_TYPE,m=c.ERR_STREAM_PUSH_AFTER_EOF,y=c.ERR_METHOD_NOT_IMPLEMENTED,p=c.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,v,b,I;Da(_,t);var N=u.errorOrDestroy,M=["error","close","destroy","pause","resume"];function O(X,ne,ve){if(typeof X.prependListener=="function")return X.prependListener(ne,ve);!X._events||!X._events[ne]?X.on(ne,ve):Array.isArray(X._events[ne])?X._events[ne].unshift(ve):X._events[ne]=[ve,X._events[ne]]}function P(X,ne,ve){r=r||Os(),X=X||{},typeof ve!="boolean"&&(ve=ne instanceof r),this.objectMode=!!X.objectMode,ve&&(this.objectMode=this.objectMode||!!X.readableObjectMode),this.highWaterMark=f(this,X,"readableHighWaterMark",ve),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=X.emitClose!==!1,this.autoDestroy=!!X.autoDestroy,this.destroyed=!1,this.defaultEncoding=X.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,X.encoding&&(v||(v=Cp().StringDecoder),this.decoder=new v(X.encoding),this.encoding=X.encoding)}function _(X){if(r=r||Os(),!(this instanceof _))return new _(X);var ne=this instanceof r;this._readableState=new P(X,this,ne),this.readable=!0,X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy)),t.call(this)}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ne){this._readableState&&(this._readableState.destroyed=ne)}}),_.prototype.destroy=u.destroy,_.prototype._undestroy=u.undestroy,_.prototype._destroy=function(X,ne){ne(X)},_.prototype.push=function(X,ne){var ve=this._readableState,k;return ve.objectMode?k=!0:typeof X=="string"&&(ne=ne||ve.defaultEncoding,ne!==ve.encoding&&(X=n.from(X,ne),ne=""),k=!0),G(this,X,ne,!1,k)},_.prototype.unshift=function(X){return G(this,X,null,!0,!1)};function G(X,ne,ve,k,de){o("readableAddChunk",ne);var U=X._readableState;if(ne===null)U.reading=!1,Z(X,U);else{var B;if(de||(B=S(U,ne)),B)N(X,B);else if(U.objectMode||ne&&ne.length>0)if(typeof ne!="string"&&!U.objectMode&&Object.getPrototypeOf(ne)!==n.prototype&&(ne=A(ne)),k)U.endEmitted?N(X,new p):D(X,U,ne,!0);else if(U.ended)N(X,new m);else{if(U.destroyed)return!1;U.reading=!1,U.decoder&&!ve?(ne=U.decoder.write(ne),U.objectMode||ne.length!==0?D(X,U,ne,!1):W(X,U)):D(X,U,ne,!1)}else k||(U.reading=!1,W(X,U))}return!U.ended&&(U.length<U.highWaterMark||U.length===0)}function D(X,ne,ve,k){ne.flowing&&ne.length===0&&!ne.sync?(ne.awaitDrain=0,X.emit("data",ve)):(ne.length+=ne.objectMode?1:ve.length,k?ne.buffer.unshift(ve):ne.buffer.push(ve),ne.needReadable&&z(X)),W(X,ne)}function S(X,ne){var ve;return!a(ne)&&typeof ne!="string"&&ne!==void 0&&!X.objectMode&&(ve=new g("chunk",["string","Buffer","Uint8Array"],ne)),ve}_.prototype.isPaused=function(){return this._readableState.flowing===!1},_.prototype.setEncoding=function(X){v||(v=Cp().StringDecoder);var ne=new v(X);this._readableState.decoder=ne,this._readableState.encoding=this._readableState.decoder.encoding;for(var ve=this._readableState.buffer.head,k="";ve!==null;)k+=ne.write(ve.data),ve=ve.next;return this._readableState.buffer.clear(),k!==""&&this._readableState.buffer.push(k),this._readableState.length=k.length,this};var K=1073741824;function F(X){return X>=K?X=K:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++),X}function ee(X,ne){return X<=0||ne.length===0&&ne.ended?0:ne.objectMode?1:X!==X?ne.flowing&&ne.length?ne.buffer.head.data.length:ne.length:(X>ne.highWaterMark&&(ne.highWaterMark=F(X)),X<=ne.length?X:ne.ended?ne.length:(ne.needReadable=!0,0))}_.prototype.read=function(X){o("read",X),X=parseInt(X,10);var ne=this._readableState,ve=X;if(X!==0&&(ne.emittedReadable=!1),X===0&&ne.needReadable&&((ne.highWaterMark!==0?ne.length>=ne.highWaterMark:ne.length>0)||ne.ended))return o("read: emitReadable",ne.length,ne.ended),ne.length===0&&ne.ended?Q(this):z(this),null;if(X=ee(X,ne),X===0&&ne.ended)return ne.length===0&&Q(this),null;var k=ne.needReadable;o("need readable",k),(ne.length===0||ne.length-X<ne.highWaterMark)&&(k=!0,o("length less than watermark",k)),ne.ended||ne.reading?(k=!1,o("reading or ended",k)):k&&(o("do read"),ne.reading=!0,ne.sync=!0,ne.length===0&&(ne.needReadable=!0),this._read(ne.highWaterMark),ne.sync=!1,ne.reading||(X=ee(ve,ne)));var de;return X>0?de=L(X,ne):de=null,de===null?(ne.needReadable=ne.length<=ne.highWaterMark,X=0):(ne.length-=X,ne.awaitDrain=0),ne.length===0&&(ne.ended||(ne.needReadable=!0),ve!==X&&ne.ended&&Q(this)),de!==null&&this.emit("data",de),de};function Z(X,ne){if(o("onEofChunk"),!ne.ended){if(ne.decoder){var ve=ne.decoder.end();ve&&ve.length&&(ne.buffer.push(ve),ne.length+=ne.objectMode?1:ve.length)}ne.ended=!0,ne.sync?z(X):(ne.needReadable=!1,ne.emittedReadable||(ne.emittedReadable=!0,oe(X)))}}function z(X){var ne=X._readableState;o("emitReadable",ne.needReadable,ne.emittedReadable),ne.needReadable=!1,ne.emittedReadable||(o("emitReadable",ne.flowing),ne.emittedReadable=!0,Tt.nextTick(oe,X))}function oe(X){var ne=X._readableState;o("emitReadable_",ne.destroyed,ne.length,ne.ended),!ne.destroyed&&(ne.length||ne.ended)&&(X.emit("readable"),ne.emittedReadable=!1),ne.needReadable=!ne.flowing&&!ne.ended&&ne.length<=ne.highWaterMark,$(X)}function W(X,ne){ne.readingMore||(ne.readingMore=!0,Tt.nextTick(ce,X,ne))}function ce(X,ne){for(;!ne.reading&&!ne.ended&&(ne.length<ne.highWaterMark||ne.flowing&&ne.length===0);){var ve=ne.length;if(o("maybeReadMore read 0"),X.read(0),ve===ne.length)break}ne.readingMore=!1}_.prototype._read=function(X){N(this,new y("_read()"))},_.prototype.pipe=function(X,ne){var ve=this,k=this._readableState;switch(k.pipesCount){case 0:k.pipes=X;break;case 1:k.pipes=[k.pipes,X];break;default:k.pipes.push(X);break}k.pipesCount+=1,o("pipe count=%d opts=%j",k.pipesCount,ne);var de=(!ne||ne.end!==!1)&&X!==Tt.stdout&&X!==Tt.stderr,U=de?C:ke;k.endEmitted?Tt.nextTick(U):ve.once("end",U),X.on("unpipe",B);function B(ze,Xe){o("onunpipe"),ze===ve&&Xe&&Xe.hasUnpiped===!1&&(Xe.hasUnpiped=!0,fe())}function C(){o("onend"),X.end()}var R=ie(ve);X.on("drain",R);var ae=!1;function fe(){o("cleanup"),X.removeListener("close",Ue),X.removeListener("finish",Ie),X.removeListener("drain",R),X.removeListener("error",xe),X.removeListener("unpipe",B),ve.removeListener("end",C),ve.removeListener("end",ke),ve.removeListener("data",ue),ae=!0,k.awaitDrain&&(!X._writableState||X._writableState.needDrain)&&R()}ve.on("data",ue);function ue(ze){o("ondata");var Xe=X.write(ze);o("dest.write",Xe),Xe===!1&&((k.pipesCount===1&&k.pipes===X||k.pipesCount>1&&se(k.pipes,X)!==-1)&&!ae&&(o("false write response, pause",k.awaitDrain),k.awaitDrain++),ve.pause())}function xe(ze){o("onerror",ze),ke(),X.removeListener("error",xe),e(X,"error")===0&&N(X,ze)}O(X,"error",xe);function Ue(){X.removeListener("finish",Ie),ke()}X.once("close",Ue);function Ie(){o("onfinish"),X.removeListener("close",Ue),ke()}X.once("finish",Ie);function ke(){o("unpipe"),ve.unpipe(X)}return X.emit("pipe",ve),k.flowing||(o("pipe resume"),ve.resume()),X};function ie(X){return function(){var ve=X._readableState;o("pipeOnDrain",ve.awaitDrain),ve.awaitDrain&&ve.awaitDrain--,ve.awaitDrain===0&&e(X,"data")&&(ve.flowing=!0,$(X))}}_.prototype.unpipe=function(X){var ne=this._readableState,ve={hasUnpiped:!1};if(ne.pipesCount===0)return this;if(ne.pipesCount===1)return X&&X!==ne.pipes?this:(X||(X=ne.pipes),ne.pipes=null,ne.pipesCount=0,ne.flowing=!1,X&&X.emit("unpipe",this,ve),this);if(!X){var k=ne.pipes,de=ne.pipesCount;ne.pipes=null,ne.pipesCount=0,ne.flowing=!1;for(var U=0;U<de;U++)k[U].emit("unpipe",this,{hasUnpiped:!1});return this}var B=se(ne.pipes,X);return B===-1?this:(ne.pipes.splice(B,1),ne.pipesCount-=1,ne.pipesCount===1&&(ne.pipes=ne.pipes[0]),X.emit("unpipe",this,ve),this)},_.prototype.on=function(X,ne){var ve=t.prototype.on.call(this,X,ne),k=this._readableState;return X==="data"?(k.readableListening=this.listenerCount("readable")>0,k.flowing!==!1&&this.resume()):X==="readable"&&!k.endEmitted&&!k.readableListening&&(k.readableListening=k.needReadable=!0,k.flowing=!1,k.emittedReadable=!1,o("on readable",k.length,k.reading),k.length?z(this):k.reading||Tt.nextTick(H,this)),ve},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(X,ne){var ve=t.prototype.removeListener.call(this,X,ne);return X==="readable"&&Tt.nextTick(x,this),ve},_.prototype.removeAllListeners=function(X){var ne=t.prototype.removeAllListeners.apply(this,arguments);return(X==="readable"||X===void 0)&&Tt.nextTick(x,this),ne};function x(X){var ne=X._readableState;ne.readableListening=X.listenerCount("readable")>0,ne.resumeScheduled&&!ne.paused?ne.flowing=!0:X.listenerCount("data")>0&&X.resume()}function H(X){o("readable nexttick read 0"),X.read(0)}_.prototype.resume=function(){var X=this._readableState;return X.flowing||(o("resume"),X.flowing=!X.readableListening,V(this,X)),X.paused=!1,this};function V(X,ne){ne.resumeScheduled||(ne.resumeScheduled=!0,Tt.nextTick(q,X,ne))}function q(X,ne){o("resume",ne.reading),ne.reading||X.read(0),ne.resumeScheduled=!1,X.emit("resume"),$(X),ne.flowing&&!ne.reading&&X.read(0)}_.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 $(X){var ne=X._readableState;for(o("flow",ne.flowing);ne.flowing&&X.read()!==null;);}_.prototype.wrap=function(X){var ne=this,ve=this._readableState,k=!1;X.on("end",function(){if(o("wrapped end"),ve.decoder&&!ve.ended){var B=ve.decoder.end();B&&B.length&&ne.push(B)}ne.push(null)}),X.on("data",function(B){if(o("wrapped data"),ve.decoder&&(B=ve.decoder.write(B)),!(ve.objectMode&&B==null)&&!(!ve.objectMode&&(!B||!B.length))){var C=ne.push(B);C||(k=!0,X.pause())}});for(var de in X)this[de]===void 0&&typeof X[de]=="function"&&(this[de]=function(C){return function(){return X[C].apply(X,arguments)}}(de));for(var U=0;U<M.length;U++)X.on(M[U],this.emit.bind(this,M[U]));return this._read=function(B){o("wrapped _read",B),k&&(k=!1,X.resume())},this},typeof Symbol=="function"&&(_.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=f3()),b(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ne){this._readableState&&(this._readableState.flowing=ne)}}),_._fromList=L,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function L(X,ne){if(ne.length===0)return null;var ve;return ne.objectMode?ve=ne.buffer.shift():!X||X>=ne.length?(ne.decoder?ve=ne.buffer.join(""):ne.buffer.length===1?ve=ne.buffer.first():ve=ne.buffer.concat(ne.length),ne.buffer.clear()):ve=ne.buffer.consume(X,ne.decoder),ve}function Q(X){var ne=X._readableState;o("endReadable",ne.endEmitted),ne.endEmitted||(ne.ended=!0,Tt.nextTick(te,ne,X))}function te(X,ne){if(o("endReadableNT",X.endEmitted,X.length),!X.endEmitted&&X.length===0&&(X.endEmitted=!0,ne.readable=!1,ne.emit("end"),X.autoDestroy)){var ve=ne._writableState;(!ve||ve.autoDestroy&&ve.finished)&&ne.destroy()}}typeof Symbol=="function"&&(_.from=function(X,ne){return I===void 0&&(I=d3()),I(_,X,ne)});function se(X,ne){for(var ve=0,k=X.length;ve<k;ve++)if(X[ve]===ne)return ve;return-1}return Up}var Tp,Dy;function Hy(){if(Dy)return Tp;Dy=1,Tp=s;var r=Rs().codes,e=r.ERR_METHOD_NOT_IMPLEMENTED,t=r.ERR_MULTIPLE_CALLBACK,n=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,i=r.ERR_TRANSFORM_WITH_LENGTH_0,A=Os();Da(s,A);function a(u,h){var f=this._transformState;f.transforming=!1;var c=f.writecb;if(c===null)return this.emit("error",new t);f.writechunk=null,f.writecb=null,h!=null&&this.push(h),c(u);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);A.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,f){l(u,h,f)}):l(this,null,null)}s.prototype.push=function(u,h){return this._transformState.needTransform=!1,A.prototype.push.call(this,u,h)},s.prototype._transform=function(u,h,f){f(new e("_transform()"))},s.prototype._write=function(u,h,f){var c=this._transformState;if(c.writecb=f,c.writechunk=u,c.writeencoding=h,!c.transforming){var g=this._readableState;(c.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.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){A.prototype._destroy.call(this,u,function(f){h(f)})};function l(u,h,f){if(h)return u.emit("error",h);if(f!=null&&u.push(f),u._writableState.length)throw new i;if(u._transformState.transforming)throw new n;return u.push(null)}return Tp}var _p,My;function p3(){if(My)return _p;My=1,_p=e;var r=Hy();Da(e,r);function e(t){if(!(this instanceof e))return new e(t);r.call(this,t)}return e.prototype._transform=function(t,n,i){i(null,t)},_p}var Lp,jy;function g3(){if(jy)return Lp;jy=1;var r;function e(f){var c=!1;return function(){c||(c=!0,f.apply(void 0,arguments))}}var t=Rs().codes,n=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function A(f){if(f)throw f}function a(f){return f.setHeader&&typeof f.abort=="function"}function s(f,c,g,m){m=e(m);var y=!1;f.on("close",function(){y=!0}),r===void 0&&(r=Sp()),r(f,{readable:c,writable:g},function(v){if(v)return m(v);y=!0,m()});var p=!1;return function(v){if(!y&&!p){if(p=!0,a(f))return f.abort();if(typeof f.destroy=="function")return f.destroy();m(v||new i("pipe"))}}}function o(f){f()}function l(f,c){return f.pipe(c)}function u(f){return!f.length||typeof f[f.length-1]!="function"?A:f.pop()}function h(){for(var f=arguments.length,c=new Array(f),g=0;g<f;g++)c[g]=arguments[g];var m=u(c);if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new n("streams");var y,p=c.map(function(v,b){var I=b<c.length-1,N=b>0;return s(v,I,N,function(M){y||(y=M),M&&p.forEach(o),!I&&(p.forEach(o),m(y))})});return c.reduce(l)}return Lp=h,Lp}var Qp=ci,Np=kd.EventEmitter,m3=Da;m3(ci,Np),ci.Readable=Py(),ci.Writable=Ty(),ci.Duplex=Os(),ci.Transform=Hy(),ci.PassThrough=p3(),ci.finished=Sp(),ci.pipeline=g3(),ci.Stream=ci;function ci(){Np.call(this)}ci.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 i(){t.readable&&t.resume&&t.resume()}r.on("drain",i),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",a),t.on("close",s));var A=!1;function a(){A||(A=!0,r.end())}function s(){A||(A=!0,typeof r.destroy=="function"&&r.destroy())}function o(u){if(l(),Np.listenerCount(this,"error")===0)throw u}t.on("error",o),r.on("error",o);function l(){t.removeListener("data",n),r.removeListener("drain",i),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,Q){return new n(L,Q)},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,Q){if(!(this instanceof n))return new n(L,Q);var te=this;A(te),te.q=te.c="",te.bufferCheckPosition=e.MAX_BUFFER_LENGTH,te.opt=Q||{},te.opt.lowercase=te.opt.lowercase||te.opt.lowercasetags,te.looseCase=te.opt.lowercase?"toLowerCase":"toUpperCase",te.tags=[],te.closed=te.closedRoot=te.sawRoot=!1,te.tag=te.error=null,te.strict=!!L,te.noscript=!!(L||te.opt.noscript),te.state=_.BEGIN,te.strictEntities=te.opt.strictEntities,te.ENTITIES=te.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),te.attribList=[],te.opt.xmlns&&(te.ns=Object.create(m)),te.trackPosition=te.opt.position!==!1,te.trackPosition&&(te.position=te.line=te.column=0),D(te,"onready")}Object.create||(Object.create=function(L){function Q(){}Q.prototype=L;var te=new Q;return te}),Object.keys||(Object.keys=function(L){var Q=[];for(var te in L)L.hasOwnProperty(te)&&Q.push(te);return Q});function i(L){for(var Q=Math.max(e.MAX_BUFFER_LENGTH,10),te=0,se=0,X=t.length;se<X;se++){var ne=L[t[se]].length;if(ne>Q)switch(t[se]){case"textNode":K(L);break;case"cdata":S(L,"oncdata",L.cdata),L.cdata="";break;case"script":S(L,"onscript",L.script),L.script="";break;default:ee(L,"Max buffer length exceeded: "+t[se])}te=Math.max(te,ne)}var ve=e.MAX_BUFFER_LENGTH-te;L.bufferCheckPosition=ve+L.position}function A(L){for(var Q=0,te=t.length;Q<te;Q++)L[t[Q]]=""}function a(L){K(L),L.cdata!==""&&(S(L,"oncdata",L.cdata),L.cdata=""),L.script!==""&&(S(L,"onscript",L.script),L.script="")}n.prototype={end:function(){Z(this)},write:$,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=Qp.Stream}catch(L){s=function(){}}var o=e.EVENTS.filter(function(L){return L!=="error"&&L!=="end"});function l(L,Q){return new u(L,Q)}function u(L,Q){if(!(this instanceof u))return new u(L,Q);s.apply(this),this._parser=new n(L,Q),this.writable=!0,this.readable=!0;var te=this;this._parser.onend=function(){te.emit("end")},this._parser.onerror=function(se){te.emit("error",se),te._parser.error=null},this._decoder=null,o.forEach(function(se){Object.defineProperty(te,"on"+se,{get:function(){return te._parser["on"+se]},set:function(X){if(!X)return te.removeAllListeners(se),te._parser["on"+se]=X,X;te.on(se,X)},enumerable:!0,configurable:!1})})}u.prototype=Object.create(s.prototype,{constructor:{value:u}}),u.prototype.write=function(L){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(L)){if(!this._decoder){var Q=Cp().StringDecoder;this._decoder=new Q("utf8")}L=this._decoder.write(L)}return this._parser.write(L.toString()),this.emit("data",L),!0},u.prototype.end=function(L){return L&&L.length&&this.write(L),this._parser.end(),!0},u.prototype.on=function(L,Q){var te=this;return!te._parser["on"+L]&&o.indexOf(L)!==-1&&(te._parser["on"+L]=function(){var se=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);se.splice(0,0,L),te.emit.apply(te,se)}),s.prototype.on.call(te,L,Q)};var h="[CDATA[",f="DOCTYPE",c="http://www.w3.org/XML/1998/namespace",g="http://www.w3.org/2000/xmlns/",m={xml:c,xmlns:g},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]/,p=/[:_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-]/,v=/[#:_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(L){return L===" "||L===`
73
+ `||L==="\r"||L===" "}function N(L){return L==='"'||L==="'"}function M(L){return L===">"||I(L)}function O(L,Q){return L.test(Q)}function P(L,Q){return!O(L,Q)}var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},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(L){var Q=e.ENTITIES[L],te=typeof Q=="number"?String.fromCharCode(Q):Q;e.ENTITIES[L]=te});for(var G in e.STATE)e.STATE[e.STATE[G]]=G;_=e.STATE;function D(L,Q,te){L[Q]&&L[Q](te)}function S(L,Q,te){L.textNode&&K(L),D(L,Q,te)}function K(L){L.textNode=F(L.opt,L.textNode),L.textNode&&D(L,"ontext",L.textNode),L.textNode=""}function F(L,Q){return L.trim&&(Q=Q.trim()),L.normalize&&(Q=Q.replace(/\s+/g," ")),Q}function ee(L,Q){return K(L),L.trackPosition&&(Q+=`
74
+ Line: `+L.line+`
75
+ Column: `+L.column+`
76
+ Char: `+L.c),Q=new Error(Q),L.error=Q,D(L,"onerror",Q),L}function Z(L){return L.sawRoot&&!L.closedRoot&&z(L,"Unclosed root tag"),L.state!==_.BEGIN&&L.state!==_.BEGIN_WHITESPACE&&L.state!==_.TEXT&&ee(L,"Unexpected end"),K(L),L.c="",L.closed=!0,D(L,"onend"),n.call(L,L.strict,L.opt),L}function z(L,Q){if(typeof L!="object"||!(L instanceof n))throw new Error("bad call to strictFail");L.strict&&ee(L,Q)}function oe(L){L.strict||(L.tagName=L.tagName[L.looseCase]());var Q=L.tags[L.tags.length-1]||L,te=L.tag={name:L.tagName,attributes:{}};L.opt.xmlns&&(te.ns=Q.ns),L.attribList.length=0,S(L,"onopentagstart",te)}function W(L,Q){var te=L.indexOf(":"),se=te<0?["",L]:L.split(":"),X=se[0],ne=se[1];return Q&&L==="xmlns"&&(X="xmlns",ne=""),{prefix:X,local:ne}}function ce(L){if(L.strict||(L.attribName=L.attribName[L.looseCase]()),L.attribList.indexOf(L.attribName)!==-1||L.tag.attributes.hasOwnProperty(L.attribName)){L.attribName=L.attribValue="";return}if(L.opt.xmlns){var Q=W(L.attribName,!0),te=Q.prefix,se=Q.local;if(te==="xmlns")if(se==="xml"&&L.attribValue!==c)z(L,"xml: prefix must be bound to "+c+`
77
+ Actual: `+L.attribValue);else if(se==="xmlns"&&L.attribValue!==g)z(L,"xmlns: prefix must be bound to "+g+`
78
+ Actual: `+L.attribValue);else{var X=L.tag,ne=L.tags[L.tags.length-1]||L;X.ns===ne.ns&&(X.ns=Object.create(ne.ns)),X.ns[se]=L.attribValue}L.attribList.push([L.attribName,L.attribValue])}else L.tag.attributes[L.attribName]=L.attribValue,S(L,"onattribute",{name:L.attribName,value:L.attribValue});L.attribName=L.attribValue=""}function ie(L,Q){if(L.opt.xmlns){var te=L.tag,se=W(L.tagName);te.prefix=se.prefix,te.local=se.local,te.uri=te.ns[se.prefix]||"",te.prefix&&!te.uri&&(z(L,"Unbound namespace prefix: "+JSON.stringify(L.tagName)),te.uri=se.prefix);var X=L.tags[L.tags.length-1]||L;te.ns&&X.ns!==te.ns&&Object.keys(te.ns).forEach(function(ue){S(L,"onopennamespace",{prefix:ue,uri:te.ns[ue]})});for(var ne=0,ve=L.attribList.length;ne<ve;ne++){var k=L.attribList[ne],de=k[0],U=k[1],B=W(de,!0),C=B.prefix,R=B.local,ae=C===""?"":te.ns[C]||"",fe={name:de,value:U,prefix:C,local:R,uri:ae};C&&C!=="xmlns"&&!ae&&(z(L,"Unbound namespace prefix: "+JSON.stringify(C)),fe.uri=C),L.tag.attributes[de]=fe,S(L,"onattribute",fe)}L.attribList.length=0}L.tag.isSelfClosing=!!Q,L.sawRoot=!0,L.tags.push(L.tag),S(L,"onopentag",L.tag),Q||(!L.noscript&&L.tagName.toLowerCase()==="script"?L.state=_.SCRIPT:L.state=_.TEXT,L.tag=null,L.tagName=""),L.attribName=L.attribValue="",L.attribList.length=0}function x(L){if(!L.tagName){z(L,"Weird empty close tag."),L.textNode+="</>",L.state=_.TEXT;return}if(L.script){if(L.tagName!=="script"){L.script+="</"+L.tagName+">",L.tagName="",L.state=_.SCRIPT;return}S(L,"onscript",L.script),L.script=""}var Q=L.tags.length,te=L.tagName;L.strict||(te=te[L.looseCase]());for(var se=te;Q--;){var X=L.tags[Q];if(X.name!==se)z(L,"Unexpected close tag");else break}if(Q<0){z(L,"Unmatched closing tag: "+L.tagName),L.textNode+="</"+L.tagName+">",L.state=_.TEXT;return}L.tagName=te;for(var ne=L.tags.length;ne-- >Q;){var ve=L.tag=L.tags.pop();L.tagName=L.tag.name,S(L,"onclosetag",L.tagName);var k={};for(var de in ve.ns)k[de]=ve.ns[de];var U=L.tags[L.tags.length-1]||L;L.opt.xmlns&&ve.ns!==U.ns&&Object.keys(ve.ns).forEach(function(B){var C=ve.ns[B];S(L,"onclosenamespace",{prefix:B,uri:C})})}Q===0&&(L.closedRoot=!0),L.tagName=L.attribValue=L.attribName="",L.attribList.length=0,L.state=_.TEXT}function H(L){var Q=L.entity,te=Q.toLowerCase(),se,X="";return L.ENTITIES[Q]?L.ENTITIES[Q]:L.ENTITIES[te]?L.ENTITIES[te]:(Q=te,Q.charAt(0)==="#"&&(Q.charAt(1)==="x"?(Q=Q.slice(2),se=parseInt(Q,16),X=se.toString(16)):(Q=Q.slice(1),se=parseInt(Q,10),X=se.toString(10))),Q=Q.replace(/^0+/,""),isNaN(se)||X.toLowerCase()!==Q?(z(L,"Invalid character entity"),"&"+L.entity+";"):String.fromCodePoint(se))}function V(L,Q){Q==="<"?(L.state=_.OPEN_WAKA,L.startTagPosition=L.position):I(Q)||(z(L,"Non-whitespace before first tag."),L.textNode=Q,L.state=_.TEXT)}function q(L,Q){var te="";return Q<L.length&&(te=L.charAt(Q)),te}function $(L){var Q=this;if(this.error)throw this.error;if(Q.closed)return ee(Q,"Cannot write after close. Assign an onready handler.");if(L===null)return Z(Q);typeof L=="object"&&(L=L.toString());for(var te=0,se="";se=q(L,te++),Q.c=se,!!se;)switch(Q.trackPosition&&(Q.position++,se===`
79
+ `?(Q.line++,Q.column=0):Q.column++),Q.state){case _.BEGIN:if(Q.state=_.BEGIN_WHITESPACE,se==="\uFEFF")continue;V(Q,se);continue;case _.BEGIN_WHITESPACE:V(Q,se);continue;case _.TEXT:if(Q.sawRoot&&!Q.closedRoot){for(var X=te-1;se&&se!=="<"&&se!=="&";)se=q(L,te++),se&&Q.trackPosition&&(Q.position++,se===`
80
+ `?(Q.line++,Q.column=0):Q.column++);Q.textNode+=L.substring(X,te-1)}se==="<"&&!(Q.sawRoot&&Q.closedRoot&&!Q.strict)?(Q.state=_.OPEN_WAKA,Q.startTagPosition=Q.position):(!I(se)&&(!Q.sawRoot||Q.closedRoot)&&z(Q,"Text data outside of root node."),se==="&"?Q.state=_.TEXT_ENTITY:Q.textNode+=se);continue;case _.SCRIPT:se==="<"?Q.state=_.SCRIPT_ENDING:Q.script+=se;continue;case _.SCRIPT_ENDING:se==="/"?Q.state=_.CLOSE_TAG:(Q.script+="<"+se,Q.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(se==="!")Q.state=_.SGML_DECL,Q.sgmlDecl="";else if(!I(se))if(O(y,se))Q.state=_.OPEN_TAG,Q.tagName=se;else if(se==="/")Q.state=_.CLOSE_TAG,Q.tagName="";else if(se==="?")Q.state=_.PROC_INST,Q.procInstName=Q.procInstBody="";else{if(z(Q,"Unencoded <"),Q.startTagPosition+1<Q.position){var ne=Q.position-Q.startTagPosition;se=new Array(ne).join(" ")+se}Q.textNode+="<"+se,Q.state=_.TEXT}continue;case _.SGML_DECL:(Q.sgmlDecl+se).toUpperCase()===h?(S(Q,"onopencdata"),Q.state=_.CDATA,Q.sgmlDecl="",Q.cdata=""):Q.sgmlDecl+se==="--"?(Q.state=_.COMMENT,Q.comment="",Q.sgmlDecl=""):(Q.sgmlDecl+se).toUpperCase()===f?(Q.state=_.DOCTYPE,(Q.doctype||Q.sawRoot)&&z(Q,"Inappropriately located doctype declaration"),Q.doctype="",Q.sgmlDecl=""):se===">"?(S(Q,"onsgmldeclaration",Q.sgmlDecl),Q.sgmlDecl="",Q.state=_.TEXT):(N(se)&&(Q.state=_.SGML_DECL_QUOTED),Q.sgmlDecl+=se);continue;case _.SGML_DECL_QUOTED:se===Q.q&&(Q.state=_.SGML_DECL,Q.q=""),Q.sgmlDecl+=se;continue;case _.DOCTYPE:se===">"?(Q.state=_.TEXT,S(Q,"ondoctype",Q.doctype),Q.doctype=!0):(Q.doctype+=se,se==="["?Q.state=_.DOCTYPE_DTD:N(se)&&(Q.state=_.DOCTYPE_QUOTED,Q.q=se));continue;case _.DOCTYPE_QUOTED:Q.doctype+=se,se===Q.q&&(Q.q="",Q.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:Q.doctype+=se,se==="]"?Q.state=_.DOCTYPE:N(se)&&(Q.state=_.DOCTYPE_DTD_QUOTED,Q.q=se);continue;case _.DOCTYPE_DTD_QUOTED:Q.doctype+=se,se===Q.q&&(Q.state=_.DOCTYPE_DTD,Q.q="");continue;case _.COMMENT:se==="-"?Q.state=_.COMMENT_ENDING:Q.comment+=se;continue;case _.COMMENT_ENDING:se==="-"?(Q.state=_.COMMENT_ENDED,Q.comment=F(Q.opt,Q.comment),Q.comment&&S(Q,"oncomment",Q.comment),Q.comment=""):(Q.comment+="-"+se,Q.state=_.COMMENT);continue;case _.COMMENT_ENDED:se!==">"?(z(Q,"Malformed comment"),Q.comment+="--"+se,Q.state=_.COMMENT):Q.state=_.TEXT;continue;case _.CDATA:se==="]"?Q.state=_.CDATA_ENDING:Q.cdata+=se;continue;case _.CDATA_ENDING:se==="]"?Q.state=_.CDATA_ENDING_2:(Q.cdata+="]"+se,Q.state=_.CDATA);continue;case _.CDATA_ENDING_2:se===">"?(Q.cdata&&S(Q,"oncdata",Q.cdata),S(Q,"onclosecdata"),Q.cdata="",Q.state=_.TEXT):se==="]"?Q.cdata+="]":(Q.cdata+="]]"+se,Q.state=_.CDATA);continue;case _.PROC_INST:se==="?"?Q.state=_.PROC_INST_ENDING:I(se)?Q.state=_.PROC_INST_BODY:Q.procInstName+=se;continue;case _.PROC_INST_BODY:if(!Q.procInstBody&&I(se))continue;se==="?"?Q.state=_.PROC_INST_ENDING:Q.procInstBody+=se;continue;case _.PROC_INST_ENDING:se===">"?(S(Q,"onprocessinginstruction",{name:Q.procInstName,body:Q.procInstBody}),Q.procInstName=Q.procInstBody="",Q.state=_.TEXT):(Q.procInstBody+="?"+se,Q.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:O(p,se)?Q.tagName+=se:(oe(Q),se===">"?ie(Q):se==="/"?Q.state=_.OPEN_TAG_SLASH:(I(se)||z(Q,"Invalid character in tag name"),Q.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:se===">"?(ie(Q,!0),x(Q)):(z(Q,"Forward-slash in opening tag not followed by >"),Q.state=_.ATTRIB);continue;case _.ATTRIB:if(I(se))continue;se===">"?ie(Q):se==="/"?Q.state=_.OPEN_TAG_SLASH:O(y,se)?(Q.attribName=se,Q.attribValue="",Q.state=_.ATTRIB_NAME):z(Q,"Invalid attribute name");continue;case _.ATTRIB_NAME:se==="="?Q.state=_.ATTRIB_VALUE:se===">"?(z(Q,"Attribute without value"),Q.attribValue=Q.attribName,ce(Q),ie(Q)):I(se)?Q.state=_.ATTRIB_NAME_SAW_WHITE:O(p,se)?Q.attribName+=se:z(Q,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(se==="=")Q.state=_.ATTRIB_VALUE;else{if(I(se))continue;z(Q,"Attribute without value"),Q.tag.attributes[Q.attribName]="",Q.attribValue="",S(Q,"onattribute",{name:Q.attribName,value:""}),Q.attribName="",se===">"?ie(Q):O(y,se)?(Q.attribName=se,Q.state=_.ATTRIB_NAME):(z(Q,"Invalid attribute name"),Q.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(I(se))continue;N(se)?(Q.q=se,Q.state=_.ATTRIB_VALUE_QUOTED):(z(Q,"Unquoted attribute value"),Q.state=_.ATTRIB_VALUE_UNQUOTED,Q.attribValue=se);continue;case _.ATTRIB_VALUE_QUOTED:if(se!==Q.q){se==="&"?Q.state=_.ATTRIB_VALUE_ENTITY_Q:Q.attribValue+=se;continue}ce(Q),Q.q="",Q.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:I(se)?Q.state=_.ATTRIB:se===">"?ie(Q):se==="/"?Q.state=_.OPEN_TAG_SLASH:O(y,se)?(z(Q,"No whitespace between attributes"),Q.attribName=se,Q.attribValue="",Q.state=_.ATTRIB_NAME):z(Q,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!M(se)){se==="&"?Q.state=_.ATTRIB_VALUE_ENTITY_U:Q.attribValue+=se;continue}ce(Q),se===">"?ie(Q):Q.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(Q.tagName)se===">"?x(Q):O(p,se)?Q.tagName+=se:Q.script?(Q.script+="</"+Q.tagName,Q.tagName="",Q.state=_.SCRIPT):(I(se)||z(Q,"Invalid tagname in closing tag"),Q.state=_.CLOSE_TAG_SAW_WHITE);else{if(I(se))continue;P(y,se)?Q.script?(Q.script+="</"+se,Q.state=_.SCRIPT):z(Q,"Invalid tagname in closing tag."):Q.tagName=se}continue;case _.CLOSE_TAG_SAW_WHITE:if(I(se))continue;se===">"?x(Q):z(Q,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var ve,k;switch(Q.state){case _.TEXT_ENTITY:ve=_.TEXT,k="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:ve=_.ATTRIB_VALUE_QUOTED,k="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:ve=_.ATTRIB_VALUE_UNQUOTED,k="attribValue";break}se===";"?(Q[k]+=H(Q),Q.entity="",Q.state=ve):O(Q.entity.length?b:v,se)?Q.entity+=se:(z(Q,"Invalid character in entity name"),Q[k]+="&"+Q.entity+se,Q.entity="",Q.state=ve);continue;default:throw new Error(Q,"Unknown state: "+Q.state)}return Q.position>=Q.bufferCheckPosition&&i(Q),Q}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var L=String.fromCharCode,Q=Math.floor,te=function(){var se=16384,X=[],ne,ve,k=-1,de=arguments.length;if(!de)return"";for(var U="";++k<de;){var B=Number(arguments[k]);if(!isFinite(B)||B<0||B>1114111||Q(B)!==B)throw RangeError("Invalid code point: "+B);B<=65535?X.push(B):(B-=65536,ne=(B>>10)+55296,ve=B%1024+56320,X.push(ne,ve)),(k+1===de||X.length>se)&&(U+=L.apply(null,X),X.length=0)}return U};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:te,configurable:!0,writable:!0}):String.fromCodePoint=te}()})(r)}(S1);var Rp={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}},v3=Rp.isArray,Op={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"&&!v3(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}},w3=S1,Gt=Op,ks=Rp.isArray,Ne,wt;function y3(r){return Ne=Gt.copyOptions(r),Gt.ensureFlagExists("ignoreDeclaration",Ne),Gt.ensureFlagExists("ignoreInstruction",Ne),Gt.ensureFlagExists("ignoreAttributes",Ne),Gt.ensureFlagExists("ignoreText",Ne),Gt.ensureFlagExists("ignoreComment",Ne),Gt.ensureFlagExists("ignoreCdata",Ne),Gt.ensureFlagExists("ignoreDoctype",Ne),Gt.ensureFlagExists("compact",Ne),Gt.ensureFlagExists("alwaysChildren",Ne),Gt.ensureFlagExists("addParent",Ne),Gt.ensureFlagExists("trim",Ne),Gt.ensureFlagExists("nativeType",Ne),Gt.ensureFlagExists("nativeTypeAttributes",Ne),Gt.ensureFlagExists("sanitize",Ne),Gt.ensureFlagExists("instructionHasAttributes",Ne),Gt.ensureFlagExists("captureSpacesBetweenElements",Ne),Gt.ensureAlwaysArrayExists(Ne),Gt.ensureKeyExists("declaration",Ne),Gt.ensureKeyExists("instruction",Ne),Gt.ensureKeyExists("attributes",Ne),Gt.ensureKeyExists("text",Ne),Gt.ensureKeyExists("comment",Ne),Gt.ensureKeyExists("cdata",Ne),Gt.ensureKeyExists("doctype",Ne),Gt.ensureKeyExists("type",Ne),Gt.ensureKeyExists("name",Ne),Gt.ensureKeyExists("elements",Ne),Gt.ensureKeyExists("parent",Ne),Ne}function Ky(r){var e=Number(r);if(!isNaN(e))return e;var t=r.toLowerCase();return t==="true"?!0:t==="false"?!1:r}function tl(r,e){var t;if(Ne.compact){if(!wt[Ne[r+"Key"]]&&(ks(Ne.alwaysArray)?Ne.alwaysArray.indexOf(Ne[r+"Key"])!==-1:Ne.alwaysArray)&&(wt[Ne[r+"Key"]]=[]),wt[Ne[r+"Key"]]&&!ks(wt[Ne[r+"Key"]])&&(wt[Ne[r+"Key"]]=[wt[Ne[r+"Key"]]]),r+"Fn"in Ne&&typeof e=="string"&&(e=Ne[r+"Fn"](e,wt)),r==="instruction"&&("instructionFn"in Ne||"instructionNameFn"in Ne)){for(t in e)if(e.hasOwnProperty(t))if("instructionFn"in Ne)e[t]=Ne.instructionFn(e[t],t,wt);else{var n=e[t];delete e[t],e[Ne.instructionNameFn(t,n,wt)]=n}}ks(wt[Ne[r+"Key"]])?wt[Ne[r+"Key"]].push(e):wt[Ne[r+"Key"]]=e}else{wt[Ne.elementsKey]||(wt[Ne.elementsKey]=[]);var i={};if(i[Ne.typeKey]=r,r==="instruction"){for(t in e)if(e.hasOwnProperty(t))break;i[Ne.nameKey]="instructionNameFn"in Ne?Ne.instructionNameFn(t,e,wt):t,Ne.instructionHasAttributes?(i[Ne.attributesKey]=e[t][Ne.attributesKey],"instructionFn"in Ne&&(i[Ne.attributesKey]=Ne.instructionFn(i[Ne.attributesKey],t,wt))):("instructionFn"in Ne&&(e[t]=Ne.instructionFn(e[t],t,wt)),i[Ne.instructionKey]=e[t])}else r+"Fn"in Ne&&(e=Ne[r+"Fn"](e,wt)),i[Ne[r+"Key"]]=e;Ne.addParent&&(i[Ne.parentKey]=wt),wt[Ne.elementsKey].push(i)}}function Vy(r){if("attributesFn"in Ne&&r&&(r=Ne.attributesFn(r,wt)),(Ne.trim||"attributeValueFn"in Ne||"attributeNameFn"in Ne||Ne.nativeTypeAttributes)&&r){var e;for(e in r)if(r.hasOwnProperty(e)&&(Ne.trim&&(r[e]=r[e].trim()),Ne.nativeTypeAttributes&&(r[e]=Ky(r[e])),"attributeValueFn"in Ne&&(r[e]=Ne.attributeValueFn(r[e],e,wt)),"attributeNameFn"in Ne)){var t=r[e];delete r[e],r[Ne.attributeNameFn(e,r[e],wt)]=t}}return r}function b3(r){var e={};if(r.body&&(r.name.toLowerCase()==="xml"||Ne.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=Vy(e)}if(r.name.toLowerCase()==="xml"){if(Ne.ignoreDeclaration)return;wt[Ne.declarationKey]={},Object.keys(e).length&&(wt[Ne.declarationKey][Ne.attributesKey]=e),Ne.addParent&&(wt[Ne.declarationKey][Ne.parentKey]=wt)}else{if(Ne.ignoreInstruction)return;Ne.trim&&(r.body=r.body.trim());var i={};Ne.instructionHasAttributes&&Object.keys(e).length?(i[r.name]={},i[r.name][Ne.attributesKey]=e):i[r.name]=r.body,tl("instruction",i)}}function B3(r,e){var t;if(typeof r=="object"&&(e=r.attributes,r=r.name),e=Vy(e),"elementNameFn"in Ne&&(r=Ne.elementNameFn(r,wt)),Ne.compact){if(t={},!Ne.ignoreAttributes&&e&&Object.keys(e).length){t[Ne.attributesKey]={};var n;for(n in e)e.hasOwnProperty(n)&&(t[Ne.attributesKey][n]=e[n])}!(r in wt)&&(ks(Ne.alwaysArray)?Ne.alwaysArray.indexOf(r)!==-1:Ne.alwaysArray)&&(wt[r]=[]),wt[r]&&!ks(wt[r])&&(wt[r]=[wt[r]]),ks(wt[r])?wt[r].push(t):wt[r]=t}else wt[Ne.elementsKey]||(wt[Ne.elementsKey]=[]),t={},t[Ne.typeKey]="element",t[Ne.nameKey]=r,!Ne.ignoreAttributes&&e&&Object.keys(e).length&&(t[Ne.attributesKey]=e),Ne.alwaysChildren&&(t[Ne.elementsKey]=[]),wt[Ne.elementsKey].push(t);t[Ne.parentKey]=wt,wt=t}function x3(r){Ne.ignoreText||!r.trim()&&!Ne.captureSpacesBetweenElements||(Ne.trim&&(r=r.trim()),Ne.nativeType&&(r=Ky(r)),Ne.sanitize&&(r=r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),tl("text",r))}function C3(r){Ne.ignoreComment||(Ne.trim&&(r=r.trim()),tl("comment",r))}function E3(r){var e=wt[Ne.parentKey];Ne.addParent||delete wt[Ne.parentKey],wt=e}function S3(r){Ne.ignoreCdata||(Ne.trim&&(r=r.trim()),tl("cdata",r))}function F3(r){Ne.ignoreDoctype||(r=r.replace(/^ /,""),Ne.trim&&(r=r.trim()),tl("doctype",r))}function I3(r){r.note=r}var zy=function(r,e){var t=w3.parser(!0,{}),n={};if(wt=n,Ne=y3(e),t.opt={strictEntities:!0},t.onopentag=B3,t.ontext=x3,t.oncomment=C3,t.onclosetag=E3,t.onerror=I3,t.oncdata=S3,t.ondoctype=F3,t.onprocessinginstruction=b3,t.write(r).close(),n[Ne.elementsKey]){var i=n[Ne.elementsKey];delete n[Ne.elementsKey],n[Ne.elementsKey]=i,delete n.text}return n},$y=Op,U3=zy;function T3(r){var e=$y.copyOptions(r);return $y.ensureSpacesExists(e),e}var _3=function(r,e){var t,n,i,A;return t=T3(e),n=U3(r,t),A="compact"in t&&t.compact?"_parent":"parent","addParent"in t&&t.addParent?i=JSON.stringify(n,function(a,s){return a===A?"_":s},t.spaces):i=JSON.stringify(n,null,t.spaces),i.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},ir=Op,L3=Rp.isArray,gn,mn;function Q3(r){var e=ir.copyOptions(r);return ir.ensureFlagExists("ignoreDeclaration",e),ir.ensureFlagExists("ignoreInstruction",e),ir.ensureFlagExists("ignoreAttributes",e),ir.ensureFlagExists("ignoreText",e),ir.ensureFlagExists("ignoreComment",e),ir.ensureFlagExists("ignoreCdata",e),ir.ensureFlagExists("ignoreDoctype",e),ir.ensureFlagExists("compact",e),ir.ensureFlagExists("indentText",e),ir.ensureFlagExists("indentCdata",e),ir.ensureFlagExists("indentAttributes",e),ir.ensureFlagExists("indentInstruction",e),ir.ensureFlagExists("fullTagEmptyElement",e),ir.ensureFlagExists("noQuotesForNativeAttributes",e),ir.ensureSpacesExists(e),typeof e.spaces=="number"&&(e.spaces=Array(e.spaces+1).join(" ")),ir.ensureKeyExists("declaration",e),ir.ensureKeyExists("instruction",e),ir.ensureKeyExists("attributes",e),ir.ensureKeyExists("text",e),ir.ensureKeyExists("comment",e),ir.ensureKeyExists("cdata",e),ir.ensureKeyExists("doctype",e),ir.ensureKeyExists("type",e),ir.ensureKeyExists("name",e),ir.ensureKeyExists("elements",e),e}function tA(r,e,t){return(!t&&r.spaces?`
81
+ `:"")+Array(e+1).join(r.spaces)}function Zu(r,e,t){if(e.ignoreAttributes)return"";"attributesFn"in e&&(r=e.attributesFn(r,mn,gn));var n,i,A,a,s=[];for(n in r)r.hasOwnProperty(n)&&r[n]!==null&&r[n]!==void 0&&(a=e.noQuotesForNativeAttributes&&typeof r[n]!="string"?"":'"',i=""+r[n],i=i.replace(/"/g,"&quot;"),A="attributeNameFn"in e?e.attributeNameFn(n,i,mn,gn):n,s.push(e.spaces&&e.indentAttributes?tA(e,t+1,!1):" "),s.push(A+"="+a+("attributeValueFn"in e?e.attributeValueFn(i,n,mn,gn):i)+a));return r&&Object.keys(r).length&&e.spaces&&e.indentAttributes&&s.push(tA(e,t,!1)),s.join("")}function Gy(r,e,t){return gn=r,mn="xml",e.ignoreDeclaration?"":"<?xml"+Zu(r[e.attributesKey],e,t)+"?>"}function Wy(r,e,t){if(e.ignoreInstruction)return"";var n;for(n in r)if(r.hasOwnProperty(n))break;var i="instructionNameFn"in e?e.instructionNameFn(n,r[n],mn,gn):n;if(typeof r[n]=="object")return gn=r,mn=i,"<?"+i+Zu(r[n][e.attributesKey],e,t)+"?>";var A=r[n]?r[n]:"";return"instructionFn"in e&&(A=e.instructionFn(A,n,mn,gn)),"<?"+i+(A?" "+A:"")+"?>"}function qy(r,e){return e.ignoreComment?"":"<!--"+("commentFn"in e?e.commentFn(r,mn,gn):r)+"-->"}function Xy(r,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(r,mn,gn):r.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function Yy(r,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(r,mn,gn):r)+">"}function kp(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,mn,gn):r)}function N3(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 R3(r,e,t){gn=r,mn=r.name;var n=[],i="elementNameFn"in e?e.elementNameFn(r.name,r):r.name;n.push("<"+i),r[e.attributesKey]&&n.push(Zu(r[e.attributesKey],e,t));var A=r[e.elementsKey]&&r[e.elementsKey].length||r[e.attributesKey]&&r[e.attributesKey]["xml:space"]==="preserve";return A||("fullTagEmptyElementFn"in e?A=e.fullTagEmptyElementFn(r.name,r):A=e.fullTagEmptyElement),A?(n.push(">"),r[e.elementsKey]&&r[e.elementsKey].length&&(n.push(Jy(r[e.elementsKey],e,t+1)),gn=r,mn=r.name),n.push(e.spaces&&N3(r,e)?`
82
+ `+Array(t+1).join(e.spaces):""),n.push("</"+i+">")):n.push("/>"),n.join("")}function Jy(r,e,t,n){return r.reduce(function(i,A){var a=tA(e,t,n&&!i);switch(A.type){case"element":return i+a+R3(A,e,t);case"comment":return i+a+qy(A[e.commentKey],e);case"doctype":return i+a+Yy(A[e.doctypeKey],e);case"cdata":return i+(e.indentCdata?a:"")+Xy(A[e.cdataKey],e);case"text":return i+(e.indentText?a:"")+kp(A[e.textKey],e);case"instruction":var s={};return s[A[e.nameKey]]=A[e.attributesKey]?A:A[e.instructionKey],i+(e.indentInstruction?a:"")+Wy(s,e,t)}},"")}function Zy(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,i){gn=r,mn=e;var A="elementNameFn"in t?t.elementNameFn(e,r):e;if(typeof r=="undefined"||r===null||r==="")return"fullTagEmptyElementFn"in t&&t.fullTagEmptyElementFn(e,r)||t.fullTagEmptyElement?"<"+A+"></"+A+">":"<"+A+"/>";var a=[];if(e){if(a.push("<"+A),typeof r!="object")return a.push(">"+kp(r,t)+"</"+A+">"),a.join("");r[t.attributesKey]&&a.push(Zu(r[t.attributesKey],t,n));var s=Zy(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(eb(r,t,n+1,!1)),gn=r,mn=e,e&&a.push((i?tA(t,n,!1):"")+"</"+A+">"),a.join("")}function eb(r,e,t,n){var i,A,a,s=[];for(A in r)if(r.hasOwnProperty(A))for(a=L3(r[A])?r[A]:[r[A]],i=0;i<a.length;++i){switch(A){case e.declarationKey:s.push(Gy(a[i],e,t));break;case e.instructionKey:s.push((e.indentInstruction?tA(e,t,n):"")+Wy(a[i],e,t));break;case e.attributesKey:case e.parentKey:break;case e.textKey:s.push((e.indentText?tA(e,t,n):"")+kp(a[i],e));break;case e.cdataKey:s.push((e.indentCdata?tA(e,t,n):"")+Xy(a[i],e));break;case e.doctypeKey:s.push(tA(e,t,n)+Yy(a[i],e));break;case e.commentKey:s.push(tA(e,t,n)+qy(a[i],e));break;default:s.push(tA(e,t,n)+O3(a[i],A,e,t,Zy(a[i],e)))}n=n&&!s.length}return s.join("")}var tb=function(r,e){e=Q3(e);var t=[];return gn=r,mn="_root_",e.compact?t.push(eb(r,e,0,!0)):(r[e.declarationKey]&&t.push(Gy(r[e.declarationKey],e,0)),r[e.elementsKey]&&r[e.elementsKey].length&&t.push(Jy(r[e.elementsKey],e,0,!t.length))),t.join("")},k3=tb,P3=function(r,e){r instanceof Buffer&&(r=r.toString());var t=null;if(typeof r=="string")try{t=JSON.parse(r)}catch(n){throw new Error("The JSON structure is invalid")}else t=r;return k3(t,e)},D3=zy,H3=_3,M3=tb,j3=P3,rb={xml2js:D3,xml2json:H3,js2xml:M3,json2xml:j3};const Pp=r=>{switch(r.type){case void 0:case"element":const e=new V3(r.name,r.attributes),t=r.elements||[];for(const n of t){const i=Pp(n);i!==void 0&&e.push(i)}return e;case"text":return r.text;default:return}};class K3 extends tt{}class V3 extends Le{static fromXmlString(e){const t=rb.xml2js(e,{compact:!1});return Pp(t)}constructor(e,t){super(e),t&&this.root.push(new K3(t))}push(e){this.root.push(e)}}class z3 extends Le{constructor(e){super(""),this._attr=e}prepForXml(e){return{_attr:this._attr}}}class nb extends Le{constructor(e,t){super(e),t&&(this.root=t.root)}}const vn=r=>{if(isNaN(r))throw new Error(`Invalid value '${r}' specified. Must be an integer.`);return Math.floor(r)},ec=r=>{const e=vn(r);if(e<0)throw new Error(`Invalid value '${r}' specified. Must be a positive integer.`);return e},ib=(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},Ab=r=>ib(r,1),Dp=r=>{const e=r.slice(-2),t=r.substring(0,r.length-2);return`${Number(t)}${e}`},ab=r=>{const e=Dp(r);if(parseFloat(e)<0)throw new Error(`Invalid value '${e}' specified. Expected a positive number.`);return e},Ps=r=>{if(r==="auto")return r;const e=r.charAt(0)==="#"?r.substring(1):r;return ib(e,3)},yA=r=>typeof r=="string"?Dp(r):vn(r),$3=r=>typeof r=="string"?ab(r):ec(r),on=r=>typeof r=="string"?ab(r):ec(r),G3=r=>{const e=r.substring(0,r.length-1);return`${Number(e)}%`},W3=r=>typeof r=="number"?vn(r):r.slice(-1)==="%"?G3(r):Dp(r),q3=ec,X3=ec,Y3=r=>r.toISOString();class Ke extends Le{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new vr({val:t}))}}class Hp extends Le{constructor(e,t){super(e),this.root.push(new vr({val:$3(t)}))}}class Ma extends Le{constructor(e,t){super(e),this.root.push(new vr({val:t}))}}const rl=(r,e)=>new Hr({name:r,attributes:{value:{key:"w:val",value:e}}});class Mp extends Le{constructor(e,t){super(e),this.root.push(new vr({val:t}))}}class J3 extends Le{constructor(e,t){super(e),this.root.push(new vr({val:t}))}}class ja extends Le{constructor(e,t){super(e),this.root.push(t)}}class Hr extends Le{constructor({name:e,attributes:t,children:n}){super(e),t&&this.root.push(new mA(t)),n&&this.root.push(...n)}}const hi={START:"start",CENTER:"center",LEFT:"left"};class Z3 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class sb extends Le{constructor(e){super("w:jc"),this.root.push(new Z3({val:e}))}}class Jt extends Le{constructor(e,{color:t,size:n,space:i,style:A}){super(e),this.root.push(new eU({style:A,color:t===void 0?void 0:Ps(t),size:n===void 0?void 0:q3(n),space:i===void 0?void 0:X3(i)}))}}class eU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{style:"w:val",color:"w:color",size:"w:sz",space:"w:space"})}}const tc={SINGLE:"single",NONE:"none"};class tU extends gA{constructor(e){super("w:pBdr"),e.top&&this.root.push(new Jt("w:top",e.top)),e.bottom&&this.root.push(new Jt("w:bottom",e.bottom)),e.left&&this.root.push(new Jt("w:left",e.left)),e.right&&this.root.push(new Jt("w:right",e.right))}}class rU extends Le{constructor(){super("w:pBdr");const e=new Jt("w:bottom",{color:"auto",space:1,style:tc.SINGLE,size:6});this.root.push(e)}}class nU extends Le{constructor({start:e,end:t,left:n,right:i,hanging:A,firstLine:a}){super("w:ind"),this.root.push(new mA({start:{key:"w:start",value:e===void 0?void 0:yA(e)},end:{key:"w:end",value:t===void 0?void 0:yA(t)},left:{key:"w:left",value:n===void 0?void 0:yA(n)},right:{key:"w:right",value:i===void 0?void 0:yA(i)},hanging:{key:"w:hanging",value:A===void 0?void 0:on(A)},firstLine:{key:"w:firstLine",value:a===void 0?void 0:on(a)}}))}}let iU=class extends Le{constructor(){super("w:br")}};const jp={BEGIN:"begin",END:"end",SEPARATE:"separate"};class Kp extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{type:"w:fldCharType",dirty:"w:dirty"})}}class rc extends Le{constructor(e){super("w:fldChar"),this.root.push(new Kp({type:jp.BEGIN,dirty:e}))}}class nc extends Le{constructor(e){super("w:fldChar"),this.root.push(new Kp({type:jp.SEPARATE,dirty:e}))}}class ic extends Le{constructor(e){super("w:fldChar"),this.root.push(new Kp({type:jp.END,dirty:e}))}}const Ds={DEFAULT:"default",PRESERVE:"preserve"};class Hs extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{space:"xml:space"})}}class AU extends Le{constructor(){super("w:instrText"),this.root.push(new Hs({space:Ds.PRESERVE})),this.root.push("PAGE")}}class aU extends Le{constructor(){super("w:instrText"),this.root.push(new Hs({space:Ds.PRESERVE})),this.root.push("NUMPAGES")}}class sU extends Le{constructor(){super("w:instrText"),this.root.push(new Hs({space:Ds.PRESERVE})),this.root.push("SECTIONPAGES")}}class oU extends Le{constructor(){super("w:instrText"),this.root.push(new Hs({space:Ds.PRESERVE})),this.root.push("SECTION")}}class lU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{fill:"w:fill",color:"w:color",type:"w:val"})}}class Ac extends Le{constructor({fill:e,color:t,type:n}){super("w:shd"),this.root.push(new lU({fill:e===void 0?void 0:Ps(e),color:t===void 0?void 0:Ps(t),type:n}))}}class uU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}}const cU={DOT:"dot"};class hU extends Le{constructor(e){super("w:em"),this.root.push(new vr({val:e}))}}class fU extends hU{constructor(e=cU.DOT){super(e)}}class dU extends Le{constructor(e){super("w:spacing"),this.root.push(new vr({val:yA(e)}))}}class pU extends Le{constructor(e){super("w:color"),this.root.push(new vr({val:Ps(e)}))}}class gU extends Le{constructor(e){super("w:highlight"),this.root.push(new vr({val:e}))}}class mU extends Le{constructor(e){super("w:highlightCs"),this.root.push(new vr({val:e}))}}const vU=r=>new Hr({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 ob extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{ascii:"w:ascii",cs:"w:cs",eastAsia:"w:eastAsia",hAnsi:"w:hAnsi",hint:"w:hint"})}}class Vp extends Le{constructor(e,t){if(super("w:rFonts"),typeof e=="string"){const n=e;this.root.push(new ob({ascii:n,cs:n,eastAsia:n,hAnsi:n,hint:t}))}else{const n=e;this.root.push(new ob(n))}}}let lb=class extends Le{constructor(e){super("w:vertAlign"),this.root.push(new vr({val:e}))}};class wU extends lb{constructor(){super("superscript")}}class yU extends lb{constructor(){super("subscript")}}const ub={SINGLE:"single"};class bU extends Le{constructor(e=ub.SINGLE,t){super("w:u"),this.root.push(new vr({val:e,color:t===void 0?void 0:Ps(t)}))}}class Ka extends gA{constructor(e){var t,n;if(super("w:rPr"),!e)return;e.noProof!==void 0&&this.push(new Ke("w:noProof",e.noProof)),e.bold!==void 0&&this.push(new Ke("w:b",e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new Ke("w:bCs",(t=e.boldComplexScript)!=null?t:e.bold)),e.italics!==void 0&&this.push(new Ke("w:i",e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new Ke("w:iCs",(n=e.italicsComplexScript)!=null?n:e.italics)),e.underline&&this.push(new bU(e.underline.type,e.underline.color)),e.effect&&this.push(new Ma("w:effect",e.effect)),e.emphasisMark&&this.push(new fU(e.emphasisMark.type)),e.color&&this.push(new pU(e.color)),e.kern&&this.push(new Hp("w:kern",e.kern)),e.position&&this.push(new Ma("w:position",e.position)),e.size!==void 0&&this.push(new Hp("w:sz",e.size));const i=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;i&&this.push(new Hp("w:szCs",i)),e.rightToLeft!==void 0&&this.push(new Ke("w:rtl",e.rightToLeft)),e.smallCaps!==void 0?this.push(new Ke("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new Ke("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new Ke("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new Ke("w:dstrike",e.doubleStrike)),e.subScript&&this.push(new yU),e.superScript&&this.push(new wU),e.style&&this.push(new Ma("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(new Vp(e.font)):"name"in e.font?this.push(new Vp(e.font.name,e.font.hint)):this.push(new Vp(e.font))),e.highlight&&this.push(new gU(e.highlight));const A=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;A&&this.push(new mU(A)),e.characterSpacing&&this.push(new dU(e.characterSpacing)),e.emboss!==void 0&&this.push(new Ke("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new Ke("w:imprint",e.imprint)),e.shading&&this.push(new Ac(e.shading)),e.revision&&this.push(new BU(e.revision)),e.border&&this.push(new Jt("w:bdr",e.border)),e.snapToGrid!==void 0&&this.push(new Ke("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new Ke("w:vanish",e.vanish)),e.specVanish&&this.push(new Ke("w:specVanish",e.vanish)),e.scale!==void 0&&this.push(new Mp("w:w",e.scale)),e.language&&this.push(vU(e.language)),e.math&&this.push(new Ke("w:oMath",e.math))}push(e){this.root.push(e)}}class BU extends Le{constructor(e){super("w:rPrChange"),this.root.push(new uU({id:e.id,author:e.author,date:e.date})),this.addChildElement(new Ka(e))}}class zp extends Le{constructor(e){var t;super("w:t"),typeof e=="string"?(this.root.push(new Hs({space:Ds.PRESERVE})),this.root.push(e)):(this.root.push(new Hs({space:(t=e.space)!=null?t:Ds.DEFAULT})),this.root.push(e.text))}}const ac={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"};class nl extends Le{constructor(e){if(super("w:r"),Qe(this,"properties"),this.properties=new Ka(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(new iU);if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case ac.CURRENT:this.root.push(new rc),this.root.push(new AU),this.root.push(new nc),this.root.push(new ic);break;case ac.TOTAL_PAGES:this.root.push(new rc),this.root.push(new aU),this.root.push(new nc),this.root.push(new ic);break;case ac.TOTAL_PAGES_IN_SECTION:this.root.push(new rc),this.root.push(new sU),this.root.push(new nc),this.root.push(new ic);break;case ac.CURRENT_SECTION:this.root.push(new rc),this.root.push(new oU),this.root.push(new nc),this.root.push(new ic);break;default:this.root.push(new zp(t));break}continue}this.root.push(t)}else e.text&&this.root.push(new zp(e.text))}}class Ir extends nl{constructor(e){if(typeof e=="string")return super({}),this.root.push(new zp(e)),this;super(e)}}let xU="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",CU=(r,e=21)=>(t=e)=>{let n="",i=t;for(;i--;)n+=r[Math.random()*r.length|0];return n},EU=(r=21)=>{let e="",t=r;for(;t--;)e+=xU[Math.random()*64|0];return e};const Ui=r=>Math.floor(r*72*20),sc=(r=0)=>{let e=r;return()=>++e},SU=()=>sc(),FU=()=>sc(1),IU=()=>sc(),UU=()=>sc(),$p=()=>EU().toLowerCase(),il=r=>CU("1234567890abcdef",r)(),TU=()=>`${il(8)}-${il(4)}-${il(4)}-${il(4)}-${il(12)}`,_U={PAGE:"page"},LU={PAGE:"page"};class QU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{x:"x",y:"y"})}}class NU extends Le{constructor(){super("wp:simplePos"),this.root.push(new QU({x:0,y:0}))}}class cb extends Le{constructor(e){super("wp:align"),this.root.push(e)}}class hb extends Le{constructor(e){super("wp:posOffset"),this.root.push(e.toString())}}class RU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class OU extends Le{constructor(e){if(super("wp:positionH"),this.root.push(new RU({relativeFrom:e.relative||_U.PAGE})),e.align)this.root.push(new cb(e.align));else if(e.offset!==void 0)this.root.push(new hb(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class kU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{relativeFrom:"relativeFrom"})}}class PU extends Le{constructor(e){if(super("wp:positionV"),this.root.push(new kU({relativeFrom:e.relative||LU.PAGE})),e.align)this.root.push(new cb(e.align));else if(e.offset!==void 0)this.root.push(new hb(e.offset));else throw new Error("There is no configuration provided for floating position (Align or offset)")}}class DU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{uri:"uri"})}}const HU=r=>new Hr({name:"asvg:svgBlip",attributes:{asvg:{key:"xmlns:asvg",value:"http://schemas.microsoft.com/office/drawing/2016/SVG/main"},embed:{key:"r:embed",value:`rId{${r.fileName}}`}}}),MU=r=>new Hr({name:"a:ext",attributes:{uri:{key:"uri",value:"{96DAC541-7B7A-43D3-8B79-37D633B846F1}"}},children:[HU(r)]}),jU=r=>new Hr({name:"a:extLst",children:[MU(r)]}),KU=r=>new Hr({name:"a:blip",attributes:{embed:{key:"r:embed",value:`rId{${r.type==="svg"?r.fallback.fileName:r.fileName}}`},cstate:{key:"cstate",value:"none"}},children:r.type==="svg"?[jU(r)]:[]});class VU extends Le{constructor(){super("a:srcRect")}}class zU extends Le{constructor(){super("a:fillRect")}}class $U extends Le{constructor(){super("a:stretch"),this.root.push(new zU)}}class GU extends Le{constructor(e){super("pic:blipFill"),this.root.push(KU(e)),this.root.push(new VU),this.root.push(new $U)}}class WU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{noChangeAspect:"noChangeAspect",noChangeArrowheads:"noChangeArrowheads"})}}class qU extends Le{constructor(){super("a:picLocks"),this.root.push(new WU({noChangeAspect:1,noChangeArrowheads:1}))}}class XU extends Le{constructor(){super("pic:cNvPicPr"),this.root.push(new qU)}}const fb=(r,e)=>new Hr({name:"a:hlinkClick",attributes:XA(_t({},e?{xmlns:{key:"xmlns:a",value:"http://schemas.openxmlformats.org/drawingml/2006/main"}}:{}),{id:{key:"r:id",value:`rId${r}`}})});class YU extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"id",name:"name",descr:"descr"})}}class JU extends Le{constructor(){super("pic:cNvPr"),this.root.push(new YU({id:0,name:"",descr:""}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){const n=e.stack[t];if(n instanceof Yp){this.root.push(fb(n.linkId,!1));break}}return super.prepForXml(e)}}class ZU extends Le{constructor(){super("pic:nvPicPr"),this.root.push(new JU),this.root.push(new XU)}}class eT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{xmlns:"xmlns:pic"})}}class tT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class rT extends Le{constructor(e,t){super("a:ext"),Qe(this,"attributes"),this.attributes=new tT({cx:e,cy:t}),this.root.push(this.attributes)}}class nT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{x:"x",y:"y"})}}class iT extends Le{constructor(){super("a:off"),this.root.push(new nT({x:0,y:0}))}}class AT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{flipVertical:"flipV",flipHorizontal:"flipH",rotation:"rot"})}}class aT extends Le{constructor(e){var t,n;super("a:xfrm"),Qe(this,"extents"),this.root.push(new AT({flipVertical:(t=e.flip)==null?void 0:t.vertical,flipHorizontal:(n=e.flip)==null?void 0:n.horizontal,rotation:e.rotation})),this.extents=new rT(e.emus.x,e.emus.y),this.root.push(new iT),this.root.push(this.extents)}}const db=()=>new Hr({name:"a:noFill"}),sT=r=>new Hr({name:"a:schemeClr",attributes:{value:{key:"val",value:r.value}}}),oT=r=>new Hr({name:"a:srgbClr",attributes:{value:{key:"val",value:r.value}}}),pb=r=>new Hr({name:"a:solidFill",children:[r.type==="rgb"?oT(r):sT(r)]}),lT=r=>new Hr({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"?db():r.solidFillType==="rgb"?pb({type:"rgb",value:r.value}):pb({type:"scheme",value:r.value})]});class uT extends Le{constructor(){super("a:avLst")}}class cT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{prst:"prst"})}}class hT extends Le{constructor(){super("a:prstGeom"),this.root.push(new cT({prst:"rect"})),this.root.push(new uT)}}class fT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{bwMode:"bwMode"})}}class dT extends Le{constructor({outline:e,transform:t}){super("pic:spPr"),Qe(this,"form"),this.root.push(new fT({bwMode:"auto"})),this.form=new aT(t),this.root.push(this.form),this.root.push(new hT),e&&(this.root.push(db()),this.root.push(lT(e)))}}class pT extends Le{constructor({mediaData:e,transform:t,outline:n}){super("pic:pic"),this.root.push(new eT({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.root.push(new ZU),this.root.push(new GU(e)),this.root.push(new dT({transform:t,outline:n}))}}class gT extends Le{constructor({mediaData:e,transform:t,outline:n}){super("a:graphicData"),Qe(this,"pic"),this.root.push(new DU({uri:"http://schemas.openxmlformats.org/drawingml/2006/picture"})),this.pic=new pT({mediaData:e,transform:t,outline:n}),this.root.push(this.pic)}}class mT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{a:"xmlns:a"})}}class gb extends Le{constructor({mediaData:e,transform:t,outline:n}){super("a:graphic"),Qe(this,"data"),this.root.push(new mT({a:"http://schemas.openxmlformats.org/drawingml/2006/main"})),this.data=new gT({mediaData:e,transform:t,outline:n}),this.root.push(this.data)}}const oc={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},vT={BOTH_SIDES:"bothSides"};class mb extends Le{constructor(){super("wp:wrapNone")}}class wT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",wrapText:"wrapText"})}}class yT extends Le{constructor(e,t={top:0,bottom:0,left:0,right:0}){super("wp:wrapSquare"),this.root.push(new wT({wrapText:e.side||vT.BOTH_SIDES,distT:t.top,distB:t.bottom,distL:t.left,distR:t.right}))}}class bT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class BT extends Le{constructor(e={top:0,bottom:0}){super("wp:wrapTight"),this.root.push(new bT({distT:e.top,distB:e.bottom}))}}class xT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{distT:"distT",distB:"distB"})}}class CT extends Le{constructor(e={top:0,bottom:0}){super("wp:wrapTopAndBottom"),this.root.push(new xT({distT:e.top,distB:e.bottom}))}}class vb extends Le{constructor({name:e,description:t,title:n}={name:"",description:"",title:""}){super("wp:docPr"),Qe(this,"docPropertiesUniqueNumericId",IU()),this.root.push(new mA({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 Yp){this.root.push(fb(n.linkId,!0));break}}return super.prepForXml(e)}}const wb=({top:r,right:e,bottom:t,left:n})=>new Hr({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 ET extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{cx:"cx",cy:"cy"})}}class yb extends Le{constructor(e,t){super("wp:extent"),Qe(this,"attributes"),this.attributes=new ET({cx:e,cy:t}),this.root.push(this.attributes)}}class ST extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{xmlns:"xmlns:a",noChangeAspect:"noChangeAspect"})}}class FT extends Le{constructor(){super("a:graphicFrameLocks"),this.root.push(new ST({xmlns:"http://schemas.openxmlformats.org/drawingml/2006/main",noChangeAspect:1}))}}class bb extends Le{constructor(){super("wp:cNvGraphicFramePr"),this.root.push(new FT)}}class IT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{distT:"distT",distB:"distB",distL:"distL",distR:"distR",allowOverlap:"allowOverlap",behindDoc:"behindDoc",layoutInCell:"layoutInCell",locked:"locked",relativeHeight:"relativeHeight",simplePos:"simplePos"})}}class UT extends Le{constructor({mediaData:e,transform:t,drawingOptions:n}){super("wp:anchor");const i=_t({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new IT({distT:i.margins&&i.margins.top||0,distB:i.margins&&i.margins.bottom||0,distL:i.margins&&i.margins.left||0,distR:i.margins&&i.margins.right||0,simplePos:"0",allowOverlap:i.allowOverlap===!0?"1":"0",behindDoc:i.behindDocument===!0?"1":"0",locked:i.lockAnchor===!0?"1":"0",layoutInCell:i.layoutInCell===!0?"1":"0",relativeHeight:i.zIndex?i.zIndex:t.emus.y})),this.root.push(new NU),this.root.push(new OU(i.horizontalPosition)),this.root.push(new PU(i.verticalPosition)),this.root.push(new yb(t.emus.x,t.emus.y)),this.root.push(wb({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case oc.SQUARE:this.root.push(new yT(n.floating.wrap,n.floating.margins));break;case oc.TIGHT:this.root.push(new BT(n.floating.margins));break;case oc.TOP_AND_BOTTOM:this.root.push(new CT(n.floating.margins));break;case oc.NONE:default:this.root.push(new mb)}else this.root.push(new mb);this.root.push(new vb(n.docProperties)),this.root.push(new bb),this.root.push(new gb({mediaData:e,transform:t,outline:n.outline}))}}const TT=({mediaData:r,transform:e,docProperties:t,outline:n})=>{var i,A,a,s;return new Hr({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 yb(e.emus.x,e.emus.y),wb(n?{top:((i=n.width)!=null?i:9525)*2,right:((A=n.width)!=null?A: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 vb(t),new bb,new gb({mediaData:r,transform:e,outline:n})]})};class _T extends Le{constructor(e,t={}){super("w:drawing"),t.floating?this.root.push(new UT({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(TT({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline}))}}const LT=r=>{if(typeof atob=="function"){const e=";base64,",t=r.indexOf(e),n=t===-1?0:t+e.length;return new Uint8Array(atob(r.substring(n)).split("").map(i=>i.charCodeAt(0)))}else{const e=require("buffer");return new e.Buffer(r,"base64")}},QT=r=>typeof r=="string"?LT(r):r,Gp=(r,e)=>({data:QT(r.data),fileName:e,transformation:{pixels:{x:Math.round(r.transformation.width),y:Math.round(r.transformation.height)},emus:{x:Math.round(r.transformation.width*9525),y:Math.round(r.transformation.height*9525)},flip:r.transformation.flip,rotation:r.transformation.rotation?r.transformation.rotation*6e4:void 0}});class Bb extends nl{constructor(e){super({}),Qe(this,"key"),Qe(this,"fallbackKey",`${$p()}.png`),Qe(this,"imageData"),this.key=`${$p()}.${e.type}`,this.imageData=e.type==="svg"?XA(_t({type:e.type},Gp(e,this.key)),{fallback:_t({type:e.fallback.type},Gp(XA(_t({},e.fallback),{transformation:e.transformation}),this.fallbackKey))}):_t({type:e.type},Gp(e,this.key));const t=new _T(this.imageData,{floating:e.floating,docProperties:e.altText,outline:e.outline});this.root.push(t)}prepForXml(e){return e.file.Media.addImage(this.key,this.imageData),this.imageData.type==="svg"&&e.file.Media.addImage(this.fallbackKey,this.imageData.fallback),super.prepForXml(e)}}class NT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}}class RT extends tt{constructor(){super(...arguments),Qe(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 OT extends Le{constructor({id:e,initials:t,author:n,date:i=new Date,children:A}){super("w:comment"),this.root.push(new NT({id:e,initials:t,author:n,date:i.toISOString()}));for(const a of A)this.root.push(a)}}class kT extends Le{constructor({children:e}){super("w:comments"),this.root.push(new RT({"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 OT(t))}}class PT extends Le{constructor(){super("w:pageBreakBefore")}}const Wp={AUTO:"auto"};class DT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{after:"w:after",before:"w:before",line:"w:line",lineRule:"w:lineRule"})}}class HT extends Le{constructor(e){super("w:spacing"),this.root.push(new DT(e))}}const qp={HEADING_1:"Heading1",HEADING_2:"Heading2"};let lc=class extends Le{constructor(e){super("w:pStyle"),this.root.push(new vr({val:e}))}};class MT extends Le{constructor(e){super("w:tabs");for(const t of e)this.root.push(new KT(t))}}const xb={LEFT:"left",RIGHT:"right"};class jT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val",pos:"w:pos",leader:"w:leader"})}}class KT extends Le{constructor({type:e,position:t,leader:n}){super("w:tab"),this.root.push(new jT({val:e,pos:t,leader:n}))}}class Xp extends Le{constructor(e,t){super("w:numPr"),this.root.push(new VT(t)),this.root.push(new zT(e))}}class VT extends Le{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 vr({val:e}))}}class zT extends Le{constructor(e){super("w:numId"),this.root.push(new vr({val:typeof e=="string"?`{${e}}`:e}))}}class Cb extends Le{constructor(){super(...arguments),Qe(this,"fileChild",Symbol())}}class $T extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"Id",type:"Type",target:"Target",targetMode:"TargetMode"})}}const GT={EXTERNAL:"External"};class WT extends Le{constructor(e,t,n,i){super("Relationship"),this.root.push(new $T({id:e,type:t,target:n,targetMode:i}))}}class qT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}}class Yp extends Le{constructor(e,t,n){super("w:hyperlink"),Qe(this,"linkId"),this.linkId=t;const i={history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`},A=new qT(i);this.root.push(A),e.forEach(a=>{this.root.push(a)})}}class XT extends Le{constructor(e){super("w:externalHyperlink"),this.options=e}}class YT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"w:id",name:"w:name"})}}class JT extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{id:"w:id"})}}class ZT{constructor(e){Qe(this,"bookmarkUniqueNumericId",UU()),Qe(this,"start"),Qe(this,"children"),Qe(this,"end");const t=this.bookmarkUniqueNumericId();this.start=new e_(e.id,t),this.children=e.children,this.end=new t_(t)}}class e_ extends Le{constructor(e,t){super("w:bookmarkStart");const n=new YT({name:e,id:t});this.root.push(n)}}class t_ extends Le{constructor(e){super("w:bookmarkEnd");const t=new JT({id:e});this.root.push(t)}}class r_ extends Le{constructor(e){super("w:outlineLvl"),this.level=e,this.root.push(new vr({val:e}))}}class n_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{verticalAlign:"w:val"})}}class Eb extends Le{constructor(e){super("w:vAlign"),this.root.push(new n_({verticalAlign:e}))}}const Ms={DEFAULT:"default",FIRST:"first",EVEN:"even"};class i_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{type:"w:type",id:"r:id"})}}const Sb={HEADER:"w:headerReference",FOOTER:"w:footerReference"};class Jp extends Le{constructor(e,t){super(e),this.root.push(new i_({type:t.type||Ms.DEFAULT,id:`rId${t.id}`}))}}class A_ extends Le{constructor({space:e,count:t,separate:n,equalWidth:i,children:A}){super("w:cols"),this.root.push(new mA({space:{key:"w:space",value:e===void 0?void 0:on(e)},count:{key:"w:num",value:t===void 0?void 0:vn(t)},separate:{key:"w:sep",value:n},equalWidth:{key:"w:equalWidth",value:i}})),!i&&A&&A.forEach(a=>this.addChildElement(a))}}class a_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{type:"w:type",linePitch:"w:linePitch",charSpace:"w:charSpace"})}}class s_ extends Le{constructor(e,t,n){super("w:docGrid"),this.root.push(new a_({type:n,linePitch:vn(e),charSpace:t?vn(t):void 0}))}}const o_=({countBy:r,start:e,restart:t,distance:n})=>new Hr({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:r===void 0?void 0:vn(r)},start:{key:"w:start",value:e===void 0?void 0:vn(e)},restart:{key:"w:restart",value:t},distance:{key:"w:distance",value:n===void 0?void 0:on(n)}}});class Fb extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}}class l_ extends gA{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new Fb({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new Fb({})),e.pageBorderTop&&this.root.push(new Jt("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(new Jt("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(new Jt("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(new Jt("w:right",e.pageBorderRight))}}class u_ extends Le{constructor(e,t,n,i,A,a,s){super("w:pgMar"),this.root.push(new mA({top:{key:"w:top",value:yA(e)},right:{key:"w:right",value:on(t)},bottom:{key:"w:bottom",value:yA(n)},left:{key:"w:left",value:on(i)},header:{key:"w:header",value:on(A)},footer:{key:"w:footer",value:on(a)},gutter:{key:"w:gutter",value:on(s)}}))}}class c_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{start:"w:start",formatType:"w:fmt",separator:"w:chapSep"})}}class h_ extends Le{constructor({start:e,formatType:t,separator:n}){super("w:pgNumType"),this.root.push(new c_({start:e===void 0?void 0:vn(e),formatType:t,separator:n}))}}const Ib={PORTRAIT:"portrait",LANDSCAPE:"landscape"};class f_ extends Le{constructor(e,t,n){super("w:pgSz");const i=n===Ib.LANDSCAPE,A=on(e),a=on(t);this.root.push(new mA({width:{key:"w:w",value:i?a:A},height:{key:"w:h",value:i?A:a},orientation:{key:"w:orient",value:n}}))}}class d_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class p_ extends Le{constructor(e){super("w:textDirection"),this.root.push(new d_({val:e}))}}class g_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class m_ extends Le{constructor(e){super("w:type"),this.root.push(new g_({val:e}))}}const Va={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Zp={WIDTH:11906,HEIGHT:16838,ORIENTATION:Ib.PORTRAIT};class v_ extends Le{constructor({page:{size:{width:e=Zp.WIDTH,height:t=Zp.HEIGHT,orientation:n=Zp.ORIENTATION}={},margin:{top:i=Va.TOP,right:A=Va.RIGHT,bottom:a=Va.BOTTOM,left:s=Va.LEFT,header:o=Va.HEADER,footer:l=Va.FOOTER,gutter:u=Va.GUTTER}={},pageNumbers:h={},borders:f,textDirection:c}={},grid:{linePitch:g=360,charSpace:m,type:y}={},headerWrapperGroup:p={},footerWrapperGroup:v={},lineNumbers:b,titlePage:I,verticalAlign:N,column:M,type:O}={}){super("w:sectPr"),this.addHeaderFooterGroup(Sb.HEADER,p),this.addHeaderFooterGroup(Sb.FOOTER,v),O&&this.root.push(new m_(O)),this.root.push(new f_(e,t,n)),this.root.push(new u_(i,A,a,s,o,l,u)),f&&this.root.push(new l_(f)),b&&this.root.push(o_(b)),this.root.push(new h_(h)),M&&this.root.push(new A_(M)),N&&this.root.push(new Eb(N)),I!==void 0&&this.root.push(new Ke("w:titlePg",I)),c&&this.root.push(new p_(c)),this.root.push(new s_(g,m,y))}addHeaderFooterGroup(e,t){t.default&&this.root.push(new Jp(e,{type:Ms.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(new Jp(e,{type:Ms.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(new Jp(e,{type:Ms.EVEN,id:t.even.View.ReferenceId}))}}class w_ extends Le{constructor(){super("w:body"),Qe(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new v_(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 tr({}),n=new Ks({});return n.push(e),t.addChildElement(n),t}}class Al extends tt{constructor(){super(...arguments),Qe(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 y_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}}class b_ extends Le{constructor(e){super("w:background"),this.root.push(new y_({color:e.color===void 0?void 0:Ps(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Ab(e.themeShade),themeTint:e.themeTint===void 0?void 0:Ab(e.themeTint)}))}}let B_=class extends Le{constructor(e){super("w:document"),Qe(this,"body"),this.root.push(new Al({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 w_,e.background&&this.root.push(new b_(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}};class x_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{xmlns:"xmlns"})}}class js extends Le{constructor(){super("Relationships"),this.root.push(new x_({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}createRelationship(e,t,n,i){const A=new WT(`rId${e}`,t,n,i);return this.root.push(A),A}get RelationshipCount(){return this.root.length-1}}class Ub{constructor(e){Qe(this,"document"),Qe(this,"relationships"),this.document=new B_(e),this.relationships=new js}get View(){return this.document}get Relationships(){return this.relationships}}class C_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class E_ extends Le{constructor(){super("w:wordWrap"),this.root.push(new C_({val:0}))}}const S_=r=>{var e,t;return new Hr({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 Ks extends gA{constructor(e){var t,n;if(super("w:pPr"),Qe(this,"numberingReferences",[]),!e)return this;e.heading&&this.push(new lc(e.heading)),e.bullet&&this.push(new lc("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(new lc("ListParagraph"))),e.style&&this.push(new lc(e.style)),e.keepNext!==void 0&&this.push(new Ke("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new Ke("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new PT),e.frame&&this.push(S_(e.frame)),e.widowControl!==void 0&&this.push(new Ke("w:widowControl",e.widowControl)),e.bullet&&this.push(new Xp(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!=null?t:0}),this.push(new Xp(`${e.numbering.reference}-${(n=e.numbering.instance)!=null?n:0}`,e.numbering.level))):e.numbering===!1&&this.push(new Xp(0,0)),e.border&&this.push(new tU(e.border)),e.thematicBreak&&this.push(new rU),e.shading&&this.push(new Ac(e.shading)),e.wordWrap&&this.push(new E_),e.overflowPunctuation&&this.push(new Ke("w:overflowPunct",e.overflowPunctuation));const i=[...e.rightTabStop!==void 0?[{type:xb.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:xb.LEFT,position:e.leftTabStop}]:[]];i.length>0&&this.push(new MT(i)),e.bidirectional!==void 0&&this.push(new Ke("w:bidi",e.bidirectional)),e.spacing&&this.push(new HT(e.spacing)),e.indent&&this.push(new nU(e.indent)),e.contextualSpacing!==void 0&&this.push(new Ke("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(new sb(e.alignment)),e.outlineLevel!==void 0&&this.push(new r_(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new Ke("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new Ke("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Ka(e.run))}push(e){this.root.push(e)}prepForXml(e){if(e.viewWrapper instanceof Ub)for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}}class tr extends Cb{constructor(e){if(super("w:p"),Qe(this,"properties"),typeof e=="string")return this.properties=new Ks({}),this.root.push(this.properties),this.root.push(new Ir(e)),this;if(this.properties=new Ks(e),this.root.push(this.properties),e.text&&this.root.push(new Ir(e.text)),e.children)for(const t of e.children){if(t instanceof ZT){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 XT){const n=this.root.indexOf(t),i=new Yp(t.options.children,$p());e.viewWrapper.Relationships.createRelationship(i.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,GT.EXTERNAL),this.root[n]=i}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}}class F_ extends Le{constructor(e){super("w:tblGrid");for(const t of e)this.root.push(new I_(t))}}class I_ extends Le{constructor(e){super("w:gridCol"),e!==void 0&&this.root.push(new mA({width:{key:"w:w",value:on(e)}}))}}const Tb={TABLE:"w:tblCellMar",TABLE_CELL:"w:tcMar"};class _b extends gA{constructor(e,{marginUnitType:t=Vs.DXA,top:n,left:i,bottom:A,right:a}){super(e),n!==void 0&&this.root.push(new za("w:top",{type:t,size:n})),i!==void 0&&this.root.push(new za("w:left",{type:t,size:i})),A!==void 0&&this.root.push(new za("w:bottom",{type:t,size:A})),a!==void 0&&this.root.push(new za("w:right",{type:t,size:a}))}}const Vs={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"};class za extends Le{constructor(e,{type:t=Vs.AUTO,size:n}){super(e);let i=n;t===Vs.PERCENTAGE&&typeof n=="number"&&(i=`${n}%`),this.root.push(new mA({type:{key:"w:type",value:t},size:{key:"w:w",value:W3(i)}}))}}class U_ extends gA{constructor(e){super("w:tcBorders"),e.top&&this.root.push(new Jt("w:top",e.top)),e.start&&this.root.push(new Jt("w:start",e.start)),e.left&&this.root.push(new Jt("w:left",e.left)),e.bottom&&this.root.push(new Jt("w:bottom",e.bottom)),e.end&&this.root.push(new Jt("w:end",e.end)),e.right&&this.root.push(new Jt("w:right",e.right))}}class T_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class __ extends Le{constructor(e){super("w:gridSpan"),this.root.push(new T_({val:vn(e)}))}}const Lb={CONTINUE:"continue",RESTART:"restart"};class L_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class Qb extends Le{constructor(e){super("w:vMerge"),this.root.push(new L_({val:e}))}}class Q_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class N_ extends Le{constructor(e){super("w:textDirection"),this.root.push(new Q_({val:e}))}}class R_ extends gA{constructor(e){super("w:tcPr"),e.width&&this.root.push(new za("w:tcW",e.width)),e.columnSpan&&this.root.push(new __(e.columnSpan)),e.verticalMerge?this.root.push(new Qb(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new Qb(Lb.RESTART)),e.borders&&this.root.push(new U_(e.borders)),e.shading&&this.root.push(new Ac(e.shading)),e.margins&&this.root.push(new _b(Tb.TABLE_CELL,e.margins)),e.textDirection&&this.root.push(new N_(e.textDirection)),e.verticalAlign&&this.root.push(new Eb(e.verticalAlign))}}class uc extends Le{constructor(e){super("w:tc"),this.options=e,this.root.push(new R_(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof tr||this.root.push(new tr({})),super.prepForXml(e)}}const zs={style:tc.NONE,size:0,color:"auto"},$s={style:tc.SINGLE,size:4,color:"auto"};class Nb extends Le{constructor(e){super("w:tblBorders"),e.top?this.root.push(new Jt("w:top",e.top)):this.root.push(new Jt("w:top",$s)),e.left?this.root.push(new Jt("w:left",e.left)):this.root.push(new Jt("w:left",$s)),e.bottom?this.root.push(new Jt("w:bottom",e.bottom)):this.root.push(new Jt("w:bottom",$s)),e.right?this.root.push(new Jt("w:right",e.right)):this.root.push(new Jt("w:right",$s)),e.insideHorizontal?this.root.push(new Jt("w:insideH",e.insideHorizontal)):this.root.push(new Jt("w:insideH",$s)),e.insideVertical?this.root.push(new Jt("w:insideV",e.insideVertical)):this.root.push(new Jt("w:insideV",$s))}}Qe(Nb,"NONE",{top:zs,bottom:zs,left:zs,right:zs,insideHorizontal:zs,insideVertical:zs});class O_ extends Le{constructor({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:n,relativeHorizontalPosition:i,absoluteVerticalPosition:A,relativeVerticalPosition:a,bottomFromText:s,topFromText:o,leftFromText:l,rightFromText:u,overlap:h}){super("w:tblpPr"),this.root.push(new mA({leftFromText:{key:"w:leftFromText",value:l===void 0?void 0:on(l)},rightFromText:{key:"w:rightFromText",value:u===void 0?void 0:on(u)},topFromText:{key:"w:topFromText",value:o===void 0?void 0:on(o)},bottomFromText:{key:"w:bottomFromText",value:s===void 0?void 0:on(s)},absoluteHorizontalPosition:{key:"w:tblpX",value:n===void 0?void 0:yA(n)},absoluteVerticalPosition:{key:"w:tblpY",value:A===void 0?void 0:yA(A)},horizontalAnchor:{key:"w:horzAnchor",value:e===void 0?void 0:e},relativeHorizontalPosition:{key:"w:tblpXSpec",value:i},relativeVerticalPosition:{key:"w:tblpYSpec",value:a},verticalAnchor:{key:"w:vertAnchor",value:t}})),h&&this.root.push(new J3("w:tblOverlap",h))}}class k_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{type:"w:type"})}}class P_ extends Le{constructor(e){super("w:tblLayout"),this.root.push(new k_({type:e}))}}class D_ extends gA{constructor(e){super("w:tblPr"),e.style&&this.root.push(new Ma("w:tblStyle",e.style)),e.float&&this.root.push(new O_(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new Ke("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(new za("w:tblW",e.width)),e.alignment&&this.root.push(new sb(e.alignment)),e.indent&&this.root.push(new za("w:tblInd",e.indent)),e.borders&&this.root.push(new Nb(e.borders)),e.shading&&this.root.push(new Ac(e.shading)),e.layout&&this.root.push(new P_(e.layout)),e.cellMargin&&this.root.push(new _b(Tb.TABLE,e.cellMargin))}}class H_ extends Cb{constructor({rows:e,width:t,columnWidths:n=Array(Math.max(...e.map(f=>f.CellCount))).fill(100),margins:i,indent:A,float:a,layout:s,style:o,borders:l,alignment:u,visuallyRightToLeft:h}){super("w:tbl"),this.root.push(new D_({borders:l!=null?l:{},width:t!=null?t:{size:100},indent:A,float:a,layout:s,style:o,alignment:u,cellMargin:i,visuallyRightToLeft:h})),this.root.push(new F_(n));for(const f of e)this.root.push(f);e.forEach((f,c)=>{if(c===e.length-1)return;let g=0;f.cells.forEach(m=>{if(m.options.rowSpan&&m.options.rowSpan>1){const y=new uc({rowSpan:m.options.rowSpan-1,columnSpan:m.options.columnSpan,borders:m.options.borders,children:[],verticalMerge:Lb.CONTINUE});e[c+1].addCellToColumnIndex(y,g)}g+=m.options.columnSpan||1})})}}class M_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{value:"w:val",rule:"w:hRule"})}}class j_ extends Le{constructor(e,t){super("w:trHeight"),this.root.push(new M_({value:on(e),rule:t}))}}class K_ extends gA{constructor(e){super("w:trPr"),e.cantSplit!==void 0&&this.root.push(new Ke("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new Ke("w:tblHeader",e.tableHeader)),e.height&&this.root.push(new j_(e.height.value,e.height.rule))}}class V_ extends Le{constructor(e){super("w:tr"),this.options=e,this.root.push(new K_(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 uc)}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 i=this.root[n];t+=i.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,i=1;for(;n<=e;){if(i>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${n-1}`)}const A=this.root[i];i+=1,n+=A&&A.options.columnSpan||1}return i-1}}class z_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class $_ extends Le{constructor(){super("Properties"),this.root.push(new z_({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}}class G_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{xmlns:"xmlns"})}}class W_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{contentType:"ContentType",extension:"Extension"})}}class bA extends Le{constructor(e,t){super("Default"),this.root.push(new W_({contentType:e,extension:t}))}}class q_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{contentType:"ContentType",partName:"PartName"})}}class fi extends Le{constructor(e,t){super("Override"),this.root.push(new q_({contentType:e,partName:t}))}}class X_ extends Le{constructor(){super("Types"),this.root.push(new G_({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(new bA("image/png","png")),this.root.push(new bA("image/jpeg","jpeg")),this.root.push(new bA("image/jpeg","jpg")),this.root.push(new bA("image/bmp","bmp")),this.root.push(new bA("image/gif","gif")),this.root.push(new bA("image/svg+xml","svg")),this.root.push(new bA("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(new bA("application/xml","xml")),this.root.push(new bA("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(new fi("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addFooter(e){this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(new fi("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}}class Y_ extends Le{constructor(e){super("cp:coreProperties"),this.root.push(new Al({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 ja("dc:title",e.title)),e.subject&&this.root.push(new ja("dc:subject",e.subject)),e.creator&&this.root.push(new ja("dc:creator",e.creator)),e.keywords&&this.root.push(new ja("cp:keywords",e.keywords)),e.description&&this.root.push(new ja("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new ja("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new ja("cp:revision",String(e.revision))),this.root.push(new Rb("dcterms:created")),this.root.push(new Rb("dcterms:modified"))}}class Rb extends Le{constructor(e){super(e),this.root.push(new Al({type:"dcterms:W3CDTF"})),this.root.push(Y3(new Date))}}class J_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}}class Z_ extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{fmtid:"fmtid",pid:"pid",name:"name"})}}class e6 extends Le{constructor(e,t){super("property"),this.root.push(new Z_({fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new t6(t.value))}}class t6 extends Le{constructor(e){super("vt:lpwstr"),this.root.push(e)}}class r6 extends Le{constructor(e){super("Properties"),Qe(this,"nextId"),Qe(this,"properties",[]),this.root.push(new J_({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 e6(this.nextId++,e))}}class n6 extends tt{constructor(){super(...arguments),Qe(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 i6=class extends nb{constructor(e,t){super("w:ftr",t),Qe(this,"refId"),this.refId=e,t||this.root.push(new n6({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 A6{constructor(e,t,n){Qe(this,"footer"),Qe(this,"relationships"),this.media=e,this.footer=new i6(t,n),this.relationships=new js}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 a6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{type:"w:type",id:"w:id"})}}class s6 extends Le{constructor(){super("w:footnoteRef")}}class o6 extends nl{constructor(){super({style:"FootnoteReference"}),this.root.push(new s6)}}const Ob={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"};class eg extends Le{constructor(e){super("w:footnote"),this.root.push(new a6({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 o6),this.root.push(n)}}}class l6 extends Le{constructor(){super("w:continuationSeparator")}}class u6 extends nl{constructor(){super({}),this.root.push(new l6)}}class c6 extends Le{constructor(){super("w:separator")}}class h6 extends nl{constructor(){super({}),this.root.push(new c6)}}class f6 extends tt{constructor(){super(...arguments),Qe(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 d6 extends Le{constructor(){super("w:footnotes"),this.root.push(new f6({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 eg({id:-1,type:Ob.SEPERATOR,children:[new tr({spacing:{after:0,line:240,lineRule:Wp.AUTO},children:[new h6]})]});this.root.push(e);const t=new eg({id:0,type:Ob.CONTINUATION_SEPERATOR,children:[new tr({spacing:{after:0,line:240,lineRule:Wp.AUTO},children:[new u6]})]});this.root.push(t)}createFootNote(e,t){const n=new eg({id:e,children:t});this.root.push(n)}}class p6{constructor(){Qe(this,"footnotess"),Qe(this,"relationships"),this.footnotess=new d6,this.relationships=new js}get View(){return this.footnotess}get Relationships(){return this.relationships}}class g6 extends tt{constructor(){super(...arguments),Qe(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 m6=class extends nb{constructor(e,t){super("w:hdr",t),Qe(this,"refId"),this.refId=e,t||this.root.push(new g6({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 v6{constructor(e,t,n){Qe(this,"header"),Qe(this,"relationships"),this.media=e,this.header=new m6(t,n),this.relationships=new js}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 w6{constructor(){Qe(this,"map"),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}}const BA={BULLET:"bullet"};class y6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}}class b6 extends Le{constructor(e){super("w:numFmt"),this.root.push(new vr({val:e}))}}class B6 extends Le{constructor(e){super("w:lvlText"),this.root.push(new vr({val:e}))}}class x6 extends Le{constructor(e){super("w:lvlJc"),this.root.push(new vr({val:e}))}}class C6 extends Le{constructor(e){super("w:suff"),this.root.push(new vr({val:e}))}}class E6 extends Le{constructor(){super("w:isLgl")}}class S6 extends Le{constructor({level:e,format:t,text:n,alignment:i=hi.START,start:A=1,style:a,suffix:s,isLegalNumberingStyle:o}){if(super("w:lvl"),Qe(this,"paragraphProperties"),Qe(this,"runProperties"),this.root.push(new Mp("w:start",vn(A))),t&&this.root.push(new b6(t)),s&&this.root.push(new C6(s)),o&&this.root.push(new E6),n&&this.root.push(new B6(n)),this.root.push(new x6(i)),this.paragraphProperties=new Ks(a&&a.paragraph),this.runProperties=new Ka(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 y6({ilvl:vn(e),tentative:1}))}}class F6 extends S6{}class I6 extends Le{constructor(e){super("w:multiLevelType"),this.root.push(new vr({val:e}))}}class U6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}}class kb extends Le{constructor(e,t){super("w:abstractNum"),Qe(this,"id"),this.root.push(new U6({abstractNumId:vn(e),restartNumberingAfterBreak:0})),this.root.push(new I6("hybridMultilevel")),this.id=e;for(const n of t)this.root.push(new F6(n))}}class T6 extends Le{constructor(e){super("w:abstractNumId"),this.root.push(new vr({val:e}))}}class _6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{numId:"w:numId"})}}class Pb extends Le{constructor(e){if(super("w:num"),Qe(this,"numId"),Qe(this,"reference"),Qe(this,"instance"),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new _6({numId:vn(e.numId)})),this.root.push(new T6(vn(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new Q6(t.num,t.start))}}class L6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{ilvl:"w:ilvl"})}}class Q6 extends Le{constructor(e,t){super("w:lvlOverride"),this.root.push(new L6({ilvl:e})),t!==void 0&&this.root.push(new R6(t))}}class N6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class R6 extends Le{constructor(e){super("w:startOverride"),this.root.push(new N6({val:e}))}}class O6 extends Le{constructor(e){super("w:numbering"),Qe(this,"abstractNumberingMap",new Map),Qe(this,"concreteNumberingMap",new Map),Qe(this,"referenceConfigMap",new Map),Qe(this,"abstractNumUniqueNumericId",SU()),Qe(this,"concreteNumUniqueNumericId",FU()),this.root.push(new Al({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 kb(this.abstractNumUniqueNumericId(),[{level:0,format:BA.BULLET,text:"●",alignment:hi.LEFT,style:{paragraph:{indent:{left:Ui(.5),hanging:Ui(.25)}}}},{level:1,format:BA.BULLET,text:"○",alignment:hi.LEFT,style:{paragraph:{indent:{left:Ui(1),hanging:Ui(.25)}}}},{level:2,format:BA.BULLET,text:"■",alignment:hi.LEFT,style:{paragraph:{indent:{left:2160,hanging:Ui(.25)}}}},{level:3,format:BA.BULLET,text:"●",alignment:hi.LEFT,style:{paragraph:{indent:{left:2880,hanging:Ui(.25)}}}},{level:4,format:BA.BULLET,text:"○",alignment:hi.LEFT,style:{paragraph:{indent:{left:3600,hanging:Ui(.25)}}}},{level:5,format:BA.BULLET,text:"■",alignment:hi.LEFT,style:{paragraph:{indent:{left:4320,hanging:Ui(.25)}}}},{level:6,format:BA.BULLET,text:"●",alignment:hi.LEFT,style:{paragraph:{indent:{left:5040,hanging:Ui(.25)}}}},{level:7,format:BA.BULLET,text:"●",alignment:hi.LEFT,style:{paragraph:{indent:{left:5760,hanging:Ui(.25)}}}},{level:8,format:BA.BULLET,text:"●",alignment:hi.LEFT,style:{paragraph:{indent:{left:6480,hanging:Ui(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new Pb({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 kb(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 i=`${e}-${t}`;if(this.concreteNumberingMap.has(i))return;const A=this.referenceConfigMap.get(e),a=A&&A[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(i,new Pb(s))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}}class k6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{version:"w:val",name:"w:name",uri:"w:uri"})}}class P6 extends Le{constructor(e){super("w:compatSetting"),this.root.push(new k6({version:e,uri:"http://schemas.microsoft.com/office/word",name:"compatibilityMode"}))}}class D6 extends Le{constructor(e){super("w:compat"),e.version&&this.root.push(new P6(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new Ke("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new Ke("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new Ke("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new Ke("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new Ke("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new Ke("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new Ke("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new Ke("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new Ke("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new Ke("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new Ke("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new Ke("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new Ke("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new Ke("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new Ke("w:printColBlack",e.printColorsBlack)),e.spaceWidth&&this.root.push(new Ke("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new Ke("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new Ke("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new Ke("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new Ke("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new Ke("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new Ke("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new Ke("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new Ke("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new Ke("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new Ke("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new Ke("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new Ke("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new Ke("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new Ke("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new Ke("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new Ke("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new Ke("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new Ke("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new Ke("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new Ke("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new Ke("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new Ke("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new Ke("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new Ke("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new Ke("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new Ke("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new Ke("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new Ke("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new Ke("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new Ke("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new Ke("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new Ke("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new Ke("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new Ke("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new Ke("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new Ke("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new Ke("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new Ke("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new Ke("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new Ke("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new Ke("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new Ke("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new Ke("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new Ke("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new Ke("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new Ke("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new Ke("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new Ke("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new Ke("w:cachedColBalance",e.cachedColumnBalance))}}class H6 extends tt{constructor(){super(...arguments),Qe(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 M6 extends Le{constructor(e){var t,n,i,A;super("w:settings"),this.root.push(new H6({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 Ke("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new Ke("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new Ke("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new Ke("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Mp("w:defaultTabStop",e.defaultTabStop)),this.root.push(new D6(XA(_t({},(t=e.compatibility)!=null?t:{}),{version:(A=(i=(n=e.compatibility)==null?void 0:n.version)!=null?i:e.compatibilityModeVersion)!=null?A:15})))}}class Db extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{val:"w:val"})}}class j6 extends Le{constructor(e){super("w:name"),this.root.push(new Db({val:e}))}}class K6 extends Le{constructor(e){super("w:uiPriority"),this.root.push(new Db({val:vn(e)}))}}class V6 extends tt{constructor(){super(...arguments),Qe(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}}class Hb extends Le{constructor(e,t){super("w:style"),this.root.push(new V6(e)),t.name&&this.root.push(new j6(t.name)),t.basedOn&&this.root.push(new Ma("w:basedOn",t.basedOn)),t.next&&this.root.push(new Ma("w:next",t.next)),t.link&&this.root.push(new Ma("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new K6(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new Ke("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new Ke("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new Ke("w:qFormat",t.quickFormat))}}class cc extends Hb{constructor(e){super({type:"paragraph",styleId:e.id},e),Qe(this,"paragraphProperties"),Qe(this,"runProperties"),this.paragraphProperties=new Ks(e.paragraph),this.runProperties=new Ka(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}}class hc extends Hb{constructor(e){super({type:"character",styleId:e.id},_t({uiPriority:99,unhideWhenUsed:!0},e)),Qe(this,"runProperties"),this.runProperties=new Ka(e.run),this.root.push(this.runProperties)}}class YA extends cc{constructor(e){super(_t({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}}class z6 extends YA{constructor(e){super(_t({id:"Title",name:"Title"},e))}}class $6 extends YA{constructor(e){super(_t({id:"Heading1",name:"Heading 1"},e))}}class G6 extends YA{constructor(e){super(_t({id:"Heading2",name:"Heading 2"},e))}}class W6 extends YA{constructor(e){super(_t({id:"Heading3",name:"Heading 3"},e))}}class q6 extends YA{constructor(e){super(_t({id:"Heading4",name:"Heading 4"},e))}}class X6 extends YA{constructor(e){super(_t({id:"Heading5",name:"Heading 5"},e))}}class Y6 extends YA{constructor(e){super(_t({id:"Heading6",name:"Heading 6"},e))}}class J6 extends YA{constructor(e){super(_t({id:"Strong",name:"Strong"},e))}}class Z6 extends cc{constructor(e){super(_t({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}}class eL extends cc{constructor(e){super(_t({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Wp.AUTO}},run:{size:20}},e))}}class tL extends hc{constructor(e){super(_t({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}}class rL extends hc{constructor(e){super(_t({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}}class nL extends hc{constructor(e){super(_t({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:ub.SINGLE}}},e))}}class tg extends Le{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 cc(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new hc(t))}}class iL extends Le{constructor(e){super("w:pPrDefault"),this.root.push(new Ks(e))}}class AL extends Le{constructor(e){super("w:rPrDefault"),this.root.push(new Ka(e))}}class aL extends Le{constructor(e){super("w:docDefaults"),Qe(this,"runPropertiesDefaults"),Qe(this,"paragraphPropertiesDefaults"),this.runPropertiesDefaults=new AL(e.run),this.paragraphPropertiesDefaults=new iL(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}}class sL{newInstance(e){const t=rb.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 i=n.elements||[];return new tg({initialStyles:new z3(n.attributes),importedStyles:i.map(a=>Pp(a))})}}class Mb{newInstance(e={}){var t;return{initialStyles:new Al({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 aL((t=e.document)!=null?t:{}),new z6(_t({run:{size:56}},e.title)),new $6(_t({run:{color:"2E74B5",size:32}},e.heading1)),new G6(_t({run:{color:"2E74B5",size:26}},e.heading2)),new W6(_t({run:{color:"1F4D78",size:24}},e.heading3)),new q6(_t({run:{color:"2E74B5",italics:!0}},e.heading4)),new X6(_t({run:{color:"2E74B5"}},e.heading5)),new Y6(_t({run:{color:"1F4D78"}},e.heading6)),new J6(_t({run:{bold:!0}},e.strong)),new Z6(e.listParagraph||{}),new nL(e.hyperlink||{}),new tL(e.footnoteReference||{}),new eL(e.footnoteText||{}),new rL(e.footnoteTextChar||{})]}}}const fc=({id:r,fontKey:e,subsetted:t},n)=>new Hr({name:n,attributes:_t({id:{key:"r:id",value:r}},e?{fontKey:{key:"w:fontKey",value:`{${e}}`}}:{}),children:[...t?[new Ke("w:subsetted",t)]:[]]}),oL=({name:r,altName:e,panose1:t,charset:n,family:i,notTrueType:A,pitch:a,sig:s,embedRegular:o,embedBold:l,embedItalic:u,embedBoldItalic:h})=>new Hr({name:"w:font",attributes:{name:{key:"w:name",value:r}},children:[...e?[rl("w:altName",e)]:[],...t?[rl("w:panose1",t)]:[],...n?[rl("w:charset",n)]:[],rl("w:family",i),...A?[new Ke("w:notTrueType",A)]:[],rl("w:pitch",a),...s?[new Hr({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?[fc(o,"w:embedRegular")]:[],...l?[fc(l,"w:embedBold")]:[],...u?[fc(u,"w:embedItalic")]:[],...h?[fc(h,"w:embedBoldItalic")]:[]]}),lL=({name:r,index:e,fontKey:t,characterSet:n})=>oL({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}`}}),uL=r=>new Hr({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)=>lL({name:e.name,index:t+1,fontKey:e.fontKey}))});class cL{constructor(e){Qe(this,"fontTable"),Qe(this,"relationships"),Qe(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>XA(_t({},t),{fontKey:TU()})),this.fontTable=uL(this.fontOptionsWithKey),this.relationships=new js;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}}let jb=class{constructor(e){Qe(this,"currentRelationshipId",1),Qe(this,"documentWrapper"),Qe(this,"headers",[]),Qe(this,"footers",[]),Qe(this,"coreProperties"),Qe(this,"numbering"),Qe(this,"media"),Qe(this,"fileRelationships"),Qe(this,"footnotesWrapper"),Qe(this,"settings"),Qe(this,"contentTypes"),Qe(this,"customProperties"),Qe(this,"appProperties"),Qe(this,"styles"),Qe(this,"comments"),Qe(this,"fontWrapper");var t,n,i,A,a,s,o,l;if(this.coreProperties=new Y_(XA(_t({},e),{creator:(t=e.creator)!=null?t:"Un-named",revision:(n=e.revision)!=null?n:1,lastModifiedBy:(i=e.lastModifiedBy)!=null?i:"Un-named"})),this.numbering=new O6(e.numbering?e.numbering:{config:[]}),this.comments=new kT((A=e.comments)!=null?A:{children:[]}),this.fileRelationships=new js,this.customProperties=new r6((a=e.customProperties)!=null?a:[]),this.appProperties=new $_,this.footnotesWrapper=new p6,this.contentTypes=new X_,this.documentWrapper=new Ub({background:e.background}),this.settings=new M6({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 w6,e.externalStyles!==void 0){const u=new sL;this.styles=u.newInstance(e.externalStyles)}else if(e.styles){const h=new Mb().newInstance(e.styles.default);this.styles=new tg(_t(_t({},h),e.styles))}else{const u=new Mb;this.styles=new tg(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 cL((l=e.fonts)!=null?l:[])}addSection({headers:e={},footers:t={},children:n,properties:i}){this.documentWrapper.View.Body.addSection(XA(_t({},i),{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 A of n)this.documentWrapper.View.add(A)}createHeader(e){const t=new v6(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addHeaderToDocument(t),t}createFooter(e){const t=new A6(this.media,this.currentRelationshipId++);for(const n of e.options.children)t.add(n);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=Ms.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=Ms.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 dc(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 Kb={exports:{}};(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,i,A){function a(l,u){if(!i[l]){if(!n[l]){var h=typeof dc=="function"&&dc;if(!u&&h)return h(l,!0);if(s)return s(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var c=i[l]={exports:{}};n[l][0].call(c.exports,function(g){var m=n[l][1][g];return a(m||g)},c,c.exports,t,n,i,A)}return i[l].exports}for(var s=typeof dc=="function"&&dc,o=0;o<A.length;o++)a(A[o]);return a}({1:[function(t,n,i){var A=t("./utils"),a=t("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(o){for(var l,u,h,f,c,g,m,y=[],p=0,v=o.length,b=v,I=A.getTypeOf(o)!=="string";p<o.length;)b=v-p,h=I?(l=o[p++],u=p<v?o[p++]:0,p<v?o[p++]:0):(l=o.charCodeAt(p++),u=p<v?o.charCodeAt(p++):0,p<v?o.charCodeAt(p++):0),f=l>>2,c=(3&l)<<4|u>>4,g=1<b?(15&u)<<2|h>>6:64,m=2<b?63&h:64,y.push(s.charAt(f)+s.charAt(c)+s.charAt(g)+s.charAt(m));return y.join("")},i.decode=function(o){var l,u,h,f,c,g,m=0,y=0,p="data:";if(o.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var v,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(v=a.uint8array?new Uint8Array(0|b):new Array(0|b);m<o.length;)l=s.indexOf(o.charAt(m++))<<2|(f=s.indexOf(o.charAt(m++)))>>4,u=(15&f)<<4|(c=s.indexOf(o.charAt(m++)))>>2,h=(3&c)<<6|(g=s.indexOf(o.charAt(m++))),v[y++]=l,c!==64&&(v[y++]=u),g!==64&&(v[y++]=h);return v}},{"./support":30,"./utils":32}],2:[function(t,n,i){var A=t("./external"),a=t("./stream/DataWorker"),s=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function l(u,h,f,c,g){this.compressedSize=u,this.uncompressedSize=h,this.crc32=f,this.compression=c,this.compressedContent=g}l.prototype={getContentWorker:function(){var u=new a(A.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(A.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,f){return u.pipe(new s).pipe(new o("uncompressedSize")).pipe(h.compressWorker(f)).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,i){var A=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new A("STORE compression")},uncompressWorker:function(){return new A("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,n,i){var A=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?A.getTypeOf(s)!=="string"?function(l,u,h,f){var c=a,g=f+h;l^=-1;for(var m=f;m<g;m++)l=l>>>8^c[255&(l^u[m])];return-1^l}(0|o,s,s.length,0):function(l,u,h,f){var c=a,g=f+h;l^=-1;for(var m=f;m<g;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,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,n,i){var A=null;A=typeof Promise!="undefined"?Promise:t("lie"),n.exports={Promise:A}},{lie:37}],7:[function(t,n,i){var A=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",a=t("pako"),s=t("./utils"),o=t("./stream/GenericWorker"),l=A?"uint8array":"array";function u(h,f){o.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=f,this.meta={}}i.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(f){h.push({data:f,meta:h.meta})}},i.compressWorker=function(h){return new u("Deflate",h)},i.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,n,i){function A(c,g){var m,y="";for(m=0;m<g;m++)y+=String.fromCharCode(255&c),c>>>=8;return y}function a(c,g,m,y,p,v){var b,I,N=c.file,M=c.compression,O=v!==l.utf8encode,P=s.transformTo("string",v(N.name)),_=s.transformTo("string",l.utf8encode(N.name)),G=N.comment,D=s.transformTo("string",v(G)),S=s.transformTo("string",l.utf8encode(G)),K=_.length!==N.name.length,F=S.length!==G.length,ee="",Z="",z="",oe=N.dir,W=N.date,ce={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(ce.crc32=c.crc32,ce.compressedSize=c.compressedSize,ce.uncompressedSize=c.uncompressedSize);var ie=0;g&&(ie|=8),O||!K&&!F||(ie|=2048);var x=0,H=0;oe&&(x|=16),p==="UNIX"?(H=798,x|=function(q,$){var L=q;return q||(L=$?16893:33204),(65535&L)<<16}(N.unixPermissions,oe)):(H=20,x|=function(q){return 63&(q||0)}(N.dosPermissions)),b=W.getUTCHours(),b<<=6,b|=W.getUTCMinutes(),b<<=5,b|=W.getUTCSeconds()/2,I=W.getUTCFullYear()-1980,I<<=4,I|=W.getUTCMonth()+1,I<<=5,I|=W.getUTCDate(),K&&(Z=A(1,1)+A(u(P),4)+_,ee+="up"+A(Z.length,2)+Z),F&&(z=A(1,1)+A(u(D),4)+S,ee+="uc"+A(z.length,2)+z);var V="";return V+=`
83
+ \0`,V+=A(ie,2),V+=M.magic,V+=A(b,2),V+=A(I,2),V+=A(ce.crc32,4),V+=A(ce.compressedSize,4),V+=A(ce.uncompressedSize,4),V+=A(P.length,2),V+=A(ee.length,2),{fileRecord:h.LOCAL_FILE_HEADER+V+P+ee,dirRecord:h.CENTRAL_FILE_HEADER+A(H,2)+V+A(D.length,2)+"\0\0\0\0"+A(x,4)+A(y,4)+P+ee+D}}var s=t("../utils"),o=t("../stream/GenericWorker"),l=t("../utf8"),u=t("../crc32"),h=t("../signature");function f(c,g,m,y){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,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(f,o),f.prototype.push=function(c){var g=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?(g+100*(m-y-1))/m:100}}))},f.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var g=this.streamFiles&&!c.file.dir;if(g){var m=a(c,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(c){this.accumulate=!1;var g=this.streamFiles&&!c.file.dir,m=a(c,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:function(y){return h.DATA_DESCRIPTOR+A(y.crc32,4)+A(y.compressedSize,4)+A(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},f.prototype.flush=function(){for(var c=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-c,y=function(p,v,b,I,N){var M=s.transformTo("string",N(I));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+A(p,2)+A(p,2)+A(v,4)+A(b,4)+A(M.length,2)+M}(this.dirRecords.length,m,c,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(c){this._sources.push(c);var g=this;return c.on("data",function(m){g.processChunk(m)}),c.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),c.on("error",function(m){g.error(m)}),this},f.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))},f.prototype.error=function(c){var g=this._sources;if(!o.prototype.error.call(this,c))return!1;for(var m=0;m<g.length;m++)try{g[m].error(c)}catch(y){}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var c=this._sources,g=0;g<c.length;g++)c[g].lock()},n.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,n,i){var A=t("../compressions"),a=t("./ZipFileWorker");i.generateWorker=function(s,o,l){var u=new a(o.streamFiles,l,o.platform,o.encodeFileName),h=0;try{s.forEach(function(f,c){h++;var g=function(v,b){var I=v||b,N=A[I];if(!N)throw new Error(I+" is not a valid compression method !");return N}(c.options.compression,o.compression),m=c.options.compressionOptions||o.compressionOptions||{},y=c.dir,p=c.date;c._compressWorker(g,m).withStreamInfo("file",{name:f,dir:y,date:p,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(u)}),u.entriesCount=h}catch(f){u.error(f)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,n,i){function A(){if(!(this instanceof A))return new A;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 A;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(A.prototype=t("./object")).loadAsync=t("./load"),A.support=t("./support"),A.defaults=t("./defaults"),A.version="3.10.1",A.loadAsync=function(a,s){return new A().loadAsync(a,s)},A.external=t("./external"),n.exports=A},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,n,i){var A=t("./utils"),a=t("./external"),s=t("./utf8"),o=t("./zipEntries"),l=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function h(f){return new a.Promise(function(c,g){var m=f.decompressed.getContentWorker().pipe(new l);m.on("error",function(y){g(y)}).on("end",function(){m.streamInfo.crc32!==f.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}n.exports=function(f,c){var g=this;return c=A.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),u.isNode&&u.isStream(f)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):A.prepareContent("the loaded zip file",f,!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)],p=m.files;if(c.checkCRC32)for(var v=0;v<p.length;v++)y.push(h(p[v]));return a.Promise.all(y)}).then(function(m){for(var y=m.shift(),p=y.files,v=0;v<p.length;v++){var b=p[v],I=b.fileNameStr,N=A.resolve(b.fileNameStr);g.file(N,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||(g.file(N).unsafeOriginalName=I)}return y.zipComment.length&&(g.comment=y.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,n,i){var A=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)}A.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,i){var A=t("readable-stream").Readable;function a(s,o,l){A.call(this,o),this._helper=s;var u=this;s.on("data",function(h,f){u.push(h)||u._helper.pause(),l&&l(f)}).on("error",function(h){u.emit("error",h)}).on("end",function(){u.push(null)})}t("../utils").inherits(a,A),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){n.exports={isNode:typeof Buffer!="undefined",newBufferFrom:function(A,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(A,a);if(typeof A=="number")throw new Error('The "data" argument must not be a number');return new Buffer(A,a)},allocBuffer:function(A){if(Buffer.alloc)return Buffer.alloc(A);var a=new Buffer(A);return a.fill(0),a},isBuffer:function(A){return Buffer.isBuffer(A)},isStream:function(A){return A&&typeof A.on=="function"&&typeof A.pause=="function"&&typeof A.resume=="function"}}},{}],15:[function(t,n,i){function A(N,M,O){var P,_=s.getTypeOf(M),G=s.extend(O||{},u);G.date=G.date||new Date,G.compression!==null&&(G.compression=G.compression.toUpperCase()),typeof G.unixPermissions=="string"&&(G.unixPermissions=parseInt(G.unixPermissions,8)),G.unixPermissions&&16384&G.unixPermissions&&(G.dir=!0),G.dosPermissions&&16&G.dosPermissions&&(G.dir=!0),G.dir&&(N=p(N)),G.createFolders&&(P=y(N))&&v.call(this,P,!0);var D=_==="string"&&G.binary===!1&&G.base64===!1;O&&O.binary!==void 0||(G.binary=!D),(M instanceof h&&M.uncompressedSize===0||G.dir||!M||M.length===0)&&(G.base64=!1,G.binary=!0,M="",G.compression="STORE",_="string");var S=null;S=M instanceof h||M instanceof o?M:g.isNode&&g.isStream(M)?new m(N,M):s.prepareContent(N,M,G.binary,G.optimizedBinaryString,G.base64);var K=new f(N,S,G);this.files[N]=K}var a=t("./utf8"),s=t("./utils"),o=t("./stream/GenericWorker"),l=t("./stream/StreamHelper"),u=t("./defaults"),h=t("./compressedObject"),f=t("./zipObject"),c=t("./generate"),g=t("./nodejsUtils"),m=t("./nodejs/NodejsStreamInputAdapter"),y=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var M=N.lastIndexOf("/");return 0<M?N.substring(0,M):""},p=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},v=function(N,M){return M=M!==void 0?M:u.createFolders,N=p(N),this.files[N]||A.call(this,N,null,{dir:!0,createFolders:M}),this.files[N]};function b(N){return Object.prototype.toString.call(N)==="[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(N){var M,O,P;for(M in this.files)P=this.files[M],(O=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&N(O,P)},filter:function(N){var M=[];return this.forEach(function(O,P){N(O,P)&&M.push(P)}),M},file:function(N,M,O){if(arguments.length!==1)return N=this.root+N,A.call(this,N,M,O),this;if(b(N)){var P=N;return this.filter(function(G,D){return!D.dir&&P.test(G)})}var _=this.files[this.root+N];return _&&!_.dir?_:null},folder:function(N){if(!N)return this;if(b(N))return this.filter(function(_,G){return G.dir&&N.test(_)});var M=this.root+N,O=v.call(this,M),P=this.clone();return P.root=O.name,P},remove:function(N){N=this.root+N;var M=this.files[N];if(M||(N.slice(-1)!=="/"&&(N+="/"),M=this.files[N]),M&&!M.dir)delete this.files[N];else for(var O=this.filter(function(_,G){return G.name.slice(0,N.length)===N}),P=0;P<O.length;P++)delete this.files[O[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var M,O={};try{if((O=s.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw new Error("No output type specified.");s.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var P=O.comment||this.comment||"";M=c.generateWorker(this,O,P)}catch(_){(M=new o("error")).error(_)}return new l(M,O.type||"string",O.mimeType)},generateAsync:function(N,M){return this.generateInternalStream(N).accumulate(M)},generateNodeStream:function(N,M){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(M)}};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,i){n.exports=t("stream")},{stream:void 0}],17:[function(t,n,i){var A=t("./DataReader");function a(s){A.call(this,s);for(var o=0;o<this.data.length;o++)s[o]=255&s[o]}t("../utils").inherits(a,A),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),f=this.length-4;0<=f;--f)if(this.data[f]===o&&this.data[f+1]===l&&this.data[f+2]===u&&this.data[f+3]===h)return f-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),f=this.readData(4);return o===f[0]&&l===f[1]&&u===f[2]&&h===f[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,i){var A=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 A.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,i){var A=t("./Uint8ArrayReader");function a(s){A.call(this,s)}t("../utils").inherits(a,A),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,i){var A=t("./DataReader");function a(s){A.call(this,s)}t("../utils").inherits(a,A),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,i){var A=t("./ArrayReader");function a(s){A.call(this,s)}t("../utils").inherits(a,A),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,i){var A=t("../utils"),a=t("../support"),s=t("./ArrayReader"),o=t("./StringReader"),l=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");n.exports=function(h){var f=A.getTypeOf(h);return A.checkSupport(f),f!=="string"||a.uint8array?f==="nodebuffer"?new l(h):a.uint8array?new u(A.transformTo("uint8array",h)):new s(A.transformTo("array",h)):new o(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,n,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,n,i){var A=t("./GenericWorker"),a=t("../utils");function s(o){A.call(this,"ConvertWorker to "+o),this.destType=o}a.inherits(s,A),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,i){var A=t("./GenericWorker"),a=t("../crc32");function s(){A.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,A),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,i){var A=t("../utils"),a=t("./GenericWorker");function s(o){a.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}A.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,i){var A=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=A.getTypeOf(u),l.isPaused||l._tickAndRepeat()},function(u){l.error(u)})}A.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,A.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(A.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,i){function A(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}A.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=A},{}],29:[function(t,n,i){var A=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(g){}function f(g,m){return new u.Promise(function(y,p){var v=[],b=g._internalType,I=g._outputType,N=g._mimeType;g.on("data",function(M,O){v.push(M),m&&m(O)}).on("error",function(M){v=[],p(M)}).on("end",function(){try{var M=function(O,P,_){switch(O){case"blob":return A.newBlob(A.transformTo("arraybuffer",P),_);case"base64":return o.encode(P);default:return A.transformTo(O,P)}}(I,function(O,P){var _,G=0,D=null,S=0;for(_=0;_<P.length;_++)S+=P[_].length;switch(O){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(D=new Uint8Array(S),_=0;_<P.length;_++)D.set(P[_],G),G+=P[_].length;return D;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+O+"'")}}(b,v),N);y(M)}catch(O){p(O)}v=[]}).resume()})}function c(g,m,y){var p=m;switch(m){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=m,this._mimeType=y,A.checkSupport(p),this._worker=g.pipe(new a(p)),g.lock()}catch(v){this._worker=new s("error"),this._worker.error(v)}}c.prototype={accumulate:function(g){return f(this,g)},on:function(g,m){var y=this;return g==="data"?this._worker.on(g,function(p){m.call(y,p.data,p.meta)}):this._worker.on(g,function(){A.delay(m,arguments,y)}),this},resume:function(){return A.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(A.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},g)}},n.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",i.nodebuffer=typeof Buffer!="undefined",i.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")i.blob=!1;else{var A=new ArrayBuffer(0);try{i.blob=new Blob([A],{type:"application/zip"}).size===0}catch(s){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(A),i.blob=a.getBlob("application/zip").size===0}catch(o){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(s){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,n,i){for(var A=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 f(){o.call(this,"utf-8 encode")}i.utf8encode=function(c){return a.nodebuffer?s.newBufferFrom(c,"utf-8"):function(g){var m,y,p,v,b,I=g.length,N=0;for(v=0;v<I;v++)(64512&(y=g.charCodeAt(v)))==55296&&v+1<I&&(64512&(p=g.charCodeAt(v+1)))==56320&&(y=65536+(y-55296<<10)+(p-56320),v++),N+=y<128?1:y<2048?2:y<65536?3:4;for(m=a.uint8array?new Uint8Array(N):new Array(N),v=b=0;b<N;v++)(64512&(y=g.charCodeAt(v)))==55296&&v+1<I&&(64512&(p=g.charCodeAt(v+1)))==56320&&(y=65536+(y-55296<<10)+(p-56320),v++),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)},i.utf8decode=function(c){return a.nodebuffer?A.transformTo("nodebuffer",c).toString("utf-8"):function(g){var m,y,p,v,b=g.length,I=new Array(2*b);for(m=y=0;m<b;)if((p=g[m++])<128)I[y++]=p;else if(4<(v=l[p]))I[y++]=65533,m+=v-1;else{for(p&=v===2?31:v===3?15:7;1<v&&m<b;)p=p<<6|63&g[m++],v--;1<v?I[y++]=65533:p<65536?I[y++]=p:(p-=65536,I[y++]=55296|p>>10&1023,I[y++]=56320|1023&p)}return I.length!==y&&(I.subarray?I=I.subarray(0,y):I.length=y),A.applyFromCharCode(I)}(c=A.transformTo(a.uint8array?"uint8array":"array",c))},A.inherits(h,o),h.prototype.processChunk=function(c){var g=A.transformTo(a.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var y=function(v,b){var I;for((b=b||v.length)>v.length&&(b=v.length),I=b-1;0<=I&&(192&v[I])==128;)I--;return I<0||I===0?b:I+l[v[I]]>b?I:b}(g),p=g;y!==g.length&&(a.uint8array?(p=g.subarray(0,y),this.leftOver=g.subarray(y,g.length)):(p=g.slice(0,y),this.leftOver=g.slice(y,g.length))),this.push({data:i.utf8decode(p),meta:c.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=h,A.inherits(f,o),f.prototype.processChunk=function(c){this.push({data:i.utf8encode(c.data),meta:c.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,n,i){var A=t("./support"),a=t("./base64"),s=t("./nodejsUtils"),o=t("./external");function l(m){return m}function u(m,y){for(var p=0;p<m.length;++p)y[p]=255&m.charCodeAt(p);return y}t("setimmediate"),i.newBlob=function(m,y){i.checkSupport("blob");try{return new Blob([m],{type:y})}catch(v){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(m),p.getBlob(y)}catch(b){throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(m,y,p){var v=[],b=0,I=m.length;if(I<=p)return String.fromCharCode.apply(null,m);for(;b<I;)y==="array"||y==="nodebuffer"?v.push(String.fromCharCode.apply(null,m.slice(b,Math.min(b+p,I)))):v.push(String.fromCharCode.apply(null,m.subarray(b,Math.min(b+p,I)))),b+=p;return v.join("")},stringifyByChar:function(m){for(var y="",p=0;p<m.length;p++)y+=String.fromCharCode(m[p]);return y},applyCanBeUsed:{uint8array:function(){try{return A.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(m){return!1}}(),nodebuffer:function(){try{return A.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch(m){return!1}}()}};function f(m){var y=65536,p=i.getTypeOf(m),v=!0;if(p==="uint8array"?v=h.applyCanBeUsed.uint8array:p==="nodebuffer"&&(v=h.applyCanBeUsed.nodebuffer),v)for(;1<y;)try{return h.stringifyByChunk(m,p,y)}catch(b){y=Math.floor(y/2)}return h.stringifyByChar(m)}function c(m,y){for(var p=0;p<m.length;p++)y[p]=m[p];return y}i.applyFromCharCode=f;var g={};g.string={string:l,array:function(m){return u(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return u(m,new Uint8Array(m.length))},nodebuffer:function(m){return u(m,s.allocBuffer(m.length))}},g.array={string:f,array:l,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return s.newBufferFrom(m)}},g.arraybuffer={string:function(m){return f(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))}},g.uint8array={string:f,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)}},g.nodebuffer={string:f,array:function(m){return c(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return c(m,new Uint8Array(m.length))},nodebuffer:l},i.transformTo=function(m,y){if(y=y||"",!m)return y;i.checkSupport(m);var p=i.getTypeOf(y);return g[p][m](y)},i.resolve=function(m){for(var y=m.split("/"),p=[],v=0;v<y.length;v++){var b=y[v];b==="."||b===""&&v!==0&&v!==y.length-1||(b===".."?p.pop():p.push(b))}return p.join("/")},i.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":A.nodebuffer&&s.isBuffer(m)?"nodebuffer":A.uint8array&&m instanceof Uint8Array?"uint8array":A.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(m){if(!A[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(m){var y,p,v="";for(p=0;p<(m||"").length;p++)v+="\\x"+((y=m.charCodeAt(p))<16?"0":"")+y.toString(16).toUpperCase();return v},i.delay=function(m,y,p){setImmediate(function(){m.apply(p||null,y||[])})},i.inherits=function(m,y){function p(){}p.prototype=y.prototype,m.prototype=new p},i.extend=function(){var m,y,p={};for(m=0;m<arguments.length;m++)for(y in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],y)&&p[y]===void 0&&(p[y]=arguments[m][y]);return p},i.prepareContent=function(m,y,p,v,b){return o.Promise.resolve(y).then(function(I){return A.blob&&(I instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(I))!==-1)&&typeof FileReader!="undefined"?new o.Promise(function(N,M){var O=new FileReader;O.onload=function(P){N(P.target.result)},O.onerror=function(P){M(P.target.error)},O.readAsArrayBuffer(I)}):I}).then(function(I){var N=i.getTypeOf(I);return N?(N==="arraybuffer"?I=i.transformTo("uint8array",I):N==="string"&&(b?I=a.decode(I):p&&v!==!0&&(I=function(M){return u(M,A.uint8array?new Uint8Array(M.length):new Array(M.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,i){var A=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 f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(f)+", expected "+a.pretty(h)+")")}},isSignature:function(h,f){var c=this.reader.index;this.reader.setIndex(h);var g=this.reader.readString(4)===f;return this.reader.setIndex(c),g},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),f=l.uint8array?"uint8array":"array",c=a.transformTo(f,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,f,c,g=this.zip64EndOfCentralSize-44;0<g;)h=this.reader.readInt(2),f=this.reader.readInt(4),c=this.reader.readData(f),this.zip64ExtensibleData[h]={id:h,length:f,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,f;for(h=0;h<this.files.length;h++)f=this.files[h],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.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 f=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 g=f-c;if(0<g)this.isSignature(f,s.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(h){this.reader=A(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,i){var A=t("./reader/readerFor"),a=t("./utils"),s=t("./compressedObject"),o=t("./crc32"),l=t("./utf8"),u=t("./compressions"),h=t("./support");function f(c,g){this.options=c,this.loadOptions=g}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var g,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((g=function(y){for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)&&u[p].magic===y)return u[p];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,g,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 g=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(g),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=A(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 g,m,y,p=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<p;)g=c.readInt(2),m=c.readInt(2),y=c.readData(m),this.extraFields[g]={id:g,length:m,value:y};c.setIndex(p)},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 g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;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 p=a.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var g=A(c.value);return g.readInt(1)!==1||o(this.fileName)!==g.readInt(4)?null:l.utf8decode(g.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var g=A(c.value);return g.readInt(1)!==1||o(this.fileComment)!==g.readInt(4)?null:l.utf8decode(g.readData(c.length-5))}return null}},n.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,n,i){function A(g,m,y){this.name=g,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");A.prototype={internalStream:function(g){var m=null,y="string";try{if(!g)throw new Error("No output type specified.");var p=(y=g.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),m=this._decompressWorker();var v=!this._dataBinary;v&&!p&&(m=m.pipe(new o.Utf8EncodeWorker)),!v&&p&&(m=m.pipe(new o.Utf8DecodeWorker))}catch(b){(m=new u("error")).error(b)}return new a(m,y,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof l&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new o.Utf8EncodeWorker)),l.createWorkerFrom(y,g,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"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)A.prototype[h[c]]=f;n.exports=A},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,n,i){(function(A){var a,s,o=A.MutationObserver||A.WebKitMutationObserver;if(o){var l=0,u=new o(g),h=A.document.createTextNode("");u.observe(h,{characterData:!0}),a=function(){h.data=l=++l%2}}else if(A.setImmediate||A.MessageChannel===void 0)a="document"in A&&"onreadystatechange"in A.document.createElement("script")?function(){var m=A.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},A.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var f=new A.MessageChannel;f.port1.onmessage=g,a=function(){f.port2.postMessage(0)}}var c=[];function g(){var m,y;s=!0;for(var p=c.length;p;){for(y=c,c=[],m=-1;++m<p;)y[m]();p=c.length}s=!1}n.exports=function(m){c.push(m)!==1||s||a()}}).call(this,typeof Ji!="undefined"?Ji:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(t,n,i){var A=t("immediate");function a(){}var s={},o=["REJECTED"],l=["FULFILLED"],u=["PENDING"];function h(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,p!==a&&m(this,p)}function f(p,v,b){this.promise=p,typeof v=="function"&&(this.onFulfilled=v,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function c(p,v,b){A(function(){var I;try{I=v(b)}catch(N){return s.reject(p,N)}I===p?s.reject(p,new TypeError("Cannot resolve promise with itself")):s.resolve(p,I)})}function g(p){var v=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof v=="function")return function(){v.apply(p,arguments)}}function m(p,v){var b=!1;function I(O){b||(b=!0,s.reject(p,O))}function N(O){b||(b=!0,s.resolve(p,O))}var M=y(function(){v(N,I)});M.status==="error"&&I(M.value)}function y(p,v){var b={};try{b.value=p(v),b.status="success"}catch(I){b.status="error",b.value=I}return b}(n.exports=h).prototype.finally=function(p){if(typeof p!="function")return this;var v=this.constructor;return this.then(function(b){return v.resolve(p()).then(function(){return b})},function(b){return v.resolve(p()).then(function(){throw b})})},h.prototype.catch=function(p){return this.then(null,p)},h.prototype.then=function(p,v){if(typeof p!="function"&&this.state===l||typeof v!="function"&&this.state===o)return this;var b=new this.constructor(a);return this.state!==u?c(b,this.state===l?p:v,this.outcome):this.queue.push(new f(b,p,v)),b},f.prototype.callFulfilled=function(p){s.resolve(this.promise,p)},f.prototype.otherCallFulfilled=function(p){c(this.promise,this.onFulfilled,p)},f.prototype.callRejected=function(p){s.reject(this.promise,p)},f.prototype.otherCallRejected=function(p){c(this.promise,this.onRejected,p)},s.resolve=function(p,v){var b=y(g,v);if(b.status==="error")return s.reject(p,b.value);var I=b.value;if(I)m(p,I);else{p.state=l,p.outcome=v;for(var N=-1,M=p.queue.length;++N<M;)p.queue[N].callFulfilled(v)}return p},s.reject=function(p,v){p.state=o,p.outcome=v;for(var b=-1,I=p.queue.length;++b<I;)p.queue[b].callRejected(v);return p},h.resolve=function(p){return p instanceof this?p:s.resolve(new this(a),p)},h.reject=function(p){var v=new this(a);return s.reject(v,p)},h.all=function(p){var v=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=p.length,I=!1;if(!b)return this.resolve([]);for(var N=new Array(b),M=0,O=-1,P=new this(a);++O<b;)_(p[O],O);return P;function _(G,D){v.resolve(G).then(function(S){N[D]=S,++M!==b||I||(I=!0,s.resolve(P,N))},function(S){I||(I=!0,s.reject(P,S))})}},h.race=function(p){var v=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=p.length,I=!1;if(!b)return this.resolve([]);for(var N=-1,M=new this(a);++N<b;)O=p[N],v.resolve(O).then(function(P){I||(I=!0,s.resolve(M,P))},function(P){I||(I=!0,s.reject(M,P))});var O;return M}},{immediate:36}],38:[function(t,n,i){var A={};(0,t("./lib/utils/common").assign)(A,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),n.exports=A},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,n,i){var A=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,f=-1,c=0,g=8;function m(p){if(!(this instanceof m))return new m(p);this.options=a.assign({level:f,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},p||{});var v=this.options;v.raw&&0<v.windowBits?v.windowBits=-v.windowBits:v.gzip&&0<v.windowBits&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var b=A.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(b!==h)throw new Error(o[b]);if(v.header&&A.deflateSetHeader(this.strm,v.header),v.dictionary){var I;if(I=typeof v.dictionary=="string"?s.string2buf(v.dictionary):u.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(b=A.deflateSetDictionary(this.strm,I))!==h)throw new Error(o[b]);this._dict_set=!0}}function y(p,v){var b=new m(v);if(b.push(p,!0),b.err)throw b.msg||o[b.err];return b.result}m.prototype.push=function(p,v){var b,I,N=this.strm,M=this.options.chunkSize;if(this.ended)return!1;I=v===~~v?v:v===!0?4:0,typeof p=="string"?N.input=s.string2buf(p):u.call(p)==="[object ArrayBuffer]"?N.input=new Uint8Array(p):N.input=p,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new a.Buf8(M),N.next_out=0,N.avail_out=M),(b=A.deflate(N,I))!==1&&b!==h)return this.onEnd(b),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||I!==4&&I!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(N.output,N.next_out))):this.onData(a.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&b!==1);return I===4?(b=A.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===h):I!==2||(this.onEnd(h),!(N.avail_out=0))},m.prototype.onData=function(p){this.chunks.push(p)},m.prototype.onEnd=function(p){p===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},i.Deflate=m,i.deflate=y,i.deflateRaw=function(p,v){return(v=v||{}).raw=!0,y(p,v)},i.gzip=function(p,v){return(v=v||{}).gzip=!0,y(p,v)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,n,i){var A=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"),f=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 p=A.inflateInit2(this.strm,y.windowBits);if(p!==o.Z_OK)throw new Error(l[p]);this.header=new h,A.inflateGetHeader(this.strm,this.header)}function g(m,y){var p=new c(y);if(p.push(m,!0),p.err)throw p.msg||l[p.err];return p.result}c.prototype.push=function(m,y){var p,v,b,I,N,M,O=this.strm,P=this.options.chunkSize,_=this.options.dictionary,G=!1;if(this.ended)return!1;v=y===~~y?y:y===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof m=="string"?O.input=s.binstring2buf(m):f.call(m)==="[object ArrayBuffer]"?O.input=new Uint8Array(m):O.input=m,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new a.Buf8(P),O.next_out=0,O.avail_out=P),(p=A.inflate(O,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&_&&(M=typeof _=="string"?s.string2buf(_):f.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,p=A.inflateSetDictionary(this.strm,M)),p===o.Z_BUF_ERROR&&G===!0&&(p=o.Z_OK,G=!1),p!==o.Z_STREAM_END&&p!==o.Z_OK)return this.onEnd(p),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&p!==o.Z_STREAM_END&&(O.avail_in!==0||v!==o.Z_FINISH&&v!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=s.utf8border(O.output,O.next_out),I=O.next_out-b,N=s.buf2string(O.output,b),O.next_out=I,O.avail_out=P-I,I&&a.arraySet(O.output,O.output,b,I,0),this.onData(N)):this.onData(a.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(G=!0)}while((0<O.avail_in||O.avail_out===0)&&p!==o.Z_STREAM_END);return p===o.Z_STREAM_END&&(v=o.Z_FINISH),v===o.Z_FINISH?(p=A.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===o.Z_OK):v!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(O.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},i.Inflate=c,i.inflate=g,i.inflateRaw=function(m,y){return(y=y||{}).raw=!0,g(m,y)},i.ungzip=g},{"./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,i){var A=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";i.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},i.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,f){if(l.subarray&&o.subarray)o.set(l.subarray(u,u+h),f);else for(var c=0;c<h;c++)o[f+c]=l[u+c]},flattenChunks:function(o){var l,u,h,f,c,g;for(l=h=0,u=o.length;l<u;l++)h+=o[l].length;for(g=new Uint8Array(h),l=f=0,u=o.length;l<u;l++)c=o[l],g.set(c,f),f+=c.length;return g}},s={arraySet:function(o,l,u,h,f){for(var c=0;c<h;c++)o[f+c]=l[u+c]},flattenChunks:function(o){return[].concat.apply([],o)}};i.setTyped=function(o){o?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(A)},{}],42:[function(t,n,i){var A=t("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(h){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(h){s=!1}for(var o=new A.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,f){if(f<65537&&(h.subarray&&s||!h.subarray&&a))return String.fromCharCode.apply(null,A.shrinkBuf(h,f));for(var c="",g=0;g<f;g++)c+=String.fromCharCode(h[g]);return c}o[254]=o[254]=1,i.string2buf=function(h){var f,c,g,m,y,p=h.length,v=0;for(m=0;m<p;m++)(64512&(c=h.charCodeAt(m)))==55296&&m+1<p&&(64512&(g=h.charCodeAt(m+1)))==56320&&(c=65536+(c-55296<<10)+(g-56320),m++),v+=c<128?1:c<2048?2:c<65536?3:4;for(f=new A.Buf8(v),m=y=0;y<v;m++)(64512&(c=h.charCodeAt(m)))==55296&&m+1<p&&(64512&(g=h.charCodeAt(m+1)))==56320&&(c=65536+(c-55296<<10)+(g-56320),m++),c<128?f[y++]=c:(c<2048?f[y++]=192|c>>>6:(c<65536?f[y++]=224|c>>>12:(f[y++]=240|c>>>18,f[y++]=128|c>>>12&63),f[y++]=128|c>>>6&63),f[y++]=128|63&c);return f},i.buf2binstring=function(h){return u(h,h.length)},i.binstring2buf=function(h){for(var f=new A.Buf8(h.length),c=0,g=f.length;c<g;c++)f[c]=h.charCodeAt(c);return f},i.buf2string=function(h,f){var c,g,m,y,p=f||h.length,v=new Array(2*p);for(c=g=0;c<p;)if((m=h[c++])<128)v[g++]=m;else if(4<(y=o[m]))v[g++]=65533,c+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&c<p;)m=m<<6|63&h[c++],y--;1<y?v[g++]=65533:m<65536?v[g++]=m:(m-=65536,v[g++]=55296|m>>10&1023,v[g++]=56320|1023&m)}return u(v,g)},i.utf8border=function(h,f){var c;for((f=f||h.length)>h.length&&(f=h.length),c=f-1;0<=c&&(192&h[c])==128;)c--;return c<0||c===0?f:c+o[h[c]]>f?c:f}},{"./common":41}],43:[function(t,n,i){n.exports=function(A,a,s,o){for(var l=65535&A|0,u=A>>>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,i){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,i){var A=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=A,h=l+o;a^=-1;for(var f=l;f<h;f++)a=a>>>8^u[255&(a^s[f])];return-1^a}},{}],46:[function(t,n,i){var A,a=t("../utils/common"),s=t("./trees"),o=t("./adler32"),l=t("./crc32"),u=t("./messages"),h=0,f=4,c=0,g=-2,m=-1,y=4,p=2,v=8,b=9,I=286,N=30,M=19,O=2*I+1,P=15,_=3,G=258,D=G+_+1,S=42,K=113,F=1,ee=2,Z=3,z=4;function oe(k,de){return k.msg=u[de],de}function W(k){return(k<<1)-(4<k?9:0)}function ce(k){for(var de=k.length;0<=--de;)k[de]=0}function ie(k){var de=k.state,U=de.pending;U>k.avail_out&&(U=k.avail_out),U!==0&&(a.arraySet(k.output,de.pending_buf,de.pending_out,U,k.next_out),k.next_out+=U,de.pending_out+=U,k.total_out+=U,k.avail_out-=U,de.pending-=U,de.pending===0&&(de.pending_out=0))}function x(k,de){s._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,de),k.block_start=k.strstart,ie(k.strm)}function H(k,de){k.pending_buf[k.pending++]=de}function V(k,de){k.pending_buf[k.pending++]=de>>>8&255,k.pending_buf[k.pending++]=255&de}function q(k,de){var U,B,C=k.max_chain_length,R=k.strstart,ae=k.prev_length,fe=k.nice_match,ue=k.strstart>k.w_size-D?k.strstart-(k.w_size-D):0,xe=k.window,Ue=k.w_mask,Ie=k.prev,ke=k.strstart+G,ze=xe[R+ae-1],Xe=xe[R+ae];k.prev_length>=k.good_match&&(C>>=2),fe>k.lookahead&&(fe=k.lookahead);do if(xe[(U=de)+ae]===Xe&&xe[U+ae-1]===ze&&xe[U]===xe[R]&&xe[++U]===xe[R+1]){R+=2,U++;do;while(xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&xe[++R]===xe[++U]&&R<ke);if(B=G-(ke-R),R=ke-G,ae<B){if(k.match_start=de,fe<=(ae=B))break;ze=xe[R+ae-1],Xe=xe[R+ae]}}while((de=Ie[de&Ue])>ue&&--C!=0);return ae<=k.lookahead?ae:k.lookahead}function $(k){var de,U,B,C,R,ae,fe,ue,xe,Ue,Ie=k.w_size;do{if(C=k.window_size-k.lookahead-k.strstart,k.strstart>=Ie+(Ie-D)){for(a.arraySet(k.window,k.window,Ie,Ie,0),k.match_start-=Ie,k.strstart-=Ie,k.block_start-=Ie,de=U=k.hash_size;B=k.head[--de],k.head[de]=Ie<=B?B-Ie:0,--U;);for(de=U=Ie;B=k.prev[--de],k.prev[de]=Ie<=B?B-Ie:0,--U;);C+=Ie}if(k.strm.avail_in===0)break;if(ae=k.strm,fe=k.window,ue=k.strstart+k.lookahead,xe=C,Ue=void 0,Ue=ae.avail_in,xe<Ue&&(Ue=xe),U=Ue===0?0:(ae.avail_in-=Ue,a.arraySet(fe,ae.input,ae.next_in,Ue,ue),ae.state.wrap===1?ae.adler=o(ae.adler,fe,Ue,ue):ae.state.wrap===2&&(ae.adler=l(ae.adler,fe,Ue,ue)),ae.next_in+=Ue,ae.total_in+=Ue,Ue),k.lookahead+=U,k.lookahead+k.insert>=_)for(R=k.strstart-k.insert,k.ins_h=k.window[R],k.ins_h=(k.ins_h<<k.hash_shift^k.window[R+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[R+_-1])&k.hash_mask,k.prev[R&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=R,R++,k.insert--,!(k.lookahead+k.insert<_)););}while(k.lookahead<D&&k.strm.avail_in!==0)}function L(k,de){for(var U,B;;){if(k.lookahead<D){if($(k),k.lookahead<D&&de===h)return F;if(k.lookahead===0)break}if(U=0,k.lookahead>=_&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+_-1])&k.hash_mask,U=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),U!==0&&k.strstart-U<=k.w_size-D&&(k.match_length=q(k,U)),k.match_length>=_)if(B=s._tr_tally(k,k.strstart-k.match_start,k.match_length-_),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=_){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+_-1])&k.hash_mask,U=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else B=s._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(B&&(x(k,!1),k.strm.avail_out===0))return F}return k.insert=k.strstart<_-1?k.strstart:_-1,de===f?(x(k,!0),k.strm.avail_out===0?Z:z):k.last_lit&&(x(k,!1),k.strm.avail_out===0)?F:ee}function Q(k,de){for(var U,B,C;;){if(k.lookahead<D){if($(k),k.lookahead<D&&de===h)return F;if(k.lookahead===0)break}if(U=0,k.lookahead>=_&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+_-1])&k.hash_mask,U=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=_-1,U!==0&&k.prev_length<k.max_lazy_match&&k.strstart-U<=k.w_size-D&&(k.match_length=q(k,U),k.match_length<=5&&(k.strategy===1||k.match_length===_&&4096<k.strstart-k.match_start)&&(k.match_length=_-1)),k.prev_length>=_&&k.match_length<=k.prev_length){for(C=k.strstart+k.lookahead-_,B=s._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-_),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=C&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+_-1])&k.hash_mask,U=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=_-1,k.strstart++,B&&(x(k,!1),k.strm.avail_out===0))return F}else if(k.match_available){if((B=s._tr_tally(k,0,k.window[k.strstart-1]))&&x(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return F}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(B=s._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<_-1?k.strstart:_-1,de===f?(x(k,!0),k.strm.avail_out===0?Z:z):k.last_lit&&(x(k,!1),k.strm.avail_out===0)?F:ee}function te(k,de,U,B,C){this.good_length=k,this.max_lazy=de,this.nice_length=U,this.max_chain=B,this.func=C}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=v,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*O),this.dyn_dtree=new a.Buf16(2*(2*N+1)),this.bl_tree=new a.Buf16(2*(2*M+1)),ce(this.dyn_ltree),ce(this.dyn_dtree),ce(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(P+1),this.heap=new a.Buf16(2*I+1),ce(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*I+1),ce(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 X(k){var de;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=p,(de=k.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?S:K,k.adler=de.wrap===2?0:1,de.last_flush=h,s._tr_init(de),c):oe(k,g)}function ne(k){var de=X(k);return de===c&&function(U){U.window_size=2*U.w_size,ce(U.head),U.max_lazy_match=A[U.level].max_lazy,U.good_match=A[U.level].good_length,U.nice_match=A[U.level].nice_length,U.max_chain_length=A[U.level].max_chain,U.strstart=0,U.block_start=0,U.lookahead=0,U.insert=0,U.match_length=U.prev_length=_-1,U.match_available=0,U.ins_h=0}(k.state),de}function ve(k,de,U,B,C,R){if(!k)return g;var ae=1;if(de===m&&(de=6),B<0?(ae=0,B=-B):15<B&&(ae=2,B-=16),C<1||b<C||U!==v||B<8||15<B||de<0||9<de||R<0||y<R)return oe(k,g);B===8&&(B=9);var fe=new se;return(k.state=fe).strm=k,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=C+7,fe.hash_size=1<<fe.hash_bits,fe.hash_mask=fe.hash_size-1,fe.hash_shift=~~((fe.hash_bits+_-1)/_),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<<C+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=R,fe.method=U,ne(k)}A=[new te(0,0,0,0,function(k,de){var U=65535;for(U>k.pending_buf_size-5&&(U=k.pending_buf_size-5);;){if(k.lookahead<=1){if($(k),k.lookahead===0&&de===h)return F;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var B=k.block_start+U;if((k.strstart===0||k.strstart>=B)&&(k.lookahead=k.strstart-B,k.strstart=B,x(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-D&&(x(k,!1),k.strm.avail_out===0))return F}return k.insert=0,de===f?(x(k,!0),k.strm.avail_out===0?Z:z):(k.strstart>k.block_start&&(x(k,!1),k.strm.avail_out),F)}),new te(4,4,8,4,L),new te(4,5,16,8,L),new te(4,6,32,32,L),new te(4,4,16,16,Q),new te(8,16,32,32,Q),new te(8,16,128,128,Q),new te(8,32,128,256,Q),new te(32,128,258,1024,Q),new te(32,258,258,4096,Q)],i.deflateInit=function(k,de){return ve(k,de,v,15,8,0)},i.deflateInit2=ve,i.deflateReset=ne,i.deflateResetKeep=X,i.deflateSetHeader=function(k,de){return k&&k.state?k.state.wrap!==2?g:(k.state.gzhead=de,c):g},i.deflate=function(k,de){var U,B,C,R;if(!k||!k.state||5<de||de<0)return k?oe(k,g):g;if(B=k.state,!k.output||!k.input&&k.avail_in!==0||B.status===666&&de!==f)return oe(k,k.avail_out===0?-5:g);if(B.strm=k,U=B.last_flush,B.last_flush=de,B.status===S)if(B.wrap===2)k.adler=0,H(B,31),H(B,139),H(B,8),B.gzhead?(H(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)),H(B,255&B.gzhead.time),H(B,B.gzhead.time>>8&255),H(B,B.gzhead.time>>16&255),H(B,B.gzhead.time>>24&255),H(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),H(B,255&B.gzhead.os),B.gzhead.extra&&B.gzhead.extra.length&&(H(B,255&B.gzhead.extra.length),H(B,B.gzhead.extra.length>>8&255)),B.gzhead.hcrc&&(k.adler=l(k.adler,B.pending_buf,B.pending,0)),B.gzindex=0,B.status=69):(H(B,0),H(B,0),H(B,0),H(B,0),H(B,0),H(B,B.level===9?2:2<=B.strategy||B.level<2?4:0),H(B,3),B.status=K);else{var ae=v+(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,k.adler>>>16),V(B,65535&k.adler)),k.adler=1}if(B.status===69)if(B.gzhead.extra){for(C=B.pending;B.gzindex<(65535&B.gzhead.extra.length)&&(B.pending!==B.pending_buf_size||(B.gzhead.hcrc&&B.pending>C&&(k.adler=l(k.adler,B.pending_buf,B.pending-C,C)),ie(k),C=B.pending,B.pending!==B.pending_buf_size));)H(B,255&B.gzhead.extra[B.gzindex]),B.gzindex++;B.gzhead.hcrc&&B.pending>C&&(k.adler=l(k.adler,B.pending_buf,B.pending-C,C)),B.gzindex===B.gzhead.extra.length&&(B.gzindex=0,B.status=73)}else B.status=73;if(B.status===73)if(B.gzhead.name){C=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>C&&(k.adler=l(k.adler,B.pending_buf,B.pending-C,C)),ie(k),C=B.pending,B.pending===B.pending_buf_size)){R=1;break}R=B.gzindex<B.gzhead.name.length?255&B.gzhead.name.charCodeAt(B.gzindex++):0,H(B,R)}while(R!==0);B.gzhead.hcrc&&B.pending>C&&(k.adler=l(k.adler,B.pending_buf,B.pending-C,C)),R===0&&(B.gzindex=0,B.status=91)}else B.status=91;if(B.status===91)if(B.gzhead.comment){C=B.pending;do{if(B.pending===B.pending_buf_size&&(B.gzhead.hcrc&&B.pending>C&&(k.adler=l(k.adler,B.pending_buf,B.pending-C,C)),ie(k),C=B.pending,B.pending===B.pending_buf_size)){R=1;break}R=B.gzindex<B.gzhead.comment.length?255&B.gzhead.comment.charCodeAt(B.gzindex++):0,H(B,R)}while(R!==0);B.gzhead.hcrc&&B.pending>C&&(k.adler=l(k.adler,B.pending_buf,B.pending-C,C)),R===0&&(B.status=103)}else B.status=103;if(B.status===103&&(B.gzhead.hcrc?(B.pending+2>B.pending_buf_size&&ie(k),B.pending+2<=B.pending_buf_size&&(H(B,255&k.adler),H(B,k.adler>>8&255),k.adler=0,B.status=K)):B.status=K),B.pending!==0){if(ie(k),k.avail_out===0)return B.last_flush=-1,c}else if(k.avail_in===0&&W(de)<=W(U)&&de!==f)return oe(k,-5);if(B.status===666&&k.avail_in!==0)return oe(k,-5);if(k.avail_in!==0||B.lookahead!==0||de!==h&&B.status!==666){var fe=B.strategy===2?function(ue,xe){for(var Ue;;){if(ue.lookahead===0&&($(ue),ue.lookahead===0)){if(xe===h)return F;break}if(ue.match_length=0,Ue=s._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,Ue&&(x(ue,!1),ue.strm.avail_out===0))return F}return ue.insert=0,xe===f?(x(ue,!0),ue.strm.avail_out===0?Z:z):ue.last_lit&&(x(ue,!1),ue.strm.avail_out===0)?F:ee}(B,de):B.strategy===3?function(ue,xe){for(var Ue,Ie,ke,ze,Xe=ue.window;;){if(ue.lookahead<=G){if($(ue),ue.lookahead<=G&&xe===h)return F;if(ue.lookahead===0)break}if(ue.match_length=0,ue.lookahead>=_&&0<ue.strstart&&(Ie=Xe[ke=ue.strstart-1])===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]){ze=ue.strstart+G;do;while(Ie===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]&&Ie===Xe[++ke]&&ke<ze);ue.match_length=G-(ze-ke),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=_?(Ue=s._tr_tally(ue,1,ue.match_length-_),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(Ue=s._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),Ue&&(x(ue,!1),ue.strm.avail_out===0))return F}return ue.insert=0,xe===f?(x(ue,!0),ue.strm.avail_out===0?Z:z):ue.last_lit&&(x(ue,!1),ue.strm.avail_out===0)?F:ee}(B,de):A[B.level].func(B,de);if(fe!==Z&&fe!==z||(B.status=666),fe===F||fe===Z)return k.avail_out===0&&(B.last_flush=-1),c;if(fe===ee&&(de===1?s._tr_align(B):de!==5&&(s._tr_stored_block(B,0,0,!1),de===3&&(ce(B.head),B.lookahead===0&&(B.strstart=0,B.block_start=0,B.insert=0))),ie(k),k.avail_out===0))return B.last_flush=-1,c}return de!==f?c:B.wrap<=0?1:(B.wrap===2?(H(B,255&k.adler),H(B,k.adler>>8&255),H(B,k.adler>>16&255),H(B,k.adler>>24&255),H(B,255&k.total_in),H(B,k.total_in>>8&255),H(B,k.total_in>>16&255),H(B,k.total_in>>24&255)):(V(B,k.adler>>>16),V(B,65535&k.adler)),ie(k),0<B.wrap&&(B.wrap=-B.wrap),B.pending!==0?c:1)},i.deflateEnd=function(k){var de;return k&&k.state?(de=k.state.status)!==S&&de!==69&&de!==73&&de!==91&&de!==103&&de!==K&&de!==666?oe(k,g):(k.state=null,de===K?oe(k,-3):c):g},i.deflateSetDictionary=function(k,de){var U,B,C,R,ae,fe,ue,xe,Ue=de.length;if(!k||!k.state||(R=(U=k.state).wrap)===2||R===1&&U.status!==S||U.lookahead)return g;for(R===1&&(k.adler=o(k.adler,de,Ue,0)),U.wrap=0,Ue>=U.w_size&&(R===0&&(ce(U.head),U.strstart=0,U.block_start=0,U.insert=0),xe=new a.Buf8(U.w_size),a.arraySet(xe,de,Ue-U.w_size,U.w_size,0),de=xe,Ue=U.w_size),ae=k.avail_in,fe=k.next_in,ue=k.input,k.avail_in=Ue,k.next_in=0,k.input=de,$(U);U.lookahead>=_;){for(B=U.strstart,C=U.lookahead-(_-1);U.ins_h=(U.ins_h<<U.hash_shift^U.window[B+_-1])&U.hash_mask,U.prev[B&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=B,B++,--C;);U.strstart=B,U.lookahead=_-1,$(U)}return U.strstart+=U.lookahead,U.block_start=U.strstart,U.insert=U.lookahead,U.lookahead=0,U.match_length=U.prev_length=_-1,U.match_available=0,k.next_in=fe,k.input=ue,k.avail_in=ae,U.wrap=R,c},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,n,i){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,i){n.exports=function(A,a){var s,o,l,u,h,f,c,g,m,y,p,v,b,I,N,M,O,P,_,G,D,S,K,F,ee;s=A.state,o=A.next_in,F=A.input,l=o+(A.avail_in-5),u=A.next_out,ee=A.output,h=u-(a-A.avail_out),f=u+(A.avail_out-257),c=s.dmax,g=s.wsize,m=s.whave,y=s.wnext,p=s.window,v=s.hold,b=s.bits,I=s.lencode,N=s.distcode,M=(1<<s.lenbits)-1,O=(1<<s.distbits)-1;e:do{b<15&&(v+=F[o++]<<b,b+=8,v+=F[o++]<<b,b+=8),P=I[v&M];t:for(;;){if(v>>>=_=P>>>24,b-=_,(_=P>>>16&255)===0)ee[u++]=65535&P;else{if(!(16&_)){if(!(64&_)){P=I[(65535&P)+(v&(1<<_)-1)];continue t}if(32&_){s.mode=12;break e}A.msg="invalid literal/length code",s.mode=30;break e}G=65535&P,(_&=15)&&(b<_&&(v+=F[o++]<<b,b+=8),G+=v&(1<<_)-1,v>>>=_,b-=_),b<15&&(v+=F[o++]<<b,b+=8,v+=F[o++]<<b,b+=8),P=N[v&O];r:for(;;){if(v>>>=_=P>>>24,b-=_,!(16&(_=P>>>16&255))){if(!(64&_)){P=N[(65535&P)+(v&(1<<_)-1)];continue r}A.msg="invalid distance code",s.mode=30;break e}if(D=65535&P,b<(_&=15)&&(v+=F[o++]<<b,(b+=8)<_&&(v+=F[o++]<<b,b+=8)),c<(D+=v&(1<<_)-1)){A.msg="invalid distance too far back",s.mode=30;break e}if(v>>>=_,b-=_,(_=u-h)<D){if(m<(_=D-_)&&s.sane){A.msg="invalid distance too far back",s.mode=30;break e}if(K=p,(S=0)===y){if(S+=g-_,_<G){for(G-=_;ee[u++]=p[S++],--_;);S=u-D,K=ee}}else if(y<_){if(S+=g+y-_,(_-=y)<G){for(G-=_;ee[u++]=p[S++],--_;);if(S=0,y<G){for(G-=_=y;ee[u++]=p[S++],--_;);S=u-D,K=ee}}}else if(S+=y-_,_<G){for(G-=_;ee[u++]=p[S++],--_;);S=u-D,K=ee}for(;2<G;)ee[u++]=K[S++],ee[u++]=K[S++],ee[u++]=K[S++],G-=3;G&&(ee[u++]=K[S++],1<G&&(ee[u++]=K[S++]))}else{for(S=u-D;ee[u++]=ee[S++],ee[u++]=ee[S++],ee[u++]=ee[S++],2<(G-=3););G&&(ee[u++]=ee[S++],1<G&&(ee[u++]=ee[S++]))}break}}break}}while(o<l&&u<f);o-=G=b>>3,v&=(1<<(b-=G<<3))-1,A.next_in=o,A.next_out=u,A.avail_in=o<l?l-o+5:5-(o-l),A.avail_out=u<f?f-u+257:257-(u-f),s.hold=v,s.bits=b}},{}],49:[function(t,n,i){var A=t("../utils/common"),a=t("./adler32"),s=t("./crc32"),o=t("./inffast"),l=t("./inftrees"),u=1,h=2,f=0,c=-2,g=1,m=852,y=592;function p(S){return(S>>>24&255)+(S>>>8&65280)+((65280&S)<<8)+((255&S)<<24)}function v(){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 A.Buf16(320),this.work=new A.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=g,K.last=0,K.havedict=0,K.dmax=32768,K.head=null,K.hold=0,K.bits=0,K.lencode=K.lendyn=new A.Buf32(m),K.distcode=K.distdyn=new A.Buf32(y),K.sane=1,K.back=-1,f):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 N(S,K){var F,ee;return S&&S.state?(ee=S.state,K<0?(F=0,K=-K):(F=1+(K>>4),K<48&&(K&=15)),K&&(K<8||15<K)?c:(ee.window!==null&&ee.wbits!==K&&(ee.window=null),ee.wrap=F,ee.wbits=K,I(S))):c}function M(S,K){var F,ee;return S?(ee=new v,(S.state=ee).window=null,(F=N(S,K))!==f&&(S.state=null),F):c}var O,P,_=!0;function G(S){if(_){var K;for(O=new A.Buf32(512),P=new A.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,O,0,S.work,{bits:9}),K=0;K<32;)S.lens[K++]=5;l(h,S.lens,0,32,P,0,S.work,{bits:5}),_=!1}S.lencode=O,S.lenbits=9,S.distcode=P,S.distbits=5}function D(S,K,F,ee){var Z,z=S.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new A.Buf8(z.wsize)),ee>=z.wsize?(A.arraySet(z.window,K,F-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(ee<(Z=z.wsize-z.wnext)&&(Z=ee),A.arraySet(z.window,K,F-ee,Z,z.wnext),(ee-=Z)?(A.arraySet(z.window,K,F-ee,ee,0),z.wnext=ee,z.whave=z.wsize):(z.wnext+=Z,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=Z))),0}i.inflateReset=I,i.inflateReset2=N,i.inflateResetKeep=b,i.inflateInit=function(S){return M(S,15)},i.inflateInit2=M,i.inflate=function(S,K){var F,ee,Z,z,oe,W,ce,ie,x,H,V,q,$,L,Q,te,se,X,ne,ve,k,de,U,B,C=0,R=new A.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,Z=S.output,ce=S.avail_out,z=S.next_in,ee=S.input,W=S.avail_in,ie=F.hold,x=F.bits,H=W,V=ce,de=f;e:for(;;)switch(F.mode){case g:if(F.wrap===0){F.mode=13;break}for(;x<16;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(2&F.wrap&&ie===35615){R[F.check=0]=255&ie,R[1]=ie>>>8&255,F.check=s(F.check,R,2,0),x=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(x-=4,k=8+(15&(ie>>>=4)),F.wbits===0)F.wbits=k;else if(k>F.wbits){S.msg="invalid window size",F.mode=30;break}F.dmax=1<<k,S.adler=F.check=1,F.mode=512&ie?10:12,x=ie=0;break;case 2:for(;x<16;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=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&&(R[0]=255&ie,R[1]=ie>>>8&255,F.check=s(F.check,R,2,0)),x=ie=0,F.mode=3;case 3:for(;x<32;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}F.head&&(F.head.time=ie),512&F.flags&&(R[0]=255&ie,R[1]=ie>>>8&255,R[2]=ie>>>16&255,R[3]=ie>>>24&255,F.check=s(F.check,R,4,0)),x=ie=0,F.mode=4;case 4:for(;x<16;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}F.head&&(F.head.xflags=255&ie,F.head.os=ie>>8),512&F.flags&&(R[0]=255&ie,R[1]=ie>>>8&255,F.check=s(F.check,R,2,0)),x=ie=0,F.mode=5;case 5:if(1024&F.flags){for(;x<16;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}F.length=ie,F.head&&(F.head.extra_len=ie),512&F.flags&&(R[0]=255&ie,R[1]=ie>>>8&255,F.check=s(F.check,R,2,0)),x=ie=0}else F.head&&(F.head.extra=null);F.mode=6;case 6:if(1024&F.flags&&(W<(q=F.length)&&(q=W),q&&(F.head&&(k=F.head.extra_len-F.length,F.head.extra||(F.head.extra=new Array(F.head.extra_len)),A.arraySet(F.head.extra,ee,z,q,k)),512&F.flags&&(F.check=s(F.check,ee,q,z)),W-=q,z+=q,F.length-=q),F.length))break e;F.length=0,F.mode=7;case 7:if(2048&F.flags){if(W===0)break e;for(q=0;k=ee[z+q++],F.head&&k&&F.length<65536&&(F.head.name+=String.fromCharCode(k)),k&&q<W;);if(512&F.flags&&(F.check=s(F.check,ee,q,z)),W-=q,z+=q,k)break e}else F.head&&(F.head.name=null);F.length=0,F.mode=8;case 8:if(4096&F.flags){if(W===0)break e;for(q=0;k=ee[z+q++],F.head&&k&&F.length<65536&&(F.head.comment+=String.fromCharCode(k)),k&&q<W;);if(512&F.flags&&(F.check=s(F.check,ee,q,z)),W-=q,z+=q,k)break e}else F.head&&(F.head.comment=null);F.mode=9;case 9:if(512&F.flags){for(;x<16;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(ie!==(65535&F.check)){S.msg="header crc mismatch",F.mode=30;break}x=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(;x<32;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}S.adler=F.check=p(ie),x=ie=0,F.mode=11;case 11:if(F.havedict===0)return S.next_out=oe,S.avail_out=ce,S.next_in=z,S.avail_in=W,F.hold=ie,F.bits=x,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&x,x-=7&x,F.mode=27;break}for(;x<3;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}switch(F.last=1&ie,x-=1,3&(ie>>>=1)){case 0:F.mode=14;break;case 1:if(G(F),F.mode=20,K!==6)break;ie>>>=2,x-=2;break e;case 2:F.mode=17;break;case 3:S.msg="invalid block type",F.mode=30}ie>>>=2,x-=2;break;case 14:for(ie>>>=7&x,x-=7&x;x<32;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if((65535&ie)!=(ie>>>16^65535)){S.msg="invalid stored block lengths",F.mode=30;break}if(F.length=65535&ie,x=ie=0,F.mode=15,K===6)break e;case 15:F.mode=16;case 16:if(q=F.length){if(W<q&&(q=W),ce<q&&(q=ce),q===0)break e;A.arraySet(Z,ee,z,q,oe),W-=q,z+=q,ce-=q,oe+=q,F.length-=q;break}F.mode=12;break;case 17:for(;x<14;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(F.nlen=257+(31&ie),ie>>>=5,x-=5,F.ndist=1+(31&ie),ie>>>=5,x-=5,F.ncode=4+(15&ie),ie>>>=4,x-=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(;x<3;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}F.lens[ae[F.have++]]=7&ie,ie>>>=3,x-=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(;te=(C=F.lencode[ie&(1<<F.lenbits)-1])>>>16&255,se=65535&C,!((Q=C>>>24)<=x);){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(se<16)ie>>>=Q,x-=Q,F.lens[F.have++]=se;else{if(se===16){for(B=Q+2;x<B;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(ie>>>=Q,x-=Q,F.have===0){S.msg="invalid bit length repeat",F.mode=30;break}k=F.lens[F.have-1],q=3+(3&ie),ie>>>=2,x-=2}else if(se===17){for(B=Q+3;x<B;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}x-=Q,k=0,q=3+(7&(ie>>>=Q)),ie>>>=3,x-=3}else{for(B=Q+7;x<B;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}x-=Q,k=0,q=11+(127&(ie>>>=Q)),ie>>>=7,x-=7}if(F.have+q>F.nlen+F.ndist){S.msg="invalid bit length repeat",F.mode=30;break}for(;q--;)F.lens[F.have++]=k}}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<=W&&258<=ce){S.next_out=oe,S.avail_out=ce,S.next_in=z,S.avail_in=W,F.hold=ie,F.bits=x,o(S,V),oe=S.next_out,Z=S.output,ce=S.avail_out,z=S.next_in,ee=S.input,W=S.avail_in,ie=F.hold,x=F.bits,F.mode===12&&(F.back=-1);break}for(F.back=0;te=(C=F.lencode[ie&(1<<F.lenbits)-1])>>>16&255,se=65535&C,!((Q=C>>>24)<=x);){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(te&&!(240&te)){for(X=Q,ne=te,ve=se;te=(C=F.lencode[ve+((ie&(1<<X+ne)-1)>>X)])>>>16&255,se=65535&C,!(X+(Q=C>>>24)<=x);){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}ie>>>=X,x-=X,F.back+=X}if(ie>>>=Q,x-=Q,F.back+=Q,F.length=se,te===0){F.mode=26;break}if(32&te){F.back=-1,F.mode=12;break}if(64&te){S.msg="invalid literal/length code",F.mode=30;break}F.extra=15&te,F.mode=22;case 22:if(F.extra){for(B=F.extra;x<B;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}F.length+=ie&(1<<F.extra)-1,ie>>>=F.extra,x-=F.extra,F.back+=F.extra}F.was=F.length,F.mode=23;case 23:for(;te=(C=F.distcode[ie&(1<<F.distbits)-1])>>>16&255,se=65535&C,!((Q=C>>>24)<=x);){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(!(240&te)){for(X=Q,ne=te,ve=se;te=(C=F.distcode[ve+((ie&(1<<X+ne)-1)>>X)])>>>16&255,se=65535&C,!(X+(Q=C>>>24)<=x);){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}ie>>>=X,x-=X,F.back+=X}if(ie>>>=Q,x-=Q,F.back+=Q,64&te){S.msg="invalid distance code",F.mode=30;break}F.offset=se,F.extra=15&te,F.mode=24;case 24:if(F.extra){for(B=F.extra;x<B;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}F.offset+=ie&(1<<F.extra)-1,ie>>>=F.extra,x-=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(ce===0)break e;if(q=V-ce,F.offset>q){if((q=F.offset-q)>F.whave&&F.sane){S.msg="invalid distance too far back",F.mode=30;break}$=q>F.wnext?(q-=F.wnext,F.wsize-q):F.wnext-q,q>F.length&&(q=F.length),L=F.window}else L=Z,$=oe-F.offset,q=F.length;for(ce<q&&(q=ce),ce-=q,F.length-=q;Z[oe++]=L[$++],--q;);F.length===0&&(F.mode=21);break;case 26:if(ce===0)break e;Z[oe++]=F.length,ce--,F.mode=21;break;case 27:if(F.wrap){for(;x<32;){if(W===0)break e;W--,ie|=ee[z++]<<x,x+=8}if(V-=ce,S.total_out+=V,F.total+=V,V&&(S.adler=F.check=F.flags?s(F.check,Z,V,oe-V):a(F.check,Z,V,oe-V)),V=ce,(F.flags?ie:p(ie))!==F.check){S.msg="incorrect data check",F.mode=30;break}x=ie=0}F.mode=28;case 28:if(F.wrap&&F.flags){for(;x<32;){if(W===0)break e;W--,ie+=ee[z++]<<x,x+=8}if(ie!==(4294967295&F.total)){S.msg="incorrect length check",F.mode=30;break}x=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=ce,S.next_in=z,S.avail_in=W,F.hold=ie,F.bits=x,(F.wsize||V!==S.avail_out&&F.mode<30&&(F.mode<27||K!==4))&&D(S,S.output,S.next_out,V-S.avail_out)?(F.mode=31,-4):(H-=S.avail_in,V-=S.avail_out,S.total_in+=H,S.total_out+=V,F.total+=V,F.wrap&&V&&(S.adler=F.check=F.flags?s(F.check,Z,V,S.next_out-V):a(F.check,Z,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),(H==0&&V===0||K===4)&&de===f&&(de=-5),de)},i.inflateEnd=function(S){if(!S||!S.state)return c;var K=S.state;return K.window&&(K.window=null),S.state=null,f},i.inflateGetHeader=function(S,K){var F;return S&&S.state&&2&(F=S.state).wrap?((F.head=K).done=!1,f):c},i.inflateSetDictionary=function(S,K){var F,ee=K.length;return S&&S.state?(F=S.state).wrap!==0&&F.mode!==11?c:F.mode===11&&a(1,K,ee,0)!==F.check?-3:D(S,K,ee,ee)?(F.mode=31,-4):(F.havedict=1,f):c},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,n,i){var A=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,f,c,g,m,y,p){var v,b,I,N,M,O,P,_,G,D=p.bits,S=0,K=0,F=0,ee=0,Z=0,z=0,oe=0,W=0,ce=0,ie=0,x=null,H=0,V=new A.Buf16(16),q=new A.Buf16(16),$=null,L=0;for(S=0;S<=15;S++)V[S]=0;for(K=0;K<c;K++)V[h[f+K]]++;for(Z=D,ee=15;1<=ee&&V[ee]===0;ee--);if(ee<Z&&(Z=ee),ee===0)return g[m++]=20971520,g[m++]=20971520,p.bits=1,0;for(F=1;F<ee&&V[F]===0;F++);for(Z<F&&(Z=F),S=W=1;S<=15;S++)if(W<<=1,(W-=V[S])<0)return-1;if(0<W&&(u===0||ee!==1))return-1;for(q[1]=0,S=1;S<15;S++)q[S+1]=q[S]+V[S];for(K=0;K<c;K++)h[f+K]!==0&&(y[q[h[f+K]]++]=K);if(O=u===0?(x=$=y,19):u===1?(x=a,H-=257,$=s,L-=257,256):(x=o,$=l,-1),S=F,M=m,oe=K=ie=0,I=-1,N=(ce=1<<(z=Z))-1,u===1&&852<ce||u===2&&592<ce)return 1;for(;;){for(P=S-oe,G=y[K]<O?(_=0,y[K]):y[K]>O?(_=$[L+y[K]],x[H+y[K]]):(_=96,0),v=1<<S-oe,F=b=1<<z;g[M+(ie>>oe)+(b-=v)]=P<<24|_<<16|G|0,b!==0;);for(v=1<<S-1;ie&v;)v>>=1;if(v!==0?(ie&=v-1,ie+=v):ie=0,K++,--V[S]==0){if(S===ee)break;S=h[f+y[K]]}if(Z<S&&(ie&N)!==I){for(oe===0&&(oe=Z),M+=F,W=1<<(z=S-oe);z+oe<ee&&!((W-=V[z+oe])<=0);)z++,W<<=1;if(ce+=1<<z,u===1&&852<ce||u===2&&592<ce)return 1;g[I=ie&N]=Z<<24|z<<16|M-m|0}}return ie!==0&&(g[M+ie]=S-oe<<24|64<<16|0),p.bits=Z,0}},{"../utils/common":41}],51:[function(t,n,i){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,i){var A=t("../utils/common"),a=0,s=1;function o(C){for(var R=C.length;0<=--R;)C[R]=0}var l=0,u=29,h=256,f=h+1+u,c=30,g=19,m=2*f+1,y=15,p=16,v=7,b=256,I=16,N=17,M=18,O=[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],P=[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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(f+2));o(D);var S=new Array(2*c);o(S);var K=new Array(512);o(K);var F=new Array(256);o(F);var ee=new Array(u);o(ee);var Z,z,oe,W=new Array(c);function ce(C,R,ae,fe,ue){this.static_tree=C,this.extra_bits=R,this.extra_base=ae,this.elems=fe,this.max_length=ue,this.has_stree=C&&C.length}function ie(C,R){this.dyn_tree=C,this.max_code=0,this.stat_desc=R}function x(C){return C<256?K[C]:K[256+(C>>>7)]}function H(C,R){C.pending_buf[C.pending++]=255&R,C.pending_buf[C.pending++]=R>>>8&255}function V(C,R,ae){C.bi_valid>p-ae?(C.bi_buf|=R<<C.bi_valid&65535,H(C,C.bi_buf),C.bi_buf=R>>p-C.bi_valid,C.bi_valid+=ae-p):(C.bi_buf|=R<<C.bi_valid&65535,C.bi_valid+=ae)}function q(C,R,ae){V(C,ae[2*R],ae[2*R+1])}function $(C,R){for(var ae=0;ae|=1&C,C>>>=1,ae<<=1,0<--R;);return ae>>>1}function L(C,R,ae){var fe,ue,xe=new Array(y+1),Ue=0;for(fe=1;fe<=y;fe++)xe[fe]=Ue=Ue+ae[fe-1]<<1;for(ue=0;ue<=R;ue++){var Ie=C[2*ue+1];Ie!==0&&(C[2*ue]=$(xe[Ie]++,Ie))}}function Q(C){var R;for(R=0;R<f;R++)C.dyn_ltree[2*R]=0;for(R=0;R<c;R++)C.dyn_dtree[2*R]=0;for(R=0;R<g;R++)C.bl_tree[2*R]=0;C.dyn_ltree[2*b]=1,C.opt_len=C.static_len=0,C.last_lit=C.matches=0}function te(C){8<C.bi_valid?H(C,C.bi_buf):0<C.bi_valid&&(C.pending_buf[C.pending++]=C.bi_buf),C.bi_buf=0,C.bi_valid=0}function se(C,R,ae,fe){var ue=2*R,xe=2*ae;return C[ue]<C[xe]||C[ue]===C[xe]&&fe[R]<=fe[ae]}function X(C,R,ae){for(var fe=C.heap[ae],ue=ae<<1;ue<=C.heap_len&&(ue<C.heap_len&&se(R,C.heap[ue+1],C.heap[ue],C.depth)&&ue++,!se(R,fe,C.heap[ue],C.depth));)C.heap[ae]=C.heap[ue],ae=ue,ue<<=1;C.heap[ae]=fe}function ne(C,R,ae){var fe,ue,xe,Ue,Ie=0;if(C.last_lit!==0)for(;fe=C.pending_buf[C.d_buf+2*Ie]<<8|C.pending_buf[C.d_buf+2*Ie+1],ue=C.pending_buf[C.l_buf+Ie],Ie++,fe===0?q(C,ue,R):(q(C,(xe=F[ue])+h+1,R),(Ue=O[xe])!==0&&V(C,ue-=ee[xe],Ue),q(C,xe=x(--fe),ae),(Ue=P[xe])!==0&&V(C,fe-=W[xe],Ue)),Ie<C.last_lit;);q(C,b,R)}function ve(C,R){var ae,fe,ue,xe=R.dyn_tree,Ue=R.stat_desc.static_tree,Ie=R.stat_desc.has_stree,ke=R.stat_desc.elems,ze=-1;for(C.heap_len=0,C.heap_max=m,ae=0;ae<ke;ae++)xe[2*ae]!==0?(C.heap[++C.heap_len]=ze=ae,C.depth[ae]=0):xe[2*ae+1]=0;for(;C.heap_len<2;)xe[2*(ue=C.heap[++C.heap_len]=ze<2?++ze:0)]=1,C.depth[ue]=0,C.opt_len--,Ie&&(C.static_len-=Ue[2*ue+1]);for(R.max_code=ze,ae=C.heap_len>>1;1<=ae;ae--)X(C,xe,ae);for(ue=ke;ae=C.heap[1],C.heap[1]=C.heap[C.heap_len--],X(C,xe,1),fe=C.heap[1],C.heap[--C.heap_max]=ae,C.heap[--C.heap_max]=fe,xe[2*ue]=xe[2*ae]+xe[2*fe],C.depth[ue]=(C.depth[ae]>=C.depth[fe]?C.depth[ae]:C.depth[fe])+1,xe[2*ae+1]=xe[2*fe+1]=ue,C.heap[1]=ue++,X(C,xe,1),2<=C.heap_len;);C.heap[--C.heap_max]=C.heap[1],function(Xe,rt){var ft,qe,jt,ut,fr,It,vt=rt.dyn_tree,dr=rt.max_code,Ut=rt.stat_desc.static_tree,en=rt.stat_desc.has_stree,Kt=rt.stat_desc.extra_bits,ar=rt.stat_desc.extra_base,Mt=rt.stat_desc.max_length,Wt=0;for(ut=0;ut<=y;ut++)Xe.bl_count[ut]=0;for(vt[2*Xe.heap[Xe.heap_max]+1]=0,ft=Xe.heap_max+1;ft<m;ft++)Mt<(ut=vt[2*vt[2*(qe=Xe.heap[ft])+1]+1]+1)&&(ut=Mt,Wt++),vt[2*qe+1]=ut,dr<qe||(Xe.bl_count[ut]++,fr=0,ar<=qe&&(fr=Kt[qe-ar]),It=vt[2*qe],Xe.opt_len+=It*(ut+fr),en&&(Xe.static_len+=It*(Ut[2*qe+1]+fr)));if(Wt!==0){do{for(ut=Mt-1;Xe.bl_count[ut]===0;)ut--;Xe.bl_count[ut]--,Xe.bl_count[ut+1]+=2,Xe.bl_count[Mt]--,Wt-=2}while(0<Wt);for(ut=Mt;ut!==0;ut--)for(qe=Xe.bl_count[ut];qe!==0;)dr<(jt=Xe.heap[--ft])||(vt[2*jt+1]!==ut&&(Xe.opt_len+=(ut-vt[2*jt+1])*vt[2*jt],vt[2*jt+1]=ut),qe--)}}(C,R),L(xe,ze,C.bl_count)}function k(C,R,ae){var fe,ue,xe=-1,Ue=R[1],Ie=0,ke=7,ze=4;for(Ue===0&&(ke=138,ze=3),R[2*(ae+1)+1]=65535,fe=0;fe<=ae;fe++)ue=Ue,Ue=R[2*(fe+1)+1],++Ie<ke&&ue===Ue||(Ie<ze?C.bl_tree[2*ue]+=Ie:ue!==0?(ue!==xe&&C.bl_tree[2*ue]++,C.bl_tree[2*I]++):Ie<=10?C.bl_tree[2*N]++:C.bl_tree[2*M]++,xe=ue,ze=(Ie=0)===Ue?(ke=138,3):ue===Ue?(ke=6,3):(ke=7,4))}function de(C,R,ae){var fe,ue,xe=-1,Ue=R[1],Ie=0,ke=7,ze=4;for(Ue===0&&(ke=138,ze=3),fe=0;fe<=ae;fe++)if(ue=Ue,Ue=R[2*(fe+1)+1],!(++Ie<ke&&ue===Ue)){if(Ie<ze)for(;q(C,ue,C.bl_tree),--Ie!=0;);else ue!==0?(ue!==xe&&(q(C,ue,C.bl_tree),Ie--),q(C,I,C.bl_tree),V(C,Ie-3,2)):Ie<=10?(q(C,N,C.bl_tree),V(C,Ie-3,3)):(q(C,M,C.bl_tree),V(C,Ie-11,7));xe=ue,ze=(Ie=0)===Ue?(ke=138,3):ue===Ue?(ke=6,3):(ke=7,4)}}o(W);var U=!1;function B(C,R,ae,fe){V(C,(l<<1)+(fe?1:0),3),function(ue,xe,Ue,Ie){te(ue),H(ue,Ue),H(ue,~Ue),A.arraySet(ue.pending_buf,ue.window,xe,Ue,ue.pending),ue.pending+=Ue}(C,R,ae)}i._tr_init=function(C){U||(function(){var R,ae,fe,ue,xe,Ue=new Array(y+1);for(ue=fe=0;ue<u-1;ue++)for(ee[ue]=fe,R=0;R<1<<O[ue];R++)F[fe++]=ue;for(F[fe-1]=ue,ue=xe=0;ue<16;ue++)for(W[ue]=xe,R=0;R<1<<P[ue];R++)K[xe++]=ue;for(xe>>=7;ue<c;ue++)for(W[ue]=xe<<7,R=0;R<1<<P[ue]-7;R++)K[256+xe++]=ue;for(ae=0;ae<=y;ae++)Ue[ae]=0;for(R=0;R<=143;)D[2*R+1]=8,R++,Ue[8]++;for(;R<=255;)D[2*R+1]=9,R++,Ue[9]++;for(;R<=279;)D[2*R+1]=7,R++,Ue[7]++;for(;R<=287;)D[2*R+1]=8,R++,Ue[8]++;for(L(D,f+1,Ue),R=0;R<c;R++)S[2*R+1]=5,S[2*R]=$(R,5);Z=new ce(D,O,h+1,f,y),z=new ce(S,P,0,c,y),oe=new ce(new Array(0),_,0,g,v)}(),U=!0),C.l_desc=new ie(C.dyn_ltree,Z),C.d_desc=new ie(C.dyn_dtree,z),C.bl_desc=new ie(C.bl_tree,oe),C.bi_buf=0,C.bi_valid=0,Q(C)},i._tr_stored_block=B,i._tr_flush_block=function(C,R,ae,fe){var ue,xe,Ue=0;0<C.level?(C.strm.data_type===2&&(C.strm.data_type=function(Ie){var ke,ze=4093624447;for(ke=0;ke<=31;ke++,ze>>>=1)if(1&ze&&Ie.dyn_ltree[2*ke]!==0)return a;if(Ie.dyn_ltree[18]!==0||Ie.dyn_ltree[20]!==0||Ie.dyn_ltree[26]!==0)return s;for(ke=32;ke<h;ke++)if(Ie.dyn_ltree[2*ke]!==0)return s;return a}(C)),ve(C,C.l_desc),ve(C,C.d_desc),Ue=function(Ie){var ke;for(k(Ie,Ie.dyn_ltree,Ie.l_desc.max_code),k(Ie,Ie.dyn_dtree,Ie.d_desc.max_code),ve(Ie,Ie.bl_desc),ke=g-1;3<=ke&&Ie.bl_tree[2*G[ke]+1]===0;ke--);return Ie.opt_len+=3*(ke+1)+5+5+4,ke}(C),ue=C.opt_len+3+7>>>3,(xe=C.static_len+3+7>>>3)<=ue&&(ue=xe)):ue=xe=ae+5,ae+4<=ue&&R!==-1?B(C,R,ae,fe):C.strategy===4||xe===ue?(V(C,2+(fe?1:0),3),ne(C,D,S)):(V(C,4+(fe?1:0),3),function(Ie,ke,ze,Xe){var rt;for(V(Ie,ke-257,5),V(Ie,ze-1,5),V(Ie,Xe-4,4),rt=0;rt<Xe;rt++)V(Ie,Ie.bl_tree[2*G[rt]+1],3);de(Ie,Ie.dyn_ltree,ke-1),de(Ie,Ie.dyn_dtree,ze-1)}(C,C.l_desc.max_code+1,C.d_desc.max_code+1,Ue+1),ne(C,C.dyn_ltree,C.dyn_dtree)),Q(C),fe&&te(C)},i._tr_tally=function(C,R,ae){return C.pending_buf[C.d_buf+2*C.last_lit]=R>>>8&255,C.pending_buf[C.d_buf+2*C.last_lit+1]=255&R,C.pending_buf[C.l_buf+C.last_lit]=255&ae,C.last_lit++,R===0?C.dyn_ltree[2*ae]++:(C.matches++,R--,C.dyn_ltree[2*(F[ae]+h+1)]++,C.dyn_dtree[2*x(R)]++),C.last_lit===C.lit_bufsize-1},i._tr_align=function(C){V(C,2,3),q(C,b,D),function(R){R.bi_valid===16?(H(R,R.bi_buf),R.bi_buf=0,R.bi_valid=0):8<=R.bi_valid&&(R.pending_buf[R.pending++]=255&R.bi_buf,R.bi_buf>>=8,R.bi_valid-=8)}(C)}},{"../utils/common":41}],53:[function(t,n,i){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,i){(function(A){(function(a,s){if(!a.setImmediate){var o,l,u,h,f=1,c={},g=!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){Tt.nextTick(function(){v(I)})}:function(){if(a.postMessage&&!a.importScripts){var I=!0,N=a.onmessage;return a.onmessage=function(){I=!1},a.postMessage("","*"),a.onmessage=N,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){v(I.data)},function(I){u.port2.postMessage(I)}):m&&"onreadystatechange"in m.createElement("script")?(l=m.documentElement,function(I){var N=m.createElement("script");N.onreadystatechange=function(){v(I),N.onreadystatechange=null,l.removeChild(N),N=null},l.appendChild(N)}):function(I){setTimeout(v,0,I)},y.setImmediate=function(I){typeof I!="function"&&(I=new Function(""+I));for(var N=new Array(arguments.length-1),M=0;M<N.length;M++)N[M]=arguments[M+1];var O={callback:I,args:N};return c[f]=O,o(f),f++},y.clearImmediate=p}function p(I){delete c[I]}function v(I){if(g)setTimeout(v,0,I);else{var N=c[I];if(N){g=!0;try{(function(M){var O=M.callback,P=M.args;switch(P.length){case 0:O();break;case 1:O(P[0]);break;case 2:O(P[0],P[1]);break;case 3:O(P[0],P[1],P[2]);break;default:O.apply(s,P)}})(N)}finally{p(I),g=!1}}}}function b(I){I.source===a&&typeof I.data=="string"&&I.data.indexOf(h)===0&&v(+I.data.slice(h.length))}})(typeof self=="undefined"?A===void 0?this:A:self)}).call(this,typeof Ji!="undefined"?Ji:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})})(Kb);var hL=Kb.exports;const fL=E1(hL);var pc={exports:{}},dL={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};function pL(r){return r&&r.replace?r.replace(/([&"<>'])/g,function(e,t){return dL[t]}):r}var gL=pL,rg=gL,Vb=Qp.Stream,mL=" ";function vL(r,e){typeof e!="object"&&(e={indent:e});var t=e.stream?new Vb:null,n="",i=!1,A=e.indent?e.indent===!0?mL:e.indent:"",a=!0;function s(f){a?Tt.nextTick(f):f()}function o(f,c){if(c!==void 0&&(n+=c),f&&!i&&(t=t||new Vb,i=!0),f&&i){var g=n;s(function(){t.emit("data",g)}),n=""}}function l(f,c){ng(o,gc(f,A,A?1:0),c)}function u(){if(t){var f=n;s(function(){t.emit("data",f),t.emit("end"),t.readable=!1,t.emit("close")})}}function h(f){var c=f.encoding||"UTF-8",g={version:"1.0",encoding:c};f.standalone&&(g.standalone=f.standalone),l({"?xml":{_attr:g}}),n=n.replace("/>","?>")}return s(function(){a=!1}),e.declaration&&h(e.declaration),r&&r.forEach?r.forEach(function(f,c){var g;c+1===r.length&&(g=u),l(f,g)}):l(r,u),t?(t.readable=!0,t):n}function wL(){var r=Array.prototype.slice.call(arguments),e={_elem:gc(r)};return e.push=function(t){if(!this.append)throw new Error("not assigned to a parent!");var n=this,i=this._elem.indent;ng(this.append,gc(t,i,this._elem.icount+(i?1:0)),function(){n.append(!0)})},e.close=function(t){t!==void 0&&this.push(t),this.end&&this.end()},e}function yL(r,e){return new Array(e||0).join(r||"")}function gc(r,e,t){t=t||0;var n=yL(e,t),i,A=r,a=!1;if(typeof r=="object"){var s=Object.keys(r);if(i=s[0],A=r[i],A&&A._elem)return A._elem.name=i,A._elem.icount=t,A._elem.indent=e,A._elem.indents=n,A._elem.interrupt=A,A._elem}var o=[],l=[],u;function h(f){var c=Object.keys(f);c.forEach(function(g){o.push(bL(g,f[g]))})}switch(typeof A){case"object":if(A===null)break;A._attr&&h(A._attr),A._cdata&&l.push(("<![CDATA["+A._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),A.forEach&&(u=!1,l.push(""),A.forEach(function(f){if(typeof f=="object"){var c=Object.keys(f)[0];c=="_attr"?h(f._attr):l.push(gc(f,e,t+1))}else l.pop(),u=!0,l.push(rg(f))}),u||l.push(""));break;default:l.push(rg(A))}return{name:i,interrupt:a,attributes:o,content:l,icount:t,indents:n,indent:e}}function ng(r,e,t){if(typeof e!="object")return r(!1,e);var n=e.interrupt?1:e.content.length;function i(){for(;e.content.length;){var a=e.content.shift();if(a!==void 0){if(A(a))return;ng(r,a)}}r(!1,(n>1?e.indents:"")+(e.name?"</"+e.name+">":"")+(e.indent&&!t?`
84
+ `:"")),t&&t()}function A(a){return a.interrupt?(a.interrupt.append=r,a.interrupt.end=i,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?`
85
+ `:"")),!n)return r(!1,e.indent?`
86
+ `:"");A(e)||i()}function bL(r,e){return r+'="'+rg(e)+'"'}pc.exports=vL,pc.exports.element=pc.exports.Element=wL;var BL=pc.exports;const Ur=E1(BL),zb=0,$b=32,xL=32,CL=(r,e)=>{const t=e.replace(/-/g,"");if(t.length!==xL)throw new Error(`Error: Cannot extract GUID from font filename: ${e}`);const i=t.replace(/(..)/g,"$1 ").trim().split(" ").map(o=>parseInt(o,16));i.reverse();const a=r.slice(zb,$b).map((o,l)=>o^i[l%i.length]);return Buffer.concat([r.slice(0,zb),a,r.slice($b)])};class EL{format(e,t={stack:[]}){const n=e.prepForXml(t);if(n)return n;throw Error("XMLComponent did not format correctly")}}class SL{replace(e,t,n){let i=e;return t.forEach((A,a)=>{i=i.replace(new RegExp(`{${A.fileName}}`,"g"),(n+a).toString())}),i}getMediaData(e,t){return t.Array.filter(n=>e.search(`{${n.fileName}}`)>0)}}class FL{replace(e,t){let n=e;for(const i of t)n=n.replace(new RegExp(`{${i.reference}-${i.instance}}`,"g"),i.numId.toString());return n}}class IL{constructor(){Qe(this,"formatter"),Qe(this,"imageReplacer"),Qe(this,"numberingReplacer"),this.formatter=new EL,this.imageReplacer=new SL,this.numberingReplacer=new FL}compile(e,t){const n=new fL,i=this.xmlifyFile(e,t),A=new Map(Object.entries(i));for(const[,a]of A)if(Array.isArray(a))for(const s of a)n.file(s.path,s.data);else n.file(a.path,a.data);for(const a of e.Media.Array)a.type!=="svg"?n.file(`word/media/${a.fileName}`,a.data):(n.file(`word/media/${a.fileName}`,a.data),n.file(`word/media/${a.fallback.fileName}`,a.fallback.data));for(const{data:a,name:s,fontKey:o}of e.FontTable.fontOptionsWithKey){const[l]=s.split(".");n.file(`word/fonts/${l}.odttf`,CL(a,o))}return n}xmlifyFile(e,t){const n=e.Document.Relationships.RelationshipCount+1,i=Ur(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),A=this.imageReplacer.getMediaData(i,e.Media);return{Relationships:{data:(A.forEach((a,s)=>{e.Document.Relationships.createRelationship(n+s,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${a.fileName}`)}),Ur(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(i,A,n);return this.numberingReplacer.replace(a,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const a=Ur(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:Ur(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:Ur(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:Ur(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=Ur(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:Ur(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=Ur(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:Ur(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=Ur(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=Ur(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:Ur(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:Ur(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:Ur(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:Ur(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/footnotes.xml"},FootNotesRelationships:{data:Ur(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:Ur(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:Ur(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:Ur(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:Ur(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 UL={WITH_2_BLANKS:" "},al=r=>r===!0?UL.WITH_2_BLANKS:r===!1?void 0:r;class mc{static toString(e,t){return zu(this,null,function*(){return yield this.compiler.compile(e,al(t)).generateAsync({type:"string",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBuffer(e,t){return zu(this,null,function*(){return yield this.compiler.compile(e,al(t)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBase64String(e,t){return zu(this,null,function*(){return yield this.compiler.compile(e,al(t)).generateAsync({type:"base64",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toBlob(e,t){return zu(this,null,function*(){return yield this.compiler.compile(e,al(t)).generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})})}static toStream(e,t){const n=new Qp.Stream;return this.compiler.compile(e,al(t)).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(A=>{n.emit("data",A),n.emit("end")}),n}}Qe(mc,"compiler",new IL);class ig{constructor(){Ee(this,"name","Word 导出器");Ee(this,"format","word");Ee(this,"extension","docx");Ee(this,"mimeType","application/vnd.openxmlformats-officedocument.wordprocessingml.document")}export(e,t){return je(this,null,function*(){const{title:n,sections:i}=Ld(e,{title:t==null?void 0:t.title}),A=[new tr({alignment:hi.CENTER,spacing:{after:400},children:[new Ir({text:n,bold:!0,size:36})]})],a=600,s=450,o=a/s;e.length>1&&A.push(new tr({spacing:{after:200},children:[new Ir({text:`导出时间:${new Date().toLocaleString("zh-CN")}`,size:22})]}),new tr({spacing:{after:400},children:[new Ir({text:`Bug 总数:${e.length}`,size:22})]}));for(const u of i){u.title&&A.push(new tr({heading:qp.HEADING_2,spacing:{before:400,after:200},children:[new Ir({text:u.title,bold:!0,size:28})]}));for(const h of u.blocks)switch(h.type){case"heading":A.push(new tr({heading:h.level===1?qp.HEADING_1:qp.HEADING_2,spacing:{before:400,after:200},children:[new Ir({text:h.text,bold:!0,size:28})]}));break;case"paragraph":A.push(new tr({spacing:{after:120},children:[new Ir({text:h.text,bold:h.bold,size:22})]}));break;case"table":A.push(this.createInfoTable(h.rows)),A.push(new tr({spacing:{after:200}}));break;case"image":yield this.addImageToChildren(A,h.url,h.caption,a,s,o);break;case"divider":A.push(new tr({spacing:{before:200,after:200},border:{bottom:{style:tc.SINGLE,size:6,color:"CCCCCC"}}}));break}}const l=new jb({sections:[{properties:{},children:A}]});return mc.toBlob(l)})}exportSingle(e,t){return je(this,null,function*(){return this.export([e],t)})}createInfoTable(e){return new H_({width:{size:100,type:Vs.PERCENTAGE},rows:e.map(t=>new V_({children:[new uc({width:{size:20,type:Vs.PERCENTAGE},shading:{fill:"F2F2F2"},margins:{top:80,bottom:80,left:120,right:120},children:[new tr({children:[new Ir({text:t.label,bold:!0,size:22})]})]}),new uc({width:{size:80,type:Vs.PERCENTAGE},margins:{top:80,bottom:80,left:120,right:120},children:[new tr({children:[new Ir({text:t.value,size:22})]})]})]}))})}addImageToChildren(s,o,l){return je(this,arguments,function*(e,t,n,i=600,A=450,a=4/3){if(n&&e.push(new tr({spacing:{before:200,after:100},children:[new Ir({text:n,size:22})]})),t.startsWith("data:image"))try{const u=t.split(",")[1],h=this.base64ToBuffer(u),f=yield this.getImageDimensions(t),c=f?f.width/f.height:a;let g,m;c>i/A?(g=i,m=Math.round(i/c)):(m=A,g=Math.round(A*c)),e.push(new tr({spacing:{after:300},children:[new Bb({data:h,transformation:{width:g,height:m}})]}))}catch(u){e.push(new tr({spacing:{after:200},children:[new Ir({text:"[截图加载失败]",size:22})]}))}else e.push(new tr({spacing:{after:200},children:[new Ir({text:t,size:22})]}))})}getImageDimensions(e){return new Promise(t=>{const n=new Image;n.onload=()=>t({width:n.naturalWidth,height:n.naturalHeight}),n.onerror=()=>t(null),n.src=e})}base64ToBuffer(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}}function Ht(r){"@babel/helpers - typeof";return Ht=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},Ht(r)}var wn=Uint8Array,Zn=Uint16Array,Ag=Int32Array,vc=new wn([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]),wc=new wn([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]),ag=new wn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Gb=function(r,e){for(var t=new Zn(31),n=0;n<31;++n)t[n]=e+=1<<r[n-1];for(var i=new Ag(t[30]),n=1;n<30;++n)for(var A=t[n];A<t[n+1];++A)i[A]=A-t[n]<<5|n;return{b:t,r:i}},Wb=Gb(vc,2),qb=Wb.b,sg=Wb.r;qb[28]=258,sg[258]=28;for(var Xb=Gb(wc,0),TL=Xb.b,Yb=Xb.r,og=new Zn(32768),lr=0;lr<32768;++lr){var JA=(lr&43690)>>1|(lr&21845)<<1;JA=(JA&52428)>>2|(JA&13107)<<2,JA=(JA&61680)>>4|(JA&3855)<<4,og[lr]=((JA&65280)>>8|(JA&255)<<8)>>1}for(var rA=function(r,e,t){for(var n=r.length,i=0,A=new Zn(e);i<n;++i)r[i]&&++A[r[i]-1];var a=new Zn(e);for(i=1;i<e;++i)a[i]=a[i-1]+A[i-1]<<1;var s;if(t){s=new Zn(1<<e);var o=15-e;for(i=0;i<n;++i)if(r[i])for(var l=i<<4|r[i],u=e-r[i],h=a[r[i]-1]++<<u,f=h|(1<<u)-1;h<=f;++h)s[og[h]>>o]=l}else for(s=new Zn(n),i=0;i<n;++i)r[i]&&(s[i]=og[a[r[i]-1]++]>>15-r[i]);return s},ZA=new wn(288),lr=0;lr<144;++lr)ZA[lr]=8;for(var lr=144;lr<256;++lr)ZA[lr]=9;for(var lr=256;lr<280;++lr)ZA[lr]=7;for(var lr=280;lr<288;++lr)ZA[lr]=8;for(var sl=new wn(32),lr=0;lr<32;++lr)sl[lr]=5;var _L=rA(ZA,9,0),LL=rA(ZA,9,1),QL=rA(sl,5,0),NL=rA(sl,5,1),lg=function(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},Ti=function(r,e,t){var n=e/8|0;return(r[n]|r[n+1]<<8)>>(e&7)&t},ug=function(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},cg=function(r){return(r+7)/8|0},Jb=function(r,e,t){return(t==null||t>r.length)&&(t=r.length),new wn(r.subarray(e,t))},RL=["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"],_i=function(r,e,t){var n=new Error(e||RL[r]);if(n.code=r,Error.captureStackTrace&&Error.captureStackTrace(n,_i),!t)throw n;return n},OL=function(r,e,t,n){var i=r.length,A=0;if(!i||e.f&&!e.l)return t||new wn(0);var a=!t,s=a||e.i!=2,o=e.i;a&&(t=new wn(i*3));var l=function(X){var ne=t.length;if(X>ne){var ve=new wn(Math.max(ne*2,X));ve.set(t),t=ve}},u=e.f||0,h=e.p||0,f=e.b||0,c=e.l,g=e.d,m=e.m,y=e.n,p=i*8;do{if(!c){u=Ti(r,h,1);var v=Ti(r,h+1,3);if(h+=3,v)if(v==1)c=LL,g=NL,m=9,y=5;else if(v==2){var M=Ti(r,h,31)+257,O=Ti(r,h+10,15)+4,P=M+Ti(r,h+5,31)+1;h+=14;for(var _=new wn(P),G=new wn(19),D=0;D<O;++D)G[ag[D]]=Ti(r,h+D*3,7);h+=O*3;for(var S=lg(G),K=(1<<S)-1,F=rA(G,S,1),D=0;D<P;){var ee=F[Ti(r,h,K)];h+=ee&15;var b=ee>>4;if(b<16)_[D++]=b;else{var Z=0,z=0;for(b==16?(z=3+Ti(r,h,3),h+=2,Z=_[D-1]):b==17?(z=3+Ti(r,h,7),h+=3):b==18&&(z=11+Ti(r,h,127),h+=7);z--;)_[D++]=Z}}var oe=_.subarray(0,M),W=_.subarray(M);m=lg(oe),y=lg(W),c=rA(oe,m,1),g=rA(W,y,1)}else _i(1);else{var b=cg(h)+4,I=r[b-4]|r[b-3]<<8,N=b+I;if(N>i){o&&_i(0);break}s&&l(f+I),t.set(r.subarray(b,N),f),e.b=f+=I,e.p=h=N*8,e.f=u;continue}if(h>p){o&&_i(0);break}}s&&l(f+131072);for(var ce=(1<<m)-1,ie=(1<<y)-1,x=h;;x=h){var Z=c[ug(r,h)&ce],H=Z>>4;if(h+=Z&15,h>p){o&&_i(0);break}if(Z||_i(2),H<256)t[f++]=H;else if(H==256){x=h,c=null;break}else{var V=H-254;if(H>264){var D=H-257,q=vc[D];V=Ti(r,h,(1<<q)-1)+qb[D],h+=q}var $=g[ug(r,h)&ie],L=$>>4;$||_i(3),h+=$&15;var W=TL[L];if(L>3){var q=wc[L];W+=ug(r,h)&(1<<q)-1,h+=q}if(h>p){o&&_i(0);break}s&&l(f+131072);var Q=f+V;if(f<W){var te=A-W,se=Math.min(W,Q);for(te+f<0&&_i(3);f<se;++f)t[f]=n[te+f]}for(;f<Q;++f)t[f]=t[f-W]}}e.l=c,e.p=x,e.b=f,e.f=u,c&&(u=1,e.m=m,e.d=g,e.n=y)}while(!u);return f!=t.length&&a?Jb(t,0,f):t.subarray(0,f)},xA=function(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>8},ol=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},hg=function(r,e){for(var t=[],n=0;n<r.length;++n)r[n]&&t.push({s:n,f:r[n]});var i=t.length,A=t.slice();if(!i)return{t:rB,l:0};if(i==1){var a=new wn(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(N,M){return N.f-M.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!=i-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 f=A[0].s,n=1;n<i;++n)A[n].s>f&&(f=A[n].s);var c=new Zn(f+1),g=fg(t[u-1],c,0);if(g>e){var n=0,m=0,y=g-e,p=1<<y;for(A.sort(function(M,O){return c[O.s]-c[M.s]||M.f-O.f});n<i;++n){var v=A[n].s;if(c[v]>e)m+=p-(1<<g-c[v]),c[v]=e;else break}for(m>>=y;m>0;){var b=A[n].s;c[b]<e?m-=1<<e-c[b]++-1:++n}for(;n>=0&&m;--n){var I=A[n].s;c[I]==e&&(--c[I],++m)}g=e}return{t:new wn(c),l:g}},fg=function(r,e,t){return r.s==-1?Math.max(fg(r.l,e,t+1),fg(r.r,e,t+1)):e[r.s]=t},Zb=function(r){for(var e=r.length;e&&!r[--e];);for(var t=new Zn(++e),n=0,i=r[0],A=1,a=function(o){t[n++]=o},s=1;s<=e;++s)if(r[s]==i&&s!=e)++A;else{if(!i&&A>2){for(;A>138;A-=138)a(32754);A>2&&(a(A>10?A-11<<5|28690:A-3<<5|12305),A=0)}else if(A>3){for(a(i),--A;A>6;A-=6)a(8304);A>2&&(a(A-3<<5|8208),A=0)}for(;A--;)a(i);A=1,i=r[s]}return{c:t.subarray(0,n),n:e}},ll=function(r,e){for(var t=0,n=0;n<e.length;++n)t+=r[n]*e[n];return t},eB=function(r,e,t){var n=t.length,i=cg(e+2);r[i]=n&255,r[i+1]=n>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var A=0;A<n;++A)r[i+A+4]=t[A];return(i+4+n)*8},tB=function(r,e,t,n,i,A,a,s,o,l,u){xA(e,u++,t),++i[256];for(var h=hg(i,15),f=h.t,c=h.l,g=hg(A,15),m=g.t,y=g.l,p=Zb(f),v=p.c,b=p.n,I=Zb(m),N=I.c,M=I.n,O=new Zn(19),P=0;P<v.length;++P)++O[v[P]&31];for(var P=0;P<N.length;++P)++O[N[P]&31];for(var _=hg(O,7),G=_.t,D=_.l,S=19;S>4&&!G[ag[S-1]];--S);var K=l+5<<3,F=ll(i,ZA)+ll(A,sl)+a,ee=ll(i,f)+ll(A,m)+a+14+3*S+ll(O,G)+2*O[16]+3*O[17]+7*O[18];if(o>=0&&K<=F&&K<=ee)return eB(e,u,r.subarray(o,o+l));var Z,z,oe,W;if(xA(e,u,1+(ee<F)),u+=2,ee<F){Z=rA(f,c,0),z=f,oe=rA(m,y,0),W=m;var ce=rA(G,D,0);xA(e,u,b-257),xA(e,u+5,M-1),xA(e,u+10,S-4),u+=14;for(var P=0;P<S;++P)xA(e,u+3*P,G[ag[P]]);u+=3*S;for(var ie=[v,N],x=0;x<2;++x)for(var H=ie[x],P=0;P<H.length;++P){var V=H[P]&31;xA(e,u,ce[V]),u+=G[V],V>15&&(xA(e,u,H[P]>>5&127),u+=H[P]>>12)}}else Z=_L,z=ZA,oe=QL,W=sl;for(var P=0;P<s;++P){var q=n[P];if(q>255){var V=q>>18&31;ol(e,u,Z[V+257]),u+=z[V+257],V>7&&(xA(e,u,q>>23&31),u+=vc[V]);var $=q&31;ol(e,u,oe[$]),u+=W[$],$>3&&(ol(e,u,q>>5&8191),u+=wc[$])}else ol(e,u,Z[q]),u+=z[q]}return ol(e,u,Z[256]),u+z[256]},kL=new Ag([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),rB=new wn(0),PL=function(r,e,t,n,i,A){var a=A.z||r.length,s=new wn(n+a+5*(1+Math.ceil(a/7e3))+i),o=s.subarray(n,s.length-i),l=A.l,u=(A.r||0)&7;if(e){u&&(o[0]=A.r>>3);for(var h=kL[e-1],f=h>>13,c=h&8191,g=(1<<t)-1,m=A.p||new Zn(32768),y=A.h||new Zn(g+1),p=Math.ceil(t/3),v=2*p,b=function(k){return(r[k]^r[k+1]<<p^r[k+2]<<v)&g},I=new Ag(25e3),N=new Zn(288),M=new Zn(32),O=0,P=0,_=A.i||0,G=0,D=A.w||0,S=0;_+2<a;++_){var K=b(_),F=_&32767,ee=y[K];if(m[F]=ee,y[K]=F,D<=_){var Z=a-_;if((O>7e3||G>24576)&&(Z>423||!l)){u=tB(r,o,0,I,N,M,P,G,S,_-S,u),G=O=P=0,S=_;for(var z=0;z<286;++z)N[z]=0;for(var z=0;z<30;++z)M[z]=0}var oe=2,W=0,ce=c,ie=F-ee&32767;if(Z>2&&K==b(_-ie))for(var x=Math.min(f,Z)-1,H=Math.min(32767,_),V=Math.min(258,Z);ie<=H&&--ce&&F!=ee;){if(r[_+oe]==r[_+oe-ie]){for(var q=0;q<V&&r[_+q]==r[_+q-ie];++q);if(q>oe){if(oe=q,W=ie,q>x)break;for(var $=Math.min(ie,q-2),L=0,z=0;z<$;++z){var Q=_-ie+z&32767,te=m[Q],se=Q-te&32767;se>L&&(L=se,ee=Q)}}}F=ee,ee=m[F],ie+=F-ee&32767}if(W){I[G++]=268435456|sg[oe]<<18|Yb[W];var X=sg[oe]&31,ne=Yb[W]&31;P+=vc[X]+wc[ne],++N[257+X],++M[ne],D=_+oe,++O}else I[G++]=r[_],++N[r[_]]}}for(_=Math.max(_,D);_<a;++_)I[G++]=r[_],++N[r[_]];u=tB(r,o,l,I,N,M,P,G,S,_-S,u),l||(A.r=u&7|o[u/8|0]<<3,u-=7,A.h=y,A.p=m,A.i=_,A.w=D)}else{for(var _=A.w||0;_<a+l;_+=65535){var ve=_+65535;ve>=a&&(o[u/8|0]=l,ve=a),u=eB(o,u+1,r.subarray(_,ve))}A.i=a}return Jb(s,0,n+cg(u)+i)},nB=function(){var r=1,e=0;return{p:function(t){for(var n=r,i=e,A=t.length|0,a=0;a!=A;){for(var s=Math.min(a+2655,A);a<s;++a)i+=n+=t[a];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}r=n,e=i},d:function(){return r%=65521,e%=65521,(r&255)<<24|(r&65280)<<8|(e&255)<<8|e>>8}}},DL=function(r,e,t,n,i){if(!i&&(i={l:1},e.dictionary)){var A=e.dictionary.subarray(-32768),a=new wn(A.length+r.length);a.set(A),a.set(r,A.length),r=a,i.w=A.length}return PL(r,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,n,i)},iB=function(r,e,t){for(;t;++e)r[e]=t,t>>>=8},HL=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 i=nB();i.p(e.dictionary),iB(r,2,i.d())}},ML=function(r,e){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&_i(6,"invalid zlib data"),(r[1]>>5&1)==1&&_i(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2};function dg(r,e){e||(e={});var t=nB();t.p(r);var n=DL(r,e,e.dictionary?6:2,4);return HL(n,e),iB(n,n.length-4,t.d()),n}function jL(r,e){return OL(r.subarray(ML(r),-4),{i:2},e,e)}var KL=typeof TextDecoder!="undefined"&&new TextDecoder,VL=0;try{KL.decode(rB,{stream:!0}),VL=1}catch(r){}/** @license
87
+ *
88
+ * jsPDF - PDF Document creation from JavaScript
89
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
90
+ * CommitID 00000000
91
+ *
92
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
93
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
94
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
95
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
96
+ * 2010 Aaron Spike, https://github.com/acspike
97
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
98
+ * 2012 Pablo Hess, https://github.com/pablohess
99
+ * 2012 Florian Jenett, https://github.com/fjenett
100
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
101
+ * 2013 Youssef Beddad, https://github.com/lifof
102
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
103
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
104
+ * 2013 Jeremy Morel, https://github.com/jmorel
105
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
106
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
107
+ * 2014 James Makes, https://github.com/dollaruw
108
+ * 2014 Diego Casorran, https://github.com/diegocr
109
+ * 2014 Steven Spungin, https://github.com/Flamenco
110
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
111
+ *
112
+ * Permission is hereby granted, free of charge, to any person obtaining
113
+ * a copy of this software and associated documentation files (the
114
+ * "Software"), to deal in the Software without restriction, including
115
+ * without limitation the rights to use, copy, modify, merge, publish,
116
+ * distribute, sublicense, and/or sell copies of the Software, and to
117
+ * permit persons to whom the Software is furnished to do so, subject to
118
+ * the following conditions:
119
+ *
120
+ * The above copyright notice and this permission notice shall be
121
+ * included in all copies or substantial portions of the Software.
122
+ *
123
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
124
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
125
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
126
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
127
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
128
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
129
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
130
+ *
131
+ * Contributor(s):
132
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
133
+ * kim3er, mfo, alnorth, Flamenco
134
+ */var mt=function(){return typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this}();function pg(){mt.console&&typeof mt.console.log=="function"&&mt.console.log.apply(mt.console,arguments)}var rr={log:pg,warn:function(r){mt.console&&(typeof mt.console.warn=="function"?mt.console.warn.apply(mt.console,arguments):pg.call(null,arguments))},error:function(r){mt.console&&(typeof mt.console.error=="function"?mt.console.error.apply(mt.console,arguments):pg(r))}};function gg(r,e,t){var n=new XMLHttpRequest;n.open("GET",r),n.responseType="blob",n.onload=function(){$a(n.response,e,t)},n.onerror=function(){rr.error("could not download file")},n.send()}function AB(r){var e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function yc(r){try{r.dispatchEvent(new MouseEvent("click"))}catch(t){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 ul,mg,$a=mt.saveAs||((typeof window=="undefined"?"undefined":Ht(window))!=="object"||window!==mt?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(r,e,t){var n=mt.URL||mt.webkitURL,i=document.createElement("a");e=e||r.name||"download",i.download=e,i.rel="noopener",typeof r=="string"?(i.href=r,i.origin!==location.origin?AB(i.href)?gg(r,e,t):yc(i,i.target="_blank"):yc(i)):(i.href=n.createObjectURL(r),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){yc(i)},0))}:"msSaveOrOpenBlob"in navigator?function(r,e,t){if(e=e||r.name||"download",typeof r=="string")if(AB(r))gg(r,e,t);else{var n=document.createElement("a");n.href=r,n.target="_blank",setTimeout(function(){yc(n)})}else navigator.msSaveOrOpenBlob(function(i,A){return A===void 0?A={autoBom:!1}:Ht(A)!=="object"&&(rr.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(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 gg(r,e,t);var i=r.type==="application/octet-stream",A=/constructor/i.test(mt.HTMLElement)||mt.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||i&&A)&&(typeof FileReader=="undefined"?"undefined":Ht(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=mt.URL||mt.webkitURL,l=o.createObjectURL(r);n?n.location=l:location.href=l,n=null,setTimeout(function(){o.revokeObjectURL(l)},4e4)}});/**
135
+ * A class to parse color values
136
+ * @author Stoyan Stefanov <sstoo@gmail.com>
137
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
138
+ * @license Use it if you like it
139
+ */function aB(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 i=t[n].re,A=t[n].process,a=i.exec(r);a&&(e=A(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}}/**
140
+ * @license
141
+ * Joseph Myers does not specify a particular license for his work.
142
+ *
143
+ * Author: Joseph Myers
144
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
145
+ *
146
+ * Modified by: Owen Leong
147
+ */function vg(r,e){var t=r[0],n=r[1],i=r[2],A=r[3];t=yn(t,n,i,A,e[0],7,-680876936),A=yn(A,t,n,i,e[1],12,-389564586),i=yn(i,A,t,n,e[2],17,606105819),n=yn(n,i,A,t,e[3],22,-1044525330),t=yn(t,n,i,A,e[4],7,-176418897),A=yn(A,t,n,i,e[5],12,1200080426),i=yn(i,A,t,n,e[6],17,-1473231341),n=yn(n,i,A,t,e[7],22,-45705983),t=yn(t,n,i,A,e[8],7,1770035416),A=yn(A,t,n,i,e[9],12,-1958414417),i=yn(i,A,t,n,e[10],17,-42063),n=yn(n,i,A,t,e[11],22,-1990404162),t=yn(t,n,i,A,e[12],7,1804603682),A=yn(A,t,n,i,e[13],12,-40341101),i=yn(i,A,t,n,e[14],17,-1502002290),t=bn(t,n=yn(n,i,A,t,e[15],22,1236535329),i,A,e[1],5,-165796510),A=bn(A,t,n,i,e[6],9,-1069501632),i=bn(i,A,t,n,e[11],14,643717713),n=bn(n,i,A,t,e[0],20,-373897302),t=bn(t,n,i,A,e[5],5,-701558691),A=bn(A,t,n,i,e[10],9,38016083),i=bn(i,A,t,n,e[15],14,-660478335),n=bn(n,i,A,t,e[4],20,-405537848),t=bn(t,n,i,A,e[9],5,568446438),A=bn(A,t,n,i,e[14],9,-1019803690),i=bn(i,A,t,n,e[3],14,-187363961),n=bn(n,i,A,t,e[8],20,1163531501),t=bn(t,n,i,A,e[13],5,-1444681467),A=bn(A,t,n,i,e[2],9,-51403784),i=bn(i,A,t,n,e[7],14,1735328473),t=Bn(t,n=bn(n,i,A,t,e[12],20,-1926607734),i,A,e[5],4,-378558),A=Bn(A,t,n,i,e[8],11,-2022574463),i=Bn(i,A,t,n,e[11],16,1839030562),n=Bn(n,i,A,t,e[14],23,-35309556),t=Bn(t,n,i,A,e[1],4,-1530992060),A=Bn(A,t,n,i,e[4],11,1272893353),i=Bn(i,A,t,n,e[7],16,-155497632),n=Bn(n,i,A,t,e[10],23,-1094730640),t=Bn(t,n,i,A,e[13],4,681279174),A=Bn(A,t,n,i,e[0],11,-358537222),i=Bn(i,A,t,n,e[3],16,-722521979),n=Bn(n,i,A,t,e[6],23,76029189),t=Bn(t,n,i,A,e[9],4,-640364487),A=Bn(A,t,n,i,e[12],11,-421815835),i=Bn(i,A,t,n,e[15],16,530742520),t=xn(t,n=Bn(n,i,A,t,e[2],23,-995338651),i,A,e[0],6,-198630844),A=xn(A,t,n,i,e[7],10,1126891415),i=xn(i,A,t,n,e[14],15,-1416354905),n=xn(n,i,A,t,e[5],21,-57434055),t=xn(t,n,i,A,e[12],6,1700485571),A=xn(A,t,n,i,e[3],10,-1894986606),i=xn(i,A,t,n,e[10],15,-1051523),n=xn(n,i,A,t,e[1],21,-2054922799),t=xn(t,n,i,A,e[8],6,1873313359),A=xn(A,t,n,i,e[15],10,-30611744),i=xn(i,A,t,n,e[6],15,-1560198380),n=xn(n,i,A,t,e[13],21,1309151649),t=xn(t,n,i,A,e[4],6,-145523070),A=xn(A,t,n,i,e[11],10,-1120210379),i=xn(i,A,t,n,e[2],15,718787259),n=xn(n,i,A,t,e[9],21,-343485551),r[0]=ea(t,r[0]),r[1]=ea(n,r[1]),r[2]=ea(i,r[2]),r[3]=ea(A,r[3])}function bc(r,e,t,n,i,A){return e=ea(ea(e,r),ea(n,A)),ea(e<<i|e>>>32-i,t)}function yn(r,e,t,n,i,A,a){return bc(e&t|~e&n,r,e,i,A,a)}function bn(r,e,t,n,i,A,a){return bc(e&n|t&~n,r,e,i,A,a)}function Bn(r,e,t,n,i,A,a){return bc(e^t^n,r,e,i,A,a)}function xn(r,e,t,n,i,A,a){return bc(t^(e|~n),r,e,i,A,a)}function sB(r){var e,t=r.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=r.length;e+=64)vg(n,zL(r.substring(e-64,e)));r=r.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<r.length;e++)i[e>>2]|=r.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(vg(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,vg(n,i),n}function zL(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}ul=mt.atob.bind(mt),mg=mt.btoa.bind(mt);var oB="0123456789abcdef".split("");function $L(r){for(var e="",t=0;t<4;t++)e+=oB[r>>8*t+4&15]+oB[r>>8*t&15];return e}function GL(r){return String.fromCharCode((255&r)>>0,(65280&r)>>8,(16711680&r)>>16,(4278190080&r)>>24)}function wg(r){return sB(r).map(GL).join("")}var WL=function(r){for(var e=0;e<r.length;e++)r[e]=$L(r[e]);return r.join("")}(sB("hello"))!="5d41402abc4b2a76b9719d911017c592";function ea(r,e){if(WL){var t=(65535&r)+(65535&e);return(r>>16)+(e>>16)+(t>>16)<<16|65535&t}return r+e&4294967295}/**
148
+ * @license
149
+ * FPDF is released under a permissive license: there is no usage restriction.
150
+ * You may embed it freely in your application (commercial or not), with or
151
+ * without modifications.
152
+ *
153
+ * Reference: http://www.fpdf.org/en/script/script37.php
154
+ */function yg(r,e){var t,n,i,A;if(r!==t){for(var a=(i=r,A=1+(256/r.length>>0),new Array(A+1).join(i)),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,f=0,c=0,g="";for(o=0;o<h;o++)c=(c+(u=s[f=(f+1)%256]))%256,s[f]=s[c],s[c]=u,a=s[(s[f]+s[c])%256],g+=String.fromCharCode(e.charCodeAt(o)^a);return g}/**
155
+ * @license
156
+ * Licensed under the MIT License.
157
+ * http://opensource.org/licenses/mit-license
158
+ * Author: Owen Leong (@owenl131)
159
+ * Date: 15 Oct 2020
160
+ * References:
161
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
162
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
163
+ * http://www.fpdf.org/en/script/script37.php
164
+ */var lB={print:4,modify:8,copy:16,"annot-forms":32};function Gs(r,e,t,n){this.v=1,this.r=2;var i=192;r.forEach(function(s){if(lB.perm!==void 0)throw new Error("Invalid permission: "+s);i+=lB[s]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var A=(e+this.padding).substr(0,32),a=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(A,a),this.P=-(1+(255^i)),this.encryptionKey=wg(A+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=yg(this.encryptionKey,this.padding)}function Ws(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 i=r.charCodeAt(n);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?e+="#"+("0"+i.toString(16)).slice(-2):e+=r[n]}return e}function uB(r){if(Ht(r)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,typeof t!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var A=Math.random().toString(35);return e[t][A]=[n,!!i],A},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),i=[];for(var A in e[t]){var a=e[t][A];try{a[0].apply(r,n)}catch(s){mt.console&&rr.error("jsPDF PubSub Error",s.message,s)}a[1]&&i.push(A)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function cl(r){if(!(this instanceof cl))return new cl(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 cB(r,e){this.gState=r,this.matrix=e,this.id="",this.objectNumber=-1}function ta(r,e,t,n,i){if(!(this instanceof ta))return new ta(r,e,t,n,i);this.type=r==="axial"?2:3,this.coords=e,this.colors=t,cB.call(this,n,i)}function Ga(r,e,t,n,i){if(!(this instanceof Ga))return new Ga(r,e,t,n,i);this.boundingBox=r,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,cB.call(this,n,i)}function pt(r){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],A=arguments[3],a=[],s=1,o=16,l="S",u=null;Ht(r=r||{})==="object"&&(t=r.orientation,n=r.unit||n,i=r.format||i,A=r.compress||r.compressPdf||A,(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||(A===!0?["FlateEncode"]:a),n=n||"mm",t=(""+(t||"P")).toLowerCase();var h=r.putOnlyUsedFonts||!1,f={},c={internal:{},__private__:{}};c.__private__.PubSub=uB;var g="1.3",m=c.__private__.getPdfVersion=function(){return g};c.__private__.setPdfVersion=function(E){g=E};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 p=c.__private__.getPageFormat=function(E){return y[E]};i=i||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},b=v.COMPAT;function I(){this.saveGraphicsState(),U(new dt(qe,0,0,-qe,0,Ca()*qe).toString()+" cm"),this.setFontSize(this.getFontSize()/qe),l="n",b=v.ADVANCED}function N(){this.restoreGraphicsState(),l="S",b=v.COMPAT}var M=c.__private__.combineFontStyleAndFontWeight=function(E,J){if(E=="bold"&&J=="normal"||E=="bold"&&J==400||E=="normal"&&J=="italic"||E=="bold"&&J=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return J&&(E=J==400||J==="normal"?E==="italic"?"italic":"normal":J!=700&&J!=="bold"||E!=="normal"?(J==700?"bold":J)+""+E:"bold"),E};c.advancedAPI=function(E){var J=b===v.COMPAT;return J&&I.call(this),typeof E!="function"||(E(this),J&&N.call(this)),this},c.compatAPI=function(E){var J=b===v.ADVANCED;return J&&N.call(this),typeof E!="function"||(E(this),J&&I.call(this)),this},c.isAdvancedAPI=function(){return b===v.ADVANCED};var O,P=function(E){if(b!==v.ADVANCED)throw new Error(E+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},_=c.roundToPrecision=c.__private__.roundToPrecision=function(E,J){var me=e||J;if(isNaN(E)||isNaN(me))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return E.toFixed(me).replace(/0+$/,"")};O=c.hpf=c.__private__.hpf=typeof o=="number"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return _(E,o)}:o==="smart"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return _(E,E>-1&&E<1?16:5)}:function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return _(E,16)};var G=c.f2=c.__private__.f2=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f2");return _(E,2)},D=c.__private__.f3=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f3");return _(E,3)},S=c.scale=c.__private__.scale=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.scale");return b===v.COMPAT?E*qe:b===v.ADVANCED?E:void 0},K=function(E){return b===v.COMPAT?Ca()-E:b===v.ADVANCED?E:void 0},F=function(E){return S(K(E))};c.__private__.setPrecision=c.setPrecision=function(E){typeof parseInt(E,10)=="number"&&(e=parseInt(E,10))};var ee,Z="00000000000000000000000000000000",z=c.__private__.getFileId=function(){return Z},oe=c.__private__.setFileId=function(E){return Z=E!==void 0&&/^[a-fA-F0-9]{32}$/.test(E)?E.toUpperCase():Z.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(In=new Gs(u.userPermissions,u.userPassword,u.ownerPassword,Z)),Z};c.setFileId=function(E){return oe(E),this},c.getFileId=function(){return z()};var W=c.__private__.convertDateToPDFDate=function(E){var J=E.getTimezoneOffset(),me=J<0?"+":"-",we=Math.floor(Math.abs(J/60)),Fe=Math.abs(J%60),Oe=[me,V(we),"'",V(Fe),"'"].join("");return["D:",E.getFullYear(),V(E.getMonth()+1),V(E.getDate()),V(E.getHours()),V(E.getMinutes()),V(E.getSeconds()),Oe].join("")},ce=c.__private__.convertPDFDateToDate=function(E){var J=parseInt(E.substr(2,4),10),me=parseInt(E.substr(6,2),10)-1,we=parseInt(E.substr(8,2),10),Fe=parseInt(E.substr(10,2),10),Oe=parseInt(E.substr(12,2),10),$e=parseInt(E.substr(14,2),10);return new Date(J,me,we,Fe,Oe,$e,0)},ie=c.__private__.setCreationDate=function(E){var J;if(E===void 0&&(E=new Date),E instanceof Date)J=W(E);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(E))throw new Error("Invalid argument passed to jsPDF.setCreationDate");J=E}return ee=J},x=c.__private__.getCreationDate=function(E){var J=ee;return E==="jsDate"&&(J=ce(ee)),J};c.setCreationDate=function(E){return ie(E),this},c.getCreationDate=function(E){return x(E)};var H,V=c.__private__.padd2=function(E){return("0"+parseInt(E)).slice(-2)},q=c.__private__.padd2Hex=function(E){return("00"+(E=E.toString())).substr(E.length)},$=0,L=[],Q=[],te=0,se=[],X=[],ne=!1,ve=Q,k=function(){$=0,te=0,Q=[],L=[],se=[],bi=Pt(),Rn=Pt()};c.__private__.setCustomOutputDestination=function(E){ne=!0,ve=E};var de=function(E){ne||(ve=E)};c.__private__.resetCustomOutputDestination=function(){ne=!1,ve=Q};var U=c.__private__.out=function(E){return E=E.toString(),te+=E.length+1,ve.push(E),ve},B=c.__private__.write=function(E){return U(arguments.length===1?E.toString():Array.prototype.join.call(arguments," "))},C=c.__private__.getArrayBuffer=function(E){for(var J=E.length,me=new ArrayBuffer(J),we=new Uint8Array(me);J--;)we[J]=E.charCodeAt(J);return me},R=[["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 R};var ae=r.fontSize||16;c.__private__.setFontSize=c.setFontSize=function(E){return ae=b===v.ADVANCED?E/qe:E,this};var fe,ue=c.__private__.getFontSize=c.getFontSize=function(){return b===v.COMPAT?ae:ae*qe},xe=r.R2L||!1;c.__private__.setR2L=c.setR2L=function(E){return xe=E,this},c.__private__.getR2L=c.getR2L=function(){return xe};var Ue,Ie=c.__private__.setZoomMode=function(E){var J=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(E))fe=E;else if(isNaN(E)){if(J.indexOf(E)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+E+'" is not recognized.');fe=E}else fe=parseInt(E,10)};c.__private__.getZoomMode=function(){return fe};var ke,ze=c.__private__.setPageMode=function(E){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(E)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+E+'" is not recognized.');Ue=E};c.__private__.getPageMode=function(){return Ue};var Xe=c.__private__.setLayoutMode=function(E){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(E)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+E+'" is not recognized.');ke=E};c.__private__.getLayoutMode=function(){return ke},c.__private__.setDisplayMode=c.setDisplayMode=function(E,J,me){return Ie(E),Xe(J),ze(me),this};var rt={title:"",subject:"",author:"",keywords:"",creator:""};c.__private__.getDocumentProperty=function(E){if(Object.keys(rt).indexOf(E)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return rt[E]},c.__private__.getDocumentProperties=function(){return rt},c.__private__.setDocumentProperties=c.setProperties=c.setDocumentProperties=function(E){for(var J in rt)rt.hasOwnProperty(J)&&E[J]&&(rt[J]=E[J]);return this},c.__private__.setDocumentProperty=function(E,J){if(Object.keys(rt).indexOf(E)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return rt[E]=J};var ft,qe,jt,ut,fr,It={},vt={},dr=[],Ut={},en={},Kt={},ar={},Mt=null,Wt=0,ot=[],Lt=new uB(c),PA=r.hotfixes||[],Vr={},zn={},ni=[],dt=function E(J,me,we,Fe,Oe,$e){if(!(this instanceof E))return new E(J,me,we,Fe,Oe,$e);isNaN(J)&&(J=1),isNaN(me)&&(me=0),isNaN(we)&&(we=0),isNaN(Fe)&&(Fe=1),isNaN(Oe)&&(Oe=0),isNaN($e)&&($e=0),this._matrix=[J,me,we,Fe,Oe,$e]};Object.defineProperty(dt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(dt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(dt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(dt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(dt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(dt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(dt.prototype,"a",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(dt.prototype,"b",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(dt.prototype,"c",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(dt.prototype,"d",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(dt.prototype,"e",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(dt.prototype,"f",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(dt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(dt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(dt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(dt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),dt.prototype.join=function(E){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(E)},dt.prototype.multiply=function(E){var J=E.sx*this.sx+E.shy*this.shx,me=E.sx*this.shy+E.shy*this.sy,we=E.shx*this.sx+E.sy*this.shx,Fe=E.shx*this.shy+E.sy*this.sy,Oe=E.tx*this.sx+E.ty*this.shx+this.tx,$e=E.tx*this.shy+E.ty*this.sy+this.ty;return new dt(J,me,we,Fe,Oe,$e)},dt.prototype.decompose=function(){var E=this.sx,J=this.shy,me=this.shx,we=this.sy,Fe=this.tx,Oe=this.ty,$e=Math.sqrt(E*E+J*J),nt=(E/=$e)*me+(J/=$e)*we;me-=E*nt,we-=J*nt;var ht=Math.sqrt(me*me+we*we);return nt/=ht,E*(we/=ht)<J*(me/=ht)&&(E=-E,J=-J,nt=-nt,$e=-$e),{scale:new dt($e,0,0,ht,0,0),translate:new dt(1,0,0,1,Fe,Oe),rotate:new dt(E,J,-J,E,0,0),skew:new dt(1,0,nt,1,0,0)}},dt.prototype.toString=function(E){return this.join(" ")},dt.prototype.inversed=function(){var E=this.sx,J=this.shy,me=this.shx,we=this.sy,Fe=this.tx,Oe=this.ty,$e=1/(E*we-J*me),nt=we*$e,ht=-J*$e,Ct=-me*$e,Bt=E*$e;return new dt(nt,ht,Ct,Bt,-nt*Fe-Ct*Oe,-ht*Fe-Bt*Oe)},dt.prototype.applyToPoint=function(E){var J=E.x*this.sx+E.y*this.shx+this.tx,me=E.x*this.shy+E.y*this.sy+this.ty;return new No(J,me)},dt.prototype.applyToRectangle=function(E){var J=this.applyToPoint(E),me=this.applyToPoint(new No(E.x+E.w,E.y+E.h));return new mu(J.x,J.y,me.x-J.x,me.y-J.y)},dt.prototype.clone=function(){var E=this.sx,J=this.shy,me=this.shx,we=this.sy,Fe=this.tx,Oe=this.ty;return new dt(E,J,me,we,Fe,Oe)},c.Matrix=dt;var ii=c.matrixMult=function(E,J){return J.multiply(E)},Nn=new dt(1,0,0,1,0,0);c.unitMatrix=c.identityMatrix=Nn;var tn=function(E,J){if(!en[E]){var me=(J instanceof ta?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);J.id=me,en[E]=me,Ut[me]=J,Lt.publish("addPattern",J)}};c.ShadingPattern=ta,c.TilingPattern=Ga,c.addShadingPattern=function(E,J){return P("addShadingPattern()"),tn(E,J),this},c.beginTilingPattern=function(E){P("beginTilingPattern()"),qf(E.boundingBox[0],E.boundingBox[1],E.boundingBox[2]-E.boundingBox[0],E.boundingBox[3]-E.boundingBox[1],E.matrix)},c.endTilingPattern=function(E,J){P("endTilingPattern()"),J.stream=X[H].join(`
165
+ `),tn(E,J),Lt.publish("endTilingPattern",J),ni.pop().restore()};var Rr=c.__private__.newObject=function(){var E=Pt();return rn(E,!0),E},Pt=c.__private__.newObjectDeferred=function(){return $++,L[$]=function(){return te},$},rn=function(E,J){return J=typeof J=="boolean"&&J,L[E]=te,J&&U(E+" 0 obj"),E},DA=c.__private__.newAdditionalObject=function(){var E={objId:Pt(),content:""};return se.push(E),E},bi=Pt(),Rn=Pt(),fn=c.__private__.decodeColorString=function(E){var J=E.split(" ");if(J.length!==2||J[1]!=="g"&&J[1]!=="G")J.length===5&&(J[4]==="k"||J[4]==="K")&&(J=[(1-J[0])*(1-J[3]),(1-J[1])*(1-J[3]),(1-J[2])*(1-J[3]),"r"]);else{var me=parseFloat(J[0]);J=[me,me,me,"r"]}for(var we="#",Fe=0;Fe<3;Fe++)we+=("0"+Math.floor(255*parseFloat(J[Fe])).toString(16)).slice(-2);return we},Or=c.__private__.encodeColorString=function(E){var J;typeof E=="string"&&(E={ch1:E});var me=E.ch1,we=E.ch2,Fe=E.ch3,Oe=E.ch4,$e=E.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof me=="string"&&me.charAt(0)!=="#"){var nt=new aB(me);if(nt.ok)me=nt.toHex();else if(!/^\d*\.?\d*$/.test(me))throw new Error('Invalid color "'+me+'" passed to jsPDF.encodeColorString.')}if(typeof me=="string"&&/^#[0-9A-Fa-f]{3}$/.test(me)&&(me="#"+me[1]+me[1]+me[2]+me[2]+me[3]+me[3]),typeof me=="string"&&/^#[0-9A-Fa-f]{6}$/.test(me)){var ht=parseInt(me.substr(1),16);me=ht>>16&255,we=ht>>8&255,Fe=255&ht}if(we===void 0||Oe===void 0&&me===we&&we===Fe)if(typeof me=="string")J=me+" "+$e[0];else switch(E.precision){case 2:J=G(me/255)+" "+$e[0];break;case 3:default:J=D(me/255)+" "+$e[0]}else if(Oe===void 0||Ht(Oe)==="object"){if(Oe&&!isNaN(Oe.a)&&Oe.a===0)return J=["1.","1.","1.",$e[1]].join(" ");if(typeof me=="string")J=[me,we,Fe,$e[1]].join(" ");else switch(E.precision){case 2:J=[G(me/255),G(we/255),G(Fe/255),$e[1]].join(" ");break;default:case 3:J=[D(me/255),D(we/255),D(Fe/255),$e[1]].join(" ")}}else if(typeof me=="string")J=[me,we,Fe,Oe,$e[2]].join(" ");else switch(E.precision){case 2:J=[G(me),G(we),G(Fe),G(Oe),$e[2]].join(" ");break;case 3:default:J=[D(me),D(we),D(Fe),D(Oe),$e[2]].join(" ")}return J},Ai=c.__private__.getFilters=function(){return a},On=c.__private__.putStream=function(E){var J=(E=E||{}).data||"",me=E.filters||Ai(),we=E.alreadyAppliedFilters||[],Fe=E.addLength1||!1,Oe=J.length,$e=E.objectId,nt=function(Un){return Un};if(u!==null&&$e===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(nt=In.encryptor($e,0));var ht={};me===!0&&(me=["FlateEncode"]);var Ct=E.additionalKeyValues||[],Bt=(ht=pt.API.processDataByFilters!==void 0?pt.API.processDataByFilters(J,me):{data:J,reverseChain:[]}).reverseChain+(Array.isArray(we)?we.join(" "):we.toString());if(ht.data.length!==0&&(Ct.push({key:"Length",value:ht.data.length}),Fe===!0&&Ct.push({key:"Length1",value:Oe})),Bt.length!=0)if(Bt.split("/").length-1==1)Ct.push({key:"Filter",value:Bt});else{Ct.push({key:"Filter",value:"["+Bt+"]"});for(var kt=0;kt<Ct.length;kt+=1)if(Ct[kt].key==="DecodeParms"){for(var mr=[],Er=0;Er<ht.reverseChain.split("/").length-1;Er+=1)mr.push("null");mr.push(Ct[kt].value),Ct[kt].value="["+mr.join(" ")+"]"}}U("<<");for(var zr=0;zr<Ct.length;zr++)U("/"+Ct[zr].key+" "+Ct[zr].value);U(">>"),ht.data.length!==0&&(U("stream"),U(nt(ht.data)),U("endstream"))},ai=c.__private__.putPage=function(E){var J=E.number,me=E.data,we=E.objId,Fe=E.contentsObjId;rn(we,!0),U("<</Type /Page"),U("/Parent "+E.rootDictionaryObjId+" 0 R"),U("/Resources "+E.resourceDictionaryObjId+" 0 R"),U("/MediaBox ["+parseFloat(O(E.mediaBox.bottomLeftX))+" "+parseFloat(O(E.mediaBox.bottomLeftY))+" "+O(E.mediaBox.topRightX)+" "+O(E.mediaBox.topRightY)+"]"),E.cropBox!==null&&U("/CropBox ["+O(E.cropBox.bottomLeftX)+" "+O(E.cropBox.bottomLeftY)+" "+O(E.cropBox.topRightX)+" "+O(E.cropBox.topRightY)+"]"),E.bleedBox!==null&&U("/BleedBox ["+O(E.bleedBox.bottomLeftX)+" "+O(E.bleedBox.bottomLeftY)+" "+O(E.bleedBox.topRightX)+" "+O(E.bleedBox.topRightY)+"]"),E.trimBox!==null&&U("/TrimBox ["+O(E.trimBox.bottomLeftX)+" "+O(E.trimBox.bottomLeftY)+" "+O(E.trimBox.topRightX)+" "+O(E.trimBox.topRightY)+"]"),E.artBox!==null&&U("/ArtBox ["+O(E.artBox.bottomLeftX)+" "+O(E.artBox.bottomLeftY)+" "+O(E.artBox.topRightX)+" "+O(E.artBox.topRightY)+"]"),typeof E.userUnit=="number"&&E.userUnit!==1&&U("/UserUnit "+E.userUnit),Lt.publish("putPage",{objId:we,pageContext:ot[J],pageNumber:J,page:me}),U("/Contents "+Fe+" 0 R"),U(">>"),U("endobj");var Oe=me.join(`
166
+ `);return b===v.ADVANCED&&(Oe+=`
167
+ Q`),rn(Fe,!0),On({data:Oe,filters:Ai(),objectId:Fe}),U("endobj"),we},cA=c.__private__.putPages=function(){var E,J,me=[];for(E=1;E<=Wt;E++)ot[E].objId=Pt(),ot[E].contentsObjId=Pt();for(E=1;E<=Wt;E++)me.push(ai({number:E,data:X[E],objId:ot[E].objId,contentsObjId:ot[E].contentsObjId,mediaBox:ot[E].mediaBox,cropBox:ot[E].cropBox,bleedBox:ot[E].bleedBox,trimBox:ot[E].trimBox,artBox:ot[E].artBox,userUnit:ot[E].userUnit,rootDictionaryObjId:bi,resourceDictionaryObjId:Rn}));rn(bi,!0),U("<</Type /Pages");var we="/Kids [";for(J=0;J<Wt;J++)we+=me[J]+" 0 R ";U(we+"]"),U("/Count "+Wt),U(">>"),U("endobj"),Lt.publish("postPutPages")},ba=function(E){Lt.publish("putFont",{font:E,out:U,newObject:Rr,putStream:On}),E.isAlreadyPutted!==!0&&(E.objectNumber=Rr(),U("<<"),U("/Type /Font"),U("/BaseFont /"+Ws(E.postScriptName)),U("/Subtype /Type1"),typeof E.encoding=="string"&&U("/Encoding /"+E.encoding),U("/FirstChar 32"),U("/LastChar 255"),U(">>"),U("endobj"))},lt=function(){for(var E in It)It.hasOwnProperty(E)&&(h===!1||h===!0&&f.hasOwnProperty(E))&&ba(It[E])},ye=function(E){E.objectNumber=Rr();var J=[];J.push({key:"Type",value:"/XObject"}),J.push({key:"Subtype",value:"/Form"}),J.push({key:"BBox",value:"["+[O(E.x),O(E.y),O(E.x+E.width),O(E.y+E.height)].join(" ")+"]"}),J.push({key:"Matrix",value:"["+E.matrix.toString()+"]"});var me=E.pages[1].join(`
168
+ `);On({data:me,additionalKeyValues:J,objectId:E.objectNumber}),U("endobj")},Ge=function(){for(var E in Vr)Vr.hasOwnProperty(E)&&ye(Vr[E])},Ye=function(E,J){var me,we=[],Fe=1/(J-1);for(me=0;me<1;me+=Fe)we.push(me);if(we.push(1),E[0].offset!=0){var Oe={offset:0,color:E[0].color};E.unshift(Oe)}if(E[E.length-1].offset!=1){var $e={offset:1,color:E[E.length-1].color};E.push($e)}for(var nt="",ht=0,Ct=0;Ct<we.length;Ct++){for(me=we[Ct];me>E[ht+1].offset;)ht++;var Bt=E[ht].offset,kt=(me-Bt)/(E[ht+1].offset-Bt),mr=E[ht].color,Er=E[ht+1].color;nt+=q(Math.round((1-kt)*mr[0]+kt*Er[0]).toString(16))+q(Math.round((1-kt)*mr[1]+kt*Er[1]).toString(16))+q(Math.round((1-kt)*mr[2]+kt*Er[2]).toString(16))}return nt.trim()},Ot=function(E,J){J||(J=21);var me=Rr(),we=Ye(E.colors,J),Fe=[];Fe.push({key:"FunctionType",value:"0"}),Fe.push({key:"Domain",value:"[0.0 1.0]"}),Fe.push({key:"Size",value:"["+J+"]"}),Fe.push({key:"BitsPerSample",value:"8"}),Fe.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Fe.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),On({data:we,additionalKeyValues:Fe,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:me}),U("endobj"),E.objectNumber=Rr(),U("<< /ShadingType "+E.type),U("/ColorSpace /DeviceRGB");var Oe="/Coords ["+O(parseFloat(E.coords[0]))+" "+O(parseFloat(E.coords[1]))+" ";E.type===2?Oe+=O(parseFloat(E.coords[2]))+" "+O(parseFloat(E.coords[3])):Oe+=O(parseFloat(E.coords[2]))+" "+O(parseFloat(E.coords[3]))+" "+O(parseFloat(E.coords[4]))+" "+O(parseFloat(E.coords[5])),U(Oe+="]"),E.matrix&&U("/Matrix ["+E.matrix.toString()+"]"),U("/Function "+me+" 0 R"),U("/Extend [true true]"),U(">>"),U("endobj")},nn=function(E,J){var me=Pt(),we=Rr();J.push({resourcesOid:me,objectOid:we}),E.objectNumber=we;var Fe=[];Fe.push({key:"Type",value:"/Pattern"}),Fe.push({key:"PatternType",value:"1"}),Fe.push({key:"PaintType",value:"1"}),Fe.push({key:"TilingType",value:"1"}),Fe.push({key:"BBox",value:"["+E.boundingBox.map(O).join(" ")+"]"}),Fe.push({key:"XStep",value:O(E.xStep)}),Fe.push({key:"YStep",value:O(E.yStep)}),Fe.push({key:"Resources",value:me+" 0 R"}),E.matrix&&Fe.push({key:"Matrix",value:"["+E.matrix.toString()+"]"}),On({data:E.stream,additionalKeyValues:Fe,objectId:E.objectNumber}),U("endobj")},gr=function(E){var J;for(J in Ut)Ut.hasOwnProperty(J)&&(Ut[J]instanceof ta?Ot(Ut[J]):Ut[J]instanceof Ga&&nn(Ut[J],E))},Cr=function(E){for(var J in E.objectNumber=Rr(),U("<<"),E)switch(J){case"opacity":U("/ca "+G(E[J]));break;case"stroke-opacity":U("/CA "+G(E[J]))}U(">>"),U("endobj")},zi=function(){var E;for(E in Kt)Kt.hasOwnProperty(E)&&Cr(Kt[E])},ur=function(){for(var E in U("/XObject <<"),Vr)Vr.hasOwnProperty(E)&&Vr[E].objectNumber>=0&&U("/"+E+" "+Vr[E].objectNumber+" 0 R");Lt.publish("putXobjectDict"),U(">>")},ms=function(){In.oid=Rr(),U("<<"),U("/Filter /Standard"),U("/V "+In.v),U("/R "+In.r),U("/U <"+In.toHexString(In.U)+">"),U("/O <"+In.toHexString(In.O)+">"),U("/P "+In.P),U(">>"),U("endobj")},vs=function(){for(var E in U("/Font <<"),It)It.hasOwnProperty(E)&&(h===!1||h===!0&&f.hasOwnProperty(E))&&U("/"+E+" "+It[E].objectNumber+" 0 R");U(">>")},Qf=function(){if(Object.keys(Ut).length>0){for(var E in U("/Shading <<"),Ut)Ut.hasOwnProperty(E)&&Ut[E]instanceof ta&&Ut[E].objectNumber>=0&&U("/"+E+" "+Ut[E].objectNumber+" 0 R");Lt.publish("putShadingPatternDict"),U(">>")}},Fo=function(E){if(Object.keys(Ut).length>0){for(var J in U("/Pattern <<"),Ut)Ut.hasOwnProperty(J)&&Ut[J]instanceof c.TilingPattern&&Ut[J].objectNumber>=0&&Ut[J].objectNumber<E&&U("/"+J+" "+Ut[J].objectNumber+" 0 R");Lt.publish("putTilingPatternDict"),U(">>")}},aw=function(){if(Object.keys(Kt).length>0){var E;for(E in U("/ExtGState <<"),Kt)Kt.hasOwnProperty(E)&&Kt[E].objectNumber>=0&&U("/"+E+" "+Kt[E].objectNumber+" 0 R");Lt.publish("putGStateDict"),U(">>")}},kr=function(E){rn(E.resourcesOid,!0),U("<<"),U("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),vs(),Qf(),Fo(E.objectOid),aw(),ur(),U(">>"),U("endobj")},Nf=function(){var E=[];lt(),zi(),Ge(),gr(E),Lt.publish("putResources"),E.forEach(kr),kr({resourcesOid:Rn,objectOid:Number.MAX_SAFE_INTEGER}),Lt.publish("postPutResources")},Rf=function(){Lt.publish("putAdditionalObjects");for(var E=0;E<se.length;E++){var J=se[E];rn(J.objId,!0),U(J.content),U("endobj")}Lt.publish("postPutAdditionalObjects")},Of=function(E){vt[E.fontName]=vt[E.fontName]||{},vt[E.fontName][E.fontStyle]=E.id},ou=function(E,J,me,we,Fe){var Oe={id:"F"+(Object.keys(It).length+1).toString(10),postScriptName:E,fontName:J,fontStyle:me,encoding:we,isStandardFont:Fe||!1,metadata:{}};return Lt.publish("addFont",{font:Oe,instance:this}),It[Oe.id]=Oe,Of(Oe),Oe.id},sw=function(E){for(var J=0,me=R.length;J<me;J++){var we=ou.call(this,E[J][0],E[J][1],E[J][2],R[J][3],!0);h===!1&&(f[we]=!0);var Fe=E[J][0].split("-");Of({id:we,fontName:Fe[0],fontStyle:Fe[1]||""})}Lt.publish("addFonts",{fonts:It,dictionary:vt})},$i=function(E){return E.foo=function(){try{return E.apply(this,arguments)}catch(we){var J=we.stack||"";~J.indexOf(" at ")&&(J=J.split(" at ")[1]);var me="Error in function "+J.split(`
169
+ `)[0].split("<")[0]+": "+we.message;if(!mt.console)throw new Error(me);mt.console.error(me,we),mt.alert&&alert(me)}},E.foo.bar=E,E.foo},Io=function(E,J){var me,we,Fe,Oe,$e,nt,ht,Ct,Bt;if(Fe=(J=J||{}).sourceEncoding||"Unicode",$e=J.outputEncoding,(J.autoencode||$e)&&It[ft].metadata&&It[ft].metadata[Fe]&&It[ft].metadata[Fe].encoding&&(Oe=It[ft].metadata[Fe].encoding,!$e&&It[ft].encoding&&($e=It[ft].encoding),!$e&&Oe.codePages&&($e=Oe.codePages[0]),typeof $e=="string"&&($e=Oe[$e]),$e)){for(ht=!1,nt=[],me=0,we=E.length;me<we;me++)(Ct=$e[E.charCodeAt(me)])?nt.push(String.fromCharCode(Ct)):nt.push(E[me]),nt[me].charCodeAt(0)>>8&&(ht=!0);E=nt.join("")}for(me=E.length;ht===void 0&&me!==0;)E.charCodeAt(me-1)>>8&&(ht=!0),me--;if(!ht)return E;for(nt=J.noBOM?[]:[254,255],me=0,we=E.length;me<we;me++){if((Bt=(Ct=E.charCodeAt(me))>>8)>>8)throw new Error("Character at position "+me+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");nt.push(Bt),nt.push(Ct-(Bt<<8))}return String.fromCharCode.apply(void 0,nt)},$n=c.__private__.pdfEscape=c.pdfEscape=function(E,J){return Io(E,J).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},lu=c.__private__.beginPage=function(E){X[++Wt]=[],ot[Wt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(E[0]),topRightY:Number(E[1])}},Pf(Wt),de(X[H])},kf=function(E,J){var me,we,Fe;switch(t=J||t,typeof E=="string"&&(me=p(E.toLowerCase()),Array.isArray(me)&&(we=me[0],Fe=me[1])),Array.isArray(E)&&(we=E[0]*qe,Fe=E[1]*qe),isNaN(we)&&(we=i[0],Fe=i[1]),(we>14400||Fe>14400)&&(rr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),we=Math.min(14400,we),Fe=Math.min(14400,Fe)),i=[we,Fe],t.substr(0,1)){case"l":Fe>we&&(i=[Fe,we]);break;case"p":we>Fe&&(i=[Fe,we])}lu(i),Vf(fu),U(Gi),pu!==0&&U(pu+" J"),gu!==0&&U(gu+" j"),Lt.publish("addPage",{pageNumber:Wt})},ow=function(E){E>0&&E<=Wt&&(X.splice(E,1),ot.splice(E,1),Wt--,H>Wt&&(H=Wt),this.setPage(H))},Pf=function(E){E>0&&E<=Wt&&(H=E)},lw=c.__private__.getNumberOfPages=c.getNumberOfPages=function(){return X.length-1},Df=function(E,J,me){var we,Fe=void 0;return me=me||{},E=E!==void 0?E:It[ft].fontName,J=J!==void 0?J:It[ft].fontStyle,we=E.toLowerCase(),vt[we]!==void 0&&vt[we][J]!==void 0?Fe=vt[we][J]:vt[E]!==void 0&&vt[E][J]!==void 0?Fe=vt[E][J]:me.disableWarning===!1&&rr.warn("Unable to look up font label for font '"+E+"', '"+J+"'. Refer to getFontList() for available fonts."),Fe||me.noFallback||(Fe=vt.times[J])==null&&(Fe=vt.times.normal),Fe},uw=c.__private__.putInfo=function(){var E=Rr(),J=function(we){return we};for(var me in u!==null&&(J=In.encryptor(E,0)),U("<<"),U("/Producer ("+$n(J("jsPDF "+pt.version))+")"),rt)rt.hasOwnProperty(me)&&rt[me]&&U("/"+me.substr(0,1).toUpperCase()+me.substr(1)+" ("+$n(J(rt[me]))+")");U("/CreationDate ("+$n(J(ee))+")"),U(">>"),U("endobj")},uu=c.__private__.putCatalog=function(E){var J=(E=E||{}).rootDictionaryObjId||bi;switch(Rr(),U("<<"),U("/Type /Catalog"),U("/Pages "+J+" 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 me=""+fe;me.substr(me.length-1)==="%"&&(fe=parseInt(fe)/100),typeof fe=="number"&&U("/OpenAction [3 0 R /XYZ null null "+G(fe)+"]")}switch(ke||(ke="continuous"),ke){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")}Ue&&U("/PageMode /"+Ue),Lt.publish("putCatalog"),U(">>"),U("endobj")},cw=c.__private__.putTrailer=function(){U("trailer"),U("<<"),U("/Size "+($+1)),U("/Root "+$+" 0 R"),U("/Info "+($-1)+" 0 R"),u!==null&&U("/Encrypt "+In.oid+" 0 R"),U("/ID [ <"+Z+"> <"+Z+"> ]"),U(">>")},hw=c.__private__.putHeader=function(){U("%PDF-"+g),U("%ºß¬à")},fw=c.__private__.putXRef=function(){var E="0000000000";U("xref"),U("0 "+($+1)),U("0000000000 65535 f ");for(var J=1;J<=$;J++)typeof L[J]=="function"?U((E+L[J]()).slice(-10)+" 00000 n "):L[J]!==void 0?U((E+L[J]).slice(-10)+" 00000 n "):U("0000000000 00000 n ")},HA=c.__private__.buildDocument=function(){k(),de(Q),Lt.publish("buildDocument"),hw(),cA(),Rf(),Nf(),u!==null&&ms(),uw(),uu();var E=te;return fw(),cw(),U("startxref"),U(""+E),U("%%EOF"),de(X[H]),Q.join(`
170
+ `)},Uo=c.__private__.getBlob=function(E){return new Blob([C(E)],{type:"application/pdf"})},To=c.output=c.__private__.output=$i(function(E,J){switch(typeof(J=J||{})=="string"?J={filename:J}:J.filename=J.filename||"generated.pdf",E){case void 0:return HA();case"save":c.save(J.filename);break;case"arraybuffer":return C(HA());case"blob":return Uo(HA());case"bloburi":case"bloburl":if(mt.URL!==void 0&&typeof mt.URL.createObjectURL=="function")return mt.URL&&mt.URL.createObjectURL(Uo(HA()))||void 0;rr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var me="",we=HA();try{me=mg(we)}catch(Er){me=mg(unescape(encodeURIComponent(we)))}return"data:application/pdf;filename="+J.filename+";base64,"+me;case"pdfobjectnewwindow":if(Object.prototype.toString.call(mt)==="[object Window]"){var Fe="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"';J.pdfObjectUrl&&(Fe=J.pdfObjectUrl,Oe="");var $e='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Fe+'"'+Oe+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(J)+");<\/script></body></html>",nt=mt.open();return nt!==null&&nt.document.write($e),nt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(mt)==="[object Window]"){var ht='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(J.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+J.filename+'" width="500px" height="400px" /></body></html>',Ct=mt.open();if(Ct!==null){Ct.document.write(ht);var Bt=this;Ct.document.documentElement.querySelector("#pdfViewer").onload=function(){Ct.document.title=J.filename,Ct.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Bt.output("bloburl"))}}return Ct}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(mt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var kt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",J)+'"></iframe></body></html>',mr=mt.open();if(mr!==null&&(mr.document.write(kt),mr.document.title=J.filename),mr||typeof safari=="undefined")return mr;break;case"datauri":case"dataurl":return mt.document.location.href=this.output("datauristring",J);default:return null}}),Hf=function(E){return Array.isArray(PA)===!0&&PA.indexOf(E)>-1};switch(n){case"pt":qe=1;break;case"mm":qe=72/25.4;break;case"cm":qe=72/2.54;break;case"in":qe=72;break;case"px":qe=Hf("px_scaling")==1?.75:96/72;break;case"pc":case"em":qe=12;break;case"ex":qe=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);qe=n}var In=null;ie(),oe();var dw=function(E){return u!==null?In.encryptor(E,0):function(J){return J}},Mf=c.__private__.getPageInfo=c.getPageInfo=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ot[E].objId,pageNumber:E,pageContext:ot[E]}},yt=c.__private__.getPageInfoByObjId=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var J in ot)if(ot[J].objId===E)break;return Mf(J)},pw=c.__private__.getCurrentPageInfo=c.getCurrentPageInfo=function(){return{objId:ot[H].objId,pageNumber:H,pageContext:ot[H]}};c.addPage=function(){return kf.apply(this,arguments),this},c.setPage=function(){return Pf.apply(this,arguments),de.call(this,X[H]),this},c.insertPage=function(E){return this.addPage(),this.movePage(H,E),this},c.movePage=function(E,J){var me,we;if(E>J){me=X[E],we=ot[E];for(var Fe=E;Fe>J;Fe--)X[Fe]=X[Fe-1],ot[Fe]=ot[Fe-1];X[J]=me,ot[J]=we,this.setPage(J)}else if(E<J){me=X[E],we=ot[E];for(var Oe=E;Oe<J;Oe++)X[Oe]=X[Oe+1],ot[Oe]=ot[Oe+1];X[J]=me,ot[J]=we,this.setPage(J)}return this},c.deletePage=function(){return ow.apply(this,arguments),this},c.__private__.text=c.text=function(E,J,me,we,Fe){var Oe,$e,nt,ht,Ct,Bt,kt,mr,Er,zr=(we=we||{}).scope||this;if(typeof E=="number"&&typeof J=="number"&&(typeof me=="string"||Array.isArray(me))){var Un=me;me=J,J=E,E=Un}if(arguments[3]instanceof dt?(P("The transform parameter of text() with a Matrix value"),Er=Fe):(nt=arguments[4],ht=arguments[5],Ht(kt=arguments[3])==="object"&&kt!==null||(typeof nt=="string"&&(ht=nt,nt=null),typeof kt=="string"&&(ht=kt,kt=null),typeof kt=="number"&&(nt=kt,kt=null),we={flags:kt,angle:nt,align:ht})),isNaN(J)||isNaN(me)||E==null)throw new Error("Invalid arguments passed to jsPDF.text");if(E.length===0)return zr;var An="",Wi=!1,si=typeof we.lineHeightFactor=="number"?we.lineHeightFactor:ys,dA=zr.internal.scaleFactor;function Xf(sr){return sr=sr.split(" ").join(Array(we.TabLen||9).join(" ")),$n(sr,kt)}function bu(sr){for(var or,Dr=sr.concat(),Yr=[],zA=Dr.length;zA--;)typeof(or=Dr.shift())=="string"?Yr.push(or):Array.isArray(sr)&&(or.length===1||or[1]===void 0&&or[2]===void 0)?Yr.push(or[0]):Yr.push([or[0],or[1],or[2]]);return Yr}function Bu(sr,or){var Dr;if(typeof sr=="string")Dr=or(sr)[0];else if(Array.isArray(sr)){for(var Yr,zA,Tu=sr.concat(),zo=[],td=Tu.length;td--;)typeof(Yr=Tu.shift())=="string"?zo.push(or(Yr)[0]):Array.isArray(Yr)&&typeof Yr[0]=="string"&&(zA=or(Yr[0],Yr[1],Yr[2]),zo.push([zA[0],zA[1],zA[2]]));Dr=zo}return Dr}var Oo=!1,xu=!0;if(typeof E=="string")Oo=!0;else if(Array.isArray(E)){var Cu=E.concat();$e=[];for(var ko,dn=Cu.length;dn--;)(typeof(ko=Cu.shift())!="string"||Array.isArray(ko)&&typeof ko[0]!="string")&&(xu=!1);Oo=xu}if(Oo===!1)throw new Error('Type of text must be string or Array. "'+E+'" is not recognized.');typeof E=="string"&&(E=E.match(/[\r?\n]/)?E.split(/\r\n|\r|\n/g):[E]);var Po=ae/zr.internal.scaleFactor,Do=Po*(si-1);switch(we.baseline){case"bottom":me-=Do;break;case"top":me+=Po-Do;break;case"hanging":me+=Po-2*Do;break;case"middle":me+=Po/2-Do}if((Bt=we.maxWidth||0)>0&&(typeof E=="string"?E=zr.splitTextToSize(E,Bt):Object.prototype.toString.call(E)==="[object Array]"&&(E=E.reduce(function(sr,or){return sr.concat(zr.splitTextToSize(or,Bt))},[]))),Oe={text:E,x:J,y:me,options:we,mutex:{pdfEscape:$n,activeFontKey:ft,fonts:It,activeFontSize:ae}},Lt.publish("preProcessText",Oe),E=Oe.text,nt=(we=Oe.options).angle,!(Er instanceof dt)&&nt&&typeof nt=="number"){nt*=Math.PI/180,we.rotationDirection===0&&(nt=-nt),b===v.ADVANCED&&(nt=-nt);var Ho=Math.cos(nt),Eu=Math.sin(nt);Er=new dt(Ho,Eu,-Eu,Ho,0,0)}else nt&&nt instanceof dt&&(Er=nt);b!==v.ADVANCED||Er||(Er=Nn),(Ct=we.charSpace||Qo)!==void 0&&(An+=O(S(Ct))+` Tc
171
+ `,this.setCharSpace(this.getCharSpace()||0)),(mr=we.horizontalScale)!==void 0&&(An+=O(100*mr)+` Tz
172
+ `),we.lang;var Gn=-1,Ew=we.renderingMode!==void 0?we.renderingMode:we.stroke,Su=zr.internal.getCurrentPageInfo().pageContext;switch(Ew){case 0:case!1:case"fill":Gn=0;break;case 1:case!0:case"stroke":Gn=1;break;case 2:case"fillThenStroke":Gn=2;break;case 3:case"invisible":Gn=3;break;case 4:case"fillAndAddForClipping":Gn=4;break;case 5:case"strokeAndAddPathForClipping":Gn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Gn=6;break;case 7:case"addToPathForClipping":Gn=7}var Yf=Su.usedRenderingMode!==void 0?Su.usedRenderingMode:-1;Gn!==-1?An+=Gn+` Tr
173
+ `:Yf!==-1&&(An+=`0 Tr
174
+ `),Gn!==-1&&(Su.usedRenderingMode=Gn),ht=we.align||"left";var Bi,Mo=ae*si,Jf=zr.internal.pageSize.getWidth(),Zf=It[ft];Ct=we.charSpace||Qo,Bt=we.maxWidth||0,kt=Object.assign({autoencode:!0,noBOM:!0},we.flags);var Ea=[],xs=function(sr){return zr.getStringUnitWidth(sr,{font:Zf,charSpace:Ct,fontSize:ae,doKerning:!1})*ae/dA};if(Object.prototype.toString.call(E)==="[object Array]"){var Wn;$e=bu(E),ht!=="left"&&(Bi=$e.map(xs));var kn,Sa=0;if(ht==="right"){J-=Bi[0],E=[],dn=$e.length;for(var jA=0;jA<dn;jA++)jA===0?(kn=fA(J),Wn=MA(me)):(kn=S(Sa-Bi[jA]),Wn=-Mo),E.push([$e[jA],kn,Wn]),Sa=Bi[jA]}else if(ht==="center"){J-=Bi[0]/2,E=[],dn=$e.length;for(var KA=0;KA<dn;KA++)KA===0?(kn=fA(J),Wn=MA(me)):(kn=S((Sa-Bi[KA])/2),Wn=-Mo),E.push([$e[KA],kn,Wn]),Sa=Bi[KA]}else if(ht==="left"){E=[],dn=$e.length;for(var jo=0;jo<dn;jo++)E.push($e[jo])}else if(ht==="justify"&&Zf.encoding==="Identity-H"){E=[],dn=$e.length,Bt=Bt!==0?Bt:Jf;for(var VA=0,Pr=0;Pr<dn;Pr++)if(Wn=Pr===0?MA(me):-Mo,kn=Pr===0?fA(J):VA,Pr<dn-1){var Fu=S((Bt-Bi[Pr])/($e[Pr].split(" ").length-1)),Pn=$e[Pr].split(" ");E.push([Pn[0]+" ",kn,Wn]),VA=0;for(var xi=1;xi<Pn.length;xi++){var Ko=(xs(Pn[xi-1]+" "+Pn[xi])-xs(Pn[xi]))*dA+Fu;xi==Pn.length-1?E.push([Pn[xi],Ko,0]):E.push([Pn[xi]+" ",Ko,0]),VA-=Ko}}else E.push([$e[Pr],kn,Wn]);E.push(["",VA,0])}else{if(ht!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(E=[],dn=$e.length,Bt=Bt!==0?Bt:Jf,Pr=0;Pr<dn;Pr++)Wn=Pr===0?MA(me):-Mo,kn=Pr===0?fA(J):0,Pr<dn-1?Ea.push(O(S((Bt-Bi[Pr])/($e[Pr].split(" ").length-1)))):Ea.push(0),E.push([$e[Pr],kn,Wn])}}var ed=typeof we.R2L=="boolean"?we.R2L:xe;ed===!0&&(E=Bu(E,function(sr,or,Dr){return[sr.split("").reverse().join(""),or,Dr]})),Oe={text:E,x:J,y:me,options:we,mutex:{pdfEscape:$n,activeFontKey:ft,fonts:It,activeFontSize:ae}},Lt.publish("postProcessText",Oe),E=Oe.text,Wi=Oe.mutex.isHex||!1;var Iu=It[ft].encoding;Iu!=="WinAnsiEncoding"&&Iu!=="StandardEncoding"||(E=Bu(E,function(sr,or,Dr){return[Xf(sr),or,Dr]})),$e=bu(E),E=[];for(var Cs,Es,Fa,Ss=0,Vo=1,Fs=Array.isArray($e[0])?Vo:Ss,Ia="",Uu=function(sr,or,Dr){var Yr="";return Dr instanceof dt?(Dr=typeof we.angle=="number"?ii(Dr,new dt(1,0,0,1,sr,or)):ii(new dt(1,0,0,1,sr,or),Dr),b===v.ADVANCED&&(Dr=ii(new dt(1,0,0,-1,0,0),Dr)),Yr=Dr.join(" ")+` Tm
175
+ `):Yr=O(sr)+" "+O(or)+` Td
176
+ `,Yr},Ci=0;Ci<$e.length;Ci++){switch(Ia="",Fs){case Vo:Fa=(Wi?"<":"(")+$e[Ci][0]+(Wi?">":")"),Cs=parseFloat($e[Ci][1]),Es=parseFloat($e[Ci][2]);break;case Ss:Fa=(Wi?"<":"(")+$e[Ci]+(Wi?">":")"),Cs=fA(J),Es=MA(me)}Ea!==void 0&&Ea[Ci]!==void 0&&(Ia=Ea[Ci]+` Tw
177
+ `),Ci===0?E.push(Ia+Uu(Cs,Es,Er)+Fa):Fs===Ss?E.push(Ia+Fa):Fs===Vo&&E.push(Ia+Uu(Cs,Es,Er)+Fa)}E=Fs===Ss?E.join(` Tj
178
+ T* `):E.join(` Tj
179
+ `),E+=` Tj
180
+ `;var Ei=`BT
181
+ /`;return Ei+=ft+" "+ae+` Tf
182
+ `,Ei+=O(ae*si)+` TL
183
+ `,Ei+=bs+`
184
+ `,Ei+=An,Ei+=E,U(Ei+="ET"),f[ft]=!0,zr};var gw=c.__private__.clip=c.clip=function(E){return U(E==="evenodd"?"W*":"W"),this};c.clipEvenOdd=function(){return gw("evenodd")},c.__private__.discardPath=c.discardPath=function(){return U("n"),this};var hA=c.__private__.isValidStyle=function(E){var J=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(E)!==-1&&(J=!0),J};c.__private__.setDefaultPathOperation=c.setDefaultPathOperation=function(E){return hA(E)&&(l=E),this};var jf=c.__private__.getStyle=c.getStyle=function(E){var J=l;switch(E){case"D":case"S":J="S";break;case"F":J="f";break;case"FD":case"DF":J="B";break;case"f":case"f*":case"B":case"B*":J=E}return J},Kf=c.close=function(){return U("h"),this};c.stroke=function(){return U("S"),this},c.fill=function(E){return _o("f",E),this},c.fillEvenOdd=function(E){return _o("f*",E),this},c.fillStroke=function(E){return _o("B",E),this},c.fillStrokeEvenOdd=function(E){return _o("B*",E),this};var _o=function(E,J){Ht(J)==="object"?vw(J,E):U(E)},cu=function(E){E===null||b===v.ADVANCED&&E===void 0||(E=jf(E),U(E))};function mw(E,J,me,we,Fe){var Oe=new Ga(J||this.boundingBox,me||this.xStep,we||this.yStep,this.gState,Fe||this.matrix);Oe.stream=this.stream;var $e=E+"$$"+this.cloneIndex+++"$$";return tn($e,Oe),Oe}var vw=function(E,J){var me=en[E.key],we=Ut[me];if(we instanceof ta)U("q"),U(ww(J)),we.gState&&c.setGState(we.gState),U(E.matrix.toString()+" cm"),U("/"+me+" sh"),U("Q");else if(we instanceof Ga){var Fe=new dt(1,0,0,-1,0,Ca());E.matrix&&(Fe=Fe.multiply(E.matrix||Nn),me=mw.call(we,E.key,E.boundingBox,E.xStep,E.yStep,Fe).id),U("q"),U("/Pattern cs"),U("/"+me+" scn"),we.gState&&c.setGState(we.gState),U(J),U("Q")}},ww=function(E){switch(E){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"}},hu=c.moveTo=function(E,J){return U(O(S(E))+" "+O(F(J))+" m"),this},ws=c.lineTo=function(E,J){return U(O(S(E))+" "+O(F(J))+" l"),this},Ba=c.curveTo=function(E,J,me,we,Fe,Oe){return U([O(S(E)),O(F(J)),O(S(me)),O(F(we)),O(S(Fe)),O(F(Oe)),"c"].join(" ")),this};c.__private__.line=c.line=function(E,J,me,we,Fe){if(isNaN(E)||isNaN(J)||isNaN(me)||isNaN(we)||!hA(Fe))throw new Error("Invalid arguments passed to jsPDF.line");return b===v.COMPAT?this.lines([[me-E,we-J]],E,J,[1,1],Fe||"S"):this.lines([[me-E,we-J]],E,J,[1,1]).stroke()},c.__private__.lines=c.lines=function(E,J,me,we,Fe,Oe){var $e,nt,ht,Ct,Bt,kt,mr,Er,zr,Un,An,Wi;if(typeof E=="number"&&(Wi=me,me=J,J=E,E=Wi),we=we||[1,1],Oe=Oe||!1,isNaN(J)||isNaN(me)||!Array.isArray(E)||!Array.isArray(we)||!hA(Fe)||typeof Oe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(hu(J,me),$e=we[0],nt=we[1],Ct=E.length,Un=J,An=me,ht=0;ht<Ct;ht++)(Bt=E[ht]).length===2?(Un=Bt[0]*$e+Un,An=Bt[1]*nt+An,ws(Un,An)):(kt=Bt[0]*$e+Un,mr=Bt[1]*nt+An,Er=Bt[2]*$e+Un,zr=Bt[3]*nt+An,Un=Bt[4]*$e+Un,An=Bt[5]*nt+An,Ba(kt,mr,Er,zr,Un,An));return Oe&&Kf(),cu(Fe),this},c.path=function(E){for(var J=0;J<E.length;J++){var me=E[J],we=me.c;switch(me.op){case"m":hu(we[0],we[1]);break;case"l":ws(we[0],we[1]);break;case"c":Ba.apply(this,we);break;case"h":Kf()}}return this},c.__private__.rect=c.rect=function(E,J,me,we,Fe){if(isNaN(E)||isNaN(J)||isNaN(me)||isNaN(we)||!hA(Fe))throw new Error("Invalid arguments passed to jsPDF.rect");return b===v.COMPAT&&(we=-we),U([O(S(E)),O(F(J)),O(S(me)),O(S(we)),"re"].join(" ")),cu(Fe),this},c.__private__.triangle=c.triangle=function(E,J,me,we,Fe,Oe,$e){if(isNaN(E)||isNaN(J)||isNaN(me)||isNaN(we)||isNaN(Fe)||isNaN(Oe)||!hA($e))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[me-E,we-J],[Fe-me,Oe-we],[E-Fe,J-Oe]],E,J,[1,1],$e,!0),this},c.__private__.roundedRect=c.roundedRect=function(E,J,me,we,Fe,Oe,$e){if(isNaN(E)||isNaN(J)||isNaN(me)||isNaN(we)||isNaN(Fe)||isNaN(Oe)||!hA($e))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var nt=4/3*(Math.SQRT2-1);return Fe=Math.min(Fe,.5*me),Oe=Math.min(Oe,.5*we),this.lines([[me-2*Fe,0],[Fe*nt,0,Fe,Oe-Oe*nt,Fe,Oe],[0,we-2*Oe],[0,Oe*nt,-Fe*nt,Oe,-Fe,Oe],[2*Fe-me,0],[-Fe*nt,0,-Fe,-Oe*nt,-Fe,-Oe],[0,2*Oe-we],[0,-Oe*nt,Fe*nt,-Oe,Fe,-Oe]],E+Fe,J,[1,1],$e,!0),this},c.__private__.ellipse=c.ellipse=function(E,J,me,we,Fe){if(isNaN(E)||isNaN(J)||isNaN(me)||isNaN(we)||!hA(Fe))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Oe=4/3*(Math.SQRT2-1)*me,$e=4/3*(Math.SQRT2-1)*we;return hu(E+me,J),Ba(E+me,J-$e,E+Oe,J-we,E,J-we),Ba(E-Oe,J-we,E-me,J-$e,E-me,J),Ba(E-me,J+$e,E-Oe,J+we,E,J+we),Ba(E+Oe,J+we,E+me,J+$e,E+me,J),cu(Fe),this},c.__private__.circle=c.circle=function(E,J,me,we){if(isNaN(E)||isNaN(J)||isNaN(me)||!hA(we))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(E,J,me,me,we)},c.setFont=function(E,J,me){return me&&(J=M(J,me)),ft=Df(E,J,{disableWarning:!1}),this};var yw=c.__private__.getFont=c.getFont=function(){return It[Df.apply(c,arguments)]};c.__private__.getFontList=c.getFontList=function(){var E,J,me={};for(E in vt)if(vt.hasOwnProperty(E))for(J in me[E]=[],vt[E])vt[E].hasOwnProperty(J)&&me[E].push(J);return me},c.addFont=function(E,J,me,we,Fe){var Oe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Oe.indexOf(arguments[3])!==-1?Fe=arguments[3]:arguments[3]&&Oe.indexOf(arguments[3])==-1&&(me=M(me,we)),Fe=Fe||"Identity-H",ou.call(this,E,J,me,Fe)};var ys,fu=r.lineWidth||.200025,Lo=c.__private__.getLineWidth=c.getLineWidth=function(){return fu},Vf=c.__private__.setLineWidth=c.setLineWidth=function(E){return fu=E,U(O(S(E))+" w"),this};c.__private__.setLineDash=pt.API.setLineDash=pt.API.setLineDashPattern=function(E,J){if(E=E||[],J=J||0,isNaN(J)||!Array.isArray(E))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return E=E.map(function(me){return O(S(me))}).join(" "),J=O(S(J)),U("["+E+"] "+J+" d"),this};var zf=c.__private__.getLineHeight=c.getLineHeight=function(){return ae*ys};c.__private__.getLineHeight=c.getLineHeight=function(){return ae*ys};var $f=c.__private__.setLineHeightFactor=c.setLineHeightFactor=function(E){return typeof(E=E||1.15)=="number"&&(ys=E),this},Gf=c.__private__.getLineHeightFactor=c.getLineHeightFactor=function(){return ys};$f(r.lineHeight);var fA=c.__private__.getHorizontalCoordinate=function(E){return S(E)},MA=c.__private__.getVerticalCoordinate=function(E){return b===v.ADVANCED?E:ot[H].mediaBox.topRightY-ot[H].mediaBox.bottomLeftY-S(E)},bw=c.__private__.getHorizontalCoordinateString=c.getHorizontalCoordinateString=function(E){return O(fA(E))},xa=c.__private__.getVerticalCoordinateString=c.getVerticalCoordinateString=function(E){return O(MA(E))},Gi=r.strokeColor||"0 G";c.__private__.getStrokeColor=c.getDrawColor=function(){return fn(Gi)},c.__private__.setStrokeColor=c.setDrawColor=function(E,J,me,we){return Gi=Or({ch1:E,ch2:J,ch3:me,ch4:we,pdfColorType:"draw",precision:2}),U(Gi),this};var du=r.fillColor||"0 g";c.__private__.getFillColor=c.getFillColor=function(){return fn(du)},c.__private__.setFillColor=c.setFillColor=function(E,J,me,we){return du=Or({ch1:E,ch2:J,ch3:me,ch4:we,pdfColorType:"fill",precision:2}),U(du),this};var bs=r.textColor||"0 g",Bw=c.__private__.getTextColor=c.getTextColor=function(){return fn(bs)};c.__private__.setTextColor=c.setTextColor=function(E,J,me,we){return bs=Or({ch1:E,ch2:J,ch3:me,ch4:we,pdfColorType:"text",precision:3}),this};var Qo=r.charSpace,xw=c.__private__.getCharSpace=c.getCharSpace=function(){return parseFloat(Qo||0)};c.__private__.setCharSpace=c.setCharSpace=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Qo=E,this};var pu=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(E){var J=c.CapJoinStyles[E];if(J===void 0)throw new Error("Line cap style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return pu=J,U(J+" J"),this};var gu=0;c.__private__.setLineJoin=c.setLineJoin=function(E){var J=c.CapJoinStyles[E];if(J===void 0)throw new Error("Line join style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return gu=J,U(J+" j"),this},c.__private__.setLineMiterLimit=c.__private__.setMiterLimit=c.setLineMiterLimit=c.setMiterLimit=function(E){if(E=E||0,isNaN(E))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return U(O(S(E))+" M"),this},c.GState=cl,c.setGState=function(E){(E=typeof E=="string"?Kt[ar[E]]:Wf(null,E)).equals(Mt)||(U("/"+E.id+" gs"),Mt=E)};var Wf=function(E,J){if(!E||!ar[E]){var me=!1;for(var we in Kt)if(Kt.hasOwnProperty(we)&&Kt[we].equals(J)){me=!0;break}if(me)J=Kt[we];else{var Fe="GS"+(Object.keys(Kt).length+1).toString(10);Kt[Fe]=J,J.id=Fe}return E&&(ar[E]=J.id),Lt.publish("addGState",J),J}};c.addGState=function(E,J){return Wf(E,J),this},c.saveGraphicsState=function(){return U("q"),dr.push({key:ft,size:ae,color:bs}),this},c.restoreGraphicsState=function(){U("Q");var E=dr.pop();return ft=E.key,ae=E.size,bs=E.color,Mt=null,this},c.setCurrentTransformationMatrix=function(E){return U(E.toString()+" cm"),this},c.comment=function(E){return U("#"+E),this};var No=function(E,J){var me=E||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return me},set:function(Oe){isNaN(Oe)||(me=parseFloat(Oe))}});var we=J||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return we},set:function(Oe){isNaN(Oe)||(we=parseFloat(Oe))}});var Fe="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Fe},set:function(Oe){Fe=Oe.toString()}}),this},mu=function(E,J,me,we){No.call(this,E,J),this.type="rect";var Fe=me||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Fe},set:function($e){isNaN($e)||(Fe=parseFloat($e))}});var Oe=we||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Oe},set:function($e){isNaN($e)||(Oe=parseFloat($e))}}),this},vu=function(){this.page=Wt,this.currentPage=H,this.pages=X.slice(0),this.pagesContext=ot.slice(0),this.x=jt,this.y=ut,this.matrix=fr,this.width=Bs(H),this.height=Ca(H),this.outputDestination=ve,this.id="",this.objectNumber=-1};vu.prototype.restore=function(){Wt=this.page,H=this.currentPage,ot=this.pagesContext,X=this.pages,jt=this.x,ut=this.y,fr=this.matrix,wu(H,this.width),yu(H,this.height),ve=this.outputDestination};var qf=function(E,J,me,we,Fe){ni.push(new vu),Wt=H=0,X=[],jt=E,ut=J,fr=Fe,lu([me,we])},Cw=function(E){if(zn[E])ni.pop().restore();else{var J=new vu,me="Xo"+(Object.keys(Vr).length+1).toString(10);J.id=me,zn[E]=me,Vr[me]=J,Lt.publish("addFormObject",J),ni.pop().restore()}};for(var Ro in c.beginFormObject=function(E,J,me,we,Fe){return qf(E,J,me,we,Fe),this},c.endFormObject=function(E){return Cw(E),this},c.doFormObject=function(E,J){var me=Vr[zn[E]];return U("q"),U(J.toString()+" cm"),U("/"+me.id+" Do"),U("Q"),this},c.getFormObject=function(E){var J=Vr[zn[E]];return{x:J.x,y:J.y,width:J.width,height:J.height,matrix:J.matrix}},c.save=function(E,J){return E=E||"generated.pdf",(J=J||{}).returnPromise=J.returnPromise||!1,J.returnPromise===!1?($a(Uo(HA()),E),typeof $a.unload=="function"&&mt.setTimeout&&setTimeout($a.unload,911),this):new Promise(function(me,we){try{var Fe=$a(Uo(HA()),E);typeof $a.unload=="function"&&mt.setTimeout&&setTimeout($a.unload,911),me(Fe)}catch(Oe){we(Oe.message)}})},pt.API)pt.API.hasOwnProperty(Ro)&&(Ro==="events"&&pt.API.events.length?function(E,J){var me,we,Fe;for(Fe=J.length-1;Fe!==-1;Fe--)me=J[Fe][0],we=J[Fe][1],E.subscribe.apply(E,[me].concat(typeof we=="function"?[we]:we))}(Lt,pt.API.events):c[Ro]=pt.API[Ro]);var Bs=c.getPageWidth=function(E){return(ot[E=E||H].mediaBox.topRightX-ot[E].mediaBox.bottomLeftX)/qe},wu=c.setPageWidth=function(E,J){ot[E].mediaBox.topRightX=J*qe+ot[E].mediaBox.bottomLeftX},Ca=c.getPageHeight=function(E){return(ot[E=E||H].mediaBox.topRightY-ot[E].mediaBox.bottomLeftY)/qe},yu=c.setPageHeight=function(E,J){ot[E].mediaBox.topRightY=J*qe+ot[E].mediaBox.bottomLeftY};return c.internal={pdfEscape:$n,getStyle:jf,getFont:yw,getFontSize:ue,getCharSpace:xw,getTextColor:Bw,getLineHeight:zf,getLineHeightFactor:Gf,getLineWidth:Lo,write:B,getHorizontalCoordinate:fA,getVerticalCoordinate:MA,getCoordinateString:bw,getVerticalCoordinateString:xa,collections:{},newObject:Rr,newAdditionalObject:DA,newObjectDeferred:Pt,newObjectDeferredBegin:rn,getFilters:Ai,putStream:On,events:Lt,scaleFactor:qe,pageSize:{getWidth:function(){return Bs(H)},setWidth:function(E){wu(H,E)},getHeight:function(){return Ca(H)},setHeight:function(E){yu(H,E)}},encryptionOptions:u,encryption:In,getEncryptor:dw,output:To,getNumberOfPages:lw,pages:X,out:U,f2:G,f3:D,getPageInfo:Mf,getPageInfoByObjId:yt,getCurrentPageInfo:pw,getPDFVersion:m,Point:No,Rectangle:mu,Matrix:dt,hasHotfix:Hf},Object.defineProperty(c.internal.pageSize,"width",{get:function(){return Bs(H)},set:function(E){wu(H,E)},enumerable:!0,configurable:!0}),Object.defineProperty(c.internal.pageSize,"height",{get:function(){return Ca(H)},set:function(E){yu(H,E)},enumerable:!0,configurable:!0}),sw.call(c,R),ft="F1",kf(i,t),Lt.publish("initialized"),c}Gs.prototype.lsbFirstWord=function(r){return String.fromCharCode(r>>0&255,r>>8&255,r>>16&255,r>>24&255)},Gs.prototype.toHexString=function(r){return r.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Gs.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("")},Gs.prototype.processOwnerPassword=function(r,e){return yg(wg(e).substr(0,5),r)},Gs.prototype.encryptor=function(r,e){var t=wg(this.encryptionKey+String.fromCharCode(255&r,r>>8&255,r>>16&255,255&e,e>>8&255)).substr(0,10);return function(n){return yg(t,n)}},cl.prototype.equals=function(r){var e,t="id,objectNumber,equals";if(!r||Ht(r)!==Ht(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},pt.API={events:[]},pt.version="2.5.2";var wr=pt.API,bg=1,Wa=function(r){return r.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},qs=function(r){return r.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},bt=function(r){return r.toFixed(2)},ra=function(r){return r.toFixed(5)};wr.__acroform__={};var Mn=function(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r},hB=function(r){return r*bg},nA=function(r){var e=new dB,t=at.internal.getHeight(r)||0,n=at.internal.getWidth(r)||0;return e.BBox=[0,0,Number(bt(n)),Number(bt(t))],e},qL=wr.__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},XL=wr.__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)},YL=wr.__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},Tr=wr.__acroform__.getBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return YL(r,e-1)},_r=wr.__acroform__.setBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return qL(r,e-1)},Lr=wr.__acroform__.clearBitForPdf=function(r,e){if(isNaN(r)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return XL(r,e-1)},JL=wr.__acroform__.calculateCoordinates=function(r,e){var t=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=r[0],A=r[1],a=r[2],s=r[3],o={};return o.lowerLeft_X=t(i)||0,o.lowerLeft_Y=n(A+s)||0,o.upperRight_X=t(i+a)||0,o.upperRight_Y=n(A)||0,[Number(bt(o.lowerLeft_X)),Number(bt(o.lowerLeft_Y)),Number(bt(o.upperRight_X)),Number(bt(o.upperRight_Y))]},ZL=function(r){if(r.appearanceStreamContent)return r.appearanceStreamContent;if(r.V||r.DV){var e=[],t=r._V||r.DV,n=Bg(r,t),i=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("/"+i+" "+bt(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 A=nA(r);return A.scope=r.scope,A.stream=e.join(`
185
+ `),A}},Bg=function(r,e){var t=r.fontSize===0?r.maxFontSize:r.fontSize,n={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=r.multiline?i.map(function(D){return D.split(`
186
+ `)}):i.map(function(D){return[D]});var A=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(D,S,K){if(D+1<i.length){var F=S+" "+i[D+1][0];return Bc(F,r,K).width<=s-4}return!1};A++;e:for(;A>0;){e="",A--;var l,u,h=Bc("3",r,A).height,f=r.multiline?a-A:(a-h)/2,c=f+=2,g=0,m=0,y=0;if(A<=0){e=`(...) Tj
187
+ `,e+="% Width of Text: "+Bc(e,r,A=12).width+", FieldWidth:"+s+`
188
+ `;break}for(var p="",v=0,b=0;b<i.length;b++)if(i.hasOwnProperty(b)){var I=!1;if(i[b].length!==1&&y!==i[b].length-1){if((h+2)*(v+2)+2>a)continue e;p+=i[b][y],I=!0,m=b,b--}else{p=(p+=i[b][y]+" ").substr(p.length-1)==" "?p.substr(0,p.length-1):p;var N=parseInt(b),M=o(N,p,A),O=b>=i.length-1;if(M&&!O){p+=" ",y=0;continue}if(M||O){if(O)m=N;else if(r.multiline&&(h+2)*(v+2)+2>a)continue e}else{if(!r.multiline||(h+2)*(v+2)+2>a)continue e;m=N}}for(var P="",_=g;_<=m;_++){var G=i[_];if(r.multiline){if(_===m){P+=G[y]+" ",y=(y+1)%G.length;continue}if(_===g){P+=G[G.length-1]+" ";continue}}P+=G[0]+" "}switch(P=P.substr(P.length-1)==" "?P.substr(0,P.length-1):P,u=Bc(P,r,A).width,r.textAlign){case"right":l=s-u-2;break;case"center":l=(s-u)/2;break;case"left":default:l=2}e+=bt(l)+" "+bt(c)+` Td
189
+ `,e+="("+Wa(P)+`) Tj
190
+ `,e+=-bt(l)+` 0 Td
191
+ `,c=-(A+2),u=0,g=I?m:m+1,v++,p=""}break}return n.text=e,n.fontSize=A,n},Bc=function(r,e,t){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=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:i}},eQ={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},tQ=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)},rQ=function(r,e){for(var t in r)if(r.hasOwnProperty(t)){var n=t,i=r[t];e.internal.newObjectDeferredBegin(i.objId,!0),Ht(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete r[n]}},nQ=function(r,e){if(e.scope=r,r.internal!==void 0&&(r.internal.acroformPlugin===void 0||r.internal.acroformPlugin.isInitialized===!1)){if(Li.FieldNum=0,r.internal.acroformPlugin=JSON.parse(JSON.stringify(eQ)),r.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");bg=r.internal.scaleFactor,r.internal.acroformPlugin.acroFormDictionaryRoot=new pB,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 i in n)if(n.hasOwnProperty(i)){var A=n[i];A.objId=void 0,A.hasAnnotation&&tQ(A,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,i){var A=!n;for(var a in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(a)){var s=n[a],o=[],l=s.Rect;if(s.Rect&&(s.Rect=JL(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=at.createDefaultAppearanceStream(s),Ht(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=l,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=ZL(s);o.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var h="";for(var f in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(f)){var c=s.appearanceStreamContent[f];if(h+="/"+f+" ",h+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var a in c)if(c.hasOwnProperty(a)){var g=c[a];typeof g=="function"&&(g=g.call(i,s)),h+="/"+a+" "+g+" ",i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g)}}else typeof(g=c)=="function"&&(g=g.call(i,s)),h+="/"+a+" "+g,i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g);h+=">>"}o.push({key:"AP",value:`<<
192
+ `+h+">>"})}i.internal.putStream({additionalKeyValues:o,objectId:s.objId}),i.internal.out("endobj")}A&&rQ(i.internal.acroformPlugin.xForms,i)})(t,r)}),r.internal.acroformPlugin.isInitialized=!0}},fB=wr.__acroform__.arrayToPdfArray=function(r,e,t){var n=function(a){return a};if(Array.isArray(r)){for(var i="[",A=0;A<r.length;A++)switch(A!==0&&(i+=" "),Ht(r[A])){case"boolean":case"number":case"object":i+=r[A].toString();break;case"string":r[A].substr(0,1)!=="/"?(e!==void 0&&t&&(n=t.internal.getEncryptor(e)),i+="("+Wa(n(r[A].toString()))+")"):i+=r[A].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},xg=function(r,e,t){var n=function(i){return i};return e!==void 0&&t&&(n=t.internal.getEncryptor(e)),(r=r||"").toString(),r="("+Wa(n(r))+")"},iA=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})};iA.prototype.toString=function(){return this.objId+" 0 R"},iA.prototype.putStream=function(){var r=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:r,objectId:this.objId}),this.scope.internal.out("endobj")},iA.prototype.getKeyValueListForStream=function(){var r=[],e=Object.getOwnPropertyNames(this).filter(function(A){return A!="content"&&A!="appearanceStreamContent"&&A!="scope"&&A!="objId"&&A.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var n=e[t],i=this[n];i&&(Array.isArray(i)?r.push({key:n,value:fB(i,this.objId,this.scope)}):i instanceof iA?(i.scope=this.scope,r.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&r.push({key:n,value:i}))}return r};var dB=function(){iA.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}})};Mn(dB,iA);var pB=function(){iA.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)),"("+Wa(t(r))+")"}},set:function(t){r=t}})};Mn(pB,iA);var Li=function r(){iA.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(p){if(isNaN(p))throw new Error('Invalid value "'+p+'" for attribute F supplied.');e=p}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Tr(e,3)},set:function(p){p?this.F=_r(e,3):this.F=Lr(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(p){if(isNaN(p))throw new Error('Invalid value "'+p+'" for attribute Ff supplied.');t=p}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(p){n=p!==void 0?p:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(p){n[0]=p}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(p){n[1]=p}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(p){n[2]=p}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(p){n[3]=p}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(p){switch(p){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=p;break;default:throw new Error('Invalid value "'+p+'" for attribute FT supplied.')}}});var A=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!A||A.length<1){if(this instanceof xc)return;A="FieldObject"+r.FieldNum++}var p=function(v){return v};return this.scope&&(p=this.scope.internal.getEncryptor(this.objId)),"("+Wa(p(A))+")"},set:function(p){A=p.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return A},set:function(p){A=p}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(p){a=p}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(p){s=p}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(p){o=p}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/bg:l},set:function(p){l=p}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(p){u=p}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof xc||this instanceof na))return xg(h,this.objId,this.scope)},set:function(p){p=p.toString(),h=p}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof qr?f:xg(f,this.objId,this.scope)},set:function(p){p=p.toString(),f=this instanceof qr?p:p.substr(0,1)==="("?qs(p.substr(1,p.length-2)):qs(p)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof qr?qs(f.substr(1,f.length-1)):f},set:function(p){p=p.toString(),f=this instanceof qr?"/"+p:p}});var c=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(c)return c},set:function(p){this.V=p}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(c)return this instanceof qr?c:xg(c,this.objId,this.scope)},set:function(p){p=p.toString(),c=this instanceof qr?p:p.substr(0,1)==="("?qs(p.substr(1,p.length-2)):qs(p)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof qr?qs(c.substr(1,c.length-1)):c},set:function(p){p=p.toString(),c=this instanceof qr?"/"+p:p}}),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 g,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(p){p=!!p,m=p}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(p){g=p}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,1)},set:function(p){p?this.Ff=_r(this.Ff,1):this.Ff=Lr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,2)},set:function(p){p?this.Ff=_r(this.Ff,2):this.Ff=Lr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,3)},set:function(p){p?this.Ff=_r(this.Ff,3):this.Ff=Lr(this.Ff,3)}});var y=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(y!==null)return y},set:function(p){if([0,1,2].indexOf(p)===-1)throw new Error('Invalid value "'+p+'" for attribute Q supplied.');y=p}}),Object.defineProperty(this,"textAlign",{get:function(){var p;switch(y){case 0:default:p="left";break;case 1:p="center";break;case 2:p="right"}return p},configurable:!0,enumerable:!0,set:function(p){switch(p){case"right":case 2:y=2;break;case"center":case 1:y=1;break;case"left":case 0:default:y=0}}})};Mn(Li,iA);var qa=function(){Li.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 fB(e,this.objId,this.scope)},set:function(t){var n,i;i=[],typeof(n=t)=="string"&&(i=function(A,a,s){s||(s=1);for(var o,l=[];o=a.exec(A);)l.push(o[s]);return l}(n,/\((.*?)\)/g)),e=i}}),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!!Tr(this.Ff,18)},set:function(t){t?this.Ff=_r(this.Ff,18):this.Ff=Lr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=_r(this.Ff,19):this.Ff=Lr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,20)},set:function(t){t?(this.Ff=_r(this.Ff,20),e.sort()):this.Ff=Lr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,22)},set:function(t){t?this.Ff=_r(this.Ff,22):this.Ff=Lr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,23)},set:function(t){t?this.Ff=_r(this.Ff,23):this.Ff=Lr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,27)},set:function(t){t?this.Ff=_r(this.Ff,27):this.Ff=Lr(this.Ff,27)}}),this.hasAppearanceStream=!1};Mn(qa,Li);var Xa=function(){qa.call(this),this.fontName="helvetica",this.combo=!1};Mn(Xa,qa);var Ya=function(){Xa.call(this),this.combo=!0};Mn(Ya,Xa);var hl=function(){Ya.call(this),this.edit=!0};Mn(hl,Ya);var qr=function(){Li.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,15)},set:function(t){t?this.Ff=_r(this.Ff,15):this.Ff=Lr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,16)},set:function(t){t?this.Ff=_r(this.Ff,16):this.Ff=Lr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,17)},set:function(t){t?this.Ff=_r(this.Ff,17):this.Ff=Lr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,26)},set:function(t){t?this.Ff=_r(this.Ff,26):this.Ff=Lr(this.Ff,26)}});var r,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(A){return A};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+Wa(t(e[n]))+")");return i.push(">>"),i.join(`
193
+ `)}},set:function(t){Ht(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}})};Mn(qr,Li);var fl=function(){qr.call(this),this.pushButton=!0};Mn(fl,qr);var Ja=function(){qr.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:[]}})};Mn(Ja,qr);var xc=function(){var r,e;Li.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var A,a=[];for(A in a.push("<<"),n)a.push("/"+A+" ("+Wa(i(n[A]))+")");return a.push(">>"),a.join(`
194
+ `)},set:function(i){Ht(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){t="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=at.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Mn(xc,Li),Ja.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()}},Ja.prototype.createOption=function(r){var e=new xc;return e.Parent=this,e.optionName=r,this.Kids.push(e),iQ.call(this.scope,e),e};var dl=function(){qr.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=at.CheckBox.createAppearanceStream()};Mn(dl,qr);var na=function(){Li.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,13)},set:function(e){e?this.Ff=_r(this.Ff,13):this.Ff=Lr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,21)},set:function(e){e?this.Ff=_r(this.Ff,21):this.Ff=Lr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,23)},set:function(e){e?this.Ff=_r(this.Ff,23):this.Ff=Lr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,24)},set:function(e){e?this.Ff=_r(this.Ff,24):this.Ff=Lr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,25)},set:function(e){e?this.Ff=_r(this.Ff,25):this.Ff=Lr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,26)},set:function(e){e?this.Ff=_r(this.Ff,26):this.Ff=Lr(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}})};Mn(na,Li);var pl=function(){na.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Tr(this.Ff,14)},set:function(r){r?this.Ff=_r(this.Ff,14):this.Ff=Lr(this.Ff,14)}}),this.password=!0};Mn(pl,na);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=nA(r);e.scope=r.scope;var t=[],n=r.scope.internal.getFont(r.fontName,r.fontStyle).id,i=r.scope.__private__.encodeColorString(r.color),A=Bg(r,r.caption);return t.push("0.749023 g"),t.push("0 0 "+bt(at.internal.getWidth(r))+" "+bt(at.internal.getHeight(r))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+n+" "+bt(A.fontSize)+" Tf "+i),t.push("BT"),t.push(A.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
195
+ `),e},YesNormal:function(r){var e=nA(r);e.scope=r.scope;var t=r.scope.internal.getFont(r.fontName,r.fontStyle).id,n=r.scope.__private__.encodeColorString(r.color),i=[],A=at.internal.getHeight(r),a=at.internal.getWidth(r),s=Bg(r,r.caption);return i.push("1 g"),i.push("0 0 "+bt(a)+" "+bt(A)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+bt(a-1)+" "+bt(A-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+bt(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
196
+ `),e},OffPushDown:function(r){var e=nA(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+bt(at.internal.getWidth(r))+" "+bt(at.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
197
+ `),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=nA(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 i=at.internal.Bezier_C,A=Number((n*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+ra(at.internal.getWidth(r)/2)+" "+ra(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(`
198
+ `),e},YesPushDown:function(r){var e=nA(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 i=Number((2*n).toFixed(5)),A=Number((i*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 "+ra(at.internal.getWidth(r)/2)+" "+ra(at.internal.getHeight(r)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+A+" "+A+" "+i+" 0 "+i+" c"),t.push("-"+A+" "+i+" -"+i+" "+A+" -"+i+" 0 c"),t.push("-"+i+" -"+A+" -"+A+" -"+i+" 0 -"+i+" c"),t.push(A+" -"+i+" "+i+" -"+A+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+ra(at.internal.getWidth(r)/2)+" "+ra(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(`
199
+ `),e},OffPushDown:function(r){var e=nA(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 i=Number((2*n).toFixed(5)),A=Number((i*at.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+ra(at.internal.getWidth(r)/2)+" "+ra(at.internal.getHeight(r)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+A+" "+A+" "+i+" 0 "+i+" c"),t.push("-"+A+" "+i+" -"+i+" "+A+" -"+i+" 0 c"),t.push("-"+i+" -"+A+" -"+A+" -"+i+" 0 -"+i+" c"),t.push(A+" -"+i+" "+i+" -"+A+" "+i+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
200
+ `),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=nA(r);e.scope=r.scope;var t=[],n=at.internal.calculateCross(r);return t.push("q"),t.push("1 1 "+bt(at.internal.getWidth(r)-2)+" "+bt(at.internal.getHeight(r)-2)+" re"),t.push("W"),t.push("n"),t.push(bt(n.x1.x)+" "+bt(n.x1.y)+" m"),t.push(bt(n.x2.x)+" "+bt(n.x2.y)+" l"),t.push(bt(n.x4.x)+" "+bt(n.x4.y)+" m"),t.push(bt(n.x3.x)+" "+bt(n.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
201
+ `),e},YesPushDown:function(r){var e=nA(r);e.scope=r.scope;var t=at.internal.calculateCross(r),n=[];return n.push("0.749023 g"),n.push("0 0 "+bt(at.internal.getWidth(r))+" "+bt(at.internal.getHeight(r))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+bt(at.internal.getWidth(r)-2)+" "+bt(at.internal.getHeight(r)-2)+" re"),n.push("W"),n.push("n"),n.push(bt(t.x1.x)+" "+bt(t.x1.y)+" m"),n.push(bt(t.x2.x)+" "+bt(t.x2.y)+" l"),n.push(bt(t.x4.x)+" "+bt(t.x4.y)+" m"),n.push(bt(t.x3.x)+" "+bt(t.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join(`
202
+ `),e},OffPushDown:function(r){var e=nA(r);e.scope=r.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+bt(at.internal.getWidth(r))+" "+bt(at.internal.getHeight(r))+" re"),t.push("f"),e.stream=t.join(`
203
+ `),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 Ht(r)==="object"&&(e=hB(r.Rect[2])),e},at.internal.getHeight=function(r){var e=0;return Ht(r)==="object"&&(e=hB(r.Rect[3])),e};var iQ=wr.addField=function(r){if(nQ(this,r),!(r instanceof Li))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};wr.AcroFormChoiceField=qa,wr.AcroFormListBox=Xa,wr.AcroFormComboBox=Ya,wr.AcroFormEditBox=hl,wr.AcroFormButton=qr,wr.AcroFormPushButton=fl,wr.AcroFormRadioButton=Ja,wr.AcroFormCheckBox=dl,wr.AcroFormTextField=na,wr.AcroFormPasswordField=pl,wr.AcroFormAppearance=at,wr.AcroForm={ChoiceField:qa,ListBox:Xa,ComboBox:Ya,EditBox:hl,Button:qr,PushButton:fl,RadioButton:Ja,CheckBox:dl,TextField:na,PasswordField:pl,Appearance:at},pt.AcroForm={ChoiceField:qa,ListBox:Xa,ComboBox:Ya,EditBox:hl,Button:qr,PushButton:fl,RadioButton:Ja,CheckBox:dl,TextField:na,PasswordField:pl,Appearance:at};var AQ=pt.AcroForm;function gB(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(D,S){var K,F,ee,Z,z,oe=e;if((S=S||e)==="RGBA"||D.data!==void 0&&D.data instanceof Uint8ClampedArray&&"height"in D&&"width"in D)return"RGBA";if(M(D))for(z in t)for(ee=t[z],K=0;K<ee.length;K+=1){for(Z=!0,F=0;F<ee[K].length;F+=1)if(ee[K][F]!==void 0&&ee[K][F]!==D[F]){Z=!1;break}if(Z===!0){oe=z;break}}else for(z in t)for(ee=t[z],K=0;K<ee.length;K+=1){for(Z=!0,F=0;F<ee[K].length;F+=1)if(ee[K][F]!==void 0&&ee[K][F]!==D.charCodeAt(F)){Z=!1;break}if(Z===!0){oe=z;break}}return oe===e&&S!==e&&(oe=S),oe},i=function D(S){for(var K=this.internal.write,F=this.internal.putStream,ee=(0,this.internal.getFilters)();ee.indexOf("FlateEncode")!==-1;)ee.splice(ee.indexOf("FlateEncode"),1);S.objectId=this.internal.newObject();var Z=[];if(Z.push({key:"Type",value:"/XObject"}),Z.push({key:"Subtype",value:"/Image"}),Z.push({key:"Width",value:S.width}),Z.push({key:"Height",value:S.height}),S.colorSpace===y.INDEXED?Z.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]"}):(Z.push({key:"ColorSpace",value:"/"+S.colorSpace}),S.colorSpace===y.DEVICE_CMYK&&Z.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Z.push({key:"BitsPerComponent",value:S.bitsPerComponent}),"decodeParameters"in S&&S.decodeParameters!==void 0&&Z.push({key:"DecodeParms",value:"<<"+S.decodeParameters+">>"}),"transparency"in S&&Array.isArray(S.transparency)){for(var z="",oe=0,W=S.transparency.length;oe<W;oe++)z+=S.transparency[oe]+" "+S.transparency[oe]+" ";Z.push({key:"Mask",value:"["+z+"]"})}S.sMask!==void 0&&Z.push({key:"SMask",value:S.objectId+1+" 0 R"});var ce=S.filter!==void 0?["/"+S.filter]:void 0;if(F({data:S.data,additionalKeyValues:Z,alreadyAppliedFilters:ce,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,x={width:S.width,height:S.height,colorSpace:"DeviceGray",bitsPerComponent:S.bitsPerComponent,decodeParameters:ie,data:S.sMask};"filter"in S&&(x.filter=S.filter),D.call(this,x)}if(S.colorSpace===y.INDEXED){var H=this.internal.newObject();F({data:P(new Uint8Array(S.palette)),objectId:H}),K("endobj")}},A=function(){var D=this.internal.collections.addImage_images;for(var S in D)i.call(this,D[S])},a=function(){var D,S=this.internal.collections.addImage_images,K=this.internal.write;for(var F in S)K("/I"+(D=S[F]).index,D.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",A),this.internal.events.subscribe("putXobjectDict",a))},o=function(){var D=this.internal.collections.addImage_images;return s.call(this),D},l=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(D){return typeof r["process"+D.toUpperCase()]=="function"},h=function(D){return Ht(D)==="object"&&D.nodeType===1},f=function(D,S){if(D.nodeName==="IMG"&&D.hasAttribute("src")){var K=""+D.getAttribute("src");if(K.indexOf("data:image/")===0)return ul(unescape(K).split("base64,").pop());var F=r.loadFile(K,!0);if(F!==void 0)return F}if(D.nodeName==="CANVAS"){if(D.width===0||D.height===0)throw new Error("Given canvas must have data. Canvas width: "+D.width+", height: "+D.height);var ee;switch(S){case"PNG":ee="image/png";break;case"WEBP":ee="image/webp";break;case"JPEG":case"JPG":default:ee="image/jpeg"}return ul(D.toDataURL(ee,1).split("base64,").pop())}},c=function(D){var S=this.internal.collections.addImage_images;if(S){for(var K in S)if(D===S[K].alias)return S[K]}},g=function(D,S,K){return D||S||(D=-96,S=-96),D<0&&(D=-1*K.width*72/D/this.internal.scaleFactor),S<0&&(S=-1*K.height*72/S/this.internal.scaleFactor),D===0&&(D=S*K.width/K.height),S===0&&(S=D*K.height/K.width),[D,S]},m=function(D,S,K,F,ee,Z){var z=g.call(this,K,F,ee),oe=this.internal.getCoordinateString,W=this.internal.getVerticalCoordinateString,ce=o.call(this);if(K=z[0],F=z[1],ce[ee.index]=ee,Z){Z*=Math.PI/180;var ie=Math.cos(Z),x=Math.sin(Z),H=function(q){return q.toFixed(4)},V=[H(ie),H(x),H(-1*x),H(ie),0,0,"cm"]}this.internal.write("q"),Z?(this.internal.write([1,"0","0",1,oe(D),W(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(D),W(S+F),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ee.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 p=r.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=r.__addimage__.sHashCode=function(D){var S,K,F=0;if(typeof D=="string")for(K=D.length,S=0;S<K;S++)F=(F<<5)-F+D.charCodeAt(S),F|=0;else if(M(D))for(K=D.byteLength/2,S=0;S<K;S++)F=(F<<5)-F+D[S],F|=0;return F},b=r.__addimage__.validateStringAsBase64=function(D){(D=D||"").toString().trim();var S=!0;return D.length===0&&(S=!1),D.length%4!=0&&(S=!1),/^[A-Za-z0-9+/]+$/.test(D.substr(0,D.length-2))===!1&&(S=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(D.substr(-2))===!1&&(S=!1),S},I=r.__addimage__.extractImageFromDataUrl=function(D){var S=(D=D||"").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},N=r.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};r.__addimage__.isArrayBuffer=function(D){return N()&&D instanceof ArrayBuffer};var M=r.__addimage__.isArrayBufferView=function(D){return N()&&typeof Uint32Array!="undefined"&&(D instanceof Int8Array||D instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&D instanceof Uint8ClampedArray||D instanceof Int16Array||D instanceof Uint16Array||D instanceof Int32Array||D instanceof Uint32Array||D instanceof Float32Array||D instanceof Float64Array)},O=r.__addimage__.binaryStringToUint8Array=function(D){for(var S=D.length,K=new Uint8Array(S),F=0;F<S;F++)K[F]=D.charCodeAt(F);return K},P=r.__addimage__.arrayBufferToBinaryString=function(D){for(var S="",K=M(D)?D:new Uint8Array(D),F=0;F<K.length;F+=8192)S+=String.fromCharCode.apply(null,K.subarray(F,F+8192));return S};r.addImage=function(){var D,S,K,F,ee,Z,z,oe,W;if(typeof arguments[1]=="number"?(S=e,K=arguments[1],F=arguments[2],ee=arguments[3],Z=arguments[4],z=arguments[5],oe=arguments[6],W=arguments[7]):(S=arguments[1],K=arguments[2],F=arguments[3],ee=arguments[4],Z=arguments[5],z=arguments[6],oe=arguments[7],W=arguments[8]),Ht(D=arguments[0])==="object"&&!h(D)&&"imageData"in D){var ce=D;D=ce.imageData,S=ce.format||S||e,K=ce.x||K||0,F=ce.y||F||0,ee=ce.w||ce.width||ee,Z=ce.h||ce.height||Z,z=ce.alias||z,oe=ce.compression||oe,W=ce.rotation||ce.angle||W}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 x=_.call(this,D,S,z,oe);return m.call(this,K,F,ee,Z,x,W),this};var _=function(D,S,K,F){var ee,Z,z;if(typeof D=="string"&&n(D)===e){D=unescape(D);var oe=G(D,!1);(oe!==""||(oe=r.loadFile(D,!0))!==void 0)&&(D=oe)}if(h(D)&&(D=f(D,S)),S=n(D,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(((z=K)==null||z.length===0)&&(K=function(W){return typeof W=="string"||M(W)?v(W):M(W.data)?v(W.data):null}(D)),(ee=c.call(this,K))||(N()&&(D instanceof Uint8Array||S==="RGBA"||(Z=D,D=O(D))),ee=this["process"+S.toUpperCase()](D,l.call(this),K,function(W){return W&&typeof W=="string"&&(W=W.toUpperCase()),W in r.image_compression?W:p.NONE}(F),Z)),!ee)throw new Error("An unknown error occurred whilst processing the image.");return ee},G=r.__addimage__.convertBase64ToBinaryString=function(D,S){var K;S=typeof S!="boolean"||S;var F,ee="";if(typeof D=="string"){F=(K=I(D))!==null?K.data:D;try{ee=ul(F)}catch(Z){if(S)throw b(F)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Z.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ee};r.getImageProperties=function(D){var S,K,F="";if(h(D)&&(D=f(D)),typeof D=="string"&&n(D)===e&&((F=G(D,!1))===""&&(F=r.loadFile(D)||""),D=F),K=n(D),!u(K))throw new Error("addImage does not support files of type '"+K+"', please ensure that a plugin for '"+K+"' support is added.");if(!N()||D instanceof Uint8Array||(D=O(D)),!(S=this["process"+K.toUpperCase()](D)))throw new Error("An unknown error occurred whilst processing the image");return S.fileType=K,S}})(pt.API),function(r){var e=function(t){if(t!==void 0&&t!="")return!0};pt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),r.events.push(["putPage",function(t){for(var n,i,A,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 f=0;f<l.length;f++){n=l[f];var c=this.internal.pdfEscape,g=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(),p=this.internal.getEncryptor(m.objId),v=n.title||"Note";A="<</Type /Annot /Subtype /Text "+(i="/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(p(n.contents))+")",A+=" /Popup "+y.objId+" 0 R",A+=" /P "+o.objId+" 0 R",A+=" /T ("+c(p(v))+") >>",m.content=A;var b=m.objId+" 0 R";A="<</Type /Annot /Subtype /Popup "+(i="/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&&(A+=" /Open true"),A+=" >>",y.content=A,this.internal.write(m.objId,"0 R",y.objId,"0 R");break;case"freetext":i="/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";A="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+c(g(n.contents))+")",A+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+I+")",A+=" /Border [0 0 0]",A+=" >>",this.internal.write(A);break;case"link":if(n.options.name){var N=this.annotations._nameMap[n.options.name];n.options.pageNumber=N.page,n.options.top=N.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",A="",n.options.url)A="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+c(g(n.options.url))+") >>";else if(n.options.pageNumber)switch(A="<</Type /Annot /Subtype /Link "+i+"/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":A+=" /Fit]";break;case"FitH":A+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,A+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var M=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),A+=" /XYZ "+n.options.left+" "+M+" "+n.options.zoom+"]"}A!=""&&(A+=" >>",this.internal.write(A))}}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,i,A,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+i),h:l(n+A)},options:a,type:"link"})},r.textWithLink=function(t,n,i,A){var a,s,o=this.getTextWidth(t),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(A.maxWidth!==void 0){s=A.maxWidth;var u=this.splitTextToSize(t,s).length;a=Math.ceil(l*u)}else s=o,a=l;return this.text(t,n,i,A),i+=.2*l,A.align==="center"&&(n-=o/2),A.align==="right"&&(n-=o),this.link(n,i-l,s,a,A),o},r.getTextWidth=function(t){var n=this.internal.getFontSize();return this.getStringUnitWidth(t)*n/this.internal.scaleFactor}}(pt.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},i=[1570,1571,1573,1575];r.__arabicParser__={};var A=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)&&A(m)&&e[m.charCodeAt(0)].length<=2},o=r.__arabicParser__.isArabicAlfLetter=function(m){return a(m)&&i.indexOf(m.charCodeAt(0))>=0};r.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return a(m)&&A(m)&&e[m.charCodeAt(0)].length>=1};var l=r.__arabicParser__.arabicLetterHasFinalForm=function(m){return a(m)&&A(m)&&e[m.charCodeAt(0)].length>=2};r.__arabicParser__.arabicLetterHasInitialForm=function(m){return a(m)&&A(m)&&e[m.charCodeAt(0)].length>=3};var u=r.__arabicParser__.arabicLetterHasMedialForm=function(m){return a(m)&&A(m)&&e[m.charCodeAt(0)].length==4},h=r.__arabicParser__.resolveLigatures=function(m){var y=0,p=t,v="",b=0;for(y=0;y<m.length;y+=1)p[m.charCodeAt(y)]!==void 0?(b++,typeof(p=p[m.charCodeAt(y)])=="number"&&(v+=String.fromCharCode(p),p=t,b=0),y===m.length-1&&(p=t,v+=m.charAt(y-(b-1)),y-=b-1,b=0)):(p=t,v+=m.charAt(y-b),y-=b,b=0);return v};r.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&n[m.charCodeAt(0)]!==void 0};var f=r.__arabicParser__.getCorrectForm=function(m,y,p){return a(m)?A(m)===!1?-1:!l(m)||!a(y)&&!a(p)||!a(p)&&s(y)||s(m)&&!a(y)||s(m)&&o(y)||s(m)&&s(y)?0:u(m)&&a(y)&&!s(y)&&a(p)&&l(p)?3:s(m)||!a(p)?1:2:-1},c=function(m){var y=0,p=0,v=0,b="",I="",N="",M=(m=m||"").split("\\s+"),O=[];for(y=0;y<M.length;y+=1){for(O.push(""),p=0;p<M[y].length;p+=1)b=M[y][p],I=M[y][p-1],N=M[y][p+1],a(b)?(v=f(b,I,N),O[y]+=v!==-1?String.fromCharCode(e[b.charCodeAt(0)][v]):b):O[y]+=b;O[y]=h(O[y])}return O.join(" ")},g=r.__arabicParser__.processArabic=r.processArabic=function(){var m,y=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,p=[];if(Array.isArray(y)){var v=0;for(p=[],v=0;v<y.length;v+=1)Array.isArray(y[v])?p.push([c(y[v][0]),y[v][1],y[v][2]]):p.push([c(y[v])]);m=p}else m=c(y);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};r.events.push(["preProcessText",g])}(pt.API),pt.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 i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var A=[];Object.defineProperty(this,"childNodes",{get:function(){return A},set:function(s){A=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 i;if((t=t||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);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}])}(pt.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(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new A,this.internal.__cell__.pages=1},A=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 f=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return f},set:function(m){f=m}});var c=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(m){g=m}}),this};A.prototype.clone=function(){return new A(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},A.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(),f=l.scaleFactor||this.internal.scaleFactor,c=0,g=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 p=l.maxWidth;p>0?typeof o=="string"?o=this.splitTextToSize(o,p):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(b,I){return b.concat(y.splitTextToSize(I,p))},[])):o=Array.isArray(o)?o:[o];for(var v=0;v<o.length;v++)c<(m=this.getStringUnitWidth(o[v],{font:h})*u)&&(c=m);return c!==0&&(g=o.length),{w:c/=f,h:Math.max((g*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/f,0)}},r.cellAddPage=function(){n.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new A(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 A?arguments[0]:new A(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,f=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&&f&&(this.printHeaderRow(o.lineNumber,!0),o.y+=f[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,f){if(n.call(this),!u)throw new Error("No data for PDF table.");var c,g,m,y,p=[],v=[],b=[],I={},N={},M=[],O=[],P=(f=f||{}).autoSize||!1,_=f.printHeaders!==!1,G=f.css&&f.css["font-size"]!==void 0?16*f.css["font-size"]:f.fontSize||12,D=f.margins||Object.assign({width:this.getPageWidth()},e),S=typeof f.padding=="number"?f.padding:3,K=f.headerBackgroundColor||"#c8c8c8",F=f.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=_,this.internal.__cell__.margins=D,this.internal.__cell__.table_font_size=G,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=K,this.internal.__cell__.headerTextColor=F,this.setFontSize(G),h==null)v=p=Object.keys(u[0]),b=p.map(function(){return"left"});else if(Array.isArray(h)&&Ht(h[0])==="object")for(p=h.map(function(ce){return ce.name}),v=h.map(function(ce){return ce.prompt||ce.name||""}),b=h.map(function(ce){return ce.align||"left"}),c=0;c<h.length;c+=1)N[h[c].name]=h[c].width*(19.049976/25.4);else Array.isArray(h)&&typeof h[0]=="string"&&(v=p=h,b=p.map(function(){return"left"}));if(P||Array.isArray(h)&&typeof h[0]=="string")for(c=0;c<p.length;c+=1){for(I[y=p[c]]=u.map(function(ce){return ce[y]}),this.setFont(void 0,"bold"),M.push(this.getTextDimensions(v[c],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=I[y],this.setFont(void 0,"normal"),m=0;m<g.length;m+=1)M.push(this.getTextDimensions(g[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);N[y]=Math.max.apply(null,M)+S+S,M=[]}if(_){var ee={};for(c=0;c<p.length;c+=1)ee[p[c]]={},ee[p[c]].text=v[c],ee[p[c]].align=b[c];var Z=s.call(this,ee,N);O=p.map(function(ce){return new A(o,l,N[ce],Z,ee[ce].text,void 0,ee[ce].align)}),this.setTableHeaderRow(O),this.printHeaderRow(1,!1)}var z=h.reduce(function(ce,ie){return ce[ie.name]=ie.align,ce},{});for(c=0;c<u.length;c+=1){"rowStart"in f&&f.rowStart instanceof Function&&f.rowStart({row:c,data:u[c]},this);var oe=s.call(this,u[c],N);for(m=0;m<p.length;m+=1){var W=u[c][p[m]];"cellStart"in f&&f.cellStart instanceof Function&&f.cellStart({row:c,col:m,data:W},this),a.call(this,new A(o,l,N[p[m]],oe,W,c+2,z[p[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,f=this.internal.scaleFactor;return Object.keys(o).map(function(c){var g=o[c];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,l[c]-u-u)},this).map(function(c){return this.getLineHeightFactor()*c.length*h/f+u+u},this).reduce(function(c,g){return Math.max(c,g)},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 A(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var f=[],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,f.push(u)),u.lineNumber=o;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,u),this.setTextColor(g)}f.length>0&&this.setTableHeaderRow(f),this.setFont(void 0,"normal"),t=!1}}(pt.API);var mB={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},vB=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Cg=gB(vB),wB=[100,200,300,400,500,600,700,800,900],aQ=gB(wB);function Eg(r){var e=r.family.replace(/"|'/g,"").toLowerCase(),t=function(A){return mB[A=A||"normal"]?A:"normal"}(r.style),n=function(A){if(!A)return 400;if(typeof A=="number")return A>=100&&A<=900&&A%100==0?A:400;if(/^\d00$/.test(A))return parseInt(A);switch(A){case"bold":return 700;case"normal":default:return 400}}(r.weight),i=function(A){return typeof Cg[A=A||"normal"]=="number"?A:"normal"}(r.stretch);return{family:e,style:t,weight:n,stretch:i,src:r.src||[],ref:r.ref||{name:e,style:[i,t,n].join(" ")}}}function yB(r,e,t,n){var i;for(i=t;i>=0&&i<e.length;i+=n)if(r[e[i]])return r[e[i]];for(i=t;i>=0&&i<e.length;i-=n)if(r[e[i]])return r[e[i]]}var sQ={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},bB={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function BB(r){return[r.stretch,r.style,r.weight,r.family].join(" ")}function oQ(r,e,t){for(var n=(t=t||{}).defaultFontFamily||"times",i=Object.assign({},sQ,t.genericFontFamilies||{}),A=null,a=null,s=0;s<e.length;++s)if(i[(A=Eg(e[s])).family]&&(A.family=i[A.family]),r.hasOwnProperty(A.family)){a=r[A.family];break}if(!(a=a||r[n]))throw new Error("Could not find a font-family for the rule '"+BB(A)+"' and default family '"+n+"'.");if(a=function(o,l){if(l[o])return l[o];var u=Cg[o],h=u<=Cg.normal?-1:1,f=yB(l,vB,u,h);if(!f)throw new Error("Could not find a matching font-stretch value for "+o);return f}(A.stretch,a),a=function(o,l){if(l[o])return l[o];for(var u=mB[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)}(A.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=aQ[o],h=yB(l,wB,u,o<400?-1:1);if(!h)throw new Error("Could not find a matching font-weight for value "+o);return h}(A.weight,a)))throw new Error("Failed to resolve a font for the rule '"+BB(A)+"'.");return a}function xB(r){return r.trimLeft()}function lQ(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 uQ(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 Cc,CB,EB,Sg=["times"];(function(r){var e,t,n,i,A,a,s,o,l,u=function(x){return x=x||{},this.isStrokeTransparent=x.isStrokeTransparent||!1,this.strokeOpacity=x.strokeOpacity||1,this.strokeStyle=x.strokeStyle||"#000000",this.fillStyle=x.fillStyle||"#000000",this.isFillTransparent=x.isFillTransparent||!1,this.fillOpacity=x.fillOpacity||1,this.font=x.font||"10px sans-serif",this.textBaseline=x.textBaseline||"alphabetic",this.textAlign=x.textAlign||"left",this.lineWidth=x.lineWidth||1,this.lineJoin=x.lineJoin||"miter",this.lineCap=x.lineCap||"butt",this.path=x.path||[],this.transform=x.transform!==void 0?x.transform.clone():new o,this.globalCompositeOperation=x.globalCompositeOperation||"normal",this.globalAlpha=x.globalAlpha||1,this.clip_path=x.clip_path||[],this.currentPoint=x.currentPoint||new a,this.miterLimit=x.miterLimit||10,this.lastPoint=x.lastPoint||new a,this.lineDashOffset=x.lineDashOffset||0,this.lineDash=x.lineDash||[],this.margin=x.margin||[0,0,0,0],this.prevPageLastElemOffset=x.prevPageLastElemOffset||0,this.ignoreClearRect=typeof x.ignoreClearRect!="boolean"||x.ignoreClearRect,this};r.events.push(["initialized",function(){this.context2d=new h(this),e=this.internal.f2,t=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,A=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,l=new u}]);var h=function(x){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=x;Object.defineProperty(this,"pdf",{get:function(){return H}});var V=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return V},set:function(de){V=!!de}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(de){q=!!de}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(de){isNaN(de)||($=de)}});var L=0;Object.defineProperty(this,"posY",{get:function(){return L},set:function(de){isNaN(de)||(L=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 Q=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Q},set:function(de){Q=de}});var te=0;Object.defineProperty(this,"lastBreak",{get:function(){return te},set:function(de){te=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 X=[];Object.defineProperty(this,"ctxStack",{get:function(){return X},set:function(de){X=de}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(de){var U;U=f(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=f(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 ne=null;function ve(de,U){if(ne===null){var B=function(C){var R=[];return Object.keys(C).forEach(function(ae){C[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},R.push(ue))})}),R}(de.getFontList());ne=function(C){for(var R={},ae=0;ae<C.length;++ae){var fe=Eg(C[ae]),ue=fe.family,xe=fe.stretch,Ue=fe.style,Ie=fe.weight;R[ue]=R[ue]||{},R[ue][xe]=R[ue][xe]||{},R[ue][xe][Ue]=R[ue][xe][Ue]||{},R[ue][xe][Ue][Ie]=fe}return R}(B.concat(U))}return ne}var k=null;Object.defineProperty(this,"fontFaces",{get:function(){return k},set:function(de){ne=null,k=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],C=(U[2],U[3]),R=U[4],ae=(U[5],U[6]),fe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(R)[2];R=Math.floor(fe==="px"?parseFloat(R)*this.pdf.internal.scaleFactor:fe==="em"?parseFloat(R)*this.pdf.getFontSize():parseFloat(R)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(R);var ue=function(rt){var ft,qe,jt=[],ut=rt.trim();if(ut==="")return Sg;if(ut in bB)return[bB[ut]];for(;ut!=="";){switch(qe=null,ft=(ut=xB(ut)).charAt(0)){case'"':case"'":qe=lQ(ut.substring(1),ft);break;default:qe=uQ(ut)}if(qe===null||(jt.push(qe[0]),(ut=xB(qe[1]))!==""&&ut.charAt(0)!==","))return Sg;ut=ut.replace(/^,/,"")}return jt}(ae);if(this.fontFaces){var xe=oQ(ve(this.pdf,this.fontFaces),ue.map(function(rt){return{family:rt,stretch:"normal",weight:C,style:B}}));this.pdf.setFont(xe.ref.name,xe.ref.style)}else{var Ue="";(C==="bold"||parseInt(C,10)>=700||B==="bold")&&(Ue="bold"),B==="italic"&&(Ue+="italic"),Ue.length===0&&(Ue="normal");for(var Ie="",ke={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"},ze=0;ze<ue.length;ze++){if(this.pdf.internal.getFont(ue[ze],Ue,{noFallback:!0,disableWarning:!0})!==void 0){Ie=ue[ze];break}if(Ue==="bolditalic"&&this.pdf.internal.getFont(ue[ze],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ie=ue[ze],Ue="bold";else if(this.pdf.internal.getFont(ue[ze],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ie=ue[ze],Ue="normal";break}}if(Ie===""){for(var Xe=0;Xe<ue.length;Xe++)if(ke[ue[Xe]]){Ie=ke[ue[Xe]];break}}Ie=Ie===""?"Times":Ie,this.pdf.setFont(Ie,Ue)}}}}),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(x){this.lineDash=x},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(x,H){if(isNaN(x)||isNaN(H))throw rr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var V=this.ctx.transform.applyToPoint(new a(x,H));this.path.push({type:"mt",x:V.x,y:V.y}),this.ctx.lastPoint=new a(x,H)},h.prototype.closePath=function(){var x=new a(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&Ht(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){x=new a(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(x.x,x.y)},h.prototype.lineTo=function(x,H){if(isNaN(x)||isNaN(H))throw rr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var V=this.ctx.transform.applyToPoint(new a(x,H));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(x,H,V,q){if(isNaN(V)||isNaN(q)||isNaN(x)||isNaN(H))throw rr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new a(V,q)),L=this.ctx.transform.applyToPoint(new a(x,H));this.path.push({type:"qct",x1:L.x,y1:L.y,x:$.x,y:$.y}),this.ctx.lastPoint=new a($.x,$.y)},h.prototype.bezierCurveTo=function(x,H,V,q,$,L){if(isNaN($)||isNaN(L)||isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q))throw rr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Q=this.ctx.transform.applyToPoint(new a($,L)),te=this.ctx.transform.applyToPoint(new a(x,H)),se=this.ctx.transform.applyToPoint(new a(V,q));this.path.push({type:"bct",x1:te.x,y1:te.y,x2:se.x,y2:se.y,x:Q.x,y:Q.y}),this.ctx.lastPoint=new a(Q.x,Q.y)},h.prototype.arc=function(x,H,V,q,$,L){if(isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q)||isNaN($))throw rr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(L=!!L,!this.ctx.transform.isIdentity){var Q=this.ctx.transform.applyToPoint(new a(x,H));x=Q.x,H=Q.y;var te=this.ctx.transform.applyToPoint(new a(0,V)),se=this.ctx.transform.applyToPoint(new a(0,0));V=Math.sqrt(Math.pow(te.x-se.x,2)+Math.pow(te.y-se.y,2))}Math.abs($-q)>=2*Math.PI&&(q=0,$=2*Math.PI),this.path.push({type:"arc",x,y:H,radius:V,startAngle:q,endAngle:$,counterclockwise:L})},h.prototype.arcTo=function(x,H,V,q,$){throw new Error("arcTo not implemented.")},h.prototype.rect=function(x,H,V,q){if(isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q))throw rr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(x,H),this.lineTo(x+V,H),this.lineTo(x+V,H+q),this.lineTo(x,H+q),this.lineTo(x,H),this.lineTo(x+V,H),this.lineTo(x,H)},h.prototype.fillRect=function(x,H,V,q){if(isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q))throw rr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!c.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(x,H,V,q),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},h.prototype.strokeRect=function(x,H,V,q){if(isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q))throw rr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(x,H,V,q),this.stroke())},h.prototype.clearRect=function(x,H,V,q){if(isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q))throw rr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(x,H,V,q))},h.prototype.save=function(x){x=typeof x!="boolean"||x;for(var H=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(H),x){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},h.prototype.restore=function(x){x=typeof x!="boolean"||x;for(var H=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(H),x&&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 f=function(x){var H,V,q,$;if(x.isCanvasGradient===!0&&(x=x.getColor()),!x)return{r:0,g:0,b:0,a:0,style:x};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(x))H=0,V=0,q=0,$=0;else{var L=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(x);if(L!==null)H=parseInt(L[1]),V=parseInt(L[2]),q=parseInt(L[3]),$=1;else if((L=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(x))!==null)H=parseInt(L[1]),V=parseInt(L[2]),q=parseInt(L[3]),$=parseFloat(L[4]);else{if($=1,typeof x=="string"&&x.charAt(0)!=="#"){var Q=new aB(x);x=Q.ok?Q.toHex():"#000000"}x.length===4?(H=x.substring(1,2),H+=H,V=x.substring(2,3),V+=V,q=x.substring(3,4),q+=q):(H=x.substring(1,3),V=x.substring(3,5),q=x.substring(5,7)),H=parseInt(H,16),V=parseInt(V,16),q=parseInt(q,16)}}return{r:H,g:V,b:q,a:$,style:x}},c=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(x,H,V,q){if(isNaN(H)||isNaN(V)||typeof x!="string")throw rr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!c.call(this)){var $=oe(this.ctx.transform.rotation),L=this.ctx.transform.scaleX;S.call(this,{text:x,x:H,y:V,scale:L,angle:$,align:this.textAlign,maxWidth:q})}},h.prototype.strokeText=function(x,H,V,q){if(isNaN(H)||isNaN(V)||typeof x!="string")throw rr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){q=isNaN(q)?void 0:q;var $=oe(this.ctx.transform.rotation),L=this.ctx.transform.scaleX;S.call(this,{text:x,x:H,y:V,scale:L,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:q})}},h.prototype.measureText=function(x){if(typeof x!="string")throw rr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,V=this.pdf.internal.scaleFactor,q=H.internal.getFontSize(),$=H.getStringUnitWidth(x)*q/H.internal.scaleFactor,L=function(Q){var te=(Q=Q||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return te}}),this};return new L({width:$*=Math.round(96*V/72*1e4)/1e4})},h.prototype.scale=function(x,H){if(isNaN(x)||isNaN(H))throw rr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var V=new o(x,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(V)},h.prototype.rotate=function(x){if(isNaN(x))throw rr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new o(Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},h.prototype.translate=function(x,H){if(isNaN(x)||isNaN(H))throw rr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var V=new o(1,0,0,1,x,H);this.ctx.transform=this.ctx.transform.multiply(V)},h.prototype.transform=function(x,H,V,q,$,L){if(isNaN(x)||isNaN(H)||isNaN(V)||isNaN(q)||isNaN($)||isNaN(L))throw rr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Q=new o(x,H,V,q,$,L);this.ctx.transform=this.ctx.transform.multiply(Q)},h.prototype.setTransform=function(x,H,V,q,$,L){x=isNaN(x)?1:x,H=isNaN(H)?0:H,V=isNaN(V)?0:V,q=isNaN(q)?1:q,$=isNaN($)?0:$,L=isNaN(L)?0:L,this.ctx.transform=new o(x,H,V,q,$,L)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(x,H,V,q,$,L,Q,te,se){var X=this.pdf.getImageProperties(x),ne=1,ve=1,k=1,de=1;q!==void 0&&te!==void 0&&(k=te/q,de=se/$,ne=X.width/q*te/q,ve=X.height/$*se/$),L===void 0&&(L=H,Q=V,H=0,V=0),q!==void 0&&te===void 0&&(te=q,se=$),q===void 0&&te===void 0&&(te=X.width,se=X.height);for(var U,B=this.ctx.transform.decompose(),C=oe(B.rotate.shx),R=new o,ae=(R=(R=(R=R.multiply(B.translate)).multiply(B.skew)).multiply(B.scale)).applyToRectangle(new s(L-H*k,Q-V*de,q*ne,$*ve)),fe=y.call(this,ae),ue=[],xe=0;xe<fe.length;xe+=1)ue.indexOf(fe[xe])===-1&&ue.push(fe[xe]);if(b(ue),this.autoPaging)for(var Ue=ue[0],Ie=ue[ue.length-1],ke=Ue;ke<Ie+1;ke++){this.pdf.setPage(ke);var ze=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Xe=ke===1?this.posY+this.margin[0]:this.margin[0],rt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ft=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],qe=ke===1?0:rt+(ke-2)*ft;if(this.ctx.clip_path.length!==0){var jt=this.path;U=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(U,this.posX+this.margin[3],-qe+Xe+this.ctx.prevPageLastElemOffset),N.call(this,"fill",!0),this.path=jt}var ut=JSON.parse(JSON.stringify(ae));ut=v([ut],this.posX+this.margin[3],-qe+Xe+this.ctx.prevPageLastElemOffset)[0];var fr=(ke>Ue||ke<Ie)&&m.call(this);fr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ze,ft,null).clip().discardPath()),this.pdf.addImage(x,"JPEG",ut.x,ut.y,ut.w,ut.h,null,null,C),fr&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(x,"JPEG",ae.x,ae.y,ae.w,ae.h,null,null,C)};var y=function(x,H,V){var q=[];H=H||this.pdf.internal.pageSize.width,V=V||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(x.type){default:case"mt":case"lt":q.push(Math.floor((x.y+$)/V)+1);break;case"arc":q.push(Math.floor((x.y+$-x.radius)/V)+1),q.push(Math.floor((x.y+$+x.radius)/V)+1);break;case"qct":var L=W(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x,x.y);q.push(Math.floor((L.y+$)/V)+1),q.push(Math.floor((L.y+L.h+$)/V)+1);break;case"bct":var Q=ce(this.ctx.lastPoint.x,this.ctx.lastPoint.y,x.x1,x.y1,x.x2,x.y2,x.x,x.y);q.push(Math.floor((Q.y+$)/V)+1),q.push(Math.floor((Q.y+Q.h+$)/V)+1);break;case"rect":q.push(Math.floor((x.y+$)/V)+1),q.push(Math.floor((x.y+x.h+$)/V)+1)}for(var te=0;te<q.length;te+=1)for(;this.pdf.internal.getNumberOfPages()<q[te];)p.call(this);return q},p=function(){var x=this.fillStyle,H=this.strokeStyle,V=this.font,q=this.lineCap,$=this.lineWidth,L=this.lineJoin;this.pdf.addPage(),this.fillStyle=x,this.strokeStyle=H,this.font=V,this.lineCap=q,this.lineWidth=$,this.lineJoin=L},v=function(x,H,V){for(var q=0;q<x.length;q++)switch(x[q].type){case"bct":x[q].x2+=H,x[q].y2+=V;case"qct":x[q].x1+=H,x[q].y1+=V;case"mt":case"lt":case"arc":default:x[q].x+=H,x[q].y+=V}return x},b=function(x){return x.sort(function(H,V){return H-V})},I=function(x,H){for(var V,q,$=this.fillStyle,L=this.strokeStyle,Q=this.lineCap,te=this.lineWidth,se=Math.abs(te*this.ctx.transform.scaleX),X=this.lineJoin,ne=JSON.parse(JSON.stringify(this.path)),ve=JSON.parse(JSON.stringify(this.path)),k=[],de=0;de<ve.length;de++)if(ve[de].x!==void 0)for(var U=y.call(this,ve[de]),B=0;B<U.length;B+=1)k.indexOf(U[B])===-1&&k.push(U[B]);for(var C=0;C<k.length;C++)for(;this.pdf.internal.getNumberOfPages()<k[C];)p.call(this);if(b(k),this.autoPaging)for(var R=k[0],ae=k[k.length-1],fe=R;fe<ae+1;fe++){this.pdf.setPage(fe),this.fillStyle=$,this.strokeStyle=L,this.lineCap=Q,this.lineWidth=se,this.lineJoin=X;var ue=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],xe=fe===1?this.posY+this.margin[0]:this.margin[0],Ue=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ie=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ke=fe===1?0:Ue+(fe-2)*Ie;if(this.ctx.clip_path.length!==0){var ze=this.path;V=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(V,this.posX+this.margin[3],-ke+xe+this.ctx.prevPageLastElemOffset),N.call(this,x,!0),this.path=ze}if(q=JSON.parse(JSON.stringify(ne)),this.path=v(q,this.posX+this.margin[3],-ke+xe+this.ctx.prevPageLastElemOffset),H===!1||fe===0){var Xe=(fe>R||fe<ae)&&m.call(this);Xe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ue,Ie,null).clip().discardPath()),N.call(this,x,H),Xe&&this.pdf.restoreGraphicsState()}this.lineWidth=te}else this.lineWidth=se,N.call(this,x,H),this.lineWidth=te;this.path=ne},N=function(x,H){if((x!=="stroke"||H||!g.call(this))&&(x==="stroke"||H||!c.call(this))){for(var V,q,$=[],L=this.path,Q=0;Q<L.length;Q++){var te=L[Q];switch(te.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:te,deltas:[],abs:[]});break;case"lt":var se=$.length;if(L[Q-1]&&!isNaN(L[Q-1].x)&&(V=[te.x-L[Q-1].x,te.y-L[Q-1].y],se>0)){for(;se>=0;se--)if($[se-1].close!==!0&&$[se-1].begin!==!0){$[se-1].deltas.push(V),$[se-1].abs.push(te);break}}break;case"bct":V=[te.x1-L[Q-1].x,te.y1-L[Q-1].y,te.x2-L[Q-1].x,te.y2-L[Q-1].y,te.x-L[Q-1].x,te.y-L[Q-1].y],$[$.length-1].deltas.push(V);break;case"qct":var X=L[Q-1].x+2/3*(te.x1-L[Q-1].x),ne=L[Q-1].y+2/3*(te.y1-L[Q-1].y),ve=te.x+2/3*(te.x1-te.x),k=te.y+2/3*(te.y1-te.y),de=te.x,U=te.y;V=[X-L[Q-1].x,ne-L[Q-1].y,ve-L[Q-1].x,k-L[Q-1].y,de-L[Q-1].x,U-L[Q-1].y],$[$.length-1].deltas.push(V);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(te)}}q=H?null:x==="stroke"?"stroke":"fill";for(var B=!1,C=0;C<$.length;C++)if($[C].arc)for(var R=$[C].abs,ae=0;ae<R.length;ae++){var fe=R[ae];fe.type==="arc"?P.call(this,fe.x,fe.y,fe.radius,fe.startAngle,fe.endAngle,fe.counterclockwise,void 0,H,!B):K.call(this,fe.x,fe.y),B=!0}else if($[C].close===!0)this.pdf.internal.out("h"),B=!1;else if($[C].begin!==!0){var ue=$[C].start.x,xe=$[C].start.y;F.call(this,$[C].deltas,ue,xe),B=!0}q&&_.call(this,q),H&&G.call(this)}},M=function(x){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,V=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return x-V;case"top":return x+H-V;case"hanging":return x+H-2*V;case"middle":return x+H/2-V;case"ideographic":return x;case"alphabetic":default:return x}},O=function(x){return x+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var x=function(){};return x.colorStops=[],x.addColorStop=function(H,V){this.colorStops.push([H,V])},x.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},x.isCanvasGradient=!0,x},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(x,H,V,q,$,L,Q,te,se){for(var X=Z.call(this,V,q,$,L),ne=0;ne<X.length;ne++){var ve=X[ne];ne===0&&(se?D.call(this,ve.x1+x,ve.y1+H):K.call(this,ve.x1+x,ve.y1+H)),ee.call(this,x,H,ve.x2,ve.y2,ve.x3,ve.y3,ve.x4,ve.y4)}te?G.call(this):_.call(this,Q)},_=function(x){switch(x){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},G=function(){this.pdf.clip(),this.pdf.discardPath()},D=function(x,H){this.pdf.internal.out(t(x)+" "+n(H)+" m")},S=function(x){var H;switch(x.align){case"right":case"end":H="right";break;case"center":H="center";break;case"left":case"start":default:H="left"}var V=this.pdf.getTextDimensions(x.text),q=M.call(this,x.y),$=O.call(this,q)-V.h,L=this.ctx.transform.applyToPoint(new a(x.x,q)),Q=this.ctx.transform.decompose(),te=new o;te=(te=(te=te.multiply(Q.translate)).multiply(Q.skew)).multiply(Q.scale);for(var se,X,ne,ve=this.ctx.transform.applyToRectangle(new s(x.x,q,V.w,V.h)),k=te.applyToRectangle(new s(x.x,$,V.w,V.h)),de=y.call(this,k),U=[],B=0;B<de.length;B+=1)U.indexOf(de[B])===-1&&U.push(de[B]);if(b(U),this.autoPaging)for(var C=U[0],R=U[U.length-1],ae=C;ae<R+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],xe=this.pdf.internal.pageSize.height-this.margin[2],Ue=xe-this.margin[0],Ie=this.pdf.internal.pageSize.width-this.margin[1],ke=Ie-this.margin[3],ze=ae===1?0:ue+(ae-2)*Ue;if(this.ctx.clip_path.length!==0){var Xe=this.path;se=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(se,this.posX+this.margin[3],-1*ze+fe),N.call(this,"fill",!0),this.path=Xe}var rt=v([JSON.parse(JSON.stringify(k))],this.posX+this.margin[3],-ze+fe+this.ctx.prevPageLastElemOffset)[0];x.scale>=.01&&(X=this.pdf.internal.getFontSize(),this.pdf.setFontSize(X*x.scale),ne=this.lineWidth,this.lineWidth=ne*x.scale);var ft=this.autoPaging!=="text";if(ft||rt.y+rt.h<=xe){if(ft||rt.y>=fe&&rt.x<=Ie){var qe=ft?x.text:this.pdf.splitTextToSize(x.text,x.maxWidth||Ie-rt.x)[0],jt=v([JSON.parse(JSON.stringify(ve))],this.posX+this.margin[3],-ze+fe+this.ctx.prevPageLastElemOffset)[0],ut=ft&&(ae>C||ae<R)&&m.call(this);ut&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ke,Ue,null).clip().discardPath()),this.pdf.text(qe,jt.x,jt.y,{angle:x.angle,align:H,renderingMode:x.renderingMode}),ut&&this.pdf.restoreGraphicsState()}}else rt.y<xe&&(this.ctx.prevPageLastElemOffset+=xe-rt.y);x.scale>=.01&&(this.pdf.setFontSize(X),this.lineWidth=ne)}else x.scale>=.01&&(X=this.pdf.internal.getFontSize(),this.pdf.setFontSize(X*x.scale),ne=this.lineWidth,this.lineWidth=ne*x.scale),this.pdf.text(x.text,L.x+this.posX,L.y+this.posY,{angle:x.angle,align:H,renderingMode:x.renderingMode,maxWidth:x.maxWidth}),x.scale>=.01&&(this.pdf.setFontSize(X),this.lineWidth=ne)},K=function(x,H,V,q){V=V||0,q=q||0,this.pdf.internal.out(t(x+V)+" "+n(H+q)+" l")},F=function(x,H,V){return this.pdf.lines(x,H,V,null,null)},ee=function(x,H,V,q,$,L,Q,te){this.pdf.internal.out([e(i(V+x)),e(A(q+H)),e(i($+x)),e(A(L+H)),e(i(Q+x)),e(A(te+H)),"c"].join(" "))},Z=function(x,H,V,q){for(var $=2*Math.PI,L=Math.PI/2;H>V;)H-=$;var Q=Math.abs(V-H);Q<$&&q&&(Q=$-Q);for(var te=[],se=q?-1:1,X=H;Q>1e-5;){var ne=X+se*Math.min(Q,L);te.push(z.call(this,x,X,ne)),Q-=Math.abs(ne-X),X=ne}return te},z=function(x,H,V){var q=(V-H)/2,$=x*Math.cos(q),L=x*Math.sin(q),Q=$,te=-L,se=Q*Q+te*te,X=se+Q*$+te*L,ne=4/3*(Math.sqrt(2*se*X)-X)/(Q*L-te*$),ve=Q-ne*te,k=te+ne*Q,de=ve,U=-k,B=q+H,C=Math.cos(B),R=Math.sin(B);return{x1:x*Math.cos(H),y1:x*Math.sin(H),x2:ve*C-k*R,y2:ve*R+k*C,x3:de*C-U*R,y3:de*R+U*C,x4:x*Math.cos(V),y4:x*Math.sin(V)}},oe=function(x){return 180*x/Math.PI},W=function(x,H,V,q,$,L){var Q=x+.5*(V-x),te=H+.5*(q-H),se=$+.5*(V-$),X=L+.5*(q-L),ne=Math.min(x,$,Q,se),ve=Math.max(x,$,Q,se),k=Math.min(H,L,te,X),de=Math.max(H,L,te,X);return new s(ne,k,ve-ne,de-k)},ce=function(x,H,V,q,$,L,Q,te){var se,X,ne,ve,k,de,U,B,C,R,ae,fe,ue,xe,Ue=V-x,Ie=q-H,ke=$-V,ze=L-q,Xe=Q-$,rt=te-L;for(X=0;X<41;X++)C=(U=(ne=x+(se=X/40)*Ue)+se*((k=V+se*ke)-ne))+se*(k+se*($+se*Xe-k)-U),R=(B=(ve=H+se*Ie)+se*((de=q+se*ze)-ve))+se*(de+se*(L+se*rt-de)-B),X==0?(ae=C,fe=R,ue=C,xe=R):(ae=Math.min(ae,C),fe=Math.min(fe,R),ue=Math.max(ue,C),xe=Math.max(xe,R));return new s(Math.round(ae),Math.round(fe),Math.round(ue-ae),Math.round(xe-fe))},ie=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var x,H,V=(x=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:x,lineDashOffset:H}));this.prevLineDash!==V&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=V)}}})(pt.API),function(r){var e=function(A){var a,s,o,l,u,h,f,c,g,m;for(s=[],o=0,l=(A+=a="\0\0\0\0".slice(A.length%4||4)).length;l>o;o+=4)(u=(A.charCodeAt(o)<<24)+(A.charCodeAt(o+1)<<16)+(A.charCodeAt(o+2)<<8)+A.charCodeAt(o+3))!==0?(h=(u=((u=((u=((u=(u-(m=u%85))/85)-(g=u%85))/85)-(c=u%85))/85)-(f=u%85))/85)%85,s.push(h+33,f+33,c+33,g+33,m+33)):s.push(122);return function(y,p){for(var v=p;v>0;v--)y.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},t=function(A){var a,s,o,l,u,h=String,f="length",c=255,g="charCodeAt",m="slice",y="replace";for(A[m](-2),A=A[m](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),o=[],l=0,u=(A+=a="uuuuu"[m](A[f]%5||5))[f];u>l;l+=5)s=52200625*(A[g](l)-33)+614125*(A[g](l+1)-33)+7225*(A[g](l+2)-33)+85*(A[g](l+3)-33)+(A[g](l+4)-33),o.push(c&s>>24,c&s>>16,c&s>>8,c&s);return function(p,v){for(var b=v;b>0;b--)p.pop()}(o,a[f]),h.fromCharCode.apply(h,o)},n=function(A){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((A=A.replace(/\s/g,"")).indexOf(">")!==-1&&(A=A.substr(0,A.indexOf(">"))),A.length%2&&(A+="0"),a.test(A)===!1)return"";for(var s="",o=0;o<A.length;o+=2)s+=String.fromCharCode("0x"+(A[o]+A[o+1]));return s},i=function(A){for(var a=new Uint8Array(A.length),s=A.length;s--;)a[s]=A.charCodeAt(s);return A=(a=dg(a)).reduce(function(o,l){return o+String.fromCharCode(l)},"")};r.processDataByFilters=function(A,a){var s=0,o=A||"",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=i(o),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(pt.API),function(r){r.loadFile=function(e,t,n){return function(i,A,a){A=A!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,l,u){var h=new XMLHttpRequest,f=0,c=function(g){var m=g.length,y=[],p=String.fromCharCode;for(f=0;f<m;f+=1)y.push(p(255&g.charCodeAt(f)));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)}(i,A,a)}catch(o){}return s}(e,t,n)},r.loadImageFile=r.loadFile}(pt.API),function(r){function e(){return(mt.html2canvas?Promise.resolve(mt.html2canvas):Promise.resolve().then(()=>tD)).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(mt.DOMPurify?Promise.resolve(mt.DOMPurify):Promise.resolve().then(()=>_D)).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=Ht(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"},i=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},A=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)};(A.prototype=Object.create(Promise.prototype)).constructor=A,A.convert=function(a,s){return a.__proto__=s||A.prototype,a},A.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"}},A.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:i("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.")}})},A.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.")}},A.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),f=l.firstChild;f;f=f.nextSibling)u!==!0&&f.nodeType===1&&f.nodeName==="SCRIPT"||h.appendChild(o(f,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=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("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"})},A.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)})},A.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 f=0;f<l.length;++f){var c=l[f],g=c.src.find(function(m){return m.format==="truetype"});g&&o.addFont(g.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)})},A.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})},A.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},A.prototype.output=function(a,s,o){return(o=o||"pdf").toLowerCase()==="img"||o.toLowerCase()==="image"?this.outputImg(a,s):this.outputPdf(a,s)},A.prototype.outputPdf=function(a,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,s)})},A.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.'}})},A.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)})},A.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},A.prototype.set=function(a){if(n(a)!=="object")return this;var s=Object.keys(a||{}).map(function(o){if(o in A.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)})},A.prototype.get=function(a,s){return this.then(function(){var o=a in A.template.prop?this.prop[a]:this.opt[a];return s?s(o):o})},A.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)},A.prototype.setPageSize=function(a){function s(o,l){return Math.floor(o*l/72*96)}return this.then(function(){(a=a||pt.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})},A.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},A.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)},A.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})})},A.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:A.convert(Object.assign({},this),Promise.prototype),u=o.call(l,a,s);return A.convert(u,this.__proto__)},A.prototype.thenExternal=function(a,s){return Promise.prototype.then.call(this,a,s)},A.prototype.thenList=function(a){var s=this;return a.forEach(function(o){s=s.thenCore(o)}),s},A.prototype.catch=function(a){a&&(a=a.bind(this));var s=Promise.prototype.catch.call(this,a);return A.convert(s,this)},A.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},A.prototype.error=function(a){return this.then(function(){throw new Error(a)})},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,pt.getPageSize=function(a,s,o){if(Ht(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(),f={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,g=0,m=0;if(f.hasOwnProperty(h))g=f[h][1]/u,m=f[h][0]/u;else try{g=o[1],m=o[0]}catch(y){throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",m>g&&(c=m,m=g,g=c);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",g>m&&(c=m,m=g,g=c)}return{width:m,height:g,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(Eg):null;var o=new A(s);return s.worker?o:o.from(a).doCallback()}}(pt.API),pt.API.addJS=function(r){return EB=r,this.internal.events.subscribe("postPutResources",function(){Cc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Cc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),CB=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+EB+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Cc!==void 0&&CB!==void 0&&this.internal.out("/Names <</JavaScript "+Cc+" 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 i=t.outline.render().split(/\r\n/),A=0;A<i.length;A++){var a=i[A],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(A=0;A<l;A++){var h=t.internal.newObject();u.push(h);var f=t.internal.getPageInfo(A+1);t.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var c=t.internal.newObject();for(t.internal.write("<< /Names [ "),A=0;A<u.length;A++)t.internal.write("(page_"+(A+1)+")"+u[A]+" 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,i,A){var a={title:i,options:A,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 i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},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 i=this.ctx.pdf.internal.getVerticalCoordinateString,A=0;A<n.children.length;A++){var a=n.children[A];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(n)),A>0&&this.line("/Prev "+this.makeRef(n.children[A-1])),A<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[A+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 "+i(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
204
+ `},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
205
+ `+n.id+` 0 obj\r
206
+ <<\r
207
+ `},t.outline.objEnd=function(){this.ctx.val+=`>> \r
208
+ endobj\r
209
+ `},t.outline.count_r=function(n,i){for(var A=0;A<i.children.length;A++)n.count++,this.count_r(n,i.children[A]);return n.count}}])}(pt.API),function(r){var e=[192,193,194,195,196,197,198,199];r.processJPEG=function(t,n,i,A,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 f,c=256*h.charCodeAt(4)+h.charCodeAt(5),g=h.length,m={width:0,height:0,numcomponents:1},y=4;y<g;y+=2){if(y+=c,e.indexOf(h.charCodeAt(y+1))!==-1){f=256*h.charCodeAt(y+5)+h.charCodeAt(y+6),m={width:256*h.charCodeAt(y+7)+h.charCodeAt(y+8),height:f,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:i}}return u}}(pt.API);var Xs,Ec,SB,FB,IB,cQ=function(){var r,e,t;function n(A){var a,s,o,l,u,h,f,c,g,m,y,p,v,b;for(this.data=A,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},h=null;;){switch(a=this.readUInt32(),g=function(){var I,N;for(N=[],I=0;I<4;++I)N.push(String.fromCharCode(this.data[this.pos++]));return N}.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(g==="fdAT"&&(this.pos+=4,a-=4),A=(h!=null?h.data:void 0)||this.imgData,p=0;0<=a?p<a:p>a;0<=a?++p:--p)A.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(v=0;0<=m?v<m:v>m;0<=m?++v:--v)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":f=(y=this.read(a)).indexOf(0),c=String.fromCharCode.apply(String,y.slice(0,f)),this.text[c]=String.fromCharCode.apply(String,y.slice(f+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(A){var a,s;for(s=[],a=0;0<=A?a<A:a>A;0<=A?++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(A){var a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),o=0,l=this;if(A==null&&(A=this.imgData),A.length===0)return new Uint8Array(0);function u(h,f,c,g){var m,y,p,v,b,I,N,M,O,P,_,G,D,S,K,F,ee,Z,z,oe,W,ce=Math.ceil((l.width-h)/c),ie=Math.ceil((l.height-f)/g),x=l.width==ce&&l.height==ie;for(S=a*ce,G=x?s:new Uint8Array(S*ie),I=A.length,D=0,y=0;D<ie&&o<I;){switch(A[o++]){case 0:for(v=ee=0;ee<S;v=ee+=1)G[y++]=A[o++];break;case 1:for(v=Z=0;Z<S;v=Z+=1)m=A[o++],b=v<a?0:G[y-a],G[y++]=(m+b)%256;break;case 2:for(v=z=0;z<S;v=z+=1)m=A[o++],p=(v-v%a)/a,K=D&&G[(D-1)*S+p*a+v%a],G[y++]=(K+m)%256;break;case 3:for(v=oe=0;oe<S;v=oe+=1)m=A[o++],p=(v-v%a)/a,b=v<a?0:G[y-a],K=D&&G[(D-1)*S+p*a+v%a],G[y++]=(m+Math.floor((b+K)/2))%256;break;case 4:for(v=W=0;W<S;v=W+=1)m=A[o++],p=(v-v%a)/a,b=v<a?0:G[y-a],D===0?K=F=0:(K=G[(D-1)*S+p*a+v%a],F=p&&G[(D-1)*S+(p-1)*a+v%a]),N=b+K-F,M=Math.abs(N-b),P=Math.abs(N-K),_=Math.abs(N-F),O=M<=P&&M<=_?b:P<=_?K:F,G[y++]=(m+O)%256;break;default:throw new Error("Invalid filter algorithm: "+A[o-1])}if(!x){var H=((f+D*g)*l.width+h)*a,V=D*S;for(v=0;v<ce;v+=1){for(var q=0;q<a;q+=1)s[H++]=G[V++];H+=(c-1)*a}}D++}}return A=jL(A),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 A,a,s,o,l,u,h,f,c;for(s=this.palette,u=this.transparency.indexed||[],l=new Uint8Array((u.length||0)+s.length),o=0,A=0,a=h=0,f=s.length;h<f;a=h+=3)l[o++]=s[a],l[o++]=s[a+1],l[o++]=s[a+2],l[o++]=(c=u[A++])!=null?c:255;return l},n.prototype.copyToImageData=function(A,a){var s,o,l,u,h,f,c,g,m,y,p;if(o=this.colors,m=null,s=this.hasAlphaChannel,this.palette.length&&(m=(p=this._decodedPalette)!=null?p:this._decodedPalette=this.decodePalette(),o=4,s=!0),g=(l=A.data||A).length,h=m||a,u=f=0,o===1)for(;u<g;)c=m?4*a[u/4]:f,y=h[c++],l[u++]=y,l[u++]=y,l[u++]=y,l[u++]=s?h[c++]:255,f=c;else for(;u<g;)c=m?4*a[u/4]:f,l[u++]=h[c++],l[u++]=h[c++],l[u++]=h[c++],l[u++]=s?h[c++]:255,f=c},n.prototype.decode=function(){var A;return A=new Uint8Array(this.width*this.height*4),this.copyToImageData(A,this.decodePixels()),A};var i=function(){if(Object.prototype.toString.call(mt)==="[object Window]"){try{e=mt.document.createElement("canvas"),t=e.getContext("2d")}catch(A){return!1}return!0}return!1};return i(),r=function(A){var a;if(i()===!0)return t.width=A.width,t.height=A.height,t.clearRect(0,0,A.width,A.height),t.putImageData(A,0,0),(a=new Image).src=e.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(A){var a,s,o,l,u,h,f,c;if(this.animation){for(c=[],s=u=0,h=(f=this.animation.frames).length;u<h;s=++u)a=f[s],o=A.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(A,a){var s,o,l;return s=(o=this.animation.frames)[a],l=o[a-1],a===0&&A.clearRect(0,0,this.width,this.height),(l!=null?l.disposeOp:void 0)===1?A.clearRect(l.xOffset,l.yOffset,l.width,l.height):(l!=null?l.disposeOp:void 0)===2&&A.putImageData(l.imageData,l.xOffset,l.yOffset),s.blendOp===0&&A.clearRect(s.xOffset,s.yOffset,s.width,s.height),A.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(A){var a,s,o,l,u,h,f=this;return s=0,h=this.animation,l=h.numFrames,o=h.frames,u=h.numPlays,(a=function(){var c,g;if(c=s++%l,g=o[c],f.renderFrame(A,c),l>1&&s/l<u)return f.animation._timeout=setTimeout(a,g.delay)})()},n.prototype.stopAnimation=function(){var A;return clearTimeout((A=this.animation)!=null?A._timeout:void 0)},n.prototype.render=function(A){var a,s;return A._png&&A._png.stopAnimation(),A._png=this,A.width=this.width,A.height=this.height,a=A.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}();/**
210
+ * @license
211
+ *
212
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
213
+ *
214
+ * Permission is hereby granted, free of charge, to any person obtaining
215
+ * a copy of this software and associated documentation files (the
216
+ * "Software"), to deal in the Software without restriction, including
217
+ * without limitation the rights to use, copy, modify, merge, publish,
218
+ * distribute, sublicense, and/or sell copies of the Software, and to
219
+ * permit persons to whom the Software is furnished to do so, subject to
220
+ * the following conditions:
221
+ *
222
+ * The above copyright notice and this permission notice shall be
223
+ * included in all copies or substantial portions of the Software.
224
+ *
225
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
226
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
227
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
228
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
229
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
230
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
231
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
232
+ * ====================================================================
233
+ *//**
234
+ * @license
235
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
236
+ *
237
+ * https://github.com/deanm/omggif
238
+ *
239
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
240
+ * of this software and associated documentation files (the "Software"), to
241
+ * deal in the Software without restriction, including without limitation the
242
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
243
+ * sell copies of the Software, and to permit persons to whom the Software is
244
+ * furnished to do so, subject to the following conditions:
245
+ *
246
+ * The above copyright notice and this permission notice shall be included in
247
+ * all copies or substantial portions of the Software.
248
+ *
249
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
250
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
251
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
252
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
253
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
254
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
255
+ * IN THE SOFTWARE.
256
+ *
257
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
258
+ * including animation and compression. It does not rely on any specific
259
+ * underlying system, so should run in the browser, Node, or Plask.
260
+ */function hQ(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,i=r[e++],A=i>>7,a=1<<(7&i)+1;r[e++],r[e++];var s=null,o=null;A&&(s=e,o=a,e+=3*a);var l=!0,u=[],h=0,f=null,c=0,g=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,g=r[e++]|r[e++]<<8,e++;else for(e+=12;;){if(!((D=r[e++])>=0))throw Error("Invalid block size");if(D===0)break;e+=D}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,f=r[e++],!(1&m)&&(f=null),c=m>>2&7,e++;break;case 254:for(;;){if(!((D=r[e++])>=0))throw Error("Invalid block size");if(D===0)break;e+=D}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,p=r[e++]|r[e++]<<8,v=r[e++]|r[e++]<<8,b=r[e++]|r[e++]<<8,I=r[e++],N=I>>6&1,M=1<<(7&I)+1,O=s,P=o,_=!1;I>>7&&(_=!0,O=e,P=M,e+=3*M);var G=e;for(e++;;){var D;if(!((D=r[e++])>=0))throw Error("Invalid block size");if(D===0)break;e+=D}u.push({x:y,y:p,width:v,height:b,has_local_palette:_,palette_offset:O,palette_size:P,data_offset:G,data_length:e-G,transparent_index:f,interlaced:!!N,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 g},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),ee=F.width*F.height,Z=new Uint8Array(ee);UB(r,F.data_offset,Z,ee);var z=F.palette_offset,oe=F.transparent_index;oe===null&&(oe=256);var W=F.width,ce=t-W,ie=W,x=4*(F.y*t+F.x),H=4*((F.y+F.height)*t+F.x),V=x,q=4*ce;F.interlaced===!0&&(q+=4*t*7);for(var $=8,L=0,Q=Z.length;L<Q;++L){var te=Z[L];if(ie===0&&(ie=W,(V+=q)>=H&&(q=4*ce+4*t*($-1),V=x+(W+ce)*($<<1),$>>=1)),te===oe)V+=4;else{var se=r[z+3*te],X=r[z+3*te+1],ne=r[z+3*te+2];K[V++]=ne,K[V++]=X,K[V++]=se,K[V++]=255}--ie}},this.decodeAndBlitFrameRGBA=function(S,K){var F=this.frameInfo(S),ee=F.width*F.height,Z=new Uint8Array(ee);UB(r,F.data_offset,Z,ee);var z=F.palette_offset,oe=F.transparent_index;oe===null&&(oe=256);var W=F.width,ce=t-W,ie=W,x=4*(F.y*t+F.x),H=4*((F.y+F.height)*t+F.x),V=x,q=4*ce;F.interlaced===!0&&(q+=4*t*7);for(var $=8,L=0,Q=Z.length;L<Q;++L){var te=Z[L];if(ie===0&&(ie=W,(V+=q)>=H&&(q=4*ce+4*t*($-1),V=x+(W+ce)*($<<1),$>>=1)),te===oe)V+=4;else{var se=r[z+3*te],X=r[z+3*te+1],ne=r[z+3*te+2];K[V++]=se,K[V++]=X,K[V++]=ne,K[V++]=255}--ie}}}function UB(r,e,t,n){for(var i=r[e++],A=1<<i,a=A+1,s=a+1,o=i+1,l=(1<<o)-1,u=0,h=0,f=0,c=r[e++],g=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!==A){if(y===a)break;for(var p=y<s?y:m,v=0,b=p;b>A;)b=g[b]>>8,++v;var I=b;if(f+v+(p!==y?1:0)>n)return void rr.log("Warning, gif stream longer than expected.");t[f++]=I;var N=f+=v;for(p!==y&&(t[f++]=I),b=p;v--;)b=g[b],t[--N]=255&b,b>>=8;m!==null&&s<4096&&(g[s++]=m<<8|I,s>=l+1&&o<12&&(++o,l=l<<1|1)),m=y}else s=a+1,l=(1<<(o=i+1))-1,m=null}return f!==n&&rr.log("Warning, gif stream shorter than expected."),t}/**
261
+ * @license
262
+ Copyright (c) 2008, Adobe Systems Incorporated
263
+ All rights reserved.
264
+
265
+ Redistribution and use in source and binary forms, with or without
266
+ modification, are permitted provided that the following conditions are
267
+ met:
268
+
269
+ * Redistributions of source code must retain the above copyright notice,
270
+ this list of conditions and the following disclaimer.
271
+
272
+ * Redistributions in binary form must reproduce the above copyright
273
+ notice, this list of conditions and the following disclaimer in the
274
+ documentation and/or other materials provided with the distribution.
275
+
276
+ * Neither the name of Adobe Systems Incorporated nor the names of its
277
+ contributors may be used to endorse or promote products derived from
278
+ this software without specific prior written permission.
279
+
280
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
281
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
282
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
283
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
284
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
285
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
286
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
287
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
288
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
289
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
290
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
291
+ */function Fg(r){var e,t,n,i,A,a=Math.floor,s=new Array(64),o=new Array(64),l=new Array(64),u=new Array(64),h=new Array(65535),f=new Array(65535),c=new Array(64),g=new Array(64),m=[],y=0,p=7,v=new Array(64),b=new Array(64),I=new Array(64),N=new Array(256),M=new Array(2048),O=[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],P=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],G=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[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],ee=[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 Z(x,H){for(var V=0,q=0,$=new Array,L=1;L<=16;L++){for(var Q=1;Q<=x[L];Q++)$[H[q]]=[],$[H[q]][0]=V,$[H[q]][1]=L,q++,V++;V*=2}return $}function z(x){for(var H=x[0],V=x[1]-1;V>=0;)H&1<<V&&(y|=1<<p),V--,--p<0&&(y==255?(oe(255),oe(0)):oe(y),p=7,y=0)}function oe(x){m.push(x)}function W(x){oe(x>>8&255),oe(255&x)}function ce(x,H,V,q,$){for(var L,Q=$[0],te=$[240],se=function(R,ae){var fe,ue,xe,Ue,Ie,ke,ze,Xe,rt,ft,qe=0;for(rt=0;rt<8;++rt){fe=R[qe],ue=R[qe+1],xe=R[qe+2],Ue=R[qe+3],Ie=R[qe+4],ke=R[qe+5],ze=R[qe+6];var jt=fe+(Xe=R[qe+7]),ut=fe-Xe,fr=ue+ze,It=ue-ze,vt=xe+ke,dr=xe-ke,Ut=Ue+Ie,en=Ue-Ie,Kt=jt+Ut,ar=jt-Ut,Mt=fr+vt,Wt=fr-vt;R[qe]=Kt+Mt,R[qe+4]=Kt-Mt;var ot=.707106781*(Wt+ar);R[qe+2]=ar+ot,R[qe+6]=ar-ot;var Lt=.382683433*((Kt=en+dr)-(Wt=It+ut)),PA=.5411961*Kt+Lt,Vr=1.306562965*Wt+Lt,zn=.707106781*(Mt=dr+It),ni=ut+zn,dt=ut-zn;R[qe+5]=dt+PA,R[qe+3]=dt-PA,R[qe+1]=ni+Vr,R[qe+7]=ni-Vr,qe+=8}for(qe=0,rt=0;rt<8;++rt){fe=R[qe],ue=R[qe+8],xe=R[qe+16],Ue=R[qe+24],Ie=R[qe+32],ke=R[qe+40],ze=R[qe+48];var ii=fe+(Xe=R[qe+56]),Nn=fe-Xe,tn=ue+ze,Rr=ue-ze,Pt=xe+ke,rn=xe-ke,DA=Ue+Ie,bi=Ue-Ie,Rn=ii+DA,fn=ii-DA,Or=tn+Pt,Ai=tn-Pt;R[qe]=Rn+Or,R[qe+32]=Rn-Or;var On=.707106781*(Ai+fn);R[qe+16]=fn+On,R[qe+48]=fn-On;var ai=.382683433*((Rn=bi+rn)-(Ai=Rr+Nn)),cA=.5411961*Rn+ai,ba=1.306562965*Ai+ai,lt=.707106781*(Or=rn+Rr),ye=Nn+lt,Ge=Nn-lt;R[qe+40]=Ge+cA,R[qe+24]=Ge-cA,R[qe+8]=ye+ba,R[qe+56]=ye-ba,qe++}for(rt=0;rt<64;++rt)ft=R[rt]*ae[rt],c[rt]=ft>0?ft+.5|0:ft-.5|0;return c}(x,H),X=0;X<64;++X)g[O[X]]=se[X];var ne=g[0]-V;V=g[0],ne==0?z(q[0]):(z(q[f[L=32767+ne]]),z(h[L]));for(var ve=63;ve>0&&g[ve]==0;)ve--;if(ve==0)return z(Q),V;for(var k,de=1;de<=ve;){for(var U=de;g[de]==0&&de<=ve;)++de;var B=de-U;if(B>=16){k=B>>4;for(var C=1;C<=k;++C)z(te);B&=15}L=32767+g[de],z($[(B<<4)+f[L]]),z(h[L]),de++}return ve!=63&&z(Q),V}function ie(x){x=Math.min(Math.max(x,1),100),A!=x&&(function(H){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],q=0;q<64;q++){var $=a((V[q]*H+50)/100);$=Math.min(Math.max($,1),255),s[O[q]]=$}for(var L=[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],Q=0;Q<64;Q++){var te=a((L[Q]*H+50)/100);te=Math.min(Math.max(te,1),255),o[O[Q]]=te}for(var se=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],X=0,ne=0;ne<8;ne++)for(var ve=0;ve<8;ve++)l[X]=1/(s[O[X]]*se[ne]*se[ve]*8),u[X]=1/(o[O[X]]*se[ne]*se[ve]*8),X++}(x<50?Math.floor(5e3/x):Math.floor(200-2*x)),A=x)}this.encode=function(x,H){H&&ie(H),m=new Array,y=0,p=7,W(65496),W(65504),W(16),oe(74),oe(70),oe(73),oe(70),oe(0),oe(1),oe(1),oe(0),W(1),W(1),oe(0),oe(0),function(){W(65499),W(132),oe(0);for(var ue=0;ue<64;ue++)oe(s[ue]);oe(1);for(var xe=0;xe<64;xe++)oe(o[xe])}(),function(ue,xe){W(65472),W(17),oe(8),W(xe),W(ue),oe(3),oe(1),oe(17),oe(0),oe(2),oe(17),oe(1),oe(3),oe(17),oe(1)}(x.width,x.height),function(){W(65476),W(418),oe(0);for(var ue=0;ue<16;ue++)oe(P[ue+1]);for(var xe=0;xe<=11;xe++)oe(_[xe]);oe(16);for(var Ue=0;Ue<16;Ue++)oe(G[Ue+1]);for(var Ie=0;Ie<=161;Ie++)oe(D[Ie]);oe(1);for(var ke=0;ke<16;ke++)oe(S[ke+1]);for(var ze=0;ze<=11;ze++)oe(K[ze]);oe(17);for(var Xe=0;Xe<16;Xe++)oe(F[Xe+1]);for(var rt=0;rt<=161;rt++)oe(ee[rt])}(),W(65498),W(12),oe(3),oe(1),oe(0),oe(2),oe(17),oe(3),oe(17),oe(0),oe(63),oe(0);var V=0,q=0,$=0;y=0,p=7,this.encode.displayName="_encode_";for(var L,Q,te,se,X,ne,ve,k,de,U=x.data,B=x.width,C=x.height,R=4*B,ae=0;ae<C;){for(L=0;L<R;){for(X=R*ae+L,ve=-1,k=0,de=0;de<64;de++)ne=X+(k=de>>3)*R+(ve=4*(7&de)),ae+k>=C&&(ne-=R*(ae+1+k-C)),L+ve>=R&&(ne-=L+ve-R+4),Q=U[ne++],te=U[ne++],se=U[ne++],v[de]=(M[Q]+M[te+256>>0]+M[se+512>>0]>>16)-128,b[de]=(M[Q+768>>0]+M[te+1024>>0]+M[se+1280>>0]>>16)-128,I[de]=(M[Q+1280>>0]+M[te+1536>>0]+M[se+1792>>0]>>16)-128;V=ce(v,l,V,e,n),q=ce(b,u,q,t,i),$=ce(I,u,$,t,i),L+=32}ae+=8}if(p>=0){var fe=[];fe[1]=p+1,fe[0]=(1<<p+1)-1,z(fe)}return W(65497),new Uint8Array(m)},r=r||50,function(){for(var x=String.fromCharCode,H=0;H<256;H++)N[H]=x(H)}(),e=Z(P,_),t=Z(S,K),n=Z(G,D),i=Z(F,ee),function(){for(var x=1,H=2,V=1;V<=15;V++){for(var q=x;q<H;q++)f[32767+q]=V,h[32767+q]=[],h[32767+q][1]=V,h[32767+q][0]=q;for(var $=-(H-1);$<=-x;$++)f[32767+$]=V,h[32767+$]=[],h[32767+$][1]=V,h[32767+$][0]=H-1+$;x<<=1,H<<=1}}(),function(){for(var x=0;x<256;x++)M[x]=19595*x,M[x+256>>0]=38470*x,M[x+512>>0]=7471*x+32768,M[x+768>>0]=-11059*x,M[x+1024>>0]=-21709*x,M[x+1280>>0]=32768*x+8421375,M[x+1536>>0]=-27439*x,M[x+1792>>0]=-5329*x}(),ie(r)}/**
292
+ * @license
293
+ * Copyright (c) 2017 Aras Abbasi
294
+ *
295
+ * Licensed under the MIT License.
296
+ * http://opensource.org/licenses/mit-license
297
+ */function Qi(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 TB(r){function e(P){if(!P)throw Error("assert :P")}function t(P,_,G){for(var D=0;4>D;D++)if(P[_+D]!=G.charCodeAt(D))return!0;return!1}function n(P,_,G,D,S){for(var K=0;K<S;K++)P[_+K]=G[D+K]}function i(P,_,G,D){for(var S=0;S<D;S++)P[_+S]=G}function A(P){return new Int32Array(P)}function a(P,_){for(var G=[],D=0;D<P;D++)G.push(new _);return G}function s(P,_){var G=[];return function D(S,K,F){for(var ee=F[K],Z=0;Z<ee&&(S.push(F.length>K+1?[]:new _),!(F.length<K+1));Z++)D(S[Z],K+1,F)}(G,0,P),G}var o=function(){var P=this;function _(d,w){for(var T=1<<w-1>>>0;d&T;)T>>>=1;return T?(d&T-1)+T:d}function G(d,w,T,j,Y){e(!(j%T));do d[w+(j-=T)]=Y;while(0<j)}function D(d,w,T,j,Y){if(e(2328>=Y),512>=Y)var re=A(512);else if((re=A(Y))==null)return 0;return function(Ae,le,he,pe,be,Te){var _e,Se,He=le,Re=1<<he,Be=A(16),Ce=A(16);for(e(be!=0),e(pe!=null),e(Ae!=null),e(0<he),Se=0;Se<be;++Se){if(15<pe[Se])return 0;++Be[pe[Se]]}if(Be[0]==be)return 0;for(Ce[1]=0,_e=1;15>_e;++_e){if(Be[_e]>1<<_e)return 0;Ce[_e+1]=Ce[_e]+Be[_e]}for(Se=0;Se<be;++Se)_e=pe[Se],0<pe[Se]&&(Te[Ce[_e]++]=Se);if(Ce[15]==1)return(pe=new S).g=0,pe.value=Te[0],G(Ae,He,1,Re,pe),Re;var Pe,Me=-1,De=Re-1,it=0,Je=1,gt=1,Ze=1<<he;for(Se=0,_e=1,be=2;_e<=he;++_e,be<<=1){if(Je+=gt<<=1,0>(gt-=Be[_e]))return 0;for(;0<Be[_e];--Be[_e])(pe=new S).g=_e,pe.value=Te[Se++],G(Ae,He+it,be,Ze,pe),it=_(it,_e)}for(_e=he+1,be=2;15>=_e;++_e,be<<=1){if(Je+=gt<<=1,0>(gt-=Be[_e]))return 0;for(;0<Be[_e];--Be[_e]){if(pe=new S,(it&De)!=Me){for(He+=Ze,Pe=1<<(Me=_e)-he;15>Me&&!(0>=(Pe-=Be[Me]));)++Me,Pe<<=1;Re+=Ze=1<<(Pe=Me-he),Ae[le+(Me=it&De)].g=Pe+he,Ae[le+Me].value=He-le-Me}pe.g=_e-he,pe.value=Te[Se++],G(Ae,He+(it>>he),be,Ze,pe),it=_(it,_e)}}return Je!=2*Ce[15]-1?0:Re}(d,w,T,j,Y,re)}function S(){this.value=this.g=0}function K(){this.value=this.g=0}function F(){this.G=a(5,S),this.H=A(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(dn,K)}function ee(d,w,T,j){e(d!=null),e(w!=null),e(2147483648>j),d.Ca=254,d.I=0,d.b=-8,d.Ka=0,d.oa=w,d.pa=T,d.Jd=w,d.Yc=T+j,d.Zc=4<=j?T+j-4+1:T,L(d)}function Z(d,w){for(var T=0;0<w--;)T|=te(d,128)<<w;return T}function z(d,w){var T=Z(d,w);return Q(d)?-T:T}function oe(d,w,T,j){var Y,re=0;for(e(d!=null),e(w!=null),e(4294967288>j),d.Sb=j,d.Ra=0,d.u=0,d.h=0,4<j&&(j=4),Y=0;Y<j;++Y)re+=w[T+Y]<<8*Y;d.Ra=re,d.bb=j,d.oa=w,d.pa=T}function W(d){for(;8<=d.u&&d.bb<d.Sb;)d.Ra>>>=8,d.Ra+=d.oa[d.pa+d.bb]<<Ho-8>>>0,++d.bb,d.u-=8;V(d)&&(d.h=1,d.u=0)}function ce(d,w){if(e(0<=w),!d.h&&w<=Do){var T=H(d)&Po[w];return d.u+=w,W(d),T}return d.h=1,d.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 x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function H(d){return d.Ra>>>(d.u&Ho-1)>>>0}function V(d){return e(d.bb<=d.Sb),d.h||d.bb==d.Sb&&d.u>Ho}function q(d,w){d.u=w,d.h=V(d)}function $(d){d.u>=Eu&&(e(d.u>=Eu),W(d))}function L(d){e(d!=null&&d.oa!=null),d.pa<d.Zc?(d.I=(d.oa[d.pa++]|d.I<<8)>>>0,d.b+=8):(e(d!=null&&d.oa!=null),d.pa<d.Yc?(d.b+=8,d.I=d.oa[d.pa++]|d.I<<8):d.Ka?d.b=0:(d.I<<=8,d.b+=8,d.Ka=1))}function Q(d){return Z(d,1)}function te(d,w){var T=d.Ca;0>d.b&&L(d);var j=d.b,Y=T*w>>>8,re=(d.I>>>j>Y)+0;for(re?(T-=Y,d.I-=Y+1<<j>>>0):T=Y+1,j=T,Y=0;256<=j;)Y+=8,j>>=8;return j=7^Y+Gn[j],d.b-=j,d.Ca=(T<<j)-1,re}function se(d,w,T){d[w+0]=T>>24&255,d[w+1]=T>>16&255,d[w+2]=T>>8&255,d[w+3]=T>>0&255}function X(d,w){return d[w+0]<<0|d[w+1]<<8}function ne(d,w){return X(d,w)|d[w+2]<<16}function ve(d,w){return X(d,w)|X(d,w+2)<<16}function k(d,w){var T=1<<w;return e(d!=null),e(0<w),d.X=A(T),d.X==null?0:(d.Mb=32-w,d.Xa=w,1)}function de(d,w){e(d!=null),e(w!=null),e(d.Xa==w.Xa),n(w.X,0,d.X,0,1<<w.Xa)}function U(){this.X=[],this.Xa=this.Mb=0}function B(d,w,T,j){e(T!=null),e(j!=null);var Y=T[0],re=j[0];return Y==0&&(Y=(d*re+w/2)/w),re==0&&(re=(w*Y+d/2)/d),0>=Y||0>=re?0:(T[0]=Y,j[0]=re,1)}function C(d,w){return d+(1<<w)-1>>>w}function R(d,w){return((4278255360&d)+(4278255360&w)>>>0&4278255360)+((16711935&d)+(16711935&w)>>>0&16711935)>>>0}function ae(d,w){P[w]=function(T,j,Y,re,Ae,le,he){var pe;for(pe=0;pe<Ae;++pe){var be=P[d](le[he+pe-1],Y,re+pe);le[he+pe]=R(T[j+pe],be)}}}function fe(){this.ud=this.hd=this.jd=0}function ue(d,w){return((4278124286&(d^w))>>>1)+(d&w)>>>0}function xe(d){return 0<=d&&256>d?d:0>d?0:255<d?255:void 0}function Ue(d,w){return xe(d+(d-w+.5>>1))}function Ie(d,w,T){return Math.abs(w-T)-Math.abs(d-T)}function ke(d,w,T,j,Y,re,Ae){for(j=re[Ae-1],T=0;T<Y;++T)re[Ae+T]=j=R(d[w+T],j)}function ze(d,w,T,j,Y){var re;for(re=0;re<T;++re){var Ae=d[w+re],le=Ae>>8&255,he=16711935&(he=(he=16711935&Ae)+((le<<16)+le));j[Y+re]=(4278255360&Ae)+he>>>0}}function Xe(d,w){w.jd=d>>0&255,w.hd=d>>8&255,w.ud=d>>16&255}function rt(d,w,T,j,Y,re){var Ae;for(Ae=0;Ae<j;++Ae){var le=w[T+Ae],he=le>>>8,pe=le,be=255&(be=(be=le>>>16)+((d.jd<<24>>24)*(he<<24>>24)>>>5));pe=255&(pe=(pe=pe+((d.hd<<24>>24)*(he<<24>>24)>>>5))+((d.ud<<24>>24)*(be<<24>>24)>>>5)),Y[re+Ae]=(4278255360&le)+(be<<16)+pe}}function ft(d,w,T,j,Y){P[w]=function(re,Ae,le,he,pe,be,Te,_e,Se){for(he=Te;he<_e;++he)for(Te=0;Te<Se;++Te)pe[be++]=Y(le[j(re[Ae++])])},P[d]=function(re,Ae,le,he,pe,be,Te){var _e=8>>re.b,Se=re.Ea,He=re.K[0],Re=re.w;if(8>_e)for(re=(1<<re.b)-1,Re=(1<<_e)-1;Ae<le;++Ae){var Be,Ce=0;for(Be=0;Be<Se;++Be)Be&re||(Ce=j(he[pe++])),be[Te++]=Y(He[Ce&Re]),Ce>>=_e}else P["VP8LMapColor"+T](he,pe,He,Re,be,Te,Ae,le,Se)}}function qe(d,w,T,j,Y){for(T=w+T;w<T;){var re=d[w++];j[Y++]=re>>16&255,j[Y++]=re>>8&255,j[Y++]=re>>0&255}}function jt(d,w,T,j,Y){for(T=w+T;w<T;){var re=d[w++];j[Y++]=re>>16&255,j[Y++]=re>>8&255,j[Y++]=re>>0&255,j[Y++]=re>>24&255}}function ut(d,w,T,j,Y){for(T=w+T;w<T;){var re=(Ae=d[w++])>>16&240|Ae>>12&15,Ae=Ae>>0&240|Ae>>28&15;j[Y++]=re,j[Y++]=Ae}}function fr(d,w,T,j,Y){for(T=w+T;w<T;){var re=(Ae=d[w++])>>16&248|Ae>>13&7,Ae=Ae>>5&224|Ae>>3&31;j[Y++]=re,j[Y++]=Ae}}function It(d,w,T,j,Y){for(T=w+T;w<T;){var re=d[w++];j[Y++]=re>>0&255,j[Y++]=re>>8&255,j[Y++]=re>>16&255}}function vt(d,w,T,j,Y,re){if(re==0)for(T=w+T;w<T;)se(j,((re=d[w++])[0]>>24|re[1]>>8&65280|re[2]<<8&16711680|re[3]<<24)>>>0),Y+=32;else n(j,Y,d,w,T)}function dr(d,w){P[w][0]=P[d+"0"],P[w][1]=P[d+"1"],P[w][2]=P[d+"2"],P[w][3]=P[d+"3"],P[w][4]=P[d+"4"],P[w][5]=P[d+"5"],P[w][6]=P[d+"6"],P[w][7]=P[d+"7"],P[w][8]=P[d+"8"],P[w][9]=P[d+"9"],P[w][10]=P[d+"10"],P[w][11]=P[d+"11"],P[w][12]=P[d+"12"],P[w][13]=P[d+"13"],P[w][14]=P[d+"0"],P[w][15]=P[d+"0"]}function Ut(d){return d==Iw||d==Uw||d==sd||d==Tw}function en(){this.eb=[],this.size=this.A=this.fb=0}function Kt(){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 ar(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new en,this.f.kb=new Kt,this.sd=null}function Mt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Wt(){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 ot(d){return alert("todo:WebPSamplerProcessPlane"),d.T}function Lt(d,w){var T=d.T,j=w.ba.f.RGBA,Y=j.eb,re=j.fb+d.ka*j.A,Ae=Fi[w.ba.S],le=d.y,he=d.O,pe=d.f,be=d.N,Te=d.ea,_e=d.W,Se=w.cc,He=w.dc,Re=w.Mc,Be=w.Nc,Ce=d.ka,Pe=d.ka+d.T,Me=d.U,De=Me+1>>1;for(Ce==0?Ae(le,he,null,null,pe,be,Te,_e,pe,be,Te,_e,Y,re,null,null,Me):(Ae(w.ec,w.fc,le,he,Se,He,Re,Be,pe,be,Te,_e,Y,re-j.A,Y,re,Me),++T);Ce+2<Pe;Ce+=2)Se=pe,He=be,Re=Te,Be=_e,be+=d.Rc,_e+=d.Rc,re+=2*j.A,Ae(le,(he+=2*d.fa)-d.fa,le,he,Se,He,Re,Be,pe,be,Te,_e,Y,re-j.A,Y,re,Me);return he+=d.fa,d.j+Pe<d.o?(n(w.ec,w.fc,le,he,Me),n(w.cc,w.dc,pe,be,De),n(w.Mc,w.Nc,Te,_e,De),T--):1&Pe||Ae(le,he,null,null,pe,be,Te,_e,pe,be,Te,_e,Y,re+j.A,null,null,Me),T}function PA(d,w,T){var j=d.F,Y=[d.J];if(j!=null){var re=d.U,Ae=w.ba.S,le=Ae==ad||Ae==sd;w=w.ba.f.RGBA;var he=[0],pe=d.ka;he[0]=d.T,d.Kb&&(pe==0?--he[0]:(--pe,Y[0]-=d.width),d.j+d.ka+d.T==d.o&&(he[0]=d.o-d.j-pe));var be=w.eb;pe=w.fb+pe*w.A,d=or(j,Y[0],d.width,re,he,be,pe+(le?0:3),w.A),e(T==he),d&&Ut(Ae)&&Ei(be,pe,le,re,he,w.A)}return 0}function Vr(d){var w=d.ma,T=w.ba.S,j=11>T,Y=T==id||T==Ad||T==ad||T==Fw||T==12||Ut(T);if(w.memory=null,w.Ib=null,w.Jb=null,w.Nd=null,!xu(w.Oa,d,Y?11:12))return 0;if(Y&&Ut(T)&&$e(),d.da)alert("todo:use_scaling");else{if(j){if(w.Ib=ot,d.Kb){if(T=d.U+1>>1,w.memory=A(d.U+2*T),w.memory==null)return 0;w.ec=w.memory,w.fc=0,w.cc=w.ec,w.dc=w.fc+d.U,w.Mc=w.cc,w.Nc=w.dc+T,w.Ib=Lt,$e()}}else alert("todo:EmitYUV");Y&&(w.Jb=PA,j&&Fe())}if(j&&!zS){for(d=0;256>d;++d)Zq[d]=89858*(d-128)+ld>>od,rX[d]=-22014*(d-128)+ld,tX[d]=-45773*(d-128),eX[d]=113618*(d-128)+ld>>od;for(d=Lu;d<Qw;++d)w=76283*(d-16)+ld>>od,nX[d-Lu]=si(w,255),iX[d-Lu]=si(w+8>>4,15);zS=1}return 1}function zn(d){var w=d.ma,T=d.U,j=d.T;return e(!(1&d.ka)),0>=T||0>=j?0:(T=w.Ib(d,w),w.Jb!=null&&w.Jb(d,w,T),w.Dc+=T,1)}function ni(d){d.ma.memory=null}function dt(d,w,T,j){return ce(d,8)!=47?0:(w[0]=ce(d,14)+1,T[0]=ce(d,14)+1,j[0]=ce(d,1),ce(d,3)!=0?0:!d.h)}function ii(d,w){if(4>d)return d+1;var T=d-2>>1;return(2+(1&d)<<T)+ce(w,T)+1}function Nn(d,w){return 120<w?w-120:1<=(T=((T=Dq[w-1])>>4)*d+(8-(15&T)))?T:1;var T}function tn(d,w,T){var j=H(T),Y=d[w+=255&j].g-8;return 0<Y&&(q(T,T.u+8),j=H(T),w+=d[w].value,w+=j&(1<<Y)-1),q(T,T.u+d[w].g),d[w].value}function Rr(d,w,T){return T.g+=d.g,T.value+=d.value<<w>>>0,e(8>=T.g),d.g}function Pt(d,w,T){var j=d.xc;return e((w=j==0?0:d.vc[d.md*(T>>j)+(w>>j)])<d.Wb),d.Ya[w]}function rn(d,w,T,j){var Y=d.ab,re=d.c*w,Ae=d.C;w=Ae+w;var le=T,he=j;for(j=d.Ta,T=d.Ua;0<Y--;){var pe=d.gc[Y],be=Ae,Te=w,_e=le,Se=he,He=(he=j,le=T,pe.Ea);switch(e(be<Te),e(Te<=pe.nc),pe.hc){case 2:Yf(_e,Se,(Te-be)*He,he,le);break;case 0:var Re=be,Be=Te,Ce=he,Pe=le,Me=(Ze=pe).Ea;Re==0&&(Ew(_e,Se,null,null,1,Ce,Pe),ke(_e,Se+1,0,0,Me-1,Ce,Pe+1),Se+=Me,Pe+=Me,++Re);for(var De=1<<Ze.b,it=De-1,Je=C(Me,Ze.b),gt=Ze.K,Ze=Ze.w+(Re>>Ze.b)*Je;Re<Be;){var Vt=gt,qt=Ze,Dt=1;for(Su(_e,Se,Ce,Pe-Me,1,Ce,Pe);Dt<Me;){var Nt=(Dt&~it)+De;Nt>Me&&(Nt=Me),(0,Ea[Vt[qt++]>>8&15])(_e,Se+ +Dt,Ce,Pe+Dt-Me,Nt-Dt,Ce,Pe+Dt),Dt=Nt}Se+=Me,Pe+=Me,++Re&it||(Ze+=Je)}Te!=pe.nc&&n(he,le-He,he,le+(Te-be-1)*He,He);break;case 1:for(He=_e,Be=Se,Me=(_e=pe.Ea)-(Pe=_e&~(Ce=(Se=1<<pe.b)-1)),Re=C(_e,pe.b),De=pe.K,pe=pe.w+(be>>pe.b)*Re;be<Te;){for(it=De,Je=pe,gt=new fe,Ze=Be+Pe,Vt=Be+_e;Be<Ze;)Xe(it[Je++],gt),xs(gt,He,Be,Se,he,le),Be+=Se,le+=Se;Be<Vt&&(Xe(it[Je++],gt),xs(gt,He,Be,Me,he,le),Be+=Me,le+=Me),++be&Ce||(pe+=Re)}break;case 3:if(_e==he&&Se==le&&0<pe.b){for(Be=he,_e=He=le+(Te-be)*He-(Pe=(Te-be)*C(pe.Ea,pe.b)),Se=he,Ce=le,Re=[],Pe=(Me=Pe)-1;0<=Pe;--Pe)Re[Pe]=Se[Ce+Pe];for(Pe=Me-1;0<=Pe;--Pe)Be[_e+Pe]=Re[Pe];Bi(pe,be,Te,he,He,he,le)}else Bi(pe,be,Te,_e,Se,he,le)}le=j,he=T}he!=T&&n(j,T,le,he,re)}function DA(d,w){var T=d.V,j=d.Ba+d.c*d.C,Y=w-d.C;if(e(w<=d.l.o),e(16>=Y),0<Y){var re=d.l,Ae=d.Ta,le=d.Ua,he=re.width;if(rn(d,Y,T,j),Y=le=[le],e((T=d.C)<(j=w)),e(re.v<re.va),j>re.o&&(j=re.o),T<re.j){var pe=re.j-T;T=re.j,Y[0]+=pe*he}if(T>=j?T=0:(Y[0]+=4*re.v,re.ka=T-re.j,re.U=re.va-re.v,re.T=j-T,T=1),T){if(le=le[0],11>(T=d.ca).S){var be=T.f.RGBA,Te=(j=T.S,Y=re.U,re=re.T,pe=be.eb,be.A),_e=re;for(be=be.fb+d.Ma*be.A;0<_e--;){var Se=Ae,He=le,Re=Y,Be=pe,Ce=be;switch(j){case nd:Wn(Se,He,Re,Be,Ce);break;case id:kn(Se,He,Re,Be,Ce);break;case Iw:kn(Se,He,Re,Be,Ce),Ei(Be,Ce,0,Re,1,0);break;case OS:KA(Se,He,Re,Be,Ce);break;case Ad:vt(Se,He,Re,Be,Ce,1);break;case Uw:vt(Se,He,Re,Be,Ce,1),Ei(Be,Ce,0,Re,1,0);break;case ad:vt(Se,He,Re,Be,Ce,0);break;case sd:vt(Se,He,Re,Be,Ce,0),Ei(Be,Ce,1,Re,1,0);break;case Fw:Sa(Se,He,Re,Be,Ce);break;case Tw:Sa(Se,He,Re,Be,Ce),sr(Be,Ce,Re,1,0);break;case kS:jA(Se,He,Re,Be,Ce);break;default:e(0)}le+=he,be+=Te}d.Ma+=re}else alert("todo:EmitRescaledRowsYUVA");e(d.Ma<=T.height)}}d.C=w,e(d.C<=d.i)}function bi(d){var w;if(0<d.ua)return 0;for(w=0;w<d.Wb;++w){var T=d.Ya[w].G,j=d.Ya[w].H;if(0<T[1][j[1]+0].g||0<T[2][j[2]+0].g||0<T[3][j[3]+0].g)return 0}return 1}function Rn(d,w,T,j,Y,re){if(d.Z!=0){var Ae=d.qd,le=d.rd;for(e(Ta[d.Z]!=null);w<T;++w)Ta[d.Z](Ae,le,j,Y,j,Y,re),Ae=j,le=Y,Y+=re;d.qd=Ae,d.rd=le}}function fn(d,w){var T=d.l.ma,j=T.Z==0||T.Z==1?d.l.j:d.C;if(j=d.C<j?j:d.C,e(w<=d.l.o),w>j){var Y=d.l.width,re=T.ca,Ae=T.tb+Y*j,le=d.V,he=d.Ba+d.c*j,pe=d.gc;e(d.ab==1),e(pe[0].hc==3),Jf(pe[0],j,w,le,he,re,Ae),Rn(T,j,w,re,Ae,Y)}d.C=d.Ma=w}function Or(d,w,T,j,Y,re,Ae){var le=d.$/j,he=d.$%j,pe=d.m,be=d.s,Te=T+d.$,_e=Te;Y=T+j*Y;var Se=T+j*re,He=280+be.ua,Re=d.Pb?le:16777216,Be=0<be.ua?be.Wa:null,Ce=be.wc,Pe=Te<Se?Pt(be,he,le):null;e(d.C<re),e(Se<=Y);var Me=!1;e:for(;;){for(;Me||Te<Se;){var De=0;if(le>=Re){var it=Te-T;e((Re=d).Pb),Re.wd=Re.m,Re.xd=it,0<Re.s.ua&&de(Re.s.Wa,Re.s.vb),Re=le+Mq}if(he&Ce||(Pe=Pt(be,he,le)),e(Pe!=null),Pe.Qb&&(w[Te]=Pe.qb,Me=!0),!Me)if($(pe),Pe.jc){De=pe,it=w;var Je=Te,gt=Pe.pd[H(De)&dn-1];e(Pe.jc),256>gt.g?(q(De,De.u+gt.g),it[Je]=gt.value,De=0):(q(De,De.u+gt.g-256),e(256<=gt.value),De=gt.value),De==0&&(Me=!0)}else De=tn(Pe.G[0],Pe.H[0],pe);if(pe.h)break;if(Me||256>De){if(!Me)if(Pe.nd)w[Te]=(Pe.qb|De<<8)>>>0;else{if($(pe),Me=tn(Pe.G[1],Pe.H[1],pe),$(pe),it=tn(Pe.G[2],Pe.H[2],pe),Je=tn(Pe.G[3],Pe.H[3],pe),pe.h)break;w[Te]=(Je<<24|Me<<16|De<<8|it)>>>0}if(Me=!1,++Te,++he>=j&&(he=0,++le,Ae!=null&&le<=re&&!(le%16)&&Ae(d,le),Be!=null))for(;_e<Te;)De=w[_e++],Be.X[(506832829*De&4294967295)>>>Be.Mb]=De}else if(280>De){if(De=ii(De-256,pe),it=tn(Pe.G[4],Pe.H[4],pe),$(pe),it=Nn(j,it=ii(it,pe)),pe.h)break;if(Te-T<it||Y-Te<De)break e;for(Je=0;Je<De;++Je)w[Te+Je]=w[Te+Je-it];for(Te+=De,he+=De;he>=j;)he-=j,++le,Ae!=null&&le<=re&&!(le%16)&&Ae(d,le);if(e(Te<=Y),he&Ce&&(Pe=Pt(be,he,le)),Be!=null)for(;_e<Te;)De=w[_e++],Be.X[(506832829*De&4294967295)>>>Be.Mb]=De}else{if(!(De<He))break e;for(Me=De-280,e(Be!=null);_e<Te;)De=w[_e++],Be.X[(506832829*De&4294967295)>>>Be.Mb]=De;De=Te,e(!(Me>>>(it=Be).Xa)),w[De]=it.X[Me],Me=!0}Me||e(pe.h==V(pe))}if(d.Pb&&pe.h&&Te<Y)e(d.m.h),d.a=5,d.m=d.wd,d.$=d.xd,0<d.s.ua&&de(d.s.vb,d.s.Wa);else{if(pe.h)break e;Ae!=null&&Ae(d,le>re?re:le),d.a=0,d.$=Te-T}return 1}return d.a=3,0}function Ai(d){e(d!=null),d.vc=null,d.yc=null,d.Ya=null;var w=d.Wa;w!=null&&(w.X=null),d.vb=null,e(d!=null)}function On(){var d=new Cw;return d==null?null:(d.a=0,d.xb=HS,dr("Predictor","VP8LPredictors"),dr("Predictor","VP8LPredictors_C"),dr("PredictorAdd","VP8LPredictorsAdd"),dr("PredictorAdd","VP8LPredictorsAdd_C"),Yf=ze,xs=rt,Wn=qe,kn=jt,Sa=ut,jA=fr,KA=It,P.VP8LMapColor32b=Mo,P.VP8LMapColor8b=Zf,d)}function ai(d,w,T,j,Y){var re=1,Ae=[d],le=[w],he=j.m,pe=j.s,be=null,Te=0;e:for(;;){if(T)for(;re&&ce(he,1);){var _e=Ae,Se=le,He=j,Re=1,Be=He.m,Ce=He.gc[He.ab],Pe=ce(Be,2);if(He.Oc&1<<Pe)re=0;else{switch(He.Oc|=1<<Pe,Ce.hc=Pe,Ce.Ea=_e[0],Ce.nc=Se[0],Ce.K=[null],++He.ab,e(4>=He.ab),Pe){case 0:case 1:Ce.b=ce(Be,3)+2,Re=ai(C(Ce.Ea,Ce.b),C(Ce.nc,Ce.b),0,He,Ce.K),Ce.K=Ce.K[0];break;case 3:var Me,De=ce(Be,8)+1,it=16<De?0:4<De?1:2<De?2:3;if(_e[0]=C(Ce.Ea,it),Ce.b=it,Me=Re=ai(De,1,0,He,Ce.K)){var Je,gt=De,Ze=Ce,Vt=1<<(8>>Ze.b),qt=A(Vt);if(qt==null)Me=0;else{var Dt=Ze.K[0],Nt=Ze.w;for(qt[0]=Ze.K[0][0],Je=1;Je<1*gt;++Je)qt[Je]=R(Dt[Nt+Je],qt[Je-1]);for(;Je<4*Vt;++Je)qt[Je]=0;Ze.K[0]=null,Ze.K[0]=qt,Me=1}}Re=Me;break;case 2:break;default:e(0)}re=Re}}if(Ae=Ae[0],le=le[0],re&&ce(he,1)&&!(re=1<=(Te=ce(he,4))&&11>=Te)){j.a=3;break e}var nr;if(nr=re)t:{var er,Et,$r,qn=j,Gr=Ae,Xn=le,Xt=Te,li=T,ui=qn.m,an=qn.s,pn=[null],Dn=1,Ii=0,pA=Hq[Xt];r:for(;;){if(li&&ce(ui,1)){var sn=ce(ui,3)+2,GA=C(Gr,sn),Is=C(Xn,sn),$o=GA*Is;if(!ai(GA,Is,0,qn,pn))break r;for(pn=pn[0],an.xc=sn,er=0;er<$o;++er){var _a=pn[er]>>8&65535;pn[er]=_a,_a>=Dn&&(Dn=_a+1)}}if(ui.h)break r;for(Et=0;5>Et;++Et){var Sr=PS[Et];!Et&&0<Xt&&(Sr+=1<<Xt),Ii<Sr&&(Ii=Sr)}var Nw=a(Dn*pA,S),WS=Dn,qS=a(WS,F);if(qS==null)var cd=null;else e(65536>=WS),cd=qS;var Qu=A(Ii);if(cd==null||Qu==null||Nw==null){qn.a=1;break r}var hd=Nw;for(er=$r=0;er<Dn;++er){var Xi=cd[er],Go=Xi.G,Wo=Xi.H,XS=0,fd=1,YS=0;for(Et=0;5>Et;++Et){Sr=PS[Et],Go[Et]=hd,Wo[Et]=$r,!Et&&0<Xt&&(Sr+=1<<Xt);i:{var dd,Rw=Sr,pd=qn,Nu=Qu,sX=hd,oX=$r,Ow=0,La=pd.m,lX=ce(La,1);if(i(Nu,0,0,Rw),lX){var uX=ce(La,1)+1,cX=ce(La,1),JS=ce(La,cX==0?1:8);Nu[JS]=1,uX==2&&(Nu[JS=ce(La,8)]=1);var gd=1}else{var ZS=A(19),eF=ce(La,4)+4;if(19<eF){pd.a=3;var md=0;break i}for(dd=0;dd<eF;++dd)ZS[Pq[dd]]=ce(La,3);var kw=void 0,Ru=void 0,tF=pd,hX=ZS,vd=Rw,rF=Nu,Pw=0,Qa=tF.m,nF=8,iF=a(128,S);n:for(;D(iF,0,7,hX,19);){if(ce(Qa,1)){var fX=2+2*ce(Qa,3);if((kw=2+ce(Qa,fX))>vd)break n}else kw=vd;for(Ru=0;Ru<vd&&kw--;){$(Qa);var AF=iF[0+(127&H(Qa))];q(Qa,Qa.u+AF.g);var qo=AF.value;if(16>qo)rF[Ru++]=qo,qo!=0&&(nF=qo);else{var dX=qo==16,aF=qo-16,pX=Oq[aF],sF=ce(Qa,Rq[aF])+pX;if(Ru+sF>vd)break n;for(var gX=dX?nF:0;0<sF--;)rF[Ru++]=gX}}Pw=1;break n}Pw||(tF.a=3),gd=Pw}(gd=gd&&!La.h)&&(Ow=D(sX,oX,8,Nu,Rw)),gd&&Ow!=0?md=Ow:(pd.a=3,md=0)}if(md==0)break r;if(fd&&kq[Et]==1&&(fd=hd[$r].g==0),XS+=hd[$r].g,$r+=md,3>=Et){var Ou,Dw=Qu[0];for(Ou=1;Ou<Sr;++Ou)Qu[Ou]>Dw&&(Dw=Qu[Ou]);YS+=Dw}}if(Xi.nd=fd,Xi.Qb=0,fd&&(Xi.qb=(Go[3][Wo[3]+0].value<<24|Go[1][Wo[1]+0].value<<16|Go[2][Wo[2]+0].value)>>>0,XS==0&&256>Go[0][Wo[0]+0].value&&(Xi.Qb=1,Xi.qb+=Go[0][Wo[0]+0].value<<8)),Xi.jc=!Xi.Qb&&6>YS,Xi.jc){var wd,WA=Xi;for(wd=0;wd<dn;++wd){var Na=wd,Ra=WA.pd[Na],yd=WA.G[0][WA.H[0]+Na];256<=yd.value?(Ra.g=yd.g+256,Ra.value=yd.value):(Ra.g=0,Ra.value=0,Na>>=Rr(yd,8,Ra),Na>>=Rr(WA.G[1][WA.H[1]+Na],16,Ra),Na>>=Rr(WA.G[2][WA.H[2]+Na],0,Ra),Rr(WA.G[3][WA.H[3]+Na],24,Ra))}}}an.vc=pn,an.Wb=Dn,an.Ya=cd,an.yc=Nw,nr=1;break t}nr=0}if(!(re=nr)){j.a=3;break e}if(0<Te){if(pe.ua=1<<Te,!k(pe.Wa,Te)){j.a=1,re=0;break e}}else pe.ua=0;var Hw=j,oF=Ae,mX=le,Mw=Hw.s,jw=Mw.xc;if(Hw.c=oF,Hw.i=mX,Mw.md=C(oF,jw),Mw.wc=jw==0?-1:(1<<jw)-1,T){j.xb=Wq;break e}if((be=A(Ae*le))==null){j.a=1,re=0;break e}re=(re=Or(j,be,0,Ae,le,le,null))&&!he.h;break e}return re?(Y!=null?Y[0]=be:(e(be==null),e(T)),j.$=0,T||Ai(pe)):Ai(pe),re}function cA(d,w){var T=d.c*d.i,j=T+w+16*w;return e(d.c<=w),d.V=A(j),d.V==null?(d.Ta=null,d.Ua=0,d.a=1,0):(d.Ta=d.V,d.Ua=d.Ba+T+w,1)}function ba(d,w){var T=d.C,j=w-T,Y=d.V,re=d.Ba+d.c*T;for(e(w<=d.l.o);0<j;){var Ae=16<j?16:j,le=d.l.ma,he=d.l.width,pe=he*Ae,be=le.ca,Te=le.tb+he*T,_e=d.Ta,Se=d.Ua;rn(d,Ae,Y,re),Dr(_e,Se,be,Te,pe),Rn(le,T,T+Ae,be,Te,he),j-=Ae,Y+=Ae*d.c,T+=Ae}e(T==w),d.C=d.Ma=w}function lt(){this.ub=this.yd=this.td=this.Rb=0}function ye(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ge(){this.Fb=this.Bb=this.Cb=0,this.Zb=A(4),this.Lb=A(4)}function Ye(){this.Yb=function(){var d=[];return function w(T,j,Y){for(var re=Y[j],Ae=0;Ae<re&&(T.push(Y.length>j+1?[]:0),!(Y.length<j+1));Ae++)w(T[Ae],j+1,Y)}(d,0,[3,11]),d}()}function Ot(){this.jb=A(3),this.Wc=s([4,8],Ye),this.Xc=s([4,17],Ye)}function nn(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new A(4),this.od=new A(4)}function gr(){this.ld=this.La=this.dd=this.tc=0}function Cr(){this.Na=this.la=0}function zi(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ur(){this.ad=A(384),this.Za=0,this.Ob=A(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ms(){this.uc=this.M=this.Nb=0,this.wa=Array(new gr),this.Y=0,this.ya=Array(new ur),this.aa=0,this.l=new Fo}function vs(){this.y=A(16),this.f=A(8),this.ea=A(8)}function Qf(){this.cb=this.a=0,this.sc="",this.m=new ie,this.Od=new lt,this.Kc=new ye,this.ed=new nn,this.Qa=new Ge,this.Ic=this.$c=this.Aa=0,this.D=new ms,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,zi),this.Pa=new Ot,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new vs),this.Hd=0,this.rb=Array(new Cr),this.sb=0,this.wa=Array(new gr),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 ur),this.L=this.aa=0,this.gd=s([4,2],gr),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 Fo(){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 aw(){var d=new Qf;return d!=null&&(d.a=0,d.sc="OK",d.cb=0,d.Xb=0,_u||(_u=Of)),d}function kr(d,w,T){return d.a==0&&(d.a=w,d.sc=T,d.cb=0),0}function Nf(d,w,T){return 3<=T&&d[w+0]==157&&d[w+1]==1&&d[w+2]==42}function Rf(d,w){if(d==null)return 0;if(d.a=0,d.sc="OK",w==null)return kr(d,2,"null VP8Io passed to VP8GetHeaders()");var T=w.data,j=w.w,Y=w.ha;if(4>Y)return kr(d,7,"Truncated header.");var re=T[j+0]|T[j+1]<<8|T[j+2]<<16,Ae=d.Od;if(Ae.Rb=!(1&re),Ae.td=re>>1&7,Ae.yd=re>>4&1,Ae.ub=re>>5,3<Ae.td)return kr(d,3,"Incorrect keyframe parameters.");if(!Ae.yd)return kr(d,4,"Frame not displayable.");j+=3,Y-=3;var le=d.Kc;if(Ae.Rb){if(7>Y)return kr(d,7,"cannot parse picture header");if(!Nf(T,j,Y))return kr(d,3,"Bad code word");le.c=16383&(T[j+4]<<8|T[j+3]),le.Td=T[j+4]>>6,le.i=16383&(T[j+6]<<8|T[j+5]),le.Ud=T[j+6]>>6,j+=7,Y-=7,d.za=le.c+15>>4,d.Ub=le.i+15>>4,w.width=le.c,w.height=le.i,w.Da=0,w.j=0,w.v=0,w.va=w.width,w.o=w.height,w.da=0,w.ib=w.width,w.hb=w.height,w.U=w.width,w.T=w.height,i((re=d.Pa).jb,0,255,re.jb.length),e((re=d.Qa)!=null),re.Cb=0,re.Bb=0,re.Fb=1,i(re.Zb,0,0,re.Zb.length),i(re.Lb,0,0,re.Lb)}if(Ae.ub>Y)return kr(d,7,"bad partition length");ee(re=d.m,T,j,Ae.ub),j+=Ae.ub,Y-=Ae.ub,Ae.Rb&&(le.Ld=Q(re),le.Kd=Q(re)),le=d.Qa;var he,pe=d.Pa;if(e(re!=null),e(le!=null),le.Cb=Q(re),le.Cb){if(le.Bb=Q(re),Q(re)){for(le.Fb=Q(re),he=0;4>he;++he)le.Zb[he]=Q(re)?z(re,7):0;for(he=0;4>he;++he)le.Lb[he]=Q(re)?z(re,6):0}if(le.Bb)for(he=0;3>he;++he)pe.jb[he]=Q(re)?Z(re,8):255}else le.Bb=0;if(re.Ka)return kr(d,3,"cannot parse segment header");if((le=d.ed).zd=Q(re),le.Tb=Z(re,6),le.wb=Z(re,3),le.Pc=Q(re),le.Pc&&Q(re)){for(pe=0;4>pe;++pe)Q(re)&&(le.vd[pe]=z(re,6));for(pe=0;4>pe;++pe)Q(re)&&(le.od[pe]=z(re,6))}if(d.L=le.Tb==0?0:le.zd?1:2,re.Ka)return kr(d,3,"cannot parse filter header");var be=Y;if(Y=he=j,j=he+be,le=be,d.Xb=(1<<Z(d.m,2))-1,be<3*(pe=d.Xb))T=7;else{for(he+=3*pe,le-=3*pe,be=0;be<pe;++be){var Te=T[Y+0]|T[Y+1]<<8|T[Y+2]<<16;Te>le&&(Te=le),ee(d.Jc[+be],T,he,Te),he+=Te,le-=Te,Y+=3}ee(d.Jc[+pe],T,he,le),T=he<j?0:5}if(T!=0)return kr(d,T,"cannot parse partitions");for(T=Z(he=d.m,7),Y=Q(he)?z(he,4):0,j=Q(he)?z(he,4):0,le=Q(he)?z(he,4):0,pe=Q(he)?z(he,4):0,he=Q(he)?z(he,4):0,be=d.Qa,Te=0;4>Te;++Te){if(be.Cb){var _e=be.Zb[Te];be.Fb||(_e+=T)}else{if(0<Te){d.pb[Te]=d.pb[0];continue}_e=T}var Se=d.pb[Te];Se.Sc[0]=_w[si(_e+Y,127)],Se.Sc[1]=Lw[si(_e+0,127)],Se.Eb[0]=2*_w[si(_e+j,127)],Se.Eb[1]=101581*Lw[si(_e+le,127)]>>16,8>Se.Eb[1]&&(Se.Eb[1]=8),Se.Qc[0]=_w[si(_e+pe,117)],Se.Qc[1]=Lw[si(_e+he,127)],Se.lc=_e+he}if(!Ae.Rb)return kr(d,4,"Not a key frame.");for(Q(re),Ae=d.Pa,T=0;4>T;++T){for(Y=0;8>Y;++Y)for(j=0;3>j;++j)for(le=0;11>le;++le)pe=te(re,$q[T][Y][j][le])?Z(re,8):Vq[T][Y][j][le],Ae.Wc[T][Y].Yb[j][le]=pe;for(Y=0;17>Y;++Y)Ae.Xc[T][Y]=Ae.Wc[T][Gq[Y]]}return d.kc=Q(re),d.kc&&(d.Bd=Z(re,8)),d.cb=1}function Of(d,w,T,j,Y,re,Ae){var le=w[Y].Yb[T];for(T=0;16>Y;++Y){if(!te(d,le[T+0]))return Y;for(;!te(d,le[T+1]);)if(le=w[++Y].Yb[0],T=0,Y==16)return 16;var he=w[Y+1].Yb;if(te(d,le[T+2])){var pe=d,be=0;if(te(pe,(_e=le)[(Te=T)+3]))if(te(pe,_e[Te+6])){for(le=0,Te=2*(be=te(pe,_e[Te+8]))+(_e=te(pe,_e[Te+9+be])),be=0,_e=jq[Te];_e[le];++le)be+=be+te(pe,_e[le]);be+=3+(8<<Te)}else te(pe,_e[Te+7])?(be=7+2*te(pe,165),be+=te(pe,145)):be=5+te(pe,159);else be=te(pe,_e[Te+4])?3+te(pe,_e[Te+5]):2;le=he[2]}else be=1,le=he[1];he=Ae+Kq[Y],0>(pe=d).b&&L(pe);var Te,_e=pe.b,Se=(Te=pe.Ca>>1)-(pe.I>>_e)>>31;--pe.b,pe.Ca+=Se,pe.Ca|=1,pe.I-=(Te+1&Se)<<_e,re[he]=((be^Se)-Se)*j[(0<Y)+0]}return 16}function ou(d){var w=d.rb[d.sb-1];w.la=0,w.Na=0,i(d.zc,0,0,d.zc.length),d.ja=0}function sw(d,w){if(d==null)return 0;if(w==null)return kr(d,2,"NULL VP8Io parameter in VP8Decode().");if(!d.cb&&!Rf(d,w))return 0;if(e(d.cb),w.ac==null||w.ac(w)){w.ob&&(d.L=0);var T=ud[d.L];if(d.L==2?(d.yb=0,d.zb=0):(d.yb=w.v-T>>4,d.zb=w.j-T>>4,0>d.yb&&(d.yb=0),0>d.zb&&(d.zb=0)),d.Va=w.o+15+T>>4,d.Hb=w.va+15+T>>4,d.Hb>d.za&&(d.Hb=d.za),d.Va>d.Ub&&(d.Va=d.Ub),0<d.L){var j=d.ed;for(T=0;4>T;++T){var Y;if(d.Qa.Cb){var re=d.Qa.Lb[T];d.Qa.Fb||(re+=j.Tb)}else re=j.Tb;for(Y=0;1>=Y;++Y){var Ae=d.gd[T][Y],le=re;if(j.Pc&&(le+=j.vd[0],Y&&(le+=j.od[0])),0<(le=0>le?0:63<le?63:le)){var he=le;0<j.wb&&(he=4<j.wb?he>>2:he>>1)>9-j.wb&&(he=9-j.wb),1>he&&(he=1),Ae.dd=he,Ae.tc=2*le+he,Ae.ld=40<=le?2:15<=le?1:0}else Ae.tc=0;Ae.La=Y}}}T=0}else kr(d,6,"Frame setup failed"),T=d.a;if(T=T==0){if(T){d.$c=0,0<d.Aa||(d.Ic=aX);e:{T=d.Ic,j=4*(he=d.za);var pe=32*he,be=he+1,Te=0<d.L?he*(0<d.Aa?2:1):0,_e=(d.Aa==2?2:1)*he;if((Ae=j+832+(Y=3*(16*T+ud[d.L])/2*pe)+(re=d.Fa!=null&&0<d.Fa.length?d.Kc.c*d.Kc.i:0))!=Ae)T=0;else{if(Ae>d.Vb){if(d.Vb=0,d.Ec=A(Ae),d.Fc=0,d.Ec==null){T=kr(d,1,"no memory during frame initialization.");break e}d.Vb=Ae}Ae=d.Ec,le=d.Fc,d.Ac=Ae,d.Bc=le,le+=j,d.Gd=a(pe,vs),d.Hd=0,d.rb=a(be+1,Cr),d.sb=1,d.wa=Te?a(Te,gr):null,d.Y=0,d.D.Nb=0,d.D.wa=d.wa,d.D.Y=d.Y,0<d.Aa&&(d.D.Y+=he),e(!0),d.oc=Ae,d.pc=le,le+=832,d.ya=a(_e,ur),d.aa=0,d.D.ya=d.ya,d.D.aa=d.aa,d.Aa==2&&(d.D.aa+=he),d.R=16*he,d.B=8*he,he=(pe=ud[d.L])*d.R,pe=pe/2*d.B,d.sa=Ae,d.ta=le+he,d.qa=d.sa,d.ra=d.ta+16*T*d.R+pe,d.Ha=d.qa,d.Ia=d.ra+8*T*d.B+pe,d.$c=0,le+=Y,d.mb=re?Ae:null,d.nb=re?le:null,e(le+re<=d.Fc+d.Vb),ou(d),i(d.Ac,d.Bc,0,j),T=1}}if(T){if(w.ka=0,w.y=d.sa,w.O=d.ta,w.f=d.qa,w.N=d.ra,w.ea=d.Ha,w.Vd=d.Ia,w.fa=d.R,w.Rc=d.B,w.F=null,w.J=0,!td){for(T=-255;255>=T;++T)Yr[255+T]=0>T?-T:T;for(T=-1020;1020>=T;++T)zA[1020+T]=-128>T?-128:127<T?127:T;for(T=-112;112>=T;++T)Tu[112+T]=-16>T?-16:15<T?15:T;for(T=-255;510>=T;++T)zo[255+T]=0>T?0:255<T?255:T;td=1}jo=uw,VA=ow,Fu=Pf,Pn=lw,xi=Df,Pr=kf,Ko=du,ed=bs,Iu=xw,Cs=pu,Es=Bw,Fa=Qo,Ss=gu,Vo=Wf,Fs=Gf,Ia=fA,Uu=MA,Ci=bw,qi[0]=hA,qi[1]=cw,qi[2]=pw,qi[3]=gw,qi[4]=jf,qi[5]=_o,qi[6]=Kf,qi[7]=cu,qi[8]=vw,qi[9]=mw,Ua[0]=Hf,Ua[1]=fw,Ua[2]=HA,Ua[3]=Uo,Ua[4]=In,Ua[5]=dw,Ua[6]=Mf,$A[0]=Ba,$A[1]=hw,$A[2]=ww,$A[3]=hu,$A[4]=ys,$A[5]=yw,$A[6]=fu,T=1}else T=0}T&&(T=function(Se,He){for(Se.M=0;Se.M<Se.Va;++Se.M){var Re,Be=Se.Jc[Se.M&Se.Xb],Ce=Se.m,Pe=Se;for(Re=0;Re<Pe.za;++Re){var Me=Ce,De=Pe,it=De.Ac,Je=De.Bc+4*Re,gt=De.zc,Ze=De.ya[De.aa+Re];if(De.Qa.Bb?Ze.$b=te(Me,De.Pa.jb[0])?2+te(Me,De.Pa.jb[2]):te(Me,De.Pa.jb[1]):Ze.$b=0,De.kc&&(Ze.Ad=te(Me,De.Bd)),Ze.Za=!te(Me,145)+0,Ze.Za){var Vt=Ze.Ob,qt=0;for(De=0;4>De;++De){var Dt,Nt=gt[0+De];for(Dt=0;4>Dt;++Dt){Nt=zq[it[Je+Dt]][Nt];for(var nr=DS[te(Me,Nt[0])];0<nr;)nr=DS[2*nr+te(Me,Nt[nr])];Nt=-nr,it[Je+Dt]=Nt}n(Vt,qt,it,Je,4),qt+=4,gt[0+De]=Nt}}else Nt=te(Me,156)?te(Me,128)?1:3:te(Me,163)?2:0,Ze.Ob[0]=Nt,i(it,Je,Nt,4),i(gt,0,Nt,4);Ze.Dd=te(Me,142)?te(Me,114)?te(Me,183)?1:3:2:0}if(Pe.m.Ka)return kr(Se,7,"Premature end-of-partition0 encountered.");for(;Se.ja<Se.za;++Se.ja){if(Pe=Be,Me=(Ce=Se).rb[Ce.sb-1],it=Ce.rb[Ce.sb+Ce.ja],Re=Ce.ya[Ce.aa+Ce.ja],Je=Ce.kc?Re.Ad:0)Me.la=it.la=0,Re.Za||(Me.Na=it.Na=0),Re.Hc=0,Re.Gc=0,Re.ia=0;else{var er,Et;if(Me=it,it=Pe,Je=Ce.Pa.Xc,gt=Ce.ya[Ce.aa+Ce.ja],Ze=Ce.pb[gt.$b],De=gt.ad,Vt=0,qt=Ce.rb[Ce.sb-1],Nt=Dt=0,i(De,Vt,0,384),gt.Za)var $r=0,qn=Je[3];else{nr=A(16);var Gr=Me.Na+qt.Na;if(Gr=_u(it,Je[1],Gr,Ze.Eb,0,nr,0),Me.Na=qt.Na=(0<Gr)+0,1<Gr)jo(nr,0,De,Vt);else{var Xn=nr[0]+3>>3;for(nr=0;256>nr;nr+=16)De[Vt+nr]=Xn}$r=1,qn=Je[0]}var Xt=15&Me.la,li=15&qt.la;for(nr=0;4>nr;++nr){var ui=1&li;for(Xn=Et=0;4>Xn;++Xn)Xt=Xt>>1|(ui=(Gr=_u(it,qn,Gr=ui+(1&Xt),Ze.Sc,$r,De,Vt))>$r)<<7,Et=Et<<2|(3<Gr?3:1<Gr?2:De[Vt+0]!=0),Vt+=16;Xt>>=4,li=li>>1|ui<<7,Dt=(Dt<<8|Et)>>>0}for(qn=Xt,$r=li>>4,er=0;4>er;er+=2){for(Et=0,Xt=Me.la>>4+er,li=qt.la>>4+er,nr=0;2>nr;++nr){for(ui=1&li,Xn=0;2>Xn;++Xn)Gr=ui+(1&Xt),Xt=Xt>>1|(ui=0<(Gr=_u(it,Je[2],Gr,Ze.Qc,0,De,Vt)))<<3,Et=Et<<2|(3<Gr?3:1<Gr?2:De[Vt+0]!=0),Vt+=16;Xt>>=2,li=li>>1|ui<<5}Nt|=Et<<4*er,qn|=Xt<<4<<er,$r|=(240&li)<<er}Me.la=qn,qt.la=$r,gt.Hc=Dt,gt.Gc=Nt,gt.ia=43690&Nt?0:Ze.ia,Je=!(Dt|Nt)}if(0<Ce.L&&(Ce.wa[Ce.Y+Ce.ja]=Ce.gd[Re.$b][Re.Za],Ce.wa[Ce.Y+Ce.ja].La|=!Je),Pe.Ka)return kr(Se,7,"Premature end-of-file encountered.")}if(ou(Se),Ce=He,Pe=1,Re=(Be=Se).D,Me=0<Be.L&&Be.M>=Be.zb&&Be.M<=Be.Va,Be.Aa==0)e:{if(Re.M=Be.M,Re.uc=Me,Bu(Be,Re),Pe=1,Re=(Et=Be.D).Nb,Me=(Nt=ud[Be.L])*Be.R,it=Nt/2*Be.B,nr=16*Re*Be.R,Xn=8*Re*Be.B,Je=Be.sa,gt=Be.ta-Me+nr,Ze=Be.qa,De=Be.ra-it+Xn,Vt=Be.Ha,qt=Be.Ia-it+Xn,li=(Xt=Et.M)==0,Dt=Xt>=Be.Va-1,Be.Aa==2&&Bu(Be,Et),Et.uc)for(ui=(Gr=Be).D.M,e(Gr.D.uc),Et=Gr.yb;Et<Gr.Hb;++Et){$r=Et,qn=ui;var an=(pn=(Sr=Gr).D).Nb;er=Sr.R;var pn=pn.wa[pn.Y+$r],Dn=Sr.sa,Ii=Sr.ta+16*an*er+16*$r,pA=pn.dd,sn=pn.tc;if(sn!=0)if(e(3<=sn),Sr.L==1)0<$r&&Ia(Dn,Ii,er,sn+4),pn.La&&Ci(Dn,Ii,er,sn),0<qn&&Fs(Dn,Ii,er,sn+4),pn.La&&Uu(Dn,Ii,er,sn);else{var GA=Sr.B,Is=Sr.qa,$o=Sr.ra+8*an*GA+8*$r,_a=Sr.Ha,Sr=Sr.Ia+8*an*GA+8*$r;an=pn.ld,0<$r&&(ed(Dn,Ii,er,sn+4,pA,an),Cs(Is,$o,_a,Sr,GA,sn+4,pA,an)),pn.La&&(Fa(Dn,Ii,er,sn,pA,an),Vo(Is,$o,_a,Sr,GA,sn,pA,an)),0<qn&&(Ko(Dn,Ii,er,sn+4,pA,an),Iu(Is,$o,_a,Sr,GA,sn+4,pA,an)),pn.La&&(Es(Dn,Ii,er,sn,pA,an),Ss(Is,$o,_a,Sr,GA,sn,pA,an))}}if(Be.ia&&alert("todo:DitherRow"),Ce.put!=null){if(Et=16*Xt,Xt=16*(Xt+1),li?(Ce.y=Be.sa,Ce.O=Be.ta+nr,Ce.f=Be.qa,Ce.N=Be.ra+Xn,Ce.ea=Be.Ha,Ce.W=Be.Ia+Xn):(Et-=Nt,Ce.y=Je,Ce.O=gt,Ce.f=Ze,Ce.N=De,Ce.ea=Vt,Ce.W=qt),Dt||(Xt-=Nt),Xt>Ce.o&&(Xt=Ce.o),Ce.F=null,Ce.J=null,Be.Fa!=null&&0<Be.Fa.length&&Et<Xt&&(Ce.J=yu(Be,Ce,Et,Xt-Et),Ce.F=Be.mb,Ce.F==null&&Ce.F.length==0)){Pe=kr(Be,3,"Could not decode alpha data.");break e}Et<Ce.j&&(Nt=Ce.j-Et,Et=Ce.j,e(!(1&Nt)),Ce.O+=Be.R*Nt,Ce.N+=Be.B*(Nt>>1),Ce.W+=Be.B*(Nt>>1),Ce.F!=null&&(Ce.J+=Ce.width*Nt)),Et<Xt&&(Ce.O+=Ce.v,Ce.N+=Ce.v>>1,Ce.W+=Ce.v>>1,Ce.F!=null&&(Ce.J+=Ce.v),Ce.ka=Et-Ce.j,Ce.U=Ce.va-Ce.v,Ce.T=Xt-Et,Pe=Ce.put(Ce))}Re+1!=Be.Ic||Dt||(n(Be.sa,Be.ta-Me,Je,gt+16*Be.R,Me),n(Be.qa,Be.ra-it,Ze,De+8*Be.B,it),n(Be.Ha,Be.Ia-it,Vt,qt+8*Be.B,it))}if(!Pe)return kr(Se,6,"Output aborted.")}return 1}(d,w)),w.bc!=null&&w.bc(w),T&=1}return T?(d.cb=0,T):0}function $i(d,w,T,j,Y){Y=d[w+T+32*j]+(Y>>3),d[w+T+32*j]=-256&Y?0>Y?0:255:Y}function Io(d,w,T,j,Y,re){$i(d,w,0,T,j+Y),$i(d,w,1,T,j+re),$i(d,w,2,T,j-re),$i(d,w,3,T,j-Y)}function $n(d){return(20091*d>>16)+d}function lu(d,w,T,j){var Y,re=0,Ae=A(16);for(Y=0;4>Y;++Y){var le=d[w+0]+d[w+8],he=d[w+0]-d[w+8],pe=(35468*d[w+4]>>16)-$n(d[w+12]),be=$n(d[w+4])+(35468*d[w+12]>>16);Ae[re+0]=le+be,Ae[re+1]=he+pe,Ae[re+2]=he-pe,Ae[re+3]=le-be,re+=4,w++}for(Y=re=0;4>Y;++Y)le=(d=Ae[re+0]+4)+Ae[re+8],he=d-Ae[re+8],pe=(35468*Ae[re+4]>>16)-$n(Ae[re+12]),$i(T,j,0,0,le+(be=$n(Ae[re+4])+(35468*Ae[re+12]>>16))),$i(T,j,1,0,he+pe),$i(T,j,2,0,he-pe),$i(T,j,3,0,le-be),re++,j+=32}function kf(d,w,T,j){var Y=d[w+0]+4,re=35468*d[w+4]>>16,Ae=$n(d[w+4]),le=35468*d[w+1]>>16;Io(T,j,0,Y+Ae,d=$n(d[w+1]),le),Io(T,j,1,Y+re,d,le),Io(T,j,2,Y-re,d,le),Io(T,j,3,Y-Ae,d,le)}function ow(d,w,T,j,Y){lu(d,w,T,j),Y&&lu(d,w+16,T,j+4)}function Pf(d,w,T,j){VA(d,w+0,T,j,1),VA(d,w+32,T,j+128,1)}function lw(d,w,T,j){var Y;for(d=d[w+0]+4,Y=0;4>Y;++Y)for(w=0;4>w;++w)$i(T,j,w,Y,d)}function Df(d,w,T,j){d[w+0]&&Pn(d,w+0,T,j),d[w+16]&&Pn(d,w+16,T,j+4),d[w+32]&&Pn(d,w+32,T,j+128),d[w+48]&&Pn(d,w+48,T,j+128+4)}function uw(d,w,T,j){var Y,re=A(16);for(Y=0;4>Y;++Y){var Ae=d[w+0+Y]+d[w+12+Y],le=d[w+4+Y]+d[w+8+Y],he=d[w+4+Y]-d[w+8+Y],pe=d[w+0+Y]-d[w+12+Y];re[0+Y]=Ae+le,re[8+Y]=Ae-le,re[4+Y]=pe+he,re[12+Y]=pe-he}for(Y=0;4>Y;++Y)Ae=(d=re[0+4*Y]+3)+re[3+4*Y],le=re[1+4*Y]+re[2+4*Y],he=re[1+4*Y]-re[2+4*Y],pe=d-re[3+4*Y],T[j+0]=Ae+le>>3,T[j+16]=pe+he>>3,T[j+32]=Ae-le>>3,T[j+48]=pe-he>>3,j+=64}function uu(d,w,T){var j,Y=w-32,re=oi,Ae=255-d[Y-1];for(j=0;j<T;++j){var le,he=re,pe=Ae+d[w-1];for(le=0;le<T;++le)d[w+le]=he[pe+d[Y+le]];w+=32}}function cw(d,w){uu(d,w,4)}function hw(d,w){uu(d,w,8)}function fw(d,w){uu(d,w,16)}function HA(d,w){var T;for(T=0;16>T;++T)n(d,w+32*T,d,w-32,16)}function Uo(d,w){var T;for(T=16;0<T;--T)i(d,w,d[w-1],16),w+=32}function To(d,w,T){var j;for(j=0;16>j;++j)i(w,T+32*j,d,16)}function Hf(d,w){var T,j=16;for(T=0;16>T;++T)j+=d[w-1+32*T]+d[w+T-32];To(j>>5,d,w)}function In(d,w){var T,j=8;for(T=0;16>T;++T)j+=d[w-1+32*T];To(j>>4,d,w)}function dw(d,w){var T,j=8;for(T=0;16>T;++T)j+=d[w+T-32];To(j>>4,d,w)}function Mf(d,w){To(128,d,w)}function yt(d,w,T){return d+2*w+T+2>>2}function pw(d,w){var T,j=w-32;for(j=new Uint8Array([yt(d[j-1],d[j+0],d[j+1]),yt(d[j+0],d[j+1],d[j+2]),yt(d[j+1],d[j+2],d[j+3]),yt(d[j+2],d[j+3],d[j+4])]),T=0;4>T;++T)n(d,w+32*T,j,0,j.length)}function gw(d,w){var T=d[w-1],j=d[w-1+32],Y=d[w-1+64],re=d[w-1+96];se(d,w+0,16843009*yt(d[w-1-32],T,j)),se(d,w+32,16843009*yt(T,j,Y)),se(d,w+64,16843009*yt(j,Y,re)),se(d,w+96,16843009*yt(Y,re,re))}function hA(d,w){var T,j=4;for(T=0;4>T;++T)j+=d[w+T-32]+d[w-1+32*T];for(j>>=3,T=0;4>T;++T)i(d,w+32*T,j,4)}function jf(d,w){var T=d[w-1+0],j=d[w-1+32],Y=d[w-1+64],re=d[w-1-32],Ae=d[w+0-32],le=d[w+1-32],he=d[w+2-32],pe=d[w+3-32];d[w+0+96]=yt(j,Y,d[w-1+96]),d[w+1+96]=d[w+0+64]=yt(T,j,Y),d[w+2+96]=d[w+1+64]=d[w+0+32]=yt(re,T,j),d[w+3+96]=d[w+2+64]=d[w+1+32]=d[w+0+0]=yt(Ae,re,T),d[w+3+64]=d[w+2+32]=d[w+1+0]=yt(le,Ae,re),d[w+3+32]=d[w+2+0]=yt(he,le,Ae),d[w+3+0]=yt(pe,he,le)}function Kf(d,w){var T=d[w+1-32],j=d[w+2-32],Y=d[w+3-32],re=d[w+4-32],Ae=d[w+5-32],le=d[w+6-32],he=d[w+7-32];d[w+0+0]=yt(d[w+0-32],T,j),d[w+1+0]=d[w+0+32]=yt(T,j,Y),d[w+2+0]=d[w+1+32]=d[w+0+64]=yt(j,Y,re),d[w+3+0]=d[w+2+32]=d[w+1+64]=d[w+0+96]=yt(Y,re,Ae),d[w+3+32]=d[w+2+64]=d[w+1+96]=yt(re,Ae,le),d[w+3+64]=d[w+2+96]=yt(Ae,le,he),d[w+3+96]=yt(le,he,he)}function _o(d,w){var T=d[w-1+0],j=d[w-1+32],Y=d[w-1+64],re=d[w-1-32],Ae=d[w+0-32],le=d[w+1-32],he=d[w+2-32],pe=d[w+3-32];d[w+0+0]=d[w+1+64]=re+Ae+1>>1,d[w+1+0]=d[w+2+64]=Ae+le+1>>1,d[w+2+0]=d[w+3+64]=le+he+1>>1,d[w+3+0]=he+pe+1>>1,d[w+0+96]=yt(Y,j,T),d[w+0+64]=yt(j,T,re),d[w+0+32]=d[w+1+96]=yt(T,re,Ae),d[w+1+32]=d[w+2+96]=yt(re,Ae,le),d[w+2+32]=d[w+3+96]=yt(Ae,le,he),d[w+3+32]=yt(le,he,pe)}function cu(d,w){var T=d[w+0-32],j=d[w+1-32],Y=d[w+2-32],re=d[w+3-32],Ae=d[w+4-32],le=d[w+5-32],he=d[w+6-32],pe=d[w+7-32];d[w+0+0]=T+j+1>>1,d[w+1+0]=d[w+0+64]=j+Y+1>>1,d[w+2+0]=d[w+1+64]=Y+re+1>>1,d[w+3+0]=d[w+2+64]=re+Ae+1>>1,d[w+0+32]=yt(T,j,Y),d[w+1+32]=d[w+0+96]=yt(j,Y,re),d[w+2+32]=d[w+1+96]=yt(Y,re,Ae),d[w+3+32]=d[w+2+96]=yt(re,Ae,le),d[w+3+64]=yt(Ae,le,he),d[w+3+96]=yt(le,he,pe)}function mw(d,w){var T=d[w-1+0],j=d[w-1+32],Y=d[w-1+64],re=d[w-1+96];d[w+0+0]=T+j+1>>1,d[w+2+0]=d[w+0+32]=j+Y+1>>1,d[w+2+32]=d[w+0+64]=Y+re+1>>1,d[w+1+0]=yt(T,j,Y),d[w+3+0]=d[w+1+32]=yt(j,Y,re),d[w+3+32]=d[w+1+64]=yt(Y,re,re),d[w+3+64]=d[w+2+64]=d[w+0+96]=d[w+1+96]=d[w+2+96]=d[w+3+96]=re}function vw(d,w){var T=d[w-1+0],j=d[w-1+32],Y=d[w-1+64],re=d[w-1+96],Ae=d[w-1-32],le=d[w+0-32],he=d[w+1-32],pe=d[w+2-32];d[w+0+0]=d[w+2+32]=T+Ae+1>>1,d[w+0+32]=d[w+2+64]=j+T+1>>1,d[w+0+64]=d[w+2+96]=Y+j+1>>1,d[w+0+96]=re+Y+1>>1,d[w+3+0]=yt(le,he,pe),d[w+2+0]=yt(Ae,le,he),d[w+1+0]=d[w+3+32]=yt(T,Ae,le),d[w+1+32]=d[w+3+64]=yt(j,T,Ae),d[w+1+64]=d[w+3+96]=yt(Y,j,T),d[w+1+96]=yt(re,Y,j)}function ww(d,w){var T;for(T=0;8>T;++T)n(d,w+32*T,d,w-32,8)}function hu(d,w){var T;for(T=0;8>T;++T)i(d,w,d[w-1],8),w+=32}function ws(d,w,T){var j;for(j=0;8>j;++j)i(w,T+32*j,d,8)}function Ba(d,w){var T,j=8;for(T=0;8>T;++T)j+=d[w+T-32]+d[w-1+32*T];ws(j>>4,d,w)}function yw(d,w){var T,j=4;for(T=0;8>T;++T)j+=d[w+T-32];ws(j>>3,d,w)}function ys(d,w){var T,j=4;for(T=0;8>T;++T)j+=d[w-1+32*T];ws(j>>3,d,w)}function fu(d,w){ws(128,d,w)}function Lo(d,w,T){var j=d[w-T],Y=d[w+0],re=3*(Y-j)+Sw[1020+d[w-2*T]-d[w+T]],Ae=rd[112+(re+4>>3)];d[w-T]=oi[255+j+rd[112+(re+3>>3)]],d[w+0]=oi[255+Y-Ae]}function Vf(d,w,T,j){var Y=d[w+0],re=d[w+T];return Si[255+d[w-2*T]-d[w-T]]>j||Si[255+re-Y]>j}function zf(d,w,T,j){return 4*Si[255+d[w-T]-d[w+0]]+Si[255+d[w-2*T]-d[w+T]]<=j}function $f(d,w,T,j,Y){var re=d[w-3*T],Ae=d[w-2*T],le=d[w-T],he=d[w+0],pe=d[w+T],be=d[w+2*T],Te=d[w+3*T];return 4*Si[255+le-he]+Si[255+Ae-pe]>j?0:Si[255+d[w-4*T]-re]<=Y&&Si[255+re-Ae]<=Y&&Si[255+Ae-le]<=Y&&Si[255+Te-be]<=Y&&Si[255+be-pe]<=Y&&Si[255+pe-he]<=Y}function Gf(d,w,T,j){var Y=2*j+1;for(j=0;16>j;++j)zf(d,w+j,T,Y)&&Lo(d,w+j,T)}function fA(d,w,T,j){var Y=2*j+1;for(j=0;16>j;++j)zf(d,w+j*T,1,Y)&&Lo(d,w+j*T,1)}function MA(d,w,T,j){var Y;for(Y=3;0<Y;--Y)Gf(d,w+=4*T,T,j)}function bw(d,w,T,j){var Y;for(Y=3;0<Y;--Y)fA(d,w+=4,T,j)}function xa(d,w,T,j,Y,re,Ae,le){for(re=2*re+1;0<Y--;){if($f(d,w,T,re,Ae))if(Vf(d,w,T,le))Lo(d,w,T);else{var he=d,pe=w,be=T,Te=he[pe-2*be],_e=he[pe-be],Se=he[pe+0],He=he[pe+be],Re=he[pe+2*be],Be=27*(Pe=Sw[1020+3*(Se-_e)+Sw[1020+Te-He]])+63>>7,Ce=18*Pe+63>>7,Pe=9*Pe+63>>7;he[pe-3*be]=oi[255+he[pe-3*be]+Pe],he[pe-2*be]=oi[255+Te+Ce],he[pe-be]=oi[255+_e+Be],he[pe+0]=oi[255+Se-Be],he[pe+be]=oi[255+He-Ce],he[pe+2*be]=oi[255+Re-Pe]}w+=j}}function Gi(d,w,T,j,Y,re,Ae,le){for(re=2*re+1;0<Y--;){if($f(d,w,T,re,Ae))if(Vf(d,w,T,le))Lo(d,w,T);else{var he=d,pe=w,be=T,Te=he[pe-be],_e=he[pe+0],Se=he[pe+be],He=rd[112+((Re=3*(_e-Te))+4>>3)],Re=rd[112+(Re+3>>3)],Be=He+1>>1;he[pe-2*be]=oi[255+he[pe-2*be]+Be],he[pe-be]=oi[255+Te+Re],he[pe+0]=oi[255+_e-He],he[pe+be]=oi[255+Se-Be]}w+=j}}function du(d,w,T,j,Y,re){xa(d,w,T,1,16,j,Y,re)}function bs(d,w,T,j,Y,re){xa(d,w,1,T,16,j,Y,re)}function Bw(d,w,T,j,Y,re){var Ae;for(Ae=3;0<Ae;--Ae)Gi(d,w+=4*T,T,1,16,j,Y,re)}function Qo(d,w,T,j,Y,re){var Ae;for(Ae=3;0<Ae;--Ae)Gi(d,w+=4,1,T,16,j,Y,re)}function xw(d,w,T,j,Y,re,Ae,le){xa(d,w,Y,1,8,re,Ae,le),xa(T,j,Y,1,8,re,Ae,le)}function pu(d,w,T,j,Y,re,Ae,le){xa(d,w,1,Y,8,re,Ae,le),xa(T,j,1,Y,8,re,Ae,le)}function gu(d,w,T,j,Y,re,Ae,le){Gi(d,w+4*Y,Y,1,8,re,Ae,le),Gi(T,j+4*Y,Y,1,8,re,Ae,le)}function Wf(d,w,T,j,Y,re,Ae,le){Gi(d,w+4,1,Y,8,re,Ae,le),Gi(T,j+4,1,Y,8,re,Ae,le)}function No(){this.ba=new ar,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Wt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function mu(){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 vu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function qf(){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 Cw(){this.xb=this.a=0,this.l=new Fo,this.ca=new ar,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new qf,this.ab=0,this.gc=a(4,vu),this.Oc=0}function Ro(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Fo,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Bs(d,w,T,j,Y,re,Ae){for(d=d==null?0:d[w+0],w=0;w<Ae;++w)Y[re+w]=d+T[j+w]&255,d=Y[re+w]}function wu(d,w,T,j,Y,re,Ae){var le;if(d==null)Bs(null,null,T,j,Y,re,Ae);else for(le=0;le<Ae;++le)Y[re+le]=d[w+le]+T[j+le]&255}function Ca(d,w,T,j,Y,re,Ae){if(d==null)Bs(null,null,T,j,Y,re,Ae);else{var le,he=d[w+0],pe=he,be=he;for(le=0;le<Ae;++le)pe=be+(he=d[w+le])-pe,be=T[j+le]+(-256&pe?0>pe?0:255:pe)&255,pe=he,Y[re+le]=be}}function yu(d,w,T,j){var Y=w.width,re=w.o;if(e(d!=null&&w!=null),0>T||0>=j||T+j>re)return null;if(!d.Cc){if(d.ga==null){var Ae;if(d.ga=new Ro,(Ae=d.ga==null)||(Ae=w.width*w.o,e(d.Gb.length==0),d.Gb=A(Ae),d.Uc=0,d.Gb==null?Ae=0:(d.mb=d.Gb,d.nb=d.Uc,d.rc=null,Ae=1),Ae=!Ae),!Ae){Ae=d.ga;var le=d.Fa,he=d.P,pe=d.qc,be=d.mb,Te=d.nb,_e=he+1,Se=pe-1,He=Ae.l;if(e(le!=null&&be!=null&&w!=null),Ta[0]=null,Ta[1]=Bs,Ta[2]=wu,Ta[3]=Ca,Ae.ca=be,Ae.tb=Te,Ae.c=w.width,Ae.i=w.height,e(0<Ae.c&&0<Ae.i),1>=pe)w=0;else if(Ae.$a=le[he+0]>>0&3,Ae.Z=le[he+0]>>2&3,Ae.Lc=le[he+0]>>4&3,he=le[he+0]>>6&3,0>Ae.$a||1<Ae.$a||4<=Ae.Z||1<Ae.Lc||he)w=0;else if(He.put=zn,He.ac=Vr,He.bc=ni,He.ma=Ae,He.width=w.width,He.height=w.height,He.Da=w.Da,He.v=w.v,He.va=w.va,He.j=w.j,He.o=w.o,Ae.$a)e:{e(Ae.$a==1),w=On();t:for(;;){if(w==null){w=0;break e}if(e(Ae!=null),Ae.mc=w,w.c=Ae.c,w.i=Ae.i,w.l=Ae.l,w.l.ma=Ae,w.l.width=Ae.c,w.l.height=Ae.i,w.a=0,oe(w.m,le,_e,Se),!ai(Ae.c,Ae.i,1,w,null)||(w.ab==1&&w.gc[0].hc==3&&bi(w.s)?(Ae.ic=1,le=w.c*w.i,w.Ta=null,w.Ua=0,w.V=A(le),w.Ba=0,w.V==null?(w.a=1,w=0):w=1):(Ae.ic=0,w=cA(w,Ae.c)),!w))break t;w=1;break e}Ae.mc=null,w=0}else w=Se>=Ae.c*Ae.i;Ae=!w}if(Ae)return null;d.ga.Lc!=1?d.Ga=0:j=re-T}e(d.ga!=null),e(T+j<=re);e:{if(w=(le=d.ga).c,re=le.l.o,le.$a==0){if(_e=d.rc,Se=d.Vc,He=d.Fa,he=d.P+1+T*w,pe=d.mb,be=d.nb+T*w,e(he<=d.P+d.qc),le.Z!=0)for(e(Ta[le.Z]!=null),Ae=0;Ae<j;++Ae)Ta[le.Z](_e,Se,He,he,pe,be,w),_e=pe,Se=be,be+=w,he+=w;else for(Ae=0;Ae<j;++Ae)n(pe,be,He,he,w),_e=pe,Se=be,be+=w,he+=w;d.rc=_e,d.Vc=Se}else{if(e(le.mc!=null),w=T+j,e((Ae=le.mc)!=null),e(w<=Ae.i),Ae.C>=w)w=1;else if(le.ic||Fe(),le.ic){le=Ae.V,_e=Ae.Ba,Se=Ae.c;var Re=Ae.i,Be=(He=1,he=Ae.$/Se,pe=Ae.$%Se,be=Ae.m,Te=Ae.s,Ae.$),Ce=Se*Re,Pe=Se*w,Me=Te.wc,De=Be<Pe?Pt(Te,pe,he):null;e(Be<=Ce),e(w<=Re),e(bi(Te));t:for(;;){for(;!be.h&&Be<Pe;){if(pe&Me||(De=Pt(Te,pe,he)),e(De!=null),$(be),256>(Re=tn(De.G[0],De.H[0],be)))le[_e+Be]=Re,++Be,++pe>=Se&&(pe=0,++he<=w&&!(he%16)&&fn(Ae,he));else{if(!(280>Re)){He=0;break t}Re=ii(Re-256,be);var it,Je=tn(De.G[4],De.H[4],be);if($(be),!(Be>=(Je=Nn(Se,Je=ii(Je,be)))&&Ce-Be>=Re)){He=0;break t}for(it=0;it<Re;++it)le[_e+Be+it]=le[_e+Be+it-Je];for(Be+=Re,pe+=Re;pe>=Se;)pe-=Se,++he<=w&&!(he%16)&&fn(Ae,he);Be<Pe&&pe&Me&&(De=Pt(Te,pe,he))}e(be.h==V(be))}fn(Ae,he>w?w:he);break t}!He||be.h&&Be<Ce?(He=0,Ae.a=be.h?5:3):Ae.$=Be,w=He}else w=Or(Ae,Ae.V,Ae.Ba,Ae.c,Ae.i,w,ba);if(!w){j=0;break e}}T+j>=re&&(d.Cc=1),j=1}if(!j)return null;if(d.Cc&&((j=d.ga)!=null&&(j.mc=null),d.ga=null,0<d.Ga))return alert("todo:WebPDequantizeLevels"),null}return d.nb+T*Y}function E(d,w,T,j,Y,re){for(;0<Y--;){var Ae,le=d,he=w+(T?1:0),pe=d,be=w+(T?0:3);for(Ae=0;Ae<j;++Ae){var Te=pe[be+4*Ae];Te!=255&&(Te*=32897,le[he+4*Ae+0]=le[he+4*Ae+0]*Te>>23,le[he+4*Ae+1]=le[he+4*Ae+1]*Te>>23,le[he+4*Ae+2]=le[he+4*Ae+2]*Te>>23)}w+=re}}function J(d,w,T,j,Y){for(;0<j--;){var re;for(re=0;re<T;++re){var Ae=d[w+2*re+0],le=15&(pe=d[w+2*re+1]),he=4369*le,pe=(240&pe|pe>>4)*he>>16;d[w+2*re+0]=(240&Ae|Ae>>4)*he>>16&240|(15&Ae|Ae<<4)*he>>16>>4&15,d[w+2*re+1]=240&pe|le}w+=Y}}function me(d,w,T,j,Y,re,Ae,le){var he,pe,be=255;for(pe=0;pe<Y;++pe){for(he=0;he<j;++he){var Te=d[w+he];re[Ae+4*he]=Te,be&=Te}w+=T,Ae+=le}return be!=255}function we(d,w,T,j,Y){var re;for(re=0;re<Y;++re)T[j+re]=d[w+re]>>8}function Fe(){Ei=E,sr=J,or=me,Dr=we}function Oe(d,w,T){P[d]=function(j,Y,re,Ae,le,he,pe,be,Te,_e,Se,He,Re,Be,Ce,Pe,Me){var De,it=Me-1>>1,Je=le[he+0]|pe[be+0]<<16,gt=Te[_e+0]|Se[He+0]<<16;e(j!=null);var Ze=3*Je+gt+131074>>2;for(w(j[Y+0],255&Ze,Ze>>16,Re,Be),re!=null&&(Ze=3*gt+Je+131074>>2,w(re[Ae+0],255&Ze,Ze>>16,Ce,Pe)),De=1;De<=it;++De){var Vt=le[he+De]|pe[be+De]<<16,qt=Te[_e+De]|Se[He+De]<<16,Dt=Je+Vt+gt+qt+524296,Nt=Dt+2*(Vt+gt)>>3;Ze=Nt+Je>>1,Je=(Dt=Dt+2*(Je+qt)>>3)+Vt>>1,w(j[Y+2*De-1],255&Ze,Ze>>16,Re,Be+(2*De-1)*T),w(j[Y+2*De-0],255&Je,Je>>16,Re,Be+(2*De-0)*T),re!=null&&(Ze=Dt+gt>>1,Je=Nt+qt>>1,w(re[Ae+2*De-1],255&Ze,Ze>>16,Ce,Pe+(2*De-1)*T),w(re[Ae+2*De+0],255&Je,Je>>16,Ce,Pe+(2*De+0)*T)),Je=Vt,gt=qt}1&Me||(Ze=3*Je+gt+131074>>2,w(j[Y+Me-1],255&Ze,Ze>>16,Re,Be+(Me-1)*T),re!=null&&(Ze=3*gt+Je+131074>>2,w(re[Ae+Me-1],255&Ze,Ze>>16,Ce,Pe+(Me-1)*T)))}}function $e(){Fi[nd]=qq,Fi[id]=MS,Fi[OS]=Xq,Fi[Ad]=jS,Fi[ad]=KS,Fi[Fw]=VS,Fi[kS]=Yq,Fi[Iw]=MS,Fi[Uw]=jS,Fi[sd]=KS,Fi[Tw]=VS}function nt(d){return d&-16384?0>d?0:255:d>>Jq}function ht(d,w){return nt((19077*d>>8)+(26149*w>>8)-14234)}function Ct(d,w,T){return nt((19077*d>>8)-(6419*w>>8)-(13320*T>>8)+8708)}function Bt(d,w){return nt((19077*d>>8)+(33050*w>>8)-17685)}function kt(d,w,T,j,Y){j[Y+0]=ht(d,T),j[Y+1]=Ct(d,w,T),j[Y+2]=Bt(d,w)}function mr(d,w,T,j,Y){j[Y+0]=Bt(d,w),j[Y+1]=Ct(d,w,T),j[Y+2]=ht(d,T)}function Er(d,w,T,j,Y){var re=Ct(d,w,T);w=re<<3&224|Bt(d,w)>>3,j[Y+0]=248&ht(d,T)|re>>5,j[Y+1]=w}function zr(d,w,T,j,Y){var re=240&Bt(d,w)|15;j[Y+0]=240&ht(d,T)|Ct(d,w,T)>>4,j[Y+1]=re}function Un(d,w,T,j,Y){j[Y+0]=255,kt(d,w,T,j,Y+1)}function An(d,w,T,j,Y){mr(d,w,T,j,Y),j[Y+3]=255}function Wi(d,w,T,j,Y){kt(d,w,T,j,Y),j[Y+3]=255}function si(d,w){return 0>d?0:d>w?w:d}function dA(d,w,T){P[d]=function(j,Y,re,Ae,le,he,pe,be,Te){for(var _e=be+(-2&Te)*T;be!=_e;)w(j[Y+0],re[Ae+0],le[he+0],pe,be),w(j[Y+1],re[Ae+0],le[he+0],pe,be+T),Y+=2,++Ae,++he,be+=2*T;1&Te&&w(j[Y+0],re[Ae+0],le[he+0],pe,be)}}function Xf(d,w,T){return T==0?d==0?w==0?6:5:w==0?4:0:T}function bu(d,w,T,j,Y){switch(d>>>30){case 3:VA(w,T,j,Y,0);break;case 2:Pr(w,T,j,Y);break;case 1:Pn(w,T,j,Y)}}function Bu(d,w){var T,j,Y=w.M,re=w.Nb,Ae=d.oc,le=d.pc+40,he=d.oc,pe=d.pc+584,be=d.oc,Te=d.pc+600;for(T=0;16>T;++T)Ae[le+32*T-1]=129;for(T=0;8>T;++T)he[pe+32*T-1]=129,be[Te+32*T-1]=129;for(0<Y?Ae[le-1-32]=he[pe-1-32]=be[Te-1-32]=129:(i(Ae,le-32-1,127,21),i(he,pe-32-1,127,9),i(be,Te-32-1,127,9)),j=0;j<d.za;++j){var _e=w.ya[w.aa+j];if(0<j){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(he,pe+32*T-4,he,pe+32*T+4,4),n(be,Te+32*T-4,be,Te+32*T+4,4)}var Se=d.Gd,He=d.Hd+j,Re=_e.ad,Be=_e.Hc;if(0<Y&&(n(Ae,le-32,Se[He].y,0,16),n(he,pe-32,Se[He].f,0,8),n(be,Te-32,Se[He].ea,0,8)),_e.Za){var Ce=Ae,Pe=le-32+16;for(0<Y&&(j>=d.za-1?i(Ce,Pe,Se[He].y[15],4):n(Ce,Pe,Se[He+1].y,0,4)),T=0;4>T;T++)Ce[Pe+128+T]=Ce[Pe+256+T]=Ce[Pe+384+T]=Ce[Pe+0+T];for(T=0;16>T;++T,Be<<=2)Ce=Ae,Pe=le+$S[T],qi[_e.Ob[T]](Ce,Pe),bu(Be,Re,16*+T,Ce,Pe)}else if(Ce=Xf(j,Y,_e.Ob[0]),Ua[Ce](Ae,le),Be!=0)for(T=0;16>T;++T,Be<<=2)bu(Be,Re,16*+T,Ae,le+$S[T]);for(T=_e.Gc,Ce=Xf(j,Y,_e.Dd),$A[Ce](he,pe),$A[Ce](be,Te),Be=Re,Ce=he,Pe=pe,255&(_e=T>>0)&&(170&_e?Fu(Be,256,Ce,Pe):xi(Be,256,Ce,Pe)),_e=be,Be=Te,255&(T>>=8)&&(170&T?Fu(Re,320,_e,Be):xi(Re,320,_e,Be)),Y<d.Ub-1&&(n(Se[He].y,0,Ae,le+480,16),n(Se[He].f,0,he,pe+224,8),n(Se[He].ea,0,be,Te+224,8)),T=8*re*d.B,Se=d.sa,He=d.ta+16*j+16*re*d.R,Re=d.qa,_e=d.ra+8*j+T,Be=d.Ha,Ce=d.Ia+8*j+T,T=0;16>T;++T)n(Se,He+T*d.R,Ae,le+32*T,16);for(T=0;8>T;++T)n(Re,_e+T*d.B,he,pe+32*T,8),n(Be,Ce+T*d.B,be,Te+32*T,8)}}function Oo(d,w,T,j,Y,re,Ae,le,he){var pe=[0],be=[0],Te=0,_e=he!=null?he.kd:0,Se=he!=null?he:new mu;if(d==null||12>T)return 7;Se.data=d,Se.w=w,Se.ha=T,w=[w],T=[T],Se.gb=[Se.gb];e:{var He=w,Re=T,Be=Se.gb;if(e(d!=null),e(Re!=null),e(Be!=null),Be[0]=0,12<=Re[0]&&!t(d,He[0],"RIFF")){if(t(d,He[0]+8,"WEBP")){Be=3;break e}var Ce=ve(d,He[0]+4);if(12>Ce||4294967286<Ce){Be=3;break e}if(_e&&Ce>Re[0]-8){Be=7;break e}Be[0]=Ce,He[0]+=12,Re[0]-=12}Be=0}if(Be!=0)return Be;for(Ce=0<Se.gb[0],T=T[0];;){e:{var Pe=d;Re=w,Be=T;var Me=pe,De=be,it=He=[0];if((Ze=Te=[Te])[0]=0,8>Be[0])Be=7;else{if(!t(Pe,Re[0],"VP8X")){if(ve(Pe,Re[0]+4)!=10){Be=3;break e}if(18>Be[0]){Be=7;break e}var Je=ve(Pe,Re[0]+8),gt=1+ne(Pe,Re[0]+12);if(2147483648<=gt*(Pe=1+ne(Pe,Re[0]+15))){Be=3;break e}it!=null&&(it[0]=Je),Me!=null&&(Me[0]=gt),De!=null&&(De[0]=Pe),Re[0]+=18,Be[0]-=18,Ze[0]=1}Be=0}}if(Te=Te[0],He=He[0],Be!=0)return Be;if(Re=!!(2&He),!Ce&&Te)return 3;if(re!=null&&(re[0]=!!(16&He)),Ae!=null&&(Ae[0]=Re),le!=null&&(le[0]=0),Ae=pe[0],He=be[0],Te&&Re&&he==null){Be=0;break}if(4>T){Be=7;break}if(Ce&&Te||!Ce&&!Te&&!t(d,w[0],"ALPH")){T=[T],Se.na=[Se.na],Se.P=[Se.P],Se.Sa=[Se.Sa];e:{Je=d,Be=w,Ce=T;var Ze=Se.gb;Me=Se.na,De=Se.P,it=Se.Sa,gt=22,e(Je!=null),e(Ce!=null),Pe=Be[0];var Vt=Ce[0];for(e(Me!=null),e(it!=null),Me[0]=null,De[0]=null,it[0]=0;;){if(Be[0]=Pe,Ce[0]=Vt,8>Vt){Be=7;break e}var qt=ve(Je,Pe+4);if(4294967286<qt){Be=3;break e}var Dt=8+qt+1&-2;if(gt+=Dt,0<Ze&&gt>Ze){Be=3;break e}if(!t(Je,Pe,"VP8 ")||!t(Je,Pe,"VP8L")){Be=0;break e}if(Vt[0]<Dt){Be=7;break e}t(Je,Pe,"ALPH")||(Me[0]=Je,De[0]=Pe+8,it[0]=qt),Pe+=Dt,Vt-=Dt}}if(T=T[0],Se.na=Se.na[0],Se.P=Se.P[0],Se.Sa=Se.Sa[0],Be!=0)break}T=[T],Se.Ja=[Se.Ja],Se.xa=[Se.xa];e:if(Ze=d,Be=w,Ce=T,Me=Se.gb[0],De=Se.Ja,it=Se.xa,Je=Be[0],Pe=!t(Ze,Je,"VP8 "),gt=!t(Ze,Je,"VP8L"),e(Ze!=null),e(Ce!=null),e(De!=null),e(it!=null),8>Ce[0])Be=7;else{if(Pe||gt){if(Ze=ve(Ze,Je+4),12<=Me&&Ze>Me-12){Be=3;break e}if(_e&&Ze>Ce[0]-8){Be=7;break e}De[0]=Ze,Be[0]+=8,Ce[0]-=8,it[0]=gt}else it[0]=5<=Ce[0]&&Ze[Je+0]==47&&!(Ze[Je+4]>>5),De[0]=Ce[0];Be=0}if(T=T[0],Se.Ja=Se.Ja[0],Se.xa=Se.xa[0],w=w[0],Be!=0)break;if(4294967286<Se.Ja)return 3;if(le==null||Re||(le[0]=Se.xa?2:1),Ae=[Ae],He=[He],Se.xa){if(5>T){Be=7;break}le=Ae,_e=He,Re=re,d==null||5>T?d=0:5<=T&&d[w+0]==47&&!(d[w+4]>>5)?(Ce=[0],Ze=[0],Me=[0],oe(De=new x,d,w,T),dt(De,Ce,Ze,Me)?(le!=null&&(le[0]=Ce[0]),_e!=null&&(_e[0]=Ze[0]),Re!=null&&(Re[0]=Me[0]),d=1):d=0):d=0}else{if(10>T){Be=7;break}le=He,d==null||10>T||!Nf(d,w+3,T-3)?d=0:(_e=d[w+0]|d[w+1]<<8|d[w+2]<<16,Re=16383&(d[w+7]<<8|d[w+6]),d=16383&(d[w+9]<<8|d[w+8]),1&_e||3<(_e>>1&7)||!(_e>>4&1)||_e>>5>=Se.Ja||!Re||!d?d=0:(Ae&&(Ae[0]=Re),le&&(le[0]=d),d=1))}if(!d||(Ae=Ae[0],He=He[0],Te&&(pe[0]!=Ae||be[0]!=He)))return 3;he!=null&&(he[0]=Se,he.offset=w-he.w,e(4294967286>w-he.w),e(he.offset==he.ha-T));break}return Be==0||Be==7&&Te&&he==null?(re!=null&&(re[0]|=Se.na!=null&&0<Se.na.length),j!=null&&(j[0]=Ae),Y!=null&&(Y[0]=He),0):Be}function xu(d,w,T){var j=w.width,Y=w.height,re=0,Ae=0,le=j,he=Y;if(w.Da=d!=null&&0<d.Da,w.Da&&(le=d.cd,he=d.bd,re=d.v,Ae=d.j,11>T||(re&=-2,Ae&=-2),0>re||0>Ae||0>=le||0>=he||re+le>j||Ae+he>Y))return 0;if(w.v=re,w.j=Ae,w.va=re+le,w.o=Ae+he,w.U=le,w.T=he,w.da=d!=null&&0<d.da,w.da){if(!B(le,he,T=[d.ib],re=[d.hb]))return 0;w.ib=T[0],w.hb=re[0]}return w.ob=d!=null&&d.ob,w.Kb=d==null||!d.Sd,w.da&&(w.ob=w.ib<3*j/4&&w.hb<3*Y/4,w.Kb=0),1}function Cu(d){if(d==null)return 2;if(11>d.S){var w=d.f.RGBA;w.fb+=(d.height-1)*w.A,w.A=-w.A}else w=d.f.kb,d=d.height,w.O+=(d-1)*w.fa,w.fa=-w.fa,w.N+=(d-1>>1)*w.Ab,w.Ab=-w.Ab,w.W+=(d-1>>1)*w.Db,w.Db=-w.Db,w.F!=null&&(w.J+=(d-1)*w.lb,w.lb=-w.lb);return 0}function ko(d,w,T,j){if(j==null||0>=d||0>=w)return 2;if(T!=null){if(T.Da){var Y=T.cd,re=T.bd,Ae=-2&T.v,le=-2&T.j;if(0>Ae||0>le||0>=Y||0>=re||Ae+Y>d||le+re>w)return 2;d=Y,w=re}if(T.da){if(!B(d,w,Y=[T.ib],re=[T.hb]))return 2;d=Y[0],w=re[0]}}j.width=d,j.height=w;e:{var he=j.width,pe=j.height;if(d=j.S,0>=he||0>=pe||!(d>=nd&&13>d))d=2;else{if(0>=j.Rd&&j.sd==null){Ae=re=Y=w=0;var be=(le=he*GS[d])*pe;if(11>d||(re=(pe+1)/2*(w=(he+1)/2),d==12&&(Ae=(Y=he)*pe)),(pe=A(be+2*re+Ae))==null){d=1;break e}j.sd=pe,11>d?((he=j.f.RGBA).eb=pe,he.fb=0,he.A=le,he.size=be):((he=j.f.kb).y=pe,he.O=0,he.fa=le,he.Fd=be,he.f=pe,he.N=0+be,he.Ab=w,he.Cd=re,he.ea=pe,he.W=0+be+re,he.Db=w,he.Ed=re,d==12&&(he.F=pe,he.J=0+be+2*re),he.Tc=Ae,he.lb=Y)}if(w=1,Y=j.S,re=j.width,Ae=j.height,Y>=nd&&13>Y)if(11>Y)d=j.f.RGBA,w&=(le=Math.abs(d.A))*(Ae-1)+re<=d.size,w&=le>=re*GS[Y],w&=d.eb!=null;else{d=j.f.kb,le=(re+1)/2,be=(Ae+1)/2,he=Math.abs(d.fa),pe=Math.abs(d.Ab);var Te=Math.abs(d.Db),_e=Math.abs(d.lb),Se=_e*(Ae-1)+re;w&=he*(Ae-1)+re<=d.Fd,w&=pe*(be-1)+le<=d.Cd,w=(w&=Te*(be-1)+le<=d.Ed)&he>=re&pe>=le&Te>=le,w&=d.y!=null,w&=d.f!=null,w&=d.ea!=null,Y==12&&(w&=_e>=re,w&=Se<=d.Tc,w&=d.F!=null)}else w=0;d=w?0:2}}return d!=0||T!=null&&T.fd&&(d=Cu(j)),d}var dn=64,Po=[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],Do=24,Ho=32,Eu=8,Gn=[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"),P.Predictor0=function(){return 4278190080},P.Predictor1=function(d){return d},P.Predictor2=function(d,w,T){return w[T+0]},P.Predictor3=function(d,w,T){return w[T+1]},P.Predictor4=function(d,w,T){return w[T-1]},P.Predictor5=function(d,w,T){return ue(ue(d,w[T+1]),w[T+0])},P.Predictor6=function(d,w,T){return ue(d,w[T-1])},P.Predictor7=function(d,w,T){return ue(d,w[T+0])},P.Predictor8=function(d,w,T){return ue(w[T-1],w[T+0])},P.Predictor9=function(d,w,T){return ue(w[T+0],w[T+1])},P.Predictor10=function(d,w,T){return ue(ue(d,w[T-1]),ue(w[T+0],w[T+1]))},P.Predictor11=function(d,w,T){var j=w[T+0];return 0>=Ie(j>>24&255,d>>24&255,(w=w[T-1])>>24&255)+Ie(j>>16&255,d>>16&255,w>>16&255)+Ie(j>>8&255,d>>8&255,w>>8&255)+Ie(255&j,255&d,255&w)?j:d},P.Predictor12=function(d,w,T){var j=w[T+0];return(xe((d>>24&255)+(j>>24&255)-((w=w[T-1])>>24&255))<<24|xe((d>>16&255)+(j>>16&255)-(w>>16&255))<<16|xe((d>>8&255)+(j>>8&255)-(w>>8&255))<<8|xe((255&d)+(255&j)-(255&w)))>>>0},P.Predictor13=function(d,w,T){var j=w[T-1];return(Ue((d=ue(d,w[T+0]))>>24&255,j>>24&255)<<24|Ue(d>>16&255,j>>16&255)<<16|Ue(d>>8&255,j>>8&255)<<8|Ue(d>>0&255,j>>0&255))>>>0};var Ew=P.PredictorAdd0;P.PredictorAdd1=ke,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 Su=P.PredictorAdd2;ft("ColorIndexInverseTransform","MapARGB","32b",function(d){return d>>8&255},function(d){return d}),ft("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(d){return d},function(d){return d>>8&255});var Yf,Bi=P.ColorIndexInverseTransform,Mo=P.MapARGB,Jf=P.VP8LColorIndexInverseTransformAlpha,Zf=P.MapAlpha,Ea=P.VP8LPredictorsAdd=[];Ea.length=16,(P.VP8LPredictors=[]).length=16,(P.VP8LPredictorsAdd_C=[]).length=16,(P.VP8LPredictors_C=[]).length=16;var xs,Wn,kn,Sa,jA,KA,jo,VA,Pr,Fu,Pn,xi,Ko,ed,Iu,Cs,Es,Fa,Ss,Vo,Fs,Ia,Uu,Ci,Ei,sr,or,Dr,Yr=A(511),zA=A(2041),Tu=A(225),zo=A(767),td=0,Sw=zA,rd=Tu,oi=zo,Si=Yr,nd=0,id=1,OS=2,Ad=3,ad=4,Fw=5,kS=6,Iw=7,Uw=8,sd=9,Tw=10,Rq=[2,3,7],Oq=[3,3,11],PS=[280,256,256,256,40],kq=[0,1,1,1,0],Pq=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Dq=[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],Hq=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Mq=8,_w=[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],Lw=[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],_u=null,jq=[[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]],Kq=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],DS=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Vq=[[[[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]]]],zq=[[[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]]],$q=[[[[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]]]],Gq=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ua=[],qi=[],$A=[],Wq=1,HS=2,Ta=[],Fi=[];Oe("UpsampleRgbLinePair",kt,3),Oe("UpsampleBgrLinePair",mr,3),Oe("UpsampleRgbaLinePair",Wi,4),Oe("UpsampleBgraLinePair",An,4),Oe("UpsampleArgbLinePair",Un,4),Oe("UpsampleRgba4444LinePair",zr,2),Oe("UpsampleRgb565LinePair",Er,2);var qq=P.UpsampleRgbLinePair,Xq=P.UpsampleBgrLinePair,MS=P.UpsampleRgbaLinePair,jS=P.UpsampleBgraLinePair,KS=P.UpsampleArgbLinePair,VS=P.UpsampleRgba4444LinePair,Yq=P.UpsampleRgb565LinePair,od=16,ld=1<<od-1,Lu=-227,Qw=482,Jq=6,zS=0,Zq=A(256),eX=A(256),tX=A(256),rX=A(256),nX=A(Qw-Lu),iX=A(Qw-Lu);dA("YuvToRgbRow",kt,3),dA("YuvToBgrRow",mr,3),dA("YuvToRgbaRow",Wi,4),dA("YuvToBgraRow",An,4),dA("YuvToArgbRow",Un,4),dA("YuvToRgba4444Row",zr,2),dA("YuvToRgb565Row",Er,2);var $S=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ud=[0,2,8],AX=[8,7,6,4,4,2,2,2,1,1,1,1],aX=1;this.WebPDecodeRGBA=function(d,w,T,j,Y){var re=id,Ae=new No,le=new ar;Ae.ba=le,le.S=re,le.width=[le.width],le.height=[le.height];var he=le.width,pe=le.height,be=new Mt;if(be==null||d==null)var Te=2;else e(be!=null),Te=Oo(d,w,T,be.width,be.height,be.Pd,be.Qd,be.format,null);if(Te!=0?he=0:(he!=null&&(he[0]=be.width[0]),pe!=null&&(pe[0]=be.height[0]),he=1),he){le.width=le.width[0],le.height=le.height[0],j!=null&&(j[0]=le.width),Y!=null&&(Y[0]=le.height);e:{if(j=new Fo,(Y=new mu).data=d,Y.w=w,Y.ha=T,Y.kd=1,w=[0],e(Y!=null),((d=Oo(Y.data,Y.w,Y.ha,null,null,null,w,null,Y))==0||d==7)&&w[0]&&(d=4),(w=d)==0){if(e(Ae!=null),j.data=Y.data,j.w=Y.w+Y.offset,j.ha=Y.ha-Y.offset,j.put=zn,j.ac=Vr,j.bc=ni,j.ma=Ae,Y.xa){if((d=On())==null){Ae=1;break e}if(function(_e,Se){var He=[0],Re=[0],Be=[0];t:for(;;){if(_e==null)return 0;if(Se==null)return _e.a=2,0;if(_e.l=Se,_e.a=0,oe(_e.m,Se.data,Se.w,Se.ha),!dt(_e.m,He,Re,Be)){_e.a=3;break t}if(_e.xb=HS,Se.width=He[0],Se.height=Re[0],!ai(He[0],Re[0],1,_e,null))break t;return 1}return e(_e.a!=0),0}(d,j)){if(j=(w=ko(j.width,j.height,Ae.Oa,Ae.ba))==0){t:{j=d;r:for(;;){if(j==null){j=0;break t}if(e(j.s.yc!=null),e(j.s.Ya!=null),e(0<j.s.Wb),e((T=j.l)!=null),e((Y=T.ma)!=null),j.xb!=0){if(j.ca=Y.ba,j.tb=Y.tb,e(j.ca!=null),!xu(Y.Oa,T,Ad)){j.a=2;break r}if(!cA(j,T.width)||T.da)break r;if((T.da||Ut(j.ca.S))&&Fe(),11>j.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),j.ca.f.kb.F!=null&&Fe()),j.Pb&&0<j.s.ua&&j.s.vb.X==null&&!k(j.s.vb,j.s.Wa.Xa)){j.a=1;break r}j.xb=0}if(!Or(j,j.V,j.Ba,j.c,j.i,T.o,DA))break r;Y.Dc=j.Ma,j=1;break t}e(j.a!=0),j=0}j=!j}j&&(w=d.a)}else w=d.a}else{if((d=new aw)==null){Ae=1;break e}if(d.Fa=Y.na,d.P=Y.P,d.qc=Y.Sa,Rf(d,j)){if((w=ko(j.width,j.height,Ae.Oa,Ae.ba))==0){if(d.Aa=0,T=Ae.Oa,e((Y=d)!=null),T!=null){if(0<(he=0>(he=T.Md)?0:100<he?255:255*he/100)){for(pe=be=0;4>pe;++pe)12>(Te=Y.pb[pe]).lc&&(Te.ia=he*AX[0>Te.lc?0:Te.lc]>>3),be|=Te.ia;be&&(alert("todo:VP8InitRandom"),Y.ia=1)}Y.Ga=T.Id,100<Y.Ga?Y.Ga=100:0>Y.Ga&&(Y.Ga=0)}sw(d,j)||(w=d.a)}}else w=d.a}w==0&&Ae.Oa!=null&&Ae.Oa.fd&&(w=Cu(Ae.ba))}Ae=w}re=Ae!=0?null:11>re?le.f.RGBA.eb:le.f.kb.y}else re=null;return re};var GS=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(P,_){for(var G="",D=0;D<4;D++)G+=String.fromCharCode(P[_++]);return G}function u(P,_){return(P[_+0]<<0|P[_+1]<<8|P[_+2]<<16)>>>0}function h(P,_){return(P[_+0]<<0|P[_+1]<<8|P[_+2]<<16|P[_+3]<<24)>>>0}new o;var f=[0],c=[0],g=[],m=new o,y=r,p=function(P,_){var G={},D=0,S=!1,K=0,F=0;if(G.frames=[],!function(H,V,q,$){for(var L=0;L<$;L++)if(H[V+L]!=q.charCodeAt(L))return!0;return!1}(P,_,"RIFF",4)){var ee,Z;for(h(P,_+=4),_+=8;_<P.length;){var z=l(P,_),oe=h(P,_+=4);_+=4;var W=oe+(1&oe);switch(z){case"VP8 ":case"VP8L":G.frames[D]===void 0&&(G.frames[D]={}),(x=G.frames[D]).src_off=S?F:_-8,x.src_size=K+oe+8,D++,S&&(S=!1,K=0,F=0);break;case"VP8X":(x=G.header={}).feature_flags=P[_];var ce=_+4;x.canvas_width=1+u(P,ce),ce+=3,x.canvas_height=1+u(P,ce),ce+=3;break;case"ALPH":S=!0,K=W+8,F=_-8;break;case"ANIM":(x=G.header).bgcolor=h(P,_),ce=_+4,x.loop_count=(ee=P)[(Z=ce)+0]<<0|ee[Z+1]<<8,ce+=2;break;case"ANMF":var ie,x;(x=G.frames[D]={}).offset_x=2*u(P,_),_+=3,x.offset_y=2*u(P,_),_+=3,x.width=1+u(P,_),_+=3,x.height=1+u(P,_),_+=3,x.duration=u(P,_),_+=3,ie=P[_++],x.dispose=1&ie,x.blend=ie>>1&1}z!="ANMF"&&(_+=W)}return G}}(y,0);p.response=y,p.rgbaoutput=!0,p.dataurl=!1;var v=p.header?p.header:null,b=p.frames?p.frames:null;if(v){v.loop_counter=v.loop_count,f=[v.canvas_height],c=[v.canvas_width];for(var I=0;I<b.length&&b[I].blend!=0;I++);}var N=b[0],M=m.WebPDecodeRGBA(y,N.src_off,N.src_size,c,f);N.rgba=M,N.imgwidth=c[0],N.imgheight=f[0];for(var O=0;O<c[0]*f[0]*4;O++)g[O]=M[O];return this.width=c,this.height=f,this.data=g,this}(function(r){var e=function(){return typeof dg=="function"},t=function(f,c,g,m){var y=4,p=a;switch(m){case r.image_compression.FAST:y=1,p=A;break;case r.image_compression.MEDIUM:y=6,p=s;break;case r.image_compression.SLOW:y=9,p=o}f=n(f,c,g,p);var v=dg(f,{level:y});return r.__addimage__.arrayBufferToBinaryString(v)},n=function(f,c,g,m){for(var y,p,v,b=f.length/c,I=new Uint8Array(f.length+b),N=u(),M=0;M<b;M+=1){if(v=M*c,y=f.subarray(v,v+c),m)I.set(m(y,g,p),v+M);else{for(var O,P=N.length,_=[];O<P;O+=1)_[O]=N[O](y,g,p);var G=h(_.concat());I.set(_[G],v+M)}p=y}return I},i=function(f){var c=Array.apply([],f);return c.unshift(0),c},A=function(f,c){var g,m=[],y=f.length;m[0]=1;for(var p=0;p<y;p+=1)g=f[p-c]||0,m[p+1]=f[p]-g+256&255;return m},a=function(f,c,g){var m,y=[],p=f.length;y[0]=2;for(var v=0;v<p;v+=1)m=g&&g[v]||0,y[v+1]=f[v]-m+256&255;return y},s=function(f,c,g){var m,y,p=[],v=f.length;p[0]=3;for(var b=0;b<v;b+=1)m=f[b-c]||0,y=g&&g[b]||0,p[b+1]=f[b]+256-(m+y>>>1)&255;return p},o=function(f,c,g){var m,y,p,v,b=[],I=f.length;b[0]=4;for(var N=0;N<I;N+=1)m=f[N-c]||0,y=g&&g[N]||0,p=g&&g[N-c]||0,v=l(m,y,p),b[N+1]=f[N]-v+256&255;return b},l=function(f,c,g){if(f===c&&c===g)return f;var m=Math.abs(c-g),y=Math.abs(f-g),p=Math.abs(f+c-g-g);return m<=y&&m<=p?f:y<=p?c:g},u=function(){return[i,A,a,s,o]},h=function(f){var c=f.map(function(g){return g.reduce(function(m,y){return m+Math.abs(y)},0)});return c.indexOf(Math.min.apply(null,c))};r.processPNG=function(f,c,g,m){var y,p,v,b,I,N,M,O,P,_,G,D,S,K,F,ee=this.decode.FLATE_DECODE,Z="";if(this.__addimage__.isArrayBuffer(f)&&(f=new Uint8Array(f)),this.__addimage__.isArrayBufferView(f)){if(f=(v=new cQ(f)).imgData,p=v.bits,y=v.colorSpace,I=v.colors,[4,6].indexOf(v.colorType)!==-1){if(v.bits===8){P=(O=v.pixelBitlength==32?new Uint32Array(v.decodePixels().buffer):v.pixelBitlength==16?new Uint16Array(v.decodePixels().buffer):new Uint8Array(v.decodePixels().buffer)).length,G=new Uint8Array(P*v.colors),_=new Uint8Array(P);var z,oe=v.pixelBitlength-v.bits;for(K=0,F=0;K<P;K++){for(S=O[K],z=0;z<oe;)G[F++]=S>>>z&255,z+=v.bits;_[K]=S>>>z&255}}if(v.bits===16){P=(O=new Uint32Array(v.decodePixels().buffer)).length,G=new Uint8Array(P*(32/v.pixelBitlength)*v.colors),_=new Uint8Array(P*(32/v.pixelBitlength)),D=v.colors>1,K=0,F=0;for(var W=0;K<P;)S=O[K++],G[F++]=S>>>0&255,D&&(G[F++]=S>>>16&255,S=O[K++],G[F++]=S>>>0&255),_[W++]=S>>>16&255;p=8}m!==r.image_compression.NONE&&e()?(f=t(G,v.width*v.colors,v.colors,m),M=t(_,v.width,1,m)):(f=G,M=_,ee=void 0)}if(v.colorType===3&&(y=this.color_spaces.INDEXED,N=v.palette,v.transparency.indexed)){var ce=v.transparency.indexed,ie=0;for(K=0,P=ce.length;K<P;++K)ie+=ce[K];if((ie/=255)===P-1&&ce.indexOf(0)!==-1)b=[ce.indexOf(0)];else if(ie!==P){for(O=v.decodePixels(),_=new Uint8Array(O.length),K=0,P=O.length;K<P;K++)_[K]=ce[O[K]];M=t(_,v.width,1)}}var x=function(H){var V;switch(H){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 ee===this.decode.FLATE_DECODE&&(Z="/Predictor "+x+" "),Z+="/Colors "+I+" /BitsPerComponent "+p+" /Columns "+v.width,(this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),(M&&this.__addimage__.isArrayBuffer(M)||this.__addimage__.isArrayBufferView(M))&&(M=this.__addimage__.arrayBufferToBinaryString(M)),{alias:g,data:f,index:c,filter:ee,decodeParameters:Z,transparency:b,palette:N,sMask:M,predictor:x,width:v.width,height:v.height,bitsPerComponent:p,colorSpace:y}}}})(pt.API),function(r){r.processGIF89A=function(e,t,n,i){var A=new hQ(e),a=A.width,s=A.height,o=[];A.decodeAndBlitFrameRGBA(0,o);var l={data:o,width:a,height:s},u=new Fg(100).encode(l,100);return r.processJPEG.call(this,u,t,n,i)},r.processGIF87A=r.processGIF89A}(pt.API),Qi.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),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:t,quad:A}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Qi.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){rr.log("bit decode error:"+t)}},Qi.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,i=0;i<e;i++)for(var A=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var o=this.palette[A>>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)}},Qi.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,i=0;i<r;i++){var A=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*i*4,s=A>>4,o=15&A,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*i+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)}},Qi.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 i=this.datav.getUint8(this.pos++,!0),A=t*this.width*4+4*n;if(i<this.palette.length){var a=this.palette[i];this.data[A]=a.red,this.data[A+1]=a.green,this.data[A+2]=a.blue,this.data[A+3]=255}else this.data[A]=255,this.data[A+1]=255,this.data[A+2]=255,this.data[A+3]=255}r!==0&&(this.pos+=4-r)}},Qi.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,i=0;i<this.width;i++){var A=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(A&e)/e*255|0,s=(A>>5&e)/e*255|0,o=(A>>10&e)/e*255|0,l=A>>15?255:0,u=n*this.width*4+4*i;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=l}this.pos+=r}},Qi.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 i=this.bottom_up?n:this.height-1-n,A=0;A<this.width;A++){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=i*this.width*4+4*A;this.data[u]=l,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=255}this.pos+=r}},Qi.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),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*t;this.data[a]=A,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},Qi.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),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=A,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=a}},Qi.prototype.getData=function(){return this.data},function(r){r.processBMP=function(e,t,n,i){var A=new Qi(e,!1),a=A.width,s=A.height,o={data:A.getData(),width:a,height:s},l=new Fg(100).encode(o,100);return r.processJPEG.call(this,l,t,n,i)}}(pt.API),TB.prototype.getData=function(){return this.data},function(r){r.processWEBP=function(e,t,n,i){var A=new TB(e),a=A.width,s=A.height,o={data:A.getData(),width:a,height:s},l=new Fg(100).encode(o,100);return r.processJPEG.call(this,l,t,n,i)}}(pt.API),pt.API.processRGBA=function(r,e,t){for(var n=r.data,i=n.length,A=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,o=0,l=0;l<i;l+=4){var u=n[l],h=n[l+1],f=n[l+2],c=n[l+3];A[s++]=u,A[s++]=h,A[s++]=f,a[o++]=c}var g=this.__addimage__.arrayBufferToBinaryString(A);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:g,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:r.width,height:r.height}},pt.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},Xs=pt.API,Ec=Xs.getCharWidthsArray=function(r,e){var t,n,i=(e=e||{}).font||this.internal.getFont(),A=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,o=s.fof?s.fof:1,l=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,h=e.doKerning!==!1,f=0,c=r.length,g=0,m=s[0]||o,y=[];for(t=0;t<c;t++)n=r.charCodeAt(t),typeof i.metadata.widthOfString=="function"?y.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+a*(1e3/A)||0)/1e3):(f=h&&Ht(l[n])==="object"&&!isNaN(parseInt(l[n][g],10))?l[n][g]/u:0,y.push((s[n]||m)/o+f)),g=n;return y},SB=Xs.getStringUnitWidth=function(r,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Xs.processArabic&&(r=Xs.processArabic(r)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(r,t,i)/t:Ec.apply(this,arguments).reduce(function(A,a){return A+a},0)},FB=function(r,e,t,n){for(var i=[],A=0,a=r.length,s=0;A!==a&&s+e[A]<t;)s+=e[A],A++;i.push(r.slice(0,A));var o=A;for(s=0;A!==a;)s+e[A]>n&&(i.push(r.slice(o,A)),s=0,o=A),s+=e[A],A++;return o!==A&&i.push(r.slice(o,A)),i},IB=function(r,e,t){t||(t={});var n,i,A,a,s,o,l,u=[],h=[u],f=t.textIndent||0,c=0,g=0,m=r.split(" "),y=Ec.apply(this,[" ",t])[0];if(o=t.lineIndent===-1?m[0].length+2:t.lineIndent||0){var p=Array(o).join(" "),v=[];m.map(function(I){(I=I.split(/\s*\n/)).length>1?v=v.concat(I.map(function(N,M){return(M&&N.length?`
298
+ `:"")+N})):v.push(I[0])}),m=v,o=SB.apply(this,[p,t])}for(A=0,a=m.length;A<a;A++){var b=0;if(n=m[A],o&&n[0]==`
299
+ `&&(n=n.substr(1),b=1),f+c+(g=(i=Ec.apply(this,[n,t])).reduce(function(I,N){return I+N},0))>e||b){if(g>e){for(s=FB.apply(this,[n,i,e-(f+c),e]),u.push(s.shift()),u=[s.pop()];s.length;)h.push([s.shift()]);g=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(I,N){return I+N},0)}else u=[n];h.push(u),f=g+o,c=y}else u.push(n),f+=c+g,c=y}return l=o?function(I,N){return(N?p:"")+I.join(" ")}:function(I){return I.join(" ")},h.map(l)},Xs.splitTextToSize=function(r,e,t){var n,i=(t=t||{}).fontSize||this.internal.getFontSize(),A=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/i;A.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,A.lineIndent=t.lineIndent;var s,o,l=[];for(s=0,o=n.length;s<o;s++)l=l.concat(IB.apply(this,[n[s],a,A]));return l},function(r){r.__fontmetrics__=r.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",t={},n={},i=0;i<e.length;i++)t[e[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=e[i];var A=function(h){return"0x"+parseInt(h,10).toString(16)},a=r.__fontmetrics__.compress=function(h){var f,c,g,m,y=["{"];for(var p in h){if(f=h[p],isNaN(parseInt(p,10))?c="'"+p+"'":(p=parseInt(p,10),c=(c=A(p).slice(2)).slice(0,-1)+n[c.slice(-1)]),typeof f=="number")f<0?(g=A(f).slice(3),m="-"):(g=A(f).slice(2),m=""),g=m+g.slice(0,-1)+n[g.slice(-1)];else{if(Ht(f)!=="object")throw new Error("Don't know what to do with value type "+Ht(f)+".");g=a(f)}y.push(c+g)}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 f,c,g,m,y={},p=1,v=y,b=[],I="",N="",M=h.length-1,O=1;O<M;O+=1)(m=h[O])=="'"?f?(g=f.join(""),f=void 0):f=[]:f?f.push(m):m=="{"?(b.push([v,g]),v={},g=void 0):m=="}"?((c=b.pop())[0][c[1]]=v,g=void 0,v=c[0]):m=="-"?p=-1:g===void 0?t.hasOwnProperty(m)?(I+=t[m],g=parseInt(I,16)*p,p=1,I=""):I+=m:t.hasOwnProperty(m)?(N+=t[m],v[g]=parseInt(N,16)*p,p=1,g=void 0,N=""):N+=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 f=h.font,c=u.Unicode[f.postScriptName];c&&(f.metadata.Unicode={},f.metadata.Unicode.widths=c.widths,f.metadata.Unicode.kerning=c.kerning);var g=l.Unicode[f.postScriptName];g&&(f.metadata.Unicode.encoding=g,f.encoding=g.codePages[0])}])}(pt.API),function(r){var e=function(t){for(var n=t.length,i=new Uint8Array(n),A=0;A<n;A++)i[A]=t.charCodeAt(A);return i};r.API.events.push(["addFont",function(t){var n=void 0,i=t.font,A=t.instance;if(!i.isStandardFont){if(A===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=A.existsFileInVFS(i.postScriptName)===!1?A.loadFile(i.postScriptName):A.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?e(s):e(ul(s)),a.metadata=r.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(i,n)}}])}(pt),function(r){function e(){return(mt.canvg?Promise.resolve(mt.canvg):Promise.resolve().then(()=>Nq)).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}pt.API.addSvgAsImage=function(t,n,i,A,a,s,o,l){if(isNaN(n)||isNaN(i))throw rr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(A)||isNaN(a))throw rr.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=A,u.height=a;var h=u.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,u.width,u.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},c=this;return e().then(function(g){return g.fromString(h,t,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(g){return g.render(f)}).then(function(){c.addImage(u.toDataURL("image/jpeg",1),n,i,A,a,o,l)})}}(),pt.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 i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,t);return this},pt.API.viewerPreferences=function(r,e){var t;r=r||{},e=e||!1;var n,i,A,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 f(g,m){var y,p=!1;for(y=0;y<g.length;y+=1)g[y]===m&&(p=!0);return p}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(Ht(r)==="object"){for(i in r)if(A=r[i],f(s,i)&&A!==void 0){if(t[i].type==="boolean"&&typeof A=="boolean")t[i].value=A;else if(t[i].type==="name"&&f(t[i].valueSet,A))t[i].value=A;else if(t[i].type==="integer"&&Number.isInteger(A))t[i].value=A;else if(t[i].type==="array"){for(l=0;l<A.length;l+=1)if(n=!0,A[l].length===1&&typeof A[l][0]=="number")o.push(String(A[l]-1));else if(A[l].length>1){for(u=0;u<A[l].length;u+=1)typeof A[l][u]!="number"&&(n=!1);n===!0&&o.push([A[l][0]-1,A[l][1]-1].join(" "))}t[i].value="["+o.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var g,m=[];for(g in t)t[g].explicitSet===!0&&(t[g].type==="name"?m.push("/"+g+" /"+t[g].value):m.push("/"+g+" "+t[g].value));m.length!==0&&this.internal.write(`/ViewerPreferences
300
+ <<
301
+ `+m.join(`
302
+ `)+`
303
+ >>`)}),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>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),A=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=A.length+a.length+s.length+i.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(i+A+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,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",e)),this}}(pt.API),function(r){var e=r.API,t=e.pdfEscape16=function(A,a){for(var s,o=a.metadata.Unicode.widths,l=["","0","00","000","0000"],u=[""],h=0,f=A.length;h<f;++h){if(s=a.metadata.characterToGlyph(A.charCodeAt(h)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=A.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(A){var a,s,o,l,u,h,f;for(u=`/CIDInit /ProcSet findresource begin
304
+ 12 dict begin
305
+ begincmap
306
+ /CIDSystemInfo <<
307
+ /Registry (Adobe)
308
+ /Ordering (UCS)
309
+ /Supplement 0
310
+ >> def
311
+ /CMapName /Adobe-Identity-UCS def
312
+ /CMapType 2 def
313
+ 1 begincodespacerange
314
+ <0000><ffff>
315
+ endcodespacerange`,o=[],h=0,f=(s=Object.keys(A).sort(function(c,g){return c-g})).length;h<f;h++)a=s[h],o.length>=100&&(u+=`
316
+ `+o.length+` beginbfchar
317
+ `+o.join(`
318
+ `)+`
319
+ endbfchar`,o=[]),A[a]!==void 0&&A[a]!==null&&typeof A[a].toString=="function"&&(l=("0000"+A[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+l+">"));return o.length&&(u+=`
320
+ `+o.length+` beginbfchar
321
+ `+o.join(`
322
+ `)+`
323
+ endbfchar
324
+ `),u+=`endcmap
325
+ CMapName currentdict /CMap defineresource pop
326
+ end
327
+ end`};e.events.push(["putFont",function(A){(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,f=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),c="",g=0;g<f.length;g++)c+=String.fromCharCode(f[g]);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 p=l();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Ws(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 v=l();o("<<"),o("/Type /Font"),o("/BaseFont /"+Ws(s.fontName)),o("/FontDescriptor "+p+" 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 /"+Ws(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+v+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(A)}]),e.events.push(["putFont",function(A){(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,f="",c=0;c<h.length;c++)f+=String.fromCharCode(h[c]);var g=l();u({data:f,addLength1:!0,objectId:g}),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 "+g+" 0 R"),o("/Flags 96"),o("/FontBBox "+r.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+Ws(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=l();for(var p=0;p<s.metadata.hmtx.widths.length;p++)s.metadata.hmtx.widths[p]=parseInt(s.metadata.hmtx.widths[p]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+Ws(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}})(A)}]);var i=function(A){var a,s=A.text||"",o=A.x,l=A.y,u=A.options||{},h=A.mutex||{},f=h.pdfEscape,c=h.activeFontKey,g=h.fonts,m=c,y="",p=0,v="",b=g[m].encoding;if(g[m].encoding!=="Identity-H")return{text:s,x:o,y:l,options:u,mutex:h};for(v=s,m=c,Array.isArray(s)&&(v=s[0]),p=0;p<v.length;p+=1)g[m].metadata.hasOwnProperty("cmap")&&(a=g[m].metadata.cmap.unicode.codeMap[v[p].charCodeAt(0)]),a||v[p].charCodeAt(0)<256&&g[m].metadata.hasOwnProperty("Unicode")?y+=v[p]:y+="";var I="";return parseInt(m.slice(1))<14||b==="WinAnsiEncoding"?I=f(y,m).split("").map(function(N){return N.charCodeAt(0).toString(16)}).join(""):b==="Identity-H"&&(I=t(y,g[m])),h.isHex=!0,{text:I,x:o,y:l,options:u,mutex:h}};e.events.push(["postProcessText",function(A){var a=A.text||"",s=[],o={text:a,x:A.x,y:A.y,options:A.options,mutex:A.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([i(Object.assign({},o,{text:a[l][0]})).text,a[l][1],a[l][2]]):s.push(i(Object.assign({},o,{text:a[l]})).text);A.text=s}else A.text=i(Object.assign({},o,{text:a})).text}])}(pt),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}}(pt.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(n){var i,A,a,s,o,l,u,h=e,f=[[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]],g={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=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],p=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)$/),v=!1,b=0;this.__bidiEngine__={};var I=function(D){var S=D.charCodeAt(),K=S>>8,F=m[K];return F!==void 0?h[256*F+(255&S)]:K===252||K===253?"AL":p.test(K)?"L":K===8?"R":"N"},N=function(D){for(var S,K=0;K<D.length;K++){if((S=I(D.charAt(K)))==="L")return!1;if(S==="R")return!0}return!1},M=function(D,S,K,F){var ee,Z,z,oe,W=S[F];switch(W){case"L":case"R":v=!1;break;case"N":case"AN":break;case"EN":v&&(W="AN");break;case"AL":v=!0,W="R";break;case"WS":W="N";break;case"CS":F<1||F+1>=S.length||(ee=K[F-1])!=="EN"&&ee!=="AN"||(Z=S[F+1])!=="EN"&&Z!=="AN"?W="N":v&&(Z="AN"),W=Z===ee?Z:"N";break;case"ES":W=(ee=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"){W="EN";break}if(v){W="N";break}for(z=F+1,oe=S.length;z<oe&&S[z]==="ET";)z++;W=z<oe&&S[z]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(oe=S.length,z=F+1;z<oe&&S[z]==="NSM";)z++;if(z<oe){var ce=D[F],ie=ce>=1425&&ce<=2303||ce===64286;if(ee=S[z],ie&&(ee==="R"||ee==="AL")){W="R";break}}}W=F<1||(ee=S[F-1])==="B"?"N":K[F-1];break;case"B":v=!1,i=!0,W=b;break;case"S":A=!0,W="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":v=!1;break;case"BN":W="N"}return W},O=function(D,S,K){var F=D.split("");return K&&P(F,K,{hiLevel:b}),F.reverse(),S&&S.reverse(),F.join("")},P=function(D,S,K){var F,ee,Z,z,oe,W=-1,ce=D.length,ie=0,x=[],H=b?c:f,V=[];for(v=!1,i=!1,A=!1,ee=0;ee<ce;ee++)V[ee]=I(D[ee]);for(Z=0;Z<ce;Z++){if(oe=ie,x[Z]=M(D,V,x,Z),F=240&(ie=H[oe][g[x[Z]]]),ie&=15,S[Z]=z=H[ie][5],F>0)if(F===16){for(ee=W;ee<Z;ee++)S[ee]=1;W=-1}else W=-1;if(H[ie][6])W===-1&&(W=Z);else if(W>-1){for(ee=W;ee<Z;ee++)S[ee]=z;W=-1}V[Z]==="B"&&(S[Z]=0),K.hiLevel|=z}A&&function(q,$,L){for(var Q=0;Q<L;Q++)if(q[Q]==="S"){$[Q]=b;for(var te=Q-1;te>=0&&q[te]==="WS";te--)$[te]=b}}(V,S,ce)},_=function(D,S,K,F,ee){if(!(ee.hiLevel<D)){if(D===1&&b===1&&!i)return S.reverse(),void(K&&K.reverse());for(var Z,z,oe,W,ce=S.length,ie=0;ie<ce;){if(F[ie]>=D){for(oe=ie+1;oe<ce&&F[oe]>=D;)oe++;for(W=ie,z=oe-1;W<z;W++,z--)Z=S[W],S[W]=S[z],S[z]=Z,K&&(Z=K[W],K[W]=K[z],K[z]=Z);ie=oe}ie++}}},G=function(D,S,K){var F=D.split(""),ee={hiLevel:b};return K||(K=[]),P(F,K,ee),function(Z,z,oe){if(oe.hiLevel!==0&&u)for(var W,ce=0;ce<Z.length;ce++)z[ce]===1&&(W=y.indexOf(Z[ce]))>=0&&(Z[ce]=y[W+1])}(F,K,ee),_(2,F,S,K,ee),_(1,F,S,K,ee),F.join("")};return this.__bidiEngine__.doBidiReorder=function(D,S,K){if(function(ee,Z){if(Z)for(var z=0;z<ee.length;z++)Z[z]=z;s===void 0&&(s=N(ee)),l===void 0&&(l=N(ee))}(D,S),a||!o||l)if(a&&o&&s^l)b=s?1:0,D=O(D,S,K);else if(!a&&o&&l)b=s?1:0,D=G(D,S,K),D=O(D,S);else if(!a||s||o||l){if(a&&!o&&s^l)D=O(D,S),s?(b=0,D=G(D,S,K)):(b=1,D=G(D,S,K),D=O(D,S));else if(a&&s&&!o&&l)b=1,D=G(D,S,K),D=O(D,S);else if(!a&&!o&&s^l){var F=u;s?(b=1,D=G(D,S,K),b=0,u=!1,D=G(D,S,K),u=F):(b=0,D=G(D,S,K),D=O(D,S),b=1,u=!1,D=G(D,S,K),u=F,D=O(D,S))}}else b=0,D=G(D,S,K);else b=s?1:0,D=G(D,S,K);return D},this.__bidiEngine__.setOptions=function(D){D&&(a=D.isInputVisual,o=D.isOutputVisual,s=D.isInputRtl,l=D.isOutputRtl,u=D.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 i=n.text,A=(n.x,n.y,n.options||{}),a=(n.mutex,A.lang,[]);if(A.isInputVisual=typeof A.isInputVisual!="boolean"||A.isInputVisual,t.setOptions(A),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(a=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?a.push([t.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):a.push([t.doBidiReorder(i[s])]);n.text=a}else n.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])}(pt),pt.API.TTFFont=function(){function r(e){var t;if(this.rawData=e,t=this.contents=new ia(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new FQ(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new fQ(this.contents),this.head=new pQ(this),this.name=new yQ(this),this.cmap=new LB(this),this.toUnicode={},this.hhea=new gQ(this),this.maxp=new bQ(this),this.hmtx=new BQ(this),this.post=new vQ(this),this.os2=new mQ(this),this.loca=new SQ(this),this.glyf=new xQ(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,i,A;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&(i=this.post.italic_angle),32768&(t=i>>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=(A=this.familyClass)===1||A===2||A===3||A===4||A===5||A===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 i,A,a,s;for(a=0,A=0,s=(e=""+e).length;0<=s?A<s:A>s;A=0<=s?++A:--A)i=e.charCodeAt(A),a+=this.widthOfGlyph(this.characterToGlyph(i))+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 Ni,ia=function(){function r(e){this.data=e!=null?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,i;for(i=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,n,i,A,a,s,o;return e=this.readByte(),t=this.readByte(),n=this.readByte(),i=this.readByte(),A=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^i)+16777216*(255^A)+65536*(255^a)+256*(255^s)+(255^o)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*i+16777216*A+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,i,A;for(A=[],n=0,i=e.length;n<i;n++)t=e[n],A.push(this.writeByte(t));return A},r}(),fQ=function(){var r;function e(t){var n,i,A;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,A=this.tableCount;0<=A?i<A:i>A;i=0<=A?++i:--i)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,i,A,a,s,o,l,u,h,f,c,g,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,(i=new ia).writeInt(this.scalarType),i.writeShort(c),i.writeShort(h),i.writeShort(a),i.writeShort(u),A=16*c,l=i.pos+A,s=null,g=[],t)for(f=t[m],i.writeString(m),i.writeInt(r(f)),i.writeInt(l),i.writeInt(f.length),g=g.concat(f),m==="head"&&(s=l),l+=f.length;l%4;)g.push(0),l++;return i.write(g),n=2981146554-r(i.data),i.pos=s+8,i.writeUInt32(n),i.data},r=function(t){var n,i,A,a;for(t=QB.call(t);t.length%4;)t.push(0);for(A=new ia(t),i=0,n=0,a=t.length;n<a;n=n+=4)i+=A.readUInt32();return 4294967295&i},e}(),dQ={}.hasOwnProperty,AA=function(r,e){for(var t in e)dQ.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};Ni=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 pQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),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 ia).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}(),_B=function(){function r(e,t){var n,i,A,a,s,o,l,u,h,f,c,g,m,y,p,v,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(),f=c/2,e.pos+=6,A=function(){var I,N;for(N=[],o=I=0;0<=f?I<f:I>f;o=0<=f?++I:--I)N.push(e.readUInt16());return N}(),e.pos+=2,m=function(){var I,N;for(N=[],o=I=0;0<=f?I<f:I>f;o=0<=f?++I:--I)N.push(e.readUInt16());return N}(),l=function(){var I,N;for(N=[],o=I=0;0<=f?I<f:I>f;o=0<=f?++I:--I)N.push(e.readUInt16());return N}(),u=function(){var I,N;for(N=[],o=I=0;0<=f?I<f:I>f;o=0<=f?++I:--I)N.push(e.readUInt16());return N}(),i=(this.length-e.pos+this.offset)/2,s=function(){var I,N;for(N=[],o=I=0;0<=i?I<i:I>i;o=0<=i?++I:--I)N.push(e.readUInt16());return N}(),o=p=0,b=A.length;p<b;o=++p)for(y=A[o],n=v=g=m[o];g<=y?v<=y:v>=y;n=g<=y?++v:--v)u[o]===0?a=n+l[o]:(a=s[u[o]/2+(n-g)-(f-o)]||0)!==0&&(a+=l[o]),this.codeMap[n]=65535&a}e.pos=h}return r.encode=function(e,t){var n,i,A,a,s,o,l,u,h,f,c,g,m,y,p,v,b,I,N,M,O,P,_,G,D,S,K,F,ee,Z,z,oe,W,ce,ie,x,H,V,q,$,L,Q,te,se,X,ne;switch(F=new ia,a=Object.keys(e).sort(function(ve,k){return ve-k}),t){case"macroman":for(m=0,y=function(){var ve=[];for(g=0;g<256;++g)ve.push(0);return ve}(),v={0:0},A={},ee=0,W=a.length;ee<W;ee++)v[te=e[i=a[ee]]]==null&&(v[te]=++m),A[i]={old:e[i],new:v[e[i]]},y[i]=v[e[i]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(y),{charMap:A,subtable:F.data,maxGlyphID:m+1};case"unicode":for(S=[],h=[],b=0,v={},n={},p=l=null,Z=0,ce=a.length;Z<ce;Z++)v[N=e[i=a[Z]]]==null&&(v[N]=++b),n[i]={old:N,new:v[N]},s=v[N]-i,p!=null&&s===l||(p&&h.push(p),S.push(i),l=s),p=i;for(p&&h.push(p),h.push(65535),S.push(65535),G=2*(_=S.length),P=2*Math.pow(Math.log(_)/Math.LN2,2),f=Math.log(P/2)/Math.LN2,O=2*_-P,o=[],M=[],c=[],g=z=0,ie=S.length;z<ie;g=++z){if(D=S[g],u=h[g],D===65535){o.push(0),M.push(0);break}if(D-(K=n[D].new)>=32768)for(o.push(0),M.push(2*(c.length+_-g)),i=oe=D;D<=u?oe<=u:oe>=u;i=D<=u?++oe:--oe)c.push(n[i].new);else o.push(K-D),M.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*_+2*c.length),F.writeUInt16(0),F.writeUInt16(G),F.writeUInt16(P),F.writeUInt16(f),F.writeUInt16(O),L=0,x=h.length;L<x;L++)i=h[L],F.writeUInt16(i);for(F.writeUInt16(0),Q=0,H=S.length;Q<H;Q++)i=S[Q],F.writeUInt16(i);for(se=0,V=o.length;se<V;se++)s=o[se],F.writeUInt16(s);for(X=0,q=M.length;X<q;X++)I=M[X],F.writeUInt16(I);for(ne=0,$=c.length;ne<$;ne++)m=c[ne],F.writeUInt16(m);return{charMap:n,subtable:F.data,maxGlyphID:b+1}}},r}(),LB=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),e.prototype.tag="cmap",e.prototype.parse=function(t){var n,i,A;for(t.pos=this.offset,this.version=t.readUInt16(),A=t.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=A?i<A:i>A;i=0<=A?++i:--i)n=new _B(t,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},e.encode=function(t,n){var i,A;return n==null&&(n="macroman"),i=_B.encode(t,n),(A=new ia).writeUInt16(0),A.writeUInt16(1),i.table=A.data.concat(i.subtable),i},e}(),gQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),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}(),mQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),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,i;for(i=[],n=0;n<10;++n)i.push(t.readByte());return i}(),this.charRange=function(){var n,i;for(i=[],n=0;n<4;++n)i.push(t.readInt());return i}(),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,i;for(i=[],n=0;n<2;n=++n)i.push(t.readInt());return i}(),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}(),vQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),e.prototype.tag="post",e.prototype.parse=function(t){var n,i,A;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(i=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],A=[];t.pos<this.offset+this.length;)n=t.readByte(),A.push(this.names.push(t.readString(n)));return A;case 151552:return i=t.readUInt16(),this.offsets=t.read(i);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}(),wQ=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},yQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),e.prototype.tag="name",e.prototype.parse=function(t){var n,i,A,a,s,o,l,u,h,f,c;for(t.pos=this.offset,t.readShort(),n=t.readShort(),o=t.readShort(),i=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)i.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,f=i.length;h<f;a=++h)A=i[a],t.pos=A.offset,u=t.readString(A.length),s=new wQ(u,A),l[c=A.nameID]==null&&(l[c]=[]),l[A.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(g){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}(),bQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),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}(),BQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),e.prototype.tag="hmtx",e.prototype.parse=function(t){var n,i,A,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(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,h;for(h=[],n=u=0;0<=A?u<A:u>A;n=0<=A?++u:--u)h.push(t.readInt16());return h}(),this.widths=function(){var u,h,f,c;for(c=[],u=0,h=(f=this.metrics).length;u<h;u++)a=f[u],c.push(a.advance);return c}.call(this),i=this.widths[this.widths.length-1],l=[],n=s=0;0<=A?s<A:s>A;n=0<=A?++s:--s)l.push(this.widths.push(i));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}(),QB=[].slice,xQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var n,i,A,a,s,o,l,u,h,f;return t in this.cache?this.cache[t]:(a=this.file.loca,n=this.file.contents,i=a.indexOf(t),(A=a.lengthOf(t))===0?this.cache[t]=null:(n.pos=this.offset+i,s=(o=new ia(n.read(A))).readShort(),u=o.readShort(),f=o.readShort(),l=o.readShort(),h=o.readShort(),this.cache[t]=s===-1?new EQ(o,u,f,l,h):new CQ(o,s,u,f,l,h),this.cache[t]))},e.prototype.encode=function(t,n,i){var A,a,s,o,l;for(s=[],a=[],o=0,l=n.length;o<l;o++)A=t[n[o]],a.push(s.length),A&&(s=s.concat(A.encode(i)));return a.push(s.length),{table:s,offsets:a}},e}(),CQ=function(){function r(e,t,n,i,A,a){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=i,this.xMax=A,this.yMax=a,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),EQ=function(){function r(e,t,n,i,A){var a,s;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=i,this.yMax=A,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 ia(QB.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},r}(),SQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return AA(e,Ni),e.prototype.tag="loca",e.prototype.parse=function(t){var n,i;return t.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?function(){var A,a;for(a=[],i=0,A=this.length;i<A;i+=2)a.push(2*t.readUInt16());return a}.call(this):function(){var A,a;for(a=[],i=0,A=this.length;i<A;i+=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 i=new Uint32Array(this.offsets.length),A=0,a=0,s=0;s<i.length;++s)if(i[s]=A,a<n.length&&n[a]==s){++a,i[s]=A;var o=this.offsets[s],l=this.offsets[s+1]-o;l>0&&(A+=l)}for(var u=new Array(4*i.length),h=0;h<i.length;++h)u[4*h+3]=255&i[h],u[4*h+2]=(65280&i[h])>>8,u[4*h+1]=(16711680&i[h])>>16,u[4*h]=(4278190080&i[h])>>24;return u},e}(),FQ=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,n,i,A;for(t in i=this.font.cmap.tables[0].codeMap,e={},A=this.subset)n=A[t],e[t]=i[n];return e},r.prototype.glyphsFor=function(e){var t,n,i,A,a,s,o;for(i={},a=0,s=e.length;a<s;a++)i[A=e[a]]=this.font.glyf.glyphFor(A);for(A in t=[],i)(n=i[A])!=null&&n.compound&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(A in o=this.glyphsFor(t))n=o[A],i[A]=n;return i},r.prototype.encode=function(e,t){var n,i,A,a,s,o,l,u,h,f,c,g,m,y,p;for(i in n=LB.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(e),c={0:0},p=n.charMap)c[(o=p[i]).old]=o.new;for(g in f=n.maxGlyphID,a)g in c||(c[g]=f++);return u=function(v){var b,I;for(b in I={},v)I[v[b]]=b;return I}(c),h=Object.keys(u).sort(function(v,b){return v-b}),m=function(){var v,b,I;for(I=[],v=0,b=h.length;v<b;v++)s=h[v],I.push(u[s]);return I}(),A=this.font.glyf.encode(a,m,c),l=this.font.loca.encode(A.offsets,m),y={cmap:this.font.cmap.raw(),glyf:A.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}();pt.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,i,A,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(i in A=["<<"],t)a=t[i],A.push("/"+i+" "+e.convert(a));return A.push(">>"),A.join(`
328
+ `)}return""+t},e}();const IQ=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:AQ,AcroFormAppearance:at,AcroFormButton:qr,AcroFormCheckBox:dl,AcroFormChoiceField:qa,AcroFormComboBox:Ya,AcroFormEditBox:hl,AcroFormListBox:Xa,AcroFormPasswordField:pl,AcroFormPushButton:fl,AcroFormRadioButton:Ja,AcroFormTextField:na,GState:cl,ShadingPattern:ta,TilingPattern:Ga,default:pt,jsPDF:pt},Symbol.toStringTag,{value:"Module"}));var CA=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ig(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function UQ(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 i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var NB={exports:{}};const TQ=UQ(IQ);/*!
329
+ *
330
+ * jsPDF AutoTable plugin v3.8.4
331
+ *
332
+ * Copyright (c) 2024 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
333
+ * Licensed under the MIT License.
334
+ * http://opensource.org/licenses/mit-license
335
+ *
336
+ */(function(r,e){(function(n,i){r.exports=i(function(){try{return TQ}catch(a){}}())})(typeof globalThis!="undefined"?globalThis:typeof CA!="undefined"?CA:typeof window!="undefined"?window:typeof self!="undefined"?self:CA,function(t){return function(){var n={172:function(s,o){var l=this&&this.__extends||function(){var f=function(c,g){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var p in y)Object.prototype.hasOwnProperty.call(y,p)&&(m[p]=y[p])},f(c,g)};return function(c,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");f(c,g);function m(){this.constructor=c}c.prototype=g===null?Object.create(g):(m.prototype=g.prototype,new m)}}();Object.defineProperty(o,"__esModule",{value:!0}),o.CellHookData=o.HookData=void 0;var u=function(){function f(c,g,m){this.table=g,this.pageNumber=g.pageNumber,this.pageCount=this.pageNumber,this.settings=g.settings,this.cursor=m,this.doc=c.getDocument()}return f}();o.HookData=u;var h=function(f){l(c,f);function c(g,m,y,p,v,b){var I=f.call(this,g,m,b)||this;return I.cell=y,I.row=p,I.column=v,I.section=p.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),f=l(744),c=l(776),g=l(664),m=l(972);function y(p){p.API.autoTable=function(){for(var v=[],b=0;b<arguments.length;b++)v[b]=arguments[b];var I;v.length===1?I=v[0]:(console.error("Use of deprecated autoTable initiation"),I=v[2]||{},I.columns=v[0],I.body=v[1]);var N=(0,c.parseInput)(this,I),M=(0,m.createTable)(this,N);return(0,g.drawTable)(this,M),this},p.API.lastAutoTable=!1,p.API.previousAutoTable=!1,p.API.autoTable.previous=!1,p.API.autoTableText=function(v,b,I,N){(0,h.default)(v,b,I,N,this)},p.API.autoTableSetDefaults=function(v){return f.DocHandler.setDefaults(v,this),this},p.autoTableSetDefaults=function(v,b){f.DocHandler.setDefaults(v,b)},p.API.autoTableHtmlToJson=function(v,b){var I;if(b===void 0&&(b=!1),typeof window=="undefined")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var N=new f.DocHandler(this),M=(0,u.parseHtml)(N,v,window,b,!1),O=M.head,P=M.body,_=((I=O[0])===null||I===void 0?void 0:I.map(function(G){return G.content}))||[];return{columns:_,rows:P,data:P}},p.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var v=this.lastAutoTable;return v&&v.finalY?v.finalY:0},p.API.autoTableAddPageContent=function(v){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),p.API.autoTable.globalDefaults||(p.API.autoTable.globalDefaults={}),p.API.autoTable.globalDefaults.addPageContent=v,this},p.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,f,c,g){c=c||{};var m=1.15,y=g.internal.scaleFactor,p=g.internal.getFontSize()/y,v=g.getLineHeightFactor?g.getLineHeightFactor():m,b=p*v,I=/\r\n|\r|\n/g,N="",M=1;if((c.valign==="middle"||c.valign==="bottom"||c.halign==="center"||c.halign==="right")&&(N=typeof u=="string"?u.split(I):u,M=N.length||1),f+=p*(2-m),c.valign==="middle"?f-=M/2*b:c.valign==="bottom"&&(f-=M*b),c.halign==="center"||c.halign==="right"){var O=p;if(c.halign==="center"&&(O*=.5),N&&M>=1){for(var P=0;P<N.length;P++)g.text(N[P],h-g.getStringUnitWidth(N[P])*O,f),f+=b;return g}h-=g.getStringUnitWidth(u)*O}return c.halign==="justify"?g.text(u,h,f,{maxWidth:c.maxWidth||100,align:"justify"}):g.text(u,h,f),g}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(g,m,y){y.applyStyles(m,!0);var p=Array.isArray(g)?g:[g],v=p.map(function(b){return y.getTextWidth(b)}).reduce(function(b,I){return Math.max(b,I)},0);return v}o.getStringWidth=l;function u(g,m,y,p){var v=m.settings.tableLineWidth,b=m.settings.tableLineColor;g.applyStyles({lineWidth:v,lineColor:b});var I=h(v,!1);I&&g.rect(y.x,y.y,m.getWidth(g.pageSize().width),p.y-y.y,I)}o.addTableBorder=u;function h(g,m){var y=g>0,p=m||m===0;return y&&p?"DF":y?"S":p?"F":null}o.getFillStyle=h;function f(g,m){var y,p,v,b;if(g=g||m,Array.isArray(g)){if(g.length>=4)return{top:g[0],right:g[1],bottom:g[2],left:g[3]};if(g.length===3)return{top:g[0],right:g[1],bottom:g[2],left:g[1]};if(g.length===2)return{top:g[0],right:g[1],bottom:g[0],left:g[1]};g.length===1?g=g[0]:g=m}return typeof g=="object"?(typeof g.vertical=="number"&&(g.top=g.vertical,g.bottom=g.vertical),typeof g.horizontal=="number"&&(g.right=g.horizontal,g.left=g.horizontal),{left:(y=g.left)!==null&&y!==void 0?y:m,top:(p=g.top)!==null&&p!==void 0?p:m,right:(v=g.right)!==null&&v!==void 0?v:m,bottom:(b=g.bottom)!==null&&b!==void 0?b:m}):(typeof g!="number"&&(g=m),{top:g,right:g,bottom:g,left:g})}o.parseSpacing=f;function c(g,m){var y=f(m.settings.margin,0);return g.pageSize().width-(y.left+y.right)}o.getPageAvailableWidth=c},796:function(s,o){var l=this&&this.__extends||function(){var c=function(g,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,p){y.__proto__=p}||function(y,p){for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(y[v]=p[v])},c(g,m)};return function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");c(g,m);function y(){this.constructor=g}g.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(g,c);function g(m){var y=c.call(this)||this;return y._element=m,y}return g}(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 f(c){var g={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 g[c]}o.getTheme=f},903:function(s,o,l){Object.defineProperty(o,"__esModule",{value:!0}),o.parseCss=void 0;var u=l(420);function h(y,p,v,b,I){var N={},M=1.3333333333333333,O=c(p,function(W){return I.getComputedStyle(W).backgroundColor});O!=null&&(N.fillColor=O);var P=c(p,function(W){return I.getComputedStyle(W).color});P!=null&&(N.textColor=P);var _=m(b,v);_&&(N.cellPadding=_);var G="borderTopColor",D=M*v,S=b.borderTopWidth;if(b.borderBottomWidth===S&&b.borderRightWidth===S&&b.borderLeftWidth===S){var K=(parseFloat(S)||0)/D;K&&(N.lineWidth=K)}else N.lineWidth={top:(parseFloat(b.borderTopWidth)||0)/D,right:(parseFloat(b.borderRightWidth)||0)/D,bottom:(parseFloat(b.borderBottomWidth)||0)/D,left:(parseFloat(b.borderLeftWidth)||0)/D},N.lineWidth.top||(N.lineWidth.right?G="borderRightColor":N.lineWidth.bottom?G="borderBottomColor":N.lineWidth.left&&(G="borderLeftColor"));var F=c(p,function(W){return I.getComputedStyle(W)[G]});F!=null&&(N.lineColor=F);var ee=["left","right","center","justify"];ee.indexOf(b.textAlign)!==-1&&(N.halign=b.textAlign),ee=["middle","bottom","top"],ee.indexOf(b.verticalAlign)!==-1&&(N.valign=b.verticalAlign);var Z=parseInt(b.fontSize||"");isNaN(Z)||(N.fontSize=Z/M);var z=f(b);z&&(N.fontStyle=z);var oe=(b.fontFamily||"").toLowerCase();return y.indexOf(oe)!==-1&&(N.font=oe),N}o.parseCss=h;function f(y){var p="";return(y.fontWeight==="bold"||y.fontWeight==="bolder"||parseInt(y.fontWeight)>=700)&&(p="bold"),(y.fontStyle==="italic"||y.fontStyle==="oblique")&&(p+="italic"),p}function c(y,p){var v=g(y,p);if(!v)return null;var b=v.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])],N=parseInt(b[4]);return N===0||isNaN(I[0])||isNaN(I[1])||isNaN(I[2])?null:I}function g(y,p){var v=p(y);return v==="rgba(0, 0, 0, 0)"||v==="transparent"||v==="initial"||v==="inherit"?y.parentElement==null?null:g(y.parentElement,p):v}function m(y,p){var v=[y.paddingTop,y.paddingRight,y.paddingBottom,y.paddingLeft],b=96/(72/p),I=(parseInt(y.lineHeight)-parseInt(y.fontSize))/p/2,N=v.map(function(O){return parseInt(O||"0")/b}),M=(0,u.parseSpacing)(N,0);return I>M.top&&(M.top=I),I>M.bottom&&(M.bottom=I),M}},744:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.DocHandler=void 0;var l={},u=function(){function h(f){this.jsPDFDocument=f,this.userStyles={textColor:f.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:f.internal.getFontSize(),fontStyle:f.internal.getFont().fontStyle,font:f.internal.getFont().fontName,lineWidth:f.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:f.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return h.setDefaults=function(f,c){c===void 0&&(c=null),c?c.__autoTableDocumentDefaults=f:l=f},h.unifyColor=function(f){return Array.isArray(f)?f:typeof f=="number"?[f,f,f]:typeof f=="string"?[f]:null},h.prototype.applyStyles=function(f,c){var g,m,y;c===void 0&&(c=!1),f.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(f.fontStyle);var p=this.jsPDFDocument.internal.getFont(),v=p.fontStyle,b=p.fontName;if(f.font&&(b=f.font),f.fontStyle){v=f.fontStyle;var I=this.getFontList()[b];I&&I.indexOf(v)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(I[0]),v=I[0])}if(this.jsPDFDocument.setFont(b,v),f.fontSize&&this.jsPDFDocument.setFontSize(f.fontSize),!c){var N=h.unifyColor(f.fillColor);N&&(g=this.jsPDFDocument).setFillColor.apply(g,N),N=h.unifyColor(f.textColor),N&&(m=this.jsPDFDocument).setTextColor.apply(m,N),N=h.unifyColor(f.lineColor),N&&(y=this.jsPDFDocument).setDrawColor.apply(y,N),typeof f.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(f.lineWidth)}},h.prototype.splitTextToSize=function(f,c,g){return this.jsPDFDocument.splitTextToSize(f,c,g)},h.prototype.rect=function(f,c,g,m,y){return this.jsPDFDocument.rect(f,c,g,m,y)},h.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},h.prototype.getTextWidth=function(f){return this.jsPDFDocument.getTextWidth(f)},h.prototype.getDocument=function(){return this.jsPDFDocument},h.prototype.setPage=function(f){this.jsPDFDocument.setPage(f)},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 f=this.jsPDFDocument.internal.pageSize;return f.width==null&&(f={width:f.getWidth(),height:f.getHeight()}),f},h.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},h.prototype.getLineHeightFactor=function(){var f=this.jsPDFDocument;return f.getLineHeightFactor?f.getLineHeightFactor():1.15},h.prototype.getLineHeight=function(f){return f/this.scaleFactor()*this.getLineHeightFactor()},h.prototype.pageNumber=function(){var f=this.jsPDFDocument.internal.getCurrentPageInfo();return f?f.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 f(m,y,p,v,b){var I,N;v===void 0&&(v=!1),b===void 0&&(b=!1);var M;typeof y=="string"?M=p.document.querySelector(y):M=y;var O=Object.keys(m.getFontList()),P=m.scaleFactor(),_=[],G=[],D=[];if(!M)return console.error("Html table could not be found with input: ",y),{head:_,body:G,foot:D};for(var S=0;S<M.rows.length;S++){var K=M.rows[S],F=(N=(I=K==null?void 0:K.parentElement)===null||I===void 0?void 0:I.tagName)===null||N===void 0?void 0:N.toLowerCase(),ee=c(O,P,p,K,v,b);ee&&(F==="thead"?_.push(ee):F==="tfoot"?D.push(ee):G.push(ee))}return{head:_,body:G,foot:D}}o.parseHtml=f;function c(m,y,p,v,b,I){for(var N=new h.HtmlRowInput(v),M=0;M<v.cells.length;M++){var O=v.cells[M],P=p.getComputedStyle(O);if(b||P.display!=="none"){var _=void 0;I&&(_=(0,u.parseCss)(m,O,y,P,p)),N.push({rowSpan:O.rowSpan,colSpan:O.colSpan,styles:_,_element:O,content:g(O)})}}var G=p.getComputedStyle(v);if(N.length>0&&(b||G.display!=="none"))return N}function g(m){var y=m.cloneNode(!0);return y.innerHTML=y.innerHTML.replace(/\n/g,"").replace(/ +/g," "),y.innerHTML=y.innerHTML.split(/<br.*?>/).map(function(p){return p.trim()}).join(`
337
+ `),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),f=l(420),c=l(744),g=l(792);function m(M,O){var P=new c.DocHandler(M),_=P.getDocumentOptions(),G=P.getGlobalOptions();(0,g.default)(P,G,_,O);var D=(0,h.assign)({},G,_,O),S;typeof window!="undefined"&&(S=window);var K=y(G,_,O),F=p(G,_,O),ee=v(P,D),Z=I(P,D,S);return{id:O.tableId,content:Z,hooks:F,styles:K,settings:ee}}o.parseInput=m;function y(M,O,P){for(var _={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},G=function(F){if(F==="columnStyles"){var ee=M[F],Z=O[F],z=P[F];_.columnStyles=(0,h.assign)({},ee,Z,z)}else{var oe=[M,O,P],W=oe.map(function(ce){return ce[F]||{}});_[F]=(0,h.assign)({},W[0],W[1],W[2])}},D=0,S=Object.keys(_);D<S.length;D++){var K=S[D];G(K)}return _}function p(M,O,P){for(var _=[M,O,P],G={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},D=0,S=_;D<S.length;D++){var K=S[D];K.didParseCell&&G.didParseCell.push(K.didParseCell),K.willDrawCell&&G.willDrawCell.push(K.willDrawCell),K.didDrawCell&&G.didDrawCell.push(K.didDrawCell),K.willDrawPage&&G.willDrawPage.push(K.willDrawPage),K.didDrawPage&&G.didDrawPage.push(K.didDrawPage)}return G}function v(M,O){var P,_,G,D,S,K,F,ee,Z,z,oe,W,ce=(0,f.parseSpacing)(O.margin,40/M.scaleFactor()),ie=(P=b(M,O.startY))!==null&&P!==void 0?P:ce.top,x;O.showFoot===!0?x="everyPage":O.showFoot===!1?x="never":x=(_=O.showFoot)!==null&&_!==void 0?_:"everyPage";var H;O.showHead===!0?H="everyPage":O.showHead===!1?H="never":H=(G=O.showHead)!==null&&G!==void 0?G:"everyPage";var V=(D=O.useCss)!==null&&D!==void 0?D:!1,q=O.theme||(V?"plain":"striped"),$=!!O.horizontalPageBreak,L=(S=O.horizontalPageBreakRepeat)!==null&&S!==void 0?S:null;return{includeHiddenHtml:(K=O.includeHiddenHtml)!==null&&K!==void 0?K:!1,useCss:V,theme:q,startY:ie,margin:ce,pageBreak:(F=O.pageBreak)!==null&&F!==void 0?F:"auto",rowPageBreak:(ee=O.rowPageBreak)!==null&&ee!==void 0?ee:"auto",tableWidth:(Z=O.tableWidth)!==null&&Z!==void 0?Z:"auto",showHead:H,showFoot:x,tableLineWidth:(z=O.tableLineWidth)!==null&&z!==void 0?z:0,tableLineColor:(oe=O.tableLineColor)!==null&&oe!==void 0?oe:200,horizontalPageBreak:$,horizontalPageBreakRepeat:L,horizontalPageBreakBehaviour:(W=O.horizontalPageBreakBehaviour)!==null&&W!==void 0?W:"afterAllRows"}}function b(M,O){var P=M.getLastAutoTable(),_=M.scaleFactor(),G=M.pageNumber(),D=!1;if(P&&P.startPageNumber){var S=P.startPageNumber+P.pageNumber-1;D=S===G}return typeof O=="number"?O:(O==null||O===!1)&&D&&(P==null?void 0:P.finalY)!=null?P.finalY+20/_:null}function I(M,O,P){var _=O.head||[],G=O.body||[],D=O.foot||[];if(O.html){var S=O.includeHiddenHtml;if(P){var K=(0,u.parseHtml)(M,O.html,P,S,O.useCss)||{};_=K.head||_,G=K.body||_,D=K.foot||_}else console.error("Cannot parse html in non browser environment")}var F=O.columns||N(_,G,D);return{columns:F,head:_,body:G,foot:D}}function N(M,O,P){var _=M[0]||O[0]||P[0]||[],G=[];return Object.keys(_).filter(function(D){return D!=="_element"}).forEach(function(D){var S=1,K;Array.isArray(_)?K=_[parseInt(D)]:K=_[D],typeof K=="object"&&!Array.isArray(K)&&(S=(K==null?void 0:K.colSpan)||1);for(var F=0;F<S;F++){var ee=void 0;Array.isArray(_)?ee=G.length:ee=D+(F>0?"_".concat(F):"");var Z={dataKey:ee};G.push(Z)}}),G}},792:function(s,o){Object.defineProperty(o,"__esModule",{value:!0});function l(h,f,c,g){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!="undefined"&&(b.tableWidth=b.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof b.margins!="undefined"&&(typeof b.margin=="undefined"&&(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(D){h.applyStyles(h.userStyles),b.beforePageContent&&b.beforePageContent(D),h.applyStyles(h.userStyles),b.afterPageContent&&b.afterPageContent(D),h.applyStyles(h.userStyles),b.afterPageAdd&&D.pageNumber>1&&D.afterPageAdd(D),h.applyStyles(h.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(D){b[D]&&console.error('The "'.concat(D,'" 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(D){var S=D[0],K=D[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(D){var S=typeof D=="string"?D:D[0],K=typeof D=="string"?D:D[1];typeof b[S]!="undefined"&&(typeof b.styles[K]=="undefined"&&(b.styles[K]=b[S]),console.error("Use of deprecated option: "+S+", use the style "+K+" instead."))});for(var I=0,N=["styles","bodyStyles","headStyles","footStyles"];I<N.length;I++){var M=N[I];u(b[M]||{})}for(var O=b.columnStyles||{},P=0,_=Object.keys(O);P<_.length;P++){var G=_[P];u(O[G]||{})}},y=0,p=[f,c,g];y<p.length;y++){var v=p[y];m(v)}}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),f=l(420),c=function(){function p(v,b){this.pageNumber=1,this.pageCount=1,this.id=v.id,this.settings=v.settings,this.styles=v.styles,this.hooks=v.hooks,this.columns=b.columns,this.head=b.head,this.body=b.body,this.foot=b.foot}return p.prototype.getHeadHeight=function(v){return this.head.reduce(function(b,I){return b+I.getMaxCellHeight(v)},0)},p.prototype.getFootHeight=function(v){return this.foot.reduce(function(b,I){return b+I.getMaxCellHeight(v)},0)},p.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},p.prototype.callCellHooks=function(v,b,I,N,M,O){for(var P=0,_=b;P<_.length;P++){var G=_[P],D=new h.CellHookData(v,this,I,N,M,O),S=G(D)===!1;if(I.text=Array.isArray(I.text)?I.text:[I.text],S)return!1}return!0},p.prototype.callEndPageHooks=function(v,b){v.applyStyles(v.userStyles);for(var I=0,N=this.hooks.didDrawPage;I<N.length;I++){var M=N[I];M(new h.HookData(v,this,b))}},p.prototype.callWillDrawPageHooks=function(v,b){for(var I=0,N=this.hooks.willDrawPage;I<N.length;I++){var M=N[I];M(new h.HookData(v,this,b))}},p.prototype.getWidth=function(v){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var b=this.columns.reduce(function(N,M){return N+M.wrappedWidth},0);return b}else{var I=this.settings.margin;return v-I.left-I.right}},p}();o.Table=c;var g=function(){function p(v,b,I,N,M){M===void 0&&(M=!1),this.height=0,this.raw=v,v instanceof u.HtmlRowInput&&(this.raw=v._element,this.element=v._element),this.index=b,this.section=I,this.cells=N,this.spansMultiplePages=M}return p.prototype.getMaxCellHeight=function(v){var b=this;return v.reduce(function(I,N){var M;return Math.max(I,((M=b.cells[N.index])===null||M===void 0?void 0:M.height)||0)},0)},p.prototype.hasRowSpan=function(v){var b=this;return v.filter(function(I){var N=b.cells[I.index];return N?N.rowSpan>1:!1}).length>0},p.prototype.canEntireRowFit=function(v,b){return this.getMaxCellHeight(b)<=v},p.prototype.getMinimumRowHeight=function(v,b){var I=this;return v.reduce(function(N,M){var O=I.cells[M.index];if(!O)return 0;var P=b.getLineHeight(O.styles.fontSize),_=O.padding("vertical"),G=_+P;return G>N?G:N},0)},p}();o.Row=g;var m=function(){function p(v,b,I){var N,M;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=v;var O=v;v!=null&&typeof v=="object"&&!Array.isArray(v)?(this.rowSpan=v.rowSpan||1,this.colSpan=v.colSpan||1,O=(M=(N=v.content)!==null&&N!==void 0?N:v.title)!==null&&M!==void 0?M:v,v._element&&(this.raw=v._element)):(this.rowSpan=1,this.colSpan=1);var P=O!=null?""+O:"",_=/\r\n|\r|\n/g;this.text=P.split(_)}return p.prototype.getTextPos=function(){var v;if(this.styles.valign==="top")v=this.y+this.padding("top");else if(this.styles.valign==="bottom")v=this.y+this.height-this.padding("bottom");else{var b=this.height-this.padding("vertical");v=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 N=this.width-this.padding("horizontal");I=this.x+N/2+this.padding("left")}else I=this.x+this.padding("left");return{x:I,y:v}},p.prototype.getContentHeight=function(v,b){b===void 0&&(b=1.15);var I=Array.isArray(this.text)?this.text.length:1,N=this.styles.fontSize/v*b,M=I*N+this.padding("vertical");return Math.max(M,this.styles.minCellHeight)},p.prototype.padding=function(v){var b=(0,f.parseSpacing)(this.styles.cellPadding,0);return v==="vertical"?b.top+b.bottom:v==="horizontal"?b.left+b.right:b[v]},p}();o.Cell=m;var y=function(){function p(v,b,I){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=v,this.raw=b,this.index=I}return p.prototype.getMaxCustomCellWidth=function(v){for(var b=0,I=0,N=v.allRows();I<N.length;I++){var M=N[I],O=M.cells[this.index];O&&typeof O.styles.cellWidth=="number"&&(b=Math.max(b,O.styles.cellWidth))}return b},p}();o.Column=y},356:function(s,o){Object.defineProperty(o,"__esModule",{value:!0}),o.assign=void 0;function l(u,h,f,c,g){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 p=arguments[y];if(p!=null)for(var v in p)Object.prototype.hasOwnProperty.call(p,v)&&(m[v]=p[v])}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),f=l(324),c=l(796),g=l(356);function m(M,O){var P=new u.DocHandler(M),_=y(O,P.scaleFactor()),G=new h.Table(O,_);return(0,f.calculateWidths)(P,G),P.applyStyles(P.userStyles),G}o.createTable=m;function y(M,O){var P=M.content,_=I(P.columns);if(P.head.length===0){var G=v(_,"head");G&&P.head.push(G)}if(P.foot.length===0){var G=v(_,"foot");G&&P.foot.push(G)}var D=M.settings.theme,S=M.styles;return{columns:_,head:p("head",P.head,_,S,D,O),body:p("body",P.body,_,S,D,O),foot:p("foot",P.foot,_,S,D,O)}}function p(M,O,P,_,G,D){var S={},K=O.map(function(F,ee){for(var Z=0,z={},oe=0,W=0,ce=0,ie=P;ce<ie.length;ce++){var x=ie[ce];if(S[x.index]==null||S[x.index].left===0)if(W===0){var H=void 0;Array.isArray(F)?H=F[x.index-oe-Z]:H=F[x.dataKey];var V={};typeof H=="object"&&!Array.isArray(H)&&(V=(H==null?void 0:H.styles)||{});var q=N(M,x,ee,G,_,D,V),$=new h.Cell(H,q,M);z[x.dataKey]=$,z[x.index]=$,W=$.colSpan-1,S[x.index]={left:$.rowSpan-1,times:W}}else W--,oe++;else S[x.index].left--,W=S[x.index].times,Z++}return new h.Row(F,ee,M,z)});return K}function v(M,O){var P={};return M.forEach(function(_){if(_.raw!=null){var G=b(O,_.raw);G!=null&&(P[_.dataKey]=G)}}),Object.keys(P).length>0?P:null}function b(M,O){if(M==="head"){if(typeof O=="object")return O.header||O.title||null;if(typeof O=="string"||typeof O=="number")return O}else if(M==="foot"&&typeof O=="object")return O.footer;return null}function I(M){return M.map(function(O,P){var _,G,D;return typeof O=="object"?D=(G=(_=O.dataKey)!==null&&_!==void 0?_:O.key)!==null&&G!==void 0?G:P:D=P,new h.Column(D,O,P)})}function N(M,O,P,_,G,D,S){var K=(0,c.getTheme)(_),F;M==="head"?F=G.headStyles:M==="body"?F=G.bodyStyles:M==="foot"&&(F=G.footStyles);var ee=(0,g.assign)({},K.table,K[M],G.styles,F),Z=G.columnStyles[O.dataKey]||G.columnStyles[O.index]||{},z=M==="body"?Z:{},oe=M==="body"&&P%2===0?(0,g.assign)({},K.alternateRow,G.alternateRowStyles):{},W=(0,c.defaultStyles)(D),ce=(0,g.assign)({},W,ee,oe,z);return(0,g.assign)(ce,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),f=l(744),c=l(356),g=l(136),m=l(224);function y(Z,z){var oe=z.settings,W=oe.startY,ce=oe.margin,ie={x:ce.left,y:W},x=z.getHeadHeight(z.columns)+z.getFootHeight(z.columns),H=W+ce.bottom+x;if(oe.pageBreak==="avoid"){var V=z.body,q=V.reduce(function(Q,te){return Q+te.height},0);H+=q}var $=new f.DocHandler(Z);(oe.pageBreak==="always"||oe.startY!=null&&H>$.pageSize().height)&&(ee($),ie.y=ce.top),z.callWillDrawPageHooks($,ie);var L=(0,c.assign)({},ie);z.startPageNumber=$.pageNumber(),oe.horizontalPageBreak?p($,z,L,ie):($.applyStyles($.userStyles),(oe.showHead==="firstPage"||oe.showHead==="everyPage")&&z.head.forEach(function(Q){return G($,z,Q,ie,z.columns)}),$.applyStyles($.userStyles),z.body.forEach(function(Q,te){var se=te===z.body.length-1;_($,z,Q,se,L,ie,z.columns)}),$.applyStyles($.userStyles),(oe.showFoot==="lastPage"||oe.showFoot==="everyPage")&&z.foot.forEach(function(Q){return G($,z,Q,ie,z.columns)})),(0,u.addTableBorder)($,z,L,ie),z.callEndPageHooks($,ie),z.finalY=ie.y,Z.lastAutoTable=z,Z.previousAutoTable=z,Z.autoTable&&(Z.autoTable.previous=z),$.applyStyles($.userStyles)}o.drawTable=y;function p(Z,z,oe,W){var ce=(0,m.calculateAllColumnsCanFitInPage)(Z,z),ie=z.settings;if(ie.horizontalPageBreakBehaviour==="afterAllRows")ce.forEach(function(q,$){Z.applyStyles(Z.userStyles),$>0?F(Z,z,oe,W,q.columns,!0):v(Z,z,W,q.columns),b(Z,z,oe,W,q.columns),N(Z,z,W,q.columns)});else for(var x=-1,H=ce[0],V=function(){var q=x;if(H){Z.applyStyles(Z.userStyles);var $=H.columns;x>=0?F(Z,z,oe,W,$,!0):v(Z,z,W,$),q=I(Z,z,x+1,W,$),N(Z,z,W,$)}var L=q-x;ce.slice(1).forEach(function(Q){Z.applyStyles(Z.userStyles),F(Z,z,oe,W,Q.columns,!0),I(Z,z,x+1,W,Q.columns,L),N(Z,z,W,Q.columns)}),x=q};x<z.body.length-1;)V()}function v(Z,z,oe,W){var ce=z.settings;Z.applyStyles(Z.userStyles),(ce.showHead==="firstPage"||ce.showHead==="everyPage")&&z.head.forEach(function(ie){return G(Z,z,ie,oe,W)})}function b(Z,z,oe,W,ce){Z.applyStyles(Z.userStyles),z.body.forEach(function(ie,x){var H=x===z.body.length-1;_(Z,z,ie,H,oe,W,ce)})}function I(Z,z,oe,W,ce,ie){Z.applyStyles(Z.userStyles),ie=ie!=null?ie:z.body.length;var x=Math.min(oe+ie,z.body.length),H=-1;return z.body.slice(oe,x).forEach(function(V,q){var $=oe+q===z.body.length-1,L=K(Z,z,$,W);V.canEntireRowFit(L,ce)&&(G(Z,z,V,W,ce),H=oe+q)}),H}function N(Z,z,oe,W){var ce=z.settings;Z.applyStyles(Z.userStyles),(ce.showFoot==="lastPage"||ce.showFoot==="everyPage")&&z.foot.forEach(function(ie){return G(Z,z,ie,oe,W)})}function M(Z,z,oe){var W=oe.getLineHeight(Z.styles.fontSize),ce=Z.padding("vertical"),ie=Math.floor((z-ce)/W);return Math.max(0,ie)}function O(Z,z,oe,W){var ce={};Z.spansMultiplePages=!0,Z.height=0;for(var ie=0,x=0,H=oe.columns;x<H.length;x++){var V=H[x],q=Z.cells[V.index];if(q){Array.isArray(q.text)||(q.text=[q.text]);var $=new h.Cell(q.raw,q.styles,q.section);$=(0,c.assign)($,q),$.text=[];var L=M(q,z,W);q.text.length>L&&($.text=q.text.splice(L,q.text.length));var Q=W.scaleFactor(),te=W.getLineHeightFactor();q.contentHeight=q.getContentHeight(Q,te),q.contentHeight>=z&&(q.contentHeight=z,$.styles.minCellHeight-=z),q.contentHeight>Z.height&&(Z.height=q.contentHeight),$.contentHeight=$.getContentHeight(Q,te),$.contentHeight>ie&&(ie=$.contentHeight),ce[V.index]=$}}var se=new h.Row(Z.raw,-1,Z.section,ce,!0);se.height=ie;for(var X=0,ne=oe.columns;X<ne.length;X++){var V=ne[X],$=se.cells[V.index];$&&($.height=se.height);var q=Z.cells[V.index];q&&(q.height=Z.height)}return se}function P(Z,z,oe,W){var ce=Z.pageSize().height,ie=W.settings.margin,x=ie.top+ie.bottom,H=ce-x;z.section==="body"&&(H-=W.getHeadHeight(W.columns)+W.getFootHeight(W.columns));var V=z.getMinimumRowHeight(W.columns,Z),q=V<oe;if(V>H)return console.error("Will not be able to print row ".concat(z.index," correctly since it's minimum height is larger than page height")),!0;if(!q)return!1;var $=z.hasRowSpan(W.columns),L=z.getMaxCellHeight(W.columns)>H;return L?($&&console.error("The content of row ".concat(z.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):!($||W.settings.rowPageBreak==="avoid")}function _(Z,z,oe,W,ce,ie,x){var H=K(Z,z,W,ie);if(oe.canEntireRowFit(H,x))G(Z,z,oe,ie,x);else if(P(Z,oe,H,z)){var V=O(oe,H,z,Z);G(Z,z,oe,ie,x),F(Z,z,ce,ie,x),_(Z,z,V,W,ce,ie,x)}else F(Z,z,ce,ie,x),_(Z,z,oe,W,ce,ie,x)}function G(Z,z,oe,W,ce){W.x=z.settings.margin.left;for(var ie=0,x=ce;ie<x.length;ie++){var H=x[ie],V=oe.cells[H.index];if(!V){W.x+=H.width;continue}Z.applyStyles(V.styles),V.x=W.x,V.y=W.y;var q=z.callCellHooks(Z,z.hooks.willDrawCell,V,oe,H,W);if(q===!1){W.x+=H.width;continue}D(Z,V,W);var $=V.getTextPos();(0,g.default)(V.text,$.x,$.y,{halign:V.styles.halign,valign:V.styles.valign,maxWidth:Math.ceil(V.width-V.padding("left")-V.padding("right"))},Z.getDocument()),z.callCellHooks(Z,z.hooks.didDrawCell,V,oe,H,W),W.x+=H.width}W.y+=oe.height}function D(Z,z,oe){var W=z.styles;if(Z.getDocument().setFillColor(Z.getDocument().getFillColor()),typeof W.lineWidth=="number"){var ce=(0,u.getFillStyle)(W.lineWidth,W.fillColor);ce&&Z.rect(z.x,oe.y,z.width,z.height,ce)}else typeof W.lineWidth=="object"&&(W.fillColor&&Z.rect(z.x,oe.y,z.width,z.height,"F"),S(Z,z,oe,W.lineWidth))}function S(Z,z,oe,W){var ce,ie,x,H;W.top&&(ce=oe.x,ie=oe.y,x=oe.x+z.width,H=oe.y,W.right&&(x+=.5*W.right),W.left&&(ce-=.5*W.left),V(W.top,ce,ie,x,H)),W.bottom&&(ce=oe.x,ie=oe.y+z.height,x=oe.x+z.width,H=oe.y+z.height,W.right&&(x+=.5*W.right),W.left&&(ce-=.5*W.left),V(W.bottom,ce,ie,x,H)),W.left&&(ce=oe.x,ie=oe.y,x=oe.x,H=oe.y+z.height,W.top&&(ie-=.5*W.top),W.bottom&&(H+=.5*W.bottom),V(W.left,ce,ie,x,H)),W.right&&(ce=oe.x+z.width,ie=oe.y,x=oe.x+z.width,H=oe.y+z.height,W.top&&(ie-=.5*W.top),W.bottom&&(H+=.5*W.bottom),V(W.right,ce,ie,x,H));function V(q,$,L,Q,te){Z.getDocument().setLineWidth(q),Z.getDocument().line($,L,Q,te,"S")}}function K(Z,z,oe,W){var ce=z.settings.margin.bottom,ie=z.settings.showFoot;return(ie==="everyPage"||ie==="lastPage"&&oe)&&(ce+=z.getFootHeight(z.columns)),Z.pageSize().height-W.y-ce}function F(Z,z,oe,W,ce,ie){ce===void 0&&(ce=[]),ie===void 0&&(ie=!1),Z.applyStyles(Z.userStyles),z.settings.showFoot==="everyPage"&&!ie&&z.foot.forEach(function(H){return G(Z,z,H,W,ce)}),z.callEndPageHooks(Z,W);var x=z.settings.margin;(0,u.addTableBorder)(Z,z,oe,W),ee(Z),z.pageNumber++,z.pageCount++,W.x=x.left,W.y=x.top,oe.y=x.top,z.callWillDrawPageHooks(Z,W),z.settings.showHead==="everyPage"&&(z.head.forEach(function(H){return G(Z,z,H,W,ce)}),Z.applyStyles(Z.userStyles))}o.addPage=F;function ee(Z){var z=Z.pageNumber();Z.setPage(z+1);var oe=Z.pageNumber();return oe===z?(Z.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,g,m){var y;m===void 0&&(m={});var p=(0,u.getPageAvailableWidth)(c,g),v=new Map,b=[],I=[],N=[];g.settings.horizontalPageBreakRepeat,Array.isArray(g.settings.horizontalPageBreakRepeat)?N=g.settings.horizontalPageBreakRepeat:(typeof g.settings.horizontalPageBreakRepeat=="string"||typeof g.settings.horizontalPageBreakRepeat=="number")&&(N=[g.settings.horizontalPageBreakRepeat]),N.forEach(function(_){var G=g.columns.find(function(D){return D.dataKey===_||D.index===_});G&&!v.has(G.index)&&(v.set(G.index,!0),b.push(G.index),I.push(g.columns[G.index]),p-=G.wrappedWidth)});for(var M=!0,O=(y=m==null?void 0:m.start)!==null&&y!==void 0?y:0;O<g.columns.length;){if(v.has(O)){O++;continue}var P=g.columns[O].wrappedWidth;if(M||p>=P)M=!1,b.push(O),I.push(g.columns[O]),p-=P;else break;O++}return{colIndexes:b,columns:I,lastIndex:O-1}}function f(c,g){for(var m=[],y=0;y<g.columns.length;y++){var p=h(c,g,{start:y});p.columns.length&&(m.push(p),y=p.lastIndex)}return m}o.calculateAllColumnsCanFitInPage=f},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){f(b,I);var N=[],M=0;I.columns.forEach(function(P){var _=P.getMaxCustomCellWidth(I);_?P.width=_:(P.width=P.wrappedWidth,N.push(P)),M+=P.width});var O=I.getWidth(b.pageSize().width)-M;O&&(O=c(N,O,function(P){return Math.max(P.minReadableWidth,P.minWidth)})),O&&(O=c(N,O,function(P){return P.minWidth})),O=Math.abs(O),!I.settings.horizontalPageBreak&&O>.1/b.scaleFactor()&&(O=O<1?O:Math.round(O),console.warn("Of the table content, ".concat(O," units width could not fit page"))),m(I),y(I,b),g(I)}o.calculateWidths=h;function f(b,I){var N=b.scaleFactor(),M=I.settings.horizontalPageBreak,O=(0,u.getPageAvailableWidth)(b,I);I.allRows().forEach(function(P){for(var _=0,G=I.columns;_<G.length;_++){var D=G[_],S=P.cells[D.index];if(S){var K=I.hooks.didParseCell;I.callCellHooks(b,K,S,P,D,null);var F=S.padding("horizontal");S.contentWidth=(0,u.getStringWidth)(S.text,S.styles,b)+F;var ee=(0,u.getStringWidth)(S.text.join(" ").split(/[^\S\u00A0]+/),S.styles,b);if(S.minReadableWidth=ee+S.padding("horizontal"),typeof S.styles.cellWidth=="number")S.minWidth=S.styles.cellWidth,S.wrappedWidth=S.styles.cellWidth;else if(S.styles.cellWidth==="wrap"||M===!0)S.contentWidth>O?(S.minWidth=O,S.wrappedWidth=O):(S.minWidth=S.contentWidth,S.wrappedWidth=S.contentWidth);else{var Z=10/N;S.minWidth=S.styles.minCellWidth||Z,S.wrappedWidth=S.contentWidth,S.minWidth>S.wrappedWidth&&(S.wrappedWidth=S.minWidth)}}}}),I.allRows().forEach(function(P){for(var _=0,G=I.columns;_<G.length;_++){var D=G[_],S=P.cells[D.index];if(S&&S.colSpan===1)D.wrappedWidth=Math.max(D.wrappedWidth,S.wrappedWidth),D.minWidth=Math.max(D.minWidth,S.minWidth),D.minReadableWidth=Math.max(D.minReadableWidth,S.minReadableWidth);else{var K=I.styles.columnStyles[D.dataKey]||I.styles.columnStyles[D.index]||{},F=K.cellWidth||K.minCellWidth;F&&typeof F=="number"&&(D.minWidth=F,D.wrappedWidth=F)}S&&(S.colSpan>1&&!D.minWidth&&(D.minWidth=S.minWidth),S.colSpan>1&&!D.wrappedWidth&&(D.wrappedWidth=S.minWidth))}})}function c(b,I,N){for(var M=I,O=b.reduce(function(Z,z){return Z+z.wrappedWidth},0),P=0;P<b.length;P++){var _=b[P],G=_.wrappedWidth/O,D=M*G,S=_.width+D,K=N(_),F=S<K?K:S;I-=F-_.width,_.width=F}if(I=Math.round(I*1e10)/1e10,I){var ee=b.filter(function(Z){return I<0?Z.width>N(Z):!0});ee.length&&(I=c(ee,I,N))}return I}o.resizeColumns=c;function g(b){for(var I={},N=1,M=b.allRows(),O=0;O<M.length;O++)for(var P=M[O],_=0,G=b.columns;_<G.length;_++){var D=G[_],S=I[D.index];if(N>1)N--,delete P.cells[D.index];else if(S)S.cell.height+=P.height,N=S.cell.colSpan,delete P.cells[D.index],S.left--,S.left<=1&&delete I[D.index];else{var K=P.cells[D.index];if(!K)continue;if(K.height=P.height,K.rowSpan>1){var F=M.length-O,ee=K.rowSpan>F?F:K.rowSpan;I[D.index]={cell:K,left:ee,row:P}}}}}function m(b){for(var I=b.allRows(),N=0;N<I.length;N++)for(var M=I[N],O=null,P=0,_=0,G=0;G<b.columns.length;G++){var D=b.columns[G];if(_-=1,_>1&&b.columns[G+1])P+=D.width,delete M.cells[D.index];else if(O){var S=O;delete M.cells[D.index],O=null,S.width=D.width+P}else{var S=M.cells[D.index];if(!S)continue;if(_=S.colSpan,P=0,S.colSpan>1){O=S,P+=D.width;continue}S.width=D.width+P}}}function y(b,I){for(var N={count:0,height:0},M=0,O=b.allRows();M<O.length;M++){for(var P=O[M],_=0,G=b.columns;_<G.length;_++){var D=G[_],S=P.cells[D.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=p(S.text,K,S.styles,I,"...");else if(S.styles.overflow==="hidden")S.text=p(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 ee=S.contentHeight/S.rowSpan;S.rowSpan>1&&N.count*N.height<ee*S.rowSpan?N={height:ee,count:S.rowSpan}:N&&N.count>0&&N.height>ee&&(ee=N.height),ee>P.height&&(P.height=ee)}}N.count--}}function p(b,I,N,M,O){return b.map(function(P){return v(P,I,N,M,O)})}o.ellipsize=p;function v(b,I,N,M,O){var P=1e4*M.scaleFactor();if(I=Math.ceil(I*P)/P,I>=(0,u.getStringWidth)(b,N,M))return b;for(;I<(0,u.getStringWidth)(b+O,N,M)&&!(b.length<=1);)b=b.substring(0,b.length-1);return b.trim()+O}},964:function(s){if(typeof t=="undefined"){var o=new Error("Cannot find module 'undefined'");throw o.code="MODULE_NOT_FOUND",o}s.exports=t}},i={};function A(s){var o=i[s];if(o!==void 0)return o.exports;var l=i[s]={exports:{}};return n[s].call(l.exports,l,l.exports,A),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=A(340),l=A(776),u=A(664),h=A(972),f=A(260);Object.defineProperty(s,"Table",{enumerable:!0,get:function(){return f.Table}});var c=A(172);Object.defineProperty(s,"CellHookData",{enumerable:!0,get:function(){return c.CellHookData}});var g=A(260);Object.defineProperty(s,"Cell",{enumerable:!0,get:function(){return g.Cell}}),Object.defineProperty(s,"Column",{enumerable:!0,get:function(){return g.Column}}),Object.defineProperty(s,"Row",{enumerable:!0,get:function(){return g.Row}});function m(I){(0,o.default)(I)}s.applyPlugin=m;function y(I,N){var M=(0,l.parseInput)(I,N),O=(0,h.createTable)(I,M);(0,u.drawTable)(I,O)}function p(I,N){var M=(0,l.parseInput)(I,N);return(0,h.createTable)(I,M)}s.__createTable=p;function v(I,N){(0,u.drawTable)(I,N)}s.__drawTable=v;try{var b=A(964);b.jsPDF&&(b=b.jsPDF),m(b)}catch(I){}s.default=y}(),a}()})})(NB);var _Q=NB.exports;const Ug=Ig(_Q);class Tg{constructor(){Ee(this,"name","PDF 导出器");Ee(this,"format","pdf");Ee(this,"extension","pdf");Ee(this,"mimeType","application/pdf")}export(e,t){return je(this,null,function*(){const n=new pt;return this.addCover(n,e),e.forEach((i,A)=>{n.addPage(),this.addBugPage(n,i,A+1)}),n.output("blob")})}exportSingle(e,t){return je(this,null,function*(){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 i=20;if(e.setFontSize(18),e.text(`${n}. ${t.description.title}`,20,i),i+=15,e.setFontSize(14),e.text("Basic Info",20,i),i+=8,Ug(e,{startY:i,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]}}),i=e.lastAutoTable.finalY+10,e.setFontSize(14),e.text("Environment",20,i),i+=8,Ug(e,{startY:i,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]}}),i=e.lastAutoTable.finalY+10,t.httpInfo&&(e.setFontSize(14),e.text("HTTP Info",20,i),i+=8,Ug(e,{startY:i,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]}}),i=e.lastAutoTable.finalY+10),e.setFontSize(14),e.text("Description",20,i),i+=8,e.setFontSize(10),t.description.autoDescribe){const a=e.splitTextToSize(`Auto: ${t.description.autoDescribe}`,170);e.text(a,20,i),i+=a.length*5+5}if(t.description.manualDescribe){const a=e.splitTextToSize(`Manual: ${t.description.manualDescribe}`,170);e.text(a,20,i),i+=a.length*5+5}t.metadata.tags.length>0&&(i+=5,e.setFontSize(14),e.text("Tags",20,i),i+=8,e.setFontSize(10),e.text(t.metadata.tags.join(", "),20,i));const A=e.getNumberOfPages();for(let a=1;a<=A;a++)e.setPage(a),e.setFontSize(8),e.text(`Page ${a} of ${A}`,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 ge(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,i])=>{t.setAttribute(n,i)}),e!=null&&e.text&&(t.textContent=e.text),e!=null&&e.html&&(t.innerHTML=e.html),t}function We(r,e,t,n){return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}function LQ(r){return r.forEach(({el:e,event:t,handler:n,options:i})=>{e.addEventListener(t,n,i)}),()=>{r.forEach(({el:e,event:t,handler:n,options:i})=>{e.removeEventListener(t,n,i)})}}function QQ(r,e,t,n){const i=r.getBoundingClientRect();let A=e,a=t;n&&(A=Math.max(0,Math.min(n.width-i.width,e)),a=Math.max(0,Math.min(n.height-i.height,t))),r.style.left=`${A}px`,r.style.top=`${a}px`}function NQ(r,e,t){t===void 0?r.classList.toggle(e):r.classList.toggle(e,t)}function RQ(r,e){r.style.display=e?"":"none"}function OQ(r,e){const{from:t={},to:n={},duration:i=300,onDone:A}=e;Object.entries(t).forEach(([a,s])=>{r.style[a]=s}),r.offsetHeight,r.style.transition=`all ${i}ms ease`,Object.entries(n).forEach(([a,s])=>{r.style[a]=s}),setTimeout(()=>{r.style.transition="",A==null||A()},i)}function RB(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function kQ(r,e){let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>r(...n),e)}}function PQ(r,e){let t=0;return(...n)=>{const i=Date.now();i-t>=e&&(t=i,r(...n))}}class _g{constructor(e={}){Ee(this,"container",null);Ee(this,"toolbarRef",null);Ee(this,"isExpanded",!1);Ee(this,"isDragging",!1);Ee(this,"localBugCount",0);Ee(this,"position",{x:0,y:0});Ee(this,"dragOffset",{x:0,y:0});Ee(this,"hasDragged",!1);Ee(this,"cleanupFns",[]);Ee(this,"config");this.config=St({bugCount:0},e),this.localBugCount=this.config.bugCount||0}mount(){if(this.container)return;this.container=ge("div",{class:"issues-reporter-toolbar",style:{position:"fixed",zIndex:"99999",display:"flex",flexDirection:"column",alignItems:"center",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=i=>{var a;const A=i;this.localBugCount=(a=A.detail)!=null?a:0,this.updateBadge()};window.addEventListener("issues-reporter:count-changed",n),this.cleanupFns.push(()=>{window.removeEventListener("issues-reporter: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=ge("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=ge("div",{class:"ball-icon",html:'<svg viewBox="0 0 24 24" width="28" height="28"><path fill="#ffffff" 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=ge("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 i=ge("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(i);const A=We(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;const u=l.clientX-this.dragOffset.x,h=l.clientY-this.dragOffset.y;if(!this.hasDragged){const m=u-this.position.x,y=h-this.position.y;if(Math.sqrt(m*m+y*y)<5)return}this.hasDragged=!0,this.position.x=u,this.position.y=h;const f=60,c=window.innerWidth-f,g=window.innerHeight-f;this.position.x=Math.max(0,Math.min(c,this.position.x)),this.position.y=Math.max(0,Math.min(g,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=We(e,"click",()=>{this.hasDragged||(this.isExpanded=!this.isExpanded,this.togglePanel(),this.updateBallState(e),this.isExpanded&&this.adjustPositionIfNeeded())});return this.cleanupFns.push(A,o),this.toolbarRef=e,e}createPanel(){const e=ge("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 i=ge("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"}}),A=ge("div",{html:`<svg viewBox="0 0 24 24" width="20" height="20"><path fill="#606266" d="${t}"/></svg>`});i.appendChild(A);const a=ge("span",{text:e});i.appendChild(a);const s=We(i,"mouseenter",()=>{i.style.background="#f5f7fa",i.style.color="#667eea"}),o=We(i,"mouseleave",()=>{i.style.background="transparent",i.style.color="#606266"}),l=We(i,"click",n);return this.cleanupFns.push(s,o,l),i}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)"))}adjustPositionIfNeeded(){if(!this.container)return;const e=this.container.getBoundingClientRect(),t=window.innerWidth,n=20;t-e.right<=n?this.moveTo(Math.max(0,e.left-20),e.top):e.left<=n&&this.moveTo(20,e.top)}moveTo(e,t){this.container&&(this.position.x=e,this.position.y=t,this.container.style.right="auto",this.container.style.bottom="auto",this.container.style.left=`${e}px`,this.container.style.top=`${t}px`)}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")}}function Sc(r,e,t){const n=ge("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),i=ge("label",{text:r,style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});n.appendChild(i);const A=ge(e,t);return n.appendChild(A),n}function OB(r){const e=ge("pre",{style:{margin:"0",padding:"12px",background:"#ffffff",color:"#24292f",borderRadius:"6px",fontSize:"13px",lineHeight:"1.6",fontFamily:'Consolas, Monaco, "Courier New", monospace',whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"auto",maxHeight:"360px",border:"1px solid #d0d7de"}});return r.split(`
338
+ `).forEach((n,i)=>{const A=ge("div",{style:{minHeight:"1.6em"}});i===0?DQ(n,A):/^堆栈:/.test(n)?MQ(n,A):/^\s+at\s/.test(n)?jQ(n,A):HQ(n,A),e.appendChild(A)}),e}function DQ(r,e){const t=r.match(/^(\d{4}\/\d{1,2}\/\d{1,2}\s+\d{1,2}:\d{2}:\d{2})/);if(!t){e.textContent=r;return}const n=t[1];Cn(e,n,{color:"#1677ff",fontWeight:"500"}),r.slice(n.length).split(/("[^"]+")/).forEach(a=>{a.startsWith('"')&&a.endsWith('"')?Cn(e,a,{color:"#238636"}):Cn(e,a,{color:"#24292f"})})}function HQ(r,e){const t=r.match(/^([^:]+):(.*)$/);if(!t){e.textContent=r;return}const n=t[1],i=t[2];Cn(e,`${n}:`,{color:"#faad14",fontWeight:"500"}),n==="错误信息"?Cn(e,i,{color:"#ff4d4f"}):n==="组件 props"||n==="请求参数"||n==="响应状态"||n==="拒绝原因"||n==="输出内容"?KQ(i,e):i.split(/("[^"]+")/).forEach(a=>{a.startsWith('"')&&a.endsWith('"')?Cn(e,a,{color:"#238636"}):Cn(e,a,{color:"#24292f"})})}function MQ(r,e){const t=r.match(/^(堆栈:)(.*)$/);t?(Cn(e,t[1],{color:"#faad14",fontWeight:"500"}),Cn(e,t[2],{color:"#8c8c8c"})):e.textContent=r}function jQ(r,e){const t=r.match(/^(\s+at\s+)(.+)$/);t?(Cn(e,t[1],{color:"#faad14"}),t[2].split(/("[^"]+")/).forEach(A=>{A.startsWith('"')&&A.endsWith('"')?Cn(e,A,{color:"#0969da"}):/\(http|\(file/.test(A)?Cn(e,A,{color:"#0969da"}):Cn(e,A,{color:"#57606a"})})):e.textContent=r}function KQ(r,e){if(r==="无"){Cn(e,r,{color:"#8c8c8c"});return}try{const t=JSON.parse(r),n=JSON.stringify(t,null,2);Cn(e,n,{color:"#0a7c6e"})}catch(t){Cn(e,r,{color:"#24292f"})}}function Cn(r,e,t){if(e==="")return;const n=ge("span",{text:e,style:t});r.appendChild(n)}function Fc(r){return{"http-error":"接口错误",manual:"手动创建","dom-error":"DOM 异常","js-error":"JS 错误","vue-error":"Vue 错误","promise-error":"Promise 错误","xhr-error":"XHR 错误","console-error":"控制台错误","resource-error":"资源错误"}[r]||r}function Ic(r){const e=ge("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"}}),t=ge("img",{attrs:{src:r},style:{maxWidth:"90%",maxHeight:"90%",objectFit:"contain",borderRadius:"4px",boxShadow:"0 4px 20px rgba(0,0,0,0.5)"}});e.appendChild(t),document.body.appendChild(e);const n=()=>{e.parentNode&&e.parentNode.removeChild(e)};We(e,"click",n);const i=A=>{A.key==="Escape"&&(n(),document.removeEventListener("keydown",i))};document.addEventListener("keydown",i)}function VQ(r){const e=r.getAll().length;window.dispatchEvent(new CustomEvent("issues-reporter:count-changed",{detail:e}))}function zQ(r,e,t){return je(this,null,function*(){if(r.length===0){alert("没有可导出的 Bug");return}const n=ge("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"}}),i=ge("div",{style:{background:"white",borderRadius:"12px",padding:"24px",width:"400px",maxWidth:"90vw",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.3)"}}),A=ge("h3",{text:`导出 ${r.length} 个 Bug`,style:{margin:"0 0 20px 0",fontSize:"18px",fontWeight:"600",color:"#303133"}});i.appendChild(A);const a=ge("label",{text:"选择导出格式:",style:{fontSize:"14px",color:"#606266",display:"block",marginBottom:"12px"}});i.appendChild(a);const s=[{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 o="json";const l=ge("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px",marginBottom:"20px"}});s.forEach(m=>{const y=ge("div",{style:{padding:"16px",border:"2px solid #e4e7ed",borderRadius:"8px",cursor:"pointer",textAlign:"center",transition:"all 0.2s ease"}}),p=ge("div",{text:m.label,style:{fontSize:"24px",fontWeight:"bold",color:m.color,marginBottom:"8px"}});y.appendChild(p);const v=ge("div",{text:m.label,style:{fontSize:"14px",color:"#606266"}});y.appendChild(v),We(y,"click",()=>{o=m.value,Array.from(l.children).forEach(b=>{const I=b;I.style.borderColor="#e4e7ed",I.style.background="white"}),y.style.borderColor=m.color,y.style.background=`${m.color}10`}),l.appendChild(y)});const u=l.children[0];u&&(u.style.borderColor="#409eff",u.style.background="#409eff10"),i.appendChild(l);const h=ge("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"}}),f=ge("button",{text:"导出",style:{padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}}),c=ge("button",{text:"取消",style:{padding:"8px 20px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});h.appendChild(c),h.appendChild(f),i.appendChild(h),n.appendChild(i),document.body.appendChild(n);const g=()=>{n.parentNode&&n.parentNode.removeChild(n)};We(n,"click",m=>{m.target===n&&g()}),We(c,"click",g),We(f,"click",()=>je(this,null,function*(){try{const m=e.getExporter(o);if(!m){alert("未找到对应的导出器");return}const y=yield m.export(r);if(y){let p;typeof y=="string"?p=new Blob([y],{type:m.mimeType}):p=y;const v=URL.createObjectURL(p),b=r.length===1?m1(r[0],o,m.extension,t):v1(r,o,m.extension,t),I=ge("a",{attrs:{href:v,download:b}});document.body.appendChild(I),I.click(),document.body.removeChild(I),URL.revokeObjectURL(v)}g()}catch(m){console.error("导出失败:",m),alert("导出失败: "+(m instanceof Error?m.message:"未知错误"))}}))})}function $Q(r,e){const{store:t,selectedBugs:n,onViewDetail:i,onExportBugs:A,onSendAi:a,onSubmitToBackend:s,isAiEnabled:o,isBackendEnabled:l,refresh:u}=e,h=t.getAll();if(h.length===0){r.innerHTML=`
339
+ <div style="text-align: center; padding: 40px 20px; color: #909399;">
340
+ <svg viewBox="0 0 24 24" width="48" height="48" style="margin-bottom: 12px; opacity: 0.5;">
341
+ <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"/>
342
+ </svg>
343
+ <p>暂无问题记录</p>
344
+ <p style="font-size: 12px; margin-top: 8px;">当系统捕获到错误时,会自动记录在这里</p>
345
+ </div>
346
+ `;return}const f=ge("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px",gap:"12px"}}),c=ge("input",{attrs:{type:"text",placeholder:"搜索 Bug..."},style:{flex:"1",maxWidth:"300px",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px"}});f.appendChild(c);const g=ge("div",{style:{display:"flex",gap:"8px"}}),m=ge("button",{text:"导出选中",style:{padding:"6px 12px",border:"1px solid #67c23a",background:"#f0f9ff",color:"#67c23a",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}});g.appendChild(m);const y=ge("button",{text:"全选",style:{padding:"6px 12px",border:"1px solid #dcdfe6",background:"white",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}});g.appendChild(y);const p=ge("button",{text:"删除选中",style:{padding:"6px 12px",border:"1px solid #f56c6c",background:"#fef0f0",color:"#f56c6c",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}});g.appendChild(p);let v=null;l&&(v=ge("button",{text:"提交后台",style:{padding:"6px 12px",border:"1px solid #667eea",background:"#f0f9ff",color:"#667eea",borderRadius:"4px",cursor:"pointer",fontSize:"13px"}}),g.appendChild(v)),f.appendChild(g),r.appendChild(f);const b=ge("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"14px",tableLayout:"fixed"}}),I=ge("thead"),N=ge("tr"),M=["","标题","来源","时间","操作"],O=["48px","","80px","140px","180px"];let P=null;M.forEach((G,D)=>{const S=ge("th",{text:D===0?"":G,style:{padding:"12px 16px",textAlign:D===0?"center":"left",borderBottom:"1px solid #e4e7ed",background:"#f5f7fa",fontWeight:"600",color:"#303133",fontSize:"13px",width:O[D],whiteSpace:"nowrap"}});D===0&&(P=ge("input",{attrs:{type:"checkbox"},style:{cursor:"pointer"}}),S.appendChild(P)),N.appendChild(S)}),I.appendChild(N),b.appendChild(I);const _=ge("tbody");h.forEach(G=>{const D=ge("tr",{style:{cursor:"pointer",transition:"background 0.2s"}});We(D,"mouseenter",()=>{D.style.background="#f5f7fa"}),We(D,"mouseleave",()=>{D.style.background="transparent"});const S=ge("td",{style:{padding:"12px 16px",textAlign:"center",borderBottom:"1px solid #e4e7ed"}}),K=ge("input",{attrs:{type:"checkbox"},style:{cursor:"pointer"}});n.has(G.id)&&(K.checked=!0),We(K,"change",x=>{if(x.stopPropagation(),K.checked?n.add(G.id):n.delete(G.id),P){const H=_.querySelectorAll('input[type="checkbox"]'),V=Array.from(H).every(q=>q.checked);P.checked=V}}),We(K,"click",x=>{x.stopPropagation()}),S.appendChild(K),D.appendChild(S);const F=ge("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",maxWidth:"200px"}}),ee=ge("div",{text:G.description.title,style:{fontWeight:"500",color:"#303133",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});F.appendChild(ee);const Z=ge("div",{text:G.description.autoDescribe.slice(0,50)+"...",style:{fontSize:"12px",color:"#909399",marginTop:"4px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});F.appendChild(Z),D.appendChild(F);const z=ge("td",{text:Fc(G.source),style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",color:"#606266",fontSize:"13px"}});D.appendChild(z);const oe=ge("td",{text:new Date(G.createdAt).toLocaleString("zh-CN"),style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",color:"#909399",fontSize:"12px",whiteSpace:"nowrap"}});D.appendChild(oe);const W=ge("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",whiteSpace:"nowrap"}}),ce=ge("button",{text:"详情",style:{padding:"4px 8px",border:"1px solid #667eea",background:"white",color:"#667eea",borderRadius:"4px",cursor:"pointer",fontSize:"12px",marginRight:"4px"}});We(ce,"click",x=>{x.stopPropagation(),i(G)}),W.appendChild(ce);const ie=ge("button",{text:"导出",style:{padding:"4px 8px",border:"1px solid #67c23a",background:"white",color:"#67c23a",borderRadius:"4px",cursor:"pointer",fontSize:"12px",marginRight:"4px"}});if(We(ie,"click",x=>{x.stopPropagation(),A([G])}),W.appendChild(ie),l&&s){const x=ge("button",{text:"提交",style:{padding:"4px 8px",border:"1px solid #667eea",background:"white",color:"#667eea",borderRadius:"4px",cursor:"pointer",fontSize:"12px",marginRight:"4px"}});We(x,"click",H=>{H.stopPropagation(),s([G])}),W.appendChild(x)}if(o){const x=ge("button",{text:"发送 AI",style:{padding:"4px 8px",border:"1px solid #667eea",background:"white",color:"#667eea",borderRadius:"4px",cursor:"pointer",fontSize:"12px"}});We(x,"click",H=>{H.stopPropagation(),a(G)}),W.appendChild(x)}D.appendChild(W),We(D,"click",x=>{const H=x.target;H.tagName==="INPUT"||H.tagName==="BUTTON"||H.closest("button")||i(G)}),_.appendChild(D)}),b.appendChild(_),r.appendChild(b),We(m,"click",()=>{if(n.size===0){alert("请先选择要导出的 Bug");return}const G=h.filter(D=>n.has(D.id));A(G)}),We(y,"click",()=>{const G=r.querySelectorAll('tbody input[type="checkbox"]'),D=Array.from(G).every(S=>S.checked);G.forEach(S=>{S.checked=!D}),D?n.clear():h.forEach(S=>n.add(S.id)),P&&(P.checked=!D)}),P&&We(P,"change",()=>{const G=r.querySelectorAll('tbody input[type="checkbox"]'),D=P.checked;G.forEach(S=>{S.checked=D}),D?h.forEach(S=>n.add(S.id)):n.clear()}),We(p,"click",()=>{if(n.size===0){alert("请先选择要删除的 Bug");return}confirm(`确定要删除选中的 ${n.size} 个 Bug 吗?`)&&(n.forEach(G=>t.delete(G)),n.clear(),VQ(t),u())}),v&&s&&We(v,"click",()=>{if(n.size===0){alert("请先选择要提交的 Bug");return}const G=h.filter(D=>n.has(D.id));s(G)}),We(c,"input",()=>{const G=c.value.toLowerCase();_.querySelectorAll("tr").forEach((S,K)=>{const F=h[K],ee=F.description.title.toLowerCase().includes(G)||F.description.autoDescribe.toLowerCase().includes(G);S.style.display=ee?"":"none"})})}class kB{constructor(e={}){Ee(this,"container",null);Ee(this,"canvas",null);Ee(this,"ctx",null);Ee(this,"toolbar",null);Ee(this,"currentTool","rect");Ee(this,"currentColor","#ff0000");Ee(this,"isDrawing",!1);Ee(this,"startPos",{x:0,y:0});Ee(this,"annotations",[]);Ee(this,"history",[]);Ee(this,"historyIndex",-1);Ee(this,"config");Ee(this,"image",null);this.config=e}open(e){return je(this,null,function*(){const t=e||this.config.screenshotUrl;if(!t){console.error("[AnnotationCanvas] 没有截图数据");return}this.mount(),yield this.loadImage(t)})}mount(){if(this.container)return;this.container=ge("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=ge("div",{class:"annotation-canvas-wrapper",style:{flex:"1",display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",padding:"20px"}});this.canvas=ge("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}loadImage(e){return je(this,null,function*(){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=ge("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(A=>{const a=ge("button",{class:`annotation-tool-btn ${A.type===this.currentTool?"active":""}`,text:A.label,style:{display:"flex",alignItems:"center",justifyContent:"center",width:"50px",height:"35px",border:"1px solid #dcdfe6",borderRadius:"6px",background:A.type===this.currentTool?"#667eea":"white",color:A.type===this.currentTool?"white":"#606266",cursor:"pointer",fontSize:"14px",fontWeight:"500"}});We(a,"click",()=>{this.currentTool=A.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=ge("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(A=>{const a=ge("button",{style:{width:"24px",height:"24px",borderRadius:"50%",border:this.currentColor===A?"2px solid #303133":"2px solid transparent",background:A,cursor:"pointer"}});We(a,"click",()=>{this.currentColor=A,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=ge("div",{class:"annotation-footer",style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 20px",background:"white",borderTop:"1px solid #e4e7ed",flexShrink:"0"}}),t=ge("div",{style:{display:"flex",gap:"8px"}}),n=ge("button",{text:"撤销",style:{padding:"8px 16px",border:"1px solid #dcdfe6",background:"white",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(n,"click",()=>this.undo()),t.appendChild(n);const i=ge("button",{text:"重做",style:{padding:"8px 16px",border:"1px solid #dcdfe6",background:"white",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(i,"click",()=>this.redo()),t.appendChild(i);const A=ge("button",{text:"清空",style:{padding:"8px 16px",border:"1px solid #f56c6c",background:"#fef0f0",color:"#f56c6c",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(A,"click",()=>{confirm("确定要清空所有标注吗?")&&(this.annotations=[],this.saveHistory(),this.redraw())}),t.appendChild(A),e.appendChild(t);const a=ge("div",{style:{display:"flex",gap:"8px"}}),s=ge("button",{text:"取消",style:{padding:"8px 16px",border:"1px solid #dcdfe6",background:"white",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(s,"click",()=>{var l,u;(u=(l=this.config).onCancel)==null||u.call(l),this.unmount()}),a.appendChild(s);const o=ge("button",{text:"完成",style:{padding:"8px 16px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});return We(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&&(We(this.canvas,"mousedown",e=>{const t=this.canvas.getBoundingClientRect();this.isDrawing=!0,this.startPos={x:e.clientX-t.left,y:e.clientY-t.top}}),We(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})}),We(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 i=prompt("请输入文字:");i&&this.annotations.push({type:"text",x:this.startPos.x,y:this.startPos.y,text:i,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),i=Math.min(e.x,e.endX),A=Math.min(e.y,e.endY);this.ctx.fillStyle="rgba(128, 128, 128, 0.8)";const a=8;for(let s=i;s<i+t;s+=a)for(let o=A;o<A+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,i){if(!this.ctx)return;const A=10,a=Math.atan2(i-t,n-e);this.ctx.beginPath(),this.ctx.moveTo(e,t),this.ctx.lineTo(n,i),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(n,i),this.ctx.lineTo(n-A*Math.cos(a-Math.PI/6),i-A*Math.sin(a-Math.PI/6)),this.ctx.lineTo(n-A*Math.cos(a+Math.PI/6),i-A*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())}}function GQ(r,e){const{formData:t,setAnnotationCanvas:n,onCreate:i,onCancel:A}=e,a=ge("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}}),s=ge("div",{style:{display:"flex",flexDirection:"column",gap:"16px",padding:"16px",background:"#fafafa",borderRadius:"8px"}}),o=ge("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}}),l=ge("label",{html:'标题 <span style="color: #f56c6c;">*</span>',style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});o.appendChild(l);const u=ge("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"}});t.title&&(u.value=t.title),o.appendChild(u);const h=ge("div",{text:"请输入标题",style:{color:"#f56c6c",fontSize:"12px",display:"none"}});o.appendChild(h),s.appendChild(o);const f=ge("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}}),c=ge("label",{text:"详细描述",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});f.appendChild(c);const g=ge("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"}});t.description&&(g.value=t.description),f.appendChild(g),s.appendChild(f);let m=t.tags||[];a.appendChild(s);const y=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}}),p=ge("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}}),v=ge("label",{text:"页面截图",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});p.appendChild(v),y.appendChild(p);const b=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}});y.appendChild(b);const I=ge("div",{style:{width:"100%",minHeight:"180px",border:"2px dashed #dcdfe6",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:"#f5f7fa",color:"#909399",fontSize:"14px",textAlign:"center",padding:"20px",cursor:"pointer",outline:"none",boxSizing:"border-box"}});I.tabIndex=0,I.innerHTML=`
347
+ <svg viewBox="0 0 24 24" width="40" height="40" style="opacity: 0.4; margin-bottom: 8px;">
348
+ <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"/>
349
+ </svg>
350
+ <span>暂无截图,点击添加截图</span>
351
+ <span style="font-size: 12px; color: #a8abb2; margin-top: 4px;">点击此处聚焦后按 Ctrl+V 粘贴图片</span>
352
+ `;const N=ge("button",{text:" 添加截图",style:{padding:"8px 16px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"13px",display:"flex",alignItems:"center",gap:"4px",alignSelf:"flex-start"}}),M=ge("input",{attrs:{type:"file",accept:"image/*",multiple:"true"},style:{display:"none"}});let O=t.screenshots?[...t.screenshots]:[];We(M,"change",F=>je(this,null,function*(){const ee=F.target,Z=ee.files;if(!(!Z||Z.length===0)){for(let z=0;z<Z.length;z++){const oe=Z[z],W=yield new Promise((ce,ie)=>{const x=new FileReader;x.onload=()=>ce(x.result),x.onerror=ie,x.readAsDataURL(oe)});O.push({url:W,annotations:[]})}G(),ee.value=""}})),We(N,"click",()=>{M.click()}),y.appendChild(I),y.appendChild(N),y.appendChild(M),We(I,"click",()=>{M.click()}),We(I,"focus",()=>{I.style.borderColor="#409eff"}),We(I,"blur",()=>{I.style.borderColor="#dcdfe6"}),We(I,"paste",F=>{var Z;F.preventDefault();const ee=(Z=F.clipboardData)==null?void 0:Z.items;if(!ee||ee.length===0){alert("剪贴板为空,请先复制一张图片");return}for(let z=0;z<ee.length;z++){const oe=ee[z];if(oe.kind==="file"&&oe.type.startsWith("image/")){const W=oe.getAsFile();if(!W)continue;const ce=new FileReader;ce.onload=()=>{O.push({url:ce.result,annotations:[]}),G()},ce.onerror=()=>{alert("读取剪贴板图片失败")},ce.readAsDataURL(W);return}}alert("剪贴板中没有图片,请复制图片后再粘贴")});const _=()=>{const F=O.length>0;b.style.display=F?"flex":"none",I.style.display=F?"none":"flex",N.style.display="flex"},G=()=>{b.innerHTML="",O.forEach((F,ee)=>{const Z=ge("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"8px"}}),z=ge("div",{style:{width:"100%",minHeight:"180px",border:"2px dashed #dcdfe6",borderRadius:"8px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",background:"#f5f7fa",overflow:"hidden",position:"relative",transition:"all 0.3s ease"}}),oe=ge("img",{attrs:{src:F.url,alt:"Bug 截图"},style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block",cursor:"zoom-in"}});We(oe,"error",()=>{console.error("截图加载失败:",F.url),oe.style.display="none"}),We(oe,"click",()=>Ic(F.url)),z.appendChild(oe);const W=ge("div",{style:{position:"absolute",top:"6px",right:"6px",display:"flex",gap:"4px",background:"rgba(0,0,0,0.5)",borderRadius:"4px",padding:"2px 4px"}}),ce=ge("button",{text:"标注",style:{padding:"3px 8px",background:"transparent",color:"#fff",border:"none",borderRadius:"3px",cursor:"pointer",fontSize:"12px",display:"flex",alignItems:"center",gap:"3px",lineHeight:"1.4"}});We(ce,"click",x=>{x.stopPropagation();const H=new kB({screenshotUrl:F.url,onComplete:(V,q)=>{O[ee]=Yn(St({},F),{url:q,annotations:V}),G(),n(null)},onCancel:()=>{n(null)}});n(H),H.open(F.url)}),W.appendChild(ce);const ie=ge("button",{text:"删除",style:{padding:"3px 8px",background:"transparent",color:"#f56c6c",border:"none",borderRadius:"3px",cursor:"pointer",fontSize:"12px",display:"flex",alignItems:"center",gap:"3px",lineHeight:"1.4"}});We(ie,"click",x=>{x.stopPropagation(),confirm("确定要删除这张截图吗?")&&(O.splice(ee,1),G(),_())}),W.appendChild(ie),z.appendChild(W),Z.appendChild(z),b.appendChild(Z)}),_()};G(),a.appendChild(y);const D=ge("div",{style:{display:"flex",justifyContent:"flex-end",gap:"12px",marginTop:"8px"}}),S=ge("button",{text:"取消",style:{padding:"8px 20px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px",transition:"all 0.2s"}});We(S,"click",()=>{t.title=u.value,t.description=g.value,t.screenshots=O,t.tags=[...m],A()}),D.appendChild(S);const K=ge("button",{text:"创建",style:{padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px",transition:"all 0.2s"}});We(K,"click",()=>{if(!u.value.trim()){h.style.display="block",u.style.borderColor="#f56c6c",u.focus();return}h.style.display="none",u.style.borderColor="#dcdfe6",i({title:u.value,severity:t.severity,description:g.value,tags:m,screenshots:O.length>0?O:void 0})}),D.appendChild(K),a.appendChild(D),r.appendChild(a)}function WQ(r,e){const{store:t,exportService:n,selectedBugs:i}=e,A=t.getAll();if(A.length===0){r.innerHTML='<p style="text-align: center; color: #909399; padding: 40px;">暂无问题可导出</p>';return}const a=ge("div",{style:{display:"flex",flexDirection:"column",gap:"20px"}}),s=ge("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),o=ge("label",{text:"导出范围",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});s.appendChild(o);const l=ge("select",{style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px"}});[{value:"all",label:`全部 Bug (${A.length})`},{value:"selected",label:"选中的 Bug"}].forEach(y=>{const p=ge("option",{attrs:{value:y.value},text:y.label});l.appendChild(p)}),s.appendChild(l),a.appendChild(s);const u=ge("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),h=ge("label",{text:"导出格式",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});u.appendChild(h);const f=[{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"}],c=ge("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"12px"}});let g="word";f.forEach(y=>{const p=ge("div",{style:{padding:"16px",border:"2px solid #e4e7ed",borderRadius:"8px",cursor:"pointer",textAlign:"center",transition:"all 0.2s ease"}}),v=ge("div",{text:y.label,style:{fontSize:"24px",fontWeight:"bold",color:y.color,marginBottom:"8px"}});p.appendChild(v);const b=ge("div",{text:y.label,style:{fontSize:"14px",color:"#606266"}});p.appendChild(b),We(p,"click",I=>{I.stopPropagation(),g=y.value,Array.from(c.children).forEach(N=>{const M=N;M.style.borderColor="#e4e7ed",M.style.background="white"}),p.style.borderColor=y.color,p.style.background=`${y.color}10`}),c.appendChild(p),y.value==="word"&&(p.style.borderColor=y.color,p.style.background=`${y.color}10`)}),u.appendChild(c),a.appendChild(u);const m=ge("button",{text:"导出",style:{padding:"12px 24px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px",fontWeight:"500",marginTop:"12px"}});We(m,"click",()=>je(this,null,function*(){const p=l.value==="all"?A:A.filter(v=>i.has(v.id));if(p.length===0){alert("没有选中的 Bug");return}try{const v=n.getExporter(g);if(!v){alert("未找到对应的导出器");return}const b=yield v.export(p);if(b){let I;typeof b=="string"?I=new Blob([b],{type:v.mimeType}):I=b;const N=URL.createObjectURL(I),M=ge("a",{attrs:{href:N,download:`bug-report-${Date.now()}.${v.extension}`}});document.body.appendChild(M),M.click(),document.body.removeChild(M),URL.revokeObjectURL(N)}}catch(v){console.error("导出失败:",v),alert("导出失败: "+(v instanceof Error?v.message:"未知错误"))}})),a.appendChild(m),r.appendChild(a)}function gl(r,e){const t=ge("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),n=ge("label",{text:e,style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});t.appendChild(n);const i=ge("input",{attrs:{type:"text",value:r,readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f5f7fa",color:"#606266",boxSizing:"border-box"}});return t.appendChild(i),t}function Uc(r,e,t=4){const n=ge("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}}),i=ge("label",{text:e,style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});n.appendChild(i);const A=ge("textarea",{attrs:{rows:String(t),readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f5f7fa",color:"#606266",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit"}});return A.value=r,n.appendChild(A),n}function qQ(r,e){var f;const{bug:t,onBack:n}=e,i=ge("div",{style:{display:"flex",flexDirection:"column",gap:"16px",flex:"1",minHeight:"0",minWidth:"0",width:"100%"}}),A=ge("div",{style:{width:"100%",background:"white",paddingBottom:"8px",flexShrink:"0"}}),a=ge("button",{text:"← 返回",style:{padding:"6px 12px",background:"white",border:"1px solid #dcdfe6",borderRadius:"4px",cursor:"pointer",fontSize:"13px",color:"#606266"}});We(a,"click",()=>n()),A.appendChild(a),i.appendChild(A);const s=ge("div",{style:{flex:"1",minHeight:"0",minWidth:"0",width:"100%",overflowY:"auto",display:"flex",flexDirection:"column",gap:"16px",paddingRight:"10px"}});i.appendChild(s);const o=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",borderRadius:"8px",padding:"20px"}});o.appendChild(ge("h3",{text:t.description.title||"无标题",style:{margin:"0",fontSize:"18px",fontWeight:"600",color:"#303133",lineHeight:"1.4"}})),s.appendChild(o);const l=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}});l.appendChild(ge("h4",{text:"基本信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}}));const u=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});u.appendChild(gl(Fc(t.source),"来源")),u.appendChild(gl(new Date(t.createdAt).toLocaleString("zh-CN"),"创建时间")),l.appendChild(u),s.appendChild(l);const h=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}});if(h.appendChild(ge("h4",{text:"描述信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}})),t.description.autoDescribe){const c=ge("div",{style:{display:"flex",flexDirection:"column",gap:"8px"}});c.appendChild(ge("label",{text:"自动描述",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}})),c.appendChild(OB(t.description.autoDescribe)),h.appendChild(c)}if(t.description.manualDescribe&&h.appendChild(Uc(t.description.manualDescribe,"手动描述",4)),s.appendChild(h),t.httpInfo){const c=t.httpInfo,g=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}});g.appendChild(ge("h4",{text:"接口信息",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}})),g.appendChild(gl(c.requestUrl||"","请求 URL"));const m=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});m.appendChild(gl(c.requestMethod||"","请求方法")),m.appendChild(gl(String((f=c.responseStatus)!=null?f:""),"状态码")),g.appendChild(m),g.appendChild(Uc(c.errorMessage||"","错误信息",3));const y=c.requestParams?typeof c.requestParams=="object"?JSON.stringify(c.requestParams,null,2):String(c.requestParams):"";g.appendChild(Uc(y,"请求参数",4)),s.appendChild(g)}if(t.errorDetails){const c=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",padding:"16px",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"12px"}});c.appendChild(ge("h4",{text:"错误详情",style:{margin:"0 0 4px 0",fontSize:"15px",fontWeight:"600",color:"#303133"}}));const g=typeof t.errorDetails=="object"?JSON.stringify(t.errorDetails,null,2):String(t.errorDetails);c.appendChild(Uc(g,"源详情",6)),s.appendChild(c)}if(Array.isArray(t.screenshots)&&t.screenshots.length>0){const c=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}});c.appendChild(ge("h4",{text:"截图",style:{margin:"0",fontSize:"15px",fontWeight:"600",color:"#303133"}}));const g=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}});t.screenshots.forEach(m=>{const y=ge("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"8px"}}),p=ge("div",{style:{width:"100%",minHeight:"180px",background:"white",border:"1px solid #e4e7ed",borderRadius:"8px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"}}),v=ge("img",{attrs:{src:m.url,alt:"截图"},style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block",cursor:"zoom-in"}});We(v,"error",()=>{v.style.display="none"}),We(v,"click",()=>Ic(m.url)),p.appendChild(v),y.appendChild(p),g.appendChild(y)}),c.appendChild(g),s.appendChild(c)}r.appendChild(i)}function XQ(r){return!r||!r.enabled?!1:r.employees.length>0}function YQ(r,e,t,n){const i=e.employees;if(i.length===0){alert("未配置 AI 员工");return}const A=e.defaultEmployeeId||i[0].id,a=b1(e.defaultFormat),s=ge("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"}}),o=ge("div",{style:{background:"white",borderRadius:"12px",padding:"24px",width:"420px",maxWidth:"90vw",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.3)"}}),l=ge("h3",{text:"发送 AI",style:{margin:"0 0 16px 0",fontSize:"18px",fontWeight:"600",color:"#303133"}});o.appendChild(l);const u=ge("div",{text:r.description.title,style:{fontSize:"14px",color:"#606266",marginBottom:"16px",padding:"10px 12px",background:"#f5f7fa",borderRadius:"6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});o.appendChild(u);const h=ge("div",{style:{marginBottom:"16px"}}),f=ge("label",{text:"目标 AI 员工:",style:{display:"block",fontSize:"14px",color:"#606266",marginBottom:"8px"}});h.appendChild(f);const c=ge("select",{style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",background:"white"}});i.forEach(M=>{const O=ge("option",{attrs:{value:M.id},text:M.name||M.id});c.appendChild(O)}),c.value=A,h.appendChild(c),o.appendChild(h);const g=ge("div",{style:{marginBottom:"20px"}}),m=ge("label",{text:"导出格式:",style:{display:"block",fontSize:"14px",color:"#606266",marginBottom:"8px"}});g.appendChild(m);const y=ge("select",{style:{width:"100%",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",background:"white"}});[{value:"word",label:"Word (.docx)"},{value:"pdf",label:"PDF (.pdf)"},{value:"markdown",label:"Markdown (.md)"},{value:"json",label:"JSON (.json)"}].forEach(M=>{const O=ge("option",{attrs:{value:M.value},text:M.label});y.appendChild(O)}),y.value=a,g.appendChild(y),o.appendChild(g);const v=ge("div",{style:{display:"flex",gap:"12px",justifyContent:"flex-end"}}),b=ge("button",{text:"确认发送",style:{padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}}),I=ge("button",{text:"取消",style:{padding:"8px 20px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});v.appendChild(I),v.appendChild(b),o.appendChild(v),s.appendChild(o),document.body.appendChild(s);const N=()=>{s.parentNode&&s.parentNode.removeChild(s)};We(s,"click",M=>{M.target===s&&N()}),We(I,"click",N),We(b,"click",()=>je(this,null,function*(){const M=c.value,O=i.find(G=>G.id===M);if(!O){alert("未找到选中的 AI 员工");return}const P=y.value,_=t.getExporter(P);if(!_){alert(`不支持的导出格式: ${P}`);return}b.textContent="发送中...",b.style.opacity="0.7",b.disabled=!0;try{const G=yield y1(r,O,_,n);G.ok?(alert(`已成功发送到 ${O.name||O.id},文件名:${G.saved[0]}`),N()):alert(`发送失败:${G.error||"未知错误"}`)}catch(G){alert("发送失败:"+(G instanceof Error?G.message:String(G)))}finally{b.textContent="确认发送",b.style.opacity="1",b.disabled=!1}}))}const JQ={1:"待处理",3:"处理中",4:"已解决"},ZQ={1:{background:"#f4f4f5",color:"#909399"},3:{background:"#fdf6ec",color:"#e6a23c"},4:{background:"#f0f9eb",color:"#67c23a"}};function eN(r){return JQ[String(r)]||r}function tN(r){return ZQ[String(r)]||{background:"#f4f4f5",color:"#909399"}}function rN(r,e){const{items:t,loading:n,showCreateButton:i,onCreate:A,onViewDetail:a,onExportIssue:s,onBatchExport:o,onRefresh:l}=e,u=ge("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px",gap:"12px"}}),h=ge("h4",{text:"当前用户提交的问题清单",style:{margin:"0",fontSize:"16px",fontWeight:"600",color:"#303133"}});u.appendChild(h);const f=ge("div",{style:{display:"flex",gap:"8px"}});if(i&&A){const M=ge("button",{text:"+ 创建问题",style:{padding:"6px 14px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"13px"}});We(M,"click",A),f.appendChild(M)}if(l){const M=ge("button",{text:"刷新",style:{padding:"6px 14px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"13px"}});We(M,"click",l),f.appendChild(M)}let c=null;if(o&&t.length>0&&(c=ge("button",{text:"批量导出",style:{padding:"6px 14px",background:"white",color:"#67c23a",border:"1px solid #67c23a",borderRadius:"6px",cursor:"pointer",fontSize:"13px",opacity:"0.6",transition:"opacity 0.15s"}}),We(c,"click",()=>{const M=t.filter(O=>m.has(O.id));M.length!==0&&o(M)}),f.appendChild(c)),u.appendChild(f),r.appendChild(u),n){r.innerHTML+=`
353
+ <div style="text-align: center; padding: 40px 20px; color: #909399;">
354
+ <p>加载中...</p>
355
+ </div>
356
+ `;return}if(t.length===0){const M=ge("div",{style:{textAlign:"center",padding:"40px 20px",color:"#909399;"}});if(M.innerHTML=`
357
+ <svg viewBox="0 0 24 24" width="48" height="48" style="margin-bottom: 12px; opacity: 0.5;">
358
+ <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"/>
359
+ </svg>
360
+ <p>暂无已提交的问题</p>
361
+ `,i&&A){const O=ge("button",{text:"+ 创建问题",style:{marginTop:"16px",padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(O,"click",A),M.appendChild(O)}r.appendChild(M);return}const g=ge("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"14px",tableLayout:"fixed"}}),m=new Set,y=()=>{c&&(c.textContent=m.size>0?`批量导出(${m.size})`:"批量导出",c.style.opacity=m.size>0?"1":"0.6")},p=ge("thead"),v=ge("tr"),b=["","ID","标题","状态","时间","操作"],I=["40px","90px","","90px","150px","120px"];b.forEach((M,O)=>{const P=ge("th",{text:M,style:{padding:"12px 16px",textAlign:O===0?"center":"left",borderBottom:"1px solid #e4e7ed",background:"#f5f7fa",fontWeight:"600",color:"#303133",fontSize:"13px",width:I[O],whiteSpace:"nowrap"}});if(O===0&&o){P.textContent="";const _=ge("input",{style:{cursor:"pointer",width:"15px",height:"15px"}});_.type="checkbox",We(_,"change",()=>{N.querySelectorAll('input[type="checkbox"]').forEach((D,S)=>{D.checked=_.checked;const K=t[S].id;_.checked?m.add(K):m.delete(K)}),y()}),P.appendChild(_)}v.appendChild(P)}),p.appendChild(v),g.appendChild(p);const N=ge("tbody");t.forEach(M=>{const O=ge("tr",{style:{cursor:a?"pointer":"default",transition:"background 0.2s"}});We(O,"mouseenter",()=>{O.style.background="#f5f7fa"}),We(O,"mouseleave",()=>{O.style.background="transparent"});const P=ge("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",textAlign:"center"}}),_=ge("input",{style:{cursor:"pointer",width:"15px",height:"15px"}});_.type="checkbox",We(_,"change",z=>{z.stopPropagation(),_.checked?m.add(M.id):m.delete(M.id),y()}),We(_,"click",z=>z.stopPropagation()),P.appendChild(_),O.appendChild(P);const G=ge("td",{text:`${M.displayId}`,style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",color:"#667eea",fontWeight:"500",fontSize:"13px",whiteSpace:"nowrap"}});O.appendChild(G);const D=ge("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",maxWidth:"260px"}}),S=ge("div",{text:M.title,style:{fontWeight:"500",color:"#303133",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});D.appendChild(S),O.appendChild(D);const K=ge("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed"}}),F=ge("span",{text:eN(M.status),style:St({display:"inline-block",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"500"},tN(M.status))});K.appendChild(F),O.appendChild(K);const ee=ge("td",{text:new Date(M.createdAt).toLocaleString("zh-CN"),style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",color:"#909399",fontSize:"12px",whiteSpace:"nowrap"}});O.appendChild(ee);const Z=ge("td",{style:{padding:"12px 16px",borderBottom:"1px solid #e4e7ed",whiteSpace:"nowrap"}});if(a){const z=ge("button",{text:"详情",style:{padding:"4px 8px",border:"1px solid #667eea",background:"white",color:"#667eea",borderRadius:"4px",cursor:"pointer",fontSize:"12px",marginRight:"4px"}});We(z,"click",oe=>{oe.stopPropagation(),a(M)}),Z.appendChild(z)}if(s){const z=ge("button",{text:"导出",style:{padding:"4px 8px",border:"1px solid #67c23a",background:"white",color:"#67c23a",borderRadius:"4px",cursor:"pointer",fontSize:"12px"}});We(z,"click",oe=>{oe.stopPropagation(),s(M)}),Z.appendChild(z)}O.appendChild(Z),a&&We(O,"click",()=>a(M)),N.appendChild(O)}),g.appendChild(N),r.appendChild(g)}function EA(r,e){return Sc(e,"input",{attrs:{type:"text",value:r,readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f5f7fa",color:"#606266",boxSizing:"border-box"}})}function PB(r,e,t=4){const n=Sc(e,"textarea",{attrs:{rows:String(t),readonly:"readonly"},style:{width:"100%",padding:"8px 12px",border:"1px solid #e4e7ed",borderRadius:"4px",fontSize:"13px",background:"#f5f7fa",color:"#606266",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit"}}),i=n.querySelector("textarea");return i.value=r,n}const nN={3:{background:"#fdf6ec",color:"#e6a23c"},4:{background:"#f0f9eb",color:"#67c23a"}};function iN(r){return{3:"处理中",4:"已解决"}[String(r)]||String(r)}function AN(r){return nN[String(r)]||{background:"#f4f4f5",color:"#909399"}}function DB(r,e=!1){const t=ge("div",{style:{borderBottom:"1px solid #e4e7ed"}}),n=ge("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",cursor:"pointer",userSelect:"none"}}),i=ge("span",{text:r,style:{fontSize:"15px",fontWeight:"500",color:"#303133"}}),A=ge("span",{html:'<svg viewBox="0 0 24 24" width="16" height="16"><path fill="currentColor" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>',style:{color:"#909399",transition:"transform 0.2s ease"}});n.appendChild(i),n.appendChild(A),t.appendChild(n);const a=ge("div",{style:{display:e?"flex":"none",flexDirection:"column",gap:"12px",paddingBottom:"16px"}});t.appendChild(a);let s=e;const o=()=>{s=!s,a.style.display=s?"flex":"none",A.style.transform=s?"rotate(180deg)":"rotate(0deg)"};return We(n,"click",o),s&&(A.style.transform="rotate(180deg)"),{header:n,body:a,toggle:o}}function aN(r){const e=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}}),t=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}});return r.forEach(n=>{const i=ge("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"8px"}}),A=ge("div",{style:{width:"100%",minHeight:"180px",border:"2px dashed #dcdfe6",borderRadius:"8px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",background:"#f5f7fa",overflow:"hidden"}}),a=ge("img",{attrs:{src:n.url,alt:"截图"},style:{maxWidth:"100%",maxHeight:"280px",objectFit:"contain",display:"block",cursor:"zoom-in"}});We(a,"error",()=>{a.style.display="none"}),We(a,"click",()=>Ic(n.url)),A.appendChild(a),i.appendChild(A),t.appendChild(i)}),e.appendChild(t),e}function sN(r,e){var l;const t=ge("div",{style:{border:"1px solid #e4e7ed",borderRadius:"8px",padding:"14px",display:"flex",flexDirection:"column",gap:"10px",background:"#fafafa"}}),n=ge("div",{style:{display:"flex",alignItems:"center",gap:"8px"}}),i=ge("span",{text:`${e+1}`,style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"22px",height:"22px",borderRadius:"50%",background:"#667eea",color:"white",fontSize:"12px",fontWeight:"600"}}),A=ge("span",{text:Fc(r.source)||r.source||"未知",style:{display:"inline-block",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"500",background:"#e4e7ed",color:"#606266"}}),a=ge("span",{text:r.createdAt?new Date(r.createdAt).toLocaleString("zh-CN"):"",style:{fontSize:"12px",color:"#909399",marginLeft:"auto"}});n.appendChild(i),n.appendChild(A),r.createdAt&&n.appendChild(a),t.appendChild(n);const s=r.autoDescribe||r.manualDescribe||r.description||"";s&&(r.autoDescribe?t.appendChild(OB(s)):t.appendChild(PB(String(s),"",3)));const o=(l=r.errorDetails)!=null?l:r.errorJson;if(o){const u=typeof o=="object"?JSON.stringify(o,null,2):String(o);t.appendChild(PB(u,"源详情",4))}return t}function oN(r,e){const{issue:t,onBack:n,onSave:i}=e,A=ge("div",{style:{display:"flex",flexDirection:"column",gap:"16px",flex:"1",minHeight:"0",minWidth:"0",width:"100%"}}),a=ge("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexShrink:"0"}}),s=ge("button",{text:"← 返回",style:{padding:"6px 12px",background:"white",border:"1px solid #dcdfe6",borderRadius:"4px",cursor:"pointer",fontSize:"13px",color:"#606266"}});We(s,"click",()=>n()),a.appendChild(s);const o=AN(String(t.status)),l=ge("span",{text:iN(String(t.status)),style:{display:"inline-block",padding:"2px 8px",borderRadius:"4px",fontSize:"12px",fontWeight:"500",background:o.background,color:o.color}});a.appendChild(l),A.appendChild(a);const u=ge("div",{style:{flex:"1",minHeight:"0",minWidth:"0",width:"100%",overflowY:"auto",display:"flex",flexDirection:"column",gap:"16px",paddingRight:"10px",boxSizing:"border-box"}});A.appendChild(u);const h=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",borderRadius:"8px",padding:"16px",display:"flex",flexDirection:"column",gap:"20px"}}),f=Sc("标题","input",{attrs:{type:"text",value:t.title||"",placeholder:"请输入标题"},style:{width:"100%",padding:"8px 0",border:"none",borderBottom:"1px solid #e4e7ed",fontSize:"18px",fontWeight:"600",color:"#303133",outline:"none"}});h.appendChild(f);const c=f.querySelector("input"),g=String(t.status)==="4",m=Sc("遇到的情况","textarea",{attrs:St({placeholder:g?"":"请描述遇到的情况...",rows:"4"},g?{readonly:"readonly"}:{}),style:St({width:"100%",padding:"10px 12px",border:"1px solid #dcdfe6",borderRadius:"4px",fontSize:"14px",resize:"vertical",boxSizing:"border-box",fontFamily:"inherit",lineHeight:"1.6"},g?{background:"#f5f7fa",color:"#606266",cursor:"not-allowed"}:{})}),y=m.querySelector("textarea");if(y.value=t.description||t.manualDescribe||t.autoDescribe||"",h.appendChild(m),Array.isArray(t.screenshots)&&t.screenshots.length>0){const G=ge("div",{style:{display:"flex",flexDirection:"column",gap:"10px"}});G.appendChild(ge("label",{text:"页面截图",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}})),G.appendChild(aN(t.screenshots)),h.appendChild(G)}u.appendChild(h);const p=ge("div",{style:{background:"white",border:"1px solid #e4e7ed",borderRadius:"8px",display:"flex",flexDirection:"column",padding:"0 20px"}}),v=DB("基本信息",!0),b=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});b.appendChild(EA(t.displayId||t.id||"","问题 ID")),b.appendChild(EA(new Date(t.createdAt).toLocaleString("zh-CN"),"创建时间")),v.body.appendChild(b);const I=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});if(I.appendChild(EA(t.reporterName||t.reporter||"","报告者")),I.appendChild(EA(t.assignee||"","指派给")),v.body.appendChild(I),t.env){const G=t.env,D=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});D.appendChild(EA(G.url||"","页面 URL")),D.appendChild(EA(G.browser||"","浏览器")),v.body.appendChild(D);const S=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});S.appendChild(EA(G.resolution||"","分辨率")),S.appendChild(EA(G.os||"","操作系统")),v.body.appendChild(S);const K=ge("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px"}});K.appendChild(EA(G.subsystem||"","子系统")),v.body.appendChild(K)}p.appendChild(v.header.parentElement);const N=DB("自动捕获问题详情",!1),M=Array.isArray(t.issues)?t.issues:[];M.length>0?M.forEach((G,D)=>{N.body.appendChild(sN(G,D))}):N.body.appendChild(ge("p",{text:"暂无自动捕获问题详情",style:{color:"#909399",fontSize:"13px",margin:"0"}})),p.appendChild(N.header.parentElement),u.appendChild(p);const O=ge("div",{style:{display:"flex",justifyContent:"flex-end",gap:"12px",padding:"16px 0",flexShrink:"0"}}),P=ge("button",{text:"返回列表",style:{padding:"8px 20px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(P,"click",()=>n()),O.appendChild(P);const _=ge("button",{text:"保存修改",style:{padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(_,"click",()=>je(this,null,function*(){if(!c.value.trim()){alert("请输入标题"),c.focus();return}const G=y.value.trim(),D=t.autoDescribe||"",S={title:c.value.trim(),severity:t.severity||"minor",description:G||D||c.value.trim(),autoDescribe:D,manualDescribe:G};_.textContent="保存中...",_.style.opacity="0.7",_.style.pointerEvents="none";try{yield i(t.displayId,S),alert("修改已保存"),n()}catch(K){console.error("[IssueEditPanel] 保存失败:",K),alert("保存失败: "+(K instanceof Error?K.message:"未知错误"))}finally{_.textContent="保存修改",_.style.opacity="1",_.style.pointerEvents="auto"}})),O.appendChild(_),A.appendChild(O),r.appendChild(A)}function lN(r){const e=new Date,t=e.toISOString().slice(0,10).replace(/-/g,""),n=e.toTimeString().slice(0,8).replace(/:/g,""),i=Math.random().toString(36).substring(2,8).toUpperCase();return`${r||"未命名用户"}-${t}${n}-${i}`}function uN(r){const e=[];return r.who.trim()&&e.push(`我是${r.who.trim()}`),r.where.trim()&&e.push(`我在${r.where.trim()}`),r.action.trim()&&e.push(`执行${r.action.trim()}`),r.result.trim()&&e.push(`结果${r.result.trim()}`),e.join(",")}function cN(r,e){var oe;const{store:t,formData:n,userInfo:i,onSubmit:A,onViewDetail:a,onCancel:s}=e,o=t.getAll(),l=ge("div",{style:{display:"flex",flexDirection:"column",gap:"16px"}});let u=!1,h;const f=ge("button",{text:o.length>0?` 自动抓取 ${o.length} 点击查看`:" 自动抓取 0",style:{padding:"6px 14px",background:"white",color:"#e6a23c",border:"1px solid #e6a23c",borderRadius:"16px",cursor:"pointer",fontSize:"13px",display:"flex",alignItems:"center",gap:"4px",alignSelf:"flex-end",transition:"all 0.2s",whiteSpace:"nowrap"}});We(f,"mouseenter",()=>{f.style.background="#fdf6ec"}),We(f,"mouseleave",()=>{f.style.background="white"}),We(f,"click",()=>{u=!u,h&&(h.style.display=u?"flex":"none"),f.textContent=o.length>0?` 自动抓取 ${o.length} ${u?"收起":"点击查看"}`:"🔍 自动抓取 0"}),l.appendChild(f);const c=ge("div",{style:{display:"flex",gap:"20px",alignItems:"flex-start"}}),g=ge("div",{style:{flex:"1 1 45%",minWidth:"320px",display:"flex",flexDirection:"column",gap:"16px"}}),m=ge("div",{style:{padding:"16px",background:"#fafafa",borderRadius:"8px",display:"flex",flexDirection:"column",gap:"14px"}}),y=ge("div",{style:{display:"flex",flexDirection:"column",gap:"6px"}});y.appendChild(ge("label",{html:'问题标题 <span style="color: #f56c6c;">*</span>',style:{fontSize:"14px",fontWeight:"500",color:"#606266"}}));const p=ge("input",{attrs:{type:"text",placeholder:"请输入主问题标题"},style:{width:"100%",padding:"10px 12px",border:"1px solid #dcdfe6",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"}});p.value=n.title||lN((oe=i==null?void 0:i.user)==null?void 0:oe.name),n.title=p.value,We(p,"input",()=>{n.title=p.value}),y.appendChild(p),m.appendChild(y);const v=ge("label",{text:"遇到的情况",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}});m.appendChild(v);const b=["没反应","弹错误","跳出错误提示","页面空白","数据未保存","跳转失败","加载转圈","显示异常"];[{key:"who",label:"我是",placeholder:"张三"},{key:"where",label:"我在",placeholder:"比如:受理页面、办件页面"},{key:"action",label:"执行",placeholder:"比如:提交按钮、保存操作、刷新"},{key:"result",label:"结果",placeholder:"比如:没反应 / 弹错误 / 跳空白页"}].forEach(W=>{var V;const ce=ge("div",{style:{display:"flex",alignItems:"center",gap:"12px"}}),ie=ge("span",{text:W.label,style:{fontSize:"14px",color:"#606266",minWidth:"30px",textAlign:"right"}});ce.appendChild(ie);const x=ge("input",{attrs:{type:"text",placeholder:W.placeholder},style:{flex:"1",padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"6px",fontSize:"14px",boxSizing:"border-box"}}),H=W.key==="who"&&!x.value?((V=i==null?void 0:i.user)==null?void 0:V.name)||"":n[W.key]||"";if(x.value=H,W.key==="who"&&H&&(n[W.key]=H),We(x,"input",()=>{n[W.key]=x.value}),ce.appendChild(x),W.key==="result"){const q=ge("select",{style:{padding:"8px 12px",border:"1px solid #dcdfe6",borderRadius:"6px",fontSize:"14px",background:"white",cursor:"pointer",minWidth:"100px"}}),$=ge("option",{attrs:{value:""},text:"常用"});q.appendChild($),b.forEach(L=>{const Q=ge("option",{attrs:{value:L},text:L});q.appendChild(Q)}),We(q,"change",()=>{q.value&&(x.value=q.value,n.result=q.value)}),ce.appendChild(q)}m.appendChild(ce)});const N=ge("div",{style:{display:"flex",flexDirection:"column",gap:"10px",marginTop:"4px"}}),M=ge("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}});M.appendChild(ge("label",{text:"页面截图",style:{fontSize:"14px",fontWeight:"500",color:"#606266"}})),N.appendChild(M);const O=ge("div",{style:{display:"flex",flexDirection:"column",gap:"12px"}});N.appendChild(O);const P=ge("div",{style:{width:"100%",minHeight:"120px",border:"2px dashed #dcdfe6",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:"#f5f7fa",color:"#909399",fontSize:"13px",textAlign:"center",padding:"16px",boxSizing:"border-box"}});We(P,"mouseenter",()=>{P.style.borderColor="#667eea"}),We(P,"mouseleave",()=>{P.style.borderColor="#dcdfe6"}),P.tabIndex=0,P.innerHTML=`
362
+ <svg viewBox="0 0 24 24" width="36" height="36" style="opacity: 0.4; margin-bottom: 6px;">
363
+ <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"/>
364
+ </svg>
365
+ <span>点击此处后按 Ctrl+V 粘贴截图</span>
366
+ <span style="font-size: 12px; color: #a8abb2; margin-top: 4px;">或点击下方按钮上传</span>
367
+ `;const _=ge("button",{text:"添加截图",style:{padding:"6px 14px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"13px",alignSelf:"flex-start"}}),G=ge("input",{attrs:{type:"file",accept:"image/*",multiple:"true"},style:{display:"none"}});We(G,"change",W=>je(this,null,function*(){const ce=W.target;if(!(!ce.files||ce.files.length===0)){for(let ie=0;ie<ce.files.length;ie++){const x=yield new Promise((H,V)=>{const q=new FileReader;q.onload=()=>H(q.result),q.onerror=V,q.readAsDataURL(ce.files[ie])});n.screenshots.push({url:x,annotations:[]})}K(),ce.value=""}})),We(_,"click",()=>G.click()),We(N,"paste",W=>{var ie;const ce=Array.from(((ie=W.clipboardData)==null?void 0:ie.files)||[]).filter(x=>x.type.startsWith("image/"));ce.length!==0&&(W.preventDefault(),ce.forEach(x=>{const H=new FileReader;H.onload=()=>{n.screenshots.push({url:H.result,annotations:[]}),K()},H.readAsDataURL(x)}))});const S=()=>{const W=n.screenshots.length>0;O.style.display=W?"flex":"none",P.style.display=W?"none":"flex"},K=()=>{O.innerHTML="",n.screenshots.forEach((W,ce)=>{const ie=ge("div",{style:{position:"relative",display:"flex",flexDirection:"column",gap:"6px"}}),x=ge("div",{style:{width:"100%",minHeight:"120px",border:"2px dashed #dcdfe6",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",background:"#f5f7fa",overflow:"hidden",position:"relative"}}),H=ge("img",{attrs:{src:W.url,alt:"页面截图"},style:{maxWidth:"100%",maxHeight:"200px",objectFit:"contain",display:"block",cursor:"zoom-in"}});We(H,"click",()=>Ic(W.url)),x.appendChild(H);const V=ge("div",{style:{position:"absolute",top:"6px",right:"6px",display:"flex",gap:"4px",background:"rgba(0,0,0,0.5)",borderRadius:"4px",padding:"2px 4px"}}),q=ge("button",{text:"删除",style:{padding:"3px 8px",background:"transparent",color:"#f56c6c",border:"none",borderRadius:"3px",cursor:"pointer",fontSize:"12px"}});We(q,"click",$=>{$.stopPropagation(),confirm("确定要删除这张截图吗?")&&(n.screenshots.splice(ce,1),K(),S())}),V.appendChild(q),x.appendChild(V),ie.appendChild(x),O.appendChild(ie)}),S()};K(),N.appendChild(P),N.appendChild(_),N.appendChild(G),m.appendChild(N),g.appendChild(m),c.appendChild(g),h=ge("div",{style:{flex:"1 1 50%",minWidth:"320px",display:"none",flexDirection:"column",gap:"12px"}});const F=ge("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}});if(F.appendChild(ge("h4",{text:`自动捕获的问题 (${o.length})`,style:{margin:"0",fontSize:"16px",fontWeight:"600",color:"#303133"}})),h.appendChild(F),o.length===0)h.appendChild(ge("div",{html:`
368
+ <div style="text-align: center; padding: 40px 20px; color: #909399; background: #fafafa; border-radius: 8px;">
369
+ <p>暂无自动捕获的问题</p>
370
+ <p style="font-size: 12px; margin-top: 8px;">系统将在报错时自动记录</p>
371
+ </div>
372
+ `}));else{const W=ge("div",{style:{display:"flex",flexDirection:"column",gap:"10px",maxHeight:"520px",overflow:"auto",paddingRight:"4px"}});o.forEach(ce=>{var L,Q;const ie=ge("div",{style:{padding:"12px",background:"#ffffff",border:"1px solid #e4e7ed",borderRadius:"8px",cursor:"pointer",transition:"all 0.2s"}});We(ie,"mouseenter",()=>{ie.style.background="#f5f7fa"}),We(ie,"mouseleave",()=>{ie.style.background="#ffffff"}),We(ie,"click",()=>a(ce));const x=ge("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"}}),H=ge("div",{text:ce.description.title,style:{fontWeight:"500",color:"#303133",fontSize:"14px",flex:"1",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}});x.appendChild(H);const V=ge("span",{text:Fc(ce.source),style:{padding:"2px 8px",background:"#e4e7ed",color:"#606266",borderRadius:"4px",fontSize:"12px",marginLeft:"8px",flexShrink:"0"}});x.appendChild(V),ie.appendChild(x);const q=ge("div",{text:ce.description.autoDescribe.slice(0,80)+(ce.description.autoDescribe.length>80?"...":""),style:{fontSize:"12px",color:"#909399",marginBottom:"6px",lineHeight:"1.5"}});ie.appendChild(q);const $=ge("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:"12px",color:"#a8abb2"}});$.appendChild(ge("span",{text:`${(Q=(L=ce.screenshots)==null?void 0:L.length)!=null?Q:0} 张截图`})),$.appendChild(ge("span",{text:new Date(ce.createdAt).toLocaleString("zh-CN")})),ie.appendChild($),W.appendChild(ie)}),h.appendChild(W)}c.appendChild(h),l.appendChild(c);const ee=ge("div",{style:{display:"flex",justifyContent:"flex-end",gap:"12px"}}),Z=ge("button",{text:"取消",style:{padding:"8px 20px",background:"white",color:"#606266",border:"1px solid #dcdfe6",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(Z,"click",()=>s==null?void 0:s()),ee.appendChild(Z);const z=ge("button",{text:"提交",style:{padding:"8px 20px",background:"#667eea",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"14px"}});We(z,"click",()=>{if(!n.title.trim()){p.style.borderColor="#f56c6c",p.focus(),alert("请输入问题标题");return}p.style.borderColor="#dcdfe6";const W=n.where.trim()||n.action.trim()||n.result.trim(),ce=n.screenshots.length>0;if(!W&&!ce){alert("请至少填写「我在 / 执行 / 结果」中的一项,或添加页面截图");return}A(Yn(St({},n),{description:uN(n),bugs:o})),t.clear()}),ee.appendChild(z),l.appendChild(ee),r.appendChild(l)}const hN={1:"待处理",3:"处理中",4:"已解决"},fN={critical:"严重",major:"主要",minor:"次要",suggestion:"建议"},dN={http_error:"接口错误",xhr_error:"接口错误",js_error:"Vue错误",vue_error:"Vue错误",promise_error:"Vue错误",console_error:"Vue错误",resource_error:"资源错误",manual:"手动上报",performance:"性能异常"};function pN(r){return je(this,null,function*(){try{const e=yield fetch(r);return e.ok?yield e.arrayBuffer():null}catch(e){return console.warn("[issue-export-docx] 获取图片失败:",r,e),null}})}function SA(r,e){return new tr({children:[new Ir({text:r,bold:e==null?void 0:e.bold,size:void 0})],spacing:{after:80}})}function ei(r,e){return new tr({children:[new Ir({text:`${r}:`}),new Ir({text:e?String(e):"—"})],spacing:{after:80}})}function Tc(r){return new tr({children:[new Ir({text:r,bold:!0,size:28,color:"000000"})],spacing:{before:240,after:120}})}function HB(r){return new tr({children:[new Ir({text:r,bold:!0,size:24,color:"000000"})],spacing:{before:160,after:80}})}function gN(r){var t;const e=(t=r.split(".").pop())==null?void 0:t.toLowerCase();return e==="jpg"||e==="jpeg"?"jpg":"png"}function mN(){return new tr({children:[new Ir({break:1})]})}function vN(r){const e=["零","一","二","三","四","五","六","七","八","九"];if(r<10)return e[r];if(r<20)return r===10?"十":`十${e[r%10]}`;const t=Math.floor(r/10),n=r%10;return`${e[t]}十${n?e[n]:""}`}function MB(r){return new jb({sections:[{properties:{page:{margin:{top:1134,right:1134,bottom:1134,left:1134}}},children:r}]})}function Lg(r,e){return je(this,null,function*(){if(!r||r.length===0)return[SA("暂无截图")];const t=[];for(const n of r){const i=e(n.url),A=yield pN(i);A?t.push(new tr({children:[new Bb({data:A,transformation:{width:520,height:360},type:gN(n.url)})],spacing:{after:120},alignment:hi.CENTER})):t.push(SA(`截图加载失败:${n.url}`))}return t})}function wN(r,e){return je(this,null,function*(){if(!r||r.length===0)return[SA("无自动捕获的问题")];const t=[SA(`自动捕获的问题:${r.length} 个`)];for(let n=0;n<r.length;n++){const i=r[n],A=i.autoDescribe||i.manualDescribe||"未命名";t.push(SA(`${n+1}. ${A}`));const a=[];if(i.source&&a.push(dN[i.source]||i.source),i.createdAt&&a.push(i.createdAt),a.length&&t.push(SA(a.join(" · "))),i.manualDescribe&&i.manualDescribe!==i.autoDescribe&&t.push(SA(i.manualDescribe)),i.errorJson){const o=typeof i.errorJson=="object"?JSON.stringify(i.errorJson,null,2):String(i.errorJson);t.push(new tr({children:[new Ir({text:o,font:"Courier New"})],spacing:{after:80}}))}const s=yield Lg(i.screenshots,e);t.push(...s)}return t})}function jB(r,e){return je(this,null,function*(){const t=[];return t.push(Tc("一、问题提交内容")),t.push(ei("标题",r.title)),t.push(ei("遇到的问题",r.description)),t.push(SA("页面截图:")),t.push(...yield Lg(r.screenshots,e)),t.push(Tc("二、基本信息")),t.push(ei("状态",hN[r.status||""]||r.status)),t.push(ei("问题 ID",r.displayId)),t.push(ei("创建时间",r.createdAt)),t.push(ei("严重程度",fN[r.severity||""]||r.severity)),t.push(ei("报告者",r.reporter)),t.push(ei("指派给",r.assignee)),r.env&&(t.push(ei("页面 URL",r.env.url)),t.push(ei("浏览器",r.env.browser)),t.push(ei("分辨率",r.env.resolution)),t.push(ei("操作系统",r.env.os)),t.push(ei("子系统",r.env.subsystem))),t.push(Tc("三、描述与截图")),t.push(HB("1. 问题描述")),t.push(SA(r.description||"—")),t.push(HB("2. 截图")),t.push(...yield Lg(r.screenshots,e)),t.push(Tc("四、自动捕获问题详情")),t.push(...yield wN(r.issues,e)),t})}function yN(r,e=t=>t){return je(this,null,function*(){const t=yield jB(r,e);return mc.toBlob(MB(t))})}function bN(r,e=t=>t){return je(this,null,function*(){const t=[];for(let n=0;n<r.length;n++)n>0&&t.push(mN()),t.push(new tr({children:[new Ir({text:`问题${vN(n+1)}:${r[n].title||""}`,bold:!0,size:32,color:"000000"})],spacing:{after:160}})),t.push(...yield jB(r[n],e));return mc.toBlob(MB(t))})}function KB(r,e){const t=URL.createObjectURL(r),n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)}class Qg{constructor(e={}){Ee(this,"container",null);Ee(this,"overlay",null);Ee(this,"dialog",null);Ee(this,"content",null);Ee(this,"isVisible",!1);Ee(this,"currentMode","list");Ee(this,"cleanupFns",[]);Ee(this,"config");Ee(this,"store");Ee(this,"exportService");Ee(this,"selectedBugs",new Set);Ee(this,"currentDetailBug",null);Ee(this,"aiInboxConfig",null);Ee(this,"fileNameResolver");Ee(this,"server");Ee(this,"issuesApi");Ee(this,"backendApi");Ee(this,"backendApiHeaders");Ee(this,"projectKey");Ee(this,"projectName");Ee(this,"version");Ee(this,"userInfo");Ee(this,"onRefreshIssueList");Ee(this,"annotationCanvas",null);Ee(this,"createFormData",{title:"",severity:void 0,description:"",screenshots:[],tags:[]});Ee(this,"preflightFormData",{title:"",who:"",where:"",action:"",result:"",screenshots:[]});Ee(this,"issueListItems",[]);Ee(this,"issueListLoading",!1);Ee(this,"detailReturnMode","list");Ee(this,"dataChangeHandler",null);this.config=St({mode:"list"},e),this.currentMode=this.config.mode||"list",this.store=this.config.store||new Vu,this.aiInboxConfig=this.config.aiInbox||null,this.fileNameResolver=this.config.fileNameResolver,this.server=this.config.server,this.backendApiHeaders=this.config.backendApiHeaders;const t=(this.server||"").replace(/\/$/,"");this.backendApi=`${t}/issues-api/bug-report`,this.issuesApi=`${t}/issues-api/issues`,this.projectKey=this.config.projectKey,this.projectName=this.config.projectName,this.version=this.config.version,this.userInfo=this.config.userInfo,this.onRefreshIssueList=this.config.onRefreshIssueList,this.exportService=new Zo,this.exportService.register(new _d),this.exportService.register(new Qd),this.exportService.register(new Nd),this.exportService.register(new ig),this.exportService.register(new Tg)}setAiInboxConfig(e){this.aiInboxConfig=e}getBackendHeaders(){var n;const e=St({},this.backendApiHeaders),t=(n=this.userInfo)==null?void 0:n.accessToken;return t&&(e["x-gisq-token"]=`Bearer ${t}`),e}mount(){if(this.container)return;this.overlay=ge("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=ge("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=ge("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=ge("h3",{class:"bug-dialog-title",text:"Bug 管理",style:{margin:"0",fontSize:"18px",fontWeight:"600",color:"#303133"}});e.appendChild(t);const n=ge("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=ge("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 i=We(this.overlay,"click",()=>this.close()),A=We(n,"click",()=>this.close()),a=s=>{s.key==="Escape"&&this.close()};document.addEventListener("keydown",a),this.dataChangeHandler=s=>{this.currentMode==="list"&&this.isVisible&&this.content&&this.updateContent()},window.addEventListener("issues-reporter:count-changed",this.dataChangeHandler),this.cleanupFns.push(i,A,()=>{document.removeEventListener("keydown",a),this.dataChangeHandler&&(window.removeEventListener("issues-reporter: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()}openIssueList(e,t=!1){this.issueListItems=e,this.issueListLoading=t,this.open("issueList")}openCreatePreflight(){this.open("createPreflight")}resetPreflightForm(){this.preflightFormData={title:"",who:"",where:"",action:"",result:"",screenshots:[]}}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;RB(this.content),this.currentMode==="detail"?(this.content.style.overflow="hidden",this.content.style.display="flex",this.content.style.flexDirection="column"):(this.content.style.overflow="auto",this.content.style.display="block");const e=(t=this.dialog)==null?void 0:t.querySelector(".bug-dialog-title");if(e){const n={list:`问题清单 (${this.store.getAll().length})`,create:"创建问题",export:"导出问题",detail:"问题详情",issueList:"我的问题清单",createPreflight:"创建问题"};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;case"issueList":this.renderIssueListContent();break;case"createPreflight":this.renderCreatePreflightContent();break}}renderListContent(){var e;this.content&&$Q(this.content,{store:this.store,selectedBugs:this.selectedBugs,onViewDetail:t=>{this.currentDetailBug=t,this.detailReturnMode="list",this.switchMode("detail")},onExportBugs:t=>{zQ(t,this.exportService,this.fileNameResolver)},onSendAi:t=>{this.aiInboxConfig&&YQ(t,this.aiInboxConfig,this.exportService,this.fileNameResolver)},onSubmitToBackend:t=>{var n,i;(i=(n=this.config).onSubmitToBackend)==null||i.call(n,t)},isAiEnabled:XQ(this.aiInboxConfig),isBackendEnabled:(e=this.config.isBackendEnabled)!=null?e:!0,refresh:()=>this.updateContent()})}renderCreateContent(){this.content&&GQ(this.content,{formData:this.createFormData,setAnnotationCanvas:e=>{this.annotationCanvas=e},onCreate:e=>{var t,n;(n=(t=this.config).onCreate)==null||n.call(t,e),this.createFormData={title:"",severity:void 0,description:"",screenshots:[],tags:[]}},onCancel:()=>{this.switchMode("createPreflight")}})}renderExportContent(){this.content&&WQ(this.content,{store:this.store,exportService:this.exportService,selectedBugs:this.selectedBugs})}renderDetailContent(){if(!this.content)return;const e=this.currentDetailBug;if(!e){this.content.innerHTML='<p style="text-align: center; color: #909399;">未选择 Bug</p>';return}qQ(this.content,{bug:e,onBack:()=>this.switchMode(this.detailReturnMode)})}renderIssueListContent(){this.content&&rN(this.content,{items:this.issueListItems,loading:this.issueListLoading,onViewDetail:e=>{this.openIssueEdit(e)},onExportIssue:e=>{this.exportIssueAsWord(e)},onBatchExport:e=>{this.batchExportIssuesAsWord(e)},onRefresh:()=>{this.refreshIssueList()}})}refreshIssueList(){return je(this,null,function*(){if(this.onRefreshIssueList){this.issueListLoading=!0,this.updateContent();try{this.issueListItems=yield this.onRefreshIssueList()}catch(e){console.error("[BugDialog] 刷新问题清单失败:",e)}finally{this.issueListLoading=!1,this.updateContent()}}})}resolveBackendUrl(e){if(!e||!this.issuesApi||/^https?:\/\//i.test(e)||e.startsWith("data:"))return e;if(e.startsWith("/"))try{return`${new URL(this.issuesApi).origin}${e}`}catch(t){return e}return e}fetchIssueDetail(e){return je(this,null,function*(){var t;if(!this.issuesApi)return console.warn("[BugDialog] 未配置 server,无法获取问题详情"),null;try{const n=yield fetch(`${this.issuesApi}/${e}`,{method:"GET",headers:St({},this.getBackendHeaders())});if(!n.ok)return console.error("[BugDialog] 获取问题详情失败:",n.status,n.statusText),null;const i=yield n.json();return(t=i==null?void 0:i.data)!=null?t:i}catch(n){return console.error("[BugDialog] 获取问题详情异常:",n),null}})}issueToBugReport(e,t=!1){var u,h;const i={http_error:"http-error",js_error:"js-error",vue_error:"vue-error",promise_error:"promise-error",xhr_error:"xhr-error",console_error:"console-error",resource_error:"resource-error",manual:"manual"}[e.source]||"manual",A=e.env||{},a={system:A.subsystem||"",browser:A.browser||"",url:A.url||"",route:A.route||"",screenWidth:A.screenWidth||0,screenHeight:A.screenHeight||0,os:A.os||"",timestamp:A.capturedAt||e.createdAt},s=e.httpInfo,o=s?{requestUrl:s.requestUrl||"",requestMethod:s.requestMethod||"",requestHeaders:s.requestHeaders||{},requestParams:s.requestParams,responseStatus:(u=s.responseStatus)!=null?u:0,responseCode:s.responseCode||"",responseBody:s.responseBody,errorMessage:s.errorMessage||"",duration:(h=s.duration)!=null?h:0}:void 0,l=(e.screenshots||[]).map(f=>({url:this.resolveBackendUrl(f.url),annotations:[]}));return Yn(St({id:t?e.id:e.displayId},t?{}:{issueId:e.id}),{source:i,severity:e.severity,createdAt:e.createdAt,environment:a,httpInfo:o,errorDetails:e.errorDetails||e.errorJson,description:{title:e.title||"",autoDescribe:e.autoDescribe||"",manualDescribe:e.manualDescribe||""},metadata:{tags:e.tags||[],reporterName:e.reporterName||e.reporter||"",extra:e.metadataExtra||{}},screenshots:l})}openIssueEdit(e){return je(this,null,function*(){const t=yield this.fetchIssueDetail(e.id);if(!t){alert("获取问题详情失败");return}const n=St({},t);Array.isArray(n.screenshots)&&(n.screenshots=n.screenshots.map(u=>Yn(St({},u),{url:this.resolveBackendUrl(u.url)})));const i=ge("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"}}),A=ge("div",{style:{background:"white",borderRadius:"12px",padding:"24px",width:"960px",maxWidth:"95vw",maxHeight:"90vh",overflow:"hidden",display:"flex",flexDirection:"column",boxShadow:"0 20px 60px rgba(0, 0, 0, 0.3)"}}),a=ge("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px",flexShrink:"0"}}),s=ge("h3",{text:"问题详情",style:{margin:"0",fontSize:"18px",fontWeight:"600",color:"#303133"}}),o=ge("button",{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"}});We(o,"click",()=>i.remove()),a.appendChild(s),a.appendChild(o),A.appendChild(a);const l=ge("div",{style:{flex:"1",minHeight:"0",overflow:"auto"}});A.appendChild(l),oN(l,{issue:n,onBack:()=>i.remove(),onSave:(u,h)=>je(this,null,function*(){yield this.saveIssue(n,h)})}),i.appendChild(A),We(i,"click",u=>{u.target===i&&i.remove()}),document.body.appendChild(i)})}saveIssue(e,t){return je(this,null,function*(){var A,a;if(!this.backendApi)throw new Error("未配置 server");if(!this.projectKey)throw new Error("未配置 projectKey");const n=this.issueToBugReport(e,!0);if(n.description.title=t.title,n.severity=t.severity||e.severity,n.description.manualDescribe=t.manualDescribe||"",n.description.autoDescribe=t.autoDescribe||e.autoDescribe||"",!((A=this.userInfo)!=null&&A.user))throw console.warn("[BugDialog] 未获取到用户信息,无法保存 Issue(请检查 token 配置或登录状态)"),new Error("未获取到用户信息,无法保存");const i=yield fetch(this.backendApi,{method:"POST",headers:St({"Content-Type":"application/json"},this.getBackendHeaders()),body:JSON.stringify({projectKey:this.projectKey,projectName:this.projectName,version:this.version,bugs:[n]})});if(!i.ok){const s=yield i.text().catch(()=>"");throw new Error(`保存失败 (${i.status}): ${s}`)}try{const s=yield i.json();if(((a=s==null?void 0:s.errors)==null?void 0:a.length)>0){const o=s.errors.map(l=>l.message).join("; ");throw new Error(`保存失败:${o}`)}}catch(s){if(s instanceof Error&&s.message.startsWith("保存失败"))throw s}})}exportIssueAsWord(e){return je(this,null,function*(){const t=yield this.fetchIssueDetail(e.id);if(!t){alert("获取问题详情失败,无法导出");return}if(Array.isArray(t.screenshots)&&(t.screenshots=t.screenshots.map(n=>Yn(St({},n),{url:this.resolveBackendUrl(n.url)}))),Array.isArray(t.issues))for(const n of t.issues)Array.isArray(n.screenshots)&&(n.screenshots=n.screenshots.map(i=>Yn(St({},i),{url:this.resolveBackendUrl(i.url)})));try{const n=yield yN(t);KB(n,`问题${t.displayId||e.id}.docx`)}catch(n){console.error("[BugDialog] 导出 Word 失败:",n),alert("导出失败,请重试")}})}batchExportIssuesAsWord(e){return je(this,null,function*(){if(!e.length)return;const t=[];for(const n of e){const i=yield this.fetchIssueDetail(n.id);if(i){if(Array.isArray(i.screenshots)&&(i.screenshots=i.screenshots.map(A=>Yn(St({},A),{url:this.resolveBackendUrl(A.url)}))),Array.isArray(i.issues))for(const A of i.issues)Array.isArray(A.screenshots)&&(A.screenshots=A.screenshots.map(a=>Yn(St({},a),{url:this.resolveBackendUrl(a.url)})));t.push(i)}}if(t.length===0){alert("获取问题详情失败,无法导出");return}try{const n=yield bN(t),i=t.length===1?`问题${t[0].displayId||t[0].id}.docx`:`问题批量导出${t.length}条.docx`;KB(n,i)}catch(n){console.error("[BugDialog] 导出 Word 失败:",n),alert("导出失败,请重试")}})}renderCreatePreflightContent(){this.content&&cN(this.content,{store:this.store,formData:this.preflightFormData,userInfo:this.userInfo,onSubmit:e=>{var t,n;(n=(t=this.config).onCreatePreflightSubmit)==null||n.call(t,e)},onViewDetail:e=>{this.currentDetailBug=e,this.detailReturnMode="createPreflight",this.switchMode("detail")},onCancel:()=>this.close()})}}class _c{constructor(e){Ee(this,"config");Ee(this,"interceptor");Ee(this,"classifier");Ee(this,"dedupManager");Ee(this,"screenshotService");Ee(this,"bugBuilder");Ee(this,"store");Ee(this,"exportService");Ee(this,"isInitialized",!1);Ee(this,"toolbar",null);Ee(this,"dialog",null);Ee(this,"annotationCanvas",null);Ee(this,"eventListeners",new Map);Ee(this,"deferredAiInbox",null);Ee(this,"fileNameResolver");Ee(this,"pluginConfigLoaded",!1);const t=e.delay,n=e.screenshot;this.config=St({enabled:!0,autoScreenshot:!0,screenshotOptions:{quality:.6,maxSize:300*1024,delay:500,showFlash:!1},ignore:{},pluginUrl:"",backendApiHeaders:{},onBugCaptured:()=>{},aiInbox:void 0,jsError:!0,vueError:!0,vue:void 0,promiseError:!1,xhrError:!0,consoleError:!1,resourceError:!1},e),console.log("[IssuesReporter] 初始化配置:",this.config),this.fileNameResolver=e.fileNameResolver,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 Bd(this.config),this.classifier=new Rt(this.config.ignore),this.dedupManager=new Gw({windowMs:3e4}),this.screenshotService=new f1,this.bugBuilder=new Id(e.projectKey),this.store=new Vu,this.exportService=new Zo,this.exportService.register(new _d),this.exportService.register(new Qd),this.exportService.register(new Nd),this.exportService.register(new ig),this.exportService.register(new Tg)}getBackendApi(){return`${(this.config.server||"").replace(/\/$/,"")}/issues-api/bug-report`}getIssuesApi(){return`${(this.config.server||"").replace(/\/$/,"")}/issues-api/issues`}getLoginApi(){return`${(this.config.server||"").replace(/\/$/,"")}/issues-api/auth/loginByToken`}getLoginByUserApi(){return`${(this.config.server||"").replace(/\/$/,"")}/issues-api/auth/loginByUser`}getAuthHeaders(){var n;const e=St({},this.config.backendApiHeaders),t=(n=this.config.userInfo)==null?void 0:n.accessToken;return t&&(e["x-gisq-token"]=`Bearer ${t}`),e}loginByToken(e){return je(this,null,function*(){var t;try{const n=yield fetch(this.getLoginApi(),{method:"POST",headers:St({"Content-Type":"application/json"},this.config.backendApiHeaders),body:JSON.stringify({token:e,sourceProject:this.config.projectKey})});if(!n.ok){console.warn("[IssuesReporter] loginByToken 失败:",n.status,n.statusText);return}const i=yield n.json(),A=i==null?void 0:i.data;if(!((t=A==null?void 0:A.user)!=null&&t.id)){console.warn("[IssuesReporter] loginByToken 返回数据不完整,缺少 user.id");return}return A}catch(n){console.warn("[IssuesReporter] loginByToken 异常:",n);return}})}loginByUser(e){return je(this,null,function*(){var t;try{const n=yield fetch(this.getLoginByUserApi(),{method:"POST",headers:St({"Content-Type":"application/json"},this.config.backendApiHeaders),body:JSON.stringify({userName:e.userName,userNickname:e.userNickname,sourceProject:this.config.projectKey})});if(!n.ok){console.warn("[IssuesReporter] loginByUser 失败:",n.status,n.statusText);return}const i=yield n.json(),A=i==null?void 0:i.data;if(!((t=A==null?void 0:A.user)!=null&&t.id)){console.warn("[IssuesReporter] loginByUser 返回数据不完整,缺少 user.id");return}return A}catch(n){console.warn("[IssuesReporter] loginByUser 异常:",n);return}})}setAxiosInstance(e){e&&this.interceptor.setAxiosInstance(e)}setAxiosInstances(e){Array.isArray(e)&&this.interceptor.setAxiosInstances(e)}setVueInstance(e){e&&(this.config.vue=e,this.config.vueError=!0,this.interceptor.setVueInstance(e))}setAiInboxConfig(e){this.deferredAiInbox=e,this.config.aiInbox=e,this.dialog&&this.dialog.setAiInboxConfig(e)}autoDiscoverAxios(){}loadRemotePluginConfig(){return je(this,null,function*(){var e;if(!this.pluginConfigLoaded){this.pluginConfigLoaded=!0;try{let t;if(this.config.loadPluginConfig)t=yield this.config.loadPluginConfig();else{const A=`${(this.config.server||"").replace(/\/$/,"")}/issues-api/system-settings/plugin`,a=yield fetch(A,{headers:this.getAuthHeaders()});if(!a.ok)throw new Error(`HTTP ${a.status}`);const s=yield a.json();t=(e=s.data)!=null?e:s}const n=["jsError","vueError","promiseError","xhrError","consoleError","resourceError"];for(const i of n)t[i]!==void 0&&(this.config[i]=t[i])}catch(t){console.warn("[IssuesReporter] 加载插件配置失败,使用构造时配置:",t)}}})}init(){this.isInitialized||!this.config.enabled||(this.isInitialized=!0,this.interceptor.start(e=>{this.handleCaptureError(e)}))}mount(){return je(this,null,function*(){var t;this.config.token?this.config.userInfo=yield this.loginByToken(this.config.token):this.config.externalUserInfo&&(this.config.userInfo=yield this.loginByUser(this.config.externalUserInfo)),yield this.loadRemotePluginConfig(),this.init(),this.toolbar&&this.unmount();let e=this.deferredAiInbox||this.config.aiInbox;if(this.config.loadAiInboxConfig)try{e=yield this.config.loadAiInboxConfig()}catch(n){console.warn("[IssuesReporter] 异步加载 AI Inbox 配置失败,回退已注入/静态配置:",n)}this.dialog=new Qg({store:this.store,aiInbox:e,fileNameResolver:this.fileNameResolver,isBackendEnabled:(t=this.config.isBackendEnabled)!=null?t:!0,server:this.config.server,backendApiHeaders:this.config.backendApiHeaders,projectKey:this.config.projectKey,projectName:this.config.projectName,version:this.config.version,userInfo:this.config.userInfo,onRefreshIssueList:()=>je(this,null,function*(){return this.fetchUserIssues()}),onClose:()=>{},onCreate:n=>{this.createBug(n).then(()=>{this.dialog&&this.dialog.switchMode("list")})},onDelete:n=>{n.forEach(i=>this.store.delete(i)),this.updateBugCount()},onSubmitToBackend:n=>je(this,null,function*(){const i=yield this.submitBugsToBackend(n);alert(i?`成功提交 ${n.length} 个 Bug 到后台`:"提交到后台失败,请检查 server 配置和网络连接")}),onCreatePreflightSubmit:n=>je(this,null,function*(){var A,a;if(yield this.submitBugsToBackend(n.bugs,{title:n.title,description:n.description,screenshots:n.screenshots})){alert("问题提交成功"),(A=this.dialog)==null||A.resetPreflightForm();const s=yield this.fetchUserIssues();(a=this.dialog)==null||a.openIssueList(s)}else alert("提交到后台失败,请检查 server 配置和网络连接")})}),this.dialog.mount(),this.toolbar=new _g({bugCount:this.store.getAll().length,onCreate:()=>this.handleCreateBug(),onViewList:()=>this.handleViewList()}),this.toolbar.mount()})}unmount(){this.toolbar&&(this.toolbar.unmount(),this.toolbar=null),this.dialog&&(this.dialog.unmount(),this.dialog=null)}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(i=>i(t))}destroy(){this.unmount(),this.isInitialized&&(this.interceptor.stop(),this.dedupManager.reset(),this.isInitialized=!1)}updateBugCount(){var t;const e=this.store.getAll().length;(t=this.toolbar)==null||t.setBugCount(e),window.dispatchEvent(new CustomEvent("issues-reporter:count-changed",{detail:e}))}handleCaptureError(e){return je(this,null,function*(){if($w(e))return;const t=e.classified;if(!t){console.warn("[IssuesReporter] 错误缺少分类信息,跳过");return}if(t.isIgnored)return;const n=t.businessCode?Number(t.businessCode):e.status;if(!this.dedupManager.shouldCapture(e.source,e.url,n,e.errorMessage,e.stack||""))return;let i;if(this.config.autoScreenshot)try{i=yield this.screenshotService.capture(Yn(St({},this.config.screenshotOptions),{delay:this.config.screenshotOptions.delay,showFlash:!1}))}catch(s){console.warn("[IssuesReporter] 截图失败:",s)}const A=this.toScreenshot(i),a=this.buildBugReport(e,A);this.store.add(a),this.updateBugCount(),this.config.onBugCaptured&&this.config.onBugCaptured(a),this.emit("bugCaptured",a)})}toScreenshot(e){if(e)return{url:e.url,annotations:[]}}buildBugReport(e,t){switch(e.source){case"http-error":return this.bugBuilder.buildFromHttpError(e,t);case"js-error":return this.bugBuilder.buildFromJsError(e,t);case"vue-error":return this.bugBuilder.buildFromVueError(e,t);case"promise-error":return this.bugBuilder.buildFromPromiseError(e,t);case"xhr-error":return this.bugBuilder.buildFromXhrError(e,t);case"console-error":return this.bugBuilder.buildFromConsoleError(e,t);case"resource-error":return this.bugBuilder.buildFromResourceError(e,t);default:return this.bugBuilder.buildFromHttpError(e,t)}}createBug(e){return je(this,null,function*(){let t=e.screenshots;if(!t||t.length===0){const i=yield this.screenshotService.capture({delay:0,showFlash:!1});i&&(t=[{url:i.url,annotations:[]}])}const n=this.bugBuilder.buildFromManual({title:e.title,severity:e.severity,description: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})}captureScreenshot(e){return je(this,null,function*(){return this.screenshotService.capture(e)})}getAllBugs(){return this.store.getAll()}exportBugs(e,t){return je(this,null,function*(){const n=this.exportService.getExporter(e);if(!n)throw new Error(`不支持的导出格式: ${e}`);const i=t||this.store.getAll();return n.export(i)})}getExportService(){return this.exportService}submitBugsToBackend(e,t){return je(this,null,function*(){var A;const n=this.getBackendApi(),i=e||this.store.getAll();try{if(!((A=this.config.userInfo)!=null&&A.user))return console.warn("[IssuesReporter] 未获取到用户信息,无法提交到后台(请检查 token 配置或登录状态)"),!1;const a=i.map(o=>{const l=St({},o);return l.issueId?l.id=l.issueId:delete l.id,delete l.issueId,delete l.severity,l}),s=yield fetch(n,{method:"POST",headers:St({"Content-Type":"application/json"},this.getAuthHeaders()),body:JSON.stringify(Yn(St({projectKey:this.config.projectKey,projectName:this.config.projectName,version:this.config.version},t?{title:t.title,description:t.description,screenshots:t.screenshots}:{}),{bugs:a}))});return s.ok?!0:(console.error("[IssuesReporter] 提交到后台失败:",s.status,s.statusText),!1)}catch(a){return console.error("[IssuesReporter] 提交到后台异常:",a),!1}})}getStore(){return this.store}fetchUserIssues(){return je(this,null,function*(){var n,i,A,a;const e=this.getIssuesApi(),t=(i=(n=this.config.userInfo)==null?void 0:n.user)==null?void 0:i.id;if(!t)return console.warn("[IssuesReporter] 未配置 token 或登录失败,无法按用户查询问题清单"),[];try{const s=new URL(e,window.location.href);s.searchParams.set("reporterId",t),s.searchParams.set("page","1"),s.searchParams.set("pageSize","20");const o=yield fetch(s.toString(),{method:"GET",headers:St({},this.getAuthHeaders())});if(!o.ok)return console.error("[IssuesReporter] 获取问题清单失败:",o.status,o.statusText),[];const l=yield o.json();return Array.isArray((A=l==null?void 0:l.data)==null?void 0:A.items)?(a=l==null?void 0:l.data)==null?void 0:a.items:Array.isArray(l)?l:[]}catch(s){return console.error("[IssuesReporter] 获取问题清单异常:",s),[]}})}handleCreateBug(){return je(this,null,function*(){var e;(e=this.dialog)==null||e.openCreatePreflight()})}handleViewList(){return je(this,null,function*(){var t;const e=yield this.fetchUserIssues();(t=this.dialog)==null||t.openIssueList(e)})}handleScreenshot(){this.annotationCanvas=new kB({onComplete:(e,t)=>{},onCancel:()=>{}}),this.screenshotService.capture({delay:0,showFlash:!1}).then(e=>{var t;e?(t=this.annotationCanvas)==null||t.open(e.url):console.warn("[IssuesReporter] 截图返回空,无法打开标注画布")}).catch(e=>{console.error("[IssuesReporter] 截图失败:",e)})}handleExport(){var e;(e=this.dialog)==null||e.open("export")}handleSettings(){}}class Ng{constructor(e){Ee(this,"config");Ee(this,"interceptor");Ee(this,"classifier");Ee(this,"bugBuilder");Ee(this,"store");Ee(this,"exportService");Ee(this,"isInitialized",!1);Ee(this,"messageHandlers",new Map);Ee(this,"pendingRequests",new Map);Ee(this,"toolbar",null);Ee(this,"dialog",null);this.config=St({enabled:!0,autoScreenshot:!1,screenshotOptions:{quality:.6,maxSize:300*1024,delay:500,showFlash:!1},ignore:{},pluginUrl:"",onBugCaptured:()=>{},aiInbox:void 0,jsError:!0,vueError:!1,vue:void 0,promiseError:!0,xhrError:!0,consoleError:!1,resourceError:!0},e),this.interceptor=new Bd(this.config),this.classifier=new Rt(this.config.ignore),this.bugBuilder=new Id(e.projectKey),this.store=new Vu,this.exportService=new Zo}init(){this.isInitialized||!this.config.enabled||(this.isInitialized=!0,this.interceptor.start(e=>{this.handleCaptureError(e)}),window.addEventListener("message",this.handleMessage.bind(this)),this.mountUi(),this.postMessage("init",{ready:!0}))}mountUi(){var e;this.dialog=new Qg({store:this.store,isBackendEnabled:(e=this.config.isBackendEnabled)!=null?e:!0,server:this.config.server,backendApiHeaders:this.config.backendApiHeaders,projectKey:this.config.projectKey,projectName:this.config.projectName,version:this.config.version,userInfo:this.config.userInfo,onClose:()=>{},onCreate:t=>{this.createBug(t).then(()=>{this.dialog&&this.dialog.switchMode("list")})},onDelete:t=>{t.forEach(n=>this.store.delete(n)),this.updateBugCount()}}),this.dialog.mount(),this.toolbar=new _g({bugCount:this.store.getAll().length,onCreate:()=>{this.dialog&&this.dialog.switchMode("create")},onViewList:()=>{this.dialog&&this.dialog.switchMode("list")}}),this.toolbar.mount()}updateBugCount(){this.toolbar&&this.toolbar.setBugCount(this.store.getAll().length)}handleBugCapturedFromHost(e){e&&(this.store.getAll().some(t=>t.id===e.id)||(this.store.add(e),this.updateBugCount(),this.config.onBugCaptured&&this.config.onBugCaptured(e)))}destroy(){this.isInitialized&&(this.interceptor.stop(),window.removeEventListener("message",this.handleMessage.bind(this)),this.toolbar&&(this.toolbar.unmount(),this.toolbar=null),this.dialog&&(this.dialog.unmount(),this.dialog=null),this.isInitialized=!1)}handleMessage(e){var n;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"bugCaptured":this.handleBugCapturedFromHost((n=t.payload)==null?void 0:n.bug);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))}}handleScreenshotRequest(e){return je(this,null,function*(){try{const t=yield 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)})}})}handleExportRequest(e){return je(this,null,function*(){try{const{format:t,bugIds:n}=e.payload||{},i=n?this.store.getAll().filter(s=>n.includes(s.id)):this.store.getAll(),A=this.exportService.getExporter(t);if(!A)throw new Error(`不支持的导出格式: ${t}`);const a=yield A.export(i);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 i=this.config.pluginUrl||"*";n.postMessage({type:e,payload:t},i)}}requestScreenshotFromHost(){return new Promise((e,t)=>{const n=`screenshot-${Date.now()}`,i=setTimeout(()=>{this.pendingRequests.delete(n),t(new Error("截图请求超时"))},1e4);this.pendingRequests.set(n,{resolve:A=>{clearTimeout(i),A&&A.success?e(A.url):t(new Error((A==null?void 0:A.error)||"截图失败"))},reject:A=>{clearTimeout(i),t(A)}}),this.postMessage("captureScreenshot",{id:n})})}handleCaptureError(e){return je(this,null,function*(){if($w(e))return;const t=e.classified;if(!t||t.isIgnored)return;let n;if(this.config.autoScreenshot)try{n=yield this.requestScreenshotFromHost()}catch(a){console.warn("[IssuesReporter] 从宿主获取截图失败:",a)}const i=n?{url:n,annotations:[]}:void 0,A=this.buildBugReport(e,i);this.store.add(A),this.updateBugCount(),this.postMessage("bugCaptured",{bug:A}),this.config.onBugCaptured&&this.config.onBugCaptured(A)})}buildBugReport(e,t){switch(e.source){case"http-error":return this.bugBuilder.buildFromHttpError(e,t);case"js-error":return this.bugBuilder.buildFromJsError(e,t);case"vue-error":return this.bugBuilder.buildFromVueError(e,t);case"promise-error":return this.bugBuilder.buildFromPromiseError(e,t);case"xhr-error":return this.bugBuilder.buildFromXhrError(e,t);case"console-error":return this.bugBuilder.buildFromConsoleError(e,t);case"resource-error":return this.bugBuilder.buildFromResourceError(e,t);default:return this.bugBuilder.buildFromHttpError(e,t)}}createBug(e){return je(this,null,function*(){let t;try{t=yield this.requestScreenshotFromHost()}catch(i){console.warn("[IssuesReporter] 从宿主获取截图失败:",i)}const n=this.bugBuilder.buildFromManual({title:e.title,severity:e.severity,description:e.description,tags:e.tags},e.screenshots||(t?[{url:t,annotations:[]}]:[]));return this.store.add(n),this.updateBugCount(),this.postMessage("bugCaptured",{bug:n}),this.config.onBugCaptured&&this.config.onBugCaptured(n),n})}getAllBugs(){return this.store.getAll()}exportBugs(e,t){return je(this,null,function*(){const n=this.exportService.getExporter(e);if(!n)throw new Error(`不支持的导出格式: ${e}`);const i=t||this.store.getAll();return n.export(i)})}getExportService(){return this.exportService}getStore(){return this.store}}function BN(r,e){switch(r){case"npm":return new _c(e);case"iframe":return new Ng(e);default:throw new Error(`不支持的适配器类型: ${r}`)}}function xN(r){return window.self!==window.top?new Ng(r):new _c(r)}const Lc={projectKey:"reg3-web",enabled:!0,autoScreenshot:!0,screenshotOptions:{delay:1e3,quality:.6,maxSize:300*1024,showFlash:!1,scrollContainerSelectors:[".page-content"]},ignore:{businessCodeField:["resultCode","code","status"],successCodes:["A000","0","200"],urls:["/api/activiti","/api/designer",".png",".jpg",".jpeg",".gif",".svg",".css",".js",".woff",".woff2",".ttf"],statusCodes:[],businessCodes:["B001"]},pluginUrl:"",onBugCaptured:r=>{}};function CN(r){var e;return Yn(St(St({},Lc),r),{fileNameResolver:(e=r==null?void 0:r.fileNameResolver)!=null?e:"BDCDJ3",ignore:St(St({},Lc.ignore),r==null?void 0:r.ignore),screenshotOptions:St(St({},Lc.screenshotOptions),r==null?void 0:r.screenshotOptions)})}const EN={projectKey:"BDC",enabled:!0,autoScreenshot:!0,screenshotOptions:{delay:800,quality:.6,maxSize:300*1024,showFlash:!1},ignore:{urls:["证照刷新","轮询"],successCodes:["0","200","A000"]}},SN={projectKey:"BDCDJ3",enabled:!0,autoScreenshot:!0,screenshotOptions:{delay:500,quality:.6,maxSize:300*1024,showFlash:!1},ignore:{urls:["规则检查","轮询"],successCodes:["0","200","A000"]}},FN={projectKey:"BDCYC2",enabled:!0,autoScreenshot:!0,screenshotOptions:{delay:1e3,quality:.6,maxSize:300*1024,showFlash:!1},ignore:{urls:["流程状态","轮询"],successCodes:["0","200","A000"]}},IN={projectKey:"BDCQD",enabled:!0,autoScreenshot:!0,screenshotOptions:{delay:600,quality:.6,maxSize:300*1024,showFlash:!1},ignore:{urls:["地图瓦片","tile"],successCodes:["0","200","A000"]}},UN={projectKey:"PUB3",enabled:!0,autoScreenshot:!0,screenshotOptions:{delay:600,quality:.6,maxSize:300*1024,showFlash:!1},ignore:{urls:["心跳","heartbeat"],successCodes:["0","200","A000"]}};/*!
373
+ * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
374
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
375
+ * Released under MIT License
376
+ *//*! *****************************************************************************
377
+ Copyright (c) Microsoft Corporation.
378
+
379
+ Permission to use, copy, modify, and/or distribute this software for any
380
+ purpose with or without fee is hereby granted.
381
+
382
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
383
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
384
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
385
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
386
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
387
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
388
+ PERFORMANCE OF THIS SOFTWARE.
389
+ ***************************************************************************** */var Rg=function(r,e){return Rg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Rg(r,e)};function Ri(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Rg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Og=function(){return Og=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var A in t)Object.prototype.hasOwnProperty.call(t,A)&&(e[A]=t[A])}return e},Og.apply(this,arguments)};function Tn(r,e,t,n){function i(A){return A instanceof t?A:new t(function(a){a(A)})}return new(t||(t=Promise))(function(A,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?A(u.value):i(u.value).then(s,o)}l((n=n.apply(r,[])).next())})}function En(r,e){var t={label:0,sent:function(){if(A[0]&1)throw A[1];return A[1]},trys:[],ops:[]},n,i,A,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,i&&(A=l[0]&2?i.return:l[0]?i.throw||((A=i.return)&&A.call(i),0):i.next)&&!(A=A.call(i,l[1])).done)return A;switch(i=0,A&&(l=[l[0]&2,A.value]),l[0]){case 0:case 1:A=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(A=t.trys,!(A=A.length>0&&A[A.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!A||l[1]>A[0]&&l[1]<A[3])){t.label=l[1];break}if(l[0]===6&&t.label<A[1]){t.label=A[1],A=l;break}if(A&&t.label<A[2]){t.label=A[2],t.ops.push(l);break}A[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(u){l=[6,u],i=0}finally{n=A=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function Qc(r,e,t){if(arguments.length===2)for(var n=0,i=e.length,A;n<i;n++)(A||!(n in e))&&(A||(A=Array.prototype.slice.call(e,0,n)),A[n]=e[n]);return r.concat(A||e)}for(var FA=function(){function r(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return r.prototype.add=function(e,t,n,i){return new r(this.left+e,this.top+t,this.width+n,this.height+i)},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(i){return i.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}(),Nc=function(r,e){return FA.fromClientRect(r,e.getBoundingClientRect())},TN=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)),i=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new FA(0,0,n,i)},Rc=function(r){for(var e=[],t=0,n=r.length;t<n;){var i=r.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var A=r.charCodeAt(t++);(A&64512)===56320?e.push(((i&1023)<<10)+(A&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},Qr=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=[],i=-1,A="";++i<t;){var a=r[i];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(i+1===t||n.length>16384)&&(A+=String.fromCharCode.apply(String,n),n.length=0)}return A},VB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Oc=0;Oc<VB.length;Oc++)_N[VB.charCodeAt(Oc)]=Oc;for(var zB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ml=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),kc=0;kc<zB.length;kc++)ml[zB.charCodeAt(kc)]=kc;for(var LN=function(r){var e=r.length*.75,t=r.length,n,i=0,A,a,s,o;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)A=ml[r.charCodeAt(n)],a=ml[r.charCodeAt(n+1)],s=ml[r.charCodeAt(n+2)],o=ml[r.charCodeAt(n+3)],u[i++]=A<<2|a>>4,u[i++]=(a&15)<<4|s>>2,u[i++]=(s&3)<<6|o&63;return l},QN=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},NN=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},Za=5,kg=11,Pg=2,RN=kg-Za,$B=65536>>Za,ON=1<<Za,Dg=ON-1,kN=1024>>Za,PN=$B+kN,DN=PN,HN=32,MN=DN+HN,jN=65536>>kg,KN=1<<RN,VN=KN-1,GB=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},zN=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},$N=function(r,e){var t=LN(r),n=Array.isArray(t)?NN(t):new Uint32Array(t),i=Array.isArray(t)?QN(t):new Uint16Array(t),A=24,a=GB(i,A/2,n[4]/2),s=n[5]===2?GB(i,(A+n[4])/2):zN(n,Math.ceil((A+n[4])/4));return new GN(n[0],n[1],n[2],n[3],a,s)},GN=function(){function r(e,t,n,i,A,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=A,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>>Za],t=(t<<Pg)+(e&Dg),this.data[t];if(e<=65535)return t=this.index[$B+(e-55296>>Za)],t=(t<<Pg)+(e&Dg),this.data[t];if(e<this.highStart)return t=MN-jN+(e>>kg),t=this.index[t],t+=e>>Za&VN,t=this.index[t],t=(t<<Pg)+(e&Dg),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),WB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",WN=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Pc=0;Pc<WB.length;Pc++)WN[WB.charCodeAt(Pc)]=Pc;var qN="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==",qB=50,XN=1,XB=2,YB=3,YN=4,JN=5,JB=7,ZB=8,e2=9,Aa=10,Hg=11,t2=12,Mg=13,ZN=14,vl=15,jg=16,Dc=17,wl=18,eR=19,r2=20,Kg=21,yl=22,Vg=23,Ys=24,ti=25,bl=26,Bl=27,Js=28,tR=29,es=30,rR=31,Hc=32,Mc=33,zg=34,$g=35,Gg=36,xl=37,Wg=38,jc=39,Kc=40,qg=41,n2=42,nR=43,iR=[9001,65288],i2="!",Qt="×",Vc="÷",Xg=$N(qN),IA=[es,Gg],Yg=[XN,XB,YB,JN],A2=[Aa,ZB],a2=[Bl,bl],AR=Yg.concat(A2),s2=[Wg,jc,Kc,zg,$g],aR=[vl,Mg],sR=function(r,e){e===void 0&&(e="strict");var t=[],n=[],i=[];return r.forEach(function(A,a){var s=Xg.get(A);if(s>qB?(i.push(!0),s-=qB):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(A)!==-1)return n.push(a),t.push(jg);if(s===YN||s===Hg){if(a===0)return n.push(a),t.push(es);var o=t[a-1];return AR.indexOf(o)===-1?(n.push(n[a-1]),t.push(o)):(n.push(a),t.push(es))}if(n.push(a),s===rR)return t.push(e==="strict"?Kg:xl);if(s===n2||s===tR)return t.push(es);if(s===nR)return A>=131072&&A<=196605||A>=196608&&A<=262141?t.push(xl):t.push(es);t.push(s)}),[n,t,i]},Jg=function(r,e,t,n){var i=n[t];if(Array.isArray(r)?r.indexOf(i)!==-1:r===i)for(var A=t;A<=n.length;){A++;var a=n[A];if(a===e)return!0;if(a!==Aa)break}if(i===Aa)for(var A=t;A>0;){A--;var s=n[A];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!==Aa)break}if(s!==Aa)break}return!1},o2=function(r,e){for(var t=r;t>=0;){var n=e[t];if(n===Aa)t--;else return n}return 0},oR=function(r,e,t,n,i){if(t[n]===0)return Qt;var A=n-1;if(Array.isArray(i)&&i[A]===!0)return Qt;var a=A-1,s=A+1,o=e[A],l=a>=0?e[a]:0,u=e[s];if(o===XB&&u===YB)return Qt;if(Yg.indexOf(o)!==-1)return i2;if(Yg.indexOf(u)!==-1||A2.indexOf(u)!==-1)return Qt;if(o2(A,e)===ZB)return Vc;if(Xg.get(r[A])===Hg||(o===Hc||o===Mc)&&Xg.get(r[s])===Hg||o===JB||u===JB||o===e2||[Aa,Mg,vl].indexOf(o)===-1&&u===e2||[Dc,wl,eR,Ys,Js].indexOf(u)!==-1||o2(A,e)===yl||Jg(Vg,yl,A,e)||Jg([Dc,wl],Kg,A,e)||Jg(t2,t2,A,e))return Qt;if(o===Aa)return Vc;if(o===Vg||u===Vg)return Qt;if(u===jg||o===jg)return Vc;if([Mg,vl,Kg].indexOf(u)!==-1||o===ZN||l===Gg&&aR.indexOf(o)!==-1||o===Js&&u===Gg||u===r2||IA.indexOf(u)!==-1&&o===ti||IA.indexOf(o)!==-1&&u===ti||o===Bl&&[xl,Hc,Mc].indexOf(u)!==-1||[xl,Hc,Mc].indexOf(o)!==-1&&u===bl||IA.indexOf(o)!==-1&&a2.indexOf(u)!==-1||a2.indexOf(o)!==-1&&IA.indexOf(u)!==-1||[Bl,bl].indexOf(o)!==-1&&(u===ti||[yl,vl].indexOf(u)!==-1&&e[s+1]===ti)||[yl,vl].indexOf(o)!==-1&&u===ti||o===ti&&[ti,Js,Ys].indexOf(u)!==-1)return Qt;if([ti,Js,Ys,Dc,wl].indexOf(u)!==-1)for(var h=A;h>=0;){var f=e[h];if(f===ti)return Qt;if([Js,Ys].indexOf(f)!==-1)h--;else break}if([Bl,bl].indexOf(u)!==-1)for(var h=[Dc,wl].indexOf(o)!==-1?a:A;h>=0;){var f=e[h];if(f===ti)return Qt;if([Js,Ys].indexOf(f)!==-1)h--;else break}if(Wg===o&&[Wg,jc,zg,$g].indexOf(u)!==-1||[jc,zg].indexOf(o)!==-1&&[jc,Kc].indexOf(u)!==-1||[Kc,$g].indexOf(o)!==-1&&u===Kc||s2.indexOf(o)!==-1&&[r2,bl].indexOf(u)!==-1||s2.indexOf(u)!==-1&&o===Bl||IA.indexOf(o)!==-1&&IA.indexOf(u)!==-1||o===Ys&&IA.indexOf(u)!==-1||IA.concat(ti).indexOf(o)!==-1&&u===yl&&iR.indexOf(r[s])===-1||IA.concat(ti).indexOf(u)!==-1&&o===wl)return Qt;if(o===qg&&u===qg){for(var c=t[A],g=1;c>0&&(c--,e[c]===qg);)g++;if(g%2!==0)return Qt}return o===Hc&&u===Mc?Qt:Vc},lR=function(r,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=sR(r,e.lineBreak),n=t[0],i=t[1],A=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(s){return[ti,es,n2].indexOf(s)!==-1?xl:s}));var a=e.wordBreak==="keep-all"?A.map(function(s,o){return s&&r[o]>=19968&&r[o]<=40959}):void 0;return[n,i,a]},uR=function(){function r(e,t,n,i){this.codePoints=e,this.required=t===i2,this.start=n,this.end=i}return r.prototype.slice=function(){return Qr.apply(void 0,this.codePoints.slice(this.start,this.end))},r}(),cR=function(r,e){var t=Rc(r),n=lR(t,e),i=n[0],A=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=Qt;l<s&&(u=oR(t,A,i,++l,a))===Qt;);if(u!==Qt||l===s){var h=new uR(t,u,o,l);return o=l,{value:h,done:!1}}return{done:!0,value:null}}}},hR=1,fR=2,Cl=4,l2=8,zc=10,u2=47,El=92,dR=9,pR=32,$c=34,Sl=61,gR=35,mR=36,vR=37,Gc=39,Wc=40,Fl=41,wR=95,jn=45,yR=33,bR=60,BR=62,xR=64,CR=91,ER=93,SR=61,FR=123,qc=63,IR=125,c2=124,UR=126,TR=128,h2=65533,Zg=42,ts=43,_R=44,LR=58,QR=59,Il=46,NR=0,RR=8,OR=11,kR=14,PR=31,DR=127,aA=-1,f2=48,d2=97,p2=101,HR=102,MR=117,jR=122,g2=65,m2=69,v2=70,KR=85,VR=90,Sn=function(r){return r>=f2&&r<=57},zR=function(r){return r>=55296&&r<=57343},Zs=function(r){return Sn(r)||r>=g2&&r<=v2||r>=d2&&r<=HR},$R=function(r){return r>=d2&&r<=jR},GR=function(r){return r>=g2&&r<=VR},WR=function(r){return $R(r)||GR(r)},qR=function(r){return r>=TR},Xc=function(r){return r===zc||r===dR||r===pR},Yc=function(r){return WR(r)||qR(r)||r===wR},w2=function(r){return Yc(r)||Sn(r)||r===jn},XR=function(r){return r>=NR&&r<=RR||r===OR||r>=kR&&r<=PR||r===DR},aa=function(r,e){return r!==El?!1:e!==zc},Jc=function(r,e,t){return r===jn?Yc(e)||aa(e,t):Yc(r)?!0:!!(r===El&&aa(r,e))},em=function(r,e,t){return r===ts||r===jn?Sn(e)?!0:e===Il&&Sn(t):Sn(r===Il?e:r)},YR=function(r){var e=0,t=1;(r[e]===ts||r[e]===jn)&&(r[e]===jn&&(t=-1),e++);for(var n=[];Sn(r[e]);)n.push(r[e++]);var i=n.length?parseInt(Qr.apply(void 0,n),10):0;r[e]===Il&&e++;for(var A=[];Sn(r[e]);)A.push(r[e++]);var a=A.length,s=a?parseInt(Qr.apply(void 0,A),10):0;(r[e]===m2||r[e]===p2)&&e++;var o=1;(r[e]===ts||r[e]===jn)&&(r[e]===jn&&(o=-1),e++);for(var l=[];Sn(r[e]);)l.push(r[e++]);var u=l.length?parseInt(Qr.apply(void 0,l),10):0;return t*(i+s*Math.pow(10,-a))*Math.pow(10,o*u)},JR={type:2},ZR={type:3},eO={type:4},tO={type:13},rO={type:8},nO={type:21},iO={type:9},AO={type:10},aO={type:11},sO={type:12},oO={type:14},Zc={type:23},lO={type:1},uO={type:25},cO={type:24},hO={type:26},fO={type:27},dO={type:28},pO={type:29},gO={type:31},tm={type:32},y2=function(){function r(){this._value=[]}return r.prototype.write=function(e){this._value=this._value.concat(Rc(e))},r.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==tm;)e.push(t),t=this.consumeToken();return e},r.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case $c:return this.consumeStringToken($c);case gR:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(w2(t)||aa(n,i)){var A=Jc(t,n,i)?fR:hR,a=this.consumeName();return{type:5,value:a,flags:A}}break;case mR:if(this.peekCodePoint(0)===Sl)return this.consumeCodePoint(),tO;break;case Gc:return this.consumeStringToken(Gc);case Wc:return JR;case Fl:return ZR;case Zg:if(this.peekCodePoint(0)===Sl)return this.consumeCodePoint(),oO;break;case ts:if(em(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case _R:return eO;case jn:var s=e,o=this.peekCodePoint(0),l=this.peekCodePoint(1);if(em(s,o,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Jc(s,o,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(o===jn&&l===BR)return this.consumeCodePoint(),this.consumeCodePoint(),cO;break;case Il:if(em(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case u2:if(this.peekCodePoint(0)===Zg)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Zg&&(u=this.consumeCodePoint(),u===u2))return this.consumeToken();if(u===aA)return this.consumeToken()}break;case LR:return hO;case QR:return fO;case bR:if(this.peekCodePoint(0)===yR&&this.peekCodePoint(1)===jn&&this.peekCodePoint(2)===jn)return this.consumeCodePoint(),this.consumeCodePoint(),uO;break;case xR:var h=this.peekCodePoint(0),f=this.peekCodePoint(1),c=this.peekCodePoint(2);if(Jc(h,f,c)){var a=this.consumeName();return{type:7,value:a}}break;case CR:return dO;case El:if(aa(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case ER:return pO;case SR:if(this.peekCodePoint(0)===Sl)return this.consumeCodePoint(),rO;break;case FR:return aO;case IR:return sO;case MR:case KR:var g=this.peekCodePoint(0),m=this.peekCodePoint(1);return g===ts&&(Zs(m)||m===qc)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case c2:if(this.peekCodePoint(0)===Sl)return this.consumeCodePoint(),iO;if(this.peekCodePoint(0)===c2)return this.consumeCodePoint(),nO;break;case UR:if(this.peekCodePoint(0)===Sl)return this.consumeCodePoint(),AO;break;case aA:return tm}return Xc(e)?(this.consumeWhiteSpace(),gO):Sn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Yc(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Qr(e)}},r.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e=="undefined"?-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();Zs(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===qc&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(Qr.apply(void 0,e.map(function(o){return o===qc?f2:o})),16),A=parseInt(Qr.apply(void 0,e.map(function(o){return o===qc?v2:o})),16);return{type:30,start:i,end:A}}var a=parseInt(Qr.apply(void 0,e),16);if(this.peekCodePoint(0)===jn&&Zs(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];Zs(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var A=parseInt(Qr.apply(void 0,s),16);return{type:30,start:a,end:A}}else return{type:30,start:a,end:a}},r.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===Wc?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Wc?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},r.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===aA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Gc||t===$c){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===aA||this.peekCodePoint(0)===Fl)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Zc)}for(;;){var i=this.consumeCodePoint();if(i===aA||i===Fl)return{type:22,value:Qr.apply(void 0,e)};if(Xc(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===aA||this.peekCodePoint(0)===Fl?(this.consumeCodePoint(),{type:22,value:Qr.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Zc);if(i===$c||i===Gc||i===Wc||XR(i))return this.consumeBadUrlRemnants(),Zc;if(i===El)if(aa(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Zc;else e.push(i)}},r.prototype.consumeWhiteSpace=function(){for(;Xc(this.peekCodePoint(0));)this.consumeCodePoint()},r.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Fl||e===aA)return;aa(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},r.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var i=Math.min(t,e);n+=Qr.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),n},r.prototype.consumeStringToken=function(e){var t="",n=0;do{var i=this._value[n];if(i===aA||i===void 0||i===e)return t+=this.consumeStringSlice(n),{type:0,value:t};if(i===zc)return this._value.splice(0,n),lO;if(i===El){var A=this._value[n+1];A!==aA&&A!==void 0&&(A===zc?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):aa(i,A)&&(t+=this.consumeStringSlice(n),t+=Qr(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},r.prototype.consumeNumber=function(){var e=[],t=Cl,n=this.peekCodePoint(0);for((n===ts||n===jn)&&e.push(this.consumeCodePoint());Sn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===Il&&Sn(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=l2;Sn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var A=this.peekCodePoint(2);if((n===m2||n===p2)&&((i===ts||i===jn)&&Sn(A)||Sn(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=l2;Sn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[YR(e),t]},r.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),A=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Jc(i,A,a)){var s=this.consumeName();return{type:15,number:t,flags:n,unit:s}}return i===vR?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},r.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Zs(e)){for(var t=Qr(e);Zs(this.peekCodePoint(0))&&t.length<6;)t+=Qr(this.consumeCodePoint());Xc(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return n===0||zR(n)||n>1114111?h2:n}return e===aA?h2:e},r.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(w2(t))e+=Qr(t);else if(aa(t,this.peekCodePoint(0)))e+=Qr(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},r}(),b2=function(){function r(e){this._tokens=e}return r.create=function(e){var t=new y2;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||vO(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=="undefined"?tm:e},r.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},r}(),Ul=function(r){return r.type===15},eo=function(r){return r.type===17},Zt=function(r){return r.type===20},mO=function(r){return r.type===0},rm=function(r,e){return Zt(r)&&r.value===e},B2=function(r){return r.type!==31},to=function(r){return r.type!==31&&r.type!==4},sA=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},vO=function(r,e){return e===11&&r.type===12||e===28&&r.type===29?!0:e===2&&r.type===3},sa=function(r){return r.type===17||r.type===15},Mr=function(r){return r.type===16||sa(r)},x2=function(r){return r.length>1?[r[0],r[1]]:[r[0]]},ln={type:17,number:0,flags:Cl},nm={type:16,number:50,flags:Cl},oa={type:16,number:100,flags:Cl},Tl=function(r,e,t){var n=r[0],i=r[1];return[Ar(n,e),Ar(typeof i!="undefined"?i:n,t)]},Ar=function(r,e){if(r.type===16)return r.number/100*e;if(Ul(r))switch(r.unit){case"rem":case"em":return 16*r.number;case"px":default:return r.number}return r.number},C2="deg",E2="grad",S2="rad",F2="turn",eh={name:"angle",parse:function(r,e){if(e.type===15)switch(e.unit){case C2:return Math.PI*e.number/180;case E2:return Math.PI/200*e.number;case S2:return e.number;case F2:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},I2=function(r){return r.type===15&&(r.unit===C2||r.unit===E2||r.unit===S2||r.unit===F2)},U2=function(r){var e=r.filter(Zt).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ln,ln];case"to top":case"bottom":return di(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ln,oa];case"to right":case"left":return di(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[oa,oa];case"to bottom":case"top":return di(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[oa,ln];case"to left":case"right":return di(270)}return 0},di=function(r){return Math.PI*r/180},la={name:"color",parse:function(r,e){if(e.type===18){var t=wO[e.name];if(typeof t=="undefined")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),i=e.value.substring(1,2),A=e.value.substring(2,3);return ca(parseInt(n+n,16),parseInt(i+i,16),parseInt(A+A,16),1)}if(e.value.length===4){var n=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3),a=e.value.substring(3,4);return ca(parseInt(n+n,16),parseInt(i+i,16),parseInt(A+A,16),parseInt(a+a,16)/255)}if(e.value.length===6){var n=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6);return ca(parseInt(n,16),parseInt(i,16),parseInt(A,16),1)}if(e.value.length===8){var n=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6),a=e.value.substring(6,8);return ca(parseInt(n,16),parseInt(i,16),parseInt(A,16),parseInt(a,16)/255)}}if(e.type===20){var s=UA[e.value.toUpperCase()];if(typeof s!="undefined")return s}return UA.TRANSPARENT}},ua=function(r){return(255&r)===0},Jr=function(r){var e=255&r,t=255&r>>8,n=255&r>>16,i=255&r>>24;return e<255?"rgba("+i+","+n+","+t+","+e/255+")":"rgb("+i+","+n+","+t+")"},ca=function(r,e,t,n){return(r<<24|e<<16|t<<8|Math.round(n*255)<<0)>>>0},T2=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},_2=function(r,e){var t=e.filter(to);if(t.length===3){var n=t.map(T2),i=n[0],A=n[1],a=n[2];return ca(i,A,a,1)}if(t.length===4){var s=t.map(T2),i=s[0],A=s[1],a=s[2],o=s[3];return ca(i,A,a,o)}return 0};function im(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 L2=function(r,e){var t=e.filter(to),n=t[0],i=t[1],A=t[2],a=t[3],s=(n.type===17?di(n.number):eh.parse(r,n))/(Math.PI*2),o=Mr(i)?i.number/100:0,l=Mr(A)?A.number/100:0,u=typeof a!="undefined"&&Mr(a)?Ar(a,1):1;if(o===0)return ca(l*255,l*255,l*255,1);var h=l<=.5?l*(o+1):l+o-l*o,f=l*2-h,c=im(f,h,s+1/3),g=im(f,h,s),m=im(f,h,s-1/3);return ca(c*255,g*255,m*255,u)},wO={hsl:L2,hsla:L2,rgb:_2,rgba:_2},_l=function(r,e){return la.parse(r,b2.create(e).parseComponentValue())},UA={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},yO={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Zt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},bO={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},th=function(r,e){var t=la.parse(r,e[0]),n=e[1];return n&&Mr(n)?{color:t,stop:n}:{color:t,stop:null}},Q2=function(r,e){var t=r[0],n=r[r.length-1];t.stop===null&&(t.stop=ln),n.stop===null&&(n.stop=oa);for(var i=[],A=0,a=0;a<r.length;a++){var s=r[a].stop;if(s!==null){var o=Ar(s,e);o>A?i.push(o):i.push(A),A=o}else i.push(null)}for(var l=null,a=0;a<i.length;a++){var u=i[a];if(u===null)l===null&&(l=a);else if(l!==null){for(var h=a-l,f=i[l-1],c=(u-f)/(h+1),g=1;g<=h;g++)i[l+g-1]=c*g;l=null}}return r.map(function(m,y){var p=m.color;return{color:p,stop:Math.max(Math.min(1,i[y]/e),0)}})},BO=function(r,e,t){var n=e/2,i=t/2,A=Ar(r[0],e)-n,a=i-Ar(r[1],t);return(Math.atan2(a,A)+Math.PI*2)%(Math.PI*2)},xO=function(r,e,t){var n=typeof r=="number"?r:BO(r,e,t),i=Math.abs(e*Math.sin(n))+Math.abs(t*Math.cos(n)),A=e/2,a=t/2,s=i/2,o=Math.sin(n-Math.PI/2)*s,l=Math.cos(n-Math.PI/2)*s;return[i,A-l,A+l,a-o,a+o]},Oi=function(r,e){return Math.sqrt(r*r+e*e)},N2=function(r,e,t,n,i){var A=[[0,0],[0,e],[r,0],[r,e]];return A.reduce(function(a,s){var o=s[0],l=s[1],u=Oi(t-o,n-l);return(i?u<a.optimumDistance:u>a.optimumDistance)?{optimumCorner:s,optimumDistance:u}:a},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},CO=function(r,e,t,n,i){var A=0,a=0;switch(r.size){case 0:r.shape===0?A=a=Math.min(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(A=Math.min(Math.abs(e),Math.abs(e-n)),a=Math.min(Math.abs(t),Math.abs(t-i)));break;case 2:if(r.shape===0)A=a=Math.min(Oi(e,t),Oi(e,t-i),Oi(e-n,t),Oi(e-n,t-i));else if(r.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-i))/Math.min(Math.abs(e),Math.abs(e-n)),o=N2(n,i,e,t,!0),l=o[0],u=o[1];A=Oi(l-e,(u-t)/s),a=s*A}break;case 1:r.shape===0?A=a=Math.max(Math.abs(e),Math.abs(e-n),Math.abs(t),Math.abs(t-i)):r.shape===1&&(A=Math.max(Math.abs(e),Math.abs(e-n)),a=Math.max(Math.abs(t),Math.abs(t-i)));break;case 3:if(r.shape===0)A=a=Math.max(Oi(e,t),Oi(e,t-i),Oi(e-n,t),Oi(e-n,t-i));else if(r.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-i))/Math.max(Math.abs(e),Math.abs(e-n)),h=N2(n,i,e,t,!1),l=h[0],u=h[1];A=Oi(l-e,(u-t)/s),a=s*A}break}return Array.isArray(r.size)&&(A=Ar(r.size[0],n),a=r.size.length===2?Ar(r.size[1],i):A),[A,a]},EO=function(r,e){var t=di(180),n=[];return sA(e).forEach(function(i,A){if(A===0){var a=i[0];if(a.type===20&&a.value==="to"){t=U2(i);return}else if(I2(a)){t=eh.parse(r,a);return}}var s=th(r,i);n.push(s)}),{angle:t,stops:n,type:1}},rh=function(r,e){var t=di(180),n=[];return sA(e).forEach(function(i,A){if(A===0){var a=i[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=U2(i);return}else if(I2(a)){t=(eh.parse(r,a)+di(270))%di(360);return}}var s=th(r,i);n.push(s)}),{angle:t,stops:n,type:1}},SO=function(r,e){var t=di(180),n=[],i=1,A=0,a=3,s=[];return sA(e).forEach(function(o,l){var u=o[0];if(l===0){if(Zt(u)&&u.value==="linear"){i=1;return}else if(Zt(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var h=la.parse(r,u.values[0]);n.push({stop:ln,color:h})}else if(u.name==="to"){var h=la.parse(r,u.values[0]);n.push({stop:oa,color:h})}else if(u.name==="color-stop"){var f=u.values.filter(to);if(f.length===2){var h=la.parse(r,f[1]),c=f[0];eo(c)&&n.push({stop:{type:16,number:c.number*100,flags:c.flags},color:h})}}}}),i===1?{angle:(t+di(180))%di(360),stops:n,type:i}:{size:a,shape:A,stops:n,position:s,type:i}},R2="closest-side",O2="farthest-side",k2="closest-corner",P2="farthest-corner",D2="circle",H2="ellipse",M2="cover",j2="contain",FO=function(r,e){var t=0,n=3,i=[],A=[];return sA(e).forEach(function(a,s){var o=!0;if(s===0){var l=!1;o=a.reduce(function(h,f){if(l)if(Zt(f))switch(f.value){case"center":return A.push(nm),h;case"top":case"left":return A.push(ln),h;case"right":case"bottom":return A.push(oa),h}else(Mr(f)||sa(f))&&A.push(f);else if(Zt(f))switch(f.value){case D2:return t=0,!1;case H2:return t=1,!1;case"at":return l=!0,!1;case R2:return n=0,!1;case M2:case O2:return n=1,!1;case j2:case k2:return n=2,!1;case P2:return n=3,!1}else if(sa(f)||Mr(f))return Array.isArray(n)||(n=[]),n.push(f),!1;return h},o)}if(o){var u=th(r,a);i.push(u)}}),{size:n,shape:t,stops:i,position:A,type:2}},nh=function(r,e){var t=0,n=3,i=[],A=[];return sA(e).forEach(function(a,s){var o=!0;if(s===0?o=a.reduce(function(u,h){if(Zt(h))switch(h.value){case"center":return A.push(nm),!1;case"top":case"left":return A.push(ln),!1;case"right":case"bottom":return A.push(oa),!1}else if(Mr(h)||sa(h))return A.push(h),!1;return u},o):s===1&&(o=a.reduce(function(u,h){if(Zt(h))switch(h.value){case D2:return t=0,!1;case H2:return t=1,!1;case j2:case R2:return n=0,!1;case O2:return n=1,!1;case k2:return n=2,!1;case M2:case P2:return n=3,!1}else if(sa(h)||Mr(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return u},o)),o){var l=th(r,a);i.push(l)}}),{size:n,shape:t,stops:i,position:A,type:2}},IO=function(r){return r.type===1},UO=function(r){return r.type===2},Am={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=K2[e.name];if(typeof n=="undefined")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 TO(r){return!(r.type===20&&r.value==="none")&&(r.type!==18||!!K2[r.name])}var K2={"linear-gradient":EO,"-moz-linear-gradient":rh,"-ms-linear-gradient":rh,"-o-linear-gradient":rh,"-webkit-linear-gradient":rh,"radial-gradient":FO,"-moz-radial-gradient":nh,"-ms-radial-gradient":nh,"-o-radial-gradient":nh,"-webkit-radial-gradient":nh,"-webkit-gradient":SO},_O={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 to(n)&&TO(n)}).map(function(n){return Am.parse(r,n)})}},LO={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(r,e){return e.map(function(t){if(Zt(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},QO={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(r,e){return sA(e).map(function(t){return t.filter(Mr)}).map(x2)}},NO={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(r,e){return sA(e).map(function(t){return t.filter(Zt).map(function(n){return n.value}).join(" ")}).map(RO)}},RO=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}},ro;(function(r){r.AUTO="auto",r.CONTAIN="contain",r.COVER="cover"})(ro||(ro={}));var OO={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(r,e){return sA(e).map(function(t){return t.filter(kO)})}},kO=function(r){return Zt(r)||Mr(r)},ih=function(r){return{name:"border-"+r+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},PO=ih("top"),DO=ih("right"),HO=ih("bottom"),MO=ih("left"),Ah=function(r){return{name:"border-radius-"+r,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return x2(t.filter(Mr))}}},jO=Ah("top-left"),KO=Ah("top-right"),VO=Ah("bottom-right"),zO=Ah("bottom-left"),ah=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}}},$O=ah("top"),GO=ah("right"),WO=ah("bottom"),qO=ah("left"),sh=function(r){return{name:"border-"+r+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Ul(t)?t.number:0}}},XO=sh("top"),YO=sh("right"),JO=sh("bottom"),ZO=sh("left"),ek={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},tk={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(r,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},rk={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(r,e){return e.filter(Zt).reduce(function(t,n){return t|nk(n.value)},0)}},nk=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},ik={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}},Ak={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}},oh;(function(r){r.NORMAL="normal",r.STRICT="strict"})(oh||(oh={}));var ak={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"strict":return oh.STRICT;case"normal":default:return oh.NORMAL}}},sk={name:"line-height",initialValue:"normal",prefix:!1,type:4},V2=function(r,e){return Zt(r)&&r.value==="normal"?1.2*e:r.type===17?e*r.number:Mr(r)?Ar(r,e):e},ok={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(r,e){return e.type===20&&e.value==="none"?null:Am.parse(r,e)}},lk={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}}},am={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}}},lh=function(r){return{name:"margin-"+r,initialValue:"0",prefix:!1,type:4}},uk=lh("top"),ck=lh("right"),hk=lh("bottom"),fk=lh("left"),dk={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(r,e){return e.filter(Zt).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}})}},pk={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"}}},uh=function(r){return{name:"padding-"+r,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},gk=uh("top"),mk=uh("right"),vk=uh("bottom"),wk=uh("left"),yk={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}}},bk={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}},Bk={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&rm(e[0],"none")?[]:sA(e).map(function(t){for(var n={color:UA.TRANSPARENT,offsetX:ln,offsetY:ln,blur:ln},i=0,A=0;A<t.length;A++){var a=t[A];sa(a)?(i===0?n.offsetX=a:i===1?n.offsetY=a:n.blur=a,i++):n.color=la.parse(r,a)}return n})}},xk={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}},Ck={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=Fk[e.name];if(typeof t=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Ek=function(r){var e=r.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},Sk=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 i=e[4],A=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,i,A,a,s]:null},Fk={matrix:Ek,matrix3d:Sk},z2={type:16,number:50,flags:Cl},Ik=[z2,z2],Uk={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(r,e){var t=e.filter(Mr);return t.length!==2?Ik:[t[0],t[1]]}},Tk={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}}},Ll;(function(r){r.NORMAL="normal",r.BREAK_ALL="break-all",r.KEEP_ALL="keep-all"})(Ll||(Ll={}));for(var _k={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(r,e){switch(e){case"break-all":return Ll.BREAK_ALL;case"keep-all":return Ll.KEEP_ALL;case"normal":default:return Ll.NORMAL}}},Lk={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(r,e){if(e.type===20)return{auto:!0,order:0};if(eo(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},$2={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")}},Qk={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(r,e){return eo(e)?e.number:1}},Nk={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Rk={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(r,e){return e.filter(Zt).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})}},Ok={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(r,e){var t=[],n=[];return e.forEach(function(i){switch(i.type){case 20:case 0:t.push(i.value);break;case 17:t.push(i.number.toString());break;case 4:n.push(t.join(" ")),t.length=0;break}}),t.length&&n.push(t.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},kk={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Pk={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(r,e){if(eo(e))return e.number;if(Zt(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Dk={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.filter(Zt).map(function(t){return t.value})}},Hk={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"}}},Xr=function(r,e){return(r&e)!==0},Mk={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}},jk={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=[],i=e.filter(B2),A=0;A<i.length;A++){var a=i[A],s=i[A+1];if(a.type===20){var o=s&&eo(s)?s.number:1;n.push({counter:a.value,increment:o})}}return n}},Kk={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(r,e){if(e.length===0)return[];for(var t=[],n=e.filter(B2),i=0;i<n.length;i++){var A=n[i],a=n[i+1];if(Zt(A)&&A.value!=="none"){var s=a&&eo(a)?a.number:0;t.push({counter:A.value,reset:s})}}return t}},Vk={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(r,e){return e.filter(Ul).map(function(t){return $2.parse(r,t)})}},zk={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=[],i=e.filter(mO);if(i.length%2!==0)return null;for(var A=0;A<i.length;A+=2){var a=i[A].value,s=i[A+1].value;n.push({open:a,close:s})}return n}},G2=function(r,e,t){if(!r)return"";var n=r[Math.min(e,r.length-1)];return n?t?n.open:n.close:""},$k={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(r,e){return e.length===1&&rm(e[0],"none")?[]:sA(e).map(function(t){for(var n={color:255,offsetX:ln,offsetY:ln,blur:ln,spread:ln,inset:!1},i=0,A=0;A<t.length;A++){var a=t[A];rm(a,"inset")?n.inset=!0:sa(a)?(i===0?n.offsetX=a:i===1?n.offsetY=a:i===2?n.blur=a:n.spread=a,i++):n.color=la.parse(r,a)}return n})}},Gk={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(r,e){var t=[0,1,2],n=[];return e.filter(Zt).forEach(function(i){switch(i.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),t.forEach(function(i){n.indexOf(i)===-1&&n.push(i)}),n}},Wk={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},qk={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(r,e){return Ul(e)?e.number:0}},Xk=function(){function r(e,t){var n,i;this.animationDuration=At(e,Vk,t.animationDuration),this.backgroundClip=At(e,yO,t.backgroundClip),this.backgroundColor=At(e,bO,t.backgroundColor),this.backgroundImage=At(e,_O,t.backgroundImage),this.backgroundOrigin=At(e,LO,t.backgroundOrigin),this.backgroundPosition=At(e,QO,t.backgroundPosition),this.backgroundRepeat=At(e,NO,t.backgroundRepeat),this.backgroundSize=At(e,OO,t.backgroundSize),this.borderTopColor=At(e,PO,t.borderTopColor),this.borderRightColor=At(e,DO,t.borderRightColor),this.borderBottomColor=At(e,HO,t.borderBottomColor),this.borderLeftColor=At(e,MO,t.borderLeftColor),this.borderTopLeftRadius=At(e,jO,t.borderTopLeftRadius),this.borderTopRightRadius=At(e,KO,t.borderTopRightRadius),this.borderBottomRightRadius=At(e,VO,t.borderBottomRightRadius),this.borderBottomLeftRadius=At(e,zO,t.borderBottomLeftRadius),this.borderTopStyle=At(e,$O,t.borderTopStyle),this.borderRightStyle=At(e,GO,t.borderRightStyle),this.borderBottomStyle=At(e,WO,t.borderBottomStyle),this.borderLeftStyle=At(e,qO,t.borderLeftStyle),this.borderTopWidth=At(e,XO,t.borderTopWidth),this.borderRightWidth=At(e,YO,t.borderRightWidth),this.borderBottomWidth=At(e,JO,t.borderBottomWidth),this.borderLeftWidth=At(e,ZO,t.borderLeftWidth),this.boxShadow=At(e,$k,t.boxShadow),this.color=At(e,ek,t.color),this.direction=At(e,tk,t.direction),this.display=At(e,rk,t.display),this.float=At(e,ik,t.cssFloat),this.fontFamily=At(e,Ok,t.fontFamily),this.fontSize=At(e,kk,t.fontSize),this.fontStyle=At(e,Hk,t.fontStyle),this.fontVariant=At(e,Dk,t.fontVariant),this.fontWeight=At(e,Pk,t.fontWeight),this.letterSpacing=At(e,Ak,t.letterSpacing),this.lineBreak=At(e,ak,t.lineBreak),this.lineHeight=At(e,sk,t.lineHeight),this.listStyleImage=At(e,ok,t.listStyleImage),this.listStylePosition=At(e,lk,t.listStylePosition),this.listStyleType=At(e,am,t.listStyleType),this.marginTop=At(e,uk,t.marginTop),this.marginRight=At(e,ck,t.marginRight),this.marginBottom=At(e,hk,t.marginBottom),this.marginLeft=At(e,fk,t.marginLeft),this.opacity=At(e,Qk,t.opacity);var A=At(e,dk,t.overflow);this.overflowX=A[0],this.overflowY=A[A.length>1?1:0],this.overflowWrap=At(e,pk,t.overflowWrap),this.paddingTop=At(e,gk,t.paddingTop),this.paddingRight=At(e,mk,t.paddingRight),this.paddingBottom=At(e,vk,t.paddingBottom),this.paddingLeft=At(e,wk,t.paddingLeft),this.paintOrder=At(e,Gk,t.paintOrder),this.position=At(e,bk,t.position),this.textAlign=At(e,yk,t.textAlign),this.textDecorationColor=At(e,Nk,(n=t.textDecorationColor)!==null&&n!==void 0?n:t.color),this.textDecorationLine=At(e,Rk,(i=t.textDecorationLine)!==null&&i!==void 0?i:t.textDecoration),this.textShadow=At(e,Bk,t.textShadow),this.textTransform=At(e,xk,t.textTransform),this.transform=At(e,Ck,t.transform),this.transformOrigin=At(e,Uk,t.transformOrigin),this.visibility=At(e,Tk,t.visibility),this.webkitTextStrokeColor=At(e,Wk,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=At(e,qk,t.webkitTextStrokeWidth),this.wordBreak=At(e,_k,t.wordBreak),this.zIndex=At(e,Lk,t.zIndex)}return r.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},r.prototype.isTransparent=function(){return ua(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 Xr(this.display,4)||Xr(this.display,33554432)||Xr(this.display,268435456)||Xr(this.display,536870912)||Xr(this.display,67108864)||Xr(this.display,134217728)},r}(),Yk=function(){function r(e,t){this.content=At(e,Mk,t.content),this.quotes=At(e,zk,t.quotes)}return r}(),W2=function(){function r(e,t){this.counterIncrement=At(e,jk,t.counterIncrement),this.counterReset=At(e,Kk,t.counterReset)}return r}(),At=function(r,e,t){var n=new y2,i=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;n.write(i);var A=new b2(n.read());switch(e.type){case 2:var a=A.parseComponentValue();return e.parse(r,Zt(a)?a.value:e.initialValue);case 0:return e.parse(r,A.parseComponentValue());case 1:return e.parse(r,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(e.format){case"angle":return eh.parse(r,A.parseComponentValue());case"color":return la.parse(r,A.parseComponentValue());case"image":return Am.parse(r,A.parseComponentValue());case"length":var s=A.parseComponentValue();return sa(s)?s:ln;case"length-percentage":var o=A.parseComponentValue();return Mr(o)?o:ln;case"time":return $2.parse(r,A.parseComponentValue())}break}},Jk="data-html2canvas-debug",Zk=function(r){var e=r.getAttribute(Jk);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},sm=function(r,e){var t=Zk(r);return t===1||e===t},oA=function(){function r(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,sm(t,3))debugger;this.styles=new Xk(e,window.getComputedStyle(t,null)),bm(t)&&(this.styles.animationDuration.some(function(n){return n>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Nc(this.context,t),sm(t,4)&&(this.flags|=16)}return r}(),eP="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ql=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ch=0;ch<q2.length;ch++)Ql[q2.charCodeAt(ch)]=ch;for(var tP=function(r){var e=r.length*.75,t=r.length,n,i=0,A,a,s,o;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);var l=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<t;n+=4)A=Ql[r.charCodeAt(n)],a=Ql[r.charCodeAt(n+1)],s=Ql[r.charCodeAt(n+2)],o=Ql[r.charCodeAt(n+3)],u[i++]=A<<2|a>>4,u[i++]=(a&15)<<4|s>>2,u[i++]=(s&3)<<6|o&63;return l},rP=function(r){for(var e=r.length,t=[],n=0;n<e;n+=2)t.push(r[n+1]<<8|r[n]);return t},nP=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},rs=5,om=11,lm=2,iP=om-rs,X2=65536>>rs,AP=1<<rs,um=AP-1,aP=1024>>rs,sP=X2+aP,oP=sP,lP=32,uP=oP+lP,cP=65536>>om,hP=1<<iP,fP=hP-1,Y2=function(r,e,t){return r.slice?r.slice(e,t):new Uint16Array(Array.prototype.slice.call(r,e,t))},dP=function(r,e,t){return r.slice?r.slice(e,t):new Uint32Array(Array.prototype.slice.call(r,e,t))},pP=function(r,e){var t=tP(r),n=Array.isArray(t)?nP(t):new Uint32Array(t),i=Array.isArray(t)?rP(t):new Uint16Array(t),A=24,a=Y2(i,A/2,n[4]/2),s=n[5]===2?Y2(i,(A+n[4])/2):dP(n,Math.ceil((A+n[4])/4));return new gP(n[0],n[1],n[2],n[3],a,s)},gP=function(){function r(e,t,n,i,A,a){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=A,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>>rs],t=(t<<lm)+(e&um),this.data[t];if(e<=65535)return t=this.index[X2+(e-55296>>rs)],t=(t<<lm)+(e&um),this.data[t];if(e<this.highStart)return t=uP-cP+(e>>om),t=this.index[t],t+=e>>rs&fP,t=this.index[t],t=(t<<lm)+(e&um),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},r}(),J2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mP=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),hh=0;hh<J2.length;hh++)mP[J2.charCodeAt(hh)]=hh;var vP=1,cm=2,hm=3,Z2=4,e5=5,wP=7,t5=8,fm=9,dm=10,r5=11,n5=12,i5=13,A5=14,pm=15,yP=function(r){for(var e=[],t=0,n=r.length;t<n;){var i=r.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){var A=r.charCodeAt(t++);(A&64512)===56320?e.push(((i&1023)<<10)+(A&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},bP=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=[],i=-1,A="";++i<t;){var a=r[i];a<=65535?n.push(a):(a-=65536,n.push((a>>10)+55296,a%1024+56320)),(i+1===t||n.length>16384)&&(A+=String.fromCharCode.apply(String,n),n.length=0)}return A},BP=pP(eP),pi="×",gm="÷",xP=function(r){return BP.get(r)},CP=function(r,e,t){var n=t-2,i=e[n],A=e[t-1],a=e[t];if(A===cm&&a===hm)return pi;if(A===cm||A===hm||A===Z2||a===cm||a===hm||a===Z2)return gm;if(A===t5&&[t5,fm,r5,n5].indexOf(a)!==-1||(A===r5||A===fm)&&(a===fm||a===dm)||(A===n5||A===dm)&&a===dm||a===i5||a===e5||a===wP||A===vP)return pi;if(A===i5&&a===A5){for(;i===e5;)i=e[--n];if(i===A5)return pi}if(A===pm&&a===pm){for(var s=0;i===pm;)s++,i=e[--n];if(s%2===0)return pi}return gm},EP=function(r){var e=yP(r),t=e.length,n=0,i=0,A=e.map(xP);return{next:function(){if(n>=t)return{done:!0,value:null};for(var a=pi;n<t&&(a=CP(e,A,++n))===pi;);if(a!==pi||n===t){var s=bP.apply(null,e.slice(i,n));return i=n,{value:s,done:!1}}return{done:!0,value:null}}}},SP=function(r){for(var e=EP(r),t=[],n;!(n=e.next()).done;)n.value&&t.push(n.value.slice());return t},FP=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 i=t.getBoundingClientRect(),A=Math.round(i.height);if(r.body.removeChild(n),A===e)return!0}}return!1},IP=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,i=Rc(n.data).map(function(o){return Qr(o)}),A=0,a={},s=i.every(function(o,l){t.setStart(n,A),t.setEnd(n,A+o.length);var u=t.getBoundingClientRect();A+=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},UP=function(){return typeof new Image().crossOrigin!="undefined"},TP=function(){return typeof new XMLHttpRequest().responseType=="string"},_P=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(i){return!1}return!0},a5=function(r){return r[0]===0&&r[1]===255&&r[2]===0&&r[3]===255},LP=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 i=new Image,A=e.toDataURL();i.src=A;var a=mm(t,t,0,0,i);return n.fillStyle="red",n.fillRect(0,0,t,t),s5(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("+A+")",l.style.height=t+"px",a5(o)?s5(mm(t,t,0,0,l)):Promise.reject(!1)}).then(function(s){return n.drawImage(s,0,0),a5(n.getImageData(0,0,t,t).data)}).catch(function(){return!1})},mm=function(r,e,t,n,i){var A="http://www.w3.org/2000/svg",a=document.createElementNS(A,"svg"),s=document.createElementNS(A,"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(i),a},s5=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))})},un={get SUPPORT_RANGE_BOUNDS(){var r=FP(document);return Object.defineProperty(un,"SUPPORT_RANGE_BOUNDS",{value:r}),r},get SUPPORT_WORD_BREAKING(){var r=un.SUPPORT_RANGE_BOUNDS&&IP(document);return Object.defineProperty(un,"SUPPORT_WORD_BREAKING",{value:r}),r},get SUPPORT_SVG_DRAWING(){var r=_P(document);return Object.defineProperty(un,"SUPPORT_SVG_DRAWING",{value:r}),r},get SUPPORT_FOREIGNOBJECT_DRAWING(){var r=typeof Array.from=="function"&&typeof window.fetch=="function"?LP(document):Promise.resolve(!1);return Object.defineProperty(un,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:r}),r},get SUPPORT_CORS_IMAGES(){var r=UP();return Object.defineProperty(un,"SUPPORT_CORS_IMAGES",{value:r}),r},get SUPPORT_RESPONSE_TYPE(){var r=TP();return Object.defineProperty(un,"SUPPORT_RESPONSE_TYPE",{value:r}),r},get SUPPORT_CORS_XHR(){var r="withCredentials"in new XMLHttpRequest;return Object.defineProperty(un,"SUPPORT_CORS_XHR",{value:r}),r},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var r=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(un,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:r}),r}},Nl=function(){function r(e,t){this.text=e,this.bounds=t}return r}(),QP=function(r,e,t,n){var i=OP(e,t),A=[],a=0;return i.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(un.SUPPORT_RANGE_BOUNDS){var o=o5(n,a,s.length).getClientRects();if(o.length>1){var l=vm(s),u=0;l.forEach(function(f){A.push(new Nl(f,FA.fromDOMRectList(r,o5(n,u+a,f.length).getClientRects()))),u+=f.length})}else A.push(new Nl(s,FA.fromDOMRectList(r,o)))}else{var h=n.splitText(s.length);A.push(new Nl(s,NP(r,n))),n=h}else un.SUPPORT_RANGE_BOUNDS||(n=n.splitText(s.length));a+=s.length}),A},NP=function(r,e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var A=Nc(r,n);return n.firstChild&&i.replaceChild(n.firstChild,n),A}}return FA.EMPTY},o5=function(r,e,t){var n=r.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(r,e),i.setEnd(r,e+t),i},vm=function(r){if(un.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 SP(r)},RP=function(r,e){if(un.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 PP(r,e)},OP=function(r,e){return e.letterSpacing!==0?vm(r):RP(r,e)},kP=[32,160,4961,65792,65793,4153,4241],PP=function(r,e){for(var t=cR(r,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),n=[],i,A=function(){if(i.value){var a=i.value.slice(),s=Rc(a),o="";s.forEach(function(l){kP.indexOf(l)===-1?o+=Qr(l):(o.length&&n.push(o),n.push(Qr(l)),o="")}),o.length&&n.push(o)}};!(i=t.next()).done;)A();return n},DP=function(){function r(e,t,n){this.text=HP(t.data,n.textTransform),this.textBounds=QP(e,this.text,n,t)}return r}(),HP=function(r,e){switch(e){case 1:return r.toLowerCase();case 3:return r.replace(MP,jP);case 2:return r.toUpperCase();default:return r}},MP=/(^|\s|:|-|\(|\))([a-z])/g,jP=function(r,e,t){return r.length>0?e+t.toUpperCase():r},l5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return e}(oA),u5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return e}(oA),c5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this,A=new XMLSerializer,a=Nc(t,n);return n.setAttribute("width",a.width+"px"),n.setAttribute("height",a.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(A.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e}(oA),h5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.value=n.value,i}return e}(oA),wm=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return e}(oA),KP=[{type:15,flags:0,unit:"px",number:3}],VP=[{type:16,flags:0,number:50}],zP=function(r){return r.width>r.height?new FA(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new FA(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r},$P=function(r){var e=r.type===GP?new Array(r.value.length+1).join("•"):r.value;return e.length===0?r.placeholder||"":e},fh="checkbox",dh="radio",GP="password",f5=707406591,ym=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=$P(n),(i.type===fh||i.type===dh)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=zP(i.bounds)),i.type){case fh:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=KP;break;case dh:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=VP;break}return i}return e}(oA),d5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this,A=n.options[n.selectedIndex||0];return i.value=A&&A.text||"",i}return e}(oA),p5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.value=n.value,i}return e}(oA),g5=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=v5(t,n.contentWindow.document.documentElement);var A=n.contentWindow.document.documentElement?_l(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):UA.TRANSPARENT,a=n.contentWindow.document.body?_l(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):UA.TRANSPARENT;i.backgroundColor=ua(A)?ua(a)?i.styles.backgroundColor:a:A}}catch(s){}return i}return e}(oA),WP=["OL","UL","MENU"],ph=function(r,e,t,n){for(var i=e.firstChild,A=void 0;i;i=A)if(A=i.nextSibling,w5(i)&&i.data.trim().length>0)t.textNodes.push(new DP(r,i,t.styles));else if(no(i))if(E5(i)&&i.assignedNodes)i.assignedNodes().forEach(function(s){return ph(r,s,t,n)});else{var a=m5(r,i);a.styles.isVisible()&&(qP(i,a,n)?a.flags|=4:XP(a.styles)&&(a.flags|=2),WP.indexOf(i.tagName)!==-1&&(a.flags|=8),t.elements.push(a),i.slot,i.shadowRoot?ph(r,i.shadowRoot,a,n):!mh(i)&&!y5(i)&&!vh(i)&&ph(r,i,a,n))}},m5=function(r,e){return xm(e)?new l5(r,e):b5(e)?new u5(r,e):y5(e)?new c5(r,e):YP(e)?new h5(r,e):JP(e)?new wm(r,e):ZP(e)?new ym(r,e):vh(e)?new d5(r,e):mh(e)?new p5(r,e):x5(e)?new g5(r,e):new oA(r,e)},v5=function(r,e){var t=m5(r,e);return t.flags|=4,ph(r,e,t,t),t},qP=function(r,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Bm(r)&&t.styles.isTransparent()},XP=function(r){return r.isPositioned()||r.isFloating()},w5=function(r){return r.nodeType===Node.TEXT_NODE},no=function(r){return r.nodeType===Node.ELEMENT_NODE},bm=function(r){return no(r)&&typeof r.style!="undefined"&&!gh(r)},gh=function(r){return typeof r.className=="object"},YP=function(r){return r.tagName==="LI"},JP=function(r){return r.tagName==="OL"},ZP=function(r){return r.tagName==="INPUT"},e8=function(r){return r.tagName==="HTML"},y5=function(r){return r.tagName==="svg"},Bm=function(r){return r.tagName==="BODY"},b5=function(r){return r.tagName==="CANVAS"},B5=function(r){return r.tagName==="VIDEO"},xm=function(r){return r.tagName==="IMG"},x5=function(r){return r.tagName==="IFRAME"},C5=function(r){return r.tagName==="STYLE"},t8=function(r){return r.tagName==="SCRIPT"},mh=function(r){return r.tagName==="TEXTAREA"},vh=function(r){return r.tagName==="SELECT"},E5=function(r){return r.tagName==="SLOT"},S5=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,i=e.counterReset,A=!0;n!==null&&n.forEach(function(s){var o=t.counters[s.counter];o&&s.increment!==0&&(A=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});var a=[];return A&&i.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}(),F5={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"]},I5={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},n8={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},i8={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},io=function(r,e,t,n,i,A){return r<e||r>t?Ol(r,i,A.length>0):n.integers.reduce(function(a,s,o){for(;r>=s;)r-=s,a+=n.values[o];return a},"")+A},U5=function(r,e,t,n){var i="";do t||r--,i=n(r)+i,r/=e;while(r*e>=e);return i},Nr=function(r,e,t,n,i){var A=t-e+1;return(r<0?"-":"")+(U5(Math.abs(r),A,n,function(a){return Qr(Math.floor(a%A)+e)})+i)},ns=function(r,e,t){t===void 0&&(t=". ");var n=e.length;return U5(Math.abs(r),n,!1,function(i){return e[Math.floor(i%n)]})+t},Ao=1,ha=2,fa=4,Rl=8,TA=function(r,e,t,n,i,A){if(r<-9999||r>9999)return Ol(r,4,i.length>0);var a=Math.abs(r),s=i;if(a===0)return e[0]+s;for(var o=0;a>0&&o<=4;o++){var l=a%10;l===0&&Xr(A,Ao)&&s!==""?s=e[l]+s:l>1||l===1&&o===0||l===1&&o===1&&Xr(A,ha)||l===1&&o===1&&Xr(A,fa)&&r>100||l===1&&o>1&&Xr(A,Rl)?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},T5="十百千萬",_5="拾佰仟萬",L5="マイナス",Cm="마이너스",Ol=function(r,e,t){var n=t?". ":"",i=t?"、":"",A=t?", ":"",a=t?" ":"";switch(e){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=Nr(r,48,57,!0,n);return s.length<4?"0"+s:s;case 4:return ns(r,"〇一二三四五六七八九",i);case 6:return io(r,1,3999,F5,3,n).toLowerCase();case 7:return io(r,1,3999,F5,3,n);case 8:return Nr(r,945,969,!1,n);case 9:return Nr(r,97,122,!1,n);case 10:return Nr(r,65,90,!1,n);case 11:return Nr(r,1632,1641,!0,n);case 12:case 49:return io(r,1,9999,I5,3,n);case 35:return io(r,1,9999,I5,3,n).toLowerCase();case 13:return Nr(r,2534,2543,!0,n);case 14:case 30:return Nr(r,6112,6121,!0,n);case 15:return ns(r,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return ns(r,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return TA(r,"零一二三四五六七八九",T5,"負",i,ha|fa|Rl);case 47:return TA(r,"零壹貳參肆伍陸柒捌玖",_5,"負",i,Ao|ha|fa|Rl);case 42:return TA(r,"零一二三四五六七八九",T5,"负",i,ha|fa|Rl);case 41:return TA(r,"零壹贰叁肆伍陆柒捌玖",_5,"负",i,Ao|ha|fa|Rl);case 26:return TA(r,"〇一二三四五六七八九","十百千万",L5,i,0);case 25:return TA(r,"零壱弐参四伍六七八九","拾百千万",L5,i,Ao|ha|fa);case 31:return TA(r,"영일이삼사오육칠팔구","십백천만",Cm,A,Ao|ha|fa);case 33:return TA(r,"零一二三四五六七八九","十百千萬",Cm,A,0);case 32:return TA(r,"零壹貳參四五六七八九","拾百千",Cm,A,Ao|ha|fa);case 18:return Nr(r,2406,2415,!0,n);case 20:return io(r,1,19999,i8,3,n);case 21:return Nr(r,2790,2799,!0,n);case 22:return Nr(r,2662,2671,!0,n);case 22:return io(r,1,10999,n8,3,n);case 23:return ns(r,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ns(r,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Nr(r,3302,3311,!0,n);case 28:return ns(r,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return ns(r,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Nr(r,3792,3801,!0,n);case 37:return Nr(r,6160,6169,!0,n);case 38:return Nr(r,4160,4169,!0,n);case 39:return Nr(r,2918,2927,!0,n);case 40:return Nr(r,1776,1785,!0,n);case 43:return Nr(r,3046,3055,!0,n);case 44:return Nr(r,3174,3183,!0,n);case 45:return Nr(r,3664,3673,!0,n);case 46:return Nr(r,3872,3881,!0,n);case 3:default:return Nr(r,48,57,!0,n)}},Q5="data-html2canvas-ignore",N5=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,i=A8(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var A=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,s=i.contentWindow,o=s.document,l=o8(i).then(function(){return Tn(n,void 0,void 0,function(){var u,h;return En(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(h8),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=="undefined"?[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:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,s8(o)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(o,h)}).then(function(){return i})]:[2,i]}})})});return o.open(),o.write(u8(document.doctype)+"<html></html>"),c8(this.referenceElement.ownerDocument,A,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),l},r.prototype.createElementClone=function(e){if(sm(e,2))debugger;if(b5(e))return this.createCanvasClone(e);if(B5(e))return this.createVideoClone(e);if(C5(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return xm(t)&&(xm(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),S5(t)?this.createCustomElementClone(t):t},r.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return Em(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(A,a){return a&&typeof a.cssText=="string"?A+a.cssText:A},""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(A){if(this.context.logger.error("Unable to access cssRules property",A),A.name!=="SecurityError")throw A}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(l){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var A=e.getContext("2d"),a=i.getContext("2d");if(a)if(!this.options.allowTaint&&A)a.putImageData(A.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 i}catch(l){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},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(A){this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},r.prototype.appendChildNode=function(e,t,n){(!no(t)||!t8(t)&&!t.hasAttribute(Q5)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!no(t)||!C5(t))&&e.appendChild(this.cloneNode(t,n))},r.prototype.cloneChildNodes=function(e,t,n){for(var i=this,A=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;A;A=A.nextSibling)if(no(A)&&E5(A)&&typeof A.assignedNodes=="function"){var a=A.assignedNodes();a.length&&a.forEach(function(s){return i.appendChildNode(t,s,n)})}else this.appendChildNode(t,A,n)},r.prototype.cloneNode=function(e,t){if(w5(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&no(e)&&(bm(e)||gh(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var A=n.getComputedStyle(e),a=n.getComputedStyle(e,":before"),s=n.getComputedStyle(e,":after");this.referenceElement===e&&bm(i)&&(this.clonedReferenceElement=i),Bm(i)&&p8(i);var o=this.counters.parse(new W2(this.context,A)),l=this.resolvePseudoContent(e,i,a,kl.BEFORE);S5(e)&&(t=!0),B5(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,s,kl.AFTER);return u&&i.appendChild(u),this.counters.pop(o),(A&&(this.options.copyStyles||gh(e))&&!x5(e)||t)&&Em(A,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(mh(e)||vh(e))&&(mh(i)||vh(i))&&(i.value=e.value),i}return e.cloneNode(!1)},r.prototype.resolvePseudoContent=function(e,t,n,i){var A=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 W2(this.context,n));var o=new Yk(this.context,n),l=s.createElement("html2canvaspseudoelement");Em(n,l),o.content.forEach(function(h){if(h.type===0)l.appendChild(s.createTextNode(h.value));else if(h.type===22){var f=s.createElement("img");f.src=h.value,f.style.opacity="1",l.appendChild(f)}else if(h.type===18){if(h.name==="attr"){var c=h.values.filter(Zt);c.length&&l.appendChild(s.createTextNode(e.getAttribute(c[0].value)||""))}else if(h.name==="counter"){var g=h.values.filter(to),m=g[0],y=g[1];if(m&&Zt(m)){var p=A.counters.getCounterValue(m.value),v=y&&Zt(y)?am.parse(A.context,y.value):3;l.appendChild(s.createTextNode(Ol(p,v,!1)))}}else if(h.name==="counters"){var b=h.values.filter(to),m=b[0],I=b[1],y=b[2];if(m&&Zt(m)){var N=A.counters.getCounterValues(m.value),M=y&&Zt(y)?am.parse(A.context,y.value):3,O=I&&I.type===0?I.value:"",P=N.map(function(D){return Ol(D,M,!1)}).join(O);l.appendChild(s.createTextNode(P))}}}else if(h.type===20)switch(h.value){case"open-quote":l.appendChild(s.createTextNode(G2(o.quotes,A.quoteDepth++,!0)));break;case"close-quote":l.appendChild(s.createTextNode(G2(o.quotes,--A.quoteDepth,!1)));break;default:l.appendChild(s.createTextNode(h.value))}}),l.className=Sm+" "+Fm;var u=i===kl.BEFORE?" "+Sm:" "+Fm;return gh(t)?t.className.baseValue+=u:t.className+=u,l}}},r.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},r}(),kl;(function(r){r[r.BEFORE=0]="BEFORE",r[r.AFTER=1]="AFTER"})(kl||(kl={}));var A8=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(Q5,"true"),r.body.appendChild(t),t},a8=function(r){return new Promise(function(e){if(r.complete){e();return}if(!r.src){e();return}r.onload=e,r.onerror=e})},s8=function(r){return Promise.all([].slice.call(r.images,0).map(a8))},o8=function(r){return new Promise(function(e,t){var n=r.contentWindow;if(!n)return t("No window assigned for iframe");var i=n.document;n.onload=r.onload=function(){n.onload=r.onload=null;var A=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(A),e(r))},50)}})},l8=["all","d","content"],Em=function(r,e){for(var t=r.length-1;t>=0;t--){var n=r.item(t);l8.indexOf(n)===-1&&e.style.setProperty(n,r.getPropertyValue(n))}return e},u8=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},c8=function(r,e,t){r&&r.defaultView&&(e!==r.defaultView.pageXOffset||t!==r.defaultView.pageYOffset)&&r.defaultView.scrollTo(e,t)},h8=function(r){var e=r[0],t=r[1],n=r[2];e.scrollLeft=t,e.scrollTop=n},f8=":before",d8=":after",Sm="___html2canvas___pseudoelement_before",Fm="___html2canvas___pseudoelement_after",R5=`{
390
+ content: "" !important;
391
+ display: none !important;
392
+ }`,p8=function(r){g8(r,"."+Sm+f8+R5+`
393
+ .`+Fm+d8+R5)},g8=function(r,e){var t=r.ownerDocument;if(t){var n=t.createElement("style");n.textContent=e,r.appendChild(n)}},O5=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}(),m8=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)||(Um(e)||b8(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 Tn(this,void 0,void 0,function(){var t,n,i,A,a=this;return En(this,function(s){switch(s.label){case 0:return t=O5.isSameOrigin(e),n=!Im(e)&&this._options.useCORS===!0&&un.SUPPORT_CORS_IMAGES&&!t,i=!Im(e)&&!t&&!Um(e)&&typeof this._options.proxy=="string"&&un.SUPPORT_CORS_XHR&&!n,!t&&this._options.allowTaint===!1&&!Im(e)&&!Um(e)&&!i&&!n?[2]:(A=e,i?[4,this.proxy(A)]:[3,2]);case 1:A=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,(B8(A)||n)&&(u.crossOrigin="anonymous"),u.src=A,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]!="undefined"},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 i=e.substring(0,256);return new Promise(function(A,a){var s=un.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")A(o.response);else{var h=new FileReader;h.addEventListener("load",function(){return A(h.result)},!1),h.addEventListener("error",function(f){return a(f)},!1),h.readAsDataURL(o.response)}else a("Failed to proxy resource "+i+" 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 "+i)}}o.send()})},r}(),v8=/^data:image\/svg\+xml/i,w8=/^data:image\/.*;base64,/i,y8=/^data:image\/.*/i,b8=function(r){return un.SUPPORT_SVG_DRAWING||!x8(r)},Im=function(r){return y8.test(r)},B8=function(r){return w8.test(r)},Um=function(r){return r.substr(0,4)==="blob"},x8=function(r){return r.substr(-3).toLowerCase()==="svg"||v8.test(r)},et=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}(),ao=function(r,e,t){return new et(r.x+(e.x-r.x)*t,r.y+(e.y-r.y)*t)},wh=function(){function r(e,t,n,i){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return r.prototype.subdivide=function(e,t){var n=ao(this.start,this.startControl,e),i=ao(this.startControl,this.endControl,e),A=ao(this.endControl,this.end,e),a=ao(n,i,e),s=ao(i,A,e),o=ao(a,s,e);return t?new r(this.start,n,a,o):new r(o,s,A,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}(),gi=function(r){return r.type===1},C8=function(){function r(e){var t=e.styles,n=e.bounds,i=Tl(t.borderTopLeftRadius,n.width,n.height),A=i[0],a=i[1],s=Tl(t.borderTopRightRadius,n.width,n.height),o=s[0],l=s[1],u=Tl(t.borderBottomRightRadius,n.width,n.height),h=u[0],f=u[1],c=Tl(t.borderBottomLeftRadius,n.width,n.height),g=c[0],m=c[1],y=[];y.push((A+o)/n.width),y.push((g+h)/n.width),y.push((a+m)/n.height),y.push((l+f)/n.height);var p=Math.max.apply(Math,y);p>1&&(A/=p,a/=p,o/=p,l/=p,h/=p,f/=p,g/=p,m/=p);var v=n.width-o,b=n.height-f,I=n.width-h,N=n.height-m,M=t.borderTopWidth,O=t.borderRightWidth,P=t.borderBottomWidth,_=t.borderLeftWidth,G=Ar(t.paddingTop,e.bounds.width),D=Ar(t.paddingRight,e.bounds.width),S=Ar(t.paddingBottom,e.bounds.width),K=Ar(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=A>0||a>0?cr(n.left+_/3,n.top+M/3,A-_/3,a-M/3,zt.TOP_LEFT):new et(n.left+_/3,n.top+M/3),this.topRightBorderDoubleOuterBox=A>0||a>0?cr(n.left+v,n.top+M/3,o-O/3,l-M/3,zt.TOP_RIGHT):new et(n.left+n.width-O/3,n.top+M/3),this.bottomRightBorderDoubleOuterBox=h>0||f>0?cr(n.left+I,n.top+b,h-O/3,f-P/3,zt.BOTTOM_RIGHT):new et(n.left+n.width-O/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=g>0||m>0?cr(n.left+_/3,n.top+N,g-_/3,m-P/3,zt.BOTTOM_LEFT):new et(n.left+_/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=A>0||a>0?cr(n.left+_*2/3,n.top+M*2/3,A-_*2/3,a-M*2/3,zt.TOP_LEFT):new et(n.left+_*2/3,n.top+M*2/3),this.topRightBorderDoubleInnerBox=A>0||a>0?cr(n.left+v,n.top+M*2/3,o-O*2/3,l-M*2/3,zt.TOP_RIGHT):new et(n.left+n.width-O*2/3,n.top+M*2/3),this.bottomRightBorderDoubleInnerBox=h>0||f>0?cr(n.left+I,n.top+b,h-O*2/3,f-P*2/3,zt.BOTTOM_RIGHT):new et(n.left+n.width-O*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||m>0?cr(n.left+_*2/3,n.top+N,g-_*2/3,m-P*2/3,zt.BOTTOM_LEFT):new et(n.left+_*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=A>0||a>0?cr(n.left+_/2,n.top+M/2,A-_/2,a-M/2,zt.TOP_LEFT):new et(n.left+_/2,n.top+M/2),this.topRightBorderStroke=A>0||a>0?cr(n.left+v,n.top+M/2,o-O/2,l-M/2,zt.TOP_RIGHT):new et(n.left+n.width-O/2,n.top+M/2),this.bottomRightBorderStroke=h>0||f>0?cr(n.left+I,n.top+b,h-O/2,f-P/2,zt.BOTTOM_RIGHT):new et(n.left+n.width-O/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=g>0||m>0?cr(n.left+_/2,n.top+N,g-_/2,m-P/2,zt.BOTTOM_LEFT):new et(n.left+_/2,n.top+n.height-P/2),this.topLeftBorderBox=A>0||a>0?cr(n.left,n.top,A,a,zt.TOP_LEFT):new et(n.left,n.top),this.topRightBorderBox=o>0||l>0?cr(n.left+v,n.top,o,l,zt.TOP_RIGHT):new et(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||f>0?cr(n.left+I,n.top+b,h,f,zt.BOTTOM_RIGHT):new et(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=g>0||m>0?cr(n.left,n.top+N,g,m,zt.BOTTOM_LEFT):new et(n.left,n.top+n.height),this.topLeftPaddingBox=A>0||a>0?cr(n.left+_,n.top+M,Math.max(0,A-_),Math.max(0,a-M),zt.TOP_LEFT):new et(n.left+_,n.top+M),this.topRightPaddingBox=o>0||l>0?cr(n.left+Math.min(v,n.width-O),n.top+M,v>n.width+O?0:Math.max(0,o-O),Math.max(0,l-M),zt.TOP_RIGHT):new et(n.left+n.width-O,n.top+M),this.bottomRightPaddingBox=h>0||f>0?cr(n.left+Math.min(I,n.width-_),n.top+Math.min(b,n.height-P),Math.max(0,h-O),Math.max(0,f-P),zt.BOTTOM_RIGHT):new et(n.left+n.width-O,n.top+n.height-P),this.bottomLeftPaddingBox=g>0||m>0?cr(n.left+_,n.top+Math.min(N,n.height-P),Math.max(0,g-_),Math.max(0,m-P),zt.BOTTOM_LEFT):new et(n.left+_,n.top+n.height-P),this.topLeftContentBox=A>0||a>0?cr(n.left+_+K,n.top+M+G,Math.max(0,A-(_+K)),Math.max(0,a-(M+G)),zt.TOP_LEFT):new et(n.left+_+K,n.top+M+G),this.topRightContentBox=o>0||l>0?cr(n.left+Math.min(v,n.width+_+K),n.top+M+G,v>n.width+_+K?0:o-_+K,l-(M+G),zt.TOP_RIGHT):new et(n.left+n.width-(O+D),n.top+M+G),this.bottomRightContentBox=h>0||f>0?cr(n.left+Math.min(I,n.width-(_+K)),n.top+Math.min(b,n.height+M+G),Math.max(0,h-(O+D)),f-(P+S),zt.BOTTOM_RIGHT):new et(n.left+n.width-(O+D),n.top+n.height-(P+S)),this.bottomLeftContentBox=g>0||m>0?cr(n.left+_+K,n.top+N,Math.max(0,g-(_+K)),m-(P+S),zt.BOTTOM_LEFT):new et(n.left+_+K,n.top+n.height-(P+S))}return r}(),zt;(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"})(zt||(zt={}));var cr=function(r,e,t,n,i){var A=4*((Math.sqrt(2)-1)/3),a=t*A,s=n*A,o=r+t,l=e+n;switch(i){case zt.TOP_LEFT:return new wh(new et(r,l),new et(r,l-s),new et(o-a,e),new et(o,e));case zt.TOP_RIGHT:return new wh(new et(r,e),new et(r+a,e),new et(o,l-s),new et(o,l));case zt.BOTTOM_RIGHT:return new wh(new et(o,e),new et(o,e+s),new et(r+a,l),new et(r,l));case zt.BOTTOM_LEFT:default:return new wh(new et(o,l),new et(o-a,l),new et(r,e+s),new et(r,e))}},yh=function(r){return[r.topLeftBorderBox,r.topRightBorderBox,r.bottomRightBorderBox,r.bottomLeftBorderBox]},E8=function(r){return[r.topLeftContentBox,r.topRightContentBox,r.bottomRightContentBox,r.bottomLeftContentBox]},bh=function(r){return[r.topLeftPaddingBox,r.topRightPaddingBox,r.bottomRightPaddingBox,r.bottomLeftPaddingBox]},S8=function(){function r(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return r}(),Bh=function(){function r(e,t){this.path=e,this.target=t,this.type=1}return r}(),F8=function(){function r(e){this.opacity=e,this.type=2,this.target=6}return r}(),I8=function(r){return r.type===0},k5=function(r){return r.type===1},U8=function(r){return r.type===2},P5=function(r,e){return r.length===e.length?r.some(function(t,n){return t===e[n]}):!1},T8=function(r,e,t,n,i){return r.map(function(A,a){switch(a){case 0:return A.add(e,t);case 1:return A.add(e+n,t);case 2:return A.add(e+n,t+i);case 3:return A.add(e,t+i)}return A})},D5=function(){function r(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return r}(),H5=function(){function r(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new C8(this.container),this.container.styles.opacity<1&&this.effects.push(new F8(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,A=this.container.styles.transform;this.effects.push(new S8(n,i,A))}if(this.container.styles.overflowX!==0){var a=yh(this.curves),s=bh(this.curves);P5(a,s)?this.effects.push(new Bh(a,6)):(this.effects.push(new Bh(a,2)),this.effects.push(new Bh(s,4)))}}return r.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var A=n.effects.filter(function(o){return!k5(o)});if(t||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,A),t=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var a=yh(n.curves),s=bh(n.curves);P5(a,s)||i.unshift(new Bh(s,6))}}else i.unshift.apply(i,A);n=n.parent}return i.filter(function(o){return Xr(o.target,e)})},r}(),Tm=function(r,e,t,n){r.container.elements.forEach(function(i){var A=Xr(i.flags,4),a=Xr(i.flags,2),s=new H5(i,r);Xr(i.styles.display,2048)&&n.push(s);var o=Xr(i.flags,8)?[]:n;if(A||a){var l=A||i.styles.isPositioned()?t:e,u=new D5(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var f=0;l.negativeZIndex.some(function(g,m){return h>g.element.container.styles.zIndex.order?(f=m,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(h>0){var c=0;l.positiveZIndex.some(function(g,m){return h>=g.element.container.styles.zIndex.order?(c=m+1,!1):c>0}),l.positiveZIndex.splice(c,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);Tm(s,u,A?u:t,o)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),Tm(s,e,t,o);Xr(i.flags,8)&&M5(i,o)})},M5=function(r,e){for(var t=r instanceof wm?r.start:1,n=r instanceof wm?r.reversed:!1,i=0;i<e.length;i++){var A=e[i];A.container instanceof h5&&typeof A.container.value=="number"&&A.container.value!==0&&(t=A.container.value),A.listValue=Ol(t,A.container.styles.listStyleType,!0),t+=n?-1:1}},_8=function(r){var e=new H5(r,null),t=new D5(e),n=[];return Tm(e,t,t,n),M5(e.container,n),t},j5=function(r,e){switch(e){case 0:return mi(r.topLeftBorderBox,r.topLeftPaddingBox,r.topRightBorderBox,r.topRightPaddingBox);case 1:return mi(r.topRightBorderBox,r.topRightPaddingBox,r.bottomRightBorderBox,r.bottomRightPaddingBox);case 2:return mi(r.bottomRightBorderBox,r.bottomRightPaddingBox,r.bottomLeftBorderBox,r.bottomLeftPaddingBox);case 3:default:return mi(r.bottomLeftBorderBox,r.bottomLeftPaddingBox,r.topLeftBorderBox,r.topLeftPaddingBox)}},L8=function(r,e){switch(e){case 0:return mi(r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox,r.topRightBorderBox,r.topRightBorderDoubleOuterBox);case 1:return mi(r.topRightBorderBox,r.topRightBorderDoubleOuterBox,r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox);case 2:return mi(r.bottomRightBorderBox,r.bottomRightBorderDoubleOuterBox,r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox);case 3:default:return mi(r.bottomLeftBorderBox,r.bottomLeftBorderDoubleOuterBox,r.topLeftBorderBox,r.topLeftBorderDoubleOuterBox)}},Q8=function(r,e){switch(e){case 0:return mi(r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox,r.topRightBorderDoubleInnerBox,r.topRightPaddingBox);case 1:return mi(r.topRightBorderDoubleInnerBox,r.topRightPaddingBox,r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox);case 2:return mi(r.bottomRightBorderDoubleInnerBox,r.bottomRightPaddingBox,r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox);case 3:default:return mi(r.bottomLeftBorderDoubleInnerBox,r.bottomLeftPaddingBox,r.topLeftBorderDoubleInnerBox,r.topLeftPaddingBox)}},N8=function(r,e){switch(e){case 0:return xh(r.topLeftBorderStroke,r.topRightBorderStroke);case 1:return xh(r.topRightBorderStroke,r.bottomRightBorderStroke);case 2:return xh(r.bottomRightBorderStroke,r.bottomLeftBorderStroke);case 3:default:return xh(r.bottomLeftBorderStroke,r.topLeftBorderStroke)}},xh=function(r,e){var t=[];return gi(r)?t.push(r.subdivide(.5,!1)):t.push(r),gi(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},mi=function(r,e,t,n){var i=[];return gi(r)?i.push(r.subdivide(.5,!1)):i.push(r),gi(t)?i.push(t.subdivide(.5,!0)):i.push(t),gi(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),gi(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},K5=function(r){var e=r.bounds,t=r.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Ch=function(r){var e=r.styles,t=r.bounds,n=Ar(e.paddingLeft,t.width),i=Ar(e.paddingRight,t.width),A=Ar(e.paddingTop,t.width),a=Ar(e.paddingBottom,t.width);return t.add(n+e.borderLeftWidth,A+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+n+i),-(e.borderTopWidth+e.borderBottomWidth+A+a))},R8=function(r,e){return r===0?e.bounds:r===2?Ch(e):K5(e)},O8=function(r,e){return r===0?e.bounds:r===2?Ch(e):K5(e)},_m=function(r,e,t){var n=R8(oo(r.styles.backgroundOrigin,e),r),i=O8(oo(r.styles.backgroundClip,e),r),A=k8(oo(r.styles.backgroundSize,e),t,n),a=A[0],s=A[1],o=Tl(oo(r.styles.backgroundPosition,e),n.width-a,n.height-s),l=P8(oo(r.styles.backgroundRepeat,e),o,A,n,i),u=Math.round(n.left+o[0]),h=Math.round(n.top+o[1]);return[l,u,h,a,s]},so=function(r){return Zt(r)&&r.value===ro.AUTO},Eh=function(r){return typeof r=="number"},k8=function(r,e,t){var n=e[0],i=e[1],A=e[2],a=r[0],s=r[1];if(!a)return[0,0];if(Mr(a)&&s&&Mr(s))return[Ar(a,t.width),Ar(s,t.height)];var o=Eh(A);if(Zt(a)&&(a.value===ro.CONTAIN||a.value===ro.COVER)){if(Eh(A)){var l=t.width/t.height;return l<A!=(a.value===ro.COVER)?[t.width,t.width/A]:[t.height*A,t.height]}return[t.width,t.height]}var u=Eh(n),h=Eh(i),f=u||h;if(so(a)&&(!s||so(s))){if(u&&h)return[n,i];if(!o&&!f)return[t.width,t.height];if(f&&o){var c=u?n:i*A,g=h?i:n/A;return[c,g]}var m=u?n:t.width,y=h?i:t.height;return[m,y]}if(o){var p=0,v=0;return Mr(a)?p=Ar(a,t.width):Mr(s)&&(v=Ar(s,t.height)),so(a)?p=v*A:(!s||so(s))&&(v=p/A),[p,v]}var b=null,I=null;if(Mr(a)?b=Ar(a,t.width):s&&Mr(s)&&(I=Ar(s,t.height)),b!==null&&(!s||so(s))&&(I=u&&h?b/n*i:t.height),I!==null&&so(a)&&(b=u&&h?I/i*n:t.width),b!==null&&I!==null)return[b,I];throw new Error("Unable to calculate background-size for element")},oo=function(r,e){var t=r[e];return typeof t=="undefined"?r[0]:t},P8=function(r,e,t,n,i){var A=e[0],a=e[1],s=t[0],o=t[1];switch(r){case 2:return[new et(Math.round(n.left),Math.round(n.top+a)),new et(Math.round(n.left+n.width),Math.round(n.top+a)),new et(Math.round(n.left+n.width),Math.round(o+n.top+a)),new et(Math.round(n.left),Math.round(o+n.top+a))];case 3:return[new et(Math.round(n.left+A),Math.round(n.top)),new et(Math.round(n.left+A+s),Math.round(n.top)),new et(Math.round(n.left+A+s),Math.round(n.height+n.top)),new et(Math.round(n.left+A),Math.round(n.height+n.top))];case 1:return[new et(Math.round(n.left+A),Math.round(n.top+a)),new et(Math.round(n.left+A+s),Math.round(n.top+a)),new et(Math.round(n.left+A+s),Math.round(n.top+a+o)),new et(Math.round(n.left+A),Math.round(n.top+a+o))];default:return[new et(Math.round(i.left),Math.round(i.top)),new et(Math.round(i.left+i.width),Math.round(i.top)),new et(Math.round(i.left+i.width),Math.round(i.height+i.top)),new et(Math.round(i.left),Math.round(i.height+i.top))]}},D8="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",V5="Hidden Text",H8=function(){function r(e){this._data={},this._document=e}return r.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),A=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),i.src=D8,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",A.style.fontFamily=e,A.style.fontSize=t,A.style.margin="0",A.style.padding="0",A.appendChild(this._document.createTextNode(V5)),n.appendChild(A),n.appendChild(i);var s=i.offsetTop-A.offsetTop+2;n.removeChild(A),n.appendChild(this._document.createTextNode(V5)),n.style.lineHeight="normal",i.style.verticalAlign="super";var o=i.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]=="undefined"&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},r}(),z5=function(){function r(e,t){this.context=e,this.options=t}return r}(),M8=1e4,j8=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new H8(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return e.prototype.applyEffects=function(t){for(var n=this;this._activeEffects.length;)this.popEffect();t.forEach(function(i){return n.applyEffect(i)})},e.prototype.applyEffect=function(t){this.ctx.save(),U8(t)&&(this.ctx.globalAlpha=t.opacity),I8(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)),k5(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 Tn(this,void 0,void 0,function(){var n;return En(this,function(i){switch(i.label){case 0:return n=t.element.container.styles,n.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Tn(this,void 0,void 0,function(){return En(this,function(n){switch(n.label){case 0:if(Xr(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,i){var A=this;if(n===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+i);else{var a=vm(t.text);a.reduce(function(s,o){return A.ctx.fillText(o,s,t.bounds.top+i),s+A.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(""),i=G8(t.fontFamily).join(", "),A=Ul(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,n,t.fontWeight,A,i].join(" "),i,A]},e.prototype.renderTextNode=function(t,n){return Tn(this,void 0,void 0,function(){var i,A,a,s,o,l,u,h,f=this;return En(this,function(c){return i=this.createFontStyle(n),A=i[0],a=i[1],s=i[2],this.ctx.font=A,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(g){h.forEach(function(m){switch(m){case 0:f.ctx.fillStyle=Jr(n.color),f.renderTextWithLetterSpacing(g,n.letterSpacing,l);var y=n.textShadow;y.length&&g.text.trim().length&&(y.slice(0).reverse().forEach(function(p){f.ctx.shadowColor=Jr(p.color),f.ctx.shadowOffsetX=p.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=p.offsetY.number*f.options.scale,f.ctx.shadowBlur=p.blur.number,f.renderTextWithLetterSpacing(g,n.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),n.textDecorationLine.length&&(f.ctx.fillStyle=Jr(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(p){switch(p){case 1:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+l),g.bounds.width,1);break;case 2:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:f.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+u),g.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&g.text.trim().length&&(f.ctx.strokeStyle=Jr(n.webkitTextStrokeColor),f.ctx.lineWidth=n.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,n,i){if(i&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var A=Ch(t),a=bh(n);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,t.intrinsicWidth,t.intrinsicHeight,A.left,A.top,A.width,A.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Tn(this,void 0,void 0,function(){var n,i,A,a,s,o,v,v,l,u,h,f,I,c,g,N,m,y,p,v,b,I,N;return En(this,function(M){switch(M.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,i=t.curves,A=n.styles,a=0,s=n.textNodes,M.label=1;case 1:return a<s.length?(o=s[a],[4,this.renderTextNode(o,A)]):[3,4];case 2:M.sent(),M.label=3;case 3:return a++,[3,1];case 4:if(!(n instanceof l5))return[3,8];M.label=5;case 5:return M.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return v=M.sent(),this.renderReplacedElement(n,i,v),[3,8];case 7:return M.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof u5&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof c5))return[3,12];M.label=9;case 9:return M.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return v=M.sent(),this.renderReplacedElement(n,i,v),[3,12];case 11:return M.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof g5&&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=M.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),M.label=14;case 14:if(n instanceof ym&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===fh?n.checked&&(this.ctx.save(),this.path([new et(n.bounds.left+h*.39363,n.bounds.top+h*.79),new et(n.bounds.left+h*.16,n.bounds.top+h*.5549),new et(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new et(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new et(n.bounds.left+h*.72983,n.bounds.top+h*.23),new et(n.bounds.left+h*.84,n.bounds.top+h*.34085),new et(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=Jr(f5),this.ctx.fill(),this.ctx.restore()):n.type===dh&&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=Jr(f5),this.ctx.fill(),this.ctx.restore())),K8(n)&&n.value.length){switch(f=this.createFontStyle(A),I=f[0],c=f[1],g=this.fontMetrics.getMetrics(I,c).baseline,this.ctx.font=I,this.ctx.fillStyle=Jr(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=z8(n.styles.textAlign),N=Ch(n),m=0,n.styles.textAlign){case 1:m+=N.width/2;break;case 2:m+=N.width;break}y=N.add(m,0,0,-N.height/2+1),this.ctx.save(),this.path([new et(N.left,N.top),new et(N.left+N.width,N.top),new et(N.left+N.width,N.top+N.height),new et(N.left,N.top+N.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Nl(n.value,y),A.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Xr(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(p=n.styles.listStyleImage,p.type!==0)return[3,18];v=void 0,b=p.url,M.label=15;case 15:return M.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return v=M.sent(),this.ctx.drawImage(v,n.bounds.left-(v.width+10),n.bounds.top),[3,18];case 17:return M.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(A)[0],this.ctx.font=I,this.ctx.fillStyle=Jr(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",N=new FA(n.bounds.left,n.bounds.top+Ar(n.styles.paddingTop,n.bounds.width),n.bounds.width,V2(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Nl(t.listValue,N),A.letterSpacing,V2(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),M.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Tn(this,void 0,void 0,function(){var n,i,p,A,a,p,s,o,p,l,u,p,h,f,p,c,g,p,m,y,p;return En(this,function(v){switch(v.label){case 0:if(Xr(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:v.sent(),n=0,i=t.negativeZIndex,v.label=2;case 2:return n<i.length?(p=i[n],[4,this.renderStack(p)]):[3,5];case 3:v.sent(),v.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:v.sent(),A=0,a=t.nonInlineLevel,v.label=7;case 7:return A<a.length?(p=a[A],[4,this.renderNode(p)]):[3,10];case 8:v.sent(),v.label=9;case 9:return A++,[3,7];case 10:s=0,o=t.nonPositionedFloats,v.label=11;case 11:return s<o.length?(p=o[s],[4,this.renderStack(p)]):[3,14];case 12:v.sent(),v.label=13;case 13:return s++,[3,11];case 14:l=0,u=t.nonPositionedInlineLevel,v.label=15;case 15:return l<u.length?(p=u[l],[4,this.renderStack(p)]):[3,18];case 16:v.sent(),v.label=17;case 17:return l++,[3,15];case 18:h=0,f=t.inlineLevel,v.label=19;case 19:return h<f.length?(p=f[h],[4,this.renderNode(p)]):[3,22];case 20:v.sent(),v.label=21;case 21:return h++,[3,19];case 22:c=0,g=t.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return c<g.length?(p=g[c],[4,this.renderStack(p)]):[3,26];case 24:v.sent(),v.label=25;case 25:return c++,[3,23];case 26:m=0,y=t.positiveZIndex,v.label=27;case 27:return m<y.length?(p=y[m],[4,this.renderStack(p)]):[3,30];case 28:v.sent(),v.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(i,A){var a=gi(i)?i.start:i;A===0?n.ctx.moveTo(a.x,a.y):n.ctx.lineTo(a.x,a.y),gi(i)&&n.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},e.prototype.renderRepeat=function(t,n,i,A){this.path(t),this.ctx.fillStyle=n,this.ctx.translate(i,A),this.ctx.fill(),this.ctx.translate(-i,-A)},e.prototype.resizeImage=function(t,n,i){var A;if(t.width===n&&t.height===i)return t;var a=(A=this.canvas.ownerDocument)!==null&&A!==void 0?A:document,s=a.createElement("canvas");s.width=Math.max(1,n),s.height=Math.max(1,i);var o=s.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,n,i),s},e.prototype.renderBackgroundImage=function(t){return Tn(this,void 0,void 0,function(){var n,i,A,a,s,o;return En(this,function(l){switch(l.label){case 0:n=t.styles.backgroundImage.length-1,i=function(u){var h,f,c,G,Z,z,K,F,P,g,G,Z,z,K,F,m,y,p,v,b,I,N,M,O,P,_,G,D,S,K,F,ee,Z,z,oe,W,ce,ie,x,H,V,q;return En(this,function($){switch($.label){case 0:if(u.type!==0)return[3,5];h=void 0,f=u.url,$.label=1;case 1:return $.trys.push([1,3,,4]),[4,A.context.cache.match(f)];case 2:return h=$.sent(),[3,4];case 3:return $.sent(),A.context.logger.error("Error loading background-image "+f),[3,4];case 4:return h&&(c=_m(t,n,[h.width,h.height,h.width/h.height]),G=c[0],Z=c[1],z=c[2],K=c[3],F=c[4],P=A.ctx.createPattern(A.resizeImage(h,K,F),"repeat"),A.renderRepeat(G,P,Z,z)),[3,6];case 5:IO(u)?(g=_m(t,n,[null,null,null]),G=g[0],Z=g[1],z=g[2],K=g[3],F=g[4],m=xO(u.angle,K,F),y=m[0],p=m[1],v=m[2],b=m[3],I=m[4],N=document.createElement("canvas"),N.width=K,N.height=F,M=N.getContext("2d"),O=M.createLinearGradient(p,b,v,I),Q2(u.stops,y).forEach(function(L){return O.addColorStop(L.stop,Jr(L.color))}),M.fillStyle=O,M.fillRect(0,0,K,F),K>0&&F>0&&(P=A.ctx.createPattern(N,"repeat"),A.renderRepeat(G,P,Z,z))):UO(u)&&(_=_m(t,n,[null,null,null]),G=_[0],D=_[1],S=_[2],K=_[3],F=_[4],ee=u.position.length===0?[nm]:u.position,Z=Ar(ee[0],K),z=Ar(ee[ee.length-1],F),oe=CO(u,Z,z,K,F),W=oe[0],ce=oe[1],W>0&&ce>0&&(ie=A.ctx.createRadialGradient(D+Z,S+z,0,D+Z,S+z,W),Q2(u.stops,W*2).forEach(function(L){return ie.addColorStop(L.stop,Jr(L.color))}),A.path(G),A.ctx.fillStyle=ie,W!==ce?(x=t.bounds.left+.5*t.bounds.width,H=t.bounds.top+.5*t.bounds.height,V=ce/W,q=1/V,A.ctx.save(),A.ctx.translate(x,H),A.ctx.transform(1,0,0,V,0,0),A.ctx.translate(-x,-H),A.ctx.fillRect(D,q*(S-H)+H,K,F*q),A.ctx.restore()):A.ctx.fill())),$.label=6;case 6:return n--,[2]}})},A=this,a=0,s=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return a<s.length?(o=s[a],[5,i(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,i){return Tn(this,void 0,void 0,function(){return En(this,function(A){return this.path(j5(i,n)),this.ctx.fillStyle=Jr(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,n,i,A){return Tn(this,void 0,void 0,function(){var a,s;return En(this,function(o){switch(o.label){case 0:return n<3?[4,this.renderSolidBorder(t,i,A)]:[3,2];case 1:return o.sent(),[2];case 2:return a=L8(A,i),this.path(a),this.ctx.fillStyle=Jr(t),this.ctx.fill(),s=Q8(A,i),this.path(s),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Tn(this,void 0,void 0,function(){var n,i,A,a,s,o,l,u,h=this;return En(this,function(f){switch(f.label){case 0:return this.applyEffects(t.getEffects(2)),n=t.container.styles,i=!ua(n.backgroundColor)||n.backgroundImage.length,A=[{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=V8(oo(n.backgroundClip,0),t.curves),i||n.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),ua(n.backgroundColor)||(this.ctx.fillStyle=Jr(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(c){h.ctx.save();var g=yh(t.curves),m=c.inset?0:M8,y=T8(g,-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(g),h.ctx.clip(),h.mask(y)):(h.mask(g),h.ctx.clip(),h.path(y)),h.ctx.shadowOffsetX=c.offsetX.number+m,h.ctx.shadowOffsetY=c.offsetY.number,h.ctx.shadowColor=Jr(c.color),h.ctx.shadowBlur=c.blur.number,h.ctx.fillStyle=c.inset?Jr(c.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),f.label=2;case 2:s=0,o=0,l=A,f.label=3;case 3:return o<l.length?(u=l[o],u.style!==0&&!ua(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 f.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 f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,n,i,A,a){return Tn(this,void 0,void 0,function(){var s,o,l,u,h,f,c,g,m,y,p,v,b,I,N,M,N,M;return En(this,function(O){return this.ctx.save(),s=N8(A,i),o=j5(A,i),a===2&&(this.path(o),this.ctx.clip()),gi(o[0])?(l=o[0].start.x,u=o[0].start.y):(l=o[0].x,u=o[0].y),gi(o[1])?(h=o[1].end.x,f=o[1].end.y):(h=o[1].x,f=o[1].y),i===0||i===2?c=Math.abs(l-h):c=Math.abs(u-f),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(o.slice(0,2)),g=n<3?n*3:n*2,m=n<3?n*2:n,a===3&&(g=n,m=n),y=!0,c<=g*2?y=!1:c<=g*2+m?(p=c/(2*g+m),g*=p,m*=p):(v=Math.floor((c+m)/(g+m)),b=(c-v*g)/(v-1),I=(c-(v+1)*g)/v,m=I<=0||Math.abs(m-b)<Math.abs(m-I)?b:I),y&&(a===3?this.ctx.setLineDash([0,g+m]):this.ctx.setLineDash([g,m])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=Jr(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(gi(o[0])&&(N=o[3],M=o[0],this.ctx.beginPath(),this.formatPath([new et(N.end.x,N.end.y),new et(M.start.x,M.start.y)]),this.ctx.stroke()),gi(o[1])&&(N=o[1],M=o[2],this.ctx.beginPath(),this.formatPath([new et(N.end.x,N.end.y),new et(M.start.x,M.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Tn(this,void 0,void 0,function(){var n;return En(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Jr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=_8(t),[4,this.renderStack(n)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(z5),K8=function(r){return r instanceof p5||r instanceof d5?!0:r instanceof ym&&r.type!==dh&&r.type!==fh},V8=function(r,e){switch(r){case 0:return yh(e);case 2:return E8(e);case 1:default:return bh(e)}},z8=function(r){switch(r){case 1:return"center";case 2:return"right";case 0:default:return"left"}},$8=["-apple-system","system-ui"],G8=function(r){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?r.filter(function(e){return $8.indexOf(e)===-1}):r},W8=function(r){Ri(e,r);function e(t,n){var i=r.call(this,t,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return e.prototype.render=function(t){return Tn(this,void 0,void 0,function(){var n,i;return En(this,function(A){switch(A.label){case 0:return n=mm(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,q8(n)];case 1:return i=A.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Jr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(z5),q8=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))})},X8=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!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Qc([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!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Qc([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!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Qc([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!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Qc([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},r.instances={},r}(),Y8=function(){function r(e,t){var n;this.windowBounds=t,this.instanceName="#"+r.instanceCount++,this.logger=new X8({id:this.instanceName,enabled:e.logging}),this.cache=(n=e.cache)!==null&&n!==void 0?n:new m8(this,e)}return r.instanceCount=1,r}(),J8=function(r,e){return e===void 0&&(e={}),Z8(r,e)};typeof window!="undefined"&&O5.setContext(window);var Z8=function(r,e){return Tn(void 0,void 0,void 0,function(){var t,n,i,A,a,s,o,l,u,h,f,c,g,m,y,p,v,b,I,N,O,M,O,P,_,G,D,S,K,F,ee,Z,z,oe,W,ce,ie,x,H,V;return En(this,function(q){switch(q.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 i={allowTaint:(P=e.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(_=e.imageTimeout)!==null&&_!==void 0?_:15e3,proxy:e.proxy,useCORS:(G=e.useCORS)!==null&&G!==void 0?G:!1},A=Og({logging:(D=e.logging)!==null&&D!==void 0?D:!0,cache:e.cache},i),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:(ee=e.scrollY)!==null&&ee!==void 0?ee:n.pageYOffset},s=new FA(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new Y8(A,s),l=(Z=e.foreignObjectRendering)!==null&&Z!==void 0?Z:!1,u={allowTaint:(z=e.allowTaint)!==null&&z!==void 0?z:!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 N5(o,r,u),f=h.clonedReferenceElement,f?[4,h.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return c=q.sent(),g=Bm(f)||e8(f)?TN(f.ownerDocument):Nc(o,f),m=g.width,y=g.height,p=g.left,v=g.top,b=eD(o,f,e.backgroundColor),I={canvas:e.canvas,backgroundColor:b,scale:(W=(oe=e.scale)!==null&&oe!==void 0?oe:n.devicePixelRatio)!==null&&W!==void 0?W:1,x:((ce=e.x)!==null&&ce!==void 0?ce:0)+p,y:((ie=e.y)!==null&&ie!==void 0?ie:0)+v,width:(x=e.width)!==null&&x!==void 0?x:Math.ceil(m),height:(H=e.height)!==null&&H!==void 0?H:Math.ceil(y)},l?(o.logger.debug("Document cloned, using foreign object rendering"),O=new W8(o,I),[4,O.render(f)]):[3,3];case 2:return N=q.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+p+","+v+" with size "+m+"x"+y+" using computed rendering"),o.logger.debug("Starting DOM parsing"),M=v5(o,f),b===M.styles.backgroundColor&&(M.styles.backgroundColor=UA.TRANSPARENT),o.logger.debug("Starting renderer for element at "+I.x+","+I.y+" with size "+I.width+"x"+I.height),O=new j8(o,I),[4,O.render(M)];case 4:N=q.sent(),q.label=5;case 5:return(!((V=e.removeContainer)!==null&&V!==void 0)||V)&&(N5.destroy(c)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,N]}})})},eD=function(r,e,t){var n=e.ownerDocument,i=n.documentElement?_l(r,getComputedStyle(n.documentElement).backgroundColor):UA.TRANSPARENT,A=n.body?_l(r,getComputedStyle(n.body).backgroundColor):UA.TRANSPARENT,a=typeof t=="string"?_l(r,t):t===null?UA.TRANSPARENT:4294967295;return e===n.documentElement?ua(i)?ua(A)?a:A:i:a};const tD=Object.freeze(Object.defineProperty({__proto__:null,default:J8},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 da(r){"@babel/helpers - typeof";return da=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},da(r)}function Lm(r,e){return Lm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Lm(r,e)}function rD(){if(typeof Reflect=="undefined"||!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(r){return!1}}function Sh(r,e,t){return rD()?Sh=Reflect.construct:Sh=function(i,A,a){var s=[null];s.push.apply(s,A);var o=Function.bind.apply(i,s),l=new o;return a&&Lm(l,a.prototype),l},Sh.apply(null,arguments)}function ki(r){return nD(r)||iD(r)||AD(r)||aD()}function nD(r){if(Array.isArray(r))return Qm(r)}function iD(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function AD(r,e){if(r){if(typeof r=="string")return Qm(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 Qm(r,e)}}function Qm(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 aD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
394
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sD=Object.hasOwnProperty,$5=Object.setPrototypeOf,oD=Object.isFrozen,lD=Object.getPrototypeOf,uD=Object.getOwnPropertyDescriptor,_n=Object.freeze,vi=Object.seal,cD=Object.create,G5=typeof Reflect!="undefined"&&Reflect,Fh=G5.apply,Nm=G5.construct;Fh||(Fh=function(e,t,n){return e.apply(t,n)}),_n||(_n=function(e){return e}),vi||(vi=function(e){return e}),Nm||(Nm=function(e,t){return Sh(e,ki(t))});var hD=wi(Array.prototype.forEach),W5=wi(Array.prototype.pop),Pl=wi(Array.prototype.push),Ih=wi(String.prototype.toLowerCase),Rm=wi(String.prototype.toString),q5=wi(String.prototype.match),Pi=wi(String.prototype.replace),fD=wi(String.prototype.indexOf),dD=wi(String.prototype.trim),cn=wi(RegExp.prototype.test),Om=pD(TypeError);function wi(r){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Fh(r,e,n)}}function pD(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nm(r,t)}}function Ft(r,e,t){var n;t=(n=t)!==null&&n!==void 0?n:Ih,$5&&$5(r,null);for(var i=e.length;i--;){var A=e[i];if(typeof A=="string"){var a=t(A);a!==A&&(oD(e)||(e[i]=a),A=a)}r[A]=!0}return r}function is(r){var e=cD(null),t;for(t in r)Fh(sD,r,[t])===!0&&(e[t]=r[t]);return e}function Uh(r,e){for(;r!==null;){var t=uD(r,e);if(t){if(t.get)return wi(t.get);if(typeof t.value=="function")return wi(t.value)}r=lD(r)}function n(i){return console.warn("fallback value for",i),null}return n}var X5=_n(["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"]),km=_n(["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"]),Pm=_n(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gD=_n(["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"]),Dm=_n(["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"]),mD=_n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y5=_n(["#text"]),J5=_n(["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"]),Hm=_n(["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"]),Z5=_n(["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"]),Th=_n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vD=vi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wD=vi(/<%[\w\W]*|[\w\W]*%>/gm),yD=vi(/\${[\w\W]*}/gm),bD=vi(/^data-[\-\w.\u00B7-\uFFFF]+$/),BD=vi(/^aria-[\-\w]+$/),xD=vi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),CD=vi(/^(?:\w+script|data):/i),ED=vi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),SD=vi(/^html$/i),FD=vi(/^[a-z][.\w]*(-[.\w]+)+$/i),ID=function(){return typeof window=="undefined"?null:window},UD=function(e,t){if(da(e)!=="object"||typeof e.createPolicy!="function")return null;var n=null,i="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(i)&&(n=t.currentScript.getAttribute(i));var A="dompurify"+(n?"#"+n:"");try{return e.createPolicy(A,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch(a){return console.warn("TrustedTypes policy "+A+" could not be created."),null}};function ex(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ID(),e=function(ye){return ex(ye)};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,i=r.DocumentFragment,A=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,f=r.DOMParser,c=r.trustedTypes,g=s.prototype,m=Uh(g,"cloneNode"),y=Uh(g,"nextSibling"),p=Uh(g,"childNodes"),v=Uh(g,"parentNode");if(typeof A=="function"){var b=n.createElement("template");b.content&&b.content.ownerDocument&&(n=b.content.ownerDocument)}var I=UD(c,t),N=I?I.createHTML(""):"",M=n,O=M.implementation,P=M.createNodeIterator,_=M.createDocumentFragment,G=M.getElementsByTagName,D=t.importNode,S={};try{S=is(n).documentMode?n.documentMode:{}}catch(lt){}var K={};e.isSupported=typeof v=="function"&&O&&O.createHTMLDocument!==void 0&&S!==9;var F=vD,ee=wD,Z=yD,z=bD,oe=BD,W=CD,ce=ED,ie=FD,x=xD,H=null,V=Ft({},[].concat(ki(X5),ki(km),ki(Pm),ki(Dm),ki(Y5))),q=null,$=Ft({},[].concat(ki(J5),ki(Hm),ki(Z5),ki(Th))),L=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}})),Q=null,te=null,se=!0,X=!0,ne=!1,ve=!0,k=!1,de=!0,U=!1,B=!1,C=!1,R=!1,ae=!1,fe=!1,ue=!0,xe=!1,Ue="user-content-",Ie=!0,ke=!1,ze={},Xe=null,rt=Ft({},["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"]),ft=null,qe=Ft({},["audio","video","img","source","image","track"]),jt=null,ut=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fr="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml",dr=vt,Ut=!1,en=null,Kt=Ft({},[fr,It,vt],Rm),ar,Mt=["application/xhtml+xml","text/html"],Wt="text/html",ot,Lt=null,PA=n.createElement("form"),Vr=function(ye){return ye instanceof RegExp||ye instanceof Function},zn=function(ye){Lt&&Lt===ye||((!ye||da(ye)!=="object")&&(ye={}),ye=is(ye),ar=Mt.indexOf(ye.PARSER_MEDIA_TYPE)===-1?ar=Wt:ar=ye.PARSER_MEDIA_TYPE,ot=ar==="application/xhtml+xml"?Rm:Ih,H="ALLOWED_TAGS"in ye?Ft({},ye.ALLOWED_TAGS,ot):V,q="ALLOWED_ATTR"in ye?Ft({},ye.ALLOWED_ATTR,ot):$,en="ALLOWED_NAMESPACES"in ye?Ft({},ye.ALLOWED_NAMESPACES,Rm):Kt,jt="ADD_URI_SAFE_ATTR"in ye?Ft(is(ut),ye.ADD_URI_SAFE_ATTR,ot):ut,ft="ADD_DATA_URI_TAGS"in ye?Ft(is(qe),ye.ADD_DATA_URI_TAGS,ot):qe,Xe="FORBID_CONTENTS"in ye?Ft({},ye.FORBID_CONTENTS,ot):rt,Q="FORBID_TAGS"in ye?Ft({},ye.FORBID_TAGS,ot):{},te="FORBID_ATTR"in ye?Ft({},ye.FORBID_ATTR,ot):{},ze="USE_PROFILES"in ye?ye.USE_PROFILES:!1,se=ye.ALLOW_ARIA_ATTR!==!1,X=ye.ALLOW_DATA_ATTR!==!1,ne=ye.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=ye.SAFE_FOR_TEMPLATES||!1,de=ye.SAFE_FOR_XML!==!1,U=ye.WHOLE_DOCUMENT||!1,R=ye.RETURN_DOM||!1,ae=ye.RETURN_DOM_FRAGMENT||!1,fe=ye.RETURN_TRUSTED_TYPE||!1,C=ye.FORCE_BODY||!1,ue=ye.SANITIZE_DOM!==!1,xe=ye.SANITIZE_NAMED_PROPS||!1,Ie=ye.KEEP_CONTENT!==!1,ke=ye.IN_PLACE||!1,x=ye.ALLOWED_URI_REGEXP||x,dr=ye.NAMESPACE||vt,L=ye.CUSTOM_ELEMENT_HANDLING||{},ye.CUSTOM_ELEMENT_HANDLING&&Vr(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&Vr(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(L.allowCustomizedBuiltInElements=ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(X=!1),ae&&(R=!0),ze&&(H=Ft({},ki(Y5)),q=[],ze.html===!0&&(Ft(H,X5),Ft(q,J5)),ze.svg===!0&&(Ft(H,km),Ft(q,Hm),Ft(q,Th)),ze.svgFilters===!0&&(Ft(H,Pm),Ft(q,Hm),Ft(q,Th)),ze.mathMl===!0&&(Ft(H,Dm),Ft(q,Z5),Ft(q,Th))),ye.ADD_TAGS&&(H===V&&(H=is(H)),Ft(H,ye.ADD_TAGS,ot)),ye.ADD_ATTR&&(q===$&&(q=is(q)),Ft(q,ye.ADD_ATTR,ot)),ye.ADD_URI_SAFE_ATTR&&Ft(jt,ye.ADD_URI_SAFE_ATTR,ot),ye.FORBID_CONTENTS&&(Xe===rt&&(Xe=is(Xe)),Ft(Xe,ye.FORBID_CONTENTS,ot)),Ie&&(H["#text"]=!0),U&&Ft(H,["html","head","body"]),H.table&&(Ft(H,["tbody"]),delete Q.tbody),_n&&_n(ye),Lt=ye)},ni=Ft({},["mi","mo","mn","ms","mtext"]),dt=Ft({},["annotation-xml"]),ii=Ft({},["title","style","font","a","script"]),Nn=Ft({},km);Ft(Nn,Pm),Ft(Nn,gD);var tn=Ft({},Dm);Ft(tn,mD);var Rr=function(ye){var Ge=v(ye);(!Ge||!Ge.tagName)&&(Ge={namespaceURI:dr,tagName:"template"});var Ye=Ih(ye.tagName),Ot=Ih(Ge.tagName);return en[ye.namespaceURI]?ye.namespaceURI===It?Ge.namespaceURI===vt?Ye==="svg":Ge.namespaceURI===fr?Ye==="svg"&&(Ot==="annotation-xml"||ni[Ot]):!!Nn[Ye]:ye.namespaceURI===fr?Ge.namespaceURI===vt?Ye==="math":Ge.namespaceURI===It?Ye==="math"&&dt[Ot]:!!tn[Ye]:ye.namespaceURI===vt?Ge.namespaceURI===It&&!dt[Ot]||Ge.namespaceURI===fr&&!ni[Ot]?!1:!tn[Ye]&&(ii[Ye]||!Nn[Ye]):!!(ar==="application/xhtml+xml"&&en[ye.namespaceURI]):!1},Pt=function(ye){Pl(e.removed,{element:ye});try{ye.parentNode.removeChild(ye)}catch(Ge){try{ye.outerHTML=N}catch(Ye){ye.remove()}}},rn=function(ye,Ge){try{Pl(e.removed,{attribute:Ge.getAttributeNode(ye),from:Ge})}catch(Ye){Pl(e.removed,{attribute:null,from:Ge})}if(Ge.removeAttribute(ye),ye==="is"&&!q[ye])if(R||ae)try{Pt(Ge)}catch(Ye){}else try{Ge.setAttribute(ye,"")}catch(Ye){}},DA=function(ye){var Ge,Ye;if(C)ye="<remove></remove>"+ye;else{var Ot=q5(ye,/^[\r\n\t ]+/);Ye=Ot&&Ot[0]}ar==="application/xhtml+xml"&&dr===vt&&(ye='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ye+"</body></html>");var nn=I?I.createHTML(ye):ye;if(dr===vt)try{Ge=new f().parseFromString(nn,ar)}catch(Cr){}if(!Ge||!Ge.documentElement){Ge=O.createDocument(dr,"template",null);try{Ge.documentElement.innerHTML=Ut?N:nn}catch(Cr){}}var gr=Ge.body||Ge.documentElement;return ye&&Ye&&gr.insertBefore(n.createTextNode(Ye),gr.childNodes[0]||null),dr===vt?G.call(Ge,U?"html":"body")[0]:U?Ge.documentElement:gr},bi=function(ye){return P.call(ye.ownerDocument||ye,ye,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null,!1)},Rn=function(ye){return ye instanceof h&&(typeof ye.nodeName!="string"||typeof ye.textContent!="string"||typeof ye.removeChild!="function"||!(ye.attributes instanceof u)||typeof ye.removeAttribute!="function"||typeof ye.setAttribute!="function"||typeof ye.namespaceURI!="string"||typeof ye.insertBefore!="function"||typeof ye.hasChildNodes!="function")},fn=function(ye){return da(a)==="object"?ye instanceof a:ye&&da(ye)==="object"&&typeof ye.nodeType=="number"&&typeof ye.nodeName=="string"},Or=function(ye,Ge,Ye){K[ye]&&hD(K[ye],function(Ot){Ot.call(e,Ge,Ye,Lt)})},Ai=function(ye){var Ge;if(Or("beforeSanitizeElements",ye,null),Rn(ye)||cn(/[\u0080-\uFFFF]/,ye.nodeName))return Pt(ye),!0;var Ye=ot(ye.nodeName);if(Or("uponSanitizeElement",ye,{tagName:Ye,allowedTags:H}),ye.hasChildNodes()&&!fn(ye.firstElementChild)&&(!fn(ye.content)||!fn(ye.content.firstElementChild))&&cn(/<[/\w]/g,ye.innerHTML)&&cn(/<[/\w]/g,ye.textContent)||Ye==="select"&&cn(/<template/i,ye.innerHTML)||ye.nodeType===7||de&&ye.nodeType===8&&cn(/<[/\w]/g,ye.data))return Pt(ye),!0;if(!H[Ye]||Q[Ye]){if(!Q[Ye]&&ai(Ye)&&(L.tagNameCheck instanceof RegExp&&cn(L.tagNameCheck,Ye)||L.tagNameCheck instanceof Function&&L.tagNameCheck(Ye)))return!1;if(Ie&&!Xe[Ye]){var Ot=v(ye)||ye.parentNode,nn=p(ye)||ye.childNodes;if(nn&&Ot)for(var gr=nn.length,Cr=gr-1;Cr>=0;--Cr){var zi=m(nn[Cr],!0);zi.__removalCount=(ye.__removalCount||0)+1,Ot.insertBefore(zi,y(ye))}}return Pt(ye),!0}return ye instanceof s&&!Rr(ye)||(Ye==="noscript"||Ye==="noembed"||Ye==="noframes")&&cn(/<\/no(script|embed|frames)/i,ye.innerHTML)?(Pt(ye),!0):(k&&ye.nodeType===3&&(Ge=ye.textContent,Ge=Pi(Ge,F," "),Ge=Pi(Ge,ee," "),Ge=Pi(Ge,Z," "),ye.textContent!==Ge&&(Pl(e.removed,{element:ye.cloneNode()}),ye.textContent=Ge)),Or("afterSanitizeElements",ye,null),!1)},On=function(ye,Ge,Ye){if(ue&&(Ge==="id"||Ge==="name")&&(Ye in n||Ye in PA))return!1;if(!(X&&!te[Ge]&&cn(z,Ge))){if(!(se&&cn(oe,Ge))){if(!q[Ge]||te[Ge]){if(!(ai(ye)&&(L.tagNameCheck instanceof RegExp&&cn(L.tagNameCheck,ye)||L.tagNameCheck instanceof Function&&L.tagNameCheck(ye))&&(L.attributeNameCheck instanceof RegExp&&cn(L.attributeNameCheck,Ge)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(Ge))||Ge==="is"&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&cn(L.tagNameCheck,Ye)||L.tagNameCheck instanceof Function&&L.tagNameCheck(Ye))))return!1}else if(!jt[Ge]){if(!cn(x,Pi(Ye,ce,""))){if(!((Ge==="src"||Ge==="xlink:href"||Ge==="href")&&ye!=="script"&&fD(Ye,"data:")===0&&ft[ye])){if(!(ne&&!cn(W,Pi(Ye,ce,"")))){if(Ye)return!1}}}}}}return!0},ai=function(ye){return ye!=="annotation-xml"&&q5(ye,ie)},cA=function(ye){var Ge,Ye,Ot,nn;Or("beforeSanitizeAttributes",ye,null);var gr=ye.attributes;if(!(!gr||Rn(ye))){var Cr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(nn=gr.length;nn--;){Ge=gr[nn];var zi=Ge,ur=zi.name,ms=zi.namespaceURI;if(Ye=ur==="value"?Ge.value:dD(Ge.value),Ot=ot(ur),Cr.attrName=Ot,Cr.attrValue=Ye,Cr.keepAttr=!0,Cr.forceKeepAttr=void 0,Or("uponSanitizeAttribute",ye,Cr),Ye=Cr.attrValue,!Cr.forceKeepAttr&&(rn(ur,ye),!!Cr.keepAttr)){if(!ve&&cn(/\/>/i,Ye)){rn(ur,ye);continue}k&&(Ye=Pi(Ye,F," "),Ye=Pi(Ye,ee," "),Ye=Pi(Ye,Z," "));var vs=ot(ye.nodeName);if(On(vs,Ot,Ye)){if(xe&&(Ot==="id"||Ot==="name")&&(rn(ur,ye),Ye=Ue+Ye),de&&cn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ye)){rn(ur,ye);continue}if(I&&da(c)==="object"&&typeof c.getAttributeType=="function"&&!ms)switch(c.getAttributeType(vs,Ot)){case"TrustedHTML":{Ye=I.createHTML(Ye);break}case"TrustedScriptURL":{Ye=I.createScriptURL(Ye);break}}try{ms?ye.setAttributeNS(ms,ur,Ye):ye.setAttribute(ur,Ye),Rn(ye)?Pt(ye):W5(e.removed)}catch(Qf){}}}}Or("afterSanitizeAttributes",ye,null)}},ba=function lt(ye){var Ge,Ye=bi(ye);for(Or("beforeSanitizeShadowDOM",ye,null);Ge=Ye.nextNode();)Or("uponSanitizeShadowNode",Ge,null),Ai(Ge),cA(Ge),Ge.content instanceof i&&lt(Ge.content);Or("afterSanitizeShadowDOM",ye,null)};return e.sanitize=function(lt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge,Ye,Ot,nn,gr;if(Ut=!lt,Ut&&(lt="<!-->"),typeof lt!="string"&&!fn(lt))if(typeof lt.toString=="function"){if(lt=lt.toString(),typeof lt!="string")throw Om("dirty is not a string, aborting")}else throw Om("toString is not a function");if(!e.isSupported){if(da(r.toStaticHTML)==="object"||typeof r.toStaticHTML=="function"){if(typeof lt=="string")return r.toStaticHTML(lt);if(fn(lt))return r.toStaticHTML(lt.outerHTML)}return lt}if(B||zn(ye),e.removed=[],typeof lt=="string"&&(ke=!1),ke){if(lt.nodeName){var Cr=ot(lt.nodeName);if(!H[Cr]||Q[Cr])throw Om("root node is forbidden and cannot be sanitized in-place")}}else if(lt instanceof a)Ge=DA("<!---->"),Ye=Ge.ownerDocument.importNode(lt,!0),Ye.nodeType===1&&Ye.nodeName==="BODY"||Ye.nodeName==="HTML"?Ge=Ye:Ge.appendChild(Ye);else{if(!R&&!k&&!U&&lt.indexOf("<")===-1)return I&&fe?I.createHTML(lt):lt;if(Ge=DA(lt),!Ge)return R?null:fe?N:""}Ge&&C&&Pt(Ge.firstChild);for(var zi=bi(ke?lt:Ge);Ot=zi.nextNode();)Ot.nodeType===3&&Ot===nn||(Ai(Ot),cA(Ot),Ot.content instanceof i&&ba(Ot.content),nn=Ot);if(nn=null,ke)return lt;if(R){if(ae)for(gr=_.call(Ge.ownerDocument);Ge.firstChild;)gr.appendChild(Ge.firstChild);else gr=Ge;return(q.shadowroot||q.shadowrootmod)&&(gr=D.call(t,gr,!0)),gr}var ur=U?Ge.outerHTML:Ge.innerHTML;return U&&H["!doctype"]&&Ge.ownerDocument&&Ge.ownerDocument.doctype&&Ge.ownerDocument.doctype.name&&cn(SD,Ge.ownerDocument.doctype.name)&&(ur="<!DOCTYPE "+Ge.ownerDocument.doctype.name+`>
395
+ `+ur),k&&(ur=Pi(ur,F," "),ur=Pi(ur,ee," "),ur=Pi(ur,Z," ")),I&&fe?I.createHTML(ur):ur},e.setConfig=function(lt){zn(lt),B=!0},e.clearConfig=function(){Lt=null,B=!1},e.isValidAttribute=function(lt,ye,Ge){Lt||zn({});var Ye=ot(lt),Ot=ot(ye);return On(Ye,Ot,Ge)},e.addHook=function(lt,ye){typeof ye=="function"&&(K[lt]=K[lt]||[],Pl(K[lt],ye))},e.removeHook=function(lt){if(K[lt])return W5(K[lt])},e.removeHooks=function(lt){K[lt]&&(K[lt]=[])},e.removeAllHooks=function(){K={}},e}var TD=ex();const _D=Object.freeze(Object.defineProperty({__proto__:null,default:TD},Symbol.toStringTag,{value:"Module"}));var Dl=function(r){return r&&r.Math===Math&&r},hr=Dl(typeof globalThis=="object"&&globalThis)||Dl(typeof window=="object"&&window)||Dl(typeof self=="object"&&self)||Dl(typeof CA=="object"&&CA)||Dl(typeof CA=="object"&&CA)||function(){return this}()||Function("return this")(),Hl={},yr=function(r){try{return!!r()}catch(e){return!0}},LD=yr,Di=!LD(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),QD=yr,_h=!QD(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),ND=_h,Lh=Function.prototype.call,hn=ND?Lh.bind(Lh):function(){return Lh.apply(Lh,arguments)},tx={},rx={}.propertyIsEnumerable,nx=Object.getOwnPropertyDescriptor,RD=nx&&!rx.call({1:2},1);tx.f=RD?function(e){var t=nx(this,e);return!!t&&t.enumerable}:rx;var Mm=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}},ix=_h,Ax=Function.prototype,jm=Ax.call,OD=ix&&Ax.bind.bind(jm,jm),br=ix?OD:function(r){return function(){return jm.apply(r,arguments)}},ax=br,kD=ax({}.toString),PD=ax("".slice),pa=function(r){return PD(kD(r),8,-1)},DD=br,HD=yr,MD=pa,Km=Object,jD=DD("".split),sx=HD(function(){return!Km("z").propertyIsEnumerable(0)})?function(r){return MD(r)==="String"?jD(r,""):Km(r)}:Km,Qh=function(r){return r==null},KD=Qh,VD=TypeError,Hi=function(r){if(KD(r))throw new VD("Can't call method on "+r);return r},zD=sx,$D=Hi,Ml=function(r){return zD($D(r))},Vm=typeof document=="object"&&document.all,Br=typeof Vm=="undefined"&&Vm!==void 0?function(r){return typeof r=="function"||r===Vm}:function(r){return typeof r=="function"},GD=Br,Kn=function(r){return typeof r=="object"?r!==null:GD(r)},zm=hr,WD=Br,qD=function(r){return WD(r)?r:void 0},As=function(r,e){return arguments.length<2?qD(zm[r]):zm[r]&&zm[r][e]},XD=br,Nh=XD({}.isPrototypeOf),YD=hr,ox=YD.navigator,lx=ox&&ox.userAgent,jl=lx?String(lx):"",ux=hr,$m=jl,cx=ux.process,hx=ux.Deno,fx=cx&&cx.versions||hx&&hx.version,dx=fx&&fx.v8,Mi,Rh;dx&&(Mi=dx.split("."),Rh=Mi[0]>0&&Mi[0]<4?1:+(Mi[0]+Mi[1])),!Rh&&$m&&(Mi=$m.match(/Edge\/(\d+)/),(!Mi||Mi[1]>=74)&&(Mi=$m.match(/Chrome\/(\d+)/),Mi&&(Rh=+Mi[1])));var Gm=Rh,px=Gm,JD=yr,ZD=hr,eH=ZD.String,gx=!!Object.getOwnPropertySymbols&&!JD(function(){var r=Symbol("symbol detection");return!eH(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&px&&px<41}),tH=gx,mx=tH&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rH=As,nH=Br,iH=Nh,AH=mx,aH=Object,vx=AH?function(r){return typeof r=="symbol"}:function(r){var e=rH("Symbol");return nH(e)&&iH(e.prototype,aH(r))},sH=String,Oh=function(r){try{return sH(r)}catch(e){return"Object"}},oH=Br,lH=Oh,uH=TypeError,ga=function(r){if(oH(r))return r;throw new uH(lH(r)+" is not a function")},cH=ga,hH=Qh,lo=function(r,e){var t=r[e];return hH(t)?void 0:cH(t)},Wm=hn,qm=Br,Xm=Kn,fH=TypeError,dH=function(r,e){var t,n;if(e==="string"&&qm(t=r.toString)&&!Xm(n=Wm(t,r))||qm(t=r.valueOf)&&!Xm(n=Wm(t,r))||e!=="string"&&qm(t=r.toString)&&!Xm(n=Wm(t,r)))return n;throw new fH("Can't convert object to primitive value")},wx={exports:{}},yx=hr,pH=Object.defineProperty,Ym=function(r,e){try{pH(yx,r,{value:e,configurable:!0,writable:!0})}catch(t){yx[r]=e}return e},gH=hr,mH=Ym,bx="__core-js_shared__",Bx=wx.exports=gH[bx]||mH(bx,{});(Bx.versions||(Bx.versions=[])).push({version:"3.50.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.50.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Jm=wx.exports,xx=Jm,vH=Object.create||Object,Zm=function(r,e){return xx[r]||(xx[r]=e||vH(null))},wH=Hi,yH=Object,kh=function(r){return yH(wH(r))},bH=br,BH=kh,xH=bH({}.hasOwnProperty),ji=Object.hasOwn||function(e,t){return xH(BH(e),t)},CH=br,EH=0,SH=Math.random(),FH=CH(1.1.toString),Cx=function(r){return"Symbol("+(r===void 0?"":r)+")_"+FH(++EH+SH,36)},IH=hr,UH=Zm,Ex=ji,TH=Cx,_H=gx,LH=mx,uo=IH.Symbol,e0=UH("wks"),QH=LH?uo.for||uo:uo&&uo.withoutSetter||TH,Zr=function(r){return Ex(e0,r)||(e0[r]=_H&&Ex(uo,r)?uo[r]:QH("Symbol."+r)),e0[r]},NH=hn,Sx=Kn,Fx=vx,RH=lo,OH=dH,kH=Zr,PH=TypeError,DH=kH("toPrimitive"),HH=function(r,e){if(!Sx(r)||Fx(r))return r;var t=RH(r,DH),n;if(t){if(e===void 0&&(e="default"),n=NH(t,r,e),!Sx(n)||Fx(n))return n;throw new PH("Can't convert object to primitive value")}return e===void 0&&(e="number"),OH(r,e)},MH=HH,jH=vx,Ix=function(r){var e=MH(r,"string");return jH(e)?e:e+""},KH=hr,Ux=Kn,t0=KH.document,VH=Ux(t0)&&Ux(t0.createElement),Ph=function(r){return VH?t0.createElement(r):{}},zH=Di,$H=yr,GH=Ph,Tx=!zH&&!$H(function(){return Object.defineProperty(GH("div"),"a",{get:function(){return 7}}).a!==7}),WH=Di,qH=hn,XH=tx,YH=Mm,JH=Ml,ZH=Ix,eM=ji,tM=Tx,_x=Object.getOwnPropertyDescriptor;Hl.f=WH?_x:function(e,t){if(e=JH(e),t=ZH(t),tM)try{return _x(e,t)}catch(n){}if(eM(e,t))return YH(!qH(XH.f,e,t),e[t])};var _A={},rM=Di,nM=yr,Lx=rM&&nM(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),iM=Kn,AM=String,aM=TypeError,Ln=function(r){if(iM(r))return r;throw new aM(AM(r)+" is not an object")},sM=Di,oM=Tx,lM=Lx,Dh=Ln,Qx=Ix,uM=TypeError,r0=Object.defineProperty,cM=Object.getOwnPropertyDescriptor,n0="enumerable",i0="configurable",A0="writable";_A.f=sM?lM?function(e,t,n){if(Dh(e),t=Qx(t),Dh(n),typeof e=="function"&&t==="prototype"&&"value"in n&&A0 in n&&!n[A0]){var i=cM(e,t);i&&i[A0]&&(e[t]=n.value,n={configurable:i0 in n?n[i0]:i[i0],enumerable:n0 in n?n[n0]:i[n0],writable:!1})}return r0(e,t,n)}:r0:function(e,t,n){if(Dh(e),t=Qx(t),Dh(n),oM)try{return r0(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new uM("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var hM=Di,fM=_A,dM=Mm,Kl=hM?function(r,e,t){return fM.f(r,e,dM(1,t))}:function(r,e,t){return r[e]=t,r},Nx={exports:{}},a0=Di,pM=ji,Rx=Function.prototype,gM=a0&&Object.getOwnPropertyDescriptor,Ox=pM(Rx,"name"),mM=Ox&&function(){}.name==="something",vM=Ox&&(!a0||a0&&gM(Rx,"name").configurable),Hh={PROPER:mM,CONFIGURABLE:vM},wM=br,yM=Br,s0=Jm,bM=wM(Function.toString);yM(s0.inspectSource)||(s0.inspectSource=function(r){return bM(r)});var o0=s0.inspectSource,BM=hr,xM=Br,kx=BM.WeakMap,CM=xM(kx)&&/native code/.test(String(kx)),EM=Zm,SM=Cx,Px=EM("keys"),l0=function(r){return Px[r]||(Px[r]=SM(r))},u0={},FM=CM,Dx=hr,IM=Kn,UM=Kl,c0=ji,h0=Jm,TM=l0,_M=u0,Hx="Object already initialized",f0=Dx.TypeError,LM=Dx.WeakMap,Mh,Vl,jh,QM=function(r){return jh(r)?Vl(r):Mh(r,{})},NM=function(r){return function(e){var t;if(!IM(e)||(t=Vl(e)).type!==r)throw new f0("Incompatible receiver, "+r+" required");return t}};if(FM||h0.state){var lA=h0.state||(h0.state=new LM);lA.get=lA.get,lA.has=lA.has,lA.set=lA.set,Mh=function(r,e){if(lA.has(r))throw new f0(Hx);return e.facade=r,lA.set(r,e),e},Vl=function(r){return lA.get(r)||{}},jh=function(r){return lA.has(r)}}else{var co=TM("state");_M[co]=!0,Mh=function(r,e){if(c0(r,co))throw new f0(Hx);return e.facade=r,UM(r,co,e),e},Vl=function(r){return c0(r,co)?r[co]:{}},jh=function(r){return c0(r,co)}}var Kh={set:Mh,get:Vl,has:jh,enforce:QM,getterFor:NM},d0=br,RM=yr,OM=Br,Vh=ji,p0=Di,kM=Hh.CONFIGURABLE,PM=o0,Mx=Kh,DM=Mx.enforce,HM=Mx.get,jx=String,zh=Object.defineProperty,MM=d0("".slice),jM=d0("".replace),KM=d0([].join),VM=p0&&!RM(function(){return zh(function(){},"length",{value:8}).length!==8}),zM=String(String).split("String"),$M=Nx.exports=function(r,e,t){MM(jx(e),0,7)==="Symbol("&&(e="["+jM(jx(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!Vh(r,"name")||kM&&r.name!==e)&&(p0?zh(r,"name",{value:e,configurable:!0}):r.name=e),VM&&t&&Vh(t,"arity")&&r.length!==t.arity&&zh(r,"length",{value:t.arity});try{t&&Vh(t,"constructor")&&t.constructor?p0&&zh(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(i){}var n=DM(r);return Vh(n,"source")||(n.source=KM(zM,typeof e=="string"?e:"")),r};Function.prototype.toString=$M(function(){return OM(this)&&HM(this).source||PM(this)},"toString");var Kx=Nx.exports,GM=Br,WM=_A,qM=Kx,XM=Ym,as=function(r,e,t,n){n||(n={});var i=n.enumerable,A=n.name!==void 0?n.name:e;if(GM(t)&&qM(t,A,n),n.global)i?r[e]=t:XM(e,t);else{try{n.unsafe?r[e]&&(i=!0):delete r[e]}catch(a){}i?r[e]=t:WM.f(r,e,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return r},Vx={},YM=Math.ceil,JM=Math.floor,ZM=Math.trunc||function(e){var t=+e;return(t>0?JM:YM)(t)},e7=ZM,$h=function(r){var e=+r;return e!==e||e===0?0:e7(e)},t7=$h,r7=Math.max,n7=Math.min,i7=function(r,e){var t=t7(r);return t<0?r7(t+e,0):n7(t,e)},A7=$h,a7=Math.min,ho=function(r){var e=A7(r);return e>0?a7(e,9007199254740991):0},s7=ho,g0=function(r){return s7(r.length)},o7=Ml,l7=i7,u7=g0,c7=function(r){return function(e,t,n){var i=o7(e),A=u7(i);if(A===0)return!r&&-1;var a=l7(n,A),s;if(r&&t!==t){for(;A>a;)if(s=i[a++],s!==s)return!0}else for(;A>a;a++)if((r||a in i)&&i[a]===t)return r||a||0;return!r&&-1}},zx={indexOf:c7(!1)},h7=br,m0=ji,f7=Ml,d7=zx.indexOf,p7=u0,$x=h7([].push),Gx=function(r,e){var t=f7(r),n=0,i=[],A;for(A in t)!m0(p7,A)&&m0(t,A)&&$x(i,A);for(;e.length>n;)m0(t,A=e[n++])&&(~d7(i,A)||$x(i,A));return i},v0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g7=Gx,m7=v0,v7=m7.concat("length","prototype");Vx.f=Object.getOwnPropertyNames||function(e){return g7(e,v7)};var Wx={};Wx.f=Object.getOwnPropertySymbols;var w7=As,y7=br,b7=Vx,B7=Wx,x7=Ln,C7=y7([].concat),E7=w7("Reflect","ownKeys")||function(e){var t=b7.f(x7(e)),n=B7.f;return n?C7(t,n(e)):t},qx=ji,S7=E7,F7=Hl,I7=_A,U7=function(r,e,t){for(var n=S7(e),i=I7.f,A=F7.f,a=0;a<n.length;a++){var s=n[a];!qx(r,s)&&!(t&&qx(t,s))&&i(r,s,A(e,s))}},T7=yr,_7=Br,L7=/#|\.prototype\./,zl=function(r,e){var t=N7[Q7(r)];return t===O7?!0:t===R7?!1:_7(e)?T7(e):!!e},Q7=zl.normalize=function(r){return String(r).replace(L7,".").toLowerCase()},N7=zl.data={},R7=zl.NATIVE="N",O7=zl.POLYFILL="P",Xx=zl,Gh=hr,k7=Hl.f,P7=Kl,D7=as,H7=Ym,M7=U7,j7=Xx,Qn=function(r,e){var t=r.target,n=r.global,i=r.stat,A,a,s,o,l,u;if(n?a=Gh:i?a=Gh[t]||H7(t,{}):a=Gh[t]&&Gh[t].prototype,a)for(s in e){if(l=e[s],r.dontCallGetSet?(u=k7(a,s),o=u&&u.value):o=a[s],A=j7(n?s:t+(i?".":"#")+s,r.forced),!A&&o!==void 0){if(typeof l==typeof o)continue;M7(l,o)}(r.sham||o&&o.sham)&&P7(l,"sham",!0),D7(a,s,l,r)}},$l=hr,K7=jl,V7=pa,Wh=function(r){return K7.slice(0,r.length)===r},Yx=function(){return Wh("Bun/")?"BUN":Wh("Cloudflare-Workers")?"CLOUDFLARE":Wh("Deno/")?"DENO":Wh("Node.js/")?"NODE":$l.Bun&&typeof Bun.version=="string"?"BUN":$l.Deno&&typeof Deno.version=="object"?"DENO":V7($l.process)==="process"?"NODE":$l.window&&$l.document?"BROWSER":"REST"}(),z7=Yx,qh=z7==="NODE",$7=hr,G7=$7,W7=br,q7=ga,X7=function(r,e,t){try{return W7(q7(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(n){}},Y7=Kn,J7=function(r){return Y7(r)||r===null},Z7=J7,e9=String,t9=TypeError,r9=function(r){if(Z7(r))return r;throw new t9("Can't set "+e9(r)+" as a prototype")},n9=X7,i9=Kn,A9=Hi,a9=r9,Jx=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=n9(Object.prototype,"__proto__","set"),t(e,[]),r=e instanceof Array}catch(n){}return function(i,A){return A9(i),a9(A),i9(i)&&(r?t(i,A):i.__proto__=A),i}}():void 0),s9=_A.f,o9=ji,l9=Zr,Zx=l9("toStringTag"),Xh=function(r,e,t){r&&!t&&(r=r.prototype),r&&!o9(r,Zx)&&s9(r,Zx,{configurable:!0,value:e})},eC=Kx,u9=_A,c9=function(r,e,t){return t.get&&eC(t.get,e,{getter:!0}),t.set&&eC(t.set,e,{setter:!0}),u9.f(r,e,t)},h9=As,f9=c9,d9=Zr,p9=Di,tC=d9("species"),g9=function(r){var e=h9(r);p9&&e&&!e[tC]&&f9(e,tC,{configurable:!0,get:function(){return this}})},m9=Nh,v9=TypeError,w9=function(r,e){if(m9(e,r))return r;throw new v9("Incorrect invocation")},y9=Zr,b9=y9("toStringTag"),rC={};rC[b9]="z";var B9=String(rC)==="[object z]",x9=B9,C9=Br,Yh=pa,E9=Zr,S9=E9("toStringTag"),F9=Object,I9=Yh(function(){return arguments}())==="Arguments",U9=function(r,e){try{return r[e]}catch(t){}},nC=x9?Yh:function(r){var e,t,n;return r===void 0?"Undefined":r===null?"Null":typeof(t=U9(e=F9(r),S9))=="string"?t:I9?Yh(e):(n=Yh(e))==="Object"&&C9(e.callee)?"Arguments":n},T9=br,_9=yr,iC=Br,L9=nC,Q9=As,N9=o0,AC=function(){},aC=Q9("Reflect","construct"),w0=/^\s*(?:class|function)\b/,R9=T9(w0.exec),O9=!w0.test(AC),Gl=function(e){if(!iC(e))return!1;try{return aC(AC,[],e),!0}catch(t){return!1}},sC=function(e){if(!iC(e))return!1;switch(L9(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return O9||!!R9(w0,N9(e))}catch(t){return!0}};sC.sham=!0;var k9=!aC||_9(function(){var r;return Gl(Gl.call)||!Gl(Object)||!Gl(function(){r=!0})||r})?sC:Gl,P9=k9,D9=Oh,H9=TypeError,M9=function(r){if(P9(r))return r;throw new H9(D9(r)+" is not a constructor")},oC=Ln,j9=M9,K9=Qh,V9=Zr,z9=V9("species"),lC=function(r,e){var t=oC(r).constructor,n;return t===void 0||K9(n=oC(t)[z9])?e:j9(n)},$9=_h,uC=Function.prototype,cC=uC.apply,hC=uC.call,fC=typeof Reflect=="object"&&Reflect.apply||($9?hC.bind(cC):function(){return hC.apply(cC,arguments)}),G9=pa,W9=br,Jh=function(r){if(G9(r)==="Function")return W9(r)},dC=Jh,q9=ga,X9=_h,Y9=dC(dC.bind),y0=function(r,e){return q9(r),e===void 0?r:X9?Y9(r,e):function(){return r.apply(e,arguments)}},J9=As,pC=J9("document","documentElement"),Z9=br,ej=Z9([].slice),tj=TypeError,rj=function(r,e){if(r<e)throw new tj("Not enough arguments");return r},gC=jl,mC=/ipad|iphone|ipod/i.test(gC)&&/applewebkit/i.test(gC),ri=hr,nj=fC,ij=y0,vC=Br,Aj=ji,wC=yr,yC=pC,aj=ej,bC=Ph,sj=rj,oj=mC,lj=qh,b0=ri.setImmediate,BC=ri.clearImmediate,uj=ri.process,B0=ri.Dispatch,cj=ri.Function,xC=ri.MessageChannel,hj=ri.String,x0=0,Wl={},CC="onreadystatechange",ql,ss,C0,E0;wC(function(){ql=ri.location});var S0=function(r){if(Aj(Wl,r)){var e=Wl[r];delete Wl[r],e()}},F0=function(r){return function(){S0(r)}},EC=function(r){S0(r.data)},SC=function(r){ri.postMessage(hj(r),ql.protocol+"//"+ql.host)};(!b0||!BC)&&(b0=function(e){sj(arguments.length,1);var t=vC(e)?e:cj(e),n=aj(arguments,1);return Wl[++x0]=function(){nj(t,void 0,n)},ss(x0),x0},BC=function(e){delete Wl[e]},lj?ss=function(r){uj.nextTick(F0(r))}:B0&&B0.now?ss=function(r){B0.now(F0(r))}:xC&&!oj?(C0=new xC,E0=C0.port2,C0.port1.onmessage=EC,ss=ij(E0.postMessage,E0)):ri.addEventListener&&vC(ri.postMessage)&&!ri.importScripts&&ql&&ql.protocol!=="file:"&&!wC(SC)?(ss=SC,ri.addEventListener("message",EC,!1)):CC in bC("script")?ss=function(r){yC.appendChild(bC("script"))[CC]=function(){yC.removeChild(this),S0(r)}}:ss=function(r){setTimeout(F0(r),0)});var FC={set:b0},IC=hr,fj=Di,dj=Object.getOwnPropertyDescriptor,pj=function(r){if(!fj)return IC[r];var e=dj(IC,r);return e&&e.value},UC=function(){this.head=null,this.tail=null};UC.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 TC=UC,gj=jl,mj=/ipad|iphone|ipod/i.test(gj)&&typeof Pebble!="undefined",vj=jl,wj=/web0s(?!.*chrome)/i.test(vj),fo=hr,yj=pj,_C=y0,I0=FC.set,bj=TC,Bj=mC,xj=mj,Cj=wj,U0=qh,LC=fo.MutationObserver||fo.WebKitMutationObserver,QC=fo.document,NC=fo.process,Zh=fo.Promise,T0=yj("queueMicrotask"),po,_0,L0,ef,RC;if(!T0){var tf=new bj,rf=function(){var r,e;for(U0&&(r=NC.domain)&&r.exit();e=tf.get();)try{e()}catch(t){throw tf.head&&po(),t}r&&r.enter()};!Bj&&!U0&&!Cj&&LC&&QC?(_0=!0,L0=QC.createTextNode(""),new LC(rf).observe(L0,{characterData:!0}),po=function(){L0.data=_0=!_0}):!xj&&Zh&&Zh.resolve?(ef=Zh.resolve(void 0),ef.constructor=Zh,RC=_C(ef.then,ef),po=function(){RC(rf)}):U0?po=function(){NC.nextTick(rf)}:(I0=_C(I0,fo),po=function(){I0(rf)}),T0=function(r){tf.head||po(),tf.add(r)}}var Ej=T0,Sj=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch(t){}},Q0=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}},Fj=hr,nf=Fj.Promise,Ij=hr,Xl=nf,Uj=Br,Tj=Xx,_j=o0,Lj=Zr,OC=Yx,N0=Gm;Xl&&Xl.prototype;var Qj=Lj("species"),R0=!1,kC=Uj(Ij.PromiseRejectionEvent),Nj=Tj("Promise",function(){var r=_j(Xl),e=r!==String(Xl);if(!e&&N0===66)return!0;if(!N0||N0<51||!/native code/.test(r)){var t=new Xl(function(A){A(1)}),n=function(A){A(function(){},function(){})},i=t.constructor={};if(i[Qj]=n,R0=t.then(function(){})instanceof n,!R0)return!0}return!e&&(OC==="BROWSER"||OC==="DENO")&&!kC}),Yl={CONSTRUCTOR:Nj,REJECTION_EVENT:kC,SUBCLASSING:R0},go={},PC=ga,Rj=TypeError,Oj=function(r){var e,t;this.promise=new r(function(n,i){if(e!==void 0||t!==void 0)throw new Rj("Bad Promise constructor");e=n,t=i}),this.resolve=PC(e),this.reject=PC(t)};go.f=function(r){return new Oj(r)};var kj=Qn,Af=qh,ma=hr,Pj=G7,mo=hn,DC=as,HC=Jx,Dj=Xh,Hj=g9,Mj=ga,af=Br,jj=Kn,Kj=w9,Vj=lC,MC=FC.set,O0=Ej,zj=Sj,$j=Q0,Gj=TC,jC=Kh,sf=nf,k0=Yl,KC=go,of="Promise",VC=k0.CONSTRUCTOR,Wj=k0.REJECTION_EVENT,qj=k0.SUBCLASSING,P0=jC.getterFor(of),Xj=jC.set,vo=sf&&sf.prototype,os=sf,lf=vo,zC=ma.TypeError,D0=ma.document,H0=ma.process,M0=KC.f,Yj=M0,Jj=!!(D0&&D0.createEvent&&ma.dispatchEvent),$C="unhandledrejection",Zj="rejectionhandled",GC=0,WC=1,eK=2,j0=1,qC=2,uf,XC,YC,JC,ZC=function(r){var e;return jj(r)&&af(e=r.then)?e:!1},eE=function(r,e){var t=e.value,n=e.state===WC,i=n?r.ok:r.fail,A=r.resolve,a=r.reject,s=r.domain,o,l,u;try{i?(n||(e.rejection===qC&&rK(e),e.rejection=j0),i===!0?o=t:(s&&s.enter(),o=i(t),s&&(s.exit(),u=!0)),o===r.promise?a(new zC("Promise-chain cycle")):(l=ZC(o))?mo(l,o,A,a):A(o)):a(t)}catch(h){s&&!u&&s.exit(),a(h)}},tE=function(r,e){r.notified||(r.notified=!0,O0(function(){for(var t=r.reactions,n;n=t.get();)eE(n,r);r.notified=!1,e&&!r.rejection&&tK(r)}))},rE=function(r,e,t){var n,i;Jj?(n=D0.createEvent("Event"),n.promise=e,n.reason=t,n.initEvent(r,!1,!0),ma.dispatchEvent(n)):n={promise:e,reason:t},!Wj&&(i=ma["on"+r])?i(n):r===$C&&zj("Unhandled promise rejection",t)},tK=function(r){mo(MC,ma,function(){var e=r.facade,t=r.value,n=nE(r),i;if(n&&(i=$j(function(){Af?H0.emit("unhandledRejection",t,e):rE($C,e,t)}),r.rejection=Af||nE(r)?qC:j0,i.error))throw i.value})},nE=function(r){return r.rejection!==j0&&!r.parent},rK=function(r){mo(MC,ma,function(){var e=r.facade;Af?H0.emit("rejectionHandled",e):rE(Zj,e,r.value)})},wo=function(r,e,t){return function(n){r(e,n,t)}},yo=function(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=eK,tE(r,!0))},K0=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new zC("Promise can't be resolved itself");var n=ZC(e);n?O0(function(){var i={done:!1};try{mo(n,e,wo(K0,i,r),wo(yo,i,r))}catch(A){yo(i,A,r)}}):(r.value=e,r.state=WC,tE(r,!1))}catch(i){yo({done:!1},i,r)}}};if(VC&&(os=function(e){Kj(this,lf),Mj(e),mo(uf,this);var t=P0(this);try{e(wo(K0,t),wo(yo,t))}catch(n){yo(t,n)}},lf=os.prototype,uf=function(e){Xj(this,{type:of,done:!1,notified:!1,parent:!1,reactions:new Gj,rejection:!1,state:GC,value:null})},uf.prototype=DC(lf,"then",function(e,t){var n=P0(this),i=M0(Vj(this,os));return n.parent=!0,i.ok=af(e)?e:!0,i.fail=af(t)&&t,i.domain=Af?H0.domain:void 0,n.state===GC?n.reactions.add(i):O0(function(){eE(i,n)}),i.promise}),XC=function(){var r=new uf,e=P0(r);this.promise=r,this.resolve=wo(K0,e),this.reject=wo(yo,e)},KC.f=M0=function(r){return r===os||r===YC?new XC(r):Yj(r)},af(sf)&&vo!==Object.prototype)){JC=vo.then,qj||DC(vo,"then",function(e,t){var n=this;return new os(function(i,A){mo(JC,n,i,A)}).then(e,t)},{unsafe:!0});try{delete vo.constructor}catch(r){}HC&&HC(vo,lf)}kj({global:!0,constructor:!0,wrap:!0,forced:VC},{Promise:os}),YC=Pj.Promise,Dj(os,of,!1),Hj(of);var cf=Object.create?Object.create(null):{},nK=Zr,iK=cf,AK=nK("iterator"),aK=Array.prototype,sK=function(r){return r!==void 0&&(iK.Array===r||aK[AK]===r)},oK=pa,lK=Qh,iE=lo,uK=Zr,AE=uK("iterator"),cK=Array.prototype,aE=function(r){if(!lK(r))return iE(r,AE)||iE(r,"@@iterator")||(oK(r)==="Arguments"?cK[AE]:void 0)},hK=hn,fK=Br,dK=Ln,pK=Oh,gK=aE,mK=TypeError,vK=function(r,e){var t=arguments.length<2?gK(r):e;if(fK(t))return dK(hK(t,r));throw new mK(pK(r)+" is not iterable")},wK=hn,sE=Ln,yK=lo,bK=function(r,e,t){var n,i;sE(r);try{if(n=yK(r,"return"),!n){if(e==="throw")throw t;return t}n=wK(n,r)}catch(A){i=!0,n=A}if(e==="throw")throw t;if(i)throw n;return sE(n),t},BK=y0,xK=hn,CK=Ln,EK=Oh,SK=sK,FK=g0,oE=Nh,IK=vK,UK=aE,lE=bK,TK=TypeError,hf=function(r,e){this.stopped=r,this.result=e},uE=hf.prototype,cE=function(r,e,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),A=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),o=BK(e,n),l,u,h,f,c,g,m,y=function(b){var I=l;return l=void 0,I&&lE(I,"normal"),new hf(!0,b)},p=function(b){return i?(CK(b),s?o(b[0],b[1],y):o(b[0],b[1])):s?o(b,y):o(b)};if(A)l=r.iterator;else if(a)l=r;else{if(u=UK(r),!u)throw new TK(EK(r)+" is not iterable");if(SK(u)){for(h=0,f=FK(r);f>h;h++)if(c=p(r[h]),c&&oE(uE,c))return c;return new hf(!1)}l=IK(r,u)}for(g=A?r.next:l.next;!(m=xK(g,l)).done;){var v=m.value;try{c=p(v)}catch(b){if(l)lE(l,"throw",b);else throw b}if(typeof c=="object"&&c&&oE(uE,c))return c}return new hf(!1)},_K=Zr,hE=_K("iterator"),fE=!1;try{var LK=0,dE={next:function(){return{done:!!LK++}},return:function(){fE=!0}};dE[hE]=function(){return this},Array.from(dE,function(){throw 2})}catch(r){}var QK=function(r,e){try{if(!e&&!fE)return!1}catch(i){return!1}var t=!1;try{var n={};n[hE]=function(){return{next:function(){return{done:t=!0}}}},r(n)}catch(i){}return t},NK=nf,RK=QK,OK=Yl.CONSTRUCTOR,pE=OK||!RK(function(r){NK.all(r).then(void 0,function(){})}),kK=Qn,PK=hn,DK=ga,HK=go,MK=Q0,jK=cE,KK=pE;kK({target:"Promise",stat:!0,forced:KK},{all:function(e){var t=this,n=HK.f(t),i=n.resolve,A=n.reject,a=MK(function(){var s=DK(t.resolve),o=[],l=0,u=1;jK(e,function(h){var f=l++,c=!1;u++,PK(s,t,h).then(function(g){c||(c=!0,o[f]=g,--u||i(o))},A)}),--u||i(o)});return a.error&&A(a.value),n.promise}});var VK=Qn,zK=Yl.CONSTRUCTOR,V0=nf,$K=As,GK=Br,WK=as,gE=V0&&V0.prototype;if(VK({target:"Promise",proto:!0,forced:zK,real:!0},{catch:function(r){return this.then(void 0,r)}}),GK(V0)){var mE=$K("Promise").prototype.catch;gE.catch!==mE&&WK(gE,"catch",mE,{unsafe:!0})}var qK=Qn,XK=hn,YK=ga,JK=go,ZK=Q0,eV=cE,tV=pE;qK({target:"Promise",stat:!0,forced:tV},{race:function(e){var t=this,n=JK.f(t),i=n.reject,A=ZK(function(){var a=YK(t.resolve);eV(e,function(s){XK(a,t,s).then(n.resolve,i)})});return A.error&&i(A.value),n.promise}});var rV=Qn,nV=go,iV=Yl.CONSTRUCTOR;rV({target:"Promise",stat:!0,forced:iV},{reject:function(e){var t=nV.f(this),n=t.reject;return n(e),t.promise}});var AV=Ln,aV=Kn,sV=go,oV=function(r,e){if(AV(r),aV(e)&&e.constructor===r)return e;var t=sV.f(r),n=t.resolve;return n(e),t.promise},lV=Qn,uV=As,cV=Yl.CONSTRUCTOR,hV=oV;uV("Promise"),lV({target:"Promise",stat:!0,forced:cV},{resolve:function(e){return hV(this,e)}});function vE(r,e,t,n,i,A,a){try{var s=r[A](a),o=s.value}catch(l){return void t(l)}s.done?e(o):Promise.resolve(o).then(n,i)}function LA(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var A=r.apply(e,t);function a(o){vE(A,n,i,a,s,"next",o)}function s(o){vE(A,n,i,a,s,"throw",o)}a(void 0)})}}var fV=nC,dV=String,uA=function(r){if(fV(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return dV(r)},pV=Ln,wE=function(){var r=pV(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},z0=yr,gV=hr,$0=gV.RegExp,G0=z0(function(){var r=$0("a","y");return r.lastIndex=2,r.exec("abcd")!==null});G0||z0(function(){return!$0("a","y").sticky});var mV=G0||z0(function(){var r=$0("^r","gy");return r.lastIndex=2,r.exec("str")!==null}),yE={BROKEN_CARET:mV,UNSUPPORTED_Y:G0},bE={},vV=Gx,wV=v0,yV=Object.keys||function(e){return vV(e,wV)},bV=Di,BV=Lx,xV=_A,CV=Ln,EV=Ml,SV=yV;bE.f=bV&&!BV?Object.defineProperties:function(e,t){CV(e);for(var n=EV(t),i=SV(t),A=i.length,a=0,s;A>a;)xV.f(e,s=i[a++],n[s]);return e};var FV=Ln,IV=bE,BE=v0,UV=u0,TV=pC,_V=Ph,LV=l0,xE=">",CE="<",W0="prototype",q0="script",EE=LV("IE_PROTO"),X0=function(){},SE=function(r){return CE+q0+xE+r+CE+"/"+q0+xE},FE=function(r){r.write(SE("")),r.close();var e=r.parentWindow.Object;return r=null,e},QV=function(){var r=_V("iframe"),e="java"+q0+":",t;return r.style.display="none",TV.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(SE("document.F=Object")),t.close(),t.F},ff,df=function(){try{ff=new ActiveXObject("htmlfile")}catch(e){}df=typeof document!="undefined"?document.domain&&ff?FE(ff):QV():FE(ff);for(var r=BE.length;r--;)delete df[W0][BE[r]];return df()};UV[EE]=!0;var Y0=Object.create||function(e,t){var n;return e!==null?(X0[W0]=FV(e),n=new X0,X0[W0]=null,n[EE]=e):n=df(),t===void 0?n:IV.f(n,t)},NV=yr,RV=hr,OV=RV.RegExp,kV=NV(function(){var r=OV(".","s");return!(r.dotAll&&r.test(`
396
+ `)&&r.flags==="s")}),PV=yr,DV=hr,HV=DV.RegExp,MV=PV(function(){var r=HV("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"}),bo=hn,pf=br,jV=uA,KV=wE,VV=yE,zV=Zm,$V=Y0,GV=Kh.get,WV=kV,qV=MV,XV=zV("native-string-replace",String.prototype.replace),gf=RegExp.prototype.exec,J0=gf,YV=pf("".charAt),JV=pf("".indexOf),ZV=pf("".replace),IE=pf("".slice),Z0=function(){var r=/a/,e=/b*/g;return bo(gf,r,"a"),bo(gf,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),UE=VV.BROKEN_CARET,ev=/()??/.exec("")[1]!==void 0,ez=Z0||ev||UE||WV||qV,TE=function(r,e){for(var t=r.groups=$V(null),n=0;n<e.length;n++){var i=e[n];t[i[0]]=r[i[1]]}};ez&&(J0=function(e){var t=this,n=GV(t),i=jV(e),A=n.raw,a,s,o;if(A)return A.lastIndex=t.lastIndex,a=bo(J0,A,i),t.lastIndex=A.lastIndex,a&&n.groups&&TE(a,n.groups),a;var l=n.groups,u=UE&&t.sticky,h=bo(KV,t),f=t.source,c=0,g=i;if(u){h=ZV(h,"y",""),JV(h,"g")===-1&&(h+="g"),g=IE(i,t.lastIndex);var m=t.lastIndex>0&&YV(i,t.lastIndex-1);t.lastIndex>0&&(!t.multiline||t.multiline&&m!==`
397
+ `&&m!=="\r"&&m!=="\u2028"&&m!=="\u2029")&&(f="(?: (?:"+f+"))",g=" "+g,c++),s=new RegExp("^(?:"+f+")",h)}ev&&(s=new RegExp("^"+f+"$(?!\\s)",h)),Z0&&(o=t.lastIndex);var y=bo(gf,u?s:t,g);return u?y?(y.input=i,y[0]=IE(y[0],c),y.index=t.lastIndex,t.lastIndex+=y[0].length):t.lastIndex=0:Z0&&y&&(t.lastIndex=t.global?y.index+y[0].length:o),ev&&y&&y.length>1&&bo(XV,y[0],s,function(){for(var p=1;p<arguments.length-2;p++)arguments[p]===void 0&&(y[p]=void 0)}),y&&l&&TE(y,l),y});var tv=J0,tz=Qn,_E=tv;tz({target:"RegExp",proto:!0,forced:/./.exec!==_E},{exec:_E});var LE=hn,QE=as,rz=tv,NE=yr,RE=Zr,nz=Kl,iz=RE("species"),rv=RegExp.prototype,nv=function(r,e,t,n){var i=RE(r),A=!NE(function(){var l={};return l[i]=function(){return 7},""[r](l)!==7}),a=A&&!NE(function(){var l=!1,u=/a/;if(r==="split"){var h={};h[iz]=function(){return u},u={constructor:h,flags:""},u[i]=/./[i]}return u.exec=function(){return l=!0,null},u[i](""),!l});if(!A||!a||t){var s=/./[i],o=e(i,""[r],function(l,u,h,f,c){var g=u.exec;return g===rz||g===rv.exec?A&&!c?{done:!0,value:LE(s,u,h,f)}:{done:!0,value:LE(l,h,u,f)}:{done:!1}});QE(String.prototype,r,o[0]),QE(rv,i,o[1])}n&&nz(rv[i],"sham",!0)},iv=br,Az=$h,az=uA,sz=Hi,oz=iv("".charAt),OE=iv("".charCodeAt),lz=iv("".slice),uz=function(r){return function(e,t){var n=az(sz(e)),i=Az(t),A=n.length,a,s;return i<0||i>=A?r?"":void 0:(a=OE(n,i),a<55296||a>56319||i+1===A||(s=OE(n,i+1))<56320||s>57343?r?oz(n,i):a:r?lz(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}},cz={charAt:uz(!0)},hz=cz.charAt,Av=function(r,e,t){return e+(t&&hz(r,e).length||1)},fz=hr,dz=yr,kE=fz.RegExp,pz=!dz(function(){var r=!0;try{kE(".","d")}catch(o){r=!1}var e={},t="",n=r?"dgimsy":"gimsy",i=function(o,l){Object.defineProperty(e,o,{get:function(){return t+=l,!0}})},A={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(A.hasIndices="d");for(var a in A)i(a,A[a]);var s=Object.getOwnPropertyDescriptor(kE.prototype,"flags").get.call(e);return s!==n||t!==n}),gz={correct:pz},mz=hn,vz=ji,wz=Nh,PE=gz,yz=wE,bz=RegExp.prototype,mf=PE.correct?function(r){return r.flags}:function(r){return!PE.correct&&wz(bz,r)&&!vz(r,"flags")?mz(yz,r):r.flags},DE=hn,Bz=Ln,xz=Br,Cz=pa,Ez=tv,Sz=TypeError,av=function(r,e){var t=r.exec;if(xz(t)){var n=DE(t,r,e);return n!==null&&Bz(n),n}if(Cz(r)==="RegExp")return DE(Ez,r,e);throw new Sz("RegExp#exec called on incompatible receiver")},Fz=hn,Iz=br,Uz=nv,Tz=Ln,_z=Kn,Lz=ho,vf=uA,Qz=Hi,Nz=lo,Rz=Av,Oz=mf,HE=av,sv=Iz("".indexOf);Uz("match",function(r,e,t){return[function(i){var A=Qz(this),a=_z(i)?Nz(i,r):void 0;if(a)return Fz(a,i,A);var s=vf(A);return new RegExp(i)[r](s)},function(n){var i=Tz(this),A=vf(n),a=t(e,i,A);if(a.done)return a.value;var s=vf(Oz(i));if(!~sv(s,"g"))return HE(i,A);var o=!!~sv(s,"u")||!!~sv(s,"v");i.lastIndex=0;for(var l=[],u=0,h;(h=HE(i,A))!==null;){var f=vf(h[0]);l[u]=f,f===""&&(i.lastIndex=Rz(A,Lz(i.lastIndex),o)),u++}return u===0?null:l}]});var ov=br,kz=kh,Pz=Math.floor,lv=ov("".charAt),Dz=ov("".replace),uv=ov("".slice),Hz=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mz=/\$([$&'`]|\d{1,2})/g,jz=function(r,e,t,n,i,A){var a=t+r.length,s=n.length,o=Mz;return i!==void 0&&(i=kz(i),o=Hz),Dz(A,o,function(l,u){var h;switch(lv(u,0)){case"$":return"$";case"&":return r;case"`":return uv(e,0,t);case"'":return uv(e,a);case"<":h=i[uv(u,1,-1)];break;default:var f=+u;if(f===0)return l;if(f>s){var c=Pz(f/10);return c===0?l:c<=s?n[c-1]===void 0?lv(u,1):n[c-1]+lv(u,1):l}h=n[f-1]}return h===void 0?"":h})},Kz=fC,ME=hn,wf=br,Vz=nv,zz=yr,$z=Ln,Gz=Br,Wz=Kn,qz=$h,Xz=ho,ls=uA,Yz=Hi,Jz=Av,Zz=lo,e$=jz,t$=mf,r$=av,n$=Zr,cv=n$("replace"),i$=Math.max,A$=Math.min,a$=wf([].concat),hv=wf([].push),Bo=wf("".indexOf),jE=wf("".slice),s$=function(r){return r===void 0?r:String(r)},o$=function(){return"a".replace(/./,"$0")==="$0"}(),KE=function(){return/./[cv]?/./[cv]("a","$0")==="":!1}(),l$=!zz(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$<a>")!=="7"});Vz("replace",function(r,e,t){var n=KE?"$":"$0";return[function(A,a){var s=Yz(this),o=Wz(A)?Zz(A,cv):void 0;return o?ME(o,A,s,a):ME(e,ls(s),A,a)},function(i,A){var a=$z(this),s=ls(i),o=Gz(A);o||(A=ls(A));var l=ls(t$(a));if(typeof A=="string"&&!~Bo(A,n)&&!~Bo(A,"$<")&&!~Bo(l,"y")){var u=t(e,a,s,A);if(u.done)return u.value}var h=!!~Bo(l,"g"),f;h&&(f=!!~Bo(l,"u")||!!~Bo(l,"v"),a.lastIndex=0);for(var c=[],g;g=r$(a,s),!(g===null||(hv(c,g),!h));){var m=ls(g[0]);m===""&&(a.lastIndex=Jz(s,Xz(a.lastIndex),f))}for(var y="",p=0,v=0;v<c.length;v++){g=c[v];for(var b=ls(g[0]),I=i$(A$(qz(g.index),s.length),0),N=[],M,O=1;O<g.length;O++)hv(N,s$(g[O]));var P=g.groups;if(o){var _=a$([b],N,I,s);P!==void 0&&hv(_,P),M=ls(Kz(A,void 0,_))}else M=e$(b,s,I,N,P,A);I>=p&&(y+=jE(s,p,I)+M,p=I+b.length)}return y+jE(s,p)}]},!l$||!o$||KE);var u$=Kn,c$=pa,h$=Zr,f$=h$("match"),d$=function(r){var e;return u$(r)&&((e=r[f$])!==void 0?!!e:c$(r)==="RegExp")},p$=d$,g$=TypeError,fv=function(r){if(p$(r))throw new g$("The method doesn't accept regular expressions");return r},m$=Zr,v$=m$("match"),dv=function(r){var e=/./;try{"/./"[r](e)}catch(t){try{return e[v$]=!1,"/./"[r](e)}catch(n){}}return!1},w$=Qn,y$=Jh,b$=Hl.f,B$=ho,VE=uA,x$=fv,C$=Hi,E$=dv,S$=y$("".slice),F$=Math.min,zE=E$("startsWith"),I$=!zE&&!!function(){var r=b$(String.prototype,"startsWith");return r&&!r.writable}();w$({target:"String",proto:!0,forced:!I$&&!zE},{startsWith:function(e){var t=VE(C$(this));x$(e);var n=VE(e),i=B$(F$(arguments.length>1?arguments[1]:void 0,t.length));return S$(t,i,i+n.length)===n}});var U$=Zr,T$=Y0,_$=_A.f,pv=U$("unscopables"),gv=Array.prototype;gv[pv]===void 0&&_$(gv,pv,{configurable:!0,value:T$(null)});var L$=function(r){gv[pv][r]=!0},Q$=yr,N$=!Q$(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),R$=ji,O$=Br,k$=kh,P$=l0,D$=N$,$E=P$("IE_PROTO"),mv=Object,H$=mv.prototype,GE=D$?mv.getPrototypeOf:function(r){var e=k$(r);if(R$(e,$E))return e[$E];var t=e.constructor;return O$(t)&&e instanceof t?t.prototype:e instanceof mv?H$:null},M$=yr,j$=Br,K$=Kn,WE=GE,V$=as,z$=Zr,vv=z$("iterator"),qE=!1,us,wv,yv;[].keys&&(yv=[].keys(),"next"in yv?(wv=WE(WE(yv)),wv!==Object.prototype&&(us=wv)):qE=!0);var $$=!K$(us)||M$(function(){var r={};return us[vv].call(r)!==r});$$&&(us={}),j$(us[vv])||V$(us,vv,function(){return this});var XE={IteratorPrototype:us,BUGGY_SAFARI_ITERATORS:qE},G$=XE.IteratorPrototype,W$=Y0,q$=Mm,X$=Xh,Y$=cf,J$=function(){return this},Z$=function(r,e,t,n){var i=e+" Iterator";return r.prototype=W$(G$,{next:q$(+!n,t)}),X$(r,i,!1),Y$[i]=J$,r},eG=Qn,tG=hn,YE=Hh,rG=Br,nG=Z$,JE=GE,ZE=Jx,iG=Xh,AG=Kl,bv=as,aG=Zr,sG=cf,e4=XE,oG=YE.PROPER,lG=YE.CONFIGURABLE,t4=e4.IteratorPrototype,yf=e4.BUGGY_SAFARI_ITERATORS,Jl=aG("iterator"),r4="keys",Zl="values",n4="entries",uG=function(){return this},cG=function(r,e,t,n,i,A,a){nG(t,e,n);var s=function(p){if(p===i&&f)return f;if(!yf&&p&&p in u)return u[p];switch(p){case r4:return function(){return new t(this,p)};case Zl:return function(){return new t(this,p)};case n4:return function(){return new t(this,p)}}return function(){return new t(this)}},o=e+" Iterator",l=!1,u=r.prototype,h=u[Jl]||u["@@iterator"]||i&&u[i],f=!yf&&h||s(i),c=e==="Array"&&u.entries||h,g,m,y;if(c&&(g=JE(c.call(new r)),g!==Object.prototype&&g.next&&(JE(g)!==t4&&(ZE?ZE(g,t4):rG(g[Jl])||bv(g,Jl,uG)),iG(g,o,!0))),oG&&i===Zl&&h&&h.name!==Zl&&(lG?AG(u,"name",Zl):(l=!0,f=function(){return tG(h,this)})),i)if(m={values:s(Zl),keys:A?f:s(r4),entries:s(n4)},a)for(y in m)(yf||l||!(y in u))&&bv(u,y,m[y]);else eG({target:e,proto:!0,forced:yf||l},m);return u[Jl]!==f&&bv(u,Jl,f,{name:i}),sG[e]=f,m},hG=function(r,e){return{value:r,done:e}},fG=Ml,Bv=L$,i4=cf,A4=Kh,dG=_A.f,pG=cG,bf=hG,gG=Di,a4="Array Iterator",mG=A4.set,vG=A4.getterFor(a4),wG=pG(Array,"Array",function(r,e){mG(this,{type:a4,target:fG(r),index:0,kind:e})},function(){var r=vG(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=null,bf(void 0,!0);switch(r.kind){case"keys":return bf(t,!1);case"values":return bf(e[t],!1)}return bf([t,e[t]],!1)},"values"),s4=i4.Arguments=i4.Array;if(Bv("keys"),Bv("values"),Bv("entries"),gG&&s4.name!=="values")try{dG(s4,"name",{value:"values"})}catch(r){}var yG={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},bG=Ph,xv=bG("span").classList,o4=xv&&xv.constructor&&xv.constructor.prototype,BG=o4===Object.prototype?void 0:o4,l4=hr,u4=yG,xG=BG,eu=wG,c4=Kl,CG=Xh,EG=Zr,Cv=EG("iterator"),Ev=eu.values,h4=function(r,e){if(r){if(r[Cv]!==Ev)try{c4(r,Cv,Ev)}catch(n){r[Cv]=Ev}if(CG(r,e,!0),u4[e]){for(var t in eu)if(r[t]!==eu[t])try{c4(r,t,eu[t])}catch(n){r[t]=eu[t]}}}};for(var Sv in u4)h4(l4[Sv]&&l4[Sv].prototype,Sv);h4(xG,"DOMTokenList");function SG(r,e){if(Ht(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(Ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function FG(r){var e=SG(r,"string");return Ht(e)=="symbol"?e:e+""}function Fv(r,e,t){return(e=FG(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var IG=ga,UG=kh,TG=sx,_G=g0,f4=TypeError,d4="Reduce of empty array with no initial value",LG=function(r){return function(e,t,n,i){var A=UG(e),a=TG(A),s=_G(A);if(IG(t),s===0&&n<2)throw new f4(d4);var o=r?s-1:0,l=r?-1:1;if(n<2)for(;;){if(o in a){i=a[o],o+=l;break}if(o+=l,r?o<0:s<=o)throw new f4(d4)}for(;r?o>=0:s>o;o+=l)o in a&&(i=t(i,a[o],o,A));return i}},QG={left:LG(!1)},NG=yr,p4=function(r,e){var t=[][r];return!!t&&NG(function(){t.call(null,e||function(){return 1},1)})},RG=Qn,OG=QG.left,kG=p4,g4=Gm,PG=qh,DG=!PG&&g4>79&&g4<83,HG=DG||!kG("reduce");RG({target:"Array",proto:!0,forced:HG},{reduce:function(e){var t=arguments.length;return OG(this,e,t,t>1?arguments[1]:void 0)}});var MG=Qn,jG=Jh,KG=Hl.f,VG=ho,m4=uA,zG=fv,$G=Hi,GG=dv,WG=jG("".slice),qG=Math.min,v4=GG("endsWith"),XG=!v4&&!!function(){var r=KG(String.prototype,"endsWith");return r&&!r.writable}();MG({target:"String",proto:!0,forced:!XG&&!v4},{endsWith:function(e){var t=m4($G(this));zG(e);var n=m4(e),i=arguments.length>1?arguments[1]:void 0,A=t.length,a=i===void 0?A:qG(VG(i),A);return WG(t,a-n.length,a)===n}});var Iv=hn,Uv=br,YG=nv,JG=Ln,ZG=Kn,eW=Hi,tW=lC,rW=Av,nW=ho,Tv=uA,iW=lo,AW=mf,w4=av,aW=yE,sW=yr,xo=aW.UNSUPPORTED_Y,oW=4294967295,lW=Math.min,_v=Uv([].push),Lv=Uv("".slice),Bf=Uv("".indexOf),uW=!sW(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"}),y4="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;YG("split",function(r,e,t){var n="0".split(void 0,0).length?function(i,A){return i===void 0&&A===0?[]:Iv(e,this,i,A)}:e;return[function(A,a){var s=eW(this),o=ZG(A)?iW(A,r):void 0;return o?Iv(o,A,s,a):Iv(n,Tv(s),A,a)},function(i,A){var a=JG(this),s=Tv(i);if(!y4){var o=t(n,a,s,A,n!==e);if(o.done)return o.value}var l=tW(a,RegExp),u=Tv(AW(a)),h=!!~Bf(u,"u")||!!~Bf(u,"v");xo?~Bf(u,"g")||(u+="g"):~Bf(u,"y")||(u+="y");var f=new l(xo?"^(?:"+a.source+")":a,u),c=A===void 0?oW:A>>>0;if(c===0)return[];if(s.length===0)return w4(f,s)===null?[s]:[];for(var g=0,m=0,y=[];m<s.length;){f.lastIndex=xo?0:m;var p=w4(f,xo?Lv(s,m):s),v;if(p===null||(v=lW(nW(f.lastIndex+(xo?m:0)),s.length))===g)m=rW(s,m,h);else{if(_v(y,Lv(s,g,m)),y.length===c)return y;for(var b=1;b<=p.length-1;b++)if(_v(y,p[b]),y.length===c)return y;m=g=v}}return _v(y,Lv(s,g)),y}]},y4||!uW,xo);var xf={exports:{}},tu={exports:{}};(function(){var r,e,t,n,i,A;typeof performance!="undefined"&&performance!==null&&performance.now?tu.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(tu.exports=function(){return(r()-i)/1e6},e=process.hrtime,r=function(){var a;return a=e(),a[0]*1e9+a[1]},n=r(),A=process.uptime()*1e9,i=n-A):Date.now?(tu.exports=function(){return Date.now()-t},t=Date.now()):(tu.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(CA);for(var cW=tu.exports,hW=cW,QA=typeof window=="undefined"?CA:window,Cf=["moz","webkit"],Co="AnimationFrame",Eo=QA["request"+Co],ru=QA["cancel"+Co]||QA["cancelRequest"+Co],nu=0;!Eo&&nu<Cf.length;nu++)Eo=QA[Cf[nu]+"Request"+Co],ru=QA[Cf[nu]+"Cancel"+Co]||QA[Cf[nu]+"CancelRequest"+Co];if(!Eo||!ru){var Qv=0,b4=0,cs=[],fW=1e3/60;Eo=function(r){if(cs.length===0){var e=hW(),t=Math.max(0,fW-(e-Qv));Qv=t+e,setTimeout(function(){var n=cs.slice(0);cs.length=0;for(var i=0;i<n.length;i++)if(!n[i].cancelled)try{n[i].callback(Qv)}catch(A){setTimeout(function(){throw A},0)}},Math.round(t))}return cs.push({handle:++b4,callback:r,cancelled:!1}),b4},ru=function(r){for(var e=0;e<cs.length;e++)cs[e].handle===r&&(cs[e].cancelled=!0)}}xf.exports=function(r){return Eo.call(QA,r)},xf.exports.cancel=function(){ru.apply(QA,arguments)},xf.exports.polyfill=function(r){r||(r=QA),r.requestAnimationFrame=Eo,r.cancelAnimationFrame=ru};var dW=xf.exports;const Nv=Ig(dW);var B4=`
398
+ \v\f\r                 \u2028\u2029\uFEFF`,pW=br,gW=Hi,mW=uA,Rv=B4,x4=pW("".replace),vW=RegExp("^["+Rv+"]+"),wW=RegExp("(^|[^"+Rv+"])["+Rv+"]+$"),yW=function(r){return function(e){var t=mW(gW(e));return r&1&&(t=x4(t,vW,"")),r&2&&(t=x4(t,wW,"$1")),t}},bW={trim:yW(3)},BW=Hh.PROPER,xW=yr,C4=B4,E4="​…᠎",CW=function(r){return xW(function(){return!!C4[r]()||E4[r]()!==E4||BW&&C4[r].name!==r})},EW=Qn,SW=bW.trim,FW=CW;EW({target:"String",proto:!0,forced:FW("trim")},{trim:function(){return SW(this)}});var IW=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 i=t[n].re,A=t[n].process,a=i.exec(r);if(a){var s=A(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 f in e)o[o.length]=f;var c=document.createElement("ul");c.setAttribute("id","rgbcolor-examples");for(var l=0;l<o.length;l++)try{var g=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 p=document.createTextNode(" "+o[l]+" -> "+m.toRGB()+" -> "+m.toHex());g.appendChild(y),g.appendChild(p),c.appendChild(g)}catch(b){}return c}};const Ov=Ig(IW);var UW=Qn,TW=Jh,_W=zx.indexOf,LW=p4,kv=TW([].indexOf),S4=!!kv&&1/kv([1],1,-0)<0,QW=S4||!LW("indexOf");UW({target:"Array",proto:!0,forced:QW},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return S4?kv(this,e,t)||0:_W(this,e,t)}});var NW=Qn,RW=br,OW=fv,kW=Hi,F4=uA,PW=dv,DW=RW("".indexOf);NW({target:"String",proto:!0,forced:!PW("includes")},{includes:function(e){return!!~DW(F4(kW(this)),F4(OW(e)),arguments.length>1?arguments[1]:void 0)}});var HW=pa,MW=Array.isArray||function(e){return HW(e)==="Array"},jW=Qn,KW=br,VW=MW,zW=KW([].reverse),I4=[1,2];jW({target:"Array",proto:!0,forced:String(I4)===String(I4.reverse())},{reverse:function(){return VW(this)&&(this.length=this.length),zW(this)}});/*! *****************************************************************************
399
+ Copyright (c) Microsoft Corporation.
400
+
401
+ Permission to use, copy, modify, and/or distribute this software for any
402
+ purpose with or without fee is hereby granted.
403
+
404
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
405
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
406
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
407
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
408
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
409
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
410
+ PERFORMANCE OF THIS SOFTWARE.
411
+ ***************************************************************************** */var U4=function(r,e){return(U4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(r,e)};function T4(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}U4(r,e),r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function $W(r){var e="";Array.isArray(r)||(r=[r]);for(var t=0;t<r.length;t++){var n=r[t];if(n.type===Ve.CLOSE_PATH)e+="z";else if(n.type===Ve.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Ve.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Ve.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Ve.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Ve.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Ve.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Ve.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Ve.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Ve.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 Pv(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 Ki(){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 va=Math.PI;function Dv(r,e,t){r.lArcFlag=r.lArcFlag===0?0:1,r.sweepFlag=r.sweepFlag===0?0:1;var n=r.rX,i=r.rY,A=r.x,a=r.y;n=Math.abs(r.rX),i=Math.abs(r.rY);var s=Pv([(e-A)/2,(t-a)/2],-r.xRot/180*va),o=s[0],l=s[1],u=Math.pow(o,2)/Math.pow(n,2)+Math.pow(l,2)/Math.pow(i,2);1<u&&(n*=Math.sqrt(u),i*=Math.sqrt(u)),r.rX=n,r.rY=i;var h=Math.pow(n,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(o,2),f=(r.lArcFlag!==r.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-h)/h)),c=n*l/i*f,g=-i*o/n*f,m=Pv([c,g],r.xRot/180*va);r.cX=m[0]+(e+A)/2,r.cY=m[1]+(t+a)/2,r.phi1=Math.atan2((l-g)/i,(o-c)/n),r.phi2=Math.atan2((-l-g)/i,(-o-c)/n),r.sweepFlag===0&&r.phi2>r.phi1&&(r.phi2-=2*va),r.sweepFlag===1&&r.phi2<r.phi1&&(r.phi2+=2*va),r.phi1*=180/va,r.phi2*=180/va}function _4(r,e,t){Ki(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 i=Math.sqrt(n);return[[(r*t+e*i)/(r*r+e*e),(e*t-r*i)/(r*r+e*e)],[(r*t-e*i)/(r*r+e*e),(e*t+r*i)/(r*r+e*e)]]}var jr,NA=Math.PI/180;function L4(r,e,t){return(1-t)*r+t*e}function Q4(r,e,t,n){return r+Math.cos(n/180*va)*e+Math.sin(n/180*va)*t}function N4(r,e,t,n){var i=1e-6,A=e-r,a=t-e,s=3*A+3*(n-t)-6*a,o=6*(a-A),l=3*A;return Math.abs(s)<i?[-l/o]:function(u,h,f){var c=u*u/4-h;if(c<-f)return[];if(c<=f)return[-u/2];var g=Math.sqrt(c);return[-u/2-g,-u/2+g]}(o/s,l/s,i)}function R4(r,e,t,n,i){var A=1-i;return r*(A*A*A)+e*(3*A*A*i)+t*(3*A*i*i)+n*(i*i*i)}(function(r){function e(){return i(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 i(function(h,f,c){return h.type&Ve.SMOOTH_CURVE_TO&&(h.type=Ve.CURVE_TO,s=isNaN(s)?f:s,o=isNaN(o)?c:o,h.x1=h.relative?f-s:2*f-s,h.y1=h.relative?c-o:2*c-o),h.type&Ve.CURVE_TO?(s=h.relative?f+h.x2:h.x2,o=h.relative?c+h.y2:h.y2):(s=NaN,o=NaN),h.type&Ve.SMOOTH_QUAD_TO&&(h.type=Ve.QUAD_TO,l=isNaN(l)?f:l,u=isNaN(u)?c:u,h.x1=h.relative?f-l:2*f-l,h.y1=h.relative?c-u:2*c-u),h.type&Ve.QUAD_TO?(l=h.relative?f+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 i(function(l,u,h){if(l.type&Ve.SMOOTH_QUAD_TO&&(l.type=Ve.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&Ve.QUAD_TO){s=l.relative?u+l.x1:l.x1,o=l.relative?h+l.y1:l.y1;var f=l.x1,c=l.y1;l.type=Ve.CURVE_TO,l.x1=((l.relative?0:u)+2*f)/3,l.y1=((l.relative?0:h)+2*c)/3,l.x2=(l.x+2*f)/3,l.y2=(l.y+2*c)/3}else s=NaN,o=NaN;return l})}function i(s){var o=0,l=0,u=NaN,h=NaN;return function(f){if(isNaN(u)&&!(f.type&Ve.MOVE_TO))throw new Error("path must start with moveto");var c=s(f,o,l,u,h);return f.type&Ve.CLOSE_PATH&&(o=u,l=h),f.x!==void 0&&(o=f.relative?o+f.x:f.x),f.y!==void 0&&(l=f.relative?l+f.y:f.y),f.type&Ve.MOVE_TO&&(u=o,h=l),c}}function A(s,o,l,u,h,f){return Ki(s,o,l,u,h,f),i(function(c,g,m,y){var p=c.x1,v=c.x2,b=c.relative&&!isNaN(y),I=c.x!==void 0?c.x:b?0:g,N=c.y!==void 0?c.y:b?0:m;function M(x){return x*x}c.type&Ve.HORIZ_LINE_TO&&o!==0&&(c.type=Ve.LINE_TO,c.y=c.relative?0:m),c.type&Ve.VERT_LINE_TO&&l!==0&&(c.type=Ve.LINE_TO,c.x=c.relative?0:g),c.x!==void 0&&(c.x=c.x*s+N*l+(b?0:h)),c.y!==void 0&&(c.y=I*o+c.y*u+(b?0:f)),c.x1!==void 0&&(c.x1=c.x1*s+c.y1*l+(b?0:h)),c.y1!==void 0&&(c.y1=p*o+c.y1*u+(b?0:f)),c.x2!==void 0&&(c.x2=c.x2*s+c.y2*l+(b?0:h)),c.y2!==void 0&&(c.y2=v*o+c.y2*u+(b?0:f));var O=s*u-o*l;if(c.xRot!==void 0&&(s!==1||o!==0||l!==0||u!==1))if(O===0)delete c.rX,delete c.rY,delete c.xRot,delete c.lArcFlag,delete c.sweepFlag,c.type=Ve.LINE_TO;else{var P=c.xRot*Math.PI/180,_=Math.sin(P),G=Math.cos(P),D=1/M(c.rX),S=1/M(c.rY),K=M(G)*D+M(_)*S,F=2*_*G*(D-S),ee=M(_)*D+M(G)*S,Z=K*u*u-F*o*u+ee*o*o,z=F*(s*u+o*l)-2*(K*l*u+ee*s*o),oe=K*l*l-F*s*l+ee*s*s,W=(Math.atan2(z,Z-oe)+Math.PI)%Math.PI/2,ce=Math.sin(W),ie=Math.cos(W);c.rX=Math.abs(O)/Math.sqrt(Z*M(ie)+z*ce*ie+oe*M(ce)),c.rY=Math.abs(O)/Math.sqrt(Z*M(ce)-z*ce*ie+oe*M(ie)),c.xRot=180*W/Math.PI}return c.sweepFlag!==void 0&&0>O&&(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),Ki(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 i(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),i(function(u,h,f,c,g){if(isNaN(c)&&!(u.type&Ve.MOVE_TO))throw new Error("path must start with moveto");return o&&u.type&Ve.HORIZ_LINE_TO&&(u.type=Ve.LINE_TO,u.y=u.relative?0:f),l&&u.type&Ve.VERT_LINE_TO&&(u.type=Ve.LINE_TO,u.x=u.relative?0:h),s&&u.type&Ve.CLOSE_PATH&&(u.type=Ve.LINE_TO,u.x=u.relative?c-h:c,u.y=u.relative?g-f:g),u.type&Ve.ARC&&(u.rX===0||u.rY===0)&&(u.type=Ve.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=i,r.SANITIZE=function(s){s===void 0&&(s=0),Ki(s);var o=NaN,l=NaN,u=NaN,h=NaN;return i(function(f,c,g,m,y){var p=Math.abs,v=!1,b=0,I=0;if(f.type&Ve.SMOOTH_CURVE_TO&&(b=isNaN(o)?0:c-o,I=isNaN(l)?0:g-l),f.type&(Ve.CURVE_TO|Ve.SMOOTH_CURVE_TO)?(o=f.relative?c+f.x2:f.x2,l=f.relative?g+f.y2:f.y2):(o=NaN,l=NaN),f.type&Ve.SMOOTH_QUAD_TO?(u=isNaN(u)?c:2*c-u,h=isNaN(h)?g:2*g-h):f.type&Ve.QUAD_TO?(u=f.relative?c+f.x1:f.x1,h=f.relative?g+f.y1:f.y2):(u=NaN,h=NaN),f.type&Ve.LINE_COMMANDS||f.type&Ve.ARC&&(f.rX===0||f.rY===0||!f.lArcFlag)||f.type&Ve.CURVE_TO||f.type&Ve.SMOOTH_CURVE_TO||f.type&Ve.QUAD_TO||f.type&Ve.SMOOTH_QUAD_TO){var N=f.x===void 0?0:f.relative?f.x:f.x-c,M=f.y===void 0?0:f.relative?f.y:f.y-g;b=isNaN(u)?f.x1===void 0?b:f.relative?f.x:f.x1-c:u-c,I=isNaN(h)?f.y1===void 0?I:f.relative?f.y:f.y1-g:h-g;var O=f.x2===void 0?0:f.relative?f.x:f.x2-c,P=f.y2===void 0?0:f.relative?f.y:f.y2-g;p(N)<=s&&p(M)<=s&&p(b)<=s&&p(I)<=s&&p(O)<=s&&p(P)<=s&&(v=!0)}return f.type&Ve.CLOSE_PATH&&p(c-m)<=s&&p(g-y)<=s&&(v=!0),v?[]:f})},r.MATRIX=A,r.ROTATE=function(s,o,l){o===void 0&&(o=0),l===void 0&&(l=0),Ki(s,o,l);var u=Math.sin(s),h=Math.cos(s);return A(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),Ki(s,o),A(1,0,0,1,s,o)},r.SCALE=function(s,o){return o===void 0&&(o=s),Ki(s,o),A(s,0,0,o,0,0)},r.SKEW_X=function(s){return Ki(s),A(1,0,Math.atan(s),1,0,0)},r.SKEW_Y=function(s){return Ki(s),A(1,Math.atan(s),0,1,0,0)},r.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Ki(s),A(-1,0,0,1,s,0)},r.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Ki(s),A(1,0,0,-1,0,s)},r.A_TO_C=function(){return i(function(s,o,l){return Ve.ARC===s.type?function(u,h,f){var c,g,m,y;u.cX||Dv(u,h,f);for(var p=Math.min(u.phi1,u.phi2),v=Math.max(u.phi1,u.phi2)-p,b=Math.ceil(v/90),I=new Array(b),N=h,M=f,O=0;O<b;O++){var P=L4(u.phi1,u.phi2,O/b),_=L4(u.phi1,u.phi2,(O+1)/b),G=_-P,D=4/3*Math.tan(G*NA/4),S=[Math.cos(P*NA)-D*Math.sin(P*NA),Math.sin(P*NA)+D*Math.cos(P*NA)],K=S[0],F=S[1],ee=[Math.cos(_*NA),Math.sin(_*NA)],Z=ee[0],z=ee[1],oe=[Z+D*Math.sin(_*NA),z-D*Math.cos(_*NA)],W=oe[0],ce=oe[1];I[O]={relative:u.relative,type:Ve.CURVE_TO};var ie=function(x,H){var V=Pv([x*u.rX,H*u.rY],u.xRot),q=V[0],$=V[1];return[u.cX+q,u.cY+$]};c=ie(K,F),I[O].x1=c[0],I[O].y1=c[1],g=ie(W,ce),I[O].x2=g[0],I[O].y2=g[1],m=ie(Z,z),I[O].x=m[0],I[O].y=m[1],u.relative&&(I[O].x1-=N,I[O].y1-=M,I[O].x2-=N,I[O].y2-=M,I[O].x-=N,I[O].y-=M),N=(y=[I[O].x,I[O].y])[0],M=y[1]}return I}(s,s.relative?0:o,s.relative?0:l):s})},r.ANNOTATE_ARCS=function(){return i(function(s,o,l){return s.relative&&(o=0,l=0),Ve.ARC===s.type&&Dv(s,o,l),s})},r.CLONE=a,r.CALCULATE_BOUNDS=function(){var s=function(f){var c={};for(var g in f)c[g]=f[g];return c},o=e(),l=n(),u=t(),h=i(function(f,c,g){var m=u(l(o(s(f))));function y(ce){ce>h.maxX&&(h.maxX=ce),ce<h.minX&&(h.minX=ce)}function p(ce){ce>h.maxY&&(h.maxY=ce),ce<h.minY&&(h.minY=ce)}if(m.type&Ve.DRAWING_COMMANDS&&(y(c),p(g)),m.type&Ve.HORIZ_LINE_TO&&y(m.x),m.type&Ve.VERT_LINE_TO&&p(m.y),m.type&Ve.LINE_TO&&(y(m.x),p(m.y)),m.type&Ve.CURVE_TO){y(m.x),p(m.y);for(var v=0,b=N4(c,m.x1,m.x2,m.x);v<b.length;v++)0<(W=b[v])&&1>W&&y(R4(c,m.x1,m.x2,m.x,W));for(var I=0,N=N4(g,m.y1,m.y2,m.y);I<N.length;I++)0<(W=N[I])&&1>W&&p(R4(g,m.y1,m.y2,m.y,W))}if(m.type&Ve.ARC){y(m.x),p(m.y),Dv(m,c,g);for(var M=m.xRot/180*Math.PI,O=Math.cos(M)*m.rX,P=Math.sin(M)*m.rX,_=-Math.sin(M)*m.rY,G=Math.cos(M)*m.rY,D=m.phi1<m.phi2?[m.phi1,m.phi2]:-180>m.phi2?[m.phi2+360,m.phi1+360]:[m.phi2,m.phi1],S=D[0],K=D[1],F=function(ce){var ie=ce[0],x=ce[1],H=180*Math.atan2(x,ie)/Math.PI;return H<S?H+360:H},ee=0,Z=_4(_,-O,0).map(F);ee<Z.length;ee++)(W=Z[ee])>S&&W<K&&y(Q4(m.cX,O,_,W));for(var z=0,oe=_4(G,-P,0).map(F);z<oe.length;z++){var W;(W=oe[z])>S&&W<K&&p(Q4(m.cY,P,G,W))}}return f});return h.minX=1/0,h.maxX=-1/0,h.minY=1/0,h.maxY=-1/0,h}})(jr||(jr={}));var Vi,O4=function(){function r(){}return r.prototype.round=function(e){return this.transform(jr.ROUND(e))},r.prototype.toAbs=function(){return this.transform(jr.TO_ABS())},r.prototype.toRel=function(){return this.transform(jr.TO_REL())},r.prototype.normalizeHVZ=function(e,t,n){return this.transform(jr.NORMALIZE_HVZ(e,t,n))},r.prototype.normalizeST=function(){return this.transform(jr.NORMALIZE_ST())},r.prototype.qtToC=function(){return this.transform(jr.QT_TO_C())},r.prototype.aToC=function(){return this.transform(jr.A_TO_C())},r.prototype.sanitize=function(e){return this.transform(jr.SANITIZE(e))},r.prototype.translate=function(e,t){return this.transform(jr.TRANSLATE(e,t))},r.prototype.scale=function(e,t){return this.transform(jr.SCALE(e,t))},r.prototype.rotate=function(e,t,n){return this.transform(jr.ROTATE(e,t,n))},r.prototype.matrix=function(e,t,n,i,A,a){return this.transform(jr.MATRIX(e,t,n,i,A,a))},r.prototype.skewX=function(e){return this.transform(jr.SKEW_X(e))},r.prototype.skewY=function(e){return this.transform(jr.SKEW_Y(e))},r.prototype.xSymmetry=function(e){return this.transform(jr.X_AXIS_SYMMETRY(e))},r.prototype.ySymmetry=function(e){return this.transform(jr.Y_AXIS_SYMMETRY(e))},r.prototype.annotateArcs=function(){return this.transform(jr.ANNOTATE_ARCS())},r}(),GW=function(r){return r===" "||r===" "||r==="\r"||r===`
412
+ `},k4=function(r){return 48<=r.charCodeAt(0)&&r.charCodeAt(0)<=57},WW=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 T4(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 i=this;n===void 0&&(n=[]);for(var A=function(h){n.push(h),i.curArgs.length=0,i.canParseCommandOrComma=!0},a=0;a<t.length;a++){var s=t[a],o=!(this.curCommandType!==Ve.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=k4(s)&&(this.curNumber==="0"&&s==="0"||o);if(!k4(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===Ve.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===qW[this.curCommandType]&&(Ve.HORIZ_LINE_TO===this.curCommandType?A({type:Ve.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Ve.VERT_LINE_TO===this.curCommandType?A({type:Ve.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Ve.MOVE_TO||this.curCommandType===Ve.LINE_TO||this.curCommandType===Ve.SMOOTH_QUAD_TO?(A({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Ve.MOVE_TO===this.curCommandType&&(this.curCommandType=Ve.LINE_TO)):this.curCommandType===Ve.CURVE_TO?A({type:Ve.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===Ve.SMOOTH_CURVE_TO?A({type:Ve.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Ve.QUAD_TO?A({type:Ve.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Ve.ARC&&A({type:Ve.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(!GW(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=Ve.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=Ve.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=Ve.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=Ve.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=Ve.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=Ve.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=Ve.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=Ve.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+a+".");this.curCommandType=Ve.ARC,this.curCommandRelative=s==="a"}else n.push({type:Ve.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,i){i===void 0&&(i=[]);for(var A=0,a=Object.getPrototypeOf(this).parse.call(this,n);A<a.length;A++){var s=a[A],o=t(s);Array.isArray(o)?i.push.apply(i,o):i.push(o)}return i}}})},e}(O4),Ve=function(r){function e(t){var n=r.call(this)||this;return n.commands=typeof t=="string"?e.parse(t):t,n}return T4(e,r),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=jr.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var n=[],i=0,A=this.commands;i<A.length;i++){var a=t(A[i]);Array.isArray(a)?n.push.apply(n,a):n.push(a)}return this.commands=n,this},e.encode=function(t){return $W(t)},e.parse=function(t){var n=new WW,i=[];return n.parse(t,i),n.finish(i),i},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}(O4),qW=((Vi={})[Ve.MOVE_TO]=2,Vi[Ve.LINE_TO]=2,Vi[Ve.HORIZ_LINE_TO]=1,Vi[Ve.VERT_LINE_TO]=1,Vi[Ve.CLOSE_PATH]=0,Vi[Ve.QUAD_TO]=4,Vi[Ve.SMOOTH_QUAD_TO]=2,Vi[Ve.CURVE_TO]=6,Vi[Ve.SMOOTH_CURVE_TO]=4,Vi[Ve.ARC]=7,Vi),XW=Hh.PROPER,YW=as,JW=Ln,P4=uA,ZW=yr,eq=mf,Hv="toString",D4=RegExp.prototype,H4=D4[Hv],tq=ZW(function(){return H4.call({source:"a",flags:"b"})!=="/a/b"}),rq=XW&&H4.name!==Hv;(tq||rq)&&YW(D4,Hv,function(){var e=JW(this),t=P4(e.source),n=P4(eq(e));return"/"+t+"/"+n},{unsafe:!0});function Ef(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ef=function(e){return typeof e}:Ef=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ef(r)}function nq(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var iq=[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],Aq=[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 aq(r,e,t,n,i){if(typeof r=="string"&&(r=document.getElementById(r)),!r||Ef(r)!=="object"||!("getContext"in r))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var A=r.getContext("2d");try{return A.getImageData(e,t,n,i)}catch(a){throw new Error("unable to access image data: "+a)}}function sq(r,e,t,n,i,A){if(!(isNaN(A)||A<1)){A|=0;var a=aq(r,e,t,n,i);a=oq(a,e,t,n,i,A),r.getContext("2d").putImageData(a,e,t)}}function oq(r,e,t,n,i,A){for(var a=r.data,s=2*A+1,o=n-1,l=i-1,u=A+1,h=u*(u+1)/2,f=new M4,c=f,g,m=1;m<s;m++)c=c.next=new M4,m===u&&(g=c);c.next=f;for(var y=null,p=null,v=0,b=0,I=iq[A],N=Aq[A],M=0;M<i;M++){c=f;for(var O=a[b],P=a[b+1],_=a[b+2],G=a[b+3],D=0;D<u;D++)c.r=O,c.g=P,c.b=_,c.a=G,c=c.next;for(var S=0,K=0,F=0,ee=0,Z=u*O,z=u*P,oe=u*_,W=u*G,ce=h*O,ie=h*P,x=h*_,H=h*G,V=1;V<u;V++){var q=b+((o<V?o:V)<<2),$=a[q],L=a[q+1],Q=a[q+2],te=a[q+3],se=u-V;ce+=(c.r=$)*se,ie+=(c.g=L)*se,x+=(c.b=Q)*se,H+=(c.a=te)*se,S+=$,K+=L,F+=Q,ee+=te,c=c.next}y=f,p=g;for(var X=0;X<n;X++){var ne=H*I>>>N;if(a[b+3]=ne,ne!==0){var ve=255/ne;a[b]=(ce*I>>>N)*ve,a[b+1]=(ie*I>>>N)*ve,a[b+2]=(x*I>>>N)*ve}else a[b]=a[b+1]=a[b+2]=0;ce-=Z,ie-=z,x-=oe,H-=W,Z-=y.r,z-=y.g,oe-=y.b,W-=y.a;var k=X+A+1;k=v+(k<o?k:o)<<2,S+=y.r=a[k],K+=y.g=a[k+1],F+=y.b=a[k+2],ee+=y.a=a[k+3],ce+=S,ie+=K,x+=F,H+=ee,y=y.next;var de=p,U=de.r,B=de.g,C=de.b,R=de.a;Z+=U,z+=B,oe+=C,W+=R,S-=U,K-=B,F-=C,ee-=R,p=p.next,b+=4}v+=n}for(var ae=0;ae<n;ae++){b=ae<<2;var fe=a[b],ue=a[b+1],xe=a[b+2],Ue=a[b+3],Ie=u*fe,ke=u*ue,ze=u*xe,Xe=u*Ue,rt=h*fe,ft=h*ue,qe=h*xe,jt=h*Ue;c=f;for(var ut=0;ut<u;ut++)c.r=fe,c.g=ue,c.b=xe,c.a=Ue,c=c.next;for(var fr=n,It=0,vt=0,dr=0,Ut=0,en=1;en<=A;en++){b=fr+ae<<2;var Kt=u-en;rt+=(c.r=fe=a[b])*Kt,ft+=(c.g=ue=a[b+1])*Kt,qe+=(c.b=xe=a[b+2])*Kt,jt+=(c.a=Ue=a[b+3])*Kt,Ut+=fe,It+=ue,vt+=xe,dr+=Ue,c=c.next,en<l&&(fr+=n)}b=ae,y=f,p=g;for(var ar=0;ar<i;ar++){var Mt=b<<2;a[Mt+3]=Ue=jt*I>>>N,Ue>0?(Ue=255/Ue,a[Mt]=(rt*I>>>N)*Ue,a[Mt+1]=(ft*I>>>N)*Ue,a[Mt+2]=(qe*I>>>N)*Ue):a[Mt]=a[Mt+1]=a[Mt+2]=0,rt-=Ie,ft-=ke,qe-=ze,jt-=Xe,Ie-=y.r,ke-=y.g,ze-=y.b,Xe-=y.a,Mt=ae+((Mt=ar+u)<l?Mt:l)*n<<2,rt+=Ut+=y.r=a[Mt],ft+=It+=y.g=a[Mt+1],qe+=vt+=y.b=a[Mt+2],jt+=dr+=y.a=a[Mt+3],y=y.next,Ie+=fe=p.r,ke+=ue=p.g,ze+=xe=p.b,Xe+=Ue=p.a,Ut-=fe,It-=ue,vt-=xe,dr-=Ue,p=p.next,b+=n}}return r}var M4=function r(){nq(this,r),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function lq(){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 LA(function*(){var n=yield fetch(t),i=yield n.blob(),A=yield createImageBitmap(i);return A})()}};return(typeof DOMParser!="undefined"||typeof r=="undefined")&&Reflect.deleteProperty(e,"DOMParser"),e}function uq(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 cq=Object.freeze({__proto__:null,offscreen:lq,node:uq});function hs(r){return r.replace(/(?!\u3000)\s+/gm," ")}function j4(r){return r.replace(/^[\n \t]+/,"")}function K4(r){return r.replace(/[\n \t]+$/,"")}function Vn(r){var e=(r||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var hq=/^[A-Z-]+$/;function V4(r){return hq.test(r)?r.toLowerCase():r}function Mv(r){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(r)||[];return e[2]||e[3]||e[4]}function z4(r){if(!r.startsWith("rgb"))return r;var e=3,t=r.replace(/\d+(\.\d+)?/g,(n,i)=>e--&&i?String(Math.round(parseFloat(n))):n);return t}var fq=/(\[[^\]]+\])/g,dq=/(#[^\s+>~.[:]+)/g,pq=/(\.[^\s+>~.[:]+)/g,gq=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,mq=/(:[\w-]+\([^)]*\))/gi,vq=/(:[^\s+>~.[:]+)/g,wq=/([^\s+>~.[:]+)/g;function fs(r,e){var t=e.exec(r);return t?[r.replace(e," "),t.length]:[r,0]}function $4(r){var e=[0,0,0],t=r.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0;return[t,n]=fs(t,fq),e[1]+=n,[t,n]=fs(t,dq),e[0]+=n,[t,n]=fs(t,pq),e[1]+=n,[t,n]=fs(t,gq),e[2]+=n,[t,n]=fs(t,mq),e[1]+=n,[t,n]=fs(t,vq),e[1]+=n,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,n]=fs(t,wq),e[2]+=n,e.join("")}var ds=1e-8;function jv(r){return Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2))}function Sf(r,e){return(r[0]*e[0]+r[1]*e[1])/(jv(r)*jv(e))}function Kv(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Sf(r,e))}function Vv(r){return r*r*r}function zv(r){return 3*r*r*(1-r)}function $v(r){return 3*r*(1-r)*(1-r)}function Gv(r){return(1-r)*(1-r)*(1-r)}function Wv(r){return r*r}function qv(r){return 2*r*(1-r)}function Xv(r){return(1-r)*(1-r)}class ct{constructor(e,t,n){this.document=e,this.name=t,this.value=n,this.isNormalizedColor=!1}static empty(e){return new ct(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:n}=this;return hs(this.getString()).trim().split(e).map(i=>new ct(t,n,i))}hasValue(e){var{value:t}=this;return t!==null&&t!==""&&(e||t!==0)&&typeof t!="undefined"}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=="undefined"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e=="undefined"?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return typeof e=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=z4(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,i]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:A}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(A.computeSize("x"),A.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(A.computeSize("x"),A.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*A.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*A.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(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*A.computeSize(n);default:{var a=this.getNumber();return t&&a<1?a*A.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 i=n.getAttribute("patternTransform");n=n.getHrefAttribute().getDefinition(),i.hasValue()&&n.getAttribute("patternTransform",!0).setValue(i.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?ct.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var t=this.getColor(),n=t.length,i=0,A=0;A<n&&(t[A]===","&&i++,i!==3);A++);if(e.hasValue()&&this.isString()&&i!==3){var a=new Ov(t);a.ok&&(a.alpha=e.getNumber(),t=a.toRGBA())}return new ct(this.document,this.name,t)}}ct.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 G4{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 xr{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,i=t]=Vn(e);return new xr(n,i)}static parseScale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[n=t,i=n]=Vn(e);return new xr(n,i)}static parsePath(e){for(var t=Vn(e),n=t.length,i=[],A=0;A<n;A+=2)i.push(new xr(t[A],t[A+1]));return i}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:t,y:n}=this,i=t*e[0]+n*e[2]+e[4],A=t*e[1]+n*e[3]+e[5];this.x=i,this.y=A}}class W4{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,i=e.ctx.canvas;i.onclick=t,i.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:i}=e.ctx.canvas;i&&(i.cursor=""),t.forEach((A,a)=>{for(var{run:s}=A,o=n[a];o;)s(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:n,eventElements:i}=this;n.forEach((A,a)=>{var{x:s,y:o}=A;!i[a]&&t.isPointInPath&&t.isPointInPath(s,o)&&(i[a]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:n,eventElements:i}=this;n.forEach((A,a)=>{var{x:s,y:o}=A;!i[a]&&t.isPointInBox(s,o)&&(i[a]=e)})}}mapXY(e,t){for(var{window:n,ctx:i}=this.screen,A=new xr(e,t),a=i.canvas;a;)A.x-=a.offsetLeft,A.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(A.x+=n.scrollX),n.scrollY&&(A.y+=n.scrollY),A}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:t,y:n,run(i){i.onClick&&i.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:t,y:n,run(i){i.onMouseMove&&i.onMouseMove()}})}}var q4=typeof window!="undefined"?window:null,X4=typeof fetch!="undefined"?fetch.bind(void 0):null;class iu{constructor(e){var{fetch:t=X4,window:n=q4}=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 G4,this.mouse=new W4(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:i,width:A,desiredWidth:a,height:s,desiredHeight:o,minX:l=0,minY:u=0,refX:h,refY:f,clip:c=!1,clipX:g=0,clipY:m=0}=e,y=hs(i).replace(/^defer\s/,""),[p,v]=y.split(" "),b=p||"xMidYMid",I=v||"meet",N=A/a,M=s/o,O=Math.min(N,M),P=Math.max(N,M),_=a,G=o;I==="meet"&&(_*=O,G*=O),I==="slice"&&(_*=P,G*=P);var D=new ct(t,"refX",h),S=new ct(t,"refY",f),K=D.hasValue()&&S.hasValue();if(K&&n.translate(-O*D.getPixels("x"),-O*S.getPixels("y")),c){var F=O*g,ee=O*m;n.beginPath(),n.moveTo(F,ee),n.lineTo(A,ee),n.lineTo(A,s),n.lineTo(F,s),n.closePath(),n.clip()}if(!K){var Z=I==="meet"&&O===M,z=I==="slice"&&P===M,oe=I==="meet"&&O===N,W=I==="slice"&&P===N;b.startsWith("xMid")&&(Z||z)&&n.translate(A/2-_/2,0),b.endsWith("YMid")&&(oe||W)&&n.translate(0,s/2-G/2),b.startsWith("xMax")&&(Z||z)&&n.translate(A-_,0),b.endsWith("YMax")&&(oe||W)&&n.translate(0,s-G)}switch(!0){case b==="none":n.scale(N,M);break;case I==="meet":n.scale(O,O);break;case I==="slice":n.scale(P,P);break}n.translate(-l,-u)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:i=!1,ignoreDimensions:A=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:l,offsetX:u,offsetY:h}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:f,mouse:c}=this,g=1e3/f;if(this.frameDuration=g,this.readyPromise=new Promise(b=>{this.resolveReady=b}),this.isReady()&&this.render(e,A,a,o,l,u,h),!!t){var m=Date.now(),y=m,p=0,v=()=>{m=Date.now(),p=m-y,p>=g&&(y=m-p%g,this.shouldUpdate(i,s)&&(this.render(e,A,a,o,l,u,h),c.runEvents())),this.intervalId=Nv(v)};n||c.start(),this.intervalId=Nv(v)}}stop(){this.intervalId&&(Nv.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this,i=this.animations.reduce((A,a)=>a.update(n)||A,!1);if(i)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,i,A,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:u,ctx:h,isFirstRender:f}=this,c=h.canvas;u.clear(),c.width&&c.height?u.setCurrent(c.width,c.height):u.setCurrent(o,l);var g=e.getStyle("width"),m=e.getStyle("height");!t&&(f||typeof i!="number"&&typeof A!="number")&&(g.hasValue()&&(c.width=g.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,p=c.clientHeight||c.height;if(t&&g.hasValue()&&m.hasValue()&&(y=g.getPixels("x"),p=m.getPixels("y")),u.setCurrent(y,p),typeof a=="number"&&e.getAttribute("x",!0).setValue(a),typeof s=="number"&&e.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof A=="number"){var v=Vn(e.getAttribute("viewBox").getString()),b=0,I=0;if(typeof i=="number"){var N=e.getStyle("width");N.hasValue()?b=N.getPixels("x")/i:isNaN(v[2])||(b=v[2]/i)}if(typeof A=="number"){var M=e.getStyle("height");M.hasValue()?I=M.getPixels("y")/A:isNaN(v[3])||(I=v[3]/A)}b||(b=I),I||(I=b),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(A);var O=e.getStyle("transform",!0,!0);O.setValue("".concat(O.getString()," scale(").concat(1/b,", ").concat(1/I,")"))}n||h.clearRect(0,0,y,p),e.render(h),f&&(this.isFirstRender=!1)}}iu.defaultWindow=q4,iu.defaultFetch=X4;var{defaultFetch:yq}=iu,bq=typeof DOMParser!="undefined"?DOMParser:null;class Ff{constructor(){var{fetch:e=yq,DOMParser:t=bq}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return LA(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(n){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 LA(function*(){var n=yield t.fetch(e),i=yield n.text();return t.parseFromString(i)})()}}class Y4{constructor(e,t){this.type="translate",this.point=null,this.point=xr.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 J4{constructor(e,t,n){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=Vn(t);this.angle=new ct(e,"angle",i[0]),this.originX=n[0],this.originY=n[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(e){var{cx:t,cy:n,originX:i,originY:A,angle:a}=this,s=t+i.getPixels("x"),o=n+A.getPixels("y");e.translate(s,o),e.rotate(a.getRadians()),e.translate(-s,-o)}unapply(e){var{cx:t,cy:n,originX:i,originY:A,angle:a}=this,s=t+i.getPixels("x"),o=n+A.getPixels("y");e.translate(s,o),e.rotate(-1*a.getRadians()),e.translate(-s,-o)}applyToPoint(e){var{cx:t,cy:n,angle:i}=this,A=i.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}}class Z4{constructor(e,t,n){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=xr.parseScale(t);(i.x===0||i.y===0)&&(i.x=ds,i.y=ds),this.scale=i,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:i,originY:A}=this,a=i.getPixels("x"),s=A.getPixels("y");e.translate(a,s),e.scale(t,n||t),e.translate(-a,-s)}unapply(e){var{scale:{x:t,y:n},originX:i,originY:A}=this,a=i.getPixels("x"),s=A.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 Yv{constructor(e,t,n){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Vn(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:i}=this,A=t.getPixels("x"),a=n.getPixels("y");e.translate(A,a),e.transform(i[0],i[1],i[2],i[3],i[4],i[5]),e.translate(-A,-a)}unapply(e){var{originX:t,originY:n,matrix:i}=this,A=i[0],a=i[2],s=i[4],o=i[1],l=i[3],u=i[5],h=0,f=0,c=1,g=1/(A*(l*c-u*f)-a*(o*c-u*h)+s*(o*f-l*h)),m=t.getPixels("x"),y=n.getPixels("y");e.translate(m,y),e.transform(g*(l*c-u*f),g*(u*h-o*c),g*(s*f-a*c),g*(A*c-s*h),g*(a*u-s*l),g*(s*o-A*u)),e.translate(-m,-y)}applyToPoint(e){e.applyTransform(this.matrix)}}class Jv extends Yv{constructor(e,t,n){super(e,t,n),this.type="skew",this.angle=null,this.angle=new ct(e,"angle",t)}}class eS extends Jv{constructor(e,t,n){super(e,t,n),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class tS extends Jv{constructor(e,t,n){super(e,t,n),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function Bq(r){return hs(r).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function xq(r){var[e,t]=r.split("(");return[e.trim(),t.trim().replace(")","")]}class wa{constructor(e,t,n){this.document=e,this.transforms=[];var i=Bq(t);i.forEach(A=>{if(A!=="none"){var[a,s]=xq(A),o=wa.transformTypes[a];typeof o!="undefined"&&this.transforms.push(new o(this.document,s,n))}})}static fromElement(e,t){var n=t.getStyle("transform",!1,!0),[i,A=i]=t.getStyle("transform-origin",!1,!0).split(),a=[i,A];return n.hasValue()?new wa(e,n.getString(),a):null}apply(e){for(var{transforms:t}=this,n=t.length,i=0;i<n;i++)t[i].apply(e)}unapply(e){for(var{transforms:t}=this,n=t.length,i=n-1;i>=0;i--)t[i].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,i=0;i<n;i++)t[i].applyToPoint(e)}}wa.transformTypes={translate:Y4,rotate:J4,scale:Z4,matrix:Yv,skewX:eS,skewY:tS};let pr=class Vw{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=V4(s.nodeName);this.attributes[o]=new ct(e,o,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[o,l]=s.split(":").map(u=>u.trim());this.styles[o]=new ct(e,o,l)}})}var{definitions:A}=e,a=this.getAttribute("id");a.hasValue()&&(A[a.getString()]||(A[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 i=new ct(this.document,e,"");return this.attributes[e]=i,i}return n||ct.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return ct.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,i=this.styles[e];if(i)return i;var A=this.getAttribute(e);if(A!=null&&A.hasValue())return this.styles[e]=A,A;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 ct(this.document,e,"");return this.styles[e]=o,o}return i||ct.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=wa.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle("clip-path",!1,!0);if(n.hasValue()){var i=n.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(e){var t=e instanceof Vw?e:this.document.createElement(e);t.parent=this,Vw.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 i=(t=n.getAttribute)===null||t===void 0?void 0:t.call(n,"class");return!i||i===""?!1:i.split(" ").some(A=>".".concat(A)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var i=e[n],A=t[n];if(i)for(var a in i){var s=this.stylesSpecificity[a];typeof s=="undefined"&&(s="000"),A>=s&&(this.styles[a]=i[a],this.stylesSpecificity[a]=A)}}}removeStyles(e,t){var n=t.reduce((i,A)=>{var a=e.getStyle(A);if(!a.hasValue())return i;var s=a.getString();return a.setValue(""),[...i,[A,s]]},[]);return n}restoreStyles(e,t){t.forEach(n=>{var[i,A]=n;e.getStyle(i,!0).setValue(A)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};pr.ignoreChildTypes=["title"];class rS extends pr{constructor(e,t,n){super(e,t,n)}}function Cq(r){var e=r.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Eq(r){return typeof process=="undefined"?r:r.trim().split(",").map(Cq).join(",")}function Sq(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 Fq(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 Fn{constructor(e,t,n,i,A,a){var s=a?typeof a=="string"?Fn.parse(a):a:{};this.fontFamily=A||s.fontFamily,this.fontSize=i||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="",i="",A="",a="",s="",o=hs(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(u=>{switch(!0){case(!l.fontStyle&&Fn.styles.includes(u)):u!=="inherit"&&(n=u),l.fontStyle=!0;break;case(!l.fontVariant&&Fn.variants.includes(u)):u!=="inherit"&&(i=u),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&Fn.weights.includes(u)):u!=="inherit"&&(A=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 Fn(n,i,A,a,s,t)}toString(){return[Sq(this.fontStyle),this.fontVariant,Fq(this.fontWeight),this.fontSize,Eq(this.fontFamily)].join(" ").trim()}}Fn.styles="normal|italic|oblique|inherit",Fn.variants="normal|small-caps|inherit",Fn.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class yi{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,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=i,this.addPoint(e,t),this.addPoint(n,i)}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!="undefined"&&((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!="undefined"&&((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:i,y2:A}=e;this.addPoint(t,n),this.addPoint(i,A)}}sumCubic(e,t,n,i,A){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*n+3*(1-e)*Math.pow(e,2)*i+Math.pow(e,3)*A}bezierCurveAdd(e,t,n,i,A){var a=6*t-12*n+6*i,s=-3*t+9*n-9*i+3*A,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,i,A)):this.addY(this.sumCubic(l,t,n,i,A)));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,i,A)):this.addY(this.sumCubic(h,t,n,i,A)));var f=(-a-Math.sqrt(u))/(2*s);0<f&&f<1&&(e?this.addX(this.sumCubic(f,t,n,i,A)):this.addY(this.sumCubic(f,t,n,i,A)))}}addBezierCurve(e,t,n,i,A,a,s,o){this.addPoint(e,t),this.addPoint(s,o),this.bezierCurveAdd(!0,e,n,A,s),this.bezierCurveAdd(!1,t,i,a,o)}addQuadraticCurve(e,t,n,i,A,a){var s=e+.6666666666666666*(n-e),o=t+2/3*(i-t),l=s+1/3*(A-e),u=o+1/3*(a-t);this.addBezierCurve(e,t,s,l,o,u,A,a)}isPointInBox(e,t){var{x1:n,y1:i,x2:A,y2:a}=this;return n<=e&&e<=A&&i<=t&&t<=a}}class xt extends Ve{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 xr(0,0),this.control=new xr(0,0),this.current=new xr(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 xr(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!==Ve.CURVE_TO&&e!==Ve.SMOOTH_CURVE_TO&&e!==Ve.QUAD_TO&&e!==Ve.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:i,y:A}}=this,a=new xr(2*t-i,2*n-A);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:i,angles:A}=this;n&&A.length>0&&!A[A.length-1]&&(A[A.length-1]=i[i.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 i=n+1;i<t;i++)if(e[i]){e[n]=e[i];break}}return e}}class ya extends pr{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"),i=this.getStyle("fill-opacity"),A=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var s=n.getFillStyleDefinition(this,i);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(i.hasValue()){var l=new ct(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=l}if(A.isUrlDefinition()){var u=A.getFillStyleDefinition(this,a);u&&(e.strokeStyle=u)}else if(A.hasValue()){A.getString()==="currentColor"&&A.setValue(this.getStyle("color").getColor());var h=A.getString();h!=="inherit"&&(e.strokeStyle=h==="none"?"rgba(0,0,0,0)":h)}if(a.hasValue()){var f=new ct(this.document,"stroke",e.strokeStyle).addOpacity(a).getString();e.strokeStyle=f}var c=this.getStyle("stroke-width");if(c.hasValue()){var g=c.getPixels();e.lineWidth=g||ds}var m=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),p=this.getStyle("stroke-miterlimit"),v=this.getStyle("stroke-dasharray"),b=this.getStyle("stroke-dashoffset");if(m.hasValue()&&(e.lineCap=m.getString()),y.hasValue()&&(e.lineJoin=y.getString()),p.hasValue()&&(e.miterLimit=p.getNumber()),v.hasValue()&&v.getString()!=="none"){var I=Vn(v.getString());typeof e.setLineDash!="undefined"?e.setLineDash(I):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=I:typeof e.mozDash!="undefined"&&!(I.length===1&&I[0]===0)&&(e.mozDash=I);var N=b.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=N:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=N:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=N)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var M=this.getStyle("font"),O=this.getStyle("font-style"),P=this.getStyle("font-variant"),_=this.getStyle("font-weight"),G=this.getStyle("font-size"),D=this.getStyle("font-family"),S=new Fn(O.getString(),P.getString(),_.getString(),G.hasValue()?"".concat(G.getPixels(!0),"px"):"",D.getString(),Fn.parse(M.getString(),e.font));O.setValue(S.fontStyle),P.setValue(S.fontVariant),_.setValue(S.fontWeight),G.setValue(S.fontSize),D.setValue(S.fontFamily),e.font=S.toString(),G.isPixels()&&(this.document.emSize=G.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}}class $t extends ya{constructor(e,t,n){super(e,t,n),this.type="path",this.pathParser=null,this.pathParser=new xt(this.getAttribute("d").getString())}path(e){var{pathParser:t}=this,n=new yi;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case xt.MOVE_TO:this.pathM(e,n);break;case xt.LINE_TO:this.pathL(e,n);break;case xt.HORIZ_LINE_TO:this.pathH(e,n);break;case xt.VERT_LINE_TO:this.pathV(e,n);break;case xt.CURVE_TO:this.pathC(e,n);break;case xt.SMOOTH_CURVE_TO:this.pathS(e,n);break;case xt.QUAD_TO:this.pathQ(e,n);break;case xt.SMOOTH_QUAD_TO:this.pathT(e,n);break;case xt.ARC:this.pathA(e,n);break;case xt.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(),i=t.map((A,a)=>[A,n[a]]);return i}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 i=n.length-1,A=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(A.isUrlDefinition()){var o=A.getDefinition(),[l,u]=n[0];o.render(e,l,u)}if(a.isUrlDefinition())for(var h=a.getDefinition(),f=1;f<i;f++){var[c,g]=n[f];h.render(e,c,g)}if(s.isUrlDefinition()){var m=s.getDefinition(),[y,p]=n[i];m.render(e,y,p)}}}static pathM(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}pathM(e,t){var{pathParser:n}=this,{point:i}=$t.pathM(n),{x:A,y:a}=i;n.addMarker(i),t.addPoint(A,a),e&&e.moveTo(A,a)}static pathL(e){var{current:t}=e,n=e.getAsCurrentPoint();return{current:t,point:n}}pathL(e,t){var{pathParser:n}=this,{current:i,point:A}=$t.pathL(n),{x:a,y:s}=A;n.addMarker(A,i),t.addPoint(a,s),e&&e.lineTo(a,s)}static pathH(e){var{current:t,command:n}=e,i=new xr((n.relative?t.x:0)+n.x,t.y);return e.current=i,{current:t,point:i}}pathH(e,t){var{pathParser:n}=this,{current:i,point:A}=$t.pathH(n),{x:a,y:s}=A;n.addMarker(A,i),t.addPoint(a,s),e&&e.lineTo(a,s)}static pathV(e){var{current:t,command:n}=e,i=new xr(t.x,(n.relative?t.y:0)+n.y);return e.current=i,{current:t,point:i}}pathV(e,t){var{pathParser:n}=this,{current:i,point:A}=$t.pathV(n),{x:a,y:s}=A;n.addMarker(A,i),t.addPoint(a,s),e&&e.lineTo(a,s)}static pathC(e){var{current:t}=e,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),A=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:i,currentPoint:A}}pathC(e,t){var{pathParser:n}=this,{current:i,point:A,controlPoint:a,currentPoint:s}=$t.pathC(n);n.addMarker(s,a,A),t.addBezierCurve(i.x,i.y,A.x,A.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(A.x,A.y,a.x,a.y,s.x,s.y)}static pathS(e){var{current:t}=e,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),A=e.getAsCurrentPoint();return{current:t,point:n,controlPoint:i,currentPoint:A}}pathS(e,t){var{pathParser:n}=this,{current:i,point:A,controlPoint:a,currentPoint:s}=$t.pathS(n);n.addMarker(s,a,A),t.addBezierCurve(i.x,i.y,A.x,A.y,a.x,a.y,s.x,s.y),e&&e.bezierCurveTo(A.x,A.y,a.x,a.y,s.x,s.y)}static pathQ(e){var{current:t}=e,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:i}}pathQ(e,t){var{pathParser:n}=this,{current:i,controlPoint:A,currentPoint:a}=$t.pathQ(n);n.addMarker(a,A,A),t.addQuadraticCurve(i.x,i.y,A.x,A.y,a.x,a.y),e&&e.quadraticCurveTo(A.x,A.y,a.x,a.y)}static pathT(e){var{current:t}=e,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:t,controlPoint:n,currentPoint:i}}pathT(e,t){var{pathParser:n}=this,{current:i,controlPoint:A,currentPoint:a}=$t.pathT(n);n.addMarker(a,A,A),t.addQuadraticCurve(i.x,i.y,A.x,A.y,a.x,a.y),e&&e.quadraticCurveTo(A.x,A.y,a.x,a.y)}static pathA(e){var{current:t,command:n}=e,{rX:i,rY:A,xRot:a,lArcFlag:s,sweepFlag:o}=n,l=a*(Math.PI/180),u=e.getAsCurrentPoint(),h=new xr(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),f=Math.pow(h.x,2)/Math.pow(i,2)+Math.pow(h.y,2)/Math.pow(A,2);f>1&&(i*=Math.sqrt(f),A*=Math.sqrt(f));var c=(s===o?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(A,2)-Math.pow(i,2)*Math.pow(h.y,2)-Math.pow(A,2)*Math.pow(h.x,2))/(Math.pow(i,2)*Math.pow(h.y,2)+Math.pow(A,2)*Math.pow(h.x,2)));isNaN(c)&&(c=0);var g=new xr(c*i*h.y/A,c*-A*h.x/i),m=new xr((t.x+u.x)/2+Math.cos(l)*g.x-Math.sin(l)*g.y,(t.y+u.y)/2+Math.sin(l)*g.x+Math.cos(l)*g.y),y=Kv([1,0],[(h.x-g.x)/i,(h.y-g.y)/A]),p=[(h.x-g.x)/i,(h.y-g.y)/A],v=[(-h.x-g.x)/i,(-h.y-g.y)/A],b=Kv(p,v);return Sf(p,v)<=-1&&(b=Math.PI),Sf(p,v)>=1&&(b=0),{currentPoint:u,rX:i,rY:A,sweepFlag:o,xAxisRotation:l,centp:m,a1:y,ad:b}}pathA(e,t){var{pathParser:n}=this,{currentPoint:i,rX:A,rY:a,sweepFlag:s,xAxisRotation:o,centp:l,a1:u,ad:h}=$t.pathA(n),f=1-s?1:-1,c=u+f*(h/2),g=new xr(l.x+A*Math.cos(c),l.y+a*Math.sin(c));if(n.addMarkerAngle(g,c-f*Math.PI/2),n.addMarkerAngle(i,c-f*Math.PI),t.addPoint(i.x,i.y),e&&!isNaN(u)&&!isNaN(h)){var m=A>a?A:a,y=A>a?1:A/a,p=A>a?a/A:1;e.translate(l.x,l.y),e.rotate(o),e.scale(y,p),e.arc(0,0,m,u,u+h,!!(1-s)),e.scale(1/y,1/p),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,t){$t.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}class Zv extends $t{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 RA extends ya{constructor(e,t,n){super(e,t,new.target===RA?!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,i)=>{var A=this.getChildBoundingBox(e,this,this,i);t?t.addBoundingBox(A):t=A}),t}getFontSize(){var{document:e,parent:t}=this,n=Fn.parse(e.ctx.font).fontSize,i=t.getStyle("font-size").getNumber(n);return i}getTElementBoundingBox(e){var t=this.getFontSize();return new yi(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var i=t[n],A=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[i]!="undefined"){var u=e.glyphs[i];A=u instanceof Zv?u:u[l]}}else A=e.glyphs[i];return A||(A=e.missingGlyph),A}getText(){return""}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),i=n.indexOf(t),A=n.length-1,a=hs(t.textContent||"");return i===0&&(a=j4(a)),i===A&&(a=K4(a)),a}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((n,i)=>{this.renderChild(e,this,this,i)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:n}=this,i=this.getText(),A=n.getStyle("font-family").getDefinition();if(A){for(var{unitsPerEm:a}=A.fontFace,s=Fn.parse(t.ctx.font),o=n.getStyle("font-size").getNumber(s.fontSize),l=n.getStyle("font-style").getString(s.fontStyle),u=o/a,h=A.isRTL?i.split("").reverse().join(""):i,f=Vn(n.getAttribute("dx").getString()),c=h.length,g=0;g<c;g++){var m=this.getGlyph(A,h,g);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||A.horizAdvX)/a,typeof f[g]!="undefined"&&!isNaN(f[g])&&(this.x+=f[g])}return}var{x:p,y:v}=this;e.fillStyle&&e.fillText(i,p,v),e.strokeStyle&&e.strokeText(i,p,v)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle("text-anchor").getString("start"),n=!1,i=0;t==="start"&&!n||t==="end"&&n?i=e.x-this.minX:t==="end"&&!n||t==="start"&&n?i=e.x-this.maxX:i=e.x-(this.minX+this.maxX)/2;for(var A=this.textChunkStart;A<this.leafTexts.length;A++)this.leafTexts[A].x+=i;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,i){var A=n.children[i];A.children.length>0?A.children.forEach((a,s)=>{t.adjustChildCoordinatesRecursiveCore(e,t,A,s)}):this.adjustChildCoordinates(e,t,n,i)}adjustChildCoordinates(e,t,n,i){var A=n.children[i];if(typeof A.measureText!="function")return A;e.save(),A.setContext(e,!0);var a=A.getAttribute("x"),s=A.getAttribute("y"),o=A.getAttribute("dx"),l=A.getAttribute("dy"),u=A.getStyle("font-family").getDefinition(),h=!!u&&u.isRTL;i===0&&(a.hasValue()||a.setValue(A.getInheritedAttribute("x")),s.hasValue()||s.setValue(A.getInheritedAttribute("y")),o.hasValue()||o.setValue(A.getInheritedAttribute("dx")),l.hasValue()||l.setValue(A.getInheritedAttribute("dy")));var f=A.measureText(e);return h&&(t.x-=f),a.hasValue()?(t.applyAnchoring(),A.x=a.getPixels("x"),o.hasValue()&&(A.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),A.x=t.x),t.x=A.x,h||(t.x+=f),s.hasValue()?(A.y=s.getPixels("y"),l.hasValue()&&(A.y+=l.getPixels("y"))):(l.hasValue()&&(t.y+=l.getPixels("y")),A.y=t.y),t.y=A.y,t.leafTexts.push(A),t.minX=Math.min(t.minX,A.x,A.x+f),t.maxX=Math.max(t.maxX,A.x,A.x+f),A.clearContext(e),e.restore(),A}getChildBoundingBox(e,t,n,i){var A=n.children[i];if(typeof A.getBoundingBox!="function")return null;var a=A.getBoundingBox(e);return a?(A.children.forEach((s,o)=>{var l=t.getChildBoundingBox(e,t,A,o);a.addBoundingBox(l)}),a):null}renderChild(e,t,n,i){var A=n.children[i];A.render(e),A.children.forEach((a,s)=>{t.renderChild(e,t,A,s)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,i=n.getStyle("font-family").getDefinition();if(i){for(var A=this.getFontSize(),a=i.isRTL?t.split("").reverse().join(""):t,s=Vn(n.getAttribute("dx").getString()),o=a.length,l=0,u=0;u<o;u++){var h=this.getGlyph(i,a,u);l+=(h.horizAdvX||i.horizAdvX)*A/i.fontFace.unitsPerEm,typeof s[u]!="undefined"&&!isNaN(s[u])&&(l+=s[u])}return l}if(!e.measureText)return t.length*10;e.save(),this.setContext(e,!0);var{width:f}=e.measureText(t);return this.clearContext(e),e.restore(),f}getInheritedAttribute(e){for(var t=this;t instanceof RA&&t.isFirstChild();){var n=t.parent.getAttribute(e);if(n.hasValue(!0))return n.getValue("0");t=t.parent}return null}}class Au extends RA{constructor(e,t,n){super(e,t,new.target===Au?!0:n),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Iq extends Au{constructor(){super(...arguments),this.type="textNode"}}class So extends ya{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var t,{document:n}=this,{screen:i,window:A}=n,a=e.canvas;if(i.setDefaults(e),a.style&&typeof e.font!="undefined"&&A&&typeof A.getComputedStyle!="undefined"){e.font=A.getComputedStyle(a).getPropertyValue("font");var s=new ct(n,"fontSize",Fn.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}=i.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"),f=this.getAttribute("viewBox"),c=f.hasValue()?Vn(f.getString()):null,g=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",m=0,y=0,p=0,v=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"&&(p=m,v=y,m=0,y=0)),i.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:i.viewPort.width,desiredWidth:o,height:i.viewPort.height,desiredHeight:l,minX:m,minY:y,refX:u.getValue(),refY:h.getValue(),clip:g,clipX:p,clipY:v}),c&&(i.viewPort.removeCurrent(),i.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,i=this.getAttribute("width",!0),A=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=i.getNumber(0),l=A.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(i.setValue(e),A.setValue(t),a.hasValue()||a.setValue("0 0 ".concat(o||e," ").concat(l||t)),s.hasValue()){var h=this.getStyle("width"),f=this.getStyle("height");h.hasValue()&&h.setValue("".concat(e,"px")),f.hasValue()&&f.setValue("".concat(t,"px"))}}}class ew extends $t{constructor(){super(...arguments),this.type="rect"}path(e){var t=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),A=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,i/2),l=Math.min(l,A/2),e){var u=4*((Math.sqrt(2)-1)/3);e.beginPath(),A>0&&i>0&&(e.moveTo(t+o,n),e.lineTo(t+i-o,n),e.bezierCurveTo(t+i-o+u*o,n,t+i,n+l-u*l,t+i,n+l),e.lineTo(t+i,n+A-l),e.bezierCurveTo(t+i,n+A-l+u*l,t+i-o+u*o,n+A,t+i-o,n+A),e.lineTo(t+o,n+A),e.bezierCurveTo(t+o-u*o,n+A,t,n+A-l+u*l,t,n+A-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 yi(t,n,t+i,n+A)}getMarkers(){return null}}class nS extends $t{constructor(){super(...arguments),this.type="circle"}path(e){var t=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(t,n,i,0,Math.PI*2,!1),e.closePath()),new yi(t-i,n-i,t+i,n+i)}getMarkers(){return null}}class iS extends $t{constructor(){super(...arguments),this.type="ellipse"}path(e){var t=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),A=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(A+n,a),e.bezierCurveTo(A+n,a+t*i,A+t*n,a+i,A,a+i),e.bezierCurveTo(A-t*n,a+i,A-n,a+t*i,A-n,a),e.bezierCurveTo(A-n,a-t*i,A-t*n,a-i,A,a-i),e.bezierCurveTo(A+t*n,a-i,A+n,a-t*i,A+n,a),e.closePath()),new yi(A-n,a-i,A+n,a+i)}getMarkers(){return null}}class AS extends $t{constructor(){super(...arguments),this.type="line"}getPoints(){return[new xr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new xr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:t,y:n},{x:i,y:A}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(i,A)),new yi(t,n,i,A)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}}class tw extends $t{constructor(e,t,n){super(e,t,n),this.type="polyline",this.points=[],this.points=xr.parsePath(this.getAttribute("points").getString())}path(e){var{points:t}=this,[{x:n,y:i}]=t,A=new yi(n,i);return e&&(e.beginPath(),e.moveTo(n,i)),t.forEach(a=>{var{x:s,y:o}=a;A.addPoint(s,o),e&&e.lineTo(s,o)}),A}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((i,A)=>{A!==t&&n.push([i,i.angleTo(e[A+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}class aS extends tw{constructor(){super(...arguments),this.type="polygon"}path(e){var t=super.path(e),[{x:n,y:i}]=this.points;return e&&(e.lineTo(n,i),e.closePath()),t}}class sS extends pr{constructor(){super(...arguments),this.type="pattern"}createPattern(e,t,n){var i=this.getStyle("width").getPixels("x",!0),A=this.getStyle("height").getPixels("y",!0),a=new So(this.document,null);a.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new ct(this.document,"width","".concat(i,"px")),a.attributes.height=new ct(this.document,"height","".concat(A,"px")),a.attributes.transform=new ct(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(i,A),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 f=-1;f<=1;f++)o.save(),a.attributes.x=new ct(this.document,"x",h*s.width),a.attributes.y=new ct(this.document,"y",f*s.height),a.render(o),o.restore();var c=e.createPattern(s,"repeat");return c}}class oS extends pr{constructor(){super(...arguments),this.type="marker"}render(e,t,n){if(t){var{x:i,y:A}=t,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,A),a==="auto"&&e.rotate(n),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new So(this.document,null);o.type=this.type,o.attributes.viewBox=new ct(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new ct(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new ct(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new ct(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new ct(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new ct(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new ct(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new ct(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(-i,-A)}}}class lS extends pr{constructor(){super(...arguments),this.type="defs"}render(){}}class If extends ya{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var t=new yi;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}}class rw extends pr{constructor(e,t,n){super(e,t,n),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:A}=this;A.forEach(a=>{a.type==="stop"&&i.push(a)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,t,n){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:A}=i,a=this.getGradient(e,t);if(!a)return this.addParentOpacity(n,A[A.length-1].color);if(A.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 ew(s,null);h.attributes.x=new ct(s,"x",-o/3),h.attributes.y=new ct(s,"y",-o/3),h.attributes.width=new ct(s,"width",o),h.attributes.height=new ct(s,"height",o);var f=new If(s,null);f.attributes.transform=new ct(s,"transform",this.getAttribute("gradientTransform").getValue()),f.children=[h];var c=new So(s,null);c.attributes.x=new ct(s,"x",0),c.attributes.y=new ct(s,"y",0),c.attributes.width=new ct(s,"width",u.width),c.attributes.height=new ct(s,"height",u.height),c.children=[f];var g=s.createCanvas(u.width,u.height),m=g.getContext("2d");return m.fillStyle=a,c.render(m),m.createPattern(g,"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 ct(this.document,"color",t);return n.addOpacity(e).getColor()}return t}}class uS extends rw{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",i=n?t.getBoundingBox(e):null;if(n&&!i)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 A=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return A===s&&a===o?null:e.createLinearGradient(A,a,s,o)}}class cS extends rw{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",i=t.getBoundingBox(e);if(n&&!i)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 A=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=A,o=a;this.getAttribute("fx").hasValue()&&(s=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,o,u,A,a,l)}}class hS extends pr{constructor(e,t,n){super(e,t,n),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),A=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);a.getString()===""&&a.setValue("#000"),A.hasValue()&&(a=a.addOpacity(A)),this.offset=i,this.color=a.getColor()}}class Uf extends pr{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 ct(e,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.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:i}=this.getProgress(),A=n.getNumber()+(i.getNumber()-n.getNumber())*t;return e==="%"&&(A*=100),"".concat(A).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 i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var A=!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),A=!0}return A}getProgress(){var{document:e,values:t}=this,n={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var i=n.progress*(t.getValue().length-1),A=Math.floor(i),a=Math.ceil(i);n.from=new ct(e,"from",parseFloat(t.getValue()[A])),n.to=new ct(e,"to",parseFloat(t.getValue()[a])),n.progress=(i-A)/(a-A)}else n.from=this.from,n.to=this.to;return n}}class fS extends Uf{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),i=new Ov(t.getColor()),A=new Ov(n.getColor());if(i.ok&&A.ok){var a=i.r+(A.r-i.r)*e,s=i.g+(A.g-i.g)*e,o=i.b+(A.b-i.b)*e;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class dS extends Uf{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:t,to:n}=this.getProgress(),i=Vn(t.getString()),A=Vn(n.getString()),a=i.map((s,o)=>{var l=A[o];return s+(l-s)*e}).join(" ");return a}}class pS extends pr{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:i}=e,{children:A}=this;for(var a of A)switch(a.type){case"font-face":{this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(i[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]=="undefined"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class gS extends pr{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 mS extends $t{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class vS extends RA{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 wS extends RA{constructor(e,t,n){super(e,t,n),this.type="a";var{childNodes:i}=t,A=i[0],a=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(A):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:i}=this,{mouse:A}=t.screen,a=new ct(t,"fontSize",Fn.parse(t.ctx.font).fontSize);A.isWorking()&&A.checkBoundingBox(this,new yi(n,i-a.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var s=new If(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 yS(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Tf(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?yS(Object(t),!0).forEach(function(n){Fv(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):yS(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}class bS extends RA{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 i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(e){var{dataArray:t}=this;e&&e.beginPath(),t.forEach(n=>{var{type:i,points:A}=n;switch(i){case xt.LINE_TO:e&&e.lineTo(A[0],A[1]);break;case xt.MOVE_TO:e&&e.moveTo(A[0],A[1]);break;case xt.CURVE_TO:e&&e.bezierCurveTo(A[0],A[1],A[2],A[3],A[4],A[5]);break;case xt.QUAD_TO:e&&e.quadraticCurveTo(A[0],A[1],A[2],A[3]);break;case xt.ARC:{var[a,s,o,l,u,h,f,c]=A,g=o>l?o:l,m=o>l?1:o/l,y=o>l?l/o:1;e&&(e.translate(a,s),e.rotate(f),e.scale(m,y),e.arc(0,0,g,u,u+h,!!(1-c)),e.scale(1/m,1/y),e.rotate(-f),e.translate(-a,-s));break}case xt.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:i}=this,A=e.fillStyle;t==="underline"&&e.beginPath(),i.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=A,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,i,A,a,s,o,l){var u=a,h=this.measureText(e,o);o===" "&&t==="justify"&&n<i&&(h+=(i-n)/A),l>-1&&(u+=this.getLetterSpacingAt(l));var f=this.textHeight/20,c=this.getEquidistantPointOnPath(u,f,0),g=this.getEquidistantPointOnPath(u+h,f,0),m={p0:c,p1:g},y=c&&g?Math.atan2(g.y-c.y,g.x-c.x):0;if(s){var p=Math.cos(Math.PI/2+y)*s,v=Math.cos(-y)*s;m.p0=Tf(Tf({},c),{},{x:c.x+p,y:c.y+v}),m.p1=Tf(Tf({},g),{},{x:g.x+p,y:g.y+v})}return u+=h,{offset:u,segment:m,rotation:y}}measureText(e,t){var{measuresCache:n}=this,i=t||this.getText();if(n.has(i))return n.get(i);var A=this.measureTargetText(e,i);return n.set(i,A),A}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(""),i=t.split(" ").length-1,A=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=[],f=t.length;this.letterSpacingCache=h;for(var c=0;c<f;c++)h.push(typeof A[c]!="undefined"?A[c]:u);var g=h.reduce((I,N,M)=>M===0?0:I+N||0,0),m=this.measureText(e),y=Math.max(m+g,0);this.textWidth=m,this.textHeight=this.getFontSize(),this.glyphInfo=[];var p=this.getPathLength(),v=this.getStyle("startOffset").getNumber(0)*p,b=0;(s==="middle"||s==="center")&&(b=-y/2),(s==="end"||s==="right")&&(b=-y),b+=v,n.forEach((I,N)=>{var{offset:M,segment:O,rotation:P}=this.findSegmentToFitChar(e,s,y,p,i,b,a,I,N);b=M,!(!O.p0||!O.p1)&&this.glyphInfo.push({text:n[N],p0:O.p0,p1:O.p1,rotation:P})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:i}=n,A=i?i.x:0,a=i?i.y:0,s=n.next(),o=s.type,l=[];switch(s.type){case xt.MOVE_TO:this.pathM(n,l);break;case xt.LINE_TO:o=this.pathL(n,l);break;case xt.HORIZ_LINE_TO:o=this.pathH(n,l);break;case xt.VERT_LINE_TO:o=this.pathV(n,l);break;case xt.CURVE_TO:this.pathC(n,l);break;case xt.SMOOTH_CURVE_TO:o=this.pathS(n,l);break;case xt.QUAD_TO:this.pathQ(n,l);break;case xt.SMOOTH_QUAD_TO:o=this.pathT(n,l);break;case xt.ARC:l=this.pathA(n);break;case xt.CLOSE_PATH:$t.pathZ(n);break}s.type!==xt.CLOSE_PATH?t.push({type:o,points:l,start:{x:A,y:a},pathLength:this.calcLength(A,a,o,l)}):t.push({type:xt.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(e,t){var{x:n,y:i}=$t.pathM(e).point;t.push(n,i)}pathL(e,t){var{x:n,y:i}=$t.pathL(e).point;return t.push(n,i),xt.LINE_TO}pathH(e,t){var{x:n,y:i}=$t.pathH(e).point;return t.push(n,i),xt.LINE_TO}pathV(e,t){var{x:n,y:i}=$t.pathV(e).point;return t.push(n,i),xt.LINE_TO}pathC(e,t){var{point:n,controlPoint:i,currentPoint:A}=$t.pathC(e);t.push(n.x,n.y,i.x,i.y,A.x,A.y)}pathS(e,t){var{point:n,controlPoint:i,currentPoint:A}=$t.pathS(e);return t.push(n.x,n.y,i.x,i.y,A.x,A.y),xt.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:i}=$t.pathQ(e);t.push(n.x,n.y,i.x,i.y)}pathT(e,t){var{controlPoint:n,currentPoint:i}=$t.pathT(e);return t.push(n.x,n.y,i.x,i.y),xt.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:i,xAxisRotation:A,centp:a,a1:s,ad:o}=$t.pathA(e);return i===0&&o>0&&(o-=2*Math.PI),i===1&&o<0&&(o+=2*Math.PI),[a.x,a.y,t,n,s,o,A,i]}calcLength(e,t,n,i){var A=0,a=null,s=null,o=0;switch(n){case xt.LINE_TO:return this.getLineLength(e,t,i[0],i[1]);case xt.CURVE_TO:for(A=0,a=this.getPointOnCubicBezier(0,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,e,t,i[0],i[1],i[2],i[3],i[4],i[5]),A+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return A;case xt.QUAD_TO:for(A=0,a=this.getPointOnQuadraticBezier(0,e,t,i[0],i[1],i[2],i[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,e,t,i[0],i[1],i[2],i[3]),A+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return A;case xt.ARC:{A=0;var l=i[4],u=i[5],h=i[4]+u,f=Math.PI/180;if(Math.abs(l-h)<f&&(f=Math.abs(l-h)),a=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],l,0),u<0)for(o=l-f;o>h;o-=f)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),A+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=l+f;o<h;o+=f)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],o,0),A+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],h,0),A+=this.getLineLength(a.x,a.y,s.x,s.y),A}}return 0}getPointOnLine(e,t,n,i,A){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,o=(A-n)/(i-t+ds),l=Math.sqrt(e*e/(1+o*o));i<t&&(l*=-1);var u=o*l,h=null;if(i===t)h={x:a,y:s+u};else if((s-n)/(a-t+ds)===o)h={x:a+l,y:s+u};else{var f=0,c=0,g=this.getLineLength(t,n,i,A);if(g<ds)return null;var m=(a-t)*(i-t)+(s-n)*(A-n);m/=g*g,f=t+m*(i-t),c=n+m*(A-n);var y=this.getLineLength(a,s,f,c),p=Math.sqrt(e*e-y*y);l=Math.sqrt(p*p/(1+o*o)),i<t&&(l*=-1),u=o*l,h={x:f+l,y:c+u}}return h}getPointOnPath(e){var t=this.getPathLength(),n=0,i=null;if(e<-5e-5||e-5e-5>t)return null;var{dataArray:A}=this;for(var a of A){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 xt.LINE_TO:i=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case xt.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;i=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break}case xt.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),i=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 xt.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),i=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(i)return i;break}return null}getLineLength(e,t,n,i){return Math.sqrt((n-e)*(n-e)+(i-t)*(i-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,i,A,a,s,o,l){var u=o*Vv(e)+a*zv(e)+i*$v(e)+t*Gv(e),h=l*Vv(e)+s*zv(e)+A*$v(e)+n*Gv(e);return{x:u,y:h}}getPointOnQuadraticBezier(e,t,n,i,A,a,s){var o=a*Wv(e)+i*qv(e)+t*Xv(e),l=s*Wv(e)+A*qv(e)+n*Xv(e);return{x:o,y:l}}getPointOnEllipticalArc(e,t,n,i,A,a){var s=Math.cos(a),o=Math.sin(a),l={x:n*Math.cos(A),y:i*Math.sin(A)};return{x:e+(l.x*s-l.y*o),y:t+(l.x*o+l.y*s)}}buildEquidistantCache(e,t){var n=this.getPathLength(),i=t||.25,A=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==A||this.equidistantCache.precision!==i){this.equidistantCache={step:A,precision:i,points:[]};for(var a=0,s=0;s<=n;s+=i){var o=this.getPointOnPath(s),l=this.getPointOnPath(s+i);!o||!l||(a+=this.getLineLength(o.x,o.y,l.x,l.y),a>=A&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=A))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var Uq=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class BS extends ya{constructor(e,t,n){super(e,t,n),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var A=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);e.images.push(this),A?this.loadSvg(i):this.loadImage(i),this.isSvg=A}}loadImage(e){var t=this;return LA(function*(){try{var n=yield t.document.createImage(e);t.image=n}catch(i){console.error('Error while loading image "'.concat(e,'":'),i)}t.loaded=!0})()}loadSvg(e){var t=this;return LA(function*(){var n=Uq.exec(e);if(n){var i=n[5];n[4]==="base64"?t.image=atob(i):t.image=decodeURIComponent(i)}else try{var A=yield t.document.fetch(e),a=yield A.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:i}=this,A=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!i||!n||!s||!o)){if(e.save(),e.translate(A,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=="undefined"||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"),i=this.getStyle("height").getPixels("y");return new yi(e,t,e+n,t+i)}}class xS extends ya{constructor(){super(...arguments),this.type="symbol"}render(e){}}class CS{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return LA(function*(){try{var{document:i}=n,A=yield i.canvg.parser.load(t),a=A.getElementsByTagName("font");Array.from(a).forEach(s=>{var o=i.createElement(s);i.definitions[e]=o})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}n.loaded=!0})()}}class nw extends pr{constructor(e,t,n){super(e,t,n),this.type="style";var i=hs(Array.from(t.childNodes).map(a=>a.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),A=i.split("}");A.forEach(a=>{var s=a.trim();if(s){var o=s.split("{"),l=o[0].split(","),u=o[1].split(";");l.forEach(h=>{var f=h.trim();if(f){var c=e.styles[f]||{};if(u.forEach(y=>{var p=y.indexOf(":"),v=y.substr(0,p).trim(),b=y.substr(p+1,y.length-p).trim();v&&b&&(c[v]=new ct(e,v,b))}),e.styles[f]=c,e.stylesSpecificity[f]=$4(f),f==="@font-face"){var g=c["font-family"].getString().replace(/"|'/g,""),m=c.src.getString().split(",");m.forEach(y=>{if(y.indexOf('format("svg")')>0){var p=Mv(y);p&&new CS(e).load(g,p)}})}}})}})}}nw.parseExternalUrl=Mv;class ES extends ya{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 i=n;if(n.type==="symbol"&&(i=new So(t,null),i.attributes.viewBox=new ct(t,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new ct(t,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new ct(t,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new ct(t,"opacity",this.calculateOpacity())),i.type==="svg"){var A=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);A.hasValue()&&(i.attributes.width=new ct(t,"width",A.getString())),a.hasValue()&&(i.attributes.height=new ct(t,"height",a.getString()))}var s=i.parent;i.parent=this,i.render(e),i.parent=s}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return wa.fromElement(e,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function _f(r,e,t,n,i,A){return r[t*n*4+e*4+A]}function Lf(r,e,t,n,i,A,a){r[t*n*4+e*4+A]=a}function Kr(r,e,t){var n=r[e];return n*t}function OA(r,e,t,n){return e+Math.cos(r)*t+Math.sin(r)*n}class iw extends pr{constructor(e,t,n){super(e,t,n),this.type="feColorMatrix";var i=Vn(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var A=i[0];i=[.213+.787*A,.715-.715*A,.072-.072*A,0,0,.213-.213*A,.715+.285*A,.072-.072*A,0,0,.213-.213*A,.715-.715*A,.072+.928*A,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var a=i[0]*Math.PI/180;i=[OA(a,.213,.787,-.213),OA(a,.715,-.715,-.715),OA(a,.072,-.072,.928),0,0,OA(a,.213,-.213,.143),OA(a,.715,.285,.14),OA(a,.072,-.072,-.283),0,0,OA(a,.213,-.213,-.787),OA(a,.715,-.715,.715),OA(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[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=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,t,n,i,A){for(var{includeOpacity:a,matrix:s}=this,o=e.getImageData(0,0,i,A),l=0;l<A;l++)for(var u=0;u<i;u++){var h=_f(o.data,u,l,i,A,0),f=_f(o.data,u,l,i,A,1),c=_f(o.data,u,l,i,A,2),g=_f(o.data,u,l,i,A,3),m=Kr(s,0,h)+Kr(s,1,f)+Kr(s,2,c)+Kr(s,3,g)+Kr(s,4,1),y=Kr(s,5,h)+Kr(s,6,f)+Kr(s,7,c)+Kr(s,8,g)+Kr(s,9,1),p=Kr(s,10,h)+Kr(s,11,f)+Kr(s,12,c)+Kr(s,13,g)+Kr(s,14,1),v=Kr(s,15,h)+Kr(s,16,f)+Kr(s,17,c)+Kr(s,18,g)+Kr(s,19,1);a&&(m=0,y=0,p=0,v*=g/255),Lf(o.data,u,l,i,A,0,m),Lf(o.data,u,l,i,A,1,y),Lf(o.data,u,l,i,A,2,p),Lf(o.data,u,l,i,A,3,v)}e.clearRect(0,0,i,A),e.putImageData(o,0,0)}}class au extends pr{constructor(){super(...arguments),this.type="mask"}apply(e,t){var{document:n}=this,i=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new yi;this.children.forEach(g=>{o.addBoundingBox(g.getBoundingBox(e))}),i=Math.floor(o.x1),A=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var l=this.removeStyles(t,au.ignoreStyles),u=n.createCanvas(i+a,A+s),h=u.getContext("2d");n.screen.setDefaults(h),this.renderChildren(h),new iw(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+a,A+s);var f=n.createCanvas(i+a,A+s),c=f.getContext("2d");n.screen.setDefaults(c),t.render(c),c.globalCompositeOperation="destination-in",c.fillStyle=h.createPattern(u,"no-repeat"),c.fillRect(0,0,i+a,A+s),e.fillStyle=c.createPattern(f,"no-repeat"),e.fillRect(0,0,i+a,A+s),this.restoreStyles(t,l)}render(e){}}au.ignoreStyles=["mask","transform","clip-path"];var SS=()=>{};class FS extends pr{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:i,closePath:A}=e;n&&(n.beginPath=SS,n.closePath=SS),Reflect.apply(i,e,[]),this.children.forEach(a=>{if(typeof a.path!="undefined"){var s=typeof a.elementTransform!="undefined"?a.elementTransform():null;s||(s=wa.fromElement(t,a)),s&&s.apply(e),a.path(e),n&&(n.closePath=A),s&&s.unapply(e)}}),Reflect.apply(A,e,[]),e.clip(),n&&(n.beginPath=i,n.closePath=A)}render(e){}}class su extends pr{constructor(){super(...arguments),this.type="filter"}apply(e,t){var{document:n,children:i}=this,A=t.getBoundingBox(e);if(A){var a=0,s=0;i.forEach(p=>{var v=p.extraFilterDistance||0;a=Math.max(a,v),s=Math.max(s,v)});var o=Math.floor(A.width),l=Math.floor(A.height),u=o+2*a,h=l+2*s;if(!(u<1||h<1)){var f=Math.floor(A.x),c=Math.floor(A.y),g=this.removeStyles(t,su.ignoreStyles),m=n.createCanvas(u,h),y=m.getContext("2d");n.screen.setDefaults(y),y.translate(-f+a,-c+s),t.render(y),i.forEach(p=>{typeof p.apply=="function"&&p.apply(y,0,0,u,h)}),e.drawImage(m,0,0,u,h,f-a,c-s,u,h),this.restoreStyles(t,g)}}}render(e){}}su.ignoreStyles=["filter","transform","clip-path"];class IS extends pr{constructor(e,t,n){super(e,t,n),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,t,n,i,A){}}class US extends pr{constructor(){super(...arguments),this.type="feMorphology"}apply(e,t,n,i,A){}}class TS extends pr{constructor(){super(...arguments),this.type="feComposite"}apply(e,t,n,i,A){}}class _S extends pr{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,i,A){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)),sq(l,t,n,i,A,s),o&&o.removeChild(l)}}class LS extends pr{constructor(){super(...arguments),this.type="title"}}class QS extends pr{constructor(){super(...arguments),this.type="desc"}}var Tq={svg:So,rect:ew,circle:nS,ellipse:iS,line:AS,polyline:tw,polygon:aS,path:$t,pattern:sS,marker:oS,defs:lS,linearGradient:uS,radialGradient:cS,stop:hS,animate:Uf,animateColor:fS,animateTransform:dS,font:pS,"font-face":gS,"missing-glyph":mS,glyph:Zv,text:RA,tspan:Au,tref:vS,a:wS,textPath:bS,image:BS,g:If,symbol:xS,style:nw,use:ES,mask:au,clipPath:FS,filter:su,feDropShadow:IS,feMorphology:US,feComposite:TS,feColorMatrix:iw,feGaussianBlur:_S,title:LS,desc:QS};function NS(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function _q(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?NS(Object(t),!0).forEach(function(n){Fv(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):NS(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Lq(r,e){var t=document.createElement("canvas");return t.width=r,t.height=e,t}function Qq(r){return Aw.apply(this,arguments)}function Aw(){return Aw=LA(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,i)=>{t.onload=()=>{n(t)},t.onerror=(A,a,s,o,l)=>{i(l)},t.src=r})}),Aw.apply(this,arguments)}class kA{constructor(e){var{rootEmSize:t=12,emSize:n=12,createCanvas:i=kA.createCanvas,createImage:A=kA.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=i,this.createImage=this.bindCreateImage(A,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t=="boolean"?(n,i)=>e(n,typeof i=="boolean"?i: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=kA.elementTypes[t];return typeof n!="undefined"?new n(this,e):new rS(this,e)}createTextNode(e){return new Iq(this,e)}setViewBox(e){this.screen.setViewBox(_q({document:this},e))}}kA.createCanvas=Lq,kA.createImage=Qq,kA.elementTypes=Tq;function RS(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function ps(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?RS(Object(t),!0).forEach(function(n){Fv(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):RS(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}class gs{constructor(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ff(n),this.screen=new iu(e,n),this.options=n;var i=new kA(this,n),A=i.createDocumentElement(t);this.document=i,this.documentElement=A}static from(e,t){var n=arguments;return LA(function*(){var i=n.length>2&&n[2]!==void 0?n[2]:{},A=new Ff(i),a=yield A.parse(t);return new gs(e,a,i)})()}static fromString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new Ff(n),A=i.parseFromString(t);return new gs(e,A,n)}fork(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gs.from(e,t,ps(ps({},this.options),n))}forkString(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return gs.fromString(e,t,ps(ps({},this.options),n))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return LA(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};t.start(ps({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:i}=this;n.start(t,ps(ps({enableRedraw:!0},i),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 Nq=Object.freeze(Object.defineProperty({__proto__:null,AElement:wS,AnimateColorElement:fS,AnimateElement:Uf,AnimateTransformElement:dS,BoundingBox:yi,CB1:Vv,CB2:zv,CB3:$v,CB4:Gv,Canvg:gs,CircleElement:nS,ClipPathElement:FS,DefsElement:lS,DescElement:QS,Document:kA,Element:pr,EllipseElement:iS,FeColorMatrixElement:iw,FeCompositeElement:TS,FeDropShadowElement:IS,FeGaussianBlurElement:_S,FeMorphologyElement:US,FilterElement:su,Font:Fn,FontElement:pS,FontFaceElement:gS,GElement:If,GlyphElement:Zv,GradientElement:rw,ImageElement:BS,LineElement:AS,LinearGradientElement:uS,MarkerElement:oS,MaskElement:au,Matrix:Yv,MissingGlyphElement:mS,Mouse:W4,PSEUDO_ZERO:ds,Parser:Ff,PathElement:$t,PathParser:xt,PatternElement:sS,Point:xr,PolygonElement:aS,PolylineElement:tw,Property:ct,QB1:Wv,QB2:qv,QB3:Xv,RadialGradientElement:cS,RectElement:ew,RenderedElement:ya,Rotate:J4,SVGElement:So,SVGFontLoader:CS,Scale:Z4,Screen:iu,Skew:Jv,SkewX:eS,SkewY:tS,StopElement:hS,StyleElement:nw,SymbolElement:xS,TRefElement:vS,TSpanElement:Au,TextElement:RA,TextPathElement:bS,TitleElement:LS,Transform:wa,Translate:Y4,UnknownElement:rS,UseElement:ES,ViewPort:G4,compressSpaces:hs,default:gs,getSelectorSpecificity:$4,normalizeAttributeName:V4,normalizeColor:z4,parseExternalUrl:Mv,presets:cq,toNumbers:Vn,trimLeft:j4,trimRight:K4,vectorMagnitude:jv,vectorsAngle:Kv,vectorsRatio:Sf},Symbol.toStringTag,{value:"Module"}));st.BugBuilderService=Id,st.BugDialog=Qg,st.BugStoreService=Vu,st.CsvExporter=Nd,st.DedupManager=Gw,st.EnvironmentCollector=d1,st.ErrorClassifier=Rt,st.ExportService=Zo,st.FloatingToolbar=_g,st.HttpInterceptor=Bd,st.IframeAdapter=Ng,st.JsonExporter=_d,st.MarkdownExporter=Qd,st.NpmAdapter=_c,st.PdfExporter=Tg,st.RouteDetector=p1,st.ScreenshotService=f1,st.WordExporter=ig,st.bdcPreset=EN,st.bdcdj3Preset=SN,st.bdcqdPreset=IN,st.bdcyc2Preset=FN,st.bindEvents=LQ,st.buildBugSections=x1,st.buildReportSections=Ld,st.buildUploadUrl=w1,st.clearElement=RB,st.createAdapter=BN,st.createAutoAdapter=xN,st.createElement=ge,st.createReg3WebConfig=CN,st.debounce=kQ,st.default=_c,st.getDefaultAiInboxFormat=b1,st.getExportService=SI,st.on=We,st.parseDescriptionSections=B1,st.pub3Preset=UN,st.reg3WebPreset=Lc,st.sendBugToAiInbox=y1,st.setPosition=QQ,st.setVisible=RQ,st.throttle=PQ,st.toggleClass=NQ,st.transition=OQ,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
413
+ //# sourceMappingURL=issues-reporter.umd.js.map