1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-CajyRqpK.js","assets/index-ZDNodjBE.js","assets/StoreData-BJWiXpC8.js","assets/Patience-BC-gKOfm.js"])))=>i.map(i=>d[i]); 2var Ah=Object.defineProperty;var Lh=(n,t,e)=>t in n?Ah(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var Ct=(n,t,e)=>Lh(n,typeof t!="symbol"?t+"":t,e);import{s as Nh,t as Nt,a as kh,c as Sh,b as Ph,_ as Ch,p as Xs,d as Ih,C as Eh,f as Oh,e as Fh}from"./StoreData-BJWiXpC8.js";import{_ as Zn,a as El,o as Ge,c as ct,b as Re,r as io,w as Mh,v as Bh,d as je,$ as Du,t as nn,n as $i,e as zi,f as Dn,m as Ol,g as st,h as gr,i as us,j as jh,k as vr,l as lt,p as ao,q as qu,s as qn,x as Rh,y as Uu,z as zu,A as vt,B as Th,F as Br,C as bi,D as Un,E as Dt,G as Qr,H as Vu,I as In,J as as,K as Ca,L as Dh,M as Hu,N as Fl,O as Ml,S as fs,X as qh,P as Ir,Q as Uh,R as zh,T as Vh,U as Hh,u as Wh,V as hs,W as $h,Y as Gh,Z as Wu,a0 as Yh,a1 as $u,a2 as Jh,a3 as Xh,a4 as Kh,a5 as Zh,a6 as Qh,a7 as Ks,a8 as e1,a9 as Vo,aa as Zs,ab as t1,ac as n1,ad as Gu,ae as r1,af as va,ag as i1}from"./index-ZDNodjBE.js";import{g as a1,P as Bl}from"./Patience-BC-gKOfm.js";const o1={class:"menu-content-list"},s1={class:"gpf-panel__header fr-p-1w"},l1={class:"gpf-panel__title"},c1={class:"menu-content"},u1={name:"MenuLateralWrapper"},f1=Object.assign(u1,{props:Ol({side:{type:String,default:"left"},visibility:Boolean,id:{type:String,default:""},title:{type:String,default:""},icon:{type:String,default:""}},{modelValue:!1,modelModifiers:{}}),emits:["update:modelValue"],setup(n,{expose:t}){const e=n,r=El(n,"modelValue",!1),a=st();function o(){r.value=!1}function f(){const l=document.querySelector(".gp-label-div button.GPpanelClose");l&&l.click();const c=document.querySelector(".gp-styling-div button.GPpanelClose");c&&c.click(),r.value=!0}return t({closeMenu:o,openMenu:f}),(l,c)=>{const h=Du,m=$i;return n.visibility?(Ge(),ct("div",{key:0,class:zi(["menu-toggle-wrap",`${r.value&&"is_expanded"} ${e.side}`])},[Re("div",{ref_key:"menuTabs",ref:a,class:"menu-logo-list"},[io(l.$slots,"navButtons",{},void 0,!0)],512),Mh(Re("div",o1,[Re("div",s1,[je(h,{name:n.icon,scale:"0.833",class:"gpf-panel__icon fr-icon--sm fr-mr-1w"},null,8,["name"]),Re("span",l1,nn(n.title),1),je(m,{id:e.id,size:"sm","icon-only":"",icon:"fr-icon-close-line",tertiary:"","no-outline":"",class:"fr-ml-auto",onClick:o},null,8,["id"])]),Re("div",c1,[io(l.$slots,"content",{},void 0,!0)])],512),[[Bh,r.value]])],2)):Dn("",!0)}}}),h1=Zn(f1,[["__scopeId","data-v-42e4a4b6"]]),d1={name:"MenuLateralButton"},p1=Object.assign(d1,{props:{icon:{type:[String,Object],default:""},id:{type:String,default:""},active:Boolean,title:{type:String,default:""},side:{type:String,default:""},visibility:Boolean,secondary:Boolean},emits:["tabClicked"],setup(n,{expose:t,emit:e}){const r=gr(),a=us(),o=n,f=o.icon,l=e,c=()=>{o.side==="left"&&x(),o.side==="right"&&v(),l("tabClicked",o.id)},h=jh();function m(k){if(k.element)if(k.CLASSNAME==="GetFeatureInfo"){const N=k.element.querySelector(".GPpanelClose");N&&N.click()}else{let N=[...k.element.children].filter(H=>{if(H.className.includes("GPshowOpen"))return H});N[0].getAttribute("aria-pressed")==="true"&&N[0].click()}}function v(){r.getMap().getControls().getArray().forEach(k=>{h.right.includes(k.CLASSNAME)&&m(k)})}function x(){r.getMap().getControls().getArray().forEach(k=>{h.left.includes(k.CLASSNAME)&&m(k)})}function p(){console.log("click on button"+o.id),I.value.children[0].click()}const I=st(null),E=st(o.id);return t({clickButton:p,button:I,id:E}),vr(()=>{o.id==="MenuCatalogue"&&a.setmenuCatalogueButton(I.value)}),(k,N)=>{const H=$i;return Ge(),ct("div",{ref_key:"button",ref:I},[je(H,{id:lt(E),secondary:n.secondary,"aria-label":n.title,class:zi(`${n.active?"active":""} navBarIcon ${n.visibility?"":"invisibleNavButton"} navButton`),icon:lt(f),"icon-only":!0,onClick:c},null,8,["id","secondary","aria-label","class","icon"])],512)}}}),m1={class:"control-list-element"},g1={class:"control-list-element-img"},v1={class:"control-list-element-toggle"},b1={name:"ControlListElement"},y1=Object.assign(b1,{props:Ol({controlListElementOptions:{type:Object,default:()=>({})},selectedControls:{type:Array,default:()=>[]}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const t=n,e=El(n,"modelValue"),r=st(),a=vt(()=>
2typeof t.controlListElementOptions.icon=="string"&&t.controlListElementOptions.icon.startsWith("fr-icon-"));return ao(r,o=>{o===!0&&!e.value.includes(t.controlListElementOptions.name)&&(e.value=[...e.value,t.controlListElementOptions.name]),o===!1&&(e.value=e.value.filter(f=>f!==t.controlListElementOptions.name))}),vr(()=>{}),qu(()=>{}),(o,f)=>{const l=zu;return Ge(),ct("div",m1,[Re("div",g1,[Re("div",null,[lt(a)?(Ge(),ct("span",{key:1,class:zi(["fr-icon--sm",n.controlListElementOptions.icon]),"aria-hidden":"true"},null,2)):(Ge(),qn(lt(Du),{key:0,scale:"0.833",name:n.controlListElementOptions.icon},null,8,["name"]))])]),Re("div",v1,[je(l,Rh({modelValue:lt(r),"onUpdate:modelValue":f[0]||(f[0]=c=>Uu(r)?r.value=c:null),disabled:n.controlListElementOptions.disabled,"input-id":n.controlListElementOptions.id,label:n.controlListElementOptions.label,class:"fr-toggle--label-left","no-text":"","model-value":e.value===!0||Array.isArray(e.value)&&e.value.includes(n.controlListElementOptions.name)},o.$attrs),null,16,["modelValue","disabled","input-id","label","model-value"])])])}}}),w1={class:"control-container"},_1={class:"control-content"},x1={class:"fr-text--sm fr-mb-2v"},A1={class:"fr-mb-3w"},L1={class:"control-list-element"},N1={class:"control-list-element-toggle"},k1={name:"MenuControl"},S1=Object.assign(k1,{props:Ol({selectedControls:{type:Array,default:()=>[]},theme:{type:String,default:null},themeTitle:{type:String,default:null}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const t=gr(),e=us(),r=n,a=El(n,"modelValue"),o=Th(),f=vt(()=>{const c=o.reduce((m,v)=>(m.has(v.group)||m.set(v.group,[]),m.get(v.group).push(v),m),new Map);let h=Array.from(c.entries()).map(([m,v])=>({group:m,items:v.filter(x=>{var p;return x.label.toLowerCase().includes(l.value.toLowerCase())||((p=x.hint)==null?void 0:p.toLowerCase().includes(l.value.toLowerCase()))||x.name.toLowerCase().includes(l.value.toLowerCase())})})).filter(({items:m})=>m.length>0);return r.theme&&(h=h.filter(({group:m})=>m===r.theme)),h}),l=st("");return ao(a,c=>{t.cleanControls();for(let h=0;h<c.length;h++){const m=c[h];t.addControl(m)}}),vr(()=>{}),qu(()=>{}),(c,h)=>{const m=zu;return Ge(),ct("div",w1,[Re("div",_1,[Re("div",null,[(Ge(!0),ct(Br,null,bi(lt(f),v=>(Ge(),ct("div",{key:v.group},[Re("p",x1,nn(n.themeTitle??v.group),1),Re("div",A1,[Re("div",L1,[h[2]||(h[2]=Re("div",{class:"control-list-element-img"},[Re("div",null,[Re("span",{class:"fr-icon--sm fr-icon-layout-top-line","aria-hidden":"true"})])],-1)),Re("div",N1,[je(m,{modelValue:lt(e).isHeaderCompact,"onUpdate:modelValue":h[0]||(h[0]=x=>lt(e).isHeaderCompact=x),label:"Affichage compact","no-text":"",class:"fr-toggle--label-left"},null,8,["modelValue"])])]),(Ge(!0),ct(Br,null,bi(v.items,(x,p)=>(Ge(),qn(y1,{key:p,modelValue:a.value,"onUpdate:modelValue":h[1]||(h[1]=I=>a.value=I),"model-value":r.selectedControls,"control-list-element-options":x},null,8,["modelValue","model-value","control-list-element-options"]))),128))])]))),128))])])])}}}),P1=Zn(S1,[["__scopeId","data-v-7c4a85af"]]),C1={class:"container"},I1={name:"MenuTierce"},E1=Object.assign(I1,{emits:["openControl","onModalShareOpen","onModalPrintOpen","onBookMarksOpen"],setup(n,{emit:t}){const e=Un("emitter"),r=us(),a=gr(),o=t;function f(){a.addControl("Reporting"),setTimeout(()=>{e.dispatchEvent("reporting:open:clicked",{open:!0,componentName:"Reporting"}),o("openControl")},0)}function l(m){a.getMap().getControls().getArray().forEach(v=>{v.CLASSNAME===m&&([...v.element.children].filter(p=>{if(p.className.includes("GPshowOpen"))return p})[0].click(),o("openControl"))})}var c=Un("services");const h=st(null);return vr(()=>{r.setBookmarksButton(h.value)}),(m,v)=>{const x=$i,p=P1;return Ge(),ct("div",C1,[Re("div",{ref_key:"BookmarksButton",ref:h},[je(x,{tertiary:"","no-outline":"",class:zi({"fr-btn--disabled":!lt(c).authenticated}),icon:"ri-bookmark-line",onClick:v[0]||(v[0]=I=>m.$emit("onBookMarksOpen"))},{default:Dt(()=>[...v[5]||(v[5]=[Qr(" Mes enregistrements ",-1)])]),_:1},8,["class"])],512),v[10]||(v[10]=Re("hr",null,null,-1)),je(x,{tertiary:"","no-outline":"",icon:"ri:file-upload-line",onClick:v[1]||(v[1]=I=>l("LayerImport"))},{default:Dt(()=>[...v[6]||(v[6]=[Qr(" Importer des données ",-1)])]),_:1}),je(x,{tertiary:"","no-outline":"",icon:"ri:share-2-fill",onClick:v[2]||(v[2]=I=>m.$emit("onModalShareOpen"))},{default:Dt(()=>[...v[7]||(v[7]=[Qr(" Partager, intégrer la carte ",-1)])]),_:1}),je(x,{tertiary:"","no-outline":"",icon:"fr-icon-printer-line",class:"tierce-print",onClick:v[3]||(v[3]=I=>m.$emit("onModalPrintOpen"))},{default:Dt(()=>[...v[8]||(v[8]=[Qr(" Imprimer ",-1)])]),_:1}),je(x,{tertiary:"","no-outline":"",icon:"fr-icon-feedback-line",onClick:v[4]||(v[4]=I=>f())},{default:Dt(()=>[...v[9]||(v[9]=[Qr(" Signaler une anomalie ",-1)])]),_:1}),v[11]||(v[11]=Re("hr",null,null,-1)),je(p,{"selected-controls":lt(Nh),theme:"Affichage","theme-title":"Préférences dâaffichage"},null,8,["selected-controls"])])}}}),O1=Zn(E1,[["__scopeId","data-v-802a95db"]]),F1={class:"fr-container fr-p-0"},M1={class:"bookmark-buttons-container"},B1={name:"MenuBookMarkNoData"},j1=Object.assign(B1,{setup(n){const t=gr(),e=Un("services"),r=Un("emitter"),a=async f=>{try{const h=await e.setDocument(f);var l=h.uuid,c=h.action;return r.dispatchEvent("document:saved",{uuid:l,action:c}),h}catch(h){throw console.error(h),h}},o=[{label:"Enregistrer une carte",icon:"fr-icon-save-line",iconOnly:!1,iconRight:!1,secondary:!0,class:"bookmark-button-container",onclick:()=>{const f="Ma carte";var l=t.permalink;const c={name:f,description:"permalien",format:"json",target:"internal",type:"carte",content:JSON.stringify({name:f,date:new Date().toISOString(),permalink:l})};a(c).then(()=>{In.success({title:Nt.bookmark.title,message:Nt.bookmark.success_save_map})}).catch(h=>{console.error(h),In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_save_map})})}},{label:"Annoter la carte",icon:"fr-icon-pencil-line",iconOnly:!1,iconRight:!1,tertiary:!0,class:"bookmark-button-container",onclick:async()=>{t.getControls().includes("Drawing")||(t.addControl("Drawing"),await as()),r.dispatchEvent("drawing:open:clicked",{open:!0,componentName:"Drawing"})}},{label:"Importer une donnée",icon:"fr-icon-upload-line",iconOnly:!1,iconRight:!1,tertiary:!0,class:"bookmark-button-container",onclick:()=>
2{r.dispatchEvent("layerimport:open:clicked",{open:!0,componentName:"LayerImport"}),r.dispatchEvent("leftmenu:close",{open:!1,componentName:"LeftMenu"})}}];return(f,l)=>{const c=Vu;return Ge(),ct("div",F1,[l[0]||(l[0]=Re("div",{class:"bookmark-content-container"},[Re("h4",null," Aucun enregistrement pour le moment "),Re("div",null," Enregsitrer vos cartes et données créées sur votre espace afin de les retrouver et de les utiliser à tout moment. "),Re("div",{id:"location-france"})],-1)),Re("div",M1,[je(c,{buttons:o})])])}}}),R1=Zn(j1,[["__scopeId","data-v-0fa1a853"]]),T1={class:"container-sort fr-mt-2w"},D1=["for"],q1=["id","value"],U1=["value"],z1=["id"],V1={name:"Sort"},H1=Object.assign(V1,{props:{sortId:{type:String,required:!0},sortFields:{type:Array,required:!0},sortField:{type:String,required:!0},sortOrder:{type:String,required:!0}},emits:["update:sort-field","update:sort-order"],setup(n){return(t,e)=>(Ge(),ct("div",T1,[Re("label",{for:n.sortId,class:"fr-label-no"},"Trier par",8,D1),Re("select",{id:n.sortId,value:n.sortField,class:"fr-select",onChange:e[0]||(e[0]=r=>t.$emit("update:sort-field",r.target.value))},[(Ge(!0),ct(Br,null,bi(n.sortFields,r=>(Ge(),ct("option",{key:r.value,value:r.value},nn(r.label),9,U1))),128))],40,q1),Re("button",{id:`${n.sortId}-order`,class:zi(["fr-btn fr-btn--sm fr-btn--tertiary-no-outline",{"fr-icon-sort-desc":n.sortOrder==="asc","fr-icon-sort-asc":n.sortOrder==="desc"}]),title:"Modifier lâordre de tri",onClick:e[1]||(e[1]=r=>t.$emit("update:sort-order",n.sortOrder==="asc"?"desc":"asc"))},nn(n.sortOrder==="asc"?"â":"â"),11,z1)]))}}),W1=Zn(H1,[["__scopeId","data-v-79dbc270"]]),$1={__name:"ModalConfirm",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:"Confirmation"},message:{type:String,default:""},confirmLabel:{type:String,default:"Valider"},cancelLabel:{type:String,default:"Annuler"}},emits:["update:modelValue","confirm","cancel","close"],setup(n,{emit:t}){const e=n,r=t,a=()=>{r("update:modelValue",!1),r("close")},o=()=>{r("confirm"),a()},f=()=>{r("cancel"),a()},l=vt(()=>[{label:e.confirmLabel,onClick(){o()}},{label:e.cancelLabel,tertiary:!0,onClick(){f()}}]);return(c,h)=>{const m=Ca;return Ge(),qn(m,{opened:n.modelValue,title:n.title,size:"md","is-alert":!0,actions:l.value,onClose:f},{default:Dt(()=>[Re("p",null,nn(n.message),1),io(c.$slots,"default")]),_:3},8,["opened","title","actions"])}}},G1={class:"container-bookmark-entry"},Y1={class:"container-bookmark-entry-advanced-options"},J1={class:"container-bookmark-entry-advanced-infos fr-hint-text"},X1={key:0},K1={key:1},Z1={key:2},Q1={key:3},ed=["title"],td={ref:"div-rename",class:"container-bookmark-entry-rename fr-hidden"},nd={class:"container-bookmark-entry-buttons-rename"},rd={class:""},id={key:0},ad={class:"fr-mt-2w"},od={name:"MenuBookMarkEntry"},xc=Object.assign(od,{props:{type:{type:String,default:""},data:{type:Object,default:()=>({})}},setup(n){const t=gr(),e=Dh.useLogger(),{copy:r}=Hu({}),a=n,o=Un("services"),f=Un("emitter"),l=async(J,Q)=>{In.warning({title:Nt.bookmark.title,message:"Ce document n'est plus disponible, mise à jour en cours..."}),await o.getDocumentsByLabel(Q),f.dispatchEvent("document:synchronized",{uuid:J,action:"synchronized"})},c=J=>{o.getDocumentById(J.id).then(Q=>{var ae=null;switch(J.type){case"drawing":ae=o.getDrawing;break;case"import":ae=o.getImport;break;case"compute":ae=o.getCompute;break;case"service":ae=o.getService;break;
2case"carte":ae=o.getCartes;break}if(!ae)throw new Error(Nt.bookmark.failed_type_unknow(J.type));var U=!1;ae.call(o,J.id).then(Y=>{if(J.type==="carte"){a1(Y),In.success({title:Nt.bookmark.title,message:Nt.bookmark.success_add_data("permalien")});return}if(J.type==="service"&&(U=!0),J.type==="drawing"&&(U=!0),J.type==="import"&&(U=!0),J.type==="compute"&&(U=!0),U){var ue=kh(Q,{opacity:1,visible:!0,grayscale:!1});t.addBookmark(ue)}}).then(()=>{t.isPermalink()||In.success({title:Nt.bookmark.title,message:Nt.bookmark.success_add_data(Q.extra.format)})}).catch(Y=>{throw Y})}).catch(Q=>{console.error(Q),Q instanceof Ir&&Q.type===Ir.TYPE_SYNCERR?l(J.id,J.type):In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_add_data(Q.message||Q)})})};Fl(()=>{}),vr(()=>{});const h=Ml("div-rename"),m=st(""),v=J=>{console.debug(J),h.value.classList.toggle("fr-hidden"),m.value=a.data.name},x=st(!1);var p=[];const I=J=>{console.debug(J),p=o.findInCartes(a.data.id),p.length>0?x.value=!0:E()},E=()=>{var J={uuid:a.data.id,type:a.data.type};o.deleteDocument(J).then(Q=>(f.dispatchEvent("document:deleted",{uuid:Q.uuid,action:Q.action}),Q)).then(Q=>{Q.extra.isPresentInBookmarksCarte&&In.warning({title:Nt.bookmark.title,message:Nt.bookmark.warning_delete_document_in_bookmarks_carte})}).catch(Q=>{console.error(Q),Q instanceof Ir&&Q.type===Ir.TYPE_SYNCERR?l(J.uuid,J.type):In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_delete_data(Q.message||Q)})})},k=J=>{if(console.debug(J),a.data.type==="carte"||a.data.type==="service"||a.data.type==="compute"){N();return}ne.value=!0},N=J=>{e.debug("onConfirmExportDocument",J);const Q=a.data.type;var ae={uuid:a.data.id,type:Q};o.exportDocument(ae).then(U=>(f.dispatchEvent("document:exported",{uuid:U.uuid,action:U.action}),U)).then(async U=>{if(J&&U.extra.ext!==J)try{var Y=await Sh({id:U.uuid,name:U.extra.name,format:U.extra.ext,data:U.extra.content,type:Q}),ue=Ph(Y,J);U.extra.content=ue.content,U.extra.ext=ue.ext,U.extra.mimeType=ue.mimeType}catch(le){throw console.error(le),new Error("Failed to transform vector layer format")}return U}).then(U=>{var Y=U.extra.mimeType,ue=U.extra.content,le=U.extra.name,w=U.extra.ext,O=le.includes(w)?le:le+"."+w,D=document.createElement("a"),z="utf-8";if(D.setAttribute("href","data:"+Y+";charset="+z+","+encodeURIComponent(ue)),D.setAttribute("download",O),document.createEvent){var K=document.createEvent("MouseEvents");K.initEvent("click",!0,!0),D.dispatchEvent(K)}else D.click()}).catch(U=>{console.error(U),U instanceof Ir&&U.type===Ir.TYPE_SYNCERR?l(ae.uuid,ae.type):In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_export_data(U.message||U)})})},H=J=>{console.debug(J);var Q={uuid:a.data.id,type:a.data.type};o.getCartes(Q.uuid).then(ae=>{r(ae)}).then(()=>{In.success({title:Nt.bookmark.title,message:Nt.bookmark.success_copy_permalink})}).catch(ae=>{console.error(ae),ae instanceof Ir&&ae.type===Ir.TYPE_SYNCERR?l(Q.uuid,Q.type):In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_copy_permalink(ae.message||ae)})})},T=J=>{e.debug(J);var Q={uuid:a.data.id,type:a.data.type,name:m.value};m.value!==a.data.name&&o.renameDocument(Q).then(ae=>{f.dispatchEvent("document:updated",{uuid:ae.uuid,action:ae.action})}).then(()=>{h.value.classList.toggle("fr-hidden")}).then(()=>{}).catch(ae=>{console.error(ae),ae instanceof Ir&&ae.type===Ir.TYPE_SYNCERR?l(Q.uuid,Q.type):In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_rename_data(ae.message||ae)})})},R=J=>{e.debug(J),h.value.classList.toggle("fr-hidden")},te=[{label:"Renommer",icon:"fr-icon-edit-line","data-id":a.data.id,"data-type":a.data.type,"data-name":a.data.name,disabled:!1,iconOnly:!0,iconRight:!1,secondary:!0,noOutline:!0,style:"margin: unset;box-shadow: unset;",class:"bookmark-button-container-advanced",onclick:v},{label:"Supprimer",icon:"fr-icon-delete-line","data-id":a.data.id,"data-type":a.data.type,"data-name":a.data.name,disabled:!1,iconOnly:!0,iconRight:!1,secondary:!0,noOutline:!0,style:"margin: unset;box-shadow: unset;",class:"bookmark-button-container-advanced",onclick:I}],he=[...te,{label:"Copier",icon:"fr-icon-link","data-id":a.data.id,"data-type":a.data.type,"data-name":a.data.name,disabled:!1,iconOnly:!0,iconRight:!1,secondary:!0,noOutline:!0,style:"margin: unset;box-shadow: unset;",class:"bookmark-button-container-advanced",onclick:H}
2],ce=[...te,{label:"Exporter",icon:"fr-icon-download-line","data-id":a.data.id,"data-type":a.data.type,"data-name":a.data.name,disabled:!1,iconOnly:!0,iconRight:!1,secondary:!0,noOutline:!0,style:"margin: unset;box-shadow: unset;",class:"bookmark-button-container-advanced",onclick:k}],G=J=>{if(!J)return"";var Q=new Date(J);return Q.toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit"})},q=J=>{if(!J)return"";var Q=new Date(J);return Q.toLocaleDateString("fr-FR",{day:"2-digit",month:"2-digit",year:"numeric"})},ne=st(!1),S=st("geojson"),F=[{label:"GPX",value:"gpx"},{label:"GeoJSON",value:"geojson"},{label:"KML",value:"kml"}],W=[{label:"Exporter",onClick(){ne.value=!1;var J=S.value;N(J)}},{label:"Annuler",tertiary:!0,onClick(){ne.value=!1}}],V=()=>{ne.value=!1};return(J,Q)=>{const ae=$i,U=Vu,Y=fs,ue=qh,le=Ca;return Ge(),ct(Br,null,[Re("div",G1,[je(ae,{"data-id":n.data.id,"data-type":n.data.type,title:n.data.name,class:"button-bookmark-entry",tertiary:"","no-outline":"",icon:n.data.icon,onClick:Q[0]||(Q[0]=w=>c(n.data))},{default:Dt(()=>[Qr(nn(n.data.name),1)]),_:1},8,["data-id","data-type","title","icon"]),Re("div",Y1,[n.data.type==="carte"?(Ge(),qn(U,{key:0,buttons:he,"inline-layout-when":"",size:"sm"})):(Ge(),qn(U,{key:1,buttons:ce,"inline-layout-when":"",size:"sm"}))])]),Re("div",J1,[n.data.type_fr?(Ge(),ct("span",X1,nn(n.data.type_fr),1)):Dn("",!0),n.data.type_fr&&(n.data.format||n.data.date)?(Ge(),ct("span",K1," - ")):Dn("",!0),n.data.format?(Ge(),ct("span",Z1,nn(n.data.format),1)):Dn("",!0),n.data.format&&n.data.date?(Ge(),ct("span",Q1," - ")):Dn("",!0),n.data.date?(Ge(),ct("span",{key:4,title:G(n.data.date)},nn(q(n.data.date)),9,ed)):Dn("",!0)]),Re("div",td,[je(Y,{modelValue:m.value,"onUpdate:modelValue":Q[1]||(Q[1]=w=>m.value=w),label:"Renommer",placeholder:""},null,8,["modelValue"]),Re("div",nd,[je(ae,{size:"sm",icon:"ri:close-line",tertiary:"","no-outline":"",class:"fr-p-1w",onClick:R}),je(ae,{size:"sm",icon:"ri:check-line",tertiary:"","no-outline":"",class:"fr-p-1w",onClick:T})])],512),io(J.$slots,"slot-bookmark-entry",{},()=>[je(le,{opened:ne.value,title:"Exporter",size:"md","is-alert":!0,actions:W,onClose:V},{default:Dt(()=>[Re("div",rd,[je(ue,{modelValue:S.value,"onUpdate:modelValue":Q[2]||(Q[2]=w=>S.value=w),legend:"Format (obligatoire)",options:F,name:"format-export-"+n.data.id,inline:""},null,8,["modelValue","name"])])]),_:1},8,["opened"])]),je($1,{modelValue:x.value,"onUpdate:modelValue":Q[3]||(Q[3]=w=>x.value=w),title:lt(Nt).bookmark.title,message:lt(Nt).bookmark.confirm_delete_document_with_name(n.data.name),"confirm-label":"Valider","cancel-label":"Annuler",onConfirm:E},{default:Dt(()=>[Qr(nn(lt(Nt).bookmark.warning_delete_document_in_bookmarks_carte)+" ",1),lt(p).length>0?(Ge(),ct("div",id,[Re("ul",ad,[(Ge(!0),ct(Br,null,bi(lt(p),w=>(Ge(),ct("li",{key:w.id},nn(w.name),1))),128))])])):Dn("",!0)]),_:1},8,["modelValue","title","message"]),io(J.$slots,"default")],64)}}}),sd={class:"fr-container fr-p-0"},ld={key:0},cd={class:"search-bookmark fr-p-1w"},ud={class:"tabs-bookmark fr-p-1w"},fd={ref:"div-map-name",class:"container-bookmark-map-name fr-hidden"},hd={class:"container-bookmark-map-buttons-name"},dd={class:"fr-mb-2w"},pd={name:"MenuBookMarkDataList"},md=Object.assign(pd,{props:{title:{type:String,default:""}},setup(n){const t=gr(),e=Un("services"),r=Un("emitter"),a=n,o=st("");function f(U){o.value=U}const l=(U="")=>String(U).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim(),c=(U="")=>{const Y=l(U);return Y?Y.split(/\s+/).map(ue=>{const le=ue.indexOf(":");return le>0?{field:ue.slice(0,le),value:ue.slice(le+1)}:{field:null,value:ue}}).filter(ue=>ue.value):[]},h=(U,Y,ue)=>{const le=Object.entries(ue),w=new Map(le),O=le.flatMap(([,z])=>z);return(Y.field&&w.has(Y.field)?w.get(Y.field):O).some(z=>{const K=new Map(Object.entries(U||{}));return l(K.get(z)).includes(Y.value)})},m=(U,Y,ue)=>{const le=c(Y);return le.length?le.every(w=>h(U,w,ue)):!0},v="Liste des données",x=[{title:"Cartes",tabId:"tab-bookmark-maps",panelId:"tab-content-bookmark-maps"},{title:"Données",tabId:"tab-bookmark-data",panelId:"tab-content-bookmark-data"}],p=st(0),I=U=>{var Y=U;return e.labels.includes(U)?(U==="drawing"&&(Y="croquis"),U==="compute"&&(Y="calcul")):Y=U,Y},E=U=>
2{var Y="";return e.labels.includes(U)?(U==="drawing"&&(Y="ri:pencil-line"),U==="import"&&(Y="ri:file-upload-line"),U==="service"&&(Y="ri:cloud-line"),U==="compute"&&(Y="ri:settings-5-line")):Y="ri:pencil-line",Y},k=st(null),N=U=>{if(!U)return null;const Y=new Date(U).getTime();return Number.isNaN(Y)?null:Y},H=vt(()=>{k.value&&console.log("update data !"),V.value&&console.log("sort data by",V.value),J.value&&console.log("sort data by",J.value);var U=[];for(const O in e.documents)if(Object.prototype.hasOwnProperty.call(e.documents,O)){if(O==="carte")continue;var Y=e.documents[O];if(!Y)continue;for(let D=0;D<Y.length;D++){var ue=Y[D],le=[".geojson",".gpx",".kml",".json"],w=le.find(z=>ue.name.includes(z));U.push({id:ue._id,name:w?ue.name.replace(w,"").slice(0,-1):ue.name,date:ue.update,date_create:ue.creation,type:O,type_fr:I(O)||O,icon:E(O)})}}return U.sort((O,D)=>{const z=V.value.split("+");for(const K of z){const re=W(O,D,K,J.value);if(re!==0)return re}return 0}),U.filter(O=>m(O,o.value,{name:["name"],type:["type","type_fr"]}))}),T=vt(()=>{k.value&&console.log("update map !");var U=[];if(e.documents.carte)for(let Y=0;Y<e.documents.carte.length;Y++){const ue=e.documents.carte[Y];U.push({id:ue._id,name:ue.name,date:ue.update,date_create:ue.creation,type:"carte",type_fr:"",icon:"ri-map-2-line"})}return U.sort((Y,ue)=>{const le=N(Y.date)??N(Y.date_create),w=N(ue.date)??N(ue.date_create);return le!==null&&w!==null?w-le:le!==null?1:w!==null?-1:0}),U.filter(Y=>m(Y,o.value,{name:["name"],type:["type","type_fr"]}))}),R=U=>{console.log(U);var Y=Date.now();k.value=Object.assign(U,{timestamp:Y})};r.addEventListener("document:saved",R),r.addEventListener("document:updated",R),r.addEventListener("document:deleted",R),r.addEventListener("document:exported",R),r.addEventListener("document:synchronized",R);const te=()=>{ce.value.classList.toggle("fr-hidden")},he=()=>{r.dispatchEvent("layerimport:open:clicked",{open:!0,componentName:"LayerImport"}),r.dispatchEvent("leftmenu:close",{open:!1,componentName:"LeftMenu"})},ce=Ml("div-map-name"),G=st(""),q=()=>{ce.value.classList.toggle("fr-hidden");var U=t.permalink;const Y={name:G.value,description:"permalien",format:"json",target:"internal",type:"carte",content:JSON.stringify({name:G.value,date:new Date().toISOString(),permalink:U}),extra:{bookmarks:t.getBookmarksByID()}};S(Y).then(()=>{}).then(()=>{G.value=""}).then(()=>{In.success({title:Nt.bookmark.title,message:Nt.bookmark.success_save_map})}).catch(ue=>{console.error(ue),In.error({title:Nt.bookmark.title,message:Nt.bookmark.failed_save_map})})},ne=()=>{ce.value.classList.toggle("fr-hidden")},S=async U=>{try{const le=await e.setDocument(U);var Y=le.uuid,ue=le.action;r.dispatchEvent("document:saved",{uuid:Y,action:ue});const w=await e.updateMetadataDocument({uuid:Y,type:U.type,extra:U.extra});return console.debug(w),le}catch(le){throw console.error(le),le}},F=[{label:"Nom",value:"name"},{label:"Type",value:"type"},{label:"Date",value:"date"},{label:"Type + Nom",value:"type+name"},{label:"Type + Date",value:"type+date"}],W=(U,Y,ue,le)=>{const w=new Map(Object.entries(U||{})),O=new Map(Object.entries(Y||{}));if(ue==="date"||ue==="date_create"){const re=N(w.get(ue)),fe=N(O.get(ue));return re!==null&&fe!==null?le==="desc"?fe-re:re-fe:re!==null?-1:fe!==null?1:0}const D=String(w.get(ue)||""),z=String(O.get(ue)||""),K=D.localeCompare(z,"fr",{numeric:!0,sensitivity:"base"});return le==="desc"?-K:K},V=st("date"),J=st("desc"),Q=U=>{V.value=U,R()},ae=U=>{J.value=U,R()};return Fl(()=>{}),vr(()=>{}),(U,Y)=>{const ue=Uh,le=$i,w=fs,O=zh,D=Vh;return Ge(),ct("div",sd,[a.title?(Ge(),ct("h4",ld,nn(a.title),1)):Dn("",!0),Re("div",cd,[je(ue,{modelValue:o.value,"onUpdate:modelValue":[Y[0]||(Y[0]=z=>o.value=z),f],label:"Rechercher un enregistrement",placeholder:"Nom ou type du document recherché"},null,8,["modelValue"])]),Re("div",ud,[je(D,{id:"tabs-bookmark",modelValue:p.value,"onUpdate:modelValue":Y[6]||(Y[6]=z=>p.value=z),"tab-list-name":v,"tab-titles":x},{default:Dt(()=>[je(O,{"panel-id":"tab-content-bookmark-maps","tab-id":"tab-bookmark-maps"},{default:Dt(()=>[je(le,{label:"Enregistrer la carte",tertiary:"",size:"sm",class:"button-action",icon:"fr-icon-save-line",onClick:Y[1]||(Y[1]=z=>te())}),Re("div",fd,[je(w,{modelValue:G.value,"onUpdate:modelValue":Y[2]||(Y[2]=z=>G.value=z),label:"Nommer",placeholder:""},null,8,["modelValue"]),Re("div",hd,[je(le,{size:"sm",icon:"ri:close-line",tertiary:"","no-outline":"",class:"fr-p-1w",onClick:ne}),je(le,{size:"sm",icon:"ri:check-line",tertiary:"","no-outline":"",class:"fr-p-1w",onClick:q})])],512),(Ge(!0),ct(Br,null,bi(lt(T),z=>(Ge(),ct("div",{key:z.id,class:"container-bookmark-map-item fr-p-1w"},[je(xc,{data:z,type:"map"},null,8,["data"])]))),128))]),_:1}),je(O,{"panel-id":"tab-content-bookmark-data","tab-id":"tab-bookmark-data"},{default:Dt(()=>[je(le,{label:"Ajouter une donnée",tertiary:"",size:"sm",class:"button-action",icon:"fr-icon-upload-line",onClick:Y[3]||(Y[3]=z=>he())}),Re("div",dd,[je(W1,{"sort-field":V.value,"onUpdate:sortField":[Y[4]||(Y[4]=z=>V.value=z),Q],"sort-order":J.value,"onUpdate:sortOrder":[Y[5]||(Y[5]=z=>
2J.value=z),ae],"sort-id":"sort-bookmark-data","sort-fields":F},null,8,["sort-field","sort-order"]),(Ge(!0),ct(Br,null,bi(lt(H),z=>(Ge(),ct("div",{key:z.id,class:"container-bookmark-data-item fr-p-1w"},[je(xc,{data:z,type:"data"},null,8,["data"])]))),128))])]),_:1})]),_:1},8,["modelValue"])])])}}}),gd=Zn(md,[["__scopeId","data-v-9abf3513"]]),vd={key:0,class:"loading-container"},bd={class:"fr-text--sm fr-mb-1w progress-summary"},yd={key:0,class:"progress-list fr-text--xs"},wd={key:1,class:"fr-text fr-text--sm done-label"},_d={key:1},xd={key:2},Ad={name:"MenuBookMarkLoggued"},Ld=Object.assign(Ad,{setup(n){var t=Un("services");const e=Un("emitter"),r=1500,a=st("loading"),o=vt(()=>a.value!=="loaded"),f=vt(()=>a.value==="finishing"),l=st({});let c=null;const h=vt(()=>Array.isArray(t.labels)?t.labels.length:0),m=vt(()=>Object.keys(l.value).length),v=vt(()=>Object.entries(l.value).map(([H,T])=>({label:H,loaded:T.loaded,total:T.total}))),x=H=>H&&H.detail?H.detail:H,p=()=>{a.value="finishing",c&&clearTimeout(c),c=setTimeout(()=>{a.value="loaded",c=null},r)},I=()=>{var H=!0;for(const T in t.documents)if(Object.prototype.hasOwnProperty.call(t.documents,T)){const R=t.documents[T];R&&R.length&&(H=!1)}return H},E=()=>!Array.isArray(t.labels)||t.labels.length===0?!1:t.labels.every(H=>Object.prototype.hasOwnProperty.call(t.documents,H)&&Array.isArray(t.documents[H]));var k=st(!1),N=vt(()=>{var H=I();return k.value?I():H});return e.addEventListener("service:documents:loaded",()=>{p(),k.value=!k.value}),e.addEventListener("service:documents:completed",H=>{var T=x(H)||{},R=T.label;if(R){var te=Array.isArray(T.data)?T.data.length:0,he=Number.isFinite(T.total)?T.total:te,ce={...l.value,[R]:{loaded:te,total:he}};l.value=ce,Object.keys(ce).length>=h.value&&p()}}),e.addEventListener("document:saved",()=>{a.value="loaded",k.value=!k.value}),e.addEventListener("document:deleted",()=>{a.value="loaded",k.value=!k.value}),e.addEventListener("document:updated",()=>{a.value="loaded",k.value=!k.value}),vr(()=>{t.isAuthenticatedLocally()&&(E()||!N.value)&&(a.value="loaded")}),Hh(()=>{c&&clearTimeout(c)}),(H,T)=>o.value?(Ge(),ct("div",vd,[T[0]||(T[0]=Re("p",{class:"fr-text fr-mt-2w"}," Chargement des enregistrements... ",-1)),Re("p",bd,nn(m.value)+" / "+nn(h.value)+" catégories chargées ",1),v.value.length?(Ge(),ct("ul",yd,[(Ge(!0),ct(Br,null,bi(v.value,R=>(Ge(),ct("li",{key:R.label},nn(R.label)+" : "+nn(R.loaded)+" / "+nn(R.total),1))),128))])):Dn("",!0),f.value?(Ge(),ct("p",wd," Terminé ! ")):Dn("",!0),je(Bl)])):lt(N)?(Ge(),ct("div",_d,[je(R1)])):(Ge(),ct("div",xd,[je(gd)]))}}),Nd=Zn(Ld,[["__scopeId","data-v-4a8d7cb0"]]),kd={class:"container"},Sd={name:"MenuBookMarks"},Pd=Object.assign(Sd,{setup(n){const t=Wh();var e=vt(()=>t.isAuthentificated);return(r,a)=>(Ge(),ct("div",kd,[lt(e)?(Ge(),qn(Nd,{key:0})):Dn("",!0)]))}}),Cd=Zn(Pd,[["__scopeId","data-v-b3628e46"]]),Id={name:"LeftMenuTool"},Ed=Object.assign(Id,{emits:["onModalShareOpen","onModalPrintOpen","onModalLoginOpen"],setup(n,{emit:t}){const e=us(),r="left",a=st(),o=st(null),f=vt(()=>[{componentName:"MenuTierce",icon:"ri-menu-add-fill",title:"Gérer la carte",visibility:!0,secondary:!0},{componentName:"MenuBookMarks",icon:"ri-bookmark-line",title:"Mes Enregistrements",visibility:!1,secondary:!0}]);let l=vt(()=>{let T=f.value.filter(R=>R.componentName+"Content"===c.value);return T.length?T[0]:""});const c=st("MenuCatalogueContent"),h=st(null);function m(T){v(T)&&a.value?h.value.closeMenu():(c.value=T+"Content",h.value.openMenu())}function v(T){return c.value.replace("Content","")===T}Un("emitter").addEventListener("leftmenu:close",()=>{h.value.closeMenu()});var p=Un("services"),I=vt(()=>p.authenticated);function E(){window.__ENV__.IAM_DISABLE!=="1"&&N.value.forEach(T=>{T.id==="MenuBookMarks"&&(I.value?T.clickButton():H("onModalLoginOpen"))})}function k(){h.value.closeMenu()}const N=Ml("tabs"),H=t;return ao(()=>e.getleftControlMenu(),T=>{var R;o.value=T,(R=o.value)==null||R.addEventListener("click",function(te){!te.target.id.includes("OverviewMap")&&te.target.ariaPressed==="true"&&(a.value=!1)})},{immediate:!0}),(T,R)=>(Ge(),qn(h1,{id:"MenuCatalogueContentClose",ref_key:"wrapper",ref:h,modelValue:lt(a),"onUpdate:modelValue":R[2]||(R[2]=te=>Uu(a)?a.value=te:null),side:r,visibility:!0,title:lt(l).title,icon:lt(l).icon},{content:Dt(()=>[Re("div",{id:"MenuTierceContent",class:zi([lt(c)==="MenuTierceContent"?"activeTab":"inactiveTab"])},[je(O1,{onOnModalShareOpen:R[0]||(R[0]=te=>T.$emit("onModalShareOpen")),onOnModalPrintOpen:R[1]||(R[1]=te=>T.$emit("onModalPrintOpen")),onOnBookMarksOpen:E,onOpenControl:k})],2),Re("div",{id:"MenuBookMarksContent",class:zi([lt(c)==="MenuBookMarksContent"?"activeTab":"inactiveTab"])},[je(Cd)],2)]),navButtons:Dt(()=>[(Ge(!0),ct(Br,null,bi(lt(f),te=>(Ge(),qn(p1,{id:te.componentName,key:te.componentName,ref_for:!0,ref:"tabs",side:r,icon:te.icon,visibility:te.visibility,active:v(te.componentName),title:te.title,secondary:te.secondary,onTabClicked:m},null,8,["id","icon","visibility","active","title","secondary"]))),128))]),_:1},8,["modelValue","title","icon"]))}}),Od=Zn(Ed,[["__scopeId","data-v-d20f7a06"]]),Fd={name:"ModalLogin"},Md=Object.assign(Fd,{setup(n,{expose:t}){const e=hs(),r=$h(),a=gr(),o="Se connecter à cartes.gouv.fr",f="fr-icon-account-fill",l=[{label:"Se connecter",onClick(){c.value=!1,r.push({path:"/login"})}},{label:"Annuler",tertiary:!0,onClick(){c.value=!1}}],c=st(!1),h=st({display:"none"}),m=st(!1);c.value&&e.pause();const v=I=>{h.value=I?{display:"block"}:{display:"none"},c.value=!0,e.pause()},x=()=>{c.value=!1,e.resume()},p=I=>{console.log(I),a.noLoginInformation=I};
2return t({openModalLogin:v,onModalLoginClose:x}),(I,E)=>{const k=Wu,N=Ca;return Ge(),qn(N,{opened:lt(c),title:o,size:"md",icon:f,"is-alert":!0,actions:l,onClose:x},{default:Dt(()=>[E[0]||(E[0]=Re("p",null," Pour enregistrer vos données, vous devez vous identifier ou créer un compte sur cartes.gouv.fr ",-1)),Re("div",{style:Gh(lt(h))},[je(k,{"model-value":lt(m),label:"Ne plus afficher ce message","onUpdate:modelValue":p},null,8,["model-value"])],4)]),_:1},8,["opened"])}}}),Bd={class:"title-copy"},jd={class:"fr-hint-text hint-class"},Rd={},Td=Object.assign(Rd,{__name:"TextCopyToClipboard",props:{copiedText:{type:String,default:""},label:{type:String,default:""},description:{type:String,default:""}},setup(n){const t=Yh("SM"),e=n,{copy:r}=Hu({}),a="ri:file-copy-line",o="ic:outline-check",f="Copier",l="Copié",c=st(a),h=st(f),m=st(.8325),v=vt(()=>typeof c.value=="string"?{scale:m.value,name:c.value}:{scale:m.value,...c.value});function x(){r(e.copiedText),c.value=o,h.value=l,setTimeout(()=>{c.value=a,h.value=f},5e3)}return vr(()=>{}),(p,I)=>{const E=$i;return Ge(),ct("div",null,[Re("div",Bd,[Re("div",null,nn(n.label),1),je(E,{secondary:"","icon-right":"","icon-only":lt(t),icon:lt(v),onClick:I[0]||(I[0]=k=>x())},{default:Dt(()=>[Qr(nn(lt(h)),1)]),_:1},8,["icon-only","icon"])]),Re("p",jd,nn(n.description),1)])}}}),Ac=Zn(Td,[["__scopeId","data-v-7dad44be"]]),Dd={},qd=Object.assign(Dd,{__name:"ShareModal",setup(n,{expose:t}){const e=hs(),r=$u(),a=gr(),o="Partager une carte",f="lg",l=st(!1),c=()=>{l.value=!0,e.pause()},h=()=>{l.value=!1,e.resume()},m=r.getContacts(),v=vt(()=>encodeURI(a.permalink).replaceAll("&","%26")),x=vt(()=>({address:m.mail,subject:"Cartes à consulter sur cartes.gouv.fr",body:`Bonjour,%0AJe vous invite à consulter cette carte sur Cartes.gouv.fr :%0A${v.value}`})),p=vt(()=>({to:`mailto:${x.value.address}?subject=${x.value.subject}&body=${x.value.body}`,label:"Envoyer un mail"})),I=vt(()=>[{name:"facebook",label:"Partager sur Facebook",url:m.networks.facebook+"?display=popup&u="+a.permalink},{name:"linkedin",label:"Partager sur LinkedIn",url:m.networks.linkedin+"?url="+a.permalink+"&title=Ma%20carte%20IGN"},{name:"instagram",label:"Partager sur Instagram",url:m.networks.instagram},{name:"bluesky",label:"Partager sur Bluesky",url:"https://bsky.app/intent/compose?text="+a.permalink}]),E=vt(()=>`<iframe 3 width="600" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 4 sandbox="allow-forms allow-scripts allow-same-origin" 5 src="${a.permalinkShare}" 6 allowfullscreen> 7 </iframe>`);return vr(()=>{as(function(){})}),Fl(()=>{as(function(){})}),t({onModalShareOpen:c,onModalShareClose:h}),(k,N)=>{const H=Jh,T=fs,R=Ca;return Ge(),qn(R,{opened:l.value,title:o,size:f,onClose:h},{default:Dt(()=>[Re("div",null,[Re("p",null,[je(H,{mail:p.value,networks:I.value,title:"Partages"},null,8,["mail","networks"])])]),Re("div",null,[Re("p",null,[je(T,{modelValue:lt(a).permalink,"onUpdate:modelValue":N[0]||(N[0]=te=>lt(a).permalink=te),label:"Lien permanent vers la carte",placeholder:"","label-visible":"",readonly:"","description-id":""},{label:Dt(()=>[je(Ac,{"copied-text":lt(a).permalink,label:"Lien permanent",description:"Toute personne ayant ce lien peut visualiser votre carte sans avoir à se créer de compte."},null,8,["copied-text"])]),_:1},8,["modelValue"])]),Re("p",null,[je(T,{modelValue:E.value,"onUpdate:modelValue":N[1]||(N[1]=te=>E.value=te),placeholder:"","is-textarea":"","label-visible":"",readonly:"","description-id":"",style:{height:"200px"}},{label:Dt(()=>[je(Ac,{"copied-text":E.value,label:"Iframe",description:"Insérer directement dans vos mails, Réseaux sociaux ..."},null,8,["copied-text"])]),_:1},8,["modelValue"])])])]),_:1},8,["opened"])}}}),Ud=Zn(qd,[["__scopeId","data-v-f7b0a126"]]),zd={__name:"PrintLayers",props:{printMapId:{type:String,default:""}},setup(n){let t=gr();const r=Un(n.printMapId);function a(v){return new Qh({source:v.getSource(),visible:v.getVisible(),opacity:v.getOpacity(),zIndex:v.getZIndex(),minResolution:v.getMinResolution(),maxResolution:v.getMaxResolution()})}function o(v){var x,p;return new Xh({source:v.getSource(),style:v.getStyle(),visible:v.getVisible(),opacity:v.getOpacity(),zIndex:v.getZIndex(),minResolution:v.getMinResolution(),maxResolution:v.getMaxResolution(),declutter:(x=v.getDeclutter)==null?void 0:x.call(v),renderMode:(p=v.getRenderMode)==null?void 0:p.call(v)})}function f(v){const p=v.getSource().getFeatures().map(E=>E.clone()),I=new Kh({features:p});return new Zh({source:I,style:v.getStyle(),visible:v.getVisible(),opacity:v.getOpacity(),zIndex:v.getZIndex(),minResolution:v.getMinResolution(),maxResolution:v.getMaxResolution()})}function l(v){var p;const x=(p=v.getSource)==null?void 0:p.call(v);return x&&typeof x.getFeatures=="function"}function c(v){var p;const x=(p=v.getSource)==null?void 0:p.call(v);return x&&typeof x.getTileGrid=="function"}function h(v){const x=v.getSource&&v.getSource();return x?typeof x.getTileGrid=="function"&&v.service==="TMS":!1}function m(v){if(h(v))return o(v);if(l(v))return f(v);if(c(v))return a(v);throw new Error("Type de layer non supporté")}return vr(async()=>
7{t.getMap().getLayers().forEach(x=>{let p=m(x);r.addLayer(p)}),await as(),r.renderSync()}),(v,x)=>(Ge(),ct("div"))}};function Vd(n,t,e,r){const a=n/t,o=e/r;let f;return o>a?f=n/e:f=t/r,f}function Hd(n,t=1){var h,m;const e=(h=n==null?void 0:n.getElementsByClassName("ol-scale-line"))==null?void 0:h[0],r=(m=e==null?void 0:e.children)==null?void 0:m[0];if(!e||!r)return null;const a=n.getBoundingClientRect(),o=e.getBoundingClientRect(),f=r.getBoundingClientRect();if(!a.width||!a.height)return null;const l=getComputedStyle(e),c=getComputedStyle(r);return{mapRect:{width:a.width,height:a.height},outer:{x:o.left-a.left,y:o.top-a.top,width:o.width,height:o.height,backgroundColor:l.backgroundColor||"rgba(255, 255, 255, 0.75)"},inner:{x:f.left-a.left,y:f.top-a.top,width:f.width,height:f.height,borderLeftWidth:c.borderLeftWidth||"0",borderRightWidth:c.borderRightWidth||"0",borderBottomWidth:c.borderBottomWidth||"0",fontStyle:c.fontStyle,fontVariant:c.fontVariant,fontWeight:c.fontWeight,fontSize:c.fontSize,fontFamily:c.fontFamily,color:c.color||"#333333",text:r.textContent||""},domScaleCoeff:t}}function Wd(n,t,e,r,a=null,o=1){let f,l,c,h,m,v,x,p,I,E,k,N,H,T;if(a)f={width:a.mapRect.width,height:a.mapRect.height,left:0,top:0},l={left:a.outer.x,top:a.outer.y,width:a.outer.width,height:a.outer.height},c={left:a.inner.x,top:a.inner.y,width:a.inner.width,height:a.inner.height},h=a.outer.backgroundColor,m=a.inner.borderLeftWidth,v=a.inner.borderRightWidth,x=a.inner.borderBottomWidth,p=a.inner.fontStyle,I=a.inner.fontVariant,E=a.inner.fontWeight,k=a.inner.fontSize,N=a.inner.fontFamily,H=a.inner.color,T=a.inner.text||"";else{const ue=t.getElementsByClassName("ol-scale-line")[0],le=ue==null?void 0:ue.children[0];if(!ue||!le||(f=t.getBoundingClientRect(),l=ue.getBoundingClientRect(),c=le.getBoundingClientRect(),!f.width||!f.height))return;const w=getComputedStyle(ue),O=getComputedStyle(le);h=w.backgroundColor||"rgba(255, 255, 255, 0.75)",m=O.borderLeftWidth||"0",v=O.borderRightWidth||"0",x=O.borderBottomWidth||"0",p=O.fontStyle,I=O.fontVariant,E=O.fontWeight,k=O.fontSize,N=O.fontFamily,H=O.color||"#333333",T=le.textContent||""}if(!f.width||!f.height)return;const R=r/f.height,te=a?a.domScaleCoeff??1:o,he=R*te,ce=(l.left-f.left)*R,G=(l.top-f.top)*R,q=l.width*R,ne=l.height*R,S=(c.left-f.left)*R,F=(c.top-f.top)*R,W=c.width*R,V=c.height*R,J=parseFloat(m||"0")*he,Q=parseFloat(v||"0")*he,ae=parseFloat(x||"0")*he,U=Math.max(R*.75,1);n.beginPath(),n.fillStyle=h,n.fillRect(ce,G,q,ne),n.lineWidth=U,n.strokeStyle="#ffffff",n.strokeRect(ce,G,q,ne),n.fillStyle="#000000",J>0&&n.fillRect(S,F,J,V),Q>0&&n.fillRect(S+W-Q,F,Q,V),ae>0&&n.fillRect(S,F+V-ae,W,ae);const Y=parseFloat(k||"10");n.font=p+" "+I+" "+E+" "+Y*he+"px "+N,n.textAlign="center",n.textBaseline="middle",n.fillStyle=H,n.fillText(T,S+W/2,F+V/2)}function $d(n,t,e,r,a,o=1){const f=getComputedStyle(a),l=a.clientWidth||e/o,c=l>0?e/(l*o):1,h=parseInt(f.fontSize,10),m=(h>0?h:16)*c*o,v=parseInt(f.lineHeight,10)*c*o;n.font=`${f.fontStyle} ${f.fontVariant} ${f.fontWeight} ${m}px ${f.fontFamily}`,n.fillStyle=f.color||"#3a3a3a",n.textAlign="center",n.textBaseline="top";const x=Gd(a,r);let p=10*o;x.forEach(I=>{n.fillText(I,e/2,p,e),p+=v})}const Gd=function(n,t){const e=n.firstChild;if(!e||e.nodeType!==Node.TEXT_NODE||!t)return[t];const r=document.createRange(),a=[];let o=null,f="";for(let l=0;l<t.length;l+=1){r.setStart(e,l),r.setEnd(e,l+1);const c=r.getBoundingClientRect();if(!c||c.width===0&&c.height===0){f+=t[l];continue}o===null&&(o=c.top),Math.abs(c.top-o)>.5&&(a.push(f),f="",o=c.top),f+=t[l]}return f&&a.push(f),a.length?a:[t]};function Yd(n){let t=4294967295;for(let e=0;e<n.length;e++){t=t^n[e];for(let r=0;r<8;r++)t=t>>>1^(t&1?3988292384:0)}return(t^4294967295)>>>0}function Jd(n,t){const e=new TextEncoder().encode(n),r=t.length,a=new Uint8Array(4+r);a.set(e),a.set(t,4);const o=Yd(a),f=new Uint8Array(8+r+4),l=new DataView(f.buffer);return l.setUint32(0,r,!1),f.set(e,4),f.set(t,8),l.setUint32(8+r,o,!1),f}async function Xd(n,t){const e=Math.round(t/.0254),a=await(await fetch(n)).arrayBuffer(),o=new Uint8Array(a),f=new Uint8Array(9),l=new DataView(f.buffer);l.setUint32(0,e,!1),l.setUint32(4,e,!1),l.setUint8(8,1);const c=Jd("pHYs",f),h=new Uint8Array(o.length+c.length);h.set(o.slice(0,33)),h.set(c,33),h.set(o.slice(33),33+c.length);const m=new Blob([h],{type:"image/png"});return URL.createObjectURL(m)}function Kd(n,t){const e=n.querySelectorAll(".ol-layer canvas, canvas.ol-layer");t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,t.canvas.width,t.canvas.height),e.forEach(r=>{var l,c,h,m;if(!r.width||!r.height)return;const a=((l=r.parentElement)==null?void 0:l.style.opacity)||r.style.opacity;t.globalAlpha=a===""?1:Number(a);const o=(c=r.parentElement)==null?void 0:c.style.backgroundColor;o&&(t.fillStyle=o,t.fillRect(0,0,r.width,r.height));const f=r.style.transform;if(f){const v=(m=(h=f.match(/^matrix\(([^)]*)\)$/))==null?void 0:h[1])==null?void 0:m.split(",").map(Number);(v==null?void 0:v.length)===6&&t.setTransform(...v)}else{const v=getComputedStyle(r),x=parseFloat(v.width)/r.width,p=parseFloat(v.height)/r.height;t.setTransform(x,0,0,p,0,0)}t.drawImage(r,0,0)}),t.globalAlpha=1,t.setTransform(1,0,0,1,0,0)}
vendor: 4,993 bytes, line 7
7async function Zd(n,t,e){const r=n.getView(),a=n.getSize(),o=r.getCenter(),f=r.getResolution(),l=n.getViewport(),c=l.style.width,h=l.style.height,m=r.calculateExtent(a),v=document.createElement("canvas");v.width=t,v.height=e;try{n.setSize([t,e]),l.style.width=`${t}px`,l.style.height=`${e}px`,r.fit(m,{size:[t,e],nearest:!0,duration:0}),await new Promise(p=>{n.once("rendercomplete",p),n.renderSync()});const x=v.getContext("2d");if(!x)throw new Error("Impossible de récupérer le contexte 2D pour le canvas d'export.");return Kd(n.getViewport(),x),v}finally{n.setSize(a),l.style.width=c,l.style.height=h,o&&r.setCenter(o),f&&r.setResolution(f),n.renderSync()}}function It(n){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(n)}var mr=Uint8Array,Kn=Uint16Array,jl=Int32Array,Rl=new mr([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]),Tl=new mr([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]),Lc=new mr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Yu=function(n,t){for(var e=new Kn(31),r=0;r<31;++r)e[r]=t+=1<<n[r-1];for(var a=new jl(e[30]),r=1;r<30;++r)for(var o=e[r];o<e[r+1];++o)a[o]=o-e[r]<<5|r;return{b:e,r:a}},Ju=Yu(Rl,2),Qd=Ju.b,wl=Ju.r;Qd[28]=258,wl[258]=28;var e2=Yu(Tl,0),Nc=e2.r,_l=new Kn(32768);for(var zt=0;zt<32768;++zt){var mi=(zt&43690)>>1|(zt&21845)<<1;mi=(mi&52428)>>2|(mi&13107)<<2,mi=(mi&61680)>>4|(mi&3855)<<4,_l[zt]=((mi&65280)>>8|(mi&255)<<8)>>1}var no=(function(n,t,e){for(var r=n.length,a=0,o=new Kn(t);a<r;++a)n[a]&&++o[n[a]-1];var f=new Kn(t);for(a=1;a<t;++a)f[a]=f[a-1]+o[a-1]<<1;var l;if(e){l=new Kn(1<<t);var c=15-t;for(a=0;a<r;++a)if(n[a])for(var h=a<<4|n[a],m=t-n[a],v=f[n[a]-1]++<<m,x=v|(1<<m)-1;v<=x;++v)l[_l[v]>>c]=h}else for(l=new Kn(r),a=0;a<r;++a)n[a]&&(l[a]=_l[f[n[a]-1]++]>>15-n[a]);return l}),Vi=new mr(288);for(var zt=0;zt<144;++zt)Vi[zt]=8;for(var zt=144;zt<256;++zt)Vi[zt]=9;for(var zt=256;zt<280;++zt)Vi[zt]=7;for(var zt=280;zt<288;++zt)Vi[zt]=8;var os=new mr(32);for(var zt=0;zt<32;++zt)os[zt]=5;var t2=no(Vi,9,0),n2=no(os,5,0),Xu=function(n){return(n+7)/8|0},r2=function(n,t,e){return(e==null||e>n.length)&&(e=n.length),new mr(n.subarray(t,e))},Kr=function(n,t,e){e<<=t&7;var r=t/8|0;n[r]|=e,n[r+1]|=e>>8},eo=function(n,t,e){e<<=t&7;var r=t/8|0;n[r]|=e,n[r+1]|=e>>8,n[r+2]|=e>>16},Qs=function(n,t){for(var e=[],r=0;r<n.length;++r)n[r]&&e.push({s:r,f:n[r]});var a=e.length,o=e.slice();if(!a)return{t:Zu,l:0};if(a==1){var f=new mr(e[0].s+1);return f[e[0].s]=1,{t:f,l:1}}e.sort(function(te,he){return te.f-he.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],h=0,m=1,v=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};m!=a-1;)l=e[e[h].f<e[v].f?h++:v++],c=e[h!=m&&e[h].f<e[v].f?h++:v++],e[m++]={s:-1,f:l.f+c.f,l,r:c};for(var x=o[0].s,r=1;r<a;++r)o[r].s>x&&(x=o[r].s);var p=new Kn(x+1),I=xl(e[m-1],p,0);if(I>t){var r=0,E=0,k=I-t,N=1<<k;for(o.sort(function(he,ce){return p[ce.s]-p[he.s]||he.f-ce.f});r<a;++r){var H=o[r].s;if(p[H]>t)E+=N-(1<<I-p[H]),p[H]=t;else break}for(E>>=k;E>0;){var T=o[r].s;p[T]<t?E-=1<<t-p[T]++-1:++r}for(;r>=0&&E;--r){var R=o[r].s;p[R]==t&&(--p[R],++E)}I=t}return{t:new mr(p),l:I}},xl=function(n,t,e){return n.s==-1?Math.max(xl(n.l,t,e+1),xl(n.r,t,e+1)):t[n.s]=e},kc=function(n){for(var t=n.length;t&&!n[--t];);for(var e=new Kn(++t),r=0,a=n[0],o=1,f=function(c){e[r++]=c},l=1;l<=t;++l)if(n[l]==a&&l!=t)++o;else{if(!a&&o>2){for(;o>138;o-=138)f(32754);o>2&&(f(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(f(a),--o;o>6;o-=6)f(8304);o>2&&(f(o-3<<5|8208),o=0)}for(;o--;)f(a);o=1,a=n[l]}return{c:e.subarray(0,r),n:t}},to=function(n,t){for(var e=0,r=0;r<t.length;++r)e+=n[r]*t[r];return e},Ku=function(n,t,e){var r=e.length,a=Xu(t+2);n[a]=r&255,n[a+1]=r>>8,n[a+2]=n[a]^255,n[a+3]=n[a+1]^255;for(var o=0;o<r;++o)n[a+o+4]=e[o];return(a+4+r)*8},Sc=function(n,t,e,r,a,o,f,l,c,h,m){Kr(t,m++,e),++a[256];for(var v=Qs(a,15),x=v.t,p=v.l,I=Qs(o,15),E=I.t,k=I.l,N=kc(x),H=N.c,T=N.n,R=kc(E),te=R.c,he=R.n,ce=new Kn(19),G=0;G<H.length;++G)++ce[H[G]&31];for(var G=0;G<te.length;++G)++ce[te[G]&31];for(var q=Qs(ce,7),ne=q.t,S=q.l,F=19;F>4&&!ne[Lc[F-1]];--F);var W=h+5<<3,V=to(a,Vi)+to(o,os)+f,J=to(a,x)+to(o,E)+f+14+3*F+to(ce,ne)+2*ce[16]+3*ce[17]+7*ce[18];if(c>=0&&W<=V&&W<=J)return Ku(t,m,n.subarray(c,c+h));var Q,ae,U,Y;if(Kr(t,m,1+(J<V)),m+=2,J<V){Q=no(x,p,0),ae=x,U=no(E,k,0),Y=E;var ue=no(ne,S,0);Kr(t,m,T-257),Kr(t,m+5,he-1),Kr(t,m+10,F-4),m+=14;for(var G=0;G<F;++G)Kr(t,m+3*G,ne[Lc[G]]);m+=3*F;for(var le=[H,te],w=0;w<2;++w)for(var O=le[w],G=0;G<O.length;++G){var D=O[G]&31;Kr(t,m,ue[D]),m+=ne[D],D>15&&(Kr(t,m,O[G]>>5&127),m+=O[G]>>12)}}else Q=t2,ae=Vi,U=n2,Y=os;for(var G=0;G<l;++G){var z=r[G];if(z>255){var D=z>>18&31;eo(t,m,Q[D+257]),m+=ae[D+257],D>7&&(Kr(t,m,z>>23&31),m+=Rl[D]);var K=z&31;eo(t,m,U[K]),m+=Y[K],K>3&&(eo(t,m,z>>5&8191),m+=Tl[K])}else eo(t,m,Q[z]),m+=ae[z]}return eo(t,m,Q[256]),m+ae[256]}
7,i2=new jl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Zu=new mr(0),a2=function(n,t,e,r,a,o){var f=o.z||n.length,l=new mr(r+f+5*(1+Math.ceil(f/7e3))+a),c=l.subarray(r,l.length-a),h=o.l,m=(o.r||0)&7;if(t){m&&(c[0]=o.r>>3);for(var v=i2[t-1],x=v>>13,p=v&8191,I=(1<<e)-1,E=o.p||new Kn(32768),k=o.h||new Kn(I+1),N=Math.ceil(e/3),H=2*N,T=function(_e){return(n[_e]^n[_e+1]<<N^n[_e+2]<<H)&I},R=new jl(25e3),te=new Kn(288),he=new Kn(32),ce=0,G=0,q=o.i||0,ne=0,S=o.w||0,F=0;q+2<f;++q){var W=T(q),V=q&32767,J=k[W];if(E[V]=J,k[W]=V,S<=q){var Q=f-q;if((ce>7e3||ne>24576)&&(Q>423||!h)){m=Sc(n,c,0,R,te,he,G,ne,F,q-F,m),ne=ce=G=0,F=q;for(var ae=0;ae<286;++ae)te[ae]=0;for(var ae=0;ae<30;++ae)he[ae]=0}var U=2,Y=0,ue=p,le=V-J&32767;if(Q>2&&W==T(q-le))for(var w=Math.min(x,Q)-1,O=Math.min(32767,q),D=Math.min(258,Q);le<=O&&--ue&&V!=J;){if(n[q+U]==n[q+U-le]){for(var z=0;z<D&&n[q+z]==n[q+z-le];++z);if(z>U){if(U=z,Y=le,z>w)break;for(var K=Math.min(le,z-2),re=0,ae=0;ae<K;++ae){var fe=q-le+ae&32767,de=E[fe],be=fe-de&32767;be>re&&(re=be,J=fe)}}}V=J,J=E[V],le+=V-J&32767}if(Y){R[ne++]=268435456|wl[U]<<18|Nc[Y];var Ne=wl[U]&31,Ce=Nc[Y]&31;G+=Rl[Ne]+Tl[Ce],++te[257+Ne],++he[Ce],S=q+U,++ce}else R[ne++]=n[q],++te[n[q]]}}for(q=Math.max(q,S);q<f;++q)R[ne++]=n[q],++te[n[q]];m=Sc(n,c,h,R,te,he,G,ne,F,q-F,m),h||(o.r=m&7|c[m/8|0]<<3,m-=7,o.h=k,o.p=E,o.i=q,o.w=S)}else{for(var q=o.w||0;q<f+h;q+=65535){var Se=q+65535;Se>=f&&(c[m/8|0]=h,Se=f),m=Ku(c,m+1,n.subarray(q,Se))}o.i=f}return r2(l,0,r+Xu(m)+a)},Qu=function(){var n=1,t=0;return{p:function(e){for(var r=n,a=t,o=e.length|0,f=0;f!=o;){for(var l=Math.min(f+2655,o);f<l;++f)a+=r+=e[f];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}n=r,t=a},d:function(){return n%=65521,t%=65521,(n&255)<<24|(n&65280)<<8|(t&255)<<8|t>>8}}},o2=function(n,t,e,r,a){if(!a&&(a={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),f=new mr(o.length+n.length);f.set(o),f.set(n,o.length),n=f,a.w=o.length}return a2(n,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+t.mem,e,r,a)},ef=function(n,t,e){for(;e;++t)n[t]=e,e>>>=8},s2=function(n,t){var e=t.level,r=e==0?0:e<6?1:e==9?3:2;if(n[0]=120,n[1]=r<<6|(t.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,t.dictionary){var a=Qu();a.p(t.dictionary),ef(n,2,a.d())}};function Al(n,t){t||(t={});var e=Qu();e.p(n);var r=o2(n,t,t.dictionary?6:2,4);return s2(r,t),ef(r,r.length-4,e.d()),r}var l2=typeof TextDecoder<"u"&&new TextDecoder,c2=0;try{l2.decode(Zu,{stream:!0}),c2=1}catch{}function u2(n){if(Array.isArray(n))return n}function f2(n,t){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var r,a,o,f,l=[],c=!0,h=!1;try{if(o=(e=e.call(n)).next,t!==0)for(;!(c=(r=o.call(e)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(m){h=!0,a=m}finally{try{if(!c&&e.return!=null&&(f=e.return(),Object(f)!==f))return}finally{if(h)throw a}}return l}}function Pc(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function h2(n,t){if(n){if(typeof n=="string")return Pc(n,t);var e={}.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Pc(n,t):void 0}}function d2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cc(n,t){return u2(n)||f2(n,t)||h2(n,t)||d2()}function Ic(n,t="utf8"){return new TextDecoder(t).decode(n)}const p2=new TextEncoder;function m2(n){return p2.encode(n)}const g2=1024*8,v2=(()=>{const n=new Uint8Array(4),t=new Uint32Array(n.buffer);return!((t[0]=1)&n[0])})(),el={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 Dl{constructor(t=g2,e={}){Ct(this,"buffer");Ct(this,"byteLength");Ct(this,"byteOffset");Ct(this,"length");Ct(this,"offset");Ct(this,"lastWrittenByte");Ct(this,"littleEndian");Ct(this,"_data");Ct(this,"_mark");Ct(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const a=e.offset?e.offset>>>0:0,o=t.byteLength-a;let f=a;(ArrayBuffer.isView(t)||t instanceof Dl)&&(t.byteLength!==t.buffer.byteLength&&(f=t.byteOffset+a),t=t.buffer),r?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=t,this.length=o,this.byteLength=o,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,o),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,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.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,e){const r=el[e].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+r);if(this.littleEndian===v2&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+r));l.reverse();const c=new el[e](l.buffer);return this.offset+=r,c.reverse(),c}const f=new el[e](o);return this.offset+=r,f}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 e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return Ic(this.readBytes(t))}decodeText(t=1,e="utf8"){return Ic(this.readBytes(t),e)}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 e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);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 e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(m2(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 Ia(n){let t=n.length;for(;--t>=0;)n[t]=0}const b2=3,y2=258,tf=29,w2=256,_2=w2+1+tf,nf=30,x2=512,A2=new Array((_2+2)*2);Ia(A2);const L2=new Array(nf*2);Ia(L2);const N2=new Array(x2);Ia(N2);const k2=new Array(y2-b2+1);Ia(k2);const S2=new Array(tf);Ia(S2);const P2=new Array(nf);Ia(P2);const C2=(n,t,e,r)=>{let a=n&65535|0,o=n>>>16&65535|0,f=0;for(;e!==0;){f=e>2e3?2e3:e,e-=f;do a=a+t[r++]|0,o=o+a|0;while(--f);a%=65521,o%=65521}return a|o<<16|0};var Ll=C2;const I2=()=>{let n,t=[];for(var e=0;e<256;e++){n=e;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;t[e]=n}return t},E2=new Uint32Array(I2()),O2=(n,t,e,r)=>{const a=E2,o=r+e;n^=-1;for(let f=r;f<o;f++)n=n>>>8^a[(n^t[f])&255];return n^-1};var Er=O2,Nl={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"},rf={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_ER
8ROR:-5,Z_DEFLATED:8};const F2=(n,t)=>Object.prototype.hasOwnProperty.call(n,t);var M2=function(n){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)F2(e,r)&&(n[r]=e[r])}}return n},B2=n=>{let t=0;for(let r=0,a=n.length;r<a;r++)t+=n[r].length;const e=new Uint8Array(t);for(let r=0,a=0,o=n.length;r<o;r++){let f=n[r];e.set(f,a),a+=f.length}return e},af={assign:M2,flattenChunks:B2};let of=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{of=!1}const oo=new Uint8Array(256);for(let n=0;n<256;n++)oo[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;oo[254]=oo[255]=1;var j2=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let t,e,r,a,o,f=n.length,l=0;for(a=0;a<f;a++)e=n.charCodeAt(a),(e&64512)===55296&&a+1<f&&(r=n.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(l),o=0,a=0;o<l;a++)e=n.charCodeAt(a),(e&64512)===55296&&a+1<f&&(r=n.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),e<128?t[o++]=e:e<2048?(t[o++]=192|e>>>6,t[o++]=128|e&63):e<65536?(t[o++]=224|e>>>12,t[o++]=128|e>>>6&63,t[o++]=128|e&63):(t[o++]=240|e>>>18,t[o++]=128|e>>>12&63,t[o++]=128|e>>>6&63,t[o++]=128|e&63);return t};const R2=(n,t)=>{if(t<65534&&n.subarray&&of)return String.fromCharCode.apply(null,n.length===t?n:n.subarray(0,t));let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(n[r]);return e};var T2=(n,t)=>{const e=t||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,t));let r,a;const o=new Array(e*2);for(a=0,r=0;r<e;){let f=n[r++];if(f<128){o[a++]=f;continue}let l=oo[f];if(l>4){o[a++]=65533,r+=l-1;continue}for(f&=l===2?31:l===3?15:7;l>1&&r<e;)f=f<<6|n[r++]&63,l--;if(l>1){o[a++]=65533;continue}f<65536?o[a++]=f:(f-=65536,o[a++]=55296|f>>10&1023,o[a++]=56320|f&1023)}return R2(o,a)},D2=(n,t)=>{t=t||n.length,t>n.length&&(t=n.length);let e=t-1;for(;e>=0&&(n[e]&192)===128;)e--;return e<0||e===0?t:e+oo[n[e]]>t?e:t},kl={string2buf:j2,buf2string:T2,utf8border:D2};function q2(){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 U2=q2;const Ho=16209,z2=16191;var V2=function(t,e){let r,a,o,f,l,c,h,m,v,x,p,I,E,k,N,H,T,R,te,he,ce,G,q,ne;const S=t.state;r=t.next_in,q=t.input,a=r+(t.avail_in-5),o=t.next_out,ne=t.output,f=o-(e-t.avail_out),l=o+(t.avail_out-257),c=S.dmax,h=S.wsize,m=S.whave,v=S.wnext,x=S.window,p=S.hold,I=S.bits,E=S.lencode,k=S.distcode,N=(1<<S.lenbits)-1,H=(1<<S.distbits)-1;e:do{I<15&&(p+=q[r++]<<I,I+=8,p+=q[r++]<<I,I+=8),T=E[p&N];t:for(;;){if(R=T>>>24,p>>>=R,I-=R,R=T>>>16&255,R===0)ne[o++]=T&65535;else if(R&16){te=T&65535,R&=15,R&&(I<R&&(p+=q[r++]<<I,I+=8),te+=p&(1<<R)-1,p>>>=R,I-=R),I<15&&(p+=q[r++]<<I,I+=8,p+=q[r++]<<I,I+=8),T=k[p&H];n:for(;;){if(R=T>>>24,p>>>=R,I-=R,R=T>>>16&255,R&16){if(he=T&65535,R&=15,I<R&&(p+=q[r++]<<I,I+=8,I<R&&(p+=q[r++]<<I,I+=8)),he+=p&(1<<R)-1,he>c){t.msg="invalid distance too far back",S.mode=Ho;break e}if(p>>>=R,I-=R,R=o-f,he>R){if(R=he-R,R>m&&S.sane){t.msg="invalid distance too far back",S.mode=Ho;break e}if(ce=0,G=x,v===0){if(ce+=h-R,R<te){te-=R;do ne[o++]=x[ce++];while(--R);ce=o-he,G=ne}}else if(v<R){if(ce+=h+v-R,R-=v,R<te){te-=R;do ne[o++]=x[ce++];while(--R);if(ce=0,v<te){R=v,te-=R;do ne[o++]=x[ce++];while(--R);ce=o-he,G=ne}}}else if(ce+=v-R,R<te){te-=R;do ne[o++]=x[ce++];while(--R);ce=o-he,G=ne}for(;te>2;)ne[o++]=G[ce++],ne[o++]=G[ce++],ne[o++]=G[ce++],te-=3;te&&(ne[o++]=G[ce++],te>1&&(ne[o++]=G[ce++]))}else{ce=o-he;do ne[o++]=ne[ce++],ne[o++]=ne[ce++],ne[o++]=ne[ce++],te-=3;while(te>2);te&&(ne[o++]=ne[ce++],te>1&&(ne[o++]=ne[ce++]))}}else if((R&64)===0){T=k[(T&65535)+(p&(1<<R)-1)];continue n}else{t.msg="invalid distance code",S.mode=Ho;break e}break}}else if((R&64)===0){T=E[(T&65535)+(p&(1<<R)-1)];continue t}else if(R&32){S.mode=z2;break e}else{t.msg="invalid literal/length code",S.mode=Ho;break e}break}}while(r<a&&o<l);te=I>>
83,r-=te,I-=te<<3,p&=(1<<I)-1,t.next_in=r,t.next_out=o,t.avail_in=r<a?5+(a-r):5-(r-a),t.avail_out=o<l?257+(l-o):257-(o-l),S.hold=p,S.bits=I};const ba=15,Ec=852,Oc=592,Fc=0,tl=1,Mc=2,H2=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]),W2=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,199,75]),$2=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]),G2=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]),Y2=(n,t,e,r,a,o,f,l)=>{const c=l.bits;let h=0,m=0,v=0,x=0,p=0,I=0,E=0,k=0,N=0,H=0,T,R,te,he,ce,G=null,q;const ne=new Uint16Array(ba+1),S=new Uint16Array(ba+1);let F=null,W,V,J;for(h=0;h<=ba;h++)ne[h]=0;for(m=0;m<r;m++)ne[t[e+m]]++;for(p=c,x=ba;x>=1&&ne[x]===0;x--);if(p>x&&(p=x),x===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,l.bits=1,0;for(v=1;v<x&&ne[v]===0;v++);for(p<v&&(p=v),k=1,h=1;h<=ba;h++)if(k<<=1,k-=ne[h],k<0)return-1;if(k>0&&(n===Fc||x!==1))return-1;for(S[1]=0,h=1;h<ba;h++)S[h+1]=S[h]+ne[h];for(m=0;m<r;m++)t[e+m]!==0&&(f[S[t[e+m]]++]=m);if(n===Fc?(G=F=f,q=20):n===tl?(G=H2,F=W2,q=257):(G=$2,F=G2,q=0),H=0,m=0,h=v,ce=o,I=p,E=0,te=-1,N=1<<p,he=N-1,n===tl&&N>Ec||n===Mc&&N>Oc)return 1;for(;;){W=h-E,f[m]+1<q?(V=0,J=f[m]):f[m]>=q?(V=F[f[m]-q],J=G[f[m]-q]):(V=96,J=0),T=1<<h-E,R=1<<I,v=R;do R-=T,a[ce+(H>>E)+R]=W<<24|V<<16|J|0;while(R!==0);for(T=1<<h-1;H&T;)T>>=1;if(T!==0?(H&=T-1,H+=T):H=0,m++,--ne[h]===0){if(h===x)break;h=t[e+f[m]]}if(h>p&&(H&he)!==te){for(E===0&&(E=p),ce+=v,I=h-E,k=1<<I;I+E<x&&(k-=ne[I+E],!(k<=0));)I++,k<<=1;if(N+=1<<I,n===tl&&N>Ec||n===Mc&&N>Oc)return 1;te=H&he,a[te]=p<<24|I<<16|ce-o|0}}return H!==0&&(a[ce+H]=h-E<<24|64<<16|0),l.bits=p,0};var ro=Y2;const J2=0,sf=1,lf=2,{Z_FINISH:Bc,Z_BLOCK:X2,Z_TREES:Wo,Z_OK:Hi,Z_STREAM_END:K2,Z_NEED_DICT:Z2,Z_STREAM_ERROR:or,Z_DATA_ERROR:cf,Z_MEM_ERROR:uf,Z_BUF_ERROR:Q2,Z_DEFLATED:jc}=rf,ds=16180,Rc=16181,Tc=16182,Dc=16183,qc=16184,Uc=16185,zc=16186,Vc=16187,Hc=16188,Wc=16189,ss=16190,Zr=16191,nl=16192,$c=16193,rl=16194,Gc=16195,Yc=16196,Jc=16197,Xc=16198,$o=16199,Go=16200,Kc=16201,Zc=16202,Qc=16203,eu=16204,tu=16205,il=16206,nu=16207,ru=16208,Wt=16209,ff=16210,hf=16211,e5=852,t5=592,n5=15,r5=n5,iu=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function i5(){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 Gi=n=>{if(!n)return 1;const t=n.state;return!t||t.strm!==n||t.mode<ds||t.mode>hf?1:0},df=n=>{if(Gi(n))return or;const t=n.state;return n.total_in=n.total_out=t.total=0,n.msg="",t.wrap&&(n.adler=t.wrap&1),t.mode=ds,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(e5),t.distcode=t.distdyn=new Int32Array(t5),t.sane=1,t.back=-1,Hi},pf=n=>{if(Gi(n))return or;const t=n.state;return t.wsize=0,t.whave=0,t.wnext=0,df(n)},mf=(n,t)=>{let e;if(Gi(n))return or;const r=n.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?or:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,pf(n))},gf=(n,t)=>{if(!n)return or;const e=new i5;n.state=e,e.strm=n,e.window=null,e.mode=ds;const r=mf(n,t);return r!==Hi&&(n.state=null),r},a5=n=>gf(n,r5);let au=!0,al,ol;const o5=n=>{if(au){al=new Int32Array(512),ol=new Int32Array(32);let t=0;for(;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(ro(sf,n.lens,0,288,al,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;ro(lf,n.lens,0,32,ol,0,n.work,{bits:5}),au=!1}n.lencode=al,n.lenbits=9,n.distcode=ol,n.distbits=5},vf=(n,t,e,r)=>{let a;const o=n.state;return o.window===null&&(o.window=new Uint8Array(1<<o.wbits)),o.wsize===0&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0),r>=o.wsize?(o.window.set(t.subarray(e-o.wsize,e),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>
vendor: 5,826 bytes, line 8
8r&&(a=r),o.window.set(t.subarray(e-r,e-r+a),o.wnext),r-=a,r?(o.window.set(t.subarray(e-r,e),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0},s5=(n,t)=>{let e,r,a,o,f,l,c,h,m,v,x,p,I,E,k=0,N,H,T,R,te,he,ce,G;const q=new Uint8Array(4);let ne,S;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Gi(n)||!n.output||!n.input&&n.avail_in!==0)return or;e=n.state,e.mode===Zr&&(e.mode=nl),f=n.next_out,a=n.output,c=n.avail_out,o=n.next_in,r=n.input,l=n.avail_in,h=e.hold,m=e.bits,v=l,x=c,G=Hi;e:for(;;)switch(e.mode){case ds:if(e.wrap===0){e.mode=nl;break}for(;m<16;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(e.wrap&2&&h===35615){e.wbits===0&&(e.wbits=15),e.check=0,q[0]=h&255,q[1]=h>>>8&255,e.check=Er(e.check,q,2,0),h=0,m=0,e.mode=Rc;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((h&255)<<8)+(h>>8))%31){n.msg="incorrect header check",e.mode=Wt;break}if((h&15)!==jc){n.msg="unknown compression method",e.mode=Wt;break}if(h>>>=4,m-=4,ce=(h&15)+8,e.wbits===0&&(e.wbits=ce),ce>15||ce>e.wbits){n.msg="invalid window size",e.mode=Wt;break}e.dmax=1<<e.wbits,e.flags=0,n.adler=e.check=1,e.mode=h&512?Wc:Zr,h=0,m=0;break;case Rc:for(;m<16;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(e.flags=h,(e.flags&255)!==jc){n.msg="unknown compression method",e.mode=Wt;break}if(e.flags&57344){n.msg="unknown header flags set",e.mode=Wt;break}e.head&&(e.head.text=h>>8&1),e.flags&512&&e.wrap&4&&(q[0]=h&255,q[1]=h>>>8&255,e.check=Er(e.check,q,2,0)),h=0,m=0,e.mode=Tc;case Tc:for(;m<32;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}e.head&&(e.head.time=h),e.flags&512&&e.wrap&4&&(q[0]=h&255,q[1]=h>>>8&255,q[2]=h>>>16&255,q[3]=h>>>24&255,e.check=Er(e.check,q,4,0)),h=0,m=0,e.mode=Dc;case Dc:for(;m<16;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}e.head&&(e.head.xflags=h&255,e.head.os=h>>8),e.flags&512&&e.wrap&4&&(q[0]=h&255,q[1]=h>>>8&255,e.check=Er(e.check,q,2,0)),h=0,m=0,e.mode=qc;case qc:if(e.flags&1024){for(;m<16;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}e.length=h,e.head&&(e.head.extra_len=h),e.flags&512&&e.wrap&4&&(q[0]=h&255,q[1]=h>>>8&255,e.check=Er(e.check,q,2,0)),h=0,m=0}else e.head&&(e.head.extra=null);e.mode=Uc;case Uc:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(ce=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(o,o+p),ce)),e.flags&512&&e.wrap&4&&(e.check=Er(e.check,r,p,o)),l-=p,o+=p,e.length-=p),e.length))break e;e.length=0,e.mode=zc;case zc:if(e.flags&2048){if(l===0)break e;p=0;do ce=r[o+p++],e.head&&ce&&e.length<65536&&(e.head.name+=String.fromCharCode(ce));while(ce&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=Er(e.check,r,p,o)),l-=p,o+=p,ce)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Vc;case Vc:if(e.flags&4096){if(l===0)break e;p=0;do ce=r[o+p++],e.head&&ce&&e.length<65536&&(e.head.comment+=String.fromCharCode(ce));while(ce&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=Er(e.check,r,p,o)),l-=p,o+=p,ce)break e}else e.head&&(e.head.comment=null);e.mode=Hc;case Hc:if(e.flags&512){for(;m<16;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(e.wrap&4&&h!==(e.check&65535)){n.msg="header crc mismatch",e.mode=Wt;break}h=0,m=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=Zr;break;case Wc:for(;m<32;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}n.adler=e.check=iu(h),h=0,m=0,e.mode=ss;case ss:if(e.havedict===0)return n.next_out=f,n.avail_out=c,n.next_in=o,n.avail_in=l,e.hold=h,e.bits=m,Z2;n.adler=e.check=1,e.mode=Zr;case Zr:if(t===X2||t===Wo)break e;case nl:if(e.last){h>>>=m&7,m-=m&7,e.mode=il;break}for(;m<3;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}switch(e.last=h&1,h>>>=1,m-=1,h&3){case 0:e.mode=$c;break;case 1:if(o5(e),e.mode=$o,t===Wo){h>>>=2,m-=2;break e}break;case 2:e.mode=Yc;break;case 3:n.msg="invalid block type",e.mode=Wt}h>>>=2,m-=2;break;case $c:for(h>>>=m&7,m-=m&7;m<32;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if((h&65535)!==(h>>>16^65535)){n.msg="invalid stored block lengths",e.mode=Wt;break}if(e.length=h&65535,h=0,m=0,e.mode=rl,t===Wo)break e;case rl:e.mode=Gc;case Gc:if(p=e.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break e;a.set(r.subarray(o,o+p),f),l-=p,o+=p,c-=p,f+=p,e.length-=p;break}e.mode=Zr;break;case Yc:for(;m<14;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(e.nlen=(h&31)+257,h>>>=5,m-=5,e.ndist=(h&31)+1,h>>>=5,m-=5,e.ncode=(h&15)+4,h>>>=4,m-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=Wt;break}e.have=0,e.mode=Jc;case Jc:for(;e.have<e.ncode;){for(;m<3;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}e.lens[F[e.have++]]=h&7,h>>>=3,m-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,ne={bits:e.lenbits},G=ro(J2,e.lens,0,19,e.lencode,0,e.work,ne),e.lenbits=ne.bits,G){n.msg="invalid code lengths set",e.mode=Wt;break}e.have=0,e.mode=Xc;case Xc:for(;e.have<e.nlen+e.ndist;){for(;k=e.lencode[h&(1<<e.lenbits)-1],N=k>>>24,H=k>>>16&255,T=k&65535,!(N<=m);){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(T<16)h>>>=N,m-=N,e.lens[e.have++]=T;else{if(T===16){for(S=N+2;m<S;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(h>>>=N,m-=N,e.have===0){n.msg="invalid bit length repeat",e.mode=Wt;break}ce=e.lens[e.have-1],p=3+(h&3),h>>>=2,m-=2}else if(T===17){for(S=N+3;m<S;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}h>>>=N,m-=N,ce=0,p=3+(h&7),h>>>=3,m-=3}else{for(S=N+7;m<S;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}h>>>=N,m-=N,ce=0,p=11+(h&127),h>>>=7,m-=7}if(e.have+p>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=Wt;break}for(;p--;)e.lens[e.have++]=ce}}if(e.mode===Wt)break;if(e.lens[256]===0){n.msg="invalid code -- missing end-of-block",e.mode=Wt;break}if(e.lenbits=9,ne={bits:e.lenbits},G=ro(sf,e.lens,0,e.nlen,e.lencode,0,e.work,ne),e.lenbits=ne.bits,G){n.msg="invalid literal/lengths set",e.mode=Wt;break}if(e.distbits=6,e.distcode=e.distdyn,ne={bits:e.distbits}
8,G=ro(lf,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,ne),e.distbits=ne.bits,G){n.msg="invalid distances set",e.mode=Wt;break}if(e.mode=$o,t===Wo)break e;case $o:e.mode=Go;case Go:if(l>=6&&c>=258){n.next_out=f,n.avail_out=c,n.next_in=o,n.avail_in=l,e.hold=h,e.bits=m,V2(n,x),f=n.next_out,a=n.output,c=n.avail_out,o=n.next_in,r=n.input,l=n.avail_in,h=e.hold,m=e.bits,e.mode===Zr&&(e.back=-1);break}for(e.back=0;k=e.lencode[h&(1<<e.lenbits)-1],N=k>>>24,H=k>>>16&255,T=k&65535,!(N<=m);){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(H&&(H&240)===0){for(R=N,te=H,he=T;k=e.lencode[he+((h&(1<<R+te)-1)>>R)],N=k>>>24,H=k>>>16&255,T=k&65535,!(R+N<=m);){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}h>>>=R,m-=R,e.back+=R}if(h>>>=N,m-=N,e.back+=N,e.length=T,H===0){e.mode=tu;break}if(H&32){e.back=-1,e.mode=Zr;break}if(H&64){n.msg="invalid literal/length code",e.mode=Wt;break}e.extra=H&15,e.mode=Kc;case Kc:if(e.extra){for(S=e.extra;m<S;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}e.length+=h&(1<<e.extra)-1,h>>>=e.extra,m-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Zc;case Zc:for(;k=e.distcode[h&(1<<e.distbits)-1],N=k>>>24,H=k>>>16&255,T=k&65535,!(N<=m);){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if((H&240)===0){for(R=N,te=H,he=T;k=e.distcode[he+((h&(1<<R+te)-1)>>R)],N=k>>>24,H=k>>>16&255,T=k&65535,!(R+N<=m);){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}h>>>=R,m-=R,e.back+=R}if(h>>>=N,m-=N,e.back+=N,H&64){n.msg="invalid distance code",e.mode=Wt;break}e.offset=T,e.extra=H&15,e.mode=Qc;case Qc:if(e.extra){for(S=e.extra;m<S;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}e.offset+=h&(1<<e.extra)-1,h>>>=e.extra,m-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=Wt;break}e.mode=eu;case eu:if(c===0)break e;if(p=x-c,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=Wt;break}p>e.wnext?(p-=e.wnext,I=e.wsize-p):I=e.wnext-p,p>e.length&&(p=e.length),E=e.window}else E=a,I=f-e.offset,p=e.length;p>c&&(p=c),c-=p,e.length-=p;do a[f++]=E[I++];while(--p);e.length===0&&(e.mode=Go);break;case tu:if(c===0)break e;a[f++]=e.length,c--,e.mode=Go;break;case il:if(e.wrap){for(;m<32;){if(l===0)break e;l--,h|=r[o++]<<m,m+=8}if(x-=c,n.total_out+=x,e.total+=x,e.wrap&4&&x&&(n.adler=e.check=e.flags?Er(e.check,a,x,f-x):Ll(e.check,a,x,f-x)),x=c,e.wrap&4&&(e.flags?h:iu(h))!==e.check){n.msg="incorrect data check",e.mode=Wt;break}h=0,m=0}e.mode=nu;case nu:if(e.wrap&&e.flags){for(;m<32;){if(l===0)break e;l--,h+=r[o++]<<m,m+=8}if(e.wrap&4&&h!==(e.total&4294967295)){n.msg="incorrect length check",e.mode=Wt;break}h=0,m=0}e.mode=ru;case ru:G=K2;break e;case Wt:G=cf;break e;case ff:return uf;case hf:default:return or}return n.next_out=f,n.avail_out=c,n.next_in=o,n.avail_in=l,e.hold=h,e.bits=m,(e.wsize||x!==n.avail_out&&e.mode<Wt&&(e.mode<il||t!==Bc))&&vf(n,n.output,n.next_out,x-n.avail_out),v-=n.avail_in,x-=n.avail_out,n.total_in+=v,n.total_out+=x,e.total+=x,e.wrap&4&&x&&(n.adler=e.check=e.flags?Er(e.check,a,x,n.next_out-x):Ll(e.check,a,x,n.next_out-x)),n.data_type=e.bits+(e.last?64:0)+(e.mode===Zr?128:0)+(e.mode===$o||e.mode===rl?256:0),(v===0&&x===0||t===Bc)&&G===Hi&&(G=Q2),G},l5=n=>{if(Gi(n))return or;let t=n.state;return t.window&&(t.window=null),n.state=null,Hi},c5=(n,t)=>{if(Gi(n))return or;const e=n.state;return(e.wrap&2)===0?or:(e.head=t,t.done=!1,Hi)},u5=(n,t)=>{const e=t.length;let r,a,o;return Gi(n)||(r=n.state,r.wrap!==0&&r.mode!==ss)?or:r.mode===ss&&(a=1,a=Ll(a,t,e,0),a!==r.check)?cf:(o=vf(n,t,e,e),o?(r.mode=ff,uf):(r.havedict=1,Hi))};var f5=pf,h5=mf,d5=df,p5=a5,m5=gf,g5=s5,v5=l5,b5=c5,y5=u5,w5="pako inflate (from Nodeca project)",Fr={inflateReset:f5,inflateReset2:h5,inflateResetKeep:d5,inflateInit:p5,inflateInit2:m5,inflate:g5,inflateEnd:v5,inflateGetHeader:b5,inflateSetDictionary:y5,inflateInfo:w5};function _5(){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 x5=_5;const bf=Object.prototype.toString,{Z_NO_FLUSH:A5,Z_FINISH:ou,Z_OK:La,Z_STREAM_END:sl,Z_NEED_DICT:ll,Z_STREAM_ERROR:L5,Z_DATA_ERROR:su,Z_MEM_ERROR:N5,Z_BUF_ERROR:lu}=rf,k5={chunkSize:1024*64,windowBits:15,to:""};function so(n){this.options=af.assign({},k5,n||{});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&&!(n&&n.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 U2,this.strm.avail_out=0;let e=Fr.inflateInit2(this.strm,t.windowBits);if(e!==La)throw new Error(Nl[e]);if(this.header=new x5,Fr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=kl.string2buf(t.dictionary):bf.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Fr.inflateSetDictionary(this.strm,t.dictionary),e!==La)))throw new Error(Nl[e])}so.prototype.push=function(n,t){const e=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let o,f,l;if(this.ended)return!1;for(t===~~t?f=t:f=t===!0?ou:A5,bf.call(n)==="[object ArrayBuffer]"?e.input=new
8Uint8Array(n):e.input=n,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),o=Fr.inflate(e,f),o===ll&&a&&(o=Fr.inflateSetDictionary(e,a),o===La?o=Fr.inflate(e,f):o===su&&(o=ll));e.avail_in>0&&o===sl&&e.state.wrap&2&&e.state.flags!==0&&e.input[e.next_in]!==0;)Fr.inflateReset(e),o=Fr.inflate(e,f);switch(o){case L5:case su:case ll:case N5:return this.onEnd(o),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||o===sl||f>0))if(this.options.to==="string"){let c=kl.utf8border(e.output,e.next_out),h=e.next_out-c,m=kl.buf2string(e.output,c);e.next_out=h,e.avail_out=r-h,h&&e.output.set(e.output.subarray(c,c+h),0),this.onData(m)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out)),e.avail_out=0,e.next_out=0;if(!((o===La||o===lu)&&l===0)){if(o===sl)return o=Fr.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(e.avail_in===0){if(f===ou)return o=Fr.inflateEnd(this.strm),this.onEnd(o===La?lu:o),this.ended=!0,!1;break}}}return!0};so.prototype.onData=function(n){this.chunks.push(n)};so.prototype.onEnd=function(n){n===La&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=af.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function S5(n,t){const e=new so(t);if(e.push(n,!0),e.err)throw e.msg||Nl[e.err];return e.result}var P5=so,C5=S5,I5={Inflate:P5,inflate:C5};const{Inflate:E5,inflate:O5}=I5;var cu=E5,F5=O5;const yf=[];for(let n=0;n<256;n++){let t=n;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t=t>>>1;yf[n]=t}const uu=4294967295;function M5(n,t,e){let r=n;for(let a=0;a<e;a++)r=yf[(r^t[a])&255]^r>>>8;return r}function B5(n,t){return(M5(uu,n,t)^uu)>>>0}function fu(n,t,e){const r=n.readUint32(),a=B5(new Uint8Array(n.buffer,n.byteOffset+n.offset-t-4,t),t);if(a!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${a}`)}function wf(n,t,e){for(let r=0;r<e;r++)t[r]=n[r]}function _f(n,t,e,r){let a=0;for(;a<r;a++)t[a]=n[a];for(;a<e;a++)t[a]=n[a]+t[a-r]&255}function xf(n,t,e,r){let a=0;if(e.length===0)for(;a<r;a++)t[a]=n[a];else for(;a<r;a++)t[a]=n[a]+e[a]&255}function Af(n,t,e,r,a){let o=0;if(e.length===0){for(;o<a;o++)t[o]=n[o];for(;o<r;o++)t[o]=n[o]+(t[o-a]>>1)&255}else{for(;o<a;o++)t[o]=n[o]+(e[o]>>1)&255;for(;o<r;o++)t[o]=n[o]+(t[o-a]+e[o]>>1)&255}}function Lf(n,t,e,r,a){let o=0;if(e.length===0){for(;o<a;o++)t[o]=n[o];for(;o<r;o++)t[o]=n[o]+t[o-a]&255}else{for(;o<a;o++)t[o]=n[o]+e[o]&255;for(;o<r;o++)t[o]=n[o]+j5(t[o-a],e[o],e[o-a])&255}}function j5(n,t,e){const r=n+t-e,a=Math.abs(r-n),o=Math.abs(r-t),f=Math.abs(r-e);return a<=o&&a<=f?n:o<=f?t:e}function R5(n,t,e,r,a,o){switch(n){case 0:wf(t,e,a);break;case 1:_f(t,e,a,o);break;case 2:xf(t,e,r,a);break;case 3:Af(t,e,r,a,o);break;case 4:Lf(t,e,r,a,o);break;default:throw new Error(`Unsupported filter: ${n}`)}}const T5=new Uint16Array([255]),D5=new Uint8Array(T5.buffer),q5=D5[0]===255;function U5(n){const{data:t,width:e,height:r,channels:a,depth:o}=n,f=[{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}],l=Math.ceil(o/8)*a,c=new Uint8Array(r*e*l);let h=0;for(let m=0;m<7;m++){const v=f[m],x=Math.ceil((e-v.x)/v.xStep),p=Math.ceil((r-v.y)/v.yStep);if(x<=0||p<=0)continue;const I=x*l,E=new Uint8Array(I);for(let k=0;k<p;k++){const N=t[h++],H=t.subarray(h,h+I);h+=I;const T=new Uint8Array(I);R5(N,H,T,E,I,l),E.set(T);for(let R=0;R<x;R++){const te=v.x+R*v.xStep,he=v.y+k*v.yStep;if(!(te>=e||he>=r))for(let ce=0;ce<l;ce++)c[(he*e+te)*l+ce]=T[R*l+ce]}}}if(o===16){const m=new Uint16Array(c.buffer);if(q5)for(let v=0;v<m.length;v++)m[v]=z5(m[v]);return m}else return c}function z5(n){return(n&255)<<8|n>>8&255}const V5=new Uint16Array([255]),H5=new Uint8Array(V5.buffer),W5=H5[0]===255,$5=new Uint8Array(0);function hu(n){const{data:t,width:e,height:r,channels:a,depth:o}=n,f=Math.ceil(o/8)*a,l=Math.ceil(o/8*a*e),c=new Uint8Array(r*l);let h=$5,m=0,v,x;for(let p=0;p<r;p++){switch(v=t.subarray(m+1,m+1+l),x=c.subarray(p*l,(p+1)*l),t[m]){case 0:wf(v,x,l);break;case 1:_f(v,x,l,f);break;case 2:xf(v,x,h,l);break;case 3:Af(v,x,h,l,f);break;case 4:Lf(v,x,h,l,f);break;default:throw new Error(`Unsupported filter: ${t[m]}`)}h=x,m+=l+1}if(o===16){const p=new Uint16Array(c.buffer);if(W5)for(let I=0;I<p.length;I++)p[I]=G5(p[I]);return p}else return c}function G5(n){return(n&255)<<8|n>>8&255}const Qo=Uint8Array.of(137,80,78,71,13,10,26,10);function du(n){if(!Y5(n.readBytes(Qo.length)))throw new Error("wrong PNG signature")}function Y5(n){if(n.length<Qo.length)return!1;for(let t=0;t<Qo.length;t++)if(n[t]!==Qo[t])return!1;return!0}const J5="tEXt",X5=0,Nf=new TextDecoder("latin1");function K5(n){if(Q5(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const Z5=/^[\u0000-\u00FF]*$/;function Q5(n){if(!Z5.test(n))throw new Error("invalid latin1 text")}function e0(n,t,e){const r=kf(t);n[r]=t0(t,e-r.length-1)}function kf(n){for(n.mark();n.readByte()!==X5;);const t=n.offset;n.reset();const e=Nf.decode(n.readBytes(t-n.offset-1));return n.skip(1),K5(e),e}function t0(n,t){return Nf.decode(n.readBytes(t))}const Xn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},cl={UNKNOWN:-1,DEFLATE:0},pu={UNKNOWN:-1,ADAPTIVE:0},ul={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Yo={NONE:0,BACKGROUND:1,PREVIOUS:2},fl={SOURCE:0,OVER:1};
8class n0 extends Dl{constructor(e,r={}){super(e);Ct(this,"_checkCrc");Ct(this,"_inflator");Ct(this,"_png");Ct(this,"_apng");Ct(this,"_end");Ct(this,"_hasPalette");Ct(this,"_palette");Ct(this,"_hasTransparency");Ct(this,"_transparency");Ct(this,"_compressionMethod");Ct(this,"_filterMethod");Ct(this,"_interlaceMethod");Ct(this,"_colorType");Ct(this,"_isAnimated");Ct(this,"_numberOfFrames");Ct(this,"_numberOfPlays");Ct(this,"_frames");Ct(this,"_writingDataChunks");const{checkCrc:a=!1}=r;this._checkCrc=a,this._inflator=new cu,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=cl.UNKNOWN,this._filterMethod=pu.UNKNOWN,this._interlaceMethod=ul.UNKNOWN,this._colorType=Xn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(du(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(du(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const a=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case J5:e0(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-a!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?fu(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const a=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(e);break;default:this.decodeChunk(e,r),this.offset=a+e;break}if(this.offset-a!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?fu(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=r0(this.readUint8());const r=this.readUint8();this._colorType=r;let a;switch(r){case Xn.GREYSCALE:a=1;break;case Xn.TRUECOLOUR:a=3;break;case Xn.INDEXED_COLOUR:a=1;break;case Xn.GREYSCALE_ALPHA:a=2;break;case Xn.TRUECOLOUR_ALPHA:a=4;break;case Xn.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==cl.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 e={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(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const a=[];this._palette=a;for(let o=0;o<r;o++)a.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,a=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,a,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,a=this.offset+this.byteOffset;if(a+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,a,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Xn.GREYSCALE:case Xn.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alph
8a values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case Xn.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const a=this.readByte();this._palette[r].push(a)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case Xn.UNKNOWN:case Xn.GREYSCALE_ALPHA:case Xn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=kf(this),a=this.readUint8();if(a!==cl.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${a}`);const o=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:F5(o)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),a=this.readByte();this._png.resolution={x:e,y:r,unit:a}}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 e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].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)},a=this._frames.at(e);if(a){if(a.data=hu({data:a.data,width:a.width,height:a.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||a.xOffset===0&&a.yOffset===0&&a.width===this._png.width&&a.height===this._png.height)r.data=a.data;else{const o=this._apng.frames.at(e-1);this.disposeFrame(a,o,r),this.addFrameDataToCanvas(r,a)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,a){switch(e.disposeOp){case Yo.NONE:break;case Yo.BACKGROUND:for(let o=0;o<this._png.height;o++)for(let f=0;f<this._png.width;f++){const l=(o*e.width+f)*this._png.channels;for(let c=0;c<this._png.channels;c++)a.data[l+c]=0}break;case Yo.PREVIOUS:a.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const a=1<<this._png.depth,o=(f,l)=>{const c=((f+r.yOffset)*this._png.width+r.xOffset+l)*this._png.channels,h=(f*r.width+l)*this._png.channels;return{index:c,frameIndex:h}};switch(r.blendOp){case fl.SOURCE:for(let f=0;f<r.height;f++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:h}=o(f,l);for(let m=0;m<this._png.channels;m++)e.data[c+m]=r.data[h+m]}break;case fl.OVER:for(let f=0;f<r.height;f++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:h}=o(f,l);for(let m=0;m<this._png.channels;m++){const v=r.data[h+this._png.channels-1]/a,x=m%(this._png.channels-1)===0?1:r.data[h+m],p=Math.floor(v*x+(1-v)*e.data[c+m]);e.data[c+m]+=p}}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 e=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==pu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ul.NO_INTERLACE)this._png.data=hu({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===ul.ADAM7)this._png.data=U5({data:e,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 e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Yo.NONE,blendOp:fl.SOURCE,data:e}),this._inflator=new cu,this._writingDataChunks=!1}}function r0(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}var mu;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(mu||(mu={}));function i0(n,t){return new n0(n,t).decode()}var Qe=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function hl(){Qe.console&&typeof Qe.console.log=="function"&&Qe.console.log.apply(Qe.console,arguments)}
8var Mt={log:hl,warn:function(n){Qe.console&&(typeof Qe.console.warn=="function"?Qe.console.warn.apply(Qe.console,arguments):hl.call(null,arguments))},error:function(n){Qe.console&&(typeof Qe.console.error=="function"?Qe.console.error.apply(Qe.console,arguments):hl(n))}};function dl(n,t,e){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Di(r.response,t,e)},r.onerror=function(){Mt.error("could not download file")},r.send()}function gu(n){var t=new XMLHttpRequest;t.open("HEAD",n,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Jo(n){try{n.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),n.dispatchEvent(t)}}var Di=Qe.saveAs||((typeof window>"u"?"undefined":It(window))!=="object"||window!==Qe?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,t,e){var r=Qe.URL||Qe.webkitURL,a=document.createElement("a");t=t||n.name||"download",a.download=t,a.rel="noopener",typeof n=="string"?(a.href=n,a.origin!==location.origin?gu(a.href)?dl(n,t,e):Jo(a,a.target="_blank"):Jo(a)):(a.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){Jo(a)},0))}:"msSaveOrOpenBlob"in navigator?function(n,t,e){if(t=t||n.name||"download",typeof n=="string")if(gu(n))dl(n,t,e);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){Jo(r)})}else navigator.msSaveOrOpenBlob((function(a,o){return o===void 0?o={autoBom:!1}:It(o)!=="object"&&(Mt.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(n,e),t)}:function(n,t,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return dl(n,t,e);var a=n.type==="application/octet-stream",o=/constructor/i.test(Qe.HTMLElement)||Qe.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||a&&o)&&(typeof FileReader>"u"?"undefined":It(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=f?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=m:location=m,r=null},l.readAsDataURL(n)}else{var c=Qe.URL||Qe.webkitURL,h=c.createObjectURL(n);r?r.location=h:location.href=h,r=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});/** 9 * A class to parse color values 10 * @author Stoyan Stefanov <[email protected]> 11 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 12 * @license Use it if you like it 13 */function Sf(n){var t;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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:"90ee9
130",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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var a=e[r].re,o=e[r].process,f=a.exec(n);f&&(t=o(f),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 l=this.r.toString(16),c=this.g.toString(16),h=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),h.length==1&&(h="0"+h),"#"+l+c+h}}var es=Qe.atob.bind(Qe),vu=Qe.btoa.bind(Qe);/** 14 * @license 15 * Joseph Myers does not specify a particular license for his work. 16 * 17 * Author: Joseph Myers 18 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 19 * 20 * Modified by: Owen Leong 21 */function pl(n,t){var e=n[0],r=n[1],a=n[2],o=n[3];e=kn(e,r,a,o,t[0],7,-680876936),o=kn(o,e,r,a,t[1],12,-389564586),a=kn(a,o,e,r,t[2],17,606105819),r=kn(r,a,o,e,t[3],22,-1044525330),e=kn(e,r,a,o,t[4],7,-176418897),o=kn(o,e,r,a,t[5],12,1200080426),a=kn(a,o,e,r,t[6],17,-1473231341),r=kn(r,a,o,e,t[7],22,-45705983),e=kn(e,r,a,o,t[8],7,1770035416),o=kn(o,e,r,a,t[9],12,-1958414417),a=kn(a,o,e,r,t[10],17,-42063),r=kn(r,a,o,e,t[11],22,-1990404162),e=kn(e,r,a,o,t[12],7,1804603682),o=kn(o,e,r,a,t[13],12,-40341101),a=kn(a,o,e,r,t[14],17,-1502002290),e=Sn(e,r=kn(r,a,o,e,t[15],22,1236535329),a,o,t[1],5,-165796510),o=Sn(o,e,r,a,t[6],9,-1069501632),a=Sn(a,o,e,r,t[11],14,643717713),r=Sn(r,a,o,e,t[0],20,-373897302),e=Sn(e,r,a,o,t[5],5,-701558691),o=Sn(o,e,r,a,t[10],9,38016083),a=Sn(a,o,e,r,t[15],14,-660478335),r=Sn(r,a,o,e,t[4],20,-405537848),e=Sn(e,r,a,o,t[9],5,568446438),o=Sn(o,e,r,a,t[14],9,-1019803690),a=Sn(a,o,e,r,t[3],14,-187363961),r=Sn(r,a,o,e,t[8],20,1163531501),e=Sn(e,r,a,o,t[13],5,-1444681467),o=Sn(o,e,r,a,t[2],9,-51403784),a=Sn(a,o,e,r,t[7],14,1735328473),e=Pn(e,r=Sn(r,a,o,e,t[12],20,-1926607734),a,o,t[5],4,-378558),o=Pn(o,e,r,a,t[8],11,-2022574463),a=Pn(a,o,e,r,t[11],16,1839030562),r=Pn(r,a,o,e,t[14],23,-35309556),e=Pn(e,r,a,o,t[1],4,-1530992060),o=Pn(o,e,r,a,t[4],11,1272893353),a=Pn(a,o,e,r,t[7],16,-155497632),r=Pn(r,a,o,e,t[10],23,-1094730640),e=Pn(e,r,a,o,t[13],4,681279174),o=Pn(o,e,r,a,t[0],11,-358537222),a=Pn(a,o,e,r,t[3],16,-722521979),r=Pn(r,a,o,e,t[6],23,76029189),e=Pn(e,r,a,o,t[9],4,-640364487),o=Pn(o,e,r,a,t[12],11,-421815835),a=Pn(a,o,e,r,t[15],16,530742520),e=Cn(e,r=Pn(r,a,o,e,t[2],23,-995338651),a,o,t[0],6,-198630844),o=Cn(o,e,r,a,t[7],10,1126891415),a=Cn(a,o,e,r,t[14],15,-1416354905),r=Cn(r,a,o,e,t[5],21,-57434055),e=Cn(e,r,a,o,t[12],6,1700485571),o=Cn(o,e,r,a,t[3],10,-1894986606),a=Cn(a,o,e,r,t[10],15,-1051523),r=Cn(r,a,o,e,t[1],21,-2054922799),e=Cn(e,r,a,o,t[8],6,1873313359),o=Cn(o,e,r,a,t[15],10,-30611744),a=Cn(a,o,e,r,t[6],15,-1560198380),r=Cn(r,a,o,e,t[13],21,1309151649),e=Cn(e,r,a,o,t[4],6,-145523070),o=Cn(o,e,r,a,t[11],10,-1120210379),a=Cn(a,o,e,r,t[2],15,718787259),r=Cn(r,a,o,e,t[9],21,-343485551),n[0]=vi(e,n[0]),n[1]=vi(r,n[1]),n[2]=vi(a,n[2]),n[3]=vi(o,n[3])}function ps(n,t,e,r,a,o){return t=vi(vi(t,n),vi(r,o)),vi(t<<a|t>>>32-a,e)}function kn(n,t,e,r,a,o,f){return ps(t&e|~t&r,n,t,a,o,f)}function Sn(n,t,e,r,a,o,f){return ps(t&r|e&~r,n,t,a,o,f)}function Pn(n,t,e,r,a,o,f){return ps(t^e^r,n,t,a,o,f)}function Cn(n,t,e,r,a,o,f){return ps(e^(t|~r),n,t,a,o,f)}function Pf(n){var t,e=n.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=n.length;t+=64)pl(r,a0(n.substring(t-64,t)));n=n.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<n.length;t++)a[t>>2]|=n.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(pl(r,a),t=0;t<16;t++)a[t]=0;return a[14]=8*e,pl(r,a),r}function a0(n){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=n.charCodeAt(t)+(n.charCodeAt(t+1)<<8)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+3)<<24);return e}var bu="0123456789abcdef".split("");function o0(n){for(var t="",e=0;e<4;e++)t+=bu[n>>8*e+4&15]+bu[n>>8*e&15];return t}function s0(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Sl(n){return Pf(n).map(s0).join("")}var l0=(function(n){for(var t=0;t<n.length;t++)n[t]=o0(n[t]);return n.join("")})(Pf("hello"))!="5d41402abc4b2a76b9719d911017c592";function vi(n,t){if(l0){var e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}return n+t&4294967295}/** 22 * @license 23 * FPDF is released under a permissive license: there is no usage restriction. 24 * You may embed it freely in your application (commercial or not), with or 25 * without modifications. 26 * 27 * Reference: http://www.fpdf.org/en/script/script37.php 28 */function Pl(n,t){var e,r,a,o;if(n!==e){for(var f=(a=n,o=1+(256/n.length|0),new Array(o+1).join(a)),l=[],c=0;c<256;c++)l[c]=c;var h=0;for(c=0;c<256;c++){var m=l[c];h=(h+m+f.charCodeAt(c))%256,l[c]=l[h],l[h]=m}e=n,r=l}else l=r;var v=t.length,x=0,p=0,I="";for(c=0;c<v;c++)p=(p+(m=l[x=(x+1)%256]))%256,l[x]=l[p],l[p]=m,f=l[(l[x]+l[p])%256],I+=String.fromCharCode(t.charCodeAt(c)^f);return I}/** 29 * @license 30 * Licensed under the MIT License. 31 * http://opensource.org/licenses/mit-license 32 * Author: Owen Leong (@owenl131) 33 * Date: 15 Oct 2020 34 * References: 35 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 36 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 37 * http://www.fpdf.org/en/script/script37.php 38 */var yu={print:4,modify:8,copy:16,"annot-forms":32};function _a(n,t,e,r){this.v=1,this.r=2;var a=192;
38n.forEach(function(l){if(yu.perm!==void 0)throw new Error("Invalid permission: "+l);a+=yu[l]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var o=(t+this.padding).substr(0,32),f=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,f),this.P=-(1+(255^a)),this.encryptionKey=Sl(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Pl(this.encryptionKey,this.padding)}function xa(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var t="",e=n.length,r=0;r<e;r++){var a=n.charCodeAt(r);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):n[r]}return t}function wu(n){if(It(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,a){if(a=a||!1,typeof e!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var o=Math.random().toString(35);return t[e][o]=[r,!!a],o},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var o in t[e]){var f=t[e][o];try{f[0].apply(n,r)}catch(l){Qe.console&&Mt.error("jsPDF PubSub Error",l.message,l)}f[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ls(n){if(!(this instanceof ls))return new ls(n);var t="opacity,stroke-opacity".split(",");for(var e in n)n.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=n[e]);this.id="",this.objectNumber=-1}function Cf(n,t){this.gState=n,this.matrix=t,this.id="",this.objectNumber=-1}function qi(n,t,e,r,a){if(!(this instanceof qi))return new qi(n,t,e,r,a);this.type=n==="axial"?2:3,this.coords=t,this.colors=e,Cf.call(this,r,a)}function Aa(n,t,e,r,a){if(!(this instanceof Aa))return new Aa(n,t,e,r,a);this.boundingBox=n,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,Cf.call(this,r,a)}function We(n){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],o=arguments[3],f=[],l=1,c=16,h="S",m=null;It(n=n||{})==="object"&&(e=n.orientation,r=n.unit||r,a=n.format||a,o=n.compress||n.compressPdf||o,(m=n.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(t=n.precision),n.floatPrecision!==void 0&&(c=n.floatPrecision),h=n.defaultPathOperation||"S"),f=n.filters||(o===!0?["FlateEncode"]:f),r=r||"mm",e=(""+(e||"P")).toLowerCase();var v=n.putOnlyUsedFonts||!1,x={},p={internal:{},__private__:{}};p.__private__.PubSub=wu;var I="1.3",E=p.__private__.getPdfVersion=function(){return I};p.__private__.setPdfVersion=function(u){I=u};var k={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]};p.__private__.getPageFormats=function(){return k};var N=p.__private__.getPageFormat=function(u){return k[u]};a=a||"a4";var H="compat",T="advanced",R=H;function te(){this.saveGraphicsState(),L(new Xe(tt,0,0,-tt,0,ki()*tt).toString()+" cm"),this.setFontSize(this.getFontSize()/tt),h="n",R=T}function he(){this.restoreGraphicsState(),h="S",R=H}var ce=p.__private__.combineFontStyleAndFontWeight=function(u,b){if(u=="bold"&&b=="normal"||u=="bold"&&b==400||u=="normal"&&b=="italic"||u=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(u=b==400||b==="normal"?u==="italic"?"italic":"normal":b!=700&&b!=="bold"||u!=="normal"?(b==700?"bold":b)+""+u:"bold"),u};p.advancedAPI=function(u){var b=R===H;return b&&te.call(this),typeof u!="function"||(u(this),b&&he.call(this)),this},p.compatAPI=function(u){var b=R===T;return b&&he.call(this),typeof u!="function"||(u(this),b&&te.call(this)),this},p.isAdvancedAPI=function(){return R===T};var G,q=function(u){if(R!==T)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")}
38,ne=p.roundToPrecision=p.__private__.roundToPrecision=function(u,b){var M=t||b;if(isNaN(u)||isNaN(M))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return u.toFixed(M).replace(/0+$/,"")};G=p.hpf=p.__private__.hpf=typeof c=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return ne(u,c)}:c==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return ne(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return ne(u,16)};var S=p.f2=p.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return ne(u,2)},F=p.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return ne(u,3)},W=p.scale=p.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return R===H?u*tt:R===T?u:void 0},V=function(u){return W((function(b){return R===H?ki()-b:R===T?b:void 0})(u))};p.__private__.setPrecision=p.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(t=parseInt(u,10))};var J,Q="00000000000000000000000000000000",ae=p.__private__.getFileId=function(){return Q},U=p.__private__.setFileId=function(u){return Q=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():Q.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(vn=new _a(m.userPermissions,m.userPassword,m.ownerPassword,Q)),Q};p.setFileId=function(u){return U(u),this},p.getFileId=function(){return ae()};var Y=p.__private__.convertDateToPDFDate=function(u){var b=u.getTimezoneOffset(),M=b<0?"+":"-",$=Math.floor(Math.abs(b/60)),ee=Math.abs(b%60),pe=[M,D($),"'",D(ee),"'"].join("");return["D:",u.getFullYear(),D(u.getMonth()+1),D(u.getDate()),D(u.getHours()),D(u.getMinutes()),D(u.getSeconds()),pe].join("")},ue=p.__private__.convertPDFDateToDate=function(u){var b=parseInt(u.substr(2,4),10),M=parseInt(u.substr(6,2),10)-1,$=parseInt(u.substr(8,2),10),ee=parseInt(u.substr(10,2),10),pe=parseInt(u.substr(12,2),10),we=parseInt(u.substr(14,2),10);return new Date(b,M,$,ee,pe,we,0)},le=p.__private__.setCreationDate=function(u){var b;if(u===void 0&&(u=new Date),u instanceof Date)b=Y(u);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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=u}return J=b},w=p.__private__.getCreationDate=function(u){var b=J;return u==="jsDate"&&(b=ue(J)),b};p.setCreationDate=function(u){return le(u),this},p.getCreationDate=function(u){return w(u)};var O,D=p.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},z=p.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},K=0,re=[],fe=[],de=0,be=[],Ne=[],Ce=!1,Se=fe;p.__private__.setCustomOutputDestination=function(u){Ce=!0,Se=u};var _e=function(u){Ce||(Se=u)};p.__private__.resetCustomOutputDestination=function(){Ce=!1,Se=fe};var L=p.__private__.out=function(u){return u=u.toString(),de+=u.length+1,Se.push(u),Se},Ae=p.__private__.write=function(u){return L(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},Me=p.__private__.getArrayBuffer=function(u){for(var b=u.length,M=new ArrayBuffer(b),$=new Uint8Array(M);b--;)$[b]=u.charCodeAt(b);return M},Ee=[["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]];p.__private__.getStandardFonts=function(){return Ee};var ye=n.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(u){return ye=R===T?u/tt:u,this};var qe,Ie=p.__private__.getFontSize=p.getFontSize=function(){return R===H?ye:ye*tt},Oe=n.R2L||!1;p.__private__.setR2L=p.setR2L=function(u){return Oe=u,this},p.__private__.getR2L=p.getR2L=function(){return Oe};var Pe,Lt=p.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))qe=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');qe=u}else qe=parseInt(u,10)};p.__private__.getZoomMode=function(){return qe};var ht,et=p.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');Pe=u};p.__private__.getPageMode=function(){return Pe};var bt=p.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');ht=u};p.__private__.getLayoutMode=function(){return ht},p.__private__.setDisplayMode=p.setDisplayMode=function(u,b,M){return Lt(u),bt(b),et(M),this};var mt={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(u){if(Object.keys(mt).indexOf(u)===-1)throw new Error("Invalid argument passed to
38jsPDF.getDocumentProperty");return mt[u]},p.__private__.getDocumentProperties=function(){return mt},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(u){for(var b in mt)mt.hasOwnProperty(b)&&u[b]&&(mt[b]=u[b]);return this},p.__private__.setDocumentProperty=function(u,b){if(Object.keys(mt).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return mt[u]=b};var Te,tt,$e,Zt,xt,dt={},pt={},Vt=[],Ye={},Bt={},Ke={},it={},Ht=null,gt=0,Je=[],kt=new wu(p),wi=n.hotfixes||[],_n={},Rr={},wr=[],Xe=function u(b,M,$,ee,pe,we){if(!(this instanceof u))return new u(b,M,$,ee,pe,we);isNaN(b)&&(b=1),isNaN(M)&&(M=0),isNaN($)&&($=0),isNaN(ee)&&(ee=1),isNaN(pe)&&(pe=0),isNaN(we)&&(we=0),this._matrix=[b,M,$,ee,pe,we]};Object.defineProperty(Xe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Xe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Xe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Xe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Xe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Xe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Xe.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Xe.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Xe.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Xe.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Xe.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Xe.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Xe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Xe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Xe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Xe.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Xe.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(G).join(u)},Xe.prototype.multiply=function(u){var b=u.sx*this.sx+u.shy*this.shx,M=u.sx*this.shy+u.shy*this.sy,$=u.shx*this.sx+u.sy*this.shx,ee=u.shx*this.shy+u.sy*this.sy,pe=u.tx*this.sx+u.ty*this.shx+this.tx,we=u.tx*this.shy+u.ty*this.sy+this.ty;return new Xe(b,M,$,ee,pe,we)},Xe.prototype.decompose=function(){var u=this.sx,b=this.shy,M=this.shx,$=this.sy,ee=this.tx,pe=this.ty,we=Math.sqrt(u*u+b*b),Ue=(u/=we)*M+(b/=we)*$;M-=u*Ue,$-=b*Ue;var De=Math.sqrt(M*M+$*$);return Ue/=De,u*($/=De)<b*(M/=De)&&(u=-u,b=-b,Ue=-Ue,we=-we),{scale:new Xe(we,0,0,De,0,0),translate:new Xe(1,0,0,1,ee,pe),rotate:new Xe(u,b,-b,u,0,0),skew:new Xe(1,0,Ue,1,0,0)}},Xe.prototype.toString=function(u){return this.join(" ")},Xe.prototype.inversed=function(){var u=this.sx,b=this.shy,M=this.shx,$=this.sy,ee=this.tx,pe=this.ty,we=1/(u*$-b*M),Ue=$*we,De=-b*we,nt=-M*we,at=u*we;return new Xe(Ue,De,nt,at,-Ue*ee-nt*pe,-De*ee-at*pe)},Xe.prototype.applyToPoint=function(u){var b=u.x*this.sx+u.y*this.shx+this.tx,M=u.x*this.shy+u.y*this.sy+this.ty;return new Ni(b,M)},Xe.prototype.applyToRectangle=function(u){var b=this.applyToPoint(u),M=this.applyToPoint(new Ni(u.x+u.w,u.y+u.h));return new Da(b.x,b.y,M.x-b.x,M.y-b.y)},Xe.prototype.clone=function(){var u=this.sx,b=this.shy,M=this.shx,$=this.sy,ee=this.tx,pe=this.ty;return new Xe(u,b,M,$,ee,pe)},p.Matrix=Xe;var Tr=p.matrixMult=function(u,b){return b.multiply(u)},Dr=new Xe(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Dr;var Qn=function(u,b){if(!Bt[u]){var M=(b instanceof qi?"Sh":"P")+(Object.keys(Ye).length+1).toString(10);b.id=M,Bt[u]=M,Ye[M]=b,kt.publish("addPattern",b)}};p.ShadingPattern=qi,p.TilingPattern=Aa,p.addShadingPattern=function(u,b){return q("addShadingPattern()"),Qn(u,b),this},p.beginTilingPattern=function(u){q("beginTilingPattern()"),qa(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},p.endTilingPattern=function(u,b){q("endTilingPattern()"),b.stream=Ne[O].join(`
39`),Qn(u,b),kt.publish("endTilingPattern",b),wr.pop().restore()};var er,Yt=p.__private__.newObject=function(){var u=pn();return gn(u,!0),u},pn=p.__private__.newObjectDeferred=function(){return K++,re[K]=function(){return de},K},gn=function(u,b){return b=typeof b=="boolean"&&b,re[u]=de,b&&L(u+" 0 obj"),u},_i=p.__private__.newAdditionalObject=function(){var u={objId:pn(),content:""};return be.push(u),u},ei=pn(),sr=pn(),_r=p.__private__.decodeColorString=function(u){var b=u.split(" ");if(b.length!==2||b[1]!=="g"&&b[1]!=="G")b.length!==5||b[4]!=="k"&&b[4]!=="K"||(b=[(1-b[0])*(1-b[3]),(1-b[1])*(1-b[3]),(1-b[2])*(1-b[3]),"r"]);else{var M=parseFloat(b[0]);b=[M,M,M,"r"]}for(var $="#",ee=0;ee<3;ee++)$+=("0"+Math.floor(255*parseFloat(b[ee])).toString(16)).slice(-2);return $},lr=p.__private__.encodeColorString=function(u){var b;typeof u=="string"&&(u={ch1:u});var M=u.ch1,$=u.ch2,ee=u.ch3,pe=u.ch4,we=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof M=="string"&&M.charAt(0)!=="#"){var Ue=new Sf(M);if(Ue.ok)M=Ue.toHex();else if(!/^\d*\.?\d*$/.test(M))throw new Error('Invalid color "'+M+'" passed to jsPDF.encodeColorString.')}if(typeof M=="string"&&/^#[0-9A-Fa-f]{3}$/.test(M)&&(M="#"+M[1]+M[1]+M[2]+M[2]+M[3]+M[3]),typeof M=="string"&&/^#[0-9A-Fa-f]{6}$/.test(M)){var De=parseInt(M.substr(1),16);M=De>>16&255,$=De>>8&255,ee=255&De}if($===void 0||pe===void 0&&M===$&&$===ee)b=typeof M=="string"?M+" "+we[0]:u.precision===2?S(M/255)+" "+we[0]:F(M/255)+" "+we[0];else if(pe===void 0||It(pe)==="object"){if(pe&&!isNaN(pe.a)&&pe.a===0)return["1.","1.","1.",we[1]].join(" ");b=typeof M=="string"?[M,$,ee,we[1]].join(" "):u.precision===2?[S(M/255),S($/255),S(ee/255),we[1]].join(" "):[F(M/255),F($/255),F(ee/255),we[1]].join(" ")}else b=typeof M=="string"?[M,$,ee,pe,we[2]].join(" "):u.precision===2?[S(M),S($),S(ee),S(pe),we[2]].join(" "):[F(M),F($),F(ee),F(pe),we[2]].join(" ");return b},cr=p.__private__.getFilters=function(){return f},tr=p.__private__.putStream=function(u){var b=(u=u||{}).data||"",M=u.filters||cr(),$=u.alreadyAppliedFilters||[],ee=u.addLength1||!1,pe=b.length,we=u.objectId,Ue=function(qt){return qt};if(m!==null&&we===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ue=vn.encryptor(we,0));var De={};M===!0&&(M=["FlateEncode"]);var nt=u.additionalKeyValues||[],at=(De=We.API.processDataByFilters!==void 0?We.API.processDataByFilters(b,M):{data:b,reverseChain:[]}).reverseChain+(Array.isArray($)?$.join(" "):$.toString());if(De.data.length!==0&&(nt.push({key:"Length",value:De.data.length}),ee===!0&&nt.push({key:"Length1",value:pe})),at.length!=0)if(at.split("/").length-1==1)nt.push({key:"Filter",value:at});else{nt.push({key:"Filter",value:"["+at+"]"});for(var wt=0;wt<nt.length;wt+=1)if(nt[wt].key==="DecodeParms"){for(var ln=[],Ot=0;Ot<De.reverseChain.split("/").length-1;Ot+=1)ln.push("null");ln.push(nt[wt].value),nt[wt].value="["+ln.join(" ")+"]"}}L("<<");for(var Et=0;Et<nt.length;Et++)L("/"+nt[Et].key+" "+nt[Et].value);L(">>"),De.data.length!==0&&(L("stream"),L(Ue(De.data)),L("endstream"))},xi=p.__private__.putPage=function(u){var b=u.number,M=u.data,$=u.objId,ee=u.contentsObjId;gn($,!0),L("<</Type /Page"),L("/Parent "+u.rootDictionaryObjId+" 0 R"),L("/Resources "+u.resourceDictionaryObjId+" 0 R"),L("/MediaBox ["+parseFloat(G(u.mediaBox.bottomLeftX))+" "+parseFloat(G(u.mediaBox.bottomLeftY))+" "+G(u.mediaBox.topRightX)+" "+G(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&L("/CropBox ["+G(u.cropBox.bottomLeftX)+" "+G(u.cropBox.bottomLeftY)+" "+G(u.cropBox.topRightX)+" "+G(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&L("/BleedBox ["+G(u.bleedBox.bottomLeftX)+" "+G(u.bleedBox.bottomLeftY)+" "+G(u.bleedBox.topRightX)+" "+G(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&L("/TrimBox ["+G(u.trimBox.bottomLeftX)+" "+G(u.trimBox.bottomLeftY)+" "+G(u.trimBox.topRightX)+" "+G(u.trimBox.topRightY)+"]"),u.artBox!==null&&L("/ArtBox ["+G(u.artBox.bottomLeftX)+" "+G(u.artBox.bottomLeftY)+" "+G(u.artBox.topRightX)+" "+G(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&L("/UserUnit "+u.userUnit),kt.publish("putPage",{objId:$,pageContext:Je[b],pageNumber:b,page:M}),L("/Contents "+ee+" 0 R"),L(">>"),L("endobj");var pe=M.join(` 40`);return R===T&&(pe+=` 41Q`),gn(ee,!0),tr({data:pe,filters:cr(),objectId:ee}),L("endobj"),$},xr=p.__private__.putPages=function(){var u,b,M=[];for(u=1;u<=gt;u++)Je[u].objId=pn(),Je[u].contentsObjId=pn();for(u=1;u<=gt;u++)M.push(xi({number:u,data:Ne[u],objId:Je[u].objId,contentsObjId:Je[u].contentsObjId,mediaBox:Je[u].mediaBox,cropBox:Je[u].cropBox,bleedBox:Je[u].bleedBox,trimBox:Je[u].trimBox,artBox:Je[u].artBox,userUnit:Je[u].userUnit,rootDictionaryObjId:ei,resourceDictionaryObjId:sr}));gn(ei,!0),L("<</Type /Pages");var $="/Kids [";for(b=0;b<gt;b++)$+=M[b]+" 0 R ";L($+"]"),L("/Count "+gt),L(">>"),L("endobj"),kt.publish("postPutPages")},Ai=function(u){kt.publish("putFont",{font:u,out:L,newObject:Yt,putStream:tr}),u.isAlreadyPutted!==!0&&(u.objectNumber=Yt(),L("<<"),L("/Type /Font"),L("/BaseFont /"+xa(u.postScriptName)),L("/Subtype /Type1"),typeof u.encoding=="string"&&L("/Encoding /"+u.encoding),L("/FirstChar 32"),L("/LastChar 255"),L(">>"),L("endobj"))},Ji=function(u){u.objectNumber=Yt();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[G(u.x),G(u.y),G(u.x+u.width),G(u.y+u.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var M=u.pages[1].join(` 42`);tr({data:M,additionalKeyValues:b,objectId:u.objectNumber}),L("endobj")},Xi=function(u,b){b||(b=21);var M=Yt(),$=(function(we,Ue){var De,nt=[],at=1/(Ue-1);for(De=0;De<1;De+=at)nt.push(De);if(nt.push(1),we[0].offset!=0){var wt={offset:0,color:we[0].color};we.unshift(wt)}if(we[we.length-1].offset!=1){var ln={offset:1,color:we[we.length-1].color};we.push(ln)}for(var Ot="",Et=0,qt=0;qt<nt.length;qt++){for(De=nt[qt];De>we[Et+1].offset;)Et++;
42var $t=we[Et].offset,Gt=(De-$t)/(we[Et+1].offset-$t),xn=we[Et].color,Wr=we[Et+1].color;Ot+=z(Math.round((1-Gt)*xn[0]+Gt*Wr[0]).toString(16))+z(Math.round((1-Gt)*xn[1]+Gt*Wr[1]).toString(16))+z(Math.round((1-Gt)*xn[2]+Gt*Wr[2]).toString(16))}return Ot.trim()})(u.colors,b),ee=[];ee.push({key:"FunctionType",value:"0"}),ee.push({key:"Domain",value:"[0.0 1.0]"}),ee.push({key:"Size",value:"["+b+"]"}),ee.push({key:"BitsPerSample",value:"8"}),ee.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ee.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),tr({data:$,additionalKeyValues:ee,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:M}),L("endobj"),u.objectNumber=Yt(),L("<< /ShadingType "+u.type),L("/ColorSpace /DeviceRGB");var pe="/Coords ["+G(parseFloat(u.coords[0]))+" "+G(parseFloat(u.coords[1]))+" ";u.type===2?pe+=G(parseFloat(u.coords[2]))+" "+G(parseFloat(u.coords[3])):pe+=G(parseFloat(u.coords[2]))+" "+G(parseFloat(u.coords[3]))+" "+G(parseFloat(u.coords[4]))+" "+G(parseFloat(u.coords[5])),L(pe+="]"),u.matrix&&L("/Matrix ["+u.matrix.toString()+"]"),L("/Function "+M+" 0 R"),L("/Extend [true true]"),L(">>"),L("endobj")},Ki=function(u,b){var M=pn(),$=Yt();b.push({resourcesOid:M,objectOid:$}),u.objectNumber=$;var ee=[];ee.push({key:"Type",value:"/Pattern"}),ee.push({key:"PatternType",value:"1"}),ee.push({key:"PaintType",value:"1"}),ee.push({key:"TilingType",value:"1"}),ee.push({key:"BBox",value:"["+u.boundingBox.map(G).join(" ")+"]"}),ee.push({key:"XStep",value:G(u.xStep)}),ee.push({key:"YStep",value:G(u.yStep)}),ee.push({key:"Resources",value:M+" 0 R"}),u.matrix&&ee.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),tr({data:u.stream,additionalKeyValues:ee,objectId:u.objectNumber}),L("endobj")},ms=function(u){for(var b in u.objectNumber=Yt(),L("<<"),u)switch(b){case"opacity":L("/ca "+S(u[b]));break;case"stroke-opacity":L("/CA "+S(u[b]))}L(">>"),L("endobj")},Ea=function(u){gn(u.resourcesOid,!0),L("<<"),L("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in L("/Font <<"),dt)dt.hasOwnProperty(b)&&(v===!1||v===!0&&x.hasOwnProperty(b))&&L("/"+b+" "+dt[b].objectNumber+" 0 R");L(">>")})(),(function(){if(Object.keys(Ye).length>0){for(var b in L("/Shading <<"),Ye)Ye.hasOwnProperty(b)&&Ye[b]instanceof qi&&Ye[b].objectNumber>=0&&L("/"+b+" "+Ye[b].objectNumber+" 0 R");kt.publish("putShadingPatternDict"),L(">>")}})(),(function(b){if(Object.keys(Ye).length>0){for(var M in L("/Pattern <<"),Ye)Ye.hasOwnProperty(M)&&Ye[M]instanceof p.TilingPattern&&Ye[M].objectNumber>=0&&Ye[M].objectNumber<b&&L("/"+M+" "+Ye[M].objectNumber+" 0 R");kt.publish("putTilingPatternDict"),L(">>")}})(u.objectOid),(function(){if(Object.keys(Ke).length>0){var b;for(b in L("/ExtGState <<"),Ke)Ke.hasOwnProperty(b)&&Ke[b].objectNumber>=0&&L("/"+b+" "+Ke[b].objectNumber+" 0 R");kt.publish("putGStateDict"),L(">>")}})(),(function(){for(var b in L("/XObject <<"),_n)_n.hasOwnProperty(b)&&_n[b].objectNumber>=0&&L("/"+b+" "+_n[b].objectNumber+" 0 R");kt.publish("putXobjectDict"),L(">>")})(),L(">>"),L("endobj")},lo=function(u){pt[u.fontName]=pt[u.fontName]||{},pt[u.fontName][u.fontStyle]=u.id},co=function(u,b,M,$,ee){var pe={id:"F"+(Object.keys(dt).length+1).toString(10),postScriptName:u,fontName:b,fontStyle:M,encoding:$,isStandardFont:ee||!1,metadata:{}};return kt.publish("addFont",{font:pe,instance:this}),dt[pe.id]=pe,lo(pe),pe.id},nr=p.__private__.pdfEscape=p.pdfEscape=function(u,b){return(function(M,$){var ee,pe,we,Ue,De,nt,at,wt,ln;if(we=($=$||{}).sourceEncoding||"Unicode",De=$.outputEncoding,($.autoencode||De)&&dt[Te].metadata&&dt[Te].metadata[we]&&dt[Te].metadata[we].encoding&&(Ue=dt[Te].metadata[we].encoding,!De&&dt[Te].encoding&&(De=dt[Te].encoding),!De&&Ue.codePages&&(De=Ue.codePages[0]),typeof De=="string"&&(De=Ue[De]),De)){for(at=!1,nt=[],ee=0,pe=M.length;ee<pe;ee++)(wt=De[M.charCodeAt(ee)])?nt.push(String.fromCharCode(wt)):nt.push(M[ee]),nt[ee].charCodeAt(0)>>8&&(at=!0);M=nt.join("")}for(ee=M.length;at===void 0&&ee!==0;)M.charCodeAt(ee-1)>>8&&(at=!0),ee--;if(!at)return M;for(nt=$.noBOM?[]:[254,255],ee=0,pe=M.length;ee<pe;
42ee++){if((ln=(wt=M.charCodeAt(ee))>>8)>>8)throw new Error("Character at position "+ee+" of string '"+M+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");nt.push(ln),nt.push(wt-(ln<<8))}return String.fromCharCode.apply(void 0,nt)})(u,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Oa=p.__private__.beginPage=function(u){Ne[++gt]=[],Je[gt]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},fo(gt),_e(Ne[O])},uo=function(u,b){var M,$,ee;switch(e=b||e,typeof u=="string"&&(M=N(u.toLowerCase()),Array.isArray(M)&&($=M[0],ee=M[1])),Array.isArray(u)&&($=u[0]*tt,ee=u[1]*tt),isNaN($)&&($=a[0],ee=a[1]),($>14400||ee>14400)&&(Mt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),$=Math.min(14400,$),ee=Math.min(14400,ee)),a=[$,ee],e.substr(0,1)){case"l":ee>$&&(a=[ee,$]);break;case"p":$>ee&&(a=[ee,$])}Oa(a),Ns(Ze),L(ra),Ra!==0&&L(Ra+" J"),ri!==0&&L(ri+" j"),kt.publish("addPage",{pageNumber:gt})},Fa=function(u){u>0&&u<=gt&&(Ne.splice(u,1),Je.splice(u,1),gt--,O>gt&&(O=gt),this.setPage(O))},fo=function(u){u>0&&u<=gt&&(O=u)},ho=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return Ne.length-1},po=function(u,b,M){var $,ee=void 0;return M=M||{},u=u!==void 0?u:dt[Te].fontName,b=b!==void 0?b:dt[Te].fontStyle,$=u.toLowerCase(),pt[$]!==void 0&&pt[$][b]!==void 0?ee=pt[$][b]:pt[u]!==void 0&&pt[u][b]!==void 0?ee=pt[u][b]:M.disableWarning===!1&&Mt.warn("Unable to look up font label for font '"+u+"', '"+b+"'. Refer to getFontList() for available fonts."),ee||M.noFallback||(ee=pt.times[b])==null&&(ee=pt.times.normal),ee},Ar=p.__private__.putInfo=function(){var u=Yt(),b=function($){return $};for(var M in m!==null&&(b=vn.encryptor(u,0)),L("<<"),L("/Producer ("+nr(b("jsPDF "+We.version))+")"),mt)mt.hasOwnProperty(M)&&mt[M]&&L("/"+M.substr(0,1).toUpperCase()+M.substr(1)+" ("+nr(b(mt[M]))+")");L("/CreationDate ("+nr(b(J))+")"),L(">>"),L("endobj")},Zi=p.__private__.putCatalog=function(u){var b=(u=u||{}).rootDictionaryObjId||ei;switch(Yt(),L("<<"),L("/Type /Catalog"),L("/Pages "+b+" 0 R"),qe||(qe="fullwidth"),qe){case"fullwidth":L("/OpenAction [3 0 R /FitH null]");break;case"fullheight":L("/OpenAction [3 0 R /FitV null]");break;case"fullpage":L("/OpenAction [3 0 R /Fit]");break;case"original":L("/OpenAction [3 0 R /XYZ null null 1]");break;default:var M=""+qe;M.substr(M.length-1)==="%"&&(qe=parseInt(qe)/100),typeof qe=="number"&&L("/OpenAction [3 0 R /XYZ null null "+S(qe)+"]")}switch(ht||(ht="continuous"),ht){case"continuous":L("/PageLayout /OneColumn");break;case"single":L("/PageLayout /SinglePage");break;case"two":case"twoleft":L("/PageLayout /TwoColumnLeft");break;case"tworight":L("/PageLayout /TwoColumnRight")}Pe&&L("/PageMode /"+Pe),kt.publish("putCatalog"),L(">>"),L("endobj")},gs=p.__private__.putTrailer=function(){L("trailer"),L("<<"),L("/Size "+(K+1)),L("/Root "+K+" 0 R"),L("/Info "+(K-1)+" 0 R"),m!==null&&L("/Encrypt "+vn.oid+" 0 R"),L("/ID [ <"+Q+"> <"+Q+"> ]"),L(">>")},sn=p.__private__.putHeader=function(){L("%PDF-"+I),L("%ºÃˆ ")},mo=p.__private__.putXRef=function(){var u="0000000000";L("xref"),L("0 "+(K+1)),L("0000000000 65535 f ");for(var b=1;b<=K;b++)typeof re[b]=="function"?L((u+re[b]()).slice(-10)+" 00000 n "):re[b]!==void 0?L((u+re[b]).slice(-10)+" 00000 n "):L("0000000000 00000 n ")},Lr=p.__private__.buildDocument=function(){var u;K=0,de=0,fe=[],re=[],be=[],ei=pn(),sr=pn(),_e(fe),kt.publish("buildDocument"),sn(),xr(),(function(){kt.publish("putAdditionalObjects");for(var M=0;M<be.length;M++){var $=be[M];gn($.objId,!0),L($.content),L("endobj")}kt.publish("postPutAdditionalObjects")})(),u=[],(function(){for(var M in dt)dt.hasOwnProperty(M)&&(v===!1||v===!0&&x.hasOwnProperty(M))&&Ai(dt[M])})(),(function(){var M;for(M in Ke)Ke.hasOwnProperty(M)&&ms(Ke[M])})(),(function(){for(var M in _n)_n.hasOwnProperty(M)&&Ji(_n[M])})(),(function(M){var $;for($ in Ye)Ye.hasOwnProperty($)&&(Ye[$]instanceof qi?Xi(Ye[$]):Ye[$]instanceof Aa&&Ki(Ye[$],M))})(u),kt.publish("putResources"),u.forEach(Ea),Ea({resourcesOid:sr,objectOid:Number.MAX_SAFE_INTEGER}),kt.publish("postPutResources"),m!==null&&(vn.oid=Yt(),L("<<"),L("/Filter /Standard"),L("/V "+vn.v),L("/R "+vn.r),L("/U <"+vn.toHexString(vn.U)+">"),L("/O <"+vn.toHexString(vn.O)+">"),L("/P "+vn.P),L(">>"),L("endobj")),Ar(),Zi();var b=de;return mo(),gs(),L("startxref"),L(""+b),L("%%EOF"),_e(Ne[O]),fe.join(` 43`)}
43,Qi=p.__private__.getBlob=function(u){return new Blob([Me(u)],{type:"application/pdf"})},Ma=function(u){for(;u.firstChild;)u.removeChild(u.firstChild)},Vn=function(u){var b,M=u.document,$=M.documentElement,ee=M.head,pe=M.body;return ee||(ee=M.createElement("head"),$.appendChild(ee)),pe||(pe=M.createElement("body"),$.appendChild(pe)),Ma(ee),Ma(pe),(b=M.createElement("style")).appendChild(M.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),ee.appendChild(b),{document:M,body:pe}},ea=p.output=p.__private__.output=(er=function(u,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",u){case void 0:return Lr();case"save":p.save(b.filename);break;case"arraybuffer":return Me(Lr());case"blob":return Qi(Lr());case"bloburi":case"bloburl":if(Qe.URL!==void 0&&typeof Qe.URL.createObjectURL=="function")return Qe.URL&&Qe.URL.createObjectURL(Qi(Lr()))||void 0;Mt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var M="",$=Lr();try{M=vu($)}catch{M=vu(unescape(encodeURIComponent($)))}return"data:application/pdf;filename="+encodeURIComponent(b.filename)+";base64,"+M;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Qe)==="[object Window]"){var ee="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pe=!b.pdfObjectUrl;pe||(ee=b.pdfObjectUrl);var we=Qe.open();if(we!==null){var Ue=Vn(we),De=Ue.document.createElement("script"),nt=this;De.src=ee,pe&&(De.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",De.crossOrigin="anonymous"),De.onload=function(){we.PDFObject.embed(nt.output("dataurlstring"),b)},Ue.body.appendChild(De)}return we}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Qe)==="[object Window]"){var at=b.pdfJsUrl||"examples/PDF.js/web/viewer.html",wt=Qe.open();if(wt!==null){var ln=Vn(wt),Ot=ln.document.createElement("iframe"),Et=at.indexOf("?")===-1?"?":"&";nt=this,Ot.id="pdfViewer",Ot.width="500px",Ot.height="400px",Ot.src=at+Et+"file=&downloadName="+encodeURIComponent(b.filename),Ot.onload=function(){wt.document.title=b.filename,Ot.contentWindow.PDFViewerApplication.open(nt.output("bloburl"))},ln.body.appendChild(Ot)}return wt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Qe)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var qt=Qe.open();if(qt!==null){var $t=Vn(qt),Gt=$t.document.createElement("iframe");Gt.src=this.output("datauristring",b),$t.body.appendChild(Gt),qt.document.title=b.filename}if(qt||typeof safari>"u")return qt;break;case"datauri":case"dataurl":return Qe.document.location.href=this.output("datauristring",b);default:return null}},er.foo=function(){try{return er.apply(this,arguments)}catch(M){var u=M.stack||"";~u.indexOf(" at ")&&(u=u.split(" at ")[1]);var b="Error in function "+u.split(` 44`)[0].split("<")[0]+": "+M.message;if(!Qe.console)throw new Error(b);Qe.console.error(b,M),Qe.alert&&alert(b)}},er.foo.bar=er,er.foo),qr=function(u){return Array.isArray(wi)===!0&&wi.indexOf(u)>-1};switch(r){case"pt":tt=1;break;case"mm":tt=72/25.4;break;case"cm":tt=72/2.54;break;case"in":tt=72;break;case"px":tt=qr("px_scaling")==1?.75:96/72;break;case"pc":case"em":tt=12;break;case"ex":tt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);tt=r}var vn=null;le(),U();var go=p.__private__.getPageInfo=p.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Je[u].objId,pageNumber:u,pageContext:Je[u]}},vs=p.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Je)if(Je[b].objId===u)break;return go(b)},bs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Je[O].objId,pageNumber:O,pageContext:Je[O]}};p.addPage=function(){return uo.apply(this,arguments),this},p.setPage=function(){return fo.apply(this,arguments),_e.call(this,Ne[O]),this},p.insertPage=function(u){return this.addPage(),this.movePage(O,u),this},p.movePage=function(u,b){var M,$;if(u>b){M=Ne[u],$=Je[u];for(var ee=u;ee>b;ee--)Ne[ee]=Ne[ee-1],Je[ee]=Je[ee-1];Ne[b]=M,Je[b]=$,this.setPage(b)}else if(u<b){M=Ne[u],$=Je[u];for(var pe=u;pe<b;pe++)Ne[pe]=Ne[pe+1],Je[pe]=Je[pe+1];Ne[b]=M,Je[b]=$,this.setPage(b)}return this},p.deletePage=function(){return Fa.apply(this,arguments),this},p.__private__.text=p.text=function(u,b,M,$,ee){var pe,we,Ue,De,nt,at,wt,ln,Ot,Et=($=$||{}).scope||this;
44if(typeof u=="number"&&typeof b=="number"&&(typeof M=="string"||Array.isArray(M))){var qt=M;M=b,b=u,u=qt}if(arguments[3]instanceof Xe==0?(Ue=arguments[4],De=arguments[5],It(wt=arguments[3])==="object"&&wt!==null||(typeof Ue=="string"&&(De=Ue,Ue=null),typeof wt=="string"&&(De=wt,wt=null),typeof wt=="number"&&(Ue=wt,wt=null),$={flags:wt,angle:Ue,align:De})):(q("The transform parameter of text() with a Matrix value"),Ot=ee),isNaN(b)||isNaN(M)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return Et;var $t,Gt="",xn=typeof $.lineHeightFactor=="number"?$.lineHeightFactor:Li,Wr=Et.internal.scaleFactor;function Ua(jt){return jt=jt.split(" ").join(Array($.TabLen||9).join(" ")),nr(jt,wt)}function Si(jt){for(var Rt,Qt=jt.concat(),un=[],Gr=Qt.length;Gr--;)typeof(Rt=Qt.shift())=="string"?un.push(Rt):Array.isArray(jt)&&(Rt.length===1||Rt[1]===void 0&&Rt[2]===void 0)?un.push(Rt[0]):un.push([Rt[0],Rt[1],Rt[2]]);return un}function Pi(jt,Rt){var Qt;if(typeof jt=="string")Qt=Rt(jt)[0];else if(Array.isArray(jt)){for(var un,Gr,Ga=jt.concat(),ma=[],ko=Ga.length;ko--;)typeof(un=Ga.shift())=="string"?ma.push(Rt(un)[0]):Array.isArray(un)&&typeof un[0]=="string"&&(Gr=Rt(un[0],un[1],un[2]),ma.push([Gr[0],Gr[1],Gr[2]]));Qt=ma}return Qt}var ii=!1,Ci=!0;if(typeof u=="string")ii=!0;else if(Array.isArray(u)){var sa=u.concat();we=[];for(var la,An=sa.length;An--;)(typeof(la=sa.shift())!="string"||Array.isArray(la)&&typeof la[0]!="string")&&(Ci=!1);ii=Ci}if(ii===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var Ii=ye/Et.internal.scaleFactor,Ei=Ii*(xn-1);switch($.baseline){case"bottom":M-=Ei;break;case"top":M+=Ii-Ei;break;case"hanging":M+=Ii-2*Ei;break;case"middle":M+=Ii/2-Ei}if((at=$.maxWidth||0)>0&&(typeof u=="string"?u=Et.splitTextToSize(u,at):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(jt,Rt){return jt.concat(Et.splitTextToSize(Rt,at))},[]))),pe={text:u,x:b,y:M,options:$,mutex:{pdfEscape:nr,activeFontKey:Te,fonts:dt,activeFontSize:ye}},kt.publish("preProcessText",pe),u=pe.text,Ue=($=pe.options).angle,Ot instanceof Xe==0&&Ue&&typeof Ue=="number"){Ue*=Math.PI/180,$.rotationDirection===0&&(Ue=-Ue),R===T&&(Ue=-Ue);var za=Math.cos(Ue),Sr=Math.sin(Ue);Ot=new Xe(za,Sr,-Sr,za,0,0)}else Ue&&Ue instanceof Xe&&(Ot=Ue);R!==T||Ot||(Ot=Dr),(nt=$.charSpace||ia)!==void 0&&(Gt+=G(W(nt))+` Tc 45`,this.setCharSpace(this.getCharSpace()||0)),(ln=$.horizontalScale)!==void 0&&(Gt+=G(100*ln)+` Tz 46`),$.lang;var En=-1,Lo=$.renderingMode!==void 0?$.renderingMode:$.stroke,ca=Et.internal.getCurrentPageInfo().pageContext;switch(Lo){case 0:case!1:case"fill":En=0;break;case 1:case!0:case"stroke":En=1;break;case 2:case"fillThenStroke":En=2;break;case 3:case"invisible":En=3;break;case 4:case"fillAndAddForClipping":En=4;break;case 5:case"strokeAndAddPathForClipping":En=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":En=6;break;case 7:case"addToPathForClipping":En=7}var No=ca.usedRenderingMode!==void 0?ca.usedRenderingMode:-1;En!==-1?Gt+=En+` Tr 47`:No!==-1&&(Gt+=`0 Tr 48`),En!==-1&&(ca.usedRenderingMode=En),De=$.align||"left";var rr,Oi=ye*xn,Va=Et.internal.pageSize.getWidth(),ua=dt[Te];nt=$.charSpace||ia,at=$.maxWidth||0,wt=Object.assign({autoencode:!0,noBOM:!0},$.flags);var Fi=[],Ha=function(jt){return Et.getStringUnitWidth(jt,{font:ua,charSpace:nt,fontSize:ye,doKerning:!1})*ye/Wr};if(Object.prototype.toString.call(u)==="[object Array]"){var On;we=Si(u),De!=="left"&&(rr=we.map(Ha));var jn,fa=0;if(De==="right"){b-=rr[0],u=[],An=we.length;for(var ai=0;ai<An;ai++)ai===0?(jn=Ur(b),On=zr(M)):(jn=W(fa-rr[ai]),On=-Oi),u.push([we[ai],jn,On]),fa=rr[ai]}else if(De==="center"){b-=rr[0]/2,u=[],An=we.length;for(var oi=0;oi<An;oi++)oi===0?(jn=Ur(b),On=zr(M)):(jn=W((fa-rr[oi])/2),On=-Oi),u.push([we[oi],jn,On]),fa=rr[oi]}else if(De==="left"){u=[],An=we.length;for(var ha=0;ha<An;ha++)u.push(we[ha])}else if(De==="justify"&&ua.encoding==="Identity-H"){u=[],An=we.length,at=at!==0?at:Va;for(var Mi=0,cn=0;cn<An;cn++)if(On=cn===0?zr(M):-Oi,jn=cn===0?Ur(b):Mi,cn<An-1){var Fs=W((at-rr[cn])/(we[cn].split(" ").length-1)),Pr=we[cn].split(" ");u.push([Pr[0]+" ",jn,On]),Mi=0;for(var ur=1;ur<Pr.length;ur++){var Bi=(Ha(Pr[ur-1]+" "+Pr[ur])-Ha(Pr[ur]))*Wr+Fs;ur==Pr.length-1?u.push([Pr[ur],Bi,0]):u.push([Pr[ur]+" ",Bi,0]),Mi-=Bi}}else u.push([we[cn],jn,On]);u.push(["",Mi,0])}else{if(De!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],An=we.length,at=at!==0?at:Va,cn=0;cn<An;cn++){On=cn===0?zr(M):-Oi,jn=cn===0?Ur(b):0;var Wa=we[cn].split(" ").length-1,$a=Wa>0?(at-rr[cn])/Wa:0;cn<An-1?Fi.push(G(W($a))):Fi.push(0),u.push([we[cn],jn,On])}}}(typeof $.R2L=="boolean"?$.R2L:Oe)===!0&&(u=Pi(u,function(jt,Rt,Qt){return[jt.split("").reverse().join(""),Rt,Qt]})),pe={text:u,x:b,y:M,options:$,mutex:{pdfEscape:nr,activeFontKey:Te,fonts:dt,activeFontSize:ye}},kt.publish("postProcessText",pe),u=pe.text,$t=pe.mutex.isHex||!1;var da=dt[Te].encoding;da!=="WinAnsiEncoding"&&da!=="StandardEncoding"||(u=Pi(u,function(jt,Rt,Qt){return[Ua(jt),Rt,Qt]})),we=Si(u),u=[];for(var ji,Ri,si,$r=Array.isArray(we[0])?1:0,li="",pa=function(jt,Rt,Qt){var un="";return Qt instanceof Xe?(Qt=typeof $.angle=="number"?Tr(Qt,new Xe(1,0,0,1,jt,Rt)):Tr(ne
48w Xe(1,0,0,1,jt,Rt),Qt),R===T&&(Qt=Tr(new Xe(1,0,0,-1,0,0),Qt)),un=Qt.join(" ")+` Tm 49`):un=G(jt)+" "+G(Rt)+` Td 50`,un},Ln=0;Ln<we.length;Ln++){switch(li="",$r){case 1:si=($t?"<":"(")+we[Ln][0]+($t?">":")"),ji=parseFloat(we[Ln][1]),Ri=parseFloat(we[Ln][2]);break;case 0:si=($t?"<":"(")+we[Ln]+($t?">":")"),ji=Ur(b),Ri=zr(M)}Fi!==void 0&&Fi[Ln]!==void 0&&(li=Fi[Ln]+` Tw 51`),Ln===0?u.push(li+pa(ji,Ri,Ot)+si):$r===0?u.push(li+si):$r===1&&u.push(li+pa(ji,Ri,Ot)+si)}u=$r===0?u.join(` Tj 52T* `):u.join(` Tj 53`),u+=` Tj 54`;var Cr=`BT 55/`;return Cr+=Te+" "+ye+` Tf 56`,Cr+=G(ye*xn)+` TL 57`,Cr+=kr+` 58`,Cr+=Gt,Cr+=u,L(Cr+="ET"),x[Te]=!0,Et};var ys=p.__private__.clip=p.clip=function(u){return L(u==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return ys("evenodd")},p.__private__.discardPath=p.discardPath=function(){return L("n"),this};var Nr=p.__private__.isValidStyle=function(u){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(b=!0),b};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(u){return Nr(u)&&(h=u),this};var vo=p.__private__.getStyle=p.getStyle=function(u){var b=h;switch(u){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=u}return b},ta=p.close=function(){return L("h"),this};p.stroke=function(){return L("S"),this},p.fill=function(u){return na("f",u),this},p.fillEvenOdd=function(u){return na("f*",u),this},p.fillStroke=function(u){return na("B",u),this},p.fillStrokeEvenOdd=function(u){return na("B*",u),this};var na=function(u,b){It(b)==="object"?_s(b,u):L(u)},Ba=function(u){u===null||R===T&&u===void 0||(u=vo(u),L(u))};function ws(u,b,M,$,ee){var pe=new Aa(b||this.boundingBox,M||this.xStep,$||this.yStep,this.gState,ee||this.matrix);pe.stream=this.stream;var we=u+"$$"+this.cloneIndex+++"$$";return Qn(we,pe),pe}var _s=function(u,b){var M=Bt[u.key],$=Ye[M];if($ instanceof qi)L("q"),L(xs(b)),$.gState&&p.setGState($.gState),L(u.matrix.toString()+" cm"),L("/"+M+" sh"),L("Q");else if($ instanceof Aa){var ee=new Xe(1,0,0,-1,0,ki());u.matrix&&(ee=ee.multiply(u.matrix||Dr),M=ws.call($,u.key,u.boundingBox,u.xStep,u.yStep,ee).id),L("q"),L("/Pattern cs"),L("/"+M+" scn"),$.gState&&p.setGState($.gState),L(b),L("Q")}},xs=function(u){switch(u){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"}},ti=p.moveTo=function(u,b){return L(G(W(u))+" "+G(V(b))+" m"),this},bo=p.lineTo=function(u,b){return L(G(W(u))+" "+G(V(b))+" l"),this},ni=p.curveTo=function(u,b,M,$,ee,pe){return L([G(W(u)),G(V(b)),G(W(M)),G(V($)),G(W(ee)),G(V(pe)),"c"].join(" ")),this};p.__private__.line=p.line=function(u,b,M,$,ee){if(isNaN(u)||isNaN(b)||isNaN(M)||isNaN($)||!Nr(ee))throw new Error("Invalid arguments passed to jsPDF.line");return R===H?this.lines([[M-u,$-b]],u,b,[1,1],ee||"S"):this.lines([[M-u,$-b]],u,b,[1,1]).stroke()},p.__private__.lines=p.lines=function(u,b,M,$,ee,pe){var we,Ue,De,nt,at,wt,ln,Ot,Et,qt,$t,Gt;if(typeof u=="number"&&(Gt=M,M=b,b=u,u=Gt),$=$||[1,1],pe=pe||!1,isNaN(b)||isNaN(M)||!Array.isArray(u)||!Array.isArray($)||!Nr(ee)||typeof pe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ti(b,M),we=$[0],Ue=$[1],nt=u.length,qt=b,$t=M,De=0;De<nt;De++)(at=u[De]).length===2?(qt=at[0]*we+qt,$t=at[1]*Ue+$t,bo(qt,$t)):(wt=at[0]*we+qt,ln=at[1]*Ue+$t,Ot=at[2]*we+qt,Et=at[3]*Ue+$t,qt=at[4]*we+qt,$t=at[5]*Ue+$t,ni(wt,ln,Ot,Et,qt,$t));return pe&&ta(),Ba(ee),this},p.path=function(u){for(var b=0;b<u.length;b++){var M=u[b],$=M.c;switch(M.op){case"m":ti($[0],$[1]);break;case"l":bo($[0],$[1]);break;case"c":ni.apply(this,$);break;case"h":ta()}}return this},p.__private__.rect=p.rect=function(u,b,M,$,ee){if(isNaN(u)||isNaN(b)||isNaN(M)||isNaN($)||!Nr(ee))throw new Error("Invalid arguments passed to jsPDF.rect");return R===H&&($=-$),L([G(W(u)),G(V(b)),G(W(M)),G(W($)),"re"].join(" ")),Ba(ee),this},p.__private__.triangle=p.triangle=function(u,b,M,$,ee,pe,we){if(isNaN(u)||isNaN(b)||isNaN(M)||isNaN($)||isNaN(ee)||isNaN(pe)||!Nr(we))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[M-u,$-b],[ee-M,pe-$],[u-ee,b-pe]],u,b,[1,1],we,!0),this},p.__private__.roundedRect=p.roundedRect=function(u,b,M,$,ee,pe,we){if(isNaN(u)||isNaN(b)||isNaN(M)||isNaN($)||isNaN(ee)||isNaN(pe)||!Nr(we))throw new Error("Invalid arguments passed to
58jsPDF.roundedRect");var Ue=4/3*(Math.SQRT2-1);return ee=Math.min(ee,.5*M),pe=Math.min(pe,.5*$),this.lines([[M-2*ee,0],[ee*Ue,0,ee,pe-pe*Ue,ee,pe],[0,$-2*pe],[0,pe*Ue,-ee*Ue,pe,-ee,pe],[2*ee-M,0],[-ee*Ue,0,-ee,-pe*Ue,-ee,-pe],[0,2*pe-$],[0,-pe*Ue,ee*Ue,-pe,ee,-pe]],u+ee,b,[1,1],we,!0),this},p.__private__.ellipse=p.ellipse=function(u,b,M,$,ee){if(isNaN(u)||isNaN(b)||isNaN(M)||isNaN($)||!Nr(ee))throw new Error("Invalid arguments passed to jsPDF.ellipse");var pe=4/3*(Math.SQRT2-1)*M,we=4/3*(Math.SQRT2-1)*$;return ti(u+M,b),ni(u+M,b-we,u+pe,b-$,u,b-$),ni(u-pe,b-$,u-M,b-we,u-M,b),ni(u-M,b+we,u-pe,b+$,u,b+$),ni(u+pe,b+$,u+M,b+we,u+M,b),Ba(ee),this},p.__private__.circle=p.circle=function(u,b,M,$){if(isNaN(u)||isNaN(b)||isNaN(M)||!Nr($))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,b,M,M,$)},p.setFont=function(u,b,M){return M&&(b=ce(b,M)),Te=po(u,b,{disableWarning:!1}),this};var As=p.__private__.getFont=p.getFont=function(){return dt[po.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var u,b,M={};for(u in pt)if(pt.hasOwnProperty(u))for(b in M[u]=[],pt[u])pt[u].hasOwnProperty(b)&&M[u].push(b);return M},p.addFont=function(u,b,M,$,ee){var pe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&pe.indexOf(arguments[3])!==-1?ee=arguments[3]:arguments[3]&&pe.indexOf(arguments[3])==-1&&(M=ce(M,$)),co.call(this,u,b,M,ee=ee||"Identity-H")};var Li,Ze=n.lineWidth||.200025,Ls=p.__private__.getLineWidth=p.getLineWidth=function(){return Ze},Ns=p.__private__.setLineWidth=p.setLineWidth=function(u){return Ze=u,L(G(W(u))+" w"),this};p.__private__.setLineDash=We.API.setLineDash=We.API.setLineDashPattern=function(u,b){if(u=u||[],b=b||0,isNaN(b)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(M){return G(W(M))}).join(" "),b=G(W(b)),L("["+u+"] "+b+" d"),this};var ks=p.__private__.getLineHeight=p.getLineHeight=function(){return ye*Li};p.__private__.getLineHeight=p.getLineHeight=function(){return ye*Li};var Ss=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(Li=u),this},Ps=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return Li};Ss(n.lineHeight);var Ur=p.__private__.getHorizontalCoordinate=function(u){return W(u)},zr=p.__private__.getVerticalCoordinate=function(u){return R===T?u:Je[O].mediaBox.topRightY-Je[O].mediaBox.bottomLeftY-W(u)},Cs=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(u){return G(Ur(u))},Is=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(u){return G(zr(u))},ra=n.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return _r(ra)},p.__private__.setStrokeColor=p.setDrawColor=function(u,b,M,$){return ra=lr({ch1:u,ch2:b,ch3:M,ch4:$,pdfColorType:"draw",precision:2}),L(ra),this};var ja=n.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return _r(ja)},p.__private__.setFillColor=p.setFillColor=function(u,b,M,$){return ja=lr({ch1:u,ch2:b,ch3:M,ch4:$,pdfColorType:"fill",precision:2}),L(ja),this};var kr=n.textColor||"0 g",Es=p.__private__.getTextColor=p.getTextColor=function(){return _r(kr)};p.__private__.setTextColor=p.setTextColor=function(u,b,M,$){return kr=lr({ch1:u,ch2:b,ch3:M,ch4:$,pdfColorType:"text",precision:3}),this};var ia=n.charSpace,Os=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(ia||0)};p.__private__.setCharSpace=p.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ia=u,this};var Ra=0;p.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},p.__private__.setLineCap=p.setLineCap=function(u){var b=p.CapJoinStyles[u];if(b===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ra=b,L(b+" J"),this};var ri=0;p.__private__.setLineJoin=p.setLineJoin=function(u){var b=p.CapJoinStyles[u];if(b===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ri=b,L(b+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to
58jsPDF.setLineMiterLimit");return L(G(W(u))+" M"),this},p.GState=ls,p.setGState=function(u){(u=typeof u=="string"?Ke[it[u]]:Ta(null,u)).equals(Ht)||(L("/"+u.id+" gs"),Ht=u)};var Ta=function(u,b){if(!u||!it[u]){var M=!1;for(var $ in Ke)if(Ke.hasOwnProperty($)&&Ke[$].equals(b)){M=!0;break}if(M)b=Ke[$];else{var ee="GS"+(Object.keys(Ke).length+1).toString(10);Ke[ee]=b,b.id=ee}return u&&(it[u]=b.id),kt.publish("addGState",b),b}};p.addGState=function(u,b){return Ta(u,b),this},p.saveGraphicsState=function(){return L("q"),Vt.push({key:Te,size:ye,color:kr}),this},p.restoreGraphicsState=function(){L("Q");var u=Vt.pop();return Te=u.key,ye=u.size,kr=u.color,Ht=null,this},p.setCurrentTransformationMatrix=function(u){return L(u.toString()+" cm"),this},p.comment=function(u){return L("#"+u),this};var Ni=function(u,b){var M=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return M},set:function(pe){isNaN(pe)||(M=parseFloat(pe))}});var $=b||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return $},set:function(pe){isNaN(pe)||($=parseFloat(pe))}});var ee="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ee},set:function(pe){ee=pe.toString()}}),this},Da=function(u,b,M,$){Ni.call(this,u,b),this.type="rect";var ee=M||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ee},set:function(we){isNaN(we)||(ee=parseFloat(we))}});var pe=$||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pe},set:function(we){isNaN(we)||(pe=parseFloat(we))}}),this},aa=function(){this.page=gt,this.currentPage=O,this.pages=Ne.slice(0),this.pagesContext=Je.slice(0),this.x=$e,this.y=Zt,this.matrix=xt,this.width=yo(O),this.height=Hr(O),this.outputDestination=Se,this.id="",this.objectNumber=-1};aa.prototype.restore=function(){gt=this.page,O=this.currentPage,Je=this.pagesContext,Ne=this.pages,$e=this.x,Zt=this.y,xt=this.matrix,Vr(O,this.width),wo(O,this.height),Se=this.outputDestination};var qa=function(u,b,M,$,ee){wr.push(new aa),gt=O=0,Ne=[],$e=u,Zt=b,xt=ee,Oa([M,$])};for(var oa in p.beginFormObject=function(u,b,M,$,ee){return qa(u,b,M,$,ee),this},p.endFormObject=function(u){return(function(b){if(Rr[b])wr.pop().restore();else{var M=new aa,$="Xo"+(Object.keys(_n).length+1).toString(10);M.id=$,Rr[b]=$,_n[$]=M,kt.publish("addFormObject",M),wr.pop().restore()}})(u),this},p.doFormObject=function(u,b){var M=_n[Rr[u]];return L("q"),L(b.toString()+" cm"),L("/"+M.id+" Do"),L("Q"),this},p.getFormObject=function(u){var b=_n[Rr[u]];return{x:b.x,y:b.y,width:b.width,height:b.height,matrix:b.matrix}},p.save=function(u,b){return u=u||"generated.pdf",(b=b||{}).returnPromise=b.returnPromise||!1,b.returnPromise===!1?(Di(Qi(Lr()),u),typeof Di.unload=="function"&&Qe.setTimeout&&setTimeout(Di.unload,911),this):new Promise(function(M,$){try{var ee=Di(Qi(Lr()),u);typeof Di.unload=="function"&&Qe.setTimeout&&setTimeout(Di.unload,911),M(ee)}catch(pe){$(pe.message)}})},We.API)We.API.hasOwnProperty(oa)&&(oa==="events"&&We.API.events.length?(function(u,b){var M,$,ee;for(ee=b.length-1;ee!==-1;ee--)M=b[ee][0],$=b[ee][1],u.subscribe.apply(u,[M].concat(typeof $=="function"?[$]:$))})(kt,We.API.events):p[oa]=We.API[oa]);function yo(u){return Je[u].mediaBox.topRightX-Je[u].mediaBox.bottomLeftX}function Vr(u,b){Je[u].mediaBox.topRightX=b+Je[u].mediaBox.bottomLeftX}function Hr(u){return Je[u].mediaBox.topRightY-Je[u].mediaBox.bottomLeftY}function wo(u,b){Je[u].mediaBox.topRightY=b+Je[u].mediaBox.bottomLeftY}var _o=p.getPageWidth=function(u){return yo(u=u||O)/tt},xo=p.setPageWidth=function(u,b){Vr(u,b*tt)},ki=p.getPageHeight=function(u){return Hr(u=u||O)/tt},Ao=p.setPageHeight=function(u,b){wo(u,b*tt)};return p.internal={pdfEscape:nr,getStyle:vo,getFont:As,getFontSize:Ie,getCharSpace:Os,getTextColor:Es,getLineHeight:ks,getLineHeightFactor:Ps,getLineWidth:Ls,write:Ae,getHorizontalCoordinate:Ur,getVerticalCoordinate:zr,getCoordinateString:Cs,getVerticalCoordinateString:Is,collections:{},newObject:Yt,newAdditionalObject:_i,newObjectDeferred:pn,newObjectDeferredBegin:gn,getFilters:cr,putStream:tr,events:kt,scaleFactor:tt,pageSize:{getWidth:function(){return _o(O)}
vendor: 4,230 bytes, line 58
58,setWidth:function(u){xo(O,u)},getHeight:function(){return ki(O)},setHeight:function(u){Ao(O,u)}},encryptionOptions:m,encryption:vn,getEncryptor:function(u){return m!==null?vn.encryptor(u,0):function(b){return b}},output:ea,getNumberOfPages:ho,get pages(){return Ne},out:L,f2:S,f3:F,getPageInfo:go,getPageInfoByObjId:vs,getCurrentPageInfo:bs,getPDFVersion:E,Point:Ni,Rectangle:Da,Matrix:Xe,hasHotfix:qr},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return _o(O)},set:function(u){xo(O,u)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return ki(O)},set:function(u){Ao(O,u)},enumerable:!0,configurable:!0}),(function(u){for(var b=0,M=Ee.length;b<M;b++){var $=co.call(this,u[b][0],u[b][1],u[b][2],Ee[b][3],!0);v===!1&&(x[$]=!0);var ee=u[b][0].split("-");lo({id:$,fontName:ee[0],fontStyle:ee[1]||""})}kt.publish("addFonts",{fonts:dt,dictionary:pt})}).call(p,Ee),Te="F1",uo(a,e),kt.publish("initialized"),p}_a.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},_a.prototype.toHexString=function(n){return n.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},_a.prototype.hexToBytes=function(n){for(var t=[],e=0;e<n.length;e+=2)t.push(String.fromCharCode(parseInt(n.substr(e,2),16)));return t.join("")},_a.prototype.processOwnerPassword=function(n,t){return Pl(Sl(t).substr(0,5),n)},_a.prototype.encryptor=function(n,t){var e=Sl(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return Pl(e,r)}},ls.prototype.equals=function(n){var t,e="id,objectNumber,equals";if(!n||It(n)!==It(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!n.hasOwnProperty(t)||this[t]!==n[t])return!1;r++}for(t in n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return r===0},We.API={events:[]},We.version="4.2.1";var Kt=We.API,ql=1,Yi=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ya=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wi=function(n){return n.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},rt=function(n){return n.toFixed(2)},gi=function(n){return n.toFixed(5)};Kt.__acroform__={};var zn=function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n},_u=function(n){return n*ql},Or=function(n){var t=new Ef,e=Be.internal.getHeight(n)||0,r=Be.internal.getWidth(n)||0;return t.BBox=[0,0,Number(rt(r)),Number(rt(e))],t},c0=Kt.__acroform__.setBit=function(n,t){if(n=n||0,t=t||0,isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<t},u0=Kt.__acroform__.clearBit=function(n,t){if(n=n||0,t=t||0,isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<t)},f0=Kt.__acroform__.getBit=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<t?1:0},rn=Kt.__acroform__.getBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return f0(n,t-1)},an=Kt.__acroform__.setBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return c0(n,t-1)},on=Kt.__acroform__.clearBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return u0(n,t-1)},h0=Kt.__acroform__.calculateCoordinates=function(n,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,a=n[0],o=n[1],f=n[2],l=n[3],c={};return c.lowerLeft_X=e(a)||0,c.lowerLeft_Y=r(o+l)||0,c.upperRight_X=e(a+f)||0,c.upperRight_Y=r(o)||0,[Number(rt(c.lowerLeft_X)),Number(rt(c.lowerLeft_Y)),Number(rt(c.upperRight_X)),Number(rt(c.upperRight_Y))]},d0=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var t=[],e=n._V||n.DV,r=Cl(n,e),a=n.scope.internal.getFont(n.fontName,n.fontStyle).id;
58t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(n.scope.__private__.encodeColorString(n.color)),t.push("/"+a+" "+rt(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 o=Or(n);return o.scope=n.scope,o.stream=t.join(` 59`),o}},Cl=function(n,t){var e=n.fontSize===0?n.maxFontSize:n.fontSize,r={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=n.multiline?a.map(function(S){return S.split(` 60`)}):a.map(function(S){return[S]});var o=e,f=Be.internal.getHeight(n)||0;f=f<0?-f:f;var l=Be.internal.getWidth(n)||0;l=l<0?-l:l;var c=function(S,F,W){if(S+1<a.length){var V=F+" "+a[S+1][0];return Xo(V,n,W).width<=l-4}return!1};o++;e:for(;o>0;){t="",o--;var h,m,v=Xo("3",n,o).height,x=n.multiline?f-o:(f-v)/2,p=x+=2,I=0,E=0,k=0;if(o<=0){t=`(...) Tj 61`,t+="% Width of Text: "+Xo(t,n,o=12).width+", FieldWidth:"+l+` 62`;break}for(var N="",H=0,T=0;T<a.length;T++)if(a.hasOwnProperty(T)){var R=!1;if(a[T].length!==1&&k!==a[T].length-1){if((v+2)*(H+2)+2>f)continue e;N+=a[T][k],R=!0,E=T,T--}else{N=(N+=a[T][k]+" ").substr(N.length-1)==" "?N.substr(0,N.length-1):N;var te=parseInt(T),he=c(te,N,o),ce=T>=a.length-1;if(he&&!ce){N+=" ",k=0;continue}if(he||ce){if(ce)E=te;else if(n.multiline&&(v+2)*(H+2)+2>f)continue e}else{if(!n.multiline||(v+2)*(H+2)+2>f)continue e;E=te}}for(var G="",q=I;q<=E;q++){var ne=a[q];if(n.multiline){if(q===E){G+=ne[k]+" ",k=(k+1)%ne.length;continue}if(q===I){G+=ne[ne.length-1]+" ";continue}}G+=ne[0]+" "}switch(G=G.substr(G.length-1)==" "?G.substr(0,G.length-1):G,m=Xo(G,n,o).width,n.textAlign){case"right":h=l-m-2;break;case"center":h=(l-m)/2;break;default:h=2}t+=rt(h)+" "+rt(p)+` Td 63`,t+="("+Yi(G)+`) Tj 64`,t+=-rt(h)+` 0 Td 65`,p=-(o+2),m=0,I=R?E:E+1,H++,N=""}break}return r.text=t,r.fontSize=o,r},Xo=function(n,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(n,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},p0={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},m0=function(n,t){var e={type:"reference",object:n};t.internal.getPageInfo(n.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&t.internal.getPageInfo(n.page).pageContext.annotations.push(e)},g0=function(n,t){if(t.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(br.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(p0)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ql=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Of,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var o=r[a];o.objId=void 0,o.hasAnnotation&&m0(o,e)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(e){(function(r,a){var o=!r;for(var f in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(f)){var l=r[f],c=[],h=l.Rect;if(l.Rect&&(l.Rect=h0(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Be.createDefaultAppearanceStream(l),It(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=h,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=d0(l);c.push({key:"AP",value:"<</N "+m+">>"}),a.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var v="";for(var x in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(x)){var p=l.appearanceStreamContent[x];if(v+="/"+x+" ",v+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var f in p)if(p.hasOwnProperty(f)){var I=p[f];typeof I=="function"&&(I=I.call(a,l)),v+="/"+f+" "+I+" ",a.internal.acroformPlugin.xForms.indexOf(I)>=0||a.internal.acroformPlugin.xForms.push(I)}}
65else typeof(I=p)=="function"&&(I=I.call(a,l)),v+="/"+f+" "+I,a.internal.acroformPlugin.xForms.indexOf(I)>=0||a.internal.acroformPlugin.xForms.push(I);v+=">>"}c.push({key:"AP",value:`<< 66`+v+">>"})}a.internal.putStream({additionalKeyValues:c,objectId:l.objId}),a.internal.out("endobj")}o&&(function(E,k){for(var N in E)if(E.hasOwnProperty(N)){var H=N,T=E[N];k.internal.newObjectDeferredBegin(T.objId,!0),It(T)==="object"&&typeof T.putStream=="function"&&T.putStream(),delete E[H]}})(a.internal.acroformPlugin.xForms,a)})(e,n)}),n.internal.acroformPlugin.isInitialized=!0}},If=Kt.__acroform__.arrayToPdfArray=function(n,t,e){var r=function(f){return f};if(Array.isArray(n)){for(var a="[",o=0;o<n.length;o++)switch(o!==0&&(a+=" "),It(n[o])){case"boolean":case"number":case"object":a+=n[o].toString();break;case"string":n[o].substr(0,1)==="/"?a+="/"+Wi(n[o].substr(1)):(t!==void 0&&e&&(r=e.internal.getEncryptor(t)),a+="("+Yi(r(n[o].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ml=function(n,t,e){var r=function(a){return a};return t!==void 0&&e&&(r=e.internal.getEncryptor(t)),(n=n||"").toString(),"("+Yi(r(n))+")"},Mr=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Mr.prototype.toString=function(){return this.objId+" 0 R"},Mr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},Mr.prototype.getKeyValueListForStream=function(){var n=[],t=Object.getOwnPropertyNames(this).filter(function(o){return o!="content"&&o!="appearanceStreamContent"&&o!="scope"&&o!="objId"&&o.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var r=t[e],a=this[r];a&&(Array.isArray(a)?n.push({key:r,value:If(a,this.objId,this.scope)}):a instanceof Mr?(a.scope=this.scope,n.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&n.push({key:r,value:a}))}return n};var Ef=function(){Mr.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 n,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){n=e.trim()},get:function(){return n||null}})};zn(Ef,Mr);var Of=function(){Mr.call(this);var n,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(n){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Yi(e(n))+")"}},set:function(e){n=e}})};zn(Of,Mr);var br=function n(){Mr.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(N){if(isNaN(N))throw new Error('Invalid value "'+N+'" for attribute F supplied.');t=N}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!rn(t,3)},set:function(N){N?this.F=an(t,3):this.F=on(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(N){if(isNaN(N))throw new Error('Invalid value "'+N+'" for attribute Ff supplied.');e=N}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(N){r=N!==void 0?N:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(N){r[0]=N}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(N){r[1]=N}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(N){r[2]=N}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]}
vendor: 2,590 bytes, line 66
66,set:function(N){r[3]=N}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(N){switch(N){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=N;break;default:throw new Error('Invalid value "'+N+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof cs)return;o="FieldObject"+n.FieldNum++}var N=function(H){return H};return this.scope&&(N=this.scope.internal.getEncryptor(this.objId)),"("+Yi(N(o))+")"},set:function(N){o=N.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(N){o=N}});var f="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return f},set:function(N){f=N}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(N){l=N}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(N){c=N}});var h=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return h===void 0?50/ql:h},set:function(N){h=N}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(N){m=N}});var v="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!v||this instanceof cs||this instanceof Ui))return ml(v,this.objId,this.scope)},set:function(N){N=N.toString(),v=N}});var x=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(x)return this instanceof mn==0?ml(x,this.objId,this.scope):x},set:function(N){N=N.toString(),x=this instanceof mn==0?N.substr(0,1)==="("?ya(N.substr(1,N.length-2)):ya(N):N}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mn==1?ya(x.substr(1,x.length-1)):x},set:function(N){N=N.toString(),x=this instanceof mn==1?"/"+Wi(N):N}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(N){this.V=N}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof mn==0?ml(p,this.objId,this.scope):p},set:function(N){N=N.toString(),p=this instanceof mn==0?N.substr(0,1)==="("?ya(N.substr(1,N.length-2)):ya(N):N}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mn==1?ya(
66p.substr(1,p.length-1)):p},set:function(N){N=N.toString(),p=this instanceof mn==1?"/"+Wi(N):N}}),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 I,E=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return E},set:function(N){N=!!N,E=N}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(I)return I},set:function(N){I=N}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,1)},set:function(N){N?this.Ff=an(this.Ff,1):this.Ff=on(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,2)},set:function(N){N?this.Ff=an(this.Ff,2):this.Ff=on(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,3)},set:function(N){N?this.Ff=an(this.Ff,3):this.Ff=on(this.Ff,3)}});var k=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(k!==null)return k},set:function(N){if([0,1,2].indexOf(N)===-1)throw new Error('Invalid value "'+N+'" for attribute Q supplied.');k=N}}),Object.defineProperty(this,"textAlign",{get:function(){var N;switch(k){case 0:default:N="left";break;case 1:N="center";break;case 2:N="right"}return N},configurable:!0,enumerable:!0,set:function(N){switch(N){case"right":case 2:k=2;break;case"center":case 1:k=1;break;default:k=0}}})};zn(br,Mr);var Na=function(){br.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return If(t,this.objId,this.scope)},set:function(e){var r,a;a=[],typeof(r=e)=="string"&&(a=(function(o,f,l){l||(l=1);for(var c,h=[];c=f.exec(o);)h.push(c[l]);return h})(r,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,18)},set:function(e){e?this.Ff=an(this.Ff,18):this.Ff=on(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=an(this.Ff,19):this.Ff=on(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,20)},set:function(e){e?(this.Ff=an(this.Ff,20),t.sort()):this.Ff=on(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,22)},set:function(e){e?this.Ff=an(this.Ff,22):this.Ff=on(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,23)},set:function(e){e?this.Ff=an(this.Ff,23):this.Ff=on(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,27)},set:function(e){e?this.Ff=an(this.Ff,27):this.Ff=on(this.Ff,27)}}),this.hasAppearanceStream=!1};zn(Na,br);var ka=function(){Na.call(this),this.fontName="helvetica",this.combo=!1};zn(ka,Na);var Sa=function(){ka.call(this),this.combo=!0};zn(Sa,ka);var ts=function(){Sa.call(this),this.edit=!0};zn(ts,Sa);var mn=function(){br.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,15)},set:function(e){e?this.Ff=an(this.Ff,15):this.Ff=on(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,16)},set:function(e){e?this.Ff=an(this.Ff,16):this.Ff=on(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,17)},set:function(e){e?this.Ff=an(this.Ff,17):this.Ff=on(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,26)},set:function(e){e?this.Ff=an(this.Ff,26):this.Ff=on(this.Ff,26)}});var n,t={};
66Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(o){return o};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,a=[];for(r in a.push("<<"),t)a.push("/"+r+" ("+Yi(e(t[r]))+")");return a.push(">>"),a.join(` 67`)}},set:function(e){It(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var r=e==null?"":e.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),n="/"+Wi(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+Wi(e)}})};zn(mn,br);var ns=function(){mn.call(this),this.pushButton=!0};zn(ns,mn);var Pa=function(){mn.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t!==void 0?t:[]}})};zn(Pa,mn);var cs=function(){var n,t;br.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var o,f=[];for(o in f.push("<<"),r)f.push("/"+o+" ("+Yi(a(r[o]))+")");return f.push(">>"),f.join(` 68`)},set:function(a){It(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Wi(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Wi(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Be.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};zn(cs,br),Pa.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=n.createAppearanceStream(e.optionName),e.caption=n.getCA()}},Pa.prototype.createOption=function(n){var t=new cs;return t.Parent=this,t.optionName=n,this.Kids.push(t),v0.call(this.scope,t),t};var rs=function(){mn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Be.CheckBox.createAppearanceStream()};zn(rs,mn);var Ui=function(){br.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,13)},set:function(t){t?this.Ff=an(this.Ff,13):this.Ff=on(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,21)},set:function(t){t?this.Ff=an(this.Ff,21):this.Ff=on(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,23)},set:function(t){t?this.Ff=an(this.Ff,23):this.Ff=on(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,24)},set:function(t){t?this.Ff=an(this.Ff,24):this.Ff=on(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,25)},set:function(t){t?this.Ff=an(this.Ff,25):this.Ff=on(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,26)},set:function(t){t?this.Ff=an(this.Ff,26):this.Ff=on(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(t){Number.isInteger(t)&&(n=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};zn(Ui,br);
vendor: 4,206 bytes, lines 68-74
68var is=function(){Ui.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!rn(this.Ff,14)},set:function(n){n?this.Ff=an(this.Ff,14):this.Ff=on(this.Ff,14)}}),this.password=!0};zn(is,Ui);var Be={CheckBox:{createAppearanceStream:function(){return{N:{On:Be.CheckBox.YesNormal},D:{On:Be.CheckBox.YesPushDown,Off:Be.CheckBox.OffPushDown}}},YesPushDown:function(n){var t=Or(n);t.scope=n.scope;var e=[],r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color),o=Cl(n,n.caption);return e.push("0.749023 g"),e.push("0 0 "+rt(Be.internal.getWidth(n))+" "+rt(Be.internal.getHeight(n))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+rt(o.fontSize)+" Tf "+a),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(` 69`),t},YesNormal:function(n){var t=Or(n);t.scope=n.scope;var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color),a=[],o=Be.internal.getHeight(n),f=Be.internal.getWidth(n),l=Cl(n,n.caption);return a.push("1 g"),a.push("0 0 "+rt(f)+" "+rt(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+rt(f-1)+" "+rt(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+rt(l.fontSize)+" Tf "+r),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join(` 70`),t},OffPushDown:function(n){var t=Or(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+rt(Be.internal.getWidth(n))+" "+rt(Be.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(` 71`),t}},RadioButton:{Circle:{createAppearanceStream:function(n){var t={D:{Off:Be.RadioButton.Circle.OffPushDown},N:{}};return t.N[n]=Be.RadioButton.Circle.YesNormal,t.D[n]=Be.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(n){var t=Or(n);t.scope=n.scope;var e=[],r=Be.internal.getWidth(n)<=Be.internal.getHeight(n)?Be.internal.getWidth(n)/4:Be.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Be.internal.Bezier_C,o=Number((r*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+gi(Be.internal.getWidth(n)/2)+" "+gi(Be.internal.getHeight(n)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),e.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),e.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),e.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(` 72`),t},YesPushDown:function(n){var t=Or(n);t.scope=n.scope;var e=[],r=Be.internal.getWidth(n)<=Be.internal.getHeight(n)?Be.internal.getWidth(n)/4:Be.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*Be.internal.Bezier_C).toFixed(5)),f=Number((r*Be.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+gi(Be.internal.getWidth(n)/2)+" "+gi(Be.internal.getHeight(n)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+gi(Be.internal.getWidth(n)/2)+" "+gi(Be.internal.getHeight(n)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+f+" "+f+" "+r+" 0 "+r+" c"),e.push("-"+f+" "+r+" -"+r+" "+f+" -"+r+" 0 c"),e.push("-"+r+" -"+f+" -"+f+" -"+r+" 0 -"+r+" c"),e.push(f+" -"+r+" "+r+" -"+f+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(` 73`),t},OffPushDown:function(n){var t=Or(n);t.scope=n.scope;var e=[],r=Be.internal.getWidth(n)<=Be.internal.getHeight(n)?Be.internal.getWidth(n)/4:Be.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),o=Number((a*Be.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+gi(Be.internal.getWidth(n)/2)+" "+gi(Be.internal.getHeight(n)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(` 74`),t}},Cross:{createAppearanceStream:function(n){var t={D:{Off:Be.RadioButton.Cross.OffPushDown},N:{}}
74;return t.N[n]=Be.RadioButton.Cross.YesNormal,t.D[n]=Be.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(n){var t=Or(n);t.scope=n.scope;var e=[],r=Be.internal.calculateCross(n);return e.push("q"),e.push("1 1 "+rt(Be.internal.getWidth(n)-2)+" "+rt(Be.internal.getHeight(n)-2)+" re"),e.push("W"),e.push("n"),e.push(rt(r.x1.x)+" "+rt(r.x1.y)+" m"),e.push(rt(r.x2.x)+" "+rt(r.x2.y)+" l"),e.push(rt(r.x4.x)+" "+rt(r.x4.y)+" m"),e.push(rt(r.x3.x)+" "+rt(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(` 75`),t},YesPushDown:function(n){var t=Or(n);t.scope=n.scope;var e=Be.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+rt(Be.internal.getWidth(n))+" "+rt(Be.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+rt(Be.internal.getWidth(n)-2)+" "+rt(Be.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(rt(e.x1.x)+" "+rt(e.x1.y)+" m"),r.push(rt(e.x2.x)+" "+rt(e.x2.y)+" l"),r.push(rt(e.x4.x)+" "+rt(e.x4.y)+" m"),r.push(rt(e.x3.x)+" "+rt(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` 76`),t},OffPushDown:function(n){var t=Or(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+rt(Be.internal.getWidth(n))+" "+rt(Be.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(` 77`),t}}},createDefaultAppearanceStream:function(n){var t=n.scope.internal.getFont(n.fontName,n.fontStyle).id,e=n.scope.__private__.encodeColorString(n.color);return"/"+t+" "+n.fontSize+" Tf "+e}};Be.internal={Bezier_C:.551915024494,calculateCross:function(n){var t=Be.internal.getWidth(n),e=Be.internal.getHeight(n),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},Be.internal.getWidth=function(n){var t=0;return It(n)==="object"&&(t=_u(n.Rect[2])),t},Be.internal.getHeight=function(n){var t=0;return It(n)==="object"&&(t=_u(n.Rect[3])),t};var v0=Kt.addField=function(n){if(g0(this,n),!(n instanceof br))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=n).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Kt.AcroFormChoiceField=Na,Kt.AcroFormListBox=ka,Kt.AcroFormComboBox=Sa,Kt.AcroFormEditBox=ts,Kt.AcroFormButton=mn,Kt.AcroFormPushButton=ns,Kt.AcroFormRadioButton=Pa,Kt.AcroFormCheckBox=rs,Kt.AcroFormTextField=Ui,Kt.AcroFormPasswordField=is,Kt.AcroFormAppearance=Be,Kt.AcroForm={ChoiceField:Na,ListBox:ka,ComboBox:Sa,EditBox:ts,Button:mn,PushButton:ns,RadioButton:Pa,CheckBox:rs,TextField:Ui,PasswordField:is,Appearance:Be},We.AcroForm={ChoiceField:Na,ListBox:ka,ComboBox:Sa,EditBox:ts,Button:mn,PushButton:ns,RadioButton:Pa,CheckBox:rs,TextField:Ui,PasswordField:is,Appearance:Be};We.AcroForm;function Ff(n){return n.reduce(function(t,e,r){return t[e]=r,t},{})}(function(n){var t="addImage_";n.__addimage__={};var e="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]]},a=n.__addimage__.getImageFileTypeByImageData=function(S,F){var W,V,J,Q,ae,U=e;if((F=F||e)==="RGBA"||S.data!==void 0&&S.data instanceof Uint8ClampedArray&&"height"in S&&"width"in S)return"RGBA";if(he(S))for(ae in r)for(J=r[ae],W=0;W<J.length;W+=1){for(Q=!0,V=0;V<J[W].length;V+=1)if(J[W][V]!==void 0&&J[W][V]!==S[V]){Q=!1;break}if(Q===!0){U=ae;break}}else for(ae in r)for(J=r[ae],W=0;W<J.length;W+=1){for(Q=!0,V=0;V<J[W].length;V+=1)if(J[W][V]!==void 0&&J[W][V]!==S.charCodeAt(V)){Q=!1;break}if(Q===!0){U=ae;break}}return U===e&&F!==e&&(U=F),U},o=function S(F){for(var W=this.internal.write,V=this.internal.putStream,J=(0,this.internal.getFilters)();J.indexOf("FlateEncode")!==-1;)J.splice(J.indexOf("FlateEncode"),1);F.objectId=this.internal.newObject();var Q=[];if(Q.push({key:"Type",value:"/XObject"}),Q.push({key:"Subtype",value:"/Image"}),Q.push({key:"Width",value:F.width}),Q.push({key:"Height",value:F.height}
77),F.colorSpace===N.INDEXED?Q.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(F.palette.length/3-1)+" "+("sMask"in F&&F.sMask!==void 0?F.objectId+2:F.objectId+1)+" 0 R]"}):(Q.push({key:"ColorSpace",value:"/"+F.colorSpace}),F.colorSpace===N.DEVICE_CMYK&&Q.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Q.push({key:"BitsPerComponent",value:F.bitsPerComponent}),"decodeParameters"in F&&F.decodeParameters!==void 0&&Q.push({key:"DecodeParms",value:"<<"+F.decodeParameters+">>"}),"transparency"in F&&Array.isArray(F.transparency)&&F.transparency.length>0){for(var ae="",U=0,Y=F.transparency.length;U<Y;U++)ae+=F.transparency[U]+" "+F.transparency[U]+" ";Q.push({key:"Mask",value:"["+ae+"]"})}F.sMask!==void 0&&Q.push({key:"SMask",value:F.objectId+1+" 0 R"});var ue=F.filter!==void 0?["/"+F.filter]:void 0;if(V({data:F.data,additionalKeyValues:Q,alreadyAppliedFilters:ue,objectId:F.objectId}),W("endobj"),"sMask"in F&&F.sMask!==void 0){var le,w=(le=F.sMaskBitsPerComponent)!==null&&le!==void 0?le:F.bitsPerComponent,O={width:F.width,height:F.height,colorSpace:"DeviceGray",bitsPerComponent:w,data:F.sMask};"filter"in F&&(O.decodeParameters="/Predictor ".concat(F.predictor," /Colors 1 /BitsPerComponent ").concat(w," /Columns ").concat(F.width),O.filter=F.filter),S.call(this,O)}
77if(F.colorSpace===N.INDEXED){var D=this.internal.newObject();V({data:G(new Uint8Array(F.palette)),objectId:D}),W("endobj")}},f=function(){var S=this.internal.collections[t+"images"];for(var F in S)o.call(this,S[F])},l=function(){var S,F=this.internal.collections[t+"images"],W=this.internal.write;for(var V in F)W("/I"+(S=F[V]).index,S.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",f),this.internal.events.subscribe("putXobjectDict",l))},h=function(){var S=this.internal.collections[t+"images"];return c.call(this),S},m=function(){return Object.keys(this.internal.collections[t+"images"]).length},v=function(S){return typeof n["process"+S.toUpperCase()]=="function"},x=function(S){return It(S)==="object"&&S.nodeType===1},p=function(S,F){if(S.nodeName==="IMG"&&S.hasAttribute("src")){var W=""+S.getAttribute("src");if(W.indexOf("data:image/")===0)return es(unescape(W).split("base64,").pop());var V=n.loadFile(W,!0);if(V!==void 0)return V}if(S.nodeName==="CANVAS"){if(S.width===0||S.height===0)throw new Error("Given canvas must have data. Canvas width: "+S.width+", height: "+S.height);var J;switch(F){case"PNG":J="image/png";break;case"WEBP":J="image/webp";break;default:J="image/jpeg"}return es(S.toDataURL(J,1).split("base64,").pop())}},I=function(S){var F=this.internal.collections[t+"images"];if(F){for(var W in F)if(S===F[W].alias)return F[W]}},E=function(S,F,W){return S||F||(S=-96,F=-96),S<0&&(S=-1*W.width*72/S/this.internal.scaleFactor),F<0&&(F=-1*W.height*72/F/this.internal.scaleFactor),S===0&&(S=F*W.width/W.height),F===0&&(F=S*W.height/W.width),[S,F]},k=function(S,F,W,V,J,Q){var ae=E.call(this,W,V,J),U=this.internal.getCoordinateString,Y=this.internal.getVerticalCoordinateString,ue=h.call(this);if(W=ae[0],V=ae[1],ue[J.index]=J,Q){Q*=Math.PI/180;var le=Math.cos(Q),w=Math.sin(Q),O=function(z){return z.toFixed(4)},D=[O(le),O(w),O(-1*w),O(le),0,0,"cm"]}this.internal.write("q"),Q?(this.internal.write([1,"0","0",1,U(S),Y(F+V),"cm"].join(" ")),this.internal.write(D.join(" ")),this.internal.write([U(W),"0","0",U(V),"0","0","cm"].join(" "))):this.internal.write([U(W),"0","0",U(V),U(S),Y(F+V),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+J.index+" Do"),this.internal.write("Q")},N=n.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"};n.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 H=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},T=n.__addimage__.sHashCode=function(S){var F,W,V=0;if(typeof S=="string")for(W=S.length,F=0;F<W;F++)V=(V<<5)-V+S.charCodeAt(F),V|=0;else if(he(S))for(W=S.byteLength/2,F=0;F<W;F++)V=(V<<5)-V+S[F],V|=0;return V},R=n.__addimage__.validateStringAsBase64=function(S){(S=S||"").toString().trim();var F=!0;return S.length===0&&(F=!1),S.length%4!=0&&(F=!1),/^[A-Za-z0-9+/]+$/.test(S.substr(0,S.length-2))===!1&&(F=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(S.substr(-2))===!1&&(F=!1),F},te=n.__addimage__.extractImageFromDataUrl=function(S){if(S==null||!(S=S.trim()).startsWith("data:"))return null;var F=S.indexOf(",");return F<0?null:S.substring(0,F).trim().endsWith("base64")?S.substring(F+1):null};n.__addimage__.isArrayBuffer=function(S){return S instanceof ArrayBuffer};var he=n.__addimage__.isArrayBufferView=function(S){return S instanceof Int8Array||S instanceof Uint8Array||S instanceof Uint8ClampedArray||S instanceof Int16Array||S instanceof Uint16Array||S instanceof Int32Array||S instanceof Uint32Array||S instanceof Float32Array||S instanceof Float64Array},ce=n.__addimage__.binaryStringToUint8Array=function(S){for(var F=S.length,W=new Uint8Array(F),V=0;V<F;V++)W[V]=S.charCodeAt(V);return W},G=n.__addimage__.arrayBufferToBinaryString=function(S){for(var F="",W=he(S)?S:new Uint8Array(S),V=0;V<W.length;V+=8192)F+=String.fromCharCode.apply(null,W.subarray(V,V+8192));return F};n.addImage=function(){var S,F,W,V,J,Q,ae,U,Y;if(typeof arguments[1]=="number"?(F=e,W=arguments[1],V=arguments[2],J=arguments[3],Q=arguments[4],ae=arguments[5],U=arguments[6],Y=arguments[7]):(F=arguments[1],W=arguments[2],V=arguments[3],J=arguments[4],Q=arguments[5],ae=arguments[6],U=arguments[7],Y=arguments[8]),It(S=arguments[0])==="object"&&!x(S)&&"imageData"in S){var ue=S;S=ue.imageData,F=ue.format||F||e,W=ue.x||W||0,V=ue.y||V||0,J=ue.w||ue.width||J,Q=ue.h||ue.height||Q,ae=ue.alias||ae,U=ue.compression||U,Y=ue.rotation||ue.angle||Y}var le=this.internal.getFilters();
77if(U===void 0&&le.indexOf("FlateEncode")!==-1&&(U="SLOW"),isNaN(W)||isNaN(V))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var w=q.call(this,S,F,ae,U);return k.call(this,W,V,J,Q,w,Y),this};var q=function(S,F,W,V){var J,Q,ae;if(typeof S=="string"&&a(S)===e){S=unescape(S);var U=ne(S,!1);(U!==""||(U=n.loadFile(S,!0))!==void 0)&&(S=U)}if(x(S)&&(S=p(S,F)),F=a(S,F),!v(F))throw new Error("addImage does not support files of type '"+F+"', please ensure that a plugin for '"+F+"' support is added.");if(((ae=W)==null||ae.length===0)&&(W=(function(Y){return typeof Y=="string"||he(Y)?T(Y):he(Y.data)?T(Y.data):null})(S)),(J=I.call(this,W))||(S instanceof Uint8Array||F==="RGBA"||(Q=S,S=ce(S)),J=this["process"+F.toUpperCase()](S,m.call(this),W,(function(Y){return Y&&typeof Y=="string"&&(Y=Y.toUpperCase()),Y in n.image_compression?Y:H.NONE})(V),Q)),!J)throw new Error("An unknown error occurred whilst processing the image.");return J},ne=n.__addimage__.convertBase64ToBinaryString=function(S,F){F=typeof F!="boolean"||F;var W,V="";if(typeof S=="string"){var J;W=(J=te(S))!==null&&J!==void 0?J:S;try{V=es(W)}catch(Q){if(F)throw R(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return V};n.getImageProperties=function(S){var F,W,V="";if(x(S)&&(S=p(S)),typeof S=="string"&&a(S)===e&&((V=ne(S,!1))===""&&(V=n.loadFile(S)||""),S=V),W=a(S),!v(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(S instanceof Uint8Array||(S=ce(S)),!(F=this["process"+W.toUpperCase()](S)))throw new Error("An unknown error occurred whilst processing the image");return F.fileType=W,F}})(We.API),(function(n){var t=function(e){if(e!==void 0&&e!="")return!0};We.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(e){for(var r,a,o,f=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),h=e.pageContext.annotations,m=!1,v=0;v<h.length&&!m;v++)switch((r=h[v]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(m=!0);break;case"reference":case"text":case"freetext":m=!0}if(m!=0){this.internal.write("/Annots [");for(var x=0;x<h.length;x++){r=h[x];var p=this.internal.pdfEscape,I=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var E=this.internal.newAdditionalObject(),k=this.internal.newAdditionalObject(),N=this.internal.getEncryptor(E.objId),H=r.title||"Note";o="<</Type /Annot /Subtype /Text "+(a="/Rect ["+f(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+f(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+p(N(r.contents))+")",o+=" /Popup "+k.objId+" 0 R",o+=" /P "+c.objId+" 0 R",o+=" /T ("+p(N(H))+") >>",E.content=o;var T=E.objId+" 0 R";o="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+f(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+f(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+T,r.open&&(o+=" /Open true"),o+=" >>",k.content=o,this.internal.write(E.objId,"0 R",k.objId,"0 R");break;case"freetext":a="/Rect ["+f(r.bounds.x)+" "+l(r.bounds.y)+" "+f(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var R="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");o="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+p(I(r.contents))+")",o+=" /DS("+p(I(R))+")",o+=" /Border [0 0 0]",o+=" >>",this.internal.write(o);break;case"link":if(r.options.name){var te=this.annotations._nameMap[r.options.name];r.options.pageNumber=te.page,r.options.top=te.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",o="",r.options.url)o="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+p(I(r.options.url))+") >>";else if(r.options.pageNumber)switch(o="<</Type /Annot /Subtype /Link "+a+"/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":o+=" /Fit]";break;case"FitH":o+=" /FitH "+r.options.top+"]";break;
77case"FitV":r.options.left=r.options.left||0,o+=" /FitV "+r.options.left+"]";break;default:var he=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),o+=" /XYZ "+r.options.left+" "+he+" "+r.options.zoom+"]"}o!=""&&(o+=" >>",this.internal.write(o))}}this.internal.write("]")}}]),n.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},n.link=function(e,r,a,o,f){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,h=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(e),y:h(r),w:c(e+a),h:h(r+o)},options:f,type:"link"})},n.textWithLink=function(e,r,a,o){var f,l,c=this.getTextWidth(e),h=this.internal.getLineHeight()/this.internal.scaleFactor;if(o.maxWidth!==void 0){l=o.maxWidth;var m=this.splitTextToSize(e,l).length;f=Math.ceil(h*m)}else l=c,f=h;return this.text(e,r,a,o),a+=.2*h,o.align==="center"&&(r-=c/2),o.align==="right"&&(r-=c),this.link(r,a-h,l,f,o),c},n.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(We.API),(function(n){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,6437
777],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]},e={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},a=[1570,1571,1573,1575];n.__arabicParser__={};var o=n.__arabicParser__.isInArabicSubstitutionA=function(E){return t[E.charCodeAt(0)]!==void 0},f=n.__arabicParser__.isArabicLetter=function(E){return typeof E=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(E)},l=n.__arabicParser__.isArabicEndLetter=function(E){return f(E)&&o(E)&&t[E.charCo
77deAt(0)].length<=2},c=n.__arabicParser__.isArabicAlfLetter=function(E){return f(E)&&a.indexOf(E.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(E){return f(E)&&o(E)&&t[E.charCodeAt(0)].length>=1};var h=n.__arabicParser__.arabicLetterHasFinalForm=function(E){return f(E)&&o(E)&&t[E.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(E){return f(E)&&o(E)&&t[E.charCodeAt(0)].length>=3};var m=n.__arabicParser__.arabicLetterHasMedialForm=function(E){return f(E)&&o(E)&&t[E.charCodeAt(0)].length==4},v=n.__arabicParser__.resolveLigatures=function(E){var k=0,N=e,H="",T=0;for(k=0;k<E.length;k+=1)N[E.charCodeAt(k)]!==void 0?(T++,typeof(N=N[E.charCodeAt(k)])=="number"&&(H+=String.fromCharCode(N),N=e,T=0),k===E.length-1&&(N=e,H+=E.charAt(k-(T-1)),k-=T-1,T=0)):(N=e,H+=E.charAt(k-T),k-=T,T=0);return H};n.__arabicParser__.isArabicDiacritic=function(E){return E!==void 0&&r[E.charCodeAt(0)]!==void 0};var x=n.__arabicParser__.getCorrectForm=function(E,k,N){return f(E)?o(E)===!1?-1:!h(E)||!f(k)&&!f(N)||!f(N)&&l(k)||l(E)&&!f(k)||l(E)&&c(k)||l(E)&&l(k)?0:m(E)&&f(k)&&!l(k)&&f(N)&&h(N)?3:l(E)||!f(N)?1:2:-1},p=function(E){var k=0,N=0,H=0,T="",R="",te="",he=(E=E||"").split("\\s+"),ce=[];for(k=0;k<he.length;k+=1){for(ce.push(""),N=0;N<he[k].length;N+=1)T=he[k][N],R=he[k][N-1],te=he[k][N+1],f(T)?(H=x(T,R,te),ce[k]+=H!==-1?String.fromCharCode(t[T.charCodeAt(0)][H]):T):ce[k]+=T;ce[k]=v(ce[k])}return ce.join(" ")},I=n.__arabicParser__.processArabic=n.processArabic=function(){var E,k=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,N=[];if(Array.isArray(k)){var H=0;for(N=[],H=0;H<k.length;H+=1)Array.isArray(k[H])?N.push([p(k[H][0]),k[H][1],k[H][2]]):N.push([p(k[H])]);E=N}else E=p(k);return typeof arguments[0]=="string"?E:(arguments[0].text=E,arguments[0])};n.events.push(["preProcessText",I])})(We.API),We.API.autoPrint=function(n){var t;return(n=n||{}).variant=n.variant||"non-conform",n.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(n){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a}
77,set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(l){o=l}});var f={};Object.defineProperty(this,"style",{get:function(){return f},set:function(l){f=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,r){var a;if((e=e||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(We.API),(function(n){var t={left:0,top:0,bottom:0,right:0},e=!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(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(E){c=E}});var h=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return h},set:function(E){h=E}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(E){m=E}});var v=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return v},set:function(E){v=E}});var x=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return x},set:function(E){x=E}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(E){p=E}});var I=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return I},set:function(E){I=E}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},n.getTextDimensions=function(c,h){r.call(this);var m=(h=h||{}).fontSize||this.getFontSize(),v=h.font||this.getFont(),x=h.scaleFactor||this.internal.scaleFactor,p=0,I=0,E=0,k=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var N=h.maxWidth;N>0?typeof c=="string"?c=this.splitTextToSize(c,N):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(T,R){return T.concat(k.splitTextToSize(R,N))},[])):c=Array.isArray(c)?c:[c];for(var H=0;H<c.length;H++)p<(E=this.getStringUnitWidth(c[H],{font:v})*m)&&(p=E);return p!==0&&(I=c.length),{w:p/=x,h:Math.max((I*m*this.getLineHeightFactor()-m*(this.getLineHeightFactor()-1))/x,0)}},n.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var f=n.cell=function(){var c;c=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var h=this.internal.__cell__.lastCell,m=this.internal.__cell__.padding,v=this.internal.__cell__.margins||t,x=this.internal.__cell__.tableHeaderRow,p=this.internal.__cell__.printHeaders;return h.lineNumber!==void 0&&(h.lineNumber===c.lineNumber?(c.x=(h.x||0)+(h.width||0),c.y=h.y||0):h.y+h.height+c.height+v.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=v.top,p&&x&&(this.printHeaderRow(c.lineNumber,!0),c.y+=x[0].height)):c.y=h.y+h.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,e===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-m,c.y+m,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+m,{align:"center",baseline:"top",maxWidth:c.width-m-m}):this.text(c.text,c.x+m,c.y+m,{align:"left",baseline:"top",maxWidth:c.width-m-m})),this.internal.__cell__.lastCell=c,this};n.table=function(c,h,m,v,x){if(r.call(this),!m)throw new Error("No data for PDF table.");var p,I,E,k,N=[],H=[],T=[],R={},te={},he=[],ce=[],G=(x=x||{}).autoSize||!1,q=x.printHeaders!==!1,ne=x.css&&x.css["font-size"]!==void 0?16*x.css["font-size"]:x.fontSize||12,S=x.margins||Object.assign({width:this.getPageWidth()},t),F=typeof x.padding=="number"?x.padding:3,W=x.headerBackgroun
77dColor||"#c8c8c8",V=x.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=q,this.internal.__cell__.margins=S,this.internal.__cell__.table_font_size=ne,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=V,this.setFontSize(ne),v==null)H=N=Object.keys(m[0]),T=N.map(function(){return"left"});else if(Array.isArray(v)&&It(v[0])==="object")for(N=v.map(function(ue){return ue.name}),H=v.map(function(ue){return ue.prompt||ue.name||""}),T=v.map(function(ue){return ue.align||"left"}),p=0;p<v.length;p+=1)te[v[p].name]=.7499990551181103*v[p].width;else Array.isArray(v)&&typeof v[0]=="string"&&(H=N=v,T=N.map(function(){return"left"}));if(G||Array.isArray(v)&&typeof v[0]=="string")for(p=0;p<N.length;p+=1){for(R[k=N[p]]=m.map(function(ue){return ue[k]}),this.setFont(void 0,"bold"),he.push(this.getTextDimensions(H[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),I=R[k],this.setFont(void 0,"normal"),E=0;E<I.length;E+=1)he.push(this.getTextDimensions(I[E],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);te[k]=Math.max.apply(null,he)+F+F,he=[]}if(q){var J={};for(p=0;p<N.length;p+=1)J[N[p]]={},J[N[p]].text=H[p],J[N[p]].align=T[p];var Q=l.call(this,J,te);ce=N.map(function(ue){return new o(c,h,te[ue],Q,J[ue].text,void 0,J[ue].align)}),this.setTableHeaderRow(ce),this.printHeaderRow(1,!1)}var ae=v.reduce(function(ue,le){return ue[le.name]=le.align,ue},{});for(p=0;p<m.length;
77p+=1){"rowStart"in x&&x.rowStart instanceof Function&&x.rowStart({row:p,data:m[p]},this);var U=l.call(this,m[p],te);for(E=0;E<N.length;E+=1){var Y=m[p][N[E]];"cellStart"in x&&x.cellStart instanceof Function&&x.cellStart({row:p,col:E,data:Y},this),f.call(this,new o(c,h,te[N[E]],U,Y,p+2,ae[N[E]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=h,this};var l=function(c,h){var m=this.internal.__cell__.padding,v=this.internal.__cell__.table_font_size,x=this.internal.scaleFactor;return Object.keys(c).map(function(p){var I=c[p];return this.splitTextToSize(I.hasOwnProperty("text")?I.text:I,h[p]-m-m)},this).map(function(p){return this.getLineHeightFactor()*p.length*v/x+m+m},this).reduce(function(p,I){return Math.max(p,I)},0)};n.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},n.printHeaderRow=function(c,h){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var m;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var v=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(v[0],v[1],v[2],v[3],void 0,-1)}this.setFont(void 0,"bold");for(var x=[],p=0;p<this.internal.__cell__.tableHeaderRow.length;p+=1){m=this.internal.__cell__.tableHeaderRow[p].clone(),h&&(m.y=this.internal.__cell__.margins.top||0,x.push(m)),m.lineNumber=c;var I=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),f.call(this,m),this.setTextColor(I)}x.length>0&&this.setTableHeaderRow(x),this.setFont(void 0,"normal"),e=!1}})(We.API);var Mf={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Bf=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Il=Ff(Bf),jf=[100,200,300,400,500,600,700,800,900],b0=Ff(jf);function gl(n){var t=n.family.replace(/"|'/g,"").toLowerCase(),e=(function(o){return Mf[o=o||"normal"]?o:"normal"})(n.style),r=(function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400})(n.weight),a=(function(o){return typeof Il[o=o||"normal"]=="number"?o:"normal"})(n.stretch);return{family:t,style:e,weight:r,stretch:a,src:n.src||[],ref:n.ref||{name:t,style:[a,e,r].join(" ")}}}function xu(n,t,e,r){var a;for(a=e;a>=0&&a<t.length;a+=r)if(n[t[a]])return n[t[a]];for(a=e;a>=0&&a<t.length;a-=r)if(n[t[a]])return n[t[a]]}var y0={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Au={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Lu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Nu(n){return n.trimLeft()}function w0(n,t){for(var e=0;e<n.length;){if(n.charAt(e)===t)return[n.substring(0,e),n.substring(e+1)];e+=1}return null}function _0(n){var t=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],n.substring(t[0].length)]}var wa,Ko,ku,Su,Pu,vl=["times"];function Cu(n,t,e,r,a){var o=4,f=Eu;switch(a){case We.API.image_compression.FAST:o=1,f=Iu;break;case We.API.image_compression.MEDIUM:o=6,f=Ou;break;case We.API.image_compression.SLOW:o=9,f=Fu}n=(function(c,h,m,v){for(var x,p=c.length/h,I=new Uint8Array(c.length+p),E=[x0,Iu,Eu,Ou,Fu],k=0;k<p;k+=1){var N=k*h,H=c.subarray(N,N+h);if(v)I.set(v(H,m,x),N+k);else{for(var T=E.length,R=[],te=0;te<T;te+=1)R[te]=E[te](H,m,x);var he=L0(R.concat());I.set(R[he],N+k)}x=H}return I})(n,t,Math.ceil(e*r/8),f);var l=Al(n,{level:o});return We.API.__addimage__.arrayBufferToBinaryString(l)}function x0(n){var t=Array.apply([],n);return t.unshift(0),t}function Iu(n,t){var e=n.length,r=[];r[0]=1;for(var a=0;a<e;a+=1){var o=n[a-t]||0;r[a+1]=n[a]-o+256&255}return r}function Eu(n,t,e){var r=n.length,a=[];a[0]=2;for(var o=0;o<r;o+=1){var f=e&&e[o]||0;a[o+1]=n[o]-f+256&255}return a}function Ou(n,t,e){var r=n.length,a=[];a[0]=3;for(var o=0;o<r;o+=1){var f=n[o-t]||0,l=e&&e[o]||0;a[o+1]=n[o]+256-(f+l>>>1)&255}return a}function Fu(n,t,e){var r=n.length,a=[];a[0]=4;for(var o=0;o<r;o+=1){var f=A0(n[o-t]||0,e&&e[o]||0,e&&e[o-t]||0);a[o+1]=n[o]-f+256&255}return a}function A0(n,t,e){if(n===t&&t===e)return n;var r=Math.abs(t-e),a=Math.abs(n-e),o=Math.abs(n+t-e-e);
77return r<=a&&r<=o?n:a<=o?t:e}function L0(n){var t=n.map(function(e){return e.reduce(function(r,a){return r+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function bl(n,t,e){var r=t*e,a=Math.floor(r/8),o=16-(r-8*a+e),f=(1<<e)-1;return Rf(n,a)>>o&f}function Mu(n,t,e,r){var a=e*r,o=Math.floor(a/8),f=16-(a-8*o+r),l=(1<<r)-1,c=(t&l)<<f;(function(h,m,v){if(m+1<h.byteLength)h.setUint16(m,v,!1);else{var x=v>>8&255;h.setUint8(m,x)}})(n,o,Rf(n,o)&~(l<<f)&65535|c)}function Rf(n,t){return t+1<n.byteLength?n.getUint16(t,!1):n.getUint8(t)<<8}function N0(n){var t=0;if(n[t++]!==71||n[t++]!==73||n[t++]!==70||n[t++]!==56||(n[t++]+1&253)!=56||n[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=n[t++]|n[t++]<<8,r=n[t++]|n[t++]<<8,a=n[t++],o=a>>7,f=1<<1+(7&a);n[t++],n[t++];var l=null,c=null;o&&(l=t,c=f,t+=3*f);var h=!0,m=[],v=0,x=null,p=0,I=null;for(this.width=e,this.height=r;h&&t<n.length;)switch(n[t++]){case 33:switch(n[t++]){case 255:if(n[t]!==11||n[t+1]==78&&n[t+2]==69&&n[t+3]==84&&n[t+4]==83&&n[t+5]==67&&n[t+6]==65&&n[t+7]==80&&n[t+8]==69&&n[t+9]==50&&n[t+10]==46&&n[t+11]==48&&n[t+12]==3&&n[t+13]==1&&n[t+16]==0)t+=14,I=n[t++]|n[t++]<<8,t++;else for(t+=12;;){if(!((S=n[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;case 249:if(n[t++]!==4||n[t+4]!==0)throw new Error("Invalid graphics extension block.");var E=n[t++];v=n[t++]|n[t++]<<8,x=n[t++],1&E||(x=null),p=E>>2&7,t++;break;case 254:for(;;){if(!((S=n[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}break;default:throw new Error("Unknown graphic control label: 0x"+n[t-1].toString(16))}break;case 44:var k=n[t++]|n[t++]<<8,N=n[t++]|n[t++]<<8,H=n[t++]|n[t++]<<8,T=n[t++]|n[t++]<<8,R=n[t++],te=R>>6&1,he=1<<1+(7&R),ce=l,G=c,q=!1;R>>7&&(q=!0,ce=t,G=he,t+=3*he);var ne=t;for(t++;;){var S;if(!((S=n[t++])>=0))throw Error("Invalid block size");if(S===0)break;t+=S}
vendor: 7,430 bytes, lines 77-108
77m.push({x:k,y:N,width:H,height:T,has_local_palette:q,palette_offset:ce,palette_size:G,data_offset:ne,data_length:t-ne,transparent_index:x,interlaced:!!te,delay:v,disposal:p});break;case 59:h=!1;break;default:throw new Error("Unknown gif block: 0x"+n[t-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return I},this.frameInfo=function(F){if(F<0||F>=m.length)throw new Error("Frame index out of range.");return m[F]},this.decodeAndBlitFrameBGRA=function(F,W){var V=this.frameInfo(F),J=V.width*V.height;if(J>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var Q=new Uint8Array(J);Bu(n,V.data_offset,Q,J);var ae=V.palette_offset,U=V.transparent_index;U===null&&(U=256);var Y=V.width,ue=e-Y,le=Y,w=4*(V.y*e+V.x),O=4*((V.y+V.height)*e+V.x),D=w,z=4*ue;V.interlaced===!0&&(z+=4*e*7);for(var K=8,re=0,fe=Q.length;re<fe;++re){var de=Q[re];if(le===0&&(le=Y,(D+=z)>=O&&(z=4*ue+4*e*(K-1),D=w+(Y+ue)*(K<<1),K>>=1)),de===U)D+=4;else{var be=n[ae+3*de],Ne=n[ae+3*de+1],Ce=n[ae+3*de+2];W[D++]=Ce,W[D++]=Ne,W[D++]=be,W[D++]=255}--le}},this.decodeAndBlitFrameRGBA=function(F,W){var V=this.frameInfo(F),J=V.width*V.height;if(J>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var Q=new Uint8Array(J);Bu(n,V.data_offset,Q,J);var ae=V.palette_offset,U=V.transparent_index;U===null&&(U=256);var Y=V.width,ue=e-Y,le=Y,w=4*(V.y*e+V.x),O=4*((V.y+V.height)*e+V.x),D=w,z=4*ue;V.interlaced===!0&&(z+=4*e*7);for(var K=8,re=0,fe=Q.length;re<fe;++re){var de=Q[re];if(le===0&&(le=Y,(D+=z)>=O&&(z=4*ue+4*e*(K-1),D=w+(Y+ue)*(K<<1),K>>=1)),de===U)D+=4;else{var be=n[ae+3*de],Ne=n[ae+3*de+1],Ce=n[ae+3*de+2];W[D++]=be,W[D++]=Ne,W[D++]=Ce,W[D++]=255}--le}}}function Bu(n,t,e,r){for(var a=n[t++],o=1<<a,f=o+1,l=f+1,c=a+1,h=(1<<c)-1,m=0,v=0,x=0,p=n[t++],I=new Int32Array(4096),E=null;;){for(;m<16&&p!==0;)v|=n[t++]<<m,m+=8,p===1?p=n[t++]:--p;if(m<c)break;var k=v&h;if(v>>=c,m-=c,k!==o){if(k===f)break;for(var N=k<l?k:E,H=0,T=N;T>o;)T=I[T]>>8,++H;var R=T;if(x+H+(N!==k?1:0)>r)return void Mt.log("Warning, gif stream longer than expected.");e[x++]=R;var te=x+=H;for(N!==k&&(e[x++]=R),T=N;H--;)T=I[T],e[--te]=255&T,T>>=8;E!==null&&l<4096&&(I[l++]=E<<8|R,l>=h+1&&c<12&&(++c,h=h<<1|1)),E=k}else l=f+1,h=(1<<(c=a+1))-1,E=null}return x!==r&&Mt.log("Warning, gif stream shorter than expected."),e}/** 78 * @license 79 Copyright (c) 2008, Adobe Systems Incorporated 80 All rights reserved. 81 82 Redistribution and use in source and binary forms, with or without 83 modification, are permitted provided that the following conditions are 84 met: 85 86 * Redistributions of source code must retain the above copyright notice, 87 this list of conditions and the following disclaimer. 88 89 * Redistributions in binary form must reproduce the above copyright 90 notice, this list of conditions and the following disclaimer in the 91 documentation and/or other materials provided with the distribution. 92 93 * Neither the name of Adobe Systems Incorporated nor the names of its 94 contributors may be used to endorse or promote products derived from 95 this software without specific prior written permission. 96 97 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 98 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 99 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 100 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 101 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 102 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 103 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 104 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 105 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 106 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 107 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 108*/function yl(n){var t,e,r,a,o,f=Math.floor,l=new Array(64),c=new Array(64),h=new Array(64),m=new Array(64),v=new Array(65535),x=new Array(65535),p=new Array(64),I=new Array(64),E=[],k=0,N=7,H=new Array(64),T=new Array(64),R=new Array(64),te=new Array(256),he=new Array(2048),ce=[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],G=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],q=[0,1,2,3,4,5,6,7,8,9,10,11],ne=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],J=[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 Q(w,O){for(var D=0,z=0,K=new Array,re=1;re<=16;re++){for(var fe=1;fe<=w[re];fe++)K[O[z]]=[],K[O[z]][0]=D,K[O[z]][1]=re,z++,D++;D*=2}return K}function ae(w){for(var O=w[0],D=w[1]-1;D>=0;)O&1<<D&&(k|=1<<N),D--,--N<0&&(k==255?(U(255),U(0)):U(k),N=7,k=0)}function U(w){E.push(w)}function Y(w){U(w>>8&255),U(255&w)}function ue(w,O,D,z,K){for(var re,fe=K[0],de=K[240],be=(function(ye,qe){var Ie,Oe,Pe,Lt,ht,et,bt,mt,Te,tt,$e=0;for(Te=0;Te<8;++Te){Ie=ye[$e],Oe=ye[$e+1],Pe=ye[$e+2],Lt=ye[$e+3],ht=ye[$e+4],et=ye[$e+5],bt=ye[$e+6];var Zt=Ie+(mt=ye[$e+7]),xt=Ie-mt,dt=Oe+bt,pt=Oe-bt,Vt=Pe+et,Ye=Pe-et,Bt=Lt+ht,Ke=Lt-ht,it=Zt+Bt,Ht=Zt-Bt,gt=dt+Vt,Je=dt-Vt;ye[$e]=it+gt,ye[$e+4]=it-gt;var kt=.707106781*(Je+Ht);ye[$e+2]=Ht+kt,ye[$e+6]=Ht-kt;var wi=.382683433*((it=Ke+Ye)-(Je=pt+xt)),_n=.5411961*it+wi,Rr=1.306562965*Je+wi,wr=.707106781*(gt=Ye+pt),Xe=xt+wr,Tr=xt-wr;ye[$e+5]=Tr+_n,ye[$e+3]=Tr-_n,ye[$e+1]=Xe+Rr,ye[$e+7]=Xe-Rr,$e+=8}for($e=0,Te=0;Te<8;++Te){Ie=ye[$e],Oe=ye[$e+8],Pe=ye[$e+16],Lt=ye[$e+24],ht=ye[$e+32],et=ye[$e+40],bt=ye[$e+48];var Dr=Ie+(mt=ye[$e+56]),Qn=Ie-mt,er=Oe+bt,Yt=Oe-bt,pn=Pe+et,gn=Pe-et,_i=Lt+ht,ei=Lt-ht,sr=Dr+_i,_r=Dr-_i,lr=er+pn,cr=er-pn;ye[$e]=sr+lr,ye[$e+32]=sr-lr;var tr=.707106781*(cr+_r);ye[$e+16]=_r+tr,ye[$e+48]=_r-tr;var xi=.382683433*((sr=ei+gn)-(cr=Yt+Qn)),xr=.5411961*sr+xi,Ai=1.306562965*cr+xi,Ji=.707106781*(lr=gn+Yt),Xi=Qn+Ji,Ki=Qn-Ji;ye[$e+40]=Ki+xr,ye[$e+24]=Ki-xr,ye[$e+8]=Xi+Ai,ye[$e+56]=Xi-Ai,$e++}for(Te=0;Te<64;++Te)tt=ye[Te]*qe[Te],p[Te]=tt>0?tt+.5|0:tt-.5|0;return p})(w,O),Ne=0;Ne<64;++Ne)I[ce[Ne]]=be[Ne];var Ce=I[0]-D;D=I[0],Ce==0?ae(z[0]):(ae(z[x[re=32767+Ce]]),ae(v[re]));for(var Se=63;Se>0&&I[Se]==0;)Se--;
108if(Se==0)return ae(fe),D;for(var _e,L=1;L<=Se;){for(var Ae=L;I[L]==0&&L<=Se;)++L;var Me=L-Ae;if(Me>=16){_e=Me>>4;for(var Ee=1;Ee<=_e;++Ee)ae(de);Me&=15}re=32767+I[L],ae(K[(Me<<4)+x[re]]),ae(v[re]),L++}return Se!=63&&ae(fe),D}function le(w){w=Math.min(Math.max(w,1),100),o!=w&&((function(O){for(var D=[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],z=0;z<64;z++){var K=f((D[z]*O+50)/100);K=Math.min(Math.max(K,1),255),l[ce[z]]=K}for(var re=[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],fe=0;fe<64;fe++){var de=f((re[fe]*O+50)/100);de=Math.min(Math.max(de,1),255),c[ce[fe]]=de}for(var be=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ne=0,Ce=0;Ce<8;Ce++)for(var Se=0;Se<8;Se++)h[Ne]=1/(l[ce[Ne]]*be[Ce]*be[Se]*8),m[Ne]=1/(c[ce[Ne]]*be[Ce]*be[Se]*8),Ne++})(w<50?Math.floor(5e3/w):Math.floor(200-2*w)),o=w)}this.encode=function(w,O){O&&le(O),E=new Array,k=0,N=7,Y(65496),Y(65504),Y(16),U(74),U(70),U(73),U(70),U(0),U(1),U(1),U(0),Y(1),Y(1),U(0),U(0),(function(){Y(65499),Y(132),U(0);for(var Oe=0;Oe<64;Oe++)U(l[Oe]);U(1);for(var Pe=0;Pe<64;Pe++)U(c[Pe])})(),(function(Oe,Pe){Y(65472),Y(17),U(8),Y(Pe),Y(Oe),U(3),U(1),U(17),U(0),U(2),U(17),U(1),U(3),U(17),U(1)})(w.width,w.height),(function(){Y(65476),Y(418),U(0);for(var Oe=0;Oe<16;Oe++)U(G[Oe+1]);for(var Pe=0;Pe<=11;Pe++)U(q[Pe]);U(16);for(var Lt=0;Lt<16;Lt++)U(ne[Lt+1]);for(var ht=0;ht<=161;ht++)U(S[ht]);U(1);for(var et=0;et<16;et++)U(F[et+1]);for(var bt=0;bt<=11;bt++)U(W[bt]);U(17);for(var mt=0;mt<16;mt++)U(V[mt+1]);for(var Te=0;Te<=161;Te++)U(J[Te])})(),Y(65498),Y(12),U(3),U(1),U(0),U(2),U(17),U(3),U(17),U(0),U(63),U(0);var D=0,z=0,K=0;k=0,N=7,this.encode.displayName="_encode_";for(var re,fe,de,be,Ne,Ce,Se,_e,L,Ae=w.data,Me=w.width,Ee=w.height,ye=4*Me,qe=0;qe<Ee;){for(re=0;re<ye;){for(Ne=ye*qe+re,Se=-1,_e=0,L=0;L<64;L++)Ce=Ne+(_e=L>>3)*ye+(Se=4*(7&L)),qe+_e>=Ee&&(Ce-=ye*(qe+1+_e-Ee)),re+Se>=ye&&(Ce-=re+Se-ye+4),fe=Ae[Ce++],de=Ae[Ce++],be=Ae[Ce++],H[L]=(he[fe]+he[de+256|0]+he[be+512|0]>>
10816)-128,T[L]=(he[fe+768|0]+he[de+1024|0]+he[be+1280|0]>>16)-128,R[L]=(he[fe+1280|0]+he[de+1536|0]+he[be+1792|0]>>16)-128;D=ue(H,h,D,t,r),z=ue(T,m,z,e,a),K=ue(R,m,K,e,a),re+=32}qe+=8}if(N>=0){var Ie=[];Ie[1]=N+1,Ie[0]=(1<<N+1)-1,ae(Ie)}return Y(65497),new Uint8Array(E)},n=n||50,(function(){for(var w=String.fromCharCode,O=0;O<256;O++)te[O]=w(O)})(),t=Q(G,q),e=Q(F,W),r=Q(ne,S),a=Q(V,J),(function(){for(var w=1,O=2,D=1;D<=15;D++){for(var z=w;z<O;z++)x[32767+z]=D,v[32767+z]=[],v[32767+z][1]=D,v[32767+z][0]=z;for(var K=-(O-1);K<=-w;K++)x[32767+K]=D,v[32767+K]=[],v[32767+K][1]=D,v[32767+K][0]=O-1+K;w<<=1,O<<=1}})(),(function(){for(var w=0;w<256;w++)he[w]=19595*w,he[w+256|0]=38470*w,he[w+512|0]=7471*w+32768,he[w+768|0]=-11059*w,he[w+1024|0]=-21709*w,he[w+1280|0]=32768*w+8421375,he[w+1536|0]=-27439*w,he[w+1792|0]=-5329*w})(),le(n)}/** 109 * @license 110 * Copyright (c) 2017 Aras Abbasi 111 * 112 * Licensed under the MIT License. 113 * http://opensource.org/licenses/mit-license 114 */function pr(n,t){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.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 ju(n){function t(q){if(!q)throw Error("assert :P")}function e(q,ne,S){for(var F=0;4>F;F++)if(q[ne+F]!=S.charCodeAt(F))return!0;return!1}function r(q,ne,S,F,W){for(var V=0;V<W;V++)q[ne+V]=S[F+V]}function a(q,ne,S,F){for(var W=0;W<F;W++)q[ne+W]=S}function o(q){return new Int32Array(q)}function f(q,ne){for(var S=[],F=0;F<q;F++)S.push(new ne);return S}function l(q,ne){var S=[];return(function F(W,V,J){for(var Q=J[V],ae=0;ae<Q&&(W.push(J.length>V+1?[]:new ne),!(J.length<V+1));ae++)F(W[ae],V+1,J)})(S,0,q),S}var c=function(){var q=this;function ne(i,s){for(var d=1<<s-1>>>0;i&d;)d>>>=1;return d?(i&d-1)+d:i}function S(i,s,d,g,y){t(!(g%d));do i[s+(g-=d)]=y;while(0<g)}function F(i,s,d,g,y){if(t(2328>=y),512>=y)var _=o(512);else if((_=o(y))==null)return 0;return(function(A,P,C,B,X,se){var j,Z,ie=P,me=1<<C,oe=o(16),ge=o(16);for(t(X!=0),t(B!=null),t(A!=null),t(0<C),Z=0;Z<X;++Z){if(15<B[Z])return 0;++oe[B[Z]]}if(oe[0]==X)return 0;for(ge[1]=0,j=1;15>j;++j){if(oe[j]>1<<j)return 0;ge[j+1]=ge[j]+oe[j]}for(Z=0;Z<X;++Z)j=B[Z],0<B[Z]&&(se[ge[j]++]=Z);if(ge[15]==1)return(B=new W).g=0,B.value=se[0],S(A,ie,1,me,B),me;var ve,Le=-1,xe=me-1,He=0,Fe=1,ut=1,ze=1<<C;for(Z=0,j=1,X=2;j<=C;++j,X<<=1){if(Fe+=ut<<=1,0>(ut-=oe[j]))return 0;for(;0<oe[j];--oe[j])(B=new W).g=j,B.value=se[Z++],S(A,ie+He,X,ze,B),He=ne(He,j)}for(j=C+1,X=2;15>=j;++j,X<<=1){if(Fe+=ut<<=1,0>(ut-=oe[j]))return 0;for(;0<oe[j];--oe[j]){if(B=new W,(He&xe)!=Le){for(ie+=ze,ve=1<<(Le=j)-C;15>Le&&!(0>=(ve-=oe[Le]));)++Le,ve<<=1;me+=ze=1<<(ve=Le-C),A[P+(Le=He&xe)].g=ve+C,A[P+Le].value=ie-P-Le}B.g=j-C,B.value=se[Z++],S(A,ie+(He>>C),X,ze,B),He=ne(He,j)}}return Fe!=2*ge[15]-1?0:me})(i,s,d,g,y,_)}function W(){this.value=this.g=0}function V(){this.value=this.g=0}function J(){this.G=f(5,W),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=f(ua,V)}function Q(i,s,d,g){t(i!=null),t(s!=null),t(2147483648>g),i.Ca=254,i.I=0,i.b=-8,i.Ka=0,i.oa=s,i.pa=d,i.Jd=s,i.Yc=d+g,i.Zc=4<=g?d+g-4+1:d,fe(i)}function ae(i,s){for(var d=0;0<s--;)d|=be(i,128)<<s;return d}function U(i,s){var d=ae(i,s);return de(i)?-d:d}function Y(i,s,d,g){var y,_=0;for(t(i!=null),t(s!=null),t(4294967288>g),i.Sb=g,i.Ra=0,i.u=0,i.h=0,4<g&&(g=4),y=0;y<g;++y)_+=s[d+y]<<8*y;i.Ra=_,i.bb=g,i.oa=s,i.pa=d}function ue(i){for(;8<=i.u&&i.bb<i.Sb;)i.Ra>>>=8,i.Ra+=i.oa[i.pa+i.bb]<<On-8>>>0,++i.bb,i.u-=8;z(i)&&(i.h=1,i.u=0)}function le(i,s){if(t(0<=s),!i.h&&s<=Ha){var d=D(i)&Fi[s];return i.u+=s,ue(i),d}return i.h=1,i.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function O(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function D(i){return i.Ra>>>(i.u&On-1)>>>0}function z(i){return t(i.bb<=i.Sb),i.h||i.bb==i.Sb&&i.u>On}function K(i,s){i.u=s,i.h=z(i)}function re(i){i.u>=jn&&(t(i.u>=jn),ue(i))}function fe(i){t(i!=null&&i.oa!=null),i.pa<i.Zc?(i.I=(i.oa[i.pa++]|i.I<<8)>>>0,i.b+=8):(t(i!=null&&i.oa!=null),i.pa<i.Yc?(i.b+=8,i.I=i.oa[i.pa++]|i.I<<8):i.Ka?i.b=0:(i.I<<=8,i.b+=8,i.Ka=1))}function de(i){return ae(i,1)}function be(i,s){var d=i.Ca;0>i.b&&fe(i);var g=i.b,y=d*s>>>8,_=(i.I>>>g>y)+0;for(_?(d-=y,i.I-=y+1<<g>>>0):d=y+1,g=d,y=0;256<=g;)y+=8,g>>=8;return g=7^y+fa[g],i.b-=g,i.Ca=(d<<g)-1,_}function Ne(i,s,d){i[s+0]=d>>24&255,i[s+1]=d>>16&255,i[s+2]=d>>8&255,i[s+3]=255&d}function Ce(i,s){return i[s+0]|i[s+1]<<8}function Se(i,s){return Ce(i,s)|i[s+2]<<16}function _e(i,s){return Ce(i,s)|Ce(i,s+2)<<16}function L(i,s){var d=1<<s;return t(i!=null),t(0<s),i.X=o(d),i.X==null?0:(i.Mb=32-s,i.Xa=s,1)}function Ae(i,s){t(i!=null),t(s!=null),t(i.Xa==s.Xa),r(s.X,0,i.X,0,1<<s.Xa)}function Me(){this.X=[],this.Xa=this.Mb=0}function Ee(i,s,d,g){t(d!=null),t(g!=null);var y=d[0],_=g[0];return y==0&&(y=(i*_+s/2)/s),_==0&&(_=(s*y+i/2)/i),0>=y||0>=_?0:(d[0]=y,g[0]=_,1)}function ye(i,s){return i+(1<<s)-1>>>s}function qe(i,s){return((4278255360&i)+(4278255360&s)>>>0&4278255360)+((16711935&i)+(16711935&s)>>>0&16711935)>>>0}function Ie(i,s){q[s]=function(d,g,y,_,A,P,C){var B;for(B=0;B<A;++B){var X=q[i](P[C+B-1],y,_+B);P[C+B]=qe(d[g+B],X)}}}function Oe(){this.ud=this.hd=this.jd=0}function Pe(i,s){return((4278124286&(i^s))>>>1)+(i&s)>>>0}function Lt(i){return 0<=i&&256>i?i:0>i?0:255<i?255:void 0}function ht(i,s){return Lt(i+(i-s+.5>>1))}function et(i,s,d){return Math.abs(s-d)-Math.abs(i-d)}function bt(i,s,d,g,y,_,A){for(g=_[A-1],d=0;d<y;++d)_[A+d]=g=qe(i[s+d],g)}function mt(i,s,d,g,y){var _;
vendor: 6,087 bytes, line 114
114for(_=0;_<d;++_){var A=i[s+_],P=A>>8&255,C=16711935&(C=(C=16711935&A)+((P<<16)+P));g[y+_]=(4278255360&A)+C>>>0}}function Te(i,s){s.jd=255&i,s.hd=i>>8&255,s.ud=i>>16&255}function tt(i,s,d,g,y,_){var A;for(A=0;A<g;++A){var P=s[d+A],C=P>>>8,B=P,X=255&(X=(X=P>>>16)+((i.jd<<24>>24)*(C<<24>>24)>>>5));B=255&(B=(B+=(i.hd<<24>>24)*(C<<24>>24)>>>5)+((i.ud<<24>>24)*(X<<24>>24)>>>5)),y[_+A]=(4278255360&P)+(X<<16)+B}}function $e(i,s,d,g,y){q[s]=function(_,A,P,C,B,X,se,j,Z){for(C=se;C<j;++C)for(se=0;se<Z;++se)B[X++]=y(P[g(_[A++])])},q[i]=function(_,A,P,C,B,X,se){var j=8>>_.b,Z=_.Ea,ie=_.K[0],me=_.w;if(8>j)for(_=(1<<_.b)-1,me=(1<<j)-1;A<P;++A){var oe,ge=0;for(oe=0;oe<Z;++oe)oe&_||(ge=g(C[B++])),X[se++]=y(ie[ge&me]),ge>>=j}else q["VP8LMapColor"+d](C,B,ie,me,X,se,A,P,Z)}}function Zt(i,s,d,g,y){for(d=s+d;s<d;){var _=i[s++];g[y++]=_>>16&255,g[y++]=_>>8&255,g[y++]=255&_}}function xt(i,s,d,g,y){for(d=s+d;s<d;){var _=i[s++];g[y++]=_>>16&255,g[y++]=_>>8&255,g[y++]=255&_,g[y++]=_>>24&255}}function dt(i,s,d,g,y){for(d=s+d;s<d;){var _=(A=i[s++])>>16&240|A>>12&15,A=240&A|A>>28&15;g[y++]=_,g[y++]=A}}function pt(i,s,d,g,y){for(d=s+d;s<d;){var _=(A=i[s++])>>16&248|A>>13&7,A=A>>5&224|A>>3&31;g[y++]=_,g[y++]=A}}function Vt(i,s,d,g,y){for(d=s+d;s<d;){var _=i[s++];g[y++]=255&_,g[y++]=_>>8&255,g[y++]=_>>16&255}}function Ye(i,s,d,g,y,_){if(_==0)for(d=s+d;s<d;)Ne(g,((_=i[s++])[0]>>24|_[1]>>8&65280|_[2]<<8&16711680|_[3]<<24)>>>0),y+=32;else r(g,y,i,s,d)}function Bt(i,s){q[s][0]=q[i+"0"],q[s][1]=q[i+"1"],q[s][2]=q[i+"2"],q[s][3]=q[i+"3"],q[s][4]=q[i+"4"],q[s][5]=q[i+"5"],q[s][6]=q[i+"6"],q[s][7]=q[i+"7"],q[s][8]=q[i+"8"],q[s][9]=q[i+"9"],q[s][10]=q[i+"10"],q[s][11]=q[i+"11"],q[s][12]=q[i+"12"],q[s][13]=q[i+"13"],q[s][14]=q[i+"0"],q[s][15]=q[i+"0"]}function Ke(i){return i==js||i==Rs||i==Oo||i==Ts}function it(){this.eb=[],this.size=this.A=this.fb=0}function Ht(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function gt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new Ht,this.sd=null}function Je(){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 wi(i){return alert("todo:WebPSamplerProcessPlane"),i.T}function _n(i,s){var d=i.T,g=s.ba.f.RGBA,y=g.eb,_=g.fb+i.ka*g.A,A=ar[s.ba.S],P=i.y,C=i.O,B=i.f,X=i.N,se=i.ea,j=i.W,Z=s.cc,ie=s.dc,me=s.Mc,oe=s.Nc,ge=i.ka,ve=i.ka+i.T,Le=i.U,xe=Le+1>>1;for(ge==0?A(P,C,null,null,B,X,se,j,B,X,se,j,y,_,null,null,Le):(A(s.ec,s.fc,P,C,Z,ie,me,oe,B,X,se,j,y,_-g.A,y,_,Le),++d);ge+2<ve;ge+=2)Z=B,ie=X,me=se,oe=j,X+=i.Rc,j+=i.Rc,_+=2*g.A,A(P,(C+=2*i.fa)-i.fa,P,C,Z,ie,me,oe,B,X,se,j,y,_-g.A,y,_,Le);return C+=i.fa,i.j+ve<i.o?(r(s.ec,s.fc,P,C,Le),r(s.cc,s.dc,B,X,xe),r(s.Mc,s.Nc,se,j,xe),d--):1&ve||A(P,C,null,null,B,X,se,j,B,X,se,j,y,_+g.A,null,null,Le),d}function Rr(i,s,d){var g=i.F,y=[i.J];if(g!=null){var _=i.U,A=s.ba.S,P=A==Eo||A==Oo;s=s.ba.f.RGBA;var C=[0],B=i.ka;C[0]=i.T,i.Kb&&(B==0?--C[0]:(--B,y[0]-=i.width),i.j+i.ka+i.T==i.o&&(C[0]=i.o-i.j-B));var X=s.eb;B=s.fb+B*s.A,i=$l(g,y[0],i.width,_,C,X,B+(P?0:3),s.A),t(d==C),i&&Ke(A)&&Ya(X,B,P,_,C,s.A)}return 0}function wr(i){var s=i.ma,d=s.ba.S,g=11>d,y=d==Co||d==Io||d==Eo||d==Bs||d==12||Ke(d);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!rr(s.Oa,i,y?11:12))return 0;if(y&&Ke(d)&&Wr(),i.da)alert("todo:use_scaling");else{if(g){if(s.Ib=wi,i.Kb){if(d=i.U+1>>1,s.memory=o(i.U+2*d),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+i.U,s.Mc=s.cc,s.Nc=s.dc+d,s.Ib=_n,Wr()}}else alert("todo:EmitYUV");y&&(s.Jb=Rr,g&&Gt())}if(g&&!lc){for(i=0;256>i;++i)ih[i]=89858*(i-128)+Mo>>Fo,sh[i]=-22014*(i-128)+Mo,oh[i]=-45773*(i-128),ah[i]=113618*(i-128)+Mo>>Fo;for(i=Xa;i<Us;++i)s=76283*(i-16)+Mo>>Fo,lh[i-Xa]=Ar(s,255),ch[i-Xa]=Ar(s+8>>4,15);lc=1}return 1}function Xe(i){var s=i.ma,d=i.U,g=i.T;return t(!(1&i.ka)),0>=d||0>=g?0:(d=s.Ib(i,s),s.Jb!=null&&s.Jb(i,s,d),s.Dc+=d,1)}function Tr(i){i.ma.memory=null}function Dr(i,s,d,g){return le(i,8)!=47?0:(s[0]=le(i,14)+1,d[0]=le(i,14)+1,g[0]=le(i,1),le(i,3)!=0?0:!i.h)}function Qn(i,s){if(4>i)return i+1;var d=i-2>>1;return(2+(1&i)<<d)+le(s,d)+1}function er(i,s){return 120<s?s-120:1<=(d=((d=Hf[s-1])>>4)*i+(8-(15&d)))?d:1;var d}function Yt(i,s,d){var g=D(d),y=i[s+=255&g].g-8;return 0<y&&(K(d,d.u+8),g=D(d),s+=i[s].value,s+=g&(1<<y)-1),K(d,d.u+i[s].g),i[s].value}function pn(i,s,d){return d.g+=i.g,d.value+=i.value<<s>>>0,t(8>=d.g),i.g}function gn(i,s,d){var g=i.xc;return t((s=g==0?0:i.vc[i.md*(d>>g)+(s>>g)])<i.Wb),i.Ya[s]}function _i(i,s,d,g){var y=i.ab,_=i.c*s,A=i.C;s=A+s;var P=d,C=g;for(g=i.Ta,d=i.Ua;0<y--;){var B=i.gc[y],X=A,se=s,j=P,Z=C,ie=(C=g,P=d,B.Ea);switch(t(X<se),t(se<=B.nc),B.hc){case 2:ha(j,Z,(se-X)*ie,C,P);break;case 0:var me=X,oe=se,ge=C,ve=P,Le=(ze=B).Ea;me==0&&(ai(j,Z,null,null,1,ge,ve),bt(j,Z+1,0,0,Le-1,ge,ve+1),Z+=Le,ve+=Le,++me);for(var xe=1<<ze.b,He=xe-1,Fe=ye(Le,ze.b),ut=ze.K,ze=ze.w+(me>>ze.b)*Fe;me<oe;){var yt=ut,fn=ze,ft=1;for(oi(j,Z,ge,ve-Le,1,ge,ve);ft<Le;){var Ve=(ft&~He)+xe;Ve>Le&&(Ve=Le),(0,ur[yt[fn++]>>8&15])(j,Z+ +ft,ge,ve+ft-Le,Ve-ft,ge,ve+ft),ft=Ve}Z+=Le,ve+=Le,++me&He||(ze+=Fe)}se!=B.nc&&r(C,P-ie,C,P+(se-X-1)*ie,ie);break;case 1:for(ie=j,oe=Z,Le=(j=B.Ea)-(ve=j&~(ge=(Z=1<<B.b)-1)),me=ye(j,B.b),xe=B.K,B=B.w+(X>>B.b)*me;X<se;){for(He=xe,Fe=B,ut=new Oe,ze=oe+ve,yt=oe+j;oe<ze;)Te(He[Fe++],ut),Bi(ut,ie,oe,Z,C,P),oe+=Z,P+=Z;oe<yt&&(Te(He[Fe++],ut),Bi(ut,ie,oe,Le,C,P),oe+=Le,P+=Le),++X&ge||(B+=me)}break;case 3:if(j==C&&Z==P&&0<B.b){for(oe=C,j=ie=P+(se-X)*ie-(ve=(se-X)*ye(B.Ea,B.b)),Z=C,ge=P,me=[],ve=(Le=ve)-1;0<=ve;--ve)me[ve]=Z[ge+ve];for(ve=Le-1;0<=ve;--ve)oe[j+ve]=me[ve];Mi(B,X,se,C,ie,C,P)}else Mi(B,X,se,j,Z,C,P)}P=g,C=d}C!=d&&r(g,d,P,C,_)}function ei(i,s){var d=i.V,g=i.Ba+i.c*i.C,y=s-i.C;if(t(s<=i.l.o),t(16>=y),0<y){var _=i.l,A=i.Ta,P=i.Ua,C=_.width;if(_i(i,y,d,g),y=P=[P],t((d=i.C)<(g=s)),t(_.v<_.va),g>_.o&&(g=_.o),d<_.j){var B=_.j-d;d=_.j,y[0]+=B*C}if(d>=g?d=0:(y[0]+=4*_.v,_.ka=d-_.j,_.U=_.va-_.v,_.T=g-d,d=1),d){if(P=P[0],11>
114(d=i.ca).S){var X=d.f.RGBA,se=(g=d.S,y=_.U,_=_.T,B=X.eb,X.A),j=_;for(X=X.fb+i.Ma*X.A;0<j--;){var Z=A,ie=P,me=y,oe=B,ge=X;switch(g){case Po:Wa(Z,ie,me,oe,ge);break;case Co:$a(Z,ie,me,oe,ge);break;case js:$a(Z,ie,me,oe,ge),Ya(oe,ge,0,me,1,0);break;case Ql:Ri(Z,ie,me,oe,ge);break;case Io:Ye(Z,ie,me,oe,ge,1);break;case Rs:Ye(Z,ie,me,oe,ge,1),Ya(oe,ge,0,me,1,0);break;case Eo:Ye(Z,ie,me,oe,ge,0);break;case Oo:Ye(Z,ie,me,oe,ge,0),Ya(oe,ge,1,me,1,0);break;case Bs:da(Z,ie,me,oe,ge);break;case Ts:da(Z,ie,me,oe,ge),Wl(oe,ge,me,1,0);break;case ec:ji(Z,ie,me,oe,ge);break;default:t(0)}P+=C,X+=se}i.Ma+=_}else alert("todo:EmitRescaledRowsYUVA");t(i.Ma<=d.height)}}i.C=s,t(i.C<=i.i)}function sr(i){var s;if(0<i.ua)return 0;for(s=0;s<i.Wb;++s){var d=i.Ya[s].G,g=i.Ya[s].H;if(0<d[1][g[1]+0].g||0<d[2][g[2]+0].g||0<d[3][g[3]+0].g)return 0}return 1}function _r(i,s,d,g,y,_){if(i.Z!=0){var A=i.qd,P=i.rd;for(t(ui[i.Z]!=null);s<d;++s)ui[i.Z](A,P,g,y,g,y,_),A=g,P=y,y+=_;i.qd=A,i.rd=P}}function lr(i,s){var d=i.l.ma,g=d.Z==0||d.Z==1?i.l.j:i.C;if(g=i.C<g?g:i.C,t(s<=i.l.o),s>g){var y=i.l.width,_=d.ca,A=d.tb+y*g,P=i.V,C=i.Ba+i.c*g,B=i.gc;t(i.ab==1),t(B[0].hc==3),Fs(B[0],g,s,P,C,_,A),_r(d,g,s,_,A,y)}i.C=i.Ma=s}function cr(i,s,d,g,y,_,A){var P=i.$/g,C=i.$%g,B=i.m,X=i.s,se=d+i.$,j=se;y=d+g*y;var Z=d+g*_,ie=280+X.ua,me=i.Pb?P:16777216,oe=0<X.ua?X.Wa:null,ge=X.wc,ve=se<Z?gn(X,C,P):null;t(i.C<_),t(Z<=y);var Le=!1;e:for(;;){for(;Le||se<Z;){var xe=0;if(P>=me){var He=se-d;t((me=i).Pb),me.wd=me.m,me.xd=He,0<me.s.ua&&Ae(me.s.Wa,me.s.vb),me=P+$f}if(C&ge||(ve=gn(X,C,P)),t(ve!=null),ve.Qb&&(s[se]=ve.qb,Le=!0),!Le)if(re(B),ve.jc){xe=B,He=s;var Fe=se,ut=ve.pd[D(xe)&ua-1];t(ve.jc),256>ut.g?(K(xe,xe.u+ut.g),He[Fe]=ut.value,xe=0):(K(xe,xe.u+ut.g-256),t(256<=ut.value),xe=ut.value),xe==0&&(Le=!0)}else xe=Yt(ve.G[0],ve.H[0],B);if(B.h)break;if(Le||256>xe){if(!Le)if(ve.nd)s[se]=(ve.qb|xe<<8)>>>0;else{if(re(B),Le=Yt(ve.G[1],ve.H[1],B),re(B),He=Yt(ve.G[2],ve.H[2],B),Fe=Yt(ve.G[3],ve.H[3],B),B.h)break;s[se]=(Fe<<24|Le<<16|xe<<8|He)>>>0}if(Le=!1,++se,++C>=g&&(C=0,++P,A!=null&&P<=_&&!(P%16)&&A(i,P),oe!=null))for(;j<se;)xe=s[j++],oe.X[(506832829*xe&4294967295)>>>oe.Mb]=xe}else if(280>xe){if(xe=Qn(xe-256,B),He=Yt(ve.G[4],ve.H[4],B),re(B),He=er(g,He=Qn(He,B)),B.h)break;if(se-d<He||y-se<xe)break e;for(Fe=0;Fe<xe;++Fe)s[se+Fe]=s[se+Fe-He];for(se+=xe,C+=xe;C>=g;)C-=g,++P,A!=null&&P<=_&&!(P%16)&&A(i,P);if(t(se<=y),C&ge&&(ve=gn(X,C,P)),oe!=null)for(;j<se;)xe=s[j++],oe.X[(506832829*xe&4294967295)>>>oe.Mb]=xe}else{if(!(xe<ie))break e;for(Le=xe-280,t(oe!=null);j<se;)xe=s[j++],oe.X[(506832829*xe&4294967295)>>>oe.Mb]=xe;xe=se,t(!(Le>>>(He=oe).Xa)),s[xe]=He.X[Le],Le=!0}Le||t(B.h==z(B))}if(i.Pb&&B.h&&se<y)t(i.m.h),i.a=5,i.m=i.wd,i.$=i.xd,0<i.s.ua&&Ae(i.s.vb,i.s.Wa);else{if(B.h)break e;A!=null&&A(i,P>_?_:P),i.a=0,i.$=se-d}return 1}return i.a=3,0}function tr(i){t(i!=null),i.vc=null,i.yc=null,i.Ya=null;var s=i.Wa;s!=null&&(s.X=null),i.vb=null,t(i!=null)}function xi(){var i=new Ue;return i==null?null:(i.a=0,i.xb=rc,Bt("Predictor","VP8LPredictors"),Bt("Predictor","VP8LPredictors_C"),Bt("PredictorAdd","VP8LPredictorsAdd"),Bt("PredictorAdd","VP8LPredictorsAdd_C"),ha=mt,Bi=tt,Wa=Zt,$a=xt,da=dt,ji=pt,Ri=Vt,q.VP8LMapColor32b=cn,q.VP8LMapColor8b=Pr,i)}function xr(i,s,d,g,y){var _=1,A=[i],P=[s],C=g.m,B=g.s,X=null,se=0;e:for(;;){if(d)for(;_&&le(C,1);){var j=A,Z=P,ie=g,me=1,oe=ie.m,ge=ie.gc[ie.ab],ve=le(oe,2);if(ie.Oc&1<<ve)_=0;else{switch(ie.Oc|=1<<ve,ge.hc=ve,ge.Ea=j[0],ge.nc=Z[0],ge.K=[null],++ie.ab,t(4>=ie.ab),ve){case 0:case 1:ge.b=le(oe,3)+2,me=xr(ye(ge.Ea,ge.b),ye(ge.nc,ge.b),0,ie,ge.K),ge.K=ge.K[0];break;case 3:var Le,xe=le(oe,8)+1,He=16<xe?0:4<xe?1:2<xe?2:3;if(j[0]=ye(ge.Ea,He),ge.b=He,Le=me=xr(xe,1,0,ie,ge.K)){var Fe,ut=xe,ze=ge,yt=1<<(8>>ze.b),fn=o(yt);if(fn==null)Le=0;else{var ft=ze.K[0],Ve=ze.w;for(fn[0]=ze.K[0][0],Fe=1;Fe<1*ut;++Fe)fn[Fe]=qe(ft[Ve+Fe],fn[Fe-1]);for(;Fe<4*yt;++Fe)fn[Fe]=0;ze.K[0]=null,ze.K[0]=fn,Le=1}}me=Le;break;case 2:break;default:t(0)}_=me}}if(A=A[0],P=P[0],_&&le(C,1)&&!(_=1<=(se=le(C,4))&&11>=se)){g.a=3;break e}var ke;if(ke=_)t:{var en,ot,_t,Ut=g,bn=A,Fn=P,Jt=se,Nn=d,Mn=Ut.m,hn=Ut.s,At=[null],St=1,Xt=0,Pt=Wf[Jt];n:for(;;){if(Nn&&le(Mn,1)){var yn=le(Mn,3)+2,hr=ye(bn,yn),tn=ye(Fn,yn),Rn=hr*tn;if(!xr(hr,tn,0,Ut,At))break n;for(At=At[0],hn.xc=yn,en=0;en<Rn;++en){var Ft=At[en]>>8&65535;At[en]=Ft,Ft>=St&&(St=Ft+1)}}if(Mn.h)break n;for(ot=0;5>ot;++ot){var dn=tc[ot];!ot&&0<Jt&&(dn+=1<<Jt),Xt<dn&&(Xt=dn)}var Wn=f(St*Pt,W),Bn=St,$n=f(Bn,J);
114if($n==null)var Gn=null;else t(65536>=Bn),Gn=$n;var Tn=o(Xt);if(Gn==null||Tn==null||Wn==null){Ut.a=1;break n}var Yn=Wn;for(en=_t=0;en<St;++en){var Tt=Gn[en],Jn=Tt.G,dr=Tt.H,Ti=0,Jr=1,wn=0;for(ot=0;5>ot;++ot){dn=tc[ot],Jn[ot]=Yn,dr[ot]=_t,!ot&&0<Jt&&(dn+=1<<Jt);i:{var jo,zs=dn,Ro=Ut,Ka=Tn,hh=Yn,dh=_t,Vs=0,fi=Ro.m,ph=le(fi,1);if(a(Ka,0,0,zs),ph){var mh=le(fi,1)+1,gh=le(fi,1),fc=le(fi,gh==0?1:8);Ka[fc]=1,mh==2&&(Ka[fc=le(fi,8)]=1);var To=1}else{var hc=o(19),dc=le(fi,4)+4;if(19<dc){Ro.a=3;var Do=0;break i}for(jo=0;jo<dc;++jo)hc[Vf[jo]]=le(fi,3);var Hs=void 0,Za=void 0,pc=Ro,vh=hc,qo=zs,mc=Ka,Ws=0,hi=pc.m,gc=8,vc=f(128,W);r:for(;F(vc,0,7,vh,19);){if(le(hi,1)){var bh=2+2*le(hi,3);if((Hs=2+le(hi,bh))>qo)break r}else Hs=qo;for(Za=0;Za<qo&&Hs--;){re(hi);var bc=vc[0+(127&D(hi))];K(hi,hi.u+bc.g);var ga=bc.value;if(16>ga)mc[Za++]=ga,ga!=0&&(gc=ga);else{var yh=ga==16,yc=ga-16,wh=Uf[yc],wc=le(hi,qf[yc])+wh;if(Za+wc>qo)break r;for(var _h=yh?gc:0;0<wc--;)mc[Za++]=_h}}Ws=1;break r}Ws||(pc.a=3),To=Ws}(To=To&&!fi.h)&&(Vs=F(hh,dh,8,Ka,zs)),To&&Vs!=0?Do=Vs:(Ro.a=3,Do=0)}if(Do==0)break n;if(Jr&&zf[ot]==1&&(Jr=Yn[_t].g==0),Ti+=Yn[_t].g,_t+=Do,3>=ot){var Qa,$s=Tn[0];for(Qa=1;Qa<dn;++Qa)Tn[Qa]>$s&&($s=Tn[Qa]);wn+=$s}}if(Tt.nd=Jr,Tt.Qb=0,Jr&&(Tt.qb=(Jn[3][dr[3]+0].value<<24|Jn[1][dr[1]+0].value<<16|Jn[2][dr[2]+0].value)>>>0,Ti==0&&256>Jn[0][dr[0]+0].value&&(Tt.Qb=1,Tt.qb+=Jn[0][dr[0]+0].value<<8)),Tt.jc=!Tt.Qb&&6>wn,Tt.jc){var Uo,Xr=Tt;for(Uo=0;Uo<ua;++Uo){var di=Uo,pi=Xr.pd[di],zo=Xr.G[0][Xr.H[0]+di];256<=zo.value?(pi.g=zo.g+256,pi.value=zo.value):(pi.g=0,pi.value=0,di>>=pn(zo,8,pi),di>>=pn(Xr.G[1][Xr.H[1]+di],16,pi),di>>=pn(Xr.G[2][Xr.H[2]+di],0,pi),pn(Xr.G[3][Xr.H[3]+di],24,pi))}}}hn.vc=At,hn.Wb=St,hn.Ya=Gn,hn.yc=Wn,ke=1;break t}ke=0}if(!(_=ke)){g.a=3;break e}if(0<se){if(B.ua=1<<se,!L(B.Wa,se)){g.a=1,_=0;break e}}else B.ua=0;var Gs=g,_c=A,xh=P,Ys=Gs.s,Js=Ys.xc;if(Gs.c=_c,Gs.i=xh,Ys.md=ye(_c,Js),Ys.wc=Js==0?-1:(1<<Js)-1,d){g.xb=Qf;break e}if((X=o(A*P))==null){g.a=1,_=0;break e}_=(_=cr(g,X,0,A,P,P,null))&&!C.h;break e}return _?(y!=null?y[0]=X:(t(X==null),t(d)),g.$=0,d||tr(B)):tr(B),_}function Ai(i,s){var d=i.c*i.i,g=d+s+16*s;return t(i.c<=s),i.V=o(g),i.V==null?(i.Ta=null,i.Ua=0,i.a=1,0):(i.Ta=i.V,i.Ua=i.Ba+d+s,1)}function Ji(i,s){var d=i.C,g=s-d,y=i.V,_=i.Ba+i.c*d;for(t(s<=i.l.o);0<g;){var A=16<g?16:g,P=i.l.ma,C=i.l.width,B=C*A,X=P.ca,se=P.tb+C*d,j=i.Ta,Z=i.Ua;_i(i,A,y,_),Gl(j,Z,X,se,B),_r(P,d,d+A,X,se,C),g-=A,y+=A*i.c,d+=A}t(d==s),i.C=i.Ma=s}function Xi(){this.ub=this.yd=this.td=this.Rb=0}function Ki(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ms(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Ea(){this.Yb=(function(){var i=[];return(function s(d,g,y){for(var _=y[g],A=0;A<_&&(d.push(y.length>g+1?[]:0),!(y.length<g+1));A++)s(d[A],g+1,y)})(i,0,[3,11]),i})()}function lo(){this.jb=o(3),this.Wc=l([4,8],Ea),this.Xc=l([4,17],Ea)}function co(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function nr(){this.ld=this.La=this.dd=this.tc=0}function Oa(){this.Na=this.la=0}function uo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Fa(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function fo(){this.uc=this.M=this.Nb=0,this.wa=Array(new nr),this.Y=0,this.ya=Array(new Fa),this.aa=0,this.l=new Zi}function ho(){this.y=o(16),this.f=o(8),this.ea=o(8)}function po(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Xi,this.Kc=new Ki,this.ed=new co,this.Qa=new ms,this.Ic=this.$c=this.Aa=0,this.D=new fo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=f(8,w),this.ia=0,this.pb=f(4,uo),this.Pa=new lo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ho),this.Hd=0,this.rb=Array(new Oa),this.sb=0,this.wa=Array(new nr),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 Fa),this.L=this.aa=0,this.gd=l([4,2],nr),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 Ar(i,s){return 0>i?0:i>s?s:i}function Zi(){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 gs(){var i=new po;return i!=null&&(i.a=0,i.sc="OK",i.cb=0,i.Xb=0,Ja||(Ja=Qi)),i}function sn(i,s,d){return i.a==0&&(i.a=s,i.sc=d,i.cb=0),0}function mo(i,s,d){return 3<=d&&i[s+0]==157&&i[s+1]==1&&i[s+2]==42}
vendor: 8,354 bytes, line 114
114function Lr(i,s){if(i==null)return 0;if(i.a=0,i.sc="OK",s==null)return sn(i,2,"null VP8Io passed to VP8GetHeaders()");var d=s.data,g=s.w,y=s.ha;if(4>y)return sn(i,7,"Truncated header.");var _=d[g+0]|d[g+1]<<8|d[g+2]<<16,A=i.Od;if(A.Rb=!(1&_),A.td=_>>1&7,A.yd=_>>4&1,A.ub=_>>5,3<A.td)return sn(i,3,"Incorrect keyframe parameters.");if(!A.yd)return sn(i,4,"Frame not displayable.");g+=3,y-=3;var P=i.Kc;if(A.Rb){if(7>y)return sn(i,7,"cannot parse picture header");if(!mo(d,g,y))return sn(i,3,"Bad code word");P.c=16383&(d[g+4]<<8|d[g+3]),P.Td=d[g+4]>>6,P.i=16383&(d[g+6]<<8|d[g+5]),P.Ud=d[g+6]>>6,g+=7,y-=7,i.za=P.c+15>>4,i.Ub=P.i+15>>4,s.width=P.c,s.height=P.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((_=i.Pa).jb,0,255,_.jb.length),t((_=i.Qa)!=null),_.Cb=0,_.Bb=0,_.Fb=1,a(_.Zb,0,0,_.Zb.length),a(_.Lb,0,0,_.Lb)}if(A.ub>y)return sn(i,7,"bad partition length");Q(_=i.m,d,g,A.ub),g+=A.ub,y-=A.ub,A.Rb&&(P.Ld=de(_),P.Kd=de(_)),P=i.Qa;var C,B=i.Pa;if(t(_!=null),t(P!=null),P.Cb=de(_),P.Cb){if(P.Bb=de(_),de(_)){for(P.Fb=de(_),C=0;4>C;++C)P.Zb[C]=de(_)?U(_,7):0;for(C=0;4>C;++C)P.Lb[C]=de(_)?U(_,6):0}if(P.Bb)for(C=0;3>C;++C)B.jb[C]=de(_)?ae(_,8):255}else P.Bb=0;if(_.Ka)return sn(i,3,"cannot parse segment header");if((P=i.ed).zd=de(_),P.Tb=ae(_,6),P.wb=ae(_,3),P.Pc=de(_),P.Pc&&de(_)){for(B=0;4>B;++B)de(_)&&(P.vd[B]=U(_,6));for(B=0;4>B;++B)de(_)&&(P.od[B]=U(_,6))}if(i.L=P.Tb==0?0:P.zd?1:2,_.Ka)return sn(i,3,"cannot parse filter header");var X=y;if(y=C=g,g=C+X,P=X,i.Xb=(1<<ae(i.m,2))-1,X<3*(B=i.Xb))d=7;else{for(C+=3*B,P-=3*B,X=0;X<B;++X){var se=d[y+0]|d[y+1]<<8|d[y+2]<<16;se>P&&(se=P),Q(i.Jc[+X],d,C,se),C+=se,P-=se,y+=3}Q(i.Jc[+B],d,C,P),d=C<g?0:5}if(d!=0)return sn(i,d,"cannot parse partitions");for(d=ae(C=i.m,7),y=de(C)?U(C,4):0,g=de(C)?U(C,4):0,P=de(C)?U(C,4):0,B=de(C)?U(C,4):0,C=de(C)?U(C,4):0,X=i.Qa,se=0;4>se;++se){if(X.Cb){var j=X.Zb[se];X.Fb||(j+=d)}else{if(0<se){i.pb[se]=i.pb[0];continue}j=d}var Z=i.pb[se];Z.Sc[0]=Ds[Ar(j+y,127)],Z.Sc[1]=qs[Ar(j+0,127)],Z.Eb[0]=2*Ds[Ar(j+g,127)],Z.Eb[1]=101581*qs[Ar(j+P,127)]>>16,8>Z.Eb[1]&&(Z.Eb[1]=8),Z.Qc[0]=Ds[Ar(j+B,117)],Z.Qc[1]=qs[Ar(j+C,127)],Z.lc=j+C}if(!A.Rb)return sn(i,4,"Not a key frame.");for(de(_),A=i.Pa,d=0;4>d;++d){for(y=0;8>y;++y)for(g=0;3>g;++g)for(P=0;11>P;++P)B=be(_,Kf[d][y][g][P])?ae(_,8):Jf[d][y][g][P],A.Wc[d][y].Yb[g][P]=B;for(y=0;17>y;++y)A.Xc[d][y]=A.Wc[d][Zf[y]]}return i.kc=de(_),i.kc&&(i.Bd=ae(_,8)),i.cb=1}function Qi(i,s,d,g,y,_,A){var P=s[y].Yb[d];for(d=0;16>y;++y){if(!be(i,P[d+0]))return y;for(;!be(i,P[d+1]);)if(P=s[++y].Yb[0],d=0,y==16)return 16;var C=s[y+1].Yb;if(be(i,P[d+2])){var B=i,X=0;if(be(B,(j=P)[(se=d)+3]))if(be(B,j[se+6])){for(P=0,se=2*(X=be(B,j[se+8]))+(j=be(B,j[se+9+X])),X=0,j=Gf[se];j[P];++P)X+=X+be(B,j[P]);X+=3+(8<<se)}else be(B,j[se+7])?(X=7+2*be(B,165),X+=be(B,145)):X=5+be(B,159);else X=be(B,j[se+4])?3+be(B,j[se+5]):2;P=C[2]}else X=1,P=C[1];C=A+Yf[y],0>(B=i).b&&fe(B);var se,j=B.b,Z=(se=B.Ca>>1)-(B.I>>j)>>31;--B.b,B.Ca+=Z,B.Ca|=1,B.I-=(se+1&Z)<<j,_[C]=((X^Z)-Z)*g[(0<y)+0]}return 16}function Ma(i){var s=i.rb[i.sb-1];s.la=0,s.Na=0,a(i.zc,0,0,i.zc.length),i.ja=0}function Vn(i,s,d,g,y){y=i[s+d+32*g]+(y>>3),i[s+d+32*g]=-256&y?0>y?0:255:y}function ea(i,s,d,g,y,_){Vn(i,s,0,d,g+y),Vn(i,s,1,d,g+_),Vn(i,s,2,d,g-_),Vn(i,s,3,d,g-y)}function qr(i){return(20091*i>>16)+i}function vn(i,s,d,g){var y,_=0,A=o(16);for(y=0;4>y;++y){var P=i[s+0]+i[s+8],C=i[s+0]-i[s+8],B=(35468*i[s+4]>>16)-qr(i[s+12]),X=qr(i[s+4])+(35468*i[s+12]>>16);A[_+0]=P+X,A[_+1]=C+B,A[_+2]=C-B,A[_+3]=P-X,_+=4,s++}for(y=_=0;4>y;++y)P=(i=A[_+0]+4)+A[_+8],C=i-A[_+8],B=(35468*A[_+4]>>16)-qr(A[_+12]),Vn(d,g,0,0,P+(X=qr(A[_+4])+(35468*A[_+12]>>16))),Vn(d,g,1,0,C+B),Vn(d,g,2,0,C-B),Vn(d,g,3,0,P-X),_++,g+=32}function go(i,s,d,g){var y=i[s+0]+4,_=35468*i[s+4]>>16,A=qr(i[s+4]),P=35468*i[s+1]>>16;ea(d,g,0,y+A,i=qr(i[s+1]),P),ea(d,g,1,y+_,i,P),ea(d,g,2,y-_,i,P),ea(d,g,3,y-A,i,P)}function vs(i,s,d,g,y){vn(i,s,d,g),y&&vn(i,s+16,d,g+4)}function bs(i,s,d,g){$r(i,s+0,d,g,1),$r(i,s+32,d,g+128,1)}function ys(i,s,d,g){var y;for(i=i[s+0]+4,y=0;4>y;++y)for(s=0;4>s;++s)Vn(d,g,s,y,i)}function Nr(i,s,d,g){i[s+0]&&Ln(i,s+0,d,g),i[s+16]&&Ln(i,s+16,d,g+4),i[s+32]&&Ln(i,s+32,d,g+128),i[s+48]&&Ln(i,s+48,d,g+128+4)}function vo(i,s,d,g){var y,_=o(16);for(y=0;4>y;++y){var A=i[s+0+y]+i[s+12+y],P=i[s+4+y]+i[s+8+y],C=i[s+4+y]-i[s+8+y],B=i[s+0+y]-i[s+12+y];_[0+y]=A+P,_[8+y]=A-P,_[4+y]=B+C,_[12+y]=B-C}for(y=0;4>y;++y)A=(i=_[0+4*y]+3)+_[3+4*y],P=_[1+4*y]+_[2+4*y],C=_[1+4*y]-_[2+4*y],B=i-_[3+4*y],d[g+0]=A+P>>3,d[g+16]=B+C>>3,d[g+32]=A-P>>3,d[g+48]=B-C>>3,g+=64}function ta(i,s,d){var g,y=s-32,_=Hn,A=255-i[y-1];for(g=0;g<d;++g){var P,C=_,B=A+i[s-1];for(P=0;P<d;++P)i[s+P]=C[B+i[y+P]];s+=32}}function na(i,s){ta(i,s,4)}function Ba(i,s){ta(i,s,8)}function ws(i,s){ta(i,s,16)}function _s(i,s){var d;for(d=0;16>d;++d)r(i,s+32*d,i,s-32,16)}function xs(i,s){var d;for(d=16;0<d;--d)a(i,s,i[s-1],16),s+=32}function ti(i,s,d){var g;for(g=0;16>g;++g)a(s,d+32*g,i,16)}function bo(i,s){var d,g=16;for(d=0;16>d;++d)g+=i[s-1+32*d]+i[s+d-32];ti(g>>5,i,s)}function ni(i,s){var d,g=8;for(d=0;16>d;++d)g+=i[s-1+32*d];ti(g>>4,i,s)}function As(i,s){var d,g=8;for(d=0;16>d;++d)g+=i[s+d-32];ti(g>>4,i,s)}function Li(i,s){ti(128,i,s)}function Ze(i,s,d){return i+2*s+d+2>>2}function Ls(i,s){var d,g=s-32;for(g=new Uint8Array([Ze(i[g-1],i[g+0],i[g+1]),Ze(i[g+0],i[g+1],i[g+2]),Ze(i[g+1],i[g+2],i[g+3]),Ze(i[g+2],i[g+3],i[g+4])]),d=0;4>d;++d)r(i,s+32*d,g,0,g.length)}function Ns(i,s){var d=i[s-1],g=i[s-1+32],y=i[s-1+64],_=i[s-1+96];Ne(i,s+0,16843009*Ze(i[s-1-32],d,g)),Ne(i,s+32,16843009*Ze(d,g,y)),Ne(i,s+64,16843009*Ze(g,y,_)),Ne(i,s+96,16843009*Ze(y,_,_))}function ks(i,s){var d,g=4;for(d=0;4>d;++d)g+=i[s+d-32]+i[s-1+32*d];for(g>>=3,d=0;4>d;++d)a(i,s+32*d,g,4)}function Ss(i,s){var d=i[s-1+0],g=i[s-1+32],y=i[s-1+64],_=i[s-1-32],A=i[s+0-32],P=i[s+1-32],C=i[s+2-32],B=i[s+3-32];i[s+0+96]=Ze(g,y,i[s-1+96]),i[s+1+96]=i[s+0+64]=Ze(d,g,y),i[s+2+96]=i[s+1+64]=i[s+0+32]=Ze(_,d,g),i[s+3+96]=i[s+2+64]=i[s+1+32]=i[s+0+0]=Ze(A,_,d),i[s+3+64]=i[s+2+32]=i[s+1+0]=Ze(P,A,_),i[s+3+32]=i[s+2+0]=Ze(C,P,A),i[s+3+0]=Ze(B,C,P)}function Ps(i,s){var d=i[s+1-32],g=i[s+2-32],y=i[s+3-32],_=i[s+4-32],A=i[s+5-32],P=i[s+6-32],C=i[s+7-32];i[s+0+0]=Ze(i[s+0-32],d,g),i[s+1+0]=i[s+0+32]=Ze(d,g,y),i[s+2+0]=i[s+1+32]=i[s+0+64]=Ze(g,y,_),i[s+3+0]=i[s+2+32]=i[s+1+64]=i[s+0+96]=Ze(y,_,A),i[s+3+32]=i[s+2+64]=i[s+1+96]=Ze(_,A,P),i[s+3+64]=i[s+2+96]=Ze(A,P,C),i[s+3+96]=Ze(P,C,C)}function Ur(i,s){var d=i[s-1+0],g=i[s-1+32],y=i[s-1+64],_=i[s-1-32],A=i[s+0-32],P=i[s+1-32],C=i[s+2-32],B=i[s+3-32];i[s+0+0]=i[s+1+64]=_+A+1>>1,i[s+1+0]=i[s+2+64]=A+P+1>>1,i[s+2+0]=i[s+3+64]=P+C+1>>1,i[s+3+0]=C+B+1>>1,i[s+0+96]=Ze(y,g,d),i[s+0+64]=Ze(g,d,_),i[s+0+32]=i[s+1+96]=Ze(d,_,A),i[s+1+32]=i[s+2+96]=Ze(_,A,P),i[s+2+32]=i[s+3+96]=Ze(A,P,C),i[s+3+32]=Ze(P,C,B)}function zr(i,s){var d=i[s+0-32],g=i[s+1-32],y=i[s+2-32],_=i[s+3-32],A=i[s+4-32],P=i[s+5-32],C=i[s+6-32],B=i[s+7-32];i[s+0+0]=d+g+1>>1,i[s+1+0]=i[s+0+64]=g+y+1>>1,i[s+2+0]=i[s+1+64]=y+_+1>>1,i[s+3+0]=i[s+2+64]=_+A+1>>1,i[s+0+32]=Ze(d,g,y),i[s+1+32]=i[s+0+96]=Ze(g,y,_),i[s+2+32]=i[s+1+96]=Ze(y,_,A),i[s+3+32]=i[s+2+96]=Ze(_,A,P),i[s+3+64]=Ze(A,P,C),i[s+3+96]=Ze(P,C,B)}function Cs(i,s){var d=i[s-1+0],g=i[s-1+32],y=i[s-1+64],_=i[s-1+96];i[s+0+0]=d+g+1>>1,i[s+2+0]=i[s+0+32]=g+y+1>>1,i[s+2+32]=i[s+0+64]=y+_+1>>1,i[s+1+0]=Ze(d,g,y),i[s+3+0]=i[s+1+32]=Ze(g,y,_),i[s+3+32]=i[s+1+64]=Ze(y,_,_),i[s+3+64]=i[s+2+64]=i[s+0+96]=i[s+1+96]=i[s+2+96]=i[s+3+96]=_}function Is(i,s){var d=i[s-1+0],g=i[s-1+32],y=i[s-1+64],_=i[s-1+96],A=i[s-1-32],P=i[s+0-32],C=i[s+1-32],B=i[s+2-32];i[s+0+0]=i[s+2+32]=d+A+1>>1,i[s+0+32]=i[s+2+64]=g+d+1>>1,i[s+0+64]=i[s+2+96]=y+g+1>>1,i[s+0+96]=_+y+1>>1,i[s+3+0]=Ze(P,C,B),i[s+2+0]=Ze(A,P,C),i[s+1+0]=i[s+3+32]=Ze(d,A,P),i[s+1+32]=i[s+3+64]=Ze(g,d,A),i[s+1+64]=i[s+3+96]=Ze(y,g,d),i[s+1+96]=Ze(_,y,g)}function ra(i,s){var d;for(d=0;8>d;++d)r(i,s+32*d,i,s-32,8)}function ja(i,s){var d;for(d=0;8>d;++d)a(i,s,i[s-1],8),s+=32}function kr(i,s,d){var g;for(g=0;8>g;++g)a(s,d+32*g,i,8)}function Es(i,s){var d,g=8;for(d=0;8>d;++d)g+=i[s+d-32]+i[s-1+32*d];kr(g>>4,i,s)}function ia(i,s){var d,g=4;for(d=0;8>d;++d)g+=i[s+d-32];kr(g>>3,i,s)}function Os(i,s){var d,g=4;for(d=0;8>d;++d)g+=i[s-1+32*d];kr(g>>3,i,s)}function Ra(i,s){kr(128,i,s)}function ri(i,s,d){var g=i[s-d],y=i[s+0],_=3*(y-g)+Ms[1020+i[s-2*d]-i[s+d]],A=So[112+(_+4>>
1143)];i[s-d]=Hn[255+g+So[112+(_+3>>3)]],i[s+0]=Hn[255+y-A]}function Ta(i,s,d,g){var y=i[s+0],_=i[s+d];return ir[255+i[s-2*d]-i[s-d]]>g||ir[255+_-y]>g}function Ni(i,s,d,g){return 4*ir[255+i[s-d]-i[s+0]]+ir[255+i[s-2*d]-i[s+d]]<=g}function Da(i,s,d,g,y){var _=i[s-3*d],A=i[s-2*d],P=i[s-d],C=i[s+0],B=i[s+d],X=i[s+2*d],se=i[s+3*d];return 4*ir[255+P-C]+ir[255+A-B]>g?0:ir[255+i[s-4*d]-_]<=y&&ir[255+_-A]<=y&&ir[255+A-P]<=y&&ir[255+se-X]<=y&&ir[255+X-B]<=y&&ir[255+B-C]<=y}function aa(i,s,d,g){var y=2*g+1;for(g=0;16>g;++g)Ni(i,s+g,d,y)&&ri(i,s+g,d)}function qa(i,s,d,g){var y=2*g+1;for(g=0;16>g;++g)Ni(i,s+g*d,1,y)&&ri(i,s+g*d,1)}function oa(i,s,d,g){var y;for(y=3;0<y;--y)aa(i,s+=4*d,d,g)}function yo(i,s,d,g){var y;for(y=3;0<y;--y)qa(i,s+=4,d,g)}function Vr(i,s,d,g,y,_,A,P){for(_=2*_+1;0<y--;){if(Da(i,s,d,_,A))if(Ta(i,s,d,P))ri(i,s,d);else{var C=i,B=s,X=d,se=C[B-2*X],j=C[B-X],Z=C[B+0],ie=C[B+X],me=C[B+2*X],oe=27*(ve=Ms[1020+3*(Z-j)+Ms[1020+se-ie]])+63>>7,ge=18*ve+63>>7,ve=9*ve+63>>7;C[B-3*X]=Hn[255+C[B-3*X]+ve],C[B-2*X]=Hn[255+se+ge],C[B-X]=Hn[255+j+oe],C[B+0]=Hn[255+Z-oe],C[B+X]=Hn[255+ie-ge],C[B+2*X]=Hn[255+me-ve]}s+=g}}function Hr(i,s,d,g,y,_,A,P){for(_=2*_+1;0<y--;){if(Da(i,s,d,_,A))if(Ta(i,s,d,P))ri(i,s,d);else{var C=i,B=s,X=d,se=C[B-X],j=C[B+0],Z=C[B+X],ie=So[112+(4+(me=3*(j-se))>>3)],me=So[112+(me+3>>3)],oe=ie+1>>1;C[B-2*X]=Hn[255+C[B-2*X]+oe],C[B-X]=Hn[255+se+me],C[B+0]=Hn[255+j-ie],C[B+X]=Hn[255+Z-oe]}s+=g}}function wo(i,s,d,g,y,_){Vr(i,s,d,1,16,g,y,_)}function _o(i,s,d,g,y,_){Vr(i,s,1,d,16,g,y,_)}function xo(i,s,d,g,y,_){var A;for(A=3;0<A;--A)Hr(i,s+=4*d,d,1,16,g,y,_)}function ki(i,s,d,g,y,_){var A;for(A=3;0<A;--A)Hr(i,s+=4,1,d,16,g,y,_)}function Ao(i,s,d,g,y,_,A,P){Vr(i,s,y,1,8,_,A,P),Vr(d,g,y,1,8,_,A,P)}function u(i,s,d,g,y,_,A,P){Vr(i,s,1,y,8,_,A,P),Vr(d,g,1,y,8,_,A,P)}function b(i,s,d,g,y,_,A,P){Hr(i,s+4*y,y,1,8,_,A,P),Hr(d,g+4*y,y,1,8,_,A,P)}function M(i,s,d,g,y,_,A,P){Hr(i,s+4,1,y,8,_,A,P),Hr(d,g+4,1,y,8,_,A,P)}function $(){this.ba=new gt,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 ee(){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 pe(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function we(){this.ua=0,this.Wa=new Me,this.vb=new Me,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new J,this.yc=new W}function Ue(){this.xb=this.a=0,this.l=new Zi,this.ca=new gt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new O,this.Pb=0,this.wd=new O,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new we,this.ab=0,this.gc=f(4,pe),this.Oc=0}function De(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Zi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function nt(i,s,d,g,y,_,A){for(i=i==null?0:i[s+0],s=0;s<A;++s)y[_+s]=i+d[g+s]&255,i=y[_+s]}function at(i,s,d,g,y,_,A){var P;if(i==null)nt(null,null,d,g,y,_,A);else for(P=0;P<A;++P)y[_+P]=i[s+P]+d[g+P]&255}function wt(i,s,d,g,y,_,A){if(i==null)nt(null,null,d,g,y,_,A);else{var P,C=i[s+0],B=C,X=C;for(P=0;P<A;++P)B=X+(C=i[s+P])-B,X=d[g+P]+(-256&B?0>B?0:255:B)&255,B=C,y[_+P]=X}}function ln(i,s,d,g){var y=s.width,_=s.o;if(t(i!=null&&s!=null),0>d||0>=g||d+g>_)return null;if(!i.Cc){if(i.ga==null){var A;if(i.ga=new De,(A=i.ga==null)||(A=s.width*s.o,t(i.Gb.length==0),i.Gb=o(A),i.Uc=0,i.Gb==null?A=0:(i.mb=i.Gb,i.nb=i.Uc,i.rc=null,A=1),A=!A),!A){A=i.ga;var P=i.Fa,C=i.P,B=i.qc,X=i.mb,se=i.nb,j=C+1,Z=B-1,ie=A.l;if(t(P!=null&&X!=null&&s!=null),ui[0]=null,ui[1]=nt,ui[2]=at,ui[3]=wt,A.ca=X,A.tb=se,A.c=s.width,A.i=s.height,t(0<A.c&&0<A.i),1>=B)s=0;else if(A.$a=3&P[C+0],A.Z=P[C+0]>>2&3,A.Lc=P[C+0]>>4&3,C=P[C+0]>>6&3,0>A.$a||1<A.$a||4<=A.Z||1<A.Lc||C)s=0;else if(ie.put=Xe,ie.ac=wr,ie.bc=Tr,ie.ma=A,ie.width=s.width,ie.height=s.height,ie.Da=s.Da,ie.v=s.v,ie.va=s.va,ie.j=s.j,ie.o=s.o,A.$a)e:{t(A.$a==1),s=xi();t:for(;;){if(s==null){s=0;break e}if(t(A!=null),A.mc=s,s.c=A.c,s.i=A.i,s.l=A.l,s.l.ma=A,s.l.width=A.c,s.l.height=A.i,s.a=0,Y(s.m,P,j,Z),!xr(A.c,A.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&sr(s.s)?(A.ic=1,P=s.c*s.i,s.Ta=null,s.Ua=0,s.V=o(P),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(A.ic=0,s=Ai(s,A.c)),!s))break t;s=1;break e}
114A.mc=null,s=0}else s=Z>=A.c*A.i;A=!s}if(A)return null;i.ga.Lc!=1?i.Ga=0:g=_-d}t(i.ga!=null),t(d+g<=_);e:{if(s=(P=i.ga).c,_=P.l.o,P.$a==0){if(j=i.rc,Z=i.Vc,ie=i.Fa,C=i.P+1+d*s,B=i.mb,X=i.nb+d*s,t(C<=i.P+i.qc),P.Z!=0)for(t(ui[P.Z]!=null),A=0;A<g;++A)ui[P.Z](j,Z,ie,C,B,X,s),j=B,Z=X,X+=s,C+=s;else for(A=0;A<g;++A)r(B,X,ie,C,s),j=B,Z=X,X+=s,C+=s;i.rc=j,i.Vc=Z}else{if(t(P.mc!=null),s=d+g,t((A=P.mc)!=null),t(s<=A.i),A.C>=s)s=1;else if(P.ic||Gt(),P.ic){P=A.V,j=A.Ba,Z=A.c;var me=A.i,oe=(ie=1,C=A.$/Z,B=A.$%Z,X=A.m,se=A.s,A.$),ge=Z*me,ve=Z*s,Le=se.wc,xe=oe<ve?gn(se,B,C):null;t(oe<=ge),t(s<=me),t(sr(se));t:for(;;){for(;!X.h&&oe<ve;){if(B&Le||(xe=gn(se,B,C)),t(xe!=null),re(X),256>(me=Yt(xe.G[0],xe.H[0],X)))P[j+oe]=me,++oe,++B>=Z&&(B=0,++C<=s&&!(C%16)&&lr(A,C));else{if(!(280>me)){ie=0;break t}me=Qn(me-256,X);var He,Fe=Yt(xe.G[4],xe.H[4],X);if(re(X),!(oe>=(Fe=er(Z,Fe=Qn(Fe,X)))&&ge-oe>=me)){ie=0;break t}for(He=0;He<me;++He)P[j+oe+He]=P[j+oe+He-Fe];for(oe+=me,B+=me;B>=Z;)B-=Z,++C<=s&&!(C%16)&&lr(A,C);oe<ve&&B&Le&&(xe=gn(se,B,C))}t(X.h==z(X))}lr(A,C>s?s:C);break t}!ie||X.h&&oe<ge?(ie=0,A.a=X.h?5:3):A.$=oe,s=ie}else s=cr(A,A.V,A.Ba,A.c,A.i,s,Ji);if(!s){g=0;break e}}d+g>=_&&(i.Cc=1),g=1}if(!g)return null;if(i.Cc&&((g=i.ga)!=null&&(g.mc=null),i.ga=null,0<i.Ga))return alert("todo:WebPDequantizeLevels"),null}return i.nb+d*y}function Ot(i,s,d,g,y,_){for(;0<y--;){var A,P=i,C=s+(d?1:0),B=i,X=s+(d?0:3);for(A=0;A<g;++A){var se=B[X+4*A];se!=255&&(se*=32897,P[C+4*A+0]=P[C+4*A+0]*se>>23,P[C+4*A+1]=P[C+4*A+1]*se>>23,P[C+4*A+2]=P[C+4*A+2]*se>>23)}s+=_}}function Et(i,s,d,g,y){for(;0<g--;){var _;for(_=0;_<d;++_){var A=i[s+2*_+0],P=15&(B=i[s+2*_+1]),C=4369*P,B=(240&B|B>>4)*C>>16;i[s+2*_+0]=(240&A|A>>4)*C>>16&240|(15&A|A<<4)*C>>16>>4&15,i[s+2*_+1]=240&B|P}s+=y}}function qt(i,s,d,g,y,_,A,P){var C,B,X=255;for(B=0;B<y;++B){for(C=0;C<g;++C){var se=i[s+C];_[A+4*C]=se,X&=se}s+=d,A+=P}return X!=255}function $t(i,s,d,g,y){var _;for(_=0;_<y;++_)d[g+_]=i[s+_]>>8}function Gt(){Ya=Ot,Wl=Et,$l=qt,Gl=$t}function xn(i,s,d){q[i]=function(g,y,_,A,P,C,B,X,se,j,Z,ie,me,oe,ge,ve,Le){var xe,He=Le-1>>1,Fe=P[C+0]|B[X+0]<<16,ut=se[j+0]|Z[ie+0]<<16;t(g!=null);var ze=3*Fe+ut+131074>>2;for(s(g[y+0],255&ze,ze>>16,me,oe),_!=null&&(ze=3*ut+Fe+131074>>2,s(_[A+0],255&ze,ze>>16,ge,ve)),xe=1;xe<=He;++xe){var yt=P[C+xe]|B[X+xe]<<16,fn=se[j+xe]|Z[ie+xe]<<16,ft=Fe+yt+ut+fn+524296,Ve=ft+2*(yt+ut)>>3;ze=Ve+Fe>>1,Fe=(ft=ft+2*(Fe+fn)>>3)+yt>>1,s(g[y+2*xe-1],255&ze,ze>>16,me,oe+(2*xe-1)*d),s(g[y+2*xe-0],255&Fe,Fe>>16,me,oe+(2*xe-0)*d),_!=null&&(ze=ft+ut>>1,Fe=Ve+fn>>1,s(_[A+2*xe-1],255&ze,ze>>16,ge,ve+(2*xe-1)*d),s(_[A+2*xe+0],255&Fe,Fe>>16,ge,ve+(2*xe+0)*d)),Fe=yt,ut=fn}1&Le||(ze=3*Fe+ut+131074>>2,s(g[y+Le-1],255&ze,ze>>16,me,oe+(Le-1)*d),_!=null&&(ze=3*ut+Fe+131074>>2,s(_[A+Le-1],255&ze,ze>>16,ge,ve+(Le-1)*d)))}}function Wr(){ar[Po]=eh,ar[Co]=ic,ar[Ql]=th,ar[Io]=ac,ar[Eo]=oc,ar[Bs]=sc,ar[ec]=nh,ar[js]=ic,ar[Rs]=ac,ar[Oo]=oc,ar[Ts]=sc}function Ua(i){return i&-16384?0>i?0:255:i>>rh}function Si(i,s){return Ua((19077*i>>8)+(26149*s>>8)-14234)}function Pi(i,s,d){return Ua((19077*i>>8)-(6419*s>>8)-(13320*d>>8)+8708)}function ii(i,s){return Ua((19077*i>>8)+(33050*s>>8)-17685)}function Ci(i,s,d,g,y){g[y+0]=Si(i,d),g[y+1]=Pi(i,s,d),g[y+2]=ii(i,s)}function sa(i,s,d,g,y){g[y+0]=ii(i,s),g[y+1]=Pi(i,s,d),g[y+2]=Si(i,d)}function la(i,s,d,g,y){var _=Pi(i,s,d);s=_<<3&224|ii(i,s)>>3,g[y+0]=248&Si(i,d)|_>>5,g[y+1]=s}function An(i,s,d,g,y){var _=240&ii(i,s)|15;g[y+0]=240&Si(i,d)|Pi(i,s,d)>>4,g[y+1]=_}function Ii(i,s,d,g,y){g[y+0]=255,Ci(i,s,d,g,y+1)}function Ei(i,s,d,g,y){sa(i,s,d,g,y),g[y+3]=255}function za(i,s,d,g,y){Ci(i,s,d,g,y),g[y+3]=255}function Sr(i,s,d){q[i]=function(g,y,_,A,P,C,B,X,se){for(var j=X+(-2&se)*d;X!=j;)s(g[y+0],_[A+0],P[C+0],B,X),s(g[y+1],_[A+0],P[C+0],B,X+d),y+=2,++A,++C,X+=2*d;1&se&&s(g[y+0],_[A+0],P[C+0],B,X)}}function En(i,s,d){return d==0?i==0?s==0?6:5:s==0?4:0:d}function Lo(i,s,d,g,y){switch(i>>>30){case 3:$r(s,d,g,y,0);break;case 2:li(s,d,g,y);break;case 1:Ln(s,d,g,y)}}function ca(i,s){var d,g,y=s.M,_=s.Nb,A=i.oc,P=i.pc+40,C=i.oc,B=i.pc+584,X=i.oc,se=i.pc+600;for(d=0;16>d;++d)A[P+32*d-1]=129;for(d=0;8>d;++d)C[B+32*d-1]=129,X[se+32*d-1]=129;for(0<y?A[P-1-32]=C[B-1-32]=X[se-1-32]=129:(a(A,P-32-1,127,21),a(C,B-32-1,127,9),a(X,se-32-1,127,9)),g=0;g<i.za;++g){var j=s.ya[s.aa+g];if(0<g){for(d=-1;16>d;++d)r(A,P+32*d-4,A,P+32*d+12,4);for(d=-1;8>d;++d)r(C,B+32*d-4,C,B+32*d+4,4),r(X,se+32*d-4,X,se+32*d+4,4)}var Z=i.Gd,ie=i.Hd+g,me=j.ad,oe=j.Hc;if(0<y&&(r(A,P-32,Z[ie].y,0,16),r(C,B-32,Z[ie].f,0,8),r(X,se-32,Z[ie].ea,0,8)),j.Za){var ge=A,ve=P-32+16;for(0<y&&(g>=i.za-1?a(ge,ve,Z[ie].y[15],4):r(ge,ve,Z[ie+1].y,0,4)),d=0;4>d;d++)ge[ve+128+d]=ge[ve+256+d]=ge[ve+384+d]=ge[ve+0+d];for(d=0;16>d;++d,oe<<=2)ge=A,ve=P+cc[d],fr[j.Ob[d]](ge,ve),Lo(oe,me,16*+d,ge,ve)}else if(ge=En(g,y,j.Ob[0]),ci[ge](A,P),oe!=0)for(d=0;16>d;++d,oe<<=2)Lo(oe,me,16*+d,A,P+cc[d]);for(d=j.Gc,ge=En(g,y,j.Dd),Yr[ge](C,B),Yr[ge](X,se),oe=me,ge=C,ve=B,255&(j=0|d)&&(170&j?pa(oe,256,ge,ve):Cr(oe,256,ge,ve)),j=X,oe=se,255&(d>>=8)&&(170&d?pa(me,320,j,oe):Cr(me,320,j,oe)),y<i.Ub-1&&(r(Z[ie].y,0,A,P+480,16),r(Z[ie].f,0,C,B+224,8),r(Z[ie].ea,0,X,se+224,8)),d=8*_*i.B,Z=i.sa,ie=i.ta+16*g+16*_*i.R,me=i.qa,j=i.ra+8*g+d,oe=i.Ha,ge=i.Ia+8*g+d,d=0;16>d;++d)r(Z,ie+d*i.R,A,P+32*d,16);for(d=0;8>d;++d)r(me,j+d*i.B,C,B+32*d,8),r(oe,ge+d*i.B,X,se+32*d,8)}}function No(i,s,d,g,y,_,A,P,C){var B=[0],X=[0],se=0,j=C!=null?C.kd:0,Z=C??new ee;if(i==null||12>d)return 7;Z.data=i,Z.w=s,Z.ha=d,s=[s],d=[d],Z.gb=[Z.gb];e:{var ie=s,me=d,oe=Z.gb;if(t(i!=null),t(me!=null),t(oe!=null),oe[0]=0,12<=me[0]&&!e(i,ie[0],"RIFF")){if(e(i,ie[0]+8,"WEBP")){oe=3;break e}var ge=_e(i,ie[0]+4);if(12>ge||4294967286<ge){oe=3;break e}if(j&&ge>me[0]-8){oe=7;break e}oe[0]=ge,ie[0]+=12,me[0]-=12}oe=0}if(oe!=0)return oe;for(ge=0<Z.gb[0],d=d[0];;){e:{var ve=i;me=s,oe=d;var Le=B,xe=X,He=ie=[0];if((ze=se=[se])[0]=0,8>oe[0])oe=7;else{if(!e(ve,me[0],"VP8X")){if(_e(ve,me[0]+4)!=10){oe=3;break e}if(18>oe[0]){oe=7;break e}var Fe=_e(ve,me[0]+8),ut=1+Se(ve,me[0]+12);if(2147483648<=ut*(ve=1+Se(ve,me[0]+15))){oe=3;break e}He!=null&&(He[0]=Fe),Le!=null&&(Le[0]=ut),xe!=null&&(xe[0]=ve),me[0]+=18,oe[0]-=18,ze[0]=1}oe=0}}if(se=se[0],ie=ie[0],oe!=0)return oe;if(me=!!(2&ie),!ge&&se)return 3;if(_!=null&&(_[0]=!!(16&ie)),A!=null&&(A[0]=me),P!=null&&(P[0]=0),A=B[0],ie=X[0],se&&me&&C==null){oe=0;break}if(4>d){oe=7;break}if(ge&&se||!ge&&!se&&!e(i,s[0],"ALPH")){d=[d],Z.na=[Z.na],Z.P=[Z.P],Z.Sa=[Z.Sa];e:{Fe=i,oe=s,ge=d;var ze=Z.gb;Le=Z.na,xe=Z.P,He=Z.Sa,ut=22,t(Fe!=null),t(ge!=null),ve=oe[0];var yt=ge[0];for(t(Le!=null),t(He!=null),Le[0]=null,xe[0]=null,He[0]=0;;){if(oe[0]=ve,ge[0]=yt,8>yt){oe=7;break e}var fn=_e(Fe,ve+4);if(4294967286<fn){oe=3;break e}var ft=8+fn+1&-2;if(ut+=ft,0<ze&&ut>ze){oe=3;break e}if(!e(Fe,ve,"VP8 ")||!e(Fe,ve,"VP8L")){oe=0;break e}if(yt[0]<ft){oe=7;break e}e(Fe,ve,"ALPH")||(Le[0]=Fe,xe[0]=ve+8,He[0]=fn),ve+=ft,yt-=ft}}if(d=d[0],Z.na=Z.na[0],Z.P=Z.P[0],Z.Sa=Z.Sa[0],oe!=0)break}
114d=[d],Z.Ja=[Z.Ja],Z.xa=[Z.xa];e:if(ze=i,oe=s,ge=d,Le=Z.gb[0],xe=Z.Ja,He=Z.xa,Fe=oe[0],ve=!e(ze,Fe,"VP8 "),ut=!e(ze,Fe,"VP8L"),t(ze!=null),t(ge!=null),t(xe!=null),t(He!=null),8>ge[0])oe=7;else{if(ve||ut){if(ze=_e(ze,Fe+4),12<=Le&&ze>Le-12){oe=3;break e}if(j&&ze>ge[0]-8){oe=7;break e}xe[0]=ze,oe[0]+=8,ge[0]-=8,He[0]=ut}else He[0]=5<=ge[0]&&ze[Fe+0]==47&&!(ze[Fe+4]>>5),xe[0]=ge[0];oe=0}if(d=d[0],Z.Ja=Z.Ja[0],Z.xa=Z.xa[0],s=s[0],oe!=0)break;if(4294967286<Z.Ja)return 3;if(P==null||me||(P[0]=Z.xa?2:1),A=[A],ie=[ie],Z.xa){if(5>d){oe=7;break}P=A,j=ie,me=_,i==null||5>d?i=0:5<=d&&i[s+0]==47&&!(i[s+4]>>5)?(ge=[0],ze=[0],Le=[0],Y(xe=new O,i,s,d),Dr(xe,ge,ze,Le)?(P!=null&&(P[0]=ge[0]),j!=null&&(j[0]=ze[0]),me!=null&&(me[0]=Le[0]),i=1):i=0):i=0}else{if(10>d){oe=7;break}P=ie,i==null||10>d||!mo(i,s+3,d-3)?i=0:(j=i[s+0]|i[s+1]<<8|i[s+2]<<16,me=16383&(i[s+7]<<8|i[s+6]),i=16383&(i[s+9]<<8|i[s+8]),1&j||3<(j>>1&7)||!(j>>4&1)||j>>5>=Z.Ja||!me||!i?i=0:(A&&(A[0]=me),P&&(P[0]=i),i=1))}if(!i||(A=A[0],ie=ie[0],se&&(B[0]!=A||X[0]!=ie)))return 3;C!=null&&(C[0]=Z,C.offset=s-C.w,t(4294967286>s-C.w),t(C.offset==C.ha-d));break}return oe==0||oe==7&&se&&C==null?(_!=null&&(_[0]|=Z.na!=null&&0<Z.na.length),g!=null&&(g[0]=A),y!=null&&(y[0]=ie),0):oe}function rr(i,s,d){var g=s.width,y=s.height,_=0,A=0,P=g,C=y;if(s.Da=i!=null&&0<i.Da,s.Da&&(P=i.cd,C=i.bd,_=i.v,A=i.j,11>d||(_&=-2,A&=-2),0>_||0>A||0>=P||0>=C||_+P>g||A+C>y))return 0;if(s.v=_,s.j=A,s.va=_+P,s.o=A+C,s.U=P,s.T=C,s.da=i!=null&&0<i.da,s.da){if(!Ee(P,C,d=[i.ib],_=[i.hb]))return 0;s.ib=d[0],s.hb=_[0]}return s.ob=i!=null&&i.ob,s.Kb=i==null||!i.Sd,s.da&&(s.ob=s.ib<3*g/4&&s.hb<3*y/4,s.Kb=0),1}function Oi(i){if(i==null)return 2;if(11>i.S){var s=i.f.RGBA;s.fb+=(i.height-1)*s.A,s.A=-s.A}else s=i.f.kb,i=i.height,s.O+=(i-1)*s.fa,s.fa=-s.fa,s.N+=(i-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(i-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(i-1)*s.lb,s.lb=-s.lb);return 0}function Va(i,s,d,g){if(g==null||0>=i||0>=s)return 2;if(d!=null){if(d.Da){var y=d.cd,_=d.bd,A=-2&d.v,P=-2&d.j;if(0>A||0>P||0>=y||0>=_||A+y>i||P+_>s)return 2;i=y,s=_}if(d.da){if(!Ee(i,s,y=[d.ib],_=[d.hb]))return 2;i=y[0],s=_[0]}}g.width=i,g.height=s;e:{var C=g.width,B=g.height;if(i=g.S,0>=C||0>=B||!(i>=Po&&13>i))i=2;else{if(0>=g.Rd&&g.sd==null){A=_=y=s=0;var X=(P=C*uc[i])*B;if(11>i||(_=(B+1)/2*(s=(C+1)/2),i==12&&(A=(y=C)*B)),(B=o(X+2*_+A))==null){i=1;break e}g.sd=B,11>i?((C=g.f.RGBA).eb=B,C.fb=0,C.A=P,C.size=X):((C=g.f.kb).y=B,C.O=0,C.fa=P,C.Fd=X,C.f=B,C.N=0+X,C.Ab=s,C.Cd=_,C.ea=B,C.W=0+X+_,C.Db=s,C.Ed=_,i==12&&(C.F=B,C.J=0+X+2*_),C.Tc=A,C.lb=y)}if(s=1,y=g.S,_=g.width,A=g.height,y>=Po&&13>y)if(11>y)i=g.f.RGBA,s&=(P=Math.abs(i.A))*(A-1)+_<=i.size,s&=P>=_*uc[y],s&=i.eb!=null;else{i=g.f.kb,P=(_+1)/2,X=(A+1)/2,C=Math.abs(i.fa),B=Math.abs(i.Ab);var se=Math.abs(i.Db),j=Math.abs(i.lb),Z=j*(A-1)+_;s&=C*(A-1)+_<=i.Fd,s&=B*(X-1)+P<=i.Cd,s=(s&=se*(X-1)+P<=i.Ed)&C>=_&B>=P&se>=P,s&=i.y!=null,s&=i.f!=null,s&=i.ea!=null,y==12&&(s&=j>=_,s&=Z<=i.Tc,s&=i.F!=null)}else s=0;i=s?0:2}}return i!=0||d!=null&&d.fd&&(i=Oi(g)),i}var ua=64,Fi=[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],Ha=24,On=32,jn=8,fa=[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];Ie("Predictor0","PredictorAdd0"),q.Predictor0=function(){return 4278190080},q.Predictor1=function(i){return i},q.Predictor2=function(i,s,d){return s[d+0]},q.Predictor3=function(i,s,d){return s[d+1]},q.Predictor4=function(i,s,d){return s[d-1]},q.Predictor5=function(i,s,d){return Pe(Pe(i,s[d+1]),s[d+0])},q.Predictor6=function(i,s,d){return Pe(i,s[d-1])},q.Predictor7=function(i,s,d){return Pe(i,s[d+0])},q.Predictor8=function(i,s,d){return Pe(s[d-1],s[d+0])},q.Predictor9=function(i,s,d){return Pe(s[d+0],s[d+1])},q.Predictor10=function(i,s,d){return Pe(Pe(i,s[d-1]),Pe(s[d+0],s[d+1]))},q.Predictor11=function(i,s,d){var g=s[d+0];return 0>=et(g>>24&255,i>>24&255,(s=s[d-1])>>24&255)+et(g>>16&255,i>>16&255,s>>16&255)+et(g>>8&255,i>>8&255,s>>8&255)+et(255&g,255&i,255&s)?g:i},q.Predictor12=function(i,s,d){var g=s[d+0];return(Lt((i>>24&255)+(g>>24&255)-((s=s[d-1])>>24&255))<<24|Lt((i>>16&255)+(g>>16&255)-(s>>16&255))<<16|Lt((i>>8&255)+(g>>8&255)-(s>>8&255))<<8|Lt((255&i)+(255&g)-(255&s)))>>>0},q.Predictor13=function(i,s,d){var g=s[d-1];
vendor: 5,863 bytes, line 114
114return(ht((i=Pe(i,s[d+0]))>>24&255,g>>24&255)<<24|ht(i>>16&255,g>>16&255)<<16|ht(i>>8&255,g>>8&255)<<8|ht(255&i,255&g))>>>0};var ai=q.PredictorAdd0;q.PredictorAdd1=bt,Ie("Predictor2","PredictorAdd2"),Ie("Predictor3","PredictorAdd3"),Ie("Predictor4","PredictorAdd4"),Ie("Predictor5","PredictorAdd5"),Ie("Predictor6","PredictorAdd6"),Ie("Predictor7","PredictorAdd7"),Ie("Predictor8","PredictorAdd8"),Ie("Predictor9","PredictorAdd9"),Ie("Predictor10","PredictorAdd10"),Ie("Predictor11","PredictorAdd11"),Ie("Predictor12","PredictorAdd12"),Ie("Predictor13","PredictorAdd13");var oi=q.PredictorAdd2;$e("ColorIndexInverseTransform","MapARGB","32b",function(i){return i>>8&255},function(i){return i}),$e("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(i){return i},function(i){return i>>8&255});var ha,Mi=q.ColorIndexInverseTransform,cn=q.MapARGB,Fs=q.VP8LColorIndexInverseTransformAlpha,Pr=q.MapAlpha,ur=q.VP8LPredictorsAdd=[];ur.length=16,(q.VP8LPredictors=[]).length=16,(q.VP8LPredictorsAdd_C=[]).length=16,(q.VP8LPredictors_C=[]).length=16;var Bi,Wa,$a,da,ji,Ri,si,$r,li,pa,Ln,Cr,jt,Rt,Qt,un,Gr,Ga,ma,ko,Ul,zl,Vl,Hl,Ya,Wl,$l,Gl,Yl=o(511),Jl=o(2041),Xl=o(225),Kl=o(767),Zl=0,Ms=Jl,So=Xl,Hn=Kl,ir=Yl,Po=0,Co=1,Ql=2,Io=3,Eo=4,Bs=5,ec=6,js=7,Rs=8,Oo=9,Ts=10,qf=[2,3,7],Uf=[3,3,11],tc=[280,256,256,256,40],zf=[0,1,1,1,0],Vf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Hf=[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],Wf=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$f=8,Ds=[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],qs=[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],Ja=null,Gf=[[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]],Yf=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],nc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Jf=[[[[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,25
1145,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]]]],Xf=[[[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,
1141,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]]],Kf=[[[[255,255,255,255,255,255,255,255,255,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,25
1145,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]]]],Zf=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ci=[],fr=[],Yr=[],Qf=1,rc=2,ui=[],ar=[];xn("UpsampleRgbLinePair",Ci,3),xn("UpsampleBgrLinePair",sa,3),xn("UpsampleRgbaLinePair",za,4),xn("UpsampleBgraLinePair",Ei,4),xn("UpsampleArgbLinePair",Ii,4),xn("UpsampleRgba4444LinePair",An,2),xn("UpsampleRgb565LinePair",la,2);var eh=q.UpsampleRgbLinePair,th=q.UpsampleBgrLinePair,ic=q.UpsampleRgbaLinePair,ac=q.UpsampleBgraLinePair,oc=q.UpsampleArgbLinePair,sc=q.UpsampleRgba4444LinePair,nh=q.UpsampleRgb565LinePair,Fo=16,Mo=1<<Fo-1,Xa=-227,Us=482,rh=6,lc=0,ih=o(256),ah=o(256),oh=o(256),sh=o(256),lh=o(Us-Xa),ch=o(Us-Xa);Sr("YuvToRgbRow",Ci,3),Sr("YuvToBgrRow",sa,3),Sr("YuvToRgbaRow",za,4),Sr("YuvToBgraRow",Ei,4),Sr("YuvToArgbRow",Ii,4),Sr("YuvToRgba4444Row",An,2),Sr("YuvToRgb565Row",la,2);var cc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Bo=[0,2,8],uh=[8,7,6,4,4,2,2,2,1,1,1,1],fh=1;this.WebPDecodeRGBA=function(i,s,d,g,y){var _=Co,A=new $,P=new gt;A.ba=P,P.S=_,P.width=[P.width],P.height=[P.height];var C=P.width,B=P.height,X=new Je;if(X==null||i==null)var se=2;else t(X!=null),se=No(i,s,d,X.width,X.height,X.Pd,X.Qd,X.format,null);if(se!=0?C=0:(C!=null&&(C[0]=X.width[0]),B!=null&&(B[0]=X.height[0]),C=1),C){P.width=P.width[0],P.height=P.height[0],g!=null&&(g[0]=P.width),y!=null&&(y[0]=P.height);e:{if(g=new Zi,(y=new ee).data=i,y.w=s,y.ha=d,y.kd=1,s=[0],t(y!=null),((i=No(y.data,y.w,y.ha,null,null,null,s,null,y))==0||i==7)&&s[0]&&(i=4),(s=i)==0){if(t(A!=null),g.data=y.data,g.w=y.w+y.offset,g.ha=y.ha-y.offset,g.put=Xe,g.ac=wr,g.bc=Tr,g.ma=A,y.xa){if((i=xi())==null){A=1;break e}if((function(j,Z){var ie=[0],me=[0],oe=[0];t:for(;;){if(j==null)return 0;if(Z==null)return j.a=2,0;if(j.l=Z,j.a=0,Y(j.m,Z.data,Z.w,Z.ha),!Dr(j.m,ie,me,oe)){j.a=3;break t}if(j.xb=rc,Z.width=ie[0],Z.height=me[0],!xr(ie[0],me[0],1,j,null))break t;return 1}return t(j.a!=0),0})(i,g)){if(g=(s=Va(g.width,g.height,A.Oa,A.ba))==0){t:{g=i;n:for(;;){if(g==null){g=0;break t}if(t(g.s.yc!=null),t(g.s.Ya!=null),t(0<g.s.Wb),t((d=g.l)!=null),t((y=d.ma)!=null),g.xb!=0){if(g.ca=y.ba,g.tb=y.tb,t(g.ca!=null),!rr(y.Oa,d,Io)){g.a=2;break n}if(!Ai(g,d.width)||d.da)break n;if((d.da||Ke(g.ca.S))&&Gt(),11>g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&Gt()),g.Pb&&0<g.s.ua&&g.s.vb.X==null&&!L(g.s.vb,g.s.Wa.Xa)){g.a=1;break n}g.xb=0}if(!cr(g,g.V,g.Ba,g.c,g.i,d.o,ei))break n;y.Dc=g.Ma,g=1;break t}t(g.a!=0),g=0}g=!g}g&&(s=i.a)}else s=i.a}else{if((i=new gs)==null){A=1;break e}if(i.Fa=y.na,i.P=y.P,i.qc=y.Sa,Lr(i,g)){if((s=Va(g.width,g.height,A.Oa,A.ba))==0){if(i.Aa=0,d=A.Oa,t((y=i)!=null),d!=null){if(0<(C=0>(C=d.Md)?0:100<C?255:255*C/100)){for(B=X=0;4>B;++B)12>(se=y.pb[B]).lc&&(se.ia=C*uh[0>se.lc?0:se.lc]>>3),X|=se.ia;X&&(alert("todo:VP8InitRandom"),y.ia=1)}y.Ga=d.Id,100<y.Ga?y.Ga=100:0>y.Ga&&(y.Ga=0)}(function(j,Z){if(j==null)return 0;if(Z==null)return sn(j,2,"NULL VP8Io parameter in VP8Decode().");if(!j.cb&&!Lr(j,Z))return 0;if(t(j.cb),Z.ac==null||Z.ac(Z)){Z.ob&&(j.L=0);var ie=Bo[j.L];if(j.L==2?(j.yb=0,j.zb=0):(j.yb=Z.v-ie>>4,j.zb=Z.j-ie>>4,0>j.yb&&(j.yb=0),0>j.zb&&(j.zb=0)),j.Va=Z.o+15+ie>>4,j.Hb=Z.va+15+ie>>4,j.Hb>j.za&&(j.Hb=j.za),j.Va>j.Ub&&(j.Va=j.Ub),0<j.L){var me=j.ed;for(ie=0;4>ie;++ie){var oe;if(j.Qa.Cb){var ge=j.Qa.Lb[ie];j.Qa.Fb||(ge+=me.Tb)}else ge=me.Tb;for(oe=0;1>=oe;++oe){var ve=j.gd[ie][oe],Le=ge;if(me.Pc&&(Le+=me.vd[0],oe&&(Le+=me.od[0])),0<(Le=0>Le?0:63<Le?63:Le)){var xe=Le;0<me.wb&&(xe=4<me.wb?xe>>2:xe>>1)>9-me.wb&&(xe=9-me.wb),1>xe&&(xe=1),ve.dd=xe,ve.tc=2*Le+xe,ve.ld=40<=Le?2:15<=Le?1:0}else ve.tc=0;ve.La=oe}}}ie=0}else sn(j,6,"Frame setup failed"),ie=j.a;if(ie=ie==0){if(ie){j.$c=0,0<j.Aa||(j.Ic=fh);t:{ie=j.Ic,me=4*(xe=j.za);var He=32*xe,Fe=xe+1,ut=0<j.L?xe*(0<j.Aa?2:1):0,ze=(j.Aa==2?2:1)*xe;if((ve=me+832+(oe=3*(16*ie+Bo[j.L])/2*He)+(ge=j.Fa!=null&&0<j.Fa.length?j.Kc.c*j.Kc.i:0))!=ve)ie=0;else{if(ve>j.Vb){if(j.Vb=0,j.Ec=o(ve),j.Fc=0,j.Ec==null){ie=sn(j,1,"no memory during frame initialization.");break t}j.Vb=ve}ve=j.Ec,Le=j.Fc,j.Ac=ve,j.Bc=Le,Le+=me,j.Gd=f(He,ho),j.Hd=0,j.rb=f(Fe+1,Oa),j.sb=1,j.wa=ut?f(ut,nr):null,j.Y=0,j.D.Nb=0,j.D.wa=j.wa,j.D.Y=j.Y,0<j.Aa&&(j.D.Y+=xe),t(!0),j.oc=ve,j.pc=Le,Le+=832,j.ya=f(ze,Fa),j.aa=0,j.D.ya=j.ya,j.D.aa=j.aa,j.Aa==2&&(j.D.aa+=xe),j.R=16*xe,j.B=8*xe,xe=(He=Bo[j.L])*j.R,He=He/2*j.B,j.sa=ve,j.ta=Le+xe,j.qa=j.sa,j.ra=j.ta+16*ie*j.R+He,j.Ha=j.qa,j.Ia=j.ra+8*ie*j.B+He,j.$c=0,Le+=oe,j.mb=ge?ve:null,j.nb=ge?Le:null,t(Le+ge<=j.Fc+j.Vb),Ma(j),a(j.Ac,j.Bc,0,me),ie=1}}if(ie){if(Z.ka=0,Z.y=j.sa,Z.O=j.ta,Z.f=j.qa,Z.N=j.ra,Z.ea=j.Ha,Z.Vd=j.Ia,Z.fa=j.R,Z.Rc=j.B,Z.F=null,Z.J=0,!Zl){for(ie=-255;255>=ie;++ie)Yl[255+ie]=0>ie?-ie:ie;for(ie=-1020;1020>=ie;++ie)Jl[1020+ie]=-128>ie?-128:127<ie?127:ie;for(ie=-112;112>=ie;++ie)Xl[112+ie]=-16>ie?-16:15<ie?15:ie;for(ie=-255;510>=ie;++ie)Kl[255+ie]=0>ie?0:255<ie?255:ie;Zl=1}si=vo,$r=vs,pa=bs,Ln=ys,Cr=Nr,li=go,jt=wo,Rt=_o,Qt=Ao,un=u,Gr=xo,Ga=ki,ma=b,ko=M,Ul=aa,zl=qa,Vl=oa,Hl=yo,fr[0]=ks,fr[1]=na,fr[2]=Ls,fr[3]=Ns,fr[4]=Ss,fr[5]=Ur,fr[6]=Ps,fr[7]=zr,fr[8]=Is,fr[9]=Cs,ci[0]=bo,ci[1]=ws,ci[2]=_s,ci[3]=xs,ci[4]=ni,ci[5]=As,ci[6]=Li,Yr[0]=Es,Yr[1]=Ba,Yr[2]=ra,Yr[3]=ja,Yr[4]=Os,Yr[5]=ia,Yr[6]=Ra,ie=1}else ie=0}ie&&(ie=(function(yt,fn){for(yt.M=0;yt.M<yt.Va;++yt.M){var ft,Ve=yt.Jc[yt.M&yt.Xb],ke=yt.m,en=yt;for(ft=0;ft<en.za;++ft){var ot=ke,_t=en,Ut=_t.Ac,bn=_t.Bc+4*ft,Fn=_t.zc,Jt=_t.ya[_t.aa+ft];if(_t.Qa.Bb?Jt.$b=be(ot,_t.Pa.jb[0])?2+be(ot,_t.Pa.jb[2]):be(ot,_t.Pa.jb[1]):Jt.$b=0,_t.kc&&(Jt.Ad=be(ot,_t.Bd)),Jt.Za=!be(ot,145)+0,Jt.Za){var Nn=Jt.Ob,Mn=0;for(_t=0;4>_t;++_t){var hn,At=Fn[0+_t];for(hn=0;4>hn;++hn){At=Xf[Ut[bn+hn]][At];for(var St=nc[be(ot,At[0])];0<St;)St=nc[2*St+be(ot,At[St])];At=-St,Ut[bn+hn]=At}r(Nn,Mn,Ut,bn,4),Mn+=4,Fn[0+_t]=At}}else At=be(ot,156)?be(ot,128)?1:3:be(ot,163)?2:0,Jt.Ob[0]=At,a(Ut,bn,At,4),a(Fn,0,At,4);Jt.Dd=be(ot,142)?be(ot,114)?be(ot,183)?1:3:2:0}if(en.m.Ka)return sn(yt,7,"Premature end-of-partition0 encountered.");for(;yt.ja<yt.za;++yt.ja){if(en=Ve,ot=(ke=yt).rb[ke.sb-1],Ut=ke.rb[ke.sb+ke.ja],ft=ke.ya[ke.aa+ke.ja],bn=ke.kc?ft.Ad:0)ot.la=Ut.la=0,ft.Za||(ot.Na=Ut.Na=0),ft.Hc=0,ft.Gc=0,ft.ia=0;else{var Xt,Pt;if(ot=Ut,Ut=en,bn=ke.Pa.Xc,Fn=ke.ya[ke.aa+ke.ja],Jt=ke.pb[Fn.$b],_t=Fn.ad,Nn=0,Mn=ke.rb[ke.sb-1],At=hn=0,a(_t,Nn,0,384),Fn.Za)var yn=0,hr=bn[3];else{St=o(16);var tn=ot.Na+Mn.Na;if(tn=Ja(Ut,bn[1],tn,Jt.Eb,0,St,0),ot.Na=Mn.Na=(0<tn)+0,1<tn)si(St,0,_t,Nn);else{var Rn=St[0]+3>>3;for(St=0;256>St;St+=16)_t[Nn+St]=Rn}yn=1,hr=bn[0]}var Ft=15&ot.la,dn=15&Mn.la;for(St=0;4>St;++St){var Wn=1&dn;for(Rn=Pt=0;4>Rn;++Rn)Ft=Ft>>1|(Wn=(tn=Ja(Ut,hr,tn=Wn+(1&Ft),Jt.Sc,yn,_t,Nn))>yn)<<7,Pt=Pt<<2|(3<tn?3:1<tn?2:_t[Nn+0]!=0),Nn+=16;Ft>>=4,dn=dn>>1|Wn<<7,hn=(hn<<8|Pt)>>>0}for(hr=Ft,yn=dn>>4,Xt=0;4>Xt;Xt+=2){for(Pt=0,Ft=ot.la>>4+Xt,dn=Mn.la>>4+Xt,St=0;2>St;++St){for(Wn=1&dn,Rn=0;2>Rn;++Rn)tn=Wn+(1&Ft),Ft=Ft>>1|(Wn=0<(tn=Ja(Ut,bn[2],tn,Jt.Qc,0,_t,Nn)))<<3,Pt=Pt<<2|(3<tn?3:1<tn?2:_t[Nn+0]!=0),Nn+=16;Ft>>=2,dn=dn>>1|Wn<<5}At|=Pt<<4*Xt,hr|=Ft<<4<<Xt,yn|=(240&dn)<<Xt}ot.la=hr,Mn.la=yn,Fn.Hc=hn,Fn.Gc=At,Fn.ia=43690&At?0:Jt.ia,bn=!(hn|At)}if(0<ke.L&&(ke.wa[ke.Y+ke.ja]=ke.gd[ft.$b][ft.Za],ke.wa[ke.Y+ke.ja].La|=!bn),en.Ka)return sn(yt,7,"Premature end-of-file encountered.")}if(Ma(yt),ke=fn,en=1,ft=(Ve=yt).D,ot=0<Ve.L&&Ve.M>=Ve.zb&&Ve.M<=Ve.Va,Ve.Aa==0)t:{if(ft.M=Ve.M,ft.uc=ot,ca(Ve,ft),en=1,ft=(Pt=Ve.D).Nb,ot=(At=Bo[Ve.L])*Ve.R,Ut=At/2*Ve.B,St=16*ft*Ve.R,Rn=8*ft*Ve.B,bn=Ve.sa,Fn=Ve.ta-ot+St,Jt=Ve.qa,_t=Ve.ra-Ut+Rn,Nn=Ve.Ha,Mn=Ve.Ia-Ut+Rn,dn=(Ft=Pt.M)==0,hn=Ft>=Ve.Va-1,Ve.Aa==2&&ca(Ve,Pt),Pt.uc)for(Wn=(tn=Ve).D.M,t(tn.D.uc),Pt=tn.yb;Pt<tn.Hb;++Pt){yn=Pt,hr=Wn;var Bn=($n=(wn=tn).D).Nb;Xt=wn.R;var $n=$n.wa[$n.Y+yn],Gn=wn.sa,Tn=wn.ta+16*Bn*Xt+16*yn,Yn=$n.dd,Tt=$n.tc;if(Tt!=0)if(t(3<=Tt),wn.L==1)0<yn&&zl(Gn,Tn,Xt,Tt+4),$n.La&&Hl(Gn,Tn,Xt,Tt),0<hr&&Ul(Gn,Tn,Xt,Tt+4),$n.La&&Vl(Gn,Tn,Xt,Tt);else{var Jn=wn.B,dr=wn.qa,Ti=wn.ra+8*Bn*Jn+8*yn,Jr=wn.Ha,wn=wn.Ia+8*Bn*Jn+8*yn;Bn=$n.ld,0<yn&&(Rt(Gn,Tn,Xt,Tt+4,Yn,Bn),un(dr,Ti,Jr,wn,Jn,Tt+4,Yn,Bn)),$n.La&&(Ga(Gn,Tn,Xt,Tt,Yn,Bn),ko(dr,Ti,Jr,wn,Jn,Tt,Yn,Bn)),0<hr&&(jt(Gn,Tn,Xt,Tt+4,Yn,Bn),Qt(dr,Ti,Jr,wn,Jn,Tt+4,Yn,Bn)),$n.La&&(Gr(Gn,Tn,Xt,Tt,Yn,Bn),ma(dr,Ti,Jr,wn,Jn,Tt,Yn,Bn))}}if(Ve.ia&&alert("todo:DitherRow"),ke.put!=null){if(Pt=16*Ft,Ft=16*(Ft+1),dn?(ke.y=Ve.sa,ke.O=Ve.ta+St,ke.f=Ve.qa,ke.N=Ve.ra+Rn,ke.ea=Ve.Ha,ke.W=Ve.Ia+Rn):(Pt-=At,ke.y=bn,ke.O=Fn,ke.f=Jt,ke.N=_t,ke.ea=Nn,ke.W=Mn),hn||(Ft-=At),Ft>ke.o&&(Ft=ke.o),ke.F=null,ke.J=null,Ve.Fa!=null&&0<Ve.Fa.length&&Pt<Ft&&(ke.J=ln(Ve,ke,Pt,Ft-Pt),ke.F=Ve.mb,ke.F==null&&ke.F.length==0)){en=sn(Ve,3,"Could not decode alpha data.");break t}Pt<ke.j&&(At=ke.j-Pt,Pt=ke.j,t(!(1&At)),ke.O+=Ve.R*At,ke.N+=Ve.B*(At>>
1141),ke.W+=Ve.B*(At>>1),ke.F!=null&&(ke.J+=ke.width*At)),Pt<Ft&&(ke.O+=ke.v,ke.N+=ke.v>>1,ke.W+=ke.v>>1,ke.F!=null&&(ke.J+=ke.v),ke.ka=Pt-ke.j,ke.U=ke.va-ke.v,ke.T=Ft-Pt,en=ke.put(ke))}ft+1!=Ve.Ic||hn||(r(Ve.sa,Ve.ta-ot,bn,Fn+16*Ve.R,ot),r(Ve.qa,Ve.ra-Ut,Jt,_t+8*Ve.B,Ut),r(Ve.Ha,Ve.Ia-Ut,Nn,Mn+8*Ve.B,Ut))}if(!en)return sn(yt,6,"Output aborted.")}return 1})(j,Z)),Z.bc!=null&&Z.bc(Z),ie&=1}return ie?(j.cb=0,ie):0})(i,g)||(s=i.a)}}else s=i.a}s==0&&A.Oa!=null&&A.Oa.fd&&(s=Oi(A.ba))}A=s}_=A!=0?null:11>_?P.f.RGBA.eb:P.f.kb.y}else _=null;return _};var uc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function h(q,ne){for(var S="",F=0;F<4;F++)S+=String.fromCharCode(q[ne++]);return S}function m(q,ne){return q[ne+0]|q[ne+1]<<8}function v(q,ne){return(q[ne+0]|q[ne+1]<<8|q[ne+2]<<16)>>>0}function x(q,ne){return(q[ne+0]|q[ne+1]<<8|q[ne+2]<<16|q[ne+3]<<24)>>>0}new c;var p=[0],I=[0],E=[],k=new c,N=n,H=(function(q,ne){var S={},F=0,W=!1,V=0,J=0;if(S.frames=[],!(function(w,O){for(var D=0;D<4;D++)if(w[O+D]!="RIFF".charCodeAt(D))return!0;return!1})(q,ne)){for(x(q,ne+=4),ne+=8;ne<q.length;){var Q=h(q,ne),ae=x(q,ne+=4);ne+=4;var U=ae+(1&ae);switch(Q){case"VP8 ":case"VP8L":S.frames[F]===void 0&&(S.frames[F]={}),(le=S.frames[F]).src_off=W?J:ne-8,le.src_size=V+ae+8,F++,W&&(W=!1,V=0,J=0);break;case"VP8X":(le=S.header={}).feature_flags=q[ne];var Y=ne+4;le.canvas_width=1+v(q,Y),Y+=3,le.canvas_height=1+v(q,Y),Y+=3;break;case"ALPH":W=!0,V=U+8,J=ne-8;break;case"ANIM":(le=S.header).bgcolor=x(q,ne),Y=ne+4,le.loop_count=m(q,Y),Y+=2;break;case"ANMF":var ue,le;(le=S.frames[F]={}).offset_x=2*v(q,ne),ne+=3,le.offset_y=2*v(q,ne),ne+=3,le.width=1+v(q,ne),ne+=3,le.height=1+v(q,ne),ne+=3,le.duration=v(q,ne),ne+=3,ue=q[ne++],le.dispose=1&ue,le.blend=ue>>1&1}Q!="ANMF"&&(ne+=U)}return S}})(N,0);H.response=N,H.rgbaoutput=!0,H.dataurl=!1;var T=H.header?H.header:null,R=H.frames?H.frames:null;if(T){T.loop_counter=T.loop_count,p=[T.canvas_height],I=[T.canvas_width];for(var te=0;te<R.length&&R[te].blend!=0;te++);}var he=R[0],ce=k.WebPDecodeRGBA(N,he.src_off,he.src_size,I,p);he.rgba=ce,he.imgwidth=I[0],he.imgheight=p[0];for(var G=0;G<I[0]*p[0]*4;G++)E[G]=ce[G];return this.width=I,this.height=p,this.data=E,this}/** ==================================================================== 115 * @license 116 * jsPDF XMP metadata plugin 117 * Copyright (c) 2016 Jussi Utunen, [email protected] 118 * 119 * Permission is hereby granted, free of charge, to any person obtaining 120 * a copy of this software and associated documentation files (the 121 * "Software"), to deal in the Software without restriction, including 122 * without limitation the rights to use, copy, modify, merge, publish, 123 * distribute, sublicense, and/or sell copies of the Software, and to 124 * permit persons to whom the Software is furnished to do so, subject to 125 * the following conditions: 126 * 127 * The above copyright notice and this permission notice shall be 128 * included in all copies or substantial portions of the Software. 129 * 130 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 131 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 132 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 133 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 134 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 135 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 136 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 137 * ==================================================================== 138 */function k0(){var n,t=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(t));n=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function S0(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var t,e,r,a,o,f,l,c,h,m=function(w){return w=w||{},this.isStrokeTransparent=w.isStrokeTransparent||!1,this.strokeOpacity=w.strokeOpacity||1,this.strokeStyle=w.strokeStyle||"#000000",this.fillStyle=w.fillStyle||"#000000",this.isFillTransparent=w.isFillTransparent||!1,this.fillOpacity=w.fillOpacity||1,this.font=w.font||"10px sans-serif",this.textBaseline=w.textBaseline||"alphabetic",this.textAlign=w.textAlign||"left",this.lineWidth=w.lineWidth||1,this.lineJoin=w.lineJoin||"miter",this.lineCap=w.lineCap||"butt",this.path=w.path||[],this.transform=w.transform!==void 0?w.transform.clone():new c,this.globalCompositeOperation=w.globalCompositeOperation||"normal",this.globalAlpha=w.globalAlpha||1,this.clip_path=w.clip_path||[],this.currentPoint=w.currentPoint||new f,this.miterLimit=w.miterLimit||10,this.lastPoint=w.lastPoint||new f,this.lineDashOffset=w.lineDashOffset||0,this.lineDash=w.lineDash||[],this.margin=w.margin||[0,0,0,0],this.prevPageLastElemOffset=w.prevPageLastElemOffset||0,this.ignoreClearRect=typeof w.ignoreClearRect!="boolean"||w.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new v(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,f=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,h=new m}]);var v=function(w){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=w;Object.defineProperty(this,"pdf",{get:function(){return O}});var D=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return D},set:function(L){D=!!L}});var z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return z},set:function(L){z=!!L}});var K=0;Object.defineProperty(this,"posX",{get:function(){return K},set:function(L){isNaN(L)||(K=L)}});var re=0;Object.defineProperty(this,"posY",{get:function(){return re},set:function(L){isNaN(L)||(re=L)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(L){var Ae;typeof L=="number"?Ae=[L,L,L,L]:((Ae=new Array(4))[0]=L[0],Ae[1]=L.length>=2?L[1]:Ae[0],Ae[2]=L.length>=3?L[2]:Ae[0],Ae[3]=L.length>=4?L[3]:Ae[1]),h.margin=Ae}});var fe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return fe},set:function(L){fe=L}});var de=0;Object.defineProperty(this,"lastBreak",{get:function(){return de},set:function(L){de=L}});var be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return be},set:function(L){be=L}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(L){L instanceof m&&(h=L)}}),Object.defineProperty(this,"path",{get:function(){return h.path}
138,set:function(L){h.path=L}});var Ne=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ne},set:function(L){Ne=L}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(L){var Ae;Ae=x(L),this.ctx.fillStyle=Ae.style,this.ctx.isFillTransparent=Ae.a===0,this.ctx.fillOpacity=Ae.a,this.pdf.setFillColor(Ae.r,Ae.g,Ae.b,{a:Ae.a}),this.pdf.setTextColor(Ae.r,Ae.g,Ae.b,{a:Ae.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(L){var Ae=x(L);this.ctx.strokeStyle=Ae.style,this.ctx.isStrokeTransparent=Ae.a===0,this.ctx.strokeOpacity=Ae.a,Ae.a===0?this.pdf.setDrawColor(255,255,255):(Ae.a,this.pdf.setDrawColor(Ae.r,Ae.g,Ae.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(L){["butt","round","square"].indexOf(L)!==-1&&(this.ctx.lineCap=L,this.pdf.setLineCap(L))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(L){isNaN(L)||(this.ctx.lineWidth=L,this.pdf.setLineWidth(L))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(L){["bevel","round","miter"].indexOf(L)!==-1&&(this.ctx.lineJoin=L,this.pdf.setLineJoin(L))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(L){isNaN(L)||(this.ctx.miterLimit=L,this.pdf.setMiterLimit(L))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(L){this.ctx.textBaseline=L}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(L){["right","end","center","left","start"].indexOf(L)!==-1&&(this.ctx.textAlign=L)}});var Ce=null,Se=null,_e=null;Object.defineProperty(this,"fontFaces",{get:function(){return _e},set:function(L){Ce=null,Se=null,_e=L}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(L){var Ae;if(this.ctx.font=L,(Ae=/^\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(L))!==null){var Me=Ae[1];Ae[2];var Ee=Ae[3],ye=Ae[4];Ae[5];var qe=Ae[6],Ie=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ye)[2];ye=Math.floor(Ie==="px"?parseFloat(ye)*this.pdf.internal.scaleFactor:Ie==="em"?parseFloat(ye)*this.pdf.getFontSize():parseFloat(ye)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ye);var Oe=(function($e){var Zt,xt,dt=[],pt=$e.trim();if(pt==="")return vl;if(pt in Au)return[Au[pt]];for(;pt!=="";){switch(xt=null,Zt=(pt=Nu(pt)).charAt(0)){case'"':case"'":xt=w0(pt.substring(1),Zt);break;default:xt=_0(pt)}if(xt===null||(dt.push(xt[0]),(pt=Nu(xt[1]))!==""&&pt.charAt(0)!==","))return vl;pt=pt.replace(/^,/,"")}return dt})(qe);if(this.fontFaces){var Pe=(function($e,Zt){var xt=$e.getFontList(),dt=JSON.stringify(xt);if(Ce===null||Se!==dt){var pt=(function(Vt){var Ye=[];return Object.keys(Vt).forEach(function(Bt){Vt[Bt].forEach(function(Ke){var it=null;switch(Ke){case"bold":it={family:Bt,weight:"bold"};break;case"italic":it={family:Bt,style:"italic"};break;case"bolditalic":it={family:Bt,weight:"bold",style:"italic"};break;case"":case"normal":it={family:Bt}}it!==null&&(it.ref={name:Bt,style:Ke},Ye.push(it))})}),Ye})(xt);Ce=(function(Vt){for(var Ye={},Bt=0;Bt<Vt.length;++Bt){var Ke=gl(Vt[Bt]),it=Ke.family,Ht=Ke.stretch,gt=Ke.style,Je=Ke.weight;Ye[it]=Ye[it]||{},Ye[it][Ht]=Ye[it][Ht]||{},Ye[it][Ht][gt]=Ye[it][Ht][gt]||{},Ye[it][Ht][gt][Je]=Ke}return Ye})(pt.concat(Zt)),Se=dt}return Ce})(this.pdf,this.fontFaces),Lt=Oe.map(function($e){return{family:$e,stretch:"normal",weight:Ee,style:Me}}),ht=(function($e,Zt,xt){for(var dt=(xt=xt||{}).defaultFontFamily||"times",pt=Object.assign({},y0,xt.genericFontFamilies||{}),Vt=null,Ye=null,Bt=0;Bt<Zt.length;++Bt)if(pt[(Vt=gl(Zt[Bt])).family]&&(Vt.family=pt[Vt.family]),$e.hasOwnProperty(Vt.family)){Ye=$e[Vt.family];break}if(!(Ye=Ye||$e[dt]))throw new Error("Could not find a font-family for the rule '"+Lu(Vt)+"' and default family '"+dt+"'.");if(Ye=(function(Ke,it){if(it[Ke])return it[Ke];var Ht=Il[Ke],gt=Ht<=Il.normal?-1:1,Je=xu(it,Bf,Ht,gt);if(!Je)throw new Error("Could not find a matching font-stretch value for "+Ke);return Je})(Vt.stretch,Ye),Ye=(function(Ke,it){if(it[Ke])return it[Ke];for(var Ht=Mf[Ke],gt=0;gt<Ht.length;++gt)if(it[Ht[gt]])return it[Ht[gt]];throw new Error("Could not find a matching font-style for "+Ke)})(Vt.style,Ye),!(Ye=(function(Ke,it){if(it[Ke])return it[Ke];if(Ke===400&&it[500])return it[500];if(Ke===500&&it[400])return it[400];var Ht=b0[Ke],gt=xu(it,jf,Ht,Ke<400?-1:1);if(!gt)throw new Error("Could not find a matching font-weight for value "+Ke);return gt})(Vt.weight,Ye)))throw new Error("Failed to resolve a font for the rule '"+Lu(Vt)+"'.");return Ye})(Pe,Lt);this.pdf.setFont(ht.ref.name,ht.ref.style)}
138else{var et="";(Ee==="bold"||parseInt(Ee,10)>=700||Me==="bold")&&(et="bold"),Me==="italic"&&(et+="italic"),et.length===0&&(et="normal");for(var bt="",mt={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"},Te=0;Te<Oe.length;Te++){if(this.pdf.internal.getFont(Oe[Te],et,{noFallback:!0,disableWarning:!0})!==void 0){bt=Oe[Te];break}if(et==="bolditalic"&&this.pdf.internal.getFont(Oe[Te],"bold",{noFallback:!0,disableWarning:!0})!==void 0)bt=Oe[Te],et="bold";else if(this.pdf.internal.getFont(Oe[Te],"normal",{noFallback:!0,disableWarning:!0})!==void 0){bt=Oe[Te],et="normal";break}}if(bt===""){for(var tt=0;tt<Oe.length;tt++)if(mt[Oe[tt]]){bt=mt[Oe[tt]];break}}bt=bt===""?"Times":bt,this.pdf.setFont(bt,et)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(L){this.ctx.globalCompositeOperation=L}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(L){this.ctx.globalAlpha=L}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(L){this.ctx.lineDashOffset=L,le.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(L){this.ctx.lineDash=L,le.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(L){this.ctx.ignoreClearRect=!!L}})};v.prototype.setLineDash=function(w){this.lineDash=w},v.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},v.prototype.fill=function(){R.call(this,"fill",!1)},v.prototype.stroke=function(){R.call(this,"stroke",!1)},v.prototype.beginPath=function(){this.path=[{type:"begin"}]},v.prototype.moveTo=function(w,O){if(isNaN(w)||isNaN(O))throw Mt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var D=this.ctx.transform.applyToPoint(new f(w,O));this.path.push({type:"mt",x:D.x,y:D.y}),this.ctx.lastPoint=new f(w,O)},v.prototype.closePath=function(){var w=new f(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&It(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){w=new f(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new f(w.x,w.y)},v.prototype.lineTo=function(w,O){if(isNaN(w)||isNaN(O))throw Mt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var D=this.ctx.transform.applyToPoint(new f(w,O));this.path.push({type:"lt",x:D.x,y:D.y}),this.ctx.lastPoint=new f(D.x,D.y)},v.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),R.call(this,null,!0)},v.prototype.quadraticCurveTo=function(w,O,D,z){if(isNaN(D)||isNaN(z)||isNaN(w)||isNaN(O))throw Mt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var K=this.ctx.transform.applyToPoint(new f(D,z)),re=this.ctx.transform.applyToPoint(new f(w,O));this.path.push({type:"qct",x1:re.x,y1:re.y,x:K.x,y:K.y}),this.ctx.lastPoint=new f(K.x,K.y)},v.prototype.bezierCurveTo=function(w,O,D,z,K,re){if(isNaN(K)||isNaN(re)||isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z))throw Mt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var fe=this.ctx.transform.applyToPoint(new f(K,re)),de=this.ctx.transform.applyToPoint(new f(w,O)),be=this.ctx.transform.applyToPoint(new f(D,z));this.path.push({type:"bct",x1:de.x,y1:de.y,x2:be.x,y2:be.y,x:fe.x,y:fe.y}),this.ctx.lastPoint=new f(fe.x,fe.y)},v.prototype.arc=function(w,O,D,z,K,re){if(isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z)||isNaN(K))throw Mt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to
138jsPDF.context2d.arc");if(re=!!re,!this.ctx.transform.isIdentity){var fe=this.ctx.transform.applyToPoint(new f(w,O));w=fe.x,O=fe.y;var de=this.ctx.transform.applyToPoint(new f(0,D)),be=this.ctx.transform.applyToPoint(new f(0,0));D=Math.sqrt(Math.pow(de.x-be.x,2)+Math.pow(de.y-be.y,2))}Math.abs(K-z)>=2*Math.PI&&(z=0,K=2*Math.PI),this.path.push({type:"arc",x:w,y:O,radius:D,startAngle:z,endAngle:K,counterclockwise:re})},v.prototype.arcTo=function(w,O,D,z,K){throw new Error("arcTo not implemented.")},v.prototype.rect=function(w,O,D,z){if(isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z))throw Mt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(w,O),this.lineTo(w+D,O),this.lineTo(w+D,O+z),this.lineTo(w,O+z),this.lineTo(w,O),this.lineTo(w+D,O),this.lineTo(w,O)},v.prototype.fillRect=function(w,O,D,z){if(isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z))throw Mt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var K={};this.lineCap!=="butt"&&(K.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(K.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(w,O,D,z),this.fill(),K.hasOwnProperty("lineCap")&&(this.lineCap=K.lineCap),K.hasOwnProperty("lineJoin")&&(this.lineJoin=K.lineJoin)}},v.prototype.strokeRect=function(w,O,D,z){if(isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z))throw Mt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");I.call(this)||(this.beginPath(),this.rect(w,O,D,z),this.stroke())},v.prototype.clearRect=function(w,O,D,z){if(isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z))throw Mt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(w,O,D,z))},v.prototype.save=function(w){w=typeof w!="boolean"||w;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,D=0;D<this.pdf.internal.getNumberOfPages();D++)this.pdf.setPage(D+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),w){this.ctx.fontSize=this.pdf.internal.getFontSize();var z=new m(this.ctx);this.ctxStack.push(this.ctx),this.ctx=z}},v.prototype.restore=function(w){w=typeof w!="boolean"||w;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,D=0;D<this.pdf.internal.getNumberOfPages();D++)this.pdf.setPage(D+1),this.pdf.internal.out("Q");this.pdf.setPage(O),w&&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)},v.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var x=function(w){var O,D,z,K;if(w.isCanvasGradient===!0&&(w=w.getColor()),!w)return{r:0,g:0,b:0,a:0,style:w};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(w))O=0,D=0,z=0,K=0;else{var re=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(w);if(re!==null)O=parseInt(re[1]),D=parseInt(re[2]),z=parseInt(re[3]),K=1;else if((re=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(w))!==null)O=parseInt(re[1]),D=parseInt(re[2]),z=parseInt(re[3]),K=parseFloat(re[4]);else{if(K=1,typeof w=="string"&&w.charAt(0)!=="#"){var fe=new Sf(w);w=fe.ok?fe.toHex():"#000000"}w.length===4?(O=w.substring(1,2),O+=O,D=w.substring(2,3),D+=D,z=w.substring(3,4),z+=z):(O=w.substring(1,3),D=w.substring(3,5),z=w.substring(5,7)),O=parseInt(O,16),D=parseInt(D,16),z=parseInt(z,16)}}return{r:O,g:D,b:z,a:K,style:w}},p=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},I=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};v.prototype.fillText=function(w,O,D,z){if(isNaN(O)||isNaN(D)||typeof w!="string")throw Mt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to
138jsPDF.context2d.fillText");if(z=isNaN(z)?void 0:z,!p.call(this)){var K=U(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;F.call(this,{text:w,x:O,y:D,scale:re,angle:K,align:this.textAlign,maxWidth:z})}},v.prototype.strokeText=function(w,O,D,z){if(isNaN(O)||isNaN(D)||typeof w!="string")throw Mt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!I.call(this)){z=isNaN(z)?void 0:z;var K=U(this.ctx.transform.rotation),re=this.ctx.transform.scaleX;F.call(this,{text:w,x:O,y:D,scale:re,renderingMode:"stroke",angle:K,align:this.textAlign,maxWidth:z})}},v.prototype.measureText=function(w){if(typeof w!="string")throw Mt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,D=this.pdf.internal.scaleFactor,z=O.internal.getFontSize(),K=O.getStringUnitWidth(w)*z/O.internal.scaleFactor;return new function(re){var fe=(re=re||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return fe}}),this}({width:K*=Math.round(96*D/72*1e4)/1e4})},v.prototype.scale=function(w,O){if(isNaN(w)||isNaN(O))throw Mt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var D=new c(w,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(D)},v.prototype.rotate=function(w){if(isNaN(w))throw Mt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new c(Math.cos(w),Math.sin(w),-Math.sin(w),Math.cos(w),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},v.prototype.translate=function(w,O){if(isNaN(w)||isNaN(O))throw Mt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var D=new c(1,0,0,1,w,O);this.ctx.transform=this.ctx.transform.multiply(D)},v.prototype.transform=function(w,O,D,z,K,re){if(isNaN(w)||isNaN(O)||isNaN(D)||isNaN(z)||isNaN(K)||isNaN(re))throw Mt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var fe=new c(w,O,D,z,K,re);this.ctx.transform=this.ctx.transform.multiply(fe)},v.prototype.setTransform=function(w,O,D,z,K,re){w=isNaN(w)?1:w,O=isNaN(O)?0:O,D=isNaN(D)?0:D,z=isNaN(z)?1:z,K=isNaN(K)?0:K,re=isNaN(re)?0:re,this.ctx.transform=new c(w,O,D,z,K,re)};var E=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};v.prototype.drawImage=function(w,O,D,z,K,re,fe,de,be){var Ne=this.pdf.getImageProperties(w),Ce=1,Se=1,_e=1,L=1;z!==void 0&&de!==void 0&&(_e=de/z,L=be/K,Ce=Ne.width/z*de/z,Se=Ne.height/K*be/K),re===void 0&&(re=O,fe=D,O=0,D=0),z!==void 0&&de===void 0&&(de=z,be=K),z===void 0&&de===void 0&&(de=Ne.width,be=Ne.height);var Ae=this.ctx.transform.decompose(),Me=U(Ae.rotate.shx),Ee=new c,ye=(Ee=(Ee=(Ee=Ee.multiply(Ae.translate)).multiply(Ae.skew)).multiply(Ae.scale)).applyToRectangle(new l(re-O*_e,fe-D*L,z*Ce,K*Se));if(this.autoPaging){for(var qe,Ie=k.call(this,ye),Oe=[],Pe=0;Pe<Ie.length;Pe+=1)Oe.indexOf(Ie[Pe])===-1&&Oe.push(Ie[Pe]);T(Oe);for(var Lt=Oe[0],ht=Oe[Oe.length-1],et=Lt;et<ht+1;et++){this.pdf.setPage(et);var bt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],mt=et===1?this.posY+this.margin[0]:this.margin[0],Te=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],tt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],$e=et===1?0:Te+(et-2)*tt;if(this.ctx.clip_path.length!==0){var Zt=this.path;qe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(qe,this.posX+this.margin[3],-$e+mt+this.ctx.prevPageLastElemOffset),te.call(this,"fill",!0),this.path=Zt}var xt=JSON.parse(JSON.stringify(ye));xt=H([xt],this.posX+this.margin[3],-$e+mt+this.ctx.prevPageLastElemOffset)[0];var dt=(et>Lt||et<ht)&&E.call(this);dt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],bt,tt,null).clip().discardPath()),this.pdf.addImage(w,"JPEG",xt.x,xt.y,xt.w,xt.h,null,
vendor: 9,492 bytes, line 138
138null,Me),dt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(w,"JPEG",ye.x,ye.y,ye.w,ye.h,null,null,Me)};var k=function(w,O,D){var z=[];O=O||this.pdf.internal.pageSize.width,D=D||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var K=this.posY+this.ctx.prevPageLastElemOffset;switch(w.type){default:case"mt":case"lt":z.push(Math.floor((w.y+K)/D)+1);break;case"arc":z.push(Math.floor((w.y+K-w.radius)/D)+1),z.push(Math.floor((w.y+K+w.radius)/D)+1);break;case"qct":var re=Y(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x,w.y);z.push(Math.floor((re.y+K)/D)+1),z.push(Math.floor((re.y+re.h+K)/D)+1);break;case"bct":var fe=ue(this.ctx.lastPoint.x,this.ctx.lastPoint.y,w.x1,w.y1,w.x2,w.y2,w.x,w.y);z.push(Math.floor((fe.y+K)/D)+1),z.push(Math.floor((fe.y+fe.h+K)/D)+1);break;case"rect":z.push(Math.floor((w.y+K)/D)+1),z.push(Math.floor((w.y+w.h+K)/D)+1)}for(var de=0;de<z.length;de+=1)for(;this.pdf.internal.getNumberOfPages()<z[de];)N.call(this);return z},N=function(){var w=this.fillStyle,O=this.strokeStyle,D=this.font,z=this.lineCap,K=this.lineWidth,re=this.lineJoin;this.pdf.addPage(),this.fillStyle=w,this.strokeStyle=O,this.font=D,this.lineCap=z,this.lineWidth=K,this.lineJoin=re},H=function(w,O,D){for(var z=0;z<w.length;z++)switch(w[z].type){case"bct":w[z].x2+=O,w[z].y2+=D;case"qct":w[z].x1+=O,w[z].y1+=D;default:w[z].x+=O,w[z].y+=D}return w},T=function(w){return w.sort(function(O,D){return O-D})},R=function(w,O){var D=this.fillStyle,z=this.strokeStyle,K=this.lineCap,re=this.lineWidth,fe=Math.abs(re*this.ctx.transform.scaleX),de=this.lineJoin;if(this.autoPaging){for(var be,Ne,Ce=JSON.parse(JSON.stringify(this.path)),Se=JSON.parse(JSON.stringify(this.path)),_e=[],L=0;L<Se.length;L++)if(Se[L].x!==void 0)for(var Ae=k.call(this,Se[L]),Me=0;Me<Ae.length;Me+=1)_e.indexOf(Ae[Me])===-1&&_e.push(Ae[Me]);for(var Ee=0;Ee<_e.length;Ee++)for(;this.pdf.internal.getNumberOfPages()<_e[Ee];)N.call(this);T(_e);for(var ye=_e[0],qe=_e[_e.length-1],Ie=ye;Ie<qe+1;Ie++){this.pdf.setPage(Ie),this.fillStyle=D,this.strokeStyle=z,this.lineCap=K,this.lineWidth=fe,this.lineJoin=de;var Oe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Pe=Ie===1?this.posY+this.margin[0]:this.margin[0],Lt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ht=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],et=Ie===1?0:Lt+(Ie-2)*ht;if(this.ctx.clip_path.length!==0){var bt=this.path;be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(be,this.posX+this.margin[3],-et+Pe+this.ctx.prevPageLastElemOffset),te.call(this,w,!0),this.path=bt}if(Ne=JSON.parse(JSON.stringify(Ce)),this.path=H(Ne,this.posX+this.margin[3],-et+Pe+this.ctx.prevPageLastElemOffset),O===!1||Ie===0){var mt=(Ie>ye||Ie<qe)&&E.call(this);mt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Oe,ht,null).clip().discardPath()),te.call(this,w,O),mt&&this.pdf.restoreGraphicsState()}this.lineWidth=re}this.path=Ce}else this.lineWidth=fe,te.call(this,w,O),this.lineWidth=re},te=function(w,O){if((w!=="stroke"||O||!I.call(this))&&(w==="stroke"||O||!p.call(this))){for(var D,z,K=[],re=this.path,fe=0;fe<re.length;fe++){var de=re[fe];switch(de.type){case"begin":K.push({begin:!0});break;case"close":K.push({close:!0});break;case"mt":K.push({start:de,deltas:[],abs:[]});break;case"lt":var be=K.length;if(re[fe-1]&&!isNaN(re[fe-1].x)&&(D=[de.x-re[fe-1].x,de.y-re[fe-1].y],be>0)){for(;be>=0;be--)if(K[be-1].close!==!0&&K[be-1].begin!==!0){K[be-1].deltas.push(D),K[be-1].abs.push(de);break}}break;case"bct":D=[de.x1-re[fe-1].x,de.y1-re[fe-1].y,de.x2-re[fe-1].x,de.y2-re[fe-1].y,de.x-re[fe-1].x,de.y-re[fe-1].y],K[K.length-1].deltas.push(D);break;case"qct":var Ne=re[fe-1].x+2/3*(de.x1-re[fe-1].x),Ce=re[fe-1].y+2/3*(de.y1-re[fe-1].y),Se=de.x+2/3*(de.x1-de.x),_e=de.y+2/3*(de.y1-de.y),L=de.x,Ae=de.y;D=[Ne-re[fe-1].x,Ce-re[fe-1].y,Se-re[fe-1].x,_e-re[fe-1].y,L-re[fe-1].x,Ae-re[fe-1].y],K[K.length-1].deltas.push(D);break;case"arc":K.push({deltas:[],abs:[],arc:!0}),Array.isArray(K[K.length-1].abs)&&K[K.length-1].abs.push(de)}}z=O?null:w==="stroke"?"stroke":"fill";for(var Me=!1,Ee=0;Ee<K.length;Ee++)if(K[Ee].arc)for(var ye=K[Ee].abs,qe=0;qe<ye.length;qe++){var Ie=ye[qe];Ie.type==="arc"?G.call(this,Ie.x,Ie.y,Ie.radius,Ie.startAngle,Ie.endAngle,Ie.counterclockwise,void 0,O,!Me):W.call(this,Ie.x,Ie.y),Me=!0}else if(K[Ee].close===!0)this.pdf.internal.out("h"),Me=!1;else if(K[Ee].begin!==!0){var Oe=K[Ee].start.x,Pe=K[Ee].start.y;V.call(this,K[Ee].deltas,Oe,Pe),Me=!0}z&&q.call(this,z),O&&ne.call(this)}},he=function(w){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,D=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return w-D;case"top":return w+O-D;case"hanging":return w+O-2*D;case"middle":return w+O/2-D;default:return w}},ce=function(w){return w+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};v.prototype.createLinearGradient=function(){var w=function(){};return w.colorStops=[],w.addColorStop=function(O,D){this.colorStops.push([O,D])},w.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},w.isCanvasGradient=!0,w},v.prototype.createPattern=function(){return this.createLinearGradient()},v.prototype.createRadialGradient=function(){return this.createLinearGradient()};var G=function(w,O,D,z,K,re,fe,de,be){for(var Ne=Q.call(this,D,z,K,re),Ce=0;Ce<Ne.length;Ce++){var Se=Ne[Ce];Ce===0&&(be?S.call(this,Se.x1+w,Se.y1+O):W.call(this,Se.x1+w,Se.y1+O)),J.call(this,w,O,Se.x2,Se.y2,Se.x3,Se.y3,Se.x4,Se.y4)}de?ne.call(this):q.call(this,fe)},q=function(w){switch(w){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ne=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(w,O){this.pdf.internal.out(e(w)+" "+r(O)+" m")},F=function(w){var O;switch(w.align){case"right":case"end":O="right";break;case"center":O="center";break;default:O="left"}var D,z,K,re=this.pdf.getTextDimensions(w.text),fe=he.call(this,w.y),de=ce.call(this,fe)-re.h,be=this.ctx.transform.applyToPoint(new f(w.x,fe));if(this.autoPaging){var Ne=this.ctx.transform.decompose(),Ce=new c;Ce=(Ce=(Ce=Ce.multiply(Ne.translate)).multiply(Ne.skew)).multiply(Ne.scale);for(var Se=this.ctx.transform.applyToRectangle(new l(w.x,fe,re.w,re.h)),_e=Ce.applyToRectangle(new l(w.x,de,re.w,re.h)),L=k.call(this,_e),Ae=[],Me=0;Me<L.length;Me+=1)Ae.indexOf(L[Me])===-1&&Ae.push(L[Me]);T(Ae);for(var Ee=Ae[0],ye=Ae[Ae.length-1],qe=Ee;qe<ye+1;qe++){this.pdf.setPage(qe);var Ie=qe===1?this.posY+this.margin[0]:this.margin[0],Oe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Pe=this.pdf.internal.pageSize.height-this.margin[2],Lt=Pe-this.margin[0],ht=this.pdf.internal.pageSize.width-this.margin[1],et=ht-this.margin[3],bt=qe===1?0:Oe+(qe-2)*Lt;if(this.ctx.clip_path.length!==0){var mt=this.path;D=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(D,this.posX+this.margin[3],-1*bt+Ie),te.call(this,"fill",!0),this.path=mt}var Te=H([JSON.parse(JSON.stringify(_e))],this.posX+this.margin[3],-bt+Ie+this.ctx.prevPageLastElemOffset)[0];w.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*w.scale),K=this.lineWidth,this.lineWidth=K*w.scale);var tt=this.autoPaging!=="text";if(tt||Te.y+Te.h<=Pe){if(tt||Te.y>=Ie&&Te.x<=ht){var $e=tt?w.text:this.pdf.splitTextToSize(w.text,w.maxWidth||ht-Te.x)[0],Zt=H([JSON.parse(JSON.stringify(Se))],this.posX+this.margin[3],-bt+Ie+this.ctx.prevPageLastElemOffset)[0],xt=tt&&(qe>Ee||qe<ye)&&E.call(this);xt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],et,Lt,null).clip().discardPath()),this.pdf.text($e,Zt.x,Zt.y,{angle:w.angle,align:O,renderingMode:w.renderingMode}),xt&&this.pdf.restoreGraphicsState()}}else Te.y<Pe&&(this.ctx.prevPageLastElemOffset+=Pe-Te.y);w.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=K)}}else w.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*w.scale),K=this.lineWidth,this.lineWidth=K*w.scale),this.pdf.text(w.text,be.x+this.posX,be.y+this.posY,{angle:w.angle,align:O,renderingMode:w.renderingMode,maxWidth:w.maxWidth}),w.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=K)},W=function(w,O,D,z){D=D||0,z=z||0,this.pdf.internal.out(e(w+D)+" "+r(O+z)+" l")},V=function(w,O,D){return this.pdf.lines(w,O,D,null,null)},J=function(w,O,D,z,K,re,fe,de){this.pdf.internal.out([t(a(D+w)),t(o(z+O)),t(a(K+w)),t(o(re+O)),t(a(fe+w)),t(o(de+O)),"c"].join(" "))},Q=function(w,O,D,z){for(var K=2*Math.PI,re=Math.PI/2;O>D;)O-=K;var fe=Math.abs(D-O);fe<K&&z&&(fe=K-fe);for(var de=[],be=z?-1:1,Ne=O;fe>1e-5;){var Ce=Ne+be*Math.min(fe,re);de.push(ae.call(this,w,Ne,Ce)),fe-=Math.abs(Ce-Ne),Ne=Ce}return de},ae=function(w,O,D){var z=(D-O)/2,K=w*Math.cos(z),re=w*Math.sin(z),fe=K,de=-re,be=fe*fe+de*de,Ne=be+fe*K+de*re,Ce=4/3*(Math.sqrt(2*be*Ne)-Ne)/(fe*re-de*K),Se=fe-Ce*de,_e=de+Ce*fe,L=Se,Ae=-_e,Me=z+O,Ee=Math.cos(Me),ye=Math.sin(Me);return{x1:w*Math.cos(O),y1:w*Math.sin(O),x2:Se*Ee-_e*ye,y2:Se*ye+_e*Ee,x3:L*Ee-Ae*ye,y3:L*ye+Ae*Ee,x4:w*Math.cos(D),y4:w*Math.sin(D)}},U=function(w){return 180*w/Math.PI},Y=function(w,O,D,z,K,re){var fe=w+.5*(D-w),de=O+.5*(z-O),be=K+.5*(D-K),Ne=re+.5*(z-re),Ce=Math.min(w,K,fe,be),Se=Math.max(w,K,fe,be),_e=Math.min(O,re,de,Ne),L=Math.max(O,re,de,Ne);return new l(Ce,_e,Se-Ce,L-_e)},ue=function(w,O,D,z,K,re,fe,de){var be,Ne,Ce,Se,_e,L,Ae,Me,Ee,ye,qe,Ie,Oe,Pe,Lt=D-w,ht=z-O,et=K-D,bt=re-z,mt=fe-K,Te=de-re;
138for(Ne=0;Ne<41;Ne++)Ee=(Ae=(Ce=w+(be=Ne/40)*Lt)+be*((_e=D+be*et)-Ce))+be*(_e+be*(K+be*mt-_e)-Ae),ye=(Me=(Se=O+be*ht)+be*((L=z+be*bt)-Se))+be*(L+be*(re+be*Te-L)-Me),Ne==0?(qe=Ee,Ie=ye,Oe=Ee,Pe=ye):(qe=Math.min(qe,Ee),Ie=Math.min(Ie,ye),Oe=Math.max(Oe,Ee),Pe=Math.max(Pe,ye));return new l(Math.round(qe),Math.round(Ie),Math.round(Oe-qe),Math.round(Pe-Ie))},le=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var w,O,D=(w=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:w,lineDashOffset:O}));this.prevLineDash!==D&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=D)}}})(We.API),(function(n){var t=function(f){var l,c,h,m,v,x,p,I,E,k;for(c=[],h=0,m=(f+=l="\0\0\0\0".slice(f.length%4||4)).length;m>h;h+=4)(v=(f.charCodeAt(h)<<24)+(f.charCodeAt(h+1)<<16)+(f.charCodeAt(h+2)<<8)+f.charCodeAt(h+3))!==0?(x=(v=((v=((v=((v=(v-(k=v%85))/85)-(E=v%85))/85)-(I=v%85))/85)-(p=v%85))/85)%85,c.push(x+33,p+33,I+33,E+33,k+33)):c.push(122);return(function(N,H){for(var T=H;T>0;T--)N.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},e=function(f){var l,c,h,m,v,x=String,p="length",I=255,E="charCodeAt",k="slice",N="replace";for(f[k](-2),f=f[k](0,-2)[N](/\s/g,"")[N]("z","!!!!!"),h=[],m=0,v=(f+=l="uuuuu"[k](f[p]%5||5))[p];v>m;m+=5)c=52200625*(f[E](m)-33)+614125*(f[E](m+1)-33)+7225*(f[E](m+2)-33)+85*(f[E](m+3)-33)+(f[E](m+4)-33),h.push(I&c>>24,I&c>>16,I&c>>8,I&c);return(function(H,T){for(var R=T;R>0;R--)H.pop()})(h,l[p]),x.fromCharCode.apply(x,h)},r=function(f){return f.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(f){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),l.test(f)===!1)return"";for(var c="",h=0;h<f.length;h+=2)c+=String.fromCharCode("0x"+(f[h]+f[h+1]));return c},o=function(f){for(var l=new Uint8Array(f.length),c=f.length;c--;)l[c]=f.charCodeAt(c);return(l=Al(l)).reduce(function(h,m){return h+String.fromCharCode(m)},"")};n.processDataByFilters=function(f,l){var c=0,h=f||"",m=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":h=e(h),m.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":h=t(h),m.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":h=a(h),m.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":h=r(h),m.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":h=o(h),m.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:h,reverseChain:m.reverse().join(" ")}}})(We.API),(function(n){n.loadFile=function(t,e,r){return(function(a,o,f){o=o!==!1,f=typeof f=="function"?f:function(){};var l=void 0;try{l=(function(c,h,m){var v=new XMLHttpRequest,x=0,p=function(I){var E=I.length,k=[],N=String.fromCharCode;for(x=0;x<E;x+=1)k.push(N(255&I.charCodeAt(x)));return k.join("")};if(v.open("GET",c,!h),v.overrideMimeType("text/plain; charset=x-user-defined"),h===!1&&(v.onload=function(){v.status===200?m(p(this.responseText)):m(void 0)}),v.send(null),h&&v.status===200)return p(v.responseText)})(a,o,f)}catch{}return l})(t,e,r)},n.allowFsRead=void 0,n.loadImageFile=n.loadFile})(We.API),(function(n){function t(){return(Qe.html2canvas?Promise.resolve(Qe.html2canvas):Ks(()=>import("./html2canvas.esm-QH1iLAAe.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Qe.DOMPurify?Promise.resolve(Qe.DOMPurify):Ks(()=>import("./index-ZDNodjBE.js").then(l=>l.bx),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=It(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},a=function(l,c){var h=document.createElement(l);for(var m in c.className&&(h.className=c.className),c.innerHTML&&c.dompurify&&(h.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)h.style[m]=c.style[m];return h},o=function l(c,h){for(var m=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),v=c.firstChild;v;v=v.nextSibling)h!==!0&&v.nodeType===1&&v.nodeName==="SCRIPT"||m.appendChild(l(v,h));return c.nodeType===1&&(c.nodeName==="CANVAS"?(m.width=c.width,m.height=c.height,m.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(m.value=c.value),m.addEventListener("load",function(){m.scrollTop=c.scrollTop,m.scrollLeft=c.scrollLeft},!0)),m},f=function l(c){var h=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),m=l.convert(Promise.resolve(),h);return(m=m.setProgress(1,l,1,[l])).set(c)};(f.prototype=Object.create(Promise.prototype)).constructor=f,f.convert=function(l,c){return l.__proto__=c||f.prototype,l},f.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"}},f.prototype.from=function(l,c){return this.then(function(){switch(c=c||(function(h){switch(r(h)){case"string":return"string";case"element":return h.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),c){case"string":return this.then(e).then(function(h){return this.set({src:a("div",{innerHTML:l,dompurify:h})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},f.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();
138case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},f.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 l={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},c=o(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},f.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var h=Object.assign({},this.opt.html2canvas);return delete h.onrendered,c(this.prop.container,h)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},f.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var h=this.opt.jsPDF,m=this.opt.fontFaces,v=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,x=Object.assign({async:!0,allowTaint:!0,scale:v,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 x.onrendered,h.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,h.context2d.posX=this.opt.x,h.context2d.posY=this.opt.y,h.context2d.margin=this.opt.margin,h.context2d.fontFaces=m,m)for(var p=0;p<m.length;++p){var I=m[p],E=I.src.find(function(k){return k.format==="truetype"});E&&h.addFont(E.url,I.ref.name,I.ref.style)}return x.windowHeight=x.windowHeight||0,x.windowHeight=x.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):x.windowHeight,h.context2d.save(!0),c(this.prop.container,x)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},f.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},f.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},f.prototype.output=function(l,c,h){return(h=h||"pdf").toLowerCase()==="img"||h.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},f.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf(
138)}]).then(function(){return this.prop.pdf.output(l,c)})},f.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},f.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},f.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},f.prototype.set=function(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(h){if(h in f.template.prop)return function(){this.prop[h]=l[h]};switch(h){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[h]=l[h]}}},this);return this.then(function(){return this.thenList(c)})},f.prototype.get=function(l,c){return this.then(function(){var h=l in f.template.prop?this.prop[l]:this.opt[l];return c?c(h):h})},f.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},f.prototype.setPageSize=function(l){function c(h,m){return Math.floor(h*m/72*96)}return this.then(function(){(l=l||We.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},f.prototype.setProgress=function(l,c,h,m){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),h!=null&&(this.progress.n=h),m!=null&&(this.progress.stack=m),this.progress.ratio=this.progress.val/this.progress.state,this},f.prototype.updateProgress=function(l,c,h,m){return this.setProgress(l?this.progress.val+l:null,c||null,h?this.progress.n+h:null,m?this.progress.stack.concat(m):null)},f.prototype.then=function(l,c){var h=this;return this.thenCore(l,c,function(m,v){return h.updateProgress(null,null,1,[m]),Promise.prototype.then.call(this,function(x){return h.updateProgress(null,m),x}).then(m,v).then(function(x){return h.updateProgress(1),x})})},f.prototype.thenCore=function(l,c,h){h=h||Promise.prototype.then;var m=this;l&&(l=l.bind(m)),c&&(c=c.bind(m));var v=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?m:f.convert(Object.assign({},m),Promise.prototype),x=h.call(v,l,c);return f.convert(x,m.__proto__)},f.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},f.prototype.thenList=function(l){var c=this;return l.forEach(function(h){c=c.thenCore(h)}),c},f.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return f.convert(c,this)},f.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},f.prototype.error=function(l){return this.then(function(){throw new Error(l)})},f.prototype.using=f.prototype.set,f.prototype.saveAs=f.prototype.save,f.prototype.export=f.prototype.output,f.prototype.run=f.prototype.then,We.getPageSize=function(l,c,h){if(It(l)==="object"){var m=l;l=m.orientation,c=m.unit||c,h=m.format||h}c=c||"mm",h=h||"a4",l=(""+(l||"P")).toLowerCase();var v,x=(""+h).toLowerCase(),p={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(c){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+c}var I,E=0,k=0;if(p.hasOwnProperty(x))E=p[x][1]/v,k=p[x][0]/v;else try{E=h[1],k=h[0]}catch{throw new Error("Invalid format: "+h)}if(l==="p"||l==="portrait")l="p",k>E&&(I=k,k=E,E=I);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",E>k&&(I=k,k=E,E=I)}return{width:k,height:E,unit:c,k:v,orientation:l}},n.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(gl):null;var h=new f(c);return c.worker?h:h.from(l).doCallback()}})(We.API),We.API.addJS=function(n){var t,e,r=(function(a){for(var o="",f=0;f<a.length;f++){var l=a[f];if(l==="("||l===")"){for(var c=0,h=f-1;h>=0&&a[h]==="\\";h--)c++;o+=c%2==0?"\\"+l:l}else o+=l}return o}
138)(n);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(n){var t;n.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),o=0;o<a.length;o++){var f=a[o],l=r.exec(f);if(l!=null){var c=l[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(f)}if(this.outline.createNamedDestinations){var h=this.internal.pages.length,m=[];for(o=0;o<h;o++){var v=e.internal.newObject();m.push(v);var x=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+x.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<m.length;o++)e.internal.write("(page_"+(o+1)+")"+m[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),n.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,a,o){var f={title:a,options:o,children:[]};return r==null&&(r=this.root),r.children.push(f),f},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},e.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()},e.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o<r.children.length;o++){var f=r.children[o];this.objStart(f),this.line("/Title "+this.makeString(f.title)),this.line("/Parent "+this.makeRef(r)),o>0&&this.line("/Prev "+this.makeRef(r.children[o-1])),o<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[o+1])),f.children.length>0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var l=this.count=this.count_r({count:0},f);if(l>0&&this.line("/Count "+l),f.options&&f.options.pageNumber){var c=e.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var h=0;h<r.children.length;h++)this.renderItems(r.children[h])},e.outline.line=function(r){this.ctx.val+=r+`\r 139`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r 140`+r.id+` 0 obj\r 141<<\r 142`},e.outline.objEnd=function(){this.ctx.val+=`>> \r 143endobj\r 144`},e.outline.count_r=function(r,a){for(var o=0;o<a.children.length;o++)r.count++,this.count_r(r,a.children[o]);return r.count}}])})(We.API),(function(n){var t=[192,193,194,195,196,197,198,199];n.processJPEG=function(e,r,a,o,f,l){var c,h=this.decode.DCT_DECODE,m=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=f||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,c=(function(v){for(var x,p=256*v.charCodeAt(4)+v.charCodeAt(5),I=v.length,E={width:0,height:0,numcomponents:1},k=4;k<I;k+=2){if(k+=p,t.indexOf(v.charCodeAt(k+1))!==-1){x=256*v.charCodeAt(k+5)+v.charCodeAt(k+6),E={width:256*v.charCodeAt(k+7)+v.charCodeAt(k+8),height:x,numcomponents:v.charCodeAt(k+9)};break}p=256*v.charCodeAt(k+2)+v.charCodeAt(k+3)}return E})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),c.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}m={data:e,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:h,index:r,alias:a}}return m}})(We.API),We.API.processPNG=function(n,t,e,r){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var a,o=i0(n,{checkCrc:!0}),f=o.width,l=o.height,c=o.channels,h=o.palette,m=o.depth;a=h&&c===1?(function(G){for(var q=G.width,ne=G.height,S=G.data,F=G.palette,W=G.depth,V=!1,J=[],Q=[],ae=void 0,U=!1,Y=0,ue=0;ue<F.length;ue++){var le=Cc(F[ue],4),w=le[0],O=le[1],D=le[2],z=le[3];J.push(w,O,D),z!=null&&(z===0?(Y++,Q.length<1&&Q.push(ue)):z<255&&(U=!0))}if(U||Y>1){V=!0,Q=void 0;var K=q*ne;ae=new Uint8Array(K);for(var re=new DataView(S.buffer),fe=0;fe<K;fe++){var de=bl(re,fe,W),be=Cc(F[de],4)[3];ae[fe]=be}}else Y===0&&(Q=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:V?8:void 0,colorBytes:S,alphaBytes:ae,needSMask:V,palette:J,mask:Q}})(o):c===2||c===4?(function(G){for(var q=G.data,ne=G.width,S=G.height,F=G.channels,W=G.depth,V=F===2?"DeviceGray":"DeviceRGB",J=F-1,Q=ne*S,ae=J,U=Q*ae,Y=1*Q,ue=Math.ceil(U*W/8),le=Math.ceil(Y*W/8),w=new Uint8Array(ue),O=new Uint8Array(le),D=new DataView(q.buffer),z=new DataView(w.buffer),K=new DataView(O.buffer),re=!1,fe=0;fe<Q;fe++){for(var de=fe*F,be=0;be<ae;be++)Mu(z,bl(D,de+be,W),fe*ae+be,W);var Ne=bl(D,de+ae,W);Ne<(1<<W)-1&&(re=!0),Mu(K,Ne,1*fe,W)}return{colorSpace:V,colorsPerPixel:J,sMaskBitsPerComponent:re?W:void 0,colorBytes:w,alphaBytes:O,needSMask:re}})(o):(function(G){var q=G.data,ne=G.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:ne,colorsPerPixel:ne==="DeviceGray"?1:3,colorBytes:q instanceof Uint16Array?(function(S){for(var F=S.length,W=new Uint8Array(2*F),V=new DataView(W.buffer,W.byteOffset,W.byteLength),J=0;J<F;J++)V.setUint16(2*J,S[J],!1);return W})(q):q,needSMask:!1}})(o);var v,x,p,I=a,E=I.colorSpace,k=I.colorsPerPixel,N=I.sMaskBitsPerComponent,H=I.colorBytes,T=I.alphaBytes,R=I.needSMask,te=I.palette,he=I.mask,ce=null;return r!==We.API.image_compression.NONE&&typeof Al=="function"?(ce=(function(G){var q;switch(G){case We.API.image_compression.FAST:q=11;break;case We.API.image_compression.MEDIUM:q=13;break;case We.API.image_compression.SLOW:q=14;break;default:q=12}return q})(r),v=this.decode.FLATE_DECODE,x="/Predictor ".concat(ce," /Colors ").concat(k," /BitsPerComponent ").
vendor: 5,168 bytes, line 144
144concat(m," /Columns ").concat(f),n=Cu(H,Math.ceil(f*k*m/8),k,m,r),R&&(p=Cu(T,Math.ceil(f*N/8),1,N,r))):(v=void 0,x=void 0,n=H,R&&(p=T)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(p&&this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),{alias:e,data:n,index:t,filter:v,decodeParameters:x,transparency:he,palette:te,sMask:p,predictor:ce,width:f,height:l,bitsPerComponent:m,sMaskBitsPerComponent:N,colorSpace:E}}},(function(n){n.processGIF89A=function(t,e,r,a){var o=new N0(t),f=o.width,l=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var h={data:c,width:f,height:l},m=new yl(100).encode(h,100);return n.processJPEG.call(this,m,e,r,a)},n.processGIF87A=n.processGIF89A})(We.API),pr.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var t=0;t<n;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:r,blue:e,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},pr.prototype.parseBGR=function(){this.pos=this.offset;var n="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[n]()}catch(e){Mt.log("bit decode error:"+e)}},pr.prototype.bit1=function(){var n,t=Math.ceil(this.width/8),e=t%4;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<t;a++)for(var o=this.datav.getUint8(this.pos++,!0),f=r*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var c=this.palette[o>>7-l&1];this.data[f+4*l]=c.blue,this.data[f+4*l+1]=c.green,this.data[f+4*l+2]=c.red,this.data[f+4*l+3]=255}e!==0&&(this.pos+=4-e)}},pr.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),t=n%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<n;a++){var o=this.datav.getUint8(this.pos++,!0),f=r*this.width*4+2*a*4,l=o>>4,c=15&o,h=this.palette[l];if(this.data[f]=h.blue,this.data[f+1]=h.green,this.data[f+2]=h.red,this.data[f+3]=255,2*a+1>=this.width)break;h=this.palette[c],this.data[f+4]=h.blue,this.data[f+4+1]=h.green,this.data[f+4+2]=h.red,this.data[f+4+3]=255}t!==0&&(this.pos+=4-t)}},pr.prototype.bit8=function(){for(var n=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*r;if(a<this.palette.length){var f=this.palette[a];this.data[o]=f.red,this.data[o+1]=f.green,this.data[o+2]=f.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}n!==0&&(this.pos+=4-n)}},pr.prototype.bit15=function(){for(var n=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var f=(o&t)/t*255|0,l=(o>>5&t)/t*255|0,c=(o>>10&t)/t*255|0,h=o>>15?255:0,m=r*this.width*4+4*a;this.data[m]=c,this.data[m+1]=l,this.data[m+2]=f,this.data[m+3]=h}this.pos+=n}},pr.prototype.bit16=function(){for(var n=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var f=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(f&t)/t*255|0,c=(f>>5&e)/e*255|0,h=(f>>11)/t*255|0,m=a*this.width*4+4*o;this.data[m]=h,this.data[m+1]=c,this.data[m+2]=l,this.data[m+3]=255}this.pos+=n}},pr.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var t=this.bottom_up?n:this.height-1-n,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),f=t*this.width*4+4*e;this.data[f]=o,this.data[f+1]=a,this.data[f+2]=r,this.data[f+3]=255}this.pos+=this.width%4}},pr.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var t=this.bottom_up?n:this.height-1-n,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),f=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*e;
144this.data[l]=o,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=f}},pr.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(t,e,r,a){var o=new pr(t,!1),f=o.width,l=o.height,c={data:o.getData(),width:f,height:l},h=new yl(100).encode(c,100);return n.processJPEG.call(this,h,e,r,a)}})(We.API),ju.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(t,e,r,a){var o=new ju(t),f=o.width,l=o.height,c={data:o.getData(),width:f,height:l},h=new yl(100).encode(c,100);return n.processJPEG.call(this,h,e,r,a)}})(We.API),We.API.processRGBA=function(n,t,e){for(var r=n.data,a=r.length,o=new Uint8Array(a/4*3),f=new Uint8Array(a/4),l=0,c=0,h=0;h<a;h+=4){var m=r[h],v=r[h+1],x=r[h+2],p=r[h+3];o[l++]=m,o[l++]=v,o[l++]=x,f[c++]=p}var I=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(f),data:I,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},We.API.setLanguage=function(n){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 (Sp
144ain)","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"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},wa=We.API,Ko=wa.getCharWidthsArray=function(n,t){var e,r,a=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),f=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,c=l.fof?l.fof:1,h=t.kerning?t.kerning:a.metadata.Unicode.kerning,m=h.fof?h.fof:1,v=t.doKerning!==!1,x=0,p=n.length,I=0,E=l[0]||c,k=[];for(e=0;e<p;e++)r=n.charCodeAt(e),typeof a.metadata.widthOfString=="function"?k.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+f*(1e3/o)||0)/1e3):(x=v&&It(h[r])==="object"&&!isNaN(parseInt(h[r][I],10))?h[r][I]/m:0,k.push((l[r]||E)/c+x)),I=r;return k},ku=wa.getStringUnitWidth=function(n,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return wa.processArabic&&(n=wa.processArabic(n)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(n,e,a)/e:Ko.apply(this,arguments).reduce(function(o,f){return o+f},0)},Su=function(n,t,e,r){for(var a=[],o=0,f=n.length,l=0;o!==f&&l+t[o]<e;)l+=t[o],o++;a.push(n.slice(0,o));var c=o;for(l=0;o!==f;)l+t[o]>r&&(a.push(n.slice(c,o)),l=0,c=o),l+=t[o],o++;return c!==o&&a.push(n.slice(c,o)),a},Pu=function(n,t,e){e||(e={});var r,a,o,f,l,c,h,m=[],v=[m],x=e.textIndent||0,p=0,I=0,E=n.split(" "),k=Ko.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?E[0].length+2:e.lineIndent||0){var N=Array(c).join(" "),H=[];E.map(function(R){(R=R.split(/\s*\n/)).length>1?H=H.concat(R.map(function(te,he){return(he&&te.length?` 145`:"")+te})):H.push(R[0])}),E=H,c=ku.apply(this,[N,e])}for(o=0,f=E.length;o<f;o++){var T=0;if(r=E[o],c&&r[0]==` 146`&&(r=r.substr(1),T=1),x+p+(I=(a=Ko.apply(this,[r,e])).reduce(function(R,te){return R+te},0))>t||T){if(I>t){for(l=Su.apply(this,[r,a,t-(x+p),t]),m.push(l.shift()),m=[l.pop()];l.length;)v.push([l.shift()]);I=a.slice(r.length-(m[0]?m[0].length:0)).reduce(function(R,te){return R+te},0)}else m=[r];v.push(m),x=I+c,p=k}else m.push(r),x+=p+I,p=k}return h=c?function(R,te){return(te?N:"")+R.join(" ")}:function(R){return R.join(" ")},v.map(h)},wa.splitTextToSize=function(n,t,e){var r,a=(e=e||{}).fontSize||this.internal.getFontSize(),o=(function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var v=this.internal.getFont(m.fontName,m.fontStyle),x="Unicode";return v.metadata[x]?{widths:v.metadata[x].widths||{0:1},kerning:v.metadata[x].kerning||{}}:{font:v.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var f=1*this.internal.scaleFactor*t/a;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=e.lineIndent;var l,c,h=[];for(l=0,c=r.length;l<c;l++)h=h.concat(Pu.apply(this,[r[l],f,o]));return h},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",r={},a={},o=0;o<16;o++)r[e[o]]=t[o],a[t[o]]=e[o];var f=function(x){return"0x"+parseInt(x,10).toString(16)},l=n.__fontmetrics__.compress=function(x){var p,I,E,k,N=["{"];for(var H in x){if(p=x[H],isNaN(parseInt(H,10))?I="'"+H+"'":(H=parseInt(H,10),I=(I=f(H).slice(2)).slice(0,-1)+a[I.slice(-1)]),typeof p=="number")p<0?(E=f(p).slice(3),k="-"):(E=f(p).slice(2),k=""),E=k+E.slice(0,-1)+a[E.slice(-1)];else{if(It(p)!=="object")throw new Error("Don't know what to do with value type "+It(p)+".");E=l(p)}N.push(I+E)}return N.push("}"),N.join("")},c=n.__fontmetrics__.uncompress=function(x){if(typeof x!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,I,E,k,N={},H=1,T=N,R=[],te="",he="",ce=x.length-1,G=1;G<ce;G+=1)(k=x[G])=="'"?p?(E=p.join(""),p=void 0):p=[]:p?p.push(k):k=="{"?(R.push([T,E]),T={},E=void 0):k=="}"?((I=R.pop())[0][I[1]]=T,E=void 0,T=I[0]):k=="-"?H=-1:E===void 0?r.hasOwnProperty(k)?(te+=r[k],E=parseInt(te,16)*H,H=1,te=""):te+=k:r.hasOwnProperty(k)?(he+=r[k],T[E]=parseInt(he,16)*H,H=1,E=void 0,he=""):he+=k;return N},h={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},m={Unicode:{Courier:h,"Courier-Bold":h,"Courier-BoldOblique":h,"Courier-Oblique":h,Helvetica:h,"Helvetica-Bold":h,"Helvetica-BoldOblique":h,"Helvetica-Oblique":h,"Times-Roman":h,"Times-Bold":h,"Times-BoldItalic":h,"Times-Italic":h}},v
vendor: 14,693 bytes, line 146
146={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'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":c("{'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:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'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:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'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":c("{'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:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'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":c("{'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":c("{'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}}}")}};
146n.events.push(["addFont",function(x){var p=x.font,I=v.Unicode[p.postScriptName];I&&(p.metadata.Unicode={},p.metadata.Unicode.widths=I.widths,p.metadata.Unicode.kerning=I.kerning);var E=m.Unicode[p.postScriptName];E&&(p.metadata.Unicode.encoding=E,p.encoding=E.codePages[0])}])})(We.API),(function(n){var t=function(e){for(var r=e.length,a=new Uint8Array(r),o=0;o<r;o++)a[o]=e.charCodeAt(o);return a};n.API.events.push(["addFont",function(e){var r=void 0,a=e.font,o=e.instance;if(!a.isStandardFont){if(o===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=o.existsFileInVFS(a.postScriptName)===!1?o.loadFile(a.postScriptName):o.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(f,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(es(l)),f.metadata=n.API.TTFFont.open(l),f.metadata.Unicode=f.metadata.Unicode||{encoding:{},kerning:{},widths:[]},f.metadata.glyIdsUsed=[0]})(a,r)}}])})(We),We.API.addSvgAsImage=function(n,t,e,r,a,o,f,l){if(isNaN(t)||isNaN(e))throw Mt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Mt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=a;var h=c.getContext("2d");h.fillStyle="#fff",h.fillRect(0,0,c.width,c.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},v=this;return(Qe.canvg?Promise.resolve(Qe.canvg):Ks(()=>import("./index.es-CajyRqpK.js"),__vite__mapDeps([0,1,2,3]))).catch(function(x){return Promise.reject(new Error("Could not load canvg: "+x))}).then(function(x){return x.default?x.default:x}).then(function(x){return x.fromString(h,n,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(x){return x.render(m)}).then(function(){v.addImage(c.toDataURL("image/jpeg",1),t,e,r,a,f,l)})},We.API.putTotalPages=function(n){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(n,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(t,e);return this},We.API.viewerPreferences=function(n,t){var e;n=n||{},t=t||!1;var r,a,o,f={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}},l=Object.keys(f),c=[],h=0,m=0,v=0;function x(I,E){var k,N=!1;for(k=0;k<I.length;k+=1)I[k]===E&&(N=!0);return N}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(f)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,n==="reset"||t===!0){var p=l.length;for(v=0;v<p;v+=1)e[l[v]].value=e[l[v]].defaultValue,e[l[v]].explicitSet=!1}if(It(n)==="object"){for(a in n)if(o=n[a],x(l,a)&&o!==void 0){if(e[a].type==="boolean"&&typeof o=="boolean")e[a].value=o;else if(e[a].type==="name"&&x(e[a].valueSet,o))e[a].value=o;else if(e[a].type==="integer"&&Number.isInteger(o))e[a].value=o;else if(e[a].type==="array"){for(h=0;h<o.length;h+=1)if(r=!0,o[h].length===1&&typeof o[h][0]=="number")c.push(String(o[h]-1));else if(o[h].length>1){for(m=0;m<o[h].length;m+=1)typeof o[h][m]!="number"&&(r=!1);r===!0&&c.push([o[h][0]-1,o[h][1]-1].join(" "))}e[a].value="["+c.join(" ")+"]"}else e[a].value=e[a].defaultValue;e[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var I,E=[];for(I in e)e[I].explicitSet===!0&&(e[I].type==="name"?E.push("/"+I+" /"+e[I].value):E.push("/"+I+" "+e[I].value));E.length!==0&&this.internal.write(`/ViewerPreferences 147<< 148`+E.join(` 149`)+` 150>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},We.API.addMetadata=function(n,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",S0),this.internal.events.subscribe("postPutResources",k0)),this},(function(n){var t=n.API,e=t.pdfEscape16=function(o,f){for(var l,c=f.metadata.Unicode.widths,h=["","0","00","000","0000"],m=[""],v=0,x=o.length;v<x;
150++v){if(l=f.metadata.characterToGlyph(o.charCodeAt(v)),f.metadata.glyIdsUsed.push(l),f.metadata.toUnicode[l]=o.charCodeAt(v),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(f.metadata.widthOfGlyph(l),10)])),l=="0")return m.join("");l=l.toString(16),m.push(h[4-l.length],l)}return m.join("")},r=function(o){var f,l,c,h,m,v,x;for(m=`/CIDInit /ProcSet findresource begin 15112 dict begin 152begincmap 153/CIDSystemInfo << 154 /Registry (Adobe) 155 /Ordering (UCS) 156 /Supplement 0 157>> def 158/CMapName /Adobe-Identity-UCS def 159/CMapType 2 def 1601 begincodespacerange 161<0000><ffff> 162endcodespacerange`,c=[],v=0,x=(l=Object.keys(o).sort(function(p,I){return p-I})).length;v<x;v++)f=l[v],c.length>=100&&(m+=` 163`+c.length+` beginbfchar 164`+c.join(` 165`)+` 166endbfchar`,c=[]),o[f]!==void 0&&o[f]!==null&&typeof o[f].toString=="function"&&(h=("0000"+o[f].toString(16)).slice(-4),f=("0000"+(+f).toString(16)).slice(-4),c.push("<"+f+"><"+h+">"));return c.length&&(m+=` 167`+c.length+` beginbfchar 168`+c.join(` 169`)+` 170endbfchar 171`),m+`endcmap 172CMapName currentdict /CMap defineresource pop 173end 174end`};t.events.push(["putFont",function(o){(function(f){var l=f.font,c=f.out,h=f.newObject,m=f.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var v=l.metadata.Unicode.widths,x=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",I=0;I<x.length;I++)p+=String.fromCharCode(x[I]);var E=h();m({data:p,addLength1:!0,objectId:E}),c("endobj");var k=h();m({data:r(l.metadata.toUnicode),addLength1:!0,objectId:k}),c("endobj");var N=h();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+xa(l.fontName)),c("/FontFile2 "+E+" 0 R"),c("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var H=h();c("<<"),c("/Type /Font"),c("/BaseFont /"+xa(l.fontName)),c("/FontDescriptor "+N+" 0 R"),c("/W "+n.API.PDFObject.convert(v)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=h(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+k+" 0 R"),c("/BaseFont /"+xa(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+H+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(o)}]),t.events.push(["putFont",function(o){(function(f){var l=f.font,c=f.out,h=f.newObject,m=f.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var v=l.metadata.rawData,x="",p=0;p<v.length;p++)x+=String.fromCharCode(v[p]);var I=h();m({data:x,addLength1:!0,objectId:I}),c("endobj");var E=h();m({data:r(l.metadata.toUnicode),addLength1:!0,objectId:E}),c("endobj");var k=h();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+I+" 0 R"),c("/Flags 96"),c("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+xa(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=h();for(var N=0;N<l.metadata.hmtx.widths.length;N++)l.metadata.hmtx.widths[N]=parseInt(l.metadata.hmtx.widths[N]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+E+" 0 R/BaseFont/"+xa(l.fontName)+"/FontDescriptor "+k+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(o)}]);var a=function(o){var f,l=o.text||"",c=o.x,h=o.y,m=o.options||{},v=o.mutex||{},x=v.pdfEscape,p=v.activeFontKey,I=v.fonts,E=p,k="",N=0,H="",T=I[E].encoding;if(I[E].encoding!=="Identity-H")return{text:l,x:c,y:h,options:m,mutex:v};for(H=l,E=p,Array.isArray(l)&&(H=l[0]),N=0;N<H.length;N+=1)I[E].metadata.hasOwnProperty("cmap")&&(f=I[E].metadata.cmap.unicode.codeMap[H[N].charCodeAt(0)]),f||H[N].charCodeAt(0)<256&&I[E].metadata.hasOwnProperty("Unicode")?k+=H[N]:k+="";var R="";return parseInt(E.slice(1))<14||T==="WinAnsiEncoding"?R=x(k,E).split("").map(function(te){return te.charCodeAt(0).toString(16)}
174).join(""):T==="Identity-H"&&(R=e(k,I[E])),v.isHex=!0,{text:R,x:c,y:h,options:m,mutex:v}};t.events.push(["postProcessText",function(o){var f=o.text||"",l=[],c={text:f,x:o.x,y:o.y,options:o.options,mutex:o.mutex};if(Array.isArray(f)){var h=0;for(h=0;h<f.length;h+=1)Array.isArray(f[h])&&f[h].length===3?l.push([a(Object.assign({},c,{text:f[h][0]})).text,f[h][1],f[h][2]]):l.push(a(Object.assign({},c,{text:f[h]})).text);o.text=l}else o.text=a(Object.assign({},c,{text:f})).text}])})(We),(function(n){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},n.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},n.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(We.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(r){var a,o,f,l,c,h,m,v=t,x=[[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]],p=[[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]],I={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},E={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},k=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â
","â","â
","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],N=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)$/),H=!1,T=0;this.__bidiEngine__={};var R=function(S){var F=S.charCodeAt(),W=F>>8,V=E[W];return V!==void 0?v[256*V+(255&F)]:W===252||W===253?"AL":N.test(W)?"L":W===8?"R":"N"},te=function(S){for(var F,W=0;W<S.length;W++){if((F=R(S.charAt(W)))==="L")return!1;if(F==="R")return!0}return!1},he=function(S,F,W,V){var J,Q,ae,U,Y=F[V];switch(Y){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":H=!1;break;case"N":case"AN":break;case"EN":H&&(Y="AN");break;case"AL":H=!0,Y="R";break;case"WS":case"BN":Y="N";break;case"CS":V<1||V+1>=F.length||(J=W[V-1])!=="EN"&&J!=="AN"||(Q=F[V+1])!=="EN"&&Q!=="AN"?Y="N":H&&(Q="AN"),Y=Q===J?Q:"N";break;case"ES":Y=(J=V>0?W[V-1]:"B")==="EN"&&V+1<F.length&&F[V+1]==="EN"?"EN":"N";break;case"ET":if(V>0&&W[V-1]==="EN"){Y="EN";break}if(H){Y="N";break}for(ae=V+1,U=F.length;ae<U&&F[ae]==="ET";)ae++;Y=ae<U&&F[ae]==="EN"?"EN":"N";break;case"NSM":if(f&&!l){for(U=F.length,ae=V+1;ae<U&&F[ae]==="NSM";)ae++;if(ae<U){var ue=S[V],le=ue>=1425&&ue<=2303||ue===64286;if(J=F[ae],le&&(J==="R"||J==="AL")){Y="R";break}}}Y=V<1||(J=F[V-1])==="B"?"N":W[V-1];break;case"B":H=!1,a=!0,Y=T;break;case"S":o=!0,Y="N"}return Y},ce=function(S,F,W){var V=S.split("");return W&&G(V,W,{hiLevel:T}),V.reverse(),F&&F.reverse(),V.join("")},G=function(S,F,W){var V,J,Q,ae,U,Y=-1,ue=S.length,le=0,w=[],O=T?p:x,D=[];for(H=!1,a=!1,o=!1,J=0;J<ue;J++)D[J]=R(S[J]);for(Q=0;Q<ue;Q++){if(U=le,w[Q]=he(S,D,w,Q),V=240&(le=O[U][I[w[Q]]]),le&=15,F[Q]=ae=O[le][5],V>0)if(V===16){for(J=Y;J<Q;J++)F[J]=1;Y=-1}else Y=-1;if(O[le][6])Y===-1&&(Y=Q);else if(Y>-1){for(J=Y;J<Q;J++)F[J]=ae;Y=-1}D[Q]==="B"&&(F[Q]=0),W.hiLevel|=ae}o&&(function(z,K,re){for(var fe=0;fe<re;fe++)if(z[fe]==="S"){K[fe]=T;for(var de=fe-1;de>=0&&z[de]==="WS";de--)K[de]=T}})(D,F,ue)},q=function(S,F,W,V,J){if(!(J.hiLevel<S)){if(S===1&&T===1&&!a)return F.reverse(),void(W&&W.reverse());for(var Q,ae,U,Y,ue=F.length,le=0;le<ue;){if(V[le]>=S){for(U=le+1;U<ue&&V[U]>=S;)U++;for(Y=le,ae=U-1;Y<ae;Y++,ae--)Q=F[Y],F[Y]=F[ae],F[ae]=Q,W&&(Q=W[Y],W[Y]=W[ae],W[ae]=Q);le=U}le++}}},ne=function(S,F,W){var V=S.split(""),J={hiLevel:T};return W||(W=[]),G(V,W,J),(function(Q,ae,U){if(U.hiLevel!==0&&m)for(var Y,ue=0;ue<Q.length;ue++)ae[ue]===1&&(Y=k.indexOf(Q[ue]))>=0&&(Q[ue]=k[Y+1])})(V,W,J),q(2,V,F,W,J),q(1,V,F,W,J),V.join("")};return this.__bidiEngine__.doBidiReorder=function(S,F,W){if((function(J,Q){if(Q)for(var ae=0;ae<J.length;ae++)Q[ae]=ae;l===void 0&&(l=te(J)),h===void 0&&(h=te(J))})(S,F),f||!c||h)if(f&&c&&l^h)T=l?1:0,S=ce(S,F,W);else if(!f&&c&&h)T=l?1:0,S=ne(S,F,W),S=ce(S,F);else if(!f||l||c||h){if(f&&!c&&l^h)S=ce(S,F),l?(T=0,S=ne(S,F,W)):(T=1,S=ne(S,F,W),S=ce(S,F));else if(f&&l&&!c&&h)T=1,S=ne(S,F,W),S=ce(S,F);else if(!f&&!c&&l^h){var V=m;l?(T=1,S=ne(S,F,W),T=0,m=!1,S=ne(S,F,W),m=V):(T=0,S=ne(S,F,W),S=ce(S,F),T=1,m=!1,S=ne(S,F,W),m=V,S=ce(S,F))}}else T=0,S=ne(S,F,W);else T=l?1:0,S=ne(S,F,W);return S},this.__bidiEngine__.setOptions=function(S){S&&(f=S.isInputVisual,c=S.isOutputVisual,l=S.isInputRtl,h=S.isOutputRtl,m=S.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"],e=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var o=r.options||{};r.mutex,o.lang;var f=[];if(o.isInputVisual=typeof o.isInputVisual!="boolean"||o.isInputVisual,e.setOptions(o),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(f=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?f.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):f.push([e.doBidiReorder(a[l])]);r.text=f}else r.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])})(We),We.API.TTFFont=(function(){function n(t){var e;if(this.rawData=t,e=this.contents=new yi(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new z0(this),this.registerTTF()}return n.open=function(t){return new n(t)},n.prototype.parse=function(){return this.directory=new P0(this.contents),this.head=new I0(this),this.name=new B0(this),this.cmap=new Tf(this),this.toUnicode={},this.hhea=new E0(this),this.maxp=new j0(this),this.hmtx=new R0(this),this.post=new F0(this),this.os2=new O0(this),this.loca=new U0(this),this.glyf=new T0(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]},n.prototype.registerTTF=function(){var t,e,r,a,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var f,l,c,h;for(h=[],f=0,l=(c=this.bbox).length;f<l;f++)t=c[f],h.push(Math.round(t*this.scaleFactor));return h}).call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+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=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===1
vendor: 5,986 bytes, line 174
1740,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")},n.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},n.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},n.prototype.widthOfString=function(t,e,r){var a,o,f,l;for(f=0,o=0,l=(t=""+t).length;0<=l?o<l:o>l;o=0<=l?++o:--o)a=t.charCodeAt(o),f+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/e)||0;return f*(e/1e3)},n.prototype.lineHeight=function(t,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},n})();var yr,yi=(function(){function n(t){this.data=t??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(t){return this.data[this.pos++]=t},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},n.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},n.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},n.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},n.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},n.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},n.prototype.writeString=function(t){var e,r,a;for(a=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)a.push(this.writeByte(t.charCodeAt(e)));return a},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(t){return this.writeInt16(t)},n.prototype.readLongLong=function(){var t,e,r,a,o,f,l,c;return t=this.readByte(),e=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),f=this.readByte(),l=this.readByte(),c=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^o)+65536*(255^f)+256*(255^l)+(255^c)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*a+16777216*o+65536*f+256*l+c},n.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(t){return this.writeInt32(t)},n.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},n.prototype.write=function(t){var e,r,a,o;for(o=[],r=0,a=t.length;r<a;r++)e=t[r],o.push(this.writeByte(e));return o},n})(),P0=(function(){var n;function t(e){var r,a,o;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},a=0,o=this.tableCount;0<=o?a<o:a>o;a=0<=o?++a:--a)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(e){var r,a,o,f,l,c,h,m,v,x,p,I,E;for(E in p=Object.keys(e).length,c=Math.log(2),v=16*Math.floor(Math.log(p)/c),f=Math.floor(v/c),m=16*p-v,(a=new yi).writeInt(this.scalarType),a.writeShort(p),a.writeShort(v),a.writeShort(f),a.writeShort(m),o=16*p,h=a.pos+o,l=null,I=[],e)for(x=e[E],a.writeString(E),a.writeInt(n(x)),a.writeInt(h),a.writeInt(x.length),I=I.concat(x),E==="head"&&(l=h),h+=x.length;h%4;)I.push(0),h++;return a.write(I),r=2981146554-n(a.data),a.pos=l+8,a.writeUInt32(r),a.data},n=function(e){var r,a,o,f;for(e=Df.call(e);e.length%4;)e.push(0);for(o=new yi(e),a=0,r=0,f=e.length;r<f;r=r+=4)a+=o.readUInt32();return 4294967295&a},t})(),C0={}.hasOwnProperty,jr=function(n,t){for(var e in t)C0.call(t,e)&&(n[e]=t[e]);function r(){this.constructor=n}return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};yr=(function(){function n(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n})();var I0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="head",n.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()},n.prototype.encode=function(t){var e;return(e=new yi).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax
174),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},n})(),Ru=(function(){function n(t,e){var r,a,o,f,l,c,h,m,v,x,p,I,E,k,N,H,T;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),v=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(c=0;c<256;++c)this.codeMap[c]=t.readByte();break;case 4:for(p=t.readUInt16(),x=p/2,t.pos+=6,o=(function(){var R,te;for(te=[],c=R=0;0<=x?R<x:R>x;c=0<=x?++R:--R)te.push(t.readUInt16());return te})(),t.pos+=2,E=(function(){var R,te;for(te=[],c=R=0;0<=x?R<x:R>x;c=0<=x?++R:--R)te.push(t.readUInt16());return te})(),h=(function(){var R,te;for(te=[],c=R=0;0<=x?R<x:R>x;c=0<=x?++R:--R)te.push(t.readUInt16());return te})(),m=(function(){var R,te;for(te=[],c=R=0;0<=x?R<x:R>x;c=0<=x?++R:--R)te.push(t.readUInt16());return te})(),a=(this.length-t.pos+this.offset)/2,l=(function(){var R,te;for(te=[],c=R=0;0<=a?R<a:R>a;c=0<=a?++R:--R)te.push(t.readUInt16());return te})(),c=N=0,T=o.length;N<T;c=++N)for(k=o[c],r=H=I=E[c];I<=k?H<=k:H>=k;r=I<=k?++H:--H)m[c]===0?f=r+h[c]:(f=l[m[c]/2+(r-I)-(x-c)]||0)!==0&&(f+=h[c]),this.codeMap[r]=65535&f}t.pos=v}return n.encode=function(t,e){var r,a,o,f,l,c,h,m,v,x,p,I,E,k,N,H,T,R,te,he,ce,G,q,ne,S,F,W,V,J,Q,ae,U,Y,ue,le,w,O,D,z,K,re,fe,de,be,Ne,Ce;switch(V=new yi,f=Object.keys(t).sort(function(Se,_e){return Se-_e}),e){case"macroman":for(E=0,k=(function(){var Se=[];for(I=0;I<256;++I)Se.push(0);return Se})(),H={0:0},o={},J=0,Y=f.length;J<Y;J++)H[de=t[a=f[J]]]==null&&(H[de]=++E),o[a]={old:t[a],new:H[t[a]]},k[a]=H[t[a]];return V.writeUInt16(1),V.writeUInt16(0),V.writeUInt32(12),V.writeUInt16(0),V.writeUInt16(262),V.writeUInt16(0),V.write(k),{charMap:o,subtable:V.data,maxGlyphID:E+1};case"unicode":for(F=[],v=[],T=0,H={},r={},N=h=null,Q=0,ue=f.length;Q<ue;Q++)H[te=t[a=f[Q]]]==null&&(H[te]=++T),r[a]={old:te,new:H[te]},l=H[te]-a,N!=null&&l===h||(N&&v.push(N),F.push(a),h=l),N=a;for(N&&v.push(N),v.push(65535),F.push(65535),ne=2*(q=F.length),G=2*Math.pow(Math.log(q)/Math.LN2,2),x=Math.log(G/2)/Math.LN2,ce=2*q-G,c=[],he=[],p=[],I=ae=0,le=F.length;ae<le;I=++ae){if(S=F[I],m=v[I],S===65535){c.push(0),he.push(0);break}if(S-(W=r[S].new)>=32768)for(c.push(0),he.push(2*(p.length+q-I)),a=U=S;S<=m?U<=m:U>=m;a=S<=m?++U:--U)p.push(r[a].new);else c.push(W-S),he.push(0)}for(V.writeUInt16(3),V.writeUInt16(1),V.writeUInt32(12),V.writeUInt16(4),V.writeUInt16(16+8*q+2*p.length),V.writeUInt16(0),V.writeUInt16(ne),V.writeUInt16(G),V.writeUInt16(x),V.writeUInt16(ce),re=0,w=v.length;re<w;re++)a=v[re],V.writeUInt16(a);for(V.writeUInt16(0),fe=0,O=F.length;fe<O;fe++)a=F[fe],V.writeUInt16(a);for(be=0,D=c.length;be<D;be++)l=c[be],V.writeUInt16(l);for(Ne=0,z=he.length;Ne<z;Ne++)R=he[Ne],V.writeUInt16(R);for(Ce=0,K=p.length;Ce<K;Ce++)E=p[Ce],V.writeUInt16(E);return{charMap:r,subtable:V.data,maxGlyphID:T+1}}},n})(),Tf=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="cmap",n.prototype.parse=function(t){var e,r,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)e=new Ru(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},n.encode=function(t,e){var r,a;return e==null&&(e="macroman"),r=Ru.encode(t,e),(a=new yi).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},n})(),E0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="hhea",n.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()},n})(),O0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="OS/2",n.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 e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)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 e,r;for(r=[],e=0;e<2;e=++e)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()},n})(),F0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="post",n.prototype.parse=function(t){var e,r,a;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(r=t.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)e=t.readByte(),a.push(this.names.push(t.readString(e)));return a;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var f,l,c;for(c=[],o=f=0,l=this.file.maxp.numGlyphs;0<=l?f<l:f>l;o=0<=l?++f:--f)c.push(t.readUInt32());return c}).call(this)}},n})(),M0=function(n,t){this.raw=n,this.length=n.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},B0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="name",n.prototype.parse=function(t){var e,r,a,o,f,l,c,h,m,v,x;for(t.pos=this.offset,t.readShort(),e=t.readShort(),l=t.readShort(),r=[],o=0;0<=e?o<e:o>e;o=0<=e?++o:--o)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(c={},o=m=0,v=r.length;m<v;o=++m)a=r[o],t.pos=a.offset,h=t.readString(a.length),f=new M0(h,a),c[x=a.nameID]==null&&(c[x]=[]),c[a.nameID].push(f);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfam
174ily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},n})(),j0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="maxp",n.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()},n})(),R0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="hmtx",n.prototype.parse=function(t){var e,r,a,o,f,l,c;for(t.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var h,m;for(m=[],e=h=0;0<=a?h<a:h>a;e=0<=a?++h:--h)m.push(t.readInt16());return m})(),this.widths=(function(){var h,m,v,x;for(x=[],h=0,m=(v=this.metrics).length;h<m;h++)o=v[h],x.push(o.advance);return x}).call(this),r=this.widths[this.widths.length-1],c=[],e=f=0;0<=a?f<a:f>a;e=0<=a?++f:--f)c.push(this.widths.push(r));return c},n.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]}},n})(),Df=[].slice,T0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(t){var e,r,a,o,f,l,c,h,m,v;return t in this.cache?this.cache[t]:(o=this.file.loca,e=this.file.contents,r=o.indexOf(t),(a=o.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+r,f=(l=new yi(e.read(a))).readShort(),h=l.readShort(),v=l.readShort(),c=l.readShort(),m=l.readShort(),this.cache[t]=f===-1?new q0(l,h,v,c,m):new D0(l,f,h,v,c,m),this.cache[t]))},n.prototype.encode=function(t,e,r){var a,o,f,l,c;for(f=[],o=[],l=0,c=e.length;l<c;l++)a=t[e[l]],o.push(f.length),a&&(f=f.concat(a.encode(r)));return o.push(f.length),{table:f,offsets:o}},n})(),D0=(function(){function n(t,e,r,a,o,f){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=a,this.xMax=o,this.yMax=f,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),q0=(function(){function n(t,e,r,a,o){var f,l;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=a,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],f=this.raw;l=f.readShort(),this.glyphOffsets.push(f.pos),this.glyphIDs.push(f.readUInt16()),32&l;)f.pos+=1&l?4:2,128&l?f.pos+=8:64&l?f.pos+=4:8&l&&(f.pos+=2)}return n.prototype.encode=function(){var t,e,r;for(e=new yi(Df.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},n})(),U0=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return jr(n,yr),n.prototype.tag="loca",n.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var a,o;for(o=[],r=0,a=this.length;r<a;r+=2)o.push(2*t.readUInt16());return o}).call(this):(function(){var a,o;for(o=[],r=0,a=this.length;r<a;r+=4)o.push(t.readUInt32());return o}).call(this)},n.prototype.indexOf=function(t){return this.offsets[t]},n.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
174,n.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),a=0,o=0,f=0;f<r.length;++f)if(r[f]=a,o<e.length&&e[o]==f){++o,r[f]=a;var l=this.offsets[f],c=this.offsets[f+1]-l;c>0&&(a+=c)}for(var h=new Array(4*r.length),m=0;m<r.length;++m)h[4*m+3]=255&r[m],h[4*m+2]=(65280&r[m])>>8,h[4*m+1]=(16711680&r[m])>>16,h[4*m]=(4278190080&r[m])>>24;return h},n})(),z0=(function(){function n(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var t,e,r,a,o;for(e in a=this.font.cmap.tables[0].codeMap,t={},o=this.subset)r=o[e],t[e]=a[r];return t},n.prototype.glyphsFor=function(t){var e,r,a,o,f,l,c;for(a={},f=0,l=t.length;f<l;f++)a[o=t[f]]=this.font.glyf.glyphFor(o);for(o in e=[],a)(r=a[o])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(o in c=this.glyphsFor(e))r=c[o],a[o]=r;return a},n.prototype.encode=function(t,e){var r,a,o,f,l,c,h,m,v,x,p,I,E,k,N;for(a in r=Tf.encode(this.generateCmap(),"unicode"),f=this.glyphsFor(t),p={0:0},N=r.charMap)p[(c=N[a]).old]=c.new;for(I in x=r.maxGlyphID,f)I in p||(p[I]=x++);return m=(function(H){var T,R;for(T in R={},H)R[H[T]]=T;return R})(p),v=Object.keys(m).sort(function(H,T){return H-T}),E=(function(){var H,T,R;for(R=[],H=0,T=v.length;H<T;H++)l=v[H],R.push(m[l]);return R})(),o=this.font.glyf.encode(f,E,p),h=this.font.loca.encode(o.offsets,E),k={cmap:this.font.cmap.raw(),glyf:o.table,loca:h,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(e)},this.font.os2.exists&&(k["OS/2"]=this.font.os2.raw()),this.font.directory.encode(k)},n})();We.API.PDFObject=(function(){var n;function t(){}return n=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},t.convert=function(e){var r,a,o,f;if(Array.isArray(e))return"["+(function(){var l,c,h;for(h=[],l=0,c=e.length;l<c;l++)r=e[l],h.push(t.convert(r));return h})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+n(e.getUTCFullYear(),4)+n(e.getUTCMonth(),2)+n(e.getUTCDate(),2)+n(e.getUTCHours(),2)+n(e.getUTCMinutes(),2)+n(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in o=["<<"],e)f=e[a],o.push("/"+a+" "+t.convert(f));return o.push(">>"),o.join(` 175`)}return""+e},t})();const V0={class:"mt-10"},H0={class:"mt-10"},W0={class:"print-preview-container"},$0={ref:"printPreview",class:"print-preview"},G0={key:0,class:"print-patience-overlay"},Y0="Imprimer une carte",J0="xl",Tu=.264583333,X0=25.4,K0=96,Zo=300,Z0=250*353,Q0={__name:"PrintModal",props:{printOptions:{type:Object,default:()=>({})}},setup(n,{expose:t}){e1(_e=>({v7c338076:ue.value.width,v1f24d712:ue.value.height,v1d6e8368:le.value.left,v38256c77:le.value.right,v53877320:le.value.top,v9cd589a0:le.value.bottom,v7f9502fa:U.value.width,v593c6273:U.value.height,de0bbbf4:W.value}));const e=hs(),r=gr(),a=n,o=Un("emitter"),f=[{label:"Portrait",value:"portrait",icon:"material-symbols:crop-portrait-outline-sharp"},{label:"Paysage",value:"landscape",icon:"material-symbols:crop-landscape-outline-sharp"}],l=st(!1),c=st(!1),h=()=>{o.dispatchEvent("leftmenu:close"),l.value=!0,e.pause()},m=()=>{c.value=!1,l.value=!1,e.resume(),r.getMap().renderSync()};t({onModalPrintClose:m,onModalPrintOpen:h});const v=st(null),x=st(null),p=st(null),I=st(null),k=Vo({...{hasScale:!0,hasTitle:!0,printTitle:"Ma carte",pageOrientation:"portrait",margin:5,paperFormat:"A4",dpi:96,format:"PNG"}}),N=["hasScale","hasTitle","printTitle","pageOrientation","margin","paperFormat","dpi","format"],H=_e=>{!_e||typeof _e!="object"||N.forEach(L=>{_e[L]!==void 0&&(k[L]=_e[L])})};ao(()=>a.printOptions,_e=>{H(_e)},{immediate:!0,deep:!0});const T={A0:{width:841,height:1189},A1:{width:594,height:841},A2:{width:420,height:594},A3:{width:297,height:420},A4:{width:210,height:297},A5:{width:148,height:210},B4:{width:250,height:353},B5:{width:176,height:250}},R=_e=>{const L=T[_e];return L?L.width*L.height<=Z0:!1},te=vt(()=>R(k.paperFormat)),he=vt(()=>Object.entries(T).map(([_e,L])=>{const Ae=k.dpi===Zo&&!R(_e);return{value:_e,text:`${_e} (${L.width} x ${L.height} mm)`,disabled:Ae}})),ce=vt(()=>[{value:96,text:"96 DPI (écran)"},{value:Zo,text:"300 DPI (impression)",disabled:!te.value}]);ao(()=>[k.dpi,k.paperFormat],([_e,L])=>{_e===Zo&&!R(L)&&(k.paperFormat="A4")},{immediate:!0});const G=vt(()=>k.pageOrientation==="portrait"?{width:T[k.paperFormat].width,height:T[k.paperFormat].height}:k.pageOrientation==="landscape"?{width:T[k.paperFormat].height,height:T[k.paperFormat].width}:T.A4),q=Vo(Zs(p,{width:0,height:0},{box:"border-box"})),ne=Vo(Zs(I,{width:0,height:0},{box:"border-box"})),S=Vo(Zs(x,{width:0,height:0},{box:"border-box"})),F=vt(()=>({width:G.value.width/Tu,height:G.value.height/Tu})),W=vt(()=>{const _e=q.height,L=q.width-ne.width;return Vd(L,_e,F.value.width,F.value.height)}),V=vt(()=>({width:G.value.width-2*k.margin,height:G.value.height-2*k.margin})),J=vt(()=>{if(!k.hasTitle||Y.value.height<=0)return 0;const _e=S.height/Y.value.height;return Math.max(0,Math.min(1,_e))}),Q=vt(()=>V.value.height*J.value),ae=vt(()=>({width:V.value.width,height:Math.max(0,V.value.height-Q.value)})),U=vt(()=>({width:`${ae.value.width}mm`,height:`${ae.value.height}mm`})),Y=vt(()=>({width:F.value.width*W.value,height:F.value.height*W.value})),ue=vt(()=>({width:`${Y.value.width}px`,height:`${Y.value.height}px`})),le=vt(()=>{const _e=k.margin/G.value.width*Y.value.width,L=k.margin/G.value.height*Y.value.height;return{left:`${_e}px`,right:`${_e}px`,top:`${L}px`,bottom:`${L}px`}}),w=()=>{var _e;return((_e=v.value)==null?void 0:_e.map)??r.getMap()},O=(_e,L)=>Math.round(_e/X0*L),D=(_e,L)=>{const Ae=_e.getContext("2d");if(!Ae)throw new Error(L);return Ae},z=(_e,L)=>{const Ae=document.createElement("canvas");Ae.width=_e,Ae.height=L;const Me=D(Ae,"Impossible de récupérer le contexte 2D du canvas final.");return Me.fillStyle="#ffffff",Me.fillRect(0,0,Ae.width,Ae.height),{canvas:Ae,ctx:Me}},K=(_e,L,Ae,Me,Ee)=>{const ye=document.createElement("canvas");ye.width=L,ye.height=Ae;const qe=D(ye,"Impossible de récupérer le contexte 2D du titre.");$d(qe,Ae,L,k.printTitle,x.value,Ee),_e.drawImage(ye,Me,Me),ye.remove()},re=(_e,L,Ae,Me,Ee,ye,qe=null,Ie=1)=>{const Oe=document.createElement("canvas");Oe.width=L,Oe.height=Ae;const Pe=D(Oe,"Impossible de récupérer le contexte 2D de l'échelle.");Wd(Pe,ye,L,Ae,qe,Ie),_e.drawImage(Oe,Me,Me+Ee),Oe.remove()},fe=(_e,L)=>{const Ae=document.createElement("a");Ae.download=_e,Ae.href=L,Ae.click()},de=async()=>{var tt;const _e=k.dpi,L=_e/K0,Ae=O(G.value.width,_e),Me=O(G.value.height,_e),Ee=O(k.margin,_e),ye=k.hasTitle?Math.round(Q.value/G.value.height*Me):0,qe=Math.max(0,Ae-Ee*2),Ie=Math.max(0,Me-Ee*2-ye),Oe=(tt=v.value)==null?void 0:tt.mapRef,Pe=k.hasScale&&_e===Zo&&Oe?Hd(Oe,W.value):null,
175Lt=w(),ht=await Zd(Lt,qe,Ie),et=qe+Ee*2,bt=Ie+ye+Ee*2,{canvas:mt,ctx:Te}=z(et,bt);return Te.drawImage(ht,Ee,Ee+ye),k.hasTitle&&K(Te,qe,ye,Ee,L),k.hasScale&&Oe&&re(Te,qe,Ie,Ee,ye,Oe,Pe,W.value),ht.remove(),{dpiValue:_e,finalCanvas:mt}},be=async()=>{if(!c.value){c.value=!0;try{if(k.format==="PDF"){await Ce();return}await Ne()}finally{c.value=!1}}},Ne=async()=>{const{dpiValue:_e,finalCanvas:L}=await de(),Ae=L.toDataURL("image/png");if(k.format==="PNG"){const Me=await Xd(Ae,_e);fe("carte.png",Me)}else if(k.format==="JPEG"){const Me=L.toDataURL("image/jpeg",.95);fe("carte.jpeg",Me)}L.remove()},Ce=async()=>{const{finalCanvas:_e}=await de(),L={orientation:k.pageOrientation,unit:"mm",format:[G.value.width,G.value.height]},Ae=new We(L),Me=_e.toDataURL("image/png");Ae.addImage(Me,"PNG",0,0,G.value.width,G.value.height),Ae.save("carte.pdf"),_e.remove()},Se={id:"4",units:"metric",bar:!1};return(_e,L)=>{const Ae=t1,Me=n1,Ee=fs,ye=Wu,qe=$i,Ie=Ih,Oe=Ca;return Ge(),qn(Oe,{opened:l.value,title:Y0,size:J0,onClose:m},{default:Dt(()=>[Re("div",{ref_key:"printPage",ref:p,class:"print-page"},[Re("div",{ref_key:"printForm",ref:I,class:"print-form"},[je(Ae,{modelValue:k.pageOrientation,"onUpdate:modelValue":L[0]||(L[0]=Pe=>k.pageOrientation=Pe),inline:!1,options:f,small:!1,legend:"Mise en Page",class:"mb-20"},{legend:Dt(()=>[...L[8]||(L[8]=[Qr(" Mise en Page ",-1)])]),_:1},8,["modelValue"]),je(Me,{modelValue:k.paperFormat,"onUpdate:modelValue":L[1]||(L[1]=Pe=>k.paperFormat=Pe),label:"Dimensions",options:he.value},null,8,["modelValue","options"]),je(Me,{modelValue:k.margin,"onUpdate:modelValue":L[2]||(L[2]=Pe=>k.margin=Pe),modelModifiers:{number:!0},label:"Marge",options:[{value:0,text:"Pas de marge - 0mm"},{value:5,text:"Petite marge - 5mm"},{value:10,text:"Grosse marge - 10mm"}]},null,8,["modelValue"]),je(Ee,{modelValue:k.printTitle,"onUpdate:modelValue":L[3]||(L[3]=Pe=>k.printTitle=Pe),disabled:!k.hasTitle,label:"Titre de la carte","label-visible":"",name:"titre",class:"mb-10"},null,8,["modelValue","disabled"]),Re("div",V0,[je(ye,{modelValue:k.hasTitle,"onUpdate:modelValue":L[4]||(L[4]=Pe=>k.hasTitle=Pe),name:"checkbox-simple",label:k.hasTitle?"Désactiver le titre":"Activer le titre"},null,8,["modelValue","label"])]),Re("div",H0,[je(ye,{modelValue:k.hasScale,"onUpdate:modelValue":L[5]||(L[5]=Pe=>k.hasScale=Pe),name:"checkbox-simple",label:k.hasScale?"Désactiver l'échelle":"Afficher l'échelle"},null,8,["modelValue","label"])]),je(Me,{modelValue:k.format,"onUpdate:modelValue":L[6]||(L[6]=Pe=>k.format=Pe),label:"Format d'export",options:["PDF","PNG","JPEG"]},null,8,["modelValue"]),je(Me,{modelValue:k.dpi,"onUpdate:modelValue":L[7]||(L[7]=Pe=>k.dpi=Pe),modelModifiers:{number:!0},label:"Résolution",options:ce.value},null,8,["modelValue","options"]),je(qe,{id:"print-page-export",label:c.value?"Traitement en cours...":"Imprimer la carte",title:c.value?"Traitement en cours...":"Imprimer la carte",disabled:c.value,icon:"","no-outline":"",onClick:be},null,8,["label","title","disabled"])],512),Re("div",W0,[Re("div",$0,[k.hasTitle?(Ge(),ct("div",{key:0,id:"map-title",ref_key:"mapTitle",ref:x,class:"map-title"},nn(k.printTitle),513)):Dn("",!0),l.value?(Ge(),qn(Ch,{key:1,ref_key:"refPreviewMap",ref:v,class:"map","map-id":lt(Xs),center:lt(r).center,zoom:lt(r).zoom},{default:Dt(()=>[je(zd,{"print-map-id":lt(Xs)},null,8,["print-map-id"]),je(Ie,{visibility:k.hasScale,"scale-line-options":Se,"map-id":lt(Xs)},null,8,["visibility","map-id"])]),_:1},8,["map-id","center","zoom"])):Dn("",!0)],512)]),c.value?(Ge(),ct("div",G0,[je(Bl)])):Dn("",!0)],512)]),_:1},8,["opened"])}}},ep=Zn(Q0,[["__scopeId","data-v-24d86ef6"]]),tp={name:"ModalSave"},np=Object.assign(tp,{setup(n,{expose:t}){const e=hs();var r=null;const a="Sauvegarde sur l'espace personnel",o="fr-icon-save-fill",f=[{label:"Sauvegarder",onClick(){l.value=!1,r()}},{label:"Annuler",tertiary:!0,onClick(){l.value=!1,r=null}}],l=st(!1);l.value&&e.pause();const c=()=>{l.value=!0,e.pause()},h=()=>{l.value=!1,e.resume()};return t({openModalSave:c,onModalSaveClose:h,onDelegateCbk:v=>{r=v}}),(v,x)=>{const p=Ca;return Ge(),qn(p,{opened:lt(l),title:a,size:"md",icon:o,"is-alert":!0,actions:f,onClose:h},{default:Dt(()=>[...x[0]||(x[0]=[Re("p",null," Voulez-vous enregistrer sur votre espace personnel la donnée importée ? ",-1)])]),_:1},8,["opened"])}}}),rp={id:"map-and-tools-container"},ip={class:"modal-container"},ap=Gu({__name:"CartoAndTools",setup(n){const t=gr(),e=$u(),r=r1(),a=st(null),o=st(null),f=st(null),l=st(null),c=st(null),h={dpi:96,paperFormat:"A4",pageOrientation:"portrait",format:"PDF"};va("refModalShare",o),va("refModalLogin",a),va("refModalSave",f),va("refModalPrint",l),va("refModalWelcome",c);const m=()=>{o.value.onModalShareOpen()},v=()=>{l.value.onModalPrintOpen()},x=()=>{a.value.openModalLogin(!1)},p=T=>{t.removeLayer(T),In.warning({title:"Exception",message:"La couche "+T+" n'existe pas !"})},I=T=>{t.removeBookmark(T),In.warning({title:"Exception",message:"Le bookmark "+T+" n'existe pas !"})},E=vt(()=>{var T=[],R=t.getLayers();for(let G=0;G<R.length;G++){var te=R[G],he=e.getLayerByID(te);
175if(!he){p(te);continue}var ce=t.getLayerProperty(te);he.position=ce.position,he.opacity=ce.opacity,he.visible=ce.visible,he.grayscale=ce.grayscale,ce.style&&(he.style=ce.style),T.push(he)}return T}),k=vt(()=>{var T=[],R=t.getBookmarks();for(let ce=0;ce<R.length;ce++){var te=R[ce],he=Oh(decodeURIComponent(te));if(!he){I(te);continue}he.stop||(he.key=he.id,T.push(he))}return T}),N=vt(()=>t.getControls()),H=st(null);return vr(()=>{r.siteOpened&&c.value&&c.value.openModalWelcome()}),va("selectedLayers",E),(T,R)=>(Ge(),ct(Br,null,[Re("div",rp,[je(Eh,{ref_key:"cartoRef",ref:H,"selected-layers":lt(E),"selected-controls":lt(N),"selected-bookmarks":lt(k)},null,8,["selected-layers","selected-controls","selected-bookmarks"]),je(Od,{onOnModalShareOpen:m,onOnModalPrintOpen:v,onOnModalLoginOpen:x})]),Re("div",ip,[je(Ud,{ref_key:"refModalShare",ref:o},null,512),je(Md,{ref_key:"refModalLogin",ref:a},null,512),je(np,{ref_key:"refModalSave",ref:f},null,512),je(ep,{ref_key:"refModalPrint",ref:l,"print-options":h},null,512)])],64))}}),op=Zn(ap,[["__scopeId","data-v-660dfc56"]]),sp=Gu({__name:"Load",setup(n){return(t,e)=>(Ge(),qn(i1,null,{fallback:Dt(()=>[je(Bl)]),default:Dt(()=>[je(Fh,null,{default:Dt(()=>[je(op)]),_:1})]),_:1}))}}),hp=Object.freeze(Object.defineProperty({__proto__:null,default:sp},Symbol.toStringTag,{value:"Module"}));export{hp as L,It as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.