const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-kRVt5wzr.js","assets/index-IP_FWtso.js","assets/vendor-mui-CBBEb17G.js","assets/vendor-utils-BveVE6Uf.js","assets/vendor-react-BBazpZul.js","assets/vendor-charts-tGnAgELZ.js","assets/index-C6LxSCCw.css"])))=>i.map(i=>d[i]);
var p3=Object.defineProperty;var b3=(e,t,A)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A;var Yt=(e,t,A)=>b3(e,typeof t!="symbol"?t+"":t,A);import{j as oe,p as Vr,c as m3,ab as B3,a6 as If,a9 as a1,S as ln,W as Ff,a8 as E3,o as w3,Q as C3,R as i1,X as v3,M as Vi,aq as T3}from"./vendor-mui-CBBEb17G.js";import{q as Mu,u as _h,a as ke,L as Qp,f as y3}from"./vendor-react-BBazpZul.js";import{bM as x3,e as fa,aA as s1,aI as i0,aH as I3,al as Nh,aO as F3,v as Op,r as Iu,by as ul,bL as u1,x as L3,J as Er,at as Dp,a$ as _3,e9 as N3,dD as o1,et as U3,bx as S3,aX as Uh,fl as eA,f9 as c1,_ as ol,cm as Rp,z as us,a_ as s0,u as Q3,g as l1,dP as Hp,w as f1,gv as O3,ao as ua,dj as D3,b0 as R3,aP as So,bc as H3,aS as P3,I as hu,fK as M3,er as k3,R as K3,bT as q3}from"./index-IP_FWtso.js";import{a as fi,g as Pp,b as j3}from"./vendor-utils-BveVE6Uf.js";import{P as u0}from"./paraClinicReportService-CPrAAYEf.js";import{T as V3,P as G3,C as Mp,a as Y3}from"./pictureBar-CNJpaRmK.js";import{P as kp}from"./index-CX1H_zLs.js";import{M as W3}from"./MedicationLiquid-DoXYb-ww.js";import{G as X3}from"./index-B3kRwJ8t.js";import"./vendor-charts-tGnAgELZ.js";import"./patientDisease-C3wY8rI5.js";import"./DialogContent-asMcp3We.js";import"./index-BVnW54m0.js";import"./index-DWGens_O.js";import"./index-CTCUXoGp.js";const o0=()=>({getParaClinicReportTemplates:async s=>(await fi.get("/ParaClinicReportTemplate",{params:s})).data,getParaClinicReportTemplateById:async s=>(await fi.get(`/ParaClinicReportTemplate/${s}`)).data,addParaClinicReportTemplate:async s=>(await fi.post("/ParaClinicReportTemplate",s)).data,editParaClinicReportTemplate:async s=>(await fi.put(`/ParaClinicReportTemplate/${s.id}`,s)).data,deleteParaClinicReportTemplates:async s=>(await fi.delete(`/ParaClinicReportTemplate/${s}`)).data,getParaClinicReportTemplateSelectList:async s=>(await fi.get("/ParaClinicReportTemplate/SelectList",{params:s})).data,getParaClinicReportTemplateText:async s=>(await fi.get(`/ParaClinicReportTemplate/${s}/Text`)).data});var Fu=(e=>(e[e.A4=1]="A4",e[e.A5=2]="A5",e))(Fu||{});const Lf=`
code {
	background-color: hsla(0, 0%, 78%, 0.3);
	padding: .15em;
	border-radius: 2px;
}

blockquote {
	overflow: hidden;
	padding-right: 1.5em;
	padding-left: 1.5em;

	margin-left: 0;
	margin-right: 0;
	font-style: italic;
	border-left: solid 5px hsl(0, 0%, 80%);
}

[dir="rtl"] blockquote {
	border-left: 0;
	border-right: solid 5px hsl(0, 0%, 80%);
}

pre {
	padding: 1em;
	color: hsl(0, 0%, 20.8%);
	background: hsla(0, 0%, 78%, 0.3);
	border: 1px solid hsl(0, 0%, 77%);
	border-radius: 2px;
	text-align: left;
	direction: ltr;

	tab-size: 4;
	white-space: pre-wrap;
	font-style: normal;
	min-width: 200px;
}

pre code {
	background: unset;
	padding: 0;
	border-radius: 0;
}


hr {
	margin: 15px 0;
	height: 4px;
	background: hsl(0, 0%, 87%);
	border: 0;
}




img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	min-width: 100%;
	height: auto;
}


ol {
	list-style-type: decimal;
}

ol ol {
	list-style-type: lower-latin;
}

ol ol ol {
	list-style-type: lower-roman;
}

ol ol ol ol {
	list-style-type: upper-latin;
}

ol ol ol ol ol {
	list-style-type: upper-roman;
}

ul {
	list-style-type: disc;
}

ul ul {
	list-style-type: circle;
}

ul ul ul {
	list-style-type: square;
}

ul ul ul ul {
	list-style-type: square;
}

.page-break {
	position: relative;
	clear: both;
	padding: 5px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-break::after {
	content: '';
	position: absolute;
	border-bottom: 2px dashed hsl(0, 0%, 77%);
	width: 100%;
}

.page-break__label {
	position: relative;
	z-index: 1;
	padding: .3em .6em;
	display: block;
	text-transform: uppercase;
	border: 1px solid hsl(0, 0%, 77%);
	border-radius: 2px;
	font-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;
	font-size: 0.75em;
	font-weight: bold;
	color: hsl(0, 0%, 20%);
	background: hsl(0, 0%, 100%);
	box-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

@media print {
	.page-break {
		padding: 0;
	}

	.page-break::after {
		display: none;
	}

	*:has(+ .page-break) {
		margin-bottom: 0;
	}
}

[dir="rtl"] table th {
	text-align: right;
}

[dir="ltr"] table th {
	text-align: left;
}

table {
	display: table;
	width: 100%;
	height: 100%;
	margin: 0.9em auto;
	border-collapse: collapse;
	border-spacing: 0;
	border: 1px double hsl(0, 0%, 70%);
}



table>thead>tr>th,
table>tbody>tr>th {
	font-weight: bold;
	background: hsla(0, 0%, 0%, 5%);
}

table>thead>tr>td,
table>tbody>tr>td,
table>thead>tr>th,
table>tbody>tr>th {
	min-width: 2em;
	padding: .4em;
	border: 1px solid hsl(0, 0%, 75%);
}

@media print {
	table {
		height: initial;
	}
}



table>figcaption {
	display: table-caption;
	caption-side: top;
	word-break: break-word;
	text-align: center;
	color: var(--ck-color-selector-caption-text);
	background-color: var(--ck-color-selector-caption-background);
	padding: .6em;
	font-size: .75em;
	outline-offset: -1px;
}

@media (forced-colors: active) {
	table>figcaption {
		background-color: unset;
		color: unset;
	}
}

table td,
table th {
	overflow-wrap: break-word;
}
`,Kp=ke.createContext(void 0),z3=({children:e})=>{const{findPatientByNationalCode:t}=x3(),{getParaClinicReportTemplates:A,getParaClinicReportTemplateSelectList:r,getParaClinicReportTemplateText:n}=o0(),{getParaClinicReport:a}=u0(),{clinicId:i,officeId:s,doctorId:u}=fa(Be=>Be.doctorData),{receptionId:c,doneServiceId:l}=Mu();_h();const{getReceptionDoneServicesReportAsync:p}=I3(),{GetReceptionByReceptionIdAsync:m}=i0(),h=ke.useRef(),[w,v]=ke.useState(!1),[T,C]=ke.useState(!1),[U,R]=ke.useState(!1),[F,D]=ke.useState(),[P,J]=ke.useState(),[K,S]=ke.useState(),[Ae,E]=ke.useState(""),[I,Q]=ke.useState(),[M,X]=ke.useState(!1),[$,ae]=ke.useState(),[te,le]=ke.useState(),[Te,ye]=ke.useState(),[_,G]=ke.useState(!!localStorage.getItem("have-print-header")),[z,re]=ke.useState(null),[se,fe]=ke.useState(""),[ge,Ee]=ke.useState(null),Ce=async()=>{try{if(!F||!c||!Te)return;X(!0);const{data:Be}=await p({clinicId:i,officeId:s,PatientId:F.id,ReceptionId:+c,from:s1(Te.receptionInfo.createDate),upTo:s1(Te.receptionInfo.createDate)});if(!Be)return;Ee(Be.list)}catch(Be){console.log("ERROR_IN_GETTING_DONE_SERVICES_REPORT",Be)}finally{X(!1)}},_e=async Be=>{const Pe=await t({patientId:Be});Pe.patientInfo&&D(Pe.patientInfo),J(Pe.hasDeserve)},qe=async Be=>{try{X(!0);const{data:Pe}=await A(Be);if(!Pe)return;ae(Pe)}finally{X(!1)}},Ke=async()=>{try{if(X(!0),!c)return;const{data:Be}=await m({receptionId:+c});if(!Be)return;ye(Be),await _e(Be.receptionInfo.patientId)}finally{X(!1)}},Je=ke.useRef(void 0);ke.useEffect(()=>{Je.current=l},[l]);const q=async()=>{try{if(X(!0),!F||!Je)return;const Be=Je.current;if(!Be)return;const{data:Pe}=await a({ClinicId:i,OfficeId:s,PatientId:F.id,DoneServiceId:+Be});if(!Pe)return;const He=Pe.list.find(Ve=>Ve);return He?S(He):(h==null||h.current.setData(""),S(void 0))}finally{X(!1)}},Me=async Be=>{try{X(!0);const{data:Pe}=await r({...Be,reportType:+Ae});if(!Pe)return;const He=Pe.map(Ve=>({label:Ve.title,value:Ve.id.toString()}));le(He)}catch(Pe){console.log("ERROR_IN_FETCH_TEMPLATE_SELECT_LIST",Pe)}finally{X(!1)}},it=async()=>{try{if(X(!0),!F)return;const{message:Be}=await n(F.id);h.current.setData(Be),R(!0)}catch{console.log("ERROR_IN_FETCHING_REPORT_TEXT")}finally{X(!1)}};ke.useEffect(()=>{qe(),Me()},[]),ke.useEffect(()=>{_?localStorage.setItem("have-print-header","true"):localStorage.removeItem("have-print-header")},[_]),ke.useEffect(()=>{c&&Ke()},[c]),ke.useEffect(()=>{K&&(R(!0),E(K.reportType.toString()))},[K,l]),ke.useEffect(()=>{Ae&&(Me(),localStorage.setItem("report-type",Ae))},[Ae]),ke.useEffect(()=>{E(localStorage.getItem("report-type")||"")},[]),ke.useEffect(()=>{q()},[F,l]),ke.useEffect(()=>{Ce()},[Te,c,F]);const $e={states:{hasDeserve:P,haveAllergy:T,haveDisease:w,isEdit:U,patient:F,report:K,reportType:Ae,editor:h,templates:$,reception:Te,templateId:I,havePrintHeader:_,loading:M,templateSelectList:te,printing:z,receptionServicesList:ge},handlers:{setHaveAllergy:C,setHaveDisease:v,setIsEdit:R,setReport:S,setReportType:E,setReception:ye,setTemplateId:Q,setHavePrintHeader:G,setPrinting:re},request:{fetchTemplate:qe,fetchPatient:_e,fetchReception:Ke,fectchTemplateSelectList:Me,fetchReportText:it,findReport:q}};return oe.jsx(Kp.Provider,{value:$e,children:e})},Ii=()=>ke.useContext(Kp),J3=()=>{const{states:{patient:e,isEdit:t,hasDeserve:A,haveAllergy:r,haveDisease:n,reception:a},handlers:{setHaveAllergy:i,setHaveDisease:s},request:{fetchPatient:u}}=Ii(),{receptionId:c}=Mu();return oe.jsxs(Vr,{className:"pt-[10px] !bg-white",children:[oe.jsx(V3,{haveAllergy:r,haveDisease:n,isEdit:t,patient:e,setHaveAllergy:i,setHaveDisease:s,receptionId:+c,refresh:u}),oe.jsx(G3,{patient:e,hasDeserve:A,receptionId:a==null?void 0:a.receptionInfo.customId})]})},qp=Nh(Vr)`
  height: calc(100% - 140px) !important;
  /*width:210mm;*/
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 5px;
  .cke_contents {
    height: calc(100% - 75px) !important;
    border: 1px solid #c4c4c4 !important;
    border-radius: 0 0 5px 5px !important;
  }
  .cke,
  .ck-editor__main,
  .ck-editor,
  .cke_4,
  .cke_inner,
  .cke_contents,
  .cke_reset {
    height: 100% !important;
    // direction: rtl;
    // text-align: right;
  }
  .cke_notifications_area,
  .cke_notification,
  .cke_notification_warning {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
`;Nh(Vr)`
  display: none;
  padding: 0 !important;
  margin: 0 !important;
  width: 210mm;
  height: 297mm;

  @media print {
    html,
    body {
      width: 210mm !important;
      height: initial !important;
      overflow: initial !important;
      -webkit-print-color-adjust: exact;
      font-family: 'B Nazanin', serif;
    }

    table,
    th,
    td {
      border: 1px solid !important;
      border-collapse: collapse !important;
    }

    th,
    td {
      padding: 4px !important;
    }

    * {
      -webkit-print-color-adjust: exact !important; /* For WebKit browsers */
      print-color-adjust: exact !important;
    }
  }

  @page {
    size: A4 portrait !important;
    margin 0 !important;
  }
`;Nh(Vr)`
  display: none;
  padding: 0 !important;
  margin: 0 !important;

  /* A5 size */
  width: 148mm;
  height: 210mm;

  @media print {
    html,
    body {
      width: 148mm !important;
      height: 210mm !important;
      overflow: hidden !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
      font-family: 'B Nazanin', serif;
    }

    table,
    th,
    td {
      border: 1px solid !important;
      border-collapse: collapse !important;
    }

    th,
    td {
      padding: 3px !important; /* slightly smaller for A5 */
    }

    * {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
    }
  }

  /* Force A5 paper size */
  @page {
    size: A5 portrait !important;
    margin: 0 !important;
  }
`;const jp=({onClose:e,text:t,templateId:A})=>{const{handleSubmit:r,formState:{errors:n},setValue:a,control:i}=F3(),{addParaClinicReportTemplate:s,getParaClinicReportTemplates:u,editParaClinicReportTemplate:c,getParaClinicReportTemplateById:l}=o0(),{clinicId:p,officeId:m}=fa($=>$.doctorData),{getSelectListAsync:h}=new kp,[w,v]=ke.useState(!1),[T,C]=ke.useState(),[U,R]=ke.useState(),[F,D]=ke.useState([]),[P,J]=ke.useState("new"),K=$=>{J($.target.value)},S=$=>{const ae=F.find(te=>te.id===$);ae&&R(ae)},Ae=async $=>{try{v(!0);const{data:ae}=await u($);if(!ae)return;D(ae)}finally{v(!1)}},E=async $=>{try{if(v(!0),P==="edit"){if(!U)return;const{message:ae}=await c({id:U.id,title:$.title,reportType:$.reportType,customCode:$.customCode,text:t});Er.success(ae)}else{const{message:ae}=await s({text:t,title:$.title,reportType:$.reportType,customCode:$.customCode});Er.success(ae)}e()}finally{v(!1)}},I=async()=>{try{v(!0);const{data:$}=await h();$&&C($)}finally{v(!1)}},Q=$=>{S(+$)},M=async()=>{if(!U)return;const{data:$}=await l(U.id);$&&(a("title",$.title),a("reportType",$.reportType),a("customCode",$.customCode??""))};ke.useEffect(()=>{I(),Ae()},[]),ke.useEffect(()=>{F.length&&A&&(J("edit"),S(A))},[A,F]),ke.useEffect(()=>{M()},[U]);const X=(T==null?void 0:T.map($=>({label:$.name,value:$.id})))||[];return oe.jsxs(Op,{onClose:e,title:"ذخیره قالب",maxWidth:"sm",children:[oe.jsxs(m3,{className:"m-1 !p-2",children:[oe.jsxs(B3,{row:!0,value:P,onChange:K,className:"gap-2",children:[oe.jsx(If,{value:"new",classes:{label:"!text-[0.8rem]"},control:oe.jsx(a1,{size:"small"}),label:"ثبت قالب جدید"}),oe.jsx(If,{value:"edit",classes:{label:"!text-[0.8rem]"},control:oe.jsx(a1,{size:"small"}),label:"ویرایش قالب موجود"})]}),P==="edit"&&oe.jsx(Iu,{label:"انتخاب قالب",items:F.map($=>({label:$.title,value:$.id})),className:"!my-2",onchange:$=>Q($)}),oe.jsxs("form",{children:[oe.jsx(ul,{name:"title",control:i,render:({field:$})=>oe.jsx(u1,{...$,labelText:"عنوان قالب",error:!!n.title,validation:{required:!0,minLength:10},fullWidth:!0,helperText:"طول عنوان باید حداقل 10 حرف باشد"})}),oe.jsx(ul,{name:"customCode",control:i,render:({field:$})=>oe.jsx(u1,{...$,labelText:"کد",error:!!n.title,validation:{required:!0,maxLength:50},fullWidth:!0,helperText:"طول کد حداکثر 50 حرف می‌باشد"})}),oe.jsx(ul,{name:"reportType",control:i,defaultValue:"",render:({field:{onChange:$,value:ae}})=>oe.jsx(Iu,{items:X,label:"نوع گزارش",fullWidth:!0,error:!!n.id,validation:{required:!0},className:"!mt-3",value:ae,onchange:$})})]})]}),oe.jsx(L3,{onClose:e,onSubmit:r(E),loading:w})]})},Z3=({onClose:e})=>{var J;const{getParaClinicReportTemplates:t,deleteParaClinicReportTemplates:A}=o0(),{clinicId:r,officeId:n}=fa(K=>K.doctorData),a=Dp(),[i,s]=ke.useState(!1),[u,c]=ke.useState(),[l,p]=ke.useState(!1),[m,h]=ke.useState(0),[w,v]=ke.useState(),[T,C]=ke.useState(),U=K=>{v(w==null?void 0:w.filter(S=>S.title.includes(K.title)))},R=async K=>{try{p(!0);const{data:S}=await t(K);S&&v(S),S&&C(S)}finally{p(!1)}},F=async()=>{try{if(p(!0),!u)return;a({content:"آیا از حذف این قالب اطمینان دارید؟"}).then(async()=>{const{message:K}=await A(u==null?void 0:u.id);Er.success(K),R()}).catch(()=>{})}finally{p(!1)}};ke.useEffect(()=>{R()},[]),ke.useEffect(()=>{if(m===0){C(w);return}C(w==null?void 0:w.filter(K=>K.id===m))},[m]);const D=[{title:"کد گزارش",key:"customCode",dataIndex:"customCode",width:100,render:K=>K??"---"},{title:"نوع گزارش",key:"reportTypeName",dataIndex:"reportTypeName",width:120},{title:"عنوان",key:"title",dataIndex:"title",width:250}],P=(J=_3(w))==null?void 0:J.groupBy(K=>K.id).map((K,S)=>K[0]).value().map(K=>({label:K.reportTypeName,value:K.id}));return P.unshift({label:"همه",value:0}),oe.jsxs(N3,{title:"قالب ها",onClose:e,onSearch:U,fetchData:R,maxWidth:"md",children:[oe.jsxs(ln,{direction:"row",justifyContent:"start",alignItems:"center",spacing:1,sx:{marginLeft:2},children:[oe.jsx(Iu,{label:"نوع گزارش",items:P||[],fullWidth:!0,className:"!w-[300px]",value:m,onchange:K=>h(+K)}),oe.jsx(Ff,{title:"ویرایش",children:oe.jsx(o1,{disabled:!u,onClick:()=>s(!0),children:oe.jsx(U3,{fontSize:"large"})})}),oe.jsx(Ff,{title:"حذف",children:oe.jsx(o1,{disabled:!u,onClick:F,children:oe.jsx(S3,{fontSize:"large",color:"error"})})})]}),oe.jsx(Uh,{loading:l,rowKey:"id",columns:D||[],data:T||[],onClick:K=>c(K)}),u&&i&&oe.jsx(jp,{onClose:()=>{s(!1),R()},text:u==null?void 0:u.title,templateId:u.id})]})};var cl={exports:{}},gt;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(gt||(gt={}));function Sh(e){return e.type===gt.Tag||e.type===gt.Script||e.type===gt.Style}const Vp=gt.Root,Gp=gt.Text,Yp=gt.Directive,Wp=gt.Comment,Xp=gt.Script,zp=gt.Style,Jp=gt.Tag,Zp=gt.CDATA,$p=gt.Doctype;let eb=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return _u(this,t)}},Qh=class extends eb{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}},Sc=class extends Qh{constructor(){super(...arguments),this.type=gt.Text}get nodeType(){return 3}},tb=class extends Qh{constructor(){super(...arguments),this.type=gt.Comment}get nodeType(){return 8}},Ab=class extends Qh{constructor(t,A){super(A),this.name=t,this.type=gt.Directive}get nodeType(){return 1}},Oh=class extends eb{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}},rb=class extends Oh{constructor(){super(...arguments),this.type=gt.CDATA}get nodeType(){return 4}},Lu=class extends Oh{constructor(){super(...arguments),this.type=gt.Root}get nodeType(){return 9}},nb=class extends Oh{constructor(t,A,r=[],n=t==="script"?gt.Script:t==="style"?gt.Style:gt.Tag){super(r),this.name=t,this.attribs=A,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var A,r;return{name:t,value:this.attribs[t],namespace:(A=this["x-attribsNamespace"])===null||A===void 0?void 0:A[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}};function Mt(e){return Sh(e)}function ab(e){return e.type===gt.CDATA}function Dh(e){return e.type===gt.Text}function ib(e){return e.type===gt.Comment}function $3(e){return e.type===gt.Directive}function Fi(e){return e.type===gt.Root}function dr(e){return Object.prototype.hasOwnProperty.call(e,"children")}function _u(e,t=!1){let A;if(Dh(e))A=new Sc(e.data);else if(ib(e))A=new tb(e.data);else if(Mt(e)){const r=t?ll(e.children):[],n=new nb(e.name,{...e.attribs},r);r.forEach(a=>a.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),A=n}else if(ab(e)){const r=t?ll(e.children):[],n=new rb(r);r.forEach(a=>a.parent=n),A=n}else if(Fi(e)){const r=t?ll(e.children):[],n=new Lu(r);r.forEach(a=>a.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),A=n}else if($3(e)){const r=new Ab(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),A=r}else throw new Error(`Not implemented yet: ${e.type}`);return A.startIndex=e.startIndex,A.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(A.sourceCodeLocation=e.sourceCodeLocation),A}function ll(e){const t=e.map(A=>_u(A,!0));for(let A=1;A<t.length;A++)t[A].prev=t[A-1],t[A-1].next=t[A];return t}const h1={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class eE{constructor(t,A,r){this.dom=[],this.root=new Lu(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof A=="function"&&(r=A,A=h1),typeof t=="object"&&(A=t,t=void 0),this.callback=t??null,this.options=A??h1,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new Lu(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,A){const r=this.options.xmlMode?gt.Tag:void 0,n=new nb(t,A,void 0,r);this.addNode(n),this.tagStack.push(n)}ontext(t){const{lastNode:A}=this;if(A&&A.type===gt.Text)A.data+=t,this.options.withEndIndices&&(A.endIndex=this.parser.endIndex);else{const r=new Sc(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===gt.Comment){this.lastNode.data+=t;return}const A=new tb(t);this.addNode(A),this.lastNode=A}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Sc(""),A=new rb([t]);this.addNode(A),t.parent=A,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,A){const r=new Ab(t,A);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const A=this.tagStack[this.tagStack.length-1],r=A.children[A.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),A.children.push(t),r&&(t.prev=r,r.next=t),t.parent=A,this.lastNode=null}}const Rh=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),sb=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var fl;const tE=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),_f=(fl=String.fromCodePoint)!==null&&fl!==void 0?fl:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function AE(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=tE.get(e))!==null&&t!==void 0?t:e}var qA;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(qA||(qA={}));const rE=32;var Ra;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ra||(Ra={}));function Nf(e){return e>=qA.ZERO&&e<=qA.NINE}function nE(e){return e>=qA.UPPER_A&&e<=qA.UPPER_F||e>=qA.LOWER_A&&e<=qA.LOWER_F}function aE(e){return e>=qA.UPPER_A&&e<=qA.UPPER_Z||e>=qA.LOWER_A&&e<=qA.LOWER_Z||Nf(e)}function iE(e){return e===qA.EQUALS||aE(e)}var kA;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(kA||(kA={}));var Wr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Wr||(Wr={}));class Hh{constructor(t,A,r){this.decodeTree=t,this.emitCodePoint=A,this.errors=r,this.state=kA.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Wr.Strict}startEntity(t){this.decodeMode=t,this.state=kA.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,A){switch(this.state){case kA.EntityStart:return t.charCodeAt(A)===qA.NUM?(this.state=kA.NumericStart,this.consumed+=1,this.stateNumericStart(t,A+1)):(this.state=kA.NamedEntity,this.stateNamedEntity(t,A));case kA.NumericStart:return this.stateNumericStart(t,A);case kA.NumericDecimal:return this.stateNumericDecimal(t,A);case kA.NumericHex:return this.stateNumericHex(t,A);case kA.NamedEntity:return this.stateNamedEntity(t,A)}}stateNumericStart(t,A){return A>=t.length?-1:(t.charCodeAt(A)|rE)===qA.LOWER_X?(this.state=kA.NumericHex,this.consumed+=1,this.stateNumericHex(t,A+1)):(this.state=kA.NumericDecimal,this.stateNumericDecimal(t,A))}addToNumericResult(t,A,r,n){if(A!==r){const a=r-A;this.result=this.result*Math.pow(n,a)+parseInt(t.substr(A,a),n),this.consumed+=a}}stateNumericHex(t,A){const r=A;for(;A<t.length;){const n=t.charCodeAt(A);if(Nf(n)||nE(n))A+=1;else return this.addToNumericResult(t,r,A,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,r,A,16),-1}stateNumericDecimal(t,A){const r=A;for(;A<t.length;){const n=t.charCodeAt(A);if(Nf(n))A+=1;else return this.addToNumericResult(t,r,A,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,r,A,10),-1}emitNumericEntity(t,A){var r;if(this.consumed<=A)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===qA.SEMI)this.consumed+=1;else if(this.decodeMode===Wr.Strict)return 0;return this.emitCodePoint(AE(this.result),this.consumed),this.errors&&(t!==qA.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,A){const{decodeTree:r}=this;let n=r[this.treeIndex],a=(n&Ra.VALUE_LENGTH)>>14;for(;A<t.length;A++,this.excess++){const i=t.charCodeAt(A);if(this.treeIndex=sE(r,n,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return this.result===0||this.decodeMode===Wr.Attribute&&(a===0||iE(i))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],a=(n&Ra.VALUE_LENGTH)>>14,a!==0){if(i===qA.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Wr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:A,decodeTree:r}=this,n=(r[A]&Ra.VALUE_LENGTH)>>14;return this.emitNamedEntityData(A,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,A,r){const{decodeTree:n}=this;return this.emitCodePoint(A===1?n[t]&~Ra.VALUE_LENGTH:n[t+1],r),A===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case kA.NamedEntity:return this.result!==0&&(this.decodeMode!==Wr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case kA.NumericDecimal:return this.emitNumericEntity(0,2);case kA.NumericHex:return this.emitNumericEntity(0,3);case kA.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case kA.EntityStart:return 0}}}function ub(e){let t="";const A=new Hh(e,r=>t+=_f(r));return function(n,a){let i=0,s=0;for(;(s=n.indexOf("&",s))>=0;){t+=n.slice(i,s),A.startEntity(a);const c=A.write(n,s+1);if(c<0){i=s+A.end();break}i=s+c,s=c===0?i+1:i}const u=t+n.slice(i);return t="",u}}function sE(e,t,A,r){const n=(t&Ra.BRANCH_LENGTH)>>7,a=t&Ra.JUMP_TABLE;if(n===0)return a!==0&&r===a?A:-1;if(a){const u=r-a;return u<0||u>=n?-1:e[A+u]-1}let i=A,s=i+n-1;for(;i<=s;){const u=i+s>>>1,c=e[u];if(c<r)i=u+1;else if(c>r)s=u-1;else return e[u+n]}return-1}ub(Rh);ub(sb);const d1=/["&'<>$\x80-\uFFFF]/g,uE=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),oE=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function ob(e){let t="",A=0,r;for(;(r=d1.exec(e))!==null;){const n=r.index,a=e.charCodeAt(n),i=uE.get(a);i!==void 0?(t+=e.substring(A,n)+i,A=n+1):(t+=`${e.substring(A,n)}&#x${oE(e,n).toString(16)};`,A=d1.lastIndex+=+((a&64512)===55296))}return t+e.substr(A)}function cb(e,t){return function(r){let n,a=0,i="";for(;n=e.exec(r);)a!==n.index&&(i+=r.substring(a,n.index)),i+=t.get(n[0].charCodeAt(0)),a=n.index+1;return i+r.substring(a)}}const lb=cb(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),fb=cb(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),cE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),lE=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),fE=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function hE(e){return e.replace(/"/g,"&quot;")}function dE(e,t){var A;if(!e)return;const r=((A=t.encodeEntities)!==null&&A!==void 0?A:t.decodeEntities)===!1?hE:t.xmlMode||t.encodeEntities!=="utf8"?ob:lb;return Object.keys(e).map(n=>{var a,i;const s=(a=e[n])!==null&&a!==void 0?a:"";return t.xmlMode==="foreign"&&(n=(i=lE.get(n))!==null&&i!==void 0?i:n),!t.emptyAttrs&&!t.xmlMode&&s===""?n:`${n}="${r(s)}"`}).join(" ")}const g1=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Ph(e,t={}){const A="length"in e?e:[e];let r="";for(let n=0;n<A.length;n++)r+=gE(A[n],t);return r}function gE(e,t){switch(e.type){case Vp:return Ph(e.children,t);case $p:case Yp:return BE(e);case Wp:return CE(e);case Zp:return wE(e);case Xp:case zp:case Jp:return mE(e,t);case Gp:return EE(e,t)}}const pE=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),bE=new Set(["svg","math"]);function mE(e,t){var A;t.xmlMode==="foreign"&&(e.name=(A=cE.get(e.name))!==null&&A!==void 0?A:e.name,e.parent&&pE.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&bE.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const n=dE(e.attribs,t);return n&&(r+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&g1.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=Ph(e.children,t)),(t.xmlMode||!g1.has(e.name))&&(r+=`</${e.name}>`)),r}function BE(e){return`<${e.data}>`}function EE(e,t){var A;let r=e.data||"";return((A=t.encodeEntities)!==null&&A!==void 0?A:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&fE.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?ob(r):fb(r)),r}function wE(e){return`<![CDATA[${e.children[0].data}]]>`}function CE(e){return`<!--${e.data}-->`}function Qc(e){return Array.isArray(e)?e.map(Qc).join(""):dr(e)&&!ib(e)?Qc(e.children):Dh(e)?e.data:""}function Uf(e){return Array.isArray(e)?e.map(Uf).join(""):dr(e)&&(e.type===gt.Tag||ab(e))?Uf(e.children):Dh(e)?e.data:""}function hb(e){return dr(e)?e.children:[]}function vE(e){return e.parent||null}function TE(e){const t=vE(e);if(t!=null)return hb(t);const A=[e];let{prev:r,next:n}=e;for(;r!=null;)A.unshift(r),{prev:r}=r;for(;n!=null;)A.push(n),{next:n}=n;return A}function db(e){let{next:t}=e;for(;t!==null&&!Mt(t);)({next:t}=t);return t}function gb(e){let{prev:t}=e;for(;t!==null&&!Mt(t);)({prev:t}=t);return t}function pb(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,A=t.lastIndexOf(e);A>=0&&t.splice(A,1)}e.next=null,e.prev=null,e.parent=null}var cn;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(cn||(cn={}));function yE(e,t){const A=[],r=[];if(e===t)return 0;let n=dr(e)?e:e.parent;for(;n;)A.unshift(n),n=n.parent;for(n=dr(t)?t:t.parent;n;)r.unshift(n),n=n.parent;const a=Math.min(A.length,r.length);let i=0;for(;i<a&&A[i]===r[i];)i++;if(i===0)return cn.DISCONNECTED;const s=A[i-1],u=s.children,c=A[i],l=r[i];return u.indexOf(c)>u.indexOf(l)?s===t?cn.FOLLOWING|cn.CONTAINED_BY:cn.FOLLOWING:s===e?cn.PRECEDING|cn.CONTAINS:cn.PRECEDING}function c0(e){return e=e.filter((t,A,r)=>!r.includes(t,A+1)),e.sort((t,A)=>{const r=yE(t,A);return r&cn.PRECEDING?-1:r&cn.FOLLOWING?1:0}),e}const xE={_useHtmlParser2:!1};function Sf(e,t){if(!e)return t??xE;const A={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(A._useHtmlParser2=!0,A.xmlMode=!0,e.xml!==!0&&Object.assign(A,e.xml)):e.xmlMode&&(A._useHtmlParser2=!0),A}function bb(e,t,A){return e?e(t??e._root.children,null,void 0,A).toString():""}function IE(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function FE(e,t){const A=IE(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...Sf(t)};return bb(this,A,r)}function LE(e){const t={...this._options,xmlMode:!0};return bb(this,e,t)}function Nu(e){const t=e??(this?this.root():[]);let A="";for(let r=0;r<t.length;r++)A+=Qc(t[r]);return A}function _E(e,t,A=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(A=t);const r=this.load(e,this._options,!1);return A||r("script").remove(),[...r.root()[0].children]}function NE(){return this(this._root)}function Mh(e,t){if(t===e)return!1;let A=t;for(;A&&A!==A.parent;)if(A=A.parent,A===e)return!0;return!1}function UE(e){return this.root().extract(e)}function mb(e,t){if(!p1(e)||!p1(t))return;let A=e.length;const r=+t.length;for(let n=0;n<r;n++)e[A++]=t[n];return e.length=A,e}function p1(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const SE=Object.freeze(Object.defineProperty({__proto__:null,contains:Mh,extract:UE,html:FE,merge:mb,parseHTML:_E,root:NE,text:Nu,xml:LE},Symbol.toStringTag,{value:"Module"}));function oa(e){return e.cheerio!=null}function QE(e){return e.replace(/[._-](\w|$)/g,(t,A)=>A.toUpperCase())}function OE(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function fA(e,t){const A=e.length;for(let r=0;r<A;r++)t(e[r],r);return e}var pi;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(pi||(pi={}));function Qf(e){const t=e.indexOf("<");if(t<0||t>e.length-3)return!1;const A=e.charCodeAt(t+1);return(A>=pi.LowerA&&A<=pi.LowerZ||A>=pi.UpperA&&A<=pi.UpperZ||A===pi.Exclamation)&&e.includes(">",t+2)}const Uu=Object.prototype.hasOwnProperty,Su=/\s+/,Of="data-",kh=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,DE=/^{[^]*}$|^\[[^]*]$/;function Oc(e,t,A){var r;if(!(!e||!Mt(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(Uu.call(e.attribs,t))return!A&&kh.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Nu(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function os(e,t,A){A===null?Eb(e,t):e.attribs[t]=`${A}`}function RE(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return fA(this,(A,r)=>{Mt(A)&&os(A,e,t.call(A,r,A.attribs[e]))})}return fA(this,A=>{if(Mt(A))if(typeof e=="object")for(const r of Object.keys(e)){const n=e[r];os(A,r,n)}else os(A,e,t)})}return arguments.length>1?this:Oc(this[0],e,this.options.xmlMode)}function b1(e,t,A){return t in e?e[t]:!A&&kh.test(t)?Oc(e,t,!1)!==void 0:Oc(e,t,A)}function hl(e,t,A,r){t in e?e[t]=A:os(e,t,!r&&kh.test(t)?A?"":null:`${A}`)}function HE(e,t){var A;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r||!Mt(r))return;switch(e){case"style":{const n=this.css(),a=Object.keys(n);for(let i=0;i<a.length;i++)n[i]=a[i];return n.length=a.length,n}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{const n=(A=r.attribs)===null||A===void 0?void 0:A[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.tagName==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&n!==void 0&&this.options.baseURI?new URL(n,this.options.baseURI).href:n}case"innerText":return Uf(r);case"textContent":return Qc(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return b1(r,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return fA(this,(r,n)=>{Mt(r)&&hl(r,e,t.call(r,n,b1(r,e,this.options.xmlMode)),this.options.xmlMode)})}return fA(this,r=>{if(Mt(r))if(typeof e=="object")for(const n of Object.keys(e)){const a=e[n];hl(r,n,a,this.options.xmlMode)}else hl(r,e,t,this.options.xmlMode)})}}function m1(e,t,A){var r;(r=e.data)!==null&&r!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&A!==void 0&&(e.data[t]=A)}function PE(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(Of))continue;const A=QE(t.slice(Of.length));Uu.call(e.data,A)||(e.data[A]=Bb(e.attribs[t]))}return e.data}function ME(e,t){const A=Of+OE(t),r=e.data;if(Uu.call(r,t))return r[t];if(Uu.call(e.attribs,A))return r[t]=Bb(e.attribs[A])}function Bb(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(DE.test(e))try{return JSON.parse(e)}catch{}return e}function kE(e,t){var A;const r=this[0];if(!r||!Mt(r))return;const n=r;return(A=n.data)!==null&&A!==void 0||(n.data={}),e==null?PE(n):typeof e=="object"||t!==void 0?(fA(this,a=>{Mt(a)&&(typeof e=="object"?m1(a,e):m1(a,e,t))}),this):ME(n,e)}function KE(e){const t=arguments.length===0,A=this[0];if(!A||!Mt(A))return t?void 0:this;switch(A.name){case"textarea":return this.text(e);case"select":{const r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const n=typeof e=="object"?e:[e];for(const a of n)this.find(`option[value="${a}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(n=>Nu(n.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function Eb(e,t){!e.attribs||!Uu.call(e.attribs,t)||delete e.attribs[t]}function Dc(e){return e?e.trim().split(Su):[]}function qE(e){const t=Dc(e);for(const A of t)fA(this,r=>{Mt(r)&&Eb(r,A)});return this}function jE(e){return this.toArray().some(t=>{const A=Mt(t)&&t.attribs.class;let r=-1;if(A&&e.length>0)for(;(r=A.indexOf(e,r+1))>-1;){const n=r+e.length;if((r===0||Su.test(A[r-1]))&&(n===A.length||Su.test(A[n])))return!0}return!1})}function wb(e){if(typeof e=="function")return fA(this,(r,n)=>{if(Mt(r)){const a=r.attribs.class||"";wb.call([r],e.call(r,n,a))}});if(!e||typeof e!="string")return this;const t=e.split(Su),A=this.length;for(let r=0;r<A;r++){const n=this[r];if(!Mt(n))continue;const a=Oc(n,"class",!1);if(a){let i=` ${a} `;for(const s of t){const u=`${s} `;i.includes(` ${u}`)||(i+=u)}os(n,"class",i.trim())}else os(n,"class",t.join(" ").trim())}return this}function Cb(e){if(typeof e=="function")return fA(this,(n,a)=>{Mt(n)&&Cb.call([n],e.call(n,a,n.attribs.class||""))});const t=Dc(e),A=t.length,r=arguments.length===0;return fA(this,n=>{if(Mt(n))if(r)n.attribs.class="";else{const a=Dc(n.attribs.class);let i=!1;for(let s=0;s<A;s++){const u=a.indexOf(t[s]);u>=0&&(a.splice(u,1),i=!0,s--)}i&&(n.attribs.class=a.join(" "))}})}function vb(e,t){if(typeof e=="function")return fA(this,(i,s)=>{Mt(i)&&vb.call([i],e.call(i,s,i.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const A=e.split(Su),r=A.length,n=typeof t=="boolean"?t?1:-1:0,a=this.length;for(let i=0;i<a;i++){const s=this[i];if(!Mt(s))continue;const u=Dc(s.attribs.class);for(let c=0;c<r;c++){const l=u.indexOf(A[c]);n>=0&&l<0?u.push(A[c]):n<=0&&l>=0&&u.splice(l,1)}s.attribs.class=u.join(" ")}return this}const VE=Object.freeze(Object.defineProperty({__proto__:null,addClass:wb,attr:RE,data:kE,hasClass:jE,prop:HE,removeAttr:qE,removeClass:Cb,toggleClass:vb,val:KE},Symbol.toStringTag,{value:"Module"}));var ct;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(ct||(ct={}));var RA;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(RA||(RA={}));const B1=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,GE=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,YE=new Map([[126,RA.Element],[94,RA.Start],[36,RA.End],[42,RA.Any],[33,RA.Not],[124,RA.Hyphen]]),WE=new Set(["has","not","matches","is","where","host","host-context"]);function du(e){switch(e.type){case ct.Adjacent:case ct.Child:case ct.Descendant:case ct.Parent:case ct.Sibling:case ct.ColumnCombinator:return!0;default:return!1}}const XE=new Set(["contains","icontains"]);function zE(e,t,A){const r=parseInt(t,16)-65536;return r!==r||A?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function zs(e){return e.replace(GE,zE)}function dl(e){return e===39||e===34}function E1(e){return e===32||e===9||e===10||e===12||e===13}function l0(e){const t=[],A=Tb(t,`${e}`,0);if(A<e.length)throw new Error(`Unmatched selector: ${e.slice(A)}`);return t}function Tb(e,t,A){let r=[];function n(m){const h=t.slice(A+m).match(B1);if(!h)throw new Error(`Expected name, found ${t.slice(A)}`);const[w]=h;return A+=m+w.length,zs(w)}function a(m){for(A+=m;A<t.length&&E1(t.charCodeAt(A));)A++}function i(){A+=1;const m=A;let h=1;for(;h>0&&A<t.length;A++)t.charCodeAt(A)===40&&!s(A)?h++:t.charCodeAt(A)===41&&!s(A)&&h--;if(h)throw new Error("Parenthesis not matched");return zs(t.slice(m,A-1))}function s(m){let h=0;for(;t.charCodeAt(--m)===92;)h++;return(h&1)===1}function u(){if(r.length>0&&du(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function c(m){if(r.length>0&&r[r.length-1].type===ct.Descendant){r[r.length-1].type=m;return}u(),r.push({type:m})}function l(m,h){r.push({type:ct.Attribute,name:m,action:h,value:n(1),namespace:null,ignoreCase:"quirks"})}function p(){if(r.length&&r[r.length-1].type===ct.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(a(0),t.length===A)return A;e:for(;A<t.length;){const m=t.charCodeAt(A);switch(m){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==ct.Descendant)&&(u(),r.push({type:ct.Descendant})),a(1);break}case 62:{c(ct.Child),a(1);break}case 60:{c(ct.Parent),a(1);break}case 126:{c(ct.Sibling),a(1);break}case 43:{c(ct.Adjacent),a(1);break}case 46:{l("class",RA.Element);break}case 35:{l("id",RA.Equals);break}case 91:{a(1);let h,w=null;t.charCodeAt(A)===124?h=n(1):t.startsWith("*|",A)?(w="*",h=n(2)):(h=n(0),t.charCodeAt(A)===124&&t.charCodeAt(A+1)!==61&&(w=h,h=n(1))),a(0);let v=RA.Exists;const T=YE.get(t.charCodeAt(A));if(T){if(v=T,t.charCodeAt(A+1)!==61)throw new Error("Expected `=`");a(2)}else t.charCodeAt(A)===61&&(v=RA.Equals,a(1));let C="",U=null;if(v!=="exists"){if(dl(t.charCodeAt(A))){const D=t.charCodeAt(A);let P=A+1;for(;P<t.length&&(t.charCodeAt(P)!==D||s(P));)P+=1;if(t.charCodeAt(P)!==D)throw new Error("Attribute value didn't end");C=zs(t.slice(A+1,P)),A=P+1}else{const D=A;for(;A<t.length&&(!E1(t.charCodeAt(A))&&t.charCodeAt(A)!==93||s(A));)A+=1;C=zs(t.slice(D,A))}a(0);const F=t.charCodeAt(A)|32;F===115?(U=!1,a(1)):F===105&&(U=!0,a(1))}if(t.charCodeAt(A)!==93)throw new Error("Attribute selector didn't terminate");A+=1;const R={type:ct.Attribute,name:h,action:v,value:C,namespace:w,ignoreCase:U};r.push(R);break}case 58:{if(t.charCodeAt(A+1)===58){r.push({type:ct.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(A)===40?i():null});continue}const h=n(1).toLowerCase();let w=null;if(t.charCodeAt(A)===40)if(WE.has(h)){if(dl(t.charCodeAt(A+1)))throw new Error(`Pseudo-selector ${h} cannot be quoted`);if(w=[],A=Tb(w,t,A+1),t.charCodeAt(A)!==41)throw new Error(`Missing closing parenthesis in :${h} (${t})`);A+=1}else{if(w=i(),XE.has(h)){const v=w.charCodeAt(0);v===w.charCodeAt(w.length-1)&&dl(v)&&(w=w.slice(1,-1))}w=zs(w)}r.push({type:ct.Pseudo,name:h,data:w});break}case 44:{p(),r=[],a(1);break}default:{if(t.startsWith("/*",A)){const v=t.indexOf("*/",A+2);if(v<0)throw new Error("Comment was not terminated");A=v+2,r.length===0&&a(0);break}let h=null,w;if(m===42)A+=1,w="*";else if(m===124){if(w="",t.charCodeAt(A+1)===124){c(ct.ColumnCombinator),a(2);break}}else if(B1.test(t.slice(A)))w=n(0);else break e;t.charCodeAt(A)===124&&t.charCodeAt(A+1)!==124&&(h=w,t.charCodeAt(A+1)===42?(w="*",A+=2):w=n(1)),r.push(w==="*"?{type:ct.Universal,namespace:h}:{type:ct.Tag,name:w,namespace:h})}}}return p(),A}function $A(e){return Sh(e)}function Kh(e){return e.type===gt.CDATA}function gs(e){return e.type===gt.Text}function yb(e){return e.type===gt.Comment}function JE(e){return e.type===gt.Root}function fn(e){return Object.prototype.hasOwnProperty.call(e,"children")}const w1=/["&'<>$\x80-\uFFFF]/g,ZE=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),$E=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function xb(e){let t="",A=0,r;for(;(r=w1.exec(e))!==null;){const n=r.index,a=e.charCodeAt(n),i=ZE.get(a);i!==void 0?(t+=e.substring(A,n)+i,A=n+1):(t+=`${e.substring(A,n)}&#x${$E(e,n).toString(16)};`,A=w1.lastIndex+=+((a&64512)===55296))}return t+e.substr(A)}function Ib(e,t){return function(r){let n,a=0,i="";for(;n=e.exec(r);)a!==n.index&&(i+=r.substring(a,n.index)),i+=t.get(n[0].charCodeAt(0)),a=n.index+1;return i+r.substring(a)}}const e4=Ib(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t4=Ib(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),A4=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),r4=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),n4=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function a4(e){return e.replace(/"/g,"&quot;")}function i4(e,t){var A;if(!e)return;const r=((A=t.encodeEntities)!==null&&A!==void 0?A:t.decodeEntities)===!1?a4:t.xmlMode||t.encodeEntities!=="utf8"?xb:e4;return Object.keys(e).map(n=>{var a,i;const s=(a=e[n])!==null&&a!==void 0?a:"";return t.xmlMode==="foreign"&&(n=(i=r4.get(n))!==null&&i!==void 0?i:n),!t.emptyAttrs&&!t.xmlMode&&s===""?n:`${n}="${r(s)}"`}).join(" ")}const C1=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function qh(e,t={}){const A="length"in e?e:[e];let r="";for(let n=0;n<A.length;n++)r+=s4(A[n],t);return r}function s4(e,t){switch(e.type){case Vp:return qh(e.children,t);case $p:case Yp:return l4(e);case Wp:return d4(e);case Zp:return h4(e);case Xp:case zp:case Jp:return c4(e,t);case Gp:return f4(e,t)}}const u4=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),o4=new Set(["svg","math"]);function c4(e,t){var A;t.xmlMode==="foreign"&&(e.name=(A=A4.get(e.name))!==null&&A!==void 0?A:e.name,e.parent&&u4.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&o4.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const n=i4(e.attribs,t);return n&&(r+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&C1.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=qh(e.children,t)),(t.xmlMode||!C1.has(e.name))&&(r+=`</${e.name}>`)),r}function l4(e){return`<${e.data}>`}function f4(e,t){var A;let r=e.data||"";return((A=t.encodeEntities)!==null&&A!==void 0?A:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&n4.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?xb(r):t4(r)),r}function h4(e){return`<![CDATA[${e.children[0].data}]]>`}function d4(e){return`<!--${e.data}-->`}function Fb(e,t){return qh(e,t)}function g4(e,t){return fn(e)?e.children.map(A=>Fb(A,t)).join(""):""}function Ec(e){return Array.isArray(e)?e.map(Ec).join(""):$A(e)?e.name==="br"?`
`:Ec(e.children):Kh(e)?Ec(e.children):gs(e)?e.data:""}function Rc(e){return Array.isArray(e)?e.map(Rc).join(""):fn(e)&&!yb(e)?Rc(e.children):gs(e)?e.data:""}function Df(e){return Array.isArray(e)?e.map(Df).join(""):fn(e)&&(e.type===gt.Tag||Kh(e))?Df(e.children):gs(e)?e.data:""}function jh(e){return fn(e)?e.children:[]}function Lb(e){return e.parent||null}function p4(e){const t=Lb(e);if(t!=null)return jh(t);const A=[e];let{prev:r,next:n}=e;for(;r!=null;)A.unshift(r),{prev:r}=r;for(;n!=null;)A.push(n),{next:n}=n;return A}function b4(e,t){var A;return(A=e.attribs)===null||A===void 0?void 0:A[t]}function m4(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function B4(e){return e.name}function E4(e){let{next:t}=e;for(;t!==null&&!$A(t);)({next:t}=t);return t}function w4(e){let{prev:t}=e;for(;t!==null&&!$A(t);)({prev:t}=t);return t}function ku(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,A=t.lastIndexOf(e);A>=0&&t.splice(A,1)}e.next=null,e.prev=null,e.parent=null}function C4(e,t){const A=t.prev=e.prev;A&&(A.next=t);const r=t.next=e.next;r&&(r.prev=t);const n=t.parent=e.parent;if(n){const a=n.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function v4(e,t){if(ku(t),t.next=null,t.parent=e,e.children.push(t)>1){const A=e.children[e.children.length-2];A.next=t,t.prev=A}else t.prev=null}function T4(e,t){ku(t);const{parent:A}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=A,r){if(r.prev=t,A){const n=A.children;n.splice(n.lastIndexOf(r),0,t)}}else A&&A.children.push(t)}function y4(e,t){if(ku(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const A=e.children[1];A.prev=t,t.next=A}else t.next=null}function x4(e,t){ku(t);const{parent:A}=e;if(A){const r=A.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=A,t.prev=e.prev,t.next=e,e.prev=t}function Ku(e,t,A=!0,r=1/0){return Vh(e,Array.isArray(t)?t:[t],A,r)}function Vh(e,t,A,r){const n=[],a=[Array.isArray(t)?t:[t]],i=[0];for(;;){if(i[0]>=a[0].length){if(i.length===1)return n;a.shift(),i.shift();continue}const s=a[0][i[0]++];if(e(s)&&(n.push(s),--r<=0))return n;A&&fn(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function I4(e,t){return t.find(e)}function Gh(e,t,A=!0){const r=Array.isArray(t)?t:[t];for(let n=0;n<r.length;n++){const a=r[n];if($A(a)&&e(a))return a;if(A&&fn(a)&&a.children.length>0){const i=Gh(e,a.children,!0);if(i)return i}}return null}function _b(e,t){return(Array.isArray(t)?t:[t]).some(A=>$A(A)&&e(A)||fn(A)&&_b(e,A.children))}function F4(e,t){const A=[],r=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=r[0].length){if(r.length===1)return A;r.shift(),n.shift();continue}const a=r[0][n[0]++];$A(a)&&e(a)&&A.push(a),fn(a)&&a.children.length>0&&(n.unshift(0),r.unshift(a.children))}}const Hc={tag_name(e){return typeof e=="function"?t=>$A(t)&&e(t.name):e==="*"?$A:t=>$A(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>gs(t)&&e(t.data):t=>gs(t)&&t.data===e}};function Yh(e,t){return typeof t=="function"?A=>$A(A)&&t(A.attribs[e]):A=>$A(A)&&A.attribs[e]===t}function L4(e,t){return A=>e(A)||t(A)}function Nb(e){const t=Object.keys(e).map(A=>{const r=e[A];return Object.prototype.hasOwnProperty.call(Hc,A)?Hc[A](r):Yh(A,r)});return t.length===0?null:t.reduce(L4)}function _4(e,t){const A=Nb(e);return A?A(t):!0}function N4(e,t,A,r=1/0){const n=Nb(e);return n?Ku(n,t,A,r):[]}function U4(e,t,A=!0){return Array.isArray(t)||(t=[t]),Gh(Yh("id",e),t,A)}function ms(e,t,A=!0,r=1/0){return Ku(Hc.tag_name(e),t,A,r)}function S4(e,t,A=!0,r=1/0){return Ku(Yh("class",e),t,A,r)}function Q4(e,t,A=!0,r=1/0){return Ku(Hc.tag_type(e),t,A,r)}function O4(e){let t=e.length;for(;--t>=0;){const A=e[t];if(t>0&&e.lastIndexOf(A,t-1)>=0){e.splice(t,1);continue}for(let r=A.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var jr;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(jr||(jr={}));function Ub(e,t){const A=[],r=[];if(e===t)return 0;let n=fn(e)?e:e.parent;for(;n;)A.unshift(n),n=n.parent;for(n=fn(t)?t:t.parent;n;)r.unshift(n),n=n.parent;const a=Math.min(A.length,r.length);let i=0;for(;i<a&&A[i]===r[i];)i++;if(i===0)return jr.DISCONNECTED;const s=A[i-1],u=s.children,c=A[i],l=r[i];return u.indexOf(c)>u.indexOf(l)?s===t?jr.FOLLOWING|jr.CONTAINED_BY:jr.FOLLOWING:s===e?jr.PRECEDING|jr.CONTAINS:jr.PRECEDING}function Sb(e){return e=e.filter((t,A,r)=>!r.includes(t,A+1)),e.sort((t,A)=>{const r=Ub(t,A);return r&jr.PRECEDING?-1:r&jr.FOLLOWING?1:0}),e}function D4(e){const t=Pc(k4,e);return t?t.name==="feed"?R4(t):H4(t):null}function R4(e){var t;const A=e.children,r={type:"atom",items:ms("entry",A).map(i=>{var s;const{children:u}=i,c={media:Qb(u)};mr(c,"id","id",u),mr(c,"title","title",u);const l=(s=Pc("link",u))===null||s===void 0?void 0:s.attribs.href;l&&(c.link=l);const p=Ha("summary",u)||Ha("content",u);p&&(c.description=p);const m=Ha("updated",u);return m&&(c.pubDate=new Date(m)),c})};mr(r,"id","id",A),mr(r,"title","title",A);const n=(t=Pc("link",A))===null||t===void 0?void 0:t.attribs.href;n&&(r.link=n),mr(r,"description","subtitle",A);const a=Ha("updated",A);return a&&(r.updated=new Date(a)),mr(r,"author","email",A,!0),r}function H4(e){var t,A;const r=(A=(t=Pc("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&A!==void 0?A:[],n={type:e.name.substr(0,3),id:"",items:ms("item",e.children).map(i=>{const{children:s}=i,u={media:Qb(s)};mr(u,"id","guid",s),mr(u,"title","title",s),mr(u,"link","link",s),mr(u,"description","description",s);const c=Ha("pubDate",s)||Ha("dc:date",s);return c&&(u.pubDate=new Date(c)),u})};mr(n,"title","title",r),mr(n,"link","link",r),mr(n,"description","description",r);const a=Ha("lastBuildDate",r);return a&&(n.updated=new Date(a)),mr(n,"author","managingEditor",r,!0),n}const P4=["url","type","lang"],M4=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Qb(e){return ms("media:content",e).map(t=>{const{attribs:A}=t,r={medium:A.medium,isDefault:!!A.isDefault};for(const n of P4)A[n]&&(r[n]=A[n]);for(const n of M4)A[n]&&(r[n]=parseInt(A[n],10));return A.expression&&(r.expression=A.expression),r})}function Pc(e,t){return ms(e,t,!0,1)[0]}function Ha(e,t,A=!1){return Rc(ms(e,t,A,1)).trim()}function mr(e,t,A,r,n=!1){const a=Ha(A,r,n);a&&(e[t]=a)}function k4(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const f0=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return jr},append:T4,appendChild:v4,compareDocumentPosition:Ub,existsOne:_b,filter:Ku,find:Vh,findAll:F4,findOne:Gh,findOneChild:I4,getAttributeValue:b4,getChildren:jh,getElementById:U4,getElements:N4,getElementsByClassName:S4,getElementsByTagName:ms,getElementsByTagType:Q4,getFeed:D4,getInnerHTML:g4,getName:B4,getOuterHTML:Fb,getParent:Lb,getSiblings:p4,getText:Ec,hasAttrib:m4,hasChildren:fn,innerText:Df,isCDATA:Kh,isComment:yb,isDocument:JE,isTag:$A,isText:gs,nextElementSibling:E4,prepend:x4,prependChild:y4,prevElementSibling:w4,removeElement:ku,removeSubsets:O4,replaceElement:C4,testElement:_4,textContent:Rc,uniqueSort:Sb},Symbol.toStringTag,{value:"Module"}));var gl,v1;function K4(){return v1||(v1=1,gl={trueFunc:function(){return!0},falseFunc:function(){return!1}}),gl}var Mc=K4();const _t=Pp(Mc),Ob=new Map([[ct.Universal,50],[ct.Tag,30],[ct.Attribute,1],[ct.Pseudo,0]]);function Wh(e){return!Ob.has(e.type)}const q4=new Map([[RA.Exists,10],[RA.Equals,8],[RA.Not,7],[RA.Start,6],[RA.End,6],[RA.Any,5]]);function j4(e){const t=e.map(Db);for(let A=1;A<e.length;A++){const r=t[A];if(!(r<0))for(let n=A-1;n>=0&&r<t[n];n--){const a=e[n+1];e[n+1]=e[n],e[n]=a,t[n+1]=t[n],t[n]=r}}}function Db(e){var t,A;let r=(t=Ob.get(e.type))!==null&&t!==void 0?t:-1;return e.type===ct.Attribute?(r=(A=q4.get(e.action))!==null&&A!==void 0?A:4,e.action===RA.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===ct.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(n=>Math.min(...n.map(Db)))),r<0&&(r=0)):r=2:r=3),r}const V4=/[-[\]{}()*+?.,\\^$|#\s]/g;function T1(e){return e.replace(V4,"\\$&")}const G4=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function hi(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&G4.has(e.name)}const Y4={equals(e,t,A){const{adapter:r}=A,{name:n}=t;let{value:a}=t;return hi(t,A)?(a=a.toLowerCase(),i=>{const s=r.getAttributeValue(i,n);return s!=null&&s.length===a.length&&s.toLowerCase()===a&&e(i)}):i=>r.getAttributeValue(i,n)===a&&e(i)},hyphen(e,t,A){const{adapter:r}=A,{name:n}=t;let{value:a}=t;const i=a.length;return hi(t,A)?(a=a.toLowerCase(),function(u){const c=r.getAttributeValue(u,n);return c!=null&&(c.length===i||c.charAt(i)==="-")&&c.substr(0,i).toLowerCase()===a&&e(u)}):function(u){const c=r.getAttributeValue(u,n);return c!=null&&(c.length===i||c.charAt(i)==="-")&&c.substr(0,i)===a&&e(u)}},element(e,t,A){const{adapter:r}=A,{name:n,value:a}=t;if(/\s/.test(a))return _t.falseFunc;const i=new RegExp(`(?:^|\\s)${T1(a)}(?:$|\\s)`,hi(t,A)?"i":"");return function(u){const c=r.getAttributeValue(u,n);return c!=null&&c.length>=a.length&&i.test(c)&&e(u)}},exists(e,{name:t},{adapter:A}){return r=>A.hasAttrib(r,t)&&e(r)},start(e,t,A){const{adapter:r}=A,{name:n}=t;let{value:a}=t;const i=a.length;return i===0?_t.falseFunc:hi(t,A)?(a=a.toLowerCase(),s=>{const u=r.getAttributeValue(s,n);return u!=null&&u.length>=i&&u.substr(0,i).toLowerCase()===a&&e(s)}):s=>{var u;return!!(!((u=r.getAttributeValue(s,n))===null||u===void 0)&&u.startsWith(a))&&e(s)}},end(e,t,A){const{adapter:r}=A,{name:n}=t;let{value:a}=t;const i=-a.length;return i===0?_t.falseFunc:hi(t,A)?(a=a.toLowerCase(),s=>{var u;return((u=r.getAttributeValue(s,n))===null||u===void 0?void 0:u.substr(i).toLowerCase())===a&&e(s)}):s=>{var u;return!!(!((u=r.getAttributeValue(s,n))===null||u===void 0)&&u.endsWith(a))&&e(s)}},any(e,t,A){const{adapter:r}=A,{name:n,value:a}=t;if(a==="")return _t.falseFunc;if(hi(t,A)){const i=new RegExp(T1(a),"i");return function(u){const c=r.getAttributeValue(u,n);return c!=null&&c.length>=a.length&&i.test(c)&&e(u)}}return i=>{var s;return!!(!((s=r.getAttributeValue(i,n))===null||s===void 0)&&s.includes(a))&&e(i)}},not(e,t,A){const{adapter:r}=A,{name:n}=t;let{value:a}=t;return a===""?i=>!!r.getAttributeValue(i,n)&&e(i):hi(t,A)?(a=a.toLowerCase(),i=>{const s=r.getAttributeValue(i,n);return(s==null||s.length!==a.length||s.toLowerCase()!==a)&&e(i)}):i=>r.getAttributeValue(i,n)!==a&&e(i)}},W4=new Set([9,10,12,13,32]),y1=48,X4=57;function z4(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,A=0,r=a(),n=i();if(t<e.length&&e.charAt(t)==="n"&&(t++,A=r*(n??1),s(),t<e.length?(r=a(),s(),n=i()):r=n=0),n===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[A,r*n];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function i(){const u=t;let c=0;for(;t<e.length&&e.charCodeAt(t)>=y1&&e.charCodeAt(t)<=X4;)c=c*10+(e.charCodeAt(t)-y1),t++;return t===u?null:c}function s(){for(;t<e.length&&W4.has(e.charCodeAt(t));)t++}}function J4(e){const t=e[0],A=e[1]-1;if(A<0&&t<=0)return _t.falseFunc;if(t===-1)return a=>a<=A;if(t===0)return a=>a===A;if(t===1)return A<0?_t.trueFunc:a=>a>=A;const r=Math.abs(t),n=(A%r+r)%r;return t>1?a=>a>=A&&a%r===n:a=>a<=A&&a%r===n}function Qo(e){return J4(z4(e))}function Oo(e,t){return A=>{const r=t.getParent(A);return r!=null&&t.isTag(r)&&e(A)}}const Rf={contains(e,t,{adapter:A}){return function(n){return e(n)&&A.getText(n).includes(t)}},icontains(e,t,{adapter:A}){const r=t.toLowerCase();return function(a){return e(a)&&A.getText(a).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:A,equals:r}){const n=Qo(t);return n===_t.falseFunc?_t.falseFunc:n===_t.trueFunc?Oo(e,A):function(i){const s=A.getSiblings(i);let u=0;for(let c=0;c<s.length&&!r(i,s[c]);c++)A.isTag(s[c])&&u++;return n(u)&&e(i)}},"nth-last-child"(e,t,{adapter:A,equals:r}){const n=Qo(t);return n===_t.falseFunc?_t.falseFunc:n===_t.trueFunc?Oo(e,A):function(i){const s=A.getSiblings(i);let u=0;for(let c=s.length-1;c>=0&&!r(i,s[c]);c--)A.isTag(s[c])&&u++;return n(u)&&e(i)}},"nth-of-type"(e,t,{adapter:A,equals:r}){const n=Qo(t);return n===_t.falseFunc?_t.falseFunc:n===_t.trueFunc?Oo(e,A):function(i){const s=A.getSiblings(i);let u=0;for(let c=0;c<s.length;c++){const l=s[c];if(r(i,l))break;A.isTag(l)&&A.getName(l)===A.getName(i)&&u++}return n(u)&&e(i)}},"nth-last-of-type"(e,t,{adapter:A,equals:r}){const n=Qo(t);return n===_t.falseFunc?_t.falseFunc:n===_t.trueFunc?Oo(e,A):function(i){const s=A.getSiblings(i);let u=0;for(let c=s.length-1;c>=0;c--){const l=s[c];if(r(i,l))break;A.isTag(l)&&A.getName(l)===A.getName(i)&&u++}return n(u)&&e(i)}},root(e,t,{adapter:A}){return r=>{const n=A.getParent(r);return(n==null||!A.isTag(n))&&e(r)}},scope(e,t,A,r){const{equals:n}=A;return!r||r.length===0?Rf.root(e,t,A):r.length===1?a=>n(r[0],a)&&e(a):a=>r.includes(a)&&e(a)},hover:pl("isHovered"),visited:pl("isVisited"),active:pl("isActive")};function pl(e){return function(A,r,{adapter:n}){const a=n[e];return typeof a!="function"?_t.falseFunc:function(s){return a(s)&&A(s)}}}const x1={empty(e,{adapter:t}){return!t.getChildren(e).some(A=>t.isTag(A)||t.getText(A)!=="")},"first-child"(e,{adapter:t,equals:A}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find(n=>t.isTag(n));return r!=null&&A(e,r)},"last-child"(e,{adapter:t,equals:A}){const r=t.getSiblings(e);for(let n=r.length-1;n>=0;n--){if(A(e,r[n]))return!0;if(t.isTag(r[n]))break}return!1},"first-of-type"(e,{adapter:t,equals:A}){const r=t.getSiblings(e),n=t.getName(e);for(let a=0;a<r.length;a++){const i=r[a];if(A(e,i))return!0;if(t.isTag(i)&&t.getName(i)===n)break}return!1},"last-of-type"(e,{adapter:t,equals:A}){const r=t.getSiblings(e),n=t.getName(e);for(let a=r.length-1;a>=0;a--){const i=r[a];if(A(e,i))return!0;if(t.isTag(i)&&t.getName(i)===n)break}return!1},"only-of-type"(e,{adapter:t,equals:A}){const r=t.getName(e);return t.getSiblings(e).every(n=>A(e,n)||!t.isTag(n)||t.getName(n)!==r)},"only-child"(e,{adapter:t,equals:A}){return t.getSiblings(e).every(r=>A(e,r)||!t.isTag(r))}};function I1(e,t,A,r){if(A===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const Z4={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
        :is(button, input, select, textarea, optgroup, option)[disabled],
        optgroup[disabled] > option,
        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
    )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},Rb={};function $4(e,t){return e===_t.falseFunc?_t.falseFunc:A=>t.isTag(A)&&e(A)}function Hb(e,t){const A=t.getSiblings(e);if(A.length<=1)return[];const r=A.indexOf(e);return r<0||r===A.length-1?[]:A.slice(r+1).filter(t.isTag)}function Hf(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const bl=(e,t,A,r,n)=>{const a=n(t,Hf(A),r);return a===_t.trueFunc?e:a===_t.falseFunc?_t.falseFunc:i=>a(i)&&e(i)},ml={is:bl,matches:bl,where:bl,not(e,t,A,r,n){const a=n(t,Hf(A),r);return a===_t.falseFunc?e:a===_t.trueFunc?_t.falseFunc:i=>!a(i)&&e(i)},has(e,t,A,r,n){const{adapter:a}=A,i=Hf(A);i.relativeSelector=!0;const s=t.some(l=>l.some(Wh))?[Rb]:void 0,u=n(t,i,s);if(u===_t.falseFunc)return _t.falseFunc;const c=$4(u,a);if(s&&u!==_t.trueFunc){const{shouldTestNextSiblings:l=!1}=u;return p=>{if(!e(p))return!1;s[0]=p;const m=a.getChildren(p),h=l?[...m,...Hb(p,a)]:m;return a.existsOne(c,h)}}return l=>e(l)&&a.existsOne(c,a.getChildren(l))}};function ew(e,t,A,r,n){var a;const{name:i,data:s}=t;if(Array.isArray(s)){if(!(i in ml))throw new Error(`Unknown pseudo-class :${i}(${s})`);return ml[i](e,s,A,r,n)}const u=(a=A.pseudos)===null||a===void 0?void 0:a[i],c=typeof u=="string"?u:Z4[i];if(typeof c=="string"){if(s!=null)throw new Error(`Pseudo ${i} doesn't have any arguments`);const l=l0(c);return ml.is(e,l,A,r,n)}if(typeof u=="function")return I1(u,i,s,1),l=>u(l,s)&&e(l);if(i in Rf)return Rf[i](e,s,A,r);if(i in x1){const l=x1[i];return I1(l,i,s,2),p=>l(p,A,s)&&e(p)}throw new Error(`Unknown pseudo-class :${i}`)}function Bl(e,t){const A=t.getParent(e);return A&&t.isTag(A)?A:null}function tw(e,t,A,r,n){const{adapter:a,equals:i}=A;switch(t.type){case ct.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ct.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ct.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!A.xmlMode||A.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Y4[t.action](e,t,A)}case ct.Pseudo:return ew(e,t,A,r,n);case ct.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:s}=t;return(!A.xmlMode||A.lowerCaseTags)&&(s=s.toLowerCase()),function(c){return a.getName(c)===s&&e(c)}}case ct.Descendant:{if(A.cacheResults===!1||typeof WeakSet>"u")return function(c){let l=c;for(;l=Bl(l,a);)if(e(l))return!0;return!1};const s=new WeakSet;return function(c){let l=c;for(;l=Bl(l,a);)if(!s.has(l)){if(a.isTag(l)&&e(l))return!0;s.add(l)}return!1}}case"_flexibleDescendant":return function(u){let c=u;do if(e(c))return!0;while(c=Bl(c,a));return!1};case ct.Parent:return function(u){return a.getChildren(u).some(c=>a.isTag(c)&&e(c))};case ct.Child:return function(u){const c=a.getParent(u);return c!=null&&a.isTag(c)&&e(c)};case ct.Sibling:return function(u){const c=a.getSiblings(u);for(let l=0;l<c.length;l++){const p=c[l];if(i(u,p))break;if(a.isTag(p)&&e(p))return!0}return!1};case ct.Adjacent:return a.prevElementSibling?function(u){const c=a.prevElementSibling(u);return c!=null&&e(c)}:function(u){const c=a.getSiblings(u);let l;for(let p=0;p<c.length;p++){const m=c[p];if(i(u,m))break;a.isTag(m)&&(l=m)}return!!l&&e(l)};case ct.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Pb(e){return e.type===ct.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Pb)))}const Aw={type:ct.Descendant},rw={type:"_flexibleDescendant"},nw={type:ct.Pseudo,name:"scope",data:null};function aw(e,{adapter:t},A){const r=!!(A!=null&&A.every(n=>{const a=t.isTag(n)&&t.getParent(n);return n===Rb||a&&t.isTag(a)}));for(const n of e){if(!(n.length>0&&Wh(n[0])&&n[0].type!==ct.Descendant))if(r&&!n.some(Pb))n.unshift(Aw);else continue;n.unshift(nw)}}function Mb(e,t,A){var r;e.forEach(j4),A=(r=t.context)!==null&&r!==void 0?r:A;const n=Array.isArray(A),a=A&&(Array.isArray(A)?A:[A]);if(t.relativeSelector!==!1)aw(e,t,a);else if(e.some(u=>u.length>0&&Wh(u[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let i=!1;const s=e.map(u=>{if(u.length>=2){const[c,l]=u;c.type!==ct.Pseudo||c.name!=="scope"||(n&&l.type===ct.Descendant?u[1]=rw:(l.type===ct.Adjacent||l.type===ct.Sibling)&&(i=!0))}return iw(u,t,a)}).reduce(sw,_t.falseFunc);return s.shouldTestNextSiblings=i,s}function iw(e,t,A){var r;return e.reduce((n,a)=>n===_t.falseFunc?_t.falseFunc:tw(n,a,t,A,Mb),(r=t.rootFunc)!==null&&r!==void 0?r:_t.trueFunc)}function sw(e,t){return t===_t.falseFunc||e===_t.trueFunc?e:e===_t.falseFunc||t===_t.trueFunc?t:function(r){return e(r)||t(r)}}const kb=(e,t)=>e===t,uw={adapter:f0,equals:kb};function ow(e){var t,A,r,n;const a=e??uw;return(t=a.adapter)!==null&&t!==void 0||(a.adapter=f0),(A=a.equals)!==null&&A!==void 0||(a.equals=(n=(r=a.adapter)===null||r===void 0?void 0:r.equals)!==null&&n!==void 0?n:kb),a}function cw(e){return function(A,r,n){const a=ow(r);return e(A,a,n)}}const Xh=cw(Mb);function Kb(e,t,A=!1){return A&&(e=lw(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function lw(e,t){const A=Array.isArray(e)?e.slice(0):[e],r=A.length;for(let n=0;n<r;n++){const a=Hb(A[n],t);A.push(...a)}return A}const fw=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function kc(e){return e.type!=="pseudo"?!1:fw.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(kc)):!1}function hw(e,t,A){const r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,A):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*A;case"even":return 2*A-1;case"last":case"not":return 1/0}}function dw(e){for(;e.parent;)e=e.parent;return e}function zh(e){const t=[],A=[];for(const r of e)r.some(kc)?t.push(r):A.push(r);return[A,t]}const gw={type:ct.Universal,namespace:null},pw={type:ct.Pseudo,name:"scope",data:null};function qb(e,t,A={}){return jb([e],t,A)}function jb(e,t,A={}){if(typeof t=="function")return e.some(t);const[r,n]=zh(l0(t));return r.length>0&&e.some(Xh(r,A))||n.some(a=>Yb(a,e,A).length>0)}function bw(e,t,A,r){const n=typeof A=="string"?parseInt(A,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(n)&&Math.abs(n)<t.length?[n<0?t[t.length+n]:t[n]]:[];case"gt":return isFinite(n)?t.slice(n+1):[];case"even":return t.filter((a,i)=>i%2===0);case"odd":return t.filter((a,i)=>i%2===1);case"not":{const a=new Set(Gb(A,t,r));return t.filter(i=>!a.has(i))}}}function Vb(e,t,A={}){return Gb(l0(e),t,A)}function Gb(e,t,A){if(t.length===0)return[];const[r,n]=zh(e);let a;if(r.length){const i=Mf(t,r,A);if(n.length===0)return i;i.length&&(a=new Set(i))}for(let i=0;i<n.length&&(a==null?void 0:a.size)!==t.length;i++){const s=n[i];if((a?t.filter(l=>$A(l)&&!a.has(l)):t).length===0)break;const c=Yb(s,t,A);if(c.length)if(a)c.forEach(l=>a.add(l));else{if(i===n.length-1)return c;a=new Set(c)}}return typeof a<"u"?a.size===t.length?t:t.filter(i=>a.has(i)):[]}function Yb(e,t,A){var r;if(e.some(du)){const n=(r=A.root)!==null&&r!==void 0?r:dw(t[0]),a={...A,context:t,relativeSelector:!1};return e.push(pw),Kc(n,e,a,!0,t.length)}return Kc(t,e,A,!1,t.length)}function mw(e,t,A={},r=1/0){if(typeof e=="function")return Wb(t,e);const[n,a]=zh(l0(e)),i=a.map(s=>Kc(t,s,A,!0,r));return n.length&&i.push(Pf(t,n,A,r)),i.length===0?[]:i.length===1?i[0]:Sb(i.reduce((s,u)=>[...s,...u]))}function Kc(e,t,A,r,n){const a=t.findIndex(kc),i=t.slice(0,a),s=t[a],u=t.length-1===a?n:1/0,c=hw(s.name,s.data,u);if(c===0)return[];const p=(i.length===0&&!Array.isArray(e)?jh(e).filter($A):i.length===0?(Array.isArray(e)?e:[e]).filter($A):r||i.some(du)?Pf(e,[i],A,c):Mf(e,[i],A)).slice(0,c);let m=bw(s.name,p,s.data,A);if(m.length===0||t.length===a+1)return m;const h=t.slice(a+1),w=h.some(du);if(w){if(du(h[0])){const{type:v}=h[0];(v===ct.Sibling||v===ct.Adjacent)&&(m=Kb(m,f0,!0)),h.unshift(gw)}A={...A,relativeSelector:!1,rootFunc:v=>m.includes(v)}}else A.rootFunc&&A.rootFunc!==Mc.trueFunc&&(A={...A,rootFunc:Mc.trueFunc});return h.some(kc)?Kc(m,h,A,!1,n):w?Pf(m,[h],A,n):Mf(m,[h],A)}function Pf(e,t,A,r){const n=Xh(t,A,e);return Wb(e,n,r)}function Wb(e,t,A=1/0){const r=Kb(e,f0,t.shouldTestNextSiblings);return Vh(n=>$A(n)&&t(n),r,!0,A)}function Mf(e,t,A){const r=(Array.isArray(e)?e:[e]).filter($A);if(r.length===0)return r;const n=Xh(t,A);return n===Mc.trueFunc?r:r.filter(n)}const Bw=/^\s*[+~]/;function Ew(e){if(!e)return this._make([]);if(typeof e!="string"){const t=oa(e)?e.toArray():[e],A=this.toArray();return this._make(t.filter(r=>A.some(n=>Mh(n,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function ww(e,t){var A;const r=this.toArray(),n=Bw.test(e)?r:this.children().toArray(),a={context:r,root:(A=this._root)===null||A===void 0?void 0:A[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(mw(e,n,a,t))}function Jh(e){return function(t,...A){return function(r){var n;let a=e(t,this);return r&&(a=ed(a,r,this.options.xmlMode,(n=this._root)===null||n===void 0?void 0:n[0])),this._make(this.length>1&&a.length>1?A.reduce((i,s)=>s(i),a):a)}}}const qu=Jh((e,t)=>{let A=[];for(let r=0;r<t.length;r++){const n=e(t[r]);n.length>0&&(A=A.concat(n))}return A}),Zh=Jh((e,t)=>{const A=[];for(let r=0;r<t.length;r++){const n=e(t[r]);n!==null&&A.push(n)}return A});function $h(e,...t){let A=null;const r=Jh((n,a)=>{const i=[];return fA(a,s=>{for(let u;(u=n(s))&&!(A!=null&&A(u,i.length));s=u)i.push(u)}),i})(e,...t);return function(n,a){A=typeof n=="string"?s=>qb(s,n,this.options):n?ju(n):null;const i=r.call(this,a);return A=null,i}}function Bs(e){return e.length>1?Array.from(new Set(e)):e}const Cw=Zh(({parent:e})=>e&&!Fi(e)?e:null,Bs),vw=qu(e=>{const t=[];for(;e.parent&&!Fi(e.parent);)t.push(e.parent),e=e.parent;return t},c0,e=>e.reverse()),Tw=$h(({parent:e})=>e&&!Fi(e)?e:null,c0,e=>e.reverse());function yw(e){var t;const A=[];if(!e)return this._make(A);const r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},n=typeof e=="string"?a=>qb(a,e,r):ju(e);return fA(this,a=>{for(a&&!Fi(a)&&!Mt(a)&&(a=a.parent);a&&Mt(a);){if(n(a,0)){A.includes(a)||A.push(a);break}a=a.parent}}),this._make(A)}const xw=Zh(e=>db(e)),Iw=qu(e=>{const t=[];for(;e.next;)e=e.next,Mt(e)&&t.push(e);return t},Bs),Fw=$h(e=>db(e),Bs),Lw=Zh(e=>gb(e)),_w=qu(e=>{const t=[];for(;e.prev;)e=e.prev,Mt(e)&&t.push(e);return t},Bs),Nw=$h(e=>gb(e),Bs),Uw=qu(e=>TE(e).filter(t=>Mt(t)&&t!==e),c0),Sw=qu(e=>hb(e).filter(Mt),Bs);function Qw(){const e=this.toArray().reduce((t,A)=>dr(A)?t.concat(A.children):t,[]);return this._make(e)}function Ow(e){let t=0;const A=this.length;for(;t<A&&e.call(this[t],t,this[t])!==!1;)++t;return this}function Dw(e){let t=[];for(let A=0;A<this.length;A++){const r=this[A],n=e.call(r,A,r);n!=null&&(t=t.concat(n))}return this._make(t)}function ju(e){return typeof e=="function"?(t,A)=>e.call(t,A,t):oa(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function Rw(e){var t;return this._make(ed(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function ed(e,t,A,r){return typeof t=="string"?Vb(t,e,{xmlMode:A,root:r}):e.filter(ju(t))}function Hw(e){const t=this.toArray();return typeof e=="string"?jb(t.filter(Mt),e,this.options):e?t.some(ju(e)):!1}function Pw(e){let t=this.toArray();if(typeof e=="string"){const A=new Set(Vb(e,t,this.options));t=t.filter(r=>!A.has(r))}else{const A=ju(e);t=t.filter((r,n)=>!A(r,n))}return this._make(t)}function Mw(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,A)=>this._make(A).find(e).length>0)}function kw(){return this.length>1?this._make(this[0]):this}function Kw(){return this.length>0?this._make(this[this.length-1]):this}function qw(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function jw(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function Vw(){return Array.prototype.slice.call(this)}function Gw(e){let t,A;return e==null?(t=this.parent().children(),A=this[0]):typeof e=="string"?(t=this._make(e),A=this[0]):(t=this,A=oa(e)?e[0]:e),Array.prototype.indexOf.call(t,A)}function Yw(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function Ww(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function Xw(e,t){const A=this._make(e,t),r=c0([...this.get(),...A.get()]);return this._make(r)}function zw(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const Jw=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:ww,add:Xw,addBack:zw,children:Sw,closest:yw,contents:Qw,each:Ow,end:Ww,eq:qw,filter:Rw,filterArray:ed,find:Ew,first:kw,get:jw,has:Mw,index:Gw,is:Hw,last:Kw,map:Dw,next:xw,nextAll:Iw,nextUntil:Fw,not:Pw,parent:Cw,parents:vw,parentsUntil:Tw,prev:Lw,prevAll:_w,prevUntil:Nw,siblings:Uw,slice:Yw,toArray:Vw},Symbol.toStringTag,{value:"Module"}));function Zw(e){return function(A,r,n,a){if(typeof Buffer<"u"&&Buffer.isBuffer(A)&&(A=A.toString()),typeof A=="string")return e(A,r,n,a);const i=A;if(!Array.isArray(i)&&Fi(i))return i;const s=new Lu([]);return Ti(i,s),s}}function Ti(e,t){const A=Array.isArray(e)?e:[e];t?t.children=A:t=null;for(let r=0;r<A.length;r++){const n=A[r];n.parent&&n.parent.children!==A&&pb(n),t?(n.prev=A[r-1]||null,n.next=A[r+1]||null):n.prev=n.next=null,n.parent=t}return t}function $w(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const A=[];for(let r=0;r<e.length;r++){const n=e[r];if(typeof n=="object"){if(n==null)continue;if(!("length"in n)){A.push(t?_u(n,!0):n);continue}}A.push(...this._makeDomArray(n,t))}return A}return[t?_u(e,!0):e]}function Xb(e){return function(...t){const A=this.length-1;return fA(this,(r,n)=>{if(!dr(r))return;const a=typeof t[0]=="function"?t[0].call(r,n,this._render(r.children)):t,i=this._makeDomArray(a,n<A);e(i,r.children,r)})}}function Ya(e,t,A,r,n){var a,i;const s=[t,A,...r],u=t===0?null:e[t-1],c=t+A>=e.length?null:e[t+A];for(let l=0;l<r.length;++l){const p=r[l],m=p.parent;if(m){const w=m.children.indexOf(p);w>-1&&(m.children.splice(w,1),n===m&&t>w&&s[0]--)}p.parent=n,p.prev&&(p.prev.next=(a=p.next)!==null&&a!==void 0?a:null),p.next&&(p.next.prev=(i=p.prev)!==null&&i!==void 0?i:null),p.prev=l===0?u:r[l-1],p.next=l===r.length-1?c:r[l+1]}return u&&(u.next=r[0]),c&&(c.prev=r[r.length-1]),e.splice(...s)}function e6(e){return(oa(e)?e:this._make(e)).append(this),this}function t6(e){return(oa(e)?e:this._make(e)).prepend(this),this}const A6=Xb((e,t,A)=>{Ya(t,t.length,0,e,A)}),r6=Xb((e,t,A)=>{Ya(t,0,0,e,A)});function zb(e){return function(t){const A=this.length-1,r=this.parents().last();for(let n=0;n<this.length;n++){const a=this[n],i=typeof t=="function"?t.call(a,n,a):typeof t=="string"&&!Qf(t)?r.find(t).clone():t,[s]=this._makeDomArray(i,n<A);if(!s||!dr(s))continue;let u=s,c=0;for(;c<u.children.length;){const l=u.children[c];Mt(l)?(u=l,c=0):c++}e(a,u,[s])}return this}}const n6=zb((e,t,A)=>{const{parent:r}=e;if(!r)return;const n=r.children,a=n.indexOf(e);Ti([e],t),Ya(n,a,0,A,r)}),a6=zb((e,t,A)=>{dr(e)&&(Ti(e.children,t),Ti(A,e))});function i6(e){return this.parent(e).not("body").each((t,A)=>{this._make(A).replaceWith(A.children)}),this}function s6(e){const t=this[0];if(t){const A=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let r;for(let a=0;a<A.length;a++)A[a].type==="tag"&&(r=A[a]);let n=0;for(;r&&n<r.children.length;){const a=r.children[n];a.type==="tag"?(r=a,n=0):n++}r&&this._make(r).append(this)}return this}function u6(...e){const t=this.length-1;return fA(this,(A,r)=>{if(!dr(A)||!A.parent)return;const n=A.parent.children,a=n.indexOf(A);if(a<0)return;const i=typeof e[0]=="function"?e[0].call(A,r,this._render(A.children)):e,s=this._makeDomArray(i,r<t);Ya(n,a+1,0,s,A.parent)})}function o6(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const A of this._makeDomArray(e)){const r=this.clone().toArray(),{parent:n}=A;if(!n)continue;const a=n.children,i=a.indexOf(A);i<0||(Ya(a,i+1,0,r,n),t.push(...r))}return this._make(t)}function c6(...e){const t=this.length-1;return fA(this,(A,r)=>{if(!dr(A)||!A.parent)return;const n=A.parent.children,a=n.indexOf(A);if(a<0)return;const i=typeof e[0]=="function"?e[0].call(A,r,this._render(A.children)):e,s=this._makeDomArray(i,r<t);Ya(n,a,0,s,A.parent)})}function l6(e){const t=this._make(e);this.remove();const A=[];return fA(t,r=>{const n=this.clone().toArray(),{parent:a}=r;if(!a)return;const i=a.children,s=i.indexOf(r);s<0||(Ya(i,s,0,n,a),A.push(...n))}),this._make(A)}function f6(e){const t=e?this.filter(e):this;return fA(t,A=>{pb(A),A.prev=A.next=A.parent=null}),this}function h6(e){return fA(this,(t,A)=>{const{parent:r}=t;if(!r)return;const n=r.children,a=typeof e=="function"?e.call(t,A,t):e,i=this._makeDomArray(a);Ti(i,null);const s=n.indexOf(t);Ya(n,s,1,i,r),i.includes(t)||(t.parent=t.prev=t.next=null)})}function d6(){return fA(this,e=>{if(dr(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function g6(e){if(e===void 0){const t=this[0];return!t||!dr(t)?null:this._render(t.children)}return fA(this,t=>{if(!dr(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const A=oa(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Ti(A,t)})}function p6(){return this._render(this)}function b6(e){return e===void 0?Nu(this):typeof e=="function"?fA(this,(t,A)=>this._make(t).text(e.call(t,A,Nu([t])))):fA(this,t=>{if(!dr(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const A=new Sc(`${e}`);Ti(A,t)})}function m6(){const e=Array.prototype.map.call(this.get(),A=>_u(A,!0)),t=new Lu(e);for(const A of e)A.parent=t;return this._make(e)}const B6=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:$w,after:u6,append:A6,appendTo:e6,before:c6,clone:m6,empty:d6,html:g6,insertAfter:o6,insertBefore:l6,prepend:r6,prependTo:t6,remove:f6,replaceWith:h6,text:b6,toString:p6,unwrap:i6,wrap:n6,wrapAll:s6,wrapInner:a6},Symbol.toStringTag,{value:"Module"}));function E6(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return fA(this,(A,r)=>{Mt(A)&&Jb(A,e,t,r)});if(this.length!==0)return Zb(this[0],e)}function Jb(e,t,A,r){if(typeof t=="string"){const n=Zb(e),a=typeof A=="function"?A.call(e,r,n[t]):A;a===""?delete n[t]:a!=null&&(n[t]=a),e.attribs.style=w6(n)}else if(typeof t=="object"){const n=Object.keys(t);for(let a=0;a<n.length;a++){const i=n[a];Jb(e,i,t[i],a)}}}function Zb(e,t){if(!e||!Mt(e))return;const A=C6(e.attribs.style);if(typeof t=="string")return A[t];if(Array.isArray(t)){const r={};for(const n of t)A[n]!=null&&(r[n]=A[n]);return r}return A}function w6(e){return Object.keys(e).reduce((t,A)=>`${t}${t?" ":""}${A}: ${e[A]};`,"")}function C6(e){if(e=(e||"").trim(),!e)return{};const t={};let A;for(const r of e.split(";")){const n=r.indexOf(":");if(n<1||n===r.length-1){const a=r.trimEnd();a.length>0&&A!==void 0&&(t[A]+=`;${a}`)}else A=r.slice(0,n).trim(),t[A]=r.slice(n+1).trim()}return t}const v6=Object.freeze(Object.defineProperty({__proto__:null,css:E6},Symbol.toStringTag,{value:"Module"})),F1="input,select,textarea,keygen",T6=/%20/g,L1=/\r?\n/g;function y6(){return this.serializeArray().map(A=>`${encodeURIComponent(A.name)}=${encodeURIComponent(A.value)}`).join("&").replace(T6,"+")}function x6(){return this.map((e,t)=>{const A=this._make(t);return Mt(t)&&t.name==="form"?A.find(F1).toArray():A.filter(F1).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var A;const r=this._make(t),n=r.attr("name"),a=(A=r.val())!==null&&A!==void 0?A:"";return Array.isArray(a)?a.map(i=>({name:n,value:i.replace(L1,`\r
`)})):{name:n,value:a.replace(L1,`\r
`)}}).toArray()}const I6=Object.freeze(Object.defineProperty({__proto__:null,serialize:y6,serializeArray:x6},Symbol.toStringTag,{value:"Module"}));function F6(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function L6(e){const t={};for(const A in e){const r=e[A],n=Array.isArray(r),{selector:a,value:i}=F6(n?r[0]:r),s=typeof i=="function"?i:typeof i=="string"?u=>this._make(u).prop(i):u=>this._make(u).extract(i);if(n)t[A]=this._findBySelector(a,Number.POSITIVE_INFINITY).map((u,c)=>s(c,A,t)).get();else{const u=this._findBySelector(a,1);t[A]=u.length>0?s(u[0],A,t):void 0}}return t}const _6=Object.freeze(Object.defineProperty({__proto__:null,extract:L6},Symbol.toStringTag,{value:"Module"}));class Vu{constructor(t,A,r){if(this.length=0,this.options=r,this._root=A,t){for(let n=0;n<t.length;n++)this[n]=t[n];this.length=t.length}}}Vu.prototype.cheerio="[cheerio object]";Vu.prototype.splice=Array.prototype.splice;Vu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Vu.prototype,VE,Jw,B6,v6,I6,_6);function N6(e,t){return function A(r,n,a=!0){if(r==null)throw new Error("cheerio.load() expects a string");const i=Sf(n),s=e(r,i,a,null);class u extends Vu{_make(p,m){const h=c(p,m);return h.prevObject=this,h}_parse(p,m,h,w){return e(p,m,h,w)}_render(p){return t(p,this.options)}}function c(l,p,m=s,h){if(l&&oa(l))return l;const w=Sf(h,i),v=typeof m=="string"?[e(m,w,!1,null)]:"length"in m?m:[m],T=oa(v)?v:new u(v,null,w);if(T._root=T,!l)return new u(void 0,T,w);const C=typeof l=="string"&&Qf(l)?e(l,w,!1,null).children:U6(l)?[l]:Array.isArray(l)?l:void 0,U=new u(C,T,w);if(C)return U;if(typeof l!="string")throw new TypeError("Unexpected type of selector");let R=l;const F=p?typeof p=="string"?Qf(p)?new u([e(p,w,!1,null)],T,w):(R=`${p} ${R}`,T):oa(p)?p:new u(Array.isArray(p)?p:[p],T,w):T;return F?F.find(R):U}return Object.assign(c,SE,{load:A,_root:s,_options:i,fn:u.prototype,prototype:u.prototype}),c}}function U6(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}const S6=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),cA="�";var k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));const br={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function $b(e){return e>=55296&&e<=57343}function Q6(e){return e>=56320&&e<=57343}function O6(e,t){return(e-55296)*1024+9216+t}function em(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function tm(e){return e>=64976&&e<=65007||S6.has(e)}var we;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(we||(we={}));const D6=65536;class R6{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=D6,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,A){const{line:r,col:n,offset:a}=this,i=n+A,s=a+A;return{code:t,startLine:r,endLine:r,startCol:i,endCol:i,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const A=this.html.charCodeAt(this.pos+1);if(Q6(A))return this.pos++,this._addGap(),O6(t,A)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(we.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,A){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=A}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,A){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(A)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const A=this.pos+t;if(A>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;const r=this.html.charCodeAt(A);return r===k.CARRIAGE_RETURN?k.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,$b(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){em(t)?this._err(we.controlCharacterInInputStream):tm(t)&&this._err(we.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Pt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Pt||(Pt={}));function Am(e,t){for(let A=e.attrs.length-1;A>=0;A--)if(e.attrs[A].name===t)return e.attrs[A].value;return null}var Le;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(Le||(Le={}));var Ei;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Ei||(Ei={}));var Gr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Gr||(Gr={}));var de;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(de||(de={}));var d;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(d||(d={}));const H6=new Map([[de.A,d.A],[de.ADDRESS,d.ADDRESS],[de.ANNOTATION_XML,d.ANNOTATION_XML],[de.APPLET,d.APPLET],[de.AREA,d.AREA],[de.ARTICLE,d.ARTICLE],[de.ASIDE,d.ASIDE],[de.B,d.B],[de.BASE,d.BASE],[de.BASEFONT,d.BASEFONT],[de.BGSOUND,d.BGSOUND],[de.BIG,d.BIG],[de.BLOCKQUOTE,d.BLOCKQUOTE],[de.BODY,d.BODY],[de.BR,d.BR],[de.BUTTON,d.BUTTON],[de.CAPTION,d.CAPTION],[de.CENTER,d.CENTER],[de.CODE,d.CODE],[de.COL,d.COL],[de.COLGROUP,d.COLGROUP],[de.DD,d.DD],[de.DESC,d.DESC],[de.DETAILS,d.DETAILS],[de.DIALOG,d.DIALOG],[de.DIR,d.DIR],[de.DIV,d.DIV],[de.DL,d.DL],[de.DT,d.DT],[de.EM,d.EM],[de.EMBED,d.EMBED],[de.FIELDSET,d.FIELDSET],[de.FIGCAPTION,d.FIGCAPTION],[de.FIGURE,d.FIGURE],[de.FONT,d.FONT],[de.FOOTER,d.FOOTER],[de.FOREIGN_OBJECT,d.FOREIGN_OBJECT],[de.FORM,d.FORM],[de.FRAME,d.FRAME],[de.FRAMESET,d.FRAMESET],[de.H1,d.H1],[de.H2,d.H2],[de.H3,d.H3],[de.H4,d.H4],[de.H5,d.H5],[de.H6,d.H6],[de.HEAD,d.HEAD],[de.HEADER,d.HEADER],[de.HGROUP,d.HGROUP],[de.HR,d.HR],[de.HTML,d.HTML],[de.I,d.I],[de.IMG,d.IMG],[de.IMAGE,d.IMAGE],[de.INPUT,d.INPUT],[de.IFRAME,d.IFRAME],[de.KEYGEN,d.KEYGEN],[de.LABEL,d.LABEL],[de.LI,d.LI],[de.LINK,d.LINK],[de.LISTING,d.LISTING],[de.MAIN,d.MAIN],[de.MALIGNMARK,d.MALIGNMARK],[de.MARQUEE,d.MARQUEE],[de.MATH,d.MATH],[de.MENU,d.MENU],[de.META,d.META],[de.MGLYPH,d.MGLYPH],[de.MI,d.MI],[de.MO,d.MO],[de.MN,d.MN],[de.MS,d.MS],[de.MTEXT,d.MTEXT],[de.NAV,d.NAV],[de.NOBR,d.NOBR],[de.NOFRAMES,d.NOFRAMES],[de.NOEMBED,d.NOEMBED],[de.NOSCRIPT,d.NOSCRIPT],[de.OBJECT,d.OBJECT],[de.OL,d.OL],[de.OPTGROUP,d.OPTGROUP],[de.OPTION,d.OPTION],[de.P,d.P],[de.PARAM,d.PARAM],[de.PLAINTEXT,d.PLAINTEXT],[de.PRE,d.PRE],[de.RB,d.RB],[de.RP,d.RP],[de.RT,d.RT],[de.RTC,d.RTC],[de.RUBY,d.RUBY],[de.S,d.S],[de.SCRIPT,d.SCRIPT],[de.SEARCH,d.SEARCH],[de.SECTION,d.SECTION],[de.SELECT,d.SELECT],[de.SOURCE,d.SOURCE],[de.SMALL,d.SMALL],[de.SPAN,d.SPAN],[de.STRIKE,d.STRIKE],[de.STRONG,d.STRONG],[de.STYLE,d.STYLE],[de.SUB,d.SUB],[de.SUMMARY,d.SUMMARY],[de.SUP,d.SUP],[de.TABLE,d.TABLE],[de.TBODY,d.TBODY],[de.TEMPLATE,d.TEMPLATE],[de.TEXTAREA,d.TEXTAREA],[de.TFOOT,d.TFOOT],[de.TD,d.TD],[de.TH,d.TH],[de.THEAD,d.THEAD],[de.TITLE,d.TITLE],[de.TR,d.TR],[de.TRACK,d.TRACK],[de.TT,d.TT],[de.U,d.U],[de.UL,d.UL],[de.SVG,d.SVG],[de.VAR,d.VAR],[de.WBR,d.WBR],[de.XMP,d.XMP]]);function h0(e){var t;return(t=H6.get(e))!==null&&t!==void 0?t:d.UNKNOWN}const De=d,P6={[Le.HTML]:new Set([De.ADDRESS,De.APPLET,De.AREA,De.ARTICLE,De.ASIDE,De.BASE,De.BASEFONT,De.BGSOUND,De.BLOCKQUOTE,De.BODY,De.BR,De.BUTTON,De.CAPTION,De.CENTER,De.COL,De.COLGROUP,De.DD,De.DETAILS,De.DIR,De.DIV,De.DL,De.DT,De.EMBED,De.FIELDSET,De.FIGCAPTION,De.FIGURE,De.FOOTER,De.FORM,De.FRAME,De.FRAMESET,De.H1,De.H2,De.H3,De.H4,De.H5,De.H6,De.HEAD,De.HEADER,De.HGROUP,De.HR,De.HTML,De.IFRAME,De.IMG,De.INPUT,De.LI,De.LINK,De.LISTING,De.MAIN,De.MARQUEE,De.MENU,De.META,De.NAV,De.NOEMBED,De.NOFRAMES,De.NOSCRIPT,De.OBJECT,De.OL,De.P,De.PARAM,De.PLAINTEXT,De.PRE,De.SCRIPT,De.SECTION,De.SELECT,De.SOURCE,De.STYLE,De.SUMMARY,De.TABLE,De.TBODY,De.TD,De.TEMPLATE,De.TEXTAREA,De.TFOOT,De.TH,De.THEAD,De.TITLE,De.TR,De.TRACK,De.UL,De.WBR,De.XMP]),[Le.MATHML]:new Set([De.MI,De.MO,De.MN,De.MS,De.MTEXT,De.ANNOTATION_XML]),[Le.SVG]:new Set([De.TITLE,De.FOREIGN_OBJECT,De.DESC]),[Le.XLINK]:new Set,[Le.XML]:new Set,[Le.XMLNS]:new Set},kf=new Set([De.H1,De.H2,De.H3,De.H4,De.H5,De.H6]),M6=new Set([de.STYLE,de.SCRIPT,de.XMP,de.IFRAME,de.NOEMBED,de.NOFRAMES,de.PLAINTEXT]);function k6(e,t){return M6.has(e)||t&&e===de.NOSCRIPT}var W;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(W||(W={}));const wr={DATA:W.DATA,RCDATA:W.RCDATA,RAWTEXT:W.RAWTEXT,SCRIPT_DATA:W.SCRIPT_DATA,PLAINTEXT:W.PLAINTEXT,CDATA_SECTION:W.CDATA_SECTION};function K6(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function au(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function q6(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Na(e){return q6(e)||au(e)}function _1(e){return Na(e)||K6(e)}function Do(e){return e+32}function rm(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function N1(e){return rm(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function j6(e){return e===k.NULL?we.nullCharacterReference:e>1114111?we.characterReferenceOutsideUnicodeRange:$b(e)?we.surrogateCharacterReference:tm(e)?we.noncharacterCharacterReference:em(e)||e===k.CARRIAGE_RETURN?we.controlCharacterReference:null}let V6=class{constructor(t,A){this.options=t,this.handler=A,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=W.DATA,this.returnState=W.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new R6(A),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Hh(Rh,(r,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(r)},A.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(we.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(we.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const n=j6(r);n&&this._err(n,1)}}:void 0)}_err(t,A=0){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(t,A))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,A,r){this.active=!0,this.preprocessor.write(t,A),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let A=0;A<t;A++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,A){return this.preprocessor.startsWith(t,A)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Pt.START_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Pt.END_TAG,tagName:"",tagID:d.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Pt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Pt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,A){this.currentCharacterToken={type:t,chars:A,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,A;const r=this.currentToken;if(Am(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const n=(t=(A=r.location).attrs)!==null&&t!==void 0?t:A.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(we.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=h0(t.tagName),t.type===Pt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(we.endTagWithAttributes),t.selfClosing&&this._err(we.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Pt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Pt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Pt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Pt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,A){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=A;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,A)}_emitCodePoint(t){const A=rm(t)?Pt.WHITESPACE_CHARACTER:t===k.NULL?Pt.NULL_CHARACTER:Pt.CHARACTER;this._appendCharToCurrentCharacterToken(A,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Pt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=W.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Wr.Attribute:Wr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===W.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===W.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===W.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case W.DATA:{this._stateData(t);break}case W.RCDATA:{this._stateRcdata(t);break}case W.RAWTEXT:{this._stateRawtext(t);break}case W.SCRIPT_DATA:{this._stateScriptData(t);break}case W.PLAINTEXT:{this._statePlaintext(t);break}case W.TAG_OPEN:{this._stateTagOpen(t);break}case W.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case W.TAG_NAME:{this._stateTagName(t);break}case W.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case W.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case W.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case W.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case W.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case W.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case W.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case W.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case W.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case W.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case W.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case W.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case W.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case W.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case W.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case W.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case W.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case W.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case W.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case W.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case W.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case W.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case W.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case W.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case W.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case W.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case W.BOGUS_COMMENT:{this._stateBogusComment(t);break}case W.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case W.COMMENT_START:{this._stateCommentStart(t);break}case W.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case W.COMMENT:{this._stateComment(t);break}case W.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case W.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case W.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case W.COMMENT_END:{this._stateCommentEnd(t);break}case W.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case W.DOCTYPE:{this._stateDoctype(t);break}case W.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case W.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case W.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case W.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case W.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case W.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case W.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case W.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case W.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case W.CDATA_SECTION:{this._stateCdataSection(t);break}case W.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case W.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case W.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case W.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=W.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=W.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(cA);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=W.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(cA);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(cA);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(cA);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Na(t))this._createStartTagToken(),this.state=W.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=W.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=W.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(we.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(we.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(we.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=W.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Na(t))this._createEndTagToken(),this.state=W.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(we.missingEndTagName),this.state=W.DATA;break}case k.EOF:{this._err(we.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(we.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=W.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=W.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.tagName+=cA;break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:A.tagName+=String.fromCodePoint(au(t)?Do(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=W.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=W.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Na(t)?(this.state=W.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=W.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const A=this.currentToken;switch(A.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=W.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=W.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=W.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=W.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Na(t)?(this.state=W.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=W.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=W.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=W.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Na(t)?(this.state=W.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=W.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=W.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=W.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(cA);break}case k.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(cA);break}case k.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=W.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_ESCAPED,this._emitChars(cA);break}case k.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=W.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Na(t)?(this._emitChars("<"),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Na(t)?(this.state=W.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(br.SCRIPT,!1)&&N1(this.preprocessor.peek(br.SCRIPT.length))){this._emitCodePoint(t);for(let A=0;A<br.SCRIPT.length;A++)this._emitCodePoint(this._consume());this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=W.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(we.unexpectedNullCharacter),this._emitChars(cA);break}case k.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(cA);break}case k.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=W.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(cA);break}case k.EOF:{this._err(we.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(br.SCRIPT,!1)&&N1(this.preprocessor.peek(br.SCRIPT.length))){this._emitCodePoint(t);for(let A=0;A<br.SCRIPT.length;A++)this._emitCodePoint(this._consume());this.state=W.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=W.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=W.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(we.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=W.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=W.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=W.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=W.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(we.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.name+=cA;break}default:this.currentAttr.name+=String.fromCodePoint(au(t)?Do(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=W.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=W.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=W.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=W.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=W.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(we.missingAttributeValue),this.state=W.DATA,this.emitCurrentTagToken();break}default:this.state=W.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=W.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.value+=cA;break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=W.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.value+=cA;break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=W.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=W.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(we.unexpectedNullCharacter),this.currentAttr.value+=cA;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(we.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=W.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=W.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=W.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this._err(we.missingWhitespaceBetweenAttributes),this.state=W.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const A=this.currentToken;A.selfClosing=!0,this.state=W.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(we.eofInTag),this._emitEOFToken();break}default:this._err(we.unexpectedSolidusInTag),this.state=W.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const A=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentComment(A);break}case k.EOF:{this.emitCurrentComment(A),this._emitEOFToken();break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.data+=cA;break}default:A.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(br.DASH_DASH,!0)?(this._createCommentToken(br.DASH_DASH.length+1),this.state=W.COMMENT_START):this._consumeSequenceIfMatch(br.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(br.DOCTYPE.length+1),this.state=W.DOCTYPE):this._consumeSequenceIfMatch(br.CDATA_START,!0)?this.inForeignNode?this.state=W.CDATA_SECTION:(this._err(we.cdataInHtmlContent),this._createCommentToken(br.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=W.BOGUS_COMMENT):this._ensureHibernation()||(this._err(we.incorrectlyOpenedComment),this._createCommentToken(2),this.state=W.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=W.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(we.abruptClosingOfEmptyComment),this.state=W.DATA;const A=this.currentToken;this.emitCurrentComment(A);break}default:this.state=W.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const A=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=W.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(we.abruptClosingOfEmptyComment),this.state=W.DATA,this.emitCurrentComment(A);break}case k.EOF:{this._err(we.eofInComment),this.emitCurrentComment(A),this._emitEOFToken();break}default:A.data+="-",this.state=W.COMMENT,this._stateComment(t)}}_stateComment(t){const A=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=W.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{A.data+="<",this.state=W.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.data+=cA;break}case k.EOF:{this._err(we.eofInComment),this.emitCurrentComment(A),this._emitEOFToken();break}default:A.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const A=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{A.data+="!",this.state=W.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{A.data+="<";break}default:this.state=W.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=W.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=W.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=W.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=W.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(we.nestedComment),this.state=W.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const A=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=W.COMMENT_END;break}case k.EOF:{this._err(we.eofInComment),this.emitCurrentComment(A),this._emitEOFToken();break}default:A.data+="-",this.state=W.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const A=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentComment(A);break}case k.EXCLAMATION_MARK:{this.state=W.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{A.data+="-";break}case k.EOF:{this._err(we.eofInComment),this.emitCurrentComment(A),this._emitEOFToken();break}default:A.data+="--",this.state=W.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const A=this.currentToken;switch(t){case k.HYPHEN_MINUS:{A.data+="--!",this.state=W.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(we.incorrectlyClosedComment),this.state=W.DATA,this.emitCurrentComment(A);break}case k.EOF:{this._err(we.eofInComment),this.emitCurrentComment(A),this._emitEOFToken();break}default:A.data+="--!",this.state=W.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(we.eofInDoctype),this._createDoctypeToken(null);const A=this.currentToken;A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingWhitespaceBeforeDoctypeName),this.state=W.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(au(t))this._createDoctypeToken(String.fromCharCode(Do(t))),this.state=W.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(we.unexpectedNullCharacter),this._createDoctypeToken(cA),this.state=W.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(we.missingDoctypeName),this._createDoctypeToken(null);const A=this.currentToken;A.forceQuirks=!0,this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.EOF:{this._err(we.eofInDoctype),this._createDoctypeToken(null);const A=this.currentToken;A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=W.DOCTYPE_NAME}}_stateDoctypeName(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=W.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.name+=cA;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:A.name+=String.fromCodePoint(au(t)?Do(t):t)}}_stateAfterDoctypeName(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(br.PUBLIC,!1)?this.state=W.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(br.SYSTEM,!1)?this.state=W.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(we.invalidCharacterSequenceAfterDoctypeName),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(we.missingWhitespaceAfterDoctypePublicKeyword),A.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(we.missingWhitespaceAfterDoctypePublicKeyword),A.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(we.missingDoctypePublicIdentifier),A.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypePublicIdentifier),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{A.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{A.publicId="",this.state=W.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(we.missingDoctypePublicIdentifier),A.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypePublicIdentifier),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const A=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.publicId+=cA;break}case k.GREATER_THAN_SIGN:{this._err(we.abruptDoctypePublicIdentifier),A.forceQuirks=!0,this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:A.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const A=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=W.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.publicId+=cA;break}case k.GREATER_THAN_SIGN:{this._err(we.abruptDoctypePublicIdentifier),A.forceQuirks=!0,this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:A.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=W.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.QUOTATION_MARK:{this._err(we.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(we.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.QUOTATION_MARK:{A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=W.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(we.missingWhitespaceAfterDoctypeSystemKeyword),A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(we.missingWhitespaceAfterDoctypeSystemKeyword),A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(we.missingDoctypeSystemIdentifier),A.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{A.systemId="",this.state=W.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(we.missingDoctypeSystemIdentifier),A.forceQuirks=!0,this.state=W.DATA,this.emitCurrentDoctype(A);break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.missingQuoteBeforeDoctypeSystemIdentifier),A.forceQuirks=!0,this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const A=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.systemId+=cA;break}case k.GREATER_THAN_SIGN:{this._err(we.abruptDoctypeSystemIdentifier),A.forceQuirks=!0,this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:A.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const A=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=W.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(we.unexpectedNullCharacter),A.systemId+=cA;break}case k.GREATER_THAN_SIGN:{this._err(we.abruptDoctypeSystemIdentifier),A.forceQuirks=!0,this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:A.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const A=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.EOF:{this._err(we.eofInDoctype),A.forceQuirks=!0,this.emitCurrentDoctype(A),this._emitEOFToken();break}default:this._err(we.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=W.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const A=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(A),this.state=W.DATA;break}case k.NULL:{this._err(we.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(A),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=W.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(we.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=W.CDATA_SECTION_END:(this._emitChars("]"),this.state=W.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=W.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=W.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&_1(this.preprocessor.peek(1))?W.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){_1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(we.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}};const nm=new Set([d.DD,d.DT,d.LI,d.OPTGROUP,d.OPTION,d.P,d.RB,d.RP,d.RT,d.RTC]),U1=new Set([...nm,d.CAPTION,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]),qc=new Set([d.APPLET,d.CAPTION,d.HTML,d.MARQUEE,d.OBJECT,d.TABLE,d.TD,d.TEMPLATE,d.TH]),G6=new Set([...qc,d.OL,d.UL]),Y6=new Set([...qc,d.BUTTON]),S1=new Set([d.ANNOTATION_XML,d.MI,d.MN,d.MO,d.MS,d.MTEXT]),Q1=new Set([d.DESC,d.FOREIGN_OBJECT,d.TITLE]),W6=new Set([d.TR,d.TEMPLATE,d.HTML]),X6=new Set([d.TBODY,d.TFOOT,d.THEAD,d.TEMPLATE,d.HTML]),z6=new Set([d.TABLE,d.TEMPLATE,d.HTML]),J6=new Set([d.TD,d.TH]);class Z6{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,A,r){this.treeAdapter=A,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=d.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===d.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Le.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,A){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=A,this.currentTagId=A,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,A,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,A){const r=this._indexOf(t);this.items[r]=A,r===this.stackTop&&(this.current=A)}insertAfter(t,A,r){const n=this._indexOf(t)+1;this.items.splice(n,0,A),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let A=this.stackTop+1;do A=this.tagIDs.lastIndexOf(t,A-1);while(A>0&&this.treeAdapter.getNamespaceURI(this.items[A])!==Le.HTML);this.shortenToLength(A<0?0:A)}shortenToLength(t){for(;this.stackTop>=t;){const A=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(A,this.stackTop<t)}}popUntilElementPopped(t){const A=this._indexOf(t);this.shortenToLength(A<0?0:A)}popUntilPopped(t,A){const r=this._indexOfTagNames(t,A);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(kf,Le.HTML)}popUntilTableCellPopped(){this.popUntilPopped(J6,Le.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,A){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===A)return r;return-1}clearBackTo(t,A){const r=this._indexOfTagNames(t,A);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(z6,Le.HTML)}clearBackToTableBodyContext(){this.clearBackTo(X6,Le.HTML)}clearBackToTableRowContext(){this.clearBackTo(W6,Le.HTML)}remove(t){const A=this._indexOf(t);A>=0&&(A===this.stackTop?this.pop():(this.items.splice(A,1),this.tagIDs.splice(A,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===d.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const A=this._indexOf(t)-1;return A>=0?this.items[A]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===d.HTML}hasInDynamicScope(t,A){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Le.HTML:{if(n===t)return!0;if(A.has(n))return!1;break}case Le.SVG:{if(Q1.has(n))return!1;break}case Le.MATHML:{if(S1.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,qc)}hasInListItemScope(t){return this.hasInDynamicScope(t,G6)}hasInButtonScope(t){return this.hasInDynamicScope(t,Y6)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const A=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Le.HTML:{if(kf.has(A))return!0;if(qc.has(A))return!1;break}case Le.SVG:{if(Q1.has(A))return!1;break}case Le.MATHML:{if(S1.has(A))return!1;break}}}return!0}hasInTableScope(t){for(let A=this.stackTop;A>=0;A--)if(this.treeAdapter.getNamespaceURI(this.items[A])===Le.HTML)switch(this.tagIDs[A]){case t:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Le.HTML)switch(this.tagIDs[t]){case d.TBODY:case d.THEAD:case d.TFOOT:return!0;case d.TABLE:case d.HTML:return!1}return!0}hasInSelectScope(t){for(let A=this.stackTop;A>=0;A--)if(this.treeAdapter.getNamespaceURI(this.items[A])===Le.HTML)switch(this.tagIDs[A]){case t:return!0;case d.OPTION:case d.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;nm.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;U1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&U1.has(this.currentTagId);)this.pop()}}const El=3;var _n;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(_n||(_n={}));const O1={type:_n.Marker};class $6{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,A){const r=[],n=A.length,a=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){const u=this.entries[s];if(u.type===_n.Marker)break;const{element:c}=u;if(this.treeAdapter.getTagName(c)===a&&this.treeAdapter.getNamespaceURI(c)===i){const l=this.treeAdapter.getAttrList(c);l.length===n&&r.push({idx:s,attrs:l})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<El)return;const A=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,A);if(r.length<El)return;const n=new Map(A.map(i=>[i.name,i.value]));let a=0;for(let i=0;i<r.length;i++){const s=r[i];s.attrs.every(u=>n.get(u.name)===u.value)&&(a+=1,a>=El&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(O1)}pushElement(t,A){this._ensureNoahArkCondition(t),this.entries.unshift({type:_n.Element,element:t,token:A})}insertElementAfterBookmark(t,A){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:_n.Element,element:t,token:A})}removeEntry(t){const A=this.entries.indexOf(t);A>=0&&this.entries.splice(A,1)}clearToLastMarker(){const t=this.entries.indexOf(O1);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const A=this.entries.find(r=>r.type===_n.Marker||this.treeAdapter.getTagName(r.element)===t);return A&&A.type===_n.Element?A:null}getElementEntry(t){return this.entries.find(A=>A.type===_n.Element&&A.element===t)}}const ia={createDocument(){return{nodeName:"#document",mode:Gr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,A){return{nodeName:e,tagName:e,attrs:A,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,A){const r=e.childNodes.indexOf(A);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,A,r){const n=e.childNodes.find(a=>a.nodeName==="#documentType");if(n)n.name=t,n.publicId=A,n.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:A,systemId:r,parentNode:null};ia.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const A=e.childNodes[e.childNodes.length-1];if(ia.isTextNode(A)){A.value+=t;return}}ia.appendChild(e,ia.createTextNode(t))},insertTextBefore(e,t,A){const r=e.childNodes[e.childNodes.indexOf(A)-1];r&&ia.isTextNode(r)?r.value+=t:ia.insertBefore(e,ia.createTextNode(t),A)},adoptAttributes(e,t){const A=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)A.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},am="html",eC="about:legacy-compat",tC="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",im=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],AC=[...im,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rC=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),sm=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nC=[...sm,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function D1(e,t){return t.some(A=>e.startsWith(A))}function aC(e){return e.name===am&&e.publicId===null&&(e.systemId===null||e.systemId===eC)}function iC(e){if(e.name!==am)return Gr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===tC)return Gr.QUIRKS;let{publicId:A}=e;if(A!==null){if(A=A.toLowerCase(),rC.has(A))return Gr.QUIRKS;let r=t===null?AC:im;if(D1(A,r))return Gr.QUIRKS;if(r=t===null?sm:nC,D1(A,r))return Gr.LIMITED_QUIRKS}return Gr.NO_QUIRKS}const R1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},sC="definitionurl",uC="definitionURL",oC=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),cC=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Le.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Le.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Le.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Le.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Le.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Le.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Le.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Le.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Le.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Le.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Le.XMLNS}]]),lC=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),fC=new Set([d.B,d.BIG,d.BLOCKQUOTE,d.BODY,d.BR,d.CENTER,d.CODE,d.DD,d.DIV,d.DL,d.DT,d.EM,d.EMBED,d.H1,d.H2,d.H3,d.H4,d.H5,d.H6,d.HEAD,d.HR,d.I,d.IMG,d.LI,d.LISTING,d.MENU,d.META,d.NOBR,d.OL,d.P,d.PRE,d.RUBY,d.S,d.SMALL,d.SPAN,d.STRONG,d.STRIKE,d.SUB,d.SUP,d.TABLE,d.TT,d.U,d.UL,d.VAR]);function hC(e){const t=e.tagID;return t===d.FONT&&e.attrs.some(({name:r})=>r===Ei.COLOR||r===Ei.SIZE||r===Ei.FACE)||fC.has(t)}function um(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===sC){e.attrs[t].name=uC;break}}function om(e){for(let t=0;t<e.attrs.length;t++){const A=oC.get(e.attrs[t].name);A!=null&&(e.attrs[t].name=A)}}function td(e){for(let t=0;t<e.attrs.length;t++){const A=cC.get(e.attrs[t].name);A&&(e.attrs[t].prefix=A.prefix,e.attrs[t].name=A.name,e.attrs[t].namespace=A.namespace)}}function dC(e){const t=lC.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=h0(e.tagName))}function gC(e,t){return t===Le.MATHML&&(e===d.MI||e===d.MO||e===d.MN||e===d.MS||e===d.MTEXT)}function pC(e,t,A){if(t===Le.MATHML&&e===d.ANNOTATION_XML){for(let r=0;r<A.length;r++)if(A[r].name===Ei.ENCODING){const n=A[r].value.toLowerCase();return n===R1.TEXT_HTML||n===R1.APPLICATION_XML}}return t===Le.SVG&&(e===d.FOREIGN_OBJECT||e===d.DESC||e===d.TITLE)}function bC(e,t,A,r){return(!r||r===Le.HTML)&&pC(e,t,A)||(!r||r===Le.MATHML)&&gC(e,t)}const mC="hidden",BC=8,EC=3;var ee;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(ee||(ee={}));const wC={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},cm=new Set([d.TABLE,d.TBODY,d.TFOOT,d.THEAD,d.TR]),H1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ia,onParseError:null};let lm=class{constructor(t,A,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=ee.INITIAL,this.originalInsertionMode=ee.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...H1,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=A??this.treeAdapter.createDocument(),this.tokenizer=new V6(this.options,this),this.activeFormattingElements=new $6(this.treeAdapter),this.fragmentContextID=r?h0(this.treeAdapter.getTagName(r)):d.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Z6(this.document,this.treeAdapter,this)}static parse(t,A){const r=new this(A);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,A){const r={...H1,...A};t??(t=r.treeAdapter.createElement(de.TEMPLATE,Le.HTML,[]));const n=r.treeAdapter.createElement("documentmock",Le.HTML,[]),a=new this(r,n,t);return a.fragmentContextID===d.TEMPLATE&&a.tmplInsertionModeStack.unshift(ee.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),A=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,A),A}_err(t,A,r){var n;if(!this.onParseError)return;const a=(n=t.location)!==null&&n!==void 0?n:wC,i={code:A,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(i)}onItemPush(t,A,r){var n,a;(a=(n=this.treeAdapter).onItemPush)===null||a===void 0||a.call(n,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,A)}onItemPop(t,A){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(r=this.treeAdapter).onItemPop)===null||n===void 0||n.call(r,t,this.openElements.current),A){let a,i;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,i=this.fragmentContextID):{current:a,currentTagId:i}=this.openElements,this._setContextModes(a,i)}}_setContextModes(t,A){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Le.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(A,t)}_switchToTextParsing(t,A){this._insertElement(t,Le.HTML),this.tokenizer.state=A,this.originalInsertionMode=this.insertionMode,this.insertionMode=ee.TEXT}switchToPlaintextParsing(){this.insertionMode=ee.TEXT,this.originalInsertionMode=ee.IN_BODY,this.tokenizer.state=wr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===de.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Le.HTML))switch(this.fragmentContextID){case d.TITLE:case d.TEXTAREA:{this.tokenizer.state=wr.RCDATA;break}case d.STYLE:case d.XMP:case d.IFRAME:case d.NOEMBED:case d.NOFRAMES:case d.NOSCRIPT:{this.tokenizer.state=wr.RAWTEXT;break}case d.SCRIPT:{this.tokenizer.state=wr.SCRIPT_DATA;break}case d.PLAINTEXT:{this.tokenizer.state=wr.PLAINTEXT;break}}}_setDocumentType(t){const A=t.name||"",r=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,A,r,n),t.location){const i=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));i&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}}_attachElementToTree(t,A){if(this.options.sourceCodeLocationInfo){const r=A&&{...A,startTag:A};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,A){const r=this.treeAdapter.createElement(t.tagName,A,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,A){const r=this.treeAdapter.createElement(t.tagName,A,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,A){const r=this.treeAdapter.createElement(t,Le.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,A)}_insertTemplate(t){const A=this.treeAdapter.createElement(t.tagName,Le.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(A,r),this._attachElementToTree(A,t.location),this.openElements.push(A,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(de.HTML,Le.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,d.HTML)}_appendCommentNode(t,A){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(A,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let A,r;if(this._shouldFosterParentOnInsertion()?({parent:A,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(A,t.chars,r):this.treeAdapter.insertText(A,t.chars)):(A=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(A,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(A),a=r?n.lastIndexOf(r):n.length,i=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:u,endCol:c,endOffset:l}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:u,endCol:c,endOffset:l})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_adoptNodes(t,A){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(A,r)}_setEndLocation(t,A){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&A.location){const r=A.location,n=this.treeAdapter.getTagName(t),a=A.type===Pt.END_TAG&&n===A.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let A,r;return this.openElements.stackTop===0&&this.fragmentContext?(A=this.fragmentContext,r=this.fragmentContextID):{current:A,currentTagId:r}=this.openElements,t.tagID===d.SVG&&this.treeAdapter.getTagName(A)===de.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(A)===Le.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===d.MGLYPH||t.tagID===d.MALIGNMARK)&&!this._isIntegrationPoint(r,A,Le.HTML)}_processToken(t){switch(t.type){case Pt.CHARACTER:{this.onCharacter(t);break}case Pt.NULL_CHARACTER:{this.onNullCharacter(t);break}case Pt.COMMENT:{this.onComment(t);break}case Pt.DOCTYPE:{this.onDoctype(t);break}case Pt.START_TAG:{this._processStartTag(t);break}case Pt.END_TAG:{this.onEndTag(t);break}case Pt.EOF:{this.onEof(t);break}case Pt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,A,r){const n=this.treeAdapter.getNamespaceURI(A),a=this.treeAdapter.getAttrList(A);return bC(t,n,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const A=this.activeFormattingElements.entries.findIndex(n=>n.type===_n.Marker||this.openElements.contains(n.element)),r=A<0?t-1:A-1;for(let n=r;n>=0;n--){const a=this.activeFormattingElements.entries[n];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(d.P),this.openElements.popUntilTagNamePopped(d.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case d.TR:{this.insertionMode=ee.IN_ROW;return}case d.TBODY:case d.THEAD:case d.TFOOT:{this.insertionMode=ee.IN_TABLE_BODY;return}case d.CAPTION:{this.insertionMode=ee.IN_CAPTION;return}case d.COLGROUP:{this.insertionMode=ee.IN_COLUMN_GROUP;return}case d.TABLE:{this.insertionMode=ee.IN_TABLE;return}case d.BODY:{this.insertionMode=ee.IN_BODY;return}case d.FRAMESET:{this.insertionMode=ee.IN_FRAMESET;return}case d.SELECT:{this._resetInsertionModeForSelect(t);return}case d.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case d.HTML:{this.insertionMode=this.headElement?ee.AFTER_HEAD:ee.BEFORE_HEAD;return}case d.TD:case d.TH:{if(t>0){this.insertionMode=ee.IN_CELL;return}break}case d.HEAD:{if(t>0){this.insertionMode=ee.IN_HEAD;return}break}}this.insertionMode=ee.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let A=t-1;A>0;A--){const r=this.openElements.tagIDs[A];if(r===d.TEMPLATE)break;if(r===d.TABLE){this.insertionMode=ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=ee.IN_SELECT}_isElementCausesFosterParenting(t){return cm.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const A=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case d.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(A)===Le.HTML)return{parent:this.treeAdapter.getTemplateContent(A),beforeElement:null};break}case d.TABLE:{const r=this.treeAdapter.getParentNode(A);return r?{parent:r,beforeElement:A}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const A=this._findFosterParentingLocation();A.beforeElement?this.treeAdapter.insertBefore(A.parent,t,A.beforeElement):this.treeAdapter.appendChild(A.parent,t)}_isSpecialElement(t,A){const r=this.treeAdapter.getNamespaceURI(t);return P6[r].has(A)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Jv(this,t);return}switch(this.insertionMode){case ee.INITIAL:{Js(this,t);break}case ee.BEFORE_HTML:{gu(this,t);break}case ee.BEFORE_HEAD:{pu(this,t);break}case ee.IN_HEAD:{bu(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{mu(this,t);break}case ee.AFTER_HEAD:{Bu(this,t);break}case ee.IN_BODY:case ee.IN_CAPTION:case ee.IN_CELL:case ee.IN_TEMPLATE:{hm(this,t);break}case ee.TEXT:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{wl(this,t);break}case ee.IN_TABLE_TEXT:{Bm(this,t);break}case ee.IN_COLUMN_GROUP:{jc(this,t);break}case ee.AFTER_BODY:{Vc(this,t);break}case ee.AFTER_AFTER_BODY:{wc(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zv(this,t);return}switch(this.insertionMode){case ee.INITIAL:{Js(this,t);break}case ee.BEFORE_HTML:{gu(this,t);break}case ee.BEFORE_HEAD:{pu(this,t);break}case ee.IN_HEAD:{bu(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{mu(this,t);break}case ee.AFTER_HEAD:{Bu(this,t);break}case ee.TEXT:{this._insertCharacters(t);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{wl(this,t);break}case ee.IN_COLUMN_GROUP:{jc(this,t);break}case ee.AFTER_BODY:{Vc(this,t);break}case ee.AFTER_AFTER_BODY:{wc(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Kf(this,t);return}switch(this.insertionMode){case ee.INITIAL:case ee.BEFORE_HTML:case ee.BEFORE_HEAD:case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:case ee.IN_BODY:case ee.IN_TABLE:case ee.IN_CAPTION:case ee.IN_COLUMN_GROUP:case ee.IN_TABLE_BODY:case ee.IN_ROW:case ee.IN_CELL:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:case ee.IN_TEMPLATE:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:{Kf(this,t);break}case ee.IN_TABLE_TEXT:{Zs(this,t);break}case ee.AFTER_BODY:{FC(this,t);break}case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{LC(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case ee.INITIAL:{_C(this,t);break}case ee.BEFORE_HEAD:case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:{this._err(t,we.misplacedDoctype);break}case ee.IN_TABLE_TEXT:{Zs(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,we.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Zv(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case ee.INITIAL:{Js(this,t);break}case ee.BEFORE_HTML:{NC(this,t);break}case ee.BEFORE_HEAD:{SC(this,t);break}case ee.IN_HEAD:{dn(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{DC(this,t);break}case ee.AFTER_HEAD:{HC(this,t);break}case ee.IN_BODY:{ur(this,t);break}case ee.IN_TABLE:{ps(this,t);break}case ee.IN_TABLE_TEXT:{Zs(this,t);break}case ee.IN_CAPTION:{Qv(this,t);break}case ee.IN_COLUMN_GROUP:{nd(this,t);break}case ee.IN_TABLE_BODY:{p0(this,t);break}case ee.IN_ROW:{b0(this,t);break}case ee.IN_CELL:{Rv(this,t);break}case ee.IN_SELECT:{Cm(this,t);break}case ee.IN_SELECT_IN_TABLE:{Pv(this,t);break}case ee.IN_TEMPLATE:{kv(this,t);break}case ee.AFTER_BODY:{qv(this,t);break}case ee.IN_FRAMESET:{jv(this,t);break}case ee.AFTER_FRAMESET:{Gv(this,t);break}case ee.AFTER_AFTER_BODY:{Wv(this,t);break}case ee.AFTER_AFTER_FRAMESET:{Xv(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?$v(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case ee.INITIAL:{Js(this,t);break}case ee.BEFORE_HTML:{UC(this,t);break}case ee.BEFORE_HEAD:{QC(this,t);break}case ee.IN_HEAD:{OC(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{RC(this,t);break}case ee.AFTER_HEAD:{PC(this,t);break}case ee.IN_BODY:{g0(this,t);break}case ee.TEXT:{Tv(this,t);break}case ee.IN_TABLE:{Qu(this,t);break}case ee.IN_TABLE_TEXT:{Zs(this,t);break}case ee.IN_CAPTION:{Ov(this,t);break}case ee.IN_COLUMN_GROUP:{Dv(this,t);break}case ee.IN_TABLE_BODY:{qf(this,t);break}case ee.IN_ROW:{wm(this,t);break}case ee.IN_CELL:{Hv(this,t);break}case ee.IN_SELECT:{vm(this,t);break}case ee.IN_SELECT_IN_TABLE:{Mv(this,t);break}case ee.IN_TEMPLATE:{Kv(this,t);break}case ee.AFTER_BODY:{ym(this,t);break}case ee.IN_FRAMESET:{Vv(this,t);break}case ee.AFTER_FRAMESET:{Yv(this,t);break}case ee.AFTER_AFTER_BODY:{wc(this,t);break}}}onEof(t){switch(this.insertionMode){case ee.INITIAL:{Js(this,t);break}case ee.BEFORE_HTML:{gu(this,t);break}case ee.BEFORE_HEAD:{pu(this,t);break}case ee.IN_HEAD:{bu(this,t);break}case ee.IN_HEAD_NO_SCRIPT:{mu(this,t);break}case ee.AFTER_HEAD:{Bu(this,t);break}case ee.IN_BODY:case ee.IN_TABLE:case ee.IN_CAPTION:case ee.IN_COLUMN_GROUP:case ee.IN_TABLE_BODY:case ee.IN_ROW:case ee.IN_CELL:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:{bm(this,t);break}case ee.TEXT:{yv(this,t);break}case ee.IN_TABLE_TEXT:{Zs(this,t);break}case ee.IN_TEMPLATE:{Tm(this,t);break}case ee.AFTER_BODY:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{rd(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case ee.IN_HEAD:case ee.IN_HEAD_NO_SCRIPT:case ee.AFTER_HEAD:case ee.TEXT:case ee.IN_COLUMN_GROUP:case ee.IN_SELECT:case ee.IN_SELECT_IN_TABLE:case ee.IN_FRAMESET:case ee.AFTER_FRAMESET:{this._insertCharacters(t);break}case ee.IN_BODY:case ee.IN_CAPTION:case ee.IN_CELL:case ee.IN_TEMPLATE:case ee.AFTER_BODY:case ee.AFTER_AFTER_BODY:case ee.AFTER_AFTER_FRAMESET:{fm(this,t);break}case ee.IN_TABLE:case ee.IN_TABLE_BODY:case ee.IN_ROW:{wl(this,t);break}case ee.IN_TABLE_TEXT:{mm(this,t);break}}}};function CC(e,t){let A=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return A?e.openElements.contains(A.element)?e.openElements.hasInScope(t.tagID)||(A=null):(e.activeFormattingElements.removeEntry(A),A=null):pm(e,t),A}function vC(e,t){let A=null,r=e.openElements.stackTop;for(;r>=0;r--){const n=e.openElements.items[r];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[r])&&(A=n)}return A||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),A}function TC(e,t,A){let r=t,n=e.openElements.getCommonAncestor(t);for(let a=0,i=n;i!==A;a++,i=n){n=e.openElements.getCommonAncestor(i);const s=e.activeFormattingElements.getElementEntry(i),u=s&&a>=EC;!s||u?(u&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(i)):(i=yC(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(i,r),r=i)}return r}function yC(e,t){const A=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,A,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function xC(e,t,A){const r=e.treeAdapter.getTagName(t),n=h0(r);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(A);else{const a=e.treeAdapter.getNamespaceURI(t);n===d.TEMPLATE&&a===Le.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,A)}}function IC(e,t,A){const r=e.treeAdapter.getNamespaceURI(A.element),{token:n}=A,a=e.treeAdapter.createElement(n.tagName,r,n.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n),e.activeFormattingElements.removeEntry(A),e.openElements.remove(A.element),e.openElements.insertAfter(t,a,n.tagID)}function Ad(e,t){for(let A=0;A<BC;A++){const r=CC(e,t);if(!r)break;const n=vC(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;const a=TC(e,n,r.element),i=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),i&&xC(e,i,a),IC(e,n,r)}}function Kf(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function FC(e,t){e._appendCommentNode(t,e.openElements.items[0])}function LC(e,t){e._appendCommentNode(t,e.document)}function rd(e,t){if(e.stopped=!0,t.location){const A=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=A;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(a);i&&!i.endTag&&e._setEndLocation(a,t)}}}}function _C(e,t){e._setDocumentType(t);const A=t.forceQuirks?Gr.QUIRKS:iC(t);aC(t)||e._err(t,we.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,A),e.insertionMode=ee.BEFORE_HTML}function Js(e,t){e._err(t,we.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Gr.QUIRKS),e.insertionMode=ee.BEFORE_HTML,e._processToken(t)}function NC(e,t){t.tagID===d.HTML?(e._insertElement(t,Le.HTML),e.insertionMode=ee.BEFORE_HEAD):gu(e,t)}function UC(e,t){const A=t.tagID;(A===d.HTML||A===d.HEAD||A===d.BODY||A===d.BR)&&gu(e,t)}function gu(e,t){e._insertFakeRootElement(),e.insertionMode=ee.BEFORE_HEAD,e._processToken(t)}function SC(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.HEAD:{e._insertElement(t,Le.HTML),e.headElement=e.openElements.current,e.insertionMode=ee.IN_HEAD;break}default:pu(e,t)}}function QC(e,t){const A=t.tagID;A===d.HEAD||A===d.BODY||A===d.HTML||A===d.BR?pu(e,t):e._err(t,we.endTagWithoutMatchingOpenElement)}function pu(e,t){e._insertFakeElement(de.HEAD,d.HEAD),e.headElement=e.openElements.current,e.insertionMode=ee.IN_HEAD,e._processToken(t)}function dn(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:{e._appendElement(t,Le.HTML),t.ackSelfClosing=!0;break}case d.TITLE:{e._switchToTextParsing(t,wr.RCDATA);break}case d.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wr.RAWTEXT):(e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_HEAD_NO_SCRIPT);break}case d.NOFRAMES:case d.STYLE:{e._switchToTextParsing(t,wr.RAWTEXT);break}case d.SCRIPT:{e._switchToTextParsing(t,wr.SCRIPT_DATA);break}case d.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ee.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ee.IN_TEMPLATE);break}case d.HEAD:{e._err(t,we.misplacedStartTagForHeadElement);break}default:bu(e,t)}}function OC(e,t){switch(t.tagID){case d.HEAD:{e.openElements.pop(),e.insertionMode=ee.AFTER_HEAD;break}case d.BODY:case d.BR:case d.HTML:{bu(e,t);break}case d.TEMPLATE:{Li(e,t);break}default:e._err(t,we.endTagWithoutMatchingOpenElement)}}function Li(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==d.TEMPLATE&&e._err(t,we.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,we.endTagWithoutMatchingOpenElement)}function bu(e,t){e.openElements.pop(),e.insertionMode=ee.AFTER_HEAD,e._processToken(t)}function DC(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.BASEFONT:case d.BGSOUND:case d.HEAD:case d.LINK:case d.META:case d.NOFRAMES:case d.STYLE:{dn(e,t);break}case d.NOSCRIPT:{e._err(t,we.nestedNoscriptInHead);break}default:mu(e,t)}}function RC(e,t){switch(t.tagID){case d.NOSCRIPT:{e.openElements.pop(),e.insertionMode=ee.IN_HEAD;break}case d.BR:{mu(e,t);break}default:e._err(t,we.endTagWithoutMatchingOpenElement)}}function mu(e,t){const A=t.type===Pt.EOF?we.openElementsLeftAfterEof:we.disallowedContentInNoscriptInHead;e._err(t,A),e.openElements.pop(),e.insertionMode=ee.IN_HEAD,e._processToken(t)}function HC(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.BODY:{e._insertElement(t,Le.HTML),e.framesetOk=!1,e.insertionMode=ee.IN_BODY;break}case d.FRAMESET:{e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_FRAMESET;break}case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{e._err(t,we.abandonedHeadElementChild),e.openElements.push(e.headElement,d.HEAD),dn(e,t),e.openElements.remove(e.headElement);break}case d.HEAD:{e._err(t,we.misplacedStartTagForHeadElement);break}default:Bu(e,t)}}function PC(e,t){switch(t.tagID){case d.BODY:case d.HTML:case d.BR:{Bu(e,t);break}case d.TEMPLATE:{Li(e,t);break}default:e._err(t,we.endTagWithoutMatchingOpenElement)}}function Bu(e,t){e._insertFakeElement(de.BODY,d.BODY),e.insertionMode=ee.IN_BODY,d0(e,t)}function d0(e,t){switch(t.type){case Pt.CHARACTER:{hm(e,t);break}case Pt.WHITESPACE_CHARACTER:{fm(e,t);break}case Pt.COMMENT:{Kf(e,t);break}case Pt.START_TAG:{ur(e,t);break}case Pt.END_TAG:{g0(e,t);break}case Pt.EOF:{bm(e,t);break}}}function fm(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function hm(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function MC(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function kC(e,t){const A=e.openElements.tryPeekProperlyNestedBodyElement();A&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(A,t.attrs))}function KC(e,t){const A=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&A&&(e.treeAdapter.detachNode(A),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_FRAMESET)}function qC(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Le.HTML)}function jC(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),kf.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Le.HTML)}function VC(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Le.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function GC(e,t){const A=e.openElements.tmplCount>0;(!e.formElement||A)&&(e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Le.HTML),A||(e.formElement=e.openElements.current))}function YC(e,t){e.framesetOk=!1;const A=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const n=e.openElements.tagIDs[r];if(A===d.LI&&n===d.LI||(A===d.DD||A===d.DT)&&(n===d.DD||n===d.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==d.ADDRESS&&n!==d.DIV&&n!==d.P&&e._isSpecialElement(e.openElements.items[r],n))break}e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Le.HTML)}function WC(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Le.HTML),e.tokenizer.state=wr.PLAINTEXT}function XC(e,t){e.openElements.hasInScope(d.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML),e.framesetOk=!1}function zC(e,t){const A=e.activeFormattingElements.getElementEntryInScopeWithTagName(de.A);A&&(Ad(e,t),e.openElements.remove(A.element),e.activeFormattingElements.removeEntry(A)),e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JC(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ZC(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(d.NOBR)&&(Ad(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $C(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ev(e,t){e.treeAdapter.getDocumentMode(e.document)!==Gr.QUIRKS&&e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._insertElement(t,Le.HTML),e.framesetOk=!1,e.insertionMode=ee.IN_TABLE}function dm(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gm(e){const t=Am(e,Ei.TYPE);return t!=null&&t.toLowerCase()===mC}function tv(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Le.HTML),gm(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Av(e,t){e._appendElement(t,Le.HTML),t.ackSelfClosing=!0}function rv(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._appendElement(t,Le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nv(e,t){t.tagName=de.IMG,t.tagID=d.IMG,dm(e,t)}function av(e,t){e._insertElement(t,Le.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ee.TEXT}function iv(e,t){e.openElements.hasInButtonScope(d.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wr.RAWTEXT)}function sv(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wr.RAWTEXT)}function P1(e,t){e._switchToTextParsing(t,wr.RAWTEXT)}function uv(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ee.IN_TABLE||e.insertionMode===ee.IN_CAPTION||e.insertionMode===ee.IN_TABLE_BODY||e.insertionMode===ee.IN_ROW||e.insertionMode===ee.IN_CELL?ee.IN_SELECT_IN_TABLE:ee.IN_SELECT}function ov(e,t){e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML)}function cv(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Le.HTML)}function lv(e,t){e.openElements.hasInScope(d.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(d.RTC),e._insertElement(t,Le.HTML)}function fv(e,t){e._reconstructActiveFormattingElements(),um(t),td(t),t.selfClosing?e._appendElement(t,Le.MATHML):e._insertElement(t,Le.MATHML),t.ackSelfClosing=!0}function hv(e,t){e._reconstructActiveFormattingElements(),om(t),td(t),t.selfClosing?e._appendElement(t,Le.SVG):e._insertElement(t,Le.SVG),t.ackSelfClosing=!0}function M1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Le.HTML)}function ur(e,t){switch(t.tagID){case d.I:case d.S:case d.B:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.SMALL:case d.STRIKE:case d.STRONG:{JC(e,t);break}case d.A:{zC(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{jC(e,t);break}case d.P:case d.DL:case d.OL:case d.UL:case d.DIV:case d.DIR:case d.NAV:case d.MAIN:case d.MENU:case d.ASIDE:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.DETAILS:case d.ADDRESS:case d.ARTICLE:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{qC(e,t);break}case d.LI:case d.DD:case d.DT:{YC(e,t);break}case d.BR:case d.IMG:case d.WBR:case d.AREA:case d.EMBED:case d.KEYGEN:{dm(e,t);break}case d.HR:{rv(e,t);break}case d.RB:case d.RTC:{cv(e,t);break}case d.RT:case d.RP:{lv(e,t);break}case d.PRE:case d.LISTING:{VC(e,t);break}case d.XMP:{iv(e,t);break}case d.SVG:{hv(e,t);break}case d.HTML:{MC(e,t);break}case d.BASE:case d.LINK:case d.META:case d.STYLE:case d.TITLE:case d.SCRIPT:case d.BGSOUND:case d.BASEFONT:case d.TEMPLATE:{dn(e,t);break}case d.BODY:{kC(e,t);break}case d.FORM:{GC(e,t);break}case d.NOBR:{ZC(e,t);break}case d.MATH:{fv(e,t);break}case d.TABLE:{ev(e,t);break}case d.INPUT:{tv(e,t);break}case d.PARAM:case d.TRACK:case d.SOURCE:{Av(e,t);break}case d.IMAGE:{nv(e,t);break}case d.BUTTON:{XC(e,t);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{$C(e,t);break}case d.IFRAME:{sv(e,t);break}case d.SELECT:{uv(e,t);break}case d.OPTION:case d.OPTGROUP:{ov(e,t);break}case d.NOEMBED:case d.NOFRAMES:{P1(e,t);break}case d.FRAMESET:{KC(e,t);break}case d.TEXTAREA:{av(e,t);break}case d.NOSCRIPT:{e.options.scriptingEnabled?P1(e,t):M1(e,t);break}case d.PLAINTEXT:{WC(e,t);break}case d.COL:case d.TH:case d.TD:case d.TR:case d.HEAD:case d.FRAME:case d.TBODY:case d.TFOOT:case d.THEAD:case d.CAPTION:case d.COLGROUP:break;default:M1(e,t)}}function dv(e,t){if(e.openElements.hasInScope(d.BODY)&&(e.insertionMode=ee.AFTER_BODY,e.options.sourceCodeLocationInfo)){const A=e.openElements.tryPeekProperlyNestedBodyElement();A&&e._setEndLocation(A,t)}}function gv(e,t){e.openElements.hasInScope(d.BODY)&&(e.insertionMode=ee.AFTER_BODY,ym(e,t))}function pv(e,t){const A=t.tagID;e.openElements.hasInScope(A)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A))}function bv(e){const t=e.openElements.tmplCount>0,{formElement:A}=e;t||(e.formElement=null),(A||t)&&e.openElements.hasInScope(d.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(d.FORM):A&&e.openElements.remove(A))}function mv(e){e.openElements.hasInButtonScope(d.P)||e._insertFakeElement(de.P,d.P),e._closePElement()}function Bv(e){e.openElements.hasInListItemScope(d.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(d.LI),e.openElements.popUntilTagNamePopped(d.LI))}function Ev(e,t){const A=t.tagID;e.openElements.hasInScope(A)&&(e.openElements.generateImpliedEndTagsWithExclusion(A),e.openElements.popUntilTagNamePopped(A))}function wv(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Cv(e,t){const A=t.tagID;e.openElements.hasInScope(A)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A),e.activeFormattingElements.clearToLastMarker())}function vv(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(de.BR,d.BR),e.openElements.pop(),e.framesetOk=!1}function pm(e,t){const A=t.tagName,r=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n],i=e.openElements.tagIDs[n];if(r===i&&(r!==d.UNKNOWN||e.treeAdapter.getTagName(a)===A)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(a,i))break}}function g0(e,t){switch(t.tagID){case d.A:case d.B:case d.I:case d.S:case d.U:case d.EM:case d.TT:case d.BIG:case d.CODE:case d.FONT:case d.NOBR:case d.SMALL:case d.STRIKE:case d.STRONG:{Ad(e,t);break}case d.P:{mv(e);break}case d.DL:case d.UL:case d.OL:case d.DIR:case d.DIV:case d.NAV:case d.PRE:case d.MAIN:case d.MENU:case d.ASIDE:case d.BUTTON:case d.CENTER:case d.FIGURE:case d.FOOTER:case d.HEADER:case d.HGROUP:case d.DIALOG:case d.ADDRESS:case d.ARTICLE:case d.DETAILS:case d.SEARCH:case d.SECTION:case d.SUMMARY:case d.LISTING:case d.FIELDSET:case d.BLOCKQUOTE:case d.FIGCAPTION:{pv(e,t);break}case d.LI:{Bv(e);break}case d.DD:case d.DT:{Ev(e,t);break}case d.H1:case d.H2:case d.H3:case d.H4:case d.H5:case d.H6:{wv(e);break}case d.BR:{vv(e);break}case d.BODY:{dv(e,t);break}case d.HTML:{gv(e,t);break}case d.FORM:{bv(e);break}case d.APPLET:case d.OBJECT:case d.MARQUEE:{Cv(e,t);break}case d.TEMPLATE:{Li(e,t);break}default:pm(e,t)}}function bm(e,t){e.tmplInsertionModeStack.length>0?Tm(e,t):rd(e,t)}function Tv(e,t){var A;t.tagID===d.SCRIPT&&((A=e.scriptHandler)===null||A===void 0||A.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function yv(e,t){e._err(t,we.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function wl(e,t){if(cm.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ee.IN_TABLE_TEXT,t.type){case Pt.CHARACTER:{Bm(e,t);break}case Pt.WHITESPACE_CHARACTER:{mm(e,t);break}}else Gu(e,t)}function xv(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_CAPTION}function Iv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_COLUMN_GROUP}function Fv(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(de.COLGROUP,d.COLGROUP),e.insertionMode=ee.IN_COLUMN_GROUP,nd(e,t)}function Lv(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_TABLE_BODY}function _v(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(de.TBODY,d.TBODY),e.insertionMode=ee.IN_TABLE_BODY,p0(e,t)}function Nv(e,t){e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Uv(e,t){gm(t)?e._appendElement(t,Le.HTML):Gu(e,t),t.ackSelfClosing=!0}function Sv(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Le.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ps(e,t){switch(t.tagID){case d.TD:case d.TH:case d.TR:{_v(e,t);break}case d.STYLE:case d.SCRIPT:case d.TEMPLATE:{dn(e,t);break}case d.COL:{Fv(e,t);break}case d.FORM:{Sv(e,t);break}case d.TABLE:{Nv(e,t);break}case d.TBODY:case d.TFOOT:case d.THEAD:{Lv(e,t);break}case d.INPUT:{Uv(e,t);break}case d.CAPTION:{xv(e,t);break}case d.COLGROUP:{Iv(e,t);break}default:Gu(e,t)}}function Qu(e,t){switch(t.tagID){case d.TABLE:{e.openElements.hasInTableScope(d.TABLE)&&(e.openElements.popUntilTagNamePopped(d.TABLE),e._resetInsertionMode());break}case d.TEMPLATE:{Li(e,t);break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:Gu(e,t)}}function Gu(e,t){const A=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,d0(e,t),e.fosterParentingEnabled=A}function mm(e,t){e.pendingCharacterTokens.push(t)}function Bm(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Zs(e,t){let A=0;if(e.hasNonWhitespacePendingCharacterToken)for(;A<e.pendingCharacterTokens.length;A++)Gu(e,e.pendingCharacterTokens[A]);else for(;A<e.pendingCharacterTokens.length;A++)e._insertCharacters(e.pendingCharacterTokens[A]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Em=new Set([d.CAPTION,d.COL,d.COLGROUP,d.TBODY,d.TD,d.TFOOT,d.TH,d.THEAD,d.TR]);function Qv(e,t){const A=t.tagID;Em.has(A)?e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ee.IN_TABLE,ps(e,t)):ur(e,t)}function Ov(e,t){const A=t.tagID;switch(A){case d.CAPTION:case d.TABLE:{e.openElements.hasInTableScope(d.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(d.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ee.IN_TABLE,A===d.TABLE&&Qu(e,t));break}case d.BODY:case d.COL:case d.COLGROUP:case d.HTML:case d.TBODY:case d.TD:case d.TFOOT:case d.TH:case d.THEAD:case d.TR:break;default:g0(e,t)}}function nd(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.COL:{e._appendElement(t,Le.HTML),t.ackSelfClosing=!0;break}case d.TEMPLATE:{dn(e,t);break}default:jc(e,t)}}function Dv(e,t){switch(t.tagID){case d.COLGROUP:{e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=ee.IN_TABLE);break}case d.TEMPLATE:{Li(e,t);break}case d.COL:break;default:jc(e,t)}}function jc(e,t){e.openElements.currentTagId===d.COLGROUP&&(e.openElements.pop(),e.insertionMode=ee.IN_TABLE,e._processToken(t))}function p0(e,t){switch(t.tagID){case d.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_ROW;break}case d.TH:case d.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(de.TR,d.TR),e.insertionMode=ee.IN_ROW,b0(e,t);break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE,ps(e,t));break}default:ps(e,t)}}function qf(e,t){const A=t.tagID;switch(t.tagID){case d.TBODY:case d.TFOOT:case d.THEAD:{e.openElements.hasInTableScope(A)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE);break}case d.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE,Qu(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:case d.TR:break;default:Qu(e,t)}}function b0(e,t){switch(t.tagID){case d.TH:case d.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Le.HTML),e.insertionMode=ee.IN_CELL,e.activeFormattingElements.insertMarker();break}case d.CAPTION:case d.COL:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY,p0(e,t));break}default:ps(e,t)}}function wm(e,t){switch(t.tagID){case d.TR:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY);break}case d.TABLE:{e.openElements.hasInTableScope(d.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY,qf(e,t));break}case d.TBODY:case d.TFOOT:case d.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(d.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ee.IN_TABLE_BODY,qf(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:case d.TD:case d.TH:break;default:Qu(e,t)}}function Rv(e,t){const A=t.tagID;Em.has(A)?(e.openElements.hasInTableScope(d.TD)||e.openElements.hasInTableScope(d.TH))&&(e._closeTableCell(),b0(e,t)):ur(e,t)}function Hv(e,t){const A=t.tagID;switch(A){case d.TD:case d.TH:{e.openElements.hasInTableScope(A)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(A),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ee.IN_ROW);break}case d.TABLE:case d.TBODY:case d.TFOOT:case d.THEAD:case d.TR:{e.openElements.hasInTableScope(A)&&(e._closeTableCell(),wm(e,t));break}case d.BODY:case d.CAPTION:case d.COL:case d.COLGROUP:case d.HTML:break;default:g0(e,t)}}function Cm(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e._insertElement(t,Le.HTML);break}case d.OPTGROUP:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Le.HTML);break}case d.HR:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Le.HTML),t.ackSelfClosing=!0;break}case d.INPUT:case d.KEYGEN:case d.TEXTAREA:case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),t.tagID!==d.SELECT&&e._processStartTag(t));break}case d.SCRIPT:case d.TEMPLATE:{dn(e,t);break}}}function vm(e,t){switch(t.tagID){case d.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===d.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===d.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===d.OPTGROUP&&e.openElements.pop();break}case d.OPTION:{e.openElements.currentTagId===d.OPTION&&e.openElements.pop();break}case d.SELECT:{e.openElements.hasInSelectScope(d.SELECT)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode());break}case d.TEMPLATE:{Li(e,t);break}}}function Pv(e,t){const A=t.tagID;A===d.CAPTION||A===d.TABLE||A===d.TBODY||A===d.TFOOT||A===d.THEAD||A===d.TR||A===d.TD||A===d.TH?(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Cm(e,t)}function Mv(e,t){const A=t.tagID;A===d.CAPTION||A===d.TABLE||A===d.TBODY||A===d.TFOOT||A===d.THEAD||A===d.TR||A===d.TD||A===d.TH?e.openElements.hasInTableScope(A)&&(e.openElements.popUntilTagNamePopped(d.SELECT),e._resetInsertionMode(),e.onEndTag(t)):vm(e,t)}function kv(e,t){switch(t.tagID){case d.BASE:case d.BASEFONT:case d.BGSOUND:case d.LINK:case d.META:case d.NOFRAMES:case d.SCRIPT:case d.STYLE:case d.TEMPLATE:case d.TITLE:{dn(e,t);break}case d.CAPTION:case d.COLGROUP:case d.TBODY:case d.TFOOT:case d.THEAD:{e.tmplInsertionModeStack[0]=ee.IN_TABLE,e.insertionMode=ee.IN_TABLE,ps(e,t);break}case d.COL:{e.tmplInsertionModeStack[0]=ee.IN_COLUMN_GROUP,e.insertionMode=ee.IN_COLUMN_GROUP,nd(e,t);break}case d.TR:{e.tmplInsertionModeStack[0]=ee.IN_TABLE_BODY,e.insertionMode=ee.IN_TABLE_BODY,p0(e,t);break}case d.TD:case d.TH:{e.tmplInsertionModeStack[0]=ee.IN_ROW,e.insertionMode=ee.IN_ROW,b0(e,t);break}default:e.tmplInsertionModeStack[0]=ee.IN_BODY,e.insertionMode=ee.IN_BODY,ur(e,t)}}function Kv(e,t){t.tagID===d.TEMPLATE&&Li(e,t)}function Tm(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(d.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):rd(e,t)}function qv(e,t){t.tagID===d.HTML?ur(e,t):Vc(e,t)}function ym(e,t){var A;if(t.tagID===d.HTML){if(e.fragmentContext||(e.insertionMode=ee.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===d.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((A=e.treeAdapter.getNodeSourceCodeLocation(r))===null||A===void 0)&&A.endTag)&&e._setEndLocation(r,t)}}else Vc(e,t)}function Vc(e,t){e.insertionMode=ee.IN_BODY,d0(e,t)}function jv(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.FRAMESET:{e._insertElement(t,Le.HTML);break}case d.FRAME:{e._appendElement(t,Le.HTML),t.ackSelfClosing=!0;break}case d.NOFRAMES:{dn(e,t);break}}}function Vv(e,t){t.tagID===d.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==d.FRAMESET&&(e.insertionMode=ee.AFTER_FRAMESET))}function Gv(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.NOFRAMES:{dn(e,t);break}}}function Yv(e,t){t.tagID===d.HTML&&(e.insertionMode=ee.AFTER_AFTER_FRAMESET)}function Wv(e,t){t.tagID===d.HTML?ur(e,t):wc(e,t)}function wc(e,t){e.insertionMode=ee.IN_BODY,d0(e,t)}function Xv(e,t){switch(t.tagID){case d.HTML:{ur(e,t);break}case d.NOFRAMES:{dn(e,t);break}}}function zv(e,t){t.chars=cA,e._insertCharacters(t)}function Jv(e,t){e._insertCharacters(t),e.framesetOk=!1}function xm(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Le.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Zv(e,t){if(hC(t))xm(e),e._startTagOutsideForeignContent(t);else{const A=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(A);r===Le.MATHML?um(t):r===Le.SVG&&(dC(t),om(t)),td(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function $v(e,t){if(t.tagID===d.P||t.tagID===d.BR){xm(e),e._endTagOutsideForeignContent(t);return}for(let A=e.openElements.stackTop;A>0;A--){const r=e.openElements.items[A];if(e.treeAdapter.getNamespaceURI(r)===Le.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(r);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(A);break}}}const eT=new Set([de.AREA,de.BASE,de.BASEFONT,de.BGSOUND,de.BR,de.COL,de.EMBED,de.FRAME,de.HR,de.IMG,de.INPUT,de.KEYGEN,de.LINK,de.META,de.PARAM,de.SOURCE,de.TRACK,de.WBR]);function tT(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===Le.HTML&&eT.has(t.treeAdapter.getTagName(e))}const AT={treeAdapter:ia,scriptingEnabled:!0};function rT(e,t){const A={...AT,...t};return Im(e,A)}function nT(e,t){let A="";const r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===de.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===Le.HTML?t.treeAdapter.getTemplateContent(e):e,n=t.treeAdapter.getChildNodes(r);if(n)for(const a of n)A+=Im(a,t);return A}function Im(e,t){return t.treeAdapter.isElementNode(e)?aT(e,t):t.treeAdapter.isTextNode(e)?sT(e,t):t.treeAdapter.isCommentNode(e)?uT(e,t):t.treeAdapter.isDocumentTypeNode(e)?oT(e,t):""}function aT(e,t){const A=t.treeAdapter.getTagName(e);return`<${A}${iT(e,t)}>${tT(e,t)?"":`${nT(e,t)}</${A}>`}`}function iT(e,{treeAdapter:t}){let A="";for(const r of t.getAttrList(e)){if(A+=" ",r.namespace)switch(r.namespace){case Le.XML:{A+=`xml:${r.name}`;break}case Le.XMLNS:{r.name!=="xmlns"&&(A+="xmlns:"),A+=r.name;break}case Le.XLINK:{A+=`xlink:${r.name}`;break}default:A+=`${r.prefix}:${r.name}`}else A+=r.name;A+=`="${lb(r.value)}"`}return A}function sT(e,t){const{treeAdapter:A}=t,r=A.getTextNodeContent(e),n=A.getParentNode(e),a=n&&A.isElementNode(n)&&A.getTagName(n);return a&&A.getNamespaceURI(n)===Le.HTML&&k6(a,t.scriptingEnabled)?r:fb(r)}function uT(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function oT(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function cT(e,t){return lm.parse(e,t)}function lT(e,t,A){typeof e=="string"&&(A=t,t=e,e=null);const r=lm.getFragmentParser(e,A);return r.tokenizer.write(t,!0),r.getFragment()}var k1;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k1||(k1={}));var K1;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(K1||(K1={}));var q1;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(q1||(q1={}));var DA;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(DA||(DA={}));var j1;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(j1||(j1={}));var jf;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(jf||(jf={}));var me;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(me||(me={}));var Z;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(Z||(Z={}));me.A,Z.A,me.ADDRESS,Z.ADDRESS,me.ANNOTATION_XML,Z.ANNOTATION_XML,me.APPLET,Z.APPLET,me.AREA,Z.AREA,me.ARTICLE,Z.ARTICLE,me.ASIDE,Z.ASIDE,me.B,Z.B,me.BASE,Z.BASE,me.BASEFONT,Z.BASEFONT,me.BGSOUND,Z.BGSOUND,me.BIG,Z.BIG,me.BLOCKQUOTE,Z.BLOCKQUOTE,me.BODY,Z.BODY,me.BR,Z.BR,me.BUTTON,Z.BUTTON,me.CAPTION,Z.CAPTION,me.CENTER,Z.CENTER,me.CODE,Z.CODE,me.COL,Z.COL,me.COLGROUP,Z.COLGROUP,me.DD,Z.DD,me.DESC,Z.DESC,me.DETAILS,Z.DETAILS,me.DIALOG,Z.DIALOG,me.DIR,Z.DIR,me.DIV,Z.DIV,me.DL,Z.DL,me.DT,Z.DT,me.EM,Z.EM,me.EMBED,Z.EMBED,me.FIELDSET,Z.FIELDSET,me.FIGCAPTION,Z.FIGCAPTION,me.FIGURE,Z.FIGURE,me.FONT,Z.FONT,me.FOOTER,Z.FOOTER,me.FOREIGN_OBJECT,Z.FOREIGN_OBJECT,me.FORM,Z.FORM,me.FRAME,Z.FRAME,me.FRAMESET,Z.FRAMESET,me.H1,Z.H1,me.H2,Z.H2,me.H3,Z.H3,me.H4,Z.H4,me.H5,Z.H5,me.H6,Z.H6,me.HEAD,Z.HEAD,me.HEADER,Z.HEADER,me.HGROUP,Z.HGROUP,me.HR,Z.HR,me.HTML,Z.HTML,me.I,Z.I,me.IMG,Z.IMG,me.IMAGE,Z.IMAGE,me.INPUT,Z.INPUT,me.IFRAME,Z.IFRAME,me.KEYGEN,Z.KEYGEN,me.LABEL,Z.LABEL,me.LI,Z.LI,me.LINK,Z.LINK,me.LISTING,Z.LISTING,me.MAIN,Z.MAIN,me.MALIGNMARK,Z.MALIGNMARK,me.MARQUEE,Z.MARQUEE,me.MATH,Z.MATH,me.MENU,Z.MENU,me.META,Z.META,me.MGLYPH,Z.MGLYPH,me.MI,Z.MI,me.MO,Z.MO,me.MN,Z.MN,me.MS,Z.MS,me.MTEXT,Z.MTEXT,me.NAV,Z.NAV,me.NOBR,Z.NOBR,me.NOFRAMES,Z.NOFRAMES,me.NOEMBED,Z.NOEMBED,me.NOSCRIPT,Z.NOSCRIPT,me.OBJECT,Z.OBJECT,me.OL,Z.OL,me.OPTGROUP,Z.OPTGROUP,me.OPTION,Z.OPTION,me.P,Z.P,me.PARAM,Z.PARAM,me.PLAINTEXT,Z.PLAINTEXT,me.PRE,Z.PRE,me.RB,Z.RB,me.RP,Z.RP,me.RT,Z.RT,me.RTC,Z.RTC,me.RUBY,Z.RUBY,me.S,Z.S,me.SCRIPT,Z.SCRIPT,me.SEARCH,Z.SEARCH,me.SECTION,Z.SECTION,me.SELECT,Z.SELECT,me.SOURCE,Z.SOURCE,me.SMALL,Z.SMALL,me.SPAN,Z.SPAN,me.STRIKE,Z.STRIKE,me.STRONG,Z.STRONG,me.STYLE,Z.STYLE,me.SUB,Z.SUB,me.SUMMARY,Z.SUMMARY,me.SUP,Z.SUP,me.TABLE,Z.TABLE,me.TBODY,Z.TBODY,me.TEMPLATE,Z.TEMPLATE,me.TEXTAREA,Z.TEXTAREA,me.TFOOT,Z.TFOOT,me.TD,Z.TD,me.TH,Z.TH,me.THEAD,Z.THEAD,me.TITLE,Z.TITLE,me.TR,Z.TR,me.TRACK,Z.TRACK,me.TT,Z.TT,me.U,Z.U,me.UL,Z.UL,me.SVG,Z.SVG,me.VAR,Z.VAR,me.WBR,Z.WBR,me.XMP,Z.XMP;const Re=Z;DA.HTML+"",Re.ADDRESS,Re.APPLET,Re.AREA,Re.ARTICLE,Re.ASIDE,Re.BASE,Re.BASEFONT,Re.BGSOUND,Re.BLOCKQUOTE,Re.BODY,Re.BR,Re.BUTTON,Re.CAPTION,Re.CENTER,Re.COL,Re.COLGROUP,Re.DD,Re.DETAILS,Re.DIR,Re.DIV,Re.DL,Re.DT,Re.EMBED,Re.FIELDSET,Re.FIGCAPTION,Re.FIGURE,Re.FOOTER,Re.FORM,Re.FRAME,Re.FRAMESET,Re.H1,Re.H2,Re.H3,Re.H4,Re.H5,Re.H6,Re.HEAD,Re.HEADER,Re.HGROUP,Re.HR,Re.HTML,Re.IFRAME,Re.IMG,Re.INPUT,Re.LI,Re.LINK,Re.LISTING,Re.MAIN,Re.MARQUEE,Re.MENU,Re.META,Re.NAV,Re.NOEMBED,Re.NOFRAMES,Re.NOSCRIPT,Re.OBJECT,Re.OL,Re.P,Re.PARAM,Re.PLAINTEXT,Re.PRE,Re.SCRIPT,Re.SECTION,Re.SELECT,Re.SOURCE,Re.STYLE,Re.SUMMARY,Re.TABLE,Re.TBODY,Re.TD,Re.TEMPLATE,Re.TEXTAREA,Re.TFOOT,Re.TH,Re.THEAD,Re.TITLE,Re.TR,Re.TRACK,Re.UL,Re.WBR,Re.XMP,DA.MATHML+"",Re.MI,Re.MO,Re.MN,Re.MS,Re.MTEXT,Re.ANNOTATION_XML,DA.SVG+"",Re.TITLE,Re.FOREIGN_OBJECT,Re.DESC,DA.XLINK+"",DA.XML+"",DA.XMLNS+"";Re.H1,Re.H2,Re.H3,Re.H4,Re.H5,Re.H6;me.STYLE,me.SCRIPT,me.XMP,me.IFRAME,me.NOEMBED,me.NOFRAMES,me.PLAINTEXT;var Qa;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Qa||(Qa={}));Qa.DATA,Qa.RCDATA,Qa.RAWTEXT,Qa.SCRIPT_DATA,Qa.PLAINTEXT,Qa.CDATA_SECTION;const fT=new Set([Z.DD,Z.DT,Z.LI,Z.OPTGROUP,Z.OPTION,Z.P,Z.RB,Z.RP,Z.RT,Z.RTC]);[...fT,Z.CAPTION,Z.COLGROUP,Z.TBODY,Z.TD,Z.TFOOT,Z.TH,Z.THEAD,Z.TR];const Fm=new Set([Z.APPLET,Z.CAPTION,Z.HTML,Z.MARQUEE,Z.OBJECT,Z.TABLE,Z.TD,Z.TEMPLATE,Z.TH]);[...Fm,Z.OL,Z.UL];[...Fm,Z.BUTTON];Z.ANNOTATION_XML,Z.MI,Z.MN,Z.MO,Z.MS,Z.MTEXT;Z.DESC,Z.FOREIGN_OBJECT,Z.TITLE;Z.TR,Z.TEMPLATE,Z.HTML;Z.TBODY,Z.TFOOT,Z.THEAD,Z.TEMPLATE,Z.HTML;Z.TABLE,Z.TEMPLATE,Z.HTML;Z.TD,Z.TH;var Vf;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vf||(Vf={}));Vf.Marker;new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e]));DA.XLINK,DA.XLINK,DA.XLINK,DA.XLINK,DA.XLINK,DA.XLINK,DA.XLINK,DA.XML,DA.XML,DA.XMLNS,DA.XMLNS;new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e]));Z.B,Z.BIG,Z.BLOCKQUOTE,Z.BODY,Z.BR,Z.CENTER,Z.CODE,Z.DD,Z.DIV,Z.DL,Z.DT,Z.EM,Z.EMBED,Z.H1,Z.H2,Z.H3,Z.H4,Z.H5,Z.H6,Z.HEAD,Z.HR,Z.I,Z.IMG,Z.LI,Z.LISTING,Z.MENU,Z.META,Z.NOBR,Z.OL,Z.P,Z.PRE,Z.RUBY,Z.S,Z.SMALL,Z.SPAN,Z.STRONG,Z.STRIKE,Z.SUB,Z.SUP,Z.TABLE,Z.TT,Z.U,Z.UL,Z.VAR;var V1;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(V1||(V1={}));Z.TABLE,Z.TBODY,Z.TFOOT,Z.THEAD,Z.TR;Z.CAPTION,Z.COL,Z.COLGROUP,Z.TBODY,Z.TD,Z.TFOOT,Z.TH,Z.THEAD,Z.TR;me.AREA,me.BASE,me.BASEFONT,me.BGSOUND,me.BR,me.COL,me.EMBED,me.FRAME,me.HR,me.IMG,me.INPUT,me.KEYGEN,me.LINK,me.META,me.PARAM,me.SOURCE,me.TRACK,me.WBR;let Lm=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Dm(this,t)}};class ad extends Lm{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class _m extends ad{constructor(){super(...arguments),this.type=gt.Text}get nodeType(){return 3}}class Nm extends ad{constructor(){super(...arguments),this.type=gt.Comment}get nodeType(){return 8}}class Um extends ad{constructor(t,A){super(A),this.name=t,this.type=gt.Directive}get nodeType(){return 1}}class id extends Lm{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class hT extends id{constructor(){super(...arguments),this.type=gt.CDATA}get nodeType(){return 4}}class Gf extends id{constructor(){super(...arguments),this.type=gt.Root}get nodeType(){return 9}}class Sm extends id{constructor(t,A,r=[],n=t==="script"?gt.Script:t==="style"?gt.Style:gt.Tag){super(r),this.name=t,this.attribs=A,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var A,r;return{name:t,value:this.attribs[t],namespace:(A=this["x-attribsNamespace"])===null||A===void 0?void 0:A[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}}function Qm(e){return Sh(e)}function dT(e){return e.type===gt.CDATA}function Cc(e){return e.type===gt.Text}function Om(e){return e.type===gt.Comment}function Yf(e){return e.type===gt.Directive}function gT(e){return e.type===gt.Root}function Dm(e,t=!1){let A;if(Cc(e))A=new _m(e.data);else if(Om(e))A=new Nm(e.data);else if(Qm(e)){const r=t?Cl(e.children):[],n=new Sm(e.name,{...e.attribs},r);r.forEach(a=>a.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),A=n}else if(dT(e)){const r=t?Cl(e.children):[],n=new hT(r);r.forEach(a=>a.parent=n),A=n}else if(gT(e)){const r=t?Cl(e.children):[],n=new Gf(r);r.forEach(a=>a.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),A=n}else if(Yf(e)){const r=new Um(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),A=r}else throw new Error(`Not implemented yet: ${e.type}`);return A.startIndex=e.startIndex,A.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(A.sourceCodeLocation=e.sourceCodeLocation),A}function Cl(e){const t=e.map(A=>Dm(A,!0));for(let A=1;A<t.length;A++)t[A].prev=t[A-1],t[A-1].next=t[A];return t}function G1(e){const t=e.includes('"')?"'":'"';return t+e+t}function pT(e,t,A){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${G1(t)}`:A&&(r+=" SYSTEM"),A&&(r+=` ${G1(A)}`),r}const Oa={isCommentNode:Om,isElementNode:Qm,isTextNode:Cc,createDocument(){const e=new Gf([]);return e["x-mode"]=jf.NO_QUIRKS,e},createDocumentFragment(){return new Gf([])},createElement(e,t,A){const r=Object.create(null),n=Object.create(null),a=Object.create(null);for(let s=0;s<A.length;s++){const u=A[s].name;r[u]=A[s].value,n[u]=A[s].namespace,a[u]=A[s].prefix}const i=new Sm(e,r,[]);return i.namespace=t,i["x-attribsNamespace"]=n,i["x-attribsPrefix"]=a,i},createCommentNode(e){return new Nm(e)},createTextNode(e){return new _m(e)},appendChild(e,t){const A=e.children[e.children.length-1];A&&(A.next=t,t.prev=A),e.children.push(t),t.parent=e},insertBefore(e,t,A){const r=e.children.indexOf(A),{prev:n}=A;n&&(n.next=t,t.prev=n),A.prev=t,t.next=A,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Oa.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,A,r){const n=pT(t,A,r);let a=e.children.find(i=>Yf(i)&&i.name==="!doctype");a?a.data=n??null:(a=new Um("!doctype",n),Oa.appendChild(e,a)),a["x-name"]=t,a["x-publicId"]=A,a["x-systemId"]=r},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:A,next:r}=e;e.prev=null,e.next=null,A&&(A.next=r),r&&(r.prev=A),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const A=e.children[e.children.length-1];A&&Cc(A)?A.data+=t:Oa.appendChild(e,Oa.createTextNode(t))},insertTextBefore(e,t,A){const r=e.children[e.children.indexOf(A)-1];r&&Cc(r)?r.data+=t:Oa.insertBefore(e,Oa.createTextNode(t),A)},adoptAttributes(e,t){for(let A=0;A<t.length;A++){const r=t[A].name;e.attribs[r]===void 0&&(e.attribs[r]=t[A].value,e["x-attribsNamespace"][r]=t[A].namespace,e["x-attribsPrefix"][r]=t[A].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Yf(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function bT(e,t,A,r){var n;return(n=t.treeAdapter)!==null&&n!==void 0||(t.treeAdapter=Oa),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),A?cT(e,t):lT(r,e,t)}const mT={treeAdapter:Oa};function BT(e){const t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){const n=t[r];Fi(n)&&Array.prototype.splice.call(t,r,1,...n.children)}let A="";for(let r=0;r<t.length;r+=1){const n=t[r];A+=rT(n,mT)}return A}var lt;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(lt||(lt={}));var Se;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(Se||(Se={}));function aa(e){return e===lt.Space||e===lt.NewLine||e===lt.Tab||e===lt.FormFeed||e===lt.CarriageReturn}function Ro(e){return e===lt.Slash||e===lt.Gt||aa(e)}function ET(e){return e>=lt.LowerA&&e<=lt.LowerZ||e>=lt.UpperA&&e<=lt.UpperZ}var Nn;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(Nn||(Nn={}));const zA={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};let wT=class{constructor({xmlMode:t=!1,decodeEntities:A=!0},r){this.cbs=r,this.state=Se.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Se.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=A,this.entityDecoder=new Hh(t?sb:Rh,(n,a)=>this.emitCodePoint(n,a))}reset(){this.state=Se.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Se.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===lt.Lt||!this.decodeEntities&&this.fastForwardTo(lt.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Se.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===lt.Amp&&this.startEntity()}stateSpecialStartSequence(t){const A=this.sequenceIndex===this.currentSequence.length;if(!(A?Ro(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!A){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Se.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===lt.Gt||aa(t)){const A=this.index-this.currentSequence.length;if(this.sectionStart<A){const r=this.index;this.index=A,this.cbs.ontext(this.sectionStart,A),this.index=r}this.isSpecial=!1,this.sectionStart=A+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===zA.TitleEnd?this.decodeEntities&&t===lt.Amp&&this.startEntity():this.fastForwardTo(lt.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===lt.Lt)}stateCDATASequence(t){t===zA.Cdata[this.sequenceIndex]?++this.sequenceIndex===zA.Cdata.length&&(this.state=Se.InCommentLike,this.currentSequence=zA.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=Se.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===zA.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Se.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!Ro(t):ET(t)}startSpecial(t,A){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=A,this.state=Se.SpecialStartSequence}stateBeforeTagName(t){if(t===lt.ExclamationMark)this.state=Se.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===lt.Questionmark)this.state=Se.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const A=t|32;this.sectionStart=this.index,this.xmlMode?this.state=Se.InTagName:A===zA.ScriptEnd[2]?this.state=Se.BeforeSpecialS:A===zA.TitleEnd[2]?this.state=Se.BeforeSpecialT:this.state=Se.InTagName}else t===lt.Slash?this.state=Se.BeforeClosingTagName:(this.state=Se.Text,this.stateText(t))}stateInTagName(t){Ro(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Se.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){aa(t)||(t===lt.Gt?this.state=Se.Text:(this.state=this.isTagStartChar(t)?Se.InClosingTagName:Se.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===lt.Gt||aa(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Se.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.state=Se.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===lt.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=Se.InSpecialTag,this.sequenceIndex=0):this.state=Se.Text,this.sectionStart=this.index+1):t===lt.Slash?this.state=Se.InSelfClosingTag:aa(t)||(this.state=Se.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===lt.Gt?(this.cbs.onselfclosingtag(this.index),this.state=Se.Text,this.sectionStart=this.index+1,this.isSpecial=!1):aa(t)||(this.state=Se.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===lt.Eq||Ro(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=Se.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===lt.Eq?this.state=Se.BeforeAttributeValue:t===lt.Slash||t===lt.Gt?(this.cbs.onattribend(Nn.NoValue,this.sectionStart),this.sectionStart=-1,this.state=Se.BeforeAttributeName,this.stateBeforeAttributeName(t)):aa(t)||(this.cbs.onattribend(Nn.NoValue,this.sectionStart),this.state=Se.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===lt.DoubleQuote?(this.state=Se.InAttributeValueDq,this.sectionStart=this.index+1):t===lt.SingleQuote?(this.state=Se.InAttributeValueSq,this.sectionStart=this.index+1):aa(t)||(this.sectionStart=this.index,this.state=Se.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,A){t===A||!this.decodeEntities&&this.fastForwardTo(A)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(A===lt.DoubleQuote?Nn.Double:Nn.Single,this.index+1),this.state=Se.BeforeAttributeName):this.decodeEntities&&t===lt.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,lt.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,lt.SingleQuote)}stateInAttributeValueNoQuotes(t){aa(t)||t===lt.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Nn.Unquoted,this.index),this.state=Se.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===lt.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===lt.OpeningSquareBracket?(this.state=Se.CDATASequence,this.sequenceIndex=0):this.state=t===lt.Dash?Se.BeforeComment:Se.InDeclaration}stateInDeclaration(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Se.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=Se.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===lt.Dash?(this.state=Se.InCommentLike,this.currentSequence=zA.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=Se.InDeclaration}stateInSpecialComment(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Se.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const A=t|32;A===zA.ScriptEnd[3]?this.startSpecial(zA.ScriptEnd,4):A===zA.StyleEnd[3]?this.startSpecial(zA.StyleEnd,4):(this.state=Se.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){const A=t|32;A===zA.TitleEnd[3]?this.startSpecial(zA.TitleEnd,4):A===zA.TextareaEnd[3]?this.startSpecial(zA.TextareaEnd,4):(this.state=Se.InTagName,this.stateInTagName(t))}startEntity(){this.baseState=this.state,this.state=Se.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Wr.Strict:this.baseState===Se.Text||this.baseState===Se.InSpecialTag?Wr.Legacy:Wr.Attribute)}stateInEntity(){const t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Se.Text||this.state===Se.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Se.InAttributeValueDq||this.state===Se.InAttributeValueSq||this.state===Se.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Se.Text:{this.stateText(t);break}case Se.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case Se.InSpecialTag:{this.stateInSpecialTag(t);break}case Se.CDATASequence:{this.stateCDATASequence(t);break}case Se.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case Se.InAttributeName:{this.stateInAttributeName(t);break}case Se.InCommentLike:{this.stateInCommentLike(t);break}case Se.InSpecialComment:{this.stateInSpecialComment(t);break}case Se.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case Se.InTagName:{this.stateInTagName(t);break}case Se.InClosingTagName:{this.stateInClosingTagName(t);break}case Se.BeforeTagName:{this.stateBeforeTagName(t);break}case Se.AfterAttributeName:{this.stateAfterAttributeName(t);break}case Se.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case Se.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case Se.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case Se.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case Se.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case Se.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case Se.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case Se.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case Se.InDeclaration:{this.stateInDeclaration(t);break}case Se.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case Se.BeforeComment:{this.stateBeforeComment(t);break}case Se.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case Se.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===Se.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===Se.InCommentLike?this.currentSequence===zA.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===Se.InTagName||this.state===Se.BeforeAttributeName||this.state===Se.BeforeAttributeValue||this.state===Se.AfterAttributeName||this.state===Se.InAttributeName||this.state===Se.InAttributeValueSq||this.state===Se.InAttributeValueDq||this.state===Se.InAttributeValueNq||this.state===Se.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,A){this.baseState!==Se.Text&&this.baseState!==Se.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+A,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+A,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}};const Gi=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Xt=new Set(["p"]),Y1=new Set(["thead","tbody"]),W1=new Set(["dd","dt"]),X1=new Set(["rt","rp"]),CT=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Xt],["h1",Xt],["h2",Xt],["h3",Xt],["h4",Xt],["h5",Xt],["h6",Xt],["select",Gi],["input",Gi],["output",Gi],["button",Gi],["datalist",Gi],["textarea",Gi],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",W1],["dt",W1],["address",Xt],["article",Xt],["aside",Xt],["blockquote",Xt],["details",Xt],["div",Xt],["dl",Xt],["fieldset",Xt],["figcaption",Xt],["figure",Xt],["footer",Xt],["form",Xt],["header",Xt],["hr",Xt],["main",Xt],["nav",Xt],["ol",Xt],["pre",Xt],["section",Xt],["table",Xt],["ul",Xt],["rt",X1],["rp",X1],["tbody",Y1],["tfoot",Y1]]),vT=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),z1=new Set(["math","svg"]),J1=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),TT=/\s|\//;let yT=class{constructor(t,A={}){var r,n,a,i,s,u;this.options=A,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=A.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(n=A.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(a=A.recognizeSelfClosing)!==null&&a!==void 0?a:!this.htmlMode,this.tokenizer=new((i=A.Tokenizer)!==null&&i!==void 0?i:wT)(this.options,this),this.foreignContext=[!this.htmlMode],(u=(s=this.cbs).onparserinit)===null||u===void 0||u.call(s,this)}ontext(t,A){var r,n;const a=this.getSlice(t,A);this.endIndex=A-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,a),this.startIndex=A}ontextentity(t,A){var r,n;this.endIndex=A-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,_f(t)),this.startIndex=A}isVoidElement(t){return this.htmlMode&&vT.has(t)}onopentagname(t,A){this.endIndex=A;let r=this.getSlice(t,A);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var A,r,n,a;this.openTagStart=this.startIndex,this.tagname=t;const i=this.htmlMode&&CT.get(t);if(i)for(;this.stack.length>0&&i.has(this.stack[0]);){const s=this.stack.shift();(r=(A=this.cbs).onclosetag)===null||r===void 0||r.call(A,s,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(z1.has(t)?this.foreignContext.unshift(!0):J1.has(t)&&this.foreignContext.unshift(!1))),(a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var A,r;this.startIndex=this.openTagStart,this.attribs&&((r=(A=this.cbs).onopentag)===null||r===void 0||r.call(A,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,A){var r,n,a,i,s,u,c,l;this.endIndex=A;let p=this.getSlice(t,A);if(this.lowerCaseTagNames&&(p=p.toLowerCase()),this.htmlMode&&(z1.has(p)||J1.has(p))&&this.foreignContext.shift(),this.isVoidElement(p))this.htmlMode&&p==="br"&&((i=(a=this.cbs).onopentagname)===null||i===void 0||i.call(a,"br"),(u=(s=this.cbs).onopentag)===null||u===void 0||u.call(s,"br",{},!0),(l=(c=this.cbs).onclosetag)===null||l===void 0||l.call(c,"br",!1));else{const m=this.stack.indexOf(p);if(m!==-1)for(let h=0;h<=m;h++){const w=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,w,h!==m)}else this.htmlMode&&p==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=A+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var A,r;const n=this.tagname;this.endOpenTag(t),this.stack[0]===n&&((r=(A=this.cbs).onclosetag)===null||r===void 0||r.call(A,n,!t),this.stack.shift())}onattribname(t,A){this.startIndex=t;const r=this.getSlice(t,A);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,A){this.attribvalue+=this.getSlice(t,A)}onattribentity(t){this.attribvalue+=_f(t)}onattribend(t,A){var r,n;this.endIndex=A,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,t===Nn.Double?'"':t===Nn.Single?"'":t===Nn.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const A=t.search(TT);let r=A<0?t:t.substr(0,A);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,A){this.endIndex=A;const r=this.getSlice(t,A);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${n}`,`!${r}`)}this.startIndex=A+1}onprocessinginstruction(t,A){this.endIndex=A;const r=this.getSlice(t,A);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${n}`,`?${r}`)}this.startIndex=A+1}oncomment(t,A,r){var n,a,i,s;this.endIndex=A,(a=(n=this.cbs).oncomment)===null||a===void 0||a.call(n,this.getSlice(t,A-r)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=A+1}oncdata(t,A,r){var n,a,i,s,u,c,l,p,m,h;this.endIndex=A;const w=this.getSlice(t,A-r);!this.htmlMode||this.options.recognizeCDATA?((a=(n=this.cbs).oncdatastart)===null||a===void 0||a.call(n),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,w),(c=(u=this.cbs).oncdataend)===null||c===void 0||c.call(u)):((p=(l=this.cbs).oncomment)===null||p===void 0||p.call(l,`[CDATA[${w}]]`),(h=(m=this.cbs).oncommentend)===null||h===void 0||h.call(m)),this.startIndex=A+1}onend(){var t,A;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(A=(t=this.cbs).onend)===null||A===void 0||A.call(t)}reset(){var t,A,r,n;(A=(t=this.cbs).onreset)===null||A===void 0||A.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,A){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,A-this.bufferOffset);for(;A-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,A-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var A,r;if(this.ended){(r=(A=this.cbs).onerror)===null||r===void 0||r.call(A,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var A,r;if(this.ended){(r=(A=this.cbs).onerror)===null||r===void 0||r.call(A,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function xT(e,t){const A=new eE(void 0,t);return new yT(A,t).end(e),A.root}const IT=Zw((e,t,A,r)=>t._useHtmlParser2?xT(e,t):bT(e,t,A,r)),FT=N6(IT,(e,t)=>t._useHtmlParser2?Ph(e,t):BT(e)),LT=Object.freeze(Object.defineProperty({__proto__:null,contains:Mh,load:FT,merge:mb},Symbol.toStringTag,{value:"Module"})),_T=j3(LT);var vl={},Tl={exports:{}},yl={exports:{}},Z1;function sd(){return Z1||(Z1=1,(function(e,t){e.exports=A;function A(n){return r.bind(null,n)}function r(n){var a=[].slice.call(arguments,1);a.unshift("["+n+"]"),process.stderr.write(a.join(" ")+`
`)}})(yl)),yl.exports}var $1;function Rm(){return $1||($1=1,(function(e,t){sd()("lex"),e.exports=A;function A(r){var n="",a,i=0,s=-1,u=0,c=1,l="before-selector",p=[l],m={},h=[],w=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function v(){return K(),r[s]}function T(ae){return ae?p[p.length-1-ae]:l}function C(ae){var te=s+1;return ae===r.slice(te,te+ae.length)}function U(ae){var te=r.slice(s).indexOf(ae);return te>0?te:!1}function R(ae){return ae===F(1)}function F(ae){return r[s+(ae||1)]}function D(){var ae=p.pop();return l=p[p.length-1],ae}function P(ae){return l=ae,p.push(l),p.length}function J(ae){var te=l;return p[p.length-1]=l=ae,te}function K(ae){if((ae||1)==1)r[s]==`
`?(c++,i=1):i++,s++;else{var te=r.slice(s,s+ae).split(`
`);te.length>1&&(c+=te.length-1,i=1),i+=te[te.length-1].length,s=s+ae}}function S(){m.end={line:c,col:i},h.push(m),n="",m={}}function Ae(ae){m={type:ae,start:{line:c,col:i}}}for(;a=v();)switch(a){case" ":switch(T()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":n+=a;break}break;case`
`:case"	":case"\r":case"\f":switch(T()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":n+=a;break;case"at-value":a===`
`&&(m.value=n.trim(),S(),D());break}break;case":":switch(T()){case"name":m.name=n.trim(),n="",J("before-value");break;case"before-selector":n+=a,Ae("selector"),P("selector");break;case"before-value":J("value"),n+=a;break;default:n+=a;break}break;case";":switch(T()){case"name":case"before-value":case"value":n.trim().length>0&&(m.value=n.trim(),S()),J("before-name");break;case"value-paren":n+=a;break;case"at-value":m.value=n.trim(),S(),D();break;case"before-name":break;default:n+=a;break}break;case"{":switch(T()){case"selector":if(F(-1)==="\\"){n+=a;break}m.text=n.trim(),S(),J("before-name"),u=u+1;break;case"at-group":switch(m.name=n.trim(),m.type){case"font-face":case"viewport":case"page":P("before-name");break;default:P("before-selector")}S(),u=u+1;break;case"name":case"at-rule":m.name=n.trim(),S(),P("before-name"),u=u+1;break;case"comment":case"double-string":case"single-string":n+=a;break;case"before-value":J("value"),n+=a;break}break;case"}":switch(T()){case"before-name":case"name":case"before-value":case"value":n&&(m.value=n.trim()),m.name&&m.value&&S(),Ae("end"),S(),D(),T()==="at-group"&&(Ae("at-group-end"),S(),D()),u>0&&(u=u-1);break;case"at-group":case"before-selector":case"selector":if(F(-1)==="\\"){n+=a;break}u>0&&T(1)==="at-group"&&(Ae("at-group-end"),S()),u>1&&D(),u>0&&(u=u-1);break;case"double-string":case"single-string":case"comment":n+=a;break}break;case'"':case"'":switch(T()){case"double-string":a==='"'&&F(-1)!=="\\"&&D();break;case"single-string":a==="'"&&F(-1)!=="\\"&&D();break;case"before-at-value":J("at-value"),P(a==='"'?"double-string":"single-string");break;case"before-value":J("value"),P(a==='"'?"double-string":"single-string");break;case"comment":break;default:F(-1)!=="\\"&&P(a==='"'?"double-string":"single-string")}n+=a;break;case"/":switch(T()){case"comment":case"double-string":case"single-string":n+=a;break;case"before-value":case"selector":case"name":case"value":if(R("*")){var E=U("*/");E&&K(E+1)}else T()=="before-value"&&J("value"),n+=a;break;default:R("*")?(Ae("comment"),P("comment"),K()):n+=a;break}break;case"*":switch(T()){case"comment":R("/")?(m.text=n,K(),S(),D()):n+=a;break;case"before-selector":n+=a,Ae("selector"),P("selector");break;case"before-value":J("value"),n+=a;break;default:n+=a}break;case"@":switch(T()){case"comment":case"double-string":case"single-string":n+=a;break;case"before-value":J("value"),n+=a;break;default:for(var I=!1,Q,M,X=0,$=w.length;!I&&X<$;++X)M=w[X],Q=M.name||M,C(Q)&&(I=!0,Ae(Q),P(M.state||"at-group"),K(Q.length),M.prefix&&(m.prefix=M.prefix),M.type&&(m.type=M.type));I||(n+=a);break}break;case"(":switch(T()){case"value":P("value-paren");break;case"before-value":J("value");break}n+=a;break;case")":switch(T()){case"value-paren":D();break;case"before-value":J("value");break}n+=a;break;default:switch(T()){case"before-selector":Ae("selector"),P("selector");break;case"before-name":Ae("property"),J("name");break;case"before-value":J("value");break;case"before-at-value":J("at-value");break}n+=a;break}return h}})(Tl)),Tl.exports}var xl={exports:{}},e2;function NT(){return e2||(e2=1,(function(e,t){sd()("parse");var A=Rm();e.exports=s;var r,n,a,i;function s(D,P){P||(P={}),r=!!P.comments,a=!!P.position,n=0,i=Array.isArray(D)?D.slice():A(D);for(var J,K=[],S;S=c();)J=C(S),J&&K.push(J);return{type:"stylesheet",stylesheet:{rules:K}}}function u(D,P){P||(P={});for(var J,K=["type","name","value"],S={},Ae=0;Ae<K.length;++Ae)J=K[Ae],D[J]&&(S[J]=P[J]||D[J]);for(K=Object.keys(P),Ae=0;Ae<K.length;++Ae)J=K[Ae],S[J]||(S[J]=P[J]);return a&&(S.position={start:D.start,end:D.end}),S}function c(){var D=i.shift();return D}function l(D){n=n+1;var P={};switch(D.type){case"font-face":case"viewport":P.declarations=R();break;case"page":P.prefix=D.prefix,P.declarations=R();break;default:P.prefix=D.prefix,P.rules=F()}return u(D,P)}function p(D){return u(D)}function m(D){return u(D)}function h(D){return u(D,{text:D.text})}function w(D){return u(D)}function v(D){return u(D)}function T(D){function P(J){return J.trim()}return u(D,{type:"rule",selectors:D.text.split(",").map(P),declarations:R()})}function C(D){switch(D.type){case"property":return v(D);case"selector":return T(D);case"at-group-end":n=n-1;return;case"media":case"keyframes":return l(D);case"comment":if(r)return h(D);break;case"charset":return m(D);case"import":return p(D);case"namespace":return w(D);case"font-face":case"supports":case"viewport":case"document":case"page":return l(D)}}function U(D){for(var P,J=[],K;(K=c())&&D&&D(K);)P=C(K),P&&J.push(P);return K&&K.type!=="end"&&i.unshift(K),J}function R(){return U(function(D){return D.type==="property"||D.type==="comment"})}function F(){return U(function(){return n})}})(xl)),xl.exports}var Il={exports:{}},t2;function UT(){return t2||(t2=1,(function(e,t){sd()("stringify");var A,r,n,a,i,s;e.exports=u;function u(F,D){D||(D={}),n=D.indentation||"",r=!!D.compress,A=!!D.comments,a=1,r?i=s="":(i=`
`,s=" ");var P=w(F.stylesheet.rules,U).join(`
`).trim();return P}function c(F){if(F){a+=F;return}return r?"":Array(a).join(n||"")}function l(F){return"@"+F.type+" "+F.value+";"+i}function p(F){var D="",P=F.prefix||"";F.name&&(D=" "+F.name);var J=F.type!=="page";return"@"+P+F.type+D+s+v(F,J)+i}function m(F){return A?"/*"+(F.text||"")+"*/"+i:""}function h(F){var D;return F.selectors?D=F.selectors.join(","+i):(D="@"+F.type,D+=F.name?" "+F.name:""),c()+D+s+v(F)+i}function w(F,D){return F.reduce(function(P,J){var K=J.type==="comment"?m(J):D(J);return K&&P.push(K),P},[])}function v(F,D){var P=F.declarations,J=C;return F.rules&&(P=F.rules,J=h),P=T(P,J),P&&(P=i+P+(D?"":i)),"{"+P+c()+"}"}function T(F,D){if(!F)return"";c(1);var P=w(F,D);return c(-1),P.length?P.join(i):""}function C(F){if(F.type==="property")return R(F)}function U(F){switch(F.type){case"rule":return h(F);case"media":case"keyframes":return p(F);case"comment":return m(F);case"import":case"charset":case"namespace":return l(F);case"font-face":case"supports":case"viewport":case"document":case"page":return p(F)}}function R(F){var D=F.name?F.name+":"+s:"";return c()+D+F.value+";"}})(Il)),Il.exports}var Fl,A2;function ST(){return A2||(A2=1,Fl={lex:Rm(),parse:NT(),stringify:UT()}),Fl}var Ll={exports:{}},_l,r2;function QT(){if(r2)return _l;r2=1;var e=/([-.*+?^${}()|[\]\/\\])/g,t=/\\/g,A=function(p){return(p+"").replace(e,"\\$1")},r=function(p){return(p+"").replace(t,"")},n=RegExp(`^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:(["']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:(["'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+A(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),a=function(m){this.combinator=m||" ",this.tag="*"};a.prototype.toString=function(){if(!this.raw){var p="",m,h;if(p+=this.tag||"*",this.id&&(p+="#"+this.id),this.classes&&(p+="."+this.classList.join(".")),this.attributes)for(m=0;h=this.attributes[m++];)p+="["+h.name+(h.operator?h.operator+'"'+h.value+'"':"")+"]";if(this.pseudos)for(m=0;h=this.pseudos[m++];)p+=":"+h.name,h.value&&(p+="("+h.value+")");this.raw=p}return this.raw};var i=function(){this.length=0};i.prototype.toString=function(){if(!this.raw){for(var p="",m=0,h;h=this[m++];)m!==1&&(p+=" "),h.combinator!==" "&&(p+=h.combinator+" "),p+=h;this.raw=p}return this.raw};var s=function(p,m,h,w,v,T,C,U,R,F,D,P,J,K,S,Ae){var E,I;if((m||!this.length)&&(E=this[this.length++]=new i,m))return"";if(E||(E=this[this.length-1]),(h||w||!E.length)&&(I=E[E.length++]=new a(h)),I||(I=E[E.length-1]),v)I.tag=r(v);else if(T)I.id=r(T);else if(C){var Q=r(C),M=I.classes||(I.classes={});if(!M[Q]){M[Q]=A(C);var X=I.classList||(I.classList=[]);X.push(Q),X.sort()}}else J?(Ae=Ae||S,(I.pseudos||(I.pseudos=[])).push({type:P.length==1?"class":"element",name:r(J),escapedName:A(J),value:Ae?r(Ae):null,escapedValue:Ae?A(Ae):null})):U&&(D=D?A(D):null,(I.attributes||(I.attributes=[])).push({operator:R,name:r(U),escapedName:A(U),value:D?r(D):null,escapedValue:D?A(D):null}));return""},u=function(m){this.length=0;for(var h=this,w=m,v;m;){if(v=m.replace(n,function(){return s.apply(h,arguments)}),v===m)throw new Error(w+" is an invalid expression");m=v}};u.prototype.toString=function(){if(!this.raw){for(var p=[],m=0,h;h=this[m++];)p.push(h);this.raw=p.join(", ")}return this.raw};var c={},l=function(p){return p==null?null:(p=(""+p).replace(/^\s+|\s+$/g,""),c[p]||(c[p]=new u(p)))};return _l=l,_l}var n2;function OT(){return n2||(n2=1,(function(e,t){var A=QT();e.exports=r;function r(a,i){this.text=a,this.spec=void 0,this.styleAttribute=i||!1}r.prototype.parsed=function(){return this.tokens||(this.tokens=n(this.text)),this.tokens},r.prototype.specificity=function(){var a=this.styleAttribute;return this.spec||(this.spec=i(this.text,this.parsed())),this.spec;function i(s,u){for(var c=u||n(s),l=[a?1:0,0,0,0],p=[],m=0;m<c.length;m++){var h=c[m],w=h.pseudos;if(h.id&&l[1]++,h.attributes&&(l[2]+=h.attributes.length),h.classList&&(l[2]+=h.classList.length),h.tag&&h.tag!=="*"&&l[3]++,w){l[3]+=w.length;for(var v=0;v<w.length;v++)w[v].name==="not"&&(p.push(w[v].value),l[3]--)}}for(var T=p.length;T--;)for(var C=i(p[T]),U=4;U--;)l[U]+=C[U];return l}};function n(a){try{return A(a)[0]}catch{return[]}}})(Ll)),Ll.exports}var Nl={exports:{}},a2;function DT(){return a2||(a2=1,(function(e,t){e.exports=r;var A=ud();function r(n,a,i,s,u){this.prop=n,this.value=a,this.selector=i,this.priority=s||0,this.additionalPriority=u||[]}r.prototype.compareFunc=function(n){var a=[];a.push.apply(a,this.selector.specificity()),a.push.apply(a,this.additionalPriority),a[0]+=this.priority;var i=[];return i.push.apply(i,n.selector.specificity()),i.push.apply(i,n.additionalPriority),i[0]+=n.priority,A.compareFunc(a,i)},r.prototype.compare=function(n){var a=this.compareFunc(n);return a===1?this:n},r.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}})(Nl)),Nl.exports}var i2;function ud(){return i2||(i2=1,(function(e){var t=ST(),A=OT(),r=DT();e.Selector=A,e.Property=r;/**
 * Returns an array of the selectors.
 *
 * @license Sizzle CSS Selector Engine - MIT
 * @param {String} selectorText from mensch
 * @api public
 */e.extract=function(a){for(var i=0,s=[],u="",c=0,l=a.length;c<l;c++){var p=a.charAt(c);i?((p==="]"||p===")")&&i--,u+=p):p===","?(s.push(u),u=""):((p==="["||p==="(")&&i++,(u.length||p!==","&&p!==`
`&&p!==" ")&&(u+=p))}return u.length&&s.push(u),s},e.parseCSS=function(n){for(var a=t.parse(n,{position:!0,comments:!0}),i=typeof a.stylesheet<"u"&&a.stylesheet.rules?a.stylesheet.rules:[],s=[],u=0,c=i.length;u<c;u++)if(i[u].type=="rule")for(var l=i[u],p=l.selectors,m=0,h=p.length;m<h;m++)s.push([p[m],l.declarations]);return s},e.getPreservedText=function(n,a,i){for(var s=t.parse(n,{position:!0,comments:!0}),u=typeof s.stylesheet<"u"&&s.stylesheet.rules?s.stylesheet.rules:[],c=[],l=u.length-1;l>=0;l--)(a.fontFaces&&u[l].type==="font-face"||a.mediaQueries&&u[l].type==="media"||a.keyFrames&&u[l].type==="keyframes"||a.pseudos&&u[l].selectors&&this.matchesPseudo(u[l].selectors[0],i))&&c.unshift(t.stringify({stylesheet:{rules:[u[l]]}},{comments:!1,indentation:"  "})),u[l].position.start;return c.length===0?!1:`
`+c.join(`
`)+`
`},e.normalizeLineEndings=function(n){return n.replace(/\r\n/g,`
`).replace(/\n/g,`\r
`)},e.matchesPseudo=function(n,a){return a.find(function(i){return n.indexOf(i)>-1})},e.compareFunc=function(n,a){for(var i=Math.min(n.length,a.length),s=0;s<i;s++)if(n[s]!==a[s])return n[s]>a[s]?1:-1;return n.length-a.length},e.compare=function(n,a){return e.compareFunc(n,a)==1?n:a},e.getDefaultOptions=function(n){var a=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,resolveCSSVariables:!0,url:""},n);return a.webResources=a.webResources||{},a}})(vl)),vl}var s2;function RT(){return s2||(s2=1,(function(e){var t=_T;ud();var A=function(n,a,i){const{xmlMode:s,...u}=a;return a=Object.assign({xml:{decodeEntities:!1,xmlMode:s}},u),n=i(n),t.load(n,a)},r=function(){var n=[],a=function(s){var u=e.exports.codeBlocks;return Object.keys(u).forEach(function(c){var l=new RegExp(u[c].start+"([\\S\\s]*?)"+u[c].end,"g");s=s.replace(l,function(p,m){return n.push(p),"JUICE_CODE_BLOCK_"+(n.length-1)+"_"})}),s},i=function(s){for(var u=0;u<n.length;u++){var c=new RegExp("JUICE_CODE_BLOCK_"+u+'_(="")?',"gi");s=s.replace(c,function(){return n[u]})}return s};return{encodeEntities:a,decodeEntities:i}};e.exports=function(n,a,i,s){var u=r(),c=A(n,a,u.encodeEntities),l=[c];l.push.apply(l,s);var p=i.apply(void 0,l)||c;return a&&a.xmlMode?u.decodeEntities(p.xml()):u.decodeEntities(p.html())},e.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cl)),cl.exports}var Ul={},sn={},Ho={},u2;function HT(){return u2||(u2=1,Object.defineProperty(Ho,"__esModule",{value:!0}),Ho.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(e){return e.charCodeAt(0)}))),Ho}var Po={},o2;function PT(){return o2||(o2=1,Object.defineProperty(Po,"__esModule",{value:!0}),Po.default=new Uint16Array("Ȁaglq	\x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(e){return e.charCodeAt(0)}))),Po}var Sl={},c2;function l2(){return c2||(c2=1,(function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var A=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);e.fromCodePoint=(t=String.fromCodePoint)!==null&&t!==void 0?t:function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function r(a){var i;return a>=55296&&a<=57343||a>1114111?65533:(i=A.get(a))!==null&&i!==void 0?i:a}e.replaceCodePoint=r;function n(a){return(0,e.fromCodePoint)(r(a))}e.default=n})(Sl)),Sl}var f2;function h2(){return f2||(f2=1,(function(e){var t=sn&&sn.__createBinding||(Object.create?(function(E,I,Q,M){M===void 0&&(M=Q);var X=Object.getOwnPropertyDescriptor(I,Q);(!X||("get"in X?!I.__esModule:X.writable||X.configurable))&&(X={enumerable:!0,get:function(){return I[Q]}}),Object.defineProperty(E,M,X)}):(function(E,I,Q,M){M===void 0&&(M=Q),E[M]=I[Q]})),A=sn&&sn.__setModuleDefault||(Object.create?(function(E,I){Object.defineProperty(E,"default",{enumerable:!0,value:I})}):function(E,I){E.default=I}),r=sn&&sn.__importStar||function(E){if(E&&E.__esModule)return E;var I={};if(E!=null)for(var Q in E)Q!=="default"&&Object.prototype.hasOwnProperty.call(E,Q)&&t(I,E,Q);return A(I,E),I},n=sn&&sn.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTMLAttribute=e.decodeHTML=e.determineBranch=e.EntityDecoder=e.DecodingMode=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var a=n(HT());e.htmlDecodeTree=a.default;var i=n(PT());e.xmlDecodeTree=i.default;var s=r(l2());e.decodeCodePoint=s.default;var u=l2();Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var c;(function(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var l=32,p;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(p=e.BinTrieFlags||(e.BinTrieFlags={}));function m(E){return E>=c.ZERO&&E<=c.NINE}function h(E){return E>=c.UPPER_A&&E<=c.UPPER_F||E>=c.LOWER_A&&E<=c.LOWER_F}function w(E){return E>=c.UPPER_A&&E<=c.UPPER_Z||E>=c.LOWER_A&&E<=c.LOWER_Z||m(E)}function v(E){return E===c.EQUALS||w(E)}var T;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(T||(T={}));var C;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(C=e.DecodingMode||(e.DecodingMode={}));var U=(function(){function E(I,Q,M){this.decodeTree=I,this.emitCodePoint=Q,this.errors=M,this.state=T.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=C.Strict}return E.prototype.startEntity=function(I){this.decodeMode=I,this.state=T.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.prototype.write=function(I,Q){switch(this.state){case T.EntityStart:return I.charCodeAt(Q)===c.NUM?(this.state=T.NumericStart,this.consumed+=1,this.stateNumericStart(I,Q+1)):(this.state=T.NamedEntity,this.stateNamedEntity(I,Q));case T.NumericStart:return this.stateNumericStart(I,Q);case T.NumericDecimal:return this.stateNumericDecimal(I,Q);case T.NumericHex:return this.stateNumericHex(I,Q);case T.NamedEntity:return this.stateNamedEntity(I,Q)}},E.prototype.stateNumericStart=function(I,Q){return Q>=I.length?-1:(I.charCodeAt(Q)|l)===c.LOWER_X?(this.state=T.NumericHex,this.consumed+=1,this.stateNumericHex(I,Q+1)):(this.state=T.NumericDecimal,this.stateNumericDecimal(I,Q))},E.prototype.addToNumericResult=function(I,Q,M,X){if(Q!==M){var $=M-Q;this.result=this.result*Math.pow(X,$)+parseInt(I.substr(Q,$),X),this.consumed+=$}},E.prototype.stateNumericHex=function(I,Q){for(var M=Q;Q<I.length;){var X=I.charCodeAt(Q);if(m(X)||h(X))Q+=1;else return this.addToNumericResult(I,M,Q,16),this.emitNumericEntity(X,3)}return this.addToNumericResult(I,M,Q,16),-1},E.prototype.stateNumericDecimal=function(I,Q){for(var M=Q;Q<I.length;){var X=I.charCodeAt(Q);if(m(X))Q+=1;else return this.addToNumericResult(I,M,Q,10),this.emitNumericEntity(X,2)}return this.addToNumericResult(I,M,Q,10),-1},E.prototype.emitNumericEntity=function(I,Q){var M;if(this.consumed<=Q)return(M=this.errors)===null||M===void 0||M.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(I===c.SEMI)this.consumed+=1;else if(this.decodeMode===C.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(I!==c.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(I,Q){for(var M=this.decodeTree,X=M[this.treeIndex],$=(X&p.VALUE_LENGTH)>>14;Q<I.length;Q++,this.excess++){var ae=I.charCodeAt(Q);if(this.treeIndex=F(M,X,this.treeIndex+Math.max(1,$),ae),this.treeIndex<0)return this.result===0||this.decodeMode===C.Attribute&&($===0||v(ae))?0:this.emitNotTerminatedNamedEntity();if(X=M[this.treeIndex],$=(X&p.VALUE_LENGTH)>>14,$!==0){if(ae===c.SEMI)return this.emitNamedEntityData(this.treeIndex,$,this.consumed+this.excess);this.decodeMode!==C.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},E.prototype.emitNotTerminatedNamedEntity=function(){var I,Q=this,M=Q.result,X=Q.decodeTree,$=(X[M]&p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(M,$,this.consumed),(I=this.errors)===null||I===void 0||I.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(I,Q,M){var X=this.decodeTree;return this.emitCodePoint(Q===1?X[I]&~p.VALUE_LENGTH:X[I+1],M),Q===3&&this.emitCodePoint(X[I+2],M),M},E.prototype.end=function(){var I;switch(this.state){case T.NamedEntity:return this.result!==0&&(this.decodeMode!==C.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case T.NumericDecimal:return this.emitNumericEntity(0,2);case T.NumericHex:return this.emitNumericEntity(0,3);case T.NumericStart:return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case T.EntityStart:return 0}},E})();e.EntityDecoder=U;function R(E){var I="",Q=new U(E,function(M){return I+=(0,s.fromCodePoint)(M)});return function(X,$){for(var ae=0,te=0;(te=X.indexOf("&",te))>=0;){I+=X.slice(ae,te),Q.startEntity($);var le=Q.write(X,te+1);if(le<0){ae=te+Q.end();break}ae=te+le,te=le===0?ae+1:ae}var Te=I+X.slice(ae);return I="",Te}}function F(E,I,Q,M){var X=(I&p.BRANCH_LENGTH)>>7,$=I&p.JUMP_TABLE;if(X===0)return $!==0&&M===$?Q:-1;if($){var ae=M-$;return ae<0||ae>=X?-1:E[Q+ae]-1}for(var te=Q,le=te+X-1;te<=le;){var Te=te+le>>>1,ye=E[Te];if(ye<M)te=Te+1;else if(ye>M)le=Te-1;else return E[Te+X]}return-1}e.determineBranch=F;var D=R(a.default),P=R(i.default);function J(E,I){return I===void 0&&(I=C.Legacy),D(E,I)}e.decodeHTML=J;function K(E){return D(E,C.Attribute)}e.decodeHTMLAttribute=K;function S(E){return D(E,C.Strict)}e.decodeHTMLStrict=S;function Ae(E){return P(E,C.Strict)}e.decodeXML=Ae})(sn)),sn}var ea={},Mo={},d2;function MT(){if(d2)return Mo;d2=1,Object.defineProperty(Mo,"__esModule",{value:!0});function e(t){for(var A=1;A<t.length;A++)t[A][0]+=t[A-1][0]+1;return t}return Mo.default=new Map(e([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(e([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(e([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(e([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]])),Mo}var Ql={},g2;function Wf(){return g2||(g2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);e.getCodePoint=String.prototype.codePointAt!=null?function(n,a){return n.codePointAt(a)}:function(n,a){return(n.charCodeAt(a)&64512)===55296?(n.charCodeAt(a)-55296)*1024+n.charCodeAt(a+1)-56320+65536:n.charCodeAt(a)};function A(n){for(var a="",i=0,s;(s=e.xmlReplacer.exec(n))!==null;){var u=s.index,c=n.charCodeAt(u),l=t.get(c);l!==void 0?(a+=n.substring(i,u)+l,i=u+1):(a+="".concat(n.substring(i,u),"&#x").concat((0,e.getCodePoint)(n,u).toString(16),";"),i=e.xmlReplacer.lastIndex+=+((c&64512)===55296))}return a+n.substr(i)}e.encodeXML=A,e.escape=A;function r(n,a){return function(s){for(var u,c=0,l="";u=n.exec(s);)c!==u.index&&(l+=s.substring(c,u.index)),l+=a.get(u[0].charCodeAt(0)),c=u.index+1;return l+s.substring(c)}}e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Ql)),Ql}var p2;function b2(){if(p2)return ea;p2=1;var e=ea&&ea.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ea,"__esModule",{value:!0}),ea.encodeNonAsciiHTML=ea.encodeHTML=void 0;var t=e(MT()),A=Wf(),r=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function n(s){return i(r,s)}ea.encodeHTML=n;function a(s){return i(A.xmlReplacer,s)}ea.encodeNonAsciiHTML=a;function i(s,u){for(var c="",l=0,p;(p=s.exec(u))!==null;){var m=p.index;c+=u.substring(l,m);var h=u.charCodeAt(m),w=t.default.get(h);if(typeof w=="object"){if(m+1<u.length){var v=u.charCodeAt(m+1),T=typeof w.n=="number"?w.n===v?w.o:void 0:w.n.get(v);if(T!==void 0){c+=T,l=s.lastIndex+=1;continue}}w=w.v}if(w!==void 0)c+=w,l=m+1;else{var C=(0,A.getCodePoint)(u,m);c+="&#x".concat(C.toString(16),";"),l=s.lastIndex+=+(C!==h)}}return c+u.substr(l)}return ea}var m2;function kT(){return m2||(m2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLAttribute=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.DecodingMode=e.EntityDecoder=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.EntityLevel=void 0;var t=h2(),A=b2(),r=Wf(),n;(function(m){m[m.XML=0]="XML",m[m.HTML=1]="HTML"})(n=e.EntityLevel||(e.EntityLevel={}));var a;(function(m){m[m.UTF8=0]="UTF8",m[m.ASCII=1]="ASCII",m[m.Extensive=2]="Extensive",m[m.Attribute=3]="Attribute",m[m.Text=4]="Text"})(a=e.EncodingMode||(e.EncodingMode={}));function i(m,h){h===void 0&&(h=n.XML);var w=typeof h=="number"?h:h.level;if(w===n.HTML){var v=typeof h=="object"?h.mode:void 0;return(0,t.decodeHTML)(m,v)}return(0,t.decodeXML)(m)}e.decode=i;function s(m,h){var w;h===void 0&&(h=n.XML);var v=typeof h=="number"?{level:h}:h;return(w=v.mode)!==null&&w!==void 0||(v.mode=t.DecodingMode.Strict),i(m,v)}e.decodeStrict=s;function u(m,h){h===void 0&&(h=n.XML);var w=typeof h=="number"?{level:h}:h;return w.mode===a.UTF8?(0,r.escapeUTF8)(m):w.mode===a.Attribute?(0,r.escapeAttribute)(m):w.mode===a.Text?(0,r.escapeText)(m):w.level===n.HTML?w.mode===a.ASCII?(0,A.encodeNonAsciiHTML)(m):(0,A.encodeHTML)(m):(0,r.encodeXML)(m)}e.encode=u;var c=Wf();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var l=b2();Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var p=h2();Object.defineProperty(e,"EntityDecoder",{enumerable:!0,get:function(){return p.EntityDecoder}}),Object.defineProperty(e,"DecodingMode",{enumerable:!0,get:function(){return p.DecodingMode}}),Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return p.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTMLAttribute",{enumerable:!0,get:function(){return p.decodeHTMLAttribute}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return p.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return p.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return p.decodeXML}})})(Ul)),Ul}var ko={},B2;function KT(){return B2||(B2=1,ko.romanize=function(e){if(isNaN(e))return NaN;for(var t=String(+e).split(""),A=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",n=3;n--;)r=(A[+t.pop()+n*10]||"")+r;return Array(+t.join("")+1).join("M")+r},ko.alphanumeric=function(e){for(var t="",A;e>0;)A=(e-1)%26,t=String.fromCharCode(65+A)+t,e=(e-A)/26|0;return t||void 0}),ko}var Ol,E2;function qT(){if(E2)return Ol;E2=1;const e=r=>{let n="";do n=(Math.random()+1).toString(36).substring(2);while(r.indexOf(n)!==-1);return n},t=(r,n)=>{let a=/([a-z\-]+)\s*\(\s*([^\(\)]*?)\s*(?:,\s*([^\(\)]*?)\s*)?\s*\)/i,i=[],s,u=e(n);for(;(s=a.exec(n))!==null;){let l=`${i.length}`;if(s[1].toLowerCase()=="var"){const m=A(r,s[2]);if(m){n=n.replace(s[0],m);continue}if(s[3]){n=n.replace(s[0],s[3]);continue}}let p=`${u}${l.padStart(5,"-")}`;n=n.replace(s[0],p),i.push({placeholder:p,replace:s[0]})}for(var c=i.length-1;c>=0;c--){const l=i[c];n=n.replace(l.placeholder,l.replace)}return n},A=(r,n)=>{for(;r;){if(r.styleProps&&n in r.styleProps)return r.styleProps[n].value;var r=r.pseudoElementParent||r.parent}};return Ol={replaceVariables:t,findVariableValue:A},Ol}var Dl,w2;function jT(){if(w2)return Dl;w2=1;var{decode:e}=kT(),t=ud(),A=KT(),r=qT();return Dl=function(a){a.ignoredPseudos=["hover","active","focus","visited","link"],a.widthElements=["TABLE","TD","TH","IMG"],a.heightElements=["TABLE","TD","TH","IMG"],a.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],a.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],a.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},a.excludedProperties=[],a.juiceDocument=h,a.inlineDocument=i;function i(T,C,U){U=U||{};var R=t.parseCSS(C),F=[],D="style",P={};if(U.styleAttributeName&&(D=U.styleAttributeName),R.forEach(S),F.forEach(Ae),U.inlinePseudoElements&&F.forEach(E),U.applyWidthAttributes&&F.forEach(function(X){I(X,"width")}),U.applyHeightAttributes&&F.forEach(function(X){I(X,"height")}),U.applyAttributesTableElements&&F.forEach(M),U.insertPreservedExtraCss&&U.extraCss){var J=t.getPreservedText(U.extraCss,{mediaQueries:U.preserveMediaQueries,fontFaces:U.preserveFontFaces,keyFrames:U.preserveKeyFrames});if(J){var K=null;U.insertPreservedExtraCss!==!0?K=T(U.insertPreservedExtraCss):(K=T("head"),K.length||(K=T("body")),K.length||(K=T.root())),K.first().append("<style>"+J+"</style>")}}function S(X){var $=X[0],ae=X[1],te=new t.Selector($),le=te.parsed();if(le){for(var Te=l(le),ye=0;ye<le.length;++ye){var _=le[ye];if(_.pseudos)for(var G=0;G<_.pseudos.length;++G){var z=_.pseudos[G];if(a.ignoredPseudos.indexOf(z.name)>=0)return}}if(Te){var re=le[le.length-1],se=re.pseudos;re.pseudos=m(re.pseudos),$=le.toString(),re.pseudos=se}var fe;try{fe=T($)}catch{return}fe.each(function(){var ge=this;if(ge.name&&a.nonVisualElements.indexOf(ge.name.toUpperCase())>=0)return;if(ge.counterProps||(ge.counterProps=ge.parent&&ge.parent.counterProps?Object.create(ge.parent.counterProps):{}),Te){var Ee="pseudo"+Te,Ce=ge[Ee];Ce||(Ce=ge[Ee]=T("<span />").get(0),Ce.pseudoElementType=Te,Ce.pseudoElementParent=ge,Ce.counterProps=ge.counterProps,ge[Ee]=Ce),ge=Ce}if(!ge.styleProps){if(ge.styleProps={},T(ge).attr(D)){var _e=T(ge).attr(D),qe=U.decodeStyleAttributes?e(_e):_e,Ke="* { "+qe+" } ";Me(t.parseCSS(Ke)[0][1],new t.Selector("<style>",!0))}F.push(ge)}function Je(it,$e){for(var Be=$e.split(/\s+/),Pe=0;Pe<Be.length;Pe++){var He=Be[Pe],Ve=parseInt(Be[Pe+1],10);isNaN(Ve)?it.counterProps[He]=P[He]=0:it.counterProps[He]=P[Be[Pe++]]=Ve}}function q(it,$e){for(var Be=$e.split(/\s+/),Pe=0;Pe<Be.length;Pe++){var He=Be[Pe];if(it.counterProps[He]!==void 0){var Ve=parseInt(Be[Pe+1],10);isNaN(Ve)?it.counterProps[He]=P[He]+=1:it.counterProps[He]=P[Be[Pe++]]+=Ve}}}function Me(it,$e){for(var Be=0,Pe=it.length;Be<Pe;Be++)if(it[Be].type=="property"){var He=it[Be].name,Ve=it[Be].value;He==="counter-reset"&&Je(ge,Ve),He==="counter-increment"&&q(ge,Ve);var rt=Ve.match(/!important$/)!==null;rt&&!U.preserveImportant&&(Ve=s(Ve));var Ot=[it[Be].position.start.line,it[Be].position.start.col],Et=new t.Property(He,Ve,$e,rt?2:0,Ot),ut=ge.styleProps[He];a.excludedProperties.indexOf(He)<0&&(ut&&ut.compare(Et)===Et||!ut)&&(ut&&ut.selector!==$e?delete ge.styleProps[He]:ut&&(Et.nextProp=ut),ge.styleProps[He]=Et)}}Me(ae,te)})}}function Ae(X){Object.keys(X.styleProps).length;var $=[];Object.keys(X.styleProps).forEach(function(te){for(var le=X.styleProps[te];typeof le<"u";)$.push(le),le=le.nextProp}),$.sort(function(te,le){return te.compareFunc(le)});var ae=$.filter(function(te){return U.resolveCSSVariables&&te.prop.indexOf("--")===0?!1:te.prop!=="content"}).map(function(te){return U.resolveCSSVariables&&(te.value=r.replaceVariables(X,te.value)),te.prop+": "+te.value.replace(/["]/g,"'")+";"}).join(" ");ae&&T(X).attr(D,ae)}function E(X){if(X.pseudoElementType&&X.styleProps.content){var $=c(X);$.img?(X.name="img",T(X).attr("src",$.img)):T(X).text($);var ae=X.pseudoElementParent;X.pseudoElementType==="before"?T(ae).prepend(X):T(ae).append(X)}}function I(X,$){if(X.name){var ae=X.name.toUpperCase();if(a[$+"Elements"].indexOf(ae)>-1){for(var te in X.styleProps)if(X.styleProps[te].prop===$){var le=X.styleProps[te].value;if(U.preserveImportant&&(le=s(le)),le.match(/(px|auto)/)){var Te=le.replace("px","");T(X).attr($,Te);return}if(a.tableElements.indexOf(ae)>-1&&le.match(/\%/)){T(X).attr($,le);return}}}}}function Q(X){return X.indexOf("url(")!==0?X:X.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}function M(X){if(X.name){var $=X.name.toUpperCase(),ae=Object.keys(a.styleToAttribute);if(a.tableElements.indexOf($)>-1){for(var te in X.styleProps)if(ae.indexOf(X.styleProps[te].prop)>-1){var le=a.styleToAttribute[X.styleProps[te].prop],Te=X.styleProps[te].value;if(U.preserveImportant&&(Te=s(Te)),le==="background"&&(Te=Q(Te)),/(linear|radial)-gradient\(/i.test(Te))continue;T(X).attr(le,Te)}}}}}function s(T){return T.replace(/\s*!important$/,"")}function u(T,C){switch(C){case"lower-roman":return A.romanize(T).toLowerCase();case"upper-roman":return A.romanize(T);case"lower-latin":case"lower-alpha":return A.alphanumeric(T).toLowerCase();case"upper-latin":case"upper-alpha":return A.alphanumeric(T);default:return T.toString()}}function c(T){var C=T.styleProps.content.value;if(C==="none"||C==="normal")return"";var U=C.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(U){var R=U[1].replace(/^['"]|['"]$/g,"");return{img:R}}for(var F=[],D=C.split(/['"]/),P=0;P<D.length;P++)if(D[P]!==""){var J=D[P].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(J){var K=r.findVariableValue(T,J[1])||J[2];F.push(K.replace(/^['"]|['"]$/g,""));continue}var S=D[P].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);if(S&&S[1]in T.counterProps){var Ae=T.counterProps[S[1]];F.push(u(Ae,S[3]));continue}var E=D[P].match(/attr\s*\(\s*(.*?)\s*\)/i);if(E){var I=E[1];F.push(T.pseudoElementParent?T.pseudoElementParent.attribs[I]:T.attribs[I]);continue}F.push(D[P])}return C=F.join(""),C=C.replace(/\\/g,""),C}function l(T){if(T.length!==0){var C=T[T.length-1].pseudos;if(C){for(var U=0;U<C.length;U++)if(p(C[U]))return C[U].name}}}function p(T){return T.name==="before"||T.name==="after"}function m(T){return T.filter(function(C){return!p(C)})}function h(T,C){C=t.getDefaultOptions(C);var U=v(T,C);return U+=`
`+C.extraCss,i(T,U,C),T}function w(T,C){var U=[],R=T("style"),F,D,P;return R.each(function(){if(P=this,F=P.childNodes,F.length!==1){C.removeStyleTags&&T(P).remove();return}if(D=F[0].data,C.applyStyleTags&&T(P).attr("data-embed")===void 0&&U.push(D),C.removeStyleTags&&T(P).attr("data-embed")===void 0){var J=P.childNodes[0].nodeValue,K=t.getPreservedText(J,{mediaQueries:C.preserveMediaQueries,fontFaces:C.preserveFontFaces,keyFrames:C.preserveKeyFrames,pseudos:C.preservePseudos},a.ignoredPseudos);K?P.childNodes[0].nodeValue=K:T(P).remove()}T(P).removeAttr("data-embed")}),U}function v(T,C){var U=w(T,C),R=U.join(`
`);return R}return a},Dl}var Rl,C2;function VT(){if(C2)return Rl;C2=1;var e=RT(),t=jT(),A=t(function(n,a){return e(n,{xmlMode:a&&a.xmlMode},r,[a])}),r=function(n,a){return A.juiceDocument(n,a)};return A.inlineContent=function(n,a,i){return e(n,{xmlMode:i&&i.xmlMode},A.inlineDocument,[a,i])},A.codeBlocks=e.codeBlocks,Rl=A,Rl}var GT=VT();const Xf=Pp(GT);var hn=Uint8Array,Sr=Uint16Array,od=Int32Array,cd=new hn([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]),ld=new hn([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]),v2=new hn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Hm=function(e,t){for(var A=new Sr(31),r=0;r<31;++r)A[r]=t+=1<<e[r-1];for(var n=new od(A[30]),r=1;r<30;++r)for(var a=A[r];a<A[r+1];++a)n[a]=a-A[r]<<5|r;return{b:A,r:n}},Pm=Hm(cd,2),YT=Pm.b,zf=Pm.r;YT[28]=258,zf[258]=28;var WT=Hm(ld,0),T2=WT.r,Jf=new Sr(32768);for(var iA=0;iA<32768;++iA){var La=(iA&43690)>>1|(iA&21845)<<1;La=(La&52428)>>2|(La&13107)<<2,La=(La&61680)>>4|(La&3855)<<4,Jf[iA]=((La&65280)>>8|(La&255)<<8)>>1}var Eu=(function(e,t,A){for(var r=e.length,n=0,a=new Sr(t);n<r;++n)e[n]&&++a[e[n]-1];var i=new Sr(t);for(n=1;n<t;++n)i[n]=i[n-1]+a[n-1]<<1;var s;if(A){s=new Sr(1<<t);var u=15-t;for(n=0;n<r;++n)if(e[n])for(var c=n<<4|e[n],l=t-e[n],p=i[e[n]-1]++<<l,m=p|(1<<l)-1;p<=m;++p)s[Jf[p]>>u]=c}else for(s=new Sr(r),n=0;n<r;++n)e[n]&&(s[n]=Jf[i[e[n]-1]++]>>15-e[n]);return s}),yi=new hn(288);for(var iA=0;iA<144;++iA)yi[iA]=8;for(var iA=144;iA<256;++iA)yi[iA]=9;for(var iA=256;iA<280;++iA)yi[iA]=7;for(var iA=280;iA<288;++iA)yi[iA]=8;var Gc=new hn(32);for(var iA=0;iA<32;++iA)Gc[iA]=5;var XT=Eu(yi,9,0),zT=Eu(Gc,5,0),Mm=function(e){return(e+7)/8|0},JT=function(e,t,A){return(A==null||A>e.length)&&(A=e.length),new hn(e.subarray(t,A))},ta=function(e,t,A){A<<=t&7;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8},$s=function(e,t,A){A<<=t&7;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8,e[r+2]|=A>>16},Hl=function(e,t){for(var A=[],r=0;r<e.length;++r)e[r]&&A.push({s:r,f:e[r]});var n=A.length,a=A.slice();if(!n)return{t:Km,l:0};if(n==1){var i=new hn(A[0].s+1);return i[A[0].s]=1,{t:i,l:1}}A.sort(function(D,P){return D.f-P.f}),A.push({s:-1,f:25001});var s=A[0],u=A[1],c=0,l=1,p=2;for(A[0]={s:-1,f:s.f+u.f,l:s,r:u};l!=n-1;)s=A[A[c].f<A[p].f?c++:p++],u=A[c!=l&&A[c].f<A[p].f?c++:p++],A[l++]={s:-1,f:s.f+u.f,l:s,r:u};for(var m=a[0].s,r=1;r<n;++r)a[r].s>m&&(m=a[r].s);var h=new Sr(m+1),w=Zf(A[l-1],h,0);if(w>t){var r=0,v=0,T=w-t,C=1<<T;for(a.sort(function(P,J){return h[J.s]-h[P.s]||P.f-J.f});r<n;++r){var U=a[r].s;if(h[U]>t)v+=C-(1<<w-h[U]),h[U]=t;else break}for(v>>=T;v>0;){var R=a[r].s;h[R]<t?v-=1<<t-h[R]++-1:++r}for(;r>=0&&v;--r){var F=a[r].s;h[F]==t&&(--h[F],++v)}w=t}return{t:new hn(h),l:w}},Zf=function(e,t,A){return e.s==-1?Math.max(Zf(e.l,t,A+1),Zf(e.r,t,A+1)):t[e.s]=A},y2=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new Sr(++t),r=0,n=e[0],a=1,i=function(u){A[r++]=u},s=1;s<=t;++s)if(e[s]==n&&s!=t)++a;else{if(!n&&a>2){for(;a>138;a-=138)i(32754);a>2&&(i(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(i(n),--a;a>6;a-=6)i(8304);a>2&&(i(a-3<<5|8208),a=0)}for(;a--;)i(n);a=1,n=e[s]}return{c:A.subarray(0,r),n:t}},eu=function(e,t){for(var A=0,r=0;r<t.length;++r)A+=e[r]*t[r];return A},km=function(e,t,A){var r=A.length,n=Mm(t+2);e[n]=r&255,e[n+1]=r>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var a=0;a<r;++a)e[n+a+4]=A[a];return(n+4+r)*8},x2=function(e,t,A,r,n,a,i,s,u,c,l){ta(t,l++,A),++n[256];for(var p=Hl(n,15),m=p.t,h=p.l,w=Hl(a,15),v=w.t,T=w.l,C=y2(m),U=C.c,R=C.n,F=y2(v),D=F.c,P=F.n,J=new Sr(19),K=0;K<U.length;++K)++J[U[K]&31];for(var K=0;K<D.length;++K)++J[D[K]&31];for(var S=Hl(J,7),Ae=S.t,E=S.l,I=19;I>4&&!Ae[v2[I-1]];--I);var Q=c+5<<3,M=eu(n,yi)+eu(a,Gc)+i,X=eu(n,m)+eu(a,v)+i+14+3*I+eu(J,Ae)+2*J[16]+3*J[17]+7*J[18];if(u>=0&&Q<=M&&Q<=X)return km(t,l,e.subarray(u,u+c));var $,ae,te,le;if(ta(t,l,1+(X<M)),l+=2,X<M){$=Eu(m,h,0),ae=m,te=Eu(v,T,0),le=v;var Te=Eu(Ae,E,0);ta(t,l,R-257),ta(t,l+5,P-1),ta(t,l+10,I-4),l+=14;for(var K=0;K<I;++K)ta(t,l+3*K,Ae[v2[K]]);l+=3*I;for(var ye=[U,D],_=0;_<2;++_)for(var G=ye[_],K=0;K<G.length;++K){var z=G[K]&31;ta(t,l,Te[z]),l+=Ae[z],z>15&&(ta(t,l,G[K]>>5&127),l+=G[K]>>12)}}else $=XT,ae=yi,te=zT,le=Gc;for(var K=0;K<s;++K){var re=r[K];if(re>255){var z=re>>18&31;$s(t,l,$[z+257]),l+=ae[z+257],z>7&&(ta(t,l,re>>23&31),l+=cd[z]);var se=re&31;$s(t,l,te[se]),l+=le[se],se>3&&($s(t,l,re>>5&8191),l+=ld[se])}else $s(t,l,$[re]),l+=ae[re]}return $s(t,l,$[256]),l+ae[256]},ZT=new od([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Km=new hn(0),$T=function(e,t,A,r,n,a){var i=a.z||e.length,s=new hn(r+i+5*(1+Math.ceil(i/7e3))+n),u=s.subarray(r,s.length-n),c=a.l,l=(a.r||0)&7;if(t){l&&(u[0]=a.r>>3);for(var p=ZT[t-1],m=p>>13,h=p&8191,w=(1<<A)-1,v=a.p||new Sr(32768),T=a.h||new Sr(w+1),C=Math.ceil(A/3),U=2*C,R=function(Je){return(e[Je]^e[Je+1]<<C^e[Je+2]<<U)&w},F=new od(25e3),D=new Sr(288),P=new Sr(32),J=0,K=0,S=a.i||0,Ae=0,E=a.w||0,I=0;S+2<i;++S){var Q=R(S),M=S&32767,X=T[Q];if(v[M]=X,T[Q]=M,E<=S){var $=i-S;if((J>7e3||Ae>24576)&&($>423||!c)){l=x2(e,u,0,F,D,P,K,Ae,I,S-I,l),Ae=J=K=0,I=S;for(var ae=0;ae<286;++ae)D[ae]=0;for(var ae=0;ae<30;++ae)P[ae]=0}var te=2,le=0,Te=h,ye=M-X&32767;if($>2&&Q==R(S-ye))for(var _=Math.min(m,$)-1,G=Math.min(32767,S),z=Math.min(258,$);ye<=G&&--Te&&M!=X;){if(e[S+te]==e[S+te-ye]){for(var re=0;re<z&&e[S+re]==e[S+re-ye];++re);if(re>te){if(te=re,le=ye,re>_)break;for(var se=Math.min(ye,re-2),fe=0,ae=0;ae<se;++ae){var ge=S-ye+ae&32767,Ee=v[ge],Ce=ge-Ee&32767;Ce>fe&&(fe=Ce,X=ge)}}}M=X,X=v[M],ye+=M-X&32767}if(le){F[Ae++]=268435456|zf[te]<<18|T2[le];var _e=zf[te]&31,qe=T2[le]&31;K+=cd[_e]+ld[qe],++D[257+_e],++P[qe],E=S+te,++J}else F[Ae++]=e[S],++D[e[S]]}}for(S=Math.max(S,E);S<i;++S)F[Ae++]=e[S],++D[e[S]];l=x2(e,u,c,F,D,P,K,Ae,I,S-I,l),c||(a.r=l&7|u[l/8|0]<<3,l-=7,a.h=T,a.p=v,a.i=S,a.w=E)}else{for(var S=a.w||0;S<i+c;S+=65535){var Ke=S+65535;Ke>=i&&(u[l/8|0]=c,Ke=i),l=km(u,l+1,e.subarray(S,Ke))}a.i=i}return JT(s,0,r+Mm(l)+n)},qm=function(){var e=1,t=0;return{p:function(A){for(var r=e,n=t,a=A.length|0,i=0;i!=a;){for(var s=Math.min(i+2655,a);i<s;++i)n+=r+=A[i];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}e=r,t=n},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},ey=function(e,t,A,r,n){if(!n&&(n={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),i=new hn(a.length+e.length);i.set(a),i.set(e,a.length),e=i,n.w=a.length}return $T(e,t.level==null?6:t.level,t.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,A,r,n)},jm=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},ty=function(e,t){var A=t.level,r=A==0?0:A<6?1:A==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var n=qm();n.p(t.dictionary),jm(e,2,n.d())}};function $f(e,t){t||(t={});var A=qm();A.p(e);var r=ey(e,t,t.dictionary?6:2,4);return ty(r,t),jm(r,r.length-4,A.d()),r}var Ay=typeof TextDecoder<"u"&&new TextDecoder,ry=0;try{Ay.decode(Km,{stream:!0}),ry=1}catch{}function I2(e,t="utf8"){return new TextDecoder(t).decode(e)}const ny=new TextEncoder;function ay(e){return ny.encode(e)}const iy=1024*8,sy=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Pl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class fd{constructor(t=iy,A={}){Yt(this,"buffer");Yt(this,"byteLength");Yt(this,"byteOffset");Yt(this,"length");Yt(this,"offset");Yt(this,"lastWrittenByte");Yt(this,"littleEndian");Yt(this,"_data");Yt(this,"_mark");Yt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const n=A.offset?A.offset>>>0:0,a=t.byteLength-n;let i=n;(ArrayBuffer.isView(t)||t instanceof fd)&&(t.byteLength!==t.buffer.byteLength&&(i=t.byteOffset+n),t=t.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=i,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,i,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,A){const r=Pl[A].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,a=this.buffer.slice(n,n+r);if(this.littleEndian===sy&&A!=="uint8"&&A!=="int8"){const s=new Uint8Array(this.buffer.slice(n,n+r));s.reverse();const u=new Pl[A](s.buffer);return this.offset+=r,u.reverse(),u}const i=new Pl[A](a);return this.offset+=r,i}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let A="";for(let r=0;r<t;r++)A+=this.readChar();return A}readUtf8(t=1){return I2(this.readBytes(t))}decodeText(t=1,A="utf8"){return I2(this.readBytes(t),A)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let A=0;A<t.length;A++)this._data.setUint8(this.offset++,t[A]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let A=0;A<t.length;A++)this.writeUint8(t.charCodeAt(A));return this}writeUtf8(t){return this.writeBytes(ay(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Es(e){let t=e.length;for(;--t>=0;)e[t]=0}const uy=3,oy=258,Vm=29,cy=256,ly=cy+1+Vm,Gm=30,fy=512,hy=new Array((ly+2)*2);Es(hy);const dy=new Array(Gm*2);Es(dy);const gy=new Array(fy);Es(gy);const py=new Array(oy-uy+1);Es(py);const by=new Array(Vm);Es(by);const my=new Array(Gm);Es(my);const By=(e,t,A,r)=>{let n=e&65535|0,a=e>>>16&65535|0,i=0;for(;A!==0;){i=A>2e3?2e3:A,A-=i;do n=n+t[r++]|0,a=a+n|0;while(--i);n%=65521,a%=65521}return n|a<<16|0};var eh=By;const Ey=()=>{let e,t=[];for(var A=0;A<256;A++){e=A;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[A]=e}return t},wy=new Uint32Array(Ey()),Cy=(e,t,A,r)=>{const n=wy,a=r+A;e^=-1;for(let i=r;i<a;i++)e=e>>>8^n[(e^t[i])&255];return e^-1};var In=Cy,th={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"},Ym={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const vy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ty=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const A=t.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(const r in A)vy(A,r)&&(e[r]=A[r])}}return e},yy=e=>{let t=0;for(let r=0,n=e.length;r<n;r++)t+=e[r].length;const A=new Uint8Array(t);for(let r=0,n=0,a=e.length;r<a;r++){let i=e[r];A.set(i,n),n+=i.length}return A},Wm={assign:Ty,flattenChunks:yy};let Xm=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Xm=!1}const Ou=new Uint8Array(256);for(let e=0;e<256;e++)Ou[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ou[254]=Ou[254]=1;var xy=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,A,r,n,a,i=e.length,s=0;for(n=0;n<i;n++)A=e.charCodeAt(n),(A&64512)===55296&&n+1<i&&(r=e.charCodeAt(n+1),(r&64512)===56320&&(A=65536+(A-55296<<10)+(r-56320),n++)),s+=A<128?1:A<2048?2:A<65536?3:4;for(t=new Uint8Array(s),a=0,n=0;a<s;n++)A=e.charCodeAt(n),(A&64512)===55296&&n+1<i&&(r=e.charCodeAt(n+1),(r&64512)===56320&&(A=65536+(A-55296<<10)+(r-56320),n++)),A<128?t[a++]=A:A<2048?(t[a++]=192|A>>>6,t[a++]=128|A&63):A<65536?(t[a++]=224|A>>>12,t[a++]=128|A>>>6&63,t[a++]=128|A&63):(t[a++]=240|A>>>18,t[a++]=128|A>>>12&63,t[a++]=128|A>>>6&63,t[a++]=128|A&63);return t};const Iy=(e,t)=>{if(t<65534&&e.subarray&&Xm)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let A="";for(let r=0;r<t;r++)A+=String.fromCharCode(e[r]);return A};var Fy=(e,t)=>{const A=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const a=new Array(A*2);for(n=0,r=0;r<A;){let i=e[r++];if(i<128){a[n++]=i;continue}let s=Ou[i];if(s>4){a[n++]=65533,r+=s-1;continue}for(i&=s===2?31:s===3?15:7;s>1&&r<A;)i=i<<6|e[r++]&63,s--;if(s>1){a[n++]=65533;continue}i<65536?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|i&1023)}return Iy(a,n)},Ly=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let A=t-1;for(;A>=0&&(e[A]&192)===128;)A--;return A<0||A===0?t:A+Ou[e[A]]>t?A:t},Ah={string2buf:xy,buf2string:Fy,utf8border:Ly};function _y(){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}var Ny=_y;const Ko=16209,Uy=16191;var Sy=function(t,A){let r,n,a,i,s,u,c,l,p,m,h,w,v,T,C,U,R,F,D,P,J,K,S,Ae;const E=t.state;r=t.next_in,S=t.input,n=r+(t.avail_in-5),a=t.next_out,Ae=t.output,i=a-(A-t.avail_out),s=a+(t.avail_out-257),u=E.dmax,c=E.wsize,l=E.whave,p=E.wnext,m=E.window,h=E.hold,w=E.bits,v=E.lencode,T=E.distcode,C=(1<<E.lenbits)-1,U=(1<<E.distbits)-1;e:do{w<15&&(h+=S[r++]<<w,w+=8,h+=S[r++]<<w,w+=8),R=v[h&C];t:for(;;){if(F=R>>>24,h>>>=F,w-=F,F=R>>>16&255,F===0)Ae[a++]=R&65535;else if(F&16){D=R&65535,F&=15,F&&(w<F&&(h+=S[r++]<<w,w+=8),D+=h&(1<<F)-1,h>>>=F,w-=F),w<15&&(h+=S[r++]<<w,w+=8,h+=S[r++]<<w,w+=8),R=T[h&U];A:for(;;){if(F=R>>>24,h>>>=F,w-=F,F=R>>>16&255,F&16){if(P=R&65535,F&=15,w<F&&(h+=S[r++]<<w,w+=8,w<F&&(h+=S[r++]<<w,w+=8)),P+=h&(1<<F)-1,P>u){t.msg="invalid distance too far back",E.mode=Ko;break e}if(h>>>=F,w-=F,F=a-i,P>F){if(F=P-F,F>l&&E.sane){t.msg="invalid distance too far back",E.mode=Ko;break e}if(J=0,K=m,p===0){if(J+=c-F,F<D){D-=F;do Ae[a++]=m[J++];while(--F);J=a-P,K=Ae}}else if(p<F){if(J+=c+p-F,F-=p,F<D){D-=F;do Ae[a++]=m[J++];while(--F);if(J=0,p<D){F=p,D-=F;do Ae[a++]=m[J++];while(--F);J=a-P,K=Ae}}}else if(J+=p-F,F<D){D-=F;do Ae[a++]=m[J++];while(--F);J=a-P,K=Ae}for(;D>2;)Ae[a++]=K[J++],Ae[a++]=K[J++],Ae[a++]=K[J++],D-=3;D&&(Ae[a++]=K[J++],D>1&&(Ae[a++]=K[J++]))}else{J=a-P;do Ae[a++]=Ae[J++],Ae[a++]=Ae[J++],Ae[a++]=Ae[J++],D-=3;while(D>2);D&&(Ae[a++]=Ae[J++],D>1&&(Ae[a++]=Ae[J++]))}}else if((F&64)===0){R=T[(R&65535)+(h&(1<<F)-1)];continue A}else{t.msg="invalid distance code",E.mode=Ko;break e}break}}else if((F&64)===0){R=v[(R&65535)+(h&(1<<F)-1)];continue t}else if(F&32){E.mode=Uy;break e}else{t.msg="invalid literal/length code",E.mode=Ko;break e}break}}while(r<n&&a<s);D=w>>3,r-=D,w-=D<<3,h&=(1<<w)-1,t.next_in=r,t.next_out=a,t.avail_in=r<n?5+(n-r):5-(r-n),t.avail_out=a<s?257+(s-a):257-(a-s),E.hold=h,E.bits=w};const Yi=15,F2=852,L2=592,_2=0,Ml=1,N2=2,Qy=new Uint16Array([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]),Oy=new Uint8Array([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]),Dy=new Uint16Array([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]),Ry=new Uint8Array([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]),Hy=(e,t,A,r,n,a,i,s)=>{const u=s.bits;let c=0,l=0,p=0,m=0,h=0,w=0,v=0,T=0,C=0,U=0,R,F,D,P,J,K=null,S;const Ae=new Uint16Array(Yi+1),E=new Uint16Array(Yi+1);let I=null,Q,M,X;for(c=0;c<=Yi;c++)Ae[c]=0;for(l=0;l<r;l++)Ae[t[A+l]]++;for(h=u,m=Yi;m>=1&&Ae[m]===0;m--);if(h>m&&(h=m),m===0)return n[a++]=1<<24|64<<16|0,n[a++]=1<<24|64<<16|0,s.bits=1,0;for(p=1;p<m&&Ae[p]===0;p++);for(h<p&&(h=p),T=1,c=1;c<=Yi;c++)if(T<<=1,T-=Ae[c],T<0)return-1;if(T>0&&(e===_2||m!==1))return-1;for(E[1]=0,c=1;c<Yi;c++)E[c+1]=E[c]+Ae[c];for(l=0;l<r;l++)t[A+l]!==0&&(i[E[t[A+l]]++]=l);if(e===_2?(K=I=i,S=20):e===Ml?(K=Qy,I=Oy,S=257):(K=Dy,I=Ry,S=0),U=0,l=0,c=p,J=a,w=h,v=0,D=-1,C=1<<h,P=C-1,e===Ml&&C>F2||e===N2&&C>L2)return 1;for(;;){Q=c-v,i[l]+1<S?(M=0,X=i[l]):i[l]>=S?(M=I[i[l]-S],X=K[i[l]-S]):(M=96,X=0),R=1<<c-v,F=1<<w,p=F;do F-=R,n[J+(U>>v)+F]=Q<<24|M<<16|X|0;while(F!==0);for(R=1<<c-1;U&R;)R>>=1;if(R!==0?(U&=R-1,U+=R):U=0,l++,--Ae[c]===0){if(c===m)break;c=t[A+i[l]]}if(c>h&&(U&P)!==D){for(v===0&&(v=h),J+=p,w=c-v,T=1<<w;w+v<m&&(T-=Ae[w+v],!(T<=0));)w++,T<<=1;if(C+=1<<w,e===Ml&&C>F2||e===N2&&C>L2)return 1;D=U&P,n[D]=h<<24|w<<16|J-a|0}}return U!==0&&(n[J+U]=c-v<<24|64<<16|0),s.bits=h,0};var wu=Hy;const Py=0,zm=1,Jm=2,{Z_FINISH:U2,Z_BLOCK:My,Z_TREES:qo,Z_OK:xi,Z_STREAM_END:ky,Z_NEED_DICT:Ky,Z_STREAM_ERROR:Jr,Z_DATA_ERROR:Zm,Z_MEM_ERROR:$m,Z_BUF_ERROR:qy,Z_DEFLATED:S2}=Ym,m0=16180,Q2=16181,O2=16182,D2=16183,R2=16184,H2=16185,P2=16186,M2=16187,k2=16188,K2=16189,Yc=16190,Aa=16191,kl=16192,q2=16193,Kl=16194,j2=16195,V2=16196,G2=16197,Y2=16198,jo=16199,Vo=16200,W2=16201,X2=16202,z2=16203,J2=16204,Z2=16205,ql=16206,$2=16207,eg=16208,uA=16209,e5=16210,t5=16211,jy=852,Vy=592,Gy=15,Yy=Gy,tg=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Wy(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const _i=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<m0||t.mode>t5?1:0},A5=e=>{if(_i(e))return Jr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=m0,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(jy),t.distcode=t.distdyn=new Int32Array(Vy),t.sane=1,t.back=-1,xi},r5=e=>{if(_i(e))return Jr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,A5(e)},n5=(e,t)=>{let A;if(_i(e))return Jr;const r=e.state;return t<0?(A=0,t=-t):(A=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Jr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=A,r.wbits=t,r5(e))},a5=(e,t)=>{if(!e)return Jr;const A=new Wy;e.state=A,A.strm=e,A.window=null,A.mode=m0;const r=n5(e,t);return r!==xi&&(e.state=null),r},Xy=e=>a5(e,Yy);let Ag=!0,jl,Vl;const zy=e=>{if(Ag){jl=new Int32Array(512),Vl=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(wu(zm,e.lens,0,288,jl,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;wu(Jm,e.lens,0,32,Vl,0,e.work,{bits:5}),Ag=!1}e.lencode=jl,e.lenbits=9,e.distcode=Vl,e.distbits=5},i5=(e,t,A,r)=>{let n;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(A-a.wsize,A),0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>r&&(n=r),a.window.set(t.subarray(A-r,A-r+n),a.wnext),r-=n,r?(a.window.set(t.subarray(A-r,A),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0},Jy=(e,t)=>{let A,r,n,a,i,s,u,c,l,p,m,h,w,v,T=0,C,U,R,F,D,P,J,K;const S=new Uint8Array(4);let Ae,E;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_i(e)||!e.output||!e.input&&e.avail_in!==0)return Jr;A=e.state,A.mode===Aa&&(A.mode=kl),i=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=A.hold,l=A.bits,p=s,m=u,K=xi;e:for(;;)switch(A.mode){case m0:if(A.wrap===0){A.mode=kl;break}for(;l<16;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(A.wrap&2&&c===35615){A.wbits===0&&(A.wbits=15),A.check=0,S[0]=c&255,S[1]=c>>>8&255,A.check=In(A.check,S,2,0),c=0,l=0,A.mode=Q2;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",A.mode=uA;break}if((c&15)!==S2){e.msg="unknown compression method",A.mode=uA;break}if(c>>>=4,l-=4,J=(c&15)+8,A.wbits===0&&(A.wbits=J),J>15||J>A.wbits){e.msg="invalid window size",A.mode=uA;break}A.dmax=1<<A.wbits,A.flags=0,e.adler=A.check=1,A.mode=c&512?K2:Aa,c=0,l=0;break;case Q2:for(;l<16;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(A.flags=c,(A.flags&255)!==S2){e.msg="unknown compression method",A.mode=uA;break}if(A.flags&57344){e.msg="unknown header flags set",A.mode=uA;break}A.head&&(A.head.text=c>>8&1),A.flags&512&&A.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,A.check=In(A.check,S,2,0)),c=0,l=0,A.mode=O2;case O2:for(;l<32;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}A.head&&(A.head.time=c),A.flags&512&&A.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,A.check=In(A.check,S,4,0)),c=0,l=0,A.mode=D2;case D2:for(;l<16;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}A.head&&(A.head.xflags=c&255,A.head.os=c>>8),A.flags&512&&A.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,A.check=In(A.check,S,2,0)),c=0,l=0,A.mode=R2;case R2:if(A.flags&1024){for(;l<16;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}A.length=c,A.head&&(A.head.extra_len=c),A.flags&512&&A.wrap&4&&(S[0]=c&255,S[1]=c>>>8&255,A.check=In(A.check,S,2,0)),c=0,l=0}else A.head&&(A.head.extra=null);A.mode=H2;case H2:if(A.flags&1024&&(h=A.length,h>s&&(h=s),h&&(A.head&&(J=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(r.subarray(a,a+h),J)),A.flags&512&&A.wrap&4&&(A.check=In(A.check,r,h,a)),s-=h,a+=h,A.length-=h),A.length))break e;A.length=0,A.mode=P2;case P2:if(A.flags&2048){if(s===0)break e;h=0;do J=r[a+h++],A.head&&J&&A.length<65536&&(A.head.name+=String.fromCharCode(J));while(J&&h<s);if(A.flags&512&&A.wrap&4&&(A.check=In(A.check,r,h,a)),s-=h,a+=h,J)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=M2;case M2:if(A.flags&4096){if(s===0)break e;h=0;do J=r[a+h++],A.head&&J&&A.length<65536&&(A.head.comment+=String.fromCharCode(J));while(J&&h<s);if(A.flags&512&&A.wrap&4&&(A.check=In(A.check,r,h,a)),s-=h,a+=h,J)break e}else A.head&&(A.head.comment=null);A.mode=k2;case k2:if(A.flags&512){for(;l<16;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(A.wrap&4&&c!==(A.check&65535)){e.msg="header crc mismatch",A.mode=uA;break}c=0,l=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),e.adler=A.check=0,A.mode=Aa;break;case K2:for(;l<32;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}e.adler=A.check=tg(c),c=0,l=0,A.mode=Yc;case Yc:if(A.havedict===0)return e.next_out=i,e.avail_out=u,e.next_in=a,e.avail_in=s,A.hold=c,A.bits=l,Ky;e.adler=A.check=1,A.mode=Aa;case Aa:if(t===My||t===qo)break e;case kl:if(A.last){c>>>=l&7,l-=l&7,A.mode=ql;break}for(;l<3;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}switch(A.last=c&1,c>>>=1,l-=1,c&3){case 0:A.mode=q2;break;case 1:if(zy(A),A.mode=jo,t===qo){c>>>=2,l-=2;break e}break;case 2:A.mode=V2;break;case 3:e.msg="invalid block type",A.mode=uA}c>>>=2,l-=2;break;case q2:for(c>>>=l&7,l-=l&7;l<32;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",A.mode=uA;break}if(A.length=c&65535,c=0,l=0,A.mode=Kl,t===qo)break e;case Kl:A.mode=j2;case j2:if(h=A.length,h){if(h>s&&(h=s),h>u&&(h=u),h===0)break e;n.set(r.subarray(a,a+h),i),s-=h,a+=h,u-=h,i+=h,A.length-=h;break}A.mode=Aa;break;case V2:for(;l<14;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(A.nlen=(c&31)+257,c>>>=5,l-=5,A.ndist=(c&31)+1,c>>>=5,l-=5,A.ncode=(c&15)+4,c>>>=4,l-=4,A.nlen>286||A.ndist>30){e.msg="too many length or distance symbols",A.mode=uA;break}A.have=0,A.mode=G2;case G2:for(;A.have<A.ncode;){for(;l<3;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}A.lens[I[A.have++]]=c&7,c>>>=3,l-=3}for(;A.have<19;)A.lens[I[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Ae={bits:A.lenbits},K=wu(Py,A.lens,0,19,A.lencode,0,A.work,Ae),A.lenbits=Ae.bits,K){e.msg="invalid code lengths set",A.mode=uA;break}A.have=0,A.mode=Y2;case Y2:for(;A.have<A.nlen+A.ndist;){for(;T=A.lencode[c&(1<<A.lenbits)-1],C=T>>>24,U=T>>>16&255,R=T&65535,!(C<=l);){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(R<16)c>>>=C,l-=C,A.lens[A.have++]=R;else{if(R===16){for(E=C+2;l<E;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(c>>>=C,l-=C,A.have===0){e.msg="invalid bit length repeat",A.mode=uA;break}J=A.lens[A.have-1],h=3+(c&3),c>>>=2,l-=2}else if(R===17){for(E=C+3;l<E;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}c>>>=C,l-=C,J=0,h=3+(c&7),c>>>=3,l-=3}else{for(E=C+7;l<E;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}c>>>=C,l-=C,J=0,h=11+(c&127),c>>>=7,l-=7}if(A.have+h>A.nlen+A.ndist){e.msg="invalid bit length repeat",A.mode=uA;break}for(;h--;)A.lens[A.have++]=J}}if(A.mode===uA)break;if(A.lens[256]===0){e.msg="invalid code -- missing end-of-block",A.mode=uA;break}if(A.lenbits=9,Ae={bits:A.lenbits},K=wu(zm,A.lens,0,A.nlen,A.lencode,0,A.work,Ae),A.lenbits=Ae.bits,K){e.msg="invalid literal/lengths set",A.mode=uA;break}if(A.distbits=6,A.distcode=A.distdyn,Ae={bits:A.distbits},K=wu(Jm,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Ae),A.distbits=Ae.bits,K){e.msg="invalid distances set",A.mode=uA;break}if(A.mode=jo,t===qo)break e;case jo:A.mode=Vo;case Vo:if(s>=6&&u>=258){e.next_out=i,e.avail_out=u,e.next_in=a,e.avail_in=s,A.hold=c,A.bits=l,Sy(e,m),i=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=A.hold,l=A.bits,A.mode===Aa&&(A.back=-1);break}for(A.back=0;T=A.lencode[c&(1<<A.lenbits)-1],C=T>>>24,U=T>>>16&255,R=T&65535,!(C<=l);){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(U&&(U&240)===0){for(F=C,D=U,P=R;T=A.lencode[P+((c&(1<<F+D)-1)>>F)],C=T>>>24,U=T>>>16&255,R=T&65535,!(F+C<=l);){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}c>>>=F,l-=F,A.back+=F}if(c>>>=C,l-=C,A.back+=C,A.length=R,U===0){A.mode=Z2;break}if(U&32){A.back=-1,A.mode=Aa;break}if(U&64){e.msg="invalid literal/length code",A.mode=uA;break}A.extra=U&15,A.mode=W2;case W2:if(A.extra){for(E=A.extra;l<E;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}A.length+=c&(1<<A.extra)-1,c>>>=A.extra,l-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=X2;case X2:for(;T=A.distcode[c&(1<<A.distbits)-1],C=T>>>24,U=T>>>16&255,R=T&65535,!(C<=l);){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if((U&240)===0){for(F=C,D=U,P=R;T=A.distcode[P+((c&(1<<F+D)-1)>>F)],C=T>>>24,U=T>>>16&255,R=T&65535,!(F+C<=l);){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}c>>>=F,l-=F,A.back+=F}if(c>>>=C,l-=C,A.back+=C,U&64){e.msg="invalid distance code",A.mode=uA;break}A.offset=R,A.extra=U&15,A.mode=z2;case z2:if(A.extra){for(E=A.extra;l<E;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}A.offset+=c&(1<<A.extra)-1,c>>>=A.extra,l-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){e.msg="invalid distance too far back",A.mode=uA;break}A.mode=J2;case J2:if(u===0)break e;if(h=m-u,A.offset>h){if(h=A.offset-h,h>A.whave&&A.sane){e.msg="invalid distance too far back",A.mode=uA;break}h>A.wnext?(h-=A.wnext,w=A.wsize-h):w=A.wnext-h,h>A.length&&(h=A.length),v=A.window}else v=n,w=i-A.offset,h=A.length;h>u&&(h=u),u-=h,A.length-=h;do n[i++]=v[w++];while(--h);A.length===0&&(A.mode=Vo);break;case Z2:if(u===0)break e;n[i++]=A.length,u--,A.mode=Vo;break;case ql:if(A.wrap){for(;l<32;){if(s===0)break e;s--,c|=r[a++]<<l,l+=8}if(m-=u,e.total_out+=m,A.total+=m,A.wrap&4&&m&&(e.adler=A.check=A.flags?In(A.check,n,m,i-m):eh(A.check,n,m,i-m)),m=u,A.wrap&4&&(A.flags?c:tg(c))!==A.check){e.msg="incorrect data check",A.mode=uA;break}c=0,l=0}A.mode=$2;case $2:if(A.wrap&&A.flags){for(;l<32;){if(s===0)break e;s--,c+=r[a++]<<l,l+=8}if(A.wrap&4&&c!==(A.total&4294967295)){e.msg="incorrect length check",A.mode=uA;break}c=0,l=0}A.mode=eg;case eg:K=ky;break e;case uA:K=Zm;break e;case e5:return $m;case t5:default:return Jr}return e.next_out=i,e.avail_out=u,e.next_in=a,e.avail_in=s,A.hold=c,A.bits=l,(A.wsize||m!==e.avail_out&&A.mode<uA&&(A.mode<ql||t!==U2))&&i5(e,e.output,e.next_out,m-e.avail_out),p-=e.avail_in,m-=e.avail_out,e.total_in+=p,e.total_out+=m,A.total+=m,A.wrap&4&&m&&(e.adler=A.check=A.flags?In(A.check,n,m,e.next_out-m):eh(A.check,n,m,e.next_out-m)),e.data_type=A.bits+(A.last?64:0)+(A.mode===Aa?128:0)+(A.mode===jo||A.mode===Kl?256:0),(p===0&&m===0||t===U2)&&K===xi&&(K=qy),K},Zy=e=>{if(_i(e))return Jr;let t=e.state;return t.window&&(t.window=null),e.state=null,xi},$y=(e,t)=>{if(_i(e))return Jr;const A=e.state;return(A.wrap&2)===0?Jr:(A.head=t,t.done=!1,xi)},e8=(e,t)=>{const A=t.length;let r,n,a;return _i(e)||(r=e.state,r.wrap!==0&&r.mode!==Yc)?Jr:r.mode===Yc&&(n=1,n=eh(n,t,A,0),n!==r.check)?Zm:(a=i5(e,t,A,A),a?(r.mode=e5,$m):(r.havedict=1,xi))};var t8=r5,A8=n5,r8=A5,n8=Xy,a8=a5,i8=Jy,s8=Zy,u8=$y,o8=e8,c8="pako inflate (from Nodeca project)",sa={inflateReset:t8,inflateReset2:A8,inflateResetKeep:r8,inflateInit:n8,inflateInit2:a8,inflate:i8,inflateEnd:s8,inflateGetHeader:u8,inflateSetDictionary:o8,inflateInfo:c8};function l8(){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}var f8=l8;const s5=Object.prototype.toString,{Z_NO_FLUSH:h8,Z_FINISH:d8,Z_OK:Du,Z_STREAM_END:Gl,Z_NEED_DICT:Yl,Z_STREAM_ERROR:g8,Z_DATA_ERROR:rg,Z_MEM_ERROR:p8}=Ym;function Yu(e){this.options=Wm.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ny,this.strm.avail_out=0;let A=sa.inflateInit2(this.strm,t.windowBits);if(A!==Du)throw new Error(th[A]);if(this.header=new f8,sa.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Ah.string2buf(t.dictionary):s5.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(A=sa.inflateSetDictionary(this.strm,t.dictionary),A!==Du)))throw new Error(th[A])}Yu.prototype.push=function(e,t){const A=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let a,i,s;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?d8:h8,s5.call(e)==="[object ArrayBuffer]"?A.input=new Uint8Array(e):A.input=e,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(r),A.next_out=0,A.avail_out=r),a=sa.inflate(A,i),a===Yl&&n&&(a=sa.inflateSetDictionary(A,n),a===Du?a=sa.inflate(A,i):a===rg&&(a=Yl));A.avail_in>0&&a===Gl&&A.state.wrap>0&&e[A.next_in]!==0;)sa.inflateReset(A),a=sa.inflate(A,i);switch(a){case g8:case rg:case Yl:case p8:return this.onEnd(a),this.ended=!0,!1}if(s=A.avail_out,A.next_out&&(A.avail_out===0||a===Gl))if(this.options.to==="string"){let u=Ah.utf8border(A.output,A.next_out),c=A.next_out-u,l=Ah.buf2string(A.output,u);A.next_out=c,A.avail_out=r-c,c&&A.output.set(A.output.subarray(u,u+c),0),this.onData(l)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out));if(!(a===Du&&s===0)){if(a===Gl)return a=sa.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(A.avail_in===0)break}}return!0};Yu.prototype.onData=function(e){this.chunks.push(e)};Yu.prototype.onEnd=function(e){e===Du&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Wm.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function b8(e,t){const A=new Yu(t);if(A.push(e),A.err)throw A.msg||th[A.err];return A.result}var m8=Yu,B8=b8,E8={Inflate:m8,inflate:B8};const{Inflate:w8,inflate:C8}=E8;var ng=w8,v8=C8;const u5=[];for(let e=0;e<256;e++){let t=e;for(let A=0;A<8;A++)t&1?t=3988292384^t>>>1:t=t>>>1;u5[e]=t}const ag=4294967295;function T8(e,t,A){let r=e;for(let n=0;n<A;n++)r=u5[(r^t[n])&255]^r>>>8;return r}function y8(e,t){return(T8(ag,e,t)^ag)>>>0}function ig(e,t,A){const r=e.readUint32(),n=y8(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(n!==r)throw new Error(`CRC mismatch for chunk ${A}. Expected ${r}, found ${n}`)}function o5(e,t,A){for(let r=0;r<A;r++)t[r]=e[r]}function c5(e,t,A,r){let n=0;for(;n<r;n++)t[n]=e[n];for(;n<A;n++)t[n]=e[n]+t[n-r]&255}function l5(e,t,A,r){let n=0;if(A.length===0)for(;n<r;n++)t[n]=e[n];else for(;n<r;n++)t[n]=e[n]+A[n]&255}function f5(e,t,A,r,n){let a=0;if(A.length===0){for(;a<n;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+(t[a-n]>>1)&255}else{for(;a<n;a++)t[a]=e[a]+(A[a]>>1)&255;for(;a<r;a++)t[a]=e[a]+(t[a-n]+A[a]>>1)&255}}function h5(e,t,A,r,n){let a=0;if(A.length===0){for(;a<n;a++)t[a]=e[a];for(;a<r;a++)t[a]=e[a]+t[a-n]&255}else{for(;a<n;a++)t[a]=e[a]+A[a]&255;for(;a<r;a++)t[a]=e[a]+x8(t[a-n],A[a],A[a-n])&255}}function x8(e,t,A){const r=e+t-A,n=Math.abs(r-e),a=Math.abs(r-t),i=Math.abs(r-A);return n<=a&&n<=i?e:a<=i?t:A}function I8(e,t,A,r,n,a){switch(e){case 0:o5(t,A,n);break;case 1:c5(t,A,n,a);break;case 2:l5(t,A,r,n);break;case 3:f5(t,A,r,n,a);break;case 4:h5(t,A,r,n,a);break;default:throw new Error(`Unsupported filter: ${e}`)}}const F8=new Uint16Array([255]),L8=new Uint8Array(F8.buffer),_8=L8[0]===255;function N8(e){const{data:t,width:A,height:r,channels:n,depth:a}=e,i=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*n,u=new Uint8Array(r*A*s);let c=0;for(let l=0;l<7;l++){const p=i[l],m=Math.ceil((A-p.x)/p.xStep),h=Math.ceil((r-p.y)/p.yStep);if(m<=0||h<=0)continue;const w=m*s,v=new Uint8Array(w);for(let T=0;T<h;T++){const C=t[c++],U=t.subarray(c,c+w);c+=w;const R=new Uint8Array(w);I8(C,U,R,v,w,s),v.set(R);for(let F=0;F<m;F++){const D=p.x+F*p.xStep,P=p.y+T*p.yStep;if(!(D>=A||P>=r))for(let J=0;J<s;J++)u[(P*A+D)*s+J]=R[F*s+J]}}}if(a===16){const l=new Uint16Array(u.buffer);if(_8)for(let p=0;p<l.length;p++)l[p]=U8(l[p]);return l}else return u}function U8(e){return(e&255)<<8|e>>8&255}const S8=new Uint16Array([255]),Q8=new Uint8Array(S8.buffer),O8=Q8[0]===255,D8=new Uint8Array(0);function sg(e){const{data:t,width:A,height:r,channels:n,depth:a}=e,i=Math.ceil(a/8)*n,s=Math.ceil(a/8*n*A),u=new Uint8Array(r*s);let c=D8,l=0,p,m;for(let h=0;h<r;h++){switch(p=t.subarray(l+1,l+1+s),m=u.subarray(h*s,(h+1)*s),t[l]){case 0:o5(p,m,s);break;case 1:c5(p,m,s,i);break;case 2:l5(p,m,c,s);break;case 3:f5(p,m,c,s,i);break;case 4:h5(p,m,c,s,i);break;default:throw new Error(`Unsupported filter: ${t[l]}`)}c=m,l+=s+1}if(a===16){const h=new Uint16Array(u.buffer);if(O8)for(let w=0;w<h.length;w++)h[w]=R8(h[w]);return h}else return u}function R8(e){return(e&255)<<8|e>>8&255}const vc=Uint8Array.of(137,80,78,71,13,10,26,10);function ug(e){if(!H8(e.readBytes(vc.length)))throw new Error("wrong PNG signature")}function H8(e){if(e.length<vc.length)return!1;for(let t=0;t<vc.length;t++)if(e[t]!==vc[t])return!1;return!0}const P8="tEXt",M8=0,d5=new TextDecoder("latin1");function k8(e){if(q8(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const K8=/^[\u0000-\u00FF]*$/;function q8(e){if(!K8.test(e))throw new Error("invalid latin1 text")}function j8(e,t,A){const r=g5(t);e[r]=V8(t,A-r.length-1)}function g5(e){for(e.mark();e.readByte()!==M8;);const t=e.offset;e.reset();const A=d5.decode(e.readBytes(t-e.offset-1));return e.skip(1),k8(A),A}function V8(e,t){return d5.decode(e.readBytes(t))}const Nr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Wl={UNKNOWN:-1,DEFLATE:0},og={UNKNOWN:-1,ADAPTIVE:0},Xl={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Go={NONE:0,BACKGROUND:1,PREVIOUS:2},zl={SOURCE:0,OVER:1};class G8 extends fd{constructor(A,r={}){super(A);Yt(this,"_checkCrc");Yt(this,"_inflator");Yt(this,"_png");Yt(this,"_apng");Yt(this,"_end");Yt(this,"_hasPalette");Yt(this,"_palette");Yt(this,"_hasTransparency");Yt(this,"_transparency");Yt(this,"_compressionMethod");Yt(this,"_filterMethod");Yt(this,"_interlaceMethod");Yt(this,"_colorType");Yt(this,"_isAnimated");Yt(this,"_numberOfFrames");Yt(this,"_numberOfPlays");Yt(this,"_frames");Yt(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new ng,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Wl.UNKNOWN,this._filterMethod=og.UNKNOWN,this._interlaceMethod=Xl.UNKNOWN,this._colorType=Nr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ug(this);!this._end;){const A=this.readUint32(),r=this.readChars(4);this.decodeChunk(A,r)}return this.decodeImage(),this._png}decodeApng(){for(ug(this);!this._end;){const A=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(A,r)}return this.decodeApngImage(),this._apng}decodeChunk(A,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(A);break;case"IDAT":this.decodeIDAT(A);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(A);break;case"iCCP":this.decodeiCCP(A);break;case P8:j8(this._png.text,this,A);break;case"pHYs":this.decodepHYs();break;default:this.skip(A);break}if(this.offset-n!==A)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?ig(this,A+4,r):this.skip(4)}decodeApngChunk(A,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(A);break;default:this.decodeChunk(A,r),this.offset=n+A;break}if(this.offset-n!==A)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?ig(this,A+4,r):this.skip(4)}decodeIHDR(){const A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=Y8(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case Nr.GREYSCALE:n=1;break;case Nr.TRUECOLOUR:n=3;break;case Nr.INDEXED_COLOUR:n=1;break;case Nr.GREYSCALE_ALPHA:n=2;break;case Nr.TRUECOLOUR_ALPHA:n=4;break;case Nr.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==Wl.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const A={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(A)}decodePLTE(A){if(A%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${A}`);const r=A/3;this._hasPalette=!0;const n=[];this._palette=n;for(let a=0;a<r;a++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(A){this._writingDataChunks=!0;const r=A,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodeFDAT(A){this._writingDataChunks=!0;let r=A,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(A)}decodetRNS(A){switch(this._colorType){case Nr.GREYSCALE:case Nr.TRUECOLOUR:{if(A%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${A}`);if(A/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${A/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(A/2);for(let r=0;r<A/2;r++)this._transparency[r]=this.readUint16();break}case Nr.INDEXED_COLOUR:{if(A>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${A} vs ${this._palette.length})`);let r=0;for(;r<A;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Nr.UNKNOWN:case Nr.GREYSCALE_ALPHA:case Nr.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(A){const r=g5(this),n=this.readUint8();if(n!==Wl.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const a=this.readBytes(A-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:v8(a)}}decodepHYs(){const A=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:A,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let A=0;A<this._numberOfFrames;A++){const r={sequenceNumber:this._frames[A].sequenceNumber,delayNumber:this._frames[A].delayNumber,delayDenominator:this._frames[A].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(A);if(n){if(n.data=sg({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),A===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const a=this._apng.frames.at(A-1);this.disposeFrame(n,a,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(A,r,n){switch(A.disposeOp){case Go.NONE:break;case Go.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let i=0;i<this._png.width;i++){const s=(a*A.width+i)*this._png.channels;for(let u=0;u<this._png.channels;u++)n.data[s+u]=0}break;case Go.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(A,r){const n=1<<this._png.depth,a=(i,s)=>{const u=((i+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,c=(i*r.width+s)*this._png.channels;return{index:u,frameIndex:c}};switch(r.blendOp){case zl.SOURCE:for(let i=0;i<r.height;i++)for(let s=0;s<r.width;s++){const{index:u,frameIndex:c}=a(i,s);for(let l=0;l<this._png.channels;l++)A.data[u+l]=r.data[c+l]}break;case zl.OVER:for(let i=0;i<r.height;i++)for(let s=0;s<r.width;s++){const{index:u,frameIndex:c}=a(i,s);for(let l=0;l<this._png.channels;l++){const p=r.data[c+this._png.channels-1]/n,m=l%(this._png.channels-1)===0?1:r.data[c+l],h=Math.floor(p*m+(1-p)*A.data[u+l]);A.data[u+l]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const A=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==og.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Xl.NO_INTERLACE)this._png.data=sg({data:A,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Xl.ADAM7)this._png.data=N8({data:A,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const A=this._inflator.result,r=this._frames.at(-1);r?r.data=A:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Go.NONE,blendOp:zl.SOURCE,data:A}),this._inflator=new ng,this._writingDataChunks=!1}}function Y8(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var cg;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(cg||(cg={}));function W8(e,t){return new G8(e,t).decode()}var pt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Jl(){pt.console&&typeof pt.console.log=="function"&&pt.console.log.apply(pt.console,arguments)}var $t={log:Jl,warn:function(e){pt.console&&(typeof pt.console.warn=="function"?pt.console.warn.apply(pt.console,arguments):Jl.call(null,arguments))},error:function(e){pt.console&&(typeof pt.console.error=="function"?pt.console.error.apply(pt.console,arguments):Jl(e))}};function Zl(e,t,A){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){gi(r.response,t,A)},r.onerror=function(){$t.error("could not download file")},r.send()}function lg(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Yo(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var gi=pt.saveAs||((typeof window>"u"?"undefined":eA(window))!=="object"||window!==pt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var r=pt.URL||pt.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?lg(n.href)?Zl(e,t,A):Yo(n,n.target="_blank"):Yo(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Yo(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download",typeof e=="string")if(lg(e))Zl(e,t,A);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Yo(r)})}else navigator.msSaveOrOpenBlob((function(n,a){return a===void 0?a={autoBom:!1}:eA(a)!=="object"&&($t.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(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n})(e,A),t)}:function(e,t,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Zl(e,t,A);var n=e.type==="application/octet-stream",a=/constructor/i.test(pt.HTMLElement)||pt.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||n&&a)&&(typeof FileReader>"u"?"undefined":eA(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var l=s.result;l=i?l:l.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=l:location=l,r=null},s.readAsDataURL(e)}else{var u=pt.URL||pt.webkitURL,c=u.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){u.revokeObjectURL(c)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function p5(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),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",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"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var A=[{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)]}}],r=0;r<A.length;r++){var n=A[r].re,a=A[r].process,i=n.exec(e);i&&(t=a(i),this.r=t[0],this.g=t[1],this.b=t[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),u=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),u.length==1&&(u="0"+u),c.length==1&&(c="0"+c),"#"+s+u+c}}var Tc=pt.atob.bind(pt),fg=pt.btoa.bind(pt);/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function $l(e,t){var A=e[0],r=e[1],n=e[2],a=e[3];A=Ar(A,r,n,a,t[0],7,-680876936),a=Ar(a,A,r,n,t[1],12,-389564586),n=Ar(n,a,A,r,t[2],17,606105819),r=Ar(r,n,a,A,t[3],22,-1044525330),A=Ar(A,r,n,a,t[4],7,-176418897),a=Ar(a,A,r,n,t[5],12,1200080426),n=Ar(n,a,A,r,t[6],17,-1473231341),r=Ar(r,n,a,A,t[7],22,-45705983),A=Ar(A,r,n,a,t[8],7,1770035416),a=Ar(a,A,r,n,t[9],12,-1958414417),n=Ar(n,a,A,r,t[10],17,-42063),r=Ar(r,n,a,A,t[11],22,-1990404162),A=Ar(A,r,n,a,t[12],7,1804603682),a=Ar(a,A,r,n,t[13],12,-40341101),n=Ar(n,a,A,r,t[14],17,-1502002290),A=rr(A,r=Ar(r,n,a,A,t[15],22,1236535329),n,a,t[1],5,-165796510),a=rr(a,A,r,n,t[6],9,-1069501632),n=rr(n,a,A,r,t[11],14,643717713),r=rr(r,n,a,A,t[0],20,-373897302),A=rr(A,r,n,a,t[5],5,-701558691),a=rr(a,A,r,n,t[10],9,38016083),n=rr(n,a,A,r,t[15],14,-660478335),r=rr(r,n,a,A,t[4],20,-405537848),A=rr(A,r,n,a,t[9],5,568446438),a=rr(a,A,r,n,t[14],9,-1019803690),n=rr(n,a,A,r,t[3],14,-187363961),r=rr(r,n,a,A,t[8],20,1163531501),A=rr(A,r,n,a,t[13],5,-1444681467),a=rr(a,A,r,n,t[2],9,-51403784),n=rr(n,a,A,r,t[7],14,1735328473),A=nr(A,r=rr(r,n,a,A,t[12],20,-1926607734),n,a,t[5],4,-378558),a=nr(a,A,r,n,t[8],11,-2022574463),n=nr(n,a,A,r,t[11],16,1839030562),r=nr(r,n,a,A,t[14],23,-35309556),A=nr(A,r,n,a,t[1],4,-1530992060),a=nr(a,A,r,n,t[4],11,1272893353),n=nr(n,a,A,r,t[7],16,-155497632),r=nr(r,n,a,A,t[10],23,-1094730640),A=nr(A,r,n,a,t[13],4,681279174),a=nr(a,A,r,n,t[0],11,-358537222),n=nr(n,a,A,r,t[3],16,-722521979),r=nr(r,n,a,A,t[6],23,76029189),A=nr(A,r,n,a,t[9],4,-640364487),a=nr(a,A,r,n,t[12],11,-421815835),n=nr(n,a,A,r,t[15],16,530742520),A=ar(A,r=nr(r,n,a,A,t[2],23,-995338651),n,a,t[0],6,-198630844),a=ar(a,A,r,n,t[7],10,1126891415),n=ar(n,a,A,r,t[14],15,-1416354905),r=ar(r,n,a,A,t[5],21,-57434055),A=ar(A,r,n,a,t[12],6,1700485571),a=ar(a,A,r,n,t[3],10,-1894986606),n=ar(n,a,A,r,t[10],15,-1051523),r=ar(r,n,a,A,t[1],21,-2054922799),A=ar(A,r,n,a,t[8],6,1873313359),a=ar(a,A,r,n,t[15],10,-30611744),n=ar(n,a,A,r,t[6],15,-1560198380),r=ar(r,n,a,A,t[13],21,1309151649),A=ar(A,r,n,a,t[4],6,-145523070),a=ar(a,A,r,n,t[11],10,-1120210379),n=ar(n,a,A,r,t[2],15,718787259),r=ar(r,n,a,A,t[9],21,-343485551),e[0]=Pa(A,e[0]),e[1]=Pa(r,e[1]),e[2]=Pa(n,e[2]),e[3]=Pa(a,e[3])}function B0(e,t,A,r,n,a){return t=Pa(Pa(t,e),Pa(r,a)),Pa(t<<n|t>>>32-n,A)}function Ar(e,t,A,r,n,a,i){return B0(t&A|~t&r,e,t,n,a,i)}function rr(e,t,A,r,n,a,i){return B0(t&r|A&~r,e,t,n,a,i)}function nr(e,t,A,r,n,a,i){return B0(t^A^r,e,t,n,a,i)}function ar(e,t,A,r,n,a,i){return B0(A^(t|~r),e,t,n,a,i)}function b5(e){var t,A=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)$l(r,X8(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)n[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for($l(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*A,$l(r,n),r}function X8(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var hg="0123456789abcdef".split("");function z8(e){for(var t="",A=0;A<4;A++)t+=hg[e>>8*A+4&15]+hg[e>>8*A&15];return t}function J8(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function rh(e){return b5(e).map(J8).join("")}var Z8=(function(e){for(var t=0;t<e.length;t++)e[t]=z8(e[t]);return e.join("")})(b5("hello"))!="5d41402abc4b2a76b9719d911017c592";function Pa(e,t){if(Z8){var A=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function nh(e,t){var A,r,n,a;if(e!==A){for(var i=(n=e,a=1+(256/e.length|0),new Array(a+1).join(n)),s=[],u=0;u<256;u++)s[u]=u;var c=0;for(u=0;u<256;u++){var l=s[u];c=(c+l+i.charCodeAt(u))%256,s[u]=s[c],s[c]=l}A=e,r=s}else s=r;var p=t.length,m=0,h=0,w="";for(u=0;u<p;u++)h=(h+(l=s[m=(m+1)%256]))%256,s[m]=s[h],s[h]=l,i=s[(s[m]+s[h])%256],w+=String.fromCharCode(t.charCodeAt(u)^i);return w}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var dg={print:4,modify:8,copy:16,"annot-forms":32};function As(e,t,A,r){this.v=1,this.r=2;var n=192;e.forEach(function(s){if(dg.perm!==void 0)throw new Error("Invalid permission: "+s);n+=dg[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(t+this.padding).substr(0,32),i=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,i),this.P=-(1+(255^n)),this.encryptionKey=rh(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=nh(this.encryptionKey,this.padding)}function rs(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,r=0;r<A;r++){var n=e.charCodeAt(r);t+=n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?"#"+("0"+n.toString(16)).slice(-2):e[r]}return t}function gg(e){if(eA(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,r,n){if(n=n||!1,typeof A!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var a=Math.random().toString(35);return t[A][a]=[r,!!n],a},this.unsubscribe=function(A){for(var r in t)if(t[r][A])return delete t[r][A],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var a in t[A]){var i=t[A][a];try{i[0].apply(e,r)}catch(s){pt.console&&$t.error("jsPDF PubSub Error",s.message,s)}i[1]&&n.push(a)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Wc(e){if(!(this instanceof Wc))return new Wc(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function m5(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function bi(e,t,A,r,n){if(!(this instanceof bi))return new bi(e,t,A,r,n);this.type=e==="axial"?2:3,this.coords=t,this.colors=A,m5.call(this,r,n)}function is(e,t,A,r,n){if(!(this instanceof is))return new is(e,t,A,r,n);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,m5.call(this,r,n)}function at(e){var t,A=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],a=arguments[3],i=[],s=1,u=16,c="S",l=null;eA(e=e||{})==="object"&&(A=e.orientation,r=e.unit||r,n=e.format||n,a=e.compress||e.compressPdf||a,(l=e.encryption||null)!==null&&(l.userPassword=l.userPassword||"",l.ownerPassword=l.ownerPassword||"",l.userPermissions=l.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(u=e.floatPrecision),c=e.defaultPathOperation||"S"),i=e.filters||(a===!0?["FlateEncode"]:i),r=r||"mm",A=(""+(A||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,m={},h={internal:{},__private__:{}};h.__private__.PubSub=gg;var w="1.3",v=h.__private__.getPdfVersion=function(){return w};h.__private__.setPdfVersion=function(g){w=g};var T={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]};h.__private__.getPageFormats=function(){return T};var C=h.__private__.getPageFormat=function(g){return T[g]};n=n||"a4";var U="compat",R="advanced",F=U;function D(){this.saveGraphicsState(),q(new ht(Oe,0,0,-Oe,0,Ai()*Oe).toString()+" cm"),this.setFontSize(this.getFontSize()/Oe),c="n",F=R}function P(){this.restoreGraphicsState(),c="S",F=U}var J=h.__private__.combineFontStyleAndFontWeight=function(g,y){if(g=="bold"&&y=="normal"||g=="bold"&&y==400||g=="normal"&&y=="italic"||g=="bold"&&y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return y&&(g=y==400||y==="normal"?g==="italic"?"italic":"normal":y!=700&&y!=="bold"||g!=="normal"?(y==700?"bold":y)+""+g:"bold"),g};h.advancedAPI=function(g){var y=F===U;return y&&D.call(this),typeof g!="function"||(g(this),y&&P.call(this)),this},h.compatAPI=function(g){var y=F===R;return y&&P.call(this),typeof g!="function"||(g(this),y&&D.call(this)),this},h.isAdvancedAPI=function(){return F===R};var K,S=function(g){if(F!==R)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Ae=h.roundToPrecision=h.__private__.roundToPrecision=function(g,y){var Y=t||y;if(isNaN(g)||isNaN(Y))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(Y).replace(/0+$/,"")};K=h.hpf=h.__private__.hpf=typeof u=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Ae(g,u)}:u==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Ae(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Ae(g,16)};var E=h.f2=h.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return Ae(g,2)},I=h.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return Ae(g,3)},Q=h.scale=h.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return F===U?g*Oe:F===R?g:void 0},M=function(g){return Q((function(y){return F===U?Ai()-y:F===R?y:void 0})(g))};h.__private__.setPrecision=h.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(t=parseInt(g,10))};var X,$="00000000000000000000000000000000",ae=h.__private__.getFileId=function(){return $},te=h.__private__.setFileId=function(g){return $=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():$.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),l!==null&&(_A=new As(l.userPermissions,l.userPassword,l.ownerPassword,$)),$};h.setFileId=function(g){return te(g),this},h.getFileId=function(){return ae()};var le=h.__private__.convertDateToPDFDate=function(g){var y=g.getTimezoneOffset(),Y=y<0?"+":"-",ne=Math.floor(Math.abs(y/60)),ce=Math.abs(y%60),Ie=[Y,z(ne),"'",z(ce),"'"].join("");return["D:",g.getFullYear(),z(g.getMonth()+1),z(g.getDate()),z(g.getHours()),z(g.getMinutes()),z(g.getSeconds()),Ie].join("")},Te=h.__private__.convertPDFDateToDate=function(g){var y=parseInt(g.substr(2,4),10),Y=parseInt(g.substr(6,2),10)-1,ne=parseInt(g.substr(8,2),10),ce=parseInt(g.substr(10,2),10),Ie=parseInt(g.substr(12,2),10),Ne=parseInt(g.substr(14,2),10);return new Date(y,Y,ne,ce,Ie,Ne,0)},ye=h.__private__.setCreationDate=function(g){var y;if(g===void 0&&(g=new Date),g instanceof Date)y=le(g);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(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");y=g}return X=y},_=h.__private__.getCreationDate=function(g){var y=X;return g==="jsDate"&&(y=Te(X)),y};h.setCreationDate=function(g){return ye(g),this},h.getCreationDate=function(g){return _(g)};var G,z=h.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},re=h.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},se=0,fe=[],ge=[],Ee=0,Ce=[],_e=[],qe=!1,Ke=ge;h.__private__.setCustomOutputDestination=function(g){qe=!0,Ke=g};var Je=function(g){qe||(Ke=g)};h.__private__.resetCustomOutputDestination=function(){qe=!1,Ke=ge};var q=h.__private__.out=function(g){return g=g.toString(),Ee+=g.length+1,Ke.push(g),Ke},Me=h.__private__.write=function(g){return q(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},it=h.__private__.getArrayBuffer=function(g){for(var y=g.length,Y=new ArrayBuffer(y),ne=new Uint8Array(Y);y--;)ne[y]=g.charCodeAt(y);return Y},$e=[["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]];h.__private__.getStandardFonts=function(){return $e};var Be=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(g){return Be=F===R?g/Oe:g,this};var Pe,He=h.__private__.getFontSize=h.getFontSize=function(){return F===U?Be:Be*Oe},Ve=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(g){return Ve=g,this},h.__private__.getR2L=h.getR2L=function(){return Ve};var rt,Ot=h.__private__.setZoomMode=function(g){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))Pe=g;else if(isNaN(g)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');Pe=g}else Pe=parseInt(g,10)};h.__private__.getZoomMode=function(){return Pe};var Et,ut=h.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');rt=g};h.__private__.getPageMode=function(){return rt};var Nt=h.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');Et=g};h.__private__.getLayoutMode=function(){return Et},h.__private__.setDisplayMode=h.setDisplayMode=function(g,y,Y){return Ot(g),Nt(y),ut(Y),this};var Ft={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(g){if(Object.keys(Ft).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ft[g]},h.__private__.getDocumentProperties=function(){return Ft},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(g){for(var y in Ft)Ft.hasOwnProperty(y)&&g[y]&&(Ft[y]=g[y]);return this},h.__private__.setDocumentProperty=function(g,y){if(Object.keys(Ft).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ft[g]=y};var et,Oe,Ge,jt,St,vt={},yt={},Wt=[],ot={},tA={},dt={},wt={},sA=null,Lt=0,ft=[],kt=new gg(h),Wa=e.hotfixes||[],er={},Dn={},mn=[],ht=function g(y,Y,ne,ce,Ie,Ne){if(!(this instanceof g))return new g(y,Y,ne,ce,Ie,Ne);isNaN(y)&&(y=1),isNaN(Y)&&(Y=0),isNaN(ne)&&(ne=0),isNaN(ce)&&(ce=1),isNaN(Ie)&&(Ie=0),isNaN(Ne)&&(Ne=0),this._matrix=[y,Y,ne,ce,Ie,Ne]};Object.defineProperty(ht.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(ht.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(ht.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(ht.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(ht.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(ht.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(ht.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(ht.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(ht.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(ht.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(ht.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(ht.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(ht.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ht.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ht.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ht.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ht.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(K).join(g)},ht.prototype.multiply=function(g){var y=g.sx*this.sx+g.shy*this.shx,Y=g.sx*this.shy+g.shy*this.sy,ne=g.shx*this.sx+g.sy*this.shx,ce=g.shx*this.shy+g.sy*this.sy,Ie=g.tx*this.sx+g.ty*this.shx+this.tx,Ne=g.tx*this.shy+g.ty*this.sy+this.ty;return new ht(y,Y,ne,ce,Ie,Ne)},ht.prototype.decompose=function(){var g=this.sx,y=this.shy,Y=this.shx,ne=this.sy,ce=this.tx,Ie=this.ty,Ne=Math.sqrt(g*g+y*y),Ze=(g/=Ne)*Y+(y/=Ne)*ne;Y-=g*Ze,ne-=y*Ze;var nt=Math.sqrt(Y*Y+ne*ne);return Ze/=nt,g*(ne/=nt)<y*(Y/=nt)&&(g=-g,y=-y,Ze=-Ze,Ne=-Ne),{scale:new ht(Ne,0,0,nt,0,0),translate:new ht(1,0,0,1,ce,Ie),rotate:new ht(g,y,-y,g,0,0),skew:new ht(1,0,Ze,1,0,0)}},ht.prototype.toString=function(g){return this.join(" ")},ht.prototype.inversed=function(){var g=this.sx,y=this.shy,Y=this.shx,ne=this.sy,ce=this.tx,Ie=this.ty,Ne=1/(g*ne-y*Y),Ze=ne*Ne,nt=-y*Ne,bt=-Y*Ne,Tt=g*Ne;return new ht(Ze,nt,bt,Tt,-Ze*ce-bt*Ie,-nt*ce-Tt*Ie)},ht.prototype.applyToPoint=function(g){var y=g.x*this.sx+g.y*this.shx+this.tx,Y=g.x*this.shy+g.y*this.sy+this.ty;return new qn(y,Y)},ht.prototype.applyToRectangle=function(g){var y=this.applyToPoint(g),Y=this.applyToPoint(new qn(g.x+g.w,g.y+g.h));return new _s(y.x,y.y,Y.x-y.x,Y.y-y.y)},ht.prototype.clone=function(){var g=this.sx,y=this.shy,Y=this.shx,ne=this.sy,ce=this.tx,Ie=this.ty;return new ht(g,y,Y,ne,ce,Ie)},h.Matrix=ht;var Rn=h.matrixMult=function(g,y){return y.multiply(g)},Hn=new ht(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Hn;var Qr=function(g,y){if(!tA[g]){var Y=(y instanceof bi?"Sh":"P")+(Object.keys(ot).length+1).toString(10);y.id=Y,tA[g]=Y,ot[Y]=y,kt.publish("addPattern",y)}};h.ShadingPattern=bi,h.TilingPattern=is,h.addShadingPattern=function(g,y){return S("addShadingPattern()"),Qr(g,y),this},h.beginTilingPattern=function(g){S("beginTilingPattern()"),Ns(g.boundingBox[0],g.boundingBox[1],g.boundingBox[2]-g.boundingBox[0],g.boundingBox[3]-g.boundingBox[1],g.matrix)},h.endTilingPattern=function(g,y){S("endTilingPattern()"),y.stream=_e[G].join(`
`),Qr(g,y),kt.publish("endTilingPattern",y),mn.pop().restore()};var Or,hA=h.__private__.newObject=function(){var g=PA();return jA(g,!0),g},PA=h.__private__.newObjectDeferred=function(){return se++,fe[se]=function(){return Ee},se},jA=function(g,y){return y=typeof y=="boolean"&&y,fe[g]=Ee,y&&q(g+" 0 obj"),g},Xa=h.__private__.newAdditionalObject=function(){var g={objId:PA(),content:""};return Ce.push(g),g},ha=PA(),Zr=PA(),Bn=h.__private__.decodeColorString=function(g){var y=g.split(" ");if(y.length!==2||y[1]!=="g"&&y[1]!=="G")y.length!==5||y[4]!=="k"&&y[4]!=="K"||(y=[(1-y[0])*(1-y[3]),(1-y[1])*(1-y[3]),(1-y[2])*(1-y[3]),"r"]);else{var Y=parseFloat(y[0]);y=[Y,Y,Y,"r"]}for(var ne="#",ce=0;ce<3;ce++)ne+=("0"+Math.floor(255*parseFloat(y[ce])).toString(16)).slice(-2);return ne},$r=h.__private__.encodeColorString=function(g){var y;typeof g=="string"&&(g={ch1:g});var Y=g.ch1,ne=g.ch2,ce=g.ch3,Ie=g.ch4,Ne=g.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Y=="string"&&Y.charAt(0)!=="#"){var Ze=new p5(Y);if(Ze.ok)Y=Ze.toHex();else if(!/^\d*\.?\d*$/.test(Y))throw new Error('Invalid color "'+Y+'" passed to jsPDF.encodeColorString.')}if(typeof Y=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Y)&&(Y="#"+Y[1]+Y[1]+Y[2]+Y[2]+Y[3]+Y[3]),typeof Y=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Y)){var nt=parseInt(Y.substr(1),16);Y=nt>>16&255,ne=nt>>8&255,ce=255&nt}if(ne===void 0||Ie===void 0&&Y===ne&&ne===ce)y=typeof Y=="string"?Y+" "+Ne[0]:g.precision===2?E(Y/255)+" "+Ne[0]:I(Y/255)+" "+Ne[0];else if(Ie===void 0||eA(Ie)==="object"){if(Ie&&!isNaN(Ie.a)&&Ie.a===0)return["1.","1.","1.",Ne[1]].join(" ");y=typeof Y=="string"?[Y,ne,ce,Ne[1]].join(" "):g.precision===2?[E(Y/255),E(ne/255),E(ce/255),Ne[1]].join(" "):[I(Y/255),I(ne/255),I(ce/255),Ne[1]].join(" ")}else y=typeof Y=="string"?[Y,ne,ce,Ie,Ne[2]].join(" "):g.precision===2?[E(Y),E(ne),E(ce),E(Ie),Ne[2]].join(" "):[I(Y),I(ne),I(ce),I(Ie),Ne[2]].join(" ");return y},en=h.__private__.getFilters=function(){return i},Dr=h.__private__.putStream=function(g){var y=(g=g||{}).data||"",Y=g.filters||en(),ne=g.alreadyAppliedFilters||[],ce=g.addLength1||!1,Ie=y.length,Ne=g.objectId,Ze=function(NA){return NA};if(l!==null&&Ne===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");l!==null&&(Ze=_A.encryptor(Ne,0));var nt={};Y===!0&&(Y=["FlateEncode"]);var bt=g.additionalKeyValues||[],Tt=(nt=at.API.processDataByFilters!==void 0?at.API.processDataByFilters(y,Y):{data:y,reverseChain:[]}).reverseChain+(Array.isArray(ne)?ne.join(" "):ne.toString());if(nt.data.length!==0&&(bt.push({key:"Length",value:nt.data.length}),ce===!0&&bt.push({key:"Length1",value:Ie})),Tt.length!=0)if(Tt.split("/").length-1==1)bt.push({key:"Filter",value:Tt});else{bt.push({key:"Filter",value:"["+Tt+"]"});for(var Rt=0;Rt<bt.length;Rt+=1)if(bt[Rt].key==="DecodeParms"){for(var lA=[],IA=0;IA<nt.reverseChain.split("/").length-1;IA+=1)lA.push("null");lA.push(bt[Rt].value),bt[Rt].value="["+lA.join(" ")+"]"}}q("<<");for(var AA=0;AA<bt.length;AA++)q("/"+bt[AA].key+" "+bt[AA].value);q(">>"),nt.data.length!==0&&(q("stream"),q(Ze(nt.data)),q("endstream"))},za=h.__private__.putPage=function(g){var y=g.number,Y=g.data,ne=g.objId,ce=g.contentsObjId;jA(ne,!0),q("<</Type /Page"),q("/Parent "+g.rootDictionaryObjId+" 0 R"),q("/Resources "+g.resourceDictionaryObjId+" 0 R"),q("/MediaBox ["+parseFloat(K(g.mediaBox.bottomLeftX))+" "+parseFloat(K(g.mediaBox.bottomLeftY))+" "+K(g.mediaBox.topRightX)+" "+K(g.mediaBox.topRightY)+"]"),g.cropBox!==null&&q("/CropBox ["+K(g.cropBox.bottomLeftX)+" "+K(g.cropBox.bottomLeftY)+" "+K(g.cropBox.topRightX)+" "+K(g.cropBox.topRightY)+"]"),g.bleedBox!==null&&q("/BleedBox ["+K(g.bleedBox.bottomLeftX)+" "+K(g.bleedBox.bottomLeftY)+" "+K(g.bleedBox.topRightX)+" "+K(g.bleedBox.topRightY)+"]"),g.trimBox!==null&&q("/TrimBox ["+K(g.trimBox.bottomLeftX)+" "+K(g.trimBox.bottomLeftY)+" "+K(g.trimBox.topRightX)+" "+K(g.trimBox.topRightY)+"]"),g.artBox!==null&&q("/ArtBox ["+K(g.artBox.bottomLeftX)+" "+K(g.artBox.bottomLeftY)+" "+K(g.artBox.topRightX)+" "+K(g.artBox.topRightY)+"]"),typeof g.userUnit=="number"&&g.userUnit!==1&&q("/UserUnit "+g.userUnit),kt.publish("putPage",{objId:ne,pageContext:ft[y],pageNumber:y,page:Y}),q("/Contents "+ce+" 0 R"),q(">>"),q("endobj");var Ie=Y.join(`
`);return F===R&&(Ie+=`
Q`),jA(ce,!0),Dr({data:Ie,filters:en(),objectId:ce}),q("endobj"),ne},En=h.__private__.putPages=function(){var g,y,Y=[];for(g=1;g<=Lt;g++)ft[g].objId=PA(),ft[g].contentsObjId=PA();for(g=1;g<=Lt;g++)Y.push(za({number:g,data:_e[g],objId:ft[g].objId,contentsObjId:ft[g].contentsObjId,mediaBox:ft[g].mediaBox,cropBox:ft[g].cropBox,bleedBox:ft[g].bleedBox,trimBox:ft[g].trimBox,artBox:ft[g].artBox,userUnit:ft[g].userUnit,rootDictionaryObjId:ha,resourceDictionaryObjId:Zr}));jA(ha,!0),q("<</Type /Pages");var ne="/Kids [";for(y=0;y<Lt;y++)ne+=Y[y]+" 0 R ";q(ne+"]"),q("/Count "+Lt),q(">>"),q("endobj"),kt.publish("postPutPages")},Ja=function(g){kt.publish("putFont",{font:g,out:q,newObject:hA,putStream:Dr}),g.isAlreadyPutted!==!0&&(g.objectNumber=hA(),q("<<"),q("/Type /Font"),q("/BaseFont /"+rs(g.postScriptName)),q("/Subtype /Type1"),typeof g.encoding=="string"&&q("/Encoding /"+g.encoding),q("/FirstChar 32"),q("/LastChar 255"),q(">>"),q("endobj"))},Ui=function(g){g.objectNumber=hA();var y=[];y.push({key:"Type",value:"/XObject"}),y.push({key:"Subtype",value:"/Form"}),y.push({key:"BBox",value:"["+[K(g.x),K(g.y),K(g.x+g.width),K(g.y+g.height)].join(" ")+"]"}),y.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var Y=g.pages[1].join(`
`);Dr({data:Y,additionalKeyValues:y,objectId:g.objectNumber}),q("endobj")},Si=function(g,y){y||(y=21);var Y=hA(),ne=(function(Ne,Ze){var nt,bt=[],Tt=1/(Ze-1);for(nt=0;nt<1;nt+=Tt)bt.push(nt);if(bt.push(1),Ne[0].offset!=0){var Rt={offset:0,color:Ne[0].color};Ne.unshift(Rt)}if(Ne[Ne.length-1].offset!=1){var lA={offset:1,color:Ne[Ne.length-1].color};Ne.push(lA)}for(var IA="",AA=0,NA=0;NA<bt.length;NA++){for(nt=bt[NA];nt>Ne[AA+1].offset;)AA++;var FA=Ne[AA].offset,VA=(nt-FA)/(Ne[AA+1].offset-FA),Gn=Ne[AA].color,An=Ne[AA+1].color;IA+=re(Math.round((1-VA)*Gn[0]+VA*An[0]).toString(16))+re(Math.round((1-VA)*Gn[1]+VA*An[1]).toString(16))+re(Math.round((1-VA)*Gn[2]+VA*An[2]).toString(16))}return IA.trim()})(g.colors,y),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+y+"]"}),ce.push({key:"BitsPerSample",value:"8"}),ce.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ce.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Dr({data:ne,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Y}),q("endobj"),g.objectNumber=hA(),q("<< /ShadingType "+g.type),q("/ColorSpace /DeviceRGB");var Ie="/Coords ["+K(parseFloat(g.coords[0]))+" "+K(parseFloat(g.coords[1]))+" ";g.type===2?Ie+=K(parseFloat(g.coords[2]))+" "+K(parseFloat(g.coords[3])):Ie+=K(parseFloat(g.coords[2]))+" "+K(parseFloat(g.coords[3]))+" "+K(parseFloat(g.coords[4]))+" "+K(parseFloat(g.coords[5])),q(Ie+="]"),g.matrix&&q("/Matrix ["+g.matrix.toString()+"]"),q("/Function "+Y+" 0 R"),q("/Extend [true true]"),q(">>"),q("endobj")},Qi=function(g,y){var Y=PA(),ne=hA();y.push({resourcesOid:Y,objectOid:ne}),g.objectNumber=ne;var ce=[];ce.push({key:"Type",value:"/Pattern"}),ce.push({key:"PatternType",value:"1"}),ce.push({key:"PaintType",value:"1"}),ce.push({key:"TilingType",value:"1"}),ce.push({key:"BBox",value:"["+g.boundingBox.map(K).join(" ")+"]"}),ce.push({key:"XStep",value:K(g.xStep)}),ce.push({key:"YStep",value:K(g.yStep)}),ce.push({key:"Resources",value:Y+" 0 R"}),g.matrix&&ce.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),Dr({data:g.stream,additionalKeyValues:ce,objectId:g.objectNumber}),q("endobj")},_0=function(g){for(var y in g.objectNumber=hA(),q("<<"),g)switch(y){case"opacity":q("/ca "+E(g[y]));break;case"stroke-opacity":q("/CA "+E(g[y]))}q(">>"),q("endobj")},Cs=function(g){jA(g.resourcesOid,!0),q("<<"),q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var y in q("/Font <<"),vt)vt.hasOwnProperty(y)&&(p===!1||p===!0&&m.hasOwnProperty(y))&&q("/"+y+" "+vt[y].objectNumber+" 0 R");q(">>")})(),(function(){if(Object.keys(ot).length>0){for(var y in q("/Shading <<"),ot)ot.hasOwnProperty(y)&&ot[y]instanceof bi&&ot[y].objectNumber>=0&&q("/"+y+" "+ot[y].objectNumber+" 0 R");kt.publish("putShadingPatternDict"),q(">>")}})(),(function(y){if(Object.keys(ot).length>0){for(var Y in q("/Pattern <<"),ot)ot.hasOwnProperty(Y)&&ot[Y]instanceof h.TilingPattern&&ot[Y].objectNumber>=0&&ot[Y].objectNumber<y&&q("/"+Y+" "+ot[Y].objectNumber+" 0 R");kt.publish("putTilingPatternDict"),q(">>")}})(g.objectOid),(function(){if(Object.keys(dt).length>0){var y;for(y in q("/ExtGState <<"),dt)dt.hasOwnProperty(y)&&dt[y].objectNumber>=0&&q("/"+y+" "+dt[y].objectNumber+" 0 R");kt.publish("putGStateDict"),q(">>")}})(),(function(){for(var y in q("/XObject <<"),er)er.hasOwnProperty(y)&&er[y].objectNumber>=0&&q("/"+y+" "+er[y].objectNumber+" 0 R");kt.publish("putXobjectDict"),q(">>")})(),q(">>"),q("endobj")},zu=function(g){yt[g.fontName]=yt[g.fontName]||{},yt[g.fontName][g.fontStyle]=g.id},Ju=function(g,y,Y,ne,ce){var Ie={id:"F"+(Object.keys(vt).length+1).toString(10),postScriptName:g,fontName:y,fontStyle:Y,encoding:ne,isStandardFont:ce||!1,metadata:{}};return kt.publish("addFont",{font:Ie,instance:this}),vt[Ie.id]=Ie,zu(Ie),Ie.id},Rr=h.__private__.pdfEscape=h.pdfEscape=function(g,y){return(function(Y,ne){var ce,Ie,Ne,Ze,nt,bt,Tt,Rt,lA;if(Ne=(ne=ne||{}).sourceEncoding||"Unicode",nt=ne.outputEncoding,(ne.autoencode||nt)&&vt[et].metadata&&vt[et].metadata[Ne]&&vt[et].metadata[Ne].encoding&&(Ze=vt[et].metadata[Ne].encoding,!nt&&vt[et].encoding&&(nt=vt[et].encoding),!nt&&Ze.codePages&&(nt=Ze.codePages[0]),typeof nt=="string"&&(nt=Ze[nt]),nt)){for(Tt=!1,bt=[],ce=0,Ie=Y.length;ce<Ie;ce++)(Rt=nt[Y.charCodeAt(ce)])?bt.push(String.fromCharCode(Rt)):bt.push(Y[ce]),bt[ce].charCodeAt(0)>>8&&(Tt=!0);Y=bt.join("")}for(ce=Y.length;Tt===void 0&&ce!==0;)Y.charCodeAt(ce-1)>>8&&(Tt=!0),ce--;if(!Tt)return Y;for(bt=ne.noBOM?[]:[254,255],ce=0,Ie=Y.length;ce<Ie;ce++){if((lA=(Rt=Y.charCodeAt(ce))>>8)>>8)throw new Error("Character at position "+ce+" of string '"+Y+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");bt.push(lA),bt.push(Rt-(lA<<8))}return String.fromCharCode.apply(void 0,bt)})(g,y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},vs=h.__private__.beginPage=function(g){_e[++Lt]=[],ft[Lt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},$u(Lt),Je(_e[G])},Zu=function(g,y){var Y,ne,ce;switch(A=y||A,typeof g=="string"&&(Y=C(g.toLowerCase()),Array.isArray(Y)&&(ne=Y[0],ce=Y[1])),Array.isArray(g)&&(ne=g[0]*Oe,ce=g[1]*Oe),isNaN(ne)&&(ne=n[0],ce=n[1]),(ne>14400||ce>14400)&&($t.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ne=Math.min(14400,ne),ce=Math.min(14400,ce)),n=[ne,ce],A.substr(0,1)){case"l":ce>ne&&(n=[ce,ne]);break;case"p":ne>ce&&(n=[ce,ne])}vs(n),mt(xs),q(Hi),Fs!==0&&q(Fs+" J"),Ls!==0&&q(Ls+" j"),kt.publish("addPage",{pageNumber:Lt})},Ts=function(g){g>0&&g<=Lt&&(_e.splice(g,1),ft.splice(g,1),Lt--,G>Lt&&(G=Lt),this.setPage(G))},$u=function(g){g>0&&g<=Lt&&(G=g)},eo=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return _e.length-1},to=function(g,y,Y){var ne,ce=void 0;return Y=Y||{},g=g!==void 0?g:vt[et].fontName,y=y!==void 0?y:vt[et].fontStyle,ne=g.toLowerCase(),yt[ne]!==void 0&&yt[ne][y]!==void 0?ce=yt[ne][y]:yt[g]!==void 0&&yt[g][y]!==void 0?ce=yt[g][y]:Y.disableWarning===!1&&$t.warn("Unable to look up font label for font '"+g+"', '"+y+"'. Refer to getFontList() for available fonts."),ce||Y.noFallback||(ce=yt.times[y])==null&&(ce=yt.times.normal),ce},wn=h.__private__.putInfo=function(){var g=hA(),y=function(ne){return ne};for(var Y in l!==null&&(y=_A.encryptor(g,0)),q("<<"),q("/Producer ("+Rr(y("jsPDF "+at.version))+")"),Ft)Ft.hasOwnProperty(Y)&&Ft[Y]&&q("/"+Y.substr(0,1).toUpperCase()+Y.substr(1)+" ("+Rr(y(Ft[Y]))+")");q("/CreationDate ("+Rr(y(X))+")"),q(">>"),q("endobj")},Oi=h.__private__.putCatalog=function(g){var y=(g=g||{}).rootDictionaryObjId||ha;switch(hA(),q("<<"),q("/Type /Catalog"),q("/Pages "+y+" 0 R"),Pe||(Pe="fullwidth"),Pe){case"fullwidth":q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":q("/OpenAction [3 0 R /Fit]");break;case"original":q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Y=""+Pe;Y.substr(Y.length-1)==="%"&&(Pe=parseInt(Pe)/100),typeof Pe=="number"&&q("/OpenAction [3 0 R /XYZ null null "+E(Pe)+"]")}switch(Et||(Et="continuous"),Et){case"continuous":q("/PageLayout /OneColumn");break;case"single":q("/PageLayout /SinglePage");break;case"two":case"twoleft":q("/PageLayout /TwoColumnLeft");break;case"tworight":q("/PageLayout /TwoColumnRight")}rt&&q("/PageMode /"+rt),kt.publish("putCatalog"),q(">>"),q("endobj")},N0=h.__private__.putTrailer=function(){q("trailer"),q("<<"),q("/Size "+(se+1)),q("/Root "+se+" 0 R"),q("/Info "+(se-1)+" 0 R"),l!==null&&q("/Encrypt "+_A.oid+" 0 R"),q("/ID [ <"+$+"> <"+$+"> ]"),q(">>")},xA=h.__private__.putHeader=function(){q("%PDF-"+w),q("%ºß¬à")},Ao=h.__private__.putXRef=function(){var g="0000000000";q("xref"),q("0 "+(se+1)),q("0000000000 65535 f ");for(var y=1;y<=se;y++)typeof fe[y]=="function"?q((g+fe[y]()).slice(-10)+" 00000 n "):fe[y]!==void 0?q((g+fe[y]).slice(-10)+" 00000 n "):q("0000000000 00000 n ")},Cn=h.__private__.buildDocument=function(){var g;se=0,Ee=0,ge=[],fe=[],Ce=[],ha=PA(),Zr=PA(),Je(ge),kt.publish("buildDocument"),xA(),En(),(function(){kt.publish("putAdditionalObjects");for(var Y=0;Y<Ce.length;Y++){var ne=Ce[Y];jA(ne.objId,!0),q(ne.content),q("endobj")}kt.publish("postPutAdditionalObjects")})(),g=[],(function(){for(var Y in vt)vt.hasOwnProperty(Y)&&(p===!1||p===!0&&m.hasOwnProperty(Y))&&Ja(vt[Y])})(),(function(){var Y;for(Y in dt)dt.hasOwnProperty(Y)&&_0(dt[Y])})(),(function(){for(var Y in er)er.hasOwnProperty(Y)&&Ui(er[Y])})(),(function(Y){var ne;for(ne in ot)ot.hasOwnProperty(ne)&&(ot[ne]instanceof bi?Si(ot[ne]):ot[ne]instanceof is&&Qi(ot[ne],Y))})(g),kt.publish("putResources"),g.forEach(Cs),Cs({resourcesOid:Zr,objectOid:Number.MAX_SAFE_INTEGER}),kt.publish("postPutResources"),l!==null&&(_A.oid=hA(),q("<<"),q("/Filter /Standard"),q("/V "+_A.v),q("/R "+_A.r),q("/U <"+_A.toHexString(_A.U)+">"),q("/O <"+_A.toHexString(_A.O)+">"),q("/P "+_A.P),q(">>"),q("endobj")),wn(),Oi();var y=Ee;return Ao(),N0(),q("startxref"),q(""+y),q("%%EOF"),Je(_e[G]),ge.join(`
`)},Di=h.__private__.getBlob=function(g){return new Blob([it(g)],{type:"application/pdf"})},ro=h.output=h.__private__.output=(Or=function(g,y){switch(typeof(y=y||{})=="string"?y={filename:y}:y.filename=y.filename||"generated.pdf",g){case void 0:return Cn();case"save":h.save(y.filename);break;case"arraybuffer":return it(Cn());case"blob":return Di(Cn());case"bloburi":case"bloburl":if(pt.URL!==void 0&&typeof pt.URL.createObjectURL=="function")return pt.URL&&pt.URL.createObjectURL(Di(Cn()))||void 0;$t.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Y="",ne=Cn();try{Y=fg(ne)}catch{Y=fg(unescape(encodeURIComponent(ne)))}return"data:application/pdf;filename="+y.filename+";base64,"+Y;case"pdfobjectnewwindow":if(Object.prototype.toString.call(pt)==="[object Window]"){var ce="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ie=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';y.pdfObjectUrl&&(ce=y.pdfObjectUrl,Ie="");var Ne='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+ce+'"'+Ie+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(y)+");<\/script></body></html>",Ze=pt.open();return Ze!==null&&Ze.document.write(Ne),Ze}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(pt)==="[object Window]"){var nt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(y.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+y.filename+'" width="500px" height="400px" /></body></html>',bt=pt.open();if(bt!==null){bt.document.write(nt);var Tt=this;bt.document.documentElement.querySelector("#pdfViewer").onload=function(){bt.document.title=y.filename,bt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Tt.output("bloburl"))}}return bt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(pt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Rt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",y)+'"></iframe></body></html>',lA=pt.open();if(lA!==null&&(lA.document.write(Rt),lA.document.title=y.filename),lA||typeof safari>"u")return lA;break;case"datauri":case"dataurl":return pt.document.location.href=this.output("datauristring",y);default:return null}},Or.foo=function(){try{return Or.apply(this,arguments)}catch(Y){var g=Y.stack||"";~g.indexOf(" at ")&&(g=g.split(" at ")[1]);var y="Error in function "+g.split(`
`)[0].split("<")[0]+": "+Y.message;if(!pt.console)throw new Error(y);pt.console.error(y,Y),pt.alert&&alert(y)}},Or.foo.bar=Or,Or.foo),Hr=function(g){return Array.isArray(Wa)===!0&&Wa.indexOf(g)>-1};switch(r){case"pt":Oe=1;break;case"mm":Oe=72/25.4;break;case"cm":Oe=72/2.54;break;case"in":Oe=72;break;case"px":Oe=Hr("px_scaling")==1?.75:96/72;break;case"pc":case"em":Oe=12;break;case"ex":Oe=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);Oe=r}var _A=null;ye(),te();var Pn=h.__private__.getPageInfo=h.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ft[g].objId,pageNumber:g,pageContext:ft[g]}},no=h.__private__.getPageInfoByObjId=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var y in ft)if(ft[y].objId===g)break;return Pn(y)},U0=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:ft[G].objId,pageNumber:G,pageContext:ft[G]}};h.addPage=function(){return Zu.apply(this,arguments),this},h.setPage=function(){return $u.apply(this,arguments),Je.call(this,_e[G]),this},h.insertPage=function(g){return this.addPage(),this.movePage(G,g),this},h.movePage=function(g,y){var Y,ne;if(g>y){Y=_e[g],ne=ft[g];for(var ce=g;ce>y;ce--)_e[ce]=_e[ce-1],ft[ce]=ft[ce-1];_e[y]=Y,ft[y]=ne,this.setPage(y)}else if(g<y){Y=_e[g],ne=ft[g];for(var Ie=g;Ie<y;Ie++)_e[Ie]=_e[Ie+1],ft[Ie]=ft[Ie+1];_e[y]=Y,ft[y]=ne,this.setPage(y)}return this},h.deletePage=function(){return Ts.apply(this,arguments),this},h.__private__.text=h.text=function(g,y,Y,ne,ce){var Ie,Ne,Ze,nt,bt,Tt,Rt,lA,IA,AA=(ne=ne||{}).scope||this;if(typeof g=="number"&&typeof y=="number"&&(typeof Y=="string"||Array.isArray(Y))){var NA=Y;Y=y,y=g,g=NA}if(arguments[3]instanceof ht==0?(Ze=arguments[4],nt=arguments[5],eA(Rt=arguments[3])==="object"&&Rt!==null||(typeof Ze=="string"&&(nt=Ze,Ze=null),typeof Rt=="string"&&(nt=Rt,Rt=null),typeof Rt=="number"&&(Ze=Rt,Rt=null),ne={flags:Rt,angle:Ze,align:nt})):(S("The transform parameter of text() with a Matrix value"),IA=ce),isNaN(y)||isNaN(Y)||g==null)throw new Error("Invalid arguments passed to jsPDF.text");if(g.length===0)return AA;var FA,VA="",Gn=typeof ne.lineHeightFactor=="number"?ne.lineHeightFactor:$a,An=AA.internal.scaleFactor;function Yn(Kt){return Kt=Kt.split("	").join(Array(ne.TabLen||9).join(" ")),Rr(Kt,Rt)}function Ss(Kt){for(var Jt,mA=Kt.concat(),UA=[],zn=mA.length;zn--;)typeof(Jt=mA.shift())=="string"?UA.push(Jt):Array.isArray(Kt)&&(Jt.length===1||Jt[1]===void 0&&Jt[2]===void 0)?UA.push(Jt[0]):UA.push([Jt[0],Jt[1],Jt[2]]);return UA}function Mi(Kt,Jt){var mA;if(typeof Kt=="string")mA=Jt(Kt)[0];else if(Array.isArray(Kt)){for(var UA,zn,qs=Kt.concat(),qi=[],po=qs.length;po--;)typeof(UA=qs.shift())=="string"?qi.push(Jt(UA)[0]):Array.isArray(UA)&&typeof UA[0]=="string"&&(zn=Jt(UA[0],UA[1],UA[2]),qi.push([zn[0],zn[1],zn[2]]));mA=qi}return mA}var da=!1,ri=!0;if(typeof g=="string")da=!0;else if(Array.isArray(g)){var ni=g.concat();Ne=[];for(var ga,GA=ni.length;GA--;)(typeof(ga=ni.shift())!="string"||Array.isArray(ga)&&typeof ga[0]!="string")&&(ri=!1);da=ri}if(da===!1)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');typeof g=="string"&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var ai=Be/AA.internal.scaleFactor,ii=ai*(Gn-1);switch(ne.baseline){case"bottom":Y-=ii;break;case"top":Y+=ai-ii;break;case"hanging":Y+=ai-2*ii;break;case"middle":Y+=ai/2-ii}if((Tt=ne.maxWidth||0)>0&&(typeof g=="string"?g=AA.splitTextToSize(g,Tt):Object.prototype.toString.call(g)==="[object Array]"&&(g=g.reduce(function(Kt,Jt){return Kt.concat(AA.splitTextToSize(Jt,Tt))},[]))),Ie={text:g,x:y,y:Y,options:ne,mutex:{pdfEscape:Rr,activeFontKey:et,fonts:vt,activeFontSize:Be}},kt.publish("preProcessText",Ie),g=Ie.text,Ze=(ne=Ie.options).angle,IA instanceof ht==0&&Ze&&typeof Ze=="number"){Ze*=Math.PI/180,ne.rotationDirection===0&&(Ze=-Ze),F===R&&(Ze=-Ze);var Qs=Math.cos(Ze),Os=Math.sin(Ze);IA=new ht(Qs,Os,-Os,Qs,0,0)}else Ze&&Ze instanceof ht&&(IA=Ze);F!==R||IA||(IA=Hn),(bt=ne.charSpace||Kn)!==void 0&&(VA+=K(Q(bt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(lA=ne.horizontalScale)!==void 0&&(VA+=K(100*lA)+` Tz
`),ne.lang;var or=-1,Wn=ne.renderingMode!==void 0?ne.renderingMode:ne.stroke,ki=AA.internal.getCurrentPageInfo().pageContext;switch(Wn){case 0:case!1:case"fill":or=0;break;case 1:case!0:case"stroke":or=1;break;case 2:case"fillThenStroke":or=2;break;case 3:case"invisible":or=3;break;case 4:case"fillAndAddForClipping":or=4;break;case 5:case"strokeAndAddPathForClipping":or=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":or=6;break;case 7:case"addToPathForClipping":or=7}var ho=ki.usedRenderingMode!==void 0?ki.usedRenderingMode:-1;or!==-1?VA+=or+` Tr
`:ho!==-1&&(VA+=`0 Tr
`),or!==-1&&(ki.usedRenderingMode=or),nt=ne.align||"left";var Pr,si=Be*Gn,Ds=AA.internal.pageSize.getWidth(),Rs=vt[et];bt=ne.charSpace||Kn,Tt=ne.maxWidth||0,Rt=Object.assign({autoencode:!0,noBOM:!0},ne.flags);var pa=[],ui=function(Kt){return AA.getStringUnitWidth(Kt,{font:Rs,charSpace:bt,fontSize:Be,doKerning:!1})*Be/An};if(Object.prototype.toString.call(g)==="[object Array]"){var vr;Ne=Ss(g),nt!=="left"&&(Pr=Ne.map(ui));var Tr,ba=0;if(nt==="right"){y-=Pr[0],g=[],GA=Ne.length;for(var Xn=0;Xn<GA;Xn++)Xn===0?(Tr=Mn(y),vr=kn(Y)):(Tr=Q(ba-Pr[Xn]),vr=-si),g.push([Ne[Xn],Tr,vr]),ba=Pr[Xn]}else if(nt==="center"){y-=Pr[0]/2,g=[],GA=Ne.length;for(var ma=0;ma<GA;ma++)ma===0?(Tr=Mn(y),vr=kn(Y)):(Tr=Q((ba-Pr[ma])/2),vr=-si),g.push([Ne[ma],Tr,vr]),ba=Pr[ma]}else if(nt==="left"){g=[],GA=Ne.length;for(var Hs=0;Hs<GA;Hs++)g.push(Ne[Hs])}else if(nt==="justify"&&Rs.encoding==="Identity-H"){g=[],GA=Ne.length,Tt=Tt!==0?Tt:Ds;for(var Ki=0,bA=0;bA<GA;bA++)if(vr=bA===0?kn(Y):-si,Tr=bA===0?Mn(y):Ki,bA<GA-1){var go=Q((Tt-Pr[bA])/(Ne[bA].split(" ").length-1)),Tn=Ne[bA].split(" ");g.push([Tn[0]+" ",Tr,vr]),Ki=0;for(var yn=1;yn<Tn.length;yn++){var Ps=(ui(Tn[yn-1]+" "+Tn[yn])-ui(Tn[yn]))*An+go;yn==Tn.length-1?g.push([Tn[yn],Ps,0]):g.push([Tn[yn]+" ",Ps,0]),Ki-=Ps}}else g.push([Ne[bA],Tr,vr]);g.push(["",Ki,0])}else{if(nt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],GA=Ne.length,Tt=Tt!==0?Tt:Ds,bA=0;bA<GA;bA++){vr=bA===0?kn(Y):-si,Tr=bA===0?Mn(y):0;var Ms=Ne[bA].split(" ").length-1,ks=Ms>0?(Tt-Pr[bA])/Ms:0;bA<GA-1?pa.push(K(Q(ks))):pa.push(0),g.push([Ne[bA],Tr,vr])}}}(typeof ne.R2L=="boolean"?ne.R2L:Ve)===!0&&(g=Mi(g,function(Kt,Jt,mA){return[Kt.split("").reverse().join(""),Jt,mA]})),Ie={text:g,x:y,y:Y,options:ne,mutex:{pdfEscape:Rr,activeFontKey:et,fonts:vt,activeFontSize:Be}},kt.publish("postProcessText",Ie),g=Ie.text,FA=Ie.mutex.isHex||!1;var Ks=vt[et].encoding;Ks!=="WinAnsiEncoding"&&Ks!=="StandardEncoding"||(g=Mi(g,function(Kt,Jt,mA){return[Yn(Kt),Jt,mA]})),Ne=Ss(g),g=[];for(var Ba,Ea,wa,oi=Array.isArray(Ne[0])?1:0,Ca="",ci=function(Kt,Jt,mA){var UA="";return mA instanceof ht?(mA=typeof ne.angle=="number"?Rn(mA,new ht(1,0,0,1,Kt,Jt)):Rn(new ht(1,0,0,1,Kt,Jt),mA),F===R&&(mA=Rn(new ht(1,0,0,-1,0,0),mA)),UA=mA.join(" ")+` Tm
`):UA=K(Kt)+" "+K(Jt)+` Td
`,UA},Mr=0;Mr<Ne.length;Mr++){switch(Ca="",oi){case 1:wa=(FA?"<":"(")+Ne[Mr][0]+(FA?">":")"),Ba=parseFloat(Ne[Mr][1]),Ea=parseFloat(Ne[Mr][2]);break;case 0:wa=(FA?"<":"(")+Ne[Mr]+(FA?">":")"),Ba=Mn(y),Ea=kn(Y)}pa!==void 0&&pa[Mr]!==void 0&&(Ca=pa[Mr]+` Tw
`),Mr===0?g.push(Ca+ci(Ba,Ea,IA)+wa):oi===0?g.push(Ca+wa):oi===1&&g.push(Ca+ci(Ba,Ea,IA)+wa)}g=oi===0?g.join(` Tj
T* `):g.join(` Tj
`),g+=` Tj
`;var xn=`BT
/`;return xn+=et+" "+Be+` Tf
`,xn+=K(Be*Gn)+` TL
`,xn+=ei+`
`,xn+=VA,xn+=g,q(xn+="ET"),m[et]=!0,AA};var S0=h.__private__.clip=h.clip=function(g){return q(g==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return S0("evenodd")},h.__private__.discardPath=h.discardPath=function(){return q("n"),this};var vn=h.__private__.isValidStyle=function(g){var y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(g)!==-1&&(y=!0),y};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(g){return vn(g)&&(c=g),this};var ao=h.__private__.getStyle=h.getStyle=function(g){var y=c;switch(g){case"D":case"S":y="S";break;case"F":y="f";break;case"FD":case"DF":y="B";break;case"f":case"f*":case"B":case"B*":y=g}return y},io=h.close=function(){return q("h"),this};h.stroke=function(){return q("S"),this},h.fill=function(g){return Ri("f",g),this},h.fillEvenOdd=function(g){return Ri("f*",g),this},h.fillStroke=function(g){return Ri("B",g),this},h.fillStrokeEvenOdd=function(g){return Ri("B*",g),this};var Ri=function(g,y){eA(y)==="object"?O0(y,g):q(g)},Za=function(g){g===null||F===R&&g===void 0||(g=ao(g),q(g))};function Q0(g,y,Y,ne,ce){var Ie=new is(y||this.boundingBox,Y||this.xStep,ne||this.yStep,this.gState,ce||this.matrix);Ie.stream=this.stream;var Ne=g+"$$"+this.cloneIndex+++"$$";return Qr(Ne,Ie),Ie}var O0=function(g,y){var Y=tA[g.key],ne=ot[Y];if(ne instanceof bi)q("q"),q(D0(y)),ne.gState&&h.setGState(ne.gState),q(g.matrix.toString()+" cm"),q("/"+Y+" sh"),q("Q");else if(ne instanceof is){var ce=new ht(1,0,0,-1,0,Ai());g.matrix&&(ce=ce.multiply(g.matrix||Hn),Y=Q0.call(ne,g.key,g.boundingBox,g.xStep,g.yStep,ce).id),q("q"),q("/Pattern cs"),q("/"+Y+" scn"),ne.gState&&h.setGState(ne.gState),q(y),q("Q")}},D0=function(g){switch(g){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},ys=h.moveTo=function(g,y){return q(K(Q(g))+" "+K(M(y))+" m"),this},so=h.lineTo=function(g,y){return q(K(Q(g))+" "+K(M(y))+" l"),this},tn=h.curveTo=function(g,y,Y,ne,ce,Ie){return q([K(Q(g)),K(M(y)),K(Q(Y)),K(M(ne)),K(Q(ce)),K(M(Ie)),"c"].join(" ")),this};h.__private__.line=h.line=function(g,y,Y,ne,ce){if(isNaN(g)||isNaN(y)||isNaN(Y)||isNaN(ne)||!vn(ce))throw new Error("Invalid arguments passed to jsPDF.line");return F===U?this.lines([[Y-g,ne-y]],g,y,[1,1],ce||"S"):this.lines([[Y-g,ne-y]],g,y,[1,1]).stroke()},h.__private__.lines=h.lines=function(g,y,Y,ne,ce,Ie){var Ne,Ze,nt,bt,Tt,Rt,lA,IA,AA,NA,FA,VA;if(typeof g=="number"&&(VA=Y,Y=y,y=g,g=VA),ne=ne||[1,1],Ie=Ie||!1,isNaN(y)||isNaN(Y)||!Array.isArray(g)||!Array.isArray(ne)||!vn(ce)||typeof Ie!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ys(y,Y),Ne=ne[0],Ze=ne[1],bt=g.length,NA=y,FA=Y,nt=0;nt<bt;nt++)(Tt=g[nt]).length===2?(NA=Tt[0]*Ne+NA,FA=Tt[1]*Ze+FA,so(NA,FA)):(Rt=Tt[0]*Ne+NA,lA=Tt[1]*Ze+FA,IA=Tt[2]*Ne+NA,AA=Tt[3]*Ze+FA,NA=Tt[4]*Ne+NA,FA=Tt[5]*Ze+FA,tn(Rt,lA,IA,AA,NA,FA));return Ie&&io(),Za(ce),this},h.path=function(g){for(var y=0;y<g.length;y++){var Y=g[y],ne=Y.c;switch(Y.op){case"m":ys(ne[0],ne[1]);break;case"l":so(ne[0],ne[1]);break;case"c":tn.apply(this,ne);break;case"h":io()}}return this},h.__private__.rect=h.rect=function(g,y,Y,ne,ce){if(isNaN(g)||isNaN(y)||isNaN(Y)||isNaN(ne)||!vn(ce))throw new Error("Invalid arguments passed to jsPDF.rect");return F===U&&(ne=-ne),q([K(Q(g)),K(M(y)),K(Q(Y)),K(Q(ne)),"re"].join(" ")),Za(ce),this},h.__private__.triangle=h.triangle=function(g,y,Y,ne,ce,Ie,Ne){if(isNaN(g)||isNaN(y)||isNaN(Y)||isNaN(ne)||isNaN(ce)||isNaN(Ie)||!vn(Ne))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Y-g,ne-y],[ce-Y,Ie-ne],[g-ce,y-Ie]],g,y,[1,1],Ne,!0),this},h.__private__.roundedRect=h.roundedRect=function(g,y,Y,ne,ce,Ie,Ne){if(isNaN(g)||isNaN(y)||isNaN(Y)||isNaN(ne)||isNaN(ce)||isNaN(Ie)||!vn(Ne))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ze=4/3*(Math.SQRT2-1);return ce=Math.min(ce,.5*Y),Ie=Math.min(Ie,.5*ne),this.lines([[Y-2*ce,0],[ce*Ze,0,ce,Ie-Ie*Ze,ce,Ie],[0,ne-2*Ie],[0,Ie*Ze,-ce*Ze,Ie,-ce,Ie],[2*ce-Y,0],[-ce*Ze,0,-ce,-Ie*Ze,-ce,-Ie],[0,2*Ie-ne],[0,-Ie*Ze,ce*Ze,-Ie,ce,-Ie]],g+ce,y,[1,1],Ne,!0),this},h.__private__.ellipse=h.ellipse=function(g,y,Y,ne,ce){if(isNaN(g)||isNaN(y)||isNaN(Y)||isNaN(ne)||!vn(ce))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ie=4/3*(Math.SQRT2-1)*Y,Ne=4/3*(Math.SQRT2-1)*ne;return ys(g+Y,y),tn(g+Y,y-Ne,g+Ie,y-ne,g,y-ne),tn(g-Ie,y-ne,g-Y,y-Ne,g-Y,y),tn(g-Y,y+Ne,g-Ie,y+ne,g,y+ne),tn(g+Ie,y+ne,g+Y,y+Ne,g+Y,y),Za(ce),this},h.__private__.circle=h.circle=function(g,y,Y,ne){if(isNaN(g)||isNaN(y)||isNaN(Y)||!vn(ne))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,y,Y,Y,ne)},h.setFont=function(g,y,Y){return Y&&(y=J(y,Y)),et=to(g,y,{disableWarning:!1}),this};var R0=h.__private__.getFont=h.getFont=function(){return vt[to.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var g,y,Y={};for(g in yt)if(yt.hasOwnProperty(g))for(y in Y[g]=[],yt[g])yt[g].hasOwnProperty(y)&&Y[g].push(y);return Y},h.addFont=function(g,y,Y,ne,ce){var Ie=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ie.indexOf(arguments[3])!==-1?ce=arguments[3]:arguments[3]&&Ie.indexOf(arguments[3])==-1&&(Y=J(Y,ne)),Ju.call(this,g,y,Y,ce=ce||"Identity-H")};var $a,xs=e.lineWidth||.200025,H0=h.__private__.getLineWidth=h.getLineWidth=function(){return xs},mt=h.__private__.setLineWidth=h.setLineWidth=function(g){return xs=g,q(K(Q(g))+" w"),this};h.__private__.setLineDash=at.API.setLineDash=at.API.setLineDashPattern=function(g,y){if(g=g||[],y=y||0,isNaN(y)||!Array.isArray(g))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return g=g.map(function(Y){return K(Q(Y))}).join(" "),y=K(Q(y)),q("["+g+"] "+y+" d"),this};var P0=h.__private__.getLineHeight=h.getLineHeight=function(){return Be*$a};h.__private__.getLineHeight=h.getLineHeight=function(){return Be*$a};var M0=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(g){return typeof(g=g||1.15)=="number"&&($a=g),this},k0=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return $a};M0(e.lineHeight);var Mn=h.__private__.getHorizontalCoordinate=function(g){return Q(g)},kn=h.__private__.getVerticalCoordinate=function(g){return F===R?g:ft[G].mediaBox.topRightY-ft[G].mediaBox.bottomLeftY-Q(g)},K0=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(g){return K(Mn(g))},q0=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(g){return K(kn(g))},Hi=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return Bn(Hi)},h.__private__.setStrokeColor=h.setDrawColor=function(g,y,Y,ne){return Hi=$r({ch1:g,ch2:y,ch3:Y,ch4:ne,pdfColorType:"draw",precision:2}),q(Hi),this};var Is=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return Bn(Is)},h.__private__.setFillColor=h.setFillColor=function(g,y,Y,ne){return Is=$r({ch1:g,ch2:y,ch3:Y,ch4:ne,pdfColorType:"fill",precision:2}),q(Is),this};var ei=e.textColor||"0 g",j0=h.__private__.getTextColor=h.getTextColor=function(){return Bn(ei)};h.__private__.setTextColor=h.setTextColor=function(g,y,Y,ne){return ei=$r({ch1:g,ch2:y,ch3:Y,ch4:ne,pdfColorType:"text",precision:3}),this};var Kn=e.charSpace,V0=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(Kn||0)};h.__private__.setCharSpace=h.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Kn=g,this};var Fs=0;h.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},h.__private__.setLineCap=h.setLineCap=function(g){var y=h.CapJoinStyles[g];if(y===void 0)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Fs=y,q(y+" J"),this};var Ls=0;h.__private__.setLineJoin=h.setLineJoin=function(g){var y=h.CapJoinStyles[g];if(y===void 0)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ls=y,q(y+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return q(K(Q(g))+" M"),this},h.GState=Wc,h.setGState=function(g){(g=typeof g=="string"?dt[wt[g]]:uo(null,g)).equals(sA)||(q("/"+g.id+" gs"),sA=g)};var uo=function(g,y){if(!g||!wt[g]){var Y=!1;for(var ne in dt)if(dt.hasOwnProperty(ne)&&dt[ne].equals(y)){Y=!0;break}if(Y)y=dt[ne];else{var ce="GS"+(Object.keys(dt).length+1).toString(10);dt[ce]=y,y.id=ce}return g&&(wt[g]=y.id),kt.publish("addGState",y),y}};h.addGState=function(g,y){return uo(g,y),this},h.saveGraphicsState=function(){return q("q"),Wt.push({key:et,size:Be,color:ei}),this},h.restoreGraphicsState=function(){q("Q");var g=Wt.pop();return et=g.key,Be=g.size,ei=g.color,sA=null,this},h.setCurrentTransformationMatrix=function(g){return q(g.toString()+" cm"),this},h.comment=function(g){return q("#"+g),this};var qn=function(g,y){var Y=g||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Y},set:function(Ie){isNaN(Ie)||(Y=parseFloat(Ie))}});var ne=y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ne},set:function(Ie){isNaN(Ie)||(ne=parseFloat(Ie))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Ie){ce=Ie.toString()}}),this},_s=function(g,y,Y,ne){qn.call(this,g,y),this.type="rect";var ce=Y||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Ne){isNaN(Ne)||(ce=parseFloat(Ne))}});var Ie=ne||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ie},set:function(Ne){isNaN(Ne)||(Ie=parseFloat(Ne))}}),this},Pi=function(){this.page=Lt,this.currentPage=G,this.pages=_e.slice(0),this.pagesContext=ft.slice(0),this.x=Ge,this.y=jt,this.matrix=St,this.width=Us(G),this.height=co(G),this.outputDestination=Ke,this.id="",this.objectNumber=-1};Pi.prototype.restore=function(){Lt=this.page,G=this.currentPage,ft=this.pagesContext,_e=this.pages,Ge=this.x,jt=this.y,St=this.matrix,oo(G,this.width),jn(G,this.height),Ke=this.outputDestination};var Ns=function(g,y,Y,ne,ce){mn.push(new Pi),Lt=G=0,_e=[],Ge=g,jt=y,St=ce,vs([Y,ne])};for(var ti in h.beginFormObject=function(g,y,Y,ne,ce){return Ns(g,y,Y,ne,ce),this},h.endFormObject=function(g){return(function(y){if(Dn[y])mn.pop().restore();else{var Y=new Pi,ne="Xo"+(Object.keys(er).length+1).toString(10);Y.id=ne,Dn[y]=ne,er[ne]=Y,kt.publish("addFormObject",Y),mn.pop().restore()}})(g),this},h.doFormObject=function(g,y){var Y=er[Dn[g]];return q("q"),q(y.toString()+" cm"),q("/"+Y.id+" Do"),q("Q"),this},h.getFormObject=function(g){var y=er[Dn[g]];return{x:y.x,y:y.y,width:y.width,height:y.height,matrix:y.matrix}},h.save=function(g,y){return g=g||"generated.pdf",(y=y||{}).returnPromise=y.returnPromise||!1,y.returnPromise===!1?(gi(Di(Cn()),g),typeof gi.unload=="function"&&pt.setTimeout&&setTimeout(gi.unload,911),this):new Promise(function(Y,ne){try{var ce=gi(Di(Cn()),g);typeof gi.unload=="function"&&pt.setTimeout&&setTimeout(gi.unload,911),Y(ce)}catch(Ie){ne(Ie.message)}})},at.API)at.API.hasOwnProperty(ti)&&(ti==="events"&&at.API.events.length?(function(g,y){var Y,ne,ce;for(ce=y.length-1;ce!==-1;ce--)Y=y[ce][0],ne=y[ce][1],g.subscribe.apply(g,[Y].concat(typeof ne=="function"?[ne]:ne))})(kt,at.API.events):h[ti]=at.API[ti]);function Us(g){return ft[g].mediaBox.topRightX-ft[g].mediaBox.bottomLeftX}function oo(g,y){ft[g].mediaBox.topRightX=y+ft[g].mediaBox.bottomLeftX}function co(g){return ft[g].mediaBox.topRightY-ft[g].mediaBox.bottomLeftY}function jn(g,y){ft[g].mediaBox.topRightY=y+ft[g].mediaBox.bottomLeftY}var Vn=h.getPageWidth=function(g){return Us(g=g||G)/Oe},lo=h.setPageWidth=function(g,y){oo(g,y*Oe)},Ai=h.getPageHeight=function(g){return co(g=g||G)/Oe},fo=h.setPageHeight=function(g,y){jn(g,y*Oe)};return h.internal={pdfEscape:Rr,getStyle:ao,getFont:R0,getFontSize:He,getCharSpace:V0,getTextColor:j0,getLineHeight:P0,getLineHeightFactor:k0,getLineWidth:H0,write:Me,getHorizontalCoordinate:Mn,getVerticalCoordinate:kn,getCoordinateString:K0,getVerticalCoordinateString:q0,collections:{},newObject:hA,newAdditionalObject:Xa,newObjectDeferred:PA,newObjectDeferredBegin:jA,getFilters:en,putStream:Dr,events:kt,scaleFactor:Oe,pageSize:{getWidth:function(){return Vn(G)},setWidth:function(g){lo(G,g)},getHeight:function(){return Ai(G)},setHeight:function(g){fo(G,g)}},encryptionOptions:l,encryption:_A,getEncryptor:function(g){return l!==null?_A.encryptor(g,0):function(y){return y}},output:ro,getNumberOfPages:eo,get pages(){return _e},out:q,f2:E,f3:I,getPageInfo:Pn,getPageInfoByObjId:no,getCurrentPageInfo:U0,getPDFVersion:v,Point:qn,Rectangle:_s,Matrix:ht,hasHotfix:Hr},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return Vn(G)},set:function(g){lo(G,g)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Ai(G)},set:function(g){fo(G,g)},enumerable:!0,configurable:!0}),(function(g){for(var y=0,Y=$e.length;y<Y;y++){var ne=Ju.call(this,g[y][0],g[y][1],g[y][2],$e[y][3],!0);p===!1&&(m[ne]=!0);var ce=g[y][0].split("-");zu({id:ne,fontName:ce[0],fontStyle:ce[1]||""})}kt.publish("addFonts",{fonts:vt,dictionary:yt})}).call(h,$e),et="F1",Zu(n,A),kt.publish("initialized"),h}As.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},As.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},As.prototype.hexToBytes=function(e){for(var t=[],A=0;A<e.length;A+=2)t.push(String.fromCharCode(parseInt(e.substr(A,2),16)));return t.join("")},As.prototype.processOwnerPassword=function(e,t){return nh(rh(t).substr(0,5),e)},As.prototype.encryptor=function(e,t){var A=rh(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return nh(A,r)}},Wc.prototype.equals=function(e){var t,A="id,objectNumber,equals";if(!e||eA(e)!==eA(this))return!1;var r=0;for(t in this)if(!(A.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;r++}for(t in e)e.hasOwnProperty(t)&&A.indexOf(t)<0&&r--;return r===0},at.API={events:[]},at.version="3.0.4";var pA=at.API,hd=1,Ni=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Wi=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Bt=function(e){return e.toFixed(2)},_a=function(e){return e.toFixed(5)};pA.__acroform__={};var Cr=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},pg=function(e){return e*hd},Ln=function(e){var t=new E5,A=ze.internal.getHeight(e)||0,r=ze.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Bt(r)),Number(Bt(A))],t},$8=pA.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},ex=pA.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},tx=pA.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},vA=pA.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return tx(e,t-1)},TA=pA.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $8(e,t-1)},yA=pA.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ex(e,t-1)},Ax=pA.__acroform__.calculateCoordinates=function(e,t){var A=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,n=e[0],a=e[1],i=e[2],s=e[3],u={};return u.lowerLeft_X=A(n)||0,u.lowerLeft_Y=r(a+s)||0,u.upperRight_X=A(n+i)||0,u.upperRight_Y=r(a)||0,[Number(Bt(u.lowerLeft_X)),Number(Bt(u.lowerLeft_Y)),Number(Bt(u.upperRight_X)),Number(Bt(u.upperRight_Y))]},rx=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],A=e._V||e.DV,r=ah(e,A),n=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+n+" "+Bt(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=Ln(e);return a.scope=e.scope,a.stream=t.join(`
`),a}},ah=function(e,t){var A=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");n=e.multiline?n.map(function(E){return E.split(`
`)}):n.map(function(E){return[E]});var a=A,i=ze.internal.getHeight(e)||0;i=i<0?-i:i;var s=ze.internal.getWidth(e)||0;s=s<0?-s:s;var u=function(E,I,Q){if(E+1<n.length){var M=I+" "+n[E+1][0];return Wo(M,e,Q).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,l,p=Wo("3",e,a).height,m=e.multiline?i-a:(i-p)/2,h=m+=2,w=0,v=0,T=0;if(a<=0){t=`(...) Tj
`,t+="% Width of Text: "+Wo(t,e,a=12).width+", FieldWidth:"+s+`
`;break}for(var C="",U=0,R=0;R<n.length;R++)if(n.hasOwnProperty(R)){var F=!1;if(n[R].length!==1&&T!==n[R].length-1){if((p+2)*(U+2)+2>i)continue e;C+=n[R][T],F=!0,v=R,R--}else{C=(C+=n[R][T]+" ").substr(C.length-1)==" "?C.substr(0,C.length-1):C;var D=parseInt(R),P=u(D,C,a),J=R>=n.length-1;if(P&&!J){C+=" ",T=0;continue}if(P||J){if(J)v=D;else if(e.multiline&&(p+2)*(U+2)+2>i)continue e}else{if(!e.multiline||(p+2)*(U+2)+2>i)continue e;v=D}}for(var K="",S=w;S<=v;S++){var Ae=n[S];if(e.multiline){if(S===v){K+=Ae[T]+" ",T=(T+1)%Ae.length;continue}if(S===w){K+=Ae[Ae.length-1]+" ";continue}}K+=Ae[0]+" "}switch(K=K.substr(K.length-1)==" "?K.substr(0,K.length-1):K,l=Wo(K,e,a).width,e.textAlign){case"right":c=s-l-2;break;case"center":c=(s-l)/2;break;default:c=2}t+=Bt(c)+" "+Bt(h)+` Td
`,t+="("+Ni(K)+`) Tj
`,t+=-Bt(c)+` 0 Td
`,h=-(a+2),l=0,w=F?v:v+1,U++,C=""}break}return r.text=t,r.fontSize=a,r},Wo=function(e,t,A){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),n=t.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A)*1.5,width:n}},nx={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ax=function(e,t){var A={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===A.type&&r.object===A.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(A)},ix=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(gn.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(nx)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");hd=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new w5,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var a=r[n];a.objId=void 0,a.hasAnnotation&&ax(a,A)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(A){if(A.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(A){(function(r,n){var a=!r;for(var i in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(i)){var s=r[i],u=[],c=s.Rect;if(s.Rect&&(s.Rect=Ax(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ze.createDefaultAppearanceStream(s),eA(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(u=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var l=rx(s);u.push({key:"AP",value:"<</N "+l+">>"}),n.internal.acroformPlugin.xForms.push(l)}if(s.appearanceStreamContent){var p="";for(var m in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(m)){var h=s.appearanceStreamContent[m];if(p+="/"+m+" ",p+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var w=h[i];typeof w=="function"&&(w=w.call(n,s)),p+="/"+i+" "+w+" ",n.internal.acroformPlugin.xForms.indexOf(w)>=0||n.internal.acroformPlugin.xForms.push(w)}}else typeof(w=h)=="function"&&(w=w.call(n,s)),p+="/"+i+" "+w,n.internal.acroformPlugin.xForms.indexOf(w)>=0||n.internal.acroformPlugin.xForms.push(w);p+=">>"}u.push({key:"AP",value:`<<
`+p+">>"})}n.internal.putStream({additionalKeyValues:u,objectId:s.objId}),n.internal.out("endobj")}a&&(function(v,T){for(var C in v)if(v.hasOwnProperty(C)){var U=C,R=v[C];T.internal.newObjectDeferredBegin(R.objId,!0),eA(R)==="object"&&typeof R.putStream=="function"&&R.putStream(),delete v[U]}})(n.internal.acroformPlugin.xForms,n)})(A,e)}),e.internal.acroformPlugin.isInitialized=!0}},B5=pA.__acroform__.arrayToPdfArray=function(e,t,A){var r=function(i){return i};if(Array.isArray(e)){for(var n="[",a=0;a<e.length;a++)switch(a!==0&&(n+=" "),eA(e[a])){case"boolean":case"number":case"object":n+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(t!==void 0&&A&&(r=A.internal.getEncryptor(t)),n+="("+Ni(r(e[a].toString()))+")"):n+=e[a].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ef=function(e,t,A){var r=function(n){return n};return t!==void 0&&A&&(r=A.internal.getEncryptor(t)),(e=e||"").toString(),"("+Ni(r(e))+")"},Un=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Un.prototype.toString=function(){return this.objId+" 0 R"},Un.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Un.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var A in t)if(Object.getOwnPropertyDescriptor(this,t[A]).configurable===!1){var r=t[A],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:B5(n,this.objId,this.scope)}):n instanceof Un?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var E5=function(){Un.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 e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(A){e=A.trim()},get:function(){return e||null}})};Cr(E5,Un);var w5=function(){Un.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var A=function(r){return r};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+Ni(A(e))+")"}},set:function(A){e=A}})};Cr(w5,Un);var gn=function e(){Un.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(C){if(isNaN(C))throw new Error('Invalid value "'+C+'" for attribute F supplied.');t=C}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!vA(t,3)},set:function(C){C?this.F=TA(t,3):this.F=yA(t,3)}});var A=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return A},set:function(C){if(isNaN(C))throw new Error('Invalid value "'+C+'" for attribute Ff supplied.');A=C}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(C){r=C!==void 0?C:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(C){r[0]=C}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(C){r[1]=C}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(C){r[2]=C}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(C){r[3]=C}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(C){switch(C){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=C;break;default:throw new Error('Invalid value "'+C+'" 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"+e.FieldNum++}var C=function(U){return U};return this.scope&&(C=this.scope.internal.getEncryptor(this.objId)),"("+Ni(C(a))+")"},set:function(C){a=C.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(C){a=C}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(C){i=C}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(C){s=C}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(C){u=C}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/hd:c},set:function(C){c=C}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(C){l=C}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof Xc||this instanceof wi))return ef(p,this.objId,this.scope)},set:function(C){C=C.toString(),p=C}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof KA==0?ef(m,this.objId,this.scope):m},set:function(C){C=C.toString(),m=this instanceof KA==0?C.substr(0,1)==="("?Wi(C.substr(1,C.length-2)):Wi(C):C}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof KA==1?Wi(m.substr(1,m.length-1)):m},set:function(C){C=C.toString(),m=this instanceof KA==1?"/"+C:C}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(C){this.V=C}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof KA==0?ef(h,this.objId,this.scope):h},set:function(C){C=C.toString(),h=this instanceof KA==0?C.substr(0,1)==="("?Wi(C.substr(1,C.length-2)):Wi(C):C}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof KA==1?Wi(h.substr(1,h.length-1)):h},set:function(C){C=C.toString(),h=this instanceof KA==1?"/"+C:C}}),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 w,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(C){C=!!C,v=C}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(w)return w},set:function(C){w=C}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,1)},set:function(C){C?this.Ff=TA(this.Ff,1):this.Ff=yA(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,2)},set:function(C){C?this.Ff=TA(this.Ff,2):this.Ff=yA(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,3)},set:function(C){C?this.Ff=TA(this.Ff,3):this.Ff=yA(this.Ff,3)}});var T=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(T!==null)return T},set:function(C){if([0,1,2].indexOf(C)===-1)throw new Error('Invalid value "'+C+'" for attribute Q supplied.');T=C}}),Object.defineProperty(this,"textAlign",{get:function(){var C;switch(T){case 0:default:C="left";break;case 1:C="center";break;case 2:C="right"}return C},configurable:!0,enumerable:!0,set:function(C){switch(C){case"right":case 2:T=2;break;case"center":case 1:T=1;break;default:T=0}}})};Cr(gn,Un);var cs=function(){gn.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){e=A}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return B5(t,this.objId,this.scope)},set:function(A){var r,n;n=[],typeof(r=A)=="string"&&(n=(function(a,i,s){s||(s=1);for(var u,c=[];u=i.exec(a);)c.push(u[s]);return c})(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(A){t=A,this.sort&&t.sort()},this.addOption=function(A){A=(A=A||"").toString(),t.push(A),this.sort&&t.sort()},this.removeOption=function(A,r){for(r=r||!1,A=(A=A||"").toString();t.indexOf(A)!==-1&&(t.splice(t.indexOf(A),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,18)},set:function(A){A?this.Ff=TA(this.Ff,18):this.Ff=yA(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,19)},set:function(A){this.combo===!0&&(A?this.Ff=TA(this.Ff,19):this.Ff=yA(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,20)},set:function(A){A?(this.Ff=TA(this.Ff,20),t.sort()):this.Ff=yA(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,22)},set:function(A){A?this.Ff=TA(this.Ff,22):this.Ff=yA(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,23)},set:function(A){A?this.Ff=TA(this.Ff,23):this.Ff=yA(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,27)},set:function(A){A?this.Ff=TA(this.Ff,27):this.Ff=yA(this.Ff,27)}}),this.hasAppearanceStream=!1};Cr(cs,gn);var ls=function(){cs.call(this),this.fontName="helvetica",this.combo=!1};Cr(ls,cs);var fs=function(){ls.call(this),this.combo=!0};Cr(fs,ls);var yc=function(){fs.call(this),this.edit=!0};Cr(yc,fs);var KA=function(){gn.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,15)},set:function(A){A?this.Ff=TA(this.Ff,15):this.Ff=yA(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,16)},set:function(A){A?this.Ff=TA(this.Ff,16):this.Ff=yA(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,17)},set:function(A){A?this.Ff=TA(this.Ff,17):this.Ff=yA(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,26)},set:function(A){A?this.Ff=TA(this.Ff,26):this.Ff=yA(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(a){return a};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+Ni(A(t[r]))+")");return n.push(">>"),n.join(`
`)}},set:function(A){eA(A)==="object"&&(t=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(A){typeof A=="string"&&(t.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(A){e="/"+A}})};Cr(KA,gn);var xc=function(){KA.call(this),this.pushButton=!0};Cr(xc,KA);var hs=function(){KA.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Cr(hs,KA);var Xc=function(){var e,t;gn.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n}});var A,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var a,i=[];for(a in i.push("<<"),r)i.push("/"+a+" ("+Ni(n(r[a]))+")");return i.push(">>"),i.join(`
`)},set:function(n){eA(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(n){A=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(n){A="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ze.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Cr(Xc,gn),hs.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var A=this.Kids[t];A.appearanceStreamContent=e.createAppearanceStream(A.optionName),A.caption=e.getCA()}},hs.prototype.createOption=function(e){var t=new Xc;return t.Parent=this,t.optionName=e,this.Kids.push(t),sx.call(this.scope,t),t};var Ic=function(){KA.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ze.CheckBox.createAppearanceStream()};Cr(Ic,KA);var wi=function(){gn.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,13)},set:function(t){t?this.Ff=TA(this.Ff,13):this.Ff=yA(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,21)},set:function(t){t?this.Ff=TA(this.Ff,21):this.Ff=yA(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,23)},set:function(t){t?this.Ff=TA(this.Ff,23):this.Ff=yA(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,24)},set:function(t){t?this.Ff=TA(this.Ff,24):this.Ff=yA(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,25)},set:function(t){t?this.Ff=TA(this.Ff,25):this.Ff=yA(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,26)},set:function(t){t?this.Ff=TA(this.Ff,26):this.Ff=yA(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Cr(wi,gn);var Fc=function(){wi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!vA(this.Ff,14)},set:function(e){e?this.Ff=TA(this.Ff,14):this.Ff=yA(this.Ff,14)}}),this.password=!0};Cr(Fc,wi);var ze={CheckBox:{createAppearanceStream:function(){return{N:{On:ze.CheckBox.YesNormal},D:{On:ze.CheckBox.YesPushDown,Off:ze.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ln(e);t.scope=e.scope;var A=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),a=ah(e,e.caption);return A.push("0.749023 g"),A.push("0 0 "+Bt(ze.internal.getWidth(e))+" "+Bt(ze.internal.getHeight(e))+" re"),A.push("f"),A.push("BMC"),A.push("q"),A.push("0 0 1 rg"),A.push("/"+r+" "+Bt(a.fontSize)+" Tf "+n),A.push("BT"),A.push(a.text),A.push("ET"),A.push("Q"),A.push("EMC"),t.stream=A.join(`
`),t},YesNormal:function(e){var t=Ln(e);t.scope=e.scope;var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],a=ze.internal.getHeight(e),i=ze.internal.getWidth(e),s=ah(e,e.caption);return n.push("1 g"),n.push("0 0 "+Bt(i)+" "+Bt(a)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+Bt(i-1)+" "+Bt(a-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+A+" "+Bt(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(e){var t=Ln(e);t.scope=e.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+Bt(ze.internal.getWidth(e))+" "+Bt(ze.internal.getHeight(e))+" re"),A.push("f"),t.stream=A.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ze.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ze.RadioButton.Circle.YesNormal,t.D[e]=ze.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ln(e);t.scope=e.scope;var A=[],r=ze.internal.getWidth(e)<=ze.internal.getHeight(e)?ze.internal.getWidth(e)/4:ze.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=ze.internal.Bezier_C,a=Number((r*n).toFixed(5));return A.push("q"),A.push("1 0 0 1 "+_a(ze.internal.getWidth(e)/2)+" "+_a(ze.internal.getHeight(e)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),A.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),A.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),A.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(`
`),t},YesPushDown:function(e){var t=Ln(e);t.scope=e.scope;var A=[],r=ze.internal.getWidth(e)<=ze.internal.getHeight(e)?ze.internal.getWidth(e)/4:ze.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),a=Number((n*ze.internal.Bezier_C).toFixed(5)),i=Number((r*ze.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+_a(ze.internal.getWidth(e)/2)+" "+_a(ze.internal.getHeight(e)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),A.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),A.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),A.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+_a(ze.internal.getWidth(e)/2)+" "+_a(ze.internal.getHeight(e)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(`
`),t},OffPushDown:function(e){var t=Ln(e);t.scope=e.scope;var A=[],r=ze.internal.getWidth(e)<=ze.internal.getHeight(e)?ze.internal.getWidth(e)/4:ze.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),a=Number((n*ze.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+_a(ze.internal.getWidth(e)/2)+" "+_a(ze.internal.getHeight(e)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),A.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),A.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),A.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),A.push("f"),A.push("Q"),t.stream=A.join(`
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ze.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ze.RadioButton.Cross.YesNormal,t.D[e]=ze.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ln(e);t.scope=e.scope;var A=[],r=ze.internal.calculateCross(e);return A.push("q"),A.push("1 1 "+Bt(ze.internal.getWidth(e)-2)+" "+Bt(ze.internal.getHeight(e)-2)+" re"),A.push("W"),A.push("n"),A.push(Bt(r.x1.x)+" "+Bt(r.x1.y)+" m"),A.push(Bt(r.x2.x)+" "+Bt(r.x2.y)+" l"),A.push(Bt(r.x4.x)+" "+Bt(r.x4.y)+" m"),A.push(Bt(r.x3.x)+" "+Bt(r.x3.y)+" l"),A.push("s"),A.push("Q"),t.stream=A.join(`
`),t},YesPushDown:function(e){var t=Ln(e);t.scope=e.scope;var A=ze.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+Bt(ze.internal.getWidth(e))+" "+Bt(ze.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Bt(ze.internal.getWidth(e)-2)+" "+Bt(ze.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Bt(A.x1.x)+" "+Bt(A.x1.y)+" m"),r.push(Bt(A.x2.x)+" "+Bt(A.x2.y)+" l"),r.push(Bt(A.x4.x)+" "+Bt(A.x4.y)+" m"),r.push(Bt(A.x3.x)+" "+Bt(A.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(e){var t=Ln(e);t.scope=e.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+Bt(ze.internal.getWidth(e))+" "+Bt(ze.internal.getHeight(e))+" re"),A.push("f"),t.stream=A.join(`
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,A=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+A}};ze.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ze.internal.getWidth(e),A=ze.internal.getHeight(e),r=Math.min(t,A);return{x1:{x:(t-r)/2,y:(A-r)/2+r},x2:{x:(t-r)/2+r,y:(A-r)/2},x3:{x:(t-r)/2,y:(A-r)/2},x4:{x:(t-r)/2+r,y:(A-r)/2+r}}}},ze.internal.getWidth=function(e){var t=0;return eA(e)==="object"&&(t=pg(e.Rect[2])),t},ze.internal.getHeight=function(e){var t=0;return eA(e)==="object"&&(t=pg(e.Rect[3])),t};var sx=pA.addField=function(e){if(ix(this,e),!(e instanceof gn))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};pA.AcroFormChoiceField=cs,pA.AcroFormListBox=ls,pA.AcroFormComboBox=fs,pA.AcroFormEditBox=yc,pA.AcroFormButton=KA,pA.AcroFormPushButton=xc,pA.AcroFormRadioButton=hs,pA.AcroFormCheckBox=Ic,pA.AcroFormTextField=wi,pA.AcroFormPasswordField=Fc,pA.AcroFormAppearance=ze,pA.AcroForm={ChoiceField:cs,ListBox:ls,ComboBox:fs,EditBox:yc,Button:KA,PushButton:xc,RadioButton:hs,CheckBox:Ic,TextField:wi,PasswordField:Fc,Appearance:ze},at.AcroForm={ChoiceField:cs,ListBox:ls,ComboBox:fs,EditBox:yc,Button:KA,PushButton:xc,RadioButton:hs,CheckBox:Ic,TextField:wi,PasswordField:Fc,Appearance:ze};at.AcroForm;function C5(e){return e.reduce(function(t,A,r){return t[A]=r,t},{})}(function(e){var t="addImage_";e.__addimage__={};var A="UNKNOWN",r={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=e.__addimage__.getImageFileTypeByImageData=function(E,I){var Q,M,X,$,ae,te=A;if((I=I||A)==="RGBA"||E.data!==void 0&&E.data instanceof Uint8ClampedArray&&"height"in E&&"width"in E)return"RGBA";if(P(E))for(ae in r)for(X=r[ae],Q=0;Q<X.length;Q+=1){for($=!0,M=0;M<X[Q].length;M+=1)if(X[Q][M]!==void 0&&X[Q][M]!==E[M]){$=!1;break}if($===!0){te=ae;break}}else for(ae in r)for(X=r[ae],Q=0;Q<X.length;Q+=1){for($=!0,M=0;M<X[Q].length;M+=1)if(X[Q][M]!==void 0&&X[Q][M]!==E.charCodeAt(M)){$=!1;break}if($===!0){te=ae;break}}return te===A&&I!==A&&(te=I),te},a=function E(I){for(var Q=this.internal.write,M=this.internal.putStream,X=(0,this.internal.getFilters)();X.indexOf("FlateEncode")!==-1;)X.splice(X.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var $=[];if($.push({key:"Type",value:"/XObject"}),$.push({key:"Subtype",value:"/Image"}),$.push({key:"Width",value:I.width}),$.push({key:"Height",value:I.height}),I.colorSpace===C.INDEXED?$.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):($.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===C.DEVICE_CMYK&&$.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),$.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&$.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)&&I.transparency.length>0){for(var ae="",te=0,le=I.transparency.length;te<le;te++)ae+=I.transparency[te]+" "+I.transparency[te]+" ";$.push({key:"Mask",value:"["+ae+"]"})}I.sMask!==void 0&&$.push({key:"SMask",value:I.objectId+1+" 0 R"});var Te=I.filter!==void 0?["/"+I.filter]:void 0;if(M({data:I.data,additionalKeyValues:$,alreadyAppliedFilters:Te,objectId:I.objectId}),Q("endobj"),"sMask"in I&&I.sMask!==void 0){var ye,_=(ye=I.sMaskBitsPerComponent)!==null&&ye!==void 0?ye:I.bitsPerComponent,G={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:_,data:I.sMask};"filter"in I&&(G.decodeParameters="/Predictor ".concat(I.predictor," /Colors 1 /BitsPerComponent ").concat(_," /Columns ").concat(I.width),G.filter=I.filter),E.call(this,G)}if(I.colorSpace===C.INDEXED){var z=this.internal.newObject();M({data:K(new Uint8Array(I.palette)),objectId:z}),Q("endobj")}},i=function(){var E=this.internal.collections[t+"images"];for(var I in E)a.call(this,E[I])},s=function(){var E,I=this.internal.collections[t+"images"],Q=this.internal.write;for(var M in I)Q("/I"+(E=I[M]).index,E.objectId,"0","R")},u=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var E=this.internal.collections[t+"images"];return u.call(this),E},l=function(){return Object.keys(this.internal.collections[t+"images"]).length},p=function(E){return typeof e["process"+E.toUpperCase()]=="function"},m=function(E){return eA(E)==="object"&&E.nodeType===1},h=function(E,I){if(E.nodeName==="IMG"&&E.hasAttribute("src")){var Q=""+E.getAttribute("src");if(Q.indexOf("data:image/")===0)return Tc(unescape(Q).split("base64,").pop());var M=e.loadFile(Q,!0);if(M!==void 0)return M}if(E.nodeName==="CANVAS"){if(E.width===0||E.height===0)throw new Error("Given canvas must have data. Canvas width: "+E.width+", height: "+E.height);var X;switch(I){case"PNG":X="image/png";break;case"WEBP":X="image/webp";break;default:X="image/jpeg"}return Tc(E.toDataURL(X,1).split("base64,").pop())}},w=function(E){var I=this.internal.collections[t+"images"];if(I){for(var Q in I)if(E===I[Q].alias)return I[Q]}},v=function(E,I,Q){return E||I||(E=-96,I=-96),E<0&&(E=-1*Q.width*72/E/this.internal.scaleFactor),I<0&&(I=-1*Q.height*72/I/this.internal.scaleFactor),E===0&&(E=I*Q.width/Q.height),I===0&&(I=E*Q.height/Q.width),[E,I]},T=function(E,I,Q,M,X,$){var ae=v.call(this,Q,M,X),te=this.internal.getCoordinateString,le=this.internal.getVerticalCoordinateString,Te=c.call(this);if(Q=ae[0],M=ae[1],Te[X.index]=X,$){$*=Math.PI/180;var ye=Math.cos($),_=Math.sin($),G=function(re){return re.toFixed(4)},z=[G(ye),G(_),G(-1*_),G(ye),0,0,"cm"]}this.internal.write("q"),$?(this.internal.write([1,"0","0",1,te(E),le(I+M),"cm"].join(" ")),this.internal.write(z.join(" ")),this.internal.write([te(Q),"0","0",te(M),"0","0","cm"].join(" "))):this.internal.write([te(Q),"0","0",te(M),te(E),le(I+M),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+X.index+" Do"),this.internal.write("Q")},C=e.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"};e.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 U=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},R=e.__addimage__.sHashCode=function(E){var I,Q,M=0;if(typeof E=="string")for(Q=E.length,I=0;I<Q;I++)M=(M<<5)-M+E.charCodeAt(I),M|=0;else if(P(E))for(Q=E.byteLength/2,I=0;I<Q;I++)M=(M<<5)-M+E[I],M|=0;return M},F=e.__addimage__.validateStringAsBase64=function(E){(E=E||"").toString().trim();var I=!0;return E.length===0&&(I=!1),E.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(E.substr(0,E.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(E.substr(-2))===!1&&(I=!1),I},D=e.__addimage__.extractImageFromDataUrl=function(E){if(E==null||!(E=E.trim()).startsWith("data:"))return null;var I=E.indexOf(",");return I<0?null:E.substring(0,I).trim().endsWith("base64")?E.substring(I+1):null};e.__addimage__.isArrayBuffer=function(E){return E instanceof ArrayBuffer};var P=e.__addimage__.isArrayBufferView=function(E){return E instanceof Int8Array||E instanceof Uint8Array||E instanceof Uint8ClampedArray||E instanceof Int16Array||E instanceof Uint16Array||E instanceof Int32Array||E instanceof Uint32Array||E instanceof Float32Array||E instanceof Float64Array},J=e.__addimage__.binaryStringToUint8Array=function(E){for(var I=E.length,Q=new Uint8Array(I),M=0;M<I;M++)Q[M]=E.charCodeAt(M);return Q},K=e.__addimage__.arrayBufferToBinaryString=function(E){for(var I="",Q=P(E)?E:new Uint8Array(E),M=0;M<Q.length;M+=8192)I+=String.fromCharCode.apply(null,Q.subarray(M,M+8192));return I};e.addImage=function(){var E,I,Q,M,X,$,ae,te,le;if(typeof arguments[1]=="number"?(I=A,Q=arguments[1],M=arguments[2],X=arguments[3],$=arguments[4],ae=arguments[5],te=arguments[6],le=arguments[7]):(I=arguments[1],Q=arguments[2],M=arguments[3],X=arguments[4],$=arguments[5],ae=arguments[6],te=arguments[7],le=arguments[8]),eA(E=arguments[0])==="object"&&!m(E)&&"imageData"in E){var Te=E;E=Te.imageData,I=Te.format||I||A,Q=Te.x||Q||0,M=Te.y||M||0,X=Te.w||Te.width||X,$=Te.h||Te.height||$,ae=Te.alias||ae,te=Te.compression||te,le=Te.rotation||Te.angle||le}var ye=this.internal.getFilters();if(te===void 0&&ye.indexOf("FlateEncode")!==-1&&(te="SLOW"),isNaN(Q)||isNaN(M))throw new Error("Invalid coordinates passed to jsPDF.addImage");u.call(this);var _=S.call(this,E,I,ae,te);return T.call(this,Q,M,X,$,_,le),this};var S=function(E,I,Q,M){var X,$,ae;if(typeof E=="string"&&n(E)===A){E=unescape(E);var te=Ae(E,!1);(te!==""||(te=e.loadFile(E,!0))!==void 0)&&(E=te)}if(m(E)&&(E=h(E,I)),I=n(E,I),!p(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((ae=Q)==null||ae.length===0)&&(Q=(function(le){return typeof le=="string"||P(le)?R(le):P(le.data)?R(le.data):null})(E)),(X=w.call(this,Q))||(E instanceof Uint8Array||I==="RGBA"||($=E,E=J(E)),X=this["process"+I.toUpperCase()](E,l.call(this),Q,(function(le){return le&&typeof le=="string"&&(le=le.toUpperCase()),le in e.image_compression?le:U.NONE})(M),$)),!X)throw new Error("An unknown error occurred whilst processing the image.");return X},Ae=e.__addimage__.convertBase64ToBinaryString=function(E,I){I=typeof I!="boolean"||I;var Q,M="";if(typeof E=="string"){var X;Q=(X=D(E))!==null&&X!==void 0?X:E;try{M=Tc(Q)}catch($){if(I)throw F(Q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+$.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return M};e.getImageProperties=function(E){var I,Q,M="";if(m(E)&&(E=h(E)),typeof E=="string"&&n(E)===A&&((M=Ae(E,!1))===""&&(M=e.loadFile(E)||""),E=M),Q=n(E),!p(Q))throw new Error("addImage does not support files of type '"+Q+"', please ensure that a plugin for '"+Q+"' support is added.");if(E instanceof Uint8Array||(E=J(E)),!(I=this["process"+Q.toUpperCase()](E)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=Q,I}})(at.API),(function(e){var t=function(A){if(A!==void 0&&A!="")return!0};at.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(A){for(var r,n,a,i=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,u=this.internal.getPageInfoByObjId(A.objId),c=A.pageContext.annotations,l=!1,p=0;p<c.length&&!l;p++)switch((r=c[p]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(l!=0){this.internal.write("/Annots [");for(var m=0;m<c.length;m++){r=c[m];var h=this.internal.pdfEscape,w=this.internal.getEncryptor(A.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),T=this.internal.newAdditionalObject(),C=this.internal.getEncryptor(v.objId),U=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(n="/Rect ["+i(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+i(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+h(C(r.contents))+")",a+=" /Popup "+T.objId+" 0 R",a+=" /P "+u.objId+" 0 R",a+=" /T ("+h(C(U))+") >>",v.content=a;var R=v.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+i(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+i(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+R,r.open&&(a+=" /Open true"),a+=" >>",T.content=a,this.internal.write(v.objId,"0 R",T.objId,"0 R");break;case"freetext":n="/Rect ["+i(r.bounds.x)+" "+s(r.bounds.y)+" "+i(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var F=r.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(w(r.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+F+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var D=this.annotations._nameMap[r.options.name];r.options.pageNumber=D.page,r.options.top=D.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(w(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var P=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+P+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(A){var r=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":r.pageContext.annotations.push(A)}},e.link=function(A,r,n,a,i){var s=this.internal.getCurrentPageInfo(),u=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:u(A),y:c(r),w:u(A+n),h:c(r+a)},options:i,type:"link"})},e.textWithLink=function(A,r,n,a){var i,s,u=this.getTextWidth(A),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var l=this.splitTextToSize(A,s).length;i=Math.ceil(c*l)}else s=u,i=c;return this.text(A,r,n,a),n+=.2*c,a.align==="center"&&(r-=u/2),a.align==="right"&&(r-=u),this.link(r,n-c,s,i,a),u},e.getTextWidth=function(A){var r=this.internal.getFontSize();return this.getStringUnitWidth(A)*r/this.internal.scaleFactor}})(at.API),(function(e){var t={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]},A={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(v){return t[v.charCodeAt(0)]!==void 0},i=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},s=e.__arabicParser__.isArabicEndLetter=function(v){return i(v)&&a(v)&&t[v.charCodeAt(0)].length<=2},u=e.__arabicParser__.isArabicAlfLetter=function(v){return i(v)&&n.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return i(v)&&a(v)&&t[v.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return i(v)&&a(v)&&t[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return i(v)&&a(v)&&t[v.charCodeAt(0)].length>=3};var l=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return i(v)&&a(v)&&t[v.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(v){var T=0,C=A,U="",R=0;for(T=0;T<v.length;T+=1)C[v.charCodeAt(T)]!==void 0?(R++,typeof(C=C[v.charCodeAt(T)])=="number"&&(U+=String.fromCharCode(C),C=A,R=0),T===v.length-1&&(C=A,U+=v.charAt(T-(R-1)),T-=R-1,R=0)):(C=A,U+=v.charAt(T-R),T-=R,R=0);return U};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&r[v.charCodeAt(0)]!==void 0};var m=e.__arabicParser__.getCorrectForm=function(v,T,C){return i(v)?a(v)===!1?-1:!c(v)||!i(T)&&!i(C)||!i(C)&&s(T)||s(v)&&!i(T)||s(v)&&u(T)||s(v)&&s(T)?0:l(v)&&i(T)&&!s(T)&&i(C)&&c(C)?3:s(v)||!i(C)?1:2:-1},h=function(v){var T=0,C=0,U=0,R="",F="",D="",P=(v=v||"").split("\\s+"),J=[];for(T=0;T<P.length;T+=1){for(J.push(""),C=0;C<P[T].length;C+=1)R=P[T][C],F=P[T][C-1],D=P[T][C+1],i(R)?(U=m(R,F,D),J[T]+=U!==-1?String.fromCharCode(t[R.charCodeAt(0)][U]):R):J[T]+=R;J[T]=p(J[T])}return J.join(" ")},w=e.__arabicParser__.processArabic=e.processArabic=function(){var v,T=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,C=[];if(Array.isArray(T)){var U=0;for(C=[],U=0;U<T.length;U+=1)Array.isArray(T[U])?C.push([h(T[U][0]),T[U][1],T[U][2]]):C.push([h(T[U])]);v=C}else v=h(T);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",w])})(at.API),at.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=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 "+t+" 0 R")})),this},(function(e){var t=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(s){A=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(s){i=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(A,r){var n;if((A=A||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(at.API),(function(e){var t={left:0,top:0,bottom:0,right:0},A=!1,r=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({},t),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var u=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return u},set:function(v){u=v}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var l=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return l},set:function(v){l=v}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(v){p=v}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(v){m=v}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(v){h=v}});var w=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return w},set:function(v){w=v}}),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]},e.setHeaderFunction=function(u){return r.call(this),this.internal.__cell__.headerFunction=typeof u=="function"?u:void 0,this},e.getTextDimensions=function(u,c){r.call(this);var l=(c=c||{}).fontSize||this.getFontSize(),p=c.font||this.getFont(),m=c.scaleFactor||this.internal.scaleFactor,h=0,w=0,v=0,T=this;if(!Array.isArray(u)&&typeof u!="string"){if(typeof u!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");u=String(u)}var C=c.maxWidth;C>0?typeof u=="string"?u=this.splitTextToSize(u,C):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(R,F){return R.concat(T.splitTextToSize(F,C))},[])):u=Array.isArray(u)?u:[u];for(var U=0;U<u.length;U++)h<(v=this.getStringUnitWidth(u[U],{font:p})*l)&&(h=v);return h!==0&&(w=u.length),{w:h/=m,h:Math.max((w*l*this.getLineHeightFactor()-l*(this.getLineHeightFactor()-1))/m,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var u=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(u.left,u.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var i=e.cell=function(){var u;u=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var c=this.internal.__cell__.lastCell,l=this.internal.__cell__.padding,p=this.internal.__cell__.margins||t,m=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===u.lineNumber?(u.x=(c.x||0)+(c.width||0),u.y=c.y||0):c.y+c.height+u.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),u.y=p.top,h&&m&&(this.printHeaderRow(u.lineNumber,!0),u.y+=m[0].height)):u.y=c.y+c.height||u.y),u.text[0]!==void 0&&(this.rect(u.x,u.y,u.width,u.height,A===!0?"FD":void 0),u.align==="right"?this.text(u.text,u.x+u.width-l,u.y+l,{align:"right",baseline:"top"}):u.align==="center"?this.text(u.text,u.x+u.width/2,u.y+l,{align:"center",baseline:"top",maxWidth:u.width-l-l}):this.text(u.text,u.x+l,u.y+l,{align:"left",baseline:"top",maxWidth:u.width-l-l})),this.internal.__cell__.lastCell=u,this};e.table=function(u,c,l,p,m){if(r.call(this),!l)throw new Error("No data for PDF table.");var h,w,v,T,C=[],U=[],R=[],F={},D={},P=[],J=[],K=(m=m||{}).autoSize||!1,S=m.printHeaders!==!1,Ae=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,E=m.margins||Object.assign({width:this.getPageWidth()},t),I=typeof m.padding=="number"?m.padding:3,Q=m.headerBackgroundColor||"#c8c8c8",M=m.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=S,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=Ae,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=Q,this.internal.__cell__.headerTextColor=M,this.setFontSize(Ae),p==null)U=C=Object.keys(l[0]),R=C.map(function(){return"left"});else if(Array.isArray(p)&&eA(p[0])==="object")for(C=p.map(function(Te){return Te.name}),U=p.map(function(Te){return Te.prompt||Te.name||""}),R=p.map(function(Te){return Te.align||"left"}),h=0;h<p.length;h+=1)D[p[h].name]=.7499990551181103*p[h].width;else Array.isArray(p)&&typeof p[0]=="string"&&(U=C=p,R=C.map(function(){return"left"}));if(K||Array.isArray(p)&&typeof p[0]=="string")for(h=0;h<C.length;h+=1){for(F[T=C[h]]=l.map(function(Te){return Te[T]}),this.setFont(void 0,"bold"),P.push(this.getTextDimensions(U[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),w=F[T],this.setFont(void 0,"normal"),v=0;v<w.length;v+=1)P.push(this.getTextDimensions(w[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);D[T]=Math.max.apply(null,P)+I+I,P=[]}if(S){var X={};for(h=0;h<C.length;h+=1)X[C[h]]={},X[C[h]].text=U[h],X[C[h]].align=R[h];var $=s.call(this,X,D);J=C.map(function(Te){return new a(u,c,D[Te],$,X[Te].text,void 0,X[Te].align)}),this.setTableHeaderRow(J),this.printHeaderRow(1,!1)}var ae=p.reduce(function(Te,ye){return Te[ye.name]=ye.align,Te},{});for(h=0;h<l.length;h+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:h,data:l[h]},this);var te=s.call(this,l[h],D);for(v=0;v<C.length;v+=1){var le=l[h][C[v]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:h,col:v,data:le},this),i.call(this,new a(u,c,D[C[v]],te,le,h+2,ae[C[v]]))}}return this.internal.__cell__.table_x=u,this.internal.__cell__.table_y=c,this};var s=function(u,c){var l=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(u).map(function(h){var w=u[h];return this.splitTextToSize(w.hasOwnProperty("text")?w.text:w,c[h]-l-l)},this).map(function(h){return this.getLineHeightFactor()*h.length*p/m+l+l},this).reduce(function(h,w){return Math.max(h,w)},0)};e.setTableHeaderRow=function(u){r.call(this),this.internal.__cell__.tableHeaderRow=u},e.printHeaderRow=function(u,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var l;if(A=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){l=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(l.y=this.internal.__cell__.margins.top||0,m.push(l)),l.lineNumber=u;var w=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),i.call(this,l),this.setTextColor(w)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),A=!1}})(at.API);var v5={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},T5=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ih=C5(T5),y5=[100,200,300,400,500,600,700,800,900],ux=C5(y5);function tf(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),A=(function(a){return v5[a=a||"normal"]?a:"normal"})(e.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(e.weight),n=(function(a){return typeof ih[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:t,style:A,weight:r,stretch:n,src:e.src||[],ref:e.ref||{name:t,style:[n,A,r].join(" ")}}}function bg(e,t,A,r){var n;for(n=A;n>=0&&n<t.length;n+=r)if(e[t[n]])return e[t[n]];for(n=A;n>=0&&n<t.length;n-=r)if(e[t[n]])return e[t[n]]}var ox={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},mg={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Bg(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Eg(e){return e.trimLeft()}function cx(e,t){for(var A=0;A<e.length;){if(e.charAt(A)===t)return[e.substring(0,A),e.substring(A+1)];A+=1}return null}function lx(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Xo,wg,Cg,Xi,zo,vg,Tg,yg,Af=["times"];function xg(e,t,A,r,n){var a=4,i=Fg;switch(n){case at.API.image_compression.FAST:a=1,i=Ig;break;case at.API.image_compression.MEDIUM:a=6,i=Lg;break;case at.API.image_compression.SLOW:a=9,i=_g}e=(function(u,c,l,p){for(var m,h=u.length/c,w=new Uint8Array(u.length+h),v=[fx,Ig,Fg,Lg,_g],T=0;T<h;T+=1){var C=T*c,U=u.subarray(C,C+c);if(p)w.set(p(U,l,m),C+T);else{for(var R=v.length,F=[],D=0;D<R;D+=1)F[D]=v[D](U,l,m);var P=dx(F.concat());w.set(F[P],C+T)}m=U}return w})(e,t,Math.ceil(A*r/8),i);var s=$f(e,{level:a});return at.API.__addimage__.arrayBufferToBinaryString(s)}function fx(e){var t=Array.apply([],e);return t.unshift(0),t}function Ig(e,t){var A=e.length,r=[];r[0]=1;for(var n=0;n<A;n+=1){var a=e[n-t]||0;r[n+1]=e[n]-a+256&255}return r}function Fg(e,t,A){var r=e.length,n=[];n[0]=2;for(var a=0;a<r;a+=1){var i=A&&A[a]||0;n[a+1]=e[a]-i+256&255}return n}function Lg(e,t,A){var r=e.length,n=[];n[0]=3;for(var a=0;a<r;a+=1){var i=e[a-t]||0,s=A&&A[a]||0;n[a+1]=e[a]+256-(i+s>>>1)&255}return n}function _g(e,t,A){var r=e.length,n=[];n[0]=4;for(var a=0;a<r;a+=1){var i=hx(e[a-t]||0,A&&A[a]||0,A&&A[a-t]||0);n[a+1]=e[a]-i+256&255}return n}function hx(e,t,A){if(e===t&&t===A)return e;var r=Math.abs(t-A),n=Math.abs(e-A),a=Math.abs(e+t-A-A);return r<=n&&r<=a?e:n<=a?t:A}function dx(e){var t=e.map(function(A){return A.reduce(function(r,n){return r+Math.abs(n)},0)});return t.indexOf(Math.min.apply(null,t))}function rf(e,t,A){var r=t*A,n=Math.floor(r/8),a=16-(r-8*n+A),i=(1<<A)-1;return x5(e,n)>>a&i}function Ng(e,t,A,r){var n=A*r,a=Math.floor(n/8),i=16-(n-8*a+r),s=(1<<r)-1,u=(t&s)<<i;(function(c,l,p){if(l+1<c.byteLength)c.setUint16(l,p,!1);else{var m=p>>8&255;c.setUint8(l,m)}})(e,a,x5(e,a)&~(s<<i)&65535|u)}function x5(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function gx(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var A=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,n=e[t++],a=n>>7,i=1<<1+(7&n);e[t++],e[t++];var s=null,u=null;a&&(s=t,u=i,t+=3*i);var c=!0,l=[],p=0,m=null,h=0,w=null;for(this.width=A,this.height=r;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,w=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((E=e[t++])>=0))throw Error("Invalid block size");if(E===0)break;t+=E}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[t++];p=e[t++]|e[t++]<<8,m=e[t++],1&v||(m=null),h=v>>2&7,t++;break;case 254:for(;;){if(!((E=e[t++])>=0))throw Error("Invalid block size");if(E===0)break;t+=E}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var T=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,U=e[t++]|e[t++]<<8,R=e[t++]|e[t++]<<8,F=e[t++],D=F>>6&1,P=1<<1+(7&F),J=s,K=u,S=!1;F>>7&&(S=!0,J=t,K=P,t+=3*P);var Ae=t;for(t++;;){var E;if(!((E=e[t++])>=0))throw Error("Invalid block size");if(E===0)break;t+=E}l.push({x:T,y:C,width:U,height:R,has_local_palette:S,palette_offset:J,palette_size:K,data_offset:Ae,data_length:t-Ae,transparent_index:m,interlaced:!!D,delay:p,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return w},this.frameInfo=function(I){if(I<0||I>=l.length)throw new Error("Frame index out of range.");return l[I]},this.decodeAndBlitFrameBGRA=function(I,Q){var M=this.frameInfo(I),X=M.width*M.height,$=new Uint8Array(X);Ug(e,M.data_offset,$,X);var ae=M.palette_offset,te=M.transparent_index;te===null&&(te=256);var le=M.width,Te=A-le,ye=le,_=4*(M.y*A+M.x),G=4*((M.y+M.height)*A+M.x),z=_,re=4*Te;M.interlaced===!0&&(re+=4*A*7);for(var se=8,fe=0,ge=$.length;fe<ge;++fe){var Ee=$[fe];if(ye===0&&(ye=le,(z+=re)>=G&&(re=4*Te+4*A*(se-1),z=_+(le+Te)*(se<<1),se>>=1)),Ee===te)z+=4;else{var Ce=e[ae+3*Ee],_e=e[ae+3*Ee+1],qe=e[ae+3*Ee+2];Q[z++]=qe,Q[z++]=_e,Q[z++]=Ce,Q[z++]=255}--ye}},this.decodeAndBlitFrameRGBA=function(I,Q){var M=this.frameInfo(I),X=M.width*M.height,$=new Uint8Array(X);Ug(e,M.data_offset,$,X);var ae=M.palette_offset,te=M.transparent_index;te===null&&(te=256);var le=M.width,Te=A-le,ye=le,_=4*(M.y*A+M.x),G=4*((M.y+M.height)*A+M.x),z=_,re=4*Te;M.interlaced===!0&&(re+=4*A*7);for(var se=8,fe=0,ge=$.length;fe<ge;++fe){var Ee=$[fe];if(ye===0&&(ye=le,(z+=re)>=G&&(re=4*Te+4*A*(se-1),z=_+(le+Te)*(se<<1),se>>=1)),Ee===te)z+=4;else{var Ce=e[ae+3*Ee],_e=e[ae+3*Ee+1],qe=e[ae+3*Ee+2];Q[z++]=Ce,Q[z++]=_e,Q[z++]=qe,Q[z++]=255}--ye}}}function Ug(e,t,A,r){for(var n=e[t++],a=1<<n,i=a+1,s=i+1,u=n+1,c=(1<<u)-1,l=0,p=0,m=0,h=e[t++],w=new Int32Array(4096),v=null;;){for(;l<16&&h!==0;)p|=e[t++]<<l,l+=8,h===1?h=e[t++]:--h;if(l<u)break;var T=p&c;if(p>>=u,l-=u,T!==a){if(T===i)break;for(var C=T<s?T:v,U=0,R=C;R>a;)R=w[R]>>8,++U;var F=R;if(m+U+(C!==T?1:0)>r)return void $t.log("Warning, gif stream longer than expected.");A[m++]=F;var D=m+=U;for(C!==T&&(A[m++]=F),R=C;U--;)R=w[R],A[--D]=255&R,R>>=8;v!==null&&s<4096&&(w[s++]=v<<8|F,s>=c+1&&u<12&&(++u,c=c<<1|1)),v=T}else s=i+1,c=(1<<(u=n+1))-1,v=null}return m!==r&&$t.log("Warning, gif stream shorter than expected."),A}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function nf(e){var t,A,r,n,a,i=Math.floor,s=new Array(64),u=new Array(64),c=new Array(64),l=new Array(64),p=new Array(65535),m=new Array(65535),h=new Array(64),w=new Array(64),v=[],T=0,C=7,U=new Array(64),R=new Array(64),F=new Array(64),D=new Array(256),P=new Array(2048),J=[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],K=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],Ae=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[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],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Q=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],X=[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 $(_,G){for(var z=0,re=0,se=new Array,fe=1;fe<=16;fe++){for(var ge=1;ge<=_[fe];ge++)se[G[re]]=[],se[G[re]][0]=z,se[G[re]][1]=fe,re++,z++;z*=2}return se}function ae(_){for(var G=_[0],z=_[1]-1;z>=0;)G&1<<z&&(T|=1<<C),z--,--C<0&&(T==255?(te(255),te(0)):te(T),C=7,T=0)}function te(_){v.push(_)}function le(_){te(_>>8&255),te(255&_)}function Te(_,G,z,re,se){for(var fe,ge=se[0],Ee=se[240],Ce=(function(Be,Pe){var He,Ve,rt,Ot,Et,ut,Nt,Ft,et,Oe,Ge=0;for(et=0;et<8;++et){He=Be[Ge],Ve=Be[Ge+1],rt=Be[Ge+2],Ot=Be[Ge+3],Et=Be[Ge+4],ut=Be[Ge+5],Nt=Be[Ge+6];var jt=He+(Ft=Be[Ge+7]),St=He-Ft,vt=Ve+Nt,yt=Ve-Nt,Wt=rt+ut,ot=rt-ut,tA=Ot+Et,dt=Ot-Et,wt=jt+tA,sA=jt-tA,Lt=vt+Wt,ft=vt-Wt;Be[Ge]=wt+Lt,Be[Ge+4]=wt-Lt;var kt=.707106781*(ft+sA);Be[Ge+2]=sA+kt,Be[Ge+6]=sA-kt;var Wa=.382683433*((wt=dt+ot)-(ft=yt+St)),er=.5411961*wt+Wa,Dn=1.306562965*ft+Wa,mn=.707106781*(Lt=ot+yt),ht=St+mn,Rn=St-mn;Be[Ge+5]=Rn+er,Be[Ge+3]=Rn-er,Be[Ge+1]=ht+Dn,Be[Ge+7]=ht-Dn,Ge+=8}for(Ge=0,et=0;et<8;++et){He=Be[Ge],Ve=Be[Ge+8],rt=Be[Ge+16],Ot=Be[Ge+24],Et=Be[Ge+32],ut=Be[Ge+40],Nt=Be[Ge+48];var Hn=He+(Ft=Be[Ge+56]),Qr=He-Ft,Or=Ve+Nt,hA=Ve-Nt,PA=rt+ut,jA=rt-ut,Xa=Ot+Et,ha=Ot-Et,Zr=Hn+Xa,Bn=Hn-Xa,$r=Or+PA,en=Or-PA;Be[Ge]=Zr+$r,Be[Ge+32]=Zr-$r;var Dr=.707106781*(en+Bn);Be[Ge+16]=Bn+Dr,Be[Ge+48]=Bn-Dr;var za=.382683433*((Zr=ha+jA)-(en=hA+Qr)),En=.5411961*Zr+za,Ja=1.306562965*en+za,Ui=.707106781*($r=jA+hA),Si=Qr+Ui,Qi=Qr-Ui;Be[Ge+40]=Qi+En,Be[Ge+24]=Qi-En,Be[Ge+8]=Si+Ja,Be[Ge+56]=Si-Ja,Ge++}for(et=0;et<64;++et)Oe=Be[et]*Pe[et],h[et]=Oe>0?Oe+.5|0:Oe-.5|0;return h})(_,G),_e=0;_e<64;++_e)w[J[_e]]=Ce[_e];var qe=w[0]-z;z=w[0],qe==0?ae(re[0]):(ae(re[m[fe=32767+qe]]),ae(p[fe]));for(var Ke=63;Ke>0&&w[Ke]==0;)Ke--;if(Ke==0)return ae(ge),z;for(var Je,q=1;q<=Ke;){for(var Me=q;w[q]==0&&q<=Ke;)++q;var it=q-Me;if(it>=16){Je=it>>4;for(var $e=1;$e<=Je;++$e)ae(Ee);it&=15}fe=32767+w[q],ae(se[(it<<4)+m[fe]]),ae(p[fe]),q++}return Ke!=63&&ae(ge),z}function ye(_){_=Math.min(Math.max(_,1),100),a!=_&&((function(G){for(var z=[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],re=0;re<64;re++){var se=i((z[re]*G+50)/100);se=Math.min(Math.max(se,1),255),s[J[re]]=se}for(var fe=[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],ge=0;ge<64;ge++){var Ee=i((fe[ge]*G+50)/100);Ee=Math.min(Math.max(Ee,1),255),u[J[ge]]=Ee}for(var Ce=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_e=0,qe=0;qe<8;qe++)for(var Ke=0;Ke<8;Ke++)c[_e]=1/(s[J[_e]]*Ce[qe]*Ce[Ke]*8),l[_e]=1/(u[J[_e]]*Ce[qe]*Ce[Ke]*8),_e++})(_<50?Math.floor(5e3/_):Math.floor(200-2*_)),a=_)}this.encode=function(_,G){G&&ye(G),v=new Array,T=0,C=7,le(65496),le(65504),le(16),te(74),te(70),te(73),te(70),te(0),te(1),te(1),te(0),le(1),le(1),te(0),te(0),(function(){le(65499),le(132),te(0);for(var Ve=0;Ve<64;Ve++)te(s[Ve]);te(1);for(var rt=0;rt<64;rt++)te(u[rt])})(),(function(Ve,rt){le(65472),le(17),te(8),le(rt),le(Ve),te(3),te(1),te(17),te(0),te(2),te(17),te(1),te(3),te(17),te(1)})(_.width,_.height),(function(){le(65476),le(418),te(0);for(var Ve=0;Ve<16;Ve++)te(K[Ve+1]);for(var rt=0;rt<=11;rt++)te(S[rt]);te(16);for(var Ot=0;Ot<16;Ot++)te(Ae[Ot+1]);for(var Et=0;Et<=161;Et++)te(E[Et]);te(1);for(var ut=0;ut<16;ut++)te(I[ut+1]);for(var Nt=0;Nt<=11;Nt++)te(Q[Nt]);te(17);for(var Ft=0;Ft<16;Ft++)te(M[Ft+1]);for(var et=0;et<=161;et++)te(X[et])})(),le(65498),le(12),te(3),te(1),te(0),te(2),te(17),te(3),te(17),te(0),te(63),te(0);var z=0,re=0,se=0;T=0,C=7,this.encode.displayName="_encode_";for(var fe,ge,Ee,Ce,_e,qe,Ke,Je,q,Me=_.data,it=_.width,$e=_.height,Be=4*it,Pe=0;Pe<$e;){for(fe=0;fe<Be;){for(_e=Be*Pe+fe,Ke=-1,Je=0,q=0;q<64;q++)qe=_e+(Je=q>>3)*Be+(Ke=4*(7&q)),Pe+Je>=$e&&(qe-=Be*(Pe+1+Je-$e)),fe+Ke>=Be&&(qe-=fe+Ke-Be+4),ge=Me[qe++],Ee=Me[qe++],Ce=Me[qe++],U[q]=(P[ge]+P[Ee+256|0]+P[Ce+512|0]>>16)-128,R[q]=(P[ge+768|0]+P[Ee+1024|0]+P[Ce+1280|0]>>16)-128,F[q]=(P[ge+1280|0]+P[Ee+1536|0]+P[Ce+1792|0]>>16)-128;z=Te(U,c,z,t,r),re=Te(R,l,re,A,n),se=Te(F,l,se,A,n),fe+=32}Pe+=8}if(C>=0){var He=[];He[1]=C+1,He[0]=(1<<C+1)-1,ae(He)}return le(65497),new Uint8Array(v)},e=e||50,(function(){for(var _=String.fromCharCode,G=0;G<256;G++)D[G]=_(G)})(),t=$(K,S),A=$(I,Q),r=$(Ae,E),n=$(M,X),(function(){for(var _=1,G=2,z=1;z<=15;z++){for(var re=_;re<G;re++)m[32767+re]=z,p[32767+re]=[],p[32767+re][1]=z,p[32767+re][0]=re;for(var se=-(G-1);se<=-_;se++)m[32767+se]=z,p[32767+se]=[],p[32767+se][1]=z,p[32767+se][0]=G-1+se;_<<=1,G<<=1}})(),(function(){for(var _=0;_<256;_++)P[_]=19595*_,P[_+256|0]=38470*_,P[_+512|0]=7471*_+32768,P[_+768|0]=-11059*_,P[_+1024|0]=-21709*_,P[_+1280|0]=32768*_+8421375,P[_+1536|0]=-27439*_,P[_+1792|0]=-5329*_})(),ye(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function un(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,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 Sg(e){function t(S){if(!S)throw Error("assert :P")}function A(S,Ae,E){for(var I=0;4>I;I++)if(S[Ae+I]!=E.charCodeAt(I))return!0;return!1}function r(S,Ae,E,I,Q){for(var M=0;M<Q;M++)S[Ae+M]=E[I+M]}function n(S,Ae,E,I){for(var Q=0;Q<I;Q++)S[Ae+Q]=E}function a(S){return new Int32Array(S)}function i(S,Ae){for(var E=[],I=0;I<S;I++)E.push(new Ae);return E}function s(S,Ae){var E=[];return(function I(Q,M,X){for(var $=X[M],ae=0;ae<$&&(Q.push(X.length>M+1?[]:new Ae),!(X.length<M+1));ae++)I(Q[ae],M+1,X)})(E,0,S),E}var u=function(){var S=this;function Ae(o,f){for(var b=1<<f-1>>>0;o&b;)b>>>=1;return b?(o&b-1)+b:o}function E(o,f,b,B,x){t(!(B%b));do o[f+(B-=b)]=x;while(0<B)}function I(o,f,b,B,x){if(t(2328>=x),512>=x)var L=a(512);else if((L=a(x))==null)return 0;return(function(N,O,H,j,ie,be){var V,ue,he=O,ve=1<<H,pe=a(16),xe=a(16);for(t(ie!=0),t(j!=null),t(N!=null),t(0<H),ue=0;ue<ie;++ue){if(15<j[ue])return 0;++pe[j[ue]]}if(pe[0]==ie)return 0;for(xe[1]=0,V=1;15>V;++V){if(pe[V]>1<<V)return 0;xe[V+1]=xe[V]+pe[V]}for(ue=0;ue<ie;++ue)V=j[ue],0<j[ue]&&(be[xe[V]++]=ue);if(xe[15]==1)return(j=new Q).g=0,j.value=be[0],E(N,he,1,ve,j),ve;var Fe,Qe=-1,Ue=ve-1,st=0,Xe=1,xt=1,tt=1<<H;for(ue=0,V=1,ie=2;V<=H;++V,ie<<=1){if(Xe+=xt<<=1,0>(xt-=pe[V]))return 0;for(;0<pe[V];--pe[V])(j=new Q).g=V,j.value=be[ue++],E(N,he+st,ie,tt,j),st=Ae(st,V)}for(V=H+1,ie=2;15>=V;++V,ie<<=1){if(Xe+=xt<<=1,0>(xt-=pe[V]))return 0;for(;0<pe[V];--pe[V]){if(j=new Q,(st&Ue)!=Qe){for(he+=tt,Fe=1<<(Qe=V)-H;15>Qe&&!(0>=(Fe-=pe[Qe]));)++Qe,Fe<<=1;ve+=tt=1<<(Fe=Qe-H),N[O+(Qe=st&Ue)].g=Fe+H,N[O+Qe].value=he-O-Qe}j.g=V-H,j.value=be[ue++],E(N,he+(st>>H),ie,tt,j),st=Ae(st,V)}}return Xe!=2*xe[15]-1?0:ve})(o,f,b,B,x,L)}function Q(){this.value=this.g=0}function M(){this.value=this.g=0}function X(){this.G=i(5,Q),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=i(ui,M)}function $(o,f,b,B){t(o!=null),t(f!=null),t(2147483648>B),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=f,o.pa=b,o.Jd=f,o.Yc=b+B,o.Zc=4<=B?b+B-4+1:b,ge(o)}function ae(o,f){for(var b=0;0<f--;)b|=Ce(o,128)<<f;return b}function te(o,f){var b=ae(o,f);return Ee(o)?-b:b}function le(o,f,b,B){var x,L=0;for(t(o!=null),t(f!=null),t(4294967288>B),o.Sb=B,o.Ra=0,o.u=0,o.h=0,4<B&&(B=4),x=0;x<B;++x)L+=f[b+x]<<8*x;o.Ra=L,o.bb=B,o.oa=f,o.pa=b}function Te(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<ba-8>>>0,++o.bb,o.u-=8;re(o)&&(o.h=1,o.u=0)}function ye(o,f){if(t(0<=f),!o.h&&f<=Tr){var b=z(o)&vr[f];return o.u+=f,Te(o),b}return o.h=1,o.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function G(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function z(o){return o.Ra>>>(o.u&ba-1)>>>0}function re(o){return t(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>ba}function se(o,f){o.u=f,o.h=re(o)}function fe(o){o.u>=Xn&&(t(o.u>=Xn),Te(o))}function ge(o){t(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(t(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function Ee(o){return ae(o,1)}function Ce(o,f){var b=o.Ca;0>o.b&&ge(o);var B=o.b,x=b*f>>>8,L=(o.I>>>B>x)+0;for(L?(b-=x,o.I-=x+1<<B>>>0):b=x+1,B=b,x=0;256<=B;)x+=8,B>>=8;return B=7^x+ma[B],o.b-=B,o.Ca=(b<<B)-1,L}function _e(o,f,b){o[f+0]=b>>24&255,o[f+1]=b>>16&255,o[f+2]=b>>8&255,o[f+3]=255&b}function qe(o,f){return o[f+0]|o[f+1]<<8}function Ke(o,f){return qe(o,f)|o[f+2]<<16}function Je(o,f){return qe(o,f)|qe(o,f+2)<<16}function q(o,f){var b=1<<f;return t(o!=null),t(0<f),o.X=a(b),o.X==null?0:(o.Mb=32-f,o.Xa=f,1)}function Me(o,f){t(o!=null),t(f!=null),t(o.Xa==f.Xa),r(f.X,0,o.X,0,1<<f.Xa)}function it(){this.X=[],this.Xa=this.Mb=0}function $e(o,f,b,B){t(b!=null),t(B!=null);var x=b[0],L=B[0];return x==0&&(x=(o*L+f/2)/f),L==0&&(L=(f*x+o/2)/o),0>=x||0>=L?0:(b[0]=x,B[0]=L,1)}function Be(o,f){return o+(1<<f)-1>>>f}function Pe(o,f){return((4278255360&o)+(4278255360&f)>>>0&4278255360)+((16711935&o)+(16711935&f)>>>0&16711935)>>>0}function He(o,f){S[f]=function(b,B,x,L,N,O,H){var j;for(j=0;j<N;++j){var ie=S[o](O[H+j-1],x,L+j);O[H+j]=Pe(b[B+j],ie)}}}function Ve(){this.ud=this.hd=this.jd=0}function rt(o,f){return((4278124286&(o^f))>>>1)+(o&f)>>>0}function Ot(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function Et(o,f){return Ot(o+(o-f+.5>>1))}function ut(o,f,b){return Math.abs(f-b)-Math.abs(o-b)}function Nt(o,f,b,B,x,L,N){for(B=L[N-1],b=0;b<x;++b)L[N+b]=B=Pe(o[f+b],B)}function Ft(o,f,b,B,x){var L;for(L=0;L<b;++L){var N=o[f+L],O=N>>8&255,H=16711935&(H=(H=16711935&N)+((O<<16)+O));B[x+L]=(4278255360&N)+H>>>0}}function et(o,f){f.jd=255&o,f.hd=o>>8&255,f.ud=o>>16&255}function Oe(o,f,b,B,x,L){var N;for(N=0;N<B;++N){var O=f[b+N],H=O>>>8,j=O,ie=255&(ie=(ie=O>>>16)+((o.jd<<24>>24)*(H<<24>>24)>>>5));j=255&(j=(j+=(o.hd<<24>>24)*(H<<24>>24)>>>5)+((o.ud<<24>>24)*(ie<<24>>24)>>>5)),x[L+N]=(4278255360&O)+(ie<<16)+j}}function Ge(o,f,b,B,x){S[f]=function(L,N,O,H,j,ie,be,V,ue){for(H=be;H<V;++H)for(be=0;be<ue;++be)j[ie++]=x(O[B(L[N++])])},S[o]=function(L,N,O,H,j,ie,be){var V=8>>L.b,ue=L.Ea,he=L.K[0],ve=L.w;if(8>V)for(L=(1<<L.b)-1,ve=(1<<V)-1;N<O;++N){var pe,xe=0;for(pe=0;pe<ue;++pe)pe&L||(xe=B(H[j++])),ie[be++]=x(he[xe&ve]),xe>>=V}else S["VP8LMapColor"+b](H,j,he,ve,ie,be,N,O,ue)}}function jt(o,f,b,B,x){for(b=f+b;f<b;){var L=o[f++];B[x++]=L>>16&255,B[x++]=L>>8&255,B[x++]=255&L}}function St(o,f,b,B,x){for(b=f+b;f<b;){var L=o[f++];B[x++]=L>>16&255,B[x++]=L>>8&255,B[x++]=255&L,B[x++]=L>>24&255}}function vt(o,f,b,B,x){for(b=f+b;f<b;){var L=(N=o[f++])>>16&240|N>>12&15,N=240&N|N>>28&15;B[x++]=L,B[x++]=N}}function yt(o,f,b,B,x){for(b=f+b;f<b;){var L=(N=o[f++])>>16&248|N>>13&7,N=N>>5&224|N>>3&31;B[x++]=L,B[x++]=N}}function Wt(o,f,b,B,x){for(b=f+b;f<b;){var L=o[f++];B[x++]=255&L,B[x++]=L>>8&255,B[x++]=L>>16&255}}function ot(o,f,b,B,x,L){if(L==0)for(b=f+b;f<b;)_e(B,((L=o[f++])[0]>>24|L[1]>>8&65280|L[2]<<8&16711680|L[3]<<24)>>>0),x+=32;else r(B,x,o,f,b)}function tA(o,f){S[f][0]=S[o+"0"],S[f][1]=S[o+"1"],S[f][2]=S[o+"2"],S[f][3]=S[o+"3"],S[f][4]=S[o+"4"],S[f][5]=S[o+"5"],S[f][6]=S[o+"6"],S[f][7]=S[o+"7"],S[f][8]=S[o+"8"],S[f][9]=S[o+"9"],S[f][10]=S[o+"10"],S[f][11]=S[o+"11"],S[f][12]=S[o+"12"],S[f][13]=S[o+"13"],S[f][14]=S[o+"0"],S[f][15]=S[o+"0"]}function dt(o){return o==W0||o==X0||o==Co||o==z0}function wt(){this.eb=[],this.size=this.A=this.fb=0}function sA(){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 Lt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new wt,this.f.kb=new sA,this.sd=null}function ft(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function kt(){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 Wa(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function er(o,f){var b=o.T,B=f.ba.f.RGBA,x=B.eb,L=B.fb+o.ka*B.A,N=Kr[f.ba.S],O=o.y,H=o.O,j=o.f,ie=o.N,be=o.ea,V=o.W,ue=f.cc,he=f.dc,ve=f.Mc,pe=f.Nc,xe=o.ka,Fe=o.ka+o.T,Qe=o.U,Ue=Qe+1>>1;for(xe==0?N(O,H,null,null,j,ie,be,V,j,ie,be,V,x,L,null,null,Qe):(N(f.ec,f.fc,O,H,ue,he,ve,pe,j,ie,be,V,x,L-B.A,x,L,Qe),++b);xe+2<Fe;xe+=2)ue=j,he=ie,ve=be,pe=V,ie+=o.Rc,V+=o.Rc,L+=2*B.A,N(O,(H+=2*o.fa)-o.fa,O,H,ue,he,ve,pe,j,ie,be,V,x,L-B.A,x,L,Qe);return H+=o.fa,o.j+Fe<o.o?(r(f.ec,f.fc,O,H,Qe),r(f.cc,f.dc,j,ie,Ue),r(f.Mc,f.Nc,be,V,Ue),b--):1&Fe||N(O,H,null,null,j,ie,be,V,j,ie,be,V,x,L+B.A,null,null,Qe),b}function Dn(o,f,b){var B=o.F,x=[o.J];if(B!=null){var L=o.U,N=f.ba.S,O=N==wo||N==Co;f=f.ba.f.RGBA;var H=[0],j=o.ka;H[0]=o.T,o.Kb&&(j==0?--H[0]:(--j,x[0]-=o.width),o.j+o.ka+o.T==o.o&&(H[0]=o.o-o.j-j));var ie=f.eb;j=f.fb+j*f.A,o=Ld(B,x[0],o.width,L,H,ie,j+(O?0:3),f.A),t(b==H),o&&dt(N)&&js(ie,j,O,L,H,f.A)}return 0}function mn(o){var f=o.ma,b=f.ba.S,B=11>b,x=b==Bo||b==Eo||b==wo||b==Y0||b==12||dt(b);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!Ds(f.Oa,o,x?11:12))return 0;if(x&&dt(b)&&Ss(),o.da)alert("todo:use_scaling");else{if(B){if(f.Ib=Wa,o.Kb){if(b=o.U+1>>1,f.memory=a(o.U+2*b),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+o.U,f.Mc=f.cc,f.Nc=f.dc+b,f.Ib=er,Ss()}}else alert("todo:EmitYUV");x&&(f.Jb=Dn,B&&An())}if(B&&!Vd){for(o=0;256>o;++o)JB[o]=89858*(o-128)+To>>vo,e3[o]=-22014*(o-128)+To,$B[o]=-45773*(o-128),ZB[o]=113618*(o-128)+To>>vo;for(o=Gs;o<$0;++o)f=76283*(o-16)+To>>vo,t3[o-Gs]=wn(f,255),A3[o-Gs]=wn(f+8>>4,15);Vd=1}return 1}function ht(o){var f=o.ma,b=o.U,B=o.T;return t(!(1&o.ka)),0>=b||0>=B?0:(b=f.Ib(o,f),f.Jb!=null&&f.Jb(o,f,b),f.Dc+=b,1)}function Rn(o){o.ma.memory=null}function Hn(o,f,b,B){return ye(o,8)!=47?0:(f[0]=ye(o,14)+1,b[0]=ye(o,14)+1,B[0]=ye(o,1),ye(o,3)!=0?0:!o.h)}function Qr(o,f){if(4>o)return o+1;var b=o-2>>1;return(2+(1&o)<<b)+ye(f,b)+1}function Or(o,f){return 120<f?f-120:1<=(b=((b=RB[f-1])>>4)*o+(8-(15&b)))?b:1;var b}function hA(o,f,b){var B=z(b),x=o[f+=255&B].g-8;return 0<x&&(se(b,b.u+8),B=z(b),f+=o[f].value,f+=B&(1<<x)-1),se(b,b.u+o[f].g),o[f].value}function PA(o,f,b){return b.g+=o.g,b.value+=o.value<<f>>>0,t(8>=b.g),o.g}function jA(o,f,b){var B=o.xc;return t((f=B==0?0:o.vc[o.md*(b>>B)+(f>>B)])<o.Wb),o.Ya[f]}function Xa(o,f,b,B){var x=o.ab,L=o.c*f,N=o.C;f=N+f;var O=b,H=B;for(B=o.Ta,b=o.Ua;0<x--;){var j=o.gc[x],ie=N,be=f,V=O,ue=H,he=(H=B,O=b,j.Ea);switch(t(ie<be),t(be<=j.nc),j.hc){case 2:bA(V,ue,(be-ie)*he,H,O);break;case 0:var ve=ie,pe=be,xe=H,Fe=O,Qe=(tt=j).Ea;ve==0&&(Hs(V,ue,null,null,1,xe,Fe),Nt(V,ue+1,0,0,Qe-1,xe,Fe+1),ue+=Qe,Fe+=Qe,++ve);for(var Ue=1<<tt.b,st=Ue-1,Xe=Be(Qe,tt.b),xt=tt.K,tt=tt.w+(ve>>tt.b)*Xe;ve<pe;){var Qt=xt,SA=tt,It=1;for(Ki(V,ue,xe,Fe-Qe,1,xe,Fe);It<Qe;){var At=(It&~st)+Ue;At>Qe&&(At=Qe),(0,Ms[Qt[SA++]>>8&15])(V,ue+ +It,xe,Fe+It-Qe,At-It,xe,Fe+It),It=At}ue+=Qe,Fe+=Qe,++ve&st||(tt+=Xe)}be!=j.nc&&r(H,O-he,H,O+(be-ie-1)*he,he);break;case 1:for(he=V,pe=ue,Qe=(V=j.Ea)-(Fe=V&~(xe=(ue=1<<j.b)-1)),ve=Be(V,j.b),Ue=j.K,j=j.w+(ie>>j.b)*ve;ie<be;){for(st=Ue,Xe=j,xt=new Ve,tt=pe+Fe,Qt=pe+V;pe<tt;)et(st[Xe++],xt),ks(xt,he,pe,ue,H,O),pe+=ue,O+=ue;pe<Qt&&(et(st[Xe++],xt),ks(xt,he,pe,Qe,H,O),pe+=Qe,O+=Qe),++ie&xe||(j+=ve)}break;case 3:if(V==H&&ue==O&&0<j.b){for(pe=H,V=he=O+(be-ie)*he-(Fe=(be-ie)*Be(j.Ea,j.b)),ue=H,xe=O,ve=[],Fe=(Qe=Fe)-1;0<=Fe;--Fe)ve[Fe]=ue[xe+Fe];for(Fe=Qe-1;0<=Fe;--Fe)pe[V+Fe]=ve[Fe];go(j,ie,be,H,he,H,O)}else go(j,ie,be,V,ue,H,O)}O=B,H=b}H!=b&&r(B,b,O,H,L)}function ha(o,f){var b=o.V,B=o.Ba+o.c*o.C,x=f-o.C;if(t(f<=o.l.o),t(16>=x),0<x){var L=o.l,N=o.Ta,O=o.Ua,H=L.width;if(Xa(o,x,b,B),x=O=[O],t((b=o.C)<(B=f)),t(L.v<L.va),B>L.o&&(B=L.o),b<L.j){var j=L.j-b;b=L.j,x[0]+=j*H}if(b>=B?b=0:(x[0]+=4*L.v,L.ka=b-L.j,L.U=L.va-L.v,L.T=B-b,b=1),b){if(O=O[0],11>(b=o.ca).S){var ie=b.f.RGBA,be=(B=b.S,x=L.U,L=L.T,j=ie.eb,ie.A),V=L;for(ie=ie.fb+o.Ma*ie.A;0<V--;){var ue=N,he=O,ve=x,pe=j,xe=ie;switch(B){case mo:Ks(ue,he,ve,pe,xe);break;case Bo:Ba(ue,he,ve,pe,xe);break;case W0:Ba(ue,he,ve,pe,xe),js(pe,xe,0,ve,1,0);break;case Dd:oi(ue,he,ve,pe,xe);break;case Eo:ot(ue,he,ve,pe,xe,1);break;case X0:ot(ue,he,ve,pe,xe,1),js(pe,xe,0,ve,1,0);break;case wo:ot(ue,he,ve,pe,xe,0);break;case Co:ot(ue,he,ve,pe,xe,0),js(pe,xe,1,ve,1,0);break;case Y0:Ea(ue,he,ve,pe,xe);break;case z0:Ea(ue,he,ve,pe,xe),Fd(pe,xe,ve,1,0);break;case Rd:wa(ue,he,ve,pe,xe);break;default:t(0)}O+=H,ie+=be}o.Ma+=L}else alert("todo:EmitRescaledRowsYUVA");t(o.Ma<=b.height)}}o.C=f,t(o.C<=o.i)}function Zr(o){var f;if(0<o.ua)return 0;for(f=0;f<o.Wb;++f){var b=o.Ya[f].G,B=o.Ya[f].H;if(0<b[1][B[1]+0].g||0<b[2][B[2]+0].g||0<b[3][B[3]+0].g)return 0}return 1}function Bn(o,f,b,B,x,L){if(o.Z!=0){var N=o.qd,O=o.rd;for(t(Ta[o.Z]!=null);f<b;++f)Ta[o.Z](N,O,B,x,B,x,L),N=B,O=x,x+=L;o.qd=N,o.rd=O}}function $r(o,f){var b=o.l.ma,B=b.Z==0||b.Z==1?o.l.j:o.C;if(B=o.C<B?B:o.C,t(f<=o.l.o),f>B){var x=o.l.width,L=b.ca,N=b.tb+x*B,O=o.V,H=o.Ba+o.c*B,j=o.gc;t(o.ab==1),t(j[0].hc==3),yn(j[0],B,f,O,H,L,N),Bn(b,B,f,L,N,x)}o.C=o.Ma=f}function en(o,f,b,B,x,L,N){var O=o.$/B,H=o.$%B,j=o.m,ie=o.s,be=b+o.$,V=be;x=b+B*x;var ue=b+B*L,he=280+ie.ua,ve=o.Pb?O:16777216,pe=0<ie.ua?ie.Wa:null,xe=ie.wc,Fe=be<ue?jA(ie,H,O):null;t(o.C<L),t(ue<=x);var Qe=!1;e:for(;;){for(;Qe||be<ue;){var Ue=0;if(O>=ve){var st=be-b;t((ve=o).Pb),ve.wd=ve.m,ve.xd=st,0<ve.s.ua&&Me(ve.s.Wa,ve.s.vb),ve=O+PB}if(H&xe||(Fe=jA(ie,H,O)),t(Fe!=null),Fe.Qb&&(f[be]=Fe.qb,Qe=!0),!Qe)if(fe(j),Fe.jc){Ue=j,st=f;var Xe=be,xt=Fe.pd[z(Ue)&ui-1];t(Fe.jc),256>xt.g?(se(Ue,Ue.u+xt.g),st[Xe]=xt.value,Ue=0):(se(Ue,Ue.u+xt.g-256),t(256<=xt.value),Ue=xt.value),Ue==0&&(Qe=!0)}else Ue=hA(Fe.G[0],Fe.H[0],j);if(j.h)break;if(Qe||256>Ue){if(!Qe)if(Fe.nd)f[be]=(Fe.qb|Ue<<8)>>>0;else{if(fe(j),Qe=hA(Fe.G[1],Fe.H[1],j),fe(j),st=hA(Fe.G[2],Fe.H[2],j),Xe=hA(Fe.G[3],Fe.H[3],j),j.h)break;f[be]=(Xe<<24|Qe<<16|Ue<<8|st)>>>0}if(Qe=!1,++be,++H>=B&&(H=0,++O,N!=null&&O<=L&&!(O%16)&&N(o,O),pe!=null))for(;V<be;)Ue=f[V++],pe.X[(506832829*Ue&4294967295)>>>pe.Mb]=Ue}else if(280>Ue){if(Ue=Qr(Ue-256,j),st=hA(Fe.G[4],Fe.H[4],j),fe(j),st=Or(B,st=Qr(st,j)),j.h)break;if(be-b<st||x-be<Ue)break e;for(Xe=0;Xe<Ue;++Xe)f[be+Xe]=f[be+Xe-st];for(be+=Ue,H+=Ue;H>=B;)H-=B,++O,N!=null&&O<=L&&!(O%16)&&N(o,O);if(t(be<=x),H&xe&&(Fe=jA(ie,H,O)),pe!=null)for(;V<be;)Ue=f[V++],pe.X[(506832829*Ue&4294967295)>>>pe.Mb]=Ue}else{if(!(Ue<he))break e;for(Qe=Ue-280,t(pe!=null);V<be;)Ue=f[V++],pe.X[(506832829*Ue&4294967295)>>>pe.Mb]=Ue;Ue=be,t(!(Qe>>>(st=pe).Xa)),f[Ue]=st.X[Qe],Qe=!0}Qe||t(j.h==re(j))}if(o.Pb&&j.h&&be<x)t(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&Me(o.s.vb,o.s.Wa);else{if(j.h)break e;N!=null&&N(o,O>L?L:O),o.a=0,o.$=be-b}return 1}return o.a=3,0}function Dr(o){t(o!=null),o.vc=null,o.yc=null,o.Ya=null;var f=o.Wa;f!=null&&(f.X=null),o.vb=null,t(o!=null)}function za(){var o=new bt;return o==null?null:(o.a=0,o.xb=Md,tA("Predictor","VP8LPredictors"),tA("Predictor","VP8LPredictors_C"),tA("PredictorAdd","VP8LPredictorsAdd"),tA("PredictorAdd","VP8LPredictorsAdd_C"),bA=Ft,ks=Oe,Ks=jt,Ba=St,Ea=vt,wa=yt,oi=Wt,S.VP8LMapColor32b=Tn,S.VP8LMapColor8b=Ps,o)}function En(o,f,b,B,x){var L=1,N=[o],O=[f],H=B.m,j=B.s,ie=null,be=0;e:for(;;){if(b)for(;L&&ye(H,1);){var V=N,ue=O,he=B,ve=1,pe=he.m,xe=he.gc[he.ab],Fe=ye(pe,2);if(he.Oc&1<<Fe)L=0;else{switch(he.Oc|=1<<Fe,xe.hc=Fe,xe.Ea=V[0],xe.nc=ue[0],xe.K=[null],++he.ab,t(4>=he.ab),Fe){case 0:case 1:xe.b=ye(pe,3)+2,ve=En(Be(xe.Ea,xe.b),Be(xe.nc,xe.b),0,he,xe.K),xe.K=xe.K[0];break;case 3:var Qe,Ue=ye(pe,8)+1,st=16<Ue?0:4<Ue?1:2<Ue?2:3;if(V[0]=Be(xe.Ea,st),xe.b=st,Qe=ve=En(Ue,1,0,he,xe.K)){var Xe,xt=Ue,tt=xe,Qt=1<<(8>>tt.b),SA=a(Qt);if(SA==null)Qe=0;else{var It=tt.K[0],At=tt.w;for(SA[0]=tt.K[0][0],Xe=1;Xe<1*xt;++Xe)SA[Xe]=Pe(It[At+Xe],SA[Xe-1]);for(;Xe<4*Qt;++Xe)SA[Xe]=0;tt.K[0]=null,tt.K[0]=SA,Qe=1}}ve=Qe;break;case 2:break;default:t(0)}L=ve}}if(N=N[0],O=O[0],L&&ye(H,1)&&!(L=1<=(be=ye(H,4))&&11>=be)){B.a=3;break e}var je;if(je=L)t:{var BA,Ct,Dt,aA=B,YA=N,cr=O,dA=be,tr=b,lr=aA.m,QA=aA.s,Ht=[null],Vt=1,gA=0,Gt=HB[dA];A:for(;;){if(tr&&ye(lr,1)){var WA=ye(lr,3)+2,nn=Be(YA,WA),EA=Be(cr,WA),gr=nn*EA;if(!En(nn,EA,0,aA,Ht))break A;for(Ht=Ht[0],QA.xc=WA,BA=0;BA<gr;++BA){var Zt=Ht[BA]>>8&65535;Ht[BA]=Zt,Zt>=Vt&&(Vt=Zt+1)}}if(lr.h)break A;for(Ct=0;5>Ct;++Ct){var OA=Hd[Ct];!Ct&&0<dA&&(OA+=1<<dA),gA<OA&&(gA=OA)}var xr=i(Vt*Gt,Q),fr=Vt,Ir=i(fr,X);if(Ir==null)var Fr=null;else t(65536>=fr),Fr=Ir;var pr=a(gA);if(Fr==null||pr==null||xr==null){aA.a=1;break A}var Lr=xr;for(BA=Dt=0;BA<Vt;++BA){var rA=Fr[BA],_r=rA.G,an=rA.H,li=0,Zn=1,XA=0;for(Ct=0;5>Ct;++Ct){OA=Hd[Ct],_r[Ct]=Lr,an[Ct]=Dt,!Ct&&0<dA&&(OA+=1<<dA);n:{var xo,el=OA,Io=aA,Ys=pr,a3=Lr,i3=Dt,tl=0,ya=Io.m,s3=ye(ya,1);if(n(Ys,0,0,el),s3){var u3=ye(ya,1)+1,o3=ye(ya,1),Wd=ye(ya,o3==0?1:8);Ys[Wd]=1,u3==2&&(Ys[Wd=ye(ya,8)]=1);var Fo=1}else{var Xd=a(19),zd=ye(ya,4)+4;if(19<zd){Io.a=3;var Lo=0;break n}for(xo=0;xo<zd;++xo)Xd[DB[xo]]=ye(ya,3);var Al=void 0,Ws=void 0,Jd=Io,c3=Xd,_o=el,Zd=Ys,rl=0,xa=Jd.m,$d=8,e1=i(128,Q);r:for(;I(e1,0,7,c3,19);){if(ye(xa,1)){var l3=2+2*ye(xa,3);if((Al=2+ye(xa,l3))>_o)break r}else Al=_o;for(Ws=0;Ws<_o&&Al--;){fe(xa);var t1=e1[0+(127&z(xa))];se(xa,xa.u+t1.g);var ji=t1.value;if(16>ji)Zd[Ws++]=ji,ji!=0&&($d=ji);else{var f3=ji==16,A1=ji-16,h3=QB[A1],r1=ye(xa,SB[A1])+h3;if(Ws+r1>_o)break r;for(var d3=f3?$d:0;0<r1--;)Zd[Ws++]=d3}}rl=1;break r}rl||(Jd.a=3),Fo=rl}(Fo=Fo&&!ya.h)&&(tl=I(a3,i3,8,Ys,el)),Fo&&tl!=0?Lo=tl:(Io.a=3,Lo=0)}if(Lo==0)break A;if(Zn&&OB[Ct]==1&&(Zn=Lr[Dt].g==0),li+=Lr[Dt].g,Dt+=Lo,3>=Ct){var Xs,nl=pr[0];for(Xs=1;Xs<OA;++Xs)pr[Xs]>nl&&(nl=pr[Xs]);XA+=nl}}if(rA.nd=Zn,rA.Qb=0,Zn&&(rA.qb=(_r[3][an[3]+0].value<<24|_r[1][an[1]+0].value<<16|_r[2][an[2]+0].value)>>>0,li==0&&256>_r[0][an[0]+0].value&&(rA.Qb=1,rA.qb+=_r[0][an[0]+0].value<<8)),rA.jc=!rA.Qb&&6>XA,rA.jc){var No,$n=rA;for(No=0;No<ui;++No){var Ia=No,Fa=$n.pd[Ia],Uo=$n.G[0][$n.H[0]+Ia];256<=Uo.value?(Fa.g=Uo.g+256,Fa.value=Uo.value):(Fa.g=0,Fa.value=0,Ia>>=PA(Uo,8,Fa),Ia>>=PA($n.G[1][$n.H[1]+Ia],16,Fa),Ia>>=PA($n.G[2][$n.H[2]+Ia],0,Fa),PA($n.G[3][$n.H[3]+Ia],24,Fa))}}}QA.vc=Ht,QA.Wb=Vt,QA.Ya=Fr,QA.yc=xr,je=1;break t}je=0}if(!(L=je)){B.a=3;break e}if(0<be){if(j.ua=1<<be,!q(j.Wa,be)){B.a=1,L=0;break e}}else j.ua=0;var al=B,n1=N,g3=O,il=al.s,sl=il.xc;if(al.c=n1,al.i=g3,il.md=Be(n1,sl),il.wc=sl==0?-1:(1<<sl)-1,b){B.xb=GB;break e}if((ie=a(N*O))==null){B.a=1,L=0;break e}L=(L=en(B,ie,0,N,O,O,null))&&!H.h;break e}return L?(x!=null?x[0]=ie:(t(ie==null),t(b)),B.$=0,b||Dr(j)):Dr(j),L}function Ja(o,f){var b=o.c*o.i,B=b+f+16*f;return t(o.c<=f),o.V=a(B),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+b+f,1)}function Ui(o,f){var b=o.C,B=f-b,x=o.V,L=o.Ba+o.c*b;for(t(f<=o.l.o);0<B;){var N=16<B?16:B,O=o.l.ma,H=o.l.width,j=H*N,ie=O.ca,be=O.tb+H*b,V=o.Ta,ue=o.Ua;Xa(o,N,x,L),_d(V,ue,ie,be,j),Bn(O,b,b+N,ie,be,H),B-=N,x+=N*o.c,b+=N}t(b==f),o.C=o.Ma=f}function Si(){this.ub=this.yd=this.td=this.Rb=0}function Qi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function _0(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Cs(){this.Yb=(function(){var o=[];return(function f(b,B,x){for(var L=x[B],N=0;N<L&&(b.push(x.length>B+1?[]:0),!(x.length<B+1));N++)f(b[N],B+1,x)})(o,0,[3,11]),o})()}function zu(){this.jb=a(3),this.Wc=s([4,8],Cs),this.Xc=s([4,17],Cs)}function Ju(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Rr(){this.ld=this.La=this.dd=this.tc=0}function vs(){this.Na=this.la=0}function Zu(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ts(){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 $u(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rr),this.Y=0,this.ya=Array(new Ts),this.aa=0,this.l=new Oi}function eo(){this.y=a(16),this.f=a(8),this.ea=a(8)}function to(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Si,this.Kc=new Qi,this.ed=new Ju,this.Qa=new _0,this.Ic=this.$c=this.Aa=0,this.D=new $u,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=i(8,_),this.ia=0,this.pb=i(4,Zu),this.Pa=new zu,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new eo),this.Hd=0,this.rb=Array(new vs),this.sb=0,this.wa=Array(new Rr),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 Ts),this.L=this.aa=0,this.gd=s([4,2],Rr),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 wn(o,f){return 0>o?0:o>f?f:o}function Oi(){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 N0(){var o=new to;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,Vs||(Vs=Di)),o}function xA(o,f,b){return o.a==0&&(o.a=f,o.sc=b,o.cb=0),0}function Ao(o,f,b){return 3<=b&&o[f+0]==157&&o[f+1]==1&&o[f+2]==42}function Cn(o,f){if(o==null)return 0;if(o.a=0,o.sc="OK",f==null)return xA(o,2,"null VP8Io passed to VP8GetHeaders()");var b=f.data,B=f.w,x=f.ha;if(4>x)return xA(o,7,"Truncated header.");var L=b[B+0]|b[B+1]<<8|b[B+2]<<16,N=o.Od;if(N.Rb=!(1&L),N.td=L>>1&7,N.yd=L>>4&1,N.ub=L>>5,3<N.td)return xA(o,3,"Incorrect keyframe parameters.");if(!N.yd)return xA(o,4,"Frame not displayable.");B+=3,x-=3;var O=o.Kc;if(N.Rb){if(7>x)return xA(o,7,"cannot parse picture header");if(!Ao(b,B,x))return xA(o,3,"Bad code word");O.c=16383&(b[B+4]<<8|b[B+3]),O.Td=b[B+4]>>6,O.i=16383&(b[B+6]<<8|b[B+5]),O.Ud=b[B+6]>>6,B+=7,x-=7,o.za=O.c+15>>4,o.Ub=O.i+15>>4,f.width=O.c,f.height=O.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,n((L=o.Pa).jb,0,255,L.jb.length),t((L=o.Qa)!=null),L.Cb=0,L.Bb=0,L.Fb=1,n(L.Zb,0,0,L.Zb.length),n(L.Lb,0,0,L.Lb)}if(N.ub>x)return xA(o,7,"bad partition length");$(L=o.m,b,B,N.ub),B+=N.ub,x-=N.ub,N.Rb&&(O.Ld=Ee(L),O.Kd=Ee(L)),O=o.Qa;var H,j=o.Pa;if(t(L!=null),t(O!=null),O.Cb=Ee(L),O.Cb){if(O.Bb=Ee(L),Ee(L)){for(O.Fb=Ee(L),H=0;4>H;++H)O.Zb[H]=Ee(L)?te(L,7):0;for(H=0;4>H;++H)O.Lb[H]=Ee(L)?te(L,6):0}if(O.Bb)for(H=0;3>H;++H)j.jb[H]=Ee(L)?ae(L,8):255}else O.Bb=0;if(L.Ka)return xA(o,3,"cannot parse segment header");if((O=o.ed).zd=Ee(L),O.Tb=ae(L,6),O.wb=ae(L,3),O.Pc=Ee(L),O.Pc&&Ee(L)){for(j=0;4>j;++j)Ee(L)&&(O.vd[j]=te(L,6));for(j=0;4>j;++j)Ee(L)&&(O.od[j]=te(L,6))}if(o.L=O.Tb==0?0:O.zd?1:2,L.Ka)return xA(o,3,"cannot parse filter header");var ie=x;if(x=H=B,B=H+ie,O=ie,o.Xb=(1<<ae(o.m,2))-1,ie<3*(j=o.Xb))b=7;else{for(H+=3*j,O-=3*j,ie=0;ie<j;++ie){var be=b[x+0]|b[x+1]<<8|b[x+2]<<16;be>O&&(be=O),$(o.Jc[+ie],b,H,be),H+=be,O-=be,x+=3}$(o.Jc[+j],b,H,O),b=H<B?0:5}if(b!=0)return xA(o,b,"cannot parse partitions");for(b=ae(H=o.m,7),x=Ee(H)?te(H,4):0,B=Ee(H)?te(H,4):0,O=Ee(H)?te(H,4):0,j=Ee(H)?te(H,4):0,H=Ee(H)?te(H,4):0,ie=o.Qa,be=0;4>be;++be){if(ie.Cb){var V=ie.Zb[be];ie.Fb||(V+=b)}else{if(0<be){o.pb[be]=o.pb[0];continue}V=b}var ue=o.pb[be];ue.Sc[0]=J0[wn(V+x,127)],ue.Sc[1]=Z0[wn(V+0,127)],ue.Eb[0]=2*J0[wn(V+B,127)],ue.Eb[1]=101581*Z0[wn(V+O,127)]>>16,8>ue.Eb[1]&&(ue.Eb[1]=8),ue.Qc[0]=J0[wn(V+j,117)],ue.Qc[1]=Z0[wn(V+H,127)],ue.lc=V+H}if(!N.Rb)return xA(o,4,"Not a key frame.");for(Ee(L),N=o.Pa,b=0;4>b;++b){for(x=0;8>x;++x)for(B=0;3>B;++B)for(O=0;11>O;++O)j=Ce(L,jB[b][x][B][O])?ae(L,8):KB[b][x][B][O],N.Wc[b][x].Yb[B][O]=j;for(x=0;17>x;++x)N.Xc[b][x]=N.Wc[b][VB[x]]}return o.kc=Ee(L),o.kc&&(o.Bd=ae(L,8)),o.cb=1}function Di(o,f,b,B,x,L,N){var O=f[x].Yb[b];for(b=0;16>x;++x){if(!Ce(o,O[b+0]))return x;for(;!Ce(o,O[b+1]);)if(O=f[++x].Yb[0],b=0,x==16)return 16;var H=f[x+1].Yb;if(Ce(o,O[b+2])){var j=o,ie=0;if(Ce(j,(V=O)[(be=b)+3]))if(Ce(j,V[be+6])){for(O=0,be=2*(ie=Ce(j,V[be+8]))+(V=Ce(j,V[be+9+ie])),ie=0,V=MB[be];V[O];++O)ie+=ie+Ce(j,V[O]);ie+=3+(8<<be)}else Ce(j,V[be+7])?(ie=7+2*Ce(j,165),ie+=Ce(j,145)):ie=5+Ce(j,159);else ie=Ce(j,V[be+4])?3+Ce(j,V[be+5]):2;O=H[2]}else ie=1,O=H[1];H=N+kB[x],0>(j=o).b&&ge(j);var be,V=j.b,ue=(be=j.Ca>>1)-(j.I>>V)>>31;--j.b,j.Ca+=ue,j.Ca|=1,j.I-=(be+1&ue)<<V,L[H]=((ie^ue)-ue)*B[(0<x)+0]}return 16}function ro(o){var f=o.rb[o.sb-1];f.la=0,f.Na=0,n(o.zc,0,0,o.zc.length),o.ja=0}function Hr(o,f,b,B,x){x=o[f+b+32*B]+(x>>3),o[f+b+32*B]=-256&x?0>x?0:255:x}function _A(o,f,b,B,x,L){Hr(o,f,0,b,B+x),Hr(o,f,1,b,B+L),Hr(o,f,2,b,B-L),Hr(o,f,3,b,B-x)}function Pn(o){return(20091*o>>16)+o}function no(o,f,b,B){var x,L=0,N=a(16);for(x=0;4>x;++x){var O=o[f+0]+o[f+8],H=o[f+0]-o[f+8],j=(35468*o[f+4]>>16)-Pn(o[f+12]),ie=Pn(o[f+4])+(35468*o[f+12]>>16);N[L+0]=O+ie,N[L+1]=H+j,N[L+2]=H-j,N[L+3]=O-ie,L+=4,f++}for(x=L=0;4>x;++x)O=(o=N[L+0]+4)+N[L+8],H=o-N[L+8],j=(35468*N[L+4]>>16)-Pn(N[L+12]),Hr(b,B,0,0,O+(ie=Pn(N[L+4])+(35468*N[L+12]>>16))),Hr(b,B,1,0,H+j),Hr(b,B,2,0,H-j),Hr(b,B,3,0,O-ie),L++,B+=32}function U0(o,f,b,B){var x=o[f+0]+4,L=35468*o[f+4]>>16,N=Pn(o[f+4]),O=35468*o[f+1]>>16;_A(b,B,0,x+N,o=Pn(o[f+1]),O),_A(b,B,1,x+L,o,O),_A(b,B,2,x-L,o,O),_A(b,B,3,x-N,o,O)}function S0(o,f,b,B,x){no(o,f,b,B),x&&no(o,f+16,b,B+4)}function vn(o,f,b,B){ci(o,f+0,b,B,1),ci(o,f+32,b,B+128,1)}function ao(o,f,b,B){var x;for(o=o[f+0]+4,x=0;4>x;++x)for(f=0;4>f;++f)Hr(b,B,f,x,o)}function io(o,f,b,B){o[f+0]&&Kt(o,f+0,b,B),o[f+16]&&Kt(o,f+16,b,B+4),o[f+32]&&Kt(o,f+32,b,B+128),o[f+48]&&Kt(o,f+48,b,B+128+4)}function Ri(o,f,b,B){var x,L=a(16);for(x=0;4>x;++x){var N=o[f+0+x]+o[f+12+x],O=o[f+4+x]+o[f+8+x],H=o[f+4+x]-o[f+8+x],j=o[f+0+x]-o[f+12+x];L[0+x]=N+O,L[8+x]=N-O,L[4+x]=j+H,L[12+x]=j-H}for(x=0;4>x;++x)N=(o=L[0+4*x]+3)+L[3+4*x],O=L[1+4*x]+L[2+4*x],H=L[1+4*x]-L[2+4*x],j=o-L[3+4*x],b[B+0]=N+O>>3,b[B+16]=j+H>>3,b[B+32]=N-O>>3,b[B+48]=j-H>>3,B+=64}function Za(o,f,b){var B,x=f-32,L=yr,N=255-o[x-1];for(B=0;B<b;++B){var O,H=L,j=N+o[f-1];for(O=0;O<b;++O)o[f+O]=H[j+o[x+O]];f+=32}}function Q0(o,f){Za(o,f,4)}function O0(o,f){Za(o,f,8)}function D0(o,f){Za(o,f,16)}function ys(o,f){var b;for(b=0;16>b;++b)r(o,f+32*b,o,f-32,16)}function so(o,f){var b;for(b=16;0<b;--b)n(o,f,o[f-1],16),f+=32}function tn(o,f,b){var B;for(B=0;16>B;++B)n(f,b+32*B,o,16)}function R0(o,f){var b,B=16;for(b=0;16>b;++b)B+=o[f-1+32*b]+o[f+b-32];tn(B>>5,o,f)}function $a(o,f){var b,B=8;for(b=0;16>b;++b)B+=o[f-1+32*b];tn(B>>4,o,f)}function xs(o,f){var b,B=8;for(b=0;16>b;++b)B+=o[f+b-32];tn(B>>4,o,f)}function H0(o,f){tn(128,o,f)}function mt(o,f,b){return o+2*f+b+2>>2}function P0(o,f){var b,B=f-32;for(B=new Uint8Array([mt(o[B-1],o[B+0],o[B+1]),mt(o[B+0],o[B+1],o[B+2]),mt(o[B+1],o[B+2],o[B+3]),mt(o[B+2],o[B+3],o[B+4])]),b=0;4>b;++b)r(o,f+32*b,B,0,B.length)}function M0(o,f){var b=o[f-1],B=o[f-1+32],x=o[f-1+64],L=o[f-1+96];_e(o,f+0,16843009*mt(o[f-1-32],b,B)),_e(o,f+32,16843009*mt(b,B,x)),_e(o,f+64,16843009*mt(B,x,L)),_e(o,f+96,16843009*mt(x,L,L))}function k0(o,f){var b,B=4;for(b=0;4>b;++b)B+=o[f+b-32]+o[f-1+32*b];for(B>>=3,b=0;4>b;++b)n(o,f+32*b,B,4)}function Mn(o,f){var b=o[f-1+0],B=o[f-1+32],x=o[f-1+64],L=o[f-1-32],N=o[f+0-32],O=o[f+1-32],H=o[f+2-32],j=o[f+3-32];o[f+0+96]=mt(B,x,o[f-1+96]),o[f+1+96]=o[f+0+64]=mt(b,B,x),o[f+2+96]=o[f+1+64]=o[f+0+32]=mt(L,b,B),o[f+3+96]=o[f+2+64]=o[f+1+32]=o[f+0+0]=mt(N,L,b),o[f+3+64]=o[f+2+32]=o[f+1+0]=mt(O,N,L),o[f+3+32]=o[f+2+0]=mt(H,O,N),o[f+3+0]=mt(j,H,O)}function kn(o,f){var b=o[f+1-32],B=o[f+2-32],x=o[f+3-32],L=o[f+4-32],N=o[f+5-32],O=o[f+6-32],H=o[f+7-32];o[f+0+0]=mt(o[f+0-32],b,B),o[f+1+0]=o[f+0+32]=mt(b,B,x),o[f+2+0]=o[f+1+32]=o[f+0+64]=mt(B,x,L),o[f+3+0]=o[f+2+32]=o[f+1+64]=o[f+0+96]=mt(x,L,N),o[f+3+32]=o[f+2+64]=o[f+1+96]=mt(L,N,O),o[f+3+64]=o[f+2+96]=mt(N,O,H),o[f+3+96]=mt(O,H,H)}function K0(o,f){var b=o[f-1+0],B=o[f-1+32],x=o[f-1+64],L=o[f-1-32],N=o[f+0-32],O=o[f+1-32],H=o[f+2-32],j=o[f+3-32];o[f+0+0]=o[f+1+64]=L+N+1>>1,o[f+1+0]=o[f+2+64]=N+O+1>>1,o[f+2+0]=o[f+3+64]=O+H+1>>1,o[f+3+0]=H+j+1>>1,o[f+0+96]=mt(x,B,b),o[f+0+64]=mt(B,b,L),o[f+0+32]=o[f+1+96]=mt(b,L,N),o[f+1+32]=o[f+2+96]=mt(L,N,O),o[f+2+32]=o[f+3+96]=mt(N,O,H),o[f+3+32]=mt(O,H,j)}function q0(o,f){var b=o[f+0-32],B=o[f+1-32],x=o[f+2-32],L=o[f+3-32],N=o[f+4-32],O=o[f+5-32],H=o[f+6-32],j=o[f+7-32];o[f+0+0]=b+B+1>>1,o[f+1+0]=o[f+0+64]=B+x+1>>1,o[f+2+0]=o[f+1+64]=x+L+1>>1,o[f+3+0]=o[f+2+64]=L+N+1>>1,o[f+0+32]=mt(b,B,x),o[f+1+32]=o[f+0+96]=mt(B,x,L),o[f+2+32]=o[f+1+96]=mt(x,L,N),o[f+3+32]=o[f+2+96]=mt(L,N,O),o[f+3+64]=mt(N,O,H),o[f+3+96]=mt(O,H,j)}function Hi(o,f){var b=o[f-1+0],B=o[f-1+32],x=o[f-1+64],L=o[f-1+96];o[f+0+0]=b+B+1>>1,o[f+2+0]=o[f+0+32]=B+x+1>>1,o[f+2+32]=o[f+0+64]=x+L+1>>1,o[f+1+0]=mt(b,B,x),o[f+3+0]=o[f+1+32]=mt(B,x,L),o[f+3+32]=o[f+1+64]=mt(x,L,L),o[f+3+64]=o[f+2+64]=o[f+0+96]=o[f+1+96]=o[f+2+96]=o[f+3+96]=L}function Is(o,f){var b=o[f-1+0],B=o[f-1+32],x=o[f-1+64],L=o[f-1+96],N=o[f-1-32],O=o[f+0-32],H=o[f+1-32],j=o[f+2-32];o[f+0+0]=o[f+2+32]=b+N+1>>1,o[f+0+32]=o[f+2+64]=B+b+1>>1,o[f+0+64]=o[f+2+96]=x+B+1>>1,o[f+0+96]=L+x+1>>1,o[f+3+0]=mt(O,H,j),o[f+2+0]=mt(N,O,H),o[f+1+0]=o[f+3+32]=mt(b,N,O),o[f+1+32]=o[f+3+64]=mt(B,b,N),o[f+1+64]=o[f+3+96]=mt(x,B,b),o[f+1+96]=mt(L,x,B)}function ei(o,f){var b;for(b=0;8>b;++b)r(o,f+32*b,o,f-32,8)}function j0(o,f){var b;for(b=0;8>b;++b)n(o,f,o[f-1],8),f+=32}function Kn(o,f,b){var B;for(B=0;8>B;++B)n(f,b+32*B,o,8)}function V0(o,f){var b,B=8;for(b=0;8>b;++b)B+=o[f+b-32]+o[f-1+32*b];Kn(B>>4,o,f)}function Fs(o,f){var b,B=4;for(b=0;8>b;++b)B+=o[f+b-32];Kn(B>>3,o,f)}function Ls(o,f){var b,B=4;for(b=0;8>b;++b)B+=o[f-1+32*b];Kn(B>>3,o,f)}function uo(o,f){Kn(128,o,f)}function qn(o,f,b){var B=o[f-b],x=o[f+0],L=3*(x-B)+G0[1020+o[f-2*b]-o[f+b]],N=bo[112+(L+4>>3)];o[f-b]=yr[255+B+bo[112+(L+3>>3)]],o[f+0]=yr[255+x-N]}function _s(o,f,b,B){var x=o[f+0],L=o[f+b];return kr[255+o[f-2*b]-o[f-b]]>B||kr[255+L-x]>B}function Pi(o,f,b,B){return 4*kr[255+o[f-b]-o[f+0]]+kr[255+o[f-2*b]-o[f+b]]<=B}function Ns(o,f,b,B,x){var L=o[f-3*b],N=o[f-2*b],O=o[f-b],H=o[f+0],j=o[f+b],ie=o[f+2*b],be=o[f+3*b];return 4*kr[255+O-H]+kr[255+N-j]>B?0:kr[255+o[f-4*b]-L]<=x&&kr[255+L-N]<=x&&kr[255+N-O]<=x&&kr[255+be-ie]<=x&&kr[255+ie-j]<=x&&kr[255+j-H]<=x}function ti(o,f,b,B){var x=2*B+1;for(B=0;16>B;++B)Pi(o,f+B,b,x)&&qn(o,f+B,b)}function Us(o,f,b,B){var x=2*B+1;for(B=0;16>B;++B)Pi(o,f+B*b,1,x)&&qn(o,f+B*b,1)}function oo(o,f,b,B){var x;for(x=3;0<x;--x)ti(o,f+=4*b,b,B)}function co(o,f,b,B){var x;for(x=3;0<x;--x)Us(o,f+=4,b,B)}function jn(o,f,b,B,x,L,N,O){for(L=2*L+1;0<x--;){if(Ns(o,f,b,L,N))if(_s(o,f,b,O))qn(o,f,b);else{var H=o,j=f,ie=b,be=H[j-2*ie],V=H[j-ie],ue=H[j+0],he=H[j+ie],ve=H[j+2*ie],pe=27*(Fe=G0[1020+3*(ue-V)+G0[1020+be-he]])+63>>7,xe=18*Fe+63>>7,Fe=9*Fe+63>>7;H[j-3*ie]=yr[255+H[j-3*ie]+Fe],H[j-2*ie]=yr[255+be+xe],H[j-ie]=yr[255+V+pe],H[j+0]=yr[255+ue-pe],H[j+ie]=yr[255+he-xe],H[j+2*ie]=yr[255+ve-Fe]}f+=B}}function Vn(o,f,b,B,x,L,N,O){for(L=2*L+1;0<x--;){if(Ns(o,f,b,L,N))if(_s(o,f,b,O))qn(o,f,b);else{var H=o,j=f,ie=b,be=H[j-ie],V=H[j+0],ue=H[j+ie],he=bo[112+(4+(ve=3*(V-be))>>3)],ve=bo[112+(ve+3>>3)],pe=he+1>>1;H[j-2*ie]=yr[255+H[j-2*ie]+pe],H[j-ie]=yr[255+be+ve],H[j+0]=yr[255+V-he],H[j+ie]=yr[255+ue-pe]}f+=B}}function lo(o,f,b,B,x,L){jn(o,f,b,1,16,B,x,L)}function Ai(o,f,b,B,x,L){jn(o,f,1,b,16,B,x,L)}function fo(o,f,b,B,x,L){var N;for(N=3;0<N;--N)Vn(o,f+=4*b,b,1,16,B,x,L)}function g(o,f,b,B,x,L){var N;for(N=3;0<N;--N)Vn(o,f+=4,1,b,16,B,x,L)}function y(o,f,b,B,x,L,N,O){jn(o,f,x,1,8,L,N,O),jn(b,B,x,1,8,L,N,O)}function Y(o,f,b,B,x,L,N,O){jn(o,f,1,x,8,L,N,O),jn(b,B,1,x,8,L,N,O)}function ne(o,f,b,B,x,L,N,O){Vn(o,f+4*x,x,1,8,L,N,O),Vn(b,B+4*x,x,1,8,L,N,O)}function ce(o,f,b,B,x,L,N,O){Vn(o,f+4,1,x,8,L,N,O),Vn(b,B+4,1,x,8,L,N,O)}function Ie(){this.ba=new Lt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new kt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ne(){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 Ze(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function nt(){this.ua=0,this.Wa=new it,this.vb=new it,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new X,this.yc=new Q}function bt(){this.xb=this.a=0,this.l=new Oi,this.ca=new Lt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new G,this.Pb=0,this.wd=new G,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new nt,this.ab=0,this.gc=i(4,Ze),this.Oc=0}function Tt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Oi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Rt(o,f,b,B,x,L,N){for(o=o==null?0:o[f+0],f=0;f<N;++f)x[L+f]=o+b[B+f]&255,o=x[L+f]}function lA(o,f,b,B,x,L,N){var O;if(o==null)Rt(null,null,b,B,x,L,N);else for(O=0;O<N;++O)x[L+O]=o[f+O]+b[B+O]&255}function IA(o,f,b,B,x,L,N){if(o==null)Rt(null,null,b,B,x,L,N);else{var O,H=o[f+0],j=H,ie=H;for(O=0;O<N;++O)j=ie+(H=o[f+O])-j,ie=b[B+O]+(-256&j?0>j?0:255:j)&255,j=H,x[L+O]=ie}}function AA(o,f,b,B){var x=f.width,L=f.o;if(t(o!=null&&f!=null),0>b||0>=B||b+B>L)return null;if(!o.Cc){if(o.ga==null){var N;if(o.ga=new Tt,(N=o.ga==null)||(N=f.width*f.o,t(o.Gb.length==0),o.Gb=a(N),o.Uc=0,o.Gb==null?N=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,N=1),N=!N),!N){N=o.ga;var O=o.Fa,H=o.P,j=o.qc,ie=o.mb,be=o.nb,V=H+1,ue=j-1,he=N.l;if(t(O!=null&&ie!=null&&f!=null),Ta[0]=null,Ta[1]=Rt,Ta[2]=lA,Ta[3]=IA,N.ca=ie,N.tb=be,N.c=f.width,N.i=f.height,t(0<N.c&&0<N.i),1>=j)f=0;else if(N.$a=3&O[H+0],N.Z=O[H+0]>>2&3,N.Lc=O[H+0]>>4&3,H=O[H+0]>>6&3,0>N.$a||1<N.$a||4<=N.Z||1<N.Lc||H)f=0;else if(he.put=ht,he.ac=mn,he.bc=Rn,he.ma=N,he.width=f.width,he.height=f.height,he.Da=f.Da,he.v=f.v,he.va=f.va,he.j=f.j,he.o=f.o,N.$a)e:{t(N.$a==1),f=za();t:for(;;){if(f==null){f=0;break e}if(t(N!=null),N.mc=f,f.c=N.c,f.i=N.i,f.l=N.l,f.l.ma=N,f.l.width=N.c,f.l.height=N.i,f.a=0,le(f.m,O,V,ue),!En(N.c,N.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Zr(f.s)?(N.ic=1,O=f.c*f.i,f.Ta=null,f.Ua=0,f.V=a(O),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(N.ic=0,f=Ja(f,N.c)),!f))break t;f=1;break e}N.mc=null,f=0}else f=ue>=N.c*N.i;N=!f}if(N)return null;o.ga.Lc!=1?o.Ga=0:B=L-b}t(o.ga!=null),t(b+B<=L);e:{if(f=(O=o.ga).c,L=O.l.o,O.$a==0){if(V=o.rc,ue=o.Vc,he=o.Fa,H=o.P+1+b*f,j=o.mb,ie=o.nb+b*f,t(H<=o.P+o.qc),O.Z!=0)for(t(Ta[O.Z]!=null),N=0;N<B;++N)Ta[O.Z](V,ue,he,H,j,ie,f),V=j,ue=ie,ie+=f,H+=f;else for(N=0;N<B;++N)r(j,ie,he,H,f),V=j,ue=ie,ie+=f,H+=f;o.rc=V,o.Vc=ue}else{if(t(O.mc!=null),f=b+B,t((N=O.mc)!=null),t(f<=N.i),N.C>=f)f=1;else if(O.ic||An(),O.ic){O=N.V,V=N.Ba,ue=N.c;var ve=N.i,pe=(he=1,H=N.$/ue,j=N.$%ue,ie=N.m,be=N.s,N.$),xe=ue*ve,Fe=ue*f,Qe=be.wc,Ue=pe<Fe?jA(be,j,H):null;t(pe<=xe),t(f<=ve),t(Zr(be));t:for(;;){for(;!ie.h&&pe<Fe;){if(j&Qe||(Ue=jA(be,j,H)),t(Ue!=null),fe(ie),256>(ve=hA(Ue.G[0],Ue.H[0],ie)))O[V+pe]=ve,++pe,++j>=ue&&(j=0,++H<=f&&!(H%16)&&$r(N,H));else{if(!(280>ve)){he=0;break t}ve=Qr(ve-256,ie);var st,Xe=hA(Ue.G[4],Ue.H[4],ie);if(fe(ie),!(pe>=(Xe=Or(ue,Xe=Qr(Xe,ie)))&&xe-pe>=ve)){he=0;break t}for(st=0;st<ve;++st)O[V+pe+st]=O[V+pe+st-Xe];for(pe+=ve,j+=ve;j>=ue;)j-=ue,++H<=f&&!(H%16)&&$r(N,H);pe<Fe&&j&Qe&&(Ue=jA(be,j,H))}t(ie.h==re(ie))}$r(N,H>f?f:H);break t}!he||ie.h&&pe<xe?(he=0,N.a=ie.h?5:3):N.$=pe,f=he}else f=en(N,N.V,N.Ba,N.c,N.i,f,Ui);if(!f){B=0;break e}}b+B>=L&&(o.Cc=1),B=1}if(!B)return null;if(o.Cc&&((B=o.ga)!=null&&(B.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+b*x}function NA(o,f,b,B,x,L){for(;0<x--;){var N,O=o,H=f+(b?1:0),j=o,ie=f+(b?0:3);for(N=0;N<B;++N){var be=j[ie+4*N];be!=255&&(be*=32897,O[H+4*N+0]=O[H+4*N+0]*be>>23,O[H+4*N+1]=O[H+4*N+1]*be>>23,O[H+4*N+2]=O[H+4*N+2]*be>>23)}f+=L}}function FA(o,f,b,B,x){for(;0<B--;){var L;for(L=0;L<b;++L){var N=o[f+2*L+0],O=15&(j=o[f+2*L+1]),H=4369*O,j=(240&j|j>>4)*H>>16;o[f+2*L+0]=(240&N|N>>4)*H>>16&240|(15&N|N<<4)*H>>16>>4&15,o[f+2*L+1]=240&j|O}f+=x}}function VA(o,f,b,B,x,L,N,O){var H,j,ie=255;for(j=0;j<x;++j){for(H=0;H<B;++H){var be=o[f+H];L[N+4*H]=be,ie&=be}f+=b,N+=O}return ie!=255}function Gn(o,f,b,B,x){var L;for(L=0;L<x;++L)b[B+L]=o[f+L]>>8}function An(){js=NA,Fd=FA,Ld=VA,_d=Gn}function Yn(o,f,b){S[o]=function(B,x,L,N,O,H,j,ie,be,V,ue,he,ve,pe,xe,Fe,Qe){var Ue,st=Qe-1>>1,Xe=O[H+0]|j[ie+0]<<16,xt=be[V+0]|ue[he+0]<<16;t(B!=null);var tt=3*Xe+xt+131074>>2;for(f(B[x+0],255&tt,tt>>16,ve,pe),L!=null&&(tt=3*xt+Xe+131074>>2,f(L[N+0],255&tt,tt>>16,xe,Fe)),Ue=1;Ue<=st;++Ue){var Qt=O[H+Ue]|j[ie+Ue]<<16,SA=be[V+Ue]|ue[he+Ue]<<16,It=Xe+Qt+xt+SA+524296,At=It+2*(Qt+xt)>>3;tt=At+Xe>>1,Xe=(It=It+2*(Xe+SA)>>3)+Qt>>1,f(B[x+2*Ue-1],255&tt,tt>>16,ve,pe+(2*Ue-1)*b),f(B[x+2*Ue-0],255&Xe,Xe>>16,ve,pe+(2*Ue-0)*b),L!=null&&(tt=It+xt>>1,Xe=At+SA>>1,f(L[N+2*Ue-1],255&tt,tt>>16,xe,Fe+(2*Ue-1)*b),f(L[N+2*Ue+0],255&Xe,Xe>>16,xe,Fe+(2*Ue+0)*b)),Xe=Qt,xt=SA}1&Qe||(tt=3*Xe+xt+131074>>2,f(B[x+Qe-1],255&tt,tt>>16,ve,pe+(Qe-1)*b),L!=null&&(tt=3*xt+Xe+131074>>2,f(L[N+Qe-1],255&tt,tt>>16,xe,Fe+(Qe-1)*b)))}}function Ss(){Kr[mo]=YB,Kr[Bo]=kd,Kr[Dd]=WB,Kr[Eo]=Kd,Kr[wo]=qd,Kr[Y0]=jd,Kr[Rd]=XB,Kr[W0]=kd,Kr[X0]=Kd,Kr[Co]=qd,Kr[z0]=jd}function Mi(o){return o&-16384?0>o?0:255:o>>zB}function da(o,f){return Mi((19077*o>>8)+(26149*f>>8)-14234)}function ri(o,f,b){return Mi((19077*o>>8)-(6419*f>>8)-(13320*b>>8)+8708)}function ni(o,f){return Mi((19077*o>>8)+(33050*f>>8)-17685)}function ga(o,f,b,B,x){B[x+0]=da(o,b),B[x+1]=ri(o,f,b),B[x+2]=ni(o,f)}function GA(o,f,b,B,x){B[x+0]=ni(o,f),B[x+1]=ri(o,f,b),B[x+2]=da(o,b)}function ai(o,f,b,B,x){var L=ri(o,f,b);f=L<<3&224|ni(o,f)>>3,B[x+0]=248&da(o,b)|L>>5,B[x+1]=f}function ii(o,f,b,B,x){var L=240&ni(o,f)|15;B[x+0]=240&da(o,b)|ri(o,f,b)>>4,B[x+1]=L}function Qs(o,f,b,B,x){B[x+0]=255,ga(o,f,b,B,x+1)}function Os(o,f,b,B,x){GA(o,f,b,B,x),B[x+3]=255}function or(o,f,b,B,x){ga(o,f,b,B,x),B[x+3]=255}function Wn(o,f,b){S[o]=function(B,x,L,N,O,H,j,ie,be){for(var V=ie+(-2&be)*b;ie!=V;)f(B[x+0],L[N+0],O[H+0],j,ie),f(B[x+1],L[N+0],O[H+0],j,ie+b),x+=2,++N,++H,ie+=2*b;1&be&&f(B[x+0],L[N+0],O[H+0],j,ie)}}function ki(o,f,b){return b==0?o==0?f==0?6:5:f==0?4:0:b}function ho(o,f,b,B,x){switch(o>>>30){case 3:ci(f,b,B,x,0);break;case 2:Mr(f,b,B,x);break;case 1:Kt(f,b,B,x)}}function Pr(o,f){var b,B,x=f.M,L=f.Nb,N=o.oc,O=o.pc+40,H=o.oc,j=o.pc+584,ie=o.oc,be=o.pc+600;for(b=0;16>b;++b)N[O+32*b-1]=129;for(b=0;8>b;++b)H[j+32*b-1]=129,ie[be+32*b-1]=129;for(0<x?N[O-1-32]=H[j-1-32]=ie[be-1-32]=129:(n(N,O-32-1,127,21),n(H,j-32-1,127,9),n(ie,be-32-1,127,9)),B=0;B<o.za;++B){var V=f.ya[f.aa+B];if(0<B){for(b=-1;16>b;++b)r(N,O+32*b-4,N,O+32*b+12,4);for(b=-1;8>b;++b)r(H,j+32*b-4,H,j+32*b+4,4),r(ie,be+32*b-4,ie,be+32*b+4,4)}var ue=o.Gd,he=o.Hd+B,ve=V.ad,pe=V.Hc;if(0<x&&(r(N,O-32,ue[he].y,0,16),r(H,j-32,ue[he].f,0,8),r(ie,be-32,ue[he].ea,0,8)),V.Za){var xe=N,Fe=O-32+16;for(0<x&&(B>=o.za-1?n(xe,Fe,ue[he].y[15],4):r(xe,Fe,ue[he+1].y,0,4)),b=0;4>b;b++)xe[Fe+128+b]=xe[Fe+256+b]=xe[Fe+384+b]=xe[Fe+0+b];for(b=0;16>b;++b,pe<<=2)xe=N,Fe=O+Gd[b],rn[V.Ob[b]](xe,Fe),ho(pe,ve,16*+b,xe,Fe)}else if(xe=ki(B,x,V.Ob[0]),va[xe](N,O),pe!=0)for(b=0;16>b;++b,pe<<=2)ho(pe,ve,16*+b,N,O+Gd[b]);for(b=V.Gc,xe=ki(B,x,V.Dd),Jn[xe](H,j),Jn[xe](ie,be),pe=ve,xe=H,Fe=j,255&(V=0|b)&&(170&V?xn(pe,256,xe,Fe):Jt(pe,256,xe,Fe)),V=ie,pe=be,255&(b>>=8)&&(170&b?xn(ve,320,V,pe):Jt(ve,320,V,pe)),x<o.Ub-1&&(r(ue[he].y,0,N,O+480,16),r(ue[he].f,0,H,j+224,8),r(ue[he].ea,0,ie,be+224,8)),b=8*L*o.B,ue=o.sa,he=o.ta+16*B+16*L*o.R,ve=o.qa,V=o.ra+8*B+b,pe=o.Ha,xe=o.Ia+8*B+b,b=0;16>b;++b)r(ue,he+b*o.R,N,O+32*b,16);for(b=0;8>b;++b)r(ve,V+b*o.B,H,j+32*b,8),r(pe,xe+b*o.B,ie,be+32*b,8)}}function si(o,f,b,B,x,L,N,O,H){var j=[0],ie=[0],be=0,V=H!=null?H.kd:0,ue=H??new Ne;if(o==null||12>b)return 7;ue.data=o,ue.w=f,ue.ha=b,f=[f],b=[b],ue.gb=[ue.gb];e:{var he=f,ve=b,pe=ue.gb;if(t(o!=null),t(ve!=null),t(pe!=null),pe[0]=0,12<=ve[0]&&!A(o,he[0],"RIFF")){if(A(o,he[0]+8,"WEBP")){pe=3;break e}var xe=Je(o,he[0]+4);if(12>xe||4294967286<xe){pe=3;break e}if(V&&xe>ve[0]-8){pe=7;break e}pe[0]=xe,he[0]+=12,ve[0]-=12}pe=0}if(pe!=0)return pe;for(xe=0<ue.gb[0],b=b[0];;){e:{var Fe=o;ve=f,pe=b;var Qe=j,Ue=ie,st=he=[0];if((tt=be=[be])[0]=0,8>pe[0])pe=7;else{if(!A(Fe,ve[0],"VP8X")){if(Je(Fe,ve[0]+4)!=10){pe=3;break e}if(18>pe[0]){pe=7;break e}var Xe=Je(Fe,ve[0]+8),xt=1+Ke(Fe,ve[0]+12);if(2147483648<=xt*(Fe=1+Ke(Fe,ve[0]+15))){pe=3;break e}st!=null&&(st[0]=Xe),Qe!=null&&(Qe[0]=xt),Ue!=null&&(Ue[0]=Fe),ve[0]+=18,pe[0]-=18,tt[0]=1}pe=0}}if(be=be[0],he=he[0],pe!=0)return pe;if(ve=!!(2&he),!xe&&be)return 3;if(L!=null&&(L[0]=!!(16&he)),N!=null&&(N[0]=ve),O!=null&&(O[0]=0),N=j[0],he=ie[0],be&&ve&&H==null){pe=0;break}if(4>b){pe=7;break}if(xe&&be||!xe&&!be&&!A(o,f[0],"ALPH")){b=[b],ue.na=[ue.na],ue.P=[ue.P],ue.Sa=[ue.Sa];e:{Xe=o,pe=f,xe=b;var tt=ue.gb;Qe=ue.na,Ue=ue.P,st=ue.Sa,xt=22,t(Xe!=null),t(xe!=null),Fe=pe[0];var Qt=xe[0];for(t(Qe!=null),t(st!=null),Qe[0]=null,Ue[0]=null,st[0]=0;;){if(pe[0]=Fe,xe[0]=Qt,8>Qt){pe=7;break e}var SA=Je(Xe,Fe+4);if(4294967286<SA){pe=3;break e}var It=8+SA+1&-2;if(xt+=It,0<tt&&xt>tt){pe=3;break e}if(!A(Xe,Fe,"VP8 ")||!A(Xe,Fe,"VP8L")){pe=0;break e}if(Qt[0]<It){pe=7;break e}A(Xe,Fe,"ALPH")||(Qe[0]=Xe,Ue[0]=Fe+8,st[0]=SA),Fe+=It,Qt-=It}}if(b=b[0],ue.na=ue.na[0],ue.P=ue.P[0],ue.Sa=ue.Sa[0],pe!=0)break}b=[b],ue.Ja=[ue.Ja],ue.xa=[ue.xa];e:if(tt=o,pe=f,xe=b,Qe=ue.gb[0],Ue=ue.Ja,st=ue.xa,Xe=pe[0],Fe=!A(tt,Xe,"VP8 "),xt=!A(tt,Xe,"VP8L"),t(tt!=null),t(xe!=null),t(Ue!=null),t(st!=null),8>xe[0])pe=7;else{if(Fe||xt){if(tt=Je(tt,Xe+4),12<=Qe&&tt>Qe-12){pe=3;break e}if(V&&tt>xe[0]-8){pe=7;break e}Ue[0]=tt,pe[0]+=8,xe[0]-=8,st[0]=xt}else st[0]=5<=xe[0]&&tt[Xe+0]==47&&!(tt[Xe+4]>>5),Ue[0]=xe[0];pe=0}if(b=b[0],ue.Ja=ue.Ja[0],ue.xa=ue.xa[0],f=f[0],pe!=0)break;if(4294967286<ue.Ja)return 3;if(O==null||ve||(O[0]=ue.xa?2:1),N=[N],he=[he],ue.xa){if(5>b){pe=7;break}O=N,V=he,ve=L,o==null||5>b?o=0:5<=b&&o[f+0]==47&&!(o[f+4]>>5)?(xe=[0],tt=[0],Qe=[0],le(Ue=new G,o,f,b),Hn(Ue,xe,tt,Qe)?(O!=null&&(O[0]=xe[0]),V!=null&&(V[0]=tt[0]),ve!=null&&(ve[0]=Qe[0]),o=1):o=0):o=0}else{if(10>b){pe=7;break}O=he,o==null||10>b||!Ao(o,f+3,b-3)?o=0:(V=o[f+0]|o[f+1]<<8|o[f+2]<<16,ve=16383&(o[f+7]<<8|o[f+6]),o=16383&(o[f+9]<<8|o[f+8]),1&V||3<(V>>1&7)||!(V>>4&1)||V>>5>=ue.Ja||!ve||!o?o=0:(N&&(N[0]=ve),O&&(O[0]=o),o=1))}if(!o||(N=N[0],he=he[0],be&&(j[0]!=N||ie[0]!=he)))return 3;H!=null&&(H[0]=ue,H.offset=f-H.w,t(4294967286>f-H.w),t(H.offset==H.ha-b));break}return pe==0||pe==7&&be&&H==null?(L!=null&&(L[0]|=ue.na!=null&&0<ue.na.length),B!=null&&(B[0]=N),x!=null&&(x[0]=he),0):pe}function Ds(o,f,b){var B=f.width,x=f.height,L=0,N=0,O=B,H=x;if(f.Da=o!=null&&0<o.Da,f.Da&&(O=o.cd,H=o.bd,L=o.v,N=o.j,11>b||(L&=-2,N&=-2),0>L||0>N||0>=O||0>=H||L+O>B||N+H>x))return 0;if(f.v=L,f.j=N,f.va=L+O,f.o=N+H,f.U=O,f.T=H,f.da=o!=null&&0<o.da,f.da){if(!$e(O,H,b=[o.ib],L=[o.hb]))return 0;f.ib=b[0],f.hb=L[0]}return f.ob=o!=null&&o.ob,f.Kb=o==null||!o.Sd,f.da&&(f.ob=f.ib<3*B/4&&f.hb<3*x/4,f.Kb=0),1}function Rs(o){if(o==null)return 2;if(11>o.S){var f=o.f.RGBA;f.fb+=(o.height-1)*f.A,f.A=-f.A}else f=o.f.kb,o=o.height,f.O+=(o-1)*f.fa,f.fa=-f.fa,f.N+=(o-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(o-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(o-1)*f.lb,f.lb=-f.lb);return 0}function pa(o,f,b,B){if(B==null||0>=o||0>=f)return 2;if(b!=null){if(b.Da){var x=b.cd,L=b.bd,N=-2&b.v,O=-2&b.j;if(0>N||0>O||0>=x||0>=L||N+x>o||O+L>f)return 2;o=x,f=L}if(b.da){if(!$e(o,f,x=[b.ib],L=[b.hb]))return 2;o=x[0],f=L[0]}}B.width=o,B.height=f;e:{var H=B.width,j=B.height;if(o=B.S,0>=H||0>=j||!(o>=mo&&13>o))o=2;else{if(0>=B.Rd&&B.sd==null){N=L=x=f=0;var ie=(O=H*Yd[o])*j;if(11>o||(L=(j+1)/2*(f=(H+1)/2),o==12&&(N=(x=H)*j)),(j=a(ie+2*L+N))==null){o=1;break e}B.sd=j,11>o?((H=B.f.RGBA).eb=j,H.fb=0,H.A=O,H.size=ie):((H=B.f.kb).y=j,H.O=0,H.fa=O,H.Fd=ie,H.f=j,H.N=0+ie,H.Ab=f,H.Cd=L,H.ea=j,H.W=0+ie+L,H.Db=f,H.Ed=L,o==12&&(H.F=j,H.J=0+ie+2*L),H.Tc=N,H.lb=x)}if(f=1,x=B.S,L=B.width,N=B.height,x>=mo&&13>x)if(11>x)o=B.f.RGBA,f&=(O=Math.abs(o.A))*(N-1)+L<=o.size,f&=O>=L*Yd[x],f&=o.eb!=null;else{o=B.f.kb,O=(L+1)/2,ie=(N+1)/2,H=Math.abs(o.fa),j=Math.abs(o.Ab);var be=Math.abs(o.Db),V=Math.abs(o.lb),ue=V*(N-1)+L;f&=H*(N-1)+L<=o.Fd,f&=j*(ie-1)+O<=o.Cd,f=(f&=be*(ie-1)+O<=o.Ed)&H>=L&j>=O&be>=O,f&=o.y!=null,f&=o.f!=null,f&=o.ea!=null,x==12&&(f&=V>=L,f&=ue<=o.Tc,f&=o.F!=null)}else f=0;o=f?0:2}}return o!=0||b!=null&&b.fd&&(o=Rs(B)),o}var ui=64,vr=[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],Tr=24,ba=32,Xn=8,ma=[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];He("Predictor0","PredictorAdd0"),S.Predictor0=function(){return 4278190080},S.Predictor1=function(o){return o},S.Predictor2=function(o,f,b){return f[b+0]},S.Predictor3=function(o,f,b){return f[b+1]},S.Predictor4=function(o,f,b){return f[b-1]},S.Predictor5=function(o,f,b){return rt(rt(o,f[b+1]),f[b+0])},S.Predictor6=function(o,f,b){return rt(o,f[b-1])},S.Predictor7=function(o,f,b){return rt(o,f[b+0])},S.Predictor8=function(o,f,b){return rt(f[b-1],f[b+0])},S.Predictor9=function(o,f,b){return rt(f[b+0],f[b+1])},S.Predictor10=function(o,f,b){return rt(rt(o,f[b-1]),rt(f[b+0],f[b+1]))},S.Predictor11=function(o,f,b){var B=f[b+0];return 0>=ut(B>>24&255,o>>24&255,(f=f[b-1])>>24&255)+ut(B>>16&255,o>>16&255,f>>16&255)+ut(B>>8&255,o>>8&255,f>>8&255)+ut(255&B,255&o,255&f)?B:o},S.Predictor12=function(o,f,b){var B=f[b+0];return(Ot((o>>24&255)+(B>>24&255)-((f=f[b-1])>>24&255))<<24|Ot((o>>16&255)+(B>>16&255)-(f>>16&255))<<16|Ot((o>>8&255)+(B>>8&255)-(f>>8&255))<<8|Ot((255&o)+(255&B)-(255&f)))>>>0},S.Predictor13=function(o,f,b){var B=f[b-1];return(Et((o=rt(o,f[b+0]))>>24&255,B>>24&255)<<24|Et(o>>16&255,B>>16&255)<<16|Et(o>>8&255,B>>8&255)<<8|Et(255&o,255&B))>>>0};var Hs=S.PredictorAdd0;S.PredictorAdd1=Nt,He("Predictor2","PredictorAdd2"),He("Predictor3","PredictorAdd3"),He("Predictor4","PredictorAdd4"),He("Predictor5","PredictorAdd5"),He("Predictor6","PredictorAdd6"),He("Predictor7","PredictorAdd7"),He("Predictor8","PredictorAdd8"),He("Predictor9","PredictorAdd9"),He("Predictor10","PredictorAdd10"),He("Predictor11","PredictorAdd11"),He("Predictor12","PredictorAdd12"),He("Predictor13","PredictorAdd13");var Ki=S.PredictorAdd2;Ge("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),Ge("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var bA,go=S.ColorIndexInverseTransform,Tn=S.MapARGB,yn=S.VP8LColorIndexInverseTransformAlpha,Ps=S.MapAlpha,Ms=S.VP8LPredictorsAdd=[];Ms.length=16,(S.VP8LPredictors=[]).length=16,(S.VP8LPredictorsAdd_C=[]).length=16,(S.VP8LPredictors_C=[]).length=16;var ks,Ks,Ba,Ea,wa,oi,Ca,ci,Mr,xn,Kt,Jt,mA,UA,zn,qs,qi,po,Cd,vd,Td,yd,xd,Id,js,Fd,Ld,_d,Nd=a(511),Ud=a(2041),Sd=a(225),Qd=a(767),Od=0,G0=Ud,bo=Sd,yr=Qd,kr=Nd,mo=0,Bo=1,Dd=2,Eo=3,wo=4,Y0=5,Rd=6,W0=7,X0=8,Co=9,z0=10,SB=[2,3,7],QB=[3,3,11],Hd=[280,256,256,256,40],OB=[0,1,1,1,0],DB=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],RB=[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],HB=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],PB=8,J0=[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],Z0=[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],Vs=null,MB=[[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]],kB=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Pd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],KB=[[[[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]]]],qB=[[[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]]],jB=[[[[255,255,255,255,255,255,255,255,255,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]]]],VB=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],va=[],rn=[],Jn=[],GB=1,Md=2,Ta=[],Kr=[];Yn("UpsampleRgbLinePair",ga,3),Yn("UpsampleBgrLinePair",GA,3),Yn("UpsampleRgbaLinePair",or,4),Yn("UpsampleBgraLinePair",Os,4),Yn("UpsampleArgbLinePair",Qs,4),Yn("UpsampleRgba4444LinePair",ii,2),Yn("UpsampleRgb565LinePair",ai,2);var YB=S.UpsampleRgbLinePair,WB=S.UpsampleBgrLinePair,kd=S.UpsampleRgbaLinePair,Kd=S.UpsampleBgraLinePair,qd=S.UpsampleArgbLinePair,jd=S.UpsampleRgba4444LinePair,XB=S.UpsampleRgb565LinePair,vo=16,To=1<<vo-1,Gs=-227,$0=482,zB=6,Vd=0,JB=a(256),ZB=a(256),$B=a(256),e3=a(256),t3=a($0-Gs),A3=a($0-Gs);Wn("YuvToRgbRow",ga,3),Wn("YuvToBgrRow",GA,3),Wn("YuvToRgbaRow",or,4),Wn("YuvToBgraRow",Os,4),Wn("YuvToArgbRow",Qs,4),Wn("YuvToRgba4444Row",ii,2),Wn("YuvToRgb565Row",ai,2);var Gd=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],yo=[0,2,8],r3=[8,7,6,4,4,2,2,2,1,1,1,1],n3=1;this.WebPDecodeRGBA=function(o,f,b,B,x){var L=Bo,N=new Ie,O=new Lt;N.ba=O,O.S=L,O.width=[O.width],O.height=[O.height];var H=O.width,j=O.height,ie=new ft;if(ie==null||o==null)var be=2;else t(ie!=null),be=si(o,f,b,ie.width,ie.height,ie.Pd,ie.Qd,ie.format,null);if(be!=0?H=0:(H!=null&&(H[0]=ie.width[0]),j!=null&&(j[0]=ie.height[0]),H=1),H){O.width=O.width[0],O.height=O.height[0],B!=null&&(B[0]=O.width),x!=null&&(x[0]=O.height);e:{if(B=new Oi,(x=new Ne).data=o,x.w=f,x.ha=b,x.kd=1,f=[0],t(x!=null),((o=si(x.data,x.w,x.ha,null,null,null,f,null,x))==0||o==7)&&f[0]&&(o=4),(f=o)==0){if(t(N!=null),B.data=x.data,B.w=x.w+x.offset,B.ha=x.ha-x.offset,B.put=ht,B.ac=mn,B.bc=Rn,B.ma=N,x.xa){if((o=za())==null){N=1;break e}if((function(V,ue){var he=[0],ve=[0],pe=[0];t:for(;;){if(V==null)return 0;if(ue==null)return V.a=2,0;if(V.l=ue,V.a=0,le(V.m,ue.data,ue.w,ue.ha),!Hn(V.m,he,ve,pe)){V.a=3;break t}if(V.xb=Md,ue.width=he[0],ue.height=ve[0],!En(he[0],ve[0],1,V,null))break t;return 1}return t(V.a!=0),0})(o,B)){if(B=(f=pa(B.width,B.height,N.Oa,N.ba))==0){t:{B=o;A:for(;;){if(B==null){B=0;break t}if(t(B.s.yc!=null),t(B.s.Ya!=null),t(0<B.s.Wb),t((b=B.l)!=null),t((x=b.ma)!=null),B.xb!=0){if(B.ca=x.ba,B.tb=x.tb,t(B.ca!=null),!Ds(x.Oa,b,Eo)){B.a=2;break A}if(!Ja(B,b.width)||b.da)break A;if((b.da||dt(B.ca.S))&&An(),11>B.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),B.ca.f.kb.F!=null&&An()),B.Pb&&0<B.s.ua&&B.s.vb.X==null&&!q(B.s.vb,B.s.Wa.Xa)){B.a=1;break A}B.xb=0}if(!en(B,B.V,B.Ba,B.c,B.i,b.o,ha))break A;x.Dc=B.Ma,B=1;break t}t(B.a!=0),B=0}B=!B}B&&(f=o.a)}else f=o.a}else{if((o=new N0)==null){N=1;break e}if(o.Fa=x.na,o.P=x.P,o.qc=x.Sa,Cn(o,B)){if((f=pa(B.width,B.height,N.Oa,N.ba))==0){if(o.Aa=0,b=N.Oa,t((x=o)!=null),b!=null){if(0<(H=0>(H=b.Md)?0:100<H?255:255*H/100)){for(j=ie=0;4>j;++j)12>(be=x.pb[j]).lc&&(be.ia=H*r3[0>be.lc?0:be.lc]>>3),ie|=be.ia;ie&&(alert("todo:VP8InitRandom"),x.ia=1)}x.Ga=b.Id,100<x.Ga?x.Ga=100:0>x.Ga&&(x.Ga=0)}(function(V,ue){if(V==null)return 0;if(ue==null)return xA(V,2,"NULL VP8Io parameter in VP8Decode().");if(!V.cb&&!Cn(V,ue))return 0;if(t(V.cb),ue.ac==null||ue.ac(ue)){ue.ob&&(V.L=0);var he=yo[V.L];if(V.L==2?(V.yb=0,V.zb=0):(V.yb=ue.v-he>>4,V.zb=ue.j-he>>4,0>V.yb&&(V.yb=0),0>V.zb&&(V.zb=0)),V.Va=ue.o+15+he>>4,V.Hb=ue.va+15+he>>4,V.Hb>V.za&&(V.Hb=V.za),V.Va>V.Ub&&(V.Va=V.Ub),0<V.L){var ve=V.ed;for(he=0;4>he;++he){var pe;if(V.Qa.Cb){var xe=V.Qa.Lb[he];V.Qa.Fb||(xe+=ve.Tb)}else xe=ve.Tb;for(pe=0;1>=pe;++pe){var Fe=V.gd[he][pe],Qe=xe;if(ve.Pc&&(Qe+=ve.vd[0],pe&&(Qe+=ve.od[0])),0<(Qe=0>Qe?0:63<Qe?63:Qe)){var Ue=Qe;0<ve.wb&&(Ue=4<ve.wb?Ue>>2:Ue>>1)>9-ve.wb&&(Ue=9-ve.wb),1>Ue&&(Ue=1),Fe.dd=Ue,Fe.tc=2*Qe+Ue,Fe.ld=40<=Qe?2:15<=Qe?1:0}else Fe.tc=0;Fe.La=pe}}}he=0}else xA(V,6,"Frame setup failed"),he=V.a;if(he=he==0){if(he){V.$c=0,0<V.Aa||(V.Ic=n3);t:{he=V.Ic,ve=4*(Ue=V.za);var st=32*Ue,Xe=Ue+1,xt=0<V.L?Ue*(0<V.Aa?2:1):0,tt=(V.Aa==2?2:1)*Ue;if((Fe=ve+832+(pe=3*(16*he+yo[V.L])/2*st)+(xe=V.Fa!=null&&0<V.Fa.length?V.Kc.c*V.Kc.i:0))!=Fe)he=0;else{if(Fe>V.Vb){if(V.Vb=0,V.Ec=a(Fe),V.Fc=0,V.Ec==null){he=xA(V,1,"no memory during frame initialization.");break t}V.Vb=Fe}Fe=V.Ec,Qe=V.Fc,V.Ac=Fe,V.Bc=Qe,Qe+=ve,V.Gd=i(st,eo),V.Hd=0,V.rb=i(Xe+1,vs),V.sb=1,V.wa=xt?i(xt,Rr):null,V.Y=0,V.D.Nb=0,V.D.wa=V.wa,V.D.Y=V.Y,0<V.Aa&&(V.D.Y+=Ue),t(!0),V.oc=Fe,V.pc=Qe,Qe+=832,V.ya=i(tt,Ts),V.aa=0,V.D.ya=V.ya,V.D.aa=V.aa,V.Aa==2&&(V.D.aa+=Ue),V.R=16*Ue,V.B=8*Ue,Ue=(st=yo[V.L])*V.R,st=st/2*V.B,V.sa=Fe,V.ta=Qe+Ue,V.qa=V.sa,V.ra=V.ta+16*he*V.R+st,V.Ha=V.qa,V.Ia=V.ra+8*he*V.B+st,V.$c=0,Qe+=pe,V.mb=xe?Fe:null,V.nb=xe?Qe:null,t(Qe+xe<=V.Fc+V.Vb),ro(V),n(V.Ac,V.Bc,0,ve),he=1}}if(he){if(ue.ka=0,ue.y=V.sa,ue.O=V.ta,ue.f=V.qa,ue.N=V.ra,ue.ea=V.Ha,ue.Vd=V.Ia,ue.fa=V.R,ue.Rc=V.B,ue.F=null,ue.J=0,!Od){for(he=-255;255>=he;++he)Nd[255+he]=0>he?-he:he;for(he=-1020;1020>=he;++he)Ud[1020+he]=-128>he?-128:127<he?127:he;for(he=-112;112>=he;++he)Sd[112+he]=-16>he?-16:15<he?15:he;for(he=-255;510>=he;++he)Qd[255+he]=0>he?0:255<he?255:he;Od=1}Ca=Ri,ci=S0,xn=vn,Kt=ao,Jt=io,Mr=U0,mA=lo,UA=Ai,zn=y,qs=Y,qi=fo,po=g,Cd=ne,vd=ce,Td=ti,yd=Us,xd=oo,Id=co,rn[0]=k0,rn[1]=Q0,rn[2]=P0,rn[3]=M0,rn[4]=Mn,rn[5]=K0,rn[6]=kn,rn[7]=q0,rn[8]=Is,rn[9]=Hi,va[0]=R0,va[1]=D0,va[2]=ys,va[3]=so,va[4]=$a,va[5]=xs,va[6]=H0,Jn[0]=V0,Jn[1]=O0,Jn[2]=ei,Jn[3]=j0,Jn[4]=Ls,Jn[5]=Fs,Jn[6]=uo,he=1}else he=0}he&&(he=(function(Qt,SA){for(Qt.M=0;Qt.M<Qt.Va;++Qt.M){var It,At=Qt.Jc[Qt.M&Qt.Xb],je=Qt.m,BA=Qt;for(It=0;It<BA.za;++It){var Ct=je,Dt=BA,aA=Dt.Ac,YA=Dt.Bc+4*It,cr=Dt.zc,dA=Dt.ya[Dt.aa+It];if(Dt.Qa.Bb?dA.$b=Ce(Ct,Dt.Pa.jb[0])?2+Ce(Ct,Dt.Pa.jb[2]):Ce(Ct,Dt.Pa.jb[1]):dA.$b=0,Dt.kc&&(dA.Ad=Ce(Ct,Dt.Bd)),dA.Za=!Ce(Ct,145)+0,dA.Za){var tr=dA.Ob,lr=0;for(Dt=0;4>Dt;++Dt){var QA,Ht=cr[0+Dt];for(QA=0;4>QA;++QA){Ht=qB[aA[YA+QA]][Ht];for(var Vt=Pd[Ce(Ct,Ht[0])];0<Vt;)Vt=Pd[2*Vt+Ce(Ct,Ht[Vt])];Ht=-Vt,aA[YA+QA]=Ht}r(tr,lr,aA,YA,4),lr+=4,cr[0+Dt]=Ht}}else Ht=Ce(Ct,156)?Ce(Ct,128)?1:3:Ce(Ct,163)?2:0,dA.Ob[0]=Ht,n(aA,YA,Ht,4),n(cr,0,Ht,4);dA.Dd=Ce(Ct,142)?Ce(Ct,114)?Ce(Ct,183)?1:3:2:0}if(BA.m.Ka)return xA(Qt,7,"Premature end-of-partition0 encountered.");for(;Qt.ja<Qt.za;++Qt.ja){if(BA=At,Ct=(je=Qt).rb[je.sb-1],aA=je.rb[je.sb+je.ja],It=je.ya[je.aa+je.ja],YA=je.kc?It.Ad:0)Ct.la=aA.la=0,It.Za||(Ct.Na=aA.Na=0),It.Hc=0,It.Gc=0,It.ia=0;else{var gA,Gt;if(Ct=aA,aA=BA,YA=je.Pa.Xc,cr=je.ya[je.aa+je.ja],dA=je.pb[cr.$b],Dt=cr.ad,tr=0,lr=je.rb[je.sb-1],Ht=QA=0,n(Dt,tr,0,384),cr.Za)var WA=0,nn=YA[3];else{Vt=a(16);var EA=Ct.Na+lr.Na;if(EA=Vs(aA,YA[1],EA,dA.Eb,0,Vt,0),Ct.Na=lr.Na=(0<EA)+0,1<EA)Ca(Vt,0,Dt,tr);else{var gr=Vt[0]+3>>3;for(Vt=0;256>Vt;Vt+=16)Dt[tr+Vt]=gr}WA=1,nn=YA[0]}var Zt=15&Ct.la,OA=15&lr.la;for(Vt=0;4>Vt;++Vt){var xr=1&OA;for(gr=Gt=0;4>gr;++gr)Zt=Zt>>1|(xr=(EA=Vs(aA,nn,EA=xr+(1&Zt),dA.Sc,WA,Dt,tr))>WA)<<7,Gt=Gt<<2|(3<EA?3:1<EA?2:Dt[tr+0]!=0),tr+=16;Zt>>=4,OA=OA>>1|xr<<7,QA=(QA<<8|Gt)>>>0}for(nn=Zt,WA=OA>>4,gA=0;4>gA;gA+=2){for(Gt=0,Zt=Ct.la>>4+gA,OA=lr.la>>4+gA,Vt=0;2>Vt;++Vt){for(xr=1&OA,gr=0;2>gr;++gr)EA=xr+(1&Zt),Zt=Zt>>1|(xr=0<(EA=Vs(aA,YA[2],EA,dA.Qc,0,Dt,tr)))<<3,Gt=Gt<<2|(3<EA?3:1<EA?2:Dt[tr+0]!=0),tr+=16;Zt>>=2,OA=OA>>1|xr<<5}Ht|=Gt<<4*gA,nn|=Zt<<4<<gA,WA|=(240&OA)<<gA}Ct.la=nn,lr.la=WA,cr.Hc=QA,cr.Gc=Ht,cr.ia=43690&Ht?0:dA.ia,YA=!(QA|Ht)}if(0<je.L&&(je.wa[je.Y+je.ja]=je.gd[It.$b][It.Za],je.wa[je.Y+je.ja].La|=!YA),BA.Ka)return xA(Qt,7,"Premature end-of-file encountered.")}if(ro(Qt),je=SA,BA=1,It=(At=Qt).D,Ct=0<At.L&&At.M>=At.zb&&At.M<=At.Va,At.Aa==0)t:{if(It.M=At.M,It.uc=Ct,Pr(At,It),BA=1,It=(Gt=At.D).Nb,Ct=(Ht=yo[At.L])*At.R,aA=Ht/2*At.B,Vt=16*It*At.R,gr=8*It*At.B,YA=At.sa,cr=At.ta-Ct+Vt,dA=At.qa,Dt=At.ra-aA+gr,tr=At.Ha,lr=At.Ia-aA+gr,OA=(Zt=Gt.M)==0,QA=Zt>=At.Va-1,At.Aa==2&&Pr(At,Gt),Gt.uc)for(xr=(EA=At).D.M,t(EA.D.uc),Gt=EA.yb;Gt<EA.Hb;++Gt){WA=Gt,nn=xr;var fr=(Ir=(XA=EA).D).Nb;gA=XA.R;var Ir=Ir.wa[Ir.Y+WA],Fr=XA.sa,pr=XA.ta+16*fr*gA+16*WA,Lr=Ir.dd,rA=Ir.tc;if(rA!=0)if(t(3<=rA),XA.L==1)0<WA&&yd(Fr,pr,gA,rA+4),Ir.La&&Id(Fr,pr,gA,rA),0<nn&&Td(Fr,pr,gA,rA+4),Ir.La&&xd(Fr,pr,gA,rA);else{var _r=XA.B,an=XA.qa,li=XA.ra+8*fr*_r+8*WA,Zn=XA.Ha,XA=XA.Ia+8*fr*_r+8*WA;fr=Ir.ld,0<WA&&(UA(Fr,pr,gA,rA+4,Lr,fr),qs(an,li,Zn,XA,_r,rA+4,Lr,fr)),Ir.La&&(po(Fr,pr,gA,rA,Lr,fr),vd(an,li,Zn,XA,_r,rA,Lr,fr)),0<nn&&(mA(Fr,pr,gA,rA+4,Lr,fr),zn(an,li,Zn,XA,_r,rA+4,Lr,fr)),Ir.La&&(qi(Fr,pr,gA,rA,Lr,fr),Cd(an,li,Zn,XA,_r,rA,Lr,fr))}}if(At.ia&&alert("todo:DitherRow"),je.put!=null){if(Gt=16*Zt,Zt=16*(Zt+1),OA?(je.y=At.sa,je.O=At.ta+Vt,je.f=At.qa,je.N=At.ra+gr,je.ea=At.Ha,je.W=At.Ia+gr):(Gt-=Ht,je.y=YA,je.O=cr,je.f=dA,je.N=Dt,je.ea=tr,je.W=lr),QA||(Zt-=Ht),Zt>je.o&&(Zt=je.o),je.F=null,je.J=null,At.Fa!=null&&0<At.Fa.length&&Gt<Zt&&(je.J=AA(At,je,Gt,Zt-Gt),je.F=At.mb,je.F==null&&je.F.length==0)){BA=xA(At,3,"Could not decode alpha data.");break t}Gt<je.j&&(Ht=je.j-Gt,Gt=je.j,t(!(1&Ht)),je.O+=At.R*Ht,je.N+=At.B*(Ht>>1),je.W+=At.B*(Ht>>1),je.F!=null&&(je.J+=je.width*Ht)),Gt<Zt&&(je.O+=je.v,je.N+=je.v>>1,je.W+=je.v>>1,je.F!=null&&(je.J+=je.v),je.ka=Gt-je.j,je.U=je.va-je.v,je.T=Zt-Gt,BA=je.put(je))}It+1!=At.Ic||QA||(r(At.sa,At.ta-Ct,YA,cr+16*At.R,Ct),r(At.qa,At.ra-aA,dA,Dt+8*At.B,aA),r(At.Ha,At.Ia-aA,tr,lr+8*At.B,aA))}if(!BA)return xA(Qt,6,"Output aborted.")}return 1})(V,ue)),ue.bc!=null&&ue.bc(ue),he&=1}return he?(V.cb=0,he):0})(o,B)||(f=o.a)}}else f=o.a}f==0&&N.Oa!=null&&N.Oa.fd&&(f=Rs(N.ba))}N=f}L=N!=0?null:11>L?O.f.RGBA.eb:O.f.kb.y}else L=null;return L};var Yd=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(S,Ae){for(var E="",I=0;I<4;I++)E+=String.fromCharCode(S[Ae++]);return E}function l(S,Ae){return S[Ae+0]|S[Ae+1]<<8}function p(S,Ae){return(S[Ae+0]|S[Ae+1]<<8|S[Ae+2]<<16)>>>0}function m(S,Ae){return(S[Ae+0]|S[Ae+1]<<8|S[Ae+2]<<16|S[Ae+3]<<24)>>>0}new u;var h=[0],w=[0],v=[],T=new u,C=e,U=(function(S,Ae){var E={},I=0,Q=!1,M=0,X=0;if(E.frames=[],!(function(_,G){for(var z=0;z<4;z++)if(_[G+z]!="RIFF".charCodeAt(z))return!0;return!1})(S,Ae)){for(m(S,Ae+=4),Ae+=8;Ae<S.length;){var $=c(S,Ae),ae=m(S,Ae+=4);Ae+=4;var te=ae+(1&ae);switch($){case"VP8 ":case"VP8L":E.frames[I]===void 0&&(E.frames[I]={}),(ye=E.frames[I]).src_off=Q?X:Ae-8,ye.src_size=M+ae+8,I++,Q&&(Q=!1,M=0,X=0);break;case"VP8X":(ye=E.header={}).feature_flags=S[Ae];var le=Ae+4;ye.canvas_width=1+p(S,le),le+=3,ye.canvas_height=1+p(S,le),le+=3;break;case"ALPH":Q=!0,M=te+8,X=Ae-8;break;case"ANIM":(ye=E.header).bgcolor=m(S,Ae),le=Ae+4,ye.loop_count=l(S,le),le+=2;break;case"ANMF":var Te,ye;(ye=E.frames[I]={}).offset_x=2*p(S,Ae),Ae+=3,ye.offset_y=2*p(S,Ae),Ae+=3,ye.width=1+p(S,Ae),Ae+=3,ye.height=1+p(S,Ae),Ae+=3,ye.duration=p(S,Ae),Ae+=3,Te=S[Ae++],ye.dispose=1&Te,ye.blend=Te>>1&1}$!="ANMF"&&(Ae+=te)}return E}})(C,0);U.response=C,U.rgbaoutput=!0,U.dataurl=!1;var R=U.header?U.header:null,F=U.frames?U.frames:null;if(R){R.loop_counter=R.loop_count,h=[R.canvas_height],w=[R.canvas_width];for(var D=0;D<F.length&&F[D].blend!=0;D++);}var P=F[0],J=T.WebPDecodeRGBA(C,P.src_off,P.src_size,w,h);P.rgba=J,P.imgwidth=w[0],P.imgheight=h[0];for(var K=0;K<w[0]*h[0]*4;K++)v[K]=J[K];return this.width=w,this.height=h,this.data=v,this}(function(e){var t,A,r,n,a,i,s,u,c,l=function(_){return _=_||{},this.isStrokeTransparent=_.isStrokeTransparent||!1,this.strokeOpacity=_.strokeOpacity||1,this.strokeStyle=_.strokeStyle||"#000000",this.fillStyle=_.fillStyle||"#000000",this.isFillTransparent=_.isFillTransparent||!1,this.fillOpacity=_.fillOpacity||1,this.font=_.font||"10px sans-serif",this.textBaseline=_.textBaseline||"alphabetic",this.textAlign=_.textAlign||"left",this.lineWidth=_.lineWidth||1,this.lineJoin=_.lineJoin||"miter",this.lineCap=_.lineCap||"butt",this.path=_.path||[],this.transform=_.transform!==void 0?_.transform.clone():new u,this.globalCompositeOperation=_.globalCompositeOperation||"normal",this.globalAlpha=_.globalAlpha||1,this.clip_path=_.clip_path||[],this.currentPoint=_.currentPoint||new i,this.miterLimit=_.miterLimit||10,this.lastPoint=_.lastPoint||new i,this.lineDashOffset=_.lineDashOffset||0,this.lineDash=_.lineDash||[],this.margin=_.margin||[0,0,0,0],this.prevPageLastElemOffset=_.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _.ignoreClearRect!="boolean"||_.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),t=this.internal.f2,A=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,i=this.internal.Point,s=this.internal.Rectangle,u=this.internal.Matrix,c=new l}]);var p=function(_){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var G=_;Object.defineProperty(this,"pdf",{get:function(){return G}});var z=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return z},set:function(q){z=!!q}});var re=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return re},set:function(q){re=!!q}});var se=0;Object.defineProperty(this,"posX",{get:function(){return se},set:function(q){isNaN(q)||(se=q)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(q){isNaN(q)||(fe=q)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(q){var Me;typeof q=="number"?Me=[q,q,q,q]:((Me=new Array(4))[0]=q[0],Me[1]=q.length>=2?q[1]:Me[0],Me[2]=q.length>=3?q[2]:Me[0],Me[3]=q.length>=4?q[3]:Me[1]),c.margin=Me}});var ge=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ge},set:function(q){ge=q}});var Ee=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ee},set:function(q){Ee=q}});var Ce=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ce},set:function(q){Ce=q}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(q){q instanceof l&&(c=q)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(q){c.path=q}});var _e=[];Object.defineProperty(this,"ctxStack",{get:function(){return _e},set:function(q){_e=q}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(q){var Me;Me=m(q),this.ctx.fillStyle=Me.style,this.ctx.isFillTransparent=Me.a===0,this.ctx.fillOpacity=Me.a,this.pdf.setFillColor(Me.r,Me.g,Me.b,{a:Me.a}),this.pdf.setTextColor(Me.r,Me.g,Me.b,{a:Me.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(q){var Me=m(q);this.ctx.strokeStyle=Me.style,this.ctx.isStrokeTransparent=Me.a===0,this.ctx.strokeOpacity=Me.a,Me.a===0?this.pdf.setDrawColor(255,255,255):(Me.a,this.pdf.setDrawColor(Me.r,Me.g,Me.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(q){["butt","round","square"].indexOf(q)!==-1&&(this.ctx.lineCap=q,this.pdf.setLineCap(q))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(q){isNaN(q)||(this.ctx.lineWidth=q,this.pdf.setLineWidth(q))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(q){["bevel","round","miter"].indexOf(q)!==-1&&(this.ctx.lineJoin=q,this.pdf.setLineJoin(q))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(q){isNaN(q)||(this.ctx.miterLimit=q,this.pdf.setMiterLimit(q))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(q){this.ctx.textBaseline=q}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(q){["right","end","center","left","start"].indexOf(q)!==-1&&(this.ctx.textAlign=q)}});var qe=null,Ke=null,Je=null;Object.defineProperty(this,"fontFaces",{get:function(){return Je},set:function(q){qe=null,Ke=null,Je=q}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(q){var Me;if(this.ctx.font=q,(Me=/^\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-z0-9]+?)\s*$/i.exec(q))!==null){var it=Me[1];Me[2];var $e=Me[3],Be=Me[4];Me[5];var Pe=Me[6],He=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Be)[2];Be=Math.floor(He==="px"?parseFloat(Be)*this.pdf.internal.scaleFactor:He==="em"?parseFloat(Be)*this.pdf.getFontSize():parseFloat(Be)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Be);var Ve=(function(Ge){var jt,St,vt=[],yt=Ge.trim();if(yt==="")return Af;if(yt in mg)return[mg[yt]];for(;yt!=="";){switch(St=null,jt=(yt=Eg(yt)).charAt(0)){case'"':case"'":St=cx(yt.substring(1),jt);break;default:St=lx(yt)}if(St===null||(vt.push(St[0]),(yt=Eg(St[1]))!==""&&yt.charAt(0)!==","))return Af;yt=yt.replace(/^,/,"")}return vt})(Pe);if(this.fontFaces){var rt=(function(Ge,jt){var St=Ge.getFontList(),vt=JSON.stringify(St);if(qe===null||Ke!==vt){var yt=(function(Wt){var ot=[];return Object.keys(Wt).forEach(function(tA){Wt[tA].forEach(function(dt){var wt=null;switch(dt){case"bold":wt={family:tA,weight:"bold"};break;case"italic":wt={family:tA,style:"italic"};break;case"bolditalic":wt={family:tA,weight:"bold",style:"italic"};break;case"":case"normal":wt={family:tA}}wt!==null&&(wt.ref={name:tA,style:dt},ot.push(wt))})}),ot})(St);qe=(function(Wt){for(var ot={},tA=0;tA<Wt.length;++tA){var dt=tf(Wt[tA]),wt=dt.family,sA=dt.stretch,Lt=dt.style,ft=dt.weight;ot[wt]=ot[wt]||{},ot[wt][sA]=ot[wt][sA]||{},ot[wt][sA][Lt]=ot[wt][sA][Lt]||{},ot[wt][sA][Lt][ft]=dt}return ot})(yt.concat(jt)),Ke=vt}return qe})(this.pdf,this.fontFaces),Ot=Ve.map(function(Ge){return{family:Ge,stretch:"normal",weight:$e,style:it}}),Et=(function(Ge,jt,St){for(var vt=(St=St||{}).defaultFontFamily||"times",yt=Object.assign({},ox,St.genericFontFamilies||{}),Wt=null,ot=null,tA=0;tA<jt.length;++tA)if(yt[(Wt=tf(jt[tA])).family]&&(Wt.family=yt[Wt.family]),Ge.hasOwnProperty(Wt.family)){ot=Ge[Wt.family];break}if(!(ot=ot||Ge[vt]))throw new Error("Could not find a font-family for the rule '"+Bg(Wt)+"' and default family '"+vt+"'.");if(ot=(function(dt,wt){if(wt[dt])return wt[dt];var sA=ih[dt],Lt=sA<=ih.normal?-1:1,ft=bg(wt,T5,sA,Lt);if(!ft)throw new Error("Could not find a matching font-stretch value for "+dt);return ft})(Wt.stretch,ot),ot=(function(dt,wt){if(wt[dt])return wt[dt];for(var sA=v5[dt],Lt=0;Lt<sA.length;++Lt)if(wt[sA[Lt]])return wt[sA[Lt]];throw new Error("Could not find a matching font-style for "+dt)})(Wt.style,ot),!(ot=(function(dt,wt){if(wt[dt])return wt[dt];if(dt===400&&wt[500])return wt[500];if(dt===500&&wt[400])return wt[400];var sA=ux[dt],Lt=bg(wt,y5,sA,dt<400?-1:1);if(!Lt)throw new Error("Could not find a matching font-weight for value "+dt);return Lt})(Wt.weight,ot)))throw new Error("Failed to resolve a font for the rule '"+Bg(Wt)+"'.");return ot})(rt,Ot);this.pdf.setFont(Et.ref.name,Et.ref.style)}else{var ut="";($e==="bold"||parseInt($e,10)>=700||it==="bold")&&(ut="bold"),it==="italic"&&(ut+="italic"),ut.length===0&&(ut="normal");for(var Nt="",Ft={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"},et=0;et<Ve.length;et++){if(this.pdf.internal.getFont(Ve[et],ut,{noFallback:!0,disableWarning:!0})!==void 0){Nt=Ve[et];break}if(ut==="bolditalic"&&this.pdf.internal.getFont(Ve[et],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Nt=Ve[et],ut="bold";else if(this.pdf.internal.getFont(Ve[et],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Nt=Ve[et],ut="normal";break}}if(Nt===""){for(var Oe=0;Oe<Ve.length;Oe++)if(Ft[Ve[Oe]]){Nt=Ft[Ve[Oe]];break}}Nt=Nt===""?"Times":Nt,this.pdf.setFont(Nt,ut)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(q){this.ctx.globalCompositeOperation=q}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(q){this.ctx.globalAlpha=q}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(q){this.ctx.lineDashOffset=q,ye.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(q){this.ctx.lineDash=q,ye.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(q){this.ctx.ignoreClearRect=!!q}})};p.prototype.setLineDash=function(_){this.lineDash=_},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){F.call(this,"fill",!1)},p.prototype.stroke=function(){F.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(_,G){if(isNaN(_)||isNaN(G))throw $t.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var z=this.ctx.transform.applyToPoint(new i(_,G));this.path.push({type:"mt",x:z.x,y:z.y}),this.ctx.lastPoint=new i(_,G)},p.prototype.closePath=function(){var _=new i(0,0),G=0;for(G=this.path.length-1;G!==-1;G--)if(this.path[G].type==="begin"&&eA(this.path[G+1])==="object"&&typeof this.path[G+1].x=="number"){_=new i(this.path[G+1].x,this.path[G+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new i(_.x,_.y)},p.prototype.lineTo=function(_,G){if(isNaN(_)||isNaN(G))throw $t.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var z=this.ctx.transform.applyToPoint(new i(_,G));this.path.push({type:"lt",x:z.x,y:z.y}),this.ctx.lastPoint=new i(z.x,z.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),F.call(this,null,!0)},p.prototype.quadraticCurveTo=function(_,G,z,re){if(isNaN(z)||isNaN(re)||isNaN(_)||isNaN(G))throw $t.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var se=this.ctx.transform.applyToPoint(new i(z,re)),fe=this.ctx.transform.applyToPoint(new i(_,G));this.path.push({type:"qct",x1:fe.x,y1:fe.y,x:se.x,y:se.y}),this.ctx.lastPoint=new i(se.x,se.y)},p.prototype.bezierCurveTo=function(_,G,z,re,se,fe){if(isNaN(se)||isNaN(fe)||isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re))throw $t.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ge=this.ctx.transform.applyToPoint(new i(se,fe)),Ee=this.ctx.transform.applyToPoint(new i(_,G)),Ce=this.ctx.transform.applyToPoint(new i(z,re));this.path.push({type:"bct",x1:Ee.x,y1:Ee.y,x2:Ce.x,y2:Ce.y,x:ge.x,y:ge.y}),this.ctx.lastPoint=new i(ge.x,ge.y)},p.prototype.arc=function(_,G,z,re,se,fe){if(isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re)||isNaN(se))throw $t.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var ge=this.ctx.transform.applyToPoint(new i(_,G));_=ge.x,G=ge.y;var Ee=this.ctx.transform.applyToPoint(new i(0,z)),Ce=this.ctx.transform.applyToPoint(new i(0,0));z=Math.sqrt(Math.pow(Ee.x-Ce.x,2)+Math.pow(Ee.y-Ce.y,2))}Math.abs(se-re)>=2*Math.PI&&(re=0,se=2*Math.PI),this.path.push({type:"arc",x:_,y:G,radius:z,startAngle:re,endAngle:se,counterclockwise:fe})},p.prototype.arcTo=function(_,G,z,re,se){throw new Error("arcTo not implemented.")},p.prototype.rect=function(_,G,z,re){if(isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re))throw $t.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(_,G),this.lineTo(_+z,G),this.lineTo(_+z,G+re),this.lineTo(_,G+re),this.lineTo(_,G),this.lineTo(_+z,G),this.lineTo(_,G)},p.prototype.fillRect=function(_,G,z,re){if(isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re))throw $t.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var se={};this.lineCap!=="butt"&&(se.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(se.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(_,G,z,re),this.fill(),se.hasOwnProperty("lineCap")&&(this.lineCap=se.lineCap),se.hasOwnProperty("lineJoin")&&(this.lineJoin=se.lineJoin)}},p.prototype.strokeRect=function(_,G,z,re){if(isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re))throw $t.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");w.call(this)||(this.beginPath(),this.rect(_,G,z,re),this.stroke())},p.prototype.clearRect=function(_,G,z,re){if(isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re))throw $t.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(_,G,z,re))},p.prototype.save=function(_){_=typeof _!="boolean"||_;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("q");if(this.pdf.setPage(G),_){this.ctx.fontSize=this.pdf.internal.getFontSize();var re=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=re}},p.prototype.restore=function(_){_=typeof _!="boolean"||_;for(var G=this.pdf.internal.getCurrentPageInfo().pageNumber,z=0;z<this.pdf.internal.getNumberOfPages();z++)this.pdf.setPage(z+1),this.pdf.internal.out("Q");this.pdf.setPage(G),_&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(_){var G,z,re,se;if(_.isCanvasGradient===!0&&(_=_.getColor()),!_)return{r:0,g:0,b:0,a:0,style:_};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_))G=0,z=0,re=0,se=0;else{var fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_);if(fe!==null)G=parseInt(fe[1]),z=parseInt(fe[2]),re=parseInt(fe[3]),se=1;else if((fe=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_))!==null)G=parseInt(fe[1]),z=parseInt(fe[2]),re=parseInt(fe[3]),se=parseFloat(fe[4]);else{if(se=1,typeof _=="string"&&_.charAt(0)!=="#"){var ge=new p5(_);_=ge.ok?ge.toHex():"#000000"}_.length===4?(G=_.substring(1,2),G+=G,z=_.substring(2,3),z+=z,re=_.substring(3,4),re+=re):(G=_.substring(1,3),z=_.substring(3,5),re=_.substring(5,7)),G=parseInt(G,16),z=parseInt(z,16),re=parseInt(re,16)}}return{r:G,g:z,b:re,a:se,style:_}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},w=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(_,G,z,re){if(isNaN(G)||isNaN(z)||typeof _!="string")throw $t.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(re=isNaN(re)?void 0:re,!h.call(this)){var se=te(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;I.call(this,{text:_,x:G,y:z,scale:fe,angle:se,align:this.textAlign,maxWidth:re})}},p.prototype.strokeText=function(_,G,z,re){if(isNaN(G)||isNaN(z)||typeof _!="string")throw $t.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!w.call(this)){re=isNaN(re)?void 0:re;var se=te(this.ctx.transform.rotation),fe=this.ctx.transform.scaleX;I.call(this,{text:_,x:G,y:z,scale:fe,renderingMode:"stroke",angle:se,align:this.textAlign,maxWidth:re})}},p.prototype.measureText=function(_){if(typeof _!="string")throw $t.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var G=this.pdf,z=this.pdf.internal.scaleFactor,re=G.internal.getFontSize(),se=G.getStringUnitWidth(_)*re/G.internal.scaleFactor;return new function(fe){var ge=(fe=fe||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ge}}),this}({width:se*=Math.round(96*z/72*1e4)/1e4})},p.prototype.scale=function(_,G){if(isNaN(_)||isNaN(G))throw $t.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var z=new u(_,0,0,G,0,0);this.ctx.transform=this.ctx.transform.multiply(z)},p.prototype.rotate=function(_){if(isNaN(_))throw $t.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var G=new u(Math.cos(_),Math.sin(_),-Math.sin(_),Math.cos(_),0,0);this.ctx.transform=this.ctx.transform.multiply(G)},p.prototype.translate=function(_,G){if(isNaN(_)||isNaN(G))throw $t.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var z=new u(1,0,0,1,_,G);this.ctx.transform=this.ctx.transform.multiply(z)},p.prototype.transform=function(_,G,z,re,se,fe){if(isNaN(_)||isNaN(G)||isNaN(z)||isNaN(re)||isNaN(se)||isNaN(fe))throw $t.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ge=new u(_,G,z,re,se,fe);this.ctx.transform=this.ctx.transform.multiply(ge)},p.prototype.setTransform=function(_,G,z,re,se,fe){_=isNaN(_)?1:_,G=isNaN(G)?0:G,z=isNaN(z)?0:z,re=isNaN(re)?1:re,se=isNaN(se)?0:se,fe=isNaN(fe)?0:fe,this.ctx.transform=new u(_,G,z,re,se,fe)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(_,G,z,re,se,fe,ge,Ee,Ce){var _e=this.pdf.getImageProperties(_),qe=1,Ke=1,Je=1,q=1;re!==void 0&&Ee!==void 0&&(Je=Ee/re,q=Ce/se,qe=_e.width/re*Ee/re,Ke=_e.height/se*Ce/se),fe===void 0&&(fe=G,ge=z,G=0,z=0),re!==void 0&&Ee===void 0&&(Ee=re,Ce=se),re===void 0&&Ee===void 0&&(Ee=_e.width,Ce=_e.height);var Me=this.ctx.transform.decompose(),it=te(Me.rotate.shx),$e=new u,Be=($e=($e=($e=$e.multiply(Me.translate)).multiply(Me.skew)).multiply(Me.scale)).applyToRectangle(new s(fe-G*Je,ge-z*q,re*qe,se*Ke));if(this.autoPaging){for(var Pe,He=T.call(this,Be),Ve=[],rt=0;rt<He.length;rt+=1)Ve.indexOf(He[rt])===-1&&Ve.push(He[rt]);R(Ve);for(var Ot=Ve[0],Et=Ve[Ve.length-1],ut=Ot;ut<Et+1;ut++){this.pdf.setPage(ut);var Nt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ft=ut===1?this.posY+this.margin[0]:this.margin[0],et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Oe=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ge=ut===1?0:et+(ut-2)*Oe;if(this.ctx.clip_path.length!==0){var jt=this.path;Pe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(Pe,this.posX+this.margin[3],-Ge+Ft+this.ctx.prevPageLastElemOffset),D.call(this,"fill",!0),this.path=jt}var St=JSON.parse(JSON.stringify(Be));St=U([St],this.posX+this.margin[3],-Ge+Ft+this.ctx.prevPageLastElemOffset)[0];var vt=(ut>Ot||ut<Et)&&v.call(this);vt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Nt,Oe,null).clip().discardPath()),this.pdf.addImage(_,"JPEG",St.x,St.y,St.w,St.h,null,null,it),vt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(_,"JPEG",Be.x,Be.y,Be.w,Be.h,null,null,it)};var T=function(_,G,z){var re=[];G=G||this.pdf.internal.pageSize.width,z=z||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var se=this.posY+this.ctx.prevPageLastElemOffset;switch(_.type){default:case"mt":case"lt":re.push(Math.floor((_.y+se)/z)+1);break;case"arc":re.push(Math.floor((_.y+se-_.radius)/z)+1),re.push(Math.floor((_.y+se+_.radius)/z)+1);break;case"qct":var fe=le(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x,_.y);re.push(Math.floor((fe.y+se)/z)+1),re.push(Math.floor((fe.y+fe.h+se)/z)+1);break;case"bct":var ge=Te(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_.x1,_.y1,_.x2,_.y2,_.x,_.y);re.push(Math.floor((ge.y+se)/z)+1),re.push(Math.floor((ge.y+ge.h+se)/z)+1);break;case"rect":re.push(Math.floor((_.y+se)/z)+1),re.push(Math.floor((_.y+_.h+se)/z)+1)}for(var Ee=0;Ee<re.length;Ee+=1)for(;this.pdf.internal.getNumberOfPages()<re[Ee];)C.call(this);return re},C=function(){var _=this.fillStyle,G=this.strokeStyle,z=this.font,re=this.lineCap,se=this.lineWidth,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=_,this.strokeStyle=G,this.font=z,this.lineCap=re,this.lineWidth=se,this.lineJoin=fe},U=function(_,G,z){for(var re=0;re<_.length;re++)switch(_[re].type){case"bct":_[re].x2+=G,_[re].y2+=z;case"qct":_[re].x1+=G,_[re].y1+=z;default:_[re].x+=G,_[re].y+=z}return _},R=function(_){return _.sort(function(G,z){return G-z})},F=function(_,G){var z=this.fillStyle,re=this.strokeStyle,se=this.lineCap,fe=this.lineWidth,ge=Math.abs(fe*this.ctx.transform.scaleX),Ee=this.lineJoin;if(this.autoPaging){for(var Ce,_e,qe=JSON.parse(JSON.stringify(this.path)),Ke=JSON.parse(JSON.stringify(this.path)),Je=[],q=0;q<Ke.length;q++)if(Ke[q].x!==void 0)for(var Me=T.call(this,Ke[q]),it=0;it<Me.length;it+=1)Je.indexOf(Me[it])===-1&&Je.push(Me[it]);for(var $e=0;$e<Je.length;$e++)for(;this.pdf.internal.getNumberOfPages()<Je[$e];)C.call(this);R(Je);for(var Be=Je[0],Pe=Je[Je.length-1],He=Be;He<Pe+1;He++){this.pdf.setPage(He),this.fillStyle=z,this.strokeStyle=re,this.lineCap=se,this.lineWidth=ge,this.lineJoin=Ee;var Ve=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],rt=He===1?this.posY+this.margin[0]:this.margin[0],Ot=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ut=He===1?0:Ot+(He-2)*Et;if(this.ctx.clip_path.length!==0){var Nt=this.path;Ce=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(Ce,this.posX+this.margin[3],-ut+rt+this.ctx.prevPageLastElemOffset),D.call(this,_,!0),this.path=Nt}if(_e=JSON.parse(JSON.stringify(qe)),this.path=U(_e,this.posX+this.margin[3],-ut+rt+this.ctx.prevPageLastElemOffset),G===!1||He===0){var Ft=(He>Be||He<Pe)&&v.call(this);Ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ve,Et,null).clip().discardPath()),D.call(this,_,G),Ft&&this.pdf.restoreGraphicsState()}this.lineWidth=fe}this.path=qe}else this.lineWidth=ge,D.call(this,_,G),this.lineWidth=fe},D=function(_,G){if((_!=="stroke"||G||!w.call(this))&&(_==="stroke"||G||!h.call(this))){for(var z,re,se=[],fe=this.path,ge=0;ge<fe.length;ge++){var Ee=fe[ge];switch(Ee.type){case"begin":se.push({begin:!0});break;case"close":se.push({close:!0});break;case"mt":se.push({start:Ee,deltas:[],abs:[]});break;case"lt":var Ce=se.length;if(fe[ge-1]&&!isNaN(fe[ge-1].x)&&(z=[Ee.x-fe[ge-1].x,Ee.y-fe[ge-1].y],Ce>0)){for(;Ce>=0;Ce--)if(se[Ce-1].close!==!0&&se[Ce-1].begin!==!0){se[Ce-1].deltas.push(z),se[Ce-1].abs.push(Ee);break}}break;case"bct":z=[Ee.x1-fe[ge-1].x,Ee.y1-fe[ge-1].y,Ee.x2-fe[ge-1].x,Ee.y2-fe[ge-1].y,Ee.x-fe[ge-1].x,Ee.y-fe[ge-1].y],se[se.length-1].deltas.push(z);break;case"qct":var _e=fe[ge-1].x+2/3*(Ee.x1-fe[ge-1].x),qe=fe[ge-1].y+2/3*(Ee.y1-fe[ge-1].y),Ke=Ee.x+2/3*(Ee.x1-Ee.x),Je=Ee.y+2/3*(Ee.y1-Ee.y),q=Ee.x,Me=Ee.y;z=[_e-fe[ge-1].x,qe-fe[ge-1].y,Ke-fe[ge-1].x,Je-fe[ge-1].y,q-fe[ge-1].x,Me-fe[ge-1].y],se[se.length-1].deltas.push(z);break;case"arc":se.push({deltas:[],abs:[],arc:!0}),Array.isArray(se[se.length-1].abs)&&se[se.length-1].abs.push(Ee)}}re=G?null:_==="stroke"?"stroke":"fill";for(var it=!1,$e=0;$e<se.length;$e++)if(se[$e].arc)for(var Be=se[$e].abs,Pe=0;Pe<Be.length;Pe++){var He=Be[Pe];He.type==="arc"?K.call(this,He.x,He.y,He.radius,He.startAngle,He.endAngle,He.counterclockwise,void 0,G,!it):Q.call(this,He.x,He.y),it=!0}else if(se[$e].close===!0)this.pdf.internal.out("h"),it=!1;else if(se[$e].begin!==!0){var Ve=se[$e].start.x,rt=se[$e].start.y;M.call(this,se[$e].deltas,Ve,rt),it=!0}re&&S.call(this,re),G&&Ae.call(this)}},P=function(_){var G=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,z=G*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _-z;case"top":return _+G-z;case"hanging":return _+G-2*z;case"middle":return _+G/2-z;default:return _}},J=function(_){return _+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var _=function(){};return _.colorStops=[],_.addColorStop=function(G,z){this.colorStops.push([G,z])},_.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},_.isCanvasGradient=!0,_},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var K=function(_,G,z,re,se,fe,ge,Ee,Ce){for(var _e=$.call(this,z,re,se,fe),qe=0;qe<_e.length;qe++){var Ke=_e[qe];qe===0&&(Ce?E.call(this,Ke.x1+_,Ke.y1+G):Q.call(this,Ke.x1+_,Ke.y1+G)),X.call(this,_,G,Ke.x2,Ke.y2,Ke.x3,Ke.y3,Ke.x4,Ke.y4)}Ee?Ae.call(this):S.call(this,ge)},S=function(_){switch(_){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Ae=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(_,G){this.pdf.internal.out(A(_)+" "+r(G)+" m")},I=function(_){var G;switch(_.align){case"right":case"end":G="right";break;case"center":G="center";break;default:G="left"}var z,re,se,fe=this.pdf.getTextDimensions(_.text),ge=P.call(this,_.y),Ee=J.call(this,ge)-fe.h,Ce=this.ctx.transform.applyToPoint(new i(_.x,ge));if(this.autoPaging){var _e=this.ctx.transform.decompose(),qe=new u;qe=(qe=(qe=qe.multiply(_e.translate)).multiply(_e.skew)).multiply(_e.scale);for(var Ke=this.ctx.transform.applyToRectangle(new s(_.x,ge,fe.w,fe.h)),Je=qe.applyToRectangle(new s(_.x,Ee,fe.w,fe.h)),q=T.call(this,Je),Me=[],it=0;it<q.length;it+=1)Me.indexOf(q[it])===-1&&Me.push(q[it]);R(Me);for(var $e=Me[0],Be=Me[Me.length-1],Pe=$e;Pe<Be+1;Pe++){this.pdf.setPage(Pe);var He=Pe===1?this.posY+this.margin[0]:this.margin[0],Ve=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],rt=this.pdf.internal.pageSize.height-this.margin[2],Ot=rt-this.margin[0],Et=this.pdf.internal.pageSize.width-this.margin[1],ut=Et-this.margin[3],Nt=Pe===1?0:Ve+(Pe-2)*Ot;if(this.ctx.clip_path.length!==0){var Ft=this.path;z=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=U(z,this.posX+this.margin[3],-1*Nt+He),D.call(this,"fill",!0),this.path=Ft}var et=U([JSON.parse(JSON.stringify(Je))],this.posX+this.margin[3],-Nt+He+this.ctx.prevPageLastElemOffset)[0];_.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*_.scale),se=this.lineWidth,this.lineWidth=se*_.scale);var Oe=this.autoPaging!=="text";if(Oe||et.y+et.h<=rt){if(Oe||et.y>=He&&et.x<=Et){var Ge=Oe?_.text:this.pdf.splitTextToSize(_.text,_.maxWidth||Et-et.x)[0],jt=U([JSON.parse(JSON.stringify(Ke))],this.posX+this.margin[3],-Nt+He+this.ctx.prevPageLastElemOffset)[0],St=Oe&&(Pe>$e||Pe<Be)&&v.call(this);St&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ut,Ot,null).clip().discardPath()),this.pdf.text(Ge,jt.x,jt.y,{angle:_.angle,align:G,renderingMode:_.renderingMode}),St&&this.pdf.restoreGraphicsState()}}else et.y<rt&&(this.ctx.prevPageLastElemOffset+=rt-et.y);_.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=se)}}else _.scale>=.01&&(re=this.pdf.internal.getFontSize(),this.pdf.setFontSize(re*_.scale),se=this.lineWidth,this.lineWidth=se*_.scale),this.pdf.text(_.text,Ce.x+this.posX,Ce.y+this.posY,{angle:_.angle,align:G,renderingMode:_.renderingMode,maxWidth:_.maxWidth}),_.scale>=.01&&(this.pdf.setFontSize(re),this.lineWidth=se)},Q=function(_,G,z,re){z=z||0,re=re||0,this.pdf.internal.out(A(_+z)+" "+r(G+re)+" l")},M=function(_,G,z){return this.pdf.lines(_,G,z,null,null)},X=function(_,G,z,re,se,fe,ge,Ee){this.pdf.internal.out([t(n(z+_)),t(a(re+G)),t(n(se+_)),t(a(fe+G)),t(n(ge+_)),t(a(Ee+G)),"c"].join(" "))},$=function(_,G,z,re){for(var se=2*Math.PI,fe=Math.PI/2;G>z;)G-=se;var ge=Math.abs(z-G);ge<se&&re&&(ge=se-ge);for(var Ee=[],Ce=re?-1:1,_e=G;ge>1e-5;){var qe=_e+Ce*Math.min(ge,fe);Ee.push(ae.call(this,_,_e,qe)),ge-=Math.abs(qe-_e),_e=qe}return Ee},ae=function(_,G,z){var re=(z-G)/2,se=_*Math.cos(re),fe=_*Math.sin(re),ge=se,Ee=-fe,Ce=ge*ge+Ee*Ee,_e=Ce+ge*se+Ee*fe,qe=4/3*(Math.sqrt(2*Ce*_e)-_e)/(ge*fe-Ee*se),Ke=ge-qe*Ee,Je=Ee+qe*ge,q=Ke,Me=-Je,it=re+G,$e=Math.cos(it),Be=Math.sin(it);return{x1:_*Math.cos(G),y1:_*Math.sin(G),x2:Ke*$e-Je*Be,y2:Ke*Be+Je*$e,x3:q*$e-Me*Be,y3:q*Be+Me*$e,x4:_*Math.cos(z),y4:_*Math.sin(z)}},te=function(_){return 180*_/Math.PI},le=function(_,G,z,re,se,fe){var ge=_+.5*(z-_),Ee=G+.5*(re-G),Ce=se+.5*(z-se),_e=fe+.5*(re-fe),qe=Math.min(_,se,ge,Ce),Ke=Math.max(_,se,ge,Ce),Je=Math.min(G,fe,Ee,_e),q=Math.max(G,fe,Ee,_e);return new s(qe,Je,Ke-qe,q-Je)},Te=function(_,G,z,re,se,fe,ge,Ee){var Ce,_e,qe,Ke,Je,q,Me,it,$e,Be,Pe,He,Ve,rt,Ot=z-_,Et=re-G,ut=se-z,Nt=fe-re,Ft=ge-se,et=Ee-fe;for(_e=0;_e<41;_e++)$e=(Me=(qe=_+(Ce=_e/40)*Ot)+Ce*((Je=z+Ce*ut)-qe))+Ce*(Je+Ce*(se+Ce*Ft-Je)-Me),Be=(it=(Ke=G+Ce*Et)+Ce*((q=re+Ce*Nt)-Ke))+Ce*(q+Ce*(fe+Ce*et-q)-it),_e==0?(Pe=$e,He=Be,Ve=$e,rt=Be):(Pe=Math.min(Pe,$e),He=Math.min(He,Be),Ve=Math.max(Ve,$e),rt=Math.max(rt,Be));return new s(Math.round(Pe),Math.round(He),Math.round(Ve-Pe),Math.round(rt-He))},ye=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _,G,z=(_=this.ctx.lineDash,G=this.ctx.lineDashOffset,JSON.stringify({lineDash:_,lineDashOffset:G}));this.prevLineDash!==z&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=z)}}})(at.API),(function(e){var t=function(i){var s,u,c,l,p,m,h,w,v,T;for(u=[],c=0,l=(i+=s="\0\0\0\0".slice(i.length%4||4)).length;l>c;c+=4)(p=(i.charCodeAt(c)<<24)+(i.charCodeAt(c+1)<<16)+(i.charCodeAt(c+2)<<8)+i.charCodeAt(c+3))!==0?(m=(p=((p=((p=((p=(p-(T=p%85))/85)-(v=p%85))/85)-(w=p%85))/85)-(h=p%85))/85)%85,u.push(m+33,h+33,w+33,v+33,T+33)):u.push(122);return(function(C,U){for(var R=U;R>0;R--)C.pop()})(u,s.length),String.fromCharCode.apply(String,u)+"~>"},A=function(i){var s,u,c,l,p,m=String,h="length",w=255,v="charCodeAt",T="slice",C="replace";for(i[T](-2),i=i[T](0,-2)[C](/\s/g,"")[C]("z","!!!!!"),c=[],l=0,p=(i+=s="uuuuu"[T](i[h]%5||5))[h];p>l;l+=5)u=52200625*(i[v](l)-33)+614125*(i[v](l+1)-33)+7225*(i[v](l+2)-33)+85*(i[v](l+3)-33)+(i[v](l+4)-33),c.push(w&u>>24,w&u>>16,w&u>>8,w&u);return(function(U,R){for(var F=R;F>0;F--)U.pop()})(c,s[h]),m.fromCharCode.apply(m,c)},r=function(i){return i.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(i){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),s.test(i)===!1)return"";for(var u="",c=0;c<i.length;c+=2)u+=String.fromCharCode("0x"+(i[c]+i[c+1]));return u},a=function(i){for(var s=new Uint8Array(i.length),u=i.length;u--;)s[u]=i.charCodeAt(u);return(s=$f(s)).reduce(function(c,l){return c+String.fromCharCode(l)},"")};e.processDataByFilters=function(i,s){var u=0,c=i||"",l=[];for(typeof(s=s||[])=="string"&&(s=[s]),u=0;u<s.length;u+=1)switch(s[u]){case"ASCII85Decode":case"/ASCII85Decode":c=A(c),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=n(c),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=r(c),l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=a(c),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[u]+'" is not implemented')}return{data:c,reverseChain:l.reverse().join(" ")}}})(at.API),(function(e){e.loadFile=function(t,A,r){return(function(n,a,i){a=a!==!1,i=typeof i=="function"?i:function(){};var s=void 0;try{s=(function(u,c,l){var p=new XMLHttpRequest,m=0,h=function(w){var v=w.length,T=[],C=String.fromCharCode;for(m=0;m<v;m+=1)T.push(C(255&w.charCodeAt(m)));return T.join("")};if(p.open("GET",u,!c),p.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(p.onload=function(){p.status===200?l(h(this.responseText)):l(void 0)}),p.send(null),c&&p.status===200)return h(p.responseText)})(n,a,i)}catch{}return s})(t,A,r)},e.loadImageFile=e.loadFile})(at.API),(function(e){function t(){return(pt.html2canvas?Promise.resolve(pt.html2canvas):ol(()=>Promise.resolve().then(()=>tU),void 0)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function A(){return(pt.DOMPurify?Promise.resolve(pt.DOMPurify):ol(()=>import("./purify.es-B9ZVCkUG.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var u=eA(s);return u==="undefined"?"undefined":u==="string"||s instanceof String?"string":u==="number"||s instanceof Number?"number":u==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":u==="object"?"object":"unknown"},n=function(s,u){var c=document.createElement(s);for(var l in u.className&&(c.className=u.className),u.innerHTML&&u.dompurify&&(c.innerHTML=u.dompurify.sanitize(u.innerHTML)),u.style)c.style[l]=u.style[l];return c},a=function s(u,c){for(var l=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),p=u.firstChild;p;p=p.nextSibling)c!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||l.appendChild(s(p,c));return u.nodeType===1&&(u.nodeName==="CANVAS"?(l.width=u.width,l.height=u.height,l.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(l.value=u.value),l.addEventListener("load",function(){l.scrollTop=u.scrollTop,l.scrollLeft=u.scrollLeft},!0)),l},i=function s(u){var c=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),l=s.convert(Promise.resolve(),c);return(l=l.setProgress(1,s,1,[s])).set(u)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(s,u){return s.__proto__=u||i.prototype,s},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(s,u){return this.then(function(){switch(u=u||(function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(s),u){case"string":return this.then(A).then(function(c){return this.set({src:n("div",{innerHTML:s,dompurify:c})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},i.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={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},u=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);u.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(u),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(u){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,u(this.prop.container,c)}).then(function(u){(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(u){var c=this.opt.jsPDF,l=this.opt.fontFaces,p=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,m=Object.assign({async:!0,allowTaint:!0,scale:p,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 m.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=l,l)for(var h=0;h<l.length;++h){var w=l[h],v=w.src.find(function(T){return T.format==="truetype"});v&&c.addFont(v.url,w.ref.name,w.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,c.context2d.save(!0),u(this.prop.container,m)}).then(function(u){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(u),this.prop.canvas=u,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(s,u,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(s,u):this.outputPdf(s,u)},i.prototype.outputPdf=function(s,u){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,u)})},i.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},i.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(s){if(r(s)!=="object")return this;var u=Object.keys(s||{}).map(function(c){if(c in i.template.prop)return function(){this.prop[c]=s[c]};switch(c){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[c]=s[c]}}},this);return this.then(function(){return this.thenList(u)})},i.prototype.get=function(s,u){return this.then(function(){var c=s in i.template.prop?this.prop[s]:this.opt[s];return u?u(c):c})},i.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},i.prototype.setPageSize=function(s){function u(c,l){return Math.floor(c*l/72*96)}return this.then(function(){(s=s||at.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:u(s.inner.width,s.k),height:u(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},i.prototype.setProgress=function(s,u,c,l){return s!=null&&(this.progress.val=s),u!=null&&(this.progress.state=u),c!=null&&(this.progress.n=c),l!=null&&(this.progress.stack=l),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(s,u,c,l){return this.setProgress(s?this.progress.val+s:null,u||null,c?this.progress.n+c:null,l?this.progress.stack.concat(l):null)},i.prototype.then=function(s,u){var c=this;return this.thenCore(s,u,function(l,p){return c.updateProgress(null,null,1,[l]),Promise.prototype.then.call(this,function(m){return c.updateProgress(null,l),m}).then(l,p).then(function(m){return c.updateProgress(1),m})})},i.prototype.thenCore=function(s,u,c){c=c||Promise.prototype.then;var l=this;s&&(s=s.bind(l)),u&&(u=u.bind(l));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?l:i.convert(Object.assign({},l),Promise.prototype),m=c.call(p,s,u);return i.convert(m,l.__proto__)},i.prototype.thenExternal=function(s,u){return Promise.prototype.then.call(this,s,u)},i.prototype.thenList=function(s){var u=this;return s.forEach(function(c){u=u.thenCore(c)}),u},i.prototype.catch=function(s){s&&(s=s.bind(this));var u=Promise.prototype.catch.call(this,s);return i.convert(u,this)},i.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},i.prototype.error=function(s){return this.then(function(){throw new Error(s)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,at.getPageSize=function(s,u,c){if(eA(s)==="object"){var l=s;s=l.orientation,u=l.unit||u,c=l.format||c}u=u||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase();var p,m=(""+c).toLowerCase(),h={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(u){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+u}var w,v=0,T=0;if(h.hasOwnProperty(m))v=h[m][1]/p,T=h[m][0]/p;else try{v=c[1],T=c[0]}catch{throw new Error("Invalid format: "+c)}if(s==="p"||s==="portrait")s="p",T>v&&(w=T,T=v,v=w);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",v>T&&(w=T,T=v,v=w)}return{width:T,height:v,unit:u,k:p,orientation:s}},e.html=function(s,u){(u=u||{}).callback=u.callback||function(){},u.html2canvas=u.html2canvas||{},u.html2canvas.canvas=u.html2canvas.canvas||this.canvas,u.jsPDF=u.jsPDF||this,u.fontFaces=u.fontFaces?u.fontFaces.map(tf):null;var c=new i(u);return u.worker?c:c.from(s).doCallback()}})(at.API),at.API.addJS=function(e){return Cg=e,this.internal.events.subscribe("postPutResources",function(){Xo=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Xo+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),wg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Cg+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Xo!==void 0&&wg!==void 0&&this.internal.out("/Names <</JavaScript "+Xo+" 0 R>>")}),this},(function(e){var t;e.events.push(["postPutResources",function(){var A=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=A.outline.render().split(/\r\n/),a=0;a<n.length;a++){var i=n[a],s=r.exec(i);if(s!=null){var u=s[1];A.internal.newObjectDeferredBegin(u,!1)}A.internal.write(i)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,l=[];for(a=0;a<c;a++){var p=A.internal.newObject();l.push(p);var m=A.internal.getPageInfo(a+1);A.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var h=A.internal.newObject();for(A.internal.write("<< /Names [ "),a=0;a<l.length;a++)A.internal.write("(page_"+(a+1)+")"+l[a]+" 0 R");A.internal.write(" ] >>","endobj"),t=A.internal.newObject(),A.internal.write("<< /Dests "+h+" 0 R"),A.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(r,n,a){var i={title:n,options:a,children:[]};return r==null&&(r=this.root),r.children.push(i),i},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(r){r.id=A.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},A.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},A.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var i=r.children[a];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var s=this.count=this.count_r({count:0},i);if(s>0&&this.line("/Count "+s),i.options&&i.options.pageNumber){var u=A.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+u.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},A.outline.line=function(r){this.ctx.val+=r+`\r
`},A.outline.makeRef=function(r){return r.id+" 0 R"},A.outline.makeString=function(r){return"("+A.internal.pdfEscape(r)+")"},A.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},A.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},A.outline.count_r=function(r,n){for(var a=0;a<n.children.length;a++)r.count++,this.count_r(r,n.children[a]);return r.count}}])})(at.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(A,r,n,a,i,s){var u,c=this.decode.DCT_DECODE,l=null;if(typeof A=="string"||this.__addimage__.isArrayBuffer(A)||this.__addimage__.isArrayBufferView(A)){switch(A=i||A,A=this.__addimage__.isArrayBuffer(A)?new Uint8Array(A):A,u=(function(p){for(var m,h=256*p.charCodeAt(4)+p.charCodeAt(5),w=p.length,v={width:0,height:0,numcomponents:1},T=4;T<w;T+=2){if(T+=h,t.indexOf(p.charCodeAt(T+1))!==-1){m=256*p.charCodeAt(T+5)+p.charCodeAt(T+6),v={width:256*p.charCodeAt(T+7)+p.charCodeAt(T+8),height:m,numcomponents:p.charCodeAt(T+9)};break}h=256*p.charCodeAt(T+2)+p.charCodeAt(T+3)}return v})(A=this.__addimage__.isArrayBufferView(A)?this.__addimage__.arrayBufferToBinaryString(A):A),u.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}l={data:A,width:u.width,height:u.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:n}}return l}})(at.API),at.API.processPNG=function(e,t,A,r){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var n,a=W8(e,{checkCrc:!0}),i=a.width,s=a.height,u=a.channels,c=a.palette,l=a.depth;n=c&&u===1?(function(K){for(var S=K.width,Ae=K.height,E=K.data,I=K.palette,Q=K.depth,M=!1,X=[],$=[],ae=void 0,te=!1,le=0,Te=0;Te<I.length;Te++){var ye=c1(I[Te],4),_=ye[0],G=ye[1],z=ye[2],re=ye[3];X.push(_,G,z),re!=null&&(re===0?(le++,$.length<1&&$.push(Te)):re<255&&(te=!0))}if(te||le>1){M=!0,$=void 0;var se=S*Ae;ae=new Uint8Array(se);for(var fe=new DataView(E.buffer),ge=0;ge<se;ge++){var Ee=rf(fe,ge,Q),Ce=c1(I[Ee],4)[3];ae[ge]=Ce}}else le===0&&($=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:M?8:void 0,colorBytes:E,alphaBytes:ae,needSMask:M,palette:X,mask:$}})(a):u===2||u===4?(function(K){for(var S=K.data,Ae=K.width,E=K.height,I=K.channels,Q=K.depth,M=I===2?"DeviceGray":"DeviceRGB",X=I-1,$=Ae*E,ae=X,te=$*ae,le=1*$,Te=Math.ceil(te*Q/8),ye=Math.ceil(le*Q/8),_=new Uint8Array(Te),G=new Uint8Array(ye),z=new DataView(S.buffer),re=new DataView(_.buffer),se=new DataView(G.buffer),fe=!1,ge=0;ge<$;ge++){for(var Ee=ge*I,Ce=0;Ce<ae;Ce++)Ng(re,rf(z,Ee+Ce,Q),ge*ae+Ce,Q);var _e=rf(z,Ee+ae,Q);_e<(1<<Q)-1&&(fe=!0),Ng(se,_e,1*ge,Q)}return{colorSpace:M,colorsPerPixel:X,sMaskBitsPerComponent:fe?Q:void 0,colorBytes:_,alphaBytes:G,needSMask:fe}})(a):(function(K){var S=K.data,Ae=K.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Ae,colorsPerPixel:Ae==="DeviceGray"?1:3,colorBytes:S instanceof Uint16Array?(function(E){for(var I=E.length,Q=new Uint8Array(2*I),M=new DataView(Q.buffer,Q.byteOffset,Q.byteLength),X=0;X<I;X++)M.setUint16(2*X,E[X],!1);return Q})(S):S,needSMask:!1}})(a);var p,m,h,w=n,v=w.colorSpace,T=w.colorsPerPixel,C=w.sMaskBitsPerComponent,U=w.colorBytes,R=w.alphaBytes,F=w.needSMask,D=w.palette,P=w.mask,J=null;return r!==at.API.image_compression.NONE&&typeof $f=="function"?(J=(function(K){var S;switch(K){case at.API.image_compression.FAST:S=11;break;case at.API.image_compression.MEDIUM:S=13;break;case at.API.image_compression.SLOW:S=14;break;default:S=12}return S})(r),p=this.decode.FLATE_DECODE,m="/Predictor ".concat(J," /Colors ").concat(T," /BitsPerComponent ").concat(l," /Columns ").concat(i),e=xg(U,Math.ceil(i*T*l/8),T,l,r),F&&(h=xg(R,Math.ceil(i*C/8),1,C,r))):(p=void 0,m=void 0,e=U,F&&(h=R)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:A,data:e,index:t,filter:p,decodeParameters:m,transparency:P,palette:D,sMask:h,predictor:J,width:i,height:s,bitsPerComponent:l,sMaskBitsPerComponent:C,colorSpace:v}}},(function(e){e.processGIF89A=function(t,A,r,n){var a=new gx(t),i=a.width,s=a.height,u=[];a.decodeAndBlitFrameRGBA(0,u);var c={data:u,width:i,height:s},l=new nf(100).encode(c,100);return e.processJPEG.call(this,l,A,r,n)},e.processGIF87A=e.processGIF89A})(at.API),un.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 e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:n,green:r,blue:A,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},un.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(A){$t.log("bit decode error:"+A)}},un.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),A=t%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<t;n++)for(var a=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var u=this.palette[a>>7-s&1];this.data[i+4*s]=u.blue,this.data[i+4*s+1]=u.green,this.data[i+4*s+2]=u.red,this.data[i+4*s+3]=255}A!==0&&(this.pos+=4-A)}},un.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<e;n++){var a=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+2*n*4,s=a>>4,u=15&a,c=this.palette[s];if(this.data[i]=c.blue,this.data[i+1]=c.green,this.data[i+2]=c.red,this.data[i+3]=255,2*n+1>=this.width)break;c=this.palette[u],this.data[i+4]=c.blue,this.data[i+4+1]=c.green,this.data[i+4+2]=c.red,this.data[i+4+3]=255}t!==0&&(this.pos+=4-t)}},un.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var A=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*r;if(n<this.palette.length){var i=this.palette[n];this.data[a]=i.red,this.data[a+1]=i.green,this.data[a+2]=i.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}e!==0&&(this.pos+=4-e)}},un.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<this.width;n++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,u=(a>>10&t)/t*255|0,c=a>>15?255:0,l=r*this.width*4+4*n;this.data[l]=u,this.data[l+1]=s,this.data[l+2]=i,this.data[l+3]=c}this.pos+=e}},un.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),A=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&t)/t*255|0,u=(i>>5&A)/A*255|0,c=(i>>11)/t*255|0,l=n*this.width*4+4*a;this.data[l]=c,this.data[l+1]=u,this.data[l+2]=s,this.data[l+3]=255}this.pos+=e}},un.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*A;this.data[i]=a,this.data[i+1]=n,this.data[i+2]=r,this.data[i+3]=255}this.pos+=this.width%4}},un.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*A;this.data[s]=a,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=i}},un.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,A,r,n){var a=new un(t,!1),i=a.width,s=a.height,u={data:a.getData(),width:i,height:s},c=new nf(100).encode(u,100);return e.processJPEG.call(this,c,A,r,n)}})(at.API),Sg.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,A,r,n){var a=new Sg(t),i=a.width,s=a.height,u={data:a.getData(),width:i,height:s},c=new nf(100).encode(u,100);return e.processJPEG.call(this,c,A,r,n)}})(at.API),at.API.processRGBA=function(e,t,A){for(var r=e.data,n=r.length,a=new Uint8Array(n/4*3),i=new Uint8Array(n/4),s=0,u=0,c=0;c<n;c+=4){var l=r[c],p=r[c+1],m=r[c+2],h=r[c+3];a[s++]=l,a[s++]=p,a[s++]=m,i[u++]=h}var w=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(i),data:w,index:t,alias:A,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},at.API.setLanguage=function(e){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"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,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},Xi=at.API,zo=Xi.getCharWidthsArray=function(e,t){var A,r,n=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),i=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:n.metadata.Unicode.widths,u=s.fof?s.fof:1,c=t.kerning?t.kerning:n.metadata.Unicode.kerning,l=c.fof?c.fof:1,p=t.doKerning!==!1,m=0,h=e.length,w=0,v=s[0]||u,T=[];for(A=0;A<h;A++)r=e.charCodeAt(A),typeof n.metadata.widthOfString=="function"?T.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+i*(1e3/a)||0)/1e3):(m=p&&eA(c[r])==="object"&&!isNaN(parseInt(c[r][w],10))?c[r][w]/l:0,T.push((s[r]||v)/u+m)),w=r;return T},vg=Xi.getStringUnitWidth=function(e,t){var A=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),n=t.charSpace||this.internal.getCharSpace();return Xi.processArabic&&(e=Xi.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,A,n)/A:zo.apply(this,arguments).reduce(function(a,i){return a+i},0)},Tg=function(e,t,A,r){for(var n=[],a=0,i=e.length,s=0;a!==i&&s+t[a]<A;)s+=t[a],a++;n.push(e.slice(0,a));var u=a;for(s=0;a!==i;)s+t[a]>r&&(n.push(e.slice(u,a)),s=0,u=a),s+=t[a],a++;return u!==a&&n.push(e.slice(u,a)),n},yg=function(e,t,A){A||(A={});var r,n,a,i,s,u,c,l=[],p=[l],m=A.textIndent||0,h=0,w=0,v=e.split(" "),T=zo.apply(this,[" ",A])[0];if(u=A.lineIndent===-1?v[0].length+2:A.lineIndent||0){var C=Array(u).join(" "),U=[];v.map(function(F){(F=F.split(/\s*\n/)).length>1?U=U.concat(F.map(function(D,P){return(P&&D.length?`
`:"")+D})):U.push(F[0])}),v=U,u=vg.apply(this,[C,A])}for(a=0,i=v.length;a<i;a++){var R=0;if(r=v[a],u&&r[0]==`
`&&(r=r.substr(1),R=1),m+h+(w=(n=zo.apply(this,[r,A])).reduce(function(F,D){return F+D},0))>t||R){if(w>t){for(s=Tg.apply(this,[r,n,t-(m+h),t]),l.push(s.shift()),l=[s.pop()];s.length;)p.push([s.shift()]);w=n.slice(r.length-(l[0]?l[0].length:0)).reduce(function(F,D){return F+D},0)}else l=[r];p.push(l),m=w+u,h=T}else l.push(r),m+=h+w,h=T}return c=u?function(F,D){return(D?C:"")+F.join(" ")}:function(F){return F.join(" ")},p.map(c)},Xi.splitTextToSize=function(e,t,A){var r,n=(A=A||{}).fontSize||this.internal.getFontSize(),a=(function(l){if(l.widths&&l.kerning)return{widths:l.widths,kerning:l.kerning};var p=this.internal.getFont(l.fontName,l.fontStyle),m="Unicode";return p.metadata[m]?{widths:p.metadata[m].widths||{0:1},kerning:p.metadata[m].kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,A);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var i=1*this.internal.scaleFactor*t/n;a.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/n:0,a.lineIndent=A.lineIndent;var s,u,c=[];for(s=0,u=r.length;s<u;s++)c=c.concat(yg.apply(this,[r[s],i,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",A="klmnopqrstuvwxyz",r={},n={},a=0;a<16;a++)r[A[a]]=t[a],n[t[a]]=A[a];var i=function(m){return"0x"+parseInt(m,10).toString(16)},s=e.__fontmetrics__.compress=function(m){var h,w,v,T,C=["{"];for(var U in m){if(h=m[U],isNaN(parseInt(U,10))?w="'"+U+"'":(U=parseInt(U,10),w=(w=i(U).slice(2)).slice(0,-1)+n[w.slice(-1)]),typeof h=="number")h<0?(v=i(h).slice(3),T="-"):(v=i(h).slice(2),T=""),v=T+v.slice(0,-1)+n[v.slice(-1)];else{if(eA(h)!=="object")throw new Error("Don't know what to do with value type "+eA(h)+".");v=s(h)}C.push(w+v)}return C.push("}"),C.join("")},u=e.__fontmetrics__.uncompress=function(m){if(typeof m!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,w,v,T,C={},U=1,R=C,F=[],D="",P="",J=m.length-1,K=1;K<J;K+=1)(T=m[K])=="'"?h?(v=h.join(""),h=void 0):h=[]:h?h.push(T):T=="{"?(F.push([R,v]),R={},v=void 0):T=="}"?((w=F.pop())[0][w[1]]=R,v=void 0,R=w[0]):T=="-"?U=-1:v===void 0?r.hasOwnProperty(T)?(D+=r[T],v=parseInt(D,16)*U,U=1,D=""):D+=T:r.hasOwnProperty(T)?(P+=r[T],R[v]=parseInt(P,16)*U,U=1,v=void 0,P=""):P+=T;return C},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:u("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},l={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},p={Unicode:{"Courier-Oblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":u("{'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":u("{'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:u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":u("{'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:u("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:u("{'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":u("{'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:u("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":u("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":u("{'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":u("{'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":u("{'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}}}")}};e.events.push(["addFont",function(m){var h=m.font,w=p.Unicode[h.postScriptName];w&&(h.metadata.Unicode={},h.metadata.Unicode.widths=w.widths,h.metadata.Unicode.kerning=w.kerning);var v=l.Unicode[h.postScriptName];v&&(h.metadata.Unicode.encoding=v,h.encoding=v.codePages[0])}])})(at.API),(function(e){var t=function(A){for(var r=A.length,n=new Uint8Array(r),a=0;a<r;a++)n[a]=A.charCodeAt(a);return n};e.API.events.push(["addFont",function(A){var r=void 0,n=A.font,a=A.instance;if(!n.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=a.existsFileInVFS(n.postScriptName)===!1?a.loadFile(n.postScriptName):a.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(i,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Tc(s)),i.metadata=e.API.TTFFont.open(s),i.metadata.Unicode=i.metadata.Unicode||{encoding:{},kerning:{},widths:[]},i.metadata.glyIdsUsed=[0]})(n,r)}}])})(at),at.API.addSvgAsImage=function(e,t,A,r,n,a,i,s){if(isNaN(t)||isNaN(A))throw $t.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw $t.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=r,u.height=n;var c=u.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height);var l={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},p=this;return(pt.canvg?Promise.resolve(pt.canvg):ol(()=>import("./index.es-kRVt5wzr.js"),__vite__mapDeps([0,1,2,3,4,5,6]))).catch(function(m){return Promise.reject(new Error("Could not load canvg: "+m))}).then(function(m){return m.default?m.default:m}).then(function(m){return m.fromString(c,e,l)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(l)}).then(function(){p.addImage(u.toDataURL("image/jpeg",1),t,A,r,n,i,s)})},at.API.putTotalPages=function(e){var t,A=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),A=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),A=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(t,A);return this},at.API.viewerPreferences=function(e,t){var A;e=e||{},t=t||!1;var r,n,a,i={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(i),u=[],c=0,l=0,p=0;function m(w,v){var T,C=!1;for(T=0;T<w.length;T+=1)w[T]===v&&(C=!0);return C}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),A=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(p=0;p<h;p+=1)A[s[p]].value=A[s[p]].defaultValue,A[s[p]].explicitSet=!1}if(eA(e)==="object"){for(n in e)if(a=e[n],m(s,n)&&a!==void 0){if(A[n].type==="boolean"&&typeof a=="boolean")A[n].value=a;else if(A[n].type==="name"&&m(A[n].valueSet,a))A[n].value=a;else if(A[n].type==="integer"&&Number.isInteger(a))A[n].value=a;else if(A[n].type==="array"){for(c=0;c<a.length;c+=1)if(r=!0,a[c].length===1&&typeof a[c][0]=="number")u.push(String(a[c]-1));else if(a[c].length>1){for(l=0;l<a[c].length;l+=1)typeof a[c][l]!="number"&&(r=!1);r===!0&&u.push([a[c][0]-1,a[c][1]-1].join(" "))}A[n].value="["+u.join(" ")+"]"}else A[n].value=A[n].defaultValue;A[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var w,v=[];for(w in A)A[w].explicitSet===!0&&(A[w].type==="name"?v.push("/"+w+" /"+A[w].value):v.push("/"+w+" "+A[w].value));v.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+v.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=A,this},(function(e){var t=function(){var r='<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>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(r)),i=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),u=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+i.length+s.length+n.length+u.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(n+a+i+s+u),this.internal.write("endstream"),this.internal.write("endobj")},A=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",A),this.internal.events.subscribe("postPutResources",t)),this}})(at.API),(function(e){var t=e.API,A=t.pdfEscape16=function(a,i){for(var s,u=i.metadata.Unicode.widths,c=["","0","00","000","0000"],l=[""],p=0,m=a.length;p<m;++p){if(s=i.metadata.characterToGlyph(a.charCodeAt(p)),i.metadata.glyIdsUsed.push(s),i.metadata.toUnicode[s]=a.charCodeAt(p),u.indexOf(s)==-1&&(u.push(s),u.push([parseInt(i.metadata.widthOfGlyph(s),10)])),s=="0")return l.join("");s=s.toString(16),l.push(c[4-s.length],s)}return l.join("")},r=function(a){var i,s,u,c,l,p,m;for(l=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,u=[],p=0,m=(s=Object.keys(a).sort(function(h,w){return h-w})).length;p<m;p++)i=s[p],u.length>=100&&(l+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar`,u=[]),a[i]!==void 0&&a[i]!==null&&typeof a[i].toString=="function"&&(c=("0000"+a[i].toString(16)).slice(-4),i=("0000"+(+i).toString(16)).slice(-4),u.push("<"+i+"><"+c+">"));return u.length&&(l+=`
`+u.length+` beginbfchar
`+u.join(`
`)+`
endbfchar
`),l+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(a){(function(i){var s=i.font,u=i.out,c=i.newObject,l=i.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var p=s.metadata.Unicode.widths,m=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",w=0;w<m.length;w++)h+=String.fromCharCode(m[w]);var v=c();l({data:h,addLength1:!0,objectId:v}),u("endobj");var T=c();l({data:r(s.metadata.toUnicode),addLength1:!0,objectId:T}),u("endobj");var C=c();u("<<"),u("/Type /FontDescriptor"),u("/FontName /"+rs(s.fontName)),u("/FontFile2 "+v+" 0 R"),u("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),u("/Flags "+s.metadata.flags),u("/StemV "+s.metadata.stemV),u("/ItalicAngle "+s.metadata.italicAngle),u("/Ascent "+s.metadata.ascender),u("/Descent "+s.metadata.decender),u("/CapHeight "+s.metadata.capHeight),u(">>"),u("endobj");var U=c();u("<<"),u("/Type /Font"),u("/BaseFont /"+rs(s.fontName)),u("/FontDescriptor "+C+" 0 R"),u("/W "+e.API.PDFObject.convert(p)),u("/CIDToGIDMap /Identity"),u("/DW 1000"),u("/Subtype /CIDFontType2"),u("/CIDSystemInfo"),u("<<"),u("/Supplement 0"),u("/Registry (Adobe)"),u("/Ordering ("+s.encoding+")"),u(">>"),u(">>"),u("endobj"),s.objectNumber=c(),u("<<"),u("/Type /Font"),u("/Subtype /Type0"),u("/ToUnicode "+T+" 0 R"),u("/BaseFont /"+rs(s.fontName)),u("/Encoding /"+s.encoding),u("/DescendantFonts ["+U+" 0 R]"),u(">>"),u("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(i){var s=i.font,u=i.out,c=i.newObject,l=i.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var p=s.metadata.rawData,m="",h=0;h<p.length;h++)m+=String.fromCharCode(p[h]);var w=c();l({data:m,addLength1:!0,objectId:w}),u("endobj");var v=c();l({data:r(s.metadata.toUnicode),addLength1:!0,objectId:v}),u("endobj");var T=c();u("<<"),u("/Descent "+s.metadata.decender),u("/CapHeight "+s.metadata.capHeight),u("/StemV "+s.metadata.stemV),u("/Type /FontDescriptor"),u("/FontFile2 "+w+" 0 R"),u("/Flags 96"),u("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),u("/FontName /"+rs(s.fontName)),u("/ItalicAngle "+s.metadata.italicAngle),u("/Ascent "+s.metadata.ascender),u(">>"),u("endobj"),s.objectNumber=c();for(var C=0;C<s.metadata.hmtx.widths.length;C++)s.metadata.hmtx.widths[C]=parseInt(s.metadata.hmtx.widths[C]*(1e3/s.metadata.head.unitsPerEm));u("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+rs(s.fontName)+"/FontDescriptor "+T+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),u("endobj"),s.isAlreadyPutted=!0}})(a)}]);var n=function(a){var i,s=a.text||"",u=a.x,c=a.y,l=a.options||{},p=a.mutex||{},m=p.pdfEscape,h=p.activeFontKey,w=p.fonts,v=h,T="",C=0,U="",R=w[v].encoding;if(w[v].encoding!=="Identity-H")return{text:s,x:u,y:c,options:l,mutex:p};for(U=s,v=h,Array.isArray(s)&&(U=s[0]),C=0;C<U.length;C+=1)w[v].metadata.hasOwnProperty("cmap")&&(i=w[v].metadata.cmap.unicode.codeMap[U[C].charCodeAt(0)]),i||U[C].charCodeAt(0)<256&&w[v].metadata.hasOwnProperty("Unicode")?T+=U[C]:T+="";var F="";return parseInt(v.slice(1))<14||R==="WinAnsiEncoding"?F=m(T,v).split("").map(function(D){return D.charCodeAt(0).toString(16)}).join(""):R==="Identity-H"&&(F=A(T,w[v])),p.isHex=!0,{text:F,x:u,y:c,options:l,mutex:p}};t.events.push(["postProcessText",function(a){var i=a.text||"",s=[],u={text:i,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(i)){var c=0;for(c=0;c<i.length;c+=1)Array.isArray(i[c])&&i[c].length===3?s.push([n(Object.assign({},u,{text:i[c][0]})).text,i[c][1],i[c][2]]):s.push(n(Object.assign({},u,{text:i[c]})).text);a.text=s}else a.text=n(Object.assign({},u,{text:i})).text}])})(at),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(A){return t.call(this),this.internal.vFS[A]!==void 0},e.addFileToVFS=function(A,r){return t.call(this),this.internal.vFS[A]=r,this},e.getFileFromVFS=function(A){return t.call(this),this.internal.vFS[A]!==void 0?this.internal.vFS[A]:null}})(at.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var n,a,i,s,u,c,l,p=t,m=[[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]],h=[[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]],w={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},T=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],C=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)$/),U=!1,R=0;this.__bidiEngine__={};var F=function(E){var I=E.charCodeAt(),Q=I>>8,M=v[Q];return M!==void 0?p[256*M+(255&I)]:Q===252||Q===253?"AL":C.test(Q)?"L":Q===8?"R":"N"},D=function(E){for(var I,Q=0;Q<E.length;Q++){if((I=F(E.charAt(Q)))==="L")return!1;if(I==="R")return!0}return!1},P=function(E,I,Q,M){var X,$,ae,te,le=I[M];switch(le){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":U=!1;break;case"N":case"AN":break;case"EN":U&&(le="AN");break;case"AL":U=!0,le="R";break;case"WS":case"BN":le="N";break;case"CS":M<1||M+1>=I.length||(X=Q[M-1])!=="EN"&&X!=="AN"||($=I[M+1])!=="EN"&&$!=="AN"?le="N":U&&($="AN"),le=$===X?$:"N";break;case"ES":le=(X=M>0?Q[M-1]:"B")==="EN"&&M+1<I.length&&I[M+1]==="EN"?"EN":"N";break;case"ET":if(M>0&&Q[M-1]==="EN"){le="EN";break}if(U){le="N";break}for(ae=M+1,te=I.length;ae<te&&I[ae]==="ET";)ae++;le=ae<te&&I[ae]==="EN"?"EN":"N";break;case"NSM":if(i&&!s){for(te=I.length,ae=M+1;ae<te&&I[ae]==="NSM";)ae++;if(ae<te){var Te=E[M],ye=Te>=1425&&Te<=2303||Te===64286;if(X=I[ae],ye&&(X==="R"||X==="AL")){le="R";break}}}le=M<1||(X=I[M-1])==="B"?"N":Q[M-1];break;case"B":U=!1,n=!0,le=R;break;case"S":a=!0,le="N"}return le},J=function(E,I,Q){var M=E.split("");return Q&&K(M,Q,{hiLevel:R}),M.reverse(),I&&I.reverse(),M.join("")},K=function(E,I,Q){var M,X,$,ae,te,le=-1,Te=E.length,ye=0,_=[],G=R?h:m,z=[];for(U=!1,n=!1,a=!1,X=0;X<Te;X++)z[X]=F(E[X]);for($=0;$<Te;$++){if(te=ye,_[$]=P(E,z,_,$),M=240&(ye=G[te][w[_[$]]]),ye&=15,I[$]=ae=G[ye][5],M>0)if(M===16){for(X=le;X<$;X++)I[X]=1;le=-1}else le=-1;if(G[ye][6])le===-1&&(le=$);else if(le>-1){for(X=le;X<$;X++)I[X]=ae;le=-1}z[$]==="B"&&(I[$]=0),Q.hiLevel|=ae}a&&(function(re,se,fe){for(var ge=0;ge<fe;ge++)if(re[ge]==="S"){se[ge]=R;for(var Ee=ge-1;Ee>=0&&re[Ee]==="WS";Ee--)se[Ee]=R}})(z,I,Te)},S=function(E,I,Q,M,X){if(!(X.hiLevel<E)){if(E===1&&R===1&&!n)return I.reverse(),void(Q&&Q.reverse());for(var $,ae,te,le,Te=I.length,ye=0;ye<Te;){if(M[ye]>=E){for(te=ye+1;te<Te&&M[te]>=E;)te++;for(le=ye,ae=te-1;le<ae;le++,ae--)$=I[le],I[le]=I[ae],I[ae]=$,Q&&($=Q[le],Q[le]=Q[ae],Q[ae]=$);ye=te}ye++}}},Ae=function(E,I,Q){var M=E.split(""),X={hiLevel:R};return Q||(Q=[]),K(M,Q,X),(function($,ae,te){if(te.hiLevel!==0&&l)for(var le,Te=0;Te<$.length;Te++)ae[Te]===1&&(le=T.indexOf($[Te]))>=0&&($[Te]=T[le+1])})(M,Q,X),S(2,M,I,Q,X),S(1,M,I,Q,X),M.join("")};return this.__bidiEngine__.doBidiReorder=function(E,I,Q){if((function(X,$){if($)for(var ae=0;ae<X.length;ae++)$[ae]=ae;s===void 0&&(s=D(X)),c===void 0&&(c=D(X))})(E,I),i||!u||c)if(i&&u&&s^c)R=s?1:0,E=J(E,I,Q);else if(!i&&u&&c)R=s?1:0,E=Ae(E,I,Q),E=J(E,I);else if(!i||s||u||c){if(i&&!u&&s^c)E=J(E,I),s?(R=0,E=Ae(E,I,Q)):(R=1,E=Ae(E,I,Q),E=J(E,I));else if(i&&s&&!u&&c)R=1,E=Ae(E,I,Q),E=J(E,I);else if(!i&&!u&&s^c){var M=l;s?(R=1,E=Ae(E,I,Q),R=0,l=!1,E=Ae(E,I,Q),l=M):(R=0,E=Ae(E,I,Q),E=J(E,I),R=1,l=!1,E=Ae(E,I,Q),l=M,E=J(E,I))}}else R=0,E=Ae(E,I,Q);else R=s?1:0,E=Ae(E,I,Q);return E},this.__bidiEngine__.setOptions=function(E){E&&(i=E.isInputVisual,u=E.isOutputVisual,s=E.isInputRtl,c=E.isOutputRtl,l=E.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["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"],A=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var a=r.options||{};r.mutex,a.lang;var i=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,A.setOptions(a),Object.prototype.toString.call(n)==="[object Array]"){var s=0;for(i=[],s=0;s<n.length;s+=1)Object.prototype.toString.call(n[s])==="[object Array]"?i.push([A.doBidiReorder(n[s][0]),n[s][1],n[s][2]]):i.push([A.doBidiReorder(n[s])]);r.text=i}else r.text=A.doBidiReorder(n);A.setOptions({isInputVisual:!0})}])})(at),at.API.TTFFont=(function(){function e(t){var A;if(this.rawData=t,A=this.contents=new Va(t),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new _x(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new px(this.contents),this.head=new mx(this),this.name=new vx(this),this.cmap=new I5(this),this.toUnicode={},this.hhea=new Bx(this),this.maxp=new Tx(this),this.hmtx=new yx(this),this.post=new wx(this),this.os2=new Ex(this),this.loca=new Lx(this),this.glyf=new xx(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]},e.prototype.registerTTF=function(){var t,A,r,n,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var i,s,u,c;for(c=[],i=0,s=(u=this.bbox).length;i<s;i++)t=u[i],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(A=n>>16)&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+r)):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")},e.prototype.characterToGlyph=function(t){var A;return((A=this.cmap.unicode)!=null?A.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*A},e.prototype.widthOfString=function(t,A,r){var n,a,i,s;for(i=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)n=t.charCodeAt(a),i+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/A)||0;return i*(A/1e3)},e.prototype.lineHeight=function(t,A){var r;return A==null&&(A=!1),r=A?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},e})();var pn,Va=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var A,r;for(r=[],A=0;0<=t?A<t:A>t;A=0<=t?++A:--A)r[A]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(t){var A,r,n;for(n=[],A=0,r=t.length;0<=r?A<r:A>r;A=0<=r?++A:--A)n.push(this.writeByte(t.charCodeAt(A)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,A,r,n,a,i,s,u;return t=this.readByte(),A=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),s=this.readByte(),u=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^A)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^a)+65536*(255^i)+256*(255^s)+(255^u)+1):72057594037927940*t+281474976710656*A+1099511627776*r+4294967296*n+16777216*a+65536*i+256*s+u},e.prototype.writeLongLong=function(t){var A,r;return A=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var A,r;for(A=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)A.push(this.readByte());return A},e.prototype.write=function(t){var A,r,n,a;for(a=[],r=0,n=t.length;r<n;r++)A=t[r],a.push(this.writeByte(A));return a},e})(),px=(function(){var e;function t(A){var r,n,a;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},n=0,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)r={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(A){var r,n,a,i,s,u,c,l,p,m,h,w,v;for(v in h=Object.keys(A).length,u=Math.log(2),p=16*Math.floor(Math.log(h)/u),i=Math.floor(p/u),l=16*h-p,(n=new Va).writeInt(this.scalarType),n.writeShort(h),n.writeShort(p),n.writeShort(i),n.writeShort(l),a=16*h,c=n.pos+a,s=null,w=[],A)for(m=A[v],n.writeString(v),n.writeInt(e(m)),n.writeInt(c),n.writeInt(m.length),w=w.concat(m),v==="head"&&(s=c),c+=m.length;c%4;)w.push(0),c++;return n.write(w),r=2981146554-e(n.data),n.pos=s+8,n.writeUInt32(r),n.data},e=function(A){var r,n,a,i;for(A=F5.call(A);A.length%4;)A.push(0);for(a=new Va(A),n=0,r=0,i=A.length;r<i;r=r+=4)n+=a.readUInt32();return 4294967295&n},t})(),bx={}.hasOwnProperty,Sn=function(e,t){for(var A in t)bx.call(t,A)&&(e[A]=t[A]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};pn=(function(){function e(t){var A;this.file=t,A=this.file.directory.tables[this.tag],this.exists=!!A,A&&(this.offset=A.offset,this.length=A.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var mx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),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 A;return(A=new Va).writeInt(this.version),A.writeInt(this.revision),A.writeInt(this.checkSumAdjustment),A.writeInt(this.magicNumber),A.writeShort(this.flags),A.writeShort(this.unitsPerEm),A.writeLongLong(this.created),A.writeLongLong(this.modified),A.writeShort(this.xMin),A.writeShort(this.yMin),A.writeShort(this.xMax),A.writeShort(this.yMax),A.writeShort(this.macStyle),A.writeShort(this.lowestRecPPEM),A.writeShort(this.fontDirectionHint),A.writeShort(t),A.writeShort(this.glyphDataFormat),A.data},e})(),Qg=(function(){function e(t,A){var r,n,a,i,s,u,c,l,p,m,h,w,v,T,C,U,R;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=A+t.readInt(),p=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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(u=0;u<256;++u)this.codeMap[u]=t.readByte();break;case 4:for(h=t.readUInt16(),m=h/2,t.pos+=6,a=(function(){var F,D;for(D=[],u=F=0;0<=m?F<m:F>m;u=0<=m?++F:--F)D.push(t.readUInt16());return D})(),t.pos+=2,v=(function(){var F,D;for(D=[],u=F=0;0<=m?F<m:F>m;u=0<=m?++F:--F)D.push(t.readUInt16());return D})(),c=(function(){var F,D;for(D=[],u=F=0;0<=m?F<m:F>m;u=0<=m?++F:--F)D.push(t.readUInt16());return D})(),l=(function(){var F,D;for(D=[],u=F=0;0<=m?F<m:F>m;u=0<=m?++F:--F)D.push(t.readUInt16());return D})(),n=(this.length-t.pos+this.offset)/2,s=(function(){var F,D;for(D=[],u=F=0;0<=n?F<n:F>n;u=0<=n?++F:--F)D.push(t.readUInt16());return D})(),u=C=0,R=a.length;C<R;u=++C)for(T=a[u],r=U=w=v[u];w<=T?U<=T:U>=T;r=w<=T?++U:--U)l[u]===0?i=r+c[u]:(i=s[l[u]/2+(r-w)-(m-u)]||0)!==0&&(i+=c[u]),this.codeMap[r]=65535&i}t.pos=p}return e.encode=function(t,A){var r,n,a,i,s,u,c,l,p,m,h,w,v,T,C,U,R,F,D,P,J,K,S,Ae,E,I,Q,M,X,$,ae,te,le,Te,ye,_,G,z,re,se,fe,ge,Ee,Ce,_e,qe;switch(M=new Va,i=Object.keys(t).sort(function(Ke,Je){return Ke-Je}),A){case"macroman":for(v=0,T=(function(){var Ke=[];for(w=0;w<256;++w)Ke.push(0);return Ke})(),U={0:0},a={},X=0,le=i.length;X<le;X++)U[Ee=t[n=i[X]]]==null&&(U[Ee]=++v),a[n]={old:t[n],new:U[t[n]]},T[n]=U[t[n]];return M.writeUInt16(1),M.writeUInt16(0),M.writeUInt32(12),M.writeUInt16(0),M.writeUInt16(262),M.writeUInt16(0),M.write(T),{charMap:a,subtable:M.data,maxGlyphID:v+1};case"unicode":for(I=[],p=[],R=0,U={},r={},C=c=null,$=0,Te=i.length;$<Te;$++)U[D=t[n=i[$]]]==null&&(U[D]=++R),r[n]={old:D,new:U[D]},s=U[D]-n,C!=null&&s===c||(C&&p.push(C),I.push(n),c=s),C=n;for(C&&p.push(C),p.push(65535),I.push(65535),Ae=2*(S=I.length),K=2*Math.pow(Math.log(S)/Math.LN2,2),m=Math.log(K/2)/Math.LN2,J=2*S-K,u=[],P=[],h=[],w=ae=0,ye=I.length;ae<ye;w=++ae){if(E=I[w],l=p[w],E===65535){u.push(0),P.push(0);break}if(E-(Q=r[E].new)>=32768)for(u.push(0),P.push(2*(h.length+S-w)),n=te=E;E<=l?te<=l:te>=l;n=E<=l?++te:--te)h.push(r[n].new);else u.push(Q-E),P.push(0)}for(M.writeUInt16(3),M.writeUInt16(1),M.writeUInt32(12),M.writeUInt16(4),M.writeUInt16(16+8*S+2*h.length),M.writeUInt16(0),M.writeUInt16(Ae),M.writeUInt16(K),M.writeUInt16(m),M.writeUInt16(J),fe=0,_=p.length;fe<_;fe++)n=p[fe],M.writeUInt16(n);for(M.writeUInt16(0),ge=0,G=I.length;ge<G;ge++)n=I[ge],M.writeUInt16(n);for(Ce=0,z=u.length;Ce<z;Ce++)s=u[Ce],M.writeUInt16(s);for(_e=0,re=P.length;_e<re;_e++)F=P[_e],M.writeUInt16(F);for(qe=0,se=h.length;qe<se;qe++)v=h[qe],M.writeUInt16(v);return{charMap:r,subtable:M.data,maxGlyphID:R+1}}},e})(),I5=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),e.prototype.tag="cmap",e.prototype.parse=function(t){var A,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)A=new Qg(t,this.offset),this.tables.push(A),A.isUnicode&&this.unicode==null&&(this.unicode=A);return!0},e.encode=function(t,A){var r,n;return A==null&&(A="macroman"),r=Qg.encode(t,A),(n=new Va).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},e})(),Bx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),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})(),Ex=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),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 A,r;for(r=[],A=0;A<10;++A)r.push(t.readByte());return r})(),this.charRange=(function(){var A,r;for(r=[],A=0;A<4;++A)r.push(t.readInt());return r})(),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 A,r;for(r=[],A=0;A<2;A=++A)r.push(t.readInt());return r})(),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})(),wx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),e.prototype.tag="post",e.prototype.parse=function(t){var A,r,n;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:case 196608:break;case 131072:var a;for(r=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)A=t.readByte(),n.push(this.names.push(t.readString(A)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var i,s,u;for(u=[],a=i=0,s=this.file.maxp.numGlyphs;0<=s?i<s:i>s;a=0<=s?++i:--i)u.push(t.readUInt32());return u}).call(this)}},e})(),Cx=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},vx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),e.prototype.tag="name",e.prototype.parse=function(t){var A,r,n,a,i,s,u,c,l,p,m;for(t.pos=this.offset,t.readShort(),A=t.readShort(),s=t.readShort(),r=[],a=0;0<=A?a<A:a>A;a=0<=A?++a:--a)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(u={},a=l=0,p=r.length;l<p;a=++l)n=r[a],t.pos=n.offset,c=t.readString(n.length),i=new Cx(c,n),u[m=n.nameID]==null&&(u[m]=[]),u[n.nameID].push(i);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},e})(),Tx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),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})(),yx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),e.prototype.tag="hmtx",e.prototype.parse=function(t){var A,r,n,a,i,s,u;for(t.pos=this.offset,this.metrics=[],A=0,s=this.file.hhea.numberOfMetrics;0<=s?A<s:A>s;A=0<=s?++A:--A)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var c,l;for(l=[],A=c=0;0<=n?c<n:c>n;A=0<=n?++c:--c)l.push(t.readInt16());return l})(),this.widths=(function(){var c,l,p,m;for(m=[],c=0,l=(p=this.metrics).length;c<l;c++)a=p[c],m.push(a.advance);return m}).call(this),r=this.widths[this.widths.length-1],u=[],A=i=0;0<=n?i<n:i>n;A=0<=n?++i:--i)u.push(this.widths.push(r));return u},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})(),F5=[].slice,xx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var A,r,n,a,i,s,u,c,l,p;return t in this.cache?this.cache[t]:(a=this.file.loca,A=this.file.contents,r=a.indexOf(t),(n=a.lengthOf(t))===0?this.cache[t]=null:(A.pos=this.offset+r,i=(s=new Va(A.read(n))).readShort(),c=s.readShort(),p=s.readShort(),u=s.readShort(),l=s.readShort(),this.cache[t]=i===-1?new Fx(s,c,p,u,l):new Ix(s,i,c,p,u,l),this.cache[t]))},e.prototype.encode=function(t,A,r){var n,a,i,s,u;for(i=[],a=[],s=0,u=A.length;s<u;s++)n=t[A[s]],a.push(i.length),n&&(i=i.concat(n.encode(r)));return a.push(i.length),{table:i,offsets:a}},e})(),Ix=(function(){function e(t,A,r,n,a,i){this.raw=t,this.numberOfContours=A,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),Fx=(function(){function e(t,A,r,n,a){var i,s;for(this.raw=t,this.xMin=A,this.yMin=r,this.xMax=n,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;s=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&s;)i.pos+=1&s?4:2,128&s?i.pos+=8:64&s?i.pos+=4:8&s&&(i.pos+=2)}return e.prototype.encode=function(){var t,A,r;for(A=new Va(F5.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)A.pos=this.glyphOffsets[t];return A.data},e})(),Lx=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Sn(e,pn),e.prototype.tag="loca",e.prototype.parse=function(t){var A,r;return t.pos=this.offset,A=this.file.head.indexToLocFormat,this.offsets=A===0?(function(){var n,a;for(a=[],r=0,n=this.length;r<n;r+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var n,a;for(a=[],r=0,n=this.length;r<n;r+=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,A){for(var r=new Uint32Array(this.offsets.length),n=0,a=0,i=0;i<r.length;++i)if(r[i]=n,a<A.length&&A[a]==i){++a,r[i]=n;var s=this.offsets[i],u=this.offsets[i+1]-s;u>0&&(n+=u)}for(var c=new Array(4*r.length),l=0;l<r.length;++l)c[4*l+3]=255&r[l],c[4*l+2]=(65280&r[l])>>8,c[4*l+1]=(16711680&r[l])>>16,c[4*l]=(4278190080&r[l])>>24;return c},e})(),_x=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,A,r,n,a;for(A in n=this.font.cmap.tables[0].codeMap,t={},a=this.subset)r=a[A],t[A]=n[r];return t},e.prototype.glyphsFor=function(t){var A,r,n,a,i,s,u;for(n={},i=0,s=t.length;i<s;i++)n[a=t[i]]=this.font.glyf.glyphFor(a);for(a in A=[],n)(r=n[a])!=null&&r.compound&&A.push.apply(A,r.glyphIDs);if(A.length>0)for(a in u=this.glyphsFor(A))r=u[a],n[a]=r;return n},e.prototype.encode=function(t,A){var r,n,a,i,s,u,c,l,p,m,h,w,v,T,C;for(n in r=I5.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(t),h={0:0},C=r.charMap)h[(u=C[n]).old]=u.new;for(w in m=r.maxGlyphID,i)w in h||(h[w]=m++);return l=(function(U){var R,F;for(R in F={},U)F[U[R]]=R;return F})(h),p=Object.keys(l).sort(function(U,R){return U-R}),v=(function(){var U,R,F;for(F=[],U=0,R=p.length;U<R;U++)s=p[U],F.push(l[s]);return F})(),a=this.font.glyf.encode(i,v,h),c=this.font.loca.encode(a.offsets,v),T={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,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(A)},this.font.os2.exists&&(T["OS/2"]=this.font.os2.raw()),this.font.directory.encode(T)},e})();at.API.PDFObject=(function(){var e;function t(){}return e=function(A,r){return(Array(r+1).join("0")+A).slice(-r)},t.convert=function(A){var r,n,a,i;if(Array.isArray(A))return"["+(function(){var s,u,c;for(c=[],s=0,u=A.length;s<u;s++)r=A[s],c.push(t.convert(r));return c})().join(" ")+"]";if(typeof A=="string")return"/"+A;if(A!=null&&A.isString)return"("+A+")";if(A instanceof Date)return"(D:"+e(A.getUTCFullYear(),4)+e(A.getUTCMonth(),2)+e(A.getUTCDate(),2)+e(A.getUTCHours(),2)+e(A.getUTCMinutes(),2)+e(A.getUTCSeconds(),2)+"Z)";if({}.toString.call(A)==="[object Object]"){for(n in a=["<<"],A)i=A[n],a.push("/"+n+" "+t.convert(i));return a.push(">>"),a.join(`
`)}return""+A},t})();/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var sh=function(e,t){return sh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,r){A.__proto__=r}||function(A,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(A[n]=r[n])},sh(e,t)};function bn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sh(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}var uh=function(){return uh=Object.assign||function(t){for(var A,r=1,n=arguments.length;r<n;r++){A=arguments[r];for(var a in A)Object.prototype.hasOwnProperty.call(A,a)&&(t[a]=A[a])}return t},uh.apply(this,arguments)};function hr(e,t,A,r){function n(a){return a instanceof A?a:new A(function(i){i(a)})}return new(A||(A=Promise))(function(a,i){function s(l){try{c(r.next(l))}catch(p){i(p)}}function u(l){try{c(r.throw(l))}catch(p){i(p)}}function c(l){l.done?a(l.value):n(l.value).then(s,u)}c((r=r.apply(e,[])).next())})}function ir(e,t){var A={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;A;)try{if(r=1,n&&(a=c[0]&2?n.return:c[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,c[1])).done)return a;switch(n=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return A.label++,{value:c[1],done:!1};case 5:A.label++,n=c[1],c=[0];continue;case 7:c=A.ops.pop(),A.trys.pop();continue;default:if(a=A.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){A=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){A.label=c[1];break}if(c[0]===6&&A.label<a[1]){A.label=a[1],a=c;break}if(a&&A.label<a[2]){A.label=a[2],A.ops.push(c);break}a[2]&&A.ops.pop(),A.trys.pop();continue}c=t.call(e,A)}catch(l){c=[6,l],n=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Jo(e,t,A){if(arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||t)}var la=(function(){function e(t,A,r,n){this.left=t,this.top=A,this.width=r,this.height=n}return e.prototype.add=function(t,A,r,n){return new e(this.left+t,this.top+A,this.width+r,this.height+n)},e.fromClientRect=function(t,A){return new e(A.left+t.windowBounds.left,A.top+t.windowBounds.top,A.width,A.height)},e.fromDOMRectList=function(t,A){var r=Array.from(A).find(function(n){return n.width!==0});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),E0=function(e,t){return la.fromClientRect(e,t.getBoundingClientRect())},Nx=function(e){var t=e.body,A=e.documentElement;if(!t||!A)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,A.scrollWidth),Math.max(t.offsetWidth,A.offsetWidth),Math.max(t.clientWidth,A.clientWidth)),n=Math.max(Math.max(t.scrollHeight,A.scrollHeight),Math.max(t.offsetHeight,A.offsetHeight),Math.max(t.clientHeight,A.clientHeight));return new la(0,0,r,n)},w0=function(e){for(var t=[],A=0,r=e.length;A<r;){var n=e.charCodeAt(A++);if(n>=55296&&n<=56319&&A<r){var a=e.charCodeAt(A++);(a&64512)===56320?t.push(((n&1023)<<10)+(a&1023)+65536):(t.push(n),A--)}else t.push(n)}return t},CA=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";for(var r=[],n=-1,a="";++n<A;){var i=e[n];i<=65535?r.push(i):(i-=65536,r.push((i>>10)+55296,i%1024+56320)),(n+1===A||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Og="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ux=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Zo=0;Zo<Og.length;Zo++)Ux[Og.charCodeAt(Zo)]=Zo;var Dg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var $o=0;$o<Dg.length;$o++)iu[Dg.charCodeAt($o)]=$o;var Sx=function(e){var t=e.length*.75,A=e.length,r,n=0,a,i,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),l=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<A;r+=4)a=iu[e.charCodeAt(r)],i=iu[e.charCodeAt(r+1)],s=iu[e.charCodeAt(r+2)],u=iu[e.charCodeAt(r+3)],l[n++]=a<<2|i>>4,l[n++]=(i&15)<<4|s>>2,l[n++]=(s&3)<<6|u&63;return c},Qx=function(e){for(var t=e.length,A=[],r=0;r<t;r+=2)A.push(e[r+1]<<8|e[r]);return A},Ox=function(e){for(var t=e.length,A=[],r=0;r<t;r+=4)A.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return A},Ci=5,dd=11,af=2,Dx=dd-Ci,L5=65536>>Ci,Rx=1<<Ci,sf=Rx-1,Hx=1024>>Ci,Px=L5+Hx,Mx=Px,kx=32,Kx=Mx+kx,qx=65536>>dd,jx=1<<Dx,Vx=jx-1,Rg=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},Gx=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},Yx=function(e,t){var A=Sx(e),r=Array.isArray(A)?Ox(A):new Uint32Array(A),n=Array.isArray(A)?Qx(A):new Uint16Array(A),a=24,i=Rg(n,a/2,r[4]/2),s=r[5]===2?Rg(n,(a+r[4])/2):Gx(r,Math.ceil((a+r[4])/4));return new Wx(r[0],r[1],r[2],r[3],i,s)},Wx=(function(){function e(t,A,r,n,a,i){this.initialValue=t,this.errorValue=A,this.highStart=r,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(t){var A;if(t>=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Ci],A=(A<<af)+(t&sf),this.data[A];if(t<=65535)return A=this.index[L5+(t-55296>>Ci)],A=(A<<af)+(t&sf),this.data[A];if(t<this.highStart)return A=Kx-qx+(t>>dd),A=this.index[A],A+=t>>Ci&Vx,A=this.index[A],A=(A<<af)+(t&sf),this.data[A];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),Hg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ec=0;ec<Hg.length;ec++)Xx[Hg.charCodeAt(ec)]=ec;var zx="[encoded data, 52888 characters]",Pg=50,Jx=1,_5=2,N5=3,Zx=4,$x=5,Mg=7,U5=8,kg=9,Ma=10,oh=11,Kg=12,ch=13,eI=14,su=15,lh=16,tc=17,tu=18,tI=19,qg=20,fh=21,Au=22,uf=23,zi=24,Ur=25,uu=26,ou=27,Ji=28,AI=29,mi=30,rI=31,Ac=32,rc=33,hh=34,dh=35,gh=36,Ru=37,ph=38,Lc=39,_c=40,of=41,S5=42,nI=43,aI=[9001,65288],Q5="!",Ut="×",nc="÷",bh=Yx(zx),ra=[mi,gh],mh=[Jx,_5,N5,$x],O5=[Ma,U5],jg=[ou,uu],iI=mh.concat(O5),Vg=[ph,Lc,_c,hh,dh],sI=[su,ch],uI=function(e,t){t===void 0&&(t="strict");var A=[],r=[],n=[];return e.forEach(function(a,i){var s=bh.get(a);if(s>Pg?(n.push(!0),s-=Pg):n.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return r.push(i),A.push(lh);if(s===Zx||s===oh){if(i===0)return r.push(i),A.push(mi);var u=A[i-1];return iI.indexOf(u)===-1?(r.push(r[i-1]),A.push(u)):(r.push(i),A.push(mi))}if(r.push(i),s===rI)return A.push(t==="strict"?fh:Ru);if(s===S5||s===AI)return A.push(mi);if(s===nI)return a>=131072&&a<=196605||a>=196608&&a<=262141?A.push(Ru):A.push(mi);A.push(s)}),[r,A,n]},cf=function(e,t,A,r){var n=r[A];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var a=A;a<=r.length;){a++;var i=r[a];if(i===t)return!0;if(i!==Ma)break}if(n===Ma)for(var a=A;a>0;){a--;var s=r[a];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var u=A;u<=r.length;){u++;var i=r[u];if(i===t)return!0;if(i!==Ma)break}if(s!==Ma)break}return!1},Gg=function(e,t){for(var A=e;A>=0;){var r=t[A];if(r===Ma)A--;else return r}return 0},oI=function(e,t,A,r,n){if(A[r]===0)return Ut;var a=r-1;if(Array.isArray(n)&&n[a]===!0)return Ut;var i=a-1,s=a+1,u=t[a],c=i>=0?t[i]:0,l=t[s];if(u===_5&&l===N5)return Ut;if(mh.indexOf(u)!==-1)return Q5;if(mh.indexOf(l)!==-1||O5.indexOf(l)!==-1)return Ut;if(Gg(a,t)===U5)return nc;if(bh.get(e[a])===oh||(u===Ac||u===rc)&&bh.get(e[s])===oh||u===Mg||l===Mg||u===kg||[Ma,ch,su].indexOf(u)===-1&&l===kg||[tc,tu,tI,zi,Ji].indexOf(l)!==-1||Gg(a,t)===Au||cf(uf,Au,a,t)||cf([tc,tu],fh,a,t)||cf(Kg,Kg,a,t))return Ut;if(u===Ma)return nc;if(u===uf||l===uf)return Ut;if(l===lh||u===lh)return nc;if([ch,su,fh].indexOf(l)!==-1||u===eI||c===gh&&sI.indexOf(u)!==-1||u===Ji&&l===gh||l===qg||ra.indexOf(l)!==-1&&u===Ur||ra.indexOf(u)!==-1&&l===Ur||u===ou&&[Ru,Ac,rc].indexOf(l)!==-1||[Ru,Ac,rc].indexOf(u)!==-1&&l===uu||ra.indexOf(u)!==-1&&jg.indexOf(l)!==-1||jg.indexOf(u)!==-1&&ra.indexOf(l)!==-1||[ou,uu].indexOf(u)!==-1&&(l===Ur||[Au,su].indexOf(l)!==-1&&t[s+1]===Ur)||[Au,su].indexOf(u)!==-1&&l===Ur||u===Ur&&[Ur,Ji,zi].indexOf(l)!==-1)return Ut;if([Ur,Ji,zi,tc,tu].indexOf(l)!==-1)for(var p=a;p>=0;){var m=t[p];if(m===Ur)return Ut;if([Ji,zi].indexOf(m)!==-1)p--;else break}if([ou,uu].indexOf(l)!==-1)for(var p=[tc,tu].indexOf(u)!==-1?i:a;p>=0;){var m=t[p];if(m===Ur)return Ut;if([Ji,zi].indexOf(m)!==-1)p--;else break}if(ph===u&&[ph,Lc,hh,dh].indexOf(l)!==-1||[Lc,hh].indexOf(u)!==-1&&[Lc,_c].indexOf(l)!==-1||[_c,dh].indexOf(u)!==-1&&l===_c||Vg.indexOf(u)!==-1&&[qg,uu].indexOf(l)!==-1||Vg.indexOf(l)!==-1&&u===ou||ra.indexOf(u)!==-1&&ra.indexOf(l)!==-1||u===zi&&ra.indexOf(l)!==-1||ra.concat(Ur).indexOf(u)!==-1&&l===Au&&aI.indexOf(e[s])===-1||ra.concat(Ur).indexOf(l)!==-1&&u===tu)return Ut;if(u===of&&l===of){for(var h=A[a],w=1;h>0&&(h--,t[h]===of);)w++;if(w%2!==0)return Ut}return u===Ac&&l===rc?Ut:nc},cI=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=uI(e,t.lineBreak),r=A[0],n=A[1],a=A[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(n=n.map(function(s){return[Ur,mi,S5].indexOf(s)!==-1?Ru:s}));var i=t.wordBreak==="keep-all"?a.map(function(s,u){return s&&e[u]>=19968&&e[u]<=40959}):void 0;return[r,n,i]},lI=(function(){function e(t,A,r,n){this.codePoints=t,this.required=A===Q5,this.start=r,this.end=n}return e.prototype.slice=function(){return CA.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),fI=function(e,t){var A=w0(e),r=cI(A,t),n=r[0],a=r[1],i=r[2],s=A.length,u=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var l=Ut;c<s&&(l=oI(A,a,n,++c,i))===Ut;);if(l!==Ut||c===s){var p=new lI(A,l,u,c);return u=c,{value:p,done:!1}}return{done:!0,value:null}}}},hI=1,dI=2,Wu=4,Yg=8,zc=10,Wg=47,Cu=92,gI=9,pI=32,ac=34,ru=61,bI=35,mI=36,BI=37,ic=39,sc=40,nu=41,EI=95,Br=45,wI=33,CI=60,vI=62,TI=64,yI=91,xI=93,II=61,FI=123,uc=63,LI=125,Xg=124,_I=126,NI=128,zg=65533,lf=42,Bi=43,UI=44,SI=58,QI=59,Hu=46,OI=0,DI=8,RI=11,HI=14,PI=31,MI=127,Fn=-1,D5=48,R5=97,H5=101,kI=102,KI=117,qI=122,P5=65,M5=69,k5=70,jI=85,VI=90,sr=function(e){return e>=D5&&e<=57},GI=function(e){return e>=55296&&e<=57343},Zi=function(e){return sr(e)||e>=P5&&e<=k5||e>=R5&&e<=kI},YI=function(e){return e>=R5&&e<=qI},WI=function(e){return e>=P5&&e<=VI},XI=function(e){return YI(e)||WI(e)},zI=function(e){return e>=NI},oc=function(e){return e===zc||e===gI||e===pI},Jc=function(e){return XI(e)||zI(e)||e===EI},Jg=function(e){return Jc(e)||sr(e)||e===Br},JI=function(e){return e>=OI&&e<=DI||e===RI||e>=HI&&e<=PI||e===MI},Da=function(e,t){return e!==Cu?!1:t!==zc},cc=function(e,t,A){return e===Br?Jc(t)||Da(t,A):Jc(e)?!0:!!(e===Cu&&Da(e,t))},ff=function(e,t,A){return e===Bi||e===Br?sr(t)?!0:t===Hu&&sr(A):sr(e===Hu?t:e)},ZI=function(e){var t=0,A=1;(e[t]===Bi||e[t]===Br)&&(e[t]===Br&&(A=-1),t++);for(var r=[];sr(e[t]);)r.push(e[t++]);var n=r.length?parseInt(CA.apply(void 0,r),10):0;e[t]===Hu&&t++;for(var a=[];sr(e[t]);)a.push(e[t++]);var i=a.length,s=i?parseInt(CA.apply(void 0,a),10):0;(e[t]===M5||e[t]===H5)&&t++;var u=1;(e[t]===Bi||e[t]===Br)&&(e[t]===Br&&(u=-1),t++);for(var c=[];sr(e[t]);)c.push(e[t++]);var l=c.length?parseInt(CA.apply(void 0,c),10):0;return A*(n+s*Math.pow(10,-i))*Math.pow(10,u*l)},$I={type:2},eF={type:3},tF={type:4},AF={type:13},rF={type:8},nF={type:21},aF={type:9},iF={type:10},sF={type:11},uF={type:12},oF={type:14},lc={type:23},cF={type:1},lF={type:25},fF={type:24},hF={type:26},dF={type:27},gF={type:28},pF={type:29},bF={type:31},Bh={type:32},K5=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(w0(t))},e.prototype.read=function(){for(var t=[],A=this.consumeToken();A!==Bh;)t.push(A),A=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case ac:return this.consumeStringToken(ac);case bI:var A=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Jg(A)||Da(r,n)){var a=cc(A,r,n)?dI:hI,i=this.consumeName();return{type:5,value:i,flags:a}}break;case mI:if(this.peekCodePoint(0)===ru)return this.consumeCodePoint(),AF;break;case ic:return this.consumeStringToken(ic);case sc:return $I;case nu:return eF;case lf:if(this.peekCodePoint(0)===ru)return this.consumeCodePoint(),oF;break;case Bi:if(ff(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case UI:return tF;case Br:var s=t,u=this.peekCodePoint(0),c=this.peekCodePoint(1);if(ff(s,u,c))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(cc(s,u,c))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(u===Br&&c===vI)return this.consumeCodePoint(),this.consumeCodePoint(),fF;break;case Hu:if(ff(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Wg:if(this.peekCodePoint(0)===lf)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===lf&&(l=this.consumeCodePoint(),l===Wg))return this.consumeToken();if(l===Fn)return this.consumeToken()}break;case SI:return hF;case QI:return dF;case CI:if(this.peekCodePoint(0)===wI&&this.peekCodePoint(1)===Br&&this.peekCodePoint(2)===Br)return this.consumeCodePoint(),this.consumeCodePoint(),lF;break;case TI:var p=this.peekCodePoint(0),m=this.peekCodePoint(1),h=this.peekCodePoint(2);if(cc(p,m,h)){var i=this.consumeName();return{type:7,value:i}}break;case yI:return gF;case Cu:if(Da(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case xI:return pF;case II:if(this.peekCodePoint(0)===ru)return this.consumeCodePoint(),rF;break;case FI:return sF;case LI:return uF;case KI:case jI:var w=this.peekCodePoint(0),v=this.peekCodePoint(1);return w===Bi&&(Zi(v)||v===uc)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Xg:if(this.peekCodePoint(0)===ru)return this.consumeCodePoint(),aF;if(this.peekCodePoint(0)===Xg)return this.consumeCodePoint(),nF;break;case _I:if(this.peekCodePoint(0)===ru)return this.consumeCodePoint(),iF;break;case Fn:return Bh}return oc(t)?(this.consumeWhiteSpace(),bF):sr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Jc(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:CA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],A=this.consumeCodePoint();Zi(A)&&t.length<6;)t.push(A),A=this.consumeCodePoint();for(var r=!1;A===uc&&t.length<6;)t.push(A),A=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(CA.apply(void 0,t.map(function(u){return u===uc?D5:u})),16),a=parseInt(CA.apply(void 0,t.map(function(u){return u===uc?k5:u})),16);return{type:30,start:n,end:a}}var i=parseInt(CA.apply(void 0,t),16);if(this.peekCodePoint(0)===Br&&Zi(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var s=[];Zi(A)&&s.length<6;)s.push(A),A=this.consumeCodePoint();var a=parseInt(CA.apply(void 0,s),16);return{type:30,start:i,end:a}}else return{type:30,start:i,end:i}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===sc?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===sc?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Fn)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===ic||A===ac){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Fn||this.peekCodePoint(0)===nu)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),lc)}for(;;){var n=this.consumeCodePoint();if(n===Fn||n===nu)return{type:22,value:CA.apply(void 0,t)};if(oc(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Fn||this.peekCodePoint(0)===nu?(this.consumeCodePoint(),{type:22,value:CA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),lc);if(n===ac||n===ic||n===sc||JI(n))return this.consumeBadUrlRemnants(),lc;if(n===Cu)if(Da(n,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),lc;else t.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;oc(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===nu||t===Fn)return;Da(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var A=5e4,r="";t>0;){var n=Math.min(A,t);r+=CA.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(t){var A="",r=0;do{var n=this._value[r];if(n===Fn||n===void 0||n===t)return A+=this.consumeStringSlice(r),{type:0,value:A};if(n===zc)return this._value.splice(0,r),cF;if(n===Cu){var a=this._value[r+1];a!==Fn&&a!==void 0&&(a===zc?(A+=this.consumeStringSlice(r),r=-1,this._value.shift()):Da(n,a)&&(A+=this.consumeStringSlice(r),A+=CA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var t=[],A=Wu,r=this.peekCodePoint(0);for((r===Bi||r===Br)&&t.push(this.consumeCodePoint());sr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Hu&&sr(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=Yg;sr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((r===M5||r===H5)&&((n===Bi||n===Br)&&sr(a)||sr(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=Yg;sr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[ZI(t),A]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),A=t[0],r=t[1],n=this.peekCodePoint(0),a=this.peekCodePoint(1),i=this.peekCodePoint(2);if(cc(n,a,i)){var s=this.consumeName();return{type:15,number:A,flags:r,unit:s}}return n===BI?(this.consumeCodePoint(),{type:16,number:A,flags:r}):{type:17,number:A,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Zi(t)){for(var A=CA(t);Zi(this.peekCodePoint(0))&&A.length<6;)A+=CA(this.consumeCodePoint());oc(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(A,16);return r===0||GI(r)||r>1114111?zg:r}return t===Fn?zg:t},e.prototype.consumeName=function(){for(var t="";;){var A=this.consumeCodePoint();if(Jg(A))t+=CA(A);else if(Da(A,this.peekCodePoint(0)))t+=CA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),t}},e})(),q5=(function(){function e(t){this._tokens=t}return e.create=function(t){var A=new K5;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var A=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var A=this.consumeComponentValue();if(A.type===32)return t;t.push(A),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var A={type:t,values:[]},r=this.consumeToken();;){if(r.type===32||BF(r,t))return A;this.reconsumeToken(r),A.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var A={name:t.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return A;this.reconsumeToken(r),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?Bh:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),Xu=function(e){return e.type===15},ws=function(e){return e.type===17},zt=function(e){return e.type===20},mF=function(e){return e.type===0},Eh=function(e,t){return zt(e)&&e.value===t},j5=function(e){return e.type!==31},bs=function(e){return e.type!==31&&e.type!==4},Qn=function(e){var t=[],A=[];return e.forEach(function(r){if(r.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(A),A=[];return}r.type!==31&&A.push(r)}),A.length&&t.push(A),t},BF=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},Ga=function(e){return e.type===17||e.type===15},LA=function(e){return e.type===16||Ga(e)},V5=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},ZA={type:17,number:0,flags:Wu},gd={type:16,number:50,flags:Wu},ka={type:16,number:100,flags:Wu},cu=function(e,t,A){var r=e[0],n=e[1];return[nA(r,t),nA(typeof n<"u"?n:r,A)]},nA=function(e,t){if(e.type===16)return e.number/100*t;if(Xu(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},G5="deg",Y5="grad",W5="rad",X5="turn",C0={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case G5:return Math.PI*t.number/180;case Y5:return Math.PI/200*t.number;case W5:return t.number;case X5:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},z5=function(e){return e.type===15&&(e.unit===G5||e.unit===Y5||e.unit===W5||e.unit===X5)},J5=function(e){var t=e.filter(zt).map(function(A){return A.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ZA,ZA];case"to top":case"bottom":return Xr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ZA,ka];case"to right":case"left":return Xr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ka,ka];case"to bottom":case"top":return Xr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ka,ZA];case"to left":case"right":return Xr(270)}return 0},Xr=function(e){return Math.PI*e/180},qa={name:"color",parse:function(e,t){if(t.type===18){var A=EF[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),n=t.value.substring(1,2),a=t.value.substring(2,3);return Ka(parseInt(r+r,16),parseInt(n+n,16),parseInt(a+a,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),n=t.value.substring(1,2),a=t.value.substring(2,3),i=t.value.substring(3,4);return Ka(parseInt(r+r,16),parseInt(n+n,16),parseInt(a+a,16),parseInt(i+i,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),n=t.value.substring(2,4),a=t.value.substring(4,6);return Ka(parseInt(r,16),parseInt(n,16),parseInt(a,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),n=t.value.substring(2,4),a=t.value.substring(4,6),i=t.value.substring(6,8);return Ka(parseInt(r,16),parseInt(n,16),parseInt(a,16),parseInt(i,16)/255)}}if(t.type===20){var s=ca[t.value.toUpperCase()];if(typeof s<"u")return s}return ca.TRANSPARENT}},ja=function(e){return(255&e)===0},MA=function(e){var t=255&e,A=255&e>>8,r=255&e>>16,n=255&e>>24;return t<255?"rgba("+n+","+r+","+A+","+t/255+")":"rgb("+n+","+r+","+A+")"},Ka=function(e,t,A,r){return(e<<24|t<<16|A<<8|Math.round(r*255)<<0)>>>0},Zg=function(e,t){if(e.type===17)return e.number;if(e.type===16){var A=t===3?1:255;return t===3?e.number/100*A:Math.round(e.number/100*A)}return 0},$g=function(e,t){var A=t.filter(bs);if(A.length===3){var r=A.map(Zg),n=r[0],a=r[1],i=r[2];return Ka(n,a,i,1)}if(A.length===4){var s=A.map(Zg),n=s[0],a=s[1],i=s[2],u=s[3];return Ka(n,a,i,u)}return 0};function hf(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<1/2?t:A<2/3?(t-e)*6*(2/3-A)+e:e}var ep=function(e,t){var A=t.filter(bs),r=A[0],n=A[1],a=A[2],i=A[3],s=(r.type===17?Xr(r.number):C0.parse(e,r))/(Math.PI*2),u=LA(n)?n.number/100:0,c=LA(a)?a.number/100:0,l=typeof i<"u"&&LA(i)?nA(i,1):1;if(u===0)return Ka(c*255,c*255,c*255,1);var p=c<=.5?c*(u+1):c+u-c*u,m=c*2-p,h=hf(m,p,s+1/3),w=hf(m,p,s),v=hf(m,p,s-1/3);return Ka(h*255,w*255,v*255,l)},EF={hsl:ep,hsla:ep,rgb:$g,rgba:$g},vu=function(e,t){return qa.parse(e,q5.create(t).parseComponentValue())},ca={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},wF={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(zt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},CF={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},v0=function(e,t){var A=qa.parse(e,t[0]),r=t[1];return r&&LA(r)?{color:A,stop:r}:{color:A,stop:null}},tp=function(e,t){var A=e[0],r=e[e.length-1];A.stop===null&&(A.stop=ZA),r.stop===null&&(r.stop=ka);for(var n=[],a=0,i=0;i<e.length;i++){var s=e[i].stop;if(s!==null){var u=nA(s,t);u>a?n.push(u):n.push(a),a=u}else n.push(null)}for(var c=null,i=0;i<n.length;i++){var l=n[i];if(l===null)c===null&&(c=i);else if(c!==null){for(var p=i-c,m=n[c-1],h=(l-m)/(p+1),w=1;w<=p;w++)n[c+w-1]=h*w;c=null}}return e.map(function(v,T){var C=v.color;return{color:C,stop:Math.max(Math.min(1,n[T]/t),0)}})},vF=function(e,t,A){var r=t/2,n=A/2,a=nA(e[0],t)-r,i=n-nA(e[1],A);return(Math.atan2(i,a)+Math.PI*2)%(Math.PI*2)},TF=function(e,t,A){var r=typeof e=="number"?e:vF(e,t,A),n=Math.abs(t*Math.sin(r))+Math.abs(A*Math.cos(r)),a=t/2,i=A/2,s=n/2,u=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[n,a-c,a+c,i-u,i+u]},on=function(e,t){return Math.sqrt(e*e+t*t)},Ap=function(e,t,A,r,n){var a=[[0,0],[0,t],[e,0],[e,t]];return a.reduce(function(i,s){var u=s[0],c=s[1],l=on(A-u,r-c);return(n?l<i.optimumDistance:l>i.optimumDistance)?{optimumCorner:s,optimumDistance:l}:i},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},yF=function(e,t,A,r,n){var a=0,i=0;switch(e.size){case 0:e.shape===0?a=i=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-r)),i=Math.min(Math.abs(A),Math.abs(A-n)));break;case 2:if(e.shape===0)a=i=Math.min(on(t,A),on(t,A-n),on(t-r,A),on(t-r,A-n));else if(e.shape===1){var s=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(t),Math.abs(t-r)),u=Ap(r,n,t,A,!0),c=u[0],l=u[1];a=on(c-t,(l-A)/s),i=s*a}break;case 1:e.shape===0?a=i=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-r)),i=Math.max(Math.abs(A),Math.abs(A-n)));break;case 3:if(e.shape===0)a=i=Math.max(on(t,A),on(t,A-n),on(t-r,A),on(t-r,A-n));else if(e.shape===1){var s=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(t),Math.abs(t-r)),p=Ap(r,n,t,A,!1),c=p[0],l=p[1];a=on(c-t,(l-A)/s),i=s*a}break}return Array.isArray(e.size)&&(a=nA(e.size[0],r),i=e.size.length===2?nA(e.size[1],n):a),[a,i]},xF=function(e,t){var A=Xr(180),r=[];return Qn(t).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&i.value==="to"){A=J5(n);return}else if(z5(i)){A=C0.parse(e,i);return}}var s=v0(e,n);r.push(s)}),{angle:A,stops:r,type:1}},fc=function(e,t){var A=Xr(180),r=[];return Qn(t).forEach(function(n,a){if(a===0){var i=n[0];if(i.type===20&&["top","left","right","bottom"].indexOf(i.value)!==-1){A=J5(n);return}else if(z5(i)){A=(C0.parse(e,i)+Xr(270))%Xr(360);return}}var s=v0(e,n);r.push(s)}),{angle:A,stops:r,type:1}},IF=function(e,t){var A=Xr(180),r=[],n=1,a=0,i=3,s=[];return Qn(t).forEach(function(u,c){var l=u[0];if(c===0){if(zt(l)&&l.value==="linear"){n=1;return}else if(zt(l)&&l.value==="radial"){n=2;return}}if(l.type===18){if(l.name==="from"){var p=qa.parse(e,l.values[0]);r.push({stop:ZA,color:p})}else if(l.name==="to"){var p=qa.parse(e,l.values[0]);r.push({stop:ka,color:p})}else if(l.name==="color-stop"){var m=l.values.filter(bs);if(m.length===2){var p=qa.parse(e,m[1]),h=m[0];ws(h)&&r.push({stop:{type:16,number:h.number*100,flags:h.flags},color:p})}}}}),n===1?{angle:(A+Xr(180))%Xr(360),stops:r,type:n}:{size:i,shape:a,stops:r,position:s,type:n}},Z5="closest-side",$5="farthest-side",eB="closest-corner",tB="farthest-corner",AB="circle",rB="ellipse",nB="cover",aB="contain",FF=function(e,t){var A=0,r=3,n=[],a=[];return Qn(t).forEach(function(i,s){var u=!0;if(s===0){var c=!1;u=i.reduce(function(p,m){if(c)if(zt(m))switch(m.value){case"center":return a.push(gd),p;case"top":case"left":return a.push(ZA),p;case"right":case"bottom":return a.push(ka),p}else(LA(m)||Ga(m))&&a.push(m);else if(zt(m))switch(m.value){case AB:return A=0,!1;case rB:return A=1,!1;case"at":return c=!0,!1;case Z5:return r=0,!1;case nB:case $5:return r=1,!1;case aB:case eB:return r=2,!1;case tB:return r=3,!1}else if(Ga(m)||LA(m))return Array.isArray(r)||(r=[]),r.push(m),!1;return p},u)}if(u){var l=v0(e,i);n.push(l)}}),{size:r,shape:A,stops:n,position:a,type:2}},hc=function(e,t){var A=0,r=3,n=[],a=[];return Qn(t).forEach(function(i,s){var u=!0;if(s===0?u=i.reduce(function(l,p){if(zt(p))switch(p.value){case"center":return a.push(gd),!1;case"top":case"left":return a.push(ZA),!1;case"right":case"bottom":return a.push(ka),!1}else if(LA(p)||Ga(p))return a.push(p),!1;return l},u):s===1&&(u=i.reduce(function(l,p){if(zt(p))switch(p.value){case AB:return A=0,!1;case rB:return A=1,!1;case aB:case Z5:return r=0,!1;case $5:return r=1,!1;case eB:return r=2,!1;case nB:case tB:return r=3,!1}else if(Ga(p)||LA(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return l},u)),u){var c=v0(e,i);n.push(c)}}),{size:r,shape:A,stops:n,position:a,type:2}},LF=function(e){return e.type===1},_F=function(e){return e.type===2},pd={name:"image",parse:function(e,t){if(t.type===22){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(t.type===18){var r=iB[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function NF(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!iB[e.name])}var iB={"linear-gradient":xF,"-moz-linear-gradient":fc,"-ms-linear-gradient":fc,"-o-linear-gradient":fc,"-webkit-linear-gradient":fc,"radial-gradient":FF,"-moz-radial-gradient":hc,"-ms-radial-gradient":hc,"-o-radial-gradient":hc,"-webkit-radial-gradient":hc,"-webkit-gradient":IF},UF={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t.filter(function(r){return bs(r)&&NF(r)}).map(function(r){return pd.parse(e,r)})}},SF={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(zt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},QF={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Qn(t).map(function(A){return A.filter(LA)}).map(V5)}},OF={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Qn(t).map(function(A){return A.filter(zt).map(function(r){return r.value}).join(" ")}).map(DF)}},DF=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ds;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ds||(ds={}));var RF={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Qn(t).map(function(A){return A.filter(HF)})}},HF=function(e){return zt(e)||LA(e)},T0=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},PF=T0("top"),MF=T0("right"),kF=T0("bottom"),KF=T0("left"),y0=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,A){return V5(A.filter(LA))}}},qF=y0("top-left"),jF=y0("top-right"),VF=y0("bottom-right"),GF=y0("bottom-left"),x0=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},YF=x0("top"),WF=x0("right"),XF=x0("bottom"),zF=x0("left"),I0=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Xu(A)?A.number:0}}},JF=I0("top"),ZF=I0("right"),$F=I0("bottom"),eL=I0("left"),tL={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},AL={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},rL={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(zt).reduce(function(A,r){return A|nL(r.value)},0)}},nL=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},aL={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},iL={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},Zc;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Zc||(Zc={}));var sL={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Zc.STRICT;case"normal":default:return Zc.NORMAL}}},uL={name:"line-height",initialValue:"normal",prefix:!1,type:4},rp=function(e,t){return zt(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:LA(e)?nA(e,t):t},oL={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:pd.parse(e,t)}},cL={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},wh={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){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}}},F0=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},lL=F0("top"),fL=F0("right"),hL=F0("bottom"),dL=F0("left"),gL={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(zt).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},pL={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},L0=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},bL=L0("top"),mL=L0("right"),BL=L0("bottom"),EL=L0("left"),wL={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},CL={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},vL={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&Eh(t[0],"none")?[]:Qn(t).map(function(A){for(var r={color:ca.TRANSPARENT,offsetX:ZA,offsetY:ZA,blur:ZA},n=0,a=0;a<A.length;a++){var i=A[a];Ga(i)?(n===0?r.offsetX=i:n===1?r.offsetY=i:r.blur=i,n++):r.color=qa.parse(e,i)}return r})}},TL={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},yL={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var A=FL[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},xL=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number});return t.length===6?t:null},IL=function(e){var t=e.filter(function(u){return u.type===17}).map(function(u){return u.number}),A=t[0],r=t[1];t[2],t[3];var n=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var i=t[12],s=t[13];return t[14],t[15],t.length===16?[A,r,n,a,i,s]:null},FL={matrix:xL,matrix3d:IL},np={type:16,number:50,flags:Wu},LL=[np,np],_L={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(LA);return A.length!==2?LL:[A[0],A[1]]}},NL={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Tu;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Tu||(Tu={}));var UL={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Tu.BREAK_ALL;case"keep-all":return Tu.KEEP_ALL;case"normal":default:return Tu.NORMAL}}},SL={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(ws(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},sB={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},QL={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return ws(t)?t.number:1}},OL={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},DL={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(zt).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},RL={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],r=[];return t.forEach(function(n){switch(n.type){case 20:case 0:A.push(n.value);break;case 17:A.push(n.number.toString());break;case 4:r.push(A.join(" ")),A.length=0;break}}),A.length&&r.push(A.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},HL={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},PL={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(ws(t))return t.number;if(zt(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},ML={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(zt).map(function(A){return A.value})}},kL={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},HA=function(e,t){return(e&t)!==0},KL={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t}},qL={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;for(var r=[],n=t.filter(j5),a=0;a<n.length;a++){var i=n[a],s=n[a+1];if(i.type===20){var u=s&&ws(s)?s.number:1;r.push({counter:i.value,increment:u})}}return r}},jL={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var A=[],r=t.filter(j5),n=0;n<r.length;n++){var a=r[n],i=r[n+1];if(zt(a)&&a.value!=="none"){var s=i&&ws(i)?i.number:0;A.push({counter:a.value,reset:s})}}return A}},VL={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(Xu).map(function(A){return sB.parse(e,A)})}},GL={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;var r=[],n=t.filter(mF);if(n.length%2!==0)return null;for(var a=0;a<n.length;a+=2){var i=n[a].value,s=n[a+1].value;r.push({open:i,close:s})}return r}},ap=function(e,t,A){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?A?r.open:r.close:""},YL={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&Eh(t[0],"none")?[]:Qn(t).map(function(A){for(var r={color:255,offsetX:ZA,offsetY:ZA,blur:ZA,spread:ZA,inset:!1},n=0,a=0;a<A.length;a++){var i=A[a];Eh(i,"inset")?r.inset=!0:Ga(i)?(n===0?r.offsetX=i:n===1?r.offsetY=i:n===2?r.blur=i:r.spread=i,n++):r.color=qa.parse(e,i)}return r})}},WL={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var A=[0,1,2],r=[];return t.filter(zt).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),A.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},XL={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},zL={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Xu(t)?t.number:0}},JL=(function(){function e(t,A){var r,n;this.animationDuration=We(t,VL,A.animationDuration),this.backgroundClip=We(t,wF,A.backgroundClip),this.backgroundColor=We(t,CF,A.backgroundColor),this.backgroundImage=We(t,UF,A.backgroundImage),this.backgroundOrigin=We(t,SF,A.backgroundOrigin),this.backgroundPosition=We(t,QF,A.backgroundPosition),this.backgroundRepeat=We(t,OF,A.backgroundRepeat),this.backgroundSize=We(t,RF,A.backgroundSize),this.borderTopColor=We(t,PF,A.borderTopColor),this.borderRightColor=We(t,MF,A.borderRightColor),this.borderBottomColor=We(t,kF,A.borderBottomColor),this.borderLeftColor=We(t,KF,A.borderLeftColor),this.borderTopLeftRadius=We(t,qF,A.borderTopLeftRadius),this.borderTopRightRadius=We(t,jF,A.borderTopRightRadius),this.borderBottomRightRadius=We(t,VF,A.borderBottomRightRadius),this.borderBottomLeftRadius=We(t,GF,A.borderBottomLeftRadius),this.borderTopStyle=We(t,YF,A.borderTopStyle),this.borderRightStyle=We(t,WF,A.borderRightStyle),this.borderBottomStyle=We(t,XF,A.borderBottomStyle),this.borderLeftStyle=We(t,zF,A.borderLeftStyle),this.borderTopWidth=We(t,JF,A.borderTopWidth),this.borderRightWidth=We(t,ZF,A.borderRightWidth),this.borderBottomWidth=We(t,$F,A.borderBottomWidth),this.borderLeftWidth=We(t,eL,A.borderLeftWidth),this.boxShadow=We(t,YL,A.boxShadow),this.color=We(t,tL,A.color),this.direction=We(t,AL,A.direction),this.display=We(t,rL,A.display),this.float=We(t,aL,A.cssFloat),this.fontFamily=We(t,RL,A.fontFamily),this.fontSize=We(t,HL,A.fontSize),this.fontStyle=We(t,kL,A.fontStyle),this.fontVariant=We(t,ML,A.fontVariant),this.fontWeight=We(t,PL,A.fontWeight),this.letterSpacing=We(t,iL,A.letterSpacing),this.lineBreak=We(t,sL,A.lineBreak),this.lineHeight=We(t,uL,A.lineHeight),this.listStyleImage=We(t,oL,A.listStyleImage),this.listStylePosition=We(t,cL,A.listStylePosition),this.listStyleType=We(t,wh,A.listStyleType),this.marginTop=We(t,lL,A.marginTop),this.marginRight=We(t,fL,A.marginRight),this.marginBottom=We(t,hL,A.marginBottom),this.marginLeft=We(t,dL,A.marginLeft),this.opacity=We(t,QL,A.opacity);var a=We(t,gL,A.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=We(t,pL,A.overflowWrap),this.paddingTop=We(t,bL,A.paddingTop),this.paddingRight=We(t,mL,A.paddingRight),this.paddingBottom=We(t,BL,A.paddingBottom),this.paddingLeft=We(t,EL,A.paddingLeft),this.paintOrder=We(t,WL,A.paintOrder),this.position=We(t,CL,A.position),this.textAlign=We(t,wL,A.textAlign),this.textDecorationColor=We(t,OL,(r=A.textDecorationColor)!==null&&r!==void 0?r:A.color),this.textDecorationLine=We(t,DL,(n=A.textDecorationLine)!==null&&n!==void 0?n:A.textDecoration),this.textShadow=We(t,vL,A.textShadow),this.textTransform=We(t,TL,A.textTransform),this.transform=We(t,yL,A.transform),this.transformOrigin=We(t,_L,A.transformOrigin),this.visibility=We(t,NL,A.visibility),this.webkitTextStrokeColor=We(t,XL,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=We(t,zL,A.webkitTextStrokeWidth),this.wordBreak=We(t,UL,A.wordBreak),this.zIndex=We(t,SL,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return ja(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return HA(this.display,4)||HA(this.display,33554432)||HA(this.display,268435456)||HA(this.display,536870912)||HA(this.display,67108864)||HA(this.display,134217728)},e})(),ZL=(function(){function e(t,A){this.content=We(t,KL,A.content),this.quotes=We(t,GL,A.quotes)}return e})(),ip=(function(){function e(t,A){this.counterIncrement=We(t,qL,A.counterIncrement),this.counterReset=We(t,jL,A.counterReset)}return e})(),We=function(e,t,A){var r=new K5,n=A!==null&&typeof A<"u"?A.toString():t.initialValue;r.write(n);var a=new q5(r.read());switch(t.type){case 2:var i=a.parseComponentValue();return t.parse(e,zt(i)?i.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return C0.parse(e,a.parseComponentValue());case"color":return qa.parse(e,a.parseComponentValue());case"image":return pd.parse(e,a.parseComponentValue());case"length":var s=a.parseComponentValue();return Ga(s)?s:ZA;case"length-percentage":var u=a.parseComponentValue();return LA(u)?u:ZA;case"time":return sB.parse(e,a.parseComponentValue())}break}},$L="data-html2canvas-debug",e_=function(e){var t=e.getAttribute($L);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ch=function(e,t){var A=e_(e);return A===1||t===A},On=(function(){function e(t,A){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Ch(A,3))debugger;this.styles=new JL(t,window.getComputedStyle(A,null)),yh(A)&&(this.styles.animationDuration.some(function(r){return r>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=E0(this.context,A),Ch(A,4)&&(this.flags|=16)}return e})(),t_="[encoded data, 26156 characters]",sp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var dc=0;dc<sp.length;dc++)lu[sp.charCodeAt(dc)]=dc;var A_=function(e){var t=e.length*.75,A=e.length,r,n=0,a,i,s,u;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),l=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<A;r+=4)a=lu[e.charCodeAt(r)],i=lu[e.charCodeAt(r+1)],s=lu[e.charCodeAt(r+2)],u=lu[e.charCodeAt(r+3)],l[n++]=a<<2|i>>4,l[n++]=(i&15)<<4|s>>2,l[n++]=(s&3)<<6|u&63;return c},r_=function(e){for(var t=e.length,A=[],r=0;r<t;r+=2)A.push(e[r+1]<<8|e[r]);return A},n_=function(e){for(var t=e.length,A=[],r=0;r<t;r+=4)A.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return A},vi=5,bd=11,df=2,a_=bd-vi,uB=65536>>vi,i_=1<<vi,gf=i_-1,s_=1024>>vi,u_=uB+s_,o_=u_,c_=32,l_=o_+c_,f_=65536>>bd,h_=1<<a_,d_=h_-1,up=function(e,t,A){return e.slice?e.slice(t,A):new Uint16Array(Array.prototype.slice.call(e,t,A))},g_=function(e,t,A){return e.slice?e.slice(t,A):new Uint32Array(Array.prototype.slice.call(e,t,A))},p_=function(e,t){var A=A_(e),r=Array.isArray(A)?n_(A):new Uint32Array(A),n=Array.isArray(A)?r_(A):new Uint16Array(A),a=24,i=up(n,a/2,r[4]/2),s=r[5]===2?up(n,(a+r[4])/2):g_(r,Math.ceil((a+r[4])/4));return new b_(r[0],r[1],r[2],r[3],i,s)},b_=(function(){function e(t,A,r,n,a,i){this.initialValue=t,this.errorValue=A,this.highStart=r,this.highValueIndex=n,this.index=a,this.data=i}return e.prototype.get=function(t){var A;if(t>=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>vi],A=(A<<df)+(t&gf),this.data[A];if(t<=65535)return A=this.index[uB+(t-55296>>vi)],A=(A<<df)+(t&gf),this.data[A];if(t<this.highStart)return A=l_-f_+(t>>bd),A=this.index[A],A+=t>>vi&d_,A=this.index[A],A=(A<<df)+(t&gf),this.data[A];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),op="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m_=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var gc=0;gc<op.length;gc++)m_[op.charCodeAt(gc)]=gc;var B_=1,pf=2,bf=3,cp=4,lp=5,E_=7,fp=8,mf=9,Bf=10,hp=11,dp=12,gp=13,pp=14,Ef=15,w_=function(e){for(var t=[],A=0,r=e.length;A<r;){var n=e.charCodeAt(A++);if(n>=55296&&n<=56319&&A<r){var a=e.charCodeAt(A++);(a&64512)===56320?t.push(((n&1023)<<10)+(a&1023)+65536):(t.push(n),A--)}else t.push(n)}return t},C_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var A=e.length;if(!A)return"";for(var r=[],n=-1,a="";++n<A;){var i=e[n];i<=65535?r.push(i):(i-=65536,r.push((i>>10)+55296,i%1024+56320)),(n+1===A||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},v_=p_(t_),qr="×",wf="÷",T_=function(e){return v_.get(e)},y_=function(e,t,A){var r=A-2,n=t[r],a=t[A-1],i=t[A];if(a===pf&&i===bf)return qr;if(a===pf||a===bf||a===cp||i===pf||i===bf||i===cp)return wf;if(a===fp&&[fp,mf,hp,dp].indexOf(i)!==-1||(a===hp||a===mf)&&(i===mf||i===Bf)||(a===dp||a===Bf)&&i===Bf||i===gp||i===lp||i===E_||a===B_)return qr;if(a===gp&&i===pp){for(;n===lp;)n=t[--r];if(n===pp)return qr}if(a===Ef&&i===Ef){for(var s=0;n===Ef;)s++,n=t[--r];if(s%2===0)return qr}return wf},x_=function(e){var t=w_(e),A=t.length,r=0,n=0,a=t.map(T_);return{next:function(){if(r>=A)return{done:!0,value:null};for(var i=qr;r<A&&(i=y_(t,a,++r))===qr;);if(i!==qr||r===A){var s=C_.apply(null,t.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},I_=function(e){for(var t=x_(e),A=[],r;!(r=t.next()).done;)r.value&&A.push(r.value.slice());return A},F_=function(e){var t=123;if(e.createRange){var A=e.createRange();if(A.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=t+"px",r.style.display="block",e.body.appendChild(r),A.selectNode(r);var n=A.getBoundingClientRect(),a=Math.round(n.height);if(e.body.removeChild(r),a===t)return!0}}return!1},L_=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var A=e.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=t.firstChild,n=w0(r.data).map(function(u){return CA(u)}),a=0,i={},s=n.every(function(u,c){A.setStart(r,a),A.setEnd(r,a+u.length);var l=A.getBoundingClientRect();a+=u.length;var p=l.x>i.x||l.y>i.y;return i=l,c===0?!0:p});return e.body.removeChild(t),s},__=function(){return typeof new Image().crossOrigin<"u"},N_=function(){return typeof new XMLHttpRequest().responseType=="string"},U_=function(e){var t=new Image,A=e.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),A.toDataURL()}catch{return!1}return!0},bp=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},S_=function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var n=new Image,a=t.toDataURL();n.src=a;var i=vh(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),mp(i).then(function(s){r.drawImage(s,0,0);var u=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=A+"px",bp(u)?mp(vh(A,A,0,0,c)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),bp(r.getImageData(0,0,A,A).data)}).catch(function(){return!1})},vh=function(e,t,A,r,n){var a="http://www.w3.org/2000/svg",i=document.createElementNS(a,"svg"),s=document.createElementNS(a,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",A.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(n),i},mp=function(e){return new Promise(function(t,A){var r=new Image;r.onload=function(){return t(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},JA={get SUPPORT_RANGE_BOUNDS(){var e=F_(document);return Object.defineProperty(JA,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=JA.SUPPORT_RANGE_BOUNDS&&L_(document);return Object.defineProperty(JA,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=U_(document);return Object.defineProperty(JA,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?S_(document):Promise.resolve(!1);return Object.defineProperty(JA,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=__();return Object.defineProperty(JA,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=N_();return Object.defineProperty(JA,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(JA,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(JA,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},yu=(function(){function e(t,A){this.text=t,this.bounds=A}return e})(),Q_=function(e,t,A,r){var n=R_(t,A),a=[],i=0;return n.forEach(function(s){if(A.textDecorationLine.length||s.trim().length>0)if(JA.SUPPORT_RANGE_BOUNDS){var u=Bp(r,i,s.length).getClientRects();if(u.length>1){var c=md(s),l=0;c.forEach(function(m){a.push(new yu(m,la.fromDOMRectList(e,Bp(r,l+i,m.length).getClientRects()))),l+=m.length})}else a.push(new yu(s,la.fromDOMRectList(e,u)))}else{var p=r.splitText(s.length);a.push(new yu(s,O_(e,r))),r=p}else JA.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));i+=s.length}),a},O_=function(e,t){var A=t.ownerDocument;if(A){var r=A.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var a=E0(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),a}}return la.EMPTY},Bp=function(e,t,A){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,t),n.setEnd(e,t+A),n},md=function(e){if(JA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(A){return A.segment})}return I_(e)},D_=function(e,t){if(JA.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return P_(e,t)},R_=function(e,t){return t.letterSpacing!==0?md(e):D_(e,t)},H_=[32,160,4961,65792,65793,4153,4241],P_=function(e,t){for(var A=fI(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),r=[],n,a=function(){if(n.value){var i=n.value.slice(),s=w0(i),u="";s.forEach(function(c){H_.indexOf(c)===-1?u+=CA(c):(u.length&&r.push(u),r.push(CA(c)),u="")}),u.length&&r.push(u)}};!(n=A.next()).done;)a();return r},M_=(function(){function e(t,A,r){this.text=k_(A.data,r.textTransform),this.textBounds=Q_(t,this.text,r,A)}return e})(),k_=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(K_,q_);case 2:return e.toUpperCase();default:return e}},K_=/(^|\s|:|-|\(|\))([a-z])/g,q_=function(e,t,A){return e.length>0?t+A.toUpperCase():e},oB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return t})(On),cB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return t})(On),lB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this,a=new XMLSerializer,i=E0(A,r);return r.setAttribute("width",i.width+"px"),r.setAttribute("height",i.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t})(On),fB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.value=r.value,n}return t})(On),Th=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return t})(On),j_=[{type:15,flags:0,unit:"px",number:3}],V_=[{type:16,flags:0,number:50}],G_=function(e){return e.width>e.height?new la(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new la(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Y_=function(e){var t=e.type===W_?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},$c="checkbox",e0="radio",W_="password",Ep=707406591,Bd=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=Y_(r),(n.type===$c||n.type===e0)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=G_(n.bounds)),n.type){case $c:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=j_;break;case e0:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=V_;break}return n}return t})(On),hB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this,a=r.options[r.selectedIndex||0];return n.value=a&&a.text||"",n}return t})(On),dB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.value=r.value,n}return t})(On),gB=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=bB(A,r.contentWindow.document.documentElement);var a=r.contentWindow.document.documentElement?vu(A,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):ca.TRANSPARENT,i=r.contentWindow.document.body?vu(A,getComputedStyle(r.contentWindow.document.body).backgroundColor):ca.TRANSPARENT;n.backgroundColor=ja(a)?ja(i)?n.styles.backgroundColor:i:a}}catch{}return n}return t})(On),X_=["OL","UL","MENU"],Nc=function(e,t,A,r){for(var n=t.firstChild,a=void 0;n;n=a)if(a=n.nextSibling,mB(n)&&n.data.trim().length>0)A.textNodes.push(new M_(e,n,A.styles));else if(ss(n))if(CB(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return Nc(e,s,A,r)});else{var i=pB(e,n);i.styles.isVisible()&&(z_(n,i,r)?i.flags|=4:J_(i.styles)&&(i.flags|=2),X_.indexOf(n.tagName)!==-1&&(i.flags|=8),A.elements.push(i),n.slot,n.shadowRoot?Nc(e,n.shadowRoot,i,r):!t0(n)&&!BB(n)&&!A0(n)&&Nc(e,n,i,r))}},pB=function(e,t){return xh(t)?new oB(e,t):EB(t)?new cB(e,t):BB(t)?new lB(e,t):Z_(t)?new fB(e,t):$_(t)?new Th(e,t):eN(t)?new Bd(e,t):A0(t)?new hB(e,t):t0(t)?new dB(e,t):wB(t)?new gB(e,t):new On(e,t)},bB=function(e,t){var A=pB(e,t);return A.flags|=4,Nc(e,t,A,A),A},z_=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Ed(e)&&A.styles.isTransparent()},J_=function(e){return e.isPositioned()||e.isFloating()},mB=function(e){return e.nodeType===Node.TEXT_NODE},ss=function(e){return e.nodeType===Node.ELEMENT_NODE},yh=function(e){return ss(e)&&typeof e.style<"u"&&!Uc(e)},Uc=function(e){return typeof e.className=="object"},Z_=function(e){return e.tagName==="LI"},$_=function(e){return e.tagName==="OL"},eN=function(e){return e.tagName==="INPUT"},tN=function(e){return e.tagName==="HTML"},BB=function(e){return e.tagName==="svg"},Ed=function(e){return e.tagName==="BODY"},EB=function(e){return e.tagName==="CANVAS"},wp=function(e){return e.tagName==="VIDEO"},xh=function(e){return e.tagName==="IMG"},wB=function(e){return e.tagName==="IFRAME"},Cp=function(e){return e.tagName==="STYLE"},AN=function(e){return e.tagName==="SCRIPT"},t0=function(e){return e.tagName==="TEXTAREA"},A0=function(e){return e.tagName==="SELECT"},CB=function(e){return e.tagName==="SLOT"},vp=function(e){return e.tagName.indexOf("-")>0},rN=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var A=this.counters[t];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(t){var A=this.counters[t];return A||[]},e.prototype.pop=function(t){var A=this;t.forEach(function(r){return A.counters[r].pop()})},e.prototype.parse=function(t){var A=this,r=t.counterIncrement,n=t.counterReset,a=!0;r!==null&&r.forEach(function(s){var u=A.counters[s.counter];u&&s.increment!==0&&(a=!1,u.length||u.push(1),u[Math.max(0,u.length-1)]+=s.increment)});var i=[];return a&&n.forEach(function(s){var u=A.counters[s.counter];i.push(s.counter),u||(u=A.counters[s.counter]=[]),u.push(s.reset)}),i},e})(),Tp={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"]},yp={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},nN={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},aN={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$i=function(e,t,A,r,n,a){return e<t||e>A?Pu(e,n,a.length>0):r.integers.reduce(function(i,s,u){for(;e>=s;)e-=s,i+=r.values[u];return i},"")+a},vB=function(e,t,A,r){var n="";do A||e--,n=r(e)+n,e/=t;while(e*t>=t);return n},wA=function(e,t,A,r,n){var a=A-t+1;return(e<0?"-":"")+(vB(Math.abs(e),a,r,function(i){return CA(Math.floor(i%a)+t)})+n)},di=function(e,t,A){A===void 0&&(A=". ");var r=t.length;return vB(Math.abs(e),r,!1,function(n){return t[Math.floor(n%r)]})+A},ns=1,Ua=2,Sa=4,fu=8,na=function(e,t,A,r,n,a){if(e<-9999||e>9999)return Pu(e,4,n.length>0);var i=Math.abs(e),s=n;if(i===0)return t[0]+s;for(var u=0;i>0&&u<=4;u++){var c=i%10;c===0&&HA(a,ns)&&s!==""?s=t[c]+s:c>1||c===1&&u===0||c===1&&u===1&&HA(a,Ua)||c===1&&u===1&&HA(a,Sa)&&e>100||c===1&&u>1&&HA(a,fu)?s=t[c]+(u>0?A[u-1]:"")+s:c===1&&u>0&&(s=A[u-1]+s),i=Math.floor(i/10)}return(e<0?r:"")+s},xp="十百千萬",Ip="拾佰仟萬",Fp="マイナス",Cf="마이너스",Pu=function(e,t,A){var r=A?". ":"",n=A?"、":"",a=A?", ":"",i=A?" ":"";switch(t){case 0:return"•"+i;case 1:return"◦"+i;case 2:return"◾"+i;case 5:var s=wA(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return di(e,"〇一二三四五六七八九",n);case 6:return $i(e,1,3999,Tp,3,r).toLowerCase();case 7:return $i(e,1,3999,Tp,3,r);case 8:return wA(e,945,969,!1,r);case 9:return wA(e,97,122,!1,r);case 10:return wA(e,65,90,!1,r);case 11:return wA(e,1632,1641,!0,r);case 12:case 49:return $i(e,1,9999,yp,3,r);case 35:return $i(e,1,9999,yp,3,r).toLowerCase();case 13:return wA(e,2534,2543,!0,r);case 14:case 30:return wA(e,6112,6121,!0,r);case 15:return di(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return di(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return na(e,"零一二三四五六七八九",xp,"負",n,Ua|Sa|fu);case 47:return na(e,"零壹貳參肆伍陸柒捌玖",Ip,"負",n,ns|Ua|Sa|fu);case 42:return na(e,"零一二三四五六七八九",xp,"负",n,Ua|Sa|fu);case 41:return na(e,"零壹贰叁肆伍陆柒捌玖",Ip,"负",n,ns|Ua|Sa|fu);case 26:return na(e,"〇一二三四五六七八九","十百千万",Fp,n,0);case 25:return na(e,"零壱弐参四伍六七八九","拾百千万",Fp,n,ns|Ua|Sa);case 31:return na(e,"영일이삼사오육칠팔구","십백천만",Cf,a,ns|Ua|Sa);case 33:return na(e,"零一二三四五六七八九","十百千萬",Cf,a,0);case 32:return na(e,"零壹貳參四五六七八九","拾百千",Cf,a,ns|Ua|Sa);case 18:return wA(e,2406,2415,!0,r);case 20:return $i(e,1,19999,aN,3,r);case 21:return wA(e,2790,2799,!0,r);case 22:return wA(e,2662,2671,!0,r);case 22:return $i(e,1,10999,nN,3,r);case 23:return di(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return di(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return wA(e,3302,3311,!0,r);case 28:return di(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return di(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return wA(e,3792,3801,!0,r);case 37:return wA(e,6160,6169,!0,r);case 38:return wA(e,4160,4169,!0,r);case 39:return wA(e,2918,2927,!0,r);case 40:return wA(e,1776,1785,!0,r);case 43:return wA(e,3046,3055,!0,r);case 44:return wA(e,3174,3183,!0,r);case 45:return wA(e,3664,3673,!0,r);case 46:return wA(e,3872,3881,!0,r);case 3:default:return wA(e,48,57,!0,r)}},TB="data-html2canvas-ignore",Lp=(function(){function e(t,A,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=A,this.counters=new rN,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,A){var r=this,n=iN(t,A);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,i=t.defaultView.pageYOffset,s=n.contentWindow,u=s.document,c=oN(n).then(function(){return hr(r,void 0,void 0,function(){var l,p;return ir(this,function(m){switch(m.label){case 0:return this.scrolledElements.forEach(hN),s&&(s.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==A.top||s.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-A.left,s.scrollY-A.top,0,0))),l=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:m.sent(),m.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,uN(u)]:[3,4];case 3:m.sent(),m.label=4;case 4:return typeof l=="function"?[2,Promise.resolve().then(function(){return l(u,p)}).then(function(){return n})]:[2,n]}})})});return u.open(),u.write(lN(document.doctype)+"<html></html>"),fN(this.referenceElement.ownerDocument,a,i),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),c},e.prototype.createElementClone=function(t){if(Ch(t,2))debugger;if(EB(t))return this.createCanvasClone(t);if(wp(t))return this.createVideoClone(t);if(Cp(t))return this.createStyleClone(t);var A=t.cloneNode(!1);return xh(A)&&(xh(t)&&t.currentSrc&&t.currentSrc!==t.src&&(A.src=t.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),vp(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(t){var A=document.createElement("html2canvascustomelement");return vf(t.style,A),A},e.prototype.createStyleClone=function(t){try{var A=t.sheet;if(A&&A.cssRules){var r=[].slice.call(A.cssRules,0).reduce(function(a,i){return i&&typeof i.cssText=="string"?a+i.cssText:a},""),n=t.cloneNode(!1);return n.textContent=r,n}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var A;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var a=t.getContext("2d"),i=n.getContext("2d");if(i)if(!this.options.allowTaint&&a)i.putImageData(a.getImageData(0,0,t.width,t.height),0,0);else{var s=(A=t.getContext("webgl2"))!==null&&A!==void 0?A:t.getContext("webgl");if(s){var u=s.getContextAttributes();(u==null?void 0:u.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}i.drawImage(t,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},e.prototype.createVideoClone=function(t){var A=t.ownerDocument.createElement("canvas");A.width=t.offsetWidth,A.height=t.offsetHeight;var r=A.getContext("2d");try{return r&&(r.drawImage(t,0,0,A.width,A.height),this.options.allowTaint||r.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},e.prototype.appendChildNode=function(t,A,r){(!ss(A)||!AN(A)&&!A.hasAttribute(TB)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!ss(A)||!Cp(A))&&t.appendChild(this.cloneNode(A,r))},e.prototype.cloneChildNodes=function(t,A,r){for(var n=this,a=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;a;a=a.nextSibling)if(ss(a)&&CB(a)&&typeof a.assignedNodes=="function"){var i=a.assignedNodes();i.length&&i.forEach(function(s){return n.appendChildNode(A,s,r)})}else this.appendChildNode(A,a,r)},e.prototype.cloneNode=function(t,A){if(mB(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&ss(t)&&(yh(t)||Uc(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var a=r.getComputedStyle(t),i=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&yh(n)&&(this.clonedReferenceElement=n),Ed(n)&&pN(n);var u=this.counters.parse(new ip(this.context,a)),c=this.resolvePseudoContent(t,n,i,xu.BEFORE);vp(t)&&(A=!0),wp(t)||this.cloneChildNodes(t,n,A),c&&n.insertBefore(c,n.firstChild);var l=this.resolvePseudoContent(t,n,s,xu.AFTER);return l&&n.appendChild(l),this.counters.pop(u),(a&&(this.options.copyStyles||Uc(t))&&!wB(t)||A)&&vf(a,n),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(t0(t)||A0(t))&&(t0(n)||A0(n))&&(n.value=t.value),n}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,A,r,n){var a=this;if(r){var i=r.content,s=A.ownerDocument;if(!(!s||!i||i==="none"||i==="-moz-alt-content"||r.display==="none")){this.counters.parse(new ip(this.context,r));var u=new ZL(this.context,r),c=s.createElement("html2canvaspseudoelement");vf(r,c),u.content.forEach(function(p){if(p.type===0)c.appendChild(s.createTextNode(p.value));else if(p.type===22){var m=s.createElement("img");m.src=p.value,m.style.opacity="1",c.appendChild(m)}else if(p.type===18){if(p.name==="attr"){var h=p.values.filter(zt);h.length&&c.appendChild(s.createTextNode(t.getAttribute(h[0].value)||""))}else if(p.name==="counter"){var w=p.values.filter(bs),v=w[0],T=w[1];if(v&&zt(v)){var C=a.counters.getCounterValue(v.value),U=T&&zt(T)?wh.parse(a.context,T.value):3;c.appendChild(s.createTextNode(Pu(C,U,!1)))}}else if(p.name==="counters"){var R=p.values.filter(bs),v=R[0],F=R[1],T=R[2];if(v&&zt(v)){var D=a.counters.getCounterValues(v.value),P=T&&zt(T)?wh.parse(a.context,T.value):3,J=F&&F.type===0?F.value:"",K=D.map(function(E){return Pu(E,P,!1)}).join(J);c.appendChild(s.createTextNode(K))}}}else if(p.type===20)switch(p.value){case"open-quote":c.appendChild(s.createTextNode(ap(u.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(s.createTextNode(ap(u.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(s.createTextNode(p.value))}}),c.className=Ih+" "+Fh;var l=n===xu.BEFORE?" "+Ih:" "+Fh;return Uc(A)?A.className.baseValue+=l:A.className+=l,c}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),xu;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(xu||(xu={}));var iN=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(TB,"true"),e.body.appendChild(A),A},sN=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},uN=function(e){return Promise.all([].slice.call(e.images,0).map(sN))},oN=function(e){return new Promise(function(t,A){var r=e.contentWindow;if(!r)return A("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var a=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(a),t(e))},50)}})},cN=["all","d","content"],vf=function(e,t){for(var A=e.length-1;A>=0;A--){var r=e.item(A);cN.indexOf(r)===-1&&t.style.setProperty(r,e.getPropertyValue(r))}return t},lN=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},fN=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},hN=function(e){var t=e[0],A=e[1],r=e[2];t.scrollLeft=A,t.scrollTop=r},dN=":before",gN=":after",Ih="___html2canvas___pseudoelement_before",Fh="___html2canvas___pseudoelement_after",_p=`{
    content: "" !important;
    display: none !important;
}`,pN=function(e){bN(e,"."+Ih+dN+_p+`
         .`+Fh+gN+_p)},bN=function(e,t){var A=e.ownerDocument;if(A){var r=A.createElement("style");r.textContent=t,e.appendChild(r)}},yB=(function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),mN=(function(){function e(t,A){this.context=t,this._options=A,this._cache={}}return e.prototype.addImage=function(t){var A=Promise.resolve();return this.has(t)||(yf(t)||CN(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),A},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return hr(this,void 0,void 0,function(){var A,r,n,a,i=this;return ir(this,function(s){switch(s.label){case 0:return A=yB.isSameOrigin(t),r=!Tf(t)&&this._options.useCORS===!0&&JA.SUPPORT_CORS_IMAGES&&!A,n=!Tf(t)&&!A&&!yf(t)&&typeof this._options.proxy=="string"&&JA.SUPPORT_CORS_XHR&&!r,!A&&this._options.allowTaint===!1&&!Tf(t)&&!yf(t)&&!n&&!r?[2]:(a=t,n?[4,this.proxy(a)]:[3,2]);case 1:a=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(u,c){var l=new Image;l.onload=function(){return u(l)},l.onerror=c,(vN(a)||r)&&(l.crossOrigin="anonymous"),l.src=a,l.complete===!0&&setTimeout(function(){return u(l)},500),i._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var A=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise(function(a,i){var s=JA.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;u.onload=function(){if(u.status===200)if(s==="text")a(u.response);else{var p=new FileReader;p.addEventListener("load",function(){return a(p.result)},!1),p.addEventListener("error",function(m){return i(m)},!1),p.readAsDataURL(u.response)}else i("Failed to proxy resource "+n+" with status code "+u.status)},u.onerror=i;var c=r.indexOf("?")>-1?"&":"?";if(u.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&u instanceof XMLHttpRequest&&(u.responseType=s),A._options.imageTimeout){var l=A._options.imageTimeout;u.timeout=l,u.ontimeout=function(){return i("Timed out ("+l+"ms) proxying "+n)}}u.send()})},e})(),BN=/^data:image\/svg\+xml/i,EN=/^data:image\/.*;base64,/i,wN=/^data:image\/.*/i,CN=function(e){return JA.SUPPORT_SVG_DRAWING||!TN(e)},Tf=function(e){return wN.test(e)},vN=function(e){return EN.test(e)},yf=function(e){return e.substr(0,4)==="blob"},TN=function(e){return e.substr(-3).toLowerCase()==="svg"||BN.test(e)},Ye=(function(){function e(t,A){this.type=0,this.x=t,this.y=A}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e})(),es=function(e,t,A){return new Ye(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},pc=(function(){function e(t,A,r,n){this.type=1,this.start=t,this.startControl=A,this.endControl=r,this.end=n}return e.prototype.subdivide=function(t,A){var r=es(this.start,this.startControl,t),n=es(this.startControl,this.endControl,t),a=es(this.endControl,this.end,t),i=es(r,n,t),s=es(n,a,t),u=es(i,s,t);return A?new e(this.start,r,i,u):new e(u,s,a,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),Yr=function(e){return e.type===1},yN=(function(){function e(t){var A=t.styles,r=t.bounds,n=cu(A.borderTopLeftRadius,r.width,r.height),a=n[0],i=n[1],s=cu(A.borderTopRightRadius,r.width,r.height),u=s[0],c=s[1],l=cu(A.borderBottomRightRadius,r.width,r.height),p=l[0],m=l[1],h=cu(A.borderBottomLeftRadius,r.width,r.height),w=h[0],v=h[1],T=[];T.push((a+u)/r.width),T.push((w+p)/r.width),T.push((i+v)/r.height),T.push((c+m)/r.height);var C=Math.max.apply(Math,T);C>1&&(a/=C,i/=C,u/=C,c/=C,p/=C,m/=C,w/=C,v/=C);var U=r.width-u,R=r.height-m,F=r.width-p,D=r.height-v,P=A.borderTopWidth,J=A.borderRightWidth,K=A.borderBottomWidth,S=A.borderLeftWidth,Ae=nA(A.paddingTop,t.bounds.width),E=nA(A.paddingRight,t.bounds.width),I=nA(A.paddingBottom,t.bounds.width),Q=nA(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||i>0?oA(r.left+S/3,r.top+P/3,a-S/3,i-P/3,qt.TOP_LEFT):new Ye(r.left+S/3,r.top+P/3),this.topRightBorderDoubleOuterBox=a>0||i>0?oA(r.left+U,r.top+P/3,u-J/3,c-P/3,qt.TOP_RIGHT):new Ye(r.left+r.width-J/3,r.top+P/3),this.bottomRightBorderDoubleOuterBox=p>0||m>0?oA(r.left+F,r.top+R,p-J/3,m-K/3,qt.BOTTOM_RIGHT):new Ye(r.left+r.width-J/3,r.top+r.height-K/3),this.bottomLeftBorderDoubleOuterBox=w>0||v>0?oA(r.left+S/3,r.top+D,w-S/3,v-K/3,qt.BOTTOM_LEFT):new Ye(r.left+S/3,r.top+r.height-K/3),this.topLeftBorderDoubleInnerBox=a>0||i>0?oA(r.left+S*2/3,r.top+P*2/3,a-S*2/3,i-P*2/3,qt.TOP_LEFT):new Ye(r.left+S*2/3,r.top+P*2/3),this.topRightBorderDoubleInnerBox=a>0||i>0?oA(r.left+U,r.top+P*2/3,u-J*2/3,c-P*2/3,qt.TOP_RIGHT):new Ye(r.left+r.width-J*2/3,r.top+P*2/3),this.bottomRightBorderDoubleInnerBox=p>0||m>0?oA(r.left+F,r.top+R,p-J*2/3,m-K*2/3,qt.BOTTOM_RIGHT):new Ye(r.left+r.width-J*2/3,r.top+r.height-K*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||v>0?oA(r.left+S*2/3,r.top+D,w-S*2/3,v-K*2/3,qt.BOTTOM_LEFT):new Ye(r.left+S*2/3,r.top+r.height-K*2/3),this.topLeftBorderStroke=a>0||i>0?oA(r.left+S/2,r.top+P/2,a-S/2,i-P/2,qt.TOP_LEFT):new Ye(r.left+S/2,r.top+P/2),this.topRightBorderStroke=a>0||i>0?oA(r.left+U,r.top+P/2,u-J/2,c-P/2,qt.TOP_RIGHT):new Ye(r.left+r.width-J/2,r.top+P/2),this.bottomRightBorderStroke=p>0||m>0?oA(r.left+F,r.top+R,p-J/2,m-K/2,qt.BOTTOM_RIGHT):new Ye(r.left+r.width-J/2,r.top+r.height-K/2),this.bottomLeftBorderStroke=w>0||v>0?oA(r.left+S/2,r.top+D,w-S/2,v-K/2,qt.BOTTOM_LEFT):new Ye(r.left+S/2,r.top+r.height-K/2),this.topLeftBorderBox=a>0||i>0?oA(r.left,r.top,a,i,qt.TOP_LEFT):new Ye(r.left,r.top),this.topRightBorderBox=u>0||c>0?oA(r.left+U,r.top,u,c,qt.TOP_RIGHT):new Ye(r.left+r.width,r.top),this.bottomRightBorderBox=p>0||m>0?oA(r.left+F,r.top+R,p,m,qt.BOTTOM_RIGHT):new Ye(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=w>0||v>0?oA(r.left,r.top+D,w,v,qt.BOTTOM_LEFT):new Ye(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||i>0?oA(r.left+S,r.top+P,Math.max(0,a-S),Math.max(0,i-P),qt.TOP_LEFT):new Ye(r.left+S,r.top+P),this.topRightPaddingBox=u>0||c>0?oA(r.left+Math.min(U,r.width-J),r.top+P,U>r.width+J?0:Math.max(0,u-J),Math.max(0,c-P),qt.TOP_RIGHT):new Ye(r.left+r.width-J,r.top+P),this.bottomRightPaddingBox=p>0||m>0?oA(r.left+Math.min(F,r.width-S),r.top+Math.min(R,r.height-K),Math.max(0,p-J),Math.max(0,m-K),qt.BOTTOM_RIGHT):new Ye(r.left+r.width-J,r.top+r.height-K),this.bottomLeftPaddingBox=w>0||v>0?oA(r.left+S,r.top+Math.min(D,r.height-K),Math.max(0,w-S),Math.max(0,v-K),qt.BOTTOM_LEFT):new Ye(r.left+S,r.top+r.height-K),this.topLeftContentBox=a>0||i>0?oA(r.left+S+Q,r.top+P+Ae,Math.max(0,a-(S+Q)),Math.max(0,i-(P+Ae)),qt.TOP_LEFT):new Ye(r.left+S+Q,r.top+P+Ae),this.topRightContentBox=u>0||c>0?oA(r.left+Math.min(U,r.width+S+Q),r.top+P+Ae,U>r.width+S+Q?0:u-S+Q,c-(P+Ae),qt.TOP_RIGHT):new Ye(r.left+r.width-(J+E),r.top+P+Ae),this.bottomRightContentBox=p>0||m>0?oA(r.left+Math.min(F,r.width-(S+Q)),r.top+Math.min(R,r.height+P+Ae),Math.max(0,p-(J+E)),m-(K+I),qt.BOTTOM_RIGHT):new Ye(r.left+r.width-(J+E),r.top+r.height-(K+I)),this.bottomLeftContentBox=w>0||v>0?oA(r.left+S+Q,r.top+D,Math.max(0,w-(S+Q)),v-(K+I),qt.BOTTOM_LEFT):new Ye(r.left+S+Q,r.top+r.height-(K+I))}return e})(),qt;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(qt||(qt={}));var oA=function(e,t,A,r,n){var a=4*((Math.sqrt(2)-1)/3),i=A*a,s=r*a,u=e+A,c=t+r;switch(n){case qt.TOP_LEFT:return new pc(new Ye(e,c),new Ye(e,c-s),new Ye(u-i,t),new Ye(u,t));case qt.TOP_RIGHT:return new pc(new Ye(e,t),new Ye(e+i,t),new Ye(u,c-s),new Ye(u,c));case qt.BOTTOM_RIGHT:return new pc(new Ye(u,t),new Ye(u,t+s),new Ye(e+i,c),new Ye(e,c));case qt.BOTTOM_LEFT:default:return new pc(new Ye(u,c),new Ye(u-i,c),new Ye(e,t+s),new Ye(e,t))}},r0=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},xN=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},n0=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},IN=(function(){function e(t,A,r){this.offsetX=t,this.offsetY=A,this.matrix=r,this.type=0,this.target=6}return e})(),bc=(function(){function e(t,A){this.path=t,this.target=A,this.type=1}return e})(),FN=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),LN=function(e){return e.type===0},xB=function(e){return e.type===1},_N=function(e){return e.type===2},Np=function(e,t){return e.length===t.length?e.some(function(A,r){return A===t[r]}):!1},NN=function(e,t,A,r,n){return e.map(function(a,i){switch(i){case 0:return a.add(t,A);case 1:return a.add(t+r,A);case 2:return a.add(t+r,A+n);case 3:return a.add(t,A+n)}return a})},IB=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),FB=(function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new yN(this.container),this.container.styles.opacity<1&&this.effects.push(new FN(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new IN(r,n,a))}if(this.container.styles.overflowX!==0){var i=r0(this.curves),s=n0(this.curves);Np(i,s)?this.effects.push(new bc(i,6)):(this.effects.push(new bc(i,2)),this.effects.push(new bc(s,4)))}}return e.prototype.getEffects=function(t){for(var A=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var a=r.effects.filter(function(u){return!xB(u)});if(A||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,a),A=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var i=r0(r.curves),s=n0(r.curves);Np(i,s)||n.unshift(new bc(s,6))}}else n.unshift.apply(n,a);r=r.parent}return n.filter(function(u){return HA(u.target,t)})},e})(),Lh=function(e,t,A,r){e.container.elements.forEach(function(n){var a=HA(n.flags,4),i=HA(n.flags,2),s=new FB(n,e);HA(n.styles.display,2048)&&r.push(s);var u=HA(n.flags,8)?[]:r;if(a||i){var c=a||n.styles.isPositioned()?A:t,l=new IB(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var p=n.styles.zIndex.order;if(p<0){var m=0;c.negativeZIndex.some(function(w,v){return p>w.element.container.styles.zIndex.order?(m=v,!1):m>0}),c.negativeZIndex.splice(m,0,l)}else if(p>0){var h=0;c.positiveZIndex.some(function(w,v){return p>=w.element.container.styles.zIndex.order?(h=v+1,!1):h>0}),c.positiveZIndex.splice(h,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else n.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);Lh(s,l,a?l:A,u)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Lh(s,t,A,u);HA(n.flags,8)&&LB(n,u)})},LB=function(e,t){for(var A=e instanceof Th?e.start:1,r=e instanceof Th?e.reversed:!1,n=0;n<t.length;n++){var a=t[n];a.container instanceof fB&&typeof a.container.value=="number"&&a.container.value!==0&&(A=a.container.value),a.listValue=Pu(A,a.container.styles.listStyleType,!0),A+=r?-1:1}},UN=function(e){var t=new FB(e,null),A=new IB(t),r=[];return Lh(t,A,A,r),LB(t.container,r),A},Up=function(e,t){switch(t){case 0:return zr(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return zr(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return zr(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return zr(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},SN=function(e,t){switch(t){case 0:return zr(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return zr(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return zr(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return zr(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},QN=function(e,t){switch(t){case 0:return zr(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return zr(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return zr(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return zr(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},ON=function(e,t){switch(t){case 0:return mc(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return mc(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return mc(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return mc(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},mc=function(e,t){var A=[];return Yr(e)?A.push(e.subdivide(.5,!1)):A.push(e),Yr(t)?A.push(t.subdivide(.5,!0)):A.push(t),A},zr=function(e,t,A,r){var n=[];return Yr(e)?n.push(e.subdivide(.5,!1)):n.push(e),Yr(A)?n.push(A.subdivide(.5,!0)):n.push(A),Yr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Yr(t)?n.push(t.subdivide(.5,!1).reverse()):n.push(t),n},_B=function(e){var t=e.bounds,A=e.styles;return t.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},a0=function(e){var t=e.styles,A=e.bounds,r=nA(t.paddingLeft,A.width),n=nA(t.paddingRight,A.width),a=nA(t.paddingTop,A.width),i=nA(t.paddingBottom,A.width);return A.add(r+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+n),-(t.borderTopWidth+t.borderBottomWidth+a+i))},DN=function(e,t){return e===0?t.bounds:e===2?a0(t):_B(t)},RN=function(e,t){return e===0?t.bounds:e===2?a0(t):_B(t)},xf=function(e,t,A){var r=DN(as(e.styles.backgroundOrigin,t),e),n=RN(as(e.styles.backgroundClip,t),e),a=HN(as(e.styles.backgroundSize,t),A,r),i=a[0],s=a[1],u=cu(as(e.styles.backgroundPosition,t),r.width-i,r.height-s),c=PN(as(e.styles.backgroundRepeat,t),u,a,r,n),l=Math.round(r.left+u[0]),p=Math.round(r.top+u[1]);return[c,l,p,i,s]},ts=function(e){return zt(e)&&e.value===ds.AUTO},Bc=function(e){return typeof e=="number"},HN=function(e,t,A){var r=t[0],n=t[1],a=t[2],i=e[0],s=e[1];if(!i)return[0,0];if(LA(i)&&s&&LA(s))return[nA(i,A.width),nA(s,A.height)];var u=Bc(a);if(zt(i)&&(i.value===ds.CONTAIN||i.value===ds.COVER)){if(Bc(a)){var c=A.width/A.height;return c<a!=(i.value===ds.COVER)?[A.width,A.width/a]:[A.height*a,A.height]}return[A.width,A.height]}var l=Bc(r),p=Bc(n),m=l||p;if(ts(i)&&(!s||ts(s))){if(l&&p)return[r,n];if(!u&&!m)return[A.width,A.height];if(m&&u){var h=l?r:n*a,w=p?n:r/a;return[h,w]}var v=l?r:A.width,T=p?n:A.height;return[v,T]}if(u){var C=0,U=0;return LA(i)?C=nA(i,A.width):LA(s)&&(U=nA(s,A.height)),ts(i)?C=U*a:(!s||ts(s))&&(U=C/a),[C,U]}var R=null,F=null;if(LA(i)?R=nA(i,A.width):s&&LA(s)&&(F=nA(s,A.height)),R!==null&&(!s||ts(s))&&(F=l&&p?R/r*n:A.height),F!==null&&ts(i)&&(R=l&&p?F/n*r:A.width),R!==null&&F!==null)return[R,F];throw new Error("Unable to calculate background-size for element")},as=function(e,t){var A=e[t];return typeof A>"u"?e[0]:A},PN=function(e,t,A,r,n){var a=t[0],i=t[1],s=A[0],u=A[1];switch(e){case 2:return[new Ye(Math.round(r.left),Math.round(r.top+i)),new Ye(Math.round(r.left+r.width),Math.round(r.top+i)),new Ye(Math.round(r.left+r.width),Math.round(u+r.top+i)),new Ye(Math.round(r.left),Math.round(u+r.top+i))];case 3:return[new Ye(Math.round(r.left+a),Math.round(r.top)),new Ye(Math.round(r.left+a+s),Math.round(r.top)),new Ye(Math.round(r.left+a+s),Math.round(r.height+r.top)),new Ye(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new Ye(Math.round(r.left+a),Math.round(r.top+i)),new Ye(Math.round(r.left+a+s),Math.round(r.top+i)),new Ye(Math.round(r.left+a+s),Math.round(r.top+i+u)),new Ye(Math.round(r.left+a),Math.round(r.top+i+u))];default:return[new Ye(Math.round(n.left),Math.round(n.top)),new Ye(Math.round(n.left+n.width),Math.round(n.top)),new Ye(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ye(Math.round(n.left),Math.round(n.height+n.top))]}},MN="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Sp="Hidden Text",kN=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,A){var r=this._document.createElement("div"),n=this._document.createElement("img"),a=this._document.createElement("span"),i=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=A,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",i.appendChild(r),n.src=MN,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=A,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Sp)),r.appendChild(a),r.appendChild(n);var s=n.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(Sp)),r.style.lineHeight="normal",n.style.verticalAlign="super";var u=n.offsetTop-r.offsetTop+2;return i.removeChild(r),{baseline:s,middle:u}},e.prototype.getMetrics=function(t,A){var r=t+" "+A;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,A)),this._data[r]},e})(),NB=(function(){function e(t,A){this.context=t,this.options=A}return e})(),KN=1e4,qN=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new kN(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return t.prototype.applyEffects=function(A){for(var r=this;this._activeEffects.length;)this.popEffect();A.forEach(function(n){return r.applyEffect(n)})},t.prototype.applyEffect=function(A){this.ctx.save(),_N(A)&&(this.ctx.globalAlpha=A.opacity),LN(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),xB(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return hr(this,void 0,void 0,function(){var r;return ir(this,function(n){switch(n.label){case 0:return r=A.element.container.styles,r.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return hr(this,void 0,void 0,function(){return ir(this,function(r){switch(r.label){case 0:if(HA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(A)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,r,n){var a=this;if(r===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+n);else{var i=md(A.text);i.reduce(function(s,u){return a.ctx.fillText(u,s,A.bounds.top+n),s+a.ctx.measureText(u).width},A.bounds.left)}},t.prototype.createFontStyle=function(A){var r=A.fontVariant.filter(function(i){return i==="normal"||i==="small-caps"}).join(""),n=WN(A.fontFamily).join(", "),a=Xu(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,r,A.fontWeight,a,n].join(" "),n,a]},t.prototype.renderTextNode=function(A,r){return hr(this,void 0,void 0,function(){var n,a,i,s,u,c,l,p,m=this;return ir(this,function(h){return n=this.createFontStyle(r),a=n[0],i=n[1],s=n[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",u=this.fontMetrics.getMetrics(i,s),c=u.baseline,l=u.middle,p=r.paintOrder,A.textBounds.forEach(function(w){p.forEach(function(v){switch(v){case 0:m.ctx.fillStyle=MA(r.color),m.renderTextWithLetterSpacing(w,r.letterSpacing,c);var T=r.textShadow;T.length&&w.text.trim().length&&(T.slice(0).reverse().forEach(function(C){m.ctx.shadowColor=MA(C.color),m.ctx.shadowOffsetX=C.offsetX.number*m.options.scale,m.ctx.shadowOffsetY=C.offsetY.number*m.options.scale,m.ctx.shadowBlur=C.blur.number,m.renderTextWithLetterSpacing(w,r.letterSpacing,c)}),m.ctx.shadowColor="",m.ctx.shadowOffsetX=0,m.ctx.shadowOffsetY=0,m.ctx.shadowBlur=0),r.textDecorationLine.length&&(m.ctx.fillStyle=MA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(C){switch(C){case 1:m.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+c),w.bounds.width,1);break;case 2:m.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:m.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+l),w.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&w.text.trim().length&&(m.ctx.strokeStyle=MA(r.webkitTextStrokeColor),m.ctx.lineWidth=r.webkitTextStrokeWidth,m.ctx.lineJoin=window.chrome?"miter":"round",m.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+c)),m.ctx.strokeStyle="",m.ctx.lineWidth=0,m.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(A,r,n){if(n&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var a=a0(A),i=n0(r);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,A.intrinsicWidth,A.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return hr(this,void 0,void 0,function(){var r,n,a,i,s,u,U,U,c,l,p,m,F,h,w,D,v,T,C,U,R,F,D;return ir(this,function(P){switch(P.label){case 0:this.applyEffects(A.getEffects(4)),r=A.container,n=A.curves,a=r.styles,i=0,s=r.textNodes,P.label=1;case 1:return i<s.length?(u=s[i],[4,this.renderTextNode(u,a)]):[3,4];case 2:P.sent(),P.label=3;case 3:return i++,[3,1];case 4:if(!(r instanceof oB))return[3,8];P.label=5;case 5:return P.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return U=P.sent(),this.renderReplacedElement(r,n,U),[3,8];case 7:return P.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof cB&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof lB))return[3,12];P.label=9;case 9:return P.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return U=P.sent(),this.renderReplacedElement(r,n,U),[3,12];case 11:return P.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof gB&&r.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:l=P.sent(),r.width&&r.height&&this.ctx.drawImage(l,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),P.label=14;case 14:if(r instanceof Bd&&(p=Math.min(r.bounds.width,r.bounds.height),r.type===$c?r.checked&&(this.ctx.save(),this.path([new Ye(r.bounds.left+p*.39363,r.bounds.top+p*.79),new Ye(r.bounds.left+p*.16,r.bounds.top+p*.5549),new Ye(r.bounds.left+p*.27347,r.bounds.top+p*.44071),new Ye(r.bounds.left+p*.39694,r.bounds.top+p*.5649),new Ye(r.bounds.left+p*.72983,r.bounds.top+p*.23),new Ye(r.bounds.left+p*.84,r.bounds.top+p*.34085),new Ye(r.bounds.left+p*.39363,r.bounds.top+p*.79)]),this.ctx.fillStyle=MA(Ep),this.ctx.fill(),this.ctx.restore()):r.type===e0&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+p/2,r.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=MA(Ep),this.ctx.fill(),this.ctx.restore())),jN(r)&&r.value.length){switch(m=this.createFontStyle(a),F=m[0],h=m[1],w=this.fontMetrics.getMetrics(F,h).baseline,this.ctx.font=F,this.ctx.fillStyle=MA(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=GN(r.styles.textAlign),D=a0(r),v=0,r.styles.textAlign){case 1:v+=D.width/2;break;case 2:v+=D.width;break}T=D.add(v,0,0,-D.height/2+1),this.ctx.save(),this.path([new Ye(D.left,D.top),new Ye(D.left+D.width,D.top),new Ye(D.left+D.width,D.top+D.height),new Ye(D.left,D.top+D.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new yu(r.value,T),a.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!HA(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(C=r.styles.listStyleImage,C.type!==0)return[3,18];U=void 0,R=C.url,P.label=15;case 15:return P.trys.push([15,17,,18]),[4,this.context.cache.match(R)];case 16:return U=P.sent(),this.ctx.drawImage(U,r.bounds.left-(U.width+10),r.bounds.top),[3,18];case 17:return P.sent(),this.context.logger.error("Error loading list-style-image "+R),[3,18];case 18:return[3,20];case 19:A.listValue&&r.styles.listStyleType!==-1&&(F=this.createFontStyle(a)[0],this.ctx.font=F,this.ctx.fillStyle=MA(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",D=new la(r.bounds.left,r.bounds.top+nA(r.styles.paddingTop,r.bounds.width),r.bounds.width,rp(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new yu(A.listValue,D),a.letterSpacing,rp(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),P.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(A){return hr(this,void 0,void 0,function(){var r,n,C,a,i,C,s,u,C,c,l,C,p,m,C,h,w,C,v,T,C;return ir(this,function(U){switch(U.label){case 0:if(HA(A.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(A.element)];case 1:U.sent(),r=0,n=A.negativeZIndex,U.label=2;case 2:return r<n.length?(C=n[r],[4,this.renderStack(C)]):[3,5];case 3:U.sent(),U.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(A.element)];case 6:U.sent(),a=0,i=A.nonInlineLevel,U.label=7;case 7:return a<i.length?(C=i[a],[4,this.renderNode(C)]):[3,10];case 8:U.sent(),U.label=9;case 9:return a++,[3,7];case 10:s=0,u=A.nonPositionedFloats,U.label=11;case 11:return s<u.length?(C=u[s],[4,this.renderStack(C)]):[3,14];case 12:U.sent(),U.label=13;case 13:return s++,[3,11];case 14:c=0,l=A.nonPositionedInlineLevel,U.label=15;case 15:return c<l.length?(C=l[c],[4,this.renderStack(C)]):[3,18];case 16:U.sent(),U.label=17;case 17:return c++,[3,15];case 18:p=0,m=A.inlineLevel,U.label=19;case 19:return p<m.length?(C=m[p],[4,this.renderNode(C)]):[3,22];case 20:U.sent(),U.label=21;case 21:return p++,[3,19];case 22:h=0,w=A.zeroOrAutoZIndexOrTransformedOrOpacity,U.label=23;case 23:return h<w.length?(C=w[h],[4,this.renderStack(C)]):[3,26];case 24:U.sent(),U.label=25;case 25:return h++,[3,23];case 26:v=0,T=A.positiveZIndex,U.label=27;case 27:return v<T.length?(C=T[v],[4,this.renderStack(C)]):[3,30];case 28:U.sent(),U.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(A){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(A.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(A){this.ctx.beginPath(),this.formatPath(A),this.ctx.closePath()},t.prototype.formatPath=function(A){var r=this;A.forEach(function(n,a){var i=Yr(n)?n.start:n;a===0?r.ctx.moveTo(i.x,i.y):r.ctx.lineTo(i.x,i.y),Yr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},t.prototype.renderRepeat=function(A,r,n,a){this.path(A),this.ctx.fillStyle=r,this.ctx.translate(n,a),this.ctx.fill(),this.ctx.translate(-n,-a)},t.prototype.resizeImage=function(A,r,n){var a;if(A.width===r&&A.height===n)return A;var i=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,s=i.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,n);var u=s.getContext("2d");return u.drawImage(A,0,0,A.width,A.height,0,0,r,n),s},t.prototype.renderBackgroundImage=function(A){return hr(this,void 0,void 0,function(){var r,n,a,i,s,u;return ir(this,function(c){switch(c.label){case 0:r=A.styles.backgroundImage.length-1,n=function(l){var p,m,h,Ae,$,ae,Q,M,K,w,Ae,$,ae,Q,M,v,T,C,U,R,F,D,P,J,K,S,Ae,E,I,Q,M,X,$,ae,te,le,Te,ye,_,G,z,re;return ir(this,function(se){switch(se.label){case 0:if(l.type!==0)return[3,5];p=void 0,m=l.url,se.label=1;case 1:return se.trys.push([1,3,,4]),[4,a.context.cache.match(m)];case 2:return p=se.sent(),[3,4];case 3:return se.sent(),a.context.logger.error("Error loading background-image "+m),[3,4];case 4:return p&&(h=xf(A,r,[p.width,p.height,p.width/p.height]),Ae=h[0],$=h[1],ae=h[2],Q=h[3],M=h[4],K=a.ctx.createPattern(a.resizeImage(p,Q,M),"repeat"),a.renderRepeat(Ae,K,$,ae)),[3,6];case 5:LF(l)?(w=xf(A,r,[null,null,null]),Ae=w[0],$=w[1],ae=w[2],Q=w[3],M=w[4],v=TF(l.angle,Q,M),T=v[0],C=v[1],U=v[2],R=v[3],F=v[4],D=document.createElement("canvas"),D.width=Q,D.height=M,P=D.getContext("2d"),J=P.createLinearGradient(C,R,U,F),tp(l.stops,T).forEach(function(fe){return J.addColorStop(fe.stop,MA(fe.color))}),P.fillStyle=J,P.fillRect(0,0,Q,M),Q>0&&M>0&&(K=a.ctx.createPattern(D,"repeat"),a.renderRepeat(Ae,K,$,ae))):_F(l)&&(S=xf(A,r,[null,null,null]),Ae=S[0],E=S[1],I=S[2],Q=S[3],M=S[4],X=l.position.length===0?[gd]:l.position,$=nA(X[0],Q),ae=nA(X[X.length-1],M),te=yF(l,$,ae,Q,M),le=te[0],Te=te[1],le>0&&Te>0&&(ye=a.ctx.createRadialGradient(E+$,I+ae,0,E+$,I+ae,le),tp(l.stops,le*2).forEach(function(fe){return ye.addColorStop(fe.stop,MA(fe.color))}),a.path(Ae),a.ctx.fillStyle=ye,le!==Te?(_=A.bounds.left+.5*A.bounds.width,G=A.bounds.top+.5*A.bounds.height,z=Te/le,re=1/z,a.ctx.save(),a.ctx.translate(_,G),a.ctx.transform(1,0,0,z,0,0),a.ctx.translate(-_,-G),a.ctx.fillRect(E,re*(I-G)+G,Q,M*re),a.ctx.restore()):a.ctx.fill())),se.label=6;case 6:return r--,[2]}})},a=this,i=0,s=A.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return i<s.length?(u=s[i],[5,n(u)]):[3,4];case 2:c.sent(),c.label=3;case 3:return i++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(A,r,n){return hr(this,void 0,void 0,function(){return ir(this,function(a){return this.path(Up(n,r)),this.ctx.fillStyle=MA(A),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(A,r,n,a){return hr(this,void 0,void 0,function(){var i,s;return ir(this,function(u){switch(u.label){case 0:return r<3?[4,this.renderSolidBorder(A,n,a)]:[3,2];case 1:return u.sent(),[2];case 2:return i=SN(a,n),this.path(i),this.ctx.fillStyle=MA(A),this.ctx.fill(),s=QN(a,n),this.path(s),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(A){return hr(this,void 0,void 0,function(){var r,n,a,i,s,u,c,l,p=this;return ir(this,function(m){switch(m.label){case 0:return this.applyEffects(A.getEffects(2)),r=A.container.styles,n=!ja(r.backgroundColor)||r.backgroundImage.length,a=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],i=VN(as(r.backgroundClip,0),A.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),ja(r.backgroundColor)||(this.ctx.fillStyle=MA(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(A.container)]):[3,2];case 1:m.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(h){p.ctx.save();var w=r0(A.curves),v=h.inset?0:KN,T=NN(w,-v+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(p.path(w),p.ctx.clip(),p.mask(T)):(p.mask(w),p.ctx.clip(),p.path(T)),p.ctx.shadowOffsetX=h.offsetX.number+v,p.ctx.shadowOffsetY=h.offsetY.number,p.ctx.shadowColor=MA(h.color),p.ctx.shadowBlur=h.blur.number,p.ctx.fillStyle=h.inset?MA(h.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),m.label=2;case 2:s=0,u=0,c=a,m.label=3;case 3:return u<c.length?(l=c[u],l.style!==0&&!ja(l.color)&&l.width>0?l.style!==2?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,s,A.curves,2)]:[3,11]):[3,13];case 4:return m.sent(),[3,11];case 5:return l.style!==3?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,s,A.curves,3)];case 6:return m.sent(),[3,11];case 7:return l.style!==4?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,s,A.curves)];case 8:return m.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,s,A.curves)];case 10:m.sent(),m.label=11;case 11:s++,m.label=12;case 12:return u++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,r,n,a,i){return hr(this,void 0,void 0,function(){var s,u,c,l,p,m,h,w,v,T,C,U,R,F,D,P,D,P;return ir(this,function(J){return this.ctx.save(),s=ON(a,n),u=Up(a,n),i===2&&(this.path(u),this.ctx.clip()),Yr(u[0])?(c=u[0].start.x,l=u[0].start.y):(c=u[0].x,l=u[0].y),Yr(u[1])?(p=u[1].end.x,m=u[1].end.y):(p=u[1].x,m=u[1].y),n===0||n===2?h=Math.abs(c-p):h=Math.abs(l-m),this.ctx.beginPath(),i===3?this.formatPath(s):this.formatPath(u.slice(0,2)),w=r<3?r*3:r*2,v=r<3?r*2:r,i===3&&(w=r,v=r),T=!0,h<=w*2?T=!1:h<=w*2+v?(C=h/(2*w+v),w*=C,v*=C):(U=Math.floor((h+v)/(w+v)),R=(h-U*w)/(U-1),F=(h-(U+1)*w)/U,v=F<=0||Math.abs(v-R)<Math.abs(v-F)?R:F),T&&(i===3?this.ctx.setLineDash([0,w+v]):this.ctx.setLineDash([w,v])),i===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=MA(A),this.ctx.stroke(),this.ctx.setLineDash([]),i===2&&(Yr(u[0])&&(D=u[3],P=u[0],this.ctx.beginPath(),this.formatPath([new Ye(D.end.x,D.end.y),new Ye(P.start.x,P.start.y)]),this.ctx.stroke()),Yr(u[1])&&(D=u[1],P=u[2],this.ctx.beginPath(),this.formatPath([new Ye(D.end.x,D.end.y),new Ye(P.start.x,P.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(A){return hr(this,void 0,void 0,function(){var r;return ir(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=MA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=UN(A),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(NB),jN=function(e){return e instanceof dB||e instanceof hB?!0:e instanceof Bd&&e.type!==e0&&e.type!==$c},VN=function(e,t){switch(e){case 0:return r0(t);case 2:return xN(t);case 1:default:return n0(t)}},GN=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},YN=["-apple-system","system-ui"],WN=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return YN.indexOf(t)===-1}):e},XN=(function(e){bn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return t.prototype.render=function(A){return hr(this,void 0,void 0,function(){var r,n;return ir(this,function(a){switch(a.label){case 0:return r=vh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,A),[4,zN(r)];case 1:return n=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=MA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(NB),zN=function(e){return new Promise(function(t,A){var r=new Image;r.onload=function(){t(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},JN=(function(){function e(t){var A=t.id,r=t.enabled;this.id=A,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Jo([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Jo([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Jo([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],A=0;A<arguments.length;A++)t[A]=arguments[A];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Jo([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e})(),ZN=(function(){function e(t,A){var r;this.windowBounds=A,this.instanceName="#"+e.instanceCount++,this.logger=new JN({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new mN(this,t)}return e.instanceCount=1,e})(),wd=function(e,t){return t===void 0&&(t={}),$N(e,t)};typeof window<"u"&&yB.setContext(window);var $N=function(e,t){return hr(void 0,void 0,void 0,function(){var A,r,n,a,i,s,u,c,l,p,m,h,w,v,T,C,U,R,F,D,J,P,J,K,S,Ae,E,I,Q,M,X,$,ae,te,le,Te,ye,_,G,z;return ir(this,function(re){switch(re.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(A=e.ownerDocument,!A)throw new Error("Element is not attached to a Document");if(r=A.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(K=t.allowTaint)!==null&&K!==void 0?K:!1,imageTimeout:(S=t.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:t.proxy,useCORS:(Ae=t.useCORS)!==null&&Ae!==void 0?Ae:!1},a=uh({logging:(E=t.logging)!==null&&E!==void 0?E:!0,cache:t.cache},n),i={windowWidth:(I=t.windowWidth)!==null&&I!==void 0?I:r.innerWidth,windowHeight:(Q=t.windowHeight)!==null&&Q!==void 0?Q:r.innerHeight,scrollX:(M=t.scrollX)!==null&&M!==void 0?M:r.pageXOffset,scrollY:(X=t.scrollY)!==null&&X!==void 0?X:r.pageYOffset},s=new la(i.scrollX,i.scrollY,i.windowWidth,i.windowHeight),u=new ZN(a,s),c=($=t.foreignObjectRendering)!==null&&$!==void 0?$:!1,l={allowTaint:(ae=t.allowTaint)!==null&&ae!==void 0?ae:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},u.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),p=new Lp(u,e,l),m=p.clonedReferenceElement,m?[4,p.toIFrame(A,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=re.sent(),w=Ed(m)||tN(m)?Nx(m.ownerDocument):E0(u,m),v=w.width,T=w.height,C=w.left,U=w.top,R=eU(u,m,t.backgroundColor),F={canvas:t.canvas,backgroundColor:R,scale:(le=(te=t.scale)!==null&&te!==void 0?te:r.devicePixelRatio)!==null&&le!==void 0?le:1,x:((Te=t.x)!==null&&Te!==void 0?Te:0)+C,y:((ye=t.y)!==null&&ye!==void 0?ye:0)+U,width:(_=t.width)!==null&&_!==void 0?_:Math.ceil(v),height:(G=t.height)!==null&&G!==void 0?G:Math.ceil(T)},c?(u.logger.debug("Document cloned, using foreign object rendering"),J=new XN(u,F),[4,J.render(m)]):[3,3];case 2:return D=re.sent(),[3,5];case 3:return u.logger.debug("Document cloned, element located at "+C+","+U+" with size "+v+"x"+T+" using computed rendering"),u.logger.debug("Starting DOM parsing"),P=bB(u,m),R===P.styles.backgroundColor&&(P.styles.backgroundColor=ca.TRANSPARENT),u.logger.debug("Starting renderer for element at "+F.x+","+F.y+" with size "+F.width+"x"+F.height),J=new qN(u,F),[4,J.render(P)];case 4:D=re.sent(),re.label=5;case 5:return(!((z=t.removeContainer)!==null&&z!==void 0)||z)&&(Lp.destroy(h)||u.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),u.logger.debug("Finished rendering"),[2,D]}})})},eU=function(e,t,A){var r=t.ownerDocument,n=r.documentElement?vu(e,getComputedStyle(r.documentElement).backgroundColor):ca.TRANSPARENT,a=r.body?vu(e,getComputedStyle(r.body).backgroundColor):ca.TRANSPARENT,i=typeof A=="string"?vu(e,A):A===null?ca.TRANSPARENT:4294967295;return t===r.documentElement?ja(n)?ja(a)?i:a:n:i};const tU=Object.freeze(Object.defineProperty({__proto__:null,default:wd},Symbol.toStringTag,{value:"Module"}));function UB(e){let t=document.getElementById("measure-container");t||(t=document.createElement("div"),t.id="measure-container",t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto",t.style.width="210mm",t.style.overflow="visible",t.style.pointerEvents="none",document.body.appendChild(t)),t.innerHTML=e;const A=t.offsetHeight;return t.innerHTML="",A}const AU=210,rU=297,nU=780,aU=1.5;function iU(e){const t=new DOMParser().parseFromString(e,"text/html");return t.querySelectorAll("table").forEach(A=>{const r=A,n=!!r.querySelector('td[style*="border"], th[style*="border"]');r.querySelectorAll("td, th").forEach(a=>{const i=a;i.style.paddingBottom="6px"}),!n&&(r.querySelectorAll("td, th").forEach(a=>{const i=a;i.style.border="1px solid #000",i.style.padding="0px 8px 6px"}),r.style.borderCollapse="collapse",r.style.width="fit-content")}),t.body.innerHTML}function sU(e){return e.replace(/<br\s*\/?>/gi,"</p><p>").replace(/<h3>/gi,"<p>").replace(/<\/h3>/gi,"</p>")}function uU(e){const t=e.trim();return t.startsWith("<div")&&t.endsWith("</div>")?e:`<div>${e}</div>`}function oU(e){const t=new DOMParser,A=uU(sU(e)),n=t.parseFromString(A,"text/html").body.firstElementChild,a=["p","figure","ol","ul","div","table","h1","h2","h3","h4","h5","h6"],i=Array.from(n.children).filter(p=>{const m=p.tagName.toLowerCase();return a.includes(m)}),s=[];let u=0,c="",l=0;for(let p=0;p<i.length;p++){const m=i[p],h=m.outerHTML.trim();if(m.tagName.toLowerCase()==="div"&&m.classList.contains("page-break")){c&&(s.push({id:u++,html:c}),c="",l=0);continue}const v=UB(h);l+v<nU?(c+=h,l+=v):(c&&s.push({id:u++,html:c}),c=h,l=v)}return c&&s.push({id:u++,html:c}),s}const cU=({reportText:e,onCompleted:t})=>{const[{doctorId:A,centerSetting:r},{externalDoctors:n}]=fa(R=>[R.doctorData,R.data]),{GetDoctorByIdAsync:a}=Rp(),{states:{havePrintHeader:i,patient:s,reception:u}}=Ii(),c=ke.useRef(),[l,p]=ke.useState(null),[m,h]=ke.useState(!0),w=async()=>{try{if(!A)return;const{data:R}=await a(A);if(!R)return;p(R)}catch(R){console.log("ERROR_IN_FETCHING_DOCTOR_INFO",R)}},v=()=>{var D;if(!s||!n||!u||!r)return null;const R=((D=n.find(P=>P.id===u.receptionInfo.externalDoctorId))==null?void 0:D.title.split("-")[0])||"",F=r.paraClinicReport.headerFile;return oe.jsx(ln,{direction:"row",alignItems:"center",className:"absolute top-0",sx:{pageBreakAfter:"avoid"},children:oe.jsxs("div",{className:"w-[210mm]",children:[i&&oe.jsx("img",{src:F?"data:image/png;base64,"+F:"/Picture1.jpg",alt:"header",className:"w-full h-[214px]"}),oe.jsxs("div",{className:"w-max space-y-2 absolute left-12 top-12",children:[oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"نام بیمار :"}),oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:`${s.firstName} ${s.lastName}`})]}),oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"پزشک معالج :"}),oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:R})]}),oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"کد ملی :"}),oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:us(s.nationalCode)})]}),oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"تاریخ :"}),u.receptionInfo.receptionDate?oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:s0(u.receptionInfo.receptionDate)}):oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"..................."})]}),oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"کد بیمار :"}),s.customId?oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:us(s.customId||"12")}):oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"..................."})]}),oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"سن :"}),s.birthDate?oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:us(new Date().getFullYear()-new Date(s.birthDate).getFullYear())}):oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[13px]",children:"..................."})]})]})]})})},T=()=>{if(!r)return null;const R=r.paraClinicReport.footerFile;return oe.jsx(ln,{className:"absolute bottom-0 w-full",sx:{pageBreakAfter:"avoid"},children:oe.jsx("img",{src:R?"data:image/png;base64,"+R:"/Picture2.jpg",alt:"header",className:"w-full h-[93px]"})})},C=()=>{if(!l&&i)return;const R=[];let F="";l!=null&&l.signature&&(F=`data:image/png;base64,${l.signature.replace(/^data:image\/png;base64,/,"")}`);const D=e+(i&&F?`<div
      style="display: flex; justify-content: center; margin-right:200px;"
      >
      <img style="width: 170px; height: 80px;"
      alt="doctorSignature"
      src=${F}
      />
      </div>`:""),P=oU(D);for(let J=0;J<P.length;J++){const K=oe.jsxs("div",{className:"pdf-page relative w-full h-[297mm] pt-[230px]",children:[oe.jsx(v,{}),oe.jsx("div",{className:"w-full px-10 text-justify",children:oe.jsx("div",{dangerouslySetInnerHTML:{__html:iU(P[J].html)}},P[J].id)}),i&&oe.jsx(T,{})]},P[J].id);R.push(K)}return R},U=async()=>{try{const R=c.current;if(!R)return;h(!0);const F=R.querySelectorAll(".pdf-page"),D=new at({orientation:"portrait",unit:"mm",format:"a4"});for(let P=0;P<F.length;P++){const J=F[P],S=(await wd(J,{scale:aU,useCORS:!0,backgroundColor:"#ffffff"})).toDataURL("image/jpeg",.8);P>0&&D.addPage(),D.addImage(S,"JPEG",0,0,AU,rU)}D.save("report.pdf")}catch(R){console.log("ERROR_IN_GENERATING_PDF",R)}finally{h(!1),t()}};return ke.useEffect(()=>{!l&&i?w():U()},[l]),oe.jsxs(oe.Fragment,{children:[m&&oe.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black/60 text-white z-[9999]",children:"درحال آماده سازی PDF ..."}),oe.jsx("div",{ref:c,style:{position:"fixed",top:"-9999px",left:"-9999px",width:"210mm",direction:"rtl"},children:C()})]})},lU=148,fU=210,hU=730,dU=1.5;function gU(e){const t=new DOMParser().parseFromString(e,"text/html");return t.querySelectorAll("table").forEach(A=>{const r=A,n=!!r.querySelector('td[style*="border"], th[style*="border"]');r.querySelectorAll("td, th").forEach(a=>{const i=a;i.style.paddingBottom="6px"}),!n&&(r.querySelectorAll("td, th").forEach(a=>{const i=a;i.style.border="1px solid #000",i.style.padding="0px 8px 6px"}),r.style.borderCollapse="collapse",r.style.width="fit-content")}),t.body.innerHTML}function pU(e){return e.replace(/<br\s*\/?>/gi,"</p><p>").replace(/<h3>/gi,"<p>").replace(/<\/h3>/gi,"</p>")}function bU(e){const t=e.trim();return t.startsWith("<div")&&t.endsWith("</div>")?e:`<div>${e}</div>`}function mU(e){const t=new DOMParser,A=bU(pU(e)),n=t.parseFromString(A,"text/html").body.firstElementChild,a=["p","figure","ol","ul","div","table","h1","h2","h3","h4","h5","h6"],i=Array.from(n.children).filter(p=>a.includes(p.tagName.toLowerCase())),s=[];let u=0,c="",l=0;for(const p of i){const m=p.outerHTML.trim();if(p.tagName.toLowerCase()==="div"&&p.classList.contains("page-break")){c&&s.push({id:u++,html:c}),c="",l=0;continue}const w=UB(m);l+w<hU?(c+=m,l+=w):(c&&s.push({id:u++,html:c}),c=m,l=w)}return c&&s.push({id:u++,html:c}),s}const BU=({reportText:e,onCompleted:t})=>{const[{doctorId:A,centerSetting:r},{externalDoctors:n}]=fa(R=>[R.doctorData,R.data]),{GetDoctorByIdAsync:a}=Rp(),{states:{havePrintHeader:i,patient:s,reception:u}}=Ii(),c=ke.useRef(),[l,p]=ke.useState(null),[m,h]=ke.useState(!0),w=async()=>{try{if(!A)return;const{data:R}=await a(A);if(!R)return;p(R)}catch(R){console.log("ERROR_IN_FETCHING_DOCTOR_INFO",R)}},v=()=>{var D;if(!s||!n||!u||!r)return null;const R=((D=n.find(P=>P.id===u.receptionInfo.externalDoctorId))==null?void 0:D.title.split("-")[0])||"",F=r.paraClinicReport.headerFile;return oe.jsx(ln,{direction:"row",alignItems:"center",className:"absolute top-0 w-full",sx:{pageBreakAfter:"avoid"},children:oe.jsxs("div",{className:"relative w-full",children:[i&&oe.jsx("img",{src:F?"data:image/png;base64,"+F:"/Picture1.jpg",alt:"header",className:"w-full h-[214px]"}),oe.jsx("div",{className:"w-max space-y-1 absolute left-10 top-14",children:[["نام بیمار :",`${s.firstName} ${s.lastName}`],["پزشک معالج :",R],["کد ملی :",us(s.nationalCode)],["تاریخ :",u.receptionInfo.receptionDate?s0(u.receptionInfo.receptionDate):"..................."],["کد بیمار :",s.customId?us(s.customId):"..................."],["سن :",s.birthDate?us(new Date().getFullYear()-new Date(s.birthDate).getFullYear()):"..................."]].map(([P,J],K)=>oe.jsxs("div",{className:"flex items-center gap-1",children:[oe.jsx("span",{style:{fontFamily:"B Nazanin"},className:"text-[11px]",children:P}),oe.jsx("p",{style:{fontFamily:"B Nazanin"},className:"text-[11px]",children:J})]},K))})]})})},T=()=>{if(!r)return null;const R=r.paraClinicReport.footerFile;return oe.jsx(ln,{className:"absolute bottom-0 !w-full",sx:{pageBreakAfter:"avoid"},children:oe.jsx("img",{src:R?"data:image/png;base64,"+R:"/Picture2.jpg",alt:"header",className:"w-full h-[93px]"})})},C=()=>{if(!l&&i)return null;let R="";l!=null&&l.signature&&(R=`data:image/png;base64,${l.signature.replace(/^data:image\/png;base64,/,"")}`);const F=e+(i&&R?`<div style="display:flex;justify-content:center;margin-top:12px;">
            <img src="${R}" style="width:120px;height:55px;" />
           </div>`:"");return mU(F).map(P=>oe.jsxs("div",{className:"pdf-page relative w-full h-[210mm] pt-[230px]",children:[oe.jsx(v,{}),oe.jsx("div",{className:"w-full px-10 text-justify",children:oe.jsx("div",{dangerouslySetInnerHTML:{__html:gU(P.html)}})}),i&&oe.jsx(T,{})]},P.id))},U=async()=>{try{const R=c.current;if(!R)return;h(!0);const F=R.querySelectorAll(".pdf-page"),D=new at({orientation:"portrait",unit:"mm",format:"a5"});for(let P=0;P<F.length;P++){const J=F[P],S=(await wd(J,{scale:dU,useCORS:!0,backgroundColor:"#ffffff"})).toDataURL("image/jpeg",.8);P>0&&D.addPage(),D.addImage(S,"JPEG",0,0,lU,fU)}D.save("report.pdf")}catch(R){console.log("ERROR_IN_GENERATING_PDF",R)}finally{h(!1),t()}};return ke.useEffect(()=>{!l&&i?w():U()},[l]),oe.jsxs(oe.Fragment,{children:[m&&oe.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black/60 text-white z-[9999]",children:"درحال آماده سازی PDF ..."}),oe.jsx("div",{ref:c,style:{position:"fixed",top:"-9999px",left:"-9999px",width:"560px",height:"794px",direction:"rtl"},children:C()})]})},EU=({paperSize:e,reportText:t,onCompleted:A})=>{switch(console.log({reportText:t}),e){case Fu.A4:return oe.jsx(cU,{reportText:t,onCompleted:A});case Fu.A5:return oe.jsx(BU,{reportText:t,onCompleted:A});default:return null}},wU=()=>{var et;const{getSelectListAsync:e}=new kp,{updateReceptionUsersAsync:t}=i0(),A=Dp(),{states:{reportType:r,editor:n,templates:a,reception:i,report:s,templateSelectList:u,loading:c,havePrintHeader:l,printing:p,isEdit:m,templateId:h},handlers:{setReportType:w,setTemplateId:v,setHavePrintHeader:T,setPrinting:C,setIsEdit:U},request:{fetchTemplate:R,fectchTemplateSelectList:F,findReport:D}}=Ii(),{receptionId:P,doneServiceId:J}=Mu(),{addParaClinicReport:K,editParaClinicReport:S}=u0(),{getParaClinicReportTemplateText:Ae}=o0(),[{clinicId:E,officeId:I},{doctors:Q,externalDoctors:M}]=fa(Oe=>[Oe.doctorData,Oe.data]),X=Q3(),$=(M==null?void 0:M.map(Oe=>({label:Oe.title,value:Oe.id.toString()})))||[],[ae,te]=ke.useState(!1),[le,Te]=ke.useState(!1),[ye,_]=ke.useState(!1),[G,z]=ke.useState(!1),[re,se]=ke.useState(""),[fe,ge]=ke.useState(""),[Ee,Ce]=ke.useState(),[_e,qe]=ke.useState(null),[Ke,Je]=ke.useState(null),q=async()=>{try{te(!0);const{data:Oe}=await e();Oe&&Ce(Oe)}finally{te(!1)}},Me=async Oe=>{try{if(te(!0),!i)return;const{message:Ge}=await t({receptionId:i.receptionInfo.id,externalDoctorId:Oe??null,doctorId:i.receptionInfo.doctorId,assistantId:i.receptionInfo.assistantId??null});Er.success(Ge),se((Oe||"").toString())}finally{te(!1)}},it=()=>{Te(!0)},$e=()=>{const Oe=n.current.getData().toString();return!Oe||Oe.length<100?(Er.error("طول متن گزارش نمی تواند کمتر از 100 حرف باشد"),!1):r?!0:(Er.error("لطفا نوع گزارش را انتخاب نمایید"),!1)},Be=ke.useRef(void 0),Pe=ke.useRef(!1),He=ke.useRef(void 0);ke.useEffect(()=>{Pe.current=m,Be.current=s,He.current=J},[m,s,J]);const Ve=async()=>{try{if(te(!0),!$e())return;const Oe=n.current.getData(),Ge=Oe.startsWith("div")?Oe:`${Oe}`,jt=Xf.inlineContent(Ge,Lf);if(!Pe||!Be||!He)return;const St=Pe.current,vt=Be.current,yt=He.current;if(St&&vt){const{message:Wt}=await S({id:vt.id,reportType:+r,text:jt});Er.success(Wt)}else{const{message:Wt}=await K({clinicId:E,officeId:I,doneServiceId:+yt,reportType:+r,templateId:h,text:jt});Er.success(Wt||"اطلاعات با موفقیت ثبت شد")}}finally{te(!1)}},rt=async Oe=>{try{if(!i)return;te(!0);const{message:Ge}=await t({receptionId:i.receptionInfo.id,doctorId:+Oe,assistantId:i.receptionInfo.assistantId??null,externalDoctorId:i.receptionInfo.externalDoctorId??null});Er.success(Ge),ge(Oe)}finally{te(!1)}},Ot=async()=>{if(!_e)return;const{message:Oe}=await Ae(+_e.value);Oe&&n.current.setData(Oe)},Et=async Oe=>{Ke&&clearTimeout(Ke);const Ge=setTimeout(()=>F({query:Oe}),1e3);Je(Ge)};ke.useEffect(()=>{q(),!Q&&X(l1().getDoctorsAction({})),!M&&X(l1().getExternalDoctorsAction({}))},[]),ke.useEffect(()=>{!_e||(s==null?void 0:s.templateName)===_e.label||(v(+_e.value),A({content:"آیا از تغییر متن اطمینان دارید؟"}).then(Ot))},[_e]),ke.useEffect(()=>{var Ge;if(!n.current||!s)return;n.current.setData(s.text),U(!0);const Oe=((Ge=a==null?void 0:a.filter(jt=>jt.title===s.templateName))==null?void 0:Ge.map(jt=>({label:jt.title,value:jt.id.toString()}))[0])??null;qe(Oe)},[s,n.current]),ke.useEffect(()=>{i&&(ge(i.receptionInfo.doctorId.toString()),se((i.receptionInfo.externalDoctorId??0).toString()))},[i]);const ut=(Ee==null?void 0:Ee.map(Oe=>({label:Oe.name,value:Oe.id})))||[],Nt=ke.useMemo(()=>Q?Q.map(Oe=>({value:Oe.id.toString(),label:`${Oe.customId} - ${Oe.firstName} ${Oe.lastName}`})):[],[Q]),Ft=ke.useMemo(()=>{if(!re)return null;const Oe=$.find(Ge=>Ge.value===re);return Oe||null},[re]);return oe.jsxs(ln,{className:"h-full",children:[ae&&oe.jsx(Hp,{}),oe.jsxs(ln,{direction:"row",justifyContent:"space-around",alignItems:"center",spacing:1,children:[oe.jsx(Iu,{label:"نام پزشک",items:Nt,value:fe,onchange:Oe=>rt(Oe)}),oe.jsx(f1,{label:"پزشک معالج",selectOption:$,value:Ft,onChange:Oe=>Me(Oe?+Oe.value:null),fullWidth:!0}),oe.jsx(Iu,{items:ut,label:"نوع گزارش",value:r,onchange:Oe=>w(Oe),fullWidth:!0,loading:ae}),oe.jsxs(Vr,{className:"flex items-center gap-1 !w-full ",children:[oe.jsx(f1,{size:"small",fullWidth:!0,value:_e,selectOption:u||[],onChange:Oe=>qe(Oe),label:"انتخاب قالب",onSearch:Oe=>Et(Oe),loading:c}),oe.jsx(O3,{className:"cursor-pointer",color:"primary",onClick:()=>z(!0)})]}),oe.jsx(ua,{className:"!bg-orange-400 !ml-2 !py-0",onClick:it,children:oe.jsx(D3,{})})]}),oe.jsx(qp,{children:oe.jsx(Mp,{editorRef:n,onChange:()=>_(Oe=>!Oe),onSave:Ve})}),oe.jsx(Vr,{className:"flex p-1 px-2 !mt-auto border-t-2 border-slate-400 ",children:oe.jsx(If,{label:"چاپ با سربرگ",control:oe.jsx(E3,{className:"!py-0 !m-0",checked:l,onChange:(Oe,Ge)=>T(Ge)}),className:"!mr-auto",classes:{label:"!text-[0.8rem]"}})}),G&&oe.jsx(Z3,{onClose:()=>z(!1)}),le&&oe.jsx(jp,{onClose:()=>{Te(!1),R({})},text:(et=n.current)==null?void 0:et.getData()}),p&&oe.jsx(EU,{paperSize:p,reportText:n.current.getData(),onCompleted:()=>C(null)})]})},CU=({onClose:e,report:t,patientName:A})=>{const{GetReceptionByReceptionIdAsync:r}=i0(),[n,a]=ke.useState(!1),[i,s]=ke.useState("ثبت نشده"),u=ke.useRef(),c=async()=>{try{a(!0);const{data:l}=await r({receptionId:t.receptionId});l!=null&&l.receptionInfo.reagentName&&s(l.receptionInfo.reagentName)}finally{a(!1)}};return ke.useEffect(()=>{t&&c()},[t]),oe.jsx(Op,{onClose:e,title:A,maxWidth:"md",children:oe.jsxs(R3,{className:"relative m-1 !p-2 h-[96%]",children:[n&&oe.jsx(Hp,{}),oe.jsxs(ln,{spacing:1,className:"!h-full",children:[oe.jsxs(ln,{direction:"row",alignItems:"center",spacing:1,children:[oe.jsx(So,{label:"عنوان",value:t.templateName}),oe.jsx(So,{label:"نوع گزارش",value:t.reportTypeName}),oe.jsx(So,{label:"نام معرف",value:i}),oe.jsx(So,{label:"تاریخ ثبت",value:s0(t.createDate)})]}),oe.jsx(qp,{children:oe.jsx(Mp,{editorRef:u,value:t==null?void 0:t.text})})]})]})})},vU=()=>{const{getParaClinicReport:e}=u0(),{clinicId:t,officeId:A,doctorId:r}=fa(h=>h.doctorData),{states:{patient:n}}=Ii(),[a,i]=ke.useState(!1),[s,u]=ke.useState([]),[c,l]=ke.useState(),p=async()=>{try{i(!0);const{data:h}=await e({ClinicId:t,OfficeId:A,PatientId:n==null?void 0:n.id,DoctorId:r});h&&u(h.list)}finally{i(!1)}};ke.useEffect(()=>{n&&p()},[n]);const m=[{title:"تاریخ ثبت",key:"createDate",dataIndex:"createDate",render:h=>s0(h)},{title:"قالب گزارش",key:"templateName",dataIndex:"templateName"}];return oe.jsxs(oe.Fragment,{children:[oe.jsx(Uh,{columns:m,data:s,rowKey:"id",loading:a,boxProps:{sx:{minHeight:150,maxHeight:150}},onClick:h=>l(h)}),c&&oe.jsx(CU,{onClose:()=>l(void 0),report:c,patientName:`${n==null?void 0:n.firstName} ${n==null?void 0:n.lastName}`})]})},TU=({services:e,onRefresh:t,loading:A})=>{const r=[{title:oe.jsxs("div",{className:"flex items-center justify-center !w-full",children:[oe.jsx("span",{className:"!mr-auto",children:"خدمات پذیرش شده"}),oe.jsx(w3,{className:"!mr-auto !ml-2 !my-0 !p-0",onClick:t,disabled:A,children:oe.jsx(P3,{className:A?"animate-spin !text-white":"!text-white"})})]}),key:"serviceName",dataIndex:"serviceName",render:(n,a)=>oe.jsx(Qp,{to:`/para-clinic-report/${a.receptionId}/${a.id}`,className:"text-black block w-full",children:oe.jsx(H3,{title:n??"",maxLengthValue:50})})}];return oe.jsx(Uh,{columns:r,data:e,rowKey:"id",boxProps:{sx:{minHeight:150,maxHeight:150}},loading:A})},yU=()=>{const e=_h(),{clinicId:t,officeId:A}=fa(Q=>Q.doctorData),{addParaClinicReport:r,sendParaClinicReportSms:n,removeFromWaitingForReport:a,editParaClinicReport:i}=u0(),{updateReceptionIsVisitedStatus:s}=i0(),{receptionId:u,doneServiceId:c}=Mu(),{states:{reportType:l,editor:p,report:m,reception:h,templateId:w,havePrintHeader:v,isEdit:T},handlers:{setPrinting:C}}=Ii(),[U,R]=ke.useState(!1),[F,D]=ke.useState(null),P=!!F,J=Q=>{D(Q.currentTarget)},K=()=>{D(null)},S=async()=>{try{R(!0),h!=null&&h.receptionInfo.isVisited||await s({receptionIds:[+u]}),e(-1)}finally{R(!1)}},Ae=()=>{const Q=p.current.getData().toString();return!Q||Q.length<100?(Er.error("طول متن گزارش نمی تواند کمتر از 100 حرف باشد"),!1):l?!0:(Er.error("لطفا نوع گزارش را انتخاب نمایید"),!1)},E=async()=>{try{if(R(!0),!Ae())return;const Q=p.current.getData(),M=Q.startsWith("div")?Q:`<div dir="rtl" lang="fa">${Q}</div>`,X=Xf.inlineContent(M,Lf);if(T&&m){const{message:$}=await i({id:m.id,reportType:+l,text:X});Er.success($)}else{const{message:$}=await r({clinicId:t,officeId:A,doneServiceId:+c,reportType:+l,templateId:w,text:X});Er.success($)}e(-1)}finally{R(!1)}},I=async()=>{try{if(R(!0),!Ae())return;const Q=p.current.getData(),M=Q.startsWith("div")?Q:`<div dir="rtl" lang="fa">${Q}</div>`,X=Xf.inlineContent(M,Lf);let $;if(T&&m)await i({id:m.id,reportType:+l,text:X,templateId:w}),$=m.id;else{const{data:te}=await r({clinicId:t,officeId:A,doneServiceId:+c,reportType:+l,templateId:w,text:X});if(!te)return;$=te.reportId}const{message:ae}=await n($);await a({reportIds:[$]}),S(),Er.success(ae)}finally{R(!1)}};return oe.jsx(oe.Fragment,{children:oe.jsxs(ln,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,children:[oe.jsx(ua,{color:"info",className:"w-[150px]",startIcon:oe.jsx(hu.Save,{}),onClick:E,loading:U,disabled:U,children:"ذخیره پیش نویس"}),oe.jsx(ua,{onClick:J,className:"w-[150px] !bg-green-700 flex items-center gap-1",startIcon:oe.jsx(hu.Print,{}),loading:U,disabled:U,children:"چاپ"}),oe.jsxs(C3,{open:P,anchorEl:F,onClose:K,anchorOrigin:{vertical:"bottom",horizontal:"left"},PaperProps:{sx:{minWidth:100}},children:[oe.jsx(i1,{onClick:()=>{C(Fu.A4),K()},className:"!text-lg !justify-center",children:"A4"}),oe.jsx(i1,{onClick:()=>{C(Fu.A5),K()},className:"!text-lg !justify-center",children:"A5"})]}),oe.jsx(ua,{className:"w-[150px]",startIcon:oe.jsx(M3,{}),onClick:I,loading:U,disabled:U,children:"ذخیره و خروج"}),oe.jsx(Qp,{to:"/waiting-for-report",replace:!0,children:oe.jsx(ua,{color:"error",className:"w-[150px]",startIcon:oe.jsx(k3,{}),children:"خروج"})})]})})},xU=()=>{const e=y3(),t=_h(),{centerSetting:A}=fa(T=>T.doctorData),{states:{patient:r,reception:n,loading:a,receptionServicesList:i},request:{fetchReception:s}}=Ii(),{receptionId:u}=Mu(),c=v3("(max-width:959px)"),l=!!(n!=null&&n.receptionInfo.taminTrackingCode)||!!(n!=null&&n.receptionInfo.salamatTrackingCode),p={state:{receptionId:+u,patientId:r==null?void 0:r.id,nationalCode:r==null?void 0:r.nationalCode,callBackUrl:e.pathname,salamatRefCode:n==null?void 0:n.receptionInfo.salamatReferenceCode,isEdit:l}},[m,h]=ke.useState(!1),w=()=>A?A.pacsServerAddress?"هدایت به سرور پکس":"ابتدا آدرس سرور پکس را در تنظیمات ثبت کنید":"تنظیمات مرکز یافت نشد",v=!r||!A||!A.pacsServerAddress;return oe.jsxs(Vi,{container:!0,spacing:1,sx:{top:c?"70px":"0"},className:" bg-white",children:[oe.jsx(Vi,{item:!0,xs:12,children:oe.jsx(J3,{})}),oe.jsx(Vi,{item:!0,xs:2.5,className:"!mt-6 ",children:oe.jsxs(ln,{spacing:1,className:"h-[75vh] overflow-y-auto",children:[oe.jsx(Vr,{className:"px-6",children:oe.jsx(ua,{fullWidth:!0,color:"info",startIcon:oe.jsx(hu.HealthInfoIcon,{}),disabled:!r,onClick:()=>h(!0),children:"شرح حال بیمار"})}),oe.jsx(Vr,{className:"px-6",children:oe.jsx(ua,{fullWidth:!0,color:l?"warning":"success",startIcon:oe.jsx(W3,{}),disabled:!r,onClick:()=>t("/"+K3.doctors.electronicPrescription,p),children:l?"ویرایش نسخه الکترونیک":" ثبت نسخه الکترونیک"})}),v?oe.jsx(Ff,{title:w(),children:oe.jsx(Vr,{className:"px-6",children:oe.jsx(ua,{fullWidth:!0,color:v?"error":"info",startIcon:oe.jsx(hu.ArrowForward,{}),disabled:v,children:"هدایت به سرور پکس"})})}):oe.jsx(Vr,{className:"px-6",children:oe.jsx("a",{href:`${A==null?void 0:A.pacsServerAddress}?ID=${u}`,target:"_blank",rel:"noreferrer",children:oe.jsx(ua,{fullWidth:!0,color:v?"error":"info",startIcon:oe.jsx(hu.ArrowForward,{}),disabled:v,children:"هدایت به سرور پکس"})})}),oe.jsx(Vr,{className:"",children:oe.jsx(TU,{services:i??[],onRefresh:s,loading:a})}),oe.jsx(T3,{children:"سوابق گزارشات"}),oe.jsx(Vr,{className:"",children:oe.jsx(vU,{})})]})}),oe.jsx(Vi,{item:!0,xs:8,className:"!h-[85vh] !overflow-y-auto",children:oe.jsx(wU,{})}),oe.jsx(Vi,{item:!0,xs:1.5,className:"  bg-gray-100",children:oe.jsx(Y3,{patient:r})}),oe.jsx(Vi,{item:!0,xs:12,className:"!h-[50px] bg-gray-100",children:oe.jsx(yU,{})}),m&&r&&u&&oe.jsx(q3,{children:oe.jsx(X3,{patient:r,receptionId:+u,reception:n,onClose:()=>h(!1)})})]})},rS=()=>oe.jsx(z3,{children:oe.jsx(xU,{})});export{rS as default};
