vendor: 4,388 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-hdsDxb-v.js","assets/vendor-BI5TZToo.js"])))=>i.map(i=>d[i]); 2import{j as B,a as $f,u as Is}from"./query-w-1FDK4R.js";import{r as oe,h as Ps,i as Vf}from"./vendor-BI5TZToo.js";import{b3 as iu,G as Ue,ap as Oc,ae as rh,as as Tc,x as yn,I as Qn,a4 as Zf,aZ as ei,aF as Dc,J as me,K as qe,_ as Yo,an as N0,D as ih,F as ah,R as L0,a2 as tc,ai as E0,n as ec,bo as nc,ac as sh,ay as rc}from"./index-z0lIoSoV.js";import{T as C0}from"./textarea-ep-i3Wn3.js";import{c as I0,b as Kf,u as P0,N as Yf,d as Xf,f as j0,P as Xa,g as ri,K as Jf,e as F0}from"./ui-XCSPXWXn.js";import{T as R0,a as O0,b as oh,c as ks,d as T0,e as Ss}from"./table-BJbPpmRA.js";import{C as lh,a as ch}from"./CertificatePreview-CGhYwsXe.js";import{g as Po,i as uh}from"./certId-KZ-a1BTQ.js";import{l as D0}from"./Admin-CRCjTjiB.js";import"./supabase-BZWkUGAr.js";import"./NoIndex-Cx3QDwB2.js";var ic="rovingFocusGroup.onEntryFocus",B0={bubbles:!1,cancelable:!0},Gs="RovingFocusGroup",[Bc,Qf,M0]=I0(Gs),[z0,td]=Kf(Gs,[M0]),[U0,q0]=z0(Gs),ed=oe.forwardRef((t,n)=>B.jsx(Bc.Provider,{scope:t.__scopeRovingFocusGroup,children:B.jsx(Bc.Slot,{scope:t.__scopeRovingFocusGroup,children:B.jsx(H0,{...t,ref:n})})}));ed.displayName=Gs;var H0=oe.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:e,orientation:r,loop:a=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:f,preventScrollOnEntryFocus:d=!1,..._}=t,w=oe.useRef(null),h=P0(n,w),x=Yf(i),[b,N]=Xf({prop:l,defaultProp:s??null,onChange:c,caller:Gs}),[v,C]=oe.useState(!1),O=j0(f),T=Qf(e),Z=oe.useRef(!1),[ot,et]=oe.useState(0);return oe.useEffect(()=>{const $=w.current;if($)return $.addEventListener(ic,O),()=>$.removeEventListener(ic,O)},[O]),B.jsx(U0,{scope:e,orientation:r,dir:x,loop:a,currentTabStopId:b,onItemFocus:oe.useCallback($=>N($),[N]),onItemShiftTab:oe.useCallback(()=>C(!0),[]),onFocusableItemAdd:oe.useCallback(()=>et($=>$+1),[]),onFocusableItemRemove:oe.useCallback(()=>et($=>$-1),[]),children:B.jsx(Xa.div,{tabIndex:v||ot===0?-1:0,"data-orientation":r,..._,ref:h,style:{outline:"none",...t.style},onMouseDown:ri(t.onMouseDown,()=>{Z.current=!0}),onFocus:ri(t.onFocus,$=>{const k=!Z.current;if($.target===$.currentTarget&&k&&!v){const j=new CustomEvent(ic,B0);if($.currentTarget.dispatchEvent(j),!j.defaultPrevented){const E=T().filter(ft=>ft.focusable),y=E.find(ft=>ft.active),R=E.find(ft=>ft.id===b),X=[y,R,...E].filter(Boolean).map(ft=>ft.ref.current);id(X,d)}}Z.current=!1}),onBlur:ri(t.onBlur,()=>C(!1))})})}),nd="RovingFocusGroupItem",rd=oe.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:e,focusable:r=!0,active:a=!1,tabStopId:i,children:l,...s}=t,c=Jf(),f=i||c,d=q0(nd,e),_=d.currentTabStopId===f,w=Qf(e),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:b}=d;return oe.useEffect(()=>{if(r)return h(),()=>x()},[r,h,x]),B.jsx(Bc.ItemSlot,{scope:e,id:f,focusable:r,active:a,children:B.jsx(Xa.span,{tabIndex:_?0:-1,"data-orientation":d.orientation,...s,ref:n,onMouseDown:ri(t.onMouseDown,N=>{r?d.onItemFocus(f):N.preventDefault()}),onFocus:ri(t.onFocus,()=>d.onItemFocus(f)),onKeyDown:ri(t.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){d.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const v=$0(N,d.orientation,d.dir);if(v!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let O=w().filter(T=>T.focusable).map(T=>T.ref.current);if(v==="last")O.reverse();else if(v==="prev"||v==="next"){v==="prev"&&O.reverse();const T=O.indexOf(N.currentTarget);O=d.loop?V0(O,T+1):O.slice(T+1)}setTimeout(()=>id(O))}}),children:typeof l=="function"?l({isCurrentTabStop:_,hasTabStop:b!=null}):l})})});rd.displayName=nd;var W0={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function G0(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function $0(t,n,e){const r=G0(t.key,e);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return W0[r]}function id(t,n=!1){const e=document.activeElement;for(const r of t)if(r===e||(r.focus({preventScroll:n}),document.activeElement!==e))return}function V0(t,n){return t.map((e,r)=>t[(n+r)%t.length])}var Z0=ed,K0=rd,dl="Tabs",[Y0,jb]=Kf(dl,[td]),ad=td(),[X0,au]=Y0(dl),sd=oe.forwardRef((t,
2n)=>{const{__scopeTabs:e,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:s,activationMode:c="automatic",...f}=t,d=Yf(s),[_,w]=Xf({prop:r,onChange:a,defaultProp:i??"",caller:dl});return B.jsx(X0,{scope:e,baseId:Jf(),value:_,onValueChange:w,orientation:l,dir:d,activationMode:c,children:B.jsx(Xa.div,{dir:d,"data-orientation":l,...f,ref:n})})});sd.displayName=dl;var od="TabsList",ld=oe.forwardRef((t,n)=>{const{__scopeTabs:e,loop:r=!0,...a}=t,i=au(od,e),l=ad(e);return B.jsx(Z0,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:B.jsx(Xa.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:n})})});ld.displayName=od;var cd="TabsTrigger",ud=oe.forwardRef((t,n)=>{const{__scopeTabs:e,value:r,disabled:a=!1,...i}=t,l=au(cd,e),s=ad(e),c=dd(l.baseId,r),f=pd(l.baseId,r),d=r===l.value;return B.jsx(K0,{asChild:!0,...s,focusable:!a,active:d,children:B.jsx(Xa.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...i,ref:n,onMouseDown:ri(t.onMouseDown,_=>{!a&&_.button===0&&_.ctrlKey===!1?l.onValueChange(r):_.preventDefault()}),onKeyDown:ri(t.onKeyDown,_=>{[" ","Enter"].includes(_.key)&&l.onValueChange(r)}),onFocus:ri(t.onFocus,()=>{const _=l.activationMode!=="manual";!d&&!a&&_&&l.onValueChange(r)})})})});ud.displayName=cd;var hd="TabsContent",fd=oe.forwardRef((t,n)=>{const{__scopeTabs:e,value:r,forceMount:a,children:i,...l}=t,s=au(hd,e),c=dd(s.baseId,r),f=pd(s.baseId,r),d=r===s.value,_=oe.useRef(d);return oe.useEffect(()=>{const w=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(w)},[]),B.jsx(F0,{present:a||d,children:({present:w})=>B.jsx(Xa.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!w,id:f,tabIndex:0,...l,ref:n,style:{...t.style,animationDuration:_.current?"0s":void 0},children:w&&i})})});fd.displayName=hd;function dd(t,n){return`${t}-trigger-${n}`}function pd(t,n){return`${t}-content-${n}`}var J0=sd,gd=ld,md=ud,bd=fd;const Q0=J0,vd=oe.forwardRef(({className:t,...n},e)=>B.jsx(gd,{ref:e,className:iu("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t),...n}));vd.displayName=gd.displayName;const Vi=oe.forwardRef(({className:t,...n},e)=>B.jsx(md,{ref:e,className:iu("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",t),...n}));Vi.displayName=md.displayName;const Zi=oe.forwardRef(({className:t,...n},e)=>B.jsx(bd,{ref:e,className:iu("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...n}));Zi.displayName=bd.displayName;function jo(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _d={exports:{}};/*! 3 4JSZip v3.10.1 - A JavaScript class for generating and reading zip files 5<http://stuartk.com/jszip> 6 7(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> 8Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. 9 10JSZip uses the library pako released under the MIT license : 11https://github.com/nodeca/pako/blob/main/LICENSE 12*/(function(t,n){(function(e){t.exports=e()})(function(){return function e(r,a,i){function l(f,d){if(!a[f]){if(!r[f]){var _=typeof jo=="function"&&jo;if(!d&&_)return _(f,!0);if(s)return s(f,!0);var w=new Error("Cannot find module '"+f+"'");throw w.code="MODULE_NOT_FOUND",w}var h=a[f]={exports:{}};r[f][0].call(h.exports,function(x){var b=r[f][1][x];return l(b||x)},h,h.exports,e,r,a,i)}return a[f].exports}for(var s=typeof jo=="function"&&jo,c=0;c<i.length;c++)l(i[c]);return l}({1:[function(e,r,a){var i=e("./utils"),l=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 37,765 bytes, lines 12-13
12+/=";a.encode=function(c){for(var f,d,_,w,h,x,b,N=[],v=0,C=c.length,O=C,T=i.getTypeOf(c)!=="string";v<c.length;)O=C-v,_=T?(f=c[v++],d=v<C?c[v++]:0,v<C?c[v++]:0):(f=c.charCodeAt(v++),d=v<C?c.charCodeAt(v++):0,v<C?c.charCodeAt(v++):0),w=f>>2,h=(3&f)<<4|d>>4,x=1<O?(15&d)<<2|_>>6:64,b=2<O?63&_:64,N.push(s.charAt(w)+s.charAt(h)+s.charAt(x)+s.charAt(b));return N.join("")},a.decode=function(c){var f,d,_,w,h,x,b=0,N=0,v="data:";if(c.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var C,O=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===s.charAt(64)&&O--,c.charAt(c.length-2)===s.charAt(64)&&O--,O%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=l.uint8array?new Uint8Array(0|O):new Array(0|O);b<c.length;)f=s.indexOf(c.charAt(b++))<<2|(w=s.indexOf(c.charAt(b++)))>>4,d=(15&w)<<4|(h=s.indexOf(c.charAt(b++)))>>2,_=(3&h)<<6|(x=s.indexOf(c.charAt(b++))),C[N++]=f,h!==64&&(C[N++]=d),x!==64&&(C[N++]=_);return C}},{"./support":30,"./utils":32}],2:[function(e,r,a){var i=e("./external"),l=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),c=e("./stream/DataLengthProbe");function f(d,_,w,h,x){this.compressedSize=d,this.uncompressedSize=_,this.crc32=w,this.compression=h,this.compressedContent=x}f.prototype={getContentWorker:function(){var d=new l(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),_=this;return d.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new l(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(d,_,w){return d.pipe(new s).pipe(new c("uncompressedSize")).pipe(_.compressWorker(w)).pipe(new c("compressedSize")).withStreamInfo("compression",_)},r.exports=f},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,r,a){var i=e("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},a.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,r,a){var i=e("./utils"),l=function(){for(var s,c=[],f=0;f<256;f++){s=f;for(var d=0;d<8;d++)s=1&s?3988292384^s>>>1:s>>>1;c[f]=s}return c}();r.exports=function(s,c){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?function(f,d,_,w){var h=l,x=w+_;f^=-1;for(var b=w;b<x;b++)f=f>>>8^h[255&(f^d[b])];return-1^f}(0|c,s,s.length,0):function(f,d,_,w){var h=l,x=w+_;f^=-1;for(var b=w;b<x;b++)f=f>>>8^h[255&(f^d.charCodeAt(b))];return-1^f}(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(e,r,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(e,r,a){var i=null;i=typeof Promise<"u"?Promise:e("lie"),r.exports={Promise:i}},{lie:37}],7:[function(e,r,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",l=e("pako"),s=e("./utils"),c=e("./stream/GenericWorker"),f=i?"uint8array":"array";function d(_,w){c.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=w,this.meta={}}a.magic="\b\0",s.inherits(d,c),d.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(f,_.data),!1)},d.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new l[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(w){_.push({data:w,meta:_.meta})}},a.compressWorker=function(_){return new d("Deflate",_)},a.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,r,a){function i(h,x){var b,N="";for(b=0;b<x;b++)N+=String.fromCharCode(255&h),h>>>=8;return N}function l(h,x,b,N,v,C){var O,T,Z=h.file,ot=h.compression,et=C!==f.utf8encode,$=s.transformTo("string",C(Z.name)),k=s.transformTo("string",f.utf8encode(Z.name)),j=Z.comment,E=s.transformTo("string",C(j)),y=s.transformTo("string",f.utf8encode(j)),R=k.length!==Z.name.length,g=y.length!==j.length,X="",ft="",at="",nt=Z.dir,it=Z.date,mt={crc32:0,compressedSize:0,uncompressedSize:0};x&&!b||(mt.crc32=h.crc32,mt.compressedSize=h.compressedSize,mt.uncompressedSize=h.uncompressedSize);var tt=0;x&&(tt|=8),et||!R&&!g||(tt|=2048);var A=0,U=0;nt&&(A|=16),v==="UNIX"?(U=798,A|=function(K,st){var dt=K;return K||(dt=st?16893:33204),(65535&dt)<<16}(Z.unixPermissions,nt)):(U=20,A|=function(K){return 63&(K||0)}(Z.dosPermissions)),O=it.getUTCHours(),O<<=6,O|=it.getUTCMinutes(),O<<=5,O|=it.getUTCSeconds()/2,T=it.getUTCFullYear()-1980,T<<=4,T|=it.getUTCMonth()+1,T<<=5,T|=it.getUTCDate(),R&&(ft=i(1,1)+i(d($),4)+k,X+="up"+i(ft.length,2)+ft),g&&(at=i(1,1)+i(d(E),4)+y,X+="uc"+i(at.length,2)+at);var M="";return M+=` 13\0`,M+=i(tt,2),M+=ot.magic,M+=i(O,2),M+=i(T,2),M+=i(mt.crc32,4),M+=i(mt.compressedSize,4),M+=i(mt.uncompressedSize,4),M+=i($.length,2),M+=i(X.length,2),{fileRecord:_.LOCAL_FILE_HEADER+M+$+X,dirRecord:_.CENTRAL_FILE_HEADER+i(U,2)+M+i(E.length,2)+"\0\0\0\0"+i(A,4)+i(N,4)+$+X+E}}var s=e("../utils"),c=e("../stream/GenericWorker"),f=e("../utf8"),d=e("../crc32"),_=e("../signature");function w(h,x,b,N){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=x,this.zipPlatform=b,this.encodeFileName=N,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(w,c),w.prototype.push=function(h){var x=h.meta.percent||0,b=this.entriesCount,N=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,c.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:b?(x+100*(b-N-1))/b:100}}))},w.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var x=this.streamFiles&&!h.file.dir;if(x){var b=l(h,x,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:b.fileRecord,meta:{percent:0}})}else this.accumulate=!0},w.prototype.closedSource=function(h){this.accumulate=!1;var x=this.streamFiles&&!h.file.dir,b=l(h,x,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(b.dirRecord),x)this.push({data:function(N){return _.DATA_DESCRIPTOR+i(N.crc32,4)+i(N.compressedSize,4)+i(N.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:b.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},w.prototype.flush=function(){for(var h=this.bytesWritten,x=0;x<this.dirRecords.length;x++)this.push({data:this.dirRecords[x],meta:{percent:100}});var b=this.bytesWritten-h,N=function(v,C,O,T,Z){var ot=s.transformTo("string",Z(T));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(v,2)+i(v,2)+i(C,4)+i(O,4)+i(ot.length,2)+ot}(this.dirRecords.length,b,h,this.zipComment,this.encodeFileName);this.push({data:N,meta:{percent:100}})},w.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},w.prototype.registerPrevious=function(h){this._sources.push(h);var x=this;return h.on("data",function(b){x.processChunk(b)}),h.on("end",function(){x.closedSource(x.previous.streamInfo),x._sources.length?x.prepareNextSource():x.end()}),h.on("error",function(b){x.error(b)}),this},w.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},w.prototype.error=function(h){var x=this._sources;if(!c.prototype.error.call(this,h))return!1;for(var b=0;b<x.length;b++)try{x[b].error(h)}catch{}return!0},w.prototype.lock=function(){c.prototype.lock.call(this);for(var h=this._sources,x=0;x<h.length;x++)h[x].lock()},r.exports=w},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,r,a){var i=e("../compressions"),l=e("./ZipFileWorker");a.generateWorker=function(s,c,f){var d=new l(c.streamFiles,f,c.platform,c.encodeFileName),_=0;try{s.forEach(function(w,h){_++;var x=function(C,O){var T=C||O,Z=i[T];if(!Z)throw new Error(T+" is not a valid compression method !");return Z}(h.options.compression,c.compression),b=h.options.compressionOptions||c.compressionOptions||{},N=h.dir,v=h.date;h._compressWorker(x,b).withStreamInfo("file",{name:w,dir:N,date:v,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(d)}),d.entriesCount=_}catch(w){d.error(w)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,r,a){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var l=new i;for(var s in this)typeof this[s]!="function"&&(l[s]=this[s]);return l}}(i.prototype=e("./object")).loadAsync=e("./load"),i.support=e("./support"),i.defaults=e("./defaults"),i.version="3.10.1",i.loadAsync=function(l,s){return new i().loadAsync(l,s)},i.external=e("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,r,a){var i=e("./utils"),l=e("./external"),s=e("./utf8"),c=e("./zipEntries"),f=e("./stream/Crc32Probe"),d=e("./nodejsUtils");function _(w){return new l.Promise(function(h,x){var b=w.decompressed.getContentWorker().pipe(new f);b.on("error",function(N){x(N)}).on("end",function(){b.streamInfo.crc32!==w.decompressed.crc32?x(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}r.exports=function(w,h){var x=this;return h=i.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),d.isNode&&d.isStream(w)?l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",w,!0,h.optimizedBinaryString,h.base64).then(function(b){var N=new c(h);return N.load(b),N}).then(function(b){var N=[l.Promise.resolve(b)],v=b.files;if(h.checkCRC32)for(var C=0;C<v.length;C++)N.push(_(v[C]));return l.Promise.all(N)}).then(function(b){for(var N=b.shift(),v=N.files,C=0;C<v.length;C++){var O=v[C],T=O.fileNameStr,Z=i.resolve(O.fileNameStr);x.file(Z,O.decompressed,{binary:!0,optimizedBinaryString:!0,date:O.date,dir:O.dir,comment:O.fileCommentStr.length?O.fileCommentStr:null,unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions,createFolders:h.createFolders}),O.dir||(x.file(Z).unsafeOriginalName=T)}return N.zipComment.length&&(x.comment=N.zipComment),x})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,r,a){var i=e("../utils"),l=e("../stream/GenericWorker");function s(c,f){l.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(f)}i.inherits(s,l),s.prototype._bindStream=function(c){var f=this;(this._stream=c).pause(),c.on("data",function(d){f.push({data:d,meta:{percent:0}})}).on("error",function(d){f.isPaused?this.generatedError=d:f.error(d)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},s.prototype.pause=function(){return!!l.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,r,a){var i=e("readable-stream").Readable;function l(s,c,f){i.call(this,c),this._helper=s;var d=this;s.on("data",function(_,w){d.push(_)||d._helper.pause(),f&&f(w)}).on("error",function(_){d.emit("error",_)}).on("end",function(){d.push(null)})}e("../utils").inherits(l,i),l.prototype._read=function(){this._helper.resume()},r.exports=l},{"../utils":32,"readable-stream":16}],14:[function(e,r,a){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,l){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,l);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,l)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var l=new Buffer(i);return l.fill(0),l},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(e,r,a){function i(Z,ot,et){var $,k=s.getTypeOf(ot),j=s.extend(et||{},d);j.date=j.date||new Date,j.compression!==null&&(j.compression=j.compression.toUpperCase()),typeof j.unixPermissions=="string"&&(j.unixPermissions=parseInt(j.unixPermissions,8)),j.unixPermissions&&16384&j.unixPermissions&&(j.dir=!0),j.dosPermissions&&16&j.dosPermissions&&(j.dir=!0),j.dir&&(Z=v(Z)),j.createFolders&&($=N(Z))&&C.call(this,$,!0);var E=k==="string"&&j.binary===!1&&j.base64===!1;et&&et.binary!==void 0||(j.binary=!E),(ot instanceof _&&ot.uncompressedSize===0||j.dir||!ot||ot.length===0)&&(j.base64=!1,j.binary=!0,ot="",j.compression="STORE",k="string");var y=null;y=ot instanceof _||ot instanceof c?ot:x.isNode&&x.isStream(ot)?new b(Z,ot):s.prepareContent(Z,ot,j.binary,j.optimizedBinaryString,j.base64);var R=new w(Z,y,j);this.files[Z]=R}var l=e("./utf8"),s=e("./utils"),c=e("./stream/GenericWorker"),f=e("./stream/StreamHelper"),d=e("./defaults"),_=e("./compressedObject"),w=e("./zipObject"),h=e("./generate"),x=e("./nodejsUtils"),b=e("./nodejs/NodejsStreamInputAdapter"),N=function(Z){Z.slice(-1)==="/"&&(Z=Z.substring(0,Z.length-1));var ot=Z.lastIndexOf("/");return 0<ot?Z.substring(0,ot):""},v=function(Z){return Z.slice(-1)!=="/"&&(Z+="/"),Z},C=function(Z,ot){return ot=ot!==void 0?ot:d.createFolders,Z=v(Z),this.files[Z]||i.call(this,Z,null,{dir:!0,createFolders:ot}),this.files[Z]};function O(Z){return Object.prototype.toString.call(Z)==="[object RegExp]"}var T={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Z){var ot,et,$;for(ot in this.files)$=this.files[ot],(et=ot.slice(this.root.length,ot.length))&&ot.slice(0,this.root.length)===this.root&&Z(et,$)},filter:function(Z){var ot=[];return this.forEach(function(et,$){Z(et,$)&&ot.push($)}),ot},file:function(Z,ot,et){if(arguments.length!==1)return Z=this.root+Z,i.call(this,Z,ot,et),this;if(O(Z)){var $=Z;return this.filter(function(j,E){return!E.dir&&$.test(j)})}var k=this.files[this.root+Z];return k&&!k.dir?k:null},folder:function(Z){if(!Z)return this;if(O(Z))return this.filter(function(k,j){return j.dir&&Z.test(k)});var ot=this.root+Z,et=C.call(this,ot),$=this.clone();return $.root=et.name,$},remove:function(Z){Z=this.root+Z;var ot=this.files[Z];if(ot||(Z.slice(-1)!=="/"&&(Z+="/"),ot=this.files[Z]),ot&&!ot.dir)delete this.files[Z];else for(var et=this.filter(function(k,j){return j.name.slice(0,Z.length)===Z}),$=0;$<et.length;$++)delete this.files[et[$].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Z){var ot,et={};try{if((et=s.extend(Z||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:l.utf8encode})).type=et.type.toLowerCase(),et.compression=et.compression.toUpperCase(),et.type==="binarystring"&&(et.type="string"),!et.type)throw new Error("No output type specified.");s.checkSupport(et.type),et.platform!=="darwin"&&et.platform!=="freebsd"&&et.platform!=="linux"&&et.platform!=="sunos"||(et.platform="UNIX"),et.platform==="win32"&&(et.platform="DOS");var $=et.comment||this.comment||"";ot=h.generateWorker(this,et,$)}catch(k){(ot=new c("error")).error(k)}return new f(ot,et.type||"string",et.mimeType)},generateAsync:function(Z,ot){return this.generateInternalStream(Z).accumulate(ot)},generateNodeStream:function(Z,ot){return(Z=Z||{}).type||(Z.type="nodebuffer"),this.generateInternalStream(Z).toNodejsStream(ot)}};r.exports=T},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,r,a){r.exports=e("stream")},{stream:void 0}],17:[function(e,r,a){var i=e("./DataReader");function l(s){i.call(this,s);for(var c=0;c<this.data.length;c++)s[c]=255&s[c]}e("../utils").inherits(l,i),l.prototype.byteAt=function(s){return this.data[this.zero+s]},l.prototype.lastIndexOfSignature=function(s){for(var c=s.charCodeAt(0),f=s.charCodeAt(1),d=s.charCodeAt(2),_=s.charCodeAt(3),w=this.length-4;0<=w;--w)if(this.data[w]===c&&this.data[w+1]===f&&this.data[w+2]===d&&this.data[w+3]===_)return w-this.zero;return-1},l.prototype.readAndCheckSignature=function(s){var c=s.charCodeAt(0),f=s.charCodeAt(1),d=s.charCodeAt(2),_=s.charCodeAt(3),w=this.readData(4);return c===w[0]&&f===w[1]&&d===w[2]&&_===w[3]},l.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=l},{"../utils":32,"./DataReader":18}],18:[function(e,r,a){var i=e("../utils");function l(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}l.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var c,f=0;for(this.checkOffset(s),c=this.index+s-1;c>=this.index;c--)f=(f<<8)+this.byteAt(c);return this.index+=s,f},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},r.exports=l},{"../utils":32}],19:[function(e,r,a){var i=e("./Uint8ArrayReader");function l(s){i.call(this,s)}e("../utils").inherits(l,i),l.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=l},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,r,a){var i=e("./DataReader");function l(s){i.call(this,s)}e("../utils").inherits(l,i),l.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},l.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},l.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},l.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=l},{"../utils":32,"./DataReader":18}],21:[function(e,r,a){var i=e("./ArrayReader");function l(s){i.call(this,s)}e("../utils").inherits(l,i),l.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},r.exports=l},{"../utils":32,"./ArrayReader":17}],22:[function(e,r,a){var i=e("../utils"),l=e("../support"),s=e("./ArrayReader"),c=e("./StringReader"),f=e("./NodeBufferReader"),d=e("./Uint8ArrayReader");r.exports=function(_){var w=i.getTypeOf(_);return i.checkSupport(w),w!=="string"||l.uint8array?w==="nodebuffer"?new f(_):l.uint8array?new d(i.transformTo("uint8array",_)):new s(i.transformTo("array",_)):new c(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,r,a){a.LOCAL_FILE_HEADER="PK��",a.CENTRAL_FILE_HEADER="PK��",a.CENTRAL_DIRECTORY_END="PK��",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",a.ZIP64_CENTRAL_DIRECTORY_END="PK��",a.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,r,a){var i=e("./GenericWorker"),l=e("../utils");function s(c){i.call(this,"ConvertWorker to "+c),this.destType=c}l.inherits(s,i),s.prototype.processChunk=function(c){this.push({data:l.transformTo(this.destType,c.data),meta:c.meta})},r.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,r,a){var i=e("./GenericWorker"),l=e("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,i),s.prototype.processChunk=function(c){this.streamInfo.crc32=l(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,r,a){var i=e("../utils"),l=e("./GenericWorker");function s(c){l.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}i.inherits(s,l),s.prototype.processChunk=function(c){if(c){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+c.data.length}l.prototype.processChunk.call(this,c)},r.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,r,a){var i=e("../utils"),l=e("./GenericWorker");function s(c){l.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(d){f.dataIsReady=!0,f.data=d,f.max=d&&d.length||0,f.type=i.getTypeOf(d),f.isPaused||f._tickAndRepeat()},function(d){f.error(d)})}i.inherits(s,l),s.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,f);break;case"uint8array":c=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":c=this.data.slice(this.index,f)}return this.index=f,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,r,a){function i(l){this.name=l||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(l){this.emit("data",l)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(l){this.emit("error",l)}return!0},error:function(l){return!this.isFinished&&(this.isPaused?this.generatedError=l:(this.isFinished=!0,this.emit("error",l),this.previous&&this.previous.error(l),this.cleanUp()),!0)},on:function(l,s){return this._listeners[l].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(l,s){if(this._listeners[l])for(var c=0;c<this._listeners[l].length;c++)this._listeners[l][c].call(this,s)},pipe:function(l){return l.registerPrevious(this)},registerPrevious:function(l){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=l.streamInfo,this.mergeStreamInfo(),this.previous=l;var s=this;return l.on("data",function(c){s.processChunk(c)}),l.on("end",function(){s.end()}),l.on("error",function(c){s.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var l=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),l=!0),this.previous&&this.previous.resume(),!l},flush:function(){},processChunk:function(l){this.push(l)},withStreamInfo:function(l,s){return this.extraStreamInfo[l]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var l in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,l)&&(this.streamInfo[l]=this.extraStreamInfo[l])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var l="Worker "+this.name;return this.previous?this.previous+" -> "+l:l}},r.exports=i},{}],29:[function(e,r,a){var i=e("../utils"),l=e("./ConvertWorker"),s=e("./GenericWorker"),c=e("../base64"),f=e("../support"),d=e("../external"),_=null;if(f.nodestream)try{_=e("../nodejs/NodejsStreamOutputAdapter")}catch{}function w(x,b){return new d.Promise(function(N,v){var C=[],O=x._internalType,T=x._outputType,Z=x._mimeType;x.on("data",function(ot,et){C.push(ot),b&&b(et)}).on("error",function(ot){C=[],v(ot)}).on("end",function(){try{var ot=function(et,$,k){switch(et){case"blob":return i.newBlob(i.transformTo("arraybuffer",$),k);case"base64":return c.encode($);default:return i.transformTo(et,$)}}(T,function(et,$){var k,j=0,E=null,y=0;for(k=0;k<$.length;k++)y+=$[k].length;switch(et){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);case"uint8array":for(E=new Uint8Array(y),k=0;k<$.length;k++)E.set($[k],j),j+=$[k].length;return E;case"nodebuffer":return Buffer.concat($);default:throw new Error("concat : unsupported type '"+et+"'")}}(O,C),Z);N(ot)}catch(et){v(et)}C=[]}).resume()})}function h(x,b,N){var v=b;switch(b){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=b,this._mimeType=N,i.checkSupport(v),this._worker=x.pipe(new l(v)),x.lock()}catch(C){this._worker=new s("error"),this._worker.error(C)}}h.prototype={accumulate:function(x){return w(this,x)},on:function(x,b){var N=this;return x==="data"?this._worker.on(x,function(v){b.call(N,v.data,v.meta)}):this._worker.on(x,function(){i.delay(b,arguments,N)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(x){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},x)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,r,a){if(a.base64=!0,a.array=!0,a.string=!0,a.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a.nodebuffer=typeof Buffer<"u",a.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")a.blob=!1;else{var i=new ArrayBuffer(0);try{a.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var l=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);l.append(i),a.blob=l.getBlob("application/zip").size===0}catch{a.blob=!1}}}try{a.nodestream=!!e("readable-stream").Readable}catch{a.nodestream=!1}},{"readable-stream":16}],31:[function(e,r,a){for(var i=e("./utils"),l=e("./support"),s=e("./nodejsUtils"),c=e("./stream/GenericWorker"),f=new Array(256),d=0;d<256;d++)f[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;f[254]=f[254]=1;function _(){c.call(this,"utf-8 decode"),this.leftOver=null}function w(){c.call(this,"utf-8 encode")}a.utf8encode=function(h){return l.nodebuffer?s.newBufferFrom(h,"utf-8"):function(x){var b,N,v,C,O,T=x.length,Z=0;for(C=0;C<T;C++)(64512&(N=x.charCodeAt(C)))==55296&&C+1<T&&(64512&(v=x.charCodeAt(C+1)))==56320&&(N=65536+(N-55296<<10)+(v-56320),C++),Z+=N<128?1:N<2048?2:N<65536?3:4;for(b=l.uint8array?new Uint8Array(Z):new Array(Z),C=O=0;O<Z;C++)(64512&(N=x.charCodeAt(C)))==55296&&C+1<T&&(64512&(v=x.charCodeAt(C+1)))==56320&&(N=65536+(N-55296<<10)+(v-56320),C++),N<128?b[O++]=N:(N<2048?b[O++]=192|N>>>6:(N<65536?b[O++]=224|N>>>12:(b[O++]=240|N>>>18,b[O++]=128|N>>>12&63),b[O++]=128|N>>>6&63),b[O++]=128|63&N);return b}(h)},a.utf8decode=function(h){return l.nodebuffer?i.transformTo("nodebuffer",h).toString("utf-8"):function(x){var b,N,v,C,O=x.length,T=new Array(2*O);for(b=N=0;b<O;)if((v=x[b++])<128)T[N++]=v;else if(4<(C=f[v]))T[N++]=65533,b+=C-1;else{for(v&=C===2?31:C===3?15:7;1<C&&b<O;)v=v<<6|63&x[b++],C--;1<C?T[N++]=65533:v<65536?T[N++]=v:(v-=65536,T[N++]=55296|v>>10&1023,T[N++]=56320|1023&v)}return T.length!==N&&(T.subarray?T=T.subarray(0,N):T.length=N),i.applyFromCharCode(T)}(h=i.transformTo(l.uint8array?"uint8array":"array",h))},i.inherits(_,c),_.prototype.processChunk=function(h){var x=i.transformTo(l.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(l.uint8array){var b=x;(x=new Uint8Array(b.length+this.leftOver.length)).set(this.leftOver,0),x.set(b,this.leftOver.length)}else x=this.leftOver.concat(x);this.leftOver=null}var N=function(C,O){var T;for((O=O||C.length)>C.length&&(O=C.length),T=O-1;0<=T&&(192&C[T])==128;)T--;return T<0||T===0?O:T+f[C[T]]>O?T:O}(x),v=x;N!==x.length&&(l.uint8array?(v=x.subarray(0,N),this.leftOver=x.subarray(N,x.length)):(v=x.slice(0,N),this.leftOver=x.slice(N,x.length))),this.push({data:a.utf8decode(v),meta:h.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=_,i.inherits(w,c),w.prototype.processChunk=function(h){this.push({data:a.utf8encode(h.data),meta:h.meta})},a.Utf8EncodeWorker=w},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,r,a){var i=e("./support"),l=e("./base64"),s=e("./nodejsUtils"),c=e("./external");function f(b){return b}function d(b,N){for(var v=0;v<b.length;++v)N[v]=255&b.charCodeAt(v);return N}e("setimmediate"),a.newBlob=function(b,N){a.checkSupport("blob");try{return new Blob([b],{type:N})}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(b),v.getBlob(N)}catch{throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(b,N,v){var C=[],O=0,T=b.length;if(T<=v)return String.fromCharCode.apply(null,b);for(;O<T;)N==="array"||N==="nodebuffer"?C.push(String.fromCharCode.apply(null,b.slice(O,Math.min(O+v,T)))):C.push(String.fromCharCode.apply(null,b.subarray(O,Math.min(O+v,T)))),O+=v;return C.join("")},stringifyByChar:function(b){for(var N="",v=0;v<b.length;v++)N+=String.fromCharCode(b[v]);return N},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function w(b){var N=65536,v=a.getTypeOf(b),C=!0;if(v==="uint8array"?C=_.applyCanBeUsed.uint8array:v==="nodebuffer"&&(C=_.applyCanBeUsed.nodebuffer),C)for(;1<N;)try{return _.stringifyByChunk(b,v,N)}catch{N=Math.floor(N/2)}return _.stringifyByChar(b)}function h(b,N){for(var v=0;v<b.length;v++)N[v]=b[v];return N}a.applyFromCharCode=w;var x={};x.string={string:f,array:function(b){return d(b,new Array(b.length))},arraybuffer:function(b){return x.string.uint8array(b).buffer},uint8array:function(b){return d(b,new Uint8Array(b.length))},nodebuffer:function(b){return d(b,s.allocBuffer(b.length))}},x.array={string:w,array:f,arraybuffer:function(b){return new Uint8Array(b).buffer},uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return s.newBufferFrom(b)}},x.arraybuffer={string:function(b){return w(new Uint8Array(b))},array:function(b){return h(new Uint8Array(b),new Array(b.byteLength))},arraybuffer:f,uint8array:function(b){return new Uint8Array(b)},nodebuffer:function(b){return s.newBufferFrom(new Uint8Array(b))}},x.uint8array={string:w,array:function(b){return h(b,new Array(b.length))},arraybuffer:function(b){return b.buffer},uint8array:f,nodebuffer:function(b){return s.newBufferFrom(b)}},x.nodebuffer={string:w,array:function(b){return h(b,new Array(b.length))},arraybuffer:function(b){return x.nodebuffer.uint8array(b).buffer},uint8array:function(b){return h(b,new Uint8Array(b.length))},nodebuffer:f},a.transformTo=function(b,N){if(N=N||"",!b)return N;a.checkSupport(b);var v=a.getTypeOf(N);return x[v][b](N)},a.resolve=function(b){for(var N=b.split("/"),v=[],C=0;C<N.length;C++){var O=N[C];O==="."||O===""&&C!==0&&C!==N.length-1||(O===".."?v.pop():v.push(O))}return v.join("/")},a.getTypeOf=function(b){return typeof b=="string"?"string":Object.prototype.toString.call(b)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(b)?"nodebuffer":i.uint8array&&b instanceof Uint8Array?"uint8array":i.arraybuffer&&b instanceof ArrayBuffer?"arraybuffer":void 0},a.checkSupport=function(b){if(!i[b.toLowerCase()])throw new Error(b+" is not supported by this platform")},a.MAX_VALUE_16BITS=65535,a.MAX_VALUE_32BITS=-1,a.pretty=function(b){var N,v,C="";for(v=0;v<(b||"").length;v++)C+="\\x"+((N=b.charCodeAt(v))<16?"0":"")+N.toString(16).toUpperCase();return C},a.delay=function(b,N,v){setImmediate(function(){b.apply(v||null,N||[])})},a.inherits=function(b,N){function v(){}v.prototype=N.prototype,b.prototype=new v},a.extend=function(){var b,N,v={};for(b=0;b<arguments.length;b++)for(N in arguments[b])Object.prototype.hasOwnProperty.call(arguments[b],N)&&v[N]===void 0&&(v[N]=arguments[b][N]);return v},a.prepareContent=function(b,N,v,C,O){return c.Promise.resolve(N).then(function(T){return i.blob&&(T instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(T))!==-1)&&typeof FileReader<"u"?new c.Promise(function(Z,ot){var et=new FileReader;et.onload=function($){Z($.target.result)},et.onerror=function($){ot($.target.error)},et.readAsArrayBuffer(T)}):T}).then(function(T){var Z=a.getTypeOf(T);return Z?(Z==="arraybuffer"?T=a.transformTo("uint8array",T):Z==="string"&&(O?T=l.decode(T):v&&C!==!0&&(T=function(ot){return d(ot,i.uint8array?new Uint8Array(ot.length):new Array(ot.length))}(T))),T):c.Promise.reject(new Error("Can't read the data of '"+b+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,r,a){var i=e("./reader/readerFor"),l=e("./utils"),s=e("./signature"),c=e("./zipEntry"),f=e("./support");function d(_){this.files=[],this.loadOptions=_}d.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var w=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+l.pretty(w)+", expected "+l.pretty(_)+")")}},isSignature:function(_,w){var h=this.reader.index;this.reader.setIndex(_);var x=this.reader.readString(4)===w;return this.reader.setIndex(h),x},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var _=this.reader.readData(this.zipCommentLength),w=f.uint8array?"uint8array":"array",h=l.transformTo(w,_);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var _,w,h,x=this.zip64EndOfCentralSize-44;0<x;)_=this.reader.readInt(2),w=this.reader.readInt(4),h=this.reader.readData(w),this.zip64ExtensibleData[_]={id:_,length:w,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,w;for(_=0;_<this.files.length;_++)w=this.files[_],this.reader.setIndex(w.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),w.readLocalPart(this.reader),w.handleUTF8(),w.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(_=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var _=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
13ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(_);var w=_;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===l.MAX_VALUE_16BITS||this.diskWithCentralDirStart===l.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===l.MAX_VALUE_16BITS||this.centralDirRecords===l.MAX_VALUE_16BITS||this.centralDirSize===l.MAX_VALUE_32BITS||this.centralDirOffset===l.MAX_VALUE_32BITS){if(this.zip64=!0,(_=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var x=w-h;if(0<x)this.isSignature(w,s.CENTRAL_FILE_HEADER)||(this.reader.zero=x);else if(x<0)throw new Error("Corrupted zip: missing "+Math.abs(x)+" bytes.")},prepareReader:function(_){this.reader=i(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,r,a){var i=e("./reader/readerFor"),l=e("./utils"),s=e("./compressedObject"),c=e("./crc32"),f=e("./utf8"),d=e("./compressions"),_=e("./support");function w(h,x){this.options=h,this.loadOptions=x}w.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var x,b;if(h.skip(22),this.fileNameLength=h.readInt(2),b=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(b),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((x=function(N){for(var v in d)if(Object.prototype.hasOwnProperty.call(d,v)&&d[v].magic===N)return d[v];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+l.pretty(this.compressionMethod)+" unknown (inner file : "+l.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,x,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var x=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(x),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=i(this.extraFields[1].value);this.uncompressedSize===l.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===l.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===l.MAX_VALUE_32BITS&&
vendor: 6,780 bytes, line 13
13(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===l.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var x,b,N,v=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<v;)x=h.readInt(2),b=h.readInt(2),N=h.readData(b),this.extraFields[x]={id:x,length:b,value:N};h.setIndex(v)},handleUTF8:function(){var h=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var x=this.findExtraFieldUnicodePath();if(x!==null)this.fileNameStr=x;else{var b=l.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(b)}var N=this.findExtraFieldUnicodeComment();if(N!==null)this.fileCommentStr=N;else{var v=l.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(v)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var x=i(h.value);return x.readInt(1)!==1||c(this.fileName)!==x.readInt(4)?null:f.utf8decode(x.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var x=i(h.value);return x.readInt(1)!==1||c(this.fileComment)!==x.readInt(4)?null:f.utf8decode(x.readData(h.length-5))}return null}},r.exports=w},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,r,a){function i(x,b,N){this.name=x,this.dir=N.dir,this.date=N.date,this.comment=N.comment,this.unixPermissions=N.unixPermissions,this.dosPermissions=N.dosPermissions,this._data=b,this._dataBinary=N.binary,this.options={compression:N.compression,compressionOptions:N.compressionOptions}}var l=e("./stream/StreamHelper"),s=e("./stream/DataWorker"),c=e("./utf8"),f=e("./compressedObject"),d=e("./stream/GenericWorker");i.prototype={internalStream:function(x){var b=null,N="string";try{if(!x)throw new Error("No output type specified.");var v=(N=x.toLowerCase())==="string"||N==="text";N!=="binarystring"&&N!=="text"||(N="string"),b=this._decompressWorker();var C=!this._dataBinary;C&&!v&&(b=b.pipe(new c.Utf8EncodeWorker)),!C&&v&&(b=b.pipe(new c.Utf8DecodeWorker))}catch(O){(b=new d("error")).error(O)}return new l(b,N,"")},async:function(x,b){return this.internalStream(x).accumulate(b)},nodeStream:function(x,b){return this.internalStream(x||"nodebuffer").toNodejsStream(b)},_compressWorker:function(x,b){if(this._data instanceof f&&this._data.compression.magic===x.magic)return this._data.getCompressedWorker();var N=this._decompressWorker();return this._dataBinary||(N=N.pipe(new c.Utf8EncodeWorker)),f.createWorkerFrom(N,x,b)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof d?this._data:new s(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],w=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<_.length;h++)i.prototype[_[h]]=w;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,r,a){(function(i){var l,s,c=i.MutationObserver||i.WebKitMutationObserver;if(c){var f=0,d=new c(x),_=i.document.createTextNode("");d.observe(_,{characterData:!0}),l=function(){_.data=f=++f%2}}else if(i.setImmediate||i.MessageChannel===void 0)l="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var b=i.document.createElement("script");b.onreadystatechange=function(){x(),b.onreadystatechange=null,b.parentNode.removeChild(b),b=null},i.document.documentElement.appendChild(b)}:function(){setTimeout(x,0)};else{var w=new i.MessageChannel;w.port1.onmessage=x,l=function(){w.port2.postMessage(0)}}var h=[];function x(){var b,N;s=!0;for(var v=h.length;v;){for(N=h,h=[],b=-1;++b<v;)N[b]();v=h.length}s=!1}r.exports=function(b){h.push(b)!==1||s||l()}}).call(this,typeof Ps<"u"?Ps:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(e,r,a){var i=e("immediate");function l(){}var s={},c=["REJECTED"],f=["FULFILLED"],d=["PENDING"];function _(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,v!==l&&b(this,v)}function w(v,C,O){this.promise=v,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof O=="function"&&(this.onRejected=O,this.callRejected=this.otherCallRejected)}function h(v,C,O){i(function(){var T;try{T=C(O)}catch(Z){return s.reject(v,Z)}T===v?s.reject(v,new TypeError("Cannot resolve promise with itself")):s.resolve(v,T)})}function x(v){var C=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof C=="function")return function(){C.apply(v,arguments)}}function b(v,C){var O=!1;function T(et){O||(O=!0,s.reject(v,et))}function Z(et){O||(O=!0,s.resolve(v,et))}var ot=N(function(){C(Z,T)});ot.status==="error"&&T(ot.value)}function N(v,C){var O={};try{O.value=v(C),O.status="success"}catch(T){O.status="error",O.value=T}return O}(r.exports=_).prototype.finally=function(v){if(typeof v!="function")return this;var C=this.constructor;return this.then(function(O){return C.resolve(v()).then(function(){return O})},function(O){return C.resolve(v()).then(function(){throw O})})},_.prototype.catch=function(v){return this.then(null,v)},_.prototype.then=function(v,C){if(typeof v!="function"&&this.state===f||typeof C!="function"&&this.state===c)return this;var O=new this.constructor(l);return this.state!==d?h(O,this.state===f?v:C,this.outcome):this.queue.push(new w(O,v,C)),O},w.prototype.callFulfilled=function(v){s.resolve(this.promise,v)},w.prototype.otherCallFulfilled=function(v){h(this.promise,this.onFulfilled,v)},w.prototype.callRejected=function(v){s.reject(this.promise,v)},w.prototype.otherCallRejected=function(v){h(this.promise,this.onRejected,v)},s.resolve=function(v,C){var O=N(x,C);if(O.status==="error")return s.reject(v,O.value);var T=O.value;if(T)b(v,T);else{v.state=f,v.outcome=C;for(var Z=-1,ot=v.queue.length;++Z<ot;)v.queue[Z].callFulfilled(C)}return v},s.reject=function(v,C){v.state=c,v.outcome=C;for(var O=-1,T=v.queue.length;++O<T;)v.queue[O].callRejected(C);return v},_.resolve=function(v){return v instanceof this?v:s.resolve(new this(l),v)},_.reject=function(v){var C=new this(l);return s.reject(C,v)},_.all=function(v){var C=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=v.length,T=!1;if(!O)return this.resolve([]);for(var Z=new Array(O),ot=0,et=-1,$=new this(l);++et<O;)k(v[et],et);return $;function k(j,E){C.resolve(j).then(function(y){Z[E]=y,++ot!==O||T||(T=!0,s.resolve($,Z))},function(y){T||(T=!0,s.reject($,y))})}}
vendor: 4,128 bytes, line 13
13,_.race=function(v){var C=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var O=v.length,T=!1;if(!O)return this.resolve([]);for(var Z=-1,ot=new this(l);++Z<O;)et=v[Z],C.resolve(et).then(function($){T||(T=!0,s.resolve(ot,$))},function($){T||(T=!0,s.reject(ot,$))});var et;return ot}},{immediate:36}],38:[function(e,r,a){var i={};(0,e("./lib/utils/common").assign)(i,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,r,a){var i=e("./zlib/deflate"),l=e("./utils/common"),s=e("./utils/strings"),c=e("./zlib/messages"),f=e("./zlib/zstream"),d=Object.prototype.toString,_=0,w=-1,h=0,x=8;function b(v){if(!(this instanceof b))return new b(v);this.options=l.assign({level:w,method:x,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},v||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var O=i.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(O!==_)throw new Error(c[O]);if(C.header&&i.deflateSetHeader(this.strm,C.header),C.dictionary){var T;if(T=typeof C.dictionary=="string"?s.string2buf(C.dictionary):d.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(O=i.deflateSetDictionary(this.strm,T))!==_)throw new Error(c[O]);this._dict_set=!0}}function N(v,C){var O=new b(C);if(O.push(v,!0),O.err)throw O.msg||c[O.err];return O.result}b.prototype.push=function(v,C){var O,T,Z=this.strm,ot=this.options.chunkSize;if(this.ended)return!1;T=C===~~C?C:C===!0?4:0,typeof v=="string"?Z.input=s.string2buf(v):d.call(v)==="[object ArrayBuffer]"?Z.input=new Uint8Array(v):Z.input=v,Z.next_in=0,Z.avail_in=Z.input.length;do{if(Z.avail_out===0&&(Z.output=new l.Buf8(ot),Z.next_out=0,Z.avail_out=ot),(O=i.deflate(Z,T))!==1&&O!==_)return this.onEnd(O),!(this.ended=!0);Z.avail_out!==0&&(Z.avail_in!==0||T!==4&&T!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(l.shrinkBuf(Z.output,Z.next_out))):this.onData(l.shrinkBuf(Z.output,Z.next_out)))}while((0<Z.avail_in||Z.avail_out===0)&&O!==1);return T===4?(O=i.deflateEnd(this.strm),this.onEnd(O),this.ended=!0,O===_):T!==2||(this.onEnd(_),!(Z.avail_out=0))},b.prototype.onData=function(v){this.chunks.push(v)},b.prototype.onEnd=function(v){v===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},a.Deflate=b,a.deflate=N,a.deflateRaw=function(v,C){return(C=C||{}).raw=!0,N(v,C)},a.gzip=function(v,C){return(C=C||{}).gzip=!0,N(v,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,r,a){var i=e("./zlib/inflate"),l=e("./utils/common"),s=e("./utils/strings"),c=e("./zlib/constants"),f=e("./zlib/messages"),d=e("./zlib/zstream"),_=e("./zlib/gzheader"),w=Object.prototype.toString;function h(b){if(!(this instanceof h))return new h(b);this.options=l.assign({chunkSize:16384,windowBits:0,to:""},b||{});var N=this.options;N.raw&&0<=N.windowBits&&N.windowBits<16&&(N.windowBits=-N.windowBits,N.windowBits===0&&(N.windowBits=-15)),!(0<=N.windowBits&&N.windowBits<16)||b&&b.windowBits||(N.windowBits+=32),15<N.windowBits&&N.windowBits<48&&!(15&N.windowBits)&&(N.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var v=i.inflateInit2(this.strm,N.windowBits);if(v!==c.Z_OK)throw new Error(f[v]);this.header=new _,i.inflateGetHeader(this.strm,this.header)}function x(b,N){var v=new h(N);if(v.push(b,!0),v.err)throw v.msg||f[v.err];return v.result}h.prototype.push=function(b,N){var v,C,O,T,Z,ot,et=this.strm,$=this.options.chunkSize,k=this.options.dictionary,j=!1;if(this.ended)return!1;C=N===~~N?N:N===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof b=="string"?et.input=s.binstring2buf(b):w.call(b)==="[object ArrayBuffer]"?et.input=new
vendor: 4,618 bytes, line 13
13Uint8Array(b):et.input=b,et.next_in=0,et.avail_in=et.input.length;do{if(et.avail_out===0&&(et.output=new l.Buf8($),et.next_out=0,et.avail_out=$),(v=i.inflate(et,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&k&&(ot=typeof k=="string"?s.string2buf(k):w.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,v=i.inflateSetDictionary(this.strm,ot)),v===c.Z_BUF_ERROR&&j===!0&&(v=c.Z_OK,j=!1),v!==c.Z_STREAM_END&&v!==c.Z_OK)return this.onEnd(v),!(this.ended=!0);et.next_out&&(et.avail_out!==0&&v!==c.Z_STREAM_END&&(et.avail_in!==0||C!==c.Z_FINISH&&C!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(O=s.utf8border(et.output,et.next_out),T=et.next_out-O,Z=s.buf2string(et.output,O),et.next_out=T,et.avail_out=$-T,T&&l.arraySet(et.output,et.output,O,T,0),this.onData(Z)):this.onData(l.shrinkBuf(et.output,et.next_out)))),et.avail_in===0&&et.avail_out===0&&(j=!0)}while((0<et.avail_in||et.avail_out===0)&&v!==c.Z_STREAM_END);return v===c.Z_STREAM_END&&(C=c.Z_FINISH),C===c.Z_FINISH?(v=i.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===c.Z_OK):C!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(et.avail_out=0))},h.prototype.onData=function(b){this.chunks.push(b)},h.prototype.onEnd=function(b){b===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},a.Inflate=h,a.inflate=x,a.inflateRaw=function(b,N){return(N=N||{}).raw=!0,x(b,N)},a.ungzip=x},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,r,a){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";a.assign=function(c){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var d=f.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var _ in d)d.hasOwnProperty(_)&&(c[_]=d[_])}}return c},a.shrinkBuf=function(c,f){return c.length===f?c:c.subarray?c.subarray(0,f):(c.length=f,c)};var l={arraySet:function(c,f,d,_,w){if(f.subarray&&c.subarray)c.set(f.subarray(d,d+_),w);else for(var h=0;h<_;h++)c[w+h]=f[d+h]},flattenChunks:function(c){var f,d,_,w,h,x;for(f=_=0,d=c.length;f<d;f++)_+=c[f].length;for(x=new Uint8Array(_),f=w=0,d=c.length;f<d;f++)h=c[f],x.set(h,w),w+=h.length;return x}},s={arraySet:function(c,f,d,_,w){for(var h=0;h<_;h++)c[w+h]=f[d+h]},flattenChunks:function(c){return[].concat.apply([],c)}};a.setTyped=function(c){c?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,l)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,s))},a.setTyped(i)},{}],42:[function(e,r,a){var i=e("./common"),l=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{l=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var c=new i.Buf8(256),f=0;f<256;f++)c[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function d(_,w){if(w<65537&&(_.subarray&&s||!_.subarray&&l))return String.fromCharCode.apply(null,i.shrinkBuf(_,w));for(var h="",x=0;x<w;x++)h+=String.fromCharCode(_[x]);return h}c[254]=c[254]=1,a.string2buf=function(_){var w,h,x,b,N,v=_.length,C=0;for(b=0;b<v;b++)(64512&(h=_.charCodeAt(b)))==55296&&b+1<v&&(64512&(x=_.charCodeAt(b+1)))==56320&&(h=65536+(h-55296<<10)+(x-56320),b++),C+=h<128?1:h<2048?2:h<65536?3:4;for(w=new i.Buf8(C),b=N=0;N<C;b++)(64512&(h=_.charCodeAt(b)))==55296&&b+1<v&&(64512&(x=_.charCodeAt(b+1)))==56320&&(h=65536+(h-55296<<10)+(x-56320),b++),h<128?w[N++]=h:(h<2048?w[N++]=192|h>>>6:(h<65536?w[N++]=224|h>>>12:(w[N++]=240|h>>>18,w[N++]=128|h>>>12&63),w[N++]=128|h>>>6&63),w[N++]=128|63&h);return w},a.buf2binstring=function(_){return d(_,_.length)},a.binstring2buf=function(_){for(var w=new i.Buf8(_.length),h=0,x=w.length;h<x;h++)w[h]=_.charCodeAt(h);return w},a.buf2string=function(_,w){var h,x,b,N,v=w||_.length,C=new Array(2*v);for(h=x=0;h<v;)if((b=_[h++])<128)C[x++]=b;else if(4<(N=c[b]))C[x++]=65533,h+=N-1;else{for(b&=N===2?31:N===3?15:7;1<N&&h<v;)b=b<<6|63&_[h++],N--;1<N?C[x++]=65533:b<65536?C[x++]=b:(b-=65536,C[x++]=55296|b>>10&1023,C[x++]=56320|1023&b)}return d(C,x)},a.utf8border=function(_,w){var h;for((w=w||_.length)>_.length&&(w=_.length),h=w-1;0<=h&&(192&_[h])==128;)h--;return h<0||h===0?w:h+c[_[h]]>w?h:w}},{"./common":41}],43:[function(e,r,a){r.exports=function(i,l,s,c){for(var f=65535&i|0,d=i>>>16&65535|0,_=0;s!==0;){for(s-=_=2e3<s?2e3:s;d=d+(f=f+l[c++]|0)|0,--_;);f%=65521,d%=65521}return f|d<<16|0}},{}],44:[function(e,r,a){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ER
vendor: 4,218 bytes, line 13
13ROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,r,a){var i=function(){for(var l,s=[],c=0;c<256;c++){l=c;for(var f=0;f<8;f++)l=1&l?3988292384^l>>>1:l>>>1;s[c]=l}return s}();r.exports=function(l,s,c,f){var d=i,_=f+c;l^=-1;for(var w=f;w<_;w++)l=l>>>8^d[255&(l^s[w])];return-1^l}},{}],46:[function(e,r,a){var i,l=e("../utils/common"),s=e("./trees"),c=e("./adler32"),f=e("./crc32"),d=e("./messages"),_=0,w=4,h=0,x=-2,b=-1,N=4,v=2,C=8,O=9,T=286,Z=30,ot=19,et=2*T+1,$=15,k=3,j=258,E=j+k+1,y=42,R=113,g=1,X=2,ft=3,at=4;function nt(L,I){return L.msg=d[I],I}function it(L){return(L<<1)-(4<L?9:0)}function mt(L){for(var I=L.length;0<=--I;)L[I]=0}function tt(L){var I=L.state,rt=I.pending;rt>L.avail_out&&(rt=L.avail_out),rt!==0&&(l.arraySet(L.output,I.pending_buf,I.pending_out,rt,L.next_out),L.next_out+=rt,I.pending_out+=rt,L.total_out+=rt,L.avail_out-=rt,I.pending-=rt,I.pending===0&&(I.pending_out=0))}function A(L,I){s._tr_flush_block(L,0<=L.block_start?L.block_start:-1,L.strstart-L.block_start,I),L.block_start=L.strstart,tt(L.strm)}function U(L,I){L.pending_buf[L.pending++]=I}function M(L,I){L.pending_buf[L.pending++]=I>>>8&255,L.pending_buf[L.pending++]=255&I}function K(L,I){var rt,W,q=L.max_chain_length,G=L.strstart,bt=L.prev_length,wt=L.nice_match,ct=L.strstart>L.w_size-E?L.strstart-(L.w_size-E):0,St=L.window,Dt=L.w_mask,Et=L.prev,Ot=L.strstart+j,qt=St[G+bt-1],zt=St[G+bt];L.prev_length>=L.good_match&&(q>>=2),wt>L.lookahead&&(wt=L.lookahead);do if(St[(rt=I)+bt]===zt&&St[rt+bt-1]===qt&&St[rt]===St[G]&&St[++rt]===St[G+1]){G+=2,rt++;do;while(St[++G]===St[++rt]&&St[++G]===St[++rt]&&St[++G]===St[++rt]&&St[++G]===St[++rt]&&St[++G]===St[++rt]&&St[++G]===St[++rt]&&St[++G]===St[++rt]&&St[++G]===St[++rt]&&G<Ot);if(W=j-(Ot-G),G=Ot-j,bt<W){if(L.match_start=I,wt<=(bt=W))break;qt=St[G+bt-1],zt=St[G+bt]}}while((I=Et[I&Dt])>ct&&--q!=0);return bt<=L.lookahead?bt:L.lookahead}function st(L){var I,rt,W,q,G,bt,wt,ct,St,Dt,Et=L.w_size;do{if(q=L.window_size-L.lookahead-L.strstart,L.strstart>=Et+(Et-E)){for(l.arraySet(L.window,L.window,Et,Et,0),L.match_start-=Et,L.strstart-=Et,L.block_start-=Et,I=rt=L.hash_size;W=L.head[--I],L.head[I]=Et<=W?W-Et:0,--rt;);for(I=rt=Et;W=L.prev[--I],L.prev[I]=Et<=W?W-Et:0,--rt;);q+=Et}if(L.strm.avail_in===0)break;if(bt=L.strm,wt=L.window,ct=L.strstart+L.lookahead,St=q,Dt=void 0,Dt=bt.avail_in,St<Dt&&(Dt=St),rt=Dt===0?0:(bt.avail_in-=Dt,l.arraySet(wt,bt.input,bt.next_in,Dt,ct),bt.state.wrap===1?bt.adler=c(bt.adler,wt,Dt,ct):bt.state.wrap===2&&(bt.adler=f(bt.adler,wt,Dt,ct)),bt.next_in+=Dt,bt.total_in+=Dt,Dt),L.lookahead+=rt,L.lookahead+L.insert>=k)for(G=L.strstart-L.insert,L.ins_h=L.window[G],L.ins_h=(L.ins_h<<L.hash_shift^L.window[G+1])&L.hash_mask;L.insert&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[G+k-1])&L.hash_mask,L.prev[G&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=G,G++,L.insert--,!(L.lookahead+L.insert<k)););}while(L.lookahead<E&&L.strm.avail_in!==0)}function dt(L,I){for(var rt,W;;){if(L.lookahead<E){if(st(L),L.lookahead<E&&I===_)return g;if(L.lookahead===0)break}if(rt=0,L.lookahead>=k&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+k-1])&L.hash_mask,rt=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),rt!==0&&L.strstart-rt<=L.w_size-E&&(L.match_length=K(L,rt)),L.match_length>=k)if(W=s._tr_tally(L,L.strstart-L.match_start,L.match_length-k),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=k){for(L.match_length--;L.strstart++,L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+k-1])&L.hash_mask,rt=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart,--L.match_length!=0;);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+1])&L.hash_mask;else W=s._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(W&&(A(L,!1),L.strm.avail_out===0))return g}return L.insert=L.strstart<k-1?L.strstart:k-1,I===w?(A(L,!0),L.strm.avail_out===0?ft:at):L.last_lit&&(A(L,!1),L.strm.avail_out===0)?g:X}function vt(L,I){for(var rt,W,q;;
vendor: 10,314 bytes, line 13
13){if(L.lookahead<E){if(st(L),L.lookahead<E&&I===_)return g;if(L.lookahead===0)break}if(rt=0,L.lookahead>=k&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+k-1])&L.hash_mask,rt=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=k-1,rt!==0&&L.prev_length<L.max_lazy_match&&L.strstart-rt<=L.w_size-E&&(L.match_length=K(L,rt),L.match_length<=5&&(L.strategy===1||L.match_length===k&&4096<L.strstart-L.match_start)&&(L.match_length=k-1)),L.prev_length>=k&&L.match_length<=L.prev_length){for(q=L.strstart+L.lookahead-k,W=s._tr_tally(L,L.strstart-1-L.prev_match,L.prev_length-k),L.lookahead-=L.prev_length-1,L.prev_length-=2;++L.strstart<=q&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+k-1])&L.hash_mask,rt=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),--L.prev_length!=0;);if(L.match_available=0,L.match_length=k-1,L.strstart++,W&&(A(L,!1),L.strm.avail_out===0))return g}else if(L.match_available){if((W=s._tr_tally(L,0,L.window[L.strstart-1]))&&A(L,!1),L.strstart++,L.lookahead--,L.strm.avail_out===0)return g}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(W=s._tr_tally(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<k-1?L.strstart:k-1,I===w?(A(L,!0),L.strm.avail_out===0?ft:at):L.last_lit&&(A(L,!1),L.strm.avail_out===0)?g:X}function ut(L,I,rt,W,q){this.good_length=L,this.max_lazy=I,this.nice_length=rt,this.max_chain=W,this.func=q}function yt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new l.Buf16(2*et),this.dyn_dtree=new l.Buf16(2*(2*Z+1)),this.bl_tree=new l.Buf16(2*(2*ot+1)),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new l.Buf16($+1),this.heap=new l.Buf16(2*T+1),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new l.Buf16(2*T+1),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Lt(L){var I;return L&&L.state?(L.total_in=L.total_out=0,L.data_type=v,(I=L.state).pending=0,I.pending_out=0,I.wrap<0&&(I.wrap=-I.wrap),I.status=I.wrap?y:R,L.adler=I.wrap===2?0:1,I.last_flush=_,s._tr_init(I),h):nt(L,x)}function Ct(L){var I=Lt(L);return I===h&&function(rt){rt.window_size=2*rt.w_size,mt(rt.head),rt.max_lazy_match=i[rt.level].max_lazy,rt.good_match=i[rt.level].good_length,rt.nice_match=i[rt.level].nice_length,rt.max_chain_length=i[rt.level].max_chain,rt.strstart=0,rt.block_start=0,rt.lookahead=0,rt.insert=0,rt.match_length=rt.prev_length=k-1,rt.match_available=0,rt.ins_h=0}(L.state),I}function Rt(L,I,rt,W,q,G){if(!L)return x;var bt=1;if(I===b&&(I=6),W<0?(bt=0,W=-W):15<W&&(bt=2,W-=16),q<1||O<q||rt!==C||W<8||15<W||I<0||9<I||G<0||N<G)return nt(L,x);W===8&&(W=9);var wt=new yt;return(L.state=wt).strm=L,wt.wrap=bt,wt.gzhead=null,wt.w_bits=W,wt.w_size=1<<wt.w_bits,wt.w_mask=wt.w_size-1,wt.hash_bits=q+7,wt.hash_size=1<<wt.hash_bits,wt.hash_mask=wt.hash_size-1,wt.hash_shift=~~((wt.hash_bits+k-1)/k),wt.window=new l.Buf8(2*wt.w_size),wt.head=new l.Buf16(wt.hash_size),wt.prev=new l.Buf16(wt.w_size),wt.lit_bufsize=1<<q+6,wt.pending_buf_size=4*wt.lit_bufsize,wt.pending_buf=new l.Buf8(wt.pending_buf_size),wt.d_buf=1*wt.lit_bufsize,wt.l_buf=3*wt.lit_bufsize,wt.level=I,wt.strategy=G,wt.method=rt,Ct(L)}i=[new ut(0,0,0,0,function(L,I){var rt=65535;for(rt>L.pending_buf_size-5&&(rt=L.pending_buf_size-5);;){if(L.lookahead<=1){if(st(L),L.lookahead===0&&I===_)return g;if(L.lookahead===0)break}L.strstart+=L.lookahead,L.lookahead=0;var W=L.block_start+rt;if((L.strstart===0||L.strstart>=W)&&(L.lookahead=L.strstart-W,L.strstart=W,A(L,!1),L.strm.avail_out===0)||L.strstart-L.block_start>=L.w_size-E&&(A(L,!1),L.strm.avail_out===0))return g}return L.insert=0,I===w?(A(L,!0),L.strm.avail_out===0?ft:at):(L.strstart>L.block_start&&(A(L,!1),L.strm.avail_out),g)}),new ut(4,4,8,4,dt),new ut(4,5,16,8,dt),new ut(4,6,32,32,dt),new ut(4,4,16,16,vt),new ut(8,16,32,32,vt),new ut(8,16,128,128,vt),new ut(8,32,128,256,vt),new ut(32,128,258,1024,vt),new ut(32,258,258,4096,vt)],a.deflateInit=function(L,I){return Rt(L,I,C,15,8,0)},a.deflateInit2=Rt,a.deflateReset=Ct,a.deflateResetKeep=Lt,a.deflateSetHeader=function(L,I){return L&&L.state?L.state.wrap!==2?x:(L.state.gzhead=I,h):x},a.deflate=function(L,I){var rt,W,q,G;if(!L||!L.state||5<I||I<0)return L?nt(L,x):x;if(W=L.state,!L.output||!L.input&&L.avail_in!==0||W.status===666&&I!==w)return nt(L,L.avail_out===0?-5:x);if(W.strm=L,rt=W.last_flush,W.last_flush=I,W.status===y)if(W.wrap===2)L.adler=0,U(W,31),U(W,139),U(W,8),W.gzhead?(U(W,(W.gzhead.text?1:0)+(W.gzhead.hcrc?2:0)+(W.gzhead.extra?4:0)+(W.gzhead.name?8:0)+(W.gzhead.comment?16:0)),U(W,255&W.gzhead.time),U(W,W.gzhead.time>>8&255),U(W,W.gzhead.time>>16&255),U(W,W.gzhead.time>>24&255),U(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),U(W,255&W.gzhead.os),W.gzhead.extra&&W.gzhead.extra.length&&(U(W,255&W.gzhead.extra.length),U(W,W.gzhead.extra.length>>8&255)),W.gzhead.hcrc&&(L.adler=f(L.adler,W.pending_buf,W.pending,0)),W.gzindex=0,W.status=69):(U(W,0),U(W,0),U(W,0),U(W,0),U(W,0),U(W,W.level===9?2:2<=W.strategy||W.level<2?4:0),U(W,3),W.status=R);else{var bt=C+(W.w_bits-8<<4)<<8;bt|=(2<=W.strategy||W.level<2?0:W.level<6?1:W.level===6?2:3)<<6,W.strstart!==0&&(bt|=32),bt+=31-bt%31,W.status=R,M(W,bt),W.strstart!==0&&(M(W,L.adler>>>16),M(W,65535&L.adler)),L.adler=1}if(W.status===69)if(W.gzhead.extra){for(q=W.pending;W.gzindex<(65535&W.gzhead.extra.length)&&(W.pending!==W.pending_buf_size||(W.gzhead.hcrc&&W.pending>q&&(L.adler=f(L.adler,W.pending_buf,W.pending-q,q)),tt(L),q=W.pending,W.pending!==W.pending_buf_size));)U(W,255&W.gzhead.extra[W.gzindex]),W.gzindex++;W.gzhead.hcrc&&W.pending>q&&(L.adler=f(L.adler,W.pending_buf,W.pending-q,q)),W.gzindex===W.gzhead.extra.length&&(W.gzindex=0,W.status=73)}else W.status=73;if(W.status===73)if(W.gzhead.name){q=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>q&&(L.adler=f(L.adler,W.pending_buf,W.pending-q,q)),tt(L),q=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.name.length?255&W.gzhead.name.charCodeAt(W.gzindex++):0,U(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>q&&(L.adler=f(L.adler,W.pending_buf,W.pending-q,q)),G===0&&(W.gzindex=0,W.status=91)}else W.status=91;if(W.status===91)if(W.gzhead.comment){q=W.pending;do{if(W.pending===W.pending_buf_size&&(W.gzhead.hcrc&&W.pending>q&&(L.adler=f(L.adler,W.pending_buf,W.pending-q,q)),tt(L),q=W.pending,W.pending===W.pending_buf_size)){G=1;break}G=W.gzindex<W.gzhead.comment.length?255&W.gzhead.comment.charCodeAt(W.gzindex++):0,U(W,G)}while(G!==0);W.gzhead.hcrc&&W.pending>q&&(L.adler=f(L.adler,W.pending_buf,W.pending-q,q)),G===0&&(W.status=103)}else W.status=103;if(W.status===103&&(W.gzhead.hcrc?(W.pending+2>W.pending_buf_size&&tt(L),W.pending+2<=W.pending_buf_size&&(U(W,255&L.adler),U(W,L.adler>>8&255),L.adler=0,W.status=R)):W.status=R),W.pending!==0){if(tt(L),L.avail_out===0)return W.last_flush=-1,h}else if(L.avail_in===0&&it(I)<=it(rt)&&I!==w)return nt(L,-5);if(W.status===666&&L.avail_in!==0)return nt(L,-5);if(L.avail_in!==0||W.lookahead!==0||I!==_&&W.status!==666){var wt=W.strategy===2?function(ct,St){for(var Dt;;){if(ct.lookahead===0&&(st(ct),ct.lookahead===0)){if(St===_)return g;break}if(ct.match_length=0,Dt=s._tr_tally(ct,0,ct.window[ct.strstart]),ct.lookahead--,ct.strstart++,Dt&&(A(ct,!1),ct.strm.avail_out===0))return g}return ct.insert=0,St===w?(A(ct,!0),ct.strm.avail_out===0?ft:at):ct.last_lit&&(A(ct,!1),ct.strm.avail_out===0)?g:X}(W,I):W.strategy===3?function(ct,St){for(var Dt,Et,Ot,qt,zt=ct.window;;){if(ct.lookahead<=j){if(st(ct),ct.lookahead<=j&&St===_)return g;if(ct.lookahead===0)break}if(ct.match_length=0,ct.lookahead>=k&&0<ct.strstart&&(Et=zt[Ot=ct.strstart-1])===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]){qt=ct.strstart+j;do;while(Et===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]&&Et===zt[++Ot]&&Ot<qt);ct.match_length=j-(qt-Ot),ct.match_length>ct.lookahead&&(ct.match_length=ct.lookahead)}if(ct.match_length>=k?(Dt=s._tr_tally(ct,1,ct.match_length-k),ct.lookahead-=ct.match_length,ct.strstart+=ct.match_length,ct.match_length=0):(Dt=s._tr_tally(ct,0,ct.window[ct.strstart]),ct.lookahead--,ct.strstart++),Dt&&(A(ct,!1),ct.strm.avail_out===0))return g}return ct.insert=0,St===w?(A(ct,!0),ct.strm.avail_out===0?ft:at):ct.last_lit&&(A(ct,!1),ct.strm.avail_out===0)?g:X}(W,I):i[W.level].func(W,I);if(wt!==ft&&wt!==at||(W.status=666),wt===g||wt===ft)return L.avail_out===0&&(W.last_flush=-1),h;if(wt===X&&(I===1?s._tr_align(W):I!==5&&(s._tr_stored_block(W,0,0,!1),I===3&&(mt(W.head),W.lookahead===0&&(W.strstart=0,W.block_start=0,W.insert=0))),tt(L),L.avail_out===0))return W.last_flush=-1,h}return I!==w?h:W.wrap<=0?1:(W.wrap===2?(U(W,255&L.adler),U(W,L.adler>>8&255),U(W,L.adler>>16&255),U(W,L.adler>>24&255),U(W,255&L.total_in),U(W,L.total_in>>8&255),U(W,L.total_in>>16&255),U(W,L.total_in>>24&255)):(M(W,L.adler>>>16),M(W,65535&L.adler)),tt(L),0<W.wrap&&(W.wrap=-W.wrap),W.pending!==0?h:1)},a.deflateEnd=function(L){var I;return L&&L.state?(I=L.state.status)!==y&&I!==69&&I!==73&&I!==91&&I!==103&&I!==R&&I!==666?nt(L,x):(L.state=null,I===R?nt(L,-3):h):x},a.deflateSetDictionary=function(L,I){var rt,W,q,G,bt,wt,ct,St,Dt=I.length;if(!L||!L.state||(G=(rt=L.state).wrap)===2||G===1&&rt.status!==y||rt.lookahead)return x;for(G===1&&(L.adler=c(L.adler,I,Dt,0)),rt.wrap=0,Dt>=rt.w_size&&(G===0&&(mt(rt.head),rt.strstart=0,rt.block_start=0,rt.insert=0),St=new l.Buf8(rt.w_size),l.arraySet(St,I,Dt-rt.w_size,rt.w_size,0),I=St,Dt=rt.w_size),bt=L.avail_in,wt=L.next_in,
vendor: 17,611 bytes, line 13
13ct=L.input,L.avail_in=Dt,L.next_in=0,L.input=I,st(rt);rt.lookahead>=k;){for(W=rt.strstart,q=rt.lookahead-(k-1);rt.ins_h=(rt.ins_h<<rt.hash_shift^rt.window[W+k-1])&rt.hash_mask,rt.prev[W&rt.w_mask]=rt.head[rt.ins_h],rt.head[rt.ins_h]=W,W++,--q;);rt.strstart=W,rt.lookahead=k-1,st(rt)}return rt.strstart+=rt.lookahead,rt.block_start=rt.strstart,rt.insert=rt.lookahead,rt.lookahead=0,rt.match_length=rt.prev_length=k-1,rt.match_available=0,L.next_in=wt,L.input=ct,L.avail_in=bt,rt.wrap=G,h},a.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,r,a){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,r,a){r.exports=function(i,l){var s,c,f,d,_,w,h,x,b,N,v,C,O,T,Z,ot,et,$,k,j,E,y,R,g,X;s=i.state,c=i.next_in,g=i.input,f=c+(i.avail_in-5),d=i.next_out,X=i.output,_=d-(l-i.avail_out),w=d+(i.avail_out-257),h=s.dmax,x=s.wsize,b=s.whave,N=s.wnext,v=s.window,C=s.hold,O=s.bits,T=s.lencode,Z=s.distcode,ot=(1<<s.lenbits)-1,et=(1<<s.distbits)-1;t:do{O<15&&(C+=g[c++]<<O,O+=8,C+=g[c++]<<O,O+=8),$=T[C&ot];e:for(;;){if(C>>>=k=$>>>24,O-=k,(k=$>>>16&255)===0)X[d++]=65535&$;else{if(!(16&k)){if(!(64&k)){$=T[(65535&$)+(C&(1<<k)-1)];continue e}if(32&k){s.mode=12;break t}i.msg="invalid literal/length code",s.mode=30;break t}j=65535&$,(k&=15)&&(O<k&&(C+=g[c++]<<O,O+=8),j+=C&(1<<k)-1,C>>>=k,O-=k),O<15&&(C+=g[c++]<<O,O+=8,C+=g[c++]<<O,O+=8),$=Z[C&et];n:for(;;){if(C>>>=k=$>>>24,O-=k,!(16&(k=$>>>16&255))){if(!(64&k)){$=Z[(65535&$)+(C&(1<<k)-1)];continue n}i.msg="invalid distance code",s.mode=30;break t}if(E=65535&$,O<(k&=15)&&(C+=g[c++]<<O,(O+=8)<k&&(C+=g[c++]<<O,O+=8)),h<(E+=C&(1<<k)-1)){i.msg="invalid distance too far back",s.mode=30;break t}if(C>>>=k,O-=k,(k=d-_)<E){if(b<(k=E-k)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break t}if(R=v,(y=0)===N){if(y+=x-k,k<j){for(j-=k;X[d++]=v[y++],--k;);y=d-E,R=X}}else if(N<k){if(y+=x+N-k,(k-=N)<j){for(j-=k;X[d++]=v[y++],--k;);if(y=0,N<j){for(j-=k=N;X[d++]=v[y++],--k;);y=d-E,R=X}}}else if(y+=N-k,k<j){for(j-=k;X[d++]=v[y++],--k;);y=d-E,R=X}for(;2<j;)X[d++]=R[y++],X[d++]=R[y++],X[d++]=R[y++],j-=3;j&&(X[d++]=R[y++],1<j&&(X[d++]=R[y++]))}else{for(y=d-E;X[d++]=X[y++],X[d++]=X[y++],X[d++]=X[y++],2<(j-=3););j&&(X[d++]=X[y++],1<j&&(X[d++]=X[y++]))}break}}break}}while(c<f&&d<w);c-=j=O>>3,C&=(1<<(O-=j<<3))-1,i.next_in=c,i.next_out=d,i.avail_in=c<f?f-c+5:5-(c-f),i.avail_out=d<w?w-d+257:257-(d-w),s.hold=C,s.bits=O}},{}],49:[function(e,r,a){var i=e("../utils/common"),l=e("./adler32"),s=e("./crc32"),c=e("./inffast"),f=e("./inftrees"),d=1,_=2,w=0,h=-2,x=1,b=852,N=592;function v(y){return(y>>>24&255)+(y>>>8&65280)+((65280&y)<<8)+((255&y)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function O(y){var R;return y&&y.state?(R=y.state,y.total_in=y.total_out=R.total=0,y.msg="",R.wrap&&(y.adler=1&R.wrap),R.mode=x,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new i.Buf32(b),R.distcode=R.distdyn=new i.Buf32(N),R.sane=1,R.back=-1,w):h}function T(y){var R;return y&&y.state?((R=y.state).wsize=0,R.whave=0,R.wnext=0,O(y)):h}function Z(y,R){var g,X;return y&&y.state?(X=y.state,R<0?(g=0,R=-R):(g=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?h:(X.window!==null&&X.wbits!==R&&(X.window=null),X.wrap=g,X.wbits=R,T(y))):h}function ot(y,R){var g,X;return y?(X=new C,(y.state=X).window=null,(g=Z(y,R))!==w&&(y.state=null),g):h}var et,$,k=!0;function j(y){if(k){var R;for(et=new i.Buf32(512),$=new i.Buf32(32),R=0;R<144;)y.lens[R++]=8;for(;R<256;)y.lens[R++]=9;for(;R<280;)y.lens[R++]=7;for(;R<288;)y.lens[R++]=8;for(f(d,y.lens,0,288,et,0,y.work,{bits:9}),R=0;R<32;)y.lens[R++]=5;f(_,y.lens,0,32,$,0,y.work,{bits:5}),k=!1}y.lencode=et,y.lenbits=9,y.distcode=$,y.distbits=5}function E(y,R,g,X){var ft,at=y.state;return at.window===null&&(at.wsize=1<<at.wbits,at.wnext=0,at.whave=0,at.window=new i.Buf8(at.wsize)),X>=at.wsize?(i.arraySet(at.window,R,g-at.wsize,at.wsize,0),at.wnext=0,at.whave=at.wsize):(X<(ft=at.wsize-at.wnext)&&(ft=X),i.arraySet(at.window,R,g-X,ft,at.wnext),(X-=ft)?(i.arraySet(at.window,R,g-X,X,0),at.wnext=X,at.whave=at.wsize):(at.wnext+=ft,at.wnext===at.wsize&&(at.wnext=0),at.whave<at.wsize&&(at.whave+=ft))),0}a.inflateReset=T,a.inflateReset2=Z,a.inflateResetKeep=O,a.inflateInit=function(y){return ot(y,15)},a.inflateInit2=ot,a.inflate=function(y,R){var g,X,ft,at,nt,it,mt,tt,A,U,M,K,st,dt,vt,ut,yt,Lt,Ct,Rt,L,I,rt,W,q=0,G=new i.Buf8(4),bt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!y||!y.state||!y.output||!y.input&&y.avail_in!==0)return h;(g=y.state).mode===12&&(g.mode=13),nt=y.next_out,ft=y.output,mt=y.avail_out,at=y.next_in,X=y.input,it=y.avail_in,tt=g.hold,A=g.bits,U=it,M=mt,I=w;t:for(;;)switch(g.mode){case x:if(g.wrap===0){g.mode=13;break}for(;A<16;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(2&g.wrap&&tt===35615){G[g.check=0]=255&tt,G[1]=tt>>>8&255,g.check=s(g.check,G,2,0),A=tt=0,g.mode=2;break}if(g.flags=0,g.head&&(g.head.done=!1),!(1&g.wrap)||(((255&tt)<<8)+(tt>>8))%31){y.msg="incorrect header check",g.mode=30;break}if((15&tt)!=8){y.msg="unknown compression method",g.mode=30;break}if(A-=4,L=8+(15&(tt>>>=4)),g.wbits===0)g.wbits=L;else if(L>g.wbits){y.msg="invalid window size",g.mode=30;break}g.dmax=1<<L,y.adler=g.check=1,g.mode=512&tt?10:12,A=tt=0;break;case 2:for(;A<16;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(g.flags=tt,(255&g.flags)!=8){y.msg="unknown compression method",g.mode=30;break}if(57344&g.flags){y.msg="unknown header flags set",g.mode=30;break}g.head&&(g.head.text=tt>>8&1),512&g.flags&&(G[0]=255&tt,G[1]=tt>>>8&255,g.check=s(g.check,G,2,0)),A=tt=0,g.mode=3;case 3:for(;A<32;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}g.head&&(g.head.time=tt),512&g.flags&&(G[0]=255&tt,G[1]=tt>>>8&255,G[2]=tt>>>16&255,G[3]=tt>>>24&255,g.check=s(g.check,G,4,0)),A=tt=0,g.mode=4;case 4:for(;A<16;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}g.head&&(g.head.xflags=255&tt,g.head.os=tt>>8),512&g.flags&&(G[0]=255&tt,G[1]=tt>>>8&255,g.check=s(g.check,G,2,0)),A=tt=0,g.mode=5;case 5:if(1024&g.flags){for(;A<16;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}g.length=tt,g.head&&(g.head.extra_len=tt),512&g.flags&&(G[0]=255&tt,G[1]=tt>>>8&255,g.check=s(g.check,G,2,0)),A=tt=0}else g.head&&(g.head.extra=null);g.mode=6;case 6:if(1024&g.flags&&(it<(K=g.length)&&(K=it),K&&(g.head&&(L=g.head.extra_len-g.length,g.head.extra||(g.head.extra=new Array(g.head.extra_len)),i.arraySet(g.head.extra,X,at,K,L)),512&g.flags&&(g.check=s(g.check,X,K,at)),it-=K,at+=K,g.length-=K),g.length))break t;g.length=0,g.mode=7;case 7:if(2048&g.flags){if(it===0)break t;for(K=0;L=X[at+K++],g.head&&L&&g.length<65536&&(g.head.name+=String.fromCharCode(L)),L&&K<it;);if(512&g.flags&&(g.check=s(g.check,X,K,at)),it-=K,at+=K,L)break t}else g.head&&(g.head.name=null);g.length=0,g.mode=8;case 8:if(4096&g.flags){if(it===0)break t;for(K=0;L=X[at+K++],g.head&&L&&g.length<65536&&(g.head.comment+=String.fromCharCode(L)),L&&K<it;);if(512&g.flags&&(g.check=s(g.check,X,K,at)),it-=K,at+=K,L)break t}else g.head&&(g.head.comment=null);g.mode=9;case 9:if(512&g.flags){for(;A<16;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(tt!==(65535&g.check)){y.msg="header crc mismatch",g.mode=30;break}A=tt=0}g.head&&(g.head.hcrc=g.flags>>9&1,g.head.done=!0),y.adler=g.check=0,g.mode=12;break;case 10:for(;A<32;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}y.adler=g.check=v(tt),A=tt=0,g.mode=11;case 11:if(g.havedict===0)return y.next_out=nt,y.avail_out=mt,y.next_in=at,y.avail_in=it,g.hold=tt,g.bits=A,2;y.adler=g.check=1,g.mode=12;case 12:if(R===5||R===6)break t;case 13:if(g.last){tt>>>=7&A,A-=7&A,g.mode=27;break}for(;A<3;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}switch(g.last=1&tt,A-=1,3&(tt>>>=1)){case 0:g.mode=14;break;case 1:if(j(g),g.mode=20,R!==6)break;tt>>>=2,A-=2;break t;case 2:g.mode=17;break;case 3:y.msg="invalid block type",g.mode=30}tt>>>=2,A-=2;break;case 14:for(tt>>>=7&A,A-=7&A;A<32;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if((65535&tt)!=(tt>>>16^65535)){y.msg="invalid stored block lengths",g.mode=30;break}if(g.length=65535&tt,A=tt=0,g.mode=15,R===6)break t;case 15:g.mode=16;case 16:if(K=g.length){if(it<K&&(K=it),mt<K&&(K=mt),K===0)break t;i.arraySet(ft,X,at,K,nt),it-=K,at+=K,mt-=K,nt+=K,g.length-=K;break}g.mode=12;break;case 17:for(;A<14;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(g.nlen=257+(31&tt),tt>>>=5,A-=5,g.ndist=1+(31&tt),tt>>>=5,A-=5,g.ncode=4+(15&tt),tt>>>=4,A-=4,286<g.nlen||30<g.ndist){y.msg="too many length or distance symbols",g.mode=30;break}g.have=0,g.mode=18;case 18:for(;g.have<g.ncode;){for(;A<3;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}g.lens[bt[g.have++]]=7&tt,tt>>>=3,A-=3}for(;g.have<19;)g.lens[bt[g.have++]]=0;if(g.lencode=g.lendyn,g.lenbits=7,rt={bits:g.lenbits},I=f(0,g.lens,0,19,g.lencode,0,g.work,rt),g.lenbits=rt.bits,I){y.msg="invalid code lengths set",g.mode=30;break}g.have=0,g.mode=19;case 19:for(;g.have<g.nlen+g.ndist;){for(;ut=(q=g.lencode[tt&(1<<g.lenbits)-1])>>>16&255,yt=65535&q,!((vt=q>>>24)<=A);){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(yt<16)tt>>>=vt,A-=vt,g.lens[g.have++]=yt;else{if(yt===16){for(W=vt+2;A<W;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(tt>>>=vt,A-=vt,g.have===0){y.msg="invalid bit length repeat",g.mode=30;break}L=g.lens[g.have-1],K=3+(3&tt),tt>>>=2,A-=2}else if(yt===17){for(W=vt+3;A<W;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}A-=vt,L=0,K=3+(7&(tt>>>=vt)),tt>>>=3,A-=3}else{for(W=vt+7;A<W;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}A-=vt,L=0,K=11+(127&(tt>>>=vt)),tt>>>=7,A-=7}if(g.have+K>g.nlen+g.ndist){y.msg="invalid bit length repeat",g.mode=30;break}for(;K--;)g.lens[g.have++]=L}}if(g.mode===30)break;if(g.lens[256]===0){y.msg="invalid code -- missing end-of-block",g.mode=30;break}if(g.lenbits=9,rt={bits:g.lenbits},I=f(d,g.lens,0,g.nlen,g.lencode,0,g.work,rt),g.lenbits=rt.bits,I){y.msg="invalid literal/lengths set",g.mode=30;break}if(g.distbits=6,g.distcode=g.distdyn,rt={bits:g.distbits},I=f(_,g.lens,g.nlen,g.ndist,g.distcode,0,g.work,rt),g.distbits=rt.bits,I){y.msg="invalid distances set",g.mode=30;break}if(g.mode=20,R===6)break t;case 20:g.mode=21;case 21:if(6<=it&&258<=mt){y.next_out=nt,y.avail_out=mt,y.next_in=at,y.avail_in=it,g.hold=tt,g.bits=A,c(y,M),nt=y.next_out,ft=y.output,mt=y.avail_out,at=y.next_in,X=y.input,it=y.avail_in,tt=g.hold,A=g.bits,g.mode===12&&(g.back=-1);break}for(g.back=0;ut=(q=g.lencode[tt&(1<<g.lenbits)-1])>>>16&255,yt=65535&q,!((vt=q>>>24)<=A);){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(ut&&!(240&ut)){for(Lt=vt,Ct=ut,Rt=yt;ut=(q=g.lencode[Rt+((tt&(1<<Lt+Ct)-1)>>Lt)])>>>16&255,yt=65535&q,!(Lt+(vt=q>>>24)<=A);){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}tt>>>=Lt,A-=Lt,g.back+=Lt}if(tt>>>=vt,A-=vt,g.back+=vt,g.length=yt,ut===0){g.mode=26;break}if(32&ut){g.back=-1,g.mode=12;break}if(64&ut){y.msg="invalid literal/length code",g.mode=30;break}g.extra=15&ut,g.mode=22;case 22:if(g.extra){for(W=g.extra;A<W;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}g.length+=tt&(1<<g.extra)-1,tt>>>=g.extra,A-=g.extra,g.back+=g.extra}g.was=g.length,g.mode=23;case 23:for(;ut=(q=g.distcode[tt&(1<<g.distbits)-1])>>>16&255,yt=65535&q,!((vt=q>>>24)<=A);){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(!(240&ut)){for(Lt=vt,Ct=ut,Rt=yt;ut=(q=g.distcode[Rt+((tt&(1<<Lt+Ct)-1)>>Lt)])>>>16&255,yt=65535&q,!(Lt+(vt=q>>>24)<=A);){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}tt>>>=Lt,A-=Lt,g.back+=Lt}if(tt>>>=vt,A-=vt,g.back+=vt,64&ut){y.msg="invalid distance code",g.mode=30;break}g.offset=yt,g.extra=15&ut,g.mode=24;case 24:if(g.extra){for(W=g.extra;A<W;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}g.offset+=tt&(1<<g.extra)-1,tt>>>=g.extra,A-=g.extra,g.back+=g.extra}if(g.offset>g.dmax){y.msg="invalid distance too far back",g.mode=30;break}g.mode=25;case 25:if(mt===0)break t;if(K=M-mt,g.offset>K){if((K=g.offset-K)>g.whave&&g.sane){y.msg="invalid distance too far back",g.mode=30;break}st=K>g.wnext?(K-=g.wnext,g.wsize-K):g.wnext-K,K>g.length&&(K=g.length),dt=g.window}else dt=ft,st=nt-g.offset,K=g.length;for(mt<K&&(K=mt),mt-=K,g.length-=K;ft[nt++]=dt[st++],--K;);g.length===0&&(g.mode=21);break;case 26:if(mt===0)break t;ft[nt++]=g.length,mt--,g.mode=21;break;case 27:if(g.wrap){for(;A<32;){if(it===0)break t;it--,tt|=X[at++]<<A,A+=8}if(M-=mt,y.total_out+=M,g.total+=M,M&&(y.adler=g.check=g.flags?s(g.check,ft,M,nt-M):l(g.check,ft,M,nt-M)),M=mt,(g.flags?tt:v(tt))!==g.check){y.msg="incorrect data check",g.mode=30;break}A=tt=0}g.mode=28;case 28:if(g.wrap&&g.flags){for(;A<32;){if(it===0)break t;it--,tt+=X[at++]<<A,A+=8}if(tt!==(4294967295&g.total)){y.msg="incorrect length check",g.mode=30;break}A=tt=0}g.mode=29;case 29:I=1;break t;case 30:I=-3;break t;case 31:return-4;case 32:default:return h}return y.next_out=nt,y.avail_out=mt,y.next_in=at,y.avail_in=it,g.hold=tt,g.bits=A,(g.wsize||M!==y.avail_out&&g.mode<30&&(g.mode<27||R!==4))&&E(y,y.output,y.next_out,M-y.avail_out)?(g.mode=31,-4):(U-=y.avail_in,M-=y.avail_out,y.total_in+=U,y.total_out+=M,g.total+=M,g.wrap&&M&&(y.adler=g.check=g.flags?s(g.check,ft,M,y.next_out-M):l(g.check,ft,M,y.next_out-M)),y.data_type=g.bits+(g.last?64:0)+(g.mode===12?128:0)+(g.mode===20||g.mode===15?256:0),(U==0&&M===0||R===4)&&I===w&&(I=-5),I)},a.inflateEnd=function(y){if(!y||!y.state)return h;var R=y.state;return R.window&&(R.window=null),y.state=null,w},a.inflateGetHeader=function(y,R){var g;return y&&y.state&&2&(g=y.state).wrap?((g.head=R).done=!1,w):h},a.inflateSetDictionary=function(y,R){var g,X=R.length;return y&&y.state?(g=y.state).wrap!==0&&g.mode!==11?h:g.mode===11&&l(1,R,X,0)!==g.check?-3:E(y,R,X,X)?(g.mode=31,-4):(g.havedict=1,w):h},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,r,a){var i=e("../utils/common"),l=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[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],f=[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];r.exports=function(d,_,w,h,x,b,N,v){var C,O,T,Z,ot,et,$,k,j,E=v.bits,y=0,R=0,g=0,X=0,ft=0,at=0,nt=0,it=0,mt=0,tt=0,A=null,U=0,M=new i.Buf16(16),K=new i.Buf16(16),st=null,dt=0;for(y=0;y<=15;y++)M[y]=0;for(R=0;R<h;R++)M[_[w+R]]++;for(ft=E,X=15;1<=X&&M[X]===0;X--);if(X<ft&&(ft=X),X===0)return x[b++]=20971520,x[b++]=20971520,v.bits=1,0;for(g=1;g<X&&M[g]===0;g++);for(ft<g&&(ft=g),y=it=1;y<=15;y++)if(it<<=1,(it-=M[y])<0)return-1;if(0<it&&(d===0||X!==1))return-1;for(K[1]=0,y=1;y<15;y++)K[y+1]=K[y]+M[y];for(R=0;R<h;R++)_[w+R]!==0&&(N[K[_[w+R]]++]=R);if(et=d===0?(A=st=N,19):d===1?(A=l,U-=257,st=s,dt-=257,256):(A=c,st=f,-1),y=g,ot=b,nt=R=tt=0,T=-1,Z=(mt=1<<(at=ft))-1,d===1&&852<mt||d===2&&592<mt)return 1;for(;;){for($=y-nt,j=N[R]<et?(k=0,N[R]):N[R]>et?(k=st[dt+N[R]],A[U+N[R]]):(k=96,0),C=1<<y-nt,g=O=1<<at;x[ot+(tt>>nt)+(O-=C)]=$<<24|k<<16|j|0,O!==0;);for(C=1<<y-1;tt&C;)C>>=1;if(C!==0?(tt&=C-1,tt+=C):tt=0,R++,--M[y]==0){if(y===X)break;y=_[w+N[R]]}if(ft<y&&(tt&Z)!==T){for(nt===0&&(nt=ft),ot+=g,it=1<<(at=y-nt);at+nt<X&&!((it-=M[at+nt])<=0);)at++,it<<=1;if(mt+=1<<at,d===1&&852<mt||d===2&&592<mt)return 1;x[T=tt&Z]=ft<<24|at<<16|ot-b|0}}return tt!==0&&(x[ot+tt]=y-nt<<24|64<<16|0),v.bits=ft,0}},{"../utils/common":41}],51:[function(e,r,a){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,r,a){var i=e("../utils/common"),l=0,s=1;function c(q){for(var G=q.length;0<=--G;)q[G]=0}var f=0,d=29,_=256,w=_+1+d,h=30,x=19,b=2*w+1,N=15,v=16,C=7,O=256,T=16,Z=17,ot=18,et=[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,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],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],E=new Array(2*(w+2));c(E);var y=new Array(2*h);c(y);var R=new Array(512);c(R);var g=new Array(256);c(g);var X=new Array(d);c(X);var ft,at,nt,it=new Array(h);function mt(q,G,bt,wt,ct){this.static_tree=q,this.extra_bits=G,this.extra_base=bt,this.elems=wt,this.max_length=ct,this.has_stree=q&&q.length}function tt(q,G){this.dyn_tree=q,this.max_code=0,this.stat_desc=G}function A(q){return q<256?R[q]:R[256+(q>>>7)]}function U(q,G){q.pending_buf[q.pending++]=255&G,q.pending_buf[q.pending++]=G>>>8&255}function M(q,G,bt){q.bi_valid>v-bt?(q.bi_buf|=G<<q.bi_valid&65535,U(q,q.bi_buf),q.bi_buf=G>>v-q.bi_valid,q.bi_valid+=bt-v):(q.bi_buf|=G<<q.bi_valid&65535,q.bi_valid+=bt)}function K(q,G,bt){M(q,bt[2*G],bt[2*G+1])}function st(q,G){for(var bt=0;bt|=1&q,q>>>=1,bt<<=1,0<--G;);return bt>>>1}function dt(q,G,bt){var wt,ct,St=new Array(N+1),Dt=0;for(wt=1;wt<=N;wt++)St[wt]=Dt=Dt+bt[wt-1]<<1;for(ct=0;ct<=G;ct++){var Et=q[2*ct+1];Et!==0&&(q[2*ct]=st(St[Et]++,Et))}}function vt(q){var G;for(G=0;G<w;G++)q.dyn_ltree[2*G]=0;for(G=0;G<h;G++)q.dyn_dtree[2*G]=0;for(G=0;
vendor: 7,343 bytes, line 13
13G<x;G++)q.bl_tree[2*G]=0;q.dyn_ltree[2*O]=1,q.opt_len=q.static_len=0,q.last_lit=q.matches=0}function ut(q){8<q.bi_valid?U(q,q.bi_buf):0<q.bi_valid&&(q.pending_buf[q.pending++]=q.bi_buf),q.bi_buf=0,q.bi_valid=0}function yt(q,G,bt,wt){var ct=2*G,St=2*bt;return q[ct]<q[St]||q[ct]===q[St]&&wt[G]<=wt[bt]}function Lt(q,G,bt){for(var wt=q.heap[bt],ct=bt<<1;ct<=q.heap_len&&(ct<q.heap_len&&yt(G,q.heap[ct+1],q.heap[ct],q.depth)&&ct++,!yt(G,wt,q.heap[ct],q.depth));)q.heap[bt]=q.heap[ct],bt=ct,ct<<=1;q.heap[bt]=wt}function Ct(q,G,bt){var wt,ct,St,Dt,Et=0;if(q.last_lit!==0)for(;wt=q.pending_buf[q.d_buf+2*Et]<<8|q.pending_buf[q.d_buf+2*Et+1],ct=q.pending_buf[q.l_buf+Et],Et++,wt===0?K(q,ct,G):(K(q,(St=g[ct])+_+1,G),(Dt=et[St])!==0&&M(q,ct-=X[St],Dt),K(q,St=A(--wt),bt),(Dt=$[St])!==0&&M(q,wt-=it[St],Dt)),Et<q.last_lit;);K(q,O,G)}function Rt(q,G){var bt,wt,ct,St=G.dyn_tree,Dt=G.stat_desc.static_tree,Et=G.stat_desc.has_stree,Ot=G.stat_desc.elems,qt=-1;for(q.heap_len=0,q.heap_max=b,bt=0;bt<Ot;bt++)St[2*bt]!==0?(q.heap[++q.heap_len]=qt=bt,q.depth[bt]=0):St[2*bt+1]=0;for(;q.heap_len<2;)St[2*(ct=q.heap[++q.heap_len]=qt<2?++qt:0)]=1,q.depth[ct]=0,q.opt_len--,Et&&(q.static_len-=Dt[2*ct+1]);for(G.max_code=qt,bt=q.heap_len>>1;1<=bt;bt--)Lt(q,St,bt);for(ct=Ot;bt=q.heap[1],q.heap[1]=q.heap[q.heap_len--],Lt(q,St,1),wt=q.heap[1],q.heap[--q.heap_max]=bt,q.heap[--q.heap_max]=wt,St[2*ct]=St[2*bt]+St[2*wt],q.depth[ct]=(q.depth[bt]>=q.depth[wt]?q.depth[bt]:q.depth[wt])+1,St[2*bt+1]=St[2*wt+1]=ct,q.heap[1]=ct++,Lt(q,St,1),2<=q.heap_len;);q.heap[--q.heap_max]=q.heap[1],function(zt,Ut){var ae,Vt,_e,Kt,se,ce,we=Ut.dyn_tree,ne=Ut.max_code,pt=Ut.stat_desc.static_tree,Nt=Ut.stat_desc.has_stree,Ht=Ut.stat_desc.extra_bits,Zt=Ut.stat_desc.extra_base,$t=Ut.stat_desc.max_length,Gt=0;for(Kt=0;Kt<=N;Kt++)zt.bl_count[Kt]=0;for(we[2*zt.heap[zt.heap_max]+1]=0,ae=zt.heap_max+1;ae<b;ae++)$t<(Kt=we[2*we[2*(Vt=zt.heap[ae])+1]+1]+1)&&(Kt=$t,Gt++),we[2*Vt+1]=Kt,ne<Vt||(zt.bl_count[Kt]++,se=0,Zt<=Vt&&(se=Ht[Vt-Zt]),ce=we[2*Vt],zt.opt_len+=ce*(Kt+se),Nt&&(zt.static_len+=ce*(pt[2*Vt+1]+se)));if(Gt!==0){do{for(Kt=$t-1;zt.bl_count[Kt]===0;)Kt--;zt.bl_count[Kt]--,zt.bl_count[Kt+1]+=2,zt.bl_count[$t]--,Gt-=2}while(0<Gt);for(Kt=$t;Kt!==0;Kt--)for(Vt=zt.bl_count[Kt];Vt!==0;)ne<(_e=zt.heap[--ae])||(we[2*_e+1]!==Kt&&(zt.opt_len+=(Kt-we[2*_e+1])*we[2*_e],we[2*_e+1]=Kt),Vt--)}}(q,G),dt(St,qt,q.bl_count)}function L(q,G,bt){var wt,ct,St=-1,Dt=G[1],Et=0,Ot=7,qt=4;for(Dt===0&&(Ot=138,qt=3),G[2*(bt+1)+1]=65535,wt=0;wt<=bt;wt++)ct=Dt,Dt=G[2*(wt+1)+1],++Et<Ot&&ct===Dt||(Et<qt?q.bl_tree[2*ct]+=Et:ct!==0?(ct!==St&&q.bl_tree[2*ct]++,q.bl_tree[2*T]++):Et<=10?q.bl_tree[2*Z]++:q.bl_tree[2*ot]++,St=ct,qt=(Et=0)===Dt?(Ot=138,3):ct===Dt?(Ot=6,3):(Ot=7,4))}function I(q,G,bt){var wt,ct,St=-1,Dt=G[1],Et=0,Ot=7,qt=4;for(Dt===0&&(Ot=138,qt=3),wt=0;wt<=bt;wt++)if(ct=Dt,Dt=G[2*(wt+1)+1],!(++Et<Ot&&ct===Dt)){if(Et<qt)for(;K(q,ct,q.bl_tree),--Et!=0;);else ct!==0?(ct!==St&&(K(q,ct,q.bl_tree),Et--),K(q,T,q.bl_tree),M(q,Et-3,2)):Et<=10?(K(q,Z,q.bl_tree),M(q,Et-3,3)):(K(q,ot,q.bl_tree),M(q,Et-11,7));St=ct,qt=(Et=0)===Dt?(Ot=138,3):ct===Dt?(Ot=6,3):(Ot=7,4)}}c(it);var rt=!1;function W(q,G,bt,wt){M(q,(f<<1)+(wt?1:0),3),function(ct,St,Dt,Et){ut(ct),U(ct,Dt),U(ct,~Dt),i.arraySet(ct.pending_buf,ct.window,St,Dt,ct.pending),ct.pending+=Dt}(q,G,bt)}a._tr_init=function(q){rt||(function(){var G,bt,wt,ct,St,Dt=new Array(N+1);for(ct=wt=0;ct<d-1;ct++)for(X[ct]=wt,G=0;G<1<<et[ct];G++)g[wt++]=ct;for(g[wt-1]=ct,ct=St=0;ct<16;ct++)for(it[ct]=St,G=0;G<1<<$[ct];G++)R[St++]=ct;for(St>>=7;ct<h;ct++)for(it[ct]=St<<7,G=0;G<1<<$[ct]-7;G++)R[256+St++]=ct;for(bt=0;bt<=N;bt++)Dt[bt]=0;for(G=0;G<=143;)E[2*G+1]=8,G++,Dt[8]++;for(;G<=255;)E[2*G+1]=9,G++,Dt[9]++;for(;G<=279;)E[2*G+1]=7,G++,Dt[7]++;for(;G<=287;)E[2*G+1]=8,G++,Dt[8]++;for(dt(E,w+1,Dt),G=0;G<h;G++)y[2*G+1]=5,y[2*G]=st(G,5);ft=new mt(E,et,_+1,w,N),at=new mt(y,$,0,h,N),nt=new mt(new Array(0),k,0,x,C)}(),rt=!0),q.l_desc=new tt(q.dyn_ltree,ft),q.d_desc=new tt(q.dyn_dtree,at),q.bl_desc=new tt(q.bl_tree,nt),q.bi_buf=0,q.bi_valid=0,vt(q)},a._tr_stored_block=W,a._tr_flush_block=function(q,G,bt,wt){var ct,St,Dt=0;0<q.level?(q.strm.data_type===2&&(q.strm.data_type=function(Et){var Ot,qt=4093624447;for(Ot=0;Ot<=31;Ot++,qt>>>=1)if(1&qt&&Et.dyn_ltree[2*Ot]!==0)return l;if(Et.dyn_ltree[18]!==0||Et.dyn_ltree[20]!==0||Et.dyn_ltree[26]!==0)return s;for(Ot=32;Ot<_;Ot++)if(Et.dyn_ltree[2*Ot]!==0)return s;return l}(q)),Rt(q,q.l_desc),Rt(q,q.d_desc),Dt=function(Et){var Ot;for(L(Et,Et.dyn_ltree,Et.l_desc.max_code),L(Et,Et.dyn_dtree,Et.d_desc.max_code),Rt(Et,Et.bl_desc),Ot=x-1;3<=Ot&&Et.bl_tree[2*j[Ot]+1]===0;Ot--);return Et.opt_len+=3*(Ot+1)+5+5+4,Ot}(q),ct=q.opt_len+3+7>>>3,(St=q.static_len+3+7>>>3)<=ct&&(ct=St)):ct=St=bt+5,bt+4<=ct&&G!==-1?W(q,G,bt,wt):q.strategy===4||St===ct?(M(q,2+(wt?1:0),3),Ct(q,E,y)):(M(q,4+(wt?1:0),3),function(Et,Ot,qt,zt){var Ut;for(M(Et,Ot-257,5),M(Et,qt-1,5),M(Et,zt-4,4),Ut=0;Ut<zt;Ut++)M(Et,Et.bl_tree[2*j[Ut]+1],3);I(Et,Et.dyn_ltree,Ot-1),I(Et,Et.dyn_dtree,qt-1)}(q,q.l_desc.max_code+1,q.d_desc.max_code+1,Dt+1),Ct(q,q.dyn_ltree,q.dyn_dtree)),vt(q),wt&&ut(q)},a._tr_tally=function(q,G,bt){return q.pending_buf[q.d_buf+2*q.last_lit]=G>>>8&255,q.pending_buf[q.d_buf+2*q.last_lit+1]=255&G,q.pending_buf[q.l_buf+q.last_lit]=255&bt,q.last_lit++,G===0?q.dyn_ltree[2*bt]++:(q.matches++,G--,q.dyn_ltree[2*(g[bt]+_+1)]++,q.dyn_dtree[2*A(G)]++),q.last_lit===q.lit_bufsize-1},a._tr_align=function(q){M(q,2,3),K(q,O,E),function(G){G.bi_valid===16?(U(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):8<=G.bi_valid&&(G.pending_buf[G.pending++]=255&G.bi_buf,G.bi_buf>>=8,G.bi_valid-=8)}(q)}},{"../utils/common":41}],53:[function(e,r,a){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,r,a){(function(i){(function(l,s){if(!l.setImmediate){var c,f,d,_,w=1,h={},x=!1,b=l.document,N=Object.getPrototypeOf&&Object.getPrototypeOf(l);N=N&&N.setTimeout?N:l,c={}.toString.call(l.process)==="[object process]"?function(T){process.nextTick(function(){C(T)})}:function(){if(l.postMessage&&!l.importScripts){var T=!0,Z=l.onmessage;return l.onmessage=function(){T=!1},l.postMessage("","*"),l.onmessage=Z,T}}()?(_="setImmediate$"+Math.random()+"$",l.addEventListener?l.addEventListener("message",O,!1):l.attachEvent("onmessage",O),function(T){l.postMessage(_+T,"*")}):l.MessageChannel?((d=new MessageChannel).port1.onmessage=function(T){C(T.data)},function(T){d.port2.postMessage(T)}):b&&"onreadystatechange"in b.createElement("script")?(f=b.documentElement,function(T){var Z=b.createElement("script");Z.onreadystatechange=function(){C(T),Z.onreadystatechange=null,f.removeChild(Z),Z=null},f.appendChild(Z)}):function(T){setTimeout(C,0,T)},N.setImmediate=function(T){typeof T!="function"&&(T=new Function(""+T));for(var Z=new Array(arguments.length-1),ot=0;ot<Z.length;ot++)Z[ot]=arguments[ot+1];var et={callback:T,args:Z};return h[w]=et,c(w),w++},N.clearImmediate=v}function v(T){delete h[T]}function C(T){if(x)setTimeout(C,0,T);else{var Z=h[T];if(Z){x=!0;try{(function(ot){var et=ot.callback,$=ot.args;switch($.length){case 0:et();break;case 1:et($[0]);break;case 2:et($[0],$[1]);break;case 3:et($[0],$[1],$[2]);break;default:et.apply(s,$)}})(Z)}finally{v(T),x=!1}}}}
vendor: 20,247 bytes, lines 13-27
13function O(T){T.source===l&&typeof T.data=="string"&&T.data.indexOf(_)===0&&C(+T.data.slice(_.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof Ps<"u"?Ps:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(_d);var t2=_d.exports;const e2=Vf(t2);var wd={exports:{}};/* @license 14Papa Parse 15v5.5.4 16https://github.com/mholt/PapaParse 17License: MIT 18*/(function(t,n){((e,r)=>{t.exports=r()})(Ps,function e(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},a,i=!r.document&&!!r.postMessage,l=r.IS_PAPA_WORKER||!1,s={},c=0,f={};function d(k){return k.charCodeAt(0)===65279?k.slice(1):k}function _(k){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(j){var E=ot(j);E.chunkSize=parseInt(E.chunkSize),j.step||j.chunk||(E.chunkSize=null),this._handle=new N(E),(this._handle.streamer=this)._config=E}.call(this,k),this.parseChunk=function(j,E){var y=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<y){let g=this._config.newline;g||(R=this._config.quoteChar||'"',g=this._handle.guessLineEndings(j,R)),j=[...j.split(g).slice(y)].join(g)}this.isFirstChunk&&$(this._config.beforeFirstChunk)&&(R=this._config.beforeFirstChunk(j))!==void 0&&(j=R),this.isFirstChunk=!1,this._halted=!1;var y=this._partialLine+j,R=(this._partialLine="",this._handle.parse(y,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(j=R.meta.cursor,y=(this._finished||(this._partialLine=y.substring(j-this._baseIndex),this._baseIndex=j),R&&R.data&&(this._rowCount+=R.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),l)r.postMessage({results:R,workerId:f.WORKER_ID,finished:y});else if($(this._config.chunk)&&!E){if(this._config.chunk(R,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=R=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(R.data),this._completeResults.errors=this._completeResults.errors.concat(R.errors),this._completeResults.meta=R.meta),this._completed||!y||!$(this._config.complete)||R&&R.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),y||R&&R.meta.paused||this._nextChunk(),R}this._halted=!0},this._sendError=function(j){$(this._config.error)?this._config.error(j):l&&this._config.error&&r.postMessage({workerId:f.WORKER_ID,error:j,finished:!1})}}function w(k){var j;(k=k||{}).chunkSize||(k.chunkSize=f.RemoteChunkSize),_.call(this,k),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(E){this._input=E,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(j=new XMLHttpRequest,this._config.withCredentials&&(j.withCredentials=this._config.withCredentials),i||(j.onload=et(this._chunkLoaded,this),j.onerror=et(this._chunkError,this)),j.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var E,y=this._config.downloadRequestHeaders;for(E in y)j.setRequestHeader(E,y[E])}var R;this._config.chunkSize&&(R=this._start+this._config.chunkSize-1,j.setRequestHeader("Range","bytes="+this._start+"-"+R));try{j.send(this._config.downloadRequestBody)}catch(g){this._chunkError(g.message)}i&&j.status===0&&this._chunkError()}},this._chunkLoaded=function(){j.readyState===4&&(j.status<200||400<=j.status?this._chunkError():(this._start+=this._config.chunkSize||j.responseText.length,this._finished=!this._config.chunkSize||this._start>=(E=>(E=E.getResponseHeader("Content-Range"))!==null?parseInt(E.substring(E.lastIndexOf("/")+1)):-1)(j),this.parseChunk(j.responseText)))},this._chunkError=function(E){E=j.statusText||E,this._sendError(new Error(E))}}function h(k){(k=k||{}).chunkSize||(k.chunkSize=f.LocalChunkSize),_.call(this,k);var j,E,y=typeof FileReader<"u";this.stream=function(R){this._input=R,E=R.slice||R.webkitSlice||R.mozSlice,y?((j=new FileReader).onload=et(this._chunkLoaded,this),j.onerror=et(this._chunkError,this)):j=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var R=this._input,g=(this._config.chunkSize&&(g=Math.min(this._start+this._config.chunkSize,this._input.size),R=E.call(R,this._start,g)),j.readAsText(R,this._config.encoding));y||this._chunkLoaded({target:{result:g}})},this._chunkLoaded=function(R){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(R.target.result)},this._chunkError=function(){this._sendError(j.error)}}function x(k){var j;_.call(this,k=k||{}),this.stream=function(E){return j=E,this._nextChunk()},this._nextChunk=function(){var E,y;if(!this._finished)return E=this._config.chunkSize,j=E?(y=j.substring(0,E),j.substring(E)):(y=j,""),this._finished=!j,this.parseChunk(y)}}function b(k){_.call(this,k=k||{});var j=[],E=!0,y=!1;this.pause=function(){_.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){_.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(R){this._input=R,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){y&&j.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),j.length?this.parseChunk(j.shift()):E=!0},this._streamData=et(function(R){try{j.push(typeof R=="string"?R:R.toString(this._config.encoding)),E&&(E=!1,this._checkIsFinished(),this.parseChunk(j.shift()))}catch(g){this._streamError(g)}},this),this._streamError=et(function(R){this._streamCleanUp(),this._sendError(R)},this),this._streamEnd=et(function(){this._streamCleanUp(),y=!0,this._streamData("")},this),this._streamCleanUp=et(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function N(k){var j,E,y,R,g=Math.pow(2,53),X=-g,ft=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,at=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,nt=this,it=0,mt=0,tt=!1,A=!1,U=[],M={data:[],errors:[],meta:{}};function K(ut){return k.skipEmptyLines==="greedy"?ut.join("").trim()==="":ut.length===1&&ut[0].length===0}function st(){if(M&&y&&(vt("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+f.DefaultDelimiter+"'"),y=!1),k.skipEmptyLines&&(M.data=M.data.filter(function(Ct){return!K(Ct)})),dt()){let Ct=function(Rt,L){Rt=d(Rt),$(k.transformHeader)&&(Rt=k.transformHeader(Rt,L)),U.push(Rt)};if(M)if(Array.isArray(M.data[0])){for(var ut=0;dt()&&ut<M.data.length;ut++)M.data[ut].forEach(Ct);M.data.splice(0,1)}else M.data.forEach(Ct)}function yt(Ct,Rt){for(var L=k.header?{}:[],I=0;I<Ct.length;I++){var rt=I,W=Ct[I],W=((q,G)=>(bt=>(k.dynamicTypingFunction&&k.dynamicTyping[bt]===void 0&&(k.dynamicTyping[bt]=k.dynamicTypingFunction(bt)),(k.dynamicTyping[bt]||k.dynamicTyping)===!0))(q)?G==="true"||G==="TRUE"||G!=="false"&&G!=="FALSE"&&((bt=>{if(ft.test(bt)&&(bt=parseFloat(bt),X<bt&&bt<g))return 1})(G)?parseFloat(G):at.test(G)?new Date(G):G===""?null:G):G)(rt=k.header?I>=U.length?"__parsed_extra":U[I]:rt,W=k.transform?k.transform(W,rt):W);rt==="__parsed_extra"?(L[rt]=L[rt]||[],L[rt].push(W)):L[rt]=W}return k.header&&(I>U.length?vt("FieldMismatch","TooManyFields","Too many fields: expected "+U.length+" fields but parsed "+I,mt+Rt):I<U.length&&vt("FieldMismatch","TooFewFields","Too few fields: expected "+U.length+" fields but parsed "+I,mt+Rt)),L}var Lt;M&&(k.header||k.dynamicTyping||k.transform)&&(Lt=1,!M.data.length||Array.isArray(M.data[0])?(M.data=M.data.map(yt),Lt=M.data.length):M.data=yt(M.data,0),k.header&&M.meta&&(M.meta.fields=U),mt+=Lt)}function dt(){return k.header&&U.length===0}function vt(ut,yt,Lt,Ct){ut={type:ut,code:yt,message:Lt},Ct!==void 0&&(ut.row=Ct),M.errors.push(ut)}$(k.step)&&(R=k.step,k.step=function(ut){M=ut,dt()?st():(st(),M.data.length!==0&&(it+=ut.data.length,k.preview&&it>k.preview?E.abort():(M.data=M.data[0],R(M,nt))))}),this.parse=function(ut,yt,Lt){var Ct=k.quoteChar||'"',Ct=(k.newline||(k.newline=this.guessLineEndings(ut,Ct)),y=!1,k.delimiter?$(k.delimiter)&&(k.delimiter=k.delimiter(ut),M.meta.delimiter=k.delimiter):((Ct=((Rt,L,I,rt,W)=>{var q,G,bt,wt;W=W||[","," ","|",";",f.RECORD_SEP,f.UNIT_SEP];for(var ct=0;ct<W.length;ct++){for(var St,Dt=W[ct],Et=0,Ot=0,qt=0,zt=(bt=void 0,new C({comments:rt,delimiter:Dt,newline:L,preview:10}).parse(Rt)),Ut=0;Ut<zt.data.length;Ut++)I&&K(zt.data[Ut])?qt++:(St=zt.data[Ut].length,Ot+=St,bt===void 0?bt=St:0<St&&(Et+=Math.abs(St-bt),bt=St));0<zt.data.length&&(Ot/=zt.data.length-qt),(G===void 0||Et<=G)&&(wt===void 0||wt<Ot)&&1.99<Ot&&(G=Et,q=Dt,wt=Ot)}return{successful:!!(k.delimiter=q),bestDelimiter:q}})(ut,k.newline,k.skipEmptyLines,k.comments,k.delimitersToGuess)).successful?k.delimiter=Ct.bestDelimiter:(y=!0,k.delimiter=f.DefaultDelimiter),M.meta.delimiter=k.delimiter),ot(k));return k.preview&&k.header&&Ct.preview++,j=ut,E=new C(Ct),M=E.parse(j,yt,Lt),st(),tt?{meta:{paused:!0}}:M||{meta:{paused:!1}}},this.paused=function(){return tt},this.pause=function(){tt=!0,E.abort(),j=$(k.chunk)?"":j.substring(E.getCharIndex())},this.resume=function(){nt.streamer._halted?(tt=!1,nt.streamer.parseChunk(j,!0)):setTimeout(nt.resume,3)},this.aborted=function(){return A},this.abort=function(){A=!0,E.abort(),M.meta.aborted=!0,$(k.complete)&&k.complete(M),j=""},this.guessLineEndings=function(Rt,Ct){Rt=Rt.substring(0,1048576);var Ct=new RegExp(v(Ct)+"([^]*?)"+v(Ct),"gm"),Lt=(Rt=Rt.replace(Ct,"")).split("\r"),Ct=Rt.split(` 19`),Rt=1<Ct.length&&Ct[0].length<Lt[0].length;if(Lt.length===1||Rt)return` 20`;for(var L=0,I=0;I<Lt.length;I++)Lt[I][0]===` 21`&&L++;return L>=Lt.length/2?`\r 22`:"\r"}}function v(k){return k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function C(k){var j=(k=k||{}).delimiter,E=k.newline,y=k.comments,R=k.step,g=k.preview,X=k.fastMode,ft=null,at=!1,nt=k.quoteChar==null?'"':k.quoteChar,it=nt;if(k.escapeChar!==void 0&&(it=k.escapeChar),(typeof j!="string"||-1<f.BAD_DELIMITERS.indexOf(j))&&(j=","),y===j)throw new Error("Comment character same as delimiter");y===!0?y="#":(typeof y!="string"||-1<f.BAD_DELIMITERS.indexOf(y))&&(y=!1),E!==` 23`&&E!=="\r"&&E!==`\r 24`&&(E=` 25`);var mt=0,tt=!1;this.parse=function(A,U,M){if(typeof A!="string")throw new Error("Input must be a string");var K=A.length,st=j.length,dt=E.length,vt=y.length,ut=$(R),yt=[],Lt=[],Ct=[],Rt=mt=0;if(!A)return Et();if(X||X!==!1&&A.indexOf(nt)===-1){for(var L=A.split(E),I=0;I<L.length;I++){if(Ct=L[I],mt+=Ct.length,I!==L.length-1)mt+=E.length;else if(M)return Et();if(!y||Ct.substring(0,vt)!==y){if(ut){if(yt=[],wt(Ct.split(j)),Ot(),tt)return Et()}else wt(Ct.split(j));if(g&&g<=I)return yt=yt.slice(0,g),Et(!0)}}return Et()}for(var rt=A.indexOf(j,mt),W=A.indexOf(E,mt),q=new RegExp(v(it)+v(nt),"g"),G=A.indexOf(nt,mt);;)if(A[mt]===nt)for(G=mt,mt++;;){if((G=A.indexOf(nt,G+1))===-1)return M||Lt.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:yt.length,index:mt}),St();if(G===K-1)return St(A.substring(mt,G).replace(q,nt));if(nt===it&&A[G+1]===it)G++;else if(nt===it||G===0||A[G-1]!==it){rt!==-1&&rt<G+1&&(rt=A.indexOf(j,G+1));var bt=ct((W=W!==-1&&W<G+1?A.indexOf(E,G+1):W)===-1?rt:Math.min(rt,W));if(A.substr(G+1+bt,st)===j){Ct.push(A.substring(mt,G).replace(q,nt)),A[mt=G+1+bt+st]!==nt&&(G=A.indexOf(nt,mt)),rt=A.indexOf(j,mt),W=A.indexOf(E,mt);break}if(bt=ct(W),A.substring(G+1+bt,G+1+bt+dt)===E){if(Ct.push(A.substring(mt,G).replace(q,nt)),Dt(G+1+bt+dt),rt=A.indexOf(j,mt),G=A.indexOf(nt,mt),ut&&(Ot(),tt))return Et();if(g&&yt.length>=g)return Et(!0);break}Lt.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:yt.length,index:mt}),G++}}else if(y&&Ct.length===0&&A.substring(mt,mt+vt)===y){if(W===-1)return Et();mt=W+dt,W=A.indexOf(E,mt),rt=A.indexOf(j,mt)}else if(rt!==-1&&(rt<W||W===-1))Ct.push(A.substring(mt,rt)),mt=rt+st,rt=A.indexOf(j,mt);else{if(W===-1)break;if(Ct.push(A.substring(mt,W)),Dt(W+dt),ut&&(Ot(),tt))return Et();if(g&&yt.length>=g)return Et(!0)}return St();function wt(qt){yt.push(qt),Rt=mt}function ct(qt){var zt=0;return zt=qt!==-1&&(qt=A.substring(G+1,qt))&&qt.trim()===""?qt.length:zt}function St(qt){return M||(qt===void 0&&(qt=A.substring(mt)),Ct.push(qt),mt=K,wt(Ct),ut&&Ot()),Et()}function Dt(qt){mt=qt,wt(Ct),Ct=[],W=A.indexOf(E,mt)}function Et(qt){if(k.header&&!U&&yt.length&&!at){var zt=yt[0],Ut=Object.create(null),ae=new Set(zt);let Vt=!1;for(let _e=0;_e<zt.length;_e++){let Kt=d(zt[_e]);if(Ut[Kt=$(k.transformHeader)?k.transformHeader(Kt,_e):Kt]){let se,ce=Ut[Kt];for(;se=Kt+"_"+ce,ce++,ae.has(se););ae.add(se),zt[_e]=se,Ut[Kt]++,Vt=!0,(ft=ft===null?{}:ft)[se]=Kt}else Ut[Kt]=1,zt[_e]=Kt;ae.add(Kt)}Vt&&console.warn("Duplicate headers found and renamed."),at=!0}return{data:yt,errors:Lt,meta:{delimiter:j,linebreak:E,aborted:tt,truncated:!!qt,cursor:Rt+(U||0),renamedHeaders:ft}}}function Ot(){R(Et()),yt=[],Lt=[]}},this.abort=function(){tt=!0},this.getCharIndex=function(){return mt}}function O(k){var j=k.data,E=s[j.workerId],y=!1;if(j.error)E.userError(j.error,j.file);else if(j.results&&j.results.data){var R={abort:function(){y=!0,T(j.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Z,resume:Z};if($(E.userStep)){for(var g=0;g<j.results.data.length&&(E.userStep({data:j.results.data[g],errors:j.results.errors,meta:j.results.meta},R),!y);g++);delete j.results}else $(E.userChunk)&&(E.userChunk(j.results,R,j.file),delete j.results)}j.finished&&!y&&T(j.workerId,j.results)}function T(k,j){var E=s[k];$(E.userComplete)&&E.userComplete(j),E.terminate(),delete s[k]}function Z(){throw new Error("Not implemented.")}function ot(k){if(typeof k!="object"||k===null)return k;var j,E=Array.isArray(k)?[]:{};for(j in k)E[j]=ot(k[j]);return E}function et(k,j){return function(){k.apply(j,arguments)}}function $(k){return typeof k=="function"}return f.parse=function(k,j){var E=(j=j||{}).dynamicTyping||!1;if($(E)&&(j.dynamicTypingFunction=E,E={}),j.dynamicTyping=E,j.transform=!!$(j.transform)&&j.transform,!j.worker||!f.WORKERS_SUPPORTED)return E=null,f.NODE_STREAM_INPUT,typeof k=="string"?(k=d(k),E=new(j.download?w:x)(j)):k.readable===!0&&$(k.read)&&$(k.on)?E=new b(j):(r.File&&k instanceof File||k instanceof Object)&&(E=new h(j)),E.stream(k);(E=(()=>{var y;return!!f.WORKERS_SUPPORTED&&(y=(()=>{var R=r.URL||r.webkitURL||null,g=e.toString();return f.BLOB_URL||(f.BLOB_URL=R.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",g,")();"],{type:"text/javascript"})))})(),(y=new r.Worker(y)).onmessage=O,y.id=c++,s[y.id]=y)})()).userStep=j.step,E.userChunk=j.chunk,E.userComplete=j.complete,E.userError=j.error,j.step=$(j.step),j.chunk=$(j.chunk),j.complete=$(j.complete),j.error=$(j.error),delete j.worker,E.postMessage({input:k,config:j,workerId:E.id})},f.unparse=function(k,j){var E=!1,y=!0,R=",",g=`\r 26`,X='"',ft=X+X,at=!1,nt=null,it=!1,mt=((()=>{if(typeof j=="object"){if(typeof j.delimiter!="string"||f.BAD_DELIMITERS.filter(function(U){return j.delimiter.indexOf(U)!==-1}).length||(R=j.delimiter),typeof j.quotes!="boolean"&&typeof j.quotes!="function"&&!Array.isArray(j.quotes)||(E=j.quotes),typeof j.skipEmptyLines!="boolean"&&typeof j.skipEmptyLines!="string"||(at=j.skipEmptyLines),typeof j.newline=="string"&&(g=j.newline),typeof j.quoteChar=="string"&&(X=j.quoteChar,ft=X+X),typeof j.header=="boolean"&&(y=j.header),Array.isArray(j.columns)){if(j.columns.length===0)throw new Error("Option columns is empty");nt=j.columns}j.escapeChar!==void 0&&(ft=j.escapeChar+X),j.escapeFormulae instanceof RegExp?it=j.escapeFormulae:typeof j.escapeFormulae=="boolean"&&j.escapeFormulae&&(it=/^[=+\-@\t\r].*$/)}})(),new RegExp(v(X),"g"));if(typeof k=="string"&&(k=JSON.parse(k)),Array.isArray(k)){if(!k.length||Array.isArray(k[0]))return tt(null,k,at);if(typeof k[0]=="object")return tt(nt||Object.keys(k[0]),k,at)}else if(typeof k=="object")return typeof k.data=="string"&&(k.data=JSON.parse(k.data)),Array.isArray(k.data)&&(k.fields||(k.fields=k.meta&&k.meta.fields||nt),k.fields||(k.fields=Array.isArray(k.data[0])?k.fields:typeof k.data[0]=="object"?Object.keys(k.data[0]):[]),Array.isArray(k.data[0])||typeof k.data[0]=="object"||(k.data=[k.data])),tt(k.fields||[],k.data||[],at);throw new Error("Unable to serialize unrecognized input");function tt(U,M,K){var st="",dt=(typeof U=="string"&&(U=JSON.parse(U)),typeof M=="string"&&(M=JSON.parse(M)),Array.isArray(U)&&0<U.length),vt=!Array.isArray(M[0]);if(dt&&y){for(var ut=0;ut<U.length;ut++)0<ut&&(st+=R),st+=A(U[ut],ut);0<M.length&&(st+=g)}for(var yt=0;yt<M.length;yt++){var Lt=(dt?U:M[yt]).length,Ct=!1,Rt=dt?Object.keys(M[yt]).length===0:M[yt].length===0;if(K&&!dt&&(Ct=K==="greedy"?M[yt].join("").trim()==="":M[yt].length===1&&M[yt][0].length===0),K==="greedy"&&dt){for(var L=[],I=0;I<Lt;I++){var rt=vt?U[I]:I;L.push(M[yt][rt])}Ct=L.join("").trim()===""}if(!Ct){for(var W=0;W<Lt;W++){0<W&&!Rt&&(st+=R);var q=dt&&vt?U[W]:W;st+=A(M[yt][q],W)}yt<M.length-1&&(!K||0<Lt&&!Rt)&&(st+=g)}}return st}function A(U,M){var K,st,dt;return U==null?"":U.constructor===Date?JSON.stringify(U).slice(1,25):(dt=!1,it&&typeof U=="string"&&it.test(U)&&(U="'"+U,dt=!0),st=(K=U.toString()).replace(mt,ft),(dt=dt||E===!0||typeof E=="function"&&E(U,M)||Array.isArray(E)&&E[M]||((vt,ut)=>{for(var yt=0;yt<ut.length;yt++)if(-1<vt.indexOf(ut[yt]))return!0;return!1})(st,f.BAD_DELIMITERS)||-1<st.indexOf(R)||-1<K.indexOf(X)||st.charAt(0)===" "||st.charAt(st.length-1)===" ")?X+st+X:st)}},f.RECORD_SEP="�",f.UNIT_SEP="�",f.BYTE_ORDER_MARK="\uFEFF",f.BAD_DELIMITERS=["\r",` 27`,'"',f.BYTE_ORDER_MARK],f.WORKERS_SUPPORTED=!i&&!!r.Worker,f.NODE_STREAM_INPUT=1,f.LocalChunkSize=10485760,f.RemoteChunkSize=5242880,f.DefaultDelimiter=",",f.Parser=C,f.ParserHandle=N,f.NetworkStreamer=w,f.FileStreamer=h,f.StringStreamer=x,f.ReadableStreamStreamer=b,r.jQuery&&((a=r.jQuery).fn.parse=function(k){var j=k.config||{},E=[];return this.each(function(g){if(!(a(this).prop("tagName").toUpperCase()==="INPUT"&&a(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var X=0;X<this.files.length;X++)E.push({file:this.files[X],inputElem:this,instanceConfig:a.extend({},j)})}),y(),this;function y(){if(E.length===0)$(k.complete)&&k.complete();else{var g,X,ft,at,nt=E[0];if($(k.before)){var it=k.before(nt.file,nt.inputElem);if(typeof it=="object"){if(it.action==="abort")return g="AbortError",X=nt.file,ft=nt.inputElem,at=it.reason,void($(k.error)&&k.error({name:g},X,ft,at));if(it.action==="skip")return void R();typeof it.config=="object"&&(nt.instanceConfig=a.extend(nt.instanceConfig,it.config))}else if(it==="skip")return void R()}var mt=nt.instanceConfig.complete;nt.instanceConfig.complete=function(tt){$(mt)&&mt(tt,nt.file,nt.inputElem),R()},f.parse(nt.file,nt.instanceConfig)}}function R(){E.splice(0,1),y()}}),l&&(r.onmessage=function(k){k=k.data,f.WORKER_ID===void 0&&k&&(f.WORKER_ID=k.workerId),typeof k.input=="string"?r.postMessage({workerId:f.WORKER_ID,results:f.parse(k.input,k.config),finished:!0}):(r.File&&k.input instanceof File||k.input instanceof Object)&&(k=f.parse(k.input,k.config))&&r.postMessage({workerId:f.WORKER_ID,results:k,finished:!0})}),(w.prototype=Object.create(_.prototype)).constructor=w,(h.prototype=Object.create(_.prototype)).constructor=h,(x.prototype=Object.create(x.prototype)).constructor=x,(b.prototype=Object.create(_.prototype)).constructor=b,f})})(wd);var n2=wd.exports;const r2=Vf(n2),Fo={w:110,h:76},Ro={w:88.4,h:89.9}
27,hh="course-media",i2="cert-signers",a2=2*1024*1024,s2=async(t,n)=>{if(!/^image\/(png|svg\+xml|webp)$/.test(t.type))throw new Error("ÙÙÙØ¨Ù PNG Ø£Ù WEBP Ø£Ù SVG بخÙÙÙØ© Ø´ÙØ§ÙØ© ÙÙØ·");if(t.size>a2)throw new Error("Ø§ÙØØ¬Ù
Ø§ÙØ£Ùص٠2 Ù
ÙØºØ§Ø¨Ø§Ùت");const e=t.name.split(".").pop()||"png",r=`${i2}/${n}-${crypto.randomUUID()}.${e}`,{error:a}=await qe.storage.from(hh).upload(r,t,{contentType:t.type,upsert:!0});if(a)throw a;return qe.storage.from(hh).getPublicUrl(r).data.publicUrl},Oo=({label:t,hint:n,value:e,kind:r,box:a,onChange:i})=>{const[l,s]=oe.useState(!1);return B.jsxs("div",{className:"space-y-2",children:[B.jsx(yn,{children:t}),B.jsxs("div",{className:"flex items-center gap-3",children:[B.jsx("div",{className:"shrink-0 rounded border border-dashed border-border bg-white grid place-items-center overflow-hidden",style:{width:a.w*1.4,height:a.h*1.4},children:e?B.jsx("img",{src:e,alt:"",className:"w-full h-full object-contain"}):B.jsx("span",{className:"text-[10px] text-muted-foreground",children:"Ø§ÙØ§ÙتراضÙ"})}),B.jsxs("div",{className:"space-y-1",children:[B.jsxs("label",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-md border border-border cursor-pointer text-xs hover:bg-muted",children:[l?B.jsx(ei,{className:"w-3.5 h-3.5 animate-spin"}):B.jsx(Dc,{className:"w-3.5 h-3.5"}),"Ø±ÙØ¹ ØµÙØ±Ø©",B.jsx("input",{type:"file",accept:"image/png,image/webp,image/svg+xml",className:"hidden",onChange:async c=>{const f=c.target.files?.[0];if(f){s(!0);try{i(await s2(f,r)),me.success("تÙ
Ø§ÙØ±Ùع")}catch(d){me.error(d?.message||"ØªØ¹Ø°ÙØ± Ø§ÙØ±Ùع")}finally{s(!1),c.target.value=""}}}})]}),e&&B.jsx("button",{className:"block text-[11px] text-destructive",onClick:()=>i(null),children:"Ø¥Ø²Ø§ÙØ© ÙØ§ÙØ¹ÙØ¯Ø© ÙÙØ§ÙتراضÙ"}),B.jsx("p",{className:"text-[11px] text-muted-foreground",children:n})]})]})]})},o2=t=>({name:"",signer_role:"CEO & Founder",email:"",signature_url:null,logo_url:null,is_default:!1,sort_order:t}),l2=()=>{const t=$f(),[n,e]=oe.useState({}),[r,a]=oe.useState(null),{data:i=[],isLoading:l}=Is({queryKey:["certificate_signers"],queryFn:async()=>{const{data:h,error:x}=await qe.from("certificate_signers").select("*").order("sort_order");if(x)throw x;return h||[]}}),s=()=>t.invalidateQueries({queryKey:["certificate_signers"]}),c=(h,x)=>e(b=>({...b,[h]:{...b[h],...x}})),f=async h=>{const x={...h,...n[h.id]};if(!x.name.trim())return me.error("اسÙ
اÙÙ
ÙÙÙØ¹ Ù
Ø·ÙÙØ¨");const{error:b}=await qe.from("certificate_signers").update({name:x.name.trim(),signer_role:x.signer_role.trim(),email:x.email.trim(),signature_url:x.signature_url,logo_url:x.logo_url}).eq("id",h.id);if(b)return me.error("ØªØ¹Ø°ÙØ± Ø§ÙØÙØ¸");e(N=>{const v={...N};return delete v[h.id],v}),s(),me.success("تÙ
ØÙظ ÙØ§Ùب Ø§ÙØªÙÙÙØ¹")},d=async h=>{await qe.from("certificate_signers").update({is_default:!1}).eq("is_default",!0);const{error:x}=await qe.from("certificate_signers").update({is_default:!0}).eq("id",h.id);if(x)return me.error("ØªØ¹Ø°ÙØ± تعÙÙÙ Ø§ÙØ§ÙتراضÙ");s(),me.success(`${h.name} Ø£ØµØ¨Ø Ø§ÙÙØ§Ùب Ø§ÙØ§ÙتراضÙ`)},_=async h=>{if(h.is_default)return me.error("ÙØ§ ÙÙ
ÙÙ ØØ°Ù اÙÙØ§Ùب Ø§ÙØ§ÙتراضÙ");if(!confirm(`ØØ°Ù ÙØ§Ùب Ø§ÙØªÙÙÙØ¹ «${h.name}Â»Ø Ø§ÙØ´Ùادات Ø§ÙØµØ§Ø¯Ø±Ø© Ø¨Ù Ø³ØªØ¹ÙØ¯ ÙÙÙØ§Ùب Ø§ÙØ§ÙتراضÙ.`))return;const{error:x}=await qe.from("certificate_signers").delete().eq("id",h.id);if(x)return me.error("ØªØ¹Ø°ÙØ± Ø§ÙØØ°Ù");s()},w=async()=>{if(!r?.name.trim())return me.error("اسÙ
اÙÙ
ÙÙÙØ¹ Ù
Ø·ÙÙØ¨");const{error:h}=await qe.from("certificate_signers").insert({...r,name:r.name.trim(),sort_order:i.length,is_default:!1});if(h)return me.error("ØªØ¹Ø°ÙØ± Ø§ÙØ¥Ø¶Ø§ÙØ©");a(null),s(),me.success("تÙ
ت Ø¥Ø¶Ø§ÙØ© ÙØ§Ùب تÙÙÙØ¹")};return B.jsxs("div",{className:"space-y-4",children:[B.jsxs("div",{className:"flex items-center justify-between gap-3",children:[B.jsxs("div",{children:[B.jsx("h3",{className:"font-bold",children:"ÙÙØ§Ùب Ø§ÙØªÙÙÙØ¹ ÙØ§Ùشعار"}),B.jsxs("p",{className:"text-xs text-muted-foreground",children:["اÙÙØ§Ùب Ø§ÙØ§Ùتراض٠ÙÙØ³ØªØ®Ø¯Ù
تÙÙØ§Ø¦ÙÙØ§. اÙÙ
ÙØ§Ø³Ø§Øª ثابتة Ø¯Ø§Ø®Ù Ø§ÙØ´Ùادة (Ø§ÙØªÙÙÙØ¹ ",Fo.w,"Ã",Fo.h,"pxØ Ø§ÙØ´Ø¹Ø§Ø± ",Ro.w,"Ã",Ro.h,"px) ÙÙÙ ÙØªØºÙÙØ± Ù
ÙØ§Ù Ø£Ù Ø¹ÙØµØ± Ù
ÙÙ
ا ÙØ§Ù ØØ¬Ù
Ø§ÙØµÙرة اÙÙ
رÙÙØ¹Ø©."]})]}),B.jsxs(Ue,{size:"sm",variant:"outline",className:"gap-2 shrink-0",onClick:()=>a(o2(i.length)),children:[B.jsx(Oc,{className:"w-4 h-4"})," ÙØ§Ùب Ø¬Ø¯ÙØ¯"]})]}),l&&B.jsx("p",{className:"text-sm text-muted-foreground",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙâ¦"}),i.map(h=>{const x={...h,...n[h.id]};return B.jsxs("div",{className:"rounded-xl border border-border p-4 space-y-3",children:[B.jsxs("div",{className:"flex items-center justify-between gap-2",children:[B.jsx("span",{className:"font-medium",dir:"ltr",children:x.name||""}),B.jsxs("div",{className:"flex items-center gap-1",children:[h.is_default?B.jsxs("span",{className:"inline-flex items-center gap-1 text-xs text-primary",children:[B.jsx(rh,{className:"w-3.5 h-3.5 fill-current"})," Ø§ÙØªØ±Ø§Ø¶Ù"]}):B.jsxs(Ue,{size:"sm",variant:"ghost",className:"gap-1 text-xs",onClick:()=>d(h),children:[B.jsx(rh,{className:"w-3.5 h-3.5"})," تعÙÙÙ ÙØ§ÙتراضÙ"]}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>_(h),children:B.jsx(Tc,{className:"w-4 h-4 text-destructive"})})]})]}),B.jsxs("div",{className:"grid gap-3 md:grid-cols-3",children:[B.jsxs("div",{children:[B.jsx(yn,{children:"اسÙ
اÙÙ
ÙÙÙØ¹"}),B.jsx(Qn,{dir:"ltr",value:x.name,onChange:b=>c(h.id,{name:b.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"اÙÙ
ÙØµØ¨"}),B.jsx(Qn,{dir:"ltr",value:x.signer_role,onChange:b=>c(h.id,{signer_role:b.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"Ø§ÙØ¨Ø±Ùد"}),B.jsx(Qn,{dir:"ltr",value:x.email,onChange:b=>c(h.id,{email:b.target.value})})]})]}),B.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[B.jsx(Oo,{label:"ØµÙØ±Ø© Ø§ÙØªÙÙÙØ¹",kind:"signature",box:Fo,value:x.signature_url,hint:"PNG Ø´ÙØ§ÙØ ÙÙÙØ¶ÙÙÙ 440Ã304px",onChange:b=>c(h.id,{signature_url:b})}),B.jsx(Oo,{label:"Ø§ÙØ´Ø¹Ø§Ø± Ø§ÙØ¹ÙÙÙ",kind:"logo",box:Ro,value:x.logo_url,hint:"PNG Ø´ÙØ§ÙØ ÙÙÙØ¶ÙÙÙ 360Ã368px",onChange:b=>c(h.id,{logo_url:b})})]}),B.jsxs(Ue,{size:"sm",className:"gap-2",onClick:()=>f(h),children:[B.jsx(Zf,{className:"w-4 h-4"})," ØÙظ"]})]}
27,h.id)}),r&&B.jsxs("div",{className:"rounded-xl border border-primary/40 bg-primary/5 p-4 space-y-3",children:[B.jsx("h4",{className:"font-medium",children:"ÙØ§Ùب تÙÙÙØ¹ Ø¬Ø¯ÙØ¯"}),B.jsxs("div",{className:"grid gap-3 md:grid-cols-3",children:[B.jsxs("div",{children:[B.jsx(yn,{children:"اسÙ
اÙÙ
ÙÙÙØ¹"}),B.jsx(Qn,{dir:"ltr",value:r.name,onChange:h=>a({...r,name:h.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"اÙÙ
ÙØµØ¨"}),B.jsx(Qn,{dir:"ltr",value:r.signer_role,onChange:h=>a({...r,signer_role:h.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"Ø§ÙØ¨Ø±Ùد"}),B.jsx(Qn,{dir:"ltr",value:r.email,onChange:h=>a({...r,email:h.target.value})})]})]}),B.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[B.jsx(Oo,{label:"ØµÙØ±Ø© Ø§ÙØªÙÙÙØ¹",kind:"signature",box:Fo,value:r.signature_url,hint:"PNG Ø´ÙØ§ÙØ ÙÙÙØ¶ÙÙÙ 440Ã304px",onChange:h=>a({...r,signature_url:h})}),B.jsx(Oo,{label:"Ø§ÙØ´Ø¹Ø§Ø± Ø§ÙØ¹ÙÙÙ",kind:"logo",box:Ro,value:r.logo_url,hint:"PNG Ø´ÙØ§ÙØ ÙÙÙØ¶ÙÙÙ 360Ã368px",onChange:h=>a({...r,logo_url:h})})]}),B.jsxs("div",{className:"flex gap-2",children:[B.jsxs(Ue,{size:"sm",onClick:w,className:"gap-2",children:[B.jsx(Oc,{className:"w-4 h-4"})," Ø¥Ø¶Ø§ÙØ©"]}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>a(null),children:"Ø¥ÙØºØ§Ø¡"})]})]})]})};function c2(t,n){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const e=document.implementation.createHTMLDocument(),r=e.createElement("base"),a=e.createElement("a");return e.head.appendChild(r),e.body.appendChild(a),n&&(r.href=n),a.href=t,a.href}const u2=(()=>{let t=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${n()}${t}`)})();function Si(t){const n=[];for(let e=0,r=t.length;e<r;e++)n.push(t[e]);return n}let Pa=null;function yd(t={}){return Pa||(t.includeStyleProperties?(Pa=t.includeStyleProperties,Pa):(Pa=Si(window.getComputedStyle(document.documentElement)),Pa))}function al(t,n){const r=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(n);return r?parseFloat(r.replace("px","")):0}function h2(t){const n=al(t,"border-left-width"),e=al(t,"border-right-width");return t.clientWidth+n+e}function f2(t){const n=al(t,"border-top-width"),e=al(t,"border-bottom-width");return t.clientHeight+n+e}function xd(t,n={}){const e=n.width||h2(t),r=n.height||f2(t);return{width:e,height:r}}function d2(){let t,n;try{n=process}catch{}const e=n&&n.env?n.env.devicePixelRatio:null;return e&&(t=parseInt(e,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}const Yn=16384;function p2(t){(t.width>Yn||t.height>Yn)&&(t.width>Yn&&t.height>Yn?t.width>t.height?(t.height*=Yn/t.width,t.width=Yn):(t.width*=Yn/t.height,t.height=Yn):t.width>Yn?(t.height*=Yn/t.width,t.width=Yn):(t.width*=Yn/t.height,t.height=Yn))}function sl(t){return new Promise((n,e)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>n(r))})},r.onerror=e,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function g2(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function m2(t,n,e){const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),i=document.createElementNS(r,"foreignObject");return a.setAttribute("width",`${n}`),a.setAttribute("height",`${e}`),a.setAttribute("viewBox",`0 0 ${n} ${e}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),a.appendChild(i),i.appendChild(t),g2(a)}const Un=(t,n)=>{if(t instanceof n)return!0;const e=Object.getPrototypeOf(t);return e===null?!1:e.constructor.name===n.name||Un(e,n)};function b2(t){const n=t.getPropertyValue("content");return`${t.cssText} content: '${n.replace(/'|"/g,"")}';`}function v2(t,n){return yd(n).map(e=>{const r=t.getPropertyValue(e),a=t.getPropertyPriority(e);return`${e}: ${r}${a?" !important":""};`}).join(" ")}function _2(t,n,e,r){const a=`.${t}:${n}`,i=e.cssText?b2(e):v2(e,r);return document.createTextNode(`${a}{${i}}`)}function fh(t,n,e,r){const a=window.getComputedStyle(t,e),i=a.getPropertyValue("content");
27if(i===""||i==="none")return;const l=u2();try{n.className=`${n.className} ${l}`}catch{return}const s=document.createElement("style");s.appendChild(_2(l,e,a,r)),n.appendChild(s)}function w2(t,n,e){fh(t,n,":before",e),fh(t,n,":after",e)}const dh="application/font-woff",ph="image/jpeg",y2={woff:dh,woff2:dh,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ph,jpeg:ph,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function x2(t){const n=/\.([^./]*?)$/g.exec(t);return n?n[1]:""}function su(t){const n=x2(t).toLowerCase();return y2[n]||""}function A2(t){return t.split(/,/)[1]}function Mc(t){return t.search(/^(data:)/)!==-1}function k2(t,n){return`data:${n};base64,${t}`}async function Ad(t,n,e){const r=await fetch(t,n);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const a=await r.blob();return new Promise((i,l)=>{const s=new FileReader;s.onerror=l,s.onloadend=()=>{try{i(e({res:r,result:s.result}))}catch(c){l(c)}},s.readAsDataURL(a)})}const ac={};function S2(t,n,e){let r=t.replace(/\?.*/,"");return e&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),n?`[${n}]${r}`:r}async function ou(t,n,e){const r=S2(t,n,e.includeQueryParams);if(ac[r]!=null)return ac[r];e.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());let a;try{const i=await Ad(t,e.fetchRequestInit,({res:l,result:s})=>(n||(n=l.headers.get("Content-Type")||""),A2(s)));a=k2(i,n)}catch(i){a=e.imagePlaceholder||"";let l=`Failed to fetch resource: ${t}`;i&&(l=typeof i=="string"?i:i.message),l&&console.warn(l)}return ac[r]=a,a}async function N2(t){const n=t.toDataURL();return n==="data:,"?t.cloneNode(!1):sl(n)}async function L2(t,n){if(t.currentSrc){const i=document.createElement("canvas"),l=i.getContext("2d");i.width=t.clientWidth,i.height=t.clientHeight,l?.drawImage(t,0,0,i.width,i.height);const s=i.toDataURL();return sl(s)}const e=t.poster,r=su(e),a=await ou(e,r,n);return sl(a)}async function E2(t,n){var e;try{if(!((e=t?.contentDocument)===null||e===void 0)&&e.body)return await pl(t.contentDocument.body,n,!0)}catch{}return t.cloneNode(!1)}async function C2(t,n){return Un(t,HTMLCanvasElement)?N2(t):Un(t,HTMLVideoElement)?L2(t,n):Un(t,HTMLIFrameElement)?E2(t,n):t.cloneNode(kd(t))}const I2=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT",kd=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SVG";async function P2(t,n,e){var r,a;if(kd(n))return n;let i=[];return I2(t)&&t.assignedNodes?i=Si(t.assignedNodes()):Un(t,HTMLIFrameElement)&&(!((r=t.contentDocument)===null||r===void 0)&&r.body)?i=Si(t.contentDocument.body.childNodes):i=Si(((a=t.shadowRoot)!==null&&a!==void 0?a:t).childNodes),i.length===0||Un(t,HTMLVideoElement)||await i.reduce((l,s)=>l.then(()=>pl(s,e)).then(c=>{c&&n.appendChild(c)}),Promise.resolve()),n}function j2(t,n,e){const r=n.style;if(!r)return;const a=window.getComputedStyle(t);a.cssText?(r.cssText=a.cssText,r.transformOrigin=a.transformOrigin):yd(e).forEach(i=>{let l=a.getPropertyValue(i);i==="font-size"&&l.endsWith("px")&&(l=`${Math.floor(parseFloat(l.substring(0,l.length-2)))-.1}px`),Un(t,HTMLIFrameElement)&&i==="display"&&l==="inline"&&(l="block"),i==="d"&&n.getAttribute("d")&&(l=`path(${n.getAttribute("d")})`),r.setProperty(i,l,a.getPropertyPriority(i))})}function F2(t,n){Un(t,HTMLTextAreaElement)&&(n.innerHTML=t.value),Un(t,HTMLInputElement)&&n.setAttribute("value",t.value)}function R2(t,n){if(Un(t,HTMLSelectElement)){const e=n,r=Array.from(e.children).find(a=>t.value===a.getAttribute("value"));r&&r.setAttribute("selected","")}}function O2(t,n,e){return Un(n,Element)&&(j2(t,n,e),w2(t,n,e),F2(t,n),R2(t,n)),n}async function T2(t,n){const e=t.querySelectorAll?t.querySelectorAll("use"):[];if(e.length===0)return t;const r={};for(let i=0;i<e.length;i++){const s=e[i].getAttribute("xlink:href");if(s){const c=t.querySelector(s),f=document.querySelector(s);!c&&f&&!r[s]&&(r[s]=await pl(f,n,!0))}}const a=Object.values(r);if(a.length){const i="http://www.w3.org/1999/xhtml",l=document.createElementNS(i,"svg");l.setAttribute("xmlns",i),l.style.position="absolute",l.style.width="0",l.style.height="0",l.style.overflow="hidden",l.style.display="none";const s=document.createElementNS(i,"defs");l.appendChild(s);for(let c=0;c<a.length;c++)s.appendChild(a[c]);t.appendChild(l)}return t}async function pl(t,n,e){return!e&&n.filter&&!n.filter(t)?null:Promise.resolve(t).then(r=>C2(r,n)).then(r=>P2(t,r,n)).then(r=>O2(t,r,n)).then(r=>T2(r,n))}const Sd=/url\((['"]?)([^'"]+?)\1\)/g,D2=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,B2=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function M2(t){const n=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function z2(t){const n=[];return t.replace(Sd,(e,r,a)=>(n.push(a),e)),n.filter(e=>!Mc(e))}async function U2(t,n,e,r,a){try{const i=e?c2(n,e):n,l=su(n);let s;return a||(s=await ou(i,l,r)),t.replace(M2(n),`$1${s}$3`)}catch{}return t}function q2(t,{preferredFontFormat:n}){return n?t.replace(B2,e=>{for(;;){const[r,,a]=D2.exec(e)||[];if(!a)return"";if(a===n)return`src: ${r};`}}):t}function Nd(t){return t.search(Sd)!==-1}async function Ld(t,n,e){if(!Nd(t))return t;const r=q2(t,e);return z2(r).reduce((i,l)=>i.then(s=>U2(s,l,n,e)),Promise.resolve(r))}async function ja(t,n,e){var r;const a=(r=n.style)===null||r===void 0?void 0:r.getPropertyValue(t);if(a){const i=await Ld(a,null,e);return n.style.setProperty(t,i,n.style.getPropertyPriority(t)),!0}return!1}async function H2(t,n){await ja("background",t,n)||await ja("background-image",t,n),await ja("mask",t,n)||await ja("-webkit-mask",t,n)||await ja("mask-image",t,n)||await ja("-webkit-mask-image",t,n)}async function W2(t,n){const e=Un(t,HTMLImageElement);if(!(e&&!Mc(t.src))&&!(Un(t,SVGImageElement)&&!Mc(t.href.baseVal)))return;const r=e?t.src:t.href.baseVal,a=await ou(r,su(r),n);await new Promise((i,l)=>{t.onload=i,t.onerror=n.onImageErrorHandler?(...c)=>{try{i(n.onImageErrorHandler(...c))}catch(f){l(f)}}:l;const s=t;s.decode&&(s.decode=i),s.loading==="lazy"&&(s.loading="eager"),e?(t.srcset="",t.src=a):t.href.baseVal=a})}async function G2(t,n){const r=Si(t.childNodes).map(a=>Ed(a,n));await Promise.all(r).then(()=>t)}async function Ed(t,n){Un(t,Element)&&(await H2(t,n),await W2(t,n),await G2(t,n))}function $2(t,n){const{style:e}=t;n.backgroundColor&&(e.backgroundColor=n.backgroundColor),n.width&&(e.width=`${n.width}px`),n.height&&(e.height=`${n.height}px`);const r=n.style;return r!=null&&Object.keys(r).forEach(a=>{e[a]=r[a]}),t}const gh={};async function mh(t){let n=gh[t];if(n!=null)return n;const r=await(await fetch(t)).text();return n={url:t,cssText:r},gh[t]=n,n}async function bh(t,n){let e=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(e.match(/url\([^)]+\)/g)||[]).map(async l=>{let s=l.replace(r,"$1");return s.startsWith("https://")||(s=new URL(s,t.url).href),Ad(s,n.fetchRequestInit,({result:c})=>(e=e.replace(l,`url(${c})`),[l,c]))});return Promise.all(i).then(()=>e)}function vh(t){if(t==null)return[];const n=[],e=/(\/\*[\s\S]*?\*\/)/gi;let r=t.replace(e,"");const a=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
27)","gi");for(;;){const c=a.exec(r);if(c===null)break;n.push(c[0])}r=r.replace(a,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,l="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",s=new RegExp(l,"gi");for(;;){let c=i.exec(r);if(c===null){if(c=s.exec(r),c===null)break;i.lastIndex=s.lastIndex}else s.lastIndex=i.lastIndex;n.push(c[0])}return n}async function V2(t,n){const e=[],r=[];return t.forEach(a=>{if("cssRules"in a)try{Si(a.cssRules||[]).forEach((i,l)=>{if(i.type===CSSRule.IMPORT_RULE){let s=l+1;const c=i.href,f=mh(c).then(d=>bh(d,n)).then(d=>vh(d).forEach(_=>{try{a.insertRule(_,_.startsWith("@import")?s+=1:a.cssRules.length)}catch(w){console.error("Error inserting rule from remote css",{rule:_,error:w})}})).catch(d=>{console.error("Error loading remote css",d.toString())});r.push(f)}})}catch(i){const l=t.find(s=>s.href==null)||document.styleSheets[0];a.href!=null&&r.push(mh(a.href).then(s=>bh(s,n)).then(s=>vh(s).forEach(c=>{l.insertRule(c,l.cssRules.length)})).catch(s=>{console.error("Error loading remote stylesheet",s)})),console.error("Error inlining remote css file",i)}}),Promise.all(r).then(()=>(t.forEach(a=>{if("cssRules"in a)try{Si(a.cssRules||[]).forEach(i=>{e.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${a.href}`,i)}}),e))}function Z2(t){return t.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>Nd(n.style.getPropertyValue("src")))}async function K2(t,n){if(t.ownerDocument==null)throw new Error("Provided element is not within a Document");const e=Si(t.ownerDocument.styleSheets),r=await V2(e,n);return Z2(r)}function Cd(t){return t.trim().replace(/["']/g,"")}function Y2(t){const n=new Set;function e(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(i=>{n.add(Cd(i))}),Array.from(r.children).forEach(i=>{i instanceof HTMLElement&&e(i)})}return e(t),n}async function X2(t,n){const e=await K2(t,n),r=Y2(t);return(await Promise.all(e.filter(i=>r.has(Cd(i.style.fontFamily))).map(i=>{const l=i.parentStyleSheet?i.parentStyleSheet.href:null;return Ld(i.cssText,l,n)}))).join(` 28`)}async function J2(t,n){const e=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await X2(t,n);if(e){const r=document.createElement("style"),a=document.createTextNode(e);r.appendChild(a),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}async function Q2(t,n={}){const{width:e,height:r}=xd(t,n),a=await pl(t,n,!0);return await J2(a,n),await Ed(a,n),$2(a,n),await m2(a,e,r)}async function tp(t,n={}){const{width:e,height:r}=xd(t,n),a=await Q2(t,n),i=await sl(a),l=document.createElement("canvas"),s=l.getContext("2d"),c=n.pixelRatio||d2(),f=n.canvasWidth||e,d=n.canvasHeight||r;return l.width=f*c,l.height=d*c,n.skipAutoScale||p2(l),l.style.width=`${f}`,l.style.height=`${d}`,n.backgroundColor&&(s.fillStyle=n.backgroundColor,s.fillRect(0,0,l.width,l.height)),s.drawImage(i,0,0,l.width,l.height),l}async function _h(t,n={}){return(await tp(t,n)).toDataURL()}function Ie(t){"@babel/helpers - typeof";return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ie(t)}var wr=Uint8Array,tr=Uint16Array,lu=Int32Array,cu=new wr([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]),uu=new wr([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]),wh=new wr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Id=function(t,n){for(var e=new tr(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var a=new lu(e[30]),r=1;r<30;++r)for(var i=e[r];i<e[r+1];++i)a[i]=i-e[r]<<5|r;return{b:e,r:a}},Pd=Id(cu,2),ep=Pd.b,zc=Pd.r;ep[28]=258,zc[258]=28;var np=Id(uu,0),yh=np.r,Uc=new tr(32768);for(var He=0;He<32768;++He){var _i=(He&43690)>>1|(He&21845)<<1;_i=(_i&52428)>>2|(_i&13107)<<2,_i=(_i&61680)>>4|(_i&3855)<<4,Uc[He]=((_i&65280)>>8|(_i&255)<<8)>>1}var Rs=function(t,n,e){for(var r=t.length,a=0,i=new tr(n);a<r;++a)t[a]&&++i[t[a]-1];var l=new tr(n);for(a=1;a<n;++a)l[a]=l[a-1]+i[a-1]<<1;var s;if(e){s=new tr(1<<n);var c=15-n;for(a=0;a<r;++a)if(t[a])for(var f=a<<4|t[a],d=n-t[a],_=l[t[a]-1]++<<d,w=_|(1<<d)-1;_<=w;++_)s[Uc[_]>>c]=f}else for(s=new tr(r),a=0;a<r;++a)t[a]&&(s[a]=Uc[l[t[a]-1]++]>>15-t[a]);return s},na=new wr(288);for(var He=0;He<144;++He)na[He]=8;for(var He=144;He<256;++He)na[He]=9;for(var He=256;He<280;++He)na[He]=7;for(var He=280;He<288;++He)na[He]=8;var ol=new wr(32);for(var He=0;He<32;++He)ol[He]=5;var rp=Rs(na,9,0),ip=Rs(ol,5,0),jd=function(t){return(t+7)/8|0},ap=function(t,n,e){return(e==null||e>t.length)&&(e=t.length),new wr(t.subarray(n,e))},Qr=function(t,n,e){e<<=n&7;var r=n/8|0;
vendor: 12,369 bytes, lines 28-29
28t[r]|=e,t[r+1]|=e>>8},Ns=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},sc=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var a=e.length,i=e.slice();if(!a)return{t:Rd,l:0};if(a==1){var l=new wr(e[0].s+1);return l[e[0].s]=1,{t:l,l:1}}e.sort(function(Z,ot){return Z.f-ot.f}),e.push({s:-1,f:25001});var s=e[0],c=e[1],f=0,d=1,_=2;for(e[0]={s:-1,f:s.f+c.f,l:s,r:c};d!=a-1;)s=e[e[f].f<e[_].f?f++:_++],c=e[f!=d&&e[f].f<e[_].f?f++:_++],e[d++]={s:-1,f:s.f+c.f,l:s,r:c};for(var w=i[0].s,r=1;r<a;++r)i[r].s>w&&(w=i[r].s);var h=new tr(w+1),x=qc(e[d-1],h,0);if(x>n){var r=0,b=0,N=x-n,v=1<<N;for(i.sort(function(ot,et){return h[et.s]-h[ot.s]||ot.f-et.f});r<a;++r){var C=i[r].s;if(h[C]>n)b+=v-(1<<x-h[C]),h[C]=n;else break}for(b>>=N;b>0;){var O=i[r].s;h[O]<n?b-=1<<n-h[O]++-1:++r}for(;r>=0&&b;--r){var T=i[r].s;h[T]==n&&(--h[T],++b)}x=n}return{t:new wr(h),l:x}},qc=function(t,n,e){return t.s==-1?Math.max(qc(t.l,n,e+1),qc(t.r,n,e+1)):n[t.s]=e},xh=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new tr(++n),r=0,a=t[0],i=1,l=function(c){e[r++]=c},s=1;s<=n;++s)if(t[s]==a&&s!=n)++i;else{if(!a&&i>2){for(;i>138;i-=138)l(32754);i>2&&(l(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(l(a),--i;i>6;i-=6)l(8304);i>2&&(l(i-3<<5|8208),i=0)}for(;i--;)l(a);i=1,a=t[s]}return{c:e.subarray(0,r),n}},Ls=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},Fd=function(t,n,e){var r=e.length,a=jd(n+2);t[a]=r&255,t[a+1]=r>>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var i=0;i<r;++i)t[a+i+4]=e[i];return(a+4+r)*8},Ah=function(t,n,e,r,a,i,l,s,c,f,d){Qr(n,d++,e),++a[256];for(var _=sc(a,15),w=_.t,h=_.l,x=sc(i,15),b=x.t,N=x.l,v=xh(w),C=v.c,O=v.n,T=xh(b),Z=T.c,ot=T.n,et=new tr(19),$=0;$<C.length;++$)++et[C[$]&31];for(var $=0;$<Z.length;++$)++et[Z[$]&31];for(var k=sc(et,7),j=k.t,E=k.l,y=19;y>4&&!j[wh[y-1]];--y);var R=f+5<<3,g=Ls(a,na)+Ls(i,ol)+l,X=Ls(a,w)+Ls(i,b)+l+14+3*y+Ls(et,j)+2*et[16]+3*et[17]+7*et[18];if(c>=0&&R<=g&&R<=X)return Fd(n,d,t.subarray(c,c+f));var ft,at,nt,it;if(Qr(n,d,1+(X<g)),d+=2,X<g){ft=Rs(w,h,0),at=w,nt=Rs(b,N,0),it=b;var mt=Rs(j,E,0);Qr(n,d,O-257),Qr(n,d+5,ot-1),Qr(n,d+10,y-4),d+=14;for(var $=0;$<y;++$)Qr(n,d+3*$,j[wh[$]]);d+=3*y;for(var tt=[C,Z],A=0;A<2;++A)for(var U=tt[A],$=0;$<U.length;++$){var M=U[$]&31;Qr(n,d,mt[M]),d+=j[M],M>15&&(Qr(n,d,U[$]>>5&127),d+=U[$]>>12)}}else ft=rp,at=na,nt=ip,it=ol;for(var $=0;$<s;++$){var K=r[$];if(K>255){var M=K>>18&31;Ns(n,d,ft[M+257]),d+=at[M+257],M>7&&(Qr(n,d,K>>23&31),d+=cu[M]);var st=K&31;Ns(n,d,nt[st]),d+=it[st],st>3&&(Ns(n,d,K>>5&8191),d+=uu[st])}else Ns(n,d,ft[K]),d+=at[K]}return Ns(n,d,ft[256]),d+at[256]},sp=new lu([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Rd=new wr(0),op=function(t,n,e,r,a,i){var l=i.z||t.length,s=new wr(r+l+5*(1+Math.ceil(l/7e3))+a),c=s.subarray(r,s.length-a),f=i.l,d=(i.r||0)&7;if(n){d&&(c[0]=i.r>>3);for(var _=sp[n-1],w=_>>13,h=_&8191,x=(1<<e)-1,b=i.p||new tr(32768),N=i.h||new tr(x+1),v=Math.ceil(e/3),C=2*v,O=function(L){return(t[L]^t[L+1]<<v^t[L+2]<<C)&x},T=new lu(25e3),Z=new tr(288),ot=new tr(32),et=0,$=0,k=i.i||0,j=0,E=i.w||0,y=0;k+2<l;++k){var R=O(k),g=k&32767,X=N[R];if(b[g]=X,N[R]=g,E<=k){var ft=l-k;if((et>7e3||j>24576)&&(ft>423||!f)){d=Ah(t,c,0,T,Z,ot,$,j,y,k-y,d),j=et=$=0,y=k;for(var at=0;at<286;++at)Z[at]=0;for(var at=0;at<30;++at)ot[at]=0}var nt=2,it=0,mt=h,tt=g-X&32767;if(ft>2&&R==O(k-tt))for(var A=Math.min(w,ft)-1,U=Math.min(32767,k),M=Math.min(258,ft);tt<=U&&--mt&&g!=X;){if(t[k+nt]==t[k+nt-tt]){for(var K=0;K<M&&t[k+K]==t[k+K-tt];++K);if(K>nt){if(nt=K,it=tt,K>A)break;for(var st=Math.min(tt,K-2),dt=0,at=0;at<st;++at){var vt=k-tt+at&32767,ut=b[vt],yt=vt-ut&32767;yt>dt&&(dt=yt,X=vt)}}}g=X,X=b[g],tt+=g-X&32767}if(it){T[j++]=268435456|zc[nt]<<18|yh[it];var Lt=zc[nt]&31,Ct=yh[it]&31;$+=cu[Lt]+uu[Ct],++Z[257+Lt],++ot[Ct],E=k+nt,++et}else T[j++]=t[k],++Z[t[k]]}}for(k=Math.max(k,E);k<l;++k)T[j++]=t[k],++Z[t[k]];d=Ah(t,c,f,T,Z,ot,$,j,y,k-y,d),f||(i.r=d&7|c[d/8|0]<<3,d-=7,i.h=N,i.p=b,i.i=k,i.w=E)}else{for(var k=i.w||0;k<l+f;k+=65535){var Rt=k+65535;Rt>=l&&(c[d/8|0]=f,Rt=l),d=Fd(c,d+1,t.subarray(k,Rt))}i.i=l}return ap(s,0,r+jd(d)+a)},Od=function(){var t=1,n=0;return{p:function(e){for(var r=t,a=n,i=e.length|0,l=0;l!=i;){for(var s=Math.min(l+2655,i);l<s;++l)a+=r+=e[l];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}t=r,n=a},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},lp=function(t,n,e,r,a){if(!a&&(a={l:1},n.dictionary)){var i=n.dictionary.subarray(-32768),l=new wr(i.length+t.length);l.set(i),l.set(t,i.length),t=l,a.w=i.length}return op(t,n.level==null?6:n.level,n.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,a)},Td=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8},cp=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var a=Od();a.p(n.dictionary),Td(t,2,a.d())}};function Hc(t,n){n||(n={});var e=Od();e.p(t);var r=lp(t,n,n.dictionary?6:2,4);return cp(r,n),Td(r,r.length-4,e.d()),r}var up=typeof TextDecoder<"u"&&new TextDecoder,hp=0;try{up.decode(Rd,{stream:!0}),hp=1}catch{}function fp(t){if(Array.isArray(t))return t}function dp(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,a,i,l,s=[],c=!0,f=!1;try{if(i=(e=e.call(t)).next,n!==0)for(;!(c=(r=i.call(e)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(d){f=!0,a=d}finally{try{if(!c&&e.return!=null&&(l=e.return(),Object(l)!==l))return}finally{if(f)throw a}}return s}}function kh(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function pp(t,n){if(t){if(typeof t=="string")return kh(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?kh(t,n):void 0}}function gp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sh(t,n){return fp(t)||dp(t,n)||pp(t,n)||gp()}function Nh(t,n="utf8"){return new TextDecoder(n).decode(t)}const mp=new TextEncoder;function bp(t){return mp.encode(t)}const vp=1024*8,_p=(()=>{const t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),oc={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 hu{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=vp,e={}){let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);const a=e.offset?e.offset>>>0:0,i=n.byteLength-a;let l=a;(ArrayBuffer.isView(n)||n instanceof hu)&&(n.byteLength!==n.buffer.byteLength&&(l=n.byteOffset+a),n=n.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=n,this.length=i,this.byteLength=i,this.byteOffset=l,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,l,i),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,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 n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){const r=(this.offset+n)*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(n=1){return this.readArray(n,"uint8")}readArray(n,e){const r=oc[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,i=this.buffer.slice(a,a+r);if(this.littleEndian===_p&&e!=="uint8"&&e!=="int8"){const s=new Uint8Array(this.buffer.slice(a,a+r));s.reverse();const c=new oc[e](s.buffer);return this.offset+=r,c.reverse(),c}const l=new oc[e](i);return this.offset+=r,l}readInt16(){const n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){const n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){const n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){const n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){const n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){const n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){const n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){const n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let r=0;r<n;r++)e+=this.readChar();return e}readUtf8(n=1){return Nh(this.readBytes(n))}decodeText(n=1,e="utf8"){return Nh(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(bp(n))}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)}}/*! pako 2.2.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const wp=4,Lh=0,Eh=1,yp=2;function Ja(t){let n=t.length;for(;--n>=0;)t[n]=0}const xp=0,Dd=1,Ap=2,kp=3,Sp=258,fu=29,$s=256,Bs=$s+1+fu,qa=30,du=19,Bd=2*Bs+1,Ji=15,lc=16,Np=7,pu=256,Md=16,zd=17,Ud=18,Wc=new Uint8Array([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]),Xo=new Uint8Array([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]),Lp=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),qd=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ep=512,
vendor: 5,222 bytes, line 29
29ni=new Array((Bs+2)*2);Ja(ni);const Os=new Array(qa*2);Ja(Os);const Ms=new Array(Ep);Ja(Ms);const zs=new Array(Sp-kp+1);Ja(zs);const gu=new Array(fu);Ja(gu);const ll=new Array(qa);Ja(ll);function cc(t,n,e,r,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=r,this.max_length=a,this.has_stree=t&&t.length}let Hd,Wd,Gd;function uc(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}const $d=t=>t<256?Ms[t]:Ms[256+(t>>>7)],Us=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},zn=(t,n,e)=>{t.bi_valid>lc-e?(t.bi_buf|=n<<t.bi_valid&65535,Us(t,t.bi_buf),t.bi_buf=n>>lc-t.bi_valid,t.bi_valid+=e-lc):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},Or=(t,n,e)=>{zn(t,e[n*2],e[n*2+1])},Vd=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},Cp=t=>{t.bi_valid===16?(Us(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},Ip=(t,n)=>{const e=n.dyn_tree,r=n.max_code,a=n.stat_desc.static_tree,i=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,c=n.stat_desc.max_length;let f,d,_,w,h,x,b=0;for(w=0;w<=Ji;w++)t.bl_count[w]=0;for(e[t.heap[t.heap_max]*2+1]=0,f=t.heap_max+1;f<Bd;f++)d=t.heap[f],w=e[e[d*2+1]*2+1]+1,w>c&&(w=c,b++),e[d*2+1]=w,!(d>r)&&(t.bl_count[w]++,h=0,d>=s&&(h=l[d-s]),x=e[d*2],t.opt_len+=x*(w+h),i&&(t.static_len+=x*(a[d*2+1]+h)));if(b!==0){do{for(w=c-1;t.bl_count[w]===0;)w--;t.bl_count[w]--,t.bl_count[w+1]+=2,t.bl_count[c]--,b-=2}while(b>0);for(w=c;w!==0;w--)for(d=t.bl_count[w];d!==0;)_=t.heap[--f],!(_>r)&&(e[_*2+1]!==w&&(t.opt_len+=(w-e[_*2+1])*e[_*2],e[_*2+1]=w),d--)}},Zd=(t,n,e)=>{const r=new Array(Ji+1);let a=0,i,l;for(i=1;i<=Ji;i++)a=a+e[i-1]<<1,r[i]=a;for(l=0;l<=n;l++){let s=t[l*2+1];s!==0&&(t[l*2]=Vd(r[s]++,s))}},Pp=()=>{let t,n,e,r,a;const i=new Array(Ji+1);for(e=0,r=0;r<fu-1;r++)for(gu[r]=e,t=0;t<1<<Wc[r];t++)zs[e++]=r;for(zs[e-1]=r,a=0,r=0;r<16;r++)for(ll[r]=a,t=0;t<1<<Xo[r];t++)Ms[a++]=r;for(a>>=7;r<qa;r++)for(ll[r]=a<<7,t=0;t<1<<Xo[r]-7;t++)Ms[256+a++]=r;for(n=0;n<=Ji;n++)i[n]=0;for(t=0;t<=143;)ni[t*2+1]=8,t++,i[8]++;for(;t<=255;)ni[t*2+1]=9,t++,i[9]++;for(;t<=279;)ni[t*2+1]=7,t++,i[7]++;for(;t<=287;)ni[t*2+1]=8,t++,i[8]++;for(Zd(ni,Bs+1,i),t=0;t<qa;t++)Os[t*2+1]=5,Os[t*2]=Vd(t,5);Hd=new cc(ni,Wc,$s+1,Bs,Ji),Wd=new cc(Os,Xo,0,qa,Ji),Gd=new cc(new Array(0),Lp,0,du,Np)},Kd=t=>{let n;for(n=0;n<Bs;n++)t.dyn_ltree[n*2]=0;for(n=0;n<qa;n++)t.dyn_dtree[n*2]=0;for(n=0;n<du;n++)t.bl_tree[n*2]=0;t.dyn_ltree[pu*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},Yd=t=>{t.bi_valid>8?Us(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Ch=(t,n,e,r)=>{const a=n*2,i=e*2;return t[a]<t[i]||t[a]===t[i]&&r[n]<=r[e]},hc=(t,n,e)=>{const r=t.heap[e];let a=e<<1;for(;a<=t.heap_len&&(a<t.heap_len&&Ch(n,t.heap[a+1],t.heap[a],t.depth)&&a++,!Ch(n,r,t.heap[a],t.depth));)t.heap[e]=t.heap[a],e=a,a<<=1;t.heap[e]=r},Ih=(t,n,e)=>{let r,a,i=0,l,s;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+i++]&255,r+=(t.pending_buf[t.sym_buf+i++]&255)<<8,a=t.pending_buf[t.sym_buf+i++],r===0?Or(t,a,n):(l=zs[a],Or(t,l+$s+1,n),s=Wc[l],s!==0&&(a-=gu[l],zn(t,a,s)),r--,l=$d(r),Or(t,l,e),s=Xo[l],s!==0&&(r-=ll[l],zn(t,r,s)));while(i<t.sym_next);Or(t,pu,n)},Gc=(t,n)=>{const e=n.dyn_tree,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,i=n.stat_desc.elems;let l,s,c=-1,f;for(t.heap_len=0,t.heap_max=Bd,l=0;l<i;l++)e[l*2]!==0?(t.heap[++t.heap_len]=c=l,t.depth[l]=0):e[l*2+1]=0;for(;t.heap_len<2;)f=t.heap[++t.heap_len]=c<2?++c:0,e[f*2]=1,t.depth[f]=0,t.opt_len--,a&&(t.static_len-=r[f*2+1]);for(n.max_code=c,l=t.heap_len>>1;l>=1;l--)hc(t,e,l);f=i;do l=t.heap[1],t.heap[1]=t.heap[t.heap_len--],hc(t,e,1),s=t.heap[1],t.heap[--t.heap_max]=l,t.heap[--t.heap_max]=s,e[f*2]=e[l*2]+e[s*2],t.depth[f]=(t.depth[l]>=t.depth[s]?t.depth[l]:t.depth[s])+1,e[l*2+1]=e[s*2+1]=f,t.heap[1]=f++,hc(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],Ip(t,n),Zd(e,c,t.bl_count)},Ph=(t,n,e)=>{let r,a=-1,i,l=n[0*2+1],s=0,c=7,f=4;for(l===0&&(c=138,f=3),n[(e+1)*2+1]=65535,r=0;r<=e;r++)i=l,l=n[(r+1)*2+1],!(++s<c&&i===l)&&(s<f?t.bl_tree[i*2]+=s:i!==0?(i!==a&&t.bl_tree[i*2]++,t.bl_tree[Md*2]++):s<=10?t.bl_tree[zd*2]++:t.bl_tree[Ud*2]++,s=0,a=i,l===0?(c=138,f=3):i===l?(c=6,f=3):(c=7,f=4))},jh=(t,n,e)=>{let r,a=-1,i,l=n[0*2+1],s=0,c=7,f=4;for(l===0&&(c=138,f=3),r=0;r<=e;r++)if(i=l,l=n[(r+1)*2+1],!(++s<c&&i===l)){if(s<f)do Or(t,i,t.bl_tree);while(--s!==0);else i!==0?(i!==a&&(Or(t,i,t.bl_tree),s--),Or(t,Md,t.bl_tree),zn(t,s-3,2)):s<=10?(Or(t,zd,t.bl_tree),zn(t,s-3,3)):(Or(t,Ud,t.bl_tree),zn(t,s-11,7));s=0,a=i,l===0?(c=138,f=3):i===l?(c=6,f=3):(c=7,f=4)}},jp=t=>{let n;for(Ph(t,t.dyn_ltree,t.l_desc.max_code),Ph(t,t.dyn_dtree,t.d_desc.max_code),Gc(t,t.bl_desc),n=du-1;n>=3&&t.bl_tree[qd[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},Fp=(t,n,e,r)=>{let a;for(zn(t,n-257,5),zn(t,e-1,5),zn(t,r-4,4),a=0;a<r;a++)zn(t,t.bl_tree[qd[a]*2+1],3);jh(t,t.dyn_ltree,n-1),jh(t,t.dyn_dtree,e-1)},Rp=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return Lh;if(t.dyn_ltree[9*2]!==0||t.dyn_ltree[10*2]!==0||t.dyn_ltree[13*2]!==0)return Eh;for(e=32;e<$s;e++)if(t.dyn_ltree[e*2]!==0)return Eh;return Lh};let Fh=!1;const Op=t=>
29{Fh||(Pp(),Fh=!0),t.l_desc=new uc(t.dyn_ltree,Hd),t.d_desc=new uc(t.dyn_dtree,Wd),t.bl_desc=new uc(t.bl_tree,Gd),t.bi_buf=0,t.bi_valid=0,Kd(t)},Xd=(t,n,e,r)=>{zn(t,(xp<<1)+(r?1:0),3),Yd(t),Us(t,e),Us(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},Tp=t=>{zn(t,Dd<<1,3),Or(t,pu,ni),Cp(t)},Dp=(t,n,e,r)=>{let a,i,l=0;t.level>0?(t.strm.data_type===yp&&(t.strm.data_type=Rp(t)),Gc(t,t.l_desc),Gc(t,t.d_desc),l=jp(t),a=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=a&&(a=i)):a=i=e+5,e+4<=a&&n!==-1?Xd(t,n,e,r):t.strategy===wp||i===a?(zn(t,(Dd<<1)+(r?1:0),3),Ih(t,ni,Os)):(zn(t,(Ap<<1)+(r?1:0),3),Fp(t,t.l_desc.max_code+1,t.d_desc.max_code+1,l+1),Ih(t,t.dyn_ltree,t.dyn_dtree)),Kd(t),r&&Yd(t)},Bp=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(zs[e]+$s+1)*2]++,t.dyn_dtree[$d(n)*2]++),t.sym_next===t.sym_end);var Mp=Op,zp=Xd,Up=Dp,qp=Bp,Hp=Tp,Wp={_tr_init:Mp,_tr_stored_block:zp,_tr_flush_block:Up,_tr_tally:qp,_tr_align:Hp};const Gp=(t,n,e,r)=>{let a=t&65535|0,i=t>>>16&65535|0,l=0;for(;e!==0;){l=e>2e3?2e3:e,e-=l;do a=a+n[r++]|0,i=i+a|0;while(--l);a%=65521,i%=65521}return a|i<<16|0};var qs=Gp;const $p=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},Vp=new Uint32Array($p()),Zp=(t,n,e,r)=>{const a=Vp,i=r+e;t^=-1;for(let l=r;l<i;l++)t=t>>>8^a[(t^n[l])&255];return t^-1};var dn=Zp,Za={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"},Vs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Kp,_tr_stored_block:$c,_tr_flush_block:Yp,_tr_tally:Ni,_tr_align:Xp}=Wp,{Z_NO_FLUSH:Li,Z_PARTIAL_FLUSH:Jp,Z_FULL_FLUSH:Qp,Z_FINISH:ur,Z_BLOCK:Rh,Z_OK:wn,Z_STREAM_END:Oh,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:t5,Z_BUF_ERROR:fc,Z_DEFAULT_COMPRESSION:e5,Z_FILTERED:n5,Z_HUFFMAN_ONLY:To,Z_RLE:r5,Z_FIXED:i5,Z_DEFAULT_STRATEGY:a5,Z_UNKNOWN:s5,Z_DEFLATED:gl}=Vs,o5=9,l5=15,c5=8,u5=29,h5=256,Vc=h5+1+u5,f5=30,d5=19,p5=2*Vc+1,g5=15,Ne=3,Ai=258,Br=Ai+Ne+1,m5=32,Ka=42,mu=57,Zc=69,Kc=73,Yc=91,Xc=103,Qi=113,js=666,Tn=1,Qa=2,ra=3,ts=4,b5=3,ta=(t,n)=>(t.msg=Za[n],n),Th=t=>t*2-(t>4?9:0),xi=t=>{let n=t.length;for(;--n>=0;)t[n]=0},v5=t=>{let n,e,r,a=t.w_size;n=t.hash_size,r=n;do e=t.head[--r],t.head[r]=e>=a?e-a:0;while(--n);n=a,r=n;do e=t.prev[--r],t.prev[r]=e>=a?e-a:0;while(--n)};let bu=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask;const ia=(t,n)=>{let e;if(t.legacy_hash)e=t.ins_h=bu(t,t.ins_h,t.window[n+Ne-1]);else{const a=t.window,i=a[n]|a[n+1]<<8|a[n+2]<<16|a[n+3]<<24;e=t.ins_h=Math.imul(i,66521)+66521>>>16&t.hash_mask}const r=t.prev[n&t.w_mask]=t.head[e];return t.head[e]=n,r},Jn=t=>{const n=t.state;let e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},er=(t,n)=>{Yp(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,Jn(t.strm)},Le=(t,n)=>{t.pending_buf[t.pending++]=n},Es=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},Jc=(t,n,e,r)=>{let a=t.avail_in;return a>r&&(a=r),a===0?0:(t.avail_in-=a,n.set(t.input.subarray(t.next_in,t.next_in+a),e),t.state.wrap===1?t.adler=qs(t.adler,n,a,e):t.state.wrap===2&&(t.adler=dn(t.adler,n,a,e)),t.next_in+=a,t.total_in+=a,a)},Jd=(t,n)=>{let e=t.max_chain_length,r=t.strstart,a,i,l=t.prev_length,s=t.nice_match;const c=t.strstart>t.w_size-Br?t.strstart-(t.w_size-Br):0,f=t.window,d=t.w_mask,_=t.prev,w=t.strstart+Ai;let h=f[r+l-1],x=f[r+l];t.prev_length>=t.good_match&&(e>>=2),s>t.lookahead&&(s=t.lookahead);do if(a=n,!(f[a+l]!==x||f[a+l-1]!==h||f[a]!==f[r]||f[++a]!==f[r+1])){r+=2,a++;do;while(f[++r]===f[++a]&&f[++r]===f[++a]&&f[++r]===f[++a]&&f[++r]===f[++a]&&f[++r]===f[++a]&&f[++r]===f[++a]&&f[++r]===f[++a]&&f[++r]===f[++a]&&r<w);if(i=Ai-(w-r),r=w-Ai,i>l){if(t.match_start=n,l=i,i>=s)break;h=f[r+l-1],x=f[r+l]}}while((n=_[n&d])>c&&--e!==0);return l<=t.lookahead?l:t.lookahead},Ya=t=>{const n=t.w_size;let e,r,a;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-Br)&&(t.window.set(t.window.subarray(n,n+n-r),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),v5(t),r+=n),t.strm.avail_in===0)break;if(e=Jc(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.legacy_hash){if(t.lookahead+t.insert>=Ne)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=bu(t,t.ins_h,t.window[a+1]);t.insert&&(ia(t,a),a++,t.insert--,!(t.lookahead+t.insert<Ne)););}else if(t.lookahead+t.insert>Ne)for(a=t.strstart-t.insert;t.insert&&(ia(t,a),a++,t.insert--,!(t.lookahead+t.insert<=Ne)););}while(t.lookahead<Br&&t.strm.avail_in!==0)},Qd=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,a,i,l=0,s=t.strm.avail_in;
vendor: 4,618 bytes, line 29
29do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i||(i=t.strm.avail_out-i,a=t.strstart-t.block_start,r>a+t.strm.avail_in&&(r=a+t.strm.avail_in),r>i&&(r=i),r<e&&(r===0&&n!==ur||n===Li||r!==a+t.strm.avail_in)))break;l=n===ur&&r===a+t.strm.avail_in?1:0,$c(t,0,0,l),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Jn(t.strm),a&&(a>r&&(a=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,r-=a),r&&(Jc(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(l===0);return s-=t.strm.avail_in,s&&(s>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=s&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-s,t.strm.next_in),t.strstart),t.strstart+=s,t.insert+=s>t.w_size-t.insert?t.w_size-t.insert:s),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),l?ts:n!==Li&&n!==ur&&t.strm.avail_in===0&&t.strstart===t.block_start?Qa:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Jc(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,e=i>t.w_size?t.w_size:i,a=t.strstart-t.block_start,(a>=e||(a||n===ur)&&n!==Li&&t.strm.avail_in===0&&a<=i)&&(r=a>i?i:a,l=n===ur&&t.strm.avail_in===0&&r===a?1:0,$c(t,t.block_start,r,l),t.block_start+=r,Jn(t.strm)),l?ra:Tn)},dc=(t,n)=>{let e,r;for(;;){if(t.lookahead<Br){if(Ya(t),t.lookahead<Br&&n===Li)return Tn;if(t.lookahead===0)break}if(e=0,t.lookahead>=Ne&&(e=ia(t,t.strstart)),e!==0&&t.strstart-e<=t.w_size-Br&&(t.match_length=Jd(t,e)),t.match_length>=Ne)if(r=Ni(t,t.strstart-t.match_start,t.match_length-Ne),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=Ne){t.match_length--;do t.strstart++,e=ia(t,t.strstart);while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=bu(t,t.ins_h,t.window[t.strstart+1]));else r=Ni(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(er(t,!1),t.strm.avail_out===0))return Tn}return t.insert=t.strstart<Ne-1?t.strstart:Ne-1,n===ur?(er(t,!0),t.strm.avail_out===0?ra:ts):t.sym_next&&(er(t,!1),t.strm.avail_out===0)?Tn:Qa},Fa=(t,n)=>{let e,r,a;for(;;){if(t.lookahead<Br){if(Ya(t),t.lookahead<Br&&n===Li)return Tn;if(t.lookahead===0)break}if(e=0,t.lookahead>=Ne&&(e=ia(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=Ne-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-Br&&(t.match_length=Jd(t,e),t.match_length<=5&&(t.strategy===n5||t.match_length===Ne&&t.strstart-t.match_start>4096)&&(t.match_length=Ne-1)),t.prev_length>=Ne&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-Ne,r=Ni(t,t.strstart-1-t.prev_match,t.prev_length-Ne),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(e=ia(t,t.strstart));while(--t.prev_length!==0);if(t.match_available=0,t.match_length=Ne-1,t.strstart++,r&&(er(t,!1),t.strm.avail_out===0))return Tn}else if(t.match_available){if(r=Ni(t,0,t.window[t.strstart-1]),r&&er(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Tn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Ni(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<Ne-1?t.strstart:Ne-1,n===ur?(er(t,!0),t.strm.avail_out===0?ra:ts):t.sym_next&&(er(t,!1),t.strm.avail_out===0)?Tn:Qa},_5=(t,n)=>{let e,r,a,i;const l=t.window;for(;;){if(t.lookahead<=Ai){if(Ya(t),t.lookahead<=Ai&&n===Li)return Tn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=Ne&&t.strstart>0&&(a=t.strstart-1,r=l[a],r===l[++a]&&r===l[++a]&&r===l[++a])){i=t.strstart+Ai;do;while(r===l[++a]&&r===l[++a]&&r===l[++a]&&r===l[++a]&&r===l[++a]&&r===l[++a]&&r===l[++a]&&r===l[++a]&&a<i);t.match_length=Ai-(i-a),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>
vendor: 10,738 bytes, line 29
29=Ne?(e=Ni(t,1,t.match_length-Ne),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=Ni(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(er(t,!1),t.strm.avail_out===0))return Tn}return t.insert=0,n===ur?(er(t,!0),t.strm.avail_out===0?ra:ts):t.sym_next&&(er(t,!1),t.strm.avail_out===0)?Tn:Qa},w5=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(Ya(t),t.lookahead===0)){if(n===Li)return Tn;break}if(t.match_length=0,e=Ni(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(er(t,!1),t.strm.avail_out===0))return Tn}return t.insert=0,n===ur?(er(t,!0),t.strm.avail_out===0?ra:ts):t.sym_next&&(er(t,!1),t.strm.avail_out===0)?Tn:Qa};function jr(t,n,e,r,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=r,this.func=a}const Fs=[new jr(0,0,0,0,Qd),new jr(4,4,8,4,dc),new jr(4,5,16,8,dc),new jr(4,6,32,32,dc),new jr(4,4,16,16,Fa),new jr(8,16,32,32,Fa),new jr(8,16,128,128,Fa),new jr(8,32,128,256,Fa),new jr(32,128,258,1024,Fa),new jr(32,258,258,4096,Fa)],y5=t=>{t.window_size=2*t.w_size,xi(t.head),t.max_lazy_match=Fs[t.level].max_lazy,t.good_match=Fs[t.level].good_length,t.nice_match=Fs[t.level].nice_length,t.max_chain_length=Fs[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=Ne-1,t.match_available=0,t.ins_h=0};function x5(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=gl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(p5*2),this.dyn_dtree=new Uint16Array((2*f5+1)*2),this.bl_tree=new Uint16Array((2*d5+1)*2),xi(this.dyn_ltree),xi(this.dyn_dtree),xi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(g5+1),this.heap=new Uint16Array(2*Vc+1),xi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Vc+1),xi(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Zs=t=>{if(!t)return 1;const n=t.state;return!n||n.strm!==t||n.status!==Ka&&n.status!==mu&&n.status!==Zc&&n.status!==Kc&&n.status!==Yc&&n.status!==Xc&&n.status!==Qi&&n.status!==js?1:0},t1=t=>{if(Zs(t))return ta(t,Dr);t.total_in=t.total_out=0,t.data_type=s5;const n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?mu:n.wrap?Ka:Qi,t.adler=n.wrap===2?0:1,n.last_flush=-2,Kp(n),wn},e1=t=>{const n=t1(t);return n===wn&&y5(t.state),n},A5=(t,n)=>Zs(t)||t.state.wrap!==2?Dr:(t.state.gzhead=n,wn),n1=(t,n,e,r,a,i,l)=>{if(!t)return Dr;let s=1;if(n===e5&&(n=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),a<1||a>o5||e!==gl||r<8||r>15||n<0||n>9||i<0||i>i5||r===8&&s!==1)return ta(t,Dr);r===8&&(r=9);const c=new x5;return t.state=c,c.strm=t,c.status=Ka,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.legacy_hash=l?1:0,c.hash_bits=a+7,!c.legacy_hash&&c.hash_bits<15&&(c.hash_bits=15),c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+Ne-1)/Ne),c.window=new Uint8Array(c.w_size*2),c.head=new Uint16Array(c.hash_size),c.prev=new Uint16Array(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=c.lit_bufsize*4,c.pending_buf=new Uint8Array(c.pending_buf_size),c.sym_buf=c.lit_bufsize,c.sym_end=(c.lit_bufsize-1)*3,c.level=n,c.strategy=i,c.method=e,e1(t)},k5=(t,n)=>n1(t,n,gl,l5,c5,a5),S5=(t,n)=>{if(Zs(t)||n>Rh||n<0)return t?ta(t,Dr):Dr;const e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===js&&n!==ur)return ta(t,t.avail_out===0?fc:Dr);const r=e.last_flush;if(e.last_flush=n,e.pending!==0){if(Jn(t),t.avail_out===0)return e.last_flush=-1,wn}else if(t.avail_in===0&&Th(n)<=Th(r)&&n!==ur)return ta(t,fc);if(e.status===js&&t.avail_in!==0)return ta(t,fc);if(e.status===Ka&&e.wrap===0&&(e.status=Qi),e.status===Ka){let a=gl+(e.w_bits-8<<4)<<8,i=-1;if(e.strategy>=To||e.level<2?i=0:e.level<6?i=1:e.level===6?i=2:i=3,a|=i<<6,e.strstart!==0&&(a|=m5),a+=31-a%31,Es(e,a),e.strstart!==0&&(Es(e,t.adler>>>16),Es(e,t.adler&65535)),t.adler=1,e.status=Qi,Jn(t),e.pending!==0)return e.last_flush=-1,wn}if(e.status===mu){if(t.adler=0,Le(e,31),Le(e,139),Le(e,8),e.gzhead)Le(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),Le(e,e.gzhead.time&255),Le(e,e.gzhead.time>>8&255),Le(e,e.gzhead.time>>16&255),Le(e,e.gzhead.time>>24&255),Le(e,e.level===9?2:e.strategy>=To||e.level<2?4:0),Le(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(Le(e,e.gzhead.extra.length&255),Le(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=dn(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=Zc;else if(Le(e,0),Le(e,0),Le(e,0),Le(e,0),Le(e,0),Le(e,e.level===9?2:e.strategy>=To||e.level<2?4:0),Le(e,b5),e.status=Qi,Jn(t),e.pending!==0)return e.last_flush=-1,wn}if(e.status===Zc){if(e.gzhead.extra){let a=e.pending,i=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+i>e.pending_buf_size;){let s=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+s),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>a&&(t.adler=dn(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex+=s,Jn(t),e.pending!==0)return e.last_flush=-1,wn;a=0,i-=s}let l=new Uint8Array(e.gzhead.extra);e.pending_buf.set(l.subarray(e.gzindex,e.gzindex+i),e.pending),e.pending+=i,e.gzhead.hcrc&&e.pending>a&&(t.adler=dn(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Kc}if(e.status===Kc){if(e.gzhead.name){let a=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=dn(t.adler,e.pending_buf,e.pending-a,a)),Jn(t),e.pending!==0)return e.last_flush=-1,wn;a=0}e.gzindex<e.gzhead.name.length?i=e.gzhead.name.charCodeAt(e.gzindex++)&255:i=0,Le(e,i)}while(i!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=dn(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Yc}if(e.status===Yc){if(e.gzhead.comment){let a=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=dn(t.adler,e.pending_buf,e.pending-a,a)),Jn(t),e.pending!==0)return e.last_flush=-1,wn;a=0}e.gzindex<e.gzhead.comment.length?i=e.gzhead.comment.charCodeAt(e.gzindex++)&255:i=0,Le(e,i)}while(i!==0);e.gzhead.hcrc&&e.pending>a&&(t.adler=dn(t.adler,e.pending_buf,e.pending-a,a))}e.status=Xc}if(e.status===Xc){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(Jn(t),e.pending!==0))return e.last_flush=-1,wn;Le(e,t.adler&255),Le(e,t.adler>>8&255),t.adler=0}if(e.status=Qi,Jn(t),e.pending!==0)return e.last_flush=-1,wn}if(t.avail_in!==0||e.lookahead!==0||n!==Li&&e.status!==js){let a=e.level===0?Qd(e,n):e.strategy===To?w5(e,n):e.strategy===r5?_5(e,n):Fs[e.level].func(e,n);if((a===ra||a===ts)&&(e.status=js),a===Tn||a===ra)return t.avail_out===0&&(e.last_flush=-1),wn;if(a===Qa&&(n===Jp?Xp(e):n!==Rh&&($c(e,0,0,!1),n===Qp&&(xi(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),Jn(t),t.avail_out===0))return e.last_flush=-1,wn}return n!==ur?wn:e.wrap<=0?Oh:(e.wrap===2?(Le(e,t.adler&255),Le(e,t.adler>>8&255),Le(e,t.adler>>16&255),Le(e,t.adler>>24&255),Le(e,t.total_in&255),Le(e,t.total_in>>8&255),Le(e,t.total_in>>16&255),Le(e,t.total_in>>24&255)):(Es(e,t.adler>>>16),Es(e,t.adler&65535)),Jn(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?wn:Oh)},N5=t=>{if(Zs(t))return Dr;const n=t.state.status;return t.state=null,n===Qi?ta(t,t5):wn},L5=(t,n)=>{let e=n.length;if(Zs(t))return Dr;const r=t.state,a=r.wrap;if(a===2||a===1&&r.status!==Ka||r.lookahead)return Dr;if(a===1&&(t.adler=qs(t.adler,n,e,0)),r.wrap=0,e>=r.w_size){a===0&&(xi(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(n.subarray(e-r.w_size,e),0),n=c,e=r.w_size}const i=t.avail_in,l=t.next_in,s=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,Ya(r);r.lookahead>=Ne;){let c=r.strstart,f=r.lookahead-(Ne-1);do ia(r,c),c++;while(--f);r.strstart=c,r.lookahead=Ne-1,Ya(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=Ne-1,r.match_available=0,t.next_in=l,t.input=s,t.avail_in=i,r.wrap=a,wn};var E5=k5,C5=n1,I5=e1,P5=t1,j5=A5,F5=S5,R5=N5,O5=L5,T5="pako deflate (from Nodeca project)",Ts={deflateInit:E5,deflateInit2:C5,deflateReset:I5,deflateResetKeep:P5,deflateSetHeader:j5,deflate:F5,deflateEnd:R5,deflateSetDictionary:O5,deflateInfo:T5};const D5=(t,n)=>Object.prototype.hasOwnProperty.call(t,n);var B5=function(t){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)D5(e,r)&&(t[r]=e[r])}}return t},M5=t=>{let n=0;for(let r=0,a=t.length;r<a;r++)n+=t[r].length;const e=new Uint8Array(n);for(let r=0,a=0,i=t.length;r<i;r++){let l=t[r];e.set(l,a),a+=l.length}return e},ml={assign:B5,flattenChunks:M5};let r1=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r1=!1}const Hs=new Uint8Array(256);for(let t=0;t<256;t++)Hs[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Hs[254]=Hs[255]=1;var z5=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,r,a,i,l=t.length,s=0;for(a=0;a<l;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<l&&(r=t.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),s+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(s),i=0,a=0;i<s;a++)e=t.charCodeAt(a),(e&64512)===55296&&a+1<l&&(r=t.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),e<128?n[i++]=e:e<2048?(n[i++]=192|e>>>6,n[i++]=128|e&63):e<65536?(n[i++]=224|e>>>12,n[i++]=128|e>>>6&63,n[i++]=128|e&63):(n[i++]=240|e>>>18,n[i++]=128|e>>>12&63,n[i++]=128|e>>>6&63,n[i++]=128|e&63);return n};const U5=(t,n)=>{if(n<65534&&t.subarray&&r1)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e};var q5=(t,n)=>{const e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let r,a;const i=new Array(e*2);for(a=0,r=0;r<e;){let l=t[r++];if(l<128){i[a++]=l;continue}let s=Hs[l];if(s>4){i[a++]=65533,r+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&r<e;)l=l<<6|t[r++]&63,s--;if(s>
vendor: 4,497 bytes, line 29
291){i[a++]=65533;continue}l<65536?i[a++]=l:(l-=65536,i[a++]=55296|l>>10&1023,i[a++]=56320|l&1023)}return U5(i,a)},H5=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+Hs[t[e]]>n?e:n},Ws={string2buf:z5,buf2string:q5,utf8border:H5};function W5(){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 i1=W5;const a1=Object.prototype.toString,{Z_NO_FLUSH:G5,Z_SYNC_FLUSH:$5,Z_FULL_FLUSH:V5,Z_FINISH:Z5,Z_OK:cl,Z_STREAM_END:K5,Z_DEFAULT_COMPRESSION:Y5,Z_DEFAULT_STRATEGY:X5,Z_DEFLATED:J5}=Vs,Q5={level:Y5,method:J5,chunkSize:16384,windowBits:15,memLevel:8,strategy:X5,legacyHash:!0};function vu(t){this.options=ml.assign({},Q5,t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i1,this.strm.avail_out=0;let e=Ts.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy,n.legacyHash);if(e!==cl)throw new Error(Za[e]);if(n.header&&Ts.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=Ws.string2buf(n.dictionary):a1.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,e=Ts.deflateSetDictionary(this.strm,r),e!==cl)throw new Error(Za[e]);this._dict_set=!0}}vu.prototype.push=function(t,n){const e=this.strm,r=this.options.chunkSize;let a,i;if(this.ended)return!1;for(n===~~n?i=n:i=n===!0?Z5:G5,typeof t=="string"?e.input=Ws.string2buf(t):a1.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(i===$5||i===V5)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(a=Ts.deflate(e,i),a===K5)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),a=Ts.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===cl;if(e.avail_out===0){this.onData(e.output);continue}if(i>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};vu.prototype.onData=function(t){this.chunks.push(t)};vu.prototype.onEnd=function(t){t===cl&&(this.result=ml.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const Do=16209,tg=16191;var eg=function(n,e){let r,a,i,l,s,c,f,d,_,w,h,x,b,N,v,C,O,T,Z,ot,et,$,k,j;const E=n.state;r=n.next_in,k=n.input,a=r+(n.avail_in-5),i=n.next_out,j=n.output,l=i-(e-n.avail_out),s=i+(n.avail_out-257),c=E.dmax,f=E.wsize,d=E.whave,_=E.wnext,w=E.window,h=E.hold,x=E.bits,b=E.lencode,N=E.distcode,v=(1<<E.lenbits)-1,C=(1<<E.distbits)-1;t:do{x<15&&(h+=k[r++]<<x,x+=8,h+=k[r++]<<x,x+=8),O=b[h&v];e:for(;;){if(T=O>>>24,h>>>=T,x-=T,T=O>>>16&255,T===0)j[i++]=O&65535;else if(T&16){Z=O&65535,T&=15,T&&(x<T&&(h+=k[r++]<<x,x+=8),Z+=h&(1<<T)-1,h>>>=T,x-=T),x<15&&(h+=k[r++]<<x,x+=8,h+=k[r++]<<x,x+=8),O=N[h&C];n:for(;;){if(T=O>>>24,h>>>=T,x-=T,T=O>>>16&255,T&16){if(ot=O&65535,T&=15,x<T&&(h+=k[r++]<<x,x+=8,x<T&&(h+=k[r++]<<x,x+=8)),ot+=h&(1<<T)-1,ot>c){n.msg="invalid distance too far back",E.mode=Do;break t}if(h>>>=T,x-=T,T=i-l,ot>T){if(T=ot-T,T>d&&E.sane){n.msg="invalid distance too far back",E.mode=Do;break t}if(et=0,$=w,_===0){if(et+=f-T,T<Z){Z-=T;do j[i++]=w[et++];while(--T);et=i-ot,$=j}}else if(_<T){if(et+=f+_-T,T-=_,T<Z){Z-=T;do j[i++]=w[et++];while(--T);if(et=0,_<Z){T=_,Z-=T;do j[i++]=w[et++];while(--T);et=i-ot,$=j}}}else if(et+=_-T,T<Z){Z-=T;do j[i++]=w[et++];while(--T);et=i-ot,$=j}for(;Z>2;)j[i++]=$[et++],j[i++]=$[et++],j[i++]=$[et++],Z-=3;Z&&(j[i++]=$[et++],Z>1&&(j[i++]=$[et++]))}else{et=i-ot;do j[i++]=j[et++],j[i++]=j[et++],j[i++]=j[et++],Z-=3;while(Z>2);Z&&(j[i++]=j[et++],Z>1&&(j[i++]=j[et++]))}}else if(T&64){n.msg="invalid distance code",E.mode=Do;break t}else{O=N[(O&65535)+(h&(1<<T)-1)];continue n}break}}else if(T&64)if(T&32){E.mode=tg;break t}else{n.msg="invalid literal/length code",E.mode=Do;break t}else{O=b[(O&65535)+(h&(1<<T)-1)];continue e}break}}while(r<a&&i<s);Z=x>>3,r-=Z,x-=Z<<3,h&=(1<<x)-1,n.next_in=r,n.next_out=i,n.avail_in=r<a?5+(a-r):5-(r-a),n.avail_out=i<s?257+(s-i):257-(i-s),E.hold=h,E.bits=x};const Ra=15,Dh=852,Bh=592,Mh=0,pc=1,zh=2,ng=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]),rg=new
vendor: 13,970 bytes, line 29
29Uint8Array([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]),ig=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]),ag=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]),sg=(t,n,e,r,a,i,l,s)=>{const c=s.bits;let f=0,d=0,_=0,w=0,h=0,x=0,b=0,N=0,v=0,C=0,O,T,Z,ot,et,$=null,k;const j=new Uint16Array(Ra+1),E=new Uint16Array(Ra+1);let y=null,R,g,X;for(f=0;f<=Ra;f++)j[f]=0;for(d=0;d<r;d++)j[n[e+d]]++;for(h=c,w=Ra;w>=1&&j[w]===0;w--);if(h>w&&(h=w),w===0)return a[i++]=1<<24|64<<16|0,a[i++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<w&&j[_]===0;_++);for(h<_&&(h=_),N=1,f=1;f<=Ra;f++)if(N<<=1,N-=j[f],N<0)return-1;if(N>0&&(t===Mh||w!==1))return-1;for(E[1]=0,f=1;f<Ra;f++)E[f+1]=E[f]+j[f];for(d=0;d<r;d++)n[e+d]!==0&&(l[E[n[e+d]]++]=d);if(t===Mh?($=y=l,k=20):t===pc?($=ng,y=rg,k=257):($=ig,y=ag,k=0),C=0,d=0,f=_,et=i,x=h,b=0,Z=-1,v=1<<h,ot=v-1,t===pc&&v>Dh||t===zh&&v>Bh)return 1;for(;;){R=f-b,l[d]+1<k?(g=0,X=l[d]):l[d]>=k?(g=y[l[d]-k],X=$[l[d]-k]):(g=96,X=0),O=1<<f-b,T=1<<x,_=T;do T-=O,a[et+(C>>b)+T]=R<<24|g<<16|X|0;while(T!==0);for(O=1<<f-1;C&O;)O>>=1;if(O!==0?(C&=O-1,C+=O):C=0,d++,--j[f]===0){if(f===w)break;f=n[e+l[d]]}if(f>h&&(C&ot)!==Z){for(b===0&&(b=h),et+=_,x=f-b,N=1<<x;x+b<w&&(N-=j[x+b],!(N<=0));)x++,N<<=1;if(v+=1<<x,t===pc&&v>Dh||t===zh&&v>Bh)return 1;Z=C&ot,a[Z]=h<<24|x<<16|et-i|0}}return C!==0&&(a[et+C]=f-b<<24|64<<16|0),s.bits=h,0};var Ds=sg;const og=0,s1=1,o1=2,{Z_FINISH:Uh,Z_BLOCK:lg,Z_TREES:Bo,Z_OK:aa,Z_STREAM_END:cg,Z_NEED_DICT:ug,Z_STREAM_ERROR:hr,Z_DATA_ERROR:l1,Z_MEM_ERROR:c1,Z_BUF_ERROR:hg,Z_DEFLATED:qh}=Vs,bl=16180,Hh=16181,Wh=16182,Gh=16183,$h=16184,Vh=16185,Zh=16186,Kh=16187,Yh=16188,Xh=16189,ul=16190,ti=16191,gc=16192,Jh=16193,mc=16194,Qh=16195,tf=16196,ef=16197,nf=16198,Mo=16199,zo=16200,rf=16201,af=16202,sf=16203,of=16204,lf=16205,bc=16206,cf=16207,uf=16208,We=16209,u1=16210,h1=16211,fg=852,dg=592,pg=15,gg=pg,hf=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function mg(){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 oa=t=>{if(!t)return 1;const n=t.state;return!n||n.strm!==t||n.mode<bl||n.mode>h1?1:0},f1=t=>{if(oa(t))return hr;const n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=bl,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(fg),n.distcode=n.distdyn=new Int32Array(dg),n.sane=1,n.back=-1,aa},d1=t=>{if(oa(t))return hr;const n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,f1(t)},p1=(t,n)=>{let e;if(oa(t))return hr;const r=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?hr:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=e,r.wbits=n,d1(t))},g1=(t,n)=>{if(!t)return hr;const e=new mg;t.state=e,e.strm=t,e.window=null,e.mode=bl;const r=p1(t,n);return r!==aa&&(t.state=null),r},bg=t=>g1(t,gg);let ff=!0,vc,_c;const vg=t=>{if(ff){vc=new Int32Array(512),_c=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(Ds(s1,t.lens,0,288,vc,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;Ds(o1,t.lens,0,32,_c,0,t.work,{bits:5}),ff=!1}t.lencode=vc,t.lenbits=9,t.distcode=_c,t.distbits=5},m1=(t,n,e,r)=>{let a;const i=t.state;return i.window===null&&(i.window=new Uint8Array(1<<i.wbits)),i.wsize===0&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0),r>=i.wsize?(i.window.set(n.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>r&&(a=r),i.window.set(n.subarray(e-r,e-r+a),i.wnext),r-=a,r?(i.window.set(n.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0},_g=(t,n)=>{let e,r,a,i,l,s,c,f,d,_,w,h,x,b,N=0,v,C,O,T,Z,ot,et,$;const k=new Uint8Array(4);let j,E;const y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(oa(t)||!t.output||!t.input&&t.avail_in!==0)return hr;e=t.state,e.mode===ti&&(e.mode=gc),l=t.next_out,a=t.output,c=t.avail_out,i=t.next_in,r=t.input,s=t.avail_in,f=e.hold,d=e.bits,_=s,w=c,$=aa;t:for(;;)switch(e.mode){case bl:if(e.wrap===0){e.mode=gc;break}for(;d<16;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(e.wrap&2&&f===35615){e.wbits===0&&(e.wbits=15),e.check=0,k[0]=f&255,k[1]=f>>>8&255,e.check=dn(e.check,k,2,0),f=0,d=0,e.mode=Hh;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((f&255)<<8)+(f>>8))%31){t.msg="incorrect header check",e.mode=We;break}if((f&15)!==qh){t.msg="unknown compression method",e.mode=We;break}if(f>>>=4,d-=4,et=(f&15)+8,e.wbits===0&&(e.wbits=et),et>15||et>e.wbits){t.msg="invalid window size",e.mode=We;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=f&512?Xh:ti,f=0,d=0;break;case Hh:for(;d<16;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(e.flags=f,(e.flags&255)!==qh){t.msg="unknown compression method",e.mode=We;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=We;break}e.head&&(e.head.text=f>>8&1),e.flags&512&&e.wrap&4&&(k[0]=f&255,k[1]=f>>>8&255,e.check=dn(e.check,k,2,0)),f=0,d=0,e.mode=Wh;case Wh:for(;d<32;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}e.head&&(e.head.time=f),e.flags&512&&e.wrap&4&&(k[0]=f&255,k[1]=f>>>8&255,k[2]=f>>>16&255,k[3]=f>>>24&255,e.check=dn(e.check,k,4,0)),f=0,d=0,e.mode=Gh;case Gh:for(;d<16;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}e.head&&(e.head.xflags=f&255,e.head.os=f>>8),e.flags&512&&e.wrap&4&&(k[0]=f&255,k[1]=f>>>8&255,e.check=dn(e.check,k,2,0)),f=0,d=0,e.mode=$h;case $h:if(e.flags&1024){for(;d<16;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}e.length=f,e.head&&(e.head.extra_len=f),e.flags&512&&e.wrap&4&&(k[0]=f&255,k[1]=f>>>8&255,e.check=dn(e.check,k,2,0)),f=0,d=0}else e.head&&(e.head.extra=null);e.mode=Vh;case Vh:if(e.flags&1024&&(h=e.length,h>s&&(h=s),h&&(e.head&&(et=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+h),et)),e.flags&512&&e.wrap&4&&(e.check=dn(e.check,r,h,i)),s-=h,i+=h,e.length-=h),e.length))break t;e.length=0,e.mode=Zh;case Zh:if(e.flags&2048){if(s===0)break t;h=0;do et=r[i+h++],e.head&&et&&e.length<65536&&(e.head.name+=String.fromCharCode(et));while(et&&h<s);if(e.flags&512&&e.wrap&4&&(e.check=dn(e.check,r,h,i)),s-=h,i+=h,et)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=Kh;case Kh:if(e.flags&4096){if(s===0)break t;h=0;do et=r[i+h++],e.head&&et&&e.length<65536&&(e.head.comment+=String.fromCharCode(et));while(et&&h<s);if(e.flags&512&&e.wrap&4&&(e.check=dn(e.check,r,h,i)),s-=h,i+=h,et)break t}else e.head&&(e.head.comment=null);e.mode=Yh;case Yh:if(e.flags&512){for(;d<16;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(e.wrap&4&&f!==(e.check&65535)){t.msg="header crc mismatch",e.mode=We;break}f=0,d=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=ti;break;case Xh:for(;d<32;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}t.adler=e.check=hf(f),f=0,d=0,e.mode=ul;case ul:if(e.havedict===0)return t.next_out=l,t.avail_out=c,t.next_in=i,t.avail_in=s,e.hold=f,e.bits=d,ug;t.adler=e.check=1,e.mode=ti;case ti:if(n===lg||n===Bo)break t;case gc:if(e.last){f>>>=d&7,d-=d&7,e.mode=bc;break}for(;d<3;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}switch(e.last=f&1,f>>>=1,d-=1,f&3){case 0:e.mode=Jh;break;case 1:if(vg(e),e.mode=Mo,n===Bo){f>>>=2,d-=2;break t}break;case 2:e.mode=tf;break;case 3:t.msg="invalid block type",e.mode=We}f>>>=2,d-=2;break;case Jh:for(f>>>=d&7,d-=d&7;d<32;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if((f&65535)!==(f>>>16^65535)){t.msg="invalid stored block lengths",e.mode=We;break}if(e.length=f&65535,f=0,d=0,e.mode=mc,n===Bo)break t;case mc:e.mode=Qh;case Qh:if(h=e.length,h){if(h>s&&(h=s),h>c&&(h=c),h===0)break t;a.set(r.subarray(i,i+h),l),s-=h,i+=h,c-=h,l+=h,e.length-=h;break}e.mode=ti;break;case tf:for(;d<14;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(e.nlen=(f&31)+257,f>>>=5,d-=5,e.ndist=(f&31)+1,f>>>=5,d-=5,e.ncode=(f&15)+4,f>>>=4,d-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=We;break}e.have=0,e.mode=ef;case ef:for(;e.have<e.ncode;){for(;d<3;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}e.lens[y[e.have++]]=f&7,f>>>=3,d-=3}for(;e.have<19;)e.lens[y[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,j={bits:e.lenbits},$=Ds(og,e.lens,0,19,e.lencode,0,e.work,j),e.lenbits=j.bits,$){t.msg="invalid code lengths set",e.mode=We;break}e.have=0,e.mode=nf;case nf:for(;e.have<e.nlen+e.ndist;){for(;N=e.lencode[f&(1<<e.lenbits)-1],v=N>>>24,C=N>>>16&255,O=N&65535,!(v<=d);){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(O<16)f>>>=v,d-=v,e.lens[e.have++]=O;else{if(O===16){for(E=v+2;d<E;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(f>>>=v,d-=v,e.have===0){t.msg="invalid bit length repeat",e.mode=We;break}et=e.lens[e.have-1],h=3+(f&3),f>>>=2,d-=2}else if(O===17){for(E=v+3;d<E;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}f>>>=v,d-=v,et=0,h=3+(f&7),f>>>=3,d-=3}else{for(E=v+7;d<E;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}f>>>=v,d-=v,et=0,h=11+(f&127),f>>>=7,d-=7}if(e.have+h>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=We;break}for(;h--;)e.lens[e.have++]=et}}if(e.mode===We)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=We;break}if(e.lenbits=9,j={bits:e.lenbits},$=Ds(s1,e.lens,0,e.nlen,e.lencode,0,e.work,j),e.lenbits=j.bits,$){t.msg="invalid literal/lengths set",e.mode=We;break}if(e.distbits=6,e.distcode=e.distdyn,j={bits:e.distbits},$=Ds(o1,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,j),e.distbits=j.bits,$){t.msg="invalid distances set",e.mode=We;break}if(e.mode=Mo,n===Bo)break t;case Mo:e.mode=zo;case zo:if(s>=6&&c>=258){t.next_out=l,t.avail_out=c,t.next_in=i,t.avail_in=s,e.hold=f,e.bits=d,eg(t,w),l=t.next_out,a=t.output,c=t.avail_out,i=t.next_in,r=t.input,s=t.avail_in,f=e.hold,d=e.bits,e.mode===ti&&(e.back=-1);break}for(e.back=0;N=e.lencode[f&(1<<e.lenbits)-1],v=N>>>24,C=N>>>16&255,O=N&65535,!(v<=d);){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(C&&!(C&240)){for(T=v,Z=C,ot=O;N=e.lencode[ot+((f&(1<<T+Z)-1)>>T)],v=N>>>24,C=N>>>16&255,O=N&65535,!(T+v<=d);){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}f>>>=T,d-=T,e.back+=T}if(f>>>=v,d-=v,e.back+=v,e.length=O,C===0){e.mode=lf;break}if(C&32){e.back=-1,e.mode=ti;break}if(C&64){t.msg="invalid literal/length code",e.mode=We;break}e.extra=C&15,e.mode=rf;case rf:if(e.extra){for(E=e.extra;d<E;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}e.length+=f&(1<<e.extra)-1,f>>>=e.extra,d-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=af;case af:for(;N=e.distcode[f&(1<<e.distbits)-1],v=N>>>24,C=N>>>16&255,O=N&65535,!(v<=d);){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(!(C&240)){for(T=v,Z=C,ot=O;N=e.distcode[ot+((f&(1<<T+Z)-1)>>T)],v=N>>>24,C=N>>>16&255,O=N&65535,!(T+v<=d);){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}f>>>=T,d-=T,e.back+=T}if(f>>>=v,d-=v,e.back+=v,C&64){t.msg="invalid distance code",e.mode=We;break}e.offset=O,e.extra=C&15,e.mode=sf;case sf:if(e.extra){for(E=e.extra;d<E;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}e.offset+=f&(1<<e.extra)-1,f>>>=e.extra,d-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=We;break}e.mode=of;case of:if(c===0)break t;if(h=w-c,e.offset>h){if(h=e.offset-h,h>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=We;break}h>e.wnext?(h-=e.wnext,x=e.wsize-h):x=e.wnext-h,h>e.length&&(h=e.length),b=e.window}else b=a,x=l-e.offset,h=e.length;h>c&&(h=c),c-=h,e.length-=h;do a[l++]=b[x++];while(--h);e.length===0&&(e.mode=zo);break;case lf:if(c===0)break t;a[l++]=e.length,c--,e.mode=zo;break;case bc:if(e.wrap){for(;d<32;){if(s===0)break t;s--,f|=r[i++]<<d,d+=8}if(w-=c,t.total_out+=w,e.total+=w,e.wrap&4&&w&&(t.adler=e.check=e.flags?dn(e.check,a,w,l-w):qs(e.check,a,w,l-w)),w=c,e.wrap&4&&(e.flags?f:hf(f))!==e.check){t.msg="incorrect data check",e.mode=We;break}f=0,d=0}e.mode=cf;case cf:if(e.wrap&&e.flags){for(;d<32;){if(s===0)break t;s--,f+=r[i++]<<d,d+=8}if(e.wrap&4&&f!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=We;break}f=0,d=0}e.mode=uf;case uf:$=cg;break t;case We:$=l1;break t;case u1:return c1;case h1:default:return hr}return t.next_out=l,t.avail_out=c,t.next_in=i,t.avail_in=s,e.hold=f,e.bits=d,(e.wsize||w!==t.avail_out&&e.mode<We&&(e.mode<bc||n!==Uh))&&m1(t,t.output,t.next_out,w-t.avail_out),_-=t.avail_in,w-=t.avail_out,t.total_in+=_,t.total_out+=w,e.total+=w,e.wrap&4&&w&&(t.adler=e.check=e.flags?dn(e.check,a,w,t.next_out-w):qs(e.check,a,w,t.next_out-w)),t.data_type=e.bits+(e.last?64:0)+(e.mode===ti?128:0)+(e.mode===Mo||e.mode===mc?256:0),(_===0&&w===0||n===Uh)&&$===aa&&($=hg),$},wg=t=>{if(oa(t))return hr;let n=t.state;return n.window&&(n.window=null),t.state=null,aa},yg=(t,n)=>{if(oa(t))return hr;const e=t.state;return e.wrap&2?(e.head=n,n.done=!1,aa):hr},xg=(t,n)=>{const e=n.length;let r,a,i;return oa(t)||(r=t.state,r.wrap!==0&&r.mode!==ul)?hr:r.mode===ul&&(a=1,a=qs(a,n,e,0),a!==r.check)?l1:(i=m1(t,n,e,e),i?(r.mode=u1,c1):(r.havedict=1,aa))};var Ag=d1,kg=p1,Sg=f1,Ng=bg,Lg=g1,Eg=_g,Cg=wg,Ig=yg,Pg=xg,jg="pako inflate (from Nodeca project)",Rr={inflateReset:Ag,inflateReset2:kg,inflateResetKeep:Sg,inflateInit:Ng,inflateInit2:Lg,inflate:Eg,inflateEnd:Cg,inflateGetHeader:Ig,inflateSetDictionary:Pg,inflateInfo:jg};function Fg(){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 Rg=Fg;const b1=Object.prototype.toString,{Z_NO_FLUSH:Og,Z_FINISH:df,Z_OK:Ha,Z_STREAM_END:wc,Z_NEED_DICT:yc,Z_STREAM_ERROR:Tg,Z_DATA_ERROR:pf,Z_MEM_ERROR:Dg,Z_BUF_ER
29ROR:gf}=Vs,Bg={chunkSize:1024*64,windowBits:15,to:""};function Ks(t){this.options=ml.assign({},Bg,t||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i1,this.strm.avail_out=0;let e=Rr.inflateInit2(this.strm,n.windowBits);if(e!==Ha)throw new Error(Za[e]);if(this.header=new Rg,Rr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ws.string2buf(n.dictionary):b1.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=Rr.inflateSetDictionary(this.strm,n.dictionary),e!==Ha)))throw new Error(Za[e])}Ks.prototype.push=function(t,n){const e=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let i,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?df:Og,b1.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,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),i=Rr.inflate(e,l),i===yc&&a&&(i=Rr.inflateSetDictionary(e,a),i===Ha?i=Rr.inflate(e,l):i===pf&&(i=yc));e.avail_in>0&&i===wc&&e.state.wrap&2&&e.state.flags!==0&&e.input[e.next_in]!==0;)Rr.inflateReset(e),i=Rr.inflate(e,l);switch(i){case Tg:case pf:case yc:case Dg:return this.onEnd(i),this.ended=!0,!1}if(s=e.avail_out,e.next_out&&(e.avail_out===0||i===wc||l>0))if(this.options.to==="string"){let c=Ws.utf8border(e.output,e.next_out),f=e.next_out-c,d=Ws.buf2string(e.output,c);e.next_out=f,e.avail_out=r-f,f&&e.output.set(e.output.subarray(c,c+f),0),this.onData(d)}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(!((i===Ha||i===gf)&&s===0)){if(i===wc)return i=Rr.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0){if(l===df)return i=Rr.inflateEnd(this.strm),this.onEnd(i===Ha?gf:i),this.ended=!0,!1;break}}}return!0};Ks.prototype.onData=function(t){this.chunks.push(t)};Ks.prototype.onEnd=function(t){t===Ha&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ml.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function _u(t,n){const e=new Ks(n);if(e.push(t,!0),e.err)throw e.msg||Za[e.err];return e.result}function Mg(t,n){return n=n||{},n.raw=!0,_u(t,n)}var zg=Ks,Ug=_u,qg=Mg,Hg=_u,Wg=Vs,Gg={Inflate:zg,inflate:Ug,inflateRaw:qg,ungzip:Hg,constants:Wg};const{Inflate:$g,inflate:Vg,inflateRaw:Fb,ungzip:Rb}=Gg;var mf=$g,Zg=Vg;const v1=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;v1[t]=n}const bf=4294967295;function Kg(t,n,e){let r=t;for(let a=0;a<e;a++)r=v1[(r^n[a])&255]^r>>>8;return r}function Yg(t,n){return(Kg(bf,t,n)^bf)>>>0}function vf(t,n,e){const r=t.readUint32(),a=Yg(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${a}`)}function _1(t,n,e){for(let r=0;r<e;r++)n[r]=t[r]}function w1(t,n,e,r){let a=0;for(;a<r;a++)n[a]=t[a];for(;a<e;a++)n[a]=t[a]+n[a-r]&255}function y1(t,n,e,r){let a=0;if(e.length===0)for(;a<r;a++)n[a]=t[a];else for(;a<r;a++)n[a]=t[a]+e[a]&255}function x1(t,n,e,r,a){let i=0;if(e.length===0){for(;i<a;i++)n[i]=t[i];for(;i<r;i++)n[i]=t[i]+(n[i-a]>>1)&255}else{for(;i<a;i++)n[i]=t[i]+(e[i]>>1)&255;for(;i<r;i++)n[i]=t[i]+(n[i-a]+e[i]>>1)&255}}function A1(t,n,e,r,a){let i=0;if(e.length===0){for(;i<a;i++)n[i]=t[i];for(;i<r;i++)n[i]=t[i]+n[i-a]&255}else{for(;i<a;i++)n[i]=t[i]+e[i]&255;for(;i<r;i++)n[i]=t[i]+Xg(n[i-a],e[i],e[i-a])&255}}function Xg(t,n,e){const r=t+n-e,a=Math.abs(r-t),i=Math.abs(r-n),l=Math.abs(r-e);return a<=i&&a<=l?t:i<=l?n:e}function Jg(t,n,e,r,a,i){switch(t){case 0:_1(n,e,a);break;case 1:w1(n,e,a,i);break;case 2:y1(n,e,r,a);break;case 3:x1(n,e,r,a,i);break;case 4:A1(n,e,r,a,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}const Qg=new Uint16Array([255]),tm=new Uint8Array(Qg.buffer),em=tm[0]===255;function nm(t){const{data:n,width:e,height:r,channels:a,depth:i}=t,l=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(i/8)*a,c=new Uint8Array(r*e*s);let f=0;for(let d=0;d<7;d++){const _=l[d],w=Math.ceil((e-_.x)/_.xStep),h=Math.ceil((r-_.y)/_.yStep);if(w<=0||h<=0)continue;const x=w*s,b=new Uint8Array(x);for(let N=0;N<h;
vendor: 6,503 bytes, line 29
29N++){const v=n[f++],C=n.subarray(f,f+x);f+=x;const O=new Uint8Array(x);Jg(v,C,O,b,x,s),b.set(O);for(let T=0;T<w;T++){const Z=_.x+T*_.xStep,ot=_.y+N*_.yStep;if(!(Z>=e||ot>=r))for(let et=0;et<s;et++)c[(ot*e+Z)*s+et]=O[T*s+et]}}}if(i===16){const d=new Uint16Array(c.buffer);if(em)for(let _=0;_<d.length;_++)d[_]=rm(d[_]);return d}else return c}function rm(t){return(t&255)<<8|t>>8&255}const im=new Uint16Array([255]),am=new Uint8Array(im.buffer),sm=am[0]===255,om=new Uint8Array(0);function _f(t){const{data:n,width:e,height:r,channels:a,depth:i}=t,l=Math.ceil(i/8)*a,s=Math.ceil(i/8*a*e),c=new Uint8Array(r*s);let f=om,d=0,_,w;for(let h=0;h<r;h++){switch(_=n.subarray(d+1,d+1+s),w=c.subarray(h*s,(h+1)*s),n[d]){case 0:_1(_,w,s);break;case 1:w1(_,w,s,l);break;case 2:y1(_,w,f,s);break;case 3:x1(_,w,f,s,l);break;case 4:A1(_,w,f,s,l);break;default:throw new Error(`Unsupported filter: ${n[d]}`)}f=w,d+=s+1}if(i===16){const h=new Uint16Array(c.buffer);if(sm)for(let x=0;x<h.length;x++)h[x]=lm(h[x]);return h}else return c}function lm(t){return(t&255)<<8|t>>8&255}const Jo=Uint8Array.of(137,80,78,71,13,10,26,10);function wf(t){if(!cm(t.readBytes(Jo.length)))throw new Error("wrong PNG signature")}function cm(t){if(t.length<Jo.length)return!1;for(let n=0;n<Jo.length;n++)if(t[n]!==Jo[n])return!1;return!0}const um="tEXt",hm=0,k1=new TextDecoder("latin1");function fm(t){if(pm(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const dm=/^[\u0000-\u00FF]*$/;function pm(t){if(!dm.test(t))throw new Error("invalid latin1 text")}function gm(t,n,e){const r=S1(n);t[r]=mm(n,e-r.length-1)}function S1(t){for(t.mark();t.readByte()!==hm;);const n=t.offset;t.reset();const e=k1.decode(t.readBytes(n-t.offset-1));return t.skip(1),fm(e),e}function mm(t,n){return k1.decode(t.readBytes(n))}const Xn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},xc={UNKNOWN:-1,DEFLATE:0},yf={UNKNOWN:-1,ADAPTIVE:0},Ac={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Uo={NONE:0,BACKGROUND:1,PREVIOUS:2},kc={SOURCE:0,OVER:1};class bm extends hu{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);const{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new mf,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=xc.UNKNOWN,this._filterMethod=yf.UNKNOWN,this._interlaceMethod=Ac.UNKNOWN,this._colorType=Xn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(wf(this);!this._end;){const n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(wf(this);!this._end;){const n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){const r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case um:gm(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?vf(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){const r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?vf(this,n+4,e):this.skip(4)}decodeIHDR(){const n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=vm(this.readUint8());const e=this.readUint8();this._colorType=e;let r;switch(e){case Xn.GREYSCALE:r=1;break;case Xn.TRUECOLOUR:r=3;break;case Xn.INDEXED_COLOUR:r=1;break;case Xn.GREYSCALE_ALPHA:r=2;break;case Xn.TRUECOLOUR_ALPHA:r=4;break;case Xn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==xc.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 n={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(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);const e=n/3;this._hasPalette=!0;const r=[];this._palette=r;for(let a=0;a<e;a++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;const e=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Xn.GREYSCALE:case Xn.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;e<n/2;e++)this._transparency[e]=this.readUint16();break}case Xn.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alph
29a values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e<n;e++){const r=this.readByte();this._palette[e].push(r)}for(;e<this._palette.length;e++)this._palette[e].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(n){const e=S1(this),r=this.readUint8();if(r!==xc.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);const a=this.readBytes(n-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:Zg(a)}}decodepHYs(){const n=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:e,unit:r}}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 n=0;n<this._numberOfFrames;n++){const e={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].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)},r=this._frames.at(n);if(r){if(r.data=_f({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{const a=this._apng.frames.at(n-1);this.disposeFrame(r,a,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(n,e,r){switch(n.disposeOp){case Uo.NONE:break;case Uo.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let i=0;i<this._png.width;i++){const l=(a*n.width+i)*this._png.channels;for(let s=0;s<this._png.channels;s++)r.data[l+s]=0}break;case Uo.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,e){const r=1<<this._png.depth,a=(i,l)=>{const s=((i+e.yOffset)*this._png.width+e.xOffset+l)*this._png.channels,c=(i*e.width+l)*this._png.channels;return{index:s,frameIndex:c}};switch(e.blendOp){case kc.SOURCE:for(let i=0;i<e.height;i++)for(let l=0;l<e.width;l++){const{index:s,frameIndex:c}=a(i,l);for(let f=0;f<this._png.channels;f++)n.data[s+f]=e.data[c+f]}break;case kc.OVER:for(let i=0;i<e.height;i++)for(let l=0;l<e.width;l++){const{index:s,frameIndex:c}=a(i,l);for(let f=0;f<this._png.channels;f++){const d=e.data[c+this._png.channels-1]/r,_=f%(this._png.channels-1)===0?1:e.data[c+f],w=Math.floor(d*_+(1-d)*n.data[s+f]);n.data[s+f]+=w}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==yf.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Ac.NO_INTERLACE)this._png.data=_f({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Ac.ADAM7)this._png.data=nm({data:n,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 n=this._inflator.result,e=this._frames.at(-1);e?e.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Uo.NONE,blendOp:kc.SOURCE,data:n}),this._inflator=new mf,this._writingDataChunks=!1}}function vm(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var xf;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(xf||(xf={}));function _m(t,n){return new bm(t,n).decode()}var he=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Sc(){he.console&&typeof he.console.log=="function"&&he.console.log.apply(he.console,arguments)}var Oe={log:Sc,warn:function(t){he.console&&(typeof he.console.warn=="function"?he.console.warn.apply(he.console,arguments):Sc.call(null,arguments))},error:function(t){he.console&&(typeof he.console.error=="function"?he.console.error.apply(he.console,arguments):Sc(t))}};function Nc(t,n,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Ki(r.response,n,e)},r.onerror=function(){Oe.error("could not download file")},r.send()}function Af(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function qo(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");
vendor: 3,407 bytes, lines 29-34
29n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Ki=he.saveAs||((typeof window>"u"?"undefined":Ie(window))!=="object"||window!==he?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var r=he.URL||he.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?Af(a.href)?Nc(t,n,e):qo(a,a.target="_blank"):qo(a)):(a.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){qo(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(Af(t))Nc(t,n,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){qo(r)})}else navigator.msSaveOrOpenBlob(function(a,i){return i===void 0?i={autoBom:!1}:Ie(i)!=="object"&&(Oe.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a}(t,e),n)}:function(t,n,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Nc(t,n,e);var a=t.type==="application/octet-stream",i=/constructor/i.test(he.HTMLElement)||he.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&i)&&(typeof FileReader>"u"?"undefined":Ie(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var d=s.result;d=l?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=d:location=d,r=null},s.readAsDataURL(t)}else{var c=he.URL||he.webkitURL,f=c.createObjectURL(t);r?r.location=f:location.href=f,r=null,setTimeout(function(){c.revokeObjectURL(f)},4e4)}});/** 30 * A class to parse color values 31 * @author Stoyan Stefanov <[email protected]> 32 * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} 33 * @license Use it if you like it 34 */function N1(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={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
340",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"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;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(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<e.length;r++){var a=e[r].re,i=e[r].process,l=a.exec(t);l&&(n=i(l),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),c=this.g.toString(16),f=this.b.toString(16);return s.length==1&&(s="0"+s),c.length==1&&(c="0"+c),f.length==1&&(f="0"+f),"#"+s+c+f}}var Qo=he.atob.bind(he),kf=he.btoa.bind(he);/** 35 * @license 36 * Joseph Myers does not specify a particular license for his work. 37 * 38 * Author: Joseph Myers 39 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js 40 * 41 * Modified by: Owen Leong 42 */function Lc(t,n){var e=t[0],r=t[1],a=t[2],i=t[3];e=Nn(e,r,a,i,n[0],7,-680876936),i=Nn(i,e,r,a,n[1],12,-389564586),a=Nn(a,i,e,r,n[2],17,606105819),r=Nn(r,a,i,e,n[3],22,-1044525330),e=Nn(e,r,a,i,n[4],7,-176418897),i=Nn(i,e,r,a,n[5],12,1200080426),a=Nn(a,i,e,r,n[6],17,-1473231341),r=Nn(r,a,i,e,n[7],22,-45705983),e=Nn(e,r,a,i,n[8],7,1770035416),i=Nn(i,e,r,a,n[9],12,-1958414417),a=Nn(a,i,e,r,n[10],17,-42063),r=Nn(r,a,i,e,n[11],22,-1990404162),e=Nn(e,r,a,i,n[12],7,1804603682),i=Nn(i,e,r,a,n[13],12,-40341101),a=Nn(a,i,e,r,n[14],17,-1502002290),e=Ln(e,r=Nn(r,a,i,e,n[15],22,1236535329),a,i,n[1],5,-165796510),i=Ln(i,e,r,a,n[6],9,-1069501632),a=Ln(a,i,e,r,n[11],14,643717713),r=Ln(r,a,i,e,n[0],20,-373897302),e=Ln(e,r,a,i,n[5],5,-701558691),i=Ln(i,e,r,a,n[10],9,38016083),a=Ln(a,i,e,r,n[15],14,-660478335),r=Ln(r,a,i,e,n[4],20,-405537848),e=Ln(e,r,a,i,n[9],5,568446438),i=Ln(i,e,r,a,n[14],9,-1019803690),a=Ln(a,i,e,r,n[3],14,-187363961),r=Ln(r,a,i,e,n[8],20,1163531501),e=Ln(e,r,a,i,n[13],5,-1444681467),i=Ln(i,e,r,a,n[2],9,-51403784),a=Ln(a,i,e,r,n[7],14,1735328473),e=En(e,r=Ln(r,a,i,e,n[12],20,-1926607734),a,i,n[5],4,-378558),i=En(i,e,r,a,n[8],11,-2022574463),a=En(a,i,e,r,n[11],16,1839030562),r=En(r,a,i,e,n[14],23,-35309556),e=En(e,r,a,i,n[1],4,-1530992060),i=En(i,e,r,a,n[4],11,1272893353),a=En(a,i,e,r,n[7],16,-155497632),r=En(r,a,i,e,n[10],23,-1094730640),e=En(e,r,a,i,n[13],4,681279174),i=En(i,e,r,a,n[0],11,-358537222),a=En(a,i,e,r,n[3],16,-722521979),r=En(r,a,i,e,n[6],23,76029189),e=En(e,r,a,i,n[9],4,-640364487),i=En(i,e,r,a,n[12],11,-421815835),a=En(a,i,e,r,n[15],16,530742520),e=Cn(e,r=En(r,a,i,e,n[2],23,-995338651),a,i,n[0],6,-198630844),i=Cn(i,e,r,a,n[7],10,1126891415),a=Cn(a,i,e,r,n[14],15,-1416354905),r=Cn(r,a,i,e,n[5],21,-57434055),e=Cn(e,r,a,i,n[12],6,1700485571),i=Cn(i,e,r,a,n[3],10,-1894986606),a=Cn(a,i,e,r,n[10],15,-1051523),r=Cn(r,a,i,e,n[1],21,-2054922799),e=Cn(e,r,a,i,n[8],6,1873313359),i=Cn(i,e,r,a,n[15],10,-30611744),a=Cn(a,i,e,r,n[6],15,-1560198380),r=Cn(r,a,i,e,n[13],21,1309151649),e=Cn(e,r,a,i,n[4],6,-145523070),i=Cn(i,e,r,a,n[11],10,-1120210379),a=Cn(a,i,e,r,n[2],15,718787259),r=Cn(r,a,i,e,n[9],21,-343485551),t[0]=ki(e,t[0]),t[1]=ki(r,t[1]),t[2]=ki(a,t[2]),t[3]=ki(i,t[3])}function vl(t,n,e,r,a,i){return n=ki(ki(n,t),ki(r,i)),ki(n<<a|n>>>32-a,e)}function Nn(t,n,e,r,a,i,l){return vl(n&e|~n&r,t,n,a,i,l)}function Ln(t,n,e,r,a,i,l){return vl(n&r|e&~r,t,n,a,i,l)}function En(t,n,e,r,a,i,l){return vl(n^e^r,t,n,a,i,l)}function Cn(t,n,e,r,a,i,l){return vl(e^(n|~r),t,n,a,i,l)}function L1(t){var n,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)Lc(r,wm(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)a[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(Lc(r,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,Lc(r,a),r}function wm(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var Sf="0123456789abcdef".split("");function ym(t){for(var n="",e=0;e<4;e++)n+=Sf[t>>8*e+4&15]+Sf[t>>8*e&15];return n}function xm(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Qc(t){return L1(t).map(xm).join("")}var Am=function(t){for(var n=0;n<t.length;n++)t[n]=ym(t[n]);return t.join("")}(L1("hello"))!="5d41402abc4b2a76b9719d911017c592";function ki(t,n){if(Am){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}/** 43 * @license 44 * FPDF is released under a permissive license: there is no usage restriction. 45 * You may embed it freely in your application (commercial or not), with or 46 * without modifications. 47 * 48 * Reference: http://www.fpdf.org/en/script/script37.php 49 */function tu(t,n){var e,r,a,i;if(t!==e){for(var l=(a=t,i=1+(256/t.length|0),new Array(i+1).join(a)),s=[],c=0;c<256;c++)s[c]=c;var f=0;for(c=0;c<256;c++){var d=s[c];f=(f+d+l.charCodeAt(c))%256,s[c]=s[f],s[f]=d}e=t,r=s}else s=r;var _=n.length,w=0,h=0,x="";for(c=0;c<_;c++)h=(h+(d=s[w=(w+1)%256]))%256,s[w]=s[h],s[h]=d,l=s[(s[w]+s[h])%256],x+=String.fromCharCode(n.charCodeAt(c)^l);return x}/** 50 * @license 51 * Licensed under the MIT License. 52 * http://opensource.org/licenses/mit-license 53 * Author: Owen Leong (@owenl131) 54 * Date: 15 Oct 2020 55 * References: 56 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt 57 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js 58 * http://www.fpdf.org/en/script/script37.php 59 */var Nf={print:4,modify:8,copy:16,"annot-forms":32};function Da(t,n,e,r){this.v=1,this.r=2;var a=192;t.forEach(function(s){if(Nf.perm!==void 0)throw new Error("Invalid permission: "+s);a+=Nf[s]}),this.padding="(¿N^NuÂAd\0NVÿú�\b..\0¶Ãh>Â/\f©þdSiz";var i=(n+this.padding).substr(0,32),l=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,l),this.P=-(1+(255^a)),this.encryptionKey=Qc(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=tu(this.encryptionKey,this.padding)}function Ba(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,r=0;r<e;r++){var a=t.charCodeAt(r);n+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):t[r]}return n}function Lf(t){if(Ie(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};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)");n.hasOwnProperty(e)||(n[e]={});var i=Math.random().toString(35);return n[e][i]=[r,!!a],i},this.unsubscribe=function(e){for(var r in n)if(n[r][e])return delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1
vendor: 4,219 bytes, line 59
59),a=[];for(var i in n[e]){var l=n[e][i];try{l[0].apply(t,r)}catch(s){he.console&&Oe.error("jsPDF PubSub Error",s.message,s)}l[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function hl(t){if(!(this instanceof hl))return new hl(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function E1(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Xi(t,n,e,r,a){if(!(this instanceof Xi))return new Xi(t,n,e,r,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,E1.call(this,r,a)}function Ma(t,n,e,r,a){if(!(this instanceof Ma))return new Ma(t,n,e,r,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,E1.call(this,r,a)}function ie(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],i=arguments[3],l=[],s=1,c=16,f="S",d=null;Ie(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,a=t.format||a,i=t.compress||t.compressPdf||i,(d=t.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),s=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),f=t.defaultPathOperation||"S"),l=t.filters||(i===!0?["FlateEncode"]:l),r=r||"mm",e=(""+(e||"P")).toLowerCase();var _=t.putOnlyUsedFonts||!1,w={},h={internal:{},__private__:{}};h.__private__.PubSub=Lf;var x="1.3",b=h.__private__.getPdfVersion=function(){return x};h.__private__.setPdfVersion=function(p){x=p};var N={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return N};var v=h.__private__.getPageFormat=function(p){return N[p]};a=a||"a4";var C="compat",O="advanced",T=C;function Z(){this.saveGraphicsState(),I(new le(ae,0,0,-ae,0,Ri()*ae).toString()+" cm"),this.setFontSize(this.getFontSize()/ae),f="n",T=O}function ot(){this.restoreGraphicsState(),f="S",T=C}var et=h.__private__.combineFontStyleAndFontWeight=function(p,P){if(p=="bold"&&P=="normal"||p=="bold"&&P==400||p=="normal"&&P=="italic"||p=="bold"&&P=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return P&&(p=P==400||P==="normal"?p==="italic"?"italic":"normal":P!=700&&P!=="bold"||p!=="normal"?(P==700?"bold":P)+""+p:"bold"),p};h.advancedAPI=function(p){var P=T===C;return P&&Z.call(this),typeof p!="function"||(p(this),P&&ot.call(this)),this},h.compatAPI=function(p){var P=T===O;return P&&ot.call(this),typeof p!="function"||(p(this),P&&Z.call(this)),this},h.isAdvancedAPI=function(){return T===O};var $,k=function(p){if(T!==O)throw new Error(p+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=h.roundToPrecision=h.__private__.roundToPrecision=function(p,P){var Y=n||P;if(isNaN(p)||isNaN(Y))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return p.toFixed(Y).replace(/0+$/,"")};$=h.hpf=h.__private__.hpf=typeof c=="number"?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return j(p,c)}:c==="smart"?function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return j(p,p>-1&&p<1?16:5)}:function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.hpf");return j(p,16)};var E=h.f2=h.__private__.f2=function(p){if(isNaN(p))throw new Error("Invalid argument passed to
59jsPDF.f2");return j(p,2)},y=h.__private__.f3=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.f3");return j(p,3)},R=h.scale=h.__private__.scale=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.scale");return T===C?p*ae:T===O?p:void 0},g=function(p){return R(function(P){return T===C?Ri()-P:T===O?P:void 0}(p))};h.__private__.setPrecision=h.setPrecision=function(p){typeof parseInt(p,10)=="number"&&(n=parseInt(p,10))};var X,ft="00000000000000000000000000000000",at=h.__private__.getFileId=function(){return ft},nt=h.__private__.setFileId=function(p){return ft=p!==void 0&&/^[a-fA-F0-9]{32}$/.test(p)?p.toUpperCase():ft.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),d!==null&&(mn=new Da(d.userPermissions,d.userPassword,d.ownerPassword,ft)),ft};h.setFileId=function(p){return nt(p),this},h.getFileId=function(){return at()};var it=h.__private__.convertDateToPDFDate=function(p){var P=p.getTimezoneOffset(),Y=P<0?"+":"-",lt=Math.floor(Math.abs(P/60)),_t=Math.abs(P%60),It=[Y,M(lt),"'",M(_t),"'"].join("");return["D:",p.getFullYear(),M(p.getMonth()+1),M(p.getDate()),M(p.getHours()),M(p.getMinutes()),M(p.getSeconds()),It].join("")},mt=h.__private__.convertPDFDateToDate=function(p){var P=parseInt(p.substr(2,4),10),Y=parseInt(p.substr(6,2),10)-1,lt=parseInt(p.substr(8,2),10),_t=parseInt(p.substr(10,2),10),It=parseInt(p.substr(12,2),10),Tt=parseInt(p.substr(14,2),10);return new Date(P,Y,lt,_t,It,Tt,0)},tt=h.__private__.setCreationDate=function(p){var P;if(p===void 0&&(p=new Date),p instanceof Date)P=it(p);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(p))throw new Error("Invalid argument passed to jsPDF.setCreationDate");P=p}return X=P},A=h.__private__.getCreationDate=function(p){var P=X;return p==="jsDate"&&(P=mt(X)),P};h.setCreationDate=function(p){return tt(p),this},h.getCreationDate=function(p){return A(p)};var U,M=h.__private__.padd2=function(p){return("0"+parseInt(p)).slice(-2)},K=h.__private__.padd2Hex=function(p){return("00"+(p=p.toString())).substr(p.length)},st=0,dt=[],vt=[],ut=0,yt=[],Lt=[],Ct=!1,Rt=vt;h.__private__.setCustomOutputDestination=function(p){Ct=!0,Rt=p};var L=function(p){Ct||(Rt=p)};h.__private__.resetCustomOutputDestination=function(){Ct=!1,Rt=vt};var I=h.__private__.out=function(p){return p=p.toString(),ut+=p.length+1,Rt.push(p),Rt},rt=h.__private__.write=function(p){return I(arguments.length===1?p.toString():Array.prototype.join.call(arguments," "))},W=h.__private__.getArrayBuffer=function(p){for(var P=p.length,Y=new ArrayBuffer(P),lt=new Uint8Array(Y);P--;
vendor: 8,280 bytes, lines 59-60
59)lt[P]=p.charCodeAt(P);return Y},q=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return q};var G=t.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(p){return G=T===O?p/ae:p,this};var bt,wt=h.__private__.getFontSize=h.getFontSize=function(){return T===C?G:G*ae},ct=t.R2L||!1;h.__private__.setR2L=h.setR2L=function(p){return ct=p,this},h.__private__.getR2L=h.getR2L=function(){return ct};var St,Dt=h.__private__.setZoomMode=function(p){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(p))bt=p;else if(isNaN(p)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(p)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+p+'" is not recognized.');bt=p}else bt=parseInt(p,10)};h.__private__.getZoomMode=function(){return bt};var Et,Ot=h.__private__.setPageMode=function(p){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+p+'" is not recognized.');St=p};h.__private__.getPageMode=function(){return St};var qt=h.__private__.setLayoutMode=function(p){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(p)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+p+'" is not recognized.');Et=p};h.__private__.getLayoutMode=function(){return Et},h.__private__.setDisplayMode=h.setDisplayMode=function(p,P,Y){return Dt(p),qt(P),Ot(Y),this};var zt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(p){if(Object.keys(zt).indexOf(p)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zt[p]},h.__private__.getDocumentProperties=function(){return zt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(p){for(var P in zt)zt.hasOwnProperty(P)&&p[P]&&(zt[P]=p[P]);return this},h.__private__.setDocumentProperty=function(p,P){if(Object.keys(zt).indexOf(p)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zt[p]=P};var Ut,ae,Vt,_e,Kt,se={},ce={},we=[],ne={},pt={},Nt={},Ht={},Zt=null,$t=0,Gt=[],ye=new Lf(h),hn=t.hotfixes||[],Pe={},In={},nr=[],le=function p(P,Y,lt,_t,It,Tt){if(!(this instanceof p))return new p(P,Y,lt,_t,It,Tt);isNaN(P)&&(P=1),isNaN(Y)&&(Y=0),isNaN(lt)&&(lt=0),isNaN(_t)&&(_t=1),isNaN(It)&&(It=0),isNaN(Tt)&&(Tt=0),this._matrix=[P,Y,lt,_t,It,Tt]};Object.defineProperty(le.prototype,"sx",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(le.prototype,"shy",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(le.prototype,"shx",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(le.prototype,"sy",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(le.prototype,"tx",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(le.prototype,"ty",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(le.prototype,"a",{get:function(){return this._matrix[0]},set:function(p){this._matrix[0]=p}}),Object.defineProperty(le.prototype,"b",{get:function(){return this._matrix[1]},set:function(p){this._matrix[1]=p}}),Object.defineProperty(le.prototype,"c",{get:function(){return this._matrix[2]},set:function(p){this._matrix[2]=p}}),Object.defineProperty(le.prototype,"d",{get:function(){return this._matrix[3]},set:function(p){this._matrix[3]=p}}),Object.defineProperty(le.prototype,"e",{get:function(){return this._matrix[4]},set:function(p){this._matrix[4]=p}}),Object.defineProperty(le.prototype,"f",{get:function(){return this._matrix[5]},set:function(p){this._matrix[5]=p}}),Object.defineProperty(le.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(le.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(le.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(le.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),le.prototype.join=function(p){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map($).join(p)},le.prototype.multiply=function(p){var P=p.sx*this.sx+p.shy*this.shx,Y=p.sx*this.shy+p.shy*this.sy,lt=p.shx*this.sx+p.sy*this.shx,_t=p.shx*this.shy+p.sy*this.sy,It=p.tx*this.sx+p.ty*this.shx+this.tx,Tt=p.tx*this.shy+p.ty*this.sy+this.ty;return new le(P,Y,lt,_t,It,Tt)},le.prototype.decompose=function(){var p=this.sx,P=this.shy,Y=this.shx,lt=this.sy,_t=this.tx,It=this.ty,Tt=Math.sqrt(p*p+P*P),Qt=(p/=Tt)*Y+(P/=Tt)*lt;Y-=p*Qt,lt-=P*Qt;var Jt=Math.sqrt(Y*Y+lt*lt);return Qt/=Jt,p*(lt/=Jt)<P*(Y/=Jt)&&(p=-p,P=-P,Qt=-Qt,Tt=-Tt),{scale:new le(Tt,0,0,Jt,0,0),translate:new le(1,0,0,1,_t,It),rotate:new le(p,P,-P,p,0,0),skew:new le(1,0,Qt,1,0,0)}},le.prototype.toString=function(p){return this.join(" ")},le.prototype.inversed=function(){var p=this.sx,P=this.shy,Y=this.shx,lt=this.sy,_t=this.tx,It=this.ty,Tt=1/(p*lt-P*Y),Qt=lt*Tt,Jt=-P*Tt,fe=-Y*Tt,pe=p*Tt;return new le(Qt,Jt,fe,pe,-Qt*_t-fe*It,-Jt*_t-pe*It)},le.prototype.applyToPoint=function(p){var P=p.x*this.sx+p.y*this.shx+this.tx,Y=p.x*this.shy+p.y*this.sy+this.ty;return new Fi(P,Y)},le.prototype.applyToRectangle=function(p){var P=this.applyToPoint(p),Y=this.applyToPoint(new Fi(p.x+p.w,p.y+p.h));return new cs(P.x,P.y,Y.x-P.x,Y.y-P.y)},le.prototype.clone=function(){var p=this.sx,P=this.shy,Y=this.shx,lt=this.sy,_t=this.tx,It=this.ty;return new le(p,P,Y,lt,_t,It)},h.Matrix=le;var zr=h.matrixMult=function(p,P){return P.multiply(p)},Ur=new le(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Ur;var rr=function(p,P){if(!pt[p]){var Y=(P instanceof Xi?"Sh":"P")+(Object.keys(ne).length+1).toString(10);P.id=Y,pt[p]=Y,ne[Y]=P,ye.publish("addPattern",P)}};h.ShadingPattern=Xi,h.TilingPattern=Ma,h.addShadingPattern=function(p,P){return k("addShadingPattern()"),rr(p,P),this},h.beginTilingPattern=function(p){k("beginTilingPattern()"),us(p.boundingBox[0],p.boundingBox[1],p.boundingBox[2]-p.boundingBox[0],p.boundingBox[3]-p.boundingBox[1],p.matrix)},h.endTilingPattern=function(p,P){k("endTilingPattern()"),P.stream=Lt[U].join(` 60`),rr(p,P),ye.publish("endTilingPattern",P),nr.pop().restore()};var ir,Ve=h.__private__.newObject=function(){var p=fn();return gn(p,!0),p},fn=h.__private__.newObjectDeferred=function(){return st++,dt[st]=function(){return ut},st},gn=function(p,P){return P=typeof P=="boolean"&&P,dt[p]=ut,P&&I(p+" 0 obj"),p},Ci=h.__private__.newAdditionalObject=function(){var p={objId:fn(),content:""};return yt.push(p),p},ii=fn(),fr=fn(),Ar=h.__private__.decodeColorString=function(p){var P=p.split(" ");if(P.length!==2||P[1]!=="g"&&P[1]!=="G")P.length!==5||P[4]!=="k"&&P[4]!=="K"||(P=[(1-P[0])*(1-P[3]),(1-P[1])*(1-P[3]),(1-P[2])*(1-P[3]),"r"]);else{var Y=parseFloat(P[0]);P=[Y,Y,Y,"r"]}for(var lt="#",_t=0;_t<3;_t++)lt+=("0"+Math.floor(255*parseFloat(P[_t])).toString(16)).slice(-2);return lt},dr=h.__private__.encodeColorString=function(p){var P;typeof p=="string"&&(p={ch1:p});var Y=p.ch1,lt=p.ch2,_t=p.ch3,It=p.ch4,Tt=p.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Y=="string"&&Y.charAt(0)!=="#"){var Qt=new N1(Y);if(Qt.ok)Y=Qt.toHex();else if(!/^\d*\.?\d*$/.test(Y))throw new Error('Invalid color "'+Y+'" passed to
60jsPDF.encodeColorString.')}if(typeof Y=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Y)&&(Y="#"+Y[1]+Y[1]+Y[2]+Y[2]+Y[3]+Y[3]),typeof Y=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Y)){var Jt=parseInt(Y.substr(1),16);Y=Jt>>16&255,lt=Jt>>8&255,_t=255&Jt}if(lt===void 0||It===void 0&&Y===lt&<===_t)P=typeof Y=="string"?Y+" "+Tt[0]:p.precision===2?E(Y/255)+" "+Tt[0]:y(Y/255)+" "+Tt[0];else if(It===void 0||Ie(It)==="object"){if(It&&!isNaN(It.a)&&It.a===0)return["1.","1.","1.",Tt[1]].join(" ");P=typeof Y=="string"?[Y,lt,_t,Tt[1]].join(" "):p.precision===2?[E(Y/255),E(lt/255),E(_t/255),Tt[1]].join(" "):[y(Y/255),y(lt/255),y(_t/255),Tt[1]].join(" ")}else P=typeof Y=="string"?[Y,lt,_t,It,Tt[2]].join(" "):p.precision===2?[E(Y),E(lt),E(_t),E(It),Tt[2]].join(" "):[y(Y),y(lt),y(_t),y(It),Tt[2]].join(" ");return P},pr=h.__private__.getFilters=function(){return l},ar=h.__private__.putStream=function(p){var P=(p=p||{}).data||"",Y=p.filters||pr(),lt=p.alreadyAppliedFilters||[],_t=p.addLength1||!1,It=P.length,Tt=p.objectId,Qt=function(Me){return Me};if(d!==null&&Tt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");d!==null&&(Qt=mn.encryptor(Tt,0));var Jt={};Y===!0&&(Y=["FlateEncode"]);var fe=p.additionalKeyValues||[],pe=(Jt=ie.API.processDataByFilters!==void 0?ie.API.processDataByFilters(P,Y):{data:P,reverseChain:[]}).reverseChain+(Array.isArray(lt)?lt.join(" "):lt.toString());if(Jt.data.length!==0&&(fe.push({key:"Length",value:Jt.data.length}),_t===!0&&fe.push({key:"Length1",value:It})),pe.length!=0)if(pe.split("/").length-1==1)fe.push({key:"Filter",value:pe});else{fe.push({key:"Filter",value:"["+pe+"]"});for(var Ae=0;Ae<fe.length;Ae+=1)if(fe[Ae].key==="DecodeParms"){for(var an=[],Fe=0;Fe<Jt.reverseChain.split("/").length-1;Fe+=1)an.push("null");an.push(fe[Ae].value),fe[Ae].value="["+an.join(" ")+"]"}}I("<<");for(var je=0;je<fe.length;je++)I("/"+fe[je].key+" "+fe[je].value);I(">>"),Jt.data.length!==0&&(I("stream"),I(Qt(Jt.data)),I("endstream"))},Ii=h.__private__.putPage=function(p){var P=p.number,Y=p.data,lt=p.objId,_t=p.contentsObjId;gn(lt,!0),I("<</Type /Page"),I("/Parent "+p.rootDictionaryObjId+" 0 R"),I("/Resources "+p.resourceDictionaryObjId+" 0 R"),I("/MediaBox ["+parseFloat($(p.mediaBox.bottomLeftX))+" "+parseFloat($(p.mediaBox.bottomLeftY))+" "+$(p.mediaBox.topRightX)+" "+$(p.mediaBox.topRightY)+"]"),p.cropBox!==null&&I("/CropBox ["+$(p.cropBox.bottomLeftX)+" "+$(p.cropBox.bottomLeftY)+" "+$(p.cropBox.topRightX)+" "+$(p.cropBox.topRightY)+"]"),p.bleedBox!==null&&I("/BleedBox ["+$(p.bleedBox.bottomLeftX)+" "+$(p.bleedBox.bottomLeftY)+" "+$(p.bleedBox.topRightX)+" "+$(p.bleedBox.topRightY)+"]"),p.trimBox!==null&&I("/TrimBox ["+$(p.trimBox.bottomLeftX)+" "+$(p.trimBox.bottomLeftY)+" "+$(p.trimBox.topRightX)+" "+$(p.trimBox.topRightY)+"]"),p.artBox!==null&&I("/ArtBox ["+$(p.artBox.bottomLeftX)+" "+$(p.artBox.bottomLeftY)+" "+$(p.artBox.topRightX)+" "+$(p.artBox.topRightY)+"]"),typeof p.userUnit=="number"&&p.userUnit!==1&&I("/UserUnit "+p.userUnit),ye.publish("putPage",{objId:lt,pageContext:Gt[P],pageNumber:P,page:Y}),I("/Contents "+_t+" 0 R"),I(">>"),I("endobj");var It=Y.join(` 61`);return T===O&&(It+=` 62Q`),gn(_t,!0),ar({data:It,filters:pr(),objectId:_t}),I("endobj"),lt},kr=h.__private__.putPages=function(){var p,P,Y=[];for(p=1;p<=$t;p++)Gt[p].objId=fn(),Gt[p].contentsObjId=fn();for(p=1;p<=$t;p++)Y.push(Ii({number:p,data:Lt[p],objId:Gt[p].objId,contentsObjId:Gt[p].contentsObjId,mediaBox:Gt[p].mediaBox,cropBox:Gt[p].cropBox,bleedBox:Gt[p].bleedBox,trimBox:Gt[p].trimBox,artBox:Gt[p].artBox,userUnit:Gt[p].userUnit,rootDictionaryObjId:ii,resourceDictionaryObjId:fr}));gn(ii,!0),I("<</Type /Pages");var lt="/Kids [";for(P=0;P<$t;P++)lt+=Y[P]+" 0 R ";I(lt+"]"),I("/Count "+$t),I(">>"),I("endobj"),ye.publish("postPutPages")},Pi=function(p){ye.publish("putFont",{font:p,out:I,newObject:Ve,putStream:ar}),p.isAlreadyPutted!==!0&&(p.objectNumber=Ve(),I("<<"),I("/Type /Font"),I("/BaseFont /"+Ba(p.postScriptName)),I("/Subtype /Type1"),typeof p.encoding=="string"&&I("/Encoding /"+p.encoding),I("/FirstChar 32"),I("/LastChar 255"),I(">>"),I("endobj"))}
vendor: 6,484 bytes, lines 62-63
62,ca=function(p){p.objectNumber=Ve();var P=[];P.push({key:"Type",value:"/XObject"}),P.push({key:"Subtype",value:"/Form"}),P.push({key:"BBox",value:"["+[$(p.x),$(p.y),$(p.x+p.width),$(p.y+p.height)].join(" ")+"]"}),P.push({key:"Matrix",value:"["+p.matrix.toString()+"]"});var Y=p.pages[1].join(` 63`);ar({data:Y,additionalKeyValues:P,objectId:p.objectNumber}),I("endobj")},ua=function(p,P){P||(P=21);var Y=Ve(),lt=function(Tt,Qt){var Jt,fe=[],pe=1/(Qt-1);for(Jt=0;Jt<1;Jt+=pe)fe.push(Jt);if(fe.push(1),Tt[0].offset!=0){var Ae={offset:0,color:Tt[0].color};Tt.unshift(Ae)}if(Tt[Tt.length-1].offset!=1){var an={offset:1,color:Tt[Tt.length-1].color};Tt.push(an)}for(var Fe="",je=0,Me=0;Me<fe.length;Me++){for(Jt=fe[Me];Jt>Tt[je+1].offset;)je++;var Ge=Tt[je].offset,$e=(Jt-Ge)/(Tt[je+1].offset-Ge),xn=Tt[je].color,Vr=Tt[je+1].color;Fe+=K(Math.round((1-$e)*xn[0]+$e*Vr[0]).toString(16))+K(Math.round((1-$e)*xn[1]+$e*Vr[1]).toString(16))+K(Math.round((1-$e)*xn[2]+$e*Vr[2]).toString(16))}return Fe.trim()}(p.colors,P),_t=[];_t.push({key:"FunctionType",value:"0"}),_t.push({key:"Domain",value:"[0.0 1.0]"}),_t.push({key:"Size",value:"["+P+"]"}),_t.push({key:"BitsPerSample",value:"8"}),_t.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_t.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ar({data:lt,additionalKeyValues:_t,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Y}),I("endobj"),p.objectNumber=Ve(),I("<< /ShadingType "+p.type),I("/ColorSpace /DeviceRGB");var It="/Coords ["+$(parseFloat(p.coords[0]))+" "+$(parseFloat(p.coords[1]))+" ";p.type===2?It+=$(parseFloat(p.coords[2]))+" "+$(parseFloat(p.coords[3])):It+=$(parseFloat(p.coords[2]))+" "+$(parseFloat(p.coords[3]))+" "+$(parseFloat(p.coords[4]))+" "+$(parseFloat(p.coords[5])),I(It+="]"),p.matrix&&I("/Matrix ["+p.matrix.toString()+"]"),I("/Function "+Y+" 0 R"),I("/Extend [true true]"),I(">>"),I("endobj")},ha=function(p,P){var Y=fn(),lt=Ve();P.push({resourcesOid:Y,objectOid:lt}),p.objectNumber=lt;var _t=[];_t.push({key:"Type",value:"/Pattern"}),_t.push({key:"PatternType",value:"1"}),_t.push({key:"PaintType",value:"1"}),_t.push({key:"TilingType",value:"1"}),_t.push({key:"BBox",value:"["+p.boundingBox.map($).join(" ")+"]"}),_t.push({key:"XStep",value:$(p.xStep)}),_t.push({key:"YStep",value:$(p.yStep)}),_t.push({key:"Resources",value:Y+" 0 R"}),p.matrix&&_t.push({key:"Matrix",value:"["+p.matrix.toString()+"]"}),ar({data:p.stream,additionalKeyValues:_t,objectId:p.objectNumber}),I("endobj")},_l=function(p){for(var P in p.objectNumber=Ve(),I("<<"),p)switch(P){case"opacity":I("/ca "+E(p[P]));break;case"stroke-opacity":I("/CA "+E(p[P]))}I(">>"),I("endobj")},es=function(p){gn(p.resourcesOid,!0),I("<<"),I("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var P in I("/Font <<"),se)se.hasOwnProperty(P)&&(_===!1||_===!0&&w.hasOwnProperty(P))&&I("/"+P+" "+se[P].objectNumber+" 0 R");I(">>")}(),function(){if(Object.keys(ne).length>0){for(var P in I("/Shading <<"),ne)ne.hasOwnProperty(P)&&ne[P]instanceof Xi&&ne[P].objectNumber>=0&&I("/"+P+" "+ne[P].objectNumber+" 0 R");ye.publish("putShadingPatternDict"),I(">>")}}(),function(P){if(Object.keys(ne).length>0){for(var Y in I("/Pattern <<"),ne)ne.hasOwnProperty(Y)&&ne[Y]instanceof h.TilingPattern&&ne[Y].objectNumber>=0&&ne[Y].objectNumber<P&&I("/"+Y+" "+ne[Y].objectNumber+" 0 R");ye.publish("putTilingPatternDict"),I(">>")}}(p.objectOid),function(){if(Object.keys(Nt).length>0){var P;for(P in I("/ExtGState <<"),Nt)Nt.hasOwnProperty(P)&&Nt[P].objectNumber>=0&&I("/"+P+" "+Nt[P].objectNumber+" 0 R");ye.publish("putGStateDict"),I(">>")}}(),function(){for(var P in I("/XObject <<"),Pe)Pe.hasOwnProperty(P)&&Pe[P].objectNumber>=0&&I("/"+P+" "+Pe[P].objectNumber+" 0 R");ye.publish("putXobjectDict"),I(">>")}(),I(">>"),I("endobj")},Ys=function(p){ce[p.fontName]=ce[p.fontName]||{},ce[p.fontName][p.fontStyle]=p.id},Xs=function(p,P,Y,lt,_t){var It={id:"F"+(Object.keys(se).length+1).toString(10),postScriptName:p,fontName:P,fontStyle:Y,encoding:lt,isStandardFont:_t||!1,metadata:{}};return ye.publish("addFont",{font:It,instance:this}),se[It.id]=It,Ys(It),It.id},sr=h.__private__.pdfEscape=h.pdfEscape=function(p,P){return function(Y,lt){var _t,It,Tt,Qt,Jt,fe,pe,Ae,an;if(Tt=(lt=lt||{}).sourceEncoding||"Unicode",Jt=lt.outputEncoding,(lt.autoencode||Jt)&&se[Ut].metadata&&se[Ut].metadata[Tt]&&se[Ut].metadata[Tt].encoding&&(Qt=se[Ut].metadata[Tt].encoding,!Jt&&se[Ut].encoding&&(Jt=se[Ut].encoding),!Jt&&Qt.codePages&&(Jt=Qt.codePages[0]),typeof Jt=="string"&&(Jt=Qt[Jt]),Jt)){for(pe=!1,fe=[],_t=0,It=Y.length;_t<It;_t++)(Ae=Jt[Y.charCodeAt(_t)])?fe.push(String.fromCharCode(Ae)):fe.push(Y[_t]),fe[_t].charCodeAt(0)>>8&&(pe=!0);Y=fe.join("")}for(_t=Y.length;pe===void 0&&_t!==0;)Y.charCodeAt(_t-1)>>8&&(pe=!0),_t--;if(!pe)return Y;for(fe=lt.noBOM?[]:[254,255],_t=0,It=Y.length;_t<It;_t++){if((an=(Ae=Y.charCodeAt(_t))>>8)>>8)throw new Error("Character at position "+_t+" of string '"+Y+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");fe.push(an),fe.push(Ae-(an<<8))}return String.fromCharCode.apply(void 0,fe)}(p,P).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ns=h.__private__.beginPage=function(p){Lt[++$t]=[],Gt[$t]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(p[0]),topRightY:Number(p[1])}},Qs($t),L(Lt[U])},Js=function(p,P){var Y,lt,_t;switch(e=P||e,typeof p=="string"&&(Y=v(p.toLowerCase()),Array.isArray(Y)&&(lt=Y[0],_t=Y[1])),Array.isArray(p)&&(lt=p[0]*ae,_t=p[1]*ae),isNaN(lt)&&(lt=a[0],_t=a[1]),(lt>14400||_t>14400)&&(Oe.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),lt=Math.min(14400,lt),_t=Math.min(14400,_t)),a=[lt,_t],e.substr(0,1)){case"l":_t>lt&&(a=[_t,lt]);break;case"p":lt>_t&&(a=[_t,lt])}ns(a),Cl(ue),I(ba),os!==0&&I(os+" J"),oi!==0&&I(oi+" j"),ye.publish("addPage",{pageNumber:$t})},rs=function(p){p>0&&p<=$t&&(Lt.splice(p,1),Gt.splice(p,1),$t--,U>$t&&(U=$t),this.setPage(U))},Qs=function(p){p>0&&p<=$t&&(U=p)},to=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Lt.length-1},eo=function(p,P,Y){var lt,_t=void 0;return Y=Y||{},p=p!==void 0?p:se[Ut].fontName,P=P!==void 0?P:se[Ut].fontStyle,lt=p.toLowerCase(),ce[lt]!==void 0&&ce[lt][P]!==void 0?_t=ce[lt][P]:ce[p]!==void 0&&ce[p][P]!==void 0?_t=ce[p][P]:Y.disableWarning===!1&&Oe.warn("Unable to look up font label for font '"+p+"', '"+P+"'. Refer to getFontList(
63) for available fonts."),_t||Y.noFallback||(_t=ce.times[P])==null&&(_t=ce.times.normal),_t},Sr=h.__private__.putInfo=function(){var p=Ve(),P=function(lt){return lt};for(var Y in d!==null&&(P=mn.encryptor(p,0)),I("<<"),I("/Producer ("+sr(P("jsPDF "+ie.version))+")"),zt)zt.hasOwnProperty(Y)&&zt[Y]&&I("/"+Y.substr(0,1).toUpperCase()+Y.substr(1)+" ("+sr(P(zt[Y]))+")");I("/CreationDate ("+sr(P(X))+")"),I(">>"),I("endobj")},fa=h.__private__.putCatalog=function(p){var P=(p=p||{}).rootDictionaryObjId||ii;switch(Ve(),I("<<"),I("/Type /Catalog"),I("/Pages "+P+" 0 R"),bt||(bt="fullwidth"),bt){case"fullwidth":I("/OpenAction [3 0 R /FitH null]");break;case"fullheight":I("/OpenAction [3 0 R /FitV null]");break;case"fullpage":I("/OpenAction [3 0 R /Fit]");break;case"original":I("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Y=""+bt;Y.substr(Y.length-1)==="%"&&(bt=parseInt(bt)/100),typeof bt=="number"&&I("/OpenAction [3 0 R /XYZ null null "+E(bt)+"]")}switch(Et||(Et="continuous"),Et){case"continuous":I("/PageLayout /OneColumn");break;case"single":I("/PageLayout /SinglePage");break;case"two":case"twoleft":I("/PageLayout /TwoColumnLeft");break;case"tworight":I("/PageLayout /TwoColumnRight")}St&&I("/PageMode /"+St),ye.publish("putCatalog"),I(">>"),I("endobj")},wl=h.__private__.putTrailer=function(){I("trailer"),I("<<"),I("/Size "+(st+1)),I("/Root "+st+" 0 R"),I("/Info "+(st-1)+" 0 R"),d!==null&&I("/Encrypt "+mn.oid+" 0 R"),I("/ID [ <"+ft+"> <"+ft+"> ]"),I(">>")},rn=h.__private__.putHeader=function(){I("%PDF-"+x),I("%ºÃˆ ")},no=h.__private__.putXRef=function(){var p="0000000000";I("xref"),I("0 "+(st+1)),I("0000000000 65535 f ");for(var P=1;P<=st;P++)typeof dt[P]=="function"?I((p+dt[P]()).slice(-10)+" 00000 n "):dt[P]!==void 0?I((p+dt[P]).slice(-10)+" 00000 n "):I("0000000000 00000 n ")},Nr=h.__private__.buildDocument=function(){var p;st=0,ut=0,vt=[],dt=[],yt=[],ii=fn(),fr=fn(),L(vt),ye.publish("buildDocument"),rn(),kr(),function(){ye.publish("putAdditionalObjects");for(var Y=0;Y<yt.length;Y++){var lt=yt[Y];gn(lt.objId,!0),I(lt.content),I("endobj")}ye.publish("postPutAdditionalObjects")}(),p=[],function(){for(var Y in se)se.hasOwnProperty(Y)&&(_===!1||_===!0&&w.hasOwnProperty(Y))&&Pi(se[Y])}(),function(){var Y;for(Y in Nt)Nt.hasOwnProperty(Y)&&_l(Nt[Y])}(),function(){for(var Y in Pe)Pe.hasOwnProperty(Y)&&ca(Pe[Y])}(),function(Y){var lt;for(lt in ne)ne.hasOwnProperty(lt)&&(ne[lt]instanceof Xi?ua(ne[lt]):ne[lt]instanceof Ma&&ha(ne[lt],Y))}(p),ye.publish("putResources"),p.forEach(es),es({resourcesOid:fr,objectOid:Number.MAX_SAFE_INTEGER}),ye.publish("postPutResources"),d!==null&&(mn.oid=Ve(),I("<<"),I("/Filter /Standard"),I("/V "+mn.v),I("/R "+mn.r),I("/U <"+mn.toHexString(mn.U)+">"),I("/O <"+mn.toHexString(mn.O)+">"),I("/P "+mn.P),I(">>"),I("endobj")),Sr(),fa();var P=ut;return no(),wl(),I("startxref"),I(""+P),I("%%EOF"),L(Lt[U]),vt.join(` 64`)},da=h.__private__.getBlob=function(p){return new Blob([W(p)],{type:"application/pdf"})},is=function(p){for(;p.firstChild;)p.removeChild(p.firstChild)},Hn=function(p){var P,Y=p.document,lt=Y.documentElement,_t=Y.head,It=Y.body;return _t||(_t=Y.createElement("head"),lt.appendChild(_t)),It||(It=Y.createElement("body"),lt.appendChild(It)),is(_t),is(It),(P=Y.createElement("style")).appendChild(Y.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),_t.appendChild(P),{document:Y,body:It}},pa=h.output=h.__private__.output=(ir=function(p,P){switch(typeof(P=P||{})=="string"?P={filename:P}:P.filename=P.filename||"generated.pdf",p){case void 0:return Nr();case"save":h.save(P.filename);break;case"arraybuffer":return W(Nr());case"blob":return da(Nr());case"bloburi":case"bloburl":if(he.URL!==void 0&&typeof he.URL.createObjectURL=="function")return he.URL&&he.URL.createObjectURL(da(Nr()))||void 0;Oe.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Y="",lt=Nr();try{Y=kf(lt)}catch{Y=kf(unescape(encodeURIComponent(lt)))}return"data:application/pdf;filename="+encodeURIComponent(P.filename)+";base64,"+Y;case"pdfobjectnewwindow":if(Object.prototype.toString.call(he)==="[object Window]"){var _t="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",It=!P.pdfObjectUrl;It||(_t=P.pdfObjectUrl);var Tt=he.open();if(Tt!==null){var Qt=Hn(Tt),Jt=Qt.document.createElement("script"),fe=this;Jt.src=_t,It&&(Jt.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Jt.crossOrigin="anonymous"),Jt.onload=function(){Tt.PDFObject.embed(fe.output("dataurlstring"),P)},Qt.body.appendChild(Jt)}return Tt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(he)==="[object Window]"){var pe=P.pdfJsUrl||"examples/PDF.js/web/viewer.html",Ae=he.open();if(Ae!==null){var an=Hn(Ae),Fe=an.document.createElement("iframe"),je=pe.indexOf("?")===-1?"?":"&";
vendor: 4,146 bytes, lines 64-65
64fe=this,Fe.id="pdfViewer",Fe.width="500px",Fe.height="400px",Fe.src=pe+je+"file=&downloadName="+encodeURIComponent(P.filename),Fe.onload=function(){Ae.document.title=P.filename,Fe.contentWindow.PDFViewerApplication.open(fe.output("bloburl"))},an.body.appendChild(Fe)}return Ae}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(he)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Me=he.open();if(Me!==null){var Ge=Hn(Me),$e=Ge.document.createElement("iframe");$e.src=this.output("datauristring",P),Ge.body.appendChild($e),Me.document.title=P.filename}if(Me||typeof safari>"u")return Me;break;case"datauri":case"dataurl":return he.document.location.href=this.output("datauristring",P);default:return null}},ir.foo=function(){try{return ir.apply(this,arguments)}catch(Y){var p=Y.stack||"";~p.indexOf(" at ")&&(p=p.split(" at ")[1]);var P="Error in function "+p.split(` 65`)[0].split("<")[0]+": "+Y.message;if(!he.console)throw new Error(P);he.console.error(P,Y),he.alert&&alert(P)}},ir.foo.bar=ir,ir.foo),qr=function(p){return Array.isArray(hn)===!0&&hn.indexOf(p)>-1};switch(r){case"pt":ae=1;break;case"mm":ae=72/25.4;break;case"cm":ae=72/2.54;break;case"in":ae=72;break;case"px":ae=qr("px_scaling")==1?.75:96/72;break;case"pc":case"em":ae=12;break;case"ex":ae=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);ae=r}var mn=null;tt(),nt();var ro=h.__private__.getPageInfo=h.getPageInfo=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Gt[p].objId,pageNumber:p,pageContext:Gt[p]}},yl=h.__private__.getPageInfoByObjId=function(p){if(isNaN(p)||p%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var P in Gt)if(Gt[P].objId===p)break;return ro(P)},xl=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Gt[U].objId,pageNumber:U,pageContext:Gt[U]}};h.addPage=function(){return Js.apply(this,arguments),this},h.setPage=function(){return Qs.apply(this,arguments),L.call(this,Lt[U]),this},h.insertPage=function(p){return this.addPage(),this.movePage(U,p),this},h.movePage=function(p,P){var Y,lt;if(p>P){Y=Lt[p],lt=Gt[p];for(var _t=p;_t>P;_t--)Lt[_t]=Lt[_t-1],Gt[_t]=Gt[_t-1];Lt[P]=Y,Gt[P]=lt,this.setPage(P)}else if(p<P){Y=Lt[p],lt=Gt[p];for(var It=p;It<P;It++)Lt[It]=Lt[It+1],Gt[It]=Gt[It+1];Lt[P]=Y,Gt[P]=lt,this.setPage(P)}return this},h.deletePage=function(){return rs.apply(this,arguments),this},h.__private__.text=h.text=function(p,P,Y,lt,_t){var It,Tt,Qt,Jt,fe,pe,Ae,an,Fe,je=(lt=lt||{}).scope||this;if(typeof p=="number"&&typeof P=="number"&&(typeof Y=="string"||Array.isArray(Y))){var Me=Y;Y=P,P=p,p=Me}if(arguments[3]instanceof le==0?(Qt=arguments[4],Jt=arguments[5],Ie(Ae=arguments[3])==="object"&&Ae!==null||(typeof Qt=="string"&&(Jt=Qt,Qt=null),typeof Ae=="string"&&(Jt=Ae,Ae=null),typeof Ae=="number"&&(Qt=Ae,Ae=null),lt={flags:Ae,angle:Qt,align:Jt})):(k("The transform parameter of text() with a Matrix value"),Fe=_t),isNaN(P)||isNaN(Y)||p==null)throw new Error("Invalid arguments passed to jsPDF.text");if(p.length===0)return je;var Ge,$e="",xn=typeof lt.lineHeightFactor=="number"?lt.lineHeightFactor:ji,Vr=je.internal.scaleFactor;function hs(Te){return Te=Te.split(" ").join(Array(lt.TabLen||9).join(" ")),sr(Te,Ae)}function Oi(Te){for(var De,Xe=Te.concat(),on=[],Kr=Xe.length;Kr--;)typeof(De=Xe.shift())=="string"?on.push(De):Array.isArray(Te)&&(De.length===1||De[1]===void 0&&De[2]===void 0)?on.push(De[0]):on.push([De[0],De[1],De[2]]);return on}function Ti(Te,De){var Xe;if(typeof Te=="string")Xe=De(Te)[0];else if(Array.isArray(Te)){for(var on,Kr,bs=Te.concat(),Ca=[],po=bs.length;po--;)typeof(on=bs.shift())=="string"?Ca.push(De(on)[0]):Array.isArray(on)&&typeof on[0]=="string"&&(Kr=De(on[0],on[1],on[2]),Ca.push([Kr[0],Kr[1],Kr[2]]));Xe=Ca}return Xe}var li=!1,Di=!0;if(typeof p=="string")li=!0;else if(Array.isArray(p)){var ya=p.concat();Tt=[];for(var xa,An=ya.length;An--;)(typeof(xa=ya.shift())!="string"||Array.isArray(xa)&&typeof xa[0]!="str
65ing")&&(Di=!1);li=Di}if(li===!1)throw new Error('Type of text must be string or Array. "'+p+'" is not recognized.');typeof p=="string"&&(p=p.match(/[\r?\n]/)?p.split(/\r\n|\r|\n/g):[p]);var Bi=G/je.internal.scaleFactor,Mi=Bi*(xn-1);switch(lt.baseline){case"bottom":Y-=Mi;break;case"top":Y+=Bi-Mi;break;case"hanging":Y+=Bi-2*Mi;break;case"middle":Y+=Bi/2-Mi}if((pe=lt.maxWidth||0)>0&&(typeof p=="string"?p=je.splitTextToSize(p,pe):Object.prototype.toString.call(p)==="[object Array]"&&(p=p.reduce(function(Te,De){return Te.concat(je.splitTextToSize(De,pe))},[]))),It={text:p,x:P,y:Y,options:lt,mutex:{pdfEscape:sr,activeFontKey:Ut,fonts:se,activeFontSize:G}},ye.publish("preProcessText",It),p=It.text,Qt=(lt=It.options).angle,Fe instanceof le==0&&Qt&&typeof Qt=="number"){Qt*=Math.PI/180,lt.rotationDirection===0&&(Qt=-Qt),T===O&&(Qt=-Qt);var fs=Math.cos(Qt),Cr=Math.sin(Qt);Fe=new le(fs,Cr,-Cr,fs,0,0)}else Qt&&Qt instanceof le&&(Fe=Qt);T!==O||Fe||(Fe=Ur),(fe=lt.charSpace||va)!==void 0&&($e+=$(R(fe))+` Tc 66`,this.setCharSpace(this.getCharSpace()||0)),(an=lt.horizontalScale)!==void 0&&($e+=$(100*an)+` Tz 67`),lt.lang;var Pn=-1,ho=lt.renderingMode!==void 0?lt.renderingMode:lt.stroke,Aa=je.internal.getCurrentPageInfo().pageContext;switch(ho){case 0:case!1:case"fill":Pn=0;break;case 1:case!0:case"stroke":Pn=1;break;case 2:case"fillThenStroke":Pn=2;break;case 3:case"invisible":Pn=3;break;case 4:case"fillAndAddForClipping":Pn=4;break;case 5:case"strokeAndAddPathForClipping":Pn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Pn=6;break;case 7:case"addToPathForClipping":Pn=7}var fo=Aa.usedRenderingMode!==void 0?Aa.usedRenderingMode:-1;Pn!==-1?$e+=Pn+` Tr 68`:fo!==-1&&($e+=`0 Tr 69`),Pn!==-1&&(Aa.usedRenderingMode=Pn),Jt=lt.align||"left";var or,zi=G*xn,ds=je.internal.pageSize.getWidth(),ka=se[Ut];fe=lt.charSpace||va,pe=lt.maxWidth||0,Ae=Object.assign({autoencode:!0,noBOM:!0},lt.flags);var Ui=[],ps=function(Te){return je.getStringUnitWidth(Te,{font:ka,charSpace:fe,fontSize:G,doKerning:!1})*G/Vr};if(Object.prototype.toString.call(p)==="[object Array]"){var jn;Tt=Oi(p),Jt!=="left"&&(or=Tt.map(ps));var Dn,Sa=0;if(Jt==="right"){P-=or[0],p=[],An=Tt.length;for(var ci=0;ci<An;ci++)ci===0?(Dn=Hr(P),jn=Wr(Y)):(Dn=R(Sa-or[ci]),jn=-zi),p.push([Tt[ci],Dn,jn]),Sa=or[ci]}else if(Jt==="center"){P-=or[0]/2,p=[],An=Tt.length;for(var ui=0;ui<An;ui++)ui===0?(Dn=Hr(P),jn=Wr(Y)):(Dn=R((Sa-or[ui])/2),jn=-zi),p.push([Tt[ui],Dn,jn]),Sa=or[ui]}else if(Jt==="left"){p=[],An=Tt.length;for(var Na=0;Na<An;Na++)p.push(Tt[Na])}else if(Jt==="justify"&&ka.encoding==="Identity-H"){p=[],An=Tt.length,pe=pe!==0?pe:ds;for(var qi=0,sn=0;sn<An;sn++)if(jn=sn===0?Wr(Y):-zi,Dn=sn===0?Hr(P):qi,sn<An-1){var Dl=R((pe-or[sn])/(Tt[sn].split(" ").length-1)),Ir=Tt[sn].split(" ");p.push([Ir[0]+" ",Dn,jn]),qi=0;for(var gr=1;gr<Ir.length;gr++){var Hi=(ps(Ir[gr-1]+" "+Ir[gr])-ps(Ir[gr]))*Vr+Dl;gr==Ir.length-1?p.push([Ir[gr],Hi,0]):p.push([Ir[gr]+" ",Hi,0]),qi-=Hi}}else p.push([Tt[sn],Dn,jn]);p.push(["",qi,0])}else{if(Jt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(p=[],An=Tt.length,pe=pe!==0?pe:ds,sn=0;sn<An;sn++){jn=sn===0?Wr(Y):-zi,Dn=sn===0?Hr(P):0;var gs=Tt[sn].split(" ").length-1,ms=gs>0?(pe-or[sn])/gs:0;sn<An-1?Ui.push($(R(ms))):Ui.push(0),p.push([Tt[sn],Dn,jn])}}}(typeof lt.R2L=="boolean"?lt.R2L:ct)===!0&&(p=Ti(p,function(Te,De,Xe){return[Te.split("").reverse().join(""),De,Xe]})),It={text:p,x:P,y:Y,options:lt,mutex:{pdfEscape:sr,activeFontKey:Ut,fonts:se,activeFontSize:G}},ye.publish("postProcessText",It),p=It.text,Ge=It.mutex.isHex||!1;var La=se[Ut].encoding;La!=="WinAnsiEncoding"&&La!=="StandardEncoding"||(p=Ti(p,function(Te,De,Xe){return[hs(Te),De,Xe]})),Tt=Oi(p),p=[];for(var Wi,Gi,hi,Zr=Array.isArray(Tt[0])?1:0,fi="",Ea=function(Te,De,Xe){var on="";return Xe instanceof le?(Xe=typeof lt.angle=="number"?zr(Xe,new le(1,0,0,1,Te,De)):zr(new le(1,0,0,1,Te,De),Xe),T===O&&(Xe=zr(new le(1,0,0,-1,0,0),Xe)),on=Xe.join(" ")+` Tm 70`):on=$(Te)+" "+$(De)+` Td 71`,on},kn=0;kn<Tt.length;kn++){switch(fi="",Zr){case 1:hi=(Ge?"<":"(")+Tt[kn][0]+(Ge?">":")"),Wi=parseFloat(Tt[kn][1]),Gi=parseFloat(Tt[kn][2]);break;case 0:hi=(Ge?"<":"(")+Tt[kn]+(Ge?">":")"),Wi=Hr(P),Gi=Wr(Y)}Ui!==void 0&&Ui[kn]!==void 0&&(fi=Ui[kn]+` Tw 72`),kn===0?p.push(fi+Ea(Wi,Gi,Fe)+hi):Zr===0?p.push(fi+hi):Zr===1&&p.push(fi+Ea(Wi,Gi,Fe)+hi)}p=Zr===0?p.join(` Tj 73T* `):p.join(` Tj 74`),p+=` Tj 75`;var Pr=`BT 76/`;return Pr+=Ut+" "+G+` Tf 77`,Pr+=$(G*xn)+` TL 78`,Pr+=Er+` 79`,Pr+=$e,Pr+=p,I(Pr+="ET"),w[Ut]=!0,je};var Al=h.__private__.clip=h.clip=function(p){return I(p==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Al("evenodd")},h.__private__.discardPath=h.discardPath=function(){return I("n"),this};var Lr=h.__private__.isValidStyle=function(p){var P=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(p)!==-1&&(P=!0),P};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(p){return Lr(p)&&(f=p),this};var io=h.__private__.getStyle=h.getStyle=function(p){var P=f;switch(p){case"D":case"S":P="S";break;case"F":P="f";break;case"FD":case"DF":P="B";break;case"f":case"f*":case"B":case"B*":P=p}return P},ga=h.close=function(){return I("h"),this};h.stroke=function(){return I("S"),this},h.fill=function(p){return ma("f",p),this},h.fillEvenOdd=function(p){return ma("f*",p),this},h.fillStroke=function(p){return ma("B",p),this},h.fillStrokeEvenOdd=function(p){return ma("B*",p),this};var ma=function(p,P){Ie(P)==="object"?Sl(P,p):I(p)},as=function(p){p===null||T===O&&p===void 0||(p=io(p),I(p))};function kl(p,P,Y,lt,_t){var It=new Ma(P||this.boundingBox,Y||this.xStep,lt||this.yStep,this.gState,_t||this.matrix
vendor: 4,454 bytes, line 79
79);It.stream=this.stream;var Tt=p+"$$"+this.cloneIndex+++"$$";return rr(Tt,It),It}var Sl=function(p,P){var Y=pt[p.key],lt=ne[Y];if(lt instanceof Xi)I("q"),I(Nl(P)),lt.gState&&h.setGState(lt.gState),I(p.matrix.toString()+" cm"),I("/"+Y+" sh"),I("Q");else if(lt instanceof Ma){var _t=new le(1,0,0,-1,0,Ri());p.matrix&&(_t=_t.multiply(p.matrix||Ur),Y=kl.call(lt,p.key,p.boundingBox,p.xStep,p.yStep,_t).id),I("q"),I("/Pattern cs"),I("/"+Y+" scn"),lt.gState&&h.setGState(lt.gState),I(P),I("Q")}},Nl=function(p){switch(p){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"}},ai=h.moveTo=function(p,P){return I($(R(p))+" "+$(g(P))+" m"),this},ao=h.lineTo=function(p,P){return I($(R(p))+" "+$(g(P))+" l"),this},si=h.curveTo=function(p,P,Y,lt,_t,It){return I([$(R(p)),$(g(P)),$(R(Y)),$(g(lt)),$(R(_t)),$(g(It)),"c"].join(" ")),this};h.__private__.line=h.line=function(p,P,Y,lt,_t){if(isNaN(p)||isNaN(P)||isNaN(Y)||isNaN(lt)||!Lr(_t))throw new Error("Invalid arguments passed to jsPDF.line");return T===C?this.lines([[Y-p,lt-P]],p,P,[1,1],_t||"S"):this.lines([[Y-p,lt-P]],p,P,[1,1]).stroke()},h.__private__.lines=h.lines=function(p,P,Y,lt,_t,It){var Tt,Qt,Jt,fe,pe,Ae,an,Fe,je,Me,Ge,$e;if(typeof p=="number"&&($e=Y,Y=P,P=p,p=$e),lt=lt||[1,1],It=It||!1,isNaN(P)||isNaN(Y)||!Array.isArray(p)||!Array.isArray(lt)||!Lr(_t)||typeof It!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ai(P,Y),Tt=lt[0],Qt=lt[1],fe=p.length,Me=P,Ge=Y,Jt=0;Jt<fe;Jt++)(pe=p[Jt]).length===2?(Me=pe[0]*Tt+Me,Ge=pe[1]*Qt+Ge,ao(Me,Ge)):(Ae=pe[0]*Tt+Me,an=pe[1]*Qt+Ge,Fe=pe[2]*Tt+Me,je=pe[3]*Qt+Ge,Me=pe[4]*Tt+Me,Ge=pe[5]*Qt+Ge,si(Ae,an,Fe,je,Me,Ge));return It&&ga(),as(_t),this},h.path=function(p){for(var P=0;P<p.length;P++){var Y=p[P],lt=Y.c;switch(Y.op){case"m":ai(lt[0],lt[1]);break;case"l":ao(lt[0],lt[1]);break;case"c":si.apply(this,lt);break;case"h":ga()}}return this},h.__private__.rect=h.rect=function(p,P,Y,lt,_t){if(isNaN(p)||isNaN(P)||isNaN(Y)||isNaN(lt)||!Lr(_t))throw new Error("Invalid arguments passed to jsPDF.rect");return T===C&&(lt=-lt),I([$(R(p)),$(g(P)),$(R(Y)),$(R(lt)),"re"].join(" ")),as(_t),this},h.__private__.triangle=h.triangle=function(p,P,Y,lt,_t,It,Tt){if(isNaN(p)||isNaN(P)||isNaN(Y)||isNaN(lt)||isNaN(_t)||isNaN(It)||!Lr(Tt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Y-p,lt-P],[_t-Y,It-lt],[p-_t,P-It]],p,P,[1,1],Tt,!0),this},h.__private__.roundedRect=h.roundedRect=function(p,P,Y,lt,_t,It,Tt){if(isNaN(p)||isNaN(P)||isNaN(Y)||isNaN(lt)||isNaN(_t)||isNaN(It)||!Lr(Tt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Qt=4/3*(Math.SQRT2-1);return _t=Math.min(_t,.5*Y),It=Math.min(It,.5*lt),this.lines([[Y-2*_t,0],[_t*Qt,0,_t,It-It*Qt,_t,It],[0,lt-2*It],[0,It*Qt,-_t*Qt,It,-_t,It],[2*_t-Y,0],[-_t*Qt,0,-_t,-It*Qt,-_t,-It],[0,2*It-lt],[0,-It*Qt,_t*Qt,-It,_t,-It]],p+_t,P,[1,1],Tt,!0),this},h.__private__.ellipse=h.ellipse=function(p,P,Y,lt,_t){if(isNaN(p)||isNaN(P)||isNaN(Y)||isNaN(lt)||!Lr(_t))throw new Error("Invalid arguments passed to jsPDF.ellipse");var It=4/3*(Math.SQRT2-1)*Y,Tt=4/3*(Math.SQRT2-1)*lt;return ai(p+Y,P),si(p+Y,P-Tt,p+It,P-lt,p,P-lt),si(p-It,P-lt,p-Y,P-Tt,p-Y,P),si(p-Y,P+Tt,p-It,P+lt,p,P+lt),si(p+It,P+lt,p+Y,P+Tt,p+Y,P),as(_t),this},h.__private__.circle=h.circle=function(p,P,Y,lt){if(isNaN(p)||isNaN(P)||isNaN(Y)||!Lr(lt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(p,P,Y,Y,lt)},h.setFont=function(p,P,Y){return Y&&(P=et(P,Y)),Ut=eo(p,P,{disableWarning:!1}),this};var Ll=h.__private__.getFont=h.getFont=function(){return se[eo.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var p,P,Y={};for(p in ce)if(ce.hasOwnProperty(p))for(P in Y[p]=[],ce[p])ce[p].hasOwnProperty(P)&&Y[p].push(P);return Y},h.addFont=function(p,P,Y,lt,_t){var It=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&It.indexOf(arguments[3])!==-1?_t=arguments[3]:arguments[3]&&It.indexOf(arguments[3])==-1&&(Y=et(Y,lt)),Xs.call(this,p,P,Y,_t=_t||"Identity-H")};var ji,ue=t.lineWidth||.200025,El=h.__private__.getLineWidth=h.getLineWidth=function(){return ue},Cl=h.__private__.setLineWidth=h.setLineWidth=function(p){return ue=p,I($(R(p))+" w"),this};h.__private__.setLineDash=ie.API.setLineDash=ie.API.setLineDashPattern=function(p,P){if(p=p||[],P=P||0,isNaN(P)||!Array.isArray(p))throw new Error("Invalid arguments passed to
79jsPDF.setLineDash");return p=p.map(function(Y){return $(R(Y))}).join(" "),P=$(R(P)),I("["+p+"] "+P+" d"),this};var Il=h.__private__.getLineHeight=h.getLineHeight=function(){return G*ji};h.__private__.getLineHeight=h.getLineHeight=function(){return G*ji};var Pl=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(p){return typeof(p=p||1.15)=="number"&&(ji=p),this},jl=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return ji};Pl(t.lineHeight);var Hr=h.__private__.getHorizontalCoordinate=function(p){return R(p)},Wr=h.__private__.getVerticalCoordinate=function(p){return T===O?p:Gt[U].mediaBox.topRightY-Gt[U].mediaBox.bottomLeftY-R(p)},Fl=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(p){return $(Hr(p))},Rl=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(p){return $(Wr(p))},ba=t.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return Ar(ba)},h.__private__.setStrokeColor=h.setDrawColor=function(p,P,Y,lt){return ba=dr({ch1:p,ch2:P,ch3:Y,ch4:lt,pdfColorType:"draw",precision:2}),I(ba),this};var ss=t.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return Ar(ss)},h.__private__.setFillColor=h.setFillColor=function(p,P,Y,lt){return ss=dr({ch1:p,ch2:P,ch3:Y,ch4:lt,pdfColorType:"fill",precision:2}),I(ss),this};var Er=t.textColor||"0 g",Ol=h.__private__.getTextColor=h.getTextColor=function(){return Ar(Er)};h.__private__.setTextColor=h.setTextColor=function(p,P,Y,lt){return Er=dr({ch1:p,ch2:P,ch3:Y,ch4:lt,pdfColorType:"text",precision:3}),this};var va=t.charSpace,Tl=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(va||0)};h.__private__.setCharSpace=h.setCharSpace=function(p){if(isNaN(p))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return va=p,this};var os=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(p){var P=h.CapJoinStyles[p];if(P===void 0)throw new Error("Line cap style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return os=P,I(P+" J"),this};var oi=0;h.__private__.setLineJoin=h.setLineJoin=function(p){var P=h.CapJoinStyles[p];if(P===void 0)throw new Error("Line join style of '"+p+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return oi=P,I(P+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(p){if(p=p||0,isNaN(p))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return I($(R(p))+" M"),this},h.GState=hl,h.setGState=function(p){(p=typeof p=="string"?Nt[Ht[p]]:ls(null,p)).equals(Zt)||(I("/"+p.id+" gs"),Zt=p)};var ls=function(p,P){if(!p||!Ht[p]){var Y=!1;for(var lt in Nt)if(Nt.hasOwnProperty(lt)&&Nt[lt].equals(P)){Y=!0;break}if(Y)P=Nt[lt];else{var _t="GS"+(Object.keys(Nt).length+1).toString(10);Nt[_t]=P,P.id=_t}return p&&(Ht[p]=P.id),ye.publish("addGState",P),P}};h.addGState=function(p,P){return ls(p,P),this},h.saveGraphicsState=function(){return I("q"),we.push({key:Ut,size:G,color:Er}),this},h.restoreGraphicsState=function(){I("Q");var p=we.pop();return Ut=p.key,G=p.size,Er=p.color,Zt=null,this},h.setCurrentTransformationMatrix=function(p){return I(p.toString()+" cm"),this},h.comment=function(p){return I("#"+p),this};var Fi=function(p,P){var Y=p||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Y},set:function(It){isNaN(It)||(Y=parseFloat(It))}});var lt=P||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return lt},set:function(It){isNaN(It)||(lt=parseFloat(It))}});var _t="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return _t},set:function(It){_t=It.toString()}}),this},cs=function(p,P,Y,lt){Fi.call(this,p,P),this.type="rect";var _t=Y||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return _t},set:function(Tt){isNaN(Tt)||(_t=parseFloat(Tt))}});var It=lt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return It},set:function(Tt){isNaN(Tt)||(It=parseFloat(Tt))}}),this},_a=function(){this.page=$t,this.currentPage=U,this.pages=Lt.slice(0),this.pagesContext=Gt.slice(0),this.x=Vt,this.y=_e,this.matrix=Kt,this.width=so(U),this.height=$r(U),this.outputDestination=Rt,this.id="",this.objectNumber=-1};_a.prototype.restore=function(){$t=this.page,U=this.currentPage,Gt=this.pagesContext,Lt=this.pages,Vt=this.x,_e=this.y,Kt=this.matrix,Gr(U,this.width),oo(U,this.height),Rt=this.outputDestination};
vendor: 4,977 bytes, line 79
79var us=function(p,P,Y,lt,_t){nr.push(new _a),$t=U=0,Lt=[],Vt=p,_e=P,Kt=_t,ns([Y,lt])};for(var wa in h.beginFormObject=function(p,P,Y,lt,_t){return us(p,P,Y,lt,_t),this},h.endFormObject=function(p){return function(P){if(In[P])nr.pop().restore();else{var Y=new _a,lt="Xo"+(Object.keys(Pe).length+1).toString(10);Y.id=lt,In[P]=lt,Pe[lt]=Y,ye.publish("addFormObject",Y),nr.pop().restore()}}(p),this},h.doFormObject=function(p,P){var Y=Pe[In[p]];return I("q"),I(P.toString()+" cm"),I("/"+Y.id+" Do"),I("Q"),this},h.getFormObject=function(p){var P=Pe[In[p]];return{x:P.x,y:P.y,width:P.width,height:P.height,matrix:P.matrix}},h.save=function(p,P){return p=p||"generated.pdf",(P=P||{}).returnPromise=P.returnPromise||!1,P.returnPromise===!1?(Ki(da(Nr()),p),typeof Ki.unload=="function"&&he.setTimeout&&setTimeout(Ki.unload,911),this):new Promise(function(Y,lt){try{var _t=Ki(da(Nr()),p);typeof Ki.unload=="function"&&he.setTimeout&&setTimeout(Ki.unload,911),Y(_t)}catch(It){lt(It.message)}})},ie.API)ie.API.hasOwnProperty(wa)&&(wa==="events"&&ie.API.events.length?function(p,P){var Y,lt,_t;for(_t=P.length-1;_t!==-1;_t--)Y=P[_t][0],lt=P[_t][1],p.subscribe.apply(p,[Y].concat(typeof lt=="function"?[lt]:lt))}(ye,ie.API.events):h[wa]=ie.API[wa]);function so(p){return Gt[p].mediaBox.topRightX-Gt[p].mediaBox.bottomLeftX}function Gr(p,P){Gt[p].mediaBox.topRightX=P+Gt[p].mediaBox.bottomLeftX}function $r(p){return Gt[p].mediaBox.topRightY-Gt[p].mediaBox.bottomLeftY}function oo(p,P){Gt[p].mediaBox.topRightY=P+Gt[p].mediaBox.bottomLeftY}var lo=h.getPageWidth=function(p){return so(p=p||U)/ae},co=h.setPageWidth=function(p,P){Gr(p,P*ae)},Ri=h.getPageHeight=function(p){return $r(p=p||U)/ae},uo=h.setPageHeight=function(p,P){oo(p,P*ae)};return h.internal={pdfEscape:sr,getStyle:io,getFont:Ll,getFontSize:wt,getCharSpace:Tl,getTextColor:Ol,getLineHeight:Il,getLineHeightFactor:jl,getLineWidth:El,write:rt,getHorizontalCoordinate:Hr,getVerticalCoordinate:Wr,getCoordinateString:Fl,getVerticalCoordinateString:Rl,collections:{},newObject:Ve,newAdditionalObject:Ci,newObjectDeferred:fn,newObjectDeferredBegin:gn,getFilters:pr,putStream:ar,events:ye,scaleFactor:ae,pageSize:{getWidth:function(){return lo(U)},setWidth:function(p){co(U,p)},getHeight:function(){return Ri(U)},setHeight:function(p){uo(U,p)}},encryptionOptions:d,encryption:mn,getEncryptor:function(p){return d!==null?mn.encryptor(p,0):function(P){return P}},output:pa,getNumberOfPages:to,get pages(){return Lt},out:I,f2:E,f3:y,getPageInfo:ro,getPageInfoByObjId:yl,getCurrentPageInfo:xl,getPDFVersion:b,Point:Fi,Rectangle:cs,Matrix:le,hasHotfix:qr},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return lo(U)},set:function(p){co(U,p)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Ri(U)},set:function(p){uo(U,p)},enumerable:!0,configurable:!0}),function(p){for(var P=0,Y=q.length;P<Y;P++){var lt=Xs.call(this,p[P][0],p[P][1],p[P][2],q[P][3],!0);_===!1&&(w[lt]=!0);var _t=p[P][0].split("-");Ys({id:lt,fontName:_t[0],fontStyle:_t[1]||""})}ye.publish("addFonts",{fonts:se,dictionary:ce})}.call(h,q),Ut="F1",Js(a,e),ye.publish("initialized"),h}Da.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},Da.prototype.toHexString=function(t){return t.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Da.prototype.hexToBytes=function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return n.join("")},Da.prototype.processOwnerPassword=function(t,n){return tu(Qc(n).substr(0,5),t)},Da.prototype.encryptor=function(t,n){var e=Qc(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(r){return tu(e,r)}},hl.prototype.equals=function(t){var n,e="id,objectNumber,equals";if(!t||Ie(t)!==Ie(this))return!1;var r=0;for(n in this)if(!(e.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n)||this[n]!==t[n])return!1;r++}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&r--;return r===0},ie.API={events:[]},ie.version="4.2.1";var Ye=ie.API,wu=1,la=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Oa=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},sa=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(n){var e=n.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},de=function(t){return t.toFixed(2)},wi=function(t){return t.toFixed(5)};Ye.__acroform__={};var qn=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},Ef=function(t){return t*wu},Fr=function(t){var n=new I1,e=Xt.internal.getHeight(t)||0,r=Xt.internal.getWidth(t)||0;return n.BBox=[0,0,Number(de(r)),Number(de(e))],n},km=Ye.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to
79jsPDF.API.__acroform__.setBit");return t|1<<n},Sm=Ye.__acroform__.clearBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<n)},Nm=Ye.__acroform__.getBit=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<n?1:0},tn=Ye.__acroform__.getBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Nm(t,n-1)},en=Ye.__acroform__.setBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return km(t,n-1)},nn=Ye.__acroform__.clearBitForPdf=function(t,n){if(isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Sm(t,n-1)},Lm=Ye.__acroform__.calculateCoordinates=function(t,n){var e=n.internal.getHorizontalCoordinate,r=n.internal.getVerticalCoordinate,a=t[0],i=t[1],l=t[2],s=t[3],c={};return c.lowerLeft_X=e(a)||0,c.lowerLeft_Y=r(i+s)||0,c.upperRight_X=e(a+l)||0,c.upperRight_Y=r(i)||0,[Number(de(c.lowerLeft_X)),Number(de(c.lowerLeft_Y)),Number(de(c.upperRight_X)),Number(de(c.upperRight_Y))]},Em=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var n=[],e=t._V||t.DV,r=eu(t,e),a=t.scope.internal.getFont(t.fontName,t.fontStyle).id;n.push("/Tx BMC"),n.push("q"),n.push("BT"),n.push(t.scope.__private__.encodeColorString(t.color)),n.push("/"+a+" "+de(r.fontSize)+" Tf"),n.push("1 0 0 1 0 0 Tm"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC");var i=Fr(t);return i.scope=t.scope,i.stream=n.join(` 80`),i}},eu=function(t,n){var e=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},a=(n=(n=n.substr(0,1)=="("?n.substr(1):n).substr(n.length-1)==")"?n.substr(0,n.length-1):n).split(" ");a=t.multiline?a.map(function(E){return E.split(` 81`)}):a.map(function(E){return[E]});var i=e,l=Xt.internal.getHeight(t)||0;l=l<0?-l:l;var s=Xt.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(E,y,R){if(E+1<a.length){var g=y+" "+a[E+1][0];return Ho(g,t,R).width<=s-4}return!1};i++;t:for(;i>0;){n="",i--;var f,d,_=Ho("3",t,i).height,w=t.multiline?l-i:(l-_)/2,h=w+=2,x=0,b=0,N=0;if(i<=0){n=`(...) Tj 82`,n+="% Width of Text: "+Ho(n,t,i=12).width+", FieldWidth:"+s+` 83`;break}for(var v="",C=0,O=0;O<a.length;O++)if(a.hasOwnProperty(O)){var T=!1;if(a[O].length!==1&&N!==a[O].length-1){if((_+2)*(C+2)+2>l)continue t;v+=a[O][N],T=!0,b=O,O--}else{v=(v+=a[O][N]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var Z=parseInt(O),ot=c(Z,v,i),et=O>=a.length-1;if(ot&&!et){v+=" ",N=0;continue}if(ot||et){if(et)b=Z;else if(t.multiline&&(_+2)*(C+2)+2>l)continue t}else{if(!t.multiline||(_+2)*(C+2)+2>l)continue t;b=Z}}for(var $="",k=x;k<=b;k++){var j=a[k];if(t.multiline){if(k===b){$+=j[N]+" ",N=(N+1)%j.length;continue}if(k===x){$+=j[j.length-1]+" ";continue}}$+=j[0]+" "}switch($=$.substr($.length-1)==" "?$.substr(0,$.length-1):$,d=Ho($,t,i).width,t.textAlign){case"right":f=s-d-2;break;case"center":f=(s-d)/2;break;default:f=2}n+=de(f)+" "+de(h)+` Td 84`,n+="("+la($)+`) Tj 85`,n+=-de(f)+` 0 Td 86`,h=-(i+2),d=0,x=T?b:b+1,C++,v=""}break}return r.text=n,r.fontSize=i,r},Ho=function(t,n,e){var r=n.scope.internal.getFont(n.fontName,n.fontStyle),a=n.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},Cm={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Im=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},Pm=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(yr.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(Cm)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");wu=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new P1,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.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})(t)}),t.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 i=r[a];
vendor: 13,439 bytes, lines 86-87
86i.objId=void 0,i.hasAnnotation&&Im(i,e)}})(t)}),t.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")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(r,a){var i=!r;for(var l 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(l)){var s=r[l],c=[],f=s.Rect;if(s.Rect&&(s.Rect=Lm(s.Rect,a)),a.internal.newObjectDeferredBegin(s.objId,!0),s.DA=Xt.createDefaultAppearanceStream(s),Ie(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(c=s.getKeyValueListForStream()),s.Rect=f,s.hasAppearanceStream&&!s.appearanceStreamContent){var d=Em(s);c.push({key:"AP",value:"<</N "+d+">>"}),a.internal.acroformPlugin.xForms.push(d)}if(s.appearanceStreamContent){var _="";for(var w in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(w)){var h=s.appearanceStreamContent[w];if(_+="/"+w+" ",_+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var l in h)if(h.hasOwnProperty(l)){var x=h[l];typeof x=="function"&&(x=x.call(a,s)),_+="/"+l+" "+x+" ",a.internal.acroformPlugin.xForms.indexOf(x)>=0||a.internal.acroformPlugin.xForms.push(x)}}else typeof(x=h)=="function"&&(x=x.call(a,s)),_+="/"+l+" "+x,a.internal.acroformPlugin.xForms.indexOf(x)>=0||a.internal.acroformPlugin.xForms.push(x);_+=">>"}c.push({key:"AP",value:`<< 87`+_+">>"})}a.internal.putStream({additionalKeyValues:c,objectId:s.objId}),a.internal.out("endobj")}i&&function(b,N){for(var v in b)if(b.hasOwnProperty(v)){var C=v,O=b[v];N.internal.newObjectDeferredBegin(O.objId,!0),Ie(O)==="object"&&typeof O.putStream=="function"&&O.putStream(),delete b[C]}}(a.internal.acroformPlugin.xForms,a)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},C1=Ye.__acroform__.arrayToPdfArray=function(t,n,e){var r=function(l){return l};if(Array.isArray(t)){for(var a="[",i=0;i<t.length;i++)switch(i!==0&&(a+=" "),Ie(t[i])){case"boolean":case"number":case"object":a+=t[i].toString();break;case"string":t[i].substr(0,1)==="/"?a+="/"+sa(t[i].substr(1)):(n!==void 0&&e&&(r=e.internal.getEncryptor(n)),a+="("+la(r(t[i].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ec=function(t,n,e){var r=function(a){return a};return n!==void 0&&e&&(r=e.internal.getEncryptor(n)),(t=t||"").toString(),"("+la(r(t))+")"},Tr=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(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Tr.prototype.toString=function(){return this.objId+" 0 R"},Tr.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},Tr.prototype.getKeyValueListForStream=function(){var t=[],n=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var e in n)if(Object.getOwnPropertyDescriptor(this,n[e]).configurable===!1){var r=n[e],a=this[r];a&&(Array.isArray(a)?t.push({key:r,value:C1(a,this.objId,this.scope)}):a instanceof Tr?(a.scope=this.scope,t.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&t.push({key:r,value:a}))}return t};var I1=function(){Tr.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 t,n=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};qn(I1,Tr);var P1=function(){Tr.call(this);var t,n=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return n.length>0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+la(e(t))+")"}},set:function(e){t=e}})};qn(P1,Tr);var yr=function t(){Tr.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');n=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!tn(n,3)},set:function(v){v?this.F=en(n,3):this.F=nn(n,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');e=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof fl)return;i="FieldObject"+t.FieldNum++}var v=function(C){return C};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+la(v(i))+")"},set:function(v){i=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(v){i=v}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(v){c=v}});var f=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return f===void 0?50/wu:f},set:function(v){f=v}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(v){d=v}});var _="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!_||this instanceof fl||this instanceof ea))return Ec(_,this.objId,this.scope)},set:function(v){v=v.toString(),_=v}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof pn==0?Ec(w,this.objId,this.scope):w},set:function(v){v=v.toString(),w=this instanceof pn==0?v.substr(0,1)==="("?Oa(v.substr(1,v.length-2)):Oa(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof pn==1?Oa(w.substr(1,w.length-1)):w},set:function(v){v=v.toString(),w=this instanceof pn==1?"/"+sa(v):v}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof pn==0?Ec(h,this.objId,this.scope):h},set:function(v){v=v.toString(),h=this instanceof pn==0?v.substr(0,1)==="("?Oa(v.substr(1,v.length-2)):Oa(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof pn==1?Oa(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof pn==1?"/"+sa(v):v}}),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 x,b=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return b},set:function(v){v=!!v,b=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(x)return x},set:function(v){x=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,1)},set:function(v){v?this.Ff=en(this.Ff,1):this.Ff=nn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,2)},set:function(v){v?this.Ff=en(this.Ff,2):this.Ff=nn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,3)},set:function(v){v?this.Ff=en(this.Ff,3):this.Ff=nn(this.Ff,3)}});var N=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(N!==null)return N},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');N=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(N){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:N=2;break;case"center":case 1:N=1;break;default:N=0}}})};qn(yr,Tr);var Wa=function(){yr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return C1(n,this.objId,this.scope)},set:function(e){var r,a;a=[],typeof(r=e)=="string"&&(a=function(i,l,s){s||(s=1);for(var c,f=[];c=l.exec(i);)f.push(c[s]);return f}(r,/\((.*?)\)/g)),n=a}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort()},this.addOption=function(e){e=(e=e||"").toString(),n.push(e),this.sort&&n.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,18)},set:function(e){e?this.Ff=en(this.Ff,18):this.Ff=nn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=en(this.Ff,19):this.Ff=nn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,20)},set:function(e){e?(this.Ff=en(this.Ff,20),n.sort()):this.Ff=nn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,22)},set:function(e){e?this.Ff=en(this.Ff,22):this.Ff=nn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,23)},set:function(e){e?this.Ff=en(this.Ff,23):this.Ff=nn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,27)},set:function(e){e?this.Ff=en(this.Ff,27):this.Ff=nn(this.Ff,27)}}),this.hasAppearanceStream=!1};qn(Wa,yr);var Ga=function(){Wa.call(this),this.fontName="helvetica",this.combo=!1};qn(Ga,Wa);var $a=function(){Ga.call(this),this.combo=!0};qn($a,Ga);var tl=function(){$a.call(this),this.edit=!0};qn(tl,$a);var pn=function(){yr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,15)},set:function(e){e?this.Ff=en(this.Ff,15):this.Ff=nn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,16)},set:function(e){e?this.Ff=en(this.Ff,16):this.Ff=nn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,17)},set:function(e){e?this.Ff=en(this.Ff,17):this.Ff=nn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,26)},set:function(e){e?this.Ff=en(this.Ff,26):this.Ff=nn(this.Ff,26)}});var t,n={};
87Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(i){return i};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var r,a=[];for(r in a.push("<<"),n)a.push("/"+r+" ("+la(e(n[r]))+")");return a.push(">>"),a.join(` 88`)}},set:function(e){Ie(e)==="object"&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var r=e==null?"":e.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),t="/"+sa(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+sa(e)}})};qn(pn,yr);var el=function(){pn.call(this),this.pushButton=!0};qn(el,pn);var Va=function(){pn.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n!==void 0?n:[]}})};qn(Va,pn);var fl=function(){var t,n;yr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(a){n=a}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(s){return s};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var i,l=[];for(i in l.push("<<"),r)l.push("/"+i+" ("+la(a(r[i]))+")");return l.push(">>"),l.join(` 89`)},set:function(a){Ie(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 i=a==null?"":a.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),e="/"+sa(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var i=a==null?"":a.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),e="/"+sa(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Xt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};qn(fl,yr),Va.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Va.prototype.createOption=function(t){var n=new fl;return n.Parent=this,n.optionName=t,this.Kids.push(n),jm.call(this.scope,n),n};var nl=function(){pn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Xt.CheckBox.createAppearanceStream()};qn(nl,pn);var ea=function(){yr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,13)},set:function(n){n?this.Ff=en(this.Ff,13):this.Ff=nn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,21)},set:function(n){n?this.Ff=en(this.Ff,21):this.Ff=nn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,23)},set:function(n){n?this.Ff=en(this.Ff,23):this.Ff=nn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,24)},set:function(n){n?this.Ff=en(this.Ff,24):this.Ff=nn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,25)},set:function(n){n?this.Ff=en(this.Ff,25):this.Ff=nn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,26)},set:function(n){n?this.Ff=en(this.Ff,26):this.Ff=nn(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};qn(ea,yr);
vendor: 42,113 bytes, lines 89-122
89var rl=function(){ea.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!tn(this.Ff,14)},set:function(t){t?this.Ff=en(this.Ff,14):this.Ff=nn(this.Ff,14)}}),this.password=!0};qn(rl,ea);var Xt={CheckBox:{createAppearanceStream:function(){return{N:{On:Xt.CheckBox.YesNormal},D:{On:Xt.CheckBox.YesPushDown,Off:Xt.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Fr(t);n.scope=t.scope;var e=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),i=eu(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+de(Xt.internal.getWidth(t))+" "+de(Xt.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+de(i.fontSize)+" Tf "+a),e.push("BT"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(` 90`),n},YesNormal:function(t){var n=Fr(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),a=[],i=Xt.internal.getHeight(t),l=Xt.internal.getWidth(t),s=eu(t,t.caption);return a.push("1 g"),a.push("0 0 "+de(l)+" "+de(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+de(l-1)+" "+de(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+de(s.fontSize)+" Tf "+r),a.push(s.text),a.push("ET"),a.push("Q"),n.stream=a.join(` 91`),n},OffPushDown:function(t){var n=Fr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+de(Xt.internal.getWidth(t))+" "+de(Xt.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` 92`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:Xt.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=Xt.RadioButton.Circle.YesNormal,n.D[t]=Xt.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=Fr(t);n.scope=t.scope;var e=[],r=Xt.internal.getWidth(t)<=Xt.internal.getHeight(t)?Xt.internal.getWidth(t)/4:Xt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Xt.internal.Bezier_C,i=Number((r*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+wi(Xt.internal.getWidth(t)/2)+" "+wi(Xt.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),e.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),e.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),e.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 93`),n},YesPushDown:function(t){var n=Fr(t);n.scope=t.scope;var e=[],r=Xt.internal.getWidth(t)<=Xt.internal.getHeight(t)?Xt.internal.getWidth(t)/4:Xt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),i=Number((a*Xt.internal.Bezier_C).toFixed(5)),l=Number((r*Xt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+wi(Xt.internal.getWidth(t)/2)+" "+wi(Xt.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+wi(Xt.internal.getWidth(t)/2)+" "+wi(Xt.internal.getHeight(t)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+l+" "+l+" "+r+" 0 "+r+" c"),e.push("-"+l+" "+r+" -"+r+" "+l+" -"+r+" 0 c"),e.push("-"+r+" -"+l+" -"+l+" -"+r+" 0 -"+r+" c"),e.push(l+" -"+r+" "+r+" -"+l+" "+r+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 94`),n},OffPushDown:function(t){var n=Fr(t);n.scope=t.scope;var e=[],r=Xt.internal.getWidth(t)<=Xt.internal.getHeight(t)?Xt.internal.getWidth(t)/4:Xt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),i=Number((a*Xt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+wi(Xt.internal.getWidth(t)/2)+" "+wi(Xt.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),e.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),e.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),e.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` 95`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:Xt.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=Xt.RadioButton.Cross.YesNormal,n.D[t]=Xt.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Fr(t);n.scope=t.scope;var e=[],r=Xt.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+de(Xt.internal.getWidth(t)-2)+" "+de(Xt.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(de(r.x1.x)+" "+de(r.x1.y)+" m"),e.push(de(r.x2.x)+" "+de(r.x2.y)+" l"),e.push(de(r.x4.x)+" "+de(r.x4.y)+" m"),e.push(de(r.x3.x)+" "+de(r.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(` 96`),n},YesPushDown:function(t){var n=Fr(t);n.scope=t.scope;var e=Xt.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+de(Xt.internal.getWidth(t))+" "+de(Xt.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+de(Xt.internal.getWidth(t)-2)+" "+de(Xt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(de(e.x1.x)+" "+de(e.x1.y)+" m"),r.push(de(e.x2.x)+" "+de(e.x2.y)+" l"),r.push(de(e.x4.x)+" "+de(e.x4.y)+" m"),r.push(de(e.x3.x)+" "+de(e.x3.y)+" l"),r.push("s"),r.push("Q"),n.stream=r.join(` 97`),n},OffPushDown:function(t){var n=Fr(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+de(Xt.internal.getWidth(t))+" "+de(Xt.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` 98`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};Xt.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=Xt.internal.getWidth(t),e=Xt.internal.getHeight(t),r=Math.min(n,e);return{x1:{x:(n-r)/2,y:(e-r)/2+r},x2:{x:(n-r)/2+r,y:(e-r)/2},x3:{x:(n-r)/2,y:(e-r)/2},x4:{x:(n-r)/2+r,y:(e-r)/2+r}}}},Xt.internal.getWidth=function(t){var n=0;return Ie(t)==="object"&&(n=Ef(t.Rect[2])),n},Xt.internal.getHeight=function(t){var n=0;return Ie(t)==="object"&&(n=Ef(t.Rect[3])),n};var jm=Ye.addField=function(t){if(Pm(this,t),!(t instanceof yr))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};Ye.AcroFormChoiceField=Wa,Ye.AcroFormListBox=Ga,Ye.AcroFormComboBox=$a,Ye.AcroFormEditBox=tl,Ye.AcroFormButton=pn,Ye.AcroFormPushButton=el,Ye.AcroFormRadioButton=Va,Ye.AcroFormCheckBox=nl,Ye.AcroFormTextField=ea,Ye.AcroFormPasswordField=rl,Ye.AcroFormAppearance=Xt,Ye.AcroForm={ChoiceField:Wa,ListBox:Ga,ComboBox:$a,EditBox:tl,Button:pn,PushButton:el,RadioButton:Va,CheckBox:nl,TextField:ea,PasswordField:rl,Appearance:Xt},ie.AcroForm={ChoiceField:Wa,ListBox:Ga,ComboBox:$a,EditBox:tl,Button:pn,PushButton:el,RadioButton:Va,CheckBox:nl,TextField:ea,PasswordField:rl,Appearance:Xt};function j1(t){return t.reduce(function(n,e,r){return n[e]=r,n},{})}(function(t){var n="addImage_";t.__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=t.__addimage__.getImageFileTypeByImageData=function(E,y){var R,g,X,ft,at,nt=e;if((y=y||e)==="RGBA"||E.data!==void 0&&E.data instanceof Uint8ClampedArray&&"height"in E&&"width"in E)return"RGBA";if(ot(E))for(at in r)for(X=r[at],R=0;R<X.length;R+=1){for(ft=!0,g=0;g<X[R].length;g+=1)if(X[R][g]!==void 0&&X[R][g]!==E[g]){ft=!1;break}if(ft===!0){nt=at;break}}else for(at in r)for(X=r[at],R=0;R<X.length;R+=1){for(ft=!0,g=0;g<X[R].length;g+=1)if(X[R][g]!==void 0&&X[R][g]!==E.charCodeAt(g)){ft=!1;break}if(ft===!0){nt=at;break}}return nt===e&&y!==e&&(nt=y),nt},i=function E(y){for(var R=this.internal.write,g=this.internal.putStream,X=(0,this.internal.getFilters)();X.indexOf("FlateEncode")!==-1;)X.splice(X.indexOf("FlateEncode"),1);y.objectId=this.internal.newObject();var ft=[];if(ft.push({key:"Type",value:"/XObject"}),ft.push({key:"Subtype",value:"/Image"}),ft.push({key:"Width",value:y.width}),ft.push({key:"Height",value:y.height}),y.colorSpace===v.INDEXED?ft.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(y.palette.length/3-1)+" "+("sMask"in y&&y.sMask!==void 0?y.objectId+2:y.objectId+1)+" 0 R]"}):(ft.push({key:"ColorSpace",value:"/"+y.colorSpace}),y.colorSpace===v.DEVICE_CMYK&&ft.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ft.push({key:"BitsPerComponent",value:y.bitsPerComponent}),"decodeParameters"in y&&y.decodeParameters!==void 0&&ft.push({key:"DecodeParms",value:"<<"+y.decodeParameters+">>"}),"transparency"in y&&Array.isArray(y.transparency)&&y.transparency.length>0){for(var at="",nt=0,it=y.transparency.length;nt<it;nt++)at+=y.transparency[nt]+" "+y.transparency[nt]+" ";ft.push({key:"Mask",value:"["+at+"]"})}y.sMask!==void 0&&ft.push({key:"SMask",value:y.objectId+1+" 0 R"});var mt=y.filter!==void 0?["/"+y.filter]:void 0;if(g({data:y.data,additionalKeyValues:ft,alreadyAppliedFilters:mt,objectId:y.objectId}),R("endobj"),"sMask"in y&&y.sMask!==void 0){var tt,A=(tt=y.sMaskBitsPerComponent)!==null&&tt!==void 0?tt:y.bitsPerComponent,U={width:y.width,height:y.height,colorSpace:"DeviceGray",bitsPerComponent:A,data:y.sMask};"filter"in y&&(U.decodeParameters="/Predictor ".concat(y.predictor," /Colors 1 /BitsPerComponent ").concat(A," /Columns ").concat(y.width),U.filter=y.filter),E.call(this,U)}if(y.colorSpace===v.INDEXED){var M=this.internal.newObject();g({data:$(new Uint8Array(y.palette)),objectId:M}),R("endobj")}},l=function(){var E=this.internal.collections[n+"images"];for(var y in E)i.call(this,E[y])},s=function(){var E,y=this.internal.collections[n+"images"],R=this.internal.write;for(var g in y)R("/I"+(E=y[g]).index,E.objectId,"0","R")},c=function(){this.internal.collections[n+"images"]||(this.internal.collections[n+"images"]={},this.internal.events.subscribe("putResources",l),this.internal.events.subscribe("putXobjectDict",s))},f=function(){var E=this.internal.collections[n+"images"];return c.call(this),E},d=function(){return Object.keys(this.internal.collections[n+"images"]).length},_=function(E){return typeof t["process"+E.toUpperCase()]=="function"},w=function(E){return Ie(E)==="object"&&E.nodeType===1},h=function(E,y){if(E.nodeName==="IMG"&&E.hasAttribute("src")){var R=""+E.getAttribute("src");if(R.indexOf("data:image/")===0)return Qo(unescape(R).split("base64,").pop());var g=t.loadFile(R,!0);if(g!==void 0)return g}if(E.nodeName==="CANVAS"){if(E.width===0||E.height===0)throw new Error("Given canvas must have data. Canvas width: "+E.width+", height: "+E.height);var X;switch(y){case"PNG":X="image/png";break;case"WEBP":X="image/webp";break;default:X="image/jpeg"}return Qo(E.toDataURL(X,1).split("base64,").pop())}},x=function(E){var y=this.internal.collections[n+"images"];if(y){for(var R in y)if(E===y[R].alias)return y[R]}},b=function(E,y,R){return E||y||(E=-96,y=-96),E<0&&(E=-1*R.width*72/E/this.internal.scaleFactor),y<0&&(y=-1*R.height*72/y/this.internal.scaleFactor),E===0&&(E=y*R.width/R.height),y===0&&(y=E*R.height/R.width),[E,y]},N=function(E,y,R,g,X,ft){var at=b.call(this,R,g,X),nt=this.internal.getCoordinateString,it=this.internal.getVerticalCoordinateString,mt=f.call(this);if(R=at[0],g=at[1],mt[X.index]=X,ft){ft*=Math.PI/180;var tt=Math.cos(ft),A=Math.sin(ft),U=function(K){return K.toFixed(4)},M=[U(tt),U(A),U(-1*A),U(tt),0,0,"cm"]}this.internal.write("q"),ft?(this.internal.write([1,"0","0",1,nt(E),it(y+g),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([nt(R),"0","0",nt(g),"0","0","cm"].join(" "))):this.internal.write([nt(R),"0","0",nt(g),nt(E),it(y+g),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+X.index+" Do"),this.internal.write("Q")},v=t.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"};t.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 C=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},O=t.__addimage__.sHashCode=function(E){var y,R,g=0;if(typeof E=="string")for(R=E.length,y=0;y<R;y++)g=(g<<5)-g+E.charCodeAt(y),g|=0;else if(ot(E))for(R=E.byteLength/2,y=0;y<R;y++)g=(g<<5)-g+E[y],g|=0;return g},T=t.__addimage__.validateStringAsBase64=function(E){(E=E||"").toString().trim();var y=!0;return E.length===0&&(y=!1),E.length%4!=0&&(y=!1),/^[A-Za-z0-9+/]+$/.test(E.substr(0,E.length-2))===!1&&(y=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(E.substr(-2))===!1&&(y=!1),y},Z=t.__addimage__.extractImageFromDataUrl=function(E){if(E==null||!(E=E.trim()).startsWith("data:"))return null;var y=E.indexOf(",");return y<0?null:E.substring(0,y).trim().endsWith("base64")?E.substring(y+1):null};t.__addimage__.isArrayBuffer=function(E){return E instanceof ArrayBuffer};var ot=t.__addimage__.isArrayBufferView=function(E){return E instanceof Int8Array||E instanceof Uint8Array||E instanceof Uint8ClampedArray||E instanceof Int16Array||E instanceof Uint16Array||E instanceof Int32Array||E instanceof Uint32Array||E instanceof Float32Array||E instanceof Float64Array},et=t.__addimage__.binaryStringToUint8Array=function(E){for(var y=E.length,R=new Uint8Array(y),g=0;g<y;g++)R[g]=E.charCodeAt(g);return R},$=t.__addimage__.arrayBufferToBinaryString=function(E){for(var y="",R=ot(E)?E:new Uint8Array(E),g=0;g<R.length;g+=8192)y+=String.fromCharCode.apply(null,R.subarray(g,g+8192));return y};t.addImage=function(){var E,y,R,g,X,ft,at,nt,it;if(typeof arguments[1]=="number"?(y=e,R=arguments[1],g=arguments[2],X=arguments[3],ft=arguments[4],at=arguments[5],nt=arguments[6],it=arguments[7]):(y=arguments[1],R=arguments[2],g=arguments[3],X=arguments[4],ft=arguments[5],at=arguments[6],nt=arguments[7],it=arguments[8]),Ie(E=arguments[0])==="object"&&!w(E)&&"imageData"in E){var mt=E;E=mt.imageData,y=mt.format||y||e,R=mt.x||R||0,g=mt.y||g||0,X=mt.w||mt.width||X,ft=mt.h||mt.height||ft,at=mt.alias||at,nt=mt.compression||nt,it=mt.rotation||mt.angle||it}var tt=this.internal.getFilters();if(nt===void 0&&tt.indexOf("FlateEncode")!==-1&&(nt="SLOW"),isNaN(R)||isNaN(g))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var A=k.call(this,E,y,at,nt);return N.call(this,R,g,X,ft,A,it),this};var k=function(E,y,R,g){var X,ft,at;if(typeof E=="string"&&a(E)===e){E=unescape(E);var nt=j(E,!1);(nt!==""||(nt=t.loadFile(E,!0))!==void 0)&&(E=nt)}if(w(E)&&(E=h(E,y)),y=a(E,y),!_(y))throw new Error("addImage does not support files of type '"+y+"', please ensure that a plugin for '"+y+"' support is added.");if(((at=R)==null||at.length===0)&&(R=function(it){return typeof it=="string"||ot(it)?O(it):ot(it.data)?O(it.data):null}(E)),(X=x.call(this,R))||(E instanceof Uint8Array||y==="RGBA"||(ft=E,E=et(E)),X=this["process"+y.toUpperCase()](E,d.call(this),R,function(it){return it&&typeof it=="string"&&(it=it.toUpperCase()),it in t.image_compression?it:C.NONE}(g),ft)),!X)throw new Error("An unknown error occurred whilst processing the image.");return X},j=t.__addimage__.convertBase64ToBinaryString=function(E,y){y=typeof y!="boolean"||y;var R,g="";if(typeof E=="string"){var X;R=(X=Z(E))!==null&&X!==void 0?X:E;try{g=Qo(R)}catch(ft){if(y)throw T(R)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+ft.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return g};t.getImageProperties=function(E){var y,R,g="";if(w(E)&&(E=h(E)),typeof E=="string"&&a(E)===e&&((g=j(E,!1))===""&&(g=t.loadFile(E)||""),E=g),R=a(E),!_(R))throw new Error("addImage does not support files of type '"+R+"', please ensure that a plugin for '"+R+"' support is added.");if(E instanceof Uint8Array||(E=et(E)),!(y=this["process"+R.toUpperCase()](E)))throw new Error("An unknown error occurred whilst processing the image");return y.fileType=R,y}})(ie.API),function(t){var n=function(e){if(e!==void 0&&e!="")return!0};ie.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var r,a,i,l=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),f=e.pageContext.annotations,d=!1,_=0;_<f.length&&!d;_++)switch((r=f[_]).type){case"link":(n(r.options.url)||n(r.options.pageNumber))&&(d=!0);break;case"reference":case"text":case"freetext":d=!0}if(d!=0){this.internal.write("/Annots [");for(var w=0;w<f.length;w++){r=f[w];var h=this.internal.pdfEscape,x=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var b=this.internal.newAdditionalObject(),N=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(b.objId),C=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+l(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+l(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",i+=" /Popup "+N.objId+" 0 R",i+=" /P "+c.objId+" 0 R",i+=" /T ("+h(v(C))+") >>",b.content=i;var O=b.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+l(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+l(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+O,r.open&&(i+=" /Open true"),i+=" >>",N.content=i,this.internal.write(b.objId,"0 R",N.objId,"0 R");break;case"freetext":a="/Rect ["+l(r.bounds.x)+" "+s(r.bounds.y)+" "+l(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var T="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+h(x(r.contents))+")",i+=" /DS("+h(x(T))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var Z=this.annotations._nameMap[r.options.name];r.options.pageNumber=Z.page,r.options.top=Z.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+h(x(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</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":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var ot=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+ot+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.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)}},t.link=function(e,r,a,i,l){var s=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,f=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:c(e),y:f(r),w:c(e+a),h:f(r+i)},options:l,type:"link"})},t.textWithLink=function(e,r,a,i){var l,s,c=this.getTextWidth(e),f=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var d=this.splitTextToSize(e,s).length;l=Math.ceil(f*d)}else s=c,l=f;return this.text(e,r,a,i),a+=.2*f,i.align==="center"&&(r-=c/2),i.align==="right"&&(r-=c),this.link(r,a-f,s,l,i),c},t.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}}(ie.API),function(t){var n={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},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];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(b){return n[b.charCodeAt(0)]!==void 0},l=t.__arabicParser__.isArabicLetter=function(b){return typeof b=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(b)},s=t.__arabicParser__.isArabicEndLetter=function(b){return l(b)&&i(b)&&n[b.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(b){return l(b)&&a.indexOf(b.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(b){return l(b)&&i(b)&&n[b.charCodeAt(0)].length>=1};var f=t.__arabicParser__.arabicLetterHasFinalForm=function(b){return l(b)&&i(b)&&n[b.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(b){return l(b)&&i(b)&&n[b.charCodeAt(0)].length>=3};var d=t.__arabicParser__.arabicLetterHasMedialForm=function(b){return l(b)&&i(b)&&n[b.charCodeAt(0)].length==4},_=t.__arabicParser__.resolveLigatures=function(b){var N=0,v=e,C="",O=0;for(N=0;N<b.length;N+=1)v[b.charCodeAt(N)]!==void 0?(O++,typeof(v=v[b.charCodeAt(N)])=="number"&&(C+=String.fromCharCode(v),v=e,O=0),N===b.length-1&&(v=e,C+=b.charAt(N-(O-1)),N-=O-1,O=0)):(v=e,C+=b.charAt(N-O),N-=O,O=0);return C};t.__arabicParser__.isArabicDiacritic=function(b){return b!==void 0&&r[b.charCodeAt(0)]!==void 0};var w=t.__arabicParser__.getCorrectForm=function(b,N,v){return l(b)?i(b)===!1?-1:!f(b)||!l(N)&&!l(v)||!l(v)&&s(N)||s(b)&&!l(N)||s(b)&&c(N)||s(b)&&s(N)?0:d(b)&&l(N)&&!s(N)&&l(v)&&f(v)?3:s(b)||!l(v)?1:2:-1},h=function(b){var N=0,v=0,C=0,O="",T="",Z="",ot=(b=b||"").split("\\s+"),et=[];for(N=0;N<ot.length;N+=1){for(et.push(""),v=0;v<ot[N].length;v+=1)O=ot[N][v],T=ot[N][v-1],Z=ot[N][v+1],l(O)?(C=w(O,T,Z),et[N]+=C!==-1?String.fromCharCode(n[O.charCodeAt(0)][C]):O):et[N]+=O;et[N]=_(et[N])}return et.join(" ")},x=t.__arabicParser__.processArabic=t.processArabic=function(){var b,N=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(N)){var C=0;for(v=[],C=0;C<N.length;C+=1)Array.isArray(N[C])?v.push([h(N[C][0]),N[C][1],N[C][2]]):v.push([h(N[C])]);b=v}else b=h(N);return typeof arguments[0]=="string"?b:(arguments[0].text=b,arguments[0])};t.events.push(["preProcessText",x])}(ie.API),ie.API.autoPrint=function(t){var n;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){n=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 "+n+" 0 R")})),this},function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(s){e=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(s){a=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var l={};Object.defineProperty(this,"style",{get:function(){return l},set:function(s){l=s}}),Object.defineProperty(this,"parentNode",{})};n.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},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])}(ie.API),function(t){var n={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({},n),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(b){c=b}});var f=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return f},set:function(b){f=b}});var d=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return d},set:function(b){d=b}});var _=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return _},set:function(b){_=b}});var w=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return w},set:function(b){w=b}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(b){h=b}});var x=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return x},set:function(b){x=b}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},t.getTextDimensions=function(c,f){r.call(this);var d=(f=f||{}).fontSize||this.getFontSize(),_=f.font||this.getFont(),w=f.scaleFactor||this.internal.scaleFactor,h=0,x=0,b=0,N=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 v=f.maxWidth;v>0?typeof c=="string"?c=this.splitTextToSize(c,v):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(O,T){return O.concat(N.splitTextToSize(T,v))},[])):c=Array.isArray(c)?c:[c];for(var C=0;C<c.length;C++)h<(b=this.getStringUnitWidth(c[C],{font:_})*d)&&(h=b);return h!==0&&(x=c.length),{w:h/=w,h:Math.max((x*d*this.getLineHeightFactor()-d*(this.getLineHeightFactor()-1))/w,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||n;return this.internal.__cell__.lastCell=new i(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var l=t.cell=function(){var c;c=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var f=this.internal.__cell__.lastCell,d=this.internal.__cell__.padding,_=this.internal.__cell__.margins||n,w=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return f.lineNumber!==void 0&&(f.lineNumber===c.lineNumber?(c.x=(f.x||0)+(f.width||0),c.y=f.y||0):f.y+f.height+c.height+_.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=_.top,h&&w&&(this.printHeaderRow(c.lineNumber,!0),c.y+=w[0].height)):c.y=f.y+f.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-d,c.y+d,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+d,{align:"center",baseline:"top",maxWidth:c.width-d-d}):this.text(c.text,c.x+d,c.y+d,{align:"left",baseline:"top",maxWidth:c.width-d-d})),this.internal.__cell__.lastCell=c,this};t.table=function(c,f,d,_,w){if(r.call(this),!d)throw new Error("No data for PDF table.");var h,x,b,N,v=[],C=[],O=[],T={},Z={},ot=[],et=[],$=(w=w||{}).autoSize||!1,k=w.printHeaders!==!1,j=w.css&&w.css["font-size"]!==void 0?16*w.css["font-size"]:w.fontSize||12,E=w.margins||Object.assign({width:this.getPageWidth()},n),y=typeof w.padding=="number"?w.padding:3,R=w.headerBackgroundColor||"#c8c8c8",g=w.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=j,this.internal.__cell__.padding=y,this.internal.__cell__.headerBackgroundColor=R,this.internal.__cell__.headerTextColor=g,this.setFontSize(j),_==null)C=v=Object.keys(d[0]),O=v.map(function(){return"left"});else if(Array.isArray(_)&&Ie(_[0])==="object")for(v=_.map(function(mt){return mt.name}),C=_.map(function(mt){return mt.prompt||mt.name||""}),O=_.map(function(mt){return mt.align||"left"}),h=0;h<_.length;h+=1)Z[_[h].name]=.7499990551181103*_[h].width;else Array.isArray(_)&&typeof _[0]=="string"&&(C=v=_,O=v.map(function(){return"left"}));if($||Array.isArray(_)&&typeof _[0]=="string")for(h=0;h<v.length;h+=1){for(T[N=v[h]]=d.map(function(mt){return mt[N]}),this.setFont(void 0,"bold"),ot.push(this.getTextDimensions(C[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),x=T[N],this.setFont(void 0,"normal"),b=0;b<x.length;b+=1)ot.push(this.getTextDimensions(x[b],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Z[N]=Math.max.apply(null,ot)+y+y,ot=[]}if(k){var X={};for(h=0;h<v.length;h+=1)X[v[h]]={},X[v[h]].text=C[h],X[v[h]].align=O[h];var ft=s.call(this,X,Z);et=v.map(function(mt){return new i(c,f,Z[mt],ft,X[mt].text,void 0,X[mt].align)}),this.setTableHeaderRow(et),this.printHeaderRow(1,!1)}var at=_.reduce(function(mt,tt){return mt[tt.name]=tt.align,mt},{});for(h=0;h<d.length;h+=1){"rowStart"in w&&w.rowStart instanceof Function&&w.rowStart({row:h,data:d[h]},this);var nt=s.call(this,d[h],Z);for(b=0;b<v.length;b+=1){var it=d[h][v[b]];"cellStart"in w&&w.cellStart instanceof Function&&w.cellStart({row:h,col:b,data:it},this),l.call(this,new i(c,f,Z[v[b]],nt,it,h+2,at[v[b]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=f,this};var s=function(c,f){var d=this.internal.__cell__.padding,_=this.internal.__cell__.table_font_size,w=this.internal.scaleFactor;return Object.keys(c).map(function(h){var x=c[h];return this.splitTextToSize(x.hasOwnProperty("text")?x.text:x,f[h]-d-d)},this).map(function(h){return this.getLineHeightFactor()*h.length*_/w+d+d},this).reduce(function(h,x){return Math.max(h,x)},0)};t.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},t.printHeaderRow=function(c,f){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var d;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var _=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(_[0],_[1],_[2],_[3],void 0,-1)}this.setFont(void 0,"bold");for(var w=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){d=this.internal.__cell__.tableHeaderRow[h].clone(),f&&(d.y=this.internal.__cell__.margins.top||0,w.push(d)),d.lineNumber=c;var x=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),l.call(this,d),this.setTextColor(x)}w.length>0&&this.setTableHeaderRow(w),this.setFont(void 0,"normal"),e=!1}}(ie.API);var F1={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},R1=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],nu=j1(R1),O1=[100,200,300,400,500,600,700,800,900],Fm=j1(O1);function Cc(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=function(i){return F1[i=i||"normal"]?i:"normal"}(t.style),r=function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400}(t.weight),a=function(i){return typeof nu[i=i||"normal"]=="number"?i:"normal"}(t.stretch);return{family:n,style:e,weight:r,stretch:a,src:t.src||[],ref:t.ref||{name:n,style:[a,e,r].join(" ")}}}function Cf(t,n,e,r){var a;for(a=e;a>=0&&a<n.length;a+=r)if(t[n[a]])return t[n[a]];for(a=e;a>=0&&a<n.length;a-=r)if(t[n[a]])return t[n[a]]}var Rm={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},If={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Pf(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function jf(t){return t.trimLeft()}function Om(t,n){for(var e=0;e<t.length;){if(t.charAt(e)===n)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function Tm(t){var n=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return n===null?null:[n[0],t.substring(n[0].length)]}var Ta,Wo,Ff,Rf,Of,Ic=["times"];function Tf(t,n,e,r,a){var i=4,l=Bf;switch(a){case ie.API.image_compression.FAST:i=1,l=Df;break;case ie.API.image_compression.MEDIUM:i=6,l=Mf;break;case ie.API.image_compression.SLOW:i=9,l=zf}t=function(c,f,d,_){for(var w,h=c.length/f,x=new Uint8Array(c.length+h),b=[Dm,Df,Bf,Mf,zf],N=0;N<h;N+=1){var v=N*f,C=c.subarray(v,v+f);if(_)x.set(_(C,d,w),v+N);else{for(var O=b.length,T=[],Z=0;Z<O;Z+=1)T[Z]=b[Z](C,d,w);var ot=Mm(T.concat());x.set(T[ot],v+N)}w=C}return x}(t,n,Math.ceil(e*r/8),l);var s=Hc(t,{level:i});return ie.API.__addimage__.arrayBufferToBinaryString(s)}function Dm(t){var n=Array.apply([],t);return n.unshift(0),n}function Df(t,n){var e=t.length,r=[];r[0]=1;for(var a=0;a<e;a+=1){var i=t[a-n]||0;r[a+1]=t[a]-i+256&255}return r}function Bf(t,n,e){var r=t.length,a=[];a[0]=2;for(var i=0;i<r;i+=1){var l=e&&e[i]||0;a[i+1]=t[i]-l+256&255}return a}function Mf(t,n,e){var r=t.length,a=[];a[0]=3;for(var i=0;i<r;i+=1){var l=t[i-n]||0,s=e&&e[i]||0;a[i+1]=t[i]+256-(l+s>>>1)&255}return a}function zf(t,n,e){var r=t.length,a=[];a[0]=4;for(var i=0;i<r;i+=1){var l=Bm(t[i-n]||0,e&&e[i]||0,e&&e[i-n]||0);a[i+1]=t[i]-l+256&255}return a}function Bm(t,n,e){if(t===n&&n===e)return t;var r=Math.abs(n-e),a=Math.abs(t-e),i=Math.abs(t+n-e-e);return r<=a&&r<=i?t:a<=i?n:e}function Mm(t){var n=t.map(function(e){return e.reduce(function(r,a){return r+Math.abs(a)},0)});return n.indexOf(Math.min.apply(null,n))}function Pc(t,n,e){var r=n*e,a=Math.floor(r/8),i=16-(r-8*a+e),l=(1<<e)-1;return T1(t,a)>>i&l}function Uf(t,n,e,r){var a=e*r,i=Math.floor(a/8),l=16-(a-8*i+r),s=(1<<r)-1,c=(n&s)<<l;(function(f,d,_){if(d+1<f.byteLength)f.setUint16(d,_,!1);else{var w=_>>8&255;f.setUint8(d,w)}})(t,i,T1(t,i)&~(s<<l)&65535|c)}function T1(t,n){return n+1<t.byteLength?t.getUint16(n,!1):t.getUint8(n)<<8}function zm(t){var n=0;if(t[n++]!==71||t[n++]!==73||t[n++]!==70||t[n++]!==56||(t[n++]+1&253)!=56||t[n++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[n++]|t[n++]<<8,r=t[n++]|t[n++]<<8,a=t[n++],i=a>>7,l=1<<1+(7&a);t[n++],t[n++];var s=null,c=null;i&&(s=n,c=l,n+=3*l);var f=!0,d=[],_=0,w=null,h=0,x=null;for(this.width=e,this.height=r;f&&n<t.length;)switch(t[n++]){case 33:switch(t[n++]){case 255:if(t[n]!==11||t[n+1]==78&&t[n+2]==69&&t[n+3]==84&&t[n+4]==83&&t[n+5]==67&&t[n+6]==65&&t[n+7]==80&&t[n+8]==69&&t[n+9]==50&&t[n+10]==46&&t[n+11]==48&&t[n+12]==3&&t[n+13]==1&&t[n+16]==0)n+=14,x=t[n++]|t[n++]<<8,n++;else for(n+=12;;){if(!((E=t[n++])>=0))throw Error("Invalid block size");if(E===0)break;n+=E}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var b=t[n++];_=t[n++]|t[n++]<<8,w=t[n++],1&b||(w=null),h=b>>2&7,n++;break;case 254:for(;;){if(!((E=t[n++])>=0))throw Error("Invalid block size");if(E===0)break;n+=E}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var N=t[n++]|t[n++]<<8,v=t[n++]|t[n++]<<8,C=t[n++]|t[n++]<<8,O=t[n++]|t[n++]<<8,T=t[n++],Z=T>>6&1,ot=1<<1+(7&T),et=s,$=c,k=!1;T>>7&&(k=!0,et=n,$=ot,n+=3*ot);var j=n;for(n++;;){var E;if(!((E=t[n++])>=0))throw Error("Invalid block size");if(E===0)break;n+=E}d.push({x:N,y:v,width:C,height:O,has_local_palette:k,palette_offset:et,palette_size:$,data_offset:j,data_length:n-j,transparent_index:w,interlaced:!!Z,delay:_,disposal:h});break;case 59:f=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return x},this.frameInfo=function(y){if(y<0||y>=d.length)throw new Error("Frame index out of range.");return d[y]},this.decodeAndBlitFrameBGRA=function(y,R){var g=this.frameInfo(y),X=g.width*g.height;if(X>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ft=new Uint8Array(X);qf(t,g.data_offset,ft,X);var at=g.palette_offset,nt=g.transparent_index;nt===null&&(nt=256);var it=g.width,mt=e-it,tt=it,A=4*(g.y*e+g.x),U=4*((g.y+g.height)*e+g.x),M=A,K=4*mt;g.interlaced===!0&&(K+=4*e*7);for(var st=8,dt=0,vt=ft.length;dt<vt;++dt){var ut=ft[dt];if(tt===0&&(tt=it,(M+=K)>=U&&(K=4*mt+4*e*(st-1),M=A+(it+mt)*(st<<1),st>>=1)),ut===nt)M+=4;else{var yt=t[at+3*ut],Lt=t[at+3*ut+1],Ct=t[at+3*ut+2];R[M++]=Ct,R[M++]=Lt,R[M++]=yt,R[M++]=255}--tt}},this.decodeAndBlitFrameRGBA=function(y,R){var g=this.frameInfo(y),X=g.width*g.height;if(X>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ft=new Uint8Array(X);qf(t,g.data_offset,ft,X);var at=g.palette_offset,nt=g.transparent_index;nt===null&&(nt=256);var it=g.width,mt=e-it,tt=it,A=4*(g.y*e+g.x),U=4*((g.y+g.height)*e+g.x),M=A,K=4*mt;g.interlaced===!0&&(K+=4*e*7);for(var st=8,dt=0,vt=ft.length;dt<vt;++dt){var ut=ft[dt];if(tt===0&&(tt=it,(M+=K)>=U&&(K=4*mt+4*e*(st-1),M=A+(it+mt)*(st<<1),st>>=1)),ut===nt)M+=4;else{var yt=t[at+3*ut],Lt=t[at+3*ut+1],Ct=t[at+3*ut+2];R[M++]=yt,R[M++]=Lt,R[M++]=Ct,R[M++]=255}--tt}}}function qf(t,n,e,r){for(var a=t[n++],i=1<<a,l=i+1,s=l+1,c=a+1,f=(1<<c)-1,d=0,_=0,w=0,h=t[n++],x=new Int32Array(4096),b=null;;){for(;d<16&&h!==0;)_|=t[n++]<<d,d+=8,h===1?h=t[n++]:--h;if(d<c)break;var N=_&f;if(_>>=c,d-=c,N!==i){if(N===l)break;for(var v=N<s?N:b,C=0,O=v;O>i;)O=x[O]>>8,++C;var T=O;if(w+C+(v!==N?1:0)>r)return void Oe.log("Warning, gif stream longer than expected.");e[w++]=T;var Z=w+=C;for(v!==N&&(e[w++]=T),O=v;C--;)O=x[O],e[--Z]=255&O,O>>=8;b!==null&&s<4096&&(x[s++]=b<<8|T,s>=f+1&&c<12&&(++c,f=f<<1|1)),b=N}else s=l+1,f=(1<<(c=a+1))-1,b=null}return w!==r&&Oe.log("Warning, gif stream shorter than expected."),e}/** 99 * @license 100 Copyright (c) 2008, Adobe Systems Incorporated 101 All rights reserved. 102 103 Redistribution and use in source and binary forms, with or without 104 modification, are permitted provided that the following conditions are 105 met: 106 107 * Redistributions of source code must retain the above copyright notice, 108 this list of conditions and the following disclaimer. 109 110 * Redistributions in binary form must reproduce the above copyright 111 notice, this list of conditions and the following disclaimer in the 112 documentation and/or other materials provided with the distribution. 113 114 * Neither the name of Adobe Systems Incorporated nor the names of its 115 contributors may be used to endorse or promote products derived from 116 this software without specific prior written permission. 117 118 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 119 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 120 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 121 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 122 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
123 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 124 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 125 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 126 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 127 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 128 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 129*/function jc(t){var n,e,r,a,i,l=Math.floor,s=new Array(64),c=new Array(64),f=new Array(64),d=new Array(64),_=new Array(65535),w=new Array(65535),h=new Array(64),x=new Array(64),b=[],N=0,v=7,C=new Array(64),O=new Array(64),T=new Array(64),Z=new Array(256),ot=new Array(2048),et=[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],$=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],j=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],y=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],g=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],X=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ft(A,U){for(var M=0,K=0,st=new Array,dt=1;dt<=16;dt++){for(var vt=1;vt<=A[dt];vt++)st[U[K]]=[],st[U[K]][0]=M,st[U[K]][1]=dt,K++,M++;M*=2}return st}function at(A){for(var U=A[0],M=A[1]-1;M>=0;)U&1<<M&&(N|=1<<v),M--,--v<0&&(N==255?(nt(255),nt(0)):nt(N),v=7,N=0)}function nt(A){b.push(A)}function it(A){nt(A>>8&255),nt(255&A)}function mt(A,U,M,K,st){for(var dt,vt=st[0],ut=st[240],yt=function(G,bt){var wt,ct,St,Dt,Et,Ot,qt,zt,Ut,ae,Vt=0;for(Ut=0;Ut<8;++Ut){wt=G[Vt],ct=G[Vt+1],St=G[Vt+2],Dt=G[Vt+3],Et=G[Vt+4],Ot=G[Vt+5],qt=G[Vt+6];var _e=wt+(zt=G[Vt+7]),Kt=wt-zt,se=ct+qt,ce=ct-qt,we=St+Ot,ne=St-Ot,pt=Dt+Et,Nt=Dt-Et,Ht=_e+pt,Zt=_e-pt,$t=se+we,Gt=se-we;G[Vt]=Ht+$t,G[Vt+4]=Ht-$t;var ye=.707106781*(Gt+Zt);G[Vt+2]=Zt+ye,G[Vt+6]=Zt-ye;var hn=.382683433*((Ht=Nt+ne)-(Gt=ce+Kt)),Pe=.5411961*Ht+hn,In=1.306562965*Gt+hn,nr=.707106781*($t=ne+ce),le=Kt+nr,zr=Kt-nr;G[Vt+5]=zr+Pe,G[Vt+3]=zr-Pe,G[Vt+1]=le+In,G[Vt+7]=le-In,Vt+=8}for(Vt=0,Ut=0;Ut<8;++Ut){wt=G[Vt],ct=G[Vt+8],St=G[Vt+16],Dt=G[Vt+24],Et=G[Vt+32],Ot=G[Vt+40],qt=G[Vt+48];var Ur=wt+(zt=G[Vt+56]),rr=wt-zt,ir=ct+qt,Ve=ct-qt,fn=St+Ot,gn=St-Ot,Ci=Dt+Et,ii=Dt-Et,fr=Ur+Ci,Ar=Ur-Ci,dr=ir+fn,pr=ir-fn;G[Vt]=fr+dr,G[Vt+32]=fr-dr;var ar=.707106781*(pr+Ar);G[Vt+16]=Ar+ar,G[Vt+48]=Ar-ar;var Ii=.382683433*((fr=ii+gn)-(pr=Ve+rr)),kr=.5411961*fr+Ii,Pi=1.306562965*pr+Ii,ca=.707106781*(dr=gn+Ve),ua=rr+ca,ha=rr-ca;G[Vt+40]=ha+kr,G[Vt+24]=ha-kr,G[Vt+8]=ua+Pi,G[Vt+56]=ua-Pi,Vt++}for(Ut=0;Ut<64;++Ut)ae=G[Ut]*bt[Ut],h[Ut]=ae>0?ae+.5|0:ae-.5|0;return h}(A,U),Lt=0;Lt<64;++Lt)x[et[Lt]]=yt[Lt];var Ct=x[0]-M;M=x[0],Ct==0?at(K[0]):(at(K[w[dt=32767+Ct]]),at(_[dt]));for(var Rt=63;Rt>0&&x[Rt]==0;)Rt--;if(Rt==0)return at(vt),M;for(var L,I=1;I<=Rt;){for(var rt=I;x[I]==0&&I<=Rt;)++I;var W=I-rt;if(W>=16){L=W>>4;for(var q=1;q<=L;++q)at(ut);W&=15}dt=32767+x[I],at(st[(W<<4)+w[dt]]),at(_[dt]),I++}return Rt!=63&&at(vt),M}function tt(A){A=Math.min(Math.max(A,1),100),i!=A&&(function(U){for(var M=[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],K=0;K<64;K++){var st=l((M[K]*U+50)/100);st=Math.min(Math.max(st,1),255),s[et[K]]=st}for(var dt=[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],vt=0;vt<64;vt++){var ut=l((dt[vt]*U+50)/100);ut=Math.min(Math.max(ut,1),255),c[et[vt]]=ut}for(var yt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Lt=0,Ct=0;Ct<8;Ct++)for(var Rt=0;Rt<8;
vendor: 46,774 bytes, lines 129-135
129Rt++)f[Lt]=1/(s[et[Lt]]*yt[Ct]*yt[Rt]*8),d[Lt]=1/(c[et[Lt]]*yt[Ct]*yt[Rt]*8),Lt++}(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),i=A)}this.encode=function(A,U){U&&tt(U),b=new Array,N=0,v=7,it(65496),it(65504),it(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),it(1),it(1),nt(0),nt(0),function(){it(65499),it(132),nt(0);for(var ct=0;ct<64;ct++)nt(s[ct]);nt(1);for(var St=0;St<64;St++)nt(c[St])}(),function(ct,St){it(65472),it(17),nt(8),it(St),it(ct),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)}(A.width,A.height),function(){it(65476),it(418),nt(0);for(var ct=0;ct<16;ct++)nt($[ct+1]);for(var St=0;St<=11;St++)nt(k[St]);nt(16);for(var Dt=0;Dt<16;Dt++)nt(j[Dt+1]);for(var Et=0;Et<=161;Et++)nt(E[Et]);nt(1);for(var Ot=0;Ot<16;Ot++)nt(y[Ot+1]);for(var qt=0;qt<=11;qt++)nt(R[qt]);nt(17);for(var zt=0;zt<16;zt++)nt(g[zt+1]);for(var Ut=0;Ut<=161;Ut++)nt(X[Ut])}(),it(65498),it(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var M=0,K=0,st=0;N=0,v=7,this.encode.displayName="_encode_";for(var dt,vt,ut,yt,Lt,Ct,Rt,L,I,rt=A.data,W=A.width,q=A.height,G=4*W,bt=0;bt<q;){for(dt=0;dt<G;){for(Lt=G*bt+dt,Rt=-1,L=0,I=0;I<64;I++)Ct=Lt+(L=I>>3)*G+(Rt=4*(7&I)),bt+L>=q&&(Ct-=G*(bt+1+L-q)),dt+Rt>=G&&(Ct-=dt+Rt-G+4),vt=rt[Ct++],ut=rt[Ct++],yt=rt[Ct++],C[I]=(ot[vt]+ot[ut+256|0]+ot[yt+512|0]>>16)-128,O[I]=(ot[vt+768|0]+ot[ut+1024|0]+ot[yt+1280|0]>>16)-128,T[I]=(ot[vt+1280|0]+ot[ut+1536|0]+ot[yt+1792|0]>>16)-128;M=mt(C,f,M,n,r),K=mt(O,d,K,e,a),st=mt(T,d,st,e,a),dt+=32}bt+=8}if(v>=0){var wt=[];wt[1]=v+1,wt[0]=(1<<v+1)-1,at(wt)}return it(65497),new Uint8Array(b)},t=t||50,function(){for(var A=String.fromCharCode,U=0;U<256;U++)Z[U]=A(U)}(),n=ft($,k),e=ft(y,R),r=ft(j,E),a=ft(g,X),function(){for(var A=1,U=2,M=1;M<=15;M++){for(var K=A;K<U;K++)w[32767+K]=M,_[32767+K]=[],_[32767+K][1]=M,_[32767+K][0]=K;for(var st=-(U-1);st<=-A;st++)w[32767+st]=M,_[32767+st]=[],_[32767+st][1]=M,_[32767+st][0]=U-1+st;A<<=1,U<<=1}}(),function(){for(var A=0;A<256;A++)ot[A]=19595*A,ot[A+256|0]=38470*A,ot[A+512|0]=7471*A+32768,ot[A+768|0]=-11059*A,ot[A+1024|0]=-21709*A,ot[A+1280|0]=32768*A+8421375,ot[A+1536|0]=-27439*A,ot[A+1792|0]=-5329*A}(),tt(t)}/** 130 * @license 131 * Copyright (c) 2017 Aras Abbasi 132 * 133 * Licensed under the MIT License. 134 * http://opensource.org/licenses/mit-license 135 */function _r(t,n){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!n,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 Hf(t){function n(k){if(!k)throw Error("assert :P")}function e(k,j,E){for(var y=0;4>y;y++)if(k[j+y]!=E.charCodeAt(y))return!0;return!1}function r(k,j,E,y,R){for(var g=0;g<R;g++)k[j+g]=E[y+g]}function a(k,j,E,y){for(var R=0;R<y;R++)k[j+R]=E}function i(k){return new Int32Array(k)}function l(k,j){for(var E=[],y=0;y<k;y++)E.push(new j);return E}function s(k,j){var E=[];return function y(R,g,X){for(var ft=X[g],at=0;at<ft&&(R.push(X.length>g+1?[]:new j),!(X.length<g+1));at++)y(R[at],g+1,X)}(E,0,k),E}var c=function(){var k=this;function j(o,u){for(var m=1<<u-1>>>0;o&m;)m>>>=1;return m?(o&m-1)+m:o}function E(o,u,m,S,F){n(!(S%m));do o[u+(S-=m)]=F;while(0<S)}function y(o,u,m,S,F){if(n(2328>=F),512>=F)var D=i(512);else if((D=i(F))==null)return 0;return function(z,H,V,J,ht,kt){var Q,gt,xt=H,Pt=1<<V,At=i(16),jt=i(16);for(n(ht!=0),n(J!=null),n(z!=null),n(0<V),gt=0;gt<ht;++gt){if(15<J[gt])return 0;++At[J[gt]]}if(At[0]==ht)return 0;for(jt[1]=0,Q=1;15>Q;++Q){if(At[Q]>1<<Q)return 0;jt[Q+1]=jt[Q]+At[Q]}for(gt=0;gt<ht;++gt)Q=J[gt],0<J[gt]&&(kt[jt[Q]++]=gt);if(jt[15]==1)return(J=new R).g=0,J.value=kt[0],E(z,xt,1,Pt,J),Pt;var Ft,Mt=-1,Bt=Pt-1,re=0,Yt=1,be=1,te=1<<V;for(gt=0,Q=1,ht=2;Q<=V;++Q,ht<<=1){if(Yt+=be<<=1,0>(be-=At[Q]))return 0;for(;0<At[Q];--At[Q])(J=new R).g=Q,J.value=kt[gt++],E(z,xt+re,ht,te,J),re=j(re,Q)}for(Q=V+1,ht=2;15>=Q;++Q,ht<<=1){if(Yt+=be<<=1,0>(be-=At[Q]))return 0;for(;0<At[Q];--At[Q]){if(J=new R,(re&Bt)!=Mt){for(xt+=te,Ft=1<<(Mt=Q)-V;15>Mt&&!(0>=(Ft-=At[Mt]));)++Mt,Ft<<=1;Pt+=te=1<<(Ft=Mt-V),z[H+(Mt=re&Bt)].g=Ft+V,z[H+Mt].value=xt-H-Mt}J.g=Q-V,J.value=kt[gt++],E(z,xt+(re>>V),ht,te,J),re=j(re,Q)}}return Yt!=2*jt[15]-1?0:Pt}(o,u,m,S,F,D)}function R(){this.value=this.g=0}function g(){this.value=this.g=0}function X(){this.G=l(5,R),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=l(ka,g)}function ft(o,u,m,S){n(o!=null),n(u!=null),n(2147483648>S),o.Ca=254,o.I=0,o.b=-8,o.Ka=0,o.oa=u,o.pa=m,o.Jd=u,o.Yc=m+S,o.Zc=4<=S?m+S-4+1:m,vt(o)}function at(o,u){for(var m=0;0<u--;)m|=yt(o,128)<<u;return m}function nt(o,u){var m=at(o,u);return ut(o)?-m:m}function it(o,u,m,S){var F,D=0;for(n(o!=null),n(u!=null),n(4294967288>S),o.Sb=S,o.Ra=0,o.u=0,o.h=0,4<S&&(S=4),F=0;F<S;++F)D+=u[m+F]<<8*F;o.Ra=D,o.bb=S,o.oa=u,o.pa=m}function mt(o){for(;8<=o.u&&o.bb<o.Sb;)o.Ra>>>=8,o.Ra+=o.oa[o.pa+o.bb]<<jn-8>>>0,++o.bb,o.u-=8;K(o)&&(o.h=1,o.u=0)}function tt(o,u){if(n(0<=u),!o.h&&u<=ps){var m=M(o)&Ui[u];return o.u+=u,mt(o),m}return o.h=1,o.u=0}function A(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function M(o){return o.Ra>>>(o.u&jn-1)>>>0}function K(o){return n(o.bb<=o.Sb),o.h||o.bb==o.Sb&&o.u>jn}function st(o,u){o.u=u,o.h=K(o)}function dt(o){o.u>=Dn&&(n(o.u>=Dn),mt(o))}function vt(o){n(o!=null&&o.oa!=null),o.pa<o.Zc?(o.I=(o.oa[o.pa++]|o.I<<8)>>>0,o.b+=8):(n(o!=null&&o.oa!=null),o.pa<o.Yc?(o.b+=8,o.I=o.oa[o.pa++]|o.I<<8):o.Ka?o.b=0:(o.I<<=8,o.b+=8,o.Ka=1))}function ut(o){return at(o,1)}function yt(o,u){var m=o.Ca;0>o.b&&vt(o);var S=o.b,F=m*u>>>8,D=(o.I>>>S>F)+0;for(D?(m-=F,o.I-=F+1<<S>>>0):m=F+1,S=m,F=0;256<=S;)F+=8,S>>=8;return S=7^F+Sa[S],o.b-=S,o.Ca=(m<<S)-1,D}function Lt(o,u,m){o[u+0]=m>>24&255,o[u+1]=m>>16&255,o[u+2]=m>>8&255,o[u+3]=255&m}function Ct(o,u){return o[u+0]|o[u+1]<<8}function Rt(o,u){return Ct(o,u)|o[u+2]<<16}function L(o,u){return Ct(o,u)|Ct(o,u+2)<<16}function I(o,u){var m=1<<u;return n(o!=null),n(0<u),o.X=i(m),o.X==null?0:(o.Mb=32-u,o.Xa=u,1)}function rt(o,u){n(o!=null),n(u!=null),n(o.Xa==u.Xa),r(u.X,0,o.X,0,1<<u.Xa)}function W(){this.X=[],this.Xa=this.Mb=0}function q(o,u,m,S){n(m!=null),n(S!=null);var F=m[0],D=S[0];return F==0&&(F=(o*D+u/2)/u),D==0&&(D=(u*F+o/2)/o),0>=F||0>=D?0:(m[0]=F,S[0]=D,1)}function G(o,u){return o+(1<<u)-1>>>u}function bt(o,u){return((4278255360&o)+(4278255360&u)>>>0&4278255360)+((16711935&o)+(16711935&u)>>>0&16711935)>>>0}function wt(o,u){k[u]=function(m,S,F,D,z,H,V){var J;for(J=0;J<z;++J){var ht=k[o](H[V+J-1],F,D+J);H[V+J]=bt(m[S+J],ht)}}}function ct(){this.ud=this.hd=this.jd=0}function St(o,u){return((4278124286&(o^u))>>>1)+(o&u)>>>0}function Dt(o){return 0<=o&&256>o?o:0>o?0:255<o?255:void 0}function Et(o,u){return Dt(o+(o-u+.5>>1))}function Ot(o,u,m){return Math.abs(u-m)-Math.abs(o-m)}function qt(o,u,m,S,F,D,z){for(S=D[z-1],m=0;m<F;++m)D[z+m]=S=bt(o[u+m],S)}function zt(o,u,m,S,F){var D;for(D=0;D<m;++D){var z=o[u+D],H=z>>8&255,V=16711935&(V=(V=16711935&z)+((H<<16)+H));S[F+D]=(4278255360&z)+V>>>0}}function Ut(o,u){u.jd=255&o,u.hd=o>>8&255,u.ud=o>>16&255}function ae(o,u,m,S,F,D){var z;for(z=0;z<S;++z){var H=u[m+z],V=H>>>8,J=H,ht=255&(ht=(ht=H>>>16)+((o.jd<<24>>24)*(V<<24>>24)>>>5));J=255&(J=(J+=(o.hd<<24>>24)*(V<<24>>24)>>>5)+((o.ud<<24>>24)*(ht<<24>>24)>>>5)),F[D+z]=(4278255360&H)+(ht<<16)+J}}function Vt(o,u,m,S,F){k[u]=function(D,z,H,V,J,ht,kt,Q,gt){for(V=kt;V<Q;++V)for(kt=0;kt<gt;++kt)J[ht++]=F(H[S(D[z++])])},k[o]=function(D,z,H,V,J,ht,kt){var Q=8>>D.b,gt=D.Ea,xt=D.K[0],Pt=D.w;if(8>Q)for(D=(1<<D.b)-1,Pt=(1<<Q)-1;z<H;++z){var At,jt=0;for(At=0;At<gt;++At)At&D||(jt=S(V[J++])),ht[kt++]=F(xt[jt&Pt]),jt>>=Q}else k["VP8LMapColor"+m](V,J,xt,Pt,ht,kt,z,H,gt)}}function _e(o,u,m,S,F){for(m=u+m;u<m;){var D=o[u++];S[F++]=D>>16&255,S[F++]=D>>8&255,S[F++]=255&D}}function Kt(o,u,m,S,F){for(m=u+m;u<m;){var D=o[u++];S[F++]=D>>16&255,S[F++]=D>>8&255,S[F++]=255&D,S[F++]=D>>24&255}}function se(o,u,m,S,F){for(m=u+m;u<m;){var D=(z=o[u++])>>16&240|z>>12&15,z=240&z|z>>28&15;S[F++]=D,S[F++]=z}}function ce(o,u,m,S,F){for(m=u+m;u<m;){var D=(z=o[u++])>>16&248|z>>13&7,z=z>>5&224|z>>3&31;S[F++]=D,S[F++]=z}}function we(o,u,m,S,F){for(m=u+m;u<m;){var D=o[u++];S[F++]=255&D,S[F++]=D>>8&255,S[F++]=D>>16&255}}function ne(o,u,m,S,F,D){if(D==0)for(m=u+m;u<m;)Lt(S,((D=o[u++])[0]>>24|D[1]>>8&65280|D[2]<<8&16711680|D[3]<<24)>>>0),F+=32;else r(S,F,o,u,m)}function pt(o,u){k[u][0]=k[o+"0"],k[u][1]=k[o+"1"],k[u][2]=k[o+"2"],k[u][3]=k[o+"3"],k[u][4]=k[o+"4"],k[u][5]=k[o+"5"],k[u][6]=k[o+"6"],k[u][7]=k[o+"7"],k[u][8]=k[o+"8"],k[u][9]=k[o+"9"],k[u][10]=k[o+"10"],k[u][11]=k[o+"11"],k[u][12]=k[o+"12"],k[u][13]=k[o+"13"],k[u][14]=k[o+"0"],k[u][15]=k[o+"0"]}function Nt(o){return o==zl||o==Ul||o==wo||o==ql}function Ht(){this.eb=[],this.size=this.A=this.fb=0}function Zt(){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 $t(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Ht,this.f.kb=new Zt,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ye(){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 hn(o){return alert("todo:WebPSamplerProcessPlane"),o.T}function Pe(o,u){var m=o.T,S=u.ba.f.RGBA,F=S.eb,D=S.fb+o.ka*S.A,z=cr[u.ba.S],H=o.y,V=o.O,J=o.f,ht=o.N,kt=o.ea,Q=o.W,gt=u.cc,xt=u.dc,Pt=u.Mc,At=u.Nc,jt=o.ka,Ft=o.ka+o.T,Mt=o.U,Bt=Mt+1>>1;for(jt==0?z(H,V,null,null,J,ht,kt,Q,J,ht,kt,Q,F,D,null,null,Mt):(z(u.ec,u.fc,H,V,gt,xt,Pt,At,J,ht,kt,Q,F,D-S.A,F,D,Mt),++m);jt+2<Ft;jt+=2)gt=J,xt=ht,Pt=kt,At=Q,ht+=o.Rc,Q+=o.Rc,D+=2*S.A,z(H,(V+=2*o.fa)-o.fa,H,V,gt,xt,Pt,At,J,ht,kt,Q,F,D-S.A,F,D,Mt);return V+=o.fa,o.j+Ft<o.o?(r(u.ec,u.fc,H,V,Mt),r(u.cc,u.dc,J,ht,Bt),r(u.Mc,u.Nc,kt,Q,Bt),m--):1&Ft||z(H,V,null,null,J,ht,kt,Q,J,ht,kt,Q,F,D+S.A,null,null,Mt),m}function In(o,u,m){var S=o.F,F=[o.J];if(S!=null){var D=o.U,z=u.ba.S,H=z==_o||z==wo;u=u.ba.f.RGBA;var V=[0],J=o.ka;V[0]=o.T,o.Kb&&(J==0?--V[0]:(--J,F[0]-=o.width),o.j+o.ka+o.T==o.o&&(V[0]=o.o-o.j-J));var ht=u.eb;J=u.fb+J*u.A,o=Nu(S,F[0],o.width,D,V,ht,J+(H?0:3),u.A),n(m==V),o&&Nt(z)&&vs(ht,J,H,D,V,u.A)}return 0}function nr(o){var u=o.ma,m=u.ba.S,S=11>m,F=m==bo||m==vo||m==_o||m==Ml||m==12||Nt(m);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!or(u.Oa,o,F?11:12))return 0;if(F&&Nt(m)&&Vr(),o.da)alert("todo:use_scaling");else{if(S){if(u.Ib=hn,o.Kb){if(m=o.U+1>>1,u.memory=i(o.U+2*m),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+o.U,u.Mc=u.cc,u.Nc=u.dc+m,u.Ib=Pe,Vr()}}else alert("todo:EmitYUV");F&&(u.Jb=In,S&&$e())}if(S&&!Hu){for(o=0;256>o;++o)o0[o]=89858*(o-128)+xo>>yo,u0[o]=-22014*(o-128)+xo,c0[o]=-45773*(o-128),l0[o]=113618*(o-128)+xo>>yo;for(o=ws;o<Gl;++o)u=76283*(o-16)+xo>>yo,h0[o-ws]=Sr(u,255),f0[o-ws]=Sr(u+8>>4,15);Hu=1}return 1}function le(o){var u=o.ma,m=o.U,S=o.T;return n(!(1&o.ka)),0>=m||0>=S?0:(m=u.Ib(o,u),u.Jb!=null&&u.Jb(o,u,m),u.Dc+=m,1)}function zr(o){o.ma.memory=null}function Ur(o,u,m,S){return tt(o,8)!=47?0:(u[0]=tt(o,14)+1,m[0]=tt(o,14)+1,S[0]=tt(o,1),tt(o,3)!=0?0:!o.h)}function rr(o,u){if(4>o)return o+1;var m=o-2>>1;return(2+(1&o)<<m)+tt(u,m)+1}function ir(o,u){return 120<u?u-120:1<=(m=((m=V1[u-1])>>4)*o+(8-(15&m)))?m:1;var m}function Ve(o,u,m){var S=M(m),F=o[u+=255&S].g-8;return 0<F&&(st(m,m.u+8),S=M(m),u+=o[u].value,u+=S&(1<<F)-1),st(m,m.u+o[u].g),o[u].value}function fn(o,u,m){return m.g+=o.g,m.value+=o.value<<u>>>0,n(8>=m.g),o.g}function gn(o,u,m){var S=o.xc;return n((u=S==0?0:o.vc[o.md*(m>>S)+(u>>S)])<o.Wb),o.Ya[u]}function Ci(o,u,m,S){var F=o.ab,D=o.c*u,z=o.C;u=z+u;var H=m,V=S;for(S=o.Ta,m=o.Ua;0<F--;){var J=o.gc[F],ht=z,kt=u,Q=H,gt=V,xt=(V=S,H=m,J.Ea);switch(n(ht<kt),n(kt<=J.nc),J.hc){case 2:Na(Q,gt,(kt-ht)*xt,V,H);break;case 0:var Pt=ht,At=kt,jt=V,Ft=H,Mt=(te=J).Ea;Pt==0&&(ci(Q,gt,null,null,1,jt,Ft),qt(Q,gt+1,0,0,Mt-1,jt,Ft+1),gt+=Mt,Ft+=Mt,++Pt);for(var Bt=1<<te.b,re=Bt-1,Yt=G(Mt,te.b),be=te.K,te=te.w+(Pt>>te.b)*Yt;Pt<At;){var xe=be,ln=te,ve=1;for(ui(Q,gt,jt,Ft-Mt,1,jt,Ft);ve<Mt;){var ee=(ve&~re)+Bt;ee>Mt&&(ee=Mt),(0,gr[xe[ln++]>>8&15])(Q,gt+ +ve,jt,Ft+ve-Mt,ee-ve,jt,Ft+ve),ve=ee}gt+=Mt,Ft+=Mt,++Pt&re||(te+=Yt)}kt!=J.nc&&r(V,H-xt,V,H+(kt-ht-1)*xt,xt);break;case 1:for(xt=Q,At=gt,Mt=(Q=J.Ea)-(Ft=Q&~(jt=(gt=1<<J.b)-1)),Pt=G(Q,J.b),Bt=J.K,J=J.w+(ht>>J.b)*Pt;ht<kt;){for(re=Bt,Yt=J,be=new ct,te=At+Ft,xe=At+Q;At<te;)Ut(re[Yt++],be),Hi(be,xt,At,gt,V,H),At+=gt,H+=gt;At<xe&&(Ut(re[Yt++],be),Hi(be,xt,At,Mt,V,H),At+=Mt,H+=Mt),++ht&jt||(J+=Pt)}break;case 3:if(Q==V&>==H&&0<J.b){for(At=V,Q=xt=H+(kt-ht)*xt-(Ft=(kt-ht)*G(J.Ea,J.b)),gt=V,jt=H,Pt=[],Ft=(Mt=Ft)-1;0<=Ft;--Ft)Pt[Ft]=gt[jt+Ft];for(Ft=Mt-1;0<=Ft;--Ft)At[Q+Ft]=Pt[Ft];qi(J,ht,kt,V,xt,V,H)}else qi(J,ht,kt,Q,gt,V,H)}H=S,V=m}V!=m&&r(S,m,H,V,D)}function ii(o,u){var m=o.V,S=o.Ba+o.c*o.C,F=u-o.C;if(n(u<=o.l.o),n(16>=F),0<F){var D=o.l,z=o.Ta,H=o.Ua,V=D.width;if(Ci(o,F,m,S),F=H=[H],n((m=o.C)<(S=u)),n(D.v<D.va),S>D.o&&(S=D.o),m<D.j){var J=D.j-m;m=D.j,F[0]+=J*V}if(m>=S?m=0:(F[0]+=4*D.v,D.ka=m-D.j,D.U=D.va-D.v,D.T=S-m,m=1),m){if(H=H[0],11>(m=o.ca).S){var ht=m.f.RGBA,kt=(S=m.S,F=D.U,D=D.T,J=ht.eb,ht.A),Q=D;for(ht=ht.fb+o.Ma*ht.A;0<Q--;){var gt=z,xt=H,Pt=F,At=J,jt=ht;switch(S){case mo:gs(gt,xt,Pt,At,jt);break;case bo:ms(gt,xt,Pt,At,jt);break;case zl:ms(gt,xt,Pt,At,jt),vs(At,jt,0,Pt,1,0);break;case Fu:Gi(gt,xt,Pt,At,jt);break;case vo:ne(gt,xt,Pt,At,jt,1);break;case Ul:ne(gt,xt,Pt,At,jt,1),vs(At,jt,0,Pt,1,0);break;case _o:ne(gt,xt,Pt,At,jt,0);break;case wo:ne(gt,xt,Pt,At,jt,0),vs(At,jt,1,Pt,1,0);break;case Ml:La(gt,xt,Pt,At,jt);break;case ql:La(gt,xt,Pt,At,jt),Su(At,jt,Pt,1,0);break;case Ru:Wi(gt,xt,Pt,At,jt);break;default:n(0)}H+=V,ht+=kt}o.Ma+=D}else alert("todo:EmitRescaledRowsYUVA");n(o.Ma<=m.height)}}o.C=u,n(o.C<=o.i)}function fr(o){var u;if(0<o.ua)return 0;for(u=0;u<o.Wb;++u){var m=o.Ya[u].G,S=o.Ya[u].H;if(0<m[1][S[1]+0].g||0<m[2][S[2]+0].g||0<m[3][S[3]+0].g)return 0}return 1}function Ar(o,u,m,S,F,D){if(o.Z!=0){var z=o.qd,H=o.rd;for(n(pi[o.Z]!=null);u<m;++u)pi[o.Z](z,H,S,F,S,F,D),z=S,H=F,F+=D;o.qd=z,o.rd=H}}function dr(o,u){var m=o.l.ma,S=m.Z==0||m.Z==1?o.l.j:o.C;if(S=o.C<S?S:o.C,n(u<=o.l.o),u>S){var F=o.l.width,D=m.ca,z=m.tb+F*S,H=o.V,V=o.Ba+o.c*S,J=o.gc;n(o.ab==1),n(J[0].hc==3),Dl(J[0],S,u,H,V,D,z),Ar(m,S,u,D,z,F)}o.C=o.Ma=u}function pr(o,u,m,S,F,D,z){var H=o.$/S,V=o.$%S,J=o.m,ht=o.s,kt=m+o.$,Q=kt;F=m+S*F;var gt=m+S*D,xt=280+ht.ua,Pt=o.Pb?H:16777216,At=0<ht.ua?ht.Wa:null,jt=ht.wc,Ft=kt<gt?gn(ht,V,H):null;n(o.C<D),n(gt<=F);var Mt=!1;t:for(;;){for(;Mt||kt<gt;){var Bt=0;if(H>=Pt){var re=kt-m;n((Pt=o).Pb),Pt.wd=Pt.m,Pt.xd=re,0<Pt.s.ua&&rt(Pt.s.Wa,Pt.s.vb),Pt=H+K1}if(V&jt||(Ft=gn(ht,V,H)),n(Ft!=null),Ft.Qb&&(u[kt]=Ft.qb,Mt=!0),!Mt)if(dt(J),Ft.jc){Bt=J,re=u;var Yt=kt,be=Ft.pd[M(Bt)&ka-1];n(Ft.jc),256>be.g?(st(Bt,Bt.u+be.g),re[Yt]=be.value,Bt=0):(st(Bt,Bt.u+be.g-256),n(256<=be.value),Bt=be.value),Bt==0&&(Mt=!0)}else Bt=Ve(Ft.G[0],Ft.H[0],J);if(J.h)break;if(Mt||256>Bt){if(!Mt)if(Ft.nd)u[kt]=(Ft.qb|Bt<<8)>>>0;else{if(dt(J),Mt=Ve(Ft.G[1],Ft.H[1],J),dt(J),re=Ve(Ft.G[2],Ft.H[2],J),Yt=Ve(Ft.G[3],Ft.H[3],J),J.h)break;u[kt]=(Yt<<24|Mt<<16|Bt<<8|re)>>>0}if(Mt=!1,++kt,++V>=S&&(V=0,++H,z!=null&&H<=D&&!(H%16)&&z(o,H),At!=null))for(;Q<kt;)Bt=u[Q++],At.X[(506832829*Bt&4294967295)>>>At.Mb]=Bt}else if(280>Bt){if(Bt=rr(Bt-256,J),re=Ve(Ft.G[4],Ft.H[4],J),dt(J),re=ir(S,re=rr(re,J)),J.h)break;if(kt-m<re||F-kt<Bt)break t;for(Yt=0;Yt<Bt;++Yt)u[kt+Yt]=u[kt+Yt-re];for(kt+=Bt,V+=Bt;V>=S;)V-=S,++H,z!=null&&H<=D&&!(H%16)&&z(o,H);if(n(kt<=F),V&jt&&(Ft=gn(ht,V,H)),At!=null)for(;Q<kt;)Bt=u[Q++],At.X[(506832829*Bt&4294967295)>>>At.Mb]=Bt}else{if(!(Bt<xt))break t;for(Mt=Bt-280,n(At!=null);Q<kt;)Bt=u[Q++],At.X[(506832829*Bt&4294967295)>>>At.Mb]=Bt;Bt=kt,n(!(Mt>>>(re=At).Xa)),u[Bt]=re.X[Mt],Mt=!0}Mt||n(J.h==K(J))}if(o.Pb&&J.h&&kt<F)n(o.m.h),o.a=5,o.m=o.wd,o.$=o.xd,0<o.s.ua&&rt(o.s.vb,o.s.Wa);else{if(J.h)break t;z?.(o,H>D?D:H),o.a=0,o.$=kt-m}return 1}return o.a=3,0}function ar(o){n(o!=null),o.vc=null,o.yc=null,o.Ya=null;var u=o.Wa;u!=null&&(u.X=null),o.vb=null,n(o!=null)}function Ii(){var o=new Qt;return o==null?null:(o.a=0,o.xb=Du,pt("Predictor","VP8LPredictors"),pt("Predictor","VP8LPredictors_C"),pt("PredictorAdd","VP8LPredictorsAdd"),pt("PredictorAdd","VP8LPredictorsAdd_C"),Na=zt,Hi=ae,gs=_e,ms=Kt,La=se,Wi=ce,Gi=we,k.VP8LMapColor32b=sn,k.VP8LMapColor8b=Ir,o)}function kr(o,u,m,S,F){var D=1,z=[o],H=[u],V=S.m,J=S.s,ht=null,kt=0;t:for(;;){if(m)for(;D&&tt(V,1);){var Q=z,gt=H,xt=S,Pt=1,At=xt.m,jt=xt.gc[xt.ab],Ft=tt(At,2);if(xt.Oc&1<<Ft)D=0;else{switch(xt.Oc|=1<<Ft,jt.hc=Ft,jt.Ea=Q[0],jt.nc=gt[0],jt.K=[null],++xt.ab,n(4>=xt.ab),Ft){case 0:case 1:jt.b=tt(At,3)+2,Pt=kr(G(jt.Ea,jt.b),G(jt.nc,jt.b),0,xt,jt.K),jt.K=jt.K[0];break;case 3:var Mt,Bt=tt(At,8)+1,re=16<Bt?0:4<Bt?1:2<Bt?2:3;if(Q[0]=G(jt.Ea,re),jt.b=re,Mt=Pt=kr(Bt,1,0,xt,jt.K)){var Yt,be=Bt,te=jt,xe=1<<(8>>te.b),ln=i(xe);if(ln==null)Mt=0;else{var ve=te.K[0],ee=te.w;for(ln[0]=te.K[0][0],Yt=1;Yt<1*be;++Yt)ln[Yt]=bt(ve[ee+Yt],ln[Yt-1]);for(;Yt<4*xe;++Yt)ln[Yt]=0;te.K[0]=null,te.K[0]=ln,Mt=1}}Pt=Mt;break;case 2:break;default:n(0)}D=Pt}}if(z=z[0],H=H[0],D&&tt(V,1)&&!(D=1<=(kt=tt(V,4))&&11>=kt)){S.a=3;break t}var Wt;if(Wt=D)e:{var Je,ge,ke,ze=S,bn=z,Fn=H,Ze=kt,Sn=m,Rn=ze.m,cn=ze.s,Se=[null],Ee=1,Ke=0,Ce=Z1[Ze];n:for(;;){if(Sn&&tt(Rn,1)){var vn=tt(Rn,3)+2,br=G(bn,vn),Qe=G(Fn,vn),Bn=br*Qe;if(!kr(br,Qe,0,ze,Se))break n;for(Se=Se[0],cn.xc=vn,Je=0;Je<Bn;++Je){var Re=Se[Je]>>8&65535;Se[Je]=Re,Re>=Ee&&(Ee=Re+1)}}if(Rn.h)break n;for(ge=0;5>ge;++ge){var un=Ou[ge];!ge&&0<Ze&&(un+=1<<Ze),Ke<un&&(Ke=un)}var Gn=l(Ee*Ce,R),On=Ee,$n=l(On,X);if($n==null)var Vn=null;else n(65536>=On),Vn=$n;var Mn=i(Ke);if(Vn==null||Mn==null||Gn==null){ze.a=1;break n}var Zn=Gn;for(Je=ke=0;Je<Ee;++Je){var Be=Vn[Je],Kn=Be.G,vr=Be.H,$i=0,Xr=1,_n=0;for(ge=0;5>ge;++ge){un=Ou[ge],Kn[ge]=Zn,vr[ge]=ke,!ge&&0<Ze&&(un+=1<<Ze);i:{var ko,$l=un,So=ze,ys=Mn,g0=Zn,m0=ke,Vl=0,gi=So.m,b0=tt(gi,1);if(a(ys,0,0,$l),b0){var v0=tt(gi,1)+1,_0=tt(gi,1),$u=tt(gi,_0==0?1:8);ys[$u]=1,v0==2&&(ys[$u=tt(gi,8)]=1);var No=1}else{var Vu=i(19),Zu=tt(gi,4)+4;if(19<Zu){So.a=3;var Lo=0;break i}for(ko=0;ko<Zu;++ko)Vu[$1[ko]]=tt(gi,3);var Zl=void 0,xs=void 0,Ku=So,w0=Vu,Eo=$l,Yu=ys,Kl=0,mi=Ku.m,Xu=8,Ju=l(128,R);r:for(;y(Ju,0,7,w0,19);){if(tt(mi,1)){var y0=2+2*tt(mi,3);if((Zl=2+tt(mi,y0))>Eo)break r}else Zl=Eo;for(xs=0;xs<Eo&&Zl--;){dt(mi);var Qu=Ju[0+(127&M(mi))];st(mi,mi.u+Qu.g);var Ia=Qu.value;if(16>Ia)Yu[xs++]=Ia,Ia!=0&&(Xu=Ia);else{var x0=Ia==16,th=Ia-16,A0=W1[th],eh=tt(mi,H1[th])+A0;if(xs+eh>Eo)break r;for(var k0=x0?Xu:0;0<eh--;)Yu[xs++]=k0}}Kl=1;break r}Kl||(Ku.a=3),No=Kl}(No=No&&!gi.h)&&(Vl=y(g0,m0,8,ys,$l)),No&&Vl!=0?Lo=Vl:(So.a=3,Lo=0)}if(Lo==0)break n;if(Xr&&G1[ge]==1&&(Xr=Zn[ke].g==0),$i+=Zn[ke].g,ke+=Lo,3>=ge){var As,Yl=Mn[0];for(As=1;As<un;++As)Mn[As]>Yl&&(Yl=Mn[As]);_n+=Yl}}if(Be.nd=Xr,Be.Qb=0,Xr&&(Be.qb=(Kn[3][vr[3]+0].value<<24|Kn[1][vr[1]+0].value<<16|Kn[2][vr[2]+0].value)>>>0,$i==0&&256>Kn[0][vr[0]+0].value&&(Be.Qb=1,Be.qb+=Kn[0][vr[0]+0].value<<8)),Be.jc=!Be.Qb&&6>_n,Be.jc){var Co,Jr=Be;for(Co=0;Co<ka;++Co){var bi=Co,vi=Jr.pd[bi],Io=Jr.G[0][Jr.H[0]+bi];256<=Io.value?(vi.g=Io.g+256,vi.value=Io.value):(vi.g=0,vi.value=0,bi>>=fn(Io,8,vi),bi>>=fn(Jr.G[1][Jr.H[1]+bi],16,vi),bi>>=fn(Jr.G[2][Jr.H[2]+bi],0,vi),fn(Jr.G[3][Jr.H[3]+bi],24,vi))}}}cn.vc=Se,cn.Wb=Ee,cn.Ya=Vn,cn.yc=Gn,Wt=1;break e}Wt=0}if(!(D=Wt)){S.a=3;break t}if(0<kt){if(J.ua=1<<kt,!I(J.Wa,kt)){S.a=1,D=0;break t}}else J.ua=0;var Xl=S,nh=z,S0=H,Jl=Xl.s,Ql=Jl.xc;if(Xl.c=nh,Xl.i=S0,Jl.md=G(nh,Ql),Jl.wc=Ql==0?-1:(1<<Ql)-1,m){S.xb=n0;break t}if((ht=i(z*H))==null){S.a=1,D=0;break t}D=(D=pr(S,ht,0,z,H,H,null))&&!V.h;break t}return D?(F!=null?F[0]=ht:(n(ht==null),n(m)),S.$=0,m||ar(J)):ar(J),D}function Pi(o,u){var m=o.c*o.i,S=m+u+16*u;return n(o.c<=u),o.V=i(S),o.V==null?(o.Ta=null,o.Ua=0,o.a=1,0):(o.Ta=o.V,o.Ua=o.Ba+m+u,1)}function ca(o,u){var m=o.C,S=u-m,F=o.V,D=o.Ba+o.c*m;for(n(u<=o.l.o);0<S;){var z=16<S?16:S,H=o.l.ma,V=o.l.width,J=V*z,ht=H.ca,kt=H.tb+V*m,Q=o.Ta,gt=o.Ua;Ci(o,z,F,D),Lu(Q,gt,ht,kt,J),Ar(H,m,m+z,ht,kt,V),S-=z,F+=z*o.c,m+=z}n(m==u),o.C=o.Ma=u}function ua(){this.ub=this.yd=this.td=this.Rb=0}function ha(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function _l(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function es(){this.Yb=function(){var o=[];return function u(m,S,F){for(var D=F[S],z=0;z<D&&(m.push(F.length>S+1?[]:0),!(F.length<S+1));z++)u(m[z],S+1,F)}(o,0,[3,11]),o}()}function Ys(){this.jb=i(3),this.Wc=s([4,8],es),this.Xc=s([4,17],es)}function Xs(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function sr(){this.ld=this.La=this.dd=this.tc=0}function ns(){this.Na=this.la=0}function Js(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function rs(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Qs(){this.uc=this.M=this.Nb=0,this.wa=Array(new sr),this.Y=0,this.ya=Array(new rs),this.aa=0,this.l=new fa}function to(){this.y=i(16),this.f=i(8),this.ea=i(8)}function eo(){this.cb=this.a=0,this.sc="",this.m=new A,this.Od=new ua,this.Kc=new ha,this.ed=new Xs,this.Qa=new _l,this.Ic=this.$c=this.Aa=0,this.D=new Qs,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=l(8,A),this.ia=0,this.pb=l(4,Js),this.Pa=new Ys,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new to),this.Hd=0,this.rb=Array(new ns),this.sb=0,this.wa=Array(new sr),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 rs),this.L=this.aa=0,this.gd=s([4,2],sr),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 Sr(o,u){return 0>o?0:o>u?u:o}function fa(){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 wl(){var o=new eo;return o!=null&&(o.a=0,o.sc="OK",o.cb=0,o.Xb=0,_s||(_s=da)),o}function rn(o,u,m){return o.a==0&&(o.a=u,o.sc=m,o.cb=0),0}function no(o,u,m){return 3<=m&&o[u+0]==157&&o[u+1]==1&&o[u+2]==42}function Nr(o,u){if(o==null)return 0;if(o.a=0,o.sc="OK",u==null)return rn(o,2,"null VP8Io passed to VP8GetHeaders()");var m=u.data,S=u.w,F=u.ha;if(4>F)return rn(o,7,"Truncated header.");var D=m[S+0]|m[S+1]<<8|m[S+2]<<16,z=o.Od;if(z.Rb=!(1&D),z.td=D>>1&7,z.yd=D>>4&1,z.ub=D>>5,3<z.td)return rn(o,3,"Incorrect keyframe parameters.");if(!z.yd)return rn(o,4,"Frame not displayable.");S+=3,F-=3;var H=o.Kc;if(z.Rb){if(7>F)return rn(o,7,"cannot parse picture header");if(!no(m,S,F))return rn(o,3,"Bad code word");H.c=16383&(m[S+4]<<8|m[S+3]),H.Td=m[S+4]>>6,H.i=16383&(m[S+6]<<8|m[S+5]),H.Ud=m[S+6]>>6,S+=7,F-=7,o.za=H.c+15>>4,o.Ub=H.i+15>>4,u.width=H.c,u.height=H.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,a((D=o.Pa).jb,0,255,D.jb.length),n((D=o.Qa)!=null),D.Cb=0,D.Bb=0,D.Fb=1,a(D.Zb,0,0,D.Zb.length),a(D.Lb,0,0,D.Lb)}if(z.ub>F)return rn(o,7,"bad partition length");ft(D=o.m,m,S,z.ub),S+=z.ub,F-=z.ub,z.Rb&&(H.Ld=ut(D),H.Kd=ut(D)),H=o.Qa;var V,J=o.Pa;if(n(D!=null),n(H!=null),H.Cb=ut(D),H.Cb){if(H.Bb=ut(D),ut(D)){for(H.Fb=ut(D),V=0;4>V;++V)H.Zb[V]=ut(D)?nt(D,7):0;for(V=0;4>V;++V)H.Lb[V]=ut(D)?nt(D,6):0}if(H.Bb)for(V=0;3>V;++V)J.jb[V]=ut(D)?at(D,8):255}else H.Bb=0;if(D.Ka)return rn(o,3,"cannot parse segment header");if((H=o.ed).zd=ut(D),H.Tb=at(D,6),H.wb=at(D,3),H.Pc=ut(D),H.Pc&&ut(D)){for(J=0;4>J;++J)ut(D)&&(H.vd[J]=nt(D,6));for(J=0;4>J;++J)ut(D)&&(H.od[J]=nt(D,6))}if(o.L=H.Tb==0?0:H.zd?1:2,D.Ka)return rn(o,3,"cannot parse filter header");var ht=F;if(F=V=S,S=V+ht,H=ht,o.Xb=(1<<at(o.m,2))-1,ht<3*(J=o.Xb))m=7;else{for(V+=3*J,H-=3*J,ht=0;ht<J;++ht){var kt=m[F+0]|m[F+1]<<8|m[F+2]<<16;kt>H&&(kt=H),ft(o.Jc[+ht],m,V,kt),V+=kt,H-=kt,F+=3}ft(o.Jc[+J],m,V,H),m=V<S?0:5}if(m!=0)return rn(o,m,"cannot parse partitions");for(m=at(V=o.m,7),F=ut(V)?nt(V,4):0,S=ut(V)?nt(V,4):0,H=ut(V)?nt(V,4):0,J=ut(V)?nt(V,4):0,V=ut(V)?nt(V,4):0,ht=o.Qa,kt=0;4>kt;++kt){if(ht.Cb){var Q=ht.Zb[kt];ht.Fb||(Q+=m)}else{if(0<kt){o.pb[kt]=o.pb[0];continue}Q=m}var gt=o.pb[kt];gt.Sc[0]=Hl[Sr(Q+F,127)],gt.Sc[1]=Wl[Sr(Q+0,127)],gt.Eb[0]=2*Hl[Sr(Q+S,127)],gt.Eb[1]=101581*Wl[Sr(Q+H,127)]>>16,8>gt.Eb[1]&&(gt.Eb[1]=8),gt.Qc[0]=Hl[Sr(Q+J,117)],gt.Qc[1]=Wl[Sr(Q+V,127)],gt.lc=Q+V}if(!z.Rb)return rn(o,4,"Not a key frame.");for(ut(D),z=o.Pa,m=0;4>m;++m){for(F=0;8>F;++F)for(S=0;3>S;++S)for(H=0;11>H;++H)J=yt(D,t0[m][F][S][H])?at(D,8):J1[m][F][S][H],z.Wc[m][F].Yb[S][H]=J;for(F=0;17>F;++F)z.Xc[m][F]=z.Wc[m][e0[F]]}return o.kc=ut(D),o.kc&&(o.Bd=at(D,8)),o.cb=1}function da(o,u,m,S,F,D,z){var H=u[F].Yb[m];for(m=0;16>F;++F){if(!yt(o,H[m+0]))return F;for(;!yt(o,H[m+1]);)if(H=u[++F].Yb[0],m=0,F==16)return 16;var V=u[F+1].Yb;if(yt(o,H[m+2])){var J=o,ht=0;if(yt(J,(Q=H)[(kt=m)+3]))if(yt(J,Q[kt+6])){for(H=0,kt=2*(ht=yt(J,Q[kt+8]))+(Q=yt(J,Q[kt+9+ht])),ht=0,Q=Y1[kt];Q[H];++H)ht+=ht+yt(J,Q[H]);ht+=3+(8<<kt)}else yt(J,Q[kt+7])?(ht=7+2*yt(J,165),ht+=yt(J,145)):ht=5+yt(J,159);else ht=yt(J,Q[kt+4])?3+yt(J,Q[kt+5]):2;H=V[2]}else ht=1,H=V[1];V=z+X1[F],0>(J=o).b&&vt(J);var kt,Q=J.b,gt=(kt=J.Ca>>1)-(J.I>>Q)>>31;--J.b,J.Ca+=gt,J.Ca|=1,J.I-=(kt+1>)<<Q,D[V]=((ht^gt)-gt)*S[(0<F)+0]}return 16}function is(o){var u=o.rb[o.sb-1];u.la=0,u.Na=0,a(o.zc,0,0,o.zc.length),o.ja=0}function Hn(o,u,m,S,F){F=o[u+m+32*S]+(F>>3),o[u+m+32*S]=-256&F?0>F?0:255:F}function pa(o,u,m,S,F,D){Hn(o,u,0,m,S+F),Hn(o,u,1,m,S+D),Hn(o,u,2,m,S-D),Hn(o,u,3,m,S-F)}function qr(o){return(20091*o>>16)+o}function mn(o,u,m,S){var F,D=0,z=i(16);for(F=0;4>F;++F){var H=o[u+0]+o[u+8],V=o[u+0]-o[u+8],J=(35468*o[u+4]>>16)-qr(o[u+12]),ht=qr(o[u+4])+(35468*o[u+12]>>16);z[D+0]=H+ht,z[D+1]=V+J,z[D+2]=V-J,z[D+3]=H-ht,D+=4,u++}for(F=D=0;4>F;++F)H=(o=z[D+0]+4)+z[D+8],V=o-z[D+8],J=(35468*z[D+4]>>16)-qr(z[D+12]),Hn(m,S,0,0,H+(ht=qr(z[D+4])+(35468*z[D+12]>>16))),Hn(m,S,1,0,V+J),Hn(m,S,2,0,V-J),Hn(m,S,3,0,H-ht),D++,S+=32}function ro(o,u,m,S){var F=o[u+0]+4,D=35468*o[u+4]>>16,z=qr(o[u+4]),H=35468*o[u+1]>>16;pa(m,S,0,F+z,o=qr(o[u+1]),H),pa(m,S,1,F+D,o,H),pa(m,S,2,F-D,o,H),pa(m,S,3,F-z,o,H)}function yl(o,u,m,S,F){mn(o,u,m,S),F&&mn(o,u+16,m,S+4)}function xl(o,u,m,S){Zr(o,u+0,m,S,1),Zr(o,u+32,m,S+128,1)}function Al(o,u,m,S){var F;for(o=o[u+0]+4,F=0;4>F;++F)for(u=0;4>u;++u)Hn(m,S,u,F,o)}function Lr(o,u,m,S){o[u+0]&&kn(o,u+0,m,S),o[u+16]&&kn(o,u+16,m,S+4),o[u+32]&&kn(o,u+32,m,S+128),o[u+48]&&kn(o,u+48,m,S+128+4)}function io(o,u,m,S){var F,D=i(16);for(F=0;4>F;++F){var z=o[u+0+F]+o[u+12+F],H=o[u+4+F]+o[u+8+F],V=o[u+4+F]-o[u+8+F],J=o[u+0+F]-o[u+12+F];D[0+F]=z+H,D[8+F]=z-H,D[4+F]=J+V,D[12+F]=J-V}for(F=0;4>F;++F)z=(o=D[0+4*F]+3)+D[3+4*F],H=D[1+4*F]+D[2+4*F],V=D[1+4*F]-D[2+4*F],J=o-D[3+4*F],m[S+0]=z+H>>3,m[S+16]=J+V>>3,m[S+32]=z-H>>3,m[S+48]=J-V>>3,S+=64}function ga(o,u,m){var S,F=u-32,D=Wn,z=255-o[F-1];for(S=0;S<m;++S){var H,V=D,J=z+o[u-1];for(H=0;H<m;++H)o[u+H]=V[J+o[F+H]];u+=32}}function ma(o,u){ga(o,u,4)}function as(o,u){ga(o,u,8)}function kl(o,u){ga(o,u,16)}function Sl(o,u){var m;for(m=0;16>m;++m)r(o,u+32*m,o,u-32,16)}function Nl(o,u){var m;for(m=16;0<m;--m)a(o,u,o[u-1],16),u+=32}function ai(o,u,m){var S;for(S=0;16>S;++S)a(u,m+32*S,o,16)}function ao(o,u){var m,S=16;for(m=0;16>m;++m)S+=o[u-1+32*m]+o[u+m-32];ai(S>>5,o,u)}function si(o,u){var m,S=8;for(m=0;16>m;++m)S+=o[u-1+32*m];ai(S>>4,o,u)}function Ll(o,u){var m,S=8;for(m=0;16>m;++m)S+=o[u+m-32];ai(S>>4,o,u)}function ji(o,u){ai(128,o,u)}function ue(o,u,m){return o+2*u+m+2>>2}function El(o,u){var m,S=u-32;for(S=new Uint8Array([ue(o[S-1],o[S+0],o[S+1]),ue(o[S+0],o[S+1],o[S+2]),ue(o[S+1],o[S+2],o[S+3]),ue(o[S+2],o[S+3],o[S+4])]),m=0;4>m;++m)r(o,u+32*m,S,0,S.length)}function Cl(o,u){var m=o[u-1],S=o[u-1+32],F=o[u-1+64],D=o[u-1+96];Lt(o,u+0,16843009*ue(o[u-1-32],m,S)),Lt(o,u+32,16843009*ue(m,S,F)),Lt(o,u+64,16843009*ue(S,F,D)),Lt(o,u+96,16843009*ue(F,D,D))}function Il(o,u){var m,S=4;for(m=0;4>m;++m)S+=o[u+m-32]+o[u-1+32*m];for(S>>=3,m=0;4>m;++m)a(o,u+32*m,S,4)}function Pl(o,u){var m=o[u-1+0],S=o[u-1+32],F=o[u-1+64],D=o[u-1-32],z=o[u+0-32],H=o[u+1-32],V=o[u+2-32],J=o[u+3-32];o[u+0+96]=ue(S,F,o[u-1+96]),o[u+1+96]=o[u+0+64]=ue(m,S,F),o[u+2+96]=o[u+1+64]=o[u+0+32]=ue(D,m,S),o[u+3+96]=o[u+2+64]=o[u+1+32]=o[u+0+0]=ue(z,D,m),o[u+3+64]=o[u+2+32]=o[u+1+0]=ue(H,z,D),o[u+3+32]=o[u+2+0]=ue(V,H,z),o[u+3+0]=ue(J,V,H)}function jl(o,u){var m=o[u+1-32],S=o[u+2-32],F=o[u+3-32],D=o[u+4-32],z=o[u+5-32],H=o[u+6-32],V=o[u+7-32];o[u+0+0]=ue(o[u+0-32],m,S),o[u+1+0]=o[u+0+32]=ue(m,S,F),o[u+2+0]=o[u+1+32]=o[u+0+64]=ue(S,F,D),o[u+3+0]=o[u+2+32]=o[u+1+64]=o[u+0+96]=ue(F,D,z),o[u+3+32]=o[u+2+64]=o[u+1+96]=ue(D,z,H),o[u+3+64]=o[u+2+96]=ue(z,H,V),o[u+3+96]=ue(H,V,V)}function Hr(o,u){var m=o[u-1+0],S=o[u-1+32],F=o[u-1+64],D=o[u-1-32],z=o[u+0-32],H=o[u+1-32],V=o[u+2-32],J=o[u+3-32];o[u+0+0]=o[u+1+64]=D+z+1>>1,o[u+1+0]=o[u+2+64]=z+H+1>>1,o[u+2+0]=o[u+3+64]=H+V+1>>1,o[u+3+0]=V+J+1>>1,o[u+0+96]=ue(F,S,m),o[u+0+64]=ue(S,m,D),o[u+0+32]=o[u+1+96]=ue(m,D,z),o[u+1+32]=o[u+2+96]=ue(D,z,H),o[u+2+32]=o[u+3+96]=ue(z,H,V),o[u+3+32]=ue(H,V,J)}function Wr(o,u){var m=o[u+0-32],S=o[u+1-32],F=o[u+2-32],D=o[u+3-32],z=o[u+4-32],H=o[u+5-32],V=o[u+6-32],J=o[u+7-32];o[u+0+0]=m+S+1>>1,o[u+1+0]=o[u+0+64]=S+F+1>>1,o[u+2+0]=o[u+1+64]=F+D+1>>1,o[u+3+0]=o[u+2+64]=D+z+1>>1,o[u+0+32]=ue(m,S,F),o[u+1+32]=o[u+0+96]=ue(S,F,D),o[u+2+32]=o[u+1+96]=ue(F,D,z),o[u+3+32]=o[u+2+96]=ue(D,z,H),o[u+3+64]=ue(z,H,V),o[u+3+96]=ue(H,V,J)}function Fl(o,u){var m=o[u-1+0],S=o[u-1+32],F=o[u-1+64],D=o[u-1+96];o[u+0+0]=m+S+1>>1,o[u+2+0]=o[u+0+32]=S+F+1>>1,o[u+2+32]=o[u+0+64]=F+D+1>>1,o[u+1+0]=ue(m,S,F),o[u+3+0]=o[u+1+32]=ue(S,F,D),o[u+3+32]=o[u+1+64]=ue(F,D,D),o[u+3+64]=o[u+2+64]=o[u+0+96]=o[u+1+96]=o[u+2+96]=o[u+3+96]=D}function Rl(o,u){var m=o[u-1+0],S=o[u-1+32],F=o[u-1+64],D=o[u-1+96],z=o[u-1-32],H=o[u+0-32],V=o[u+1-32],J=o[u+2-32];o[u+0+0]=o[u+2+32]=m+z+1>>1,o[u+0+32]=o[u+2+64]=S+m+1>>1,o[u+0+64]=o[u+2+96]=F+S+1>>1,o[u+0+96]=D+F+1>>1,o[u+3+0]=ue(H,V,J),o[u+2+0]=ue(z,H,V),o[u+1+0]=o[u+3+32]=ue(m,z,H),o[u+1+32]=o[u+3+64]=ue(S,m,z),o[u+1+64]=o[u+3+96]=ue(F,S,m),o[u+1+96]=ue(D,F,S)}function ba(o,u){var m;for(m=0;8>m;++m)r(o,u+32*m,o,u-32,8)}function ss(o,u){var m;for(m=0;8>m;++m)a(o,u,o[u-1],8),u+=32}function Er(o,u,m){var S;for(S=0;8>S;++S)a(u,m+32*S,o,8)}function Ol(o,u){var m,S=8;for(m=0;8>m;++m)S+=o[u+m-32]+o[u-1+32*m];Er(S>>4,o,u)}function va(o,u){var m,S=4;for(m=0;8>m;++m)S+=o[u+m-32];Er(S>>3,o,u)}function Tl(o,u){var m,S=4;for(m=0;8>m;++m)S+=o[u-1+32*m];Er(S>>3,o,u)}function os(o,u){Er(128,o,u)}function oi(o,u,m){var S=o[u-m],F=o[u+0],D=3*(F-S)+Bl[1020+o[u-2*m]-o[u+m]],z=go[112+(D+4>>3)];o[u-m]=Wn[255+S+go[112+(D+3>>3)]],o[u+0]=Wn[255+F-z]}function ls(o,u,m,S){var F=o[u+0],D=o[u+m];return lr[255+o[u-2*m]-o[u-m]]>S||lr[255+D-F]>S}function Fi(o,u,m,S){return 4*lr[255+o[u-m]-o[u+0]]+lr[255+o[u-2*m]-o[u+m]]<=S}function cs(o,u,m,S,F){var D=o[u-3*m],z=o[u-2*m],H=o[u-m],V=o[u+0],J=o[u+m],ht=o[u+2*m],kt=o[u+3*m];return 4*lr[255+H-V]+lr[255+z-J]>S?0:lr[255+o[u-4*m]-D]<=F&&lr[255+D-z]<=F&&lr[255+z-H]<=F&&lr[255+kt-ht]<=F&&lr[255+ht-J]<=F&&lr[255+J-V]<=F}function _a(o,u,m,S){var F=2*S+1;for(S=0;16>S;++S)Fi(o,u+S,m,F)&&oi(o,u+S,m)}function us(o,u,m,S){var F=2*S+1;for(S=0;16>S;++S)Fi(o,u+S*m,1,F)&&oi(o,u+S*m,1)}function wa(o,u,m,S){var F;for(F=3;0<F;--F)_a(o,u+=4*m,m,S)}function so(o,u,m,S){var F;for(F=3;0<F;--F)us(o,u+=4,m,S)}function Gr(o,u,m,S,F,D,z,H){for(D=2*D+1;0<F--;){if(cs(o,u,m,D,z))if(ls(o,u,m,H))oi(o,u,m);else{var V=o,J=u,ht=m,kt=V[J-2*ht],Q=V[J-ht],gt=V[J+0],xt=V[J+ht],Pt=V[J+2*ht],At=27*(Ft=Bl[1020+3*(gt-Q)+Bl[1020+kt-xt]])+63>>7,jt=18*Ft+63>>7,Ft=9*Ft+63>>7;V[J-3*ht]=Wn[255+V[J-3*ht]+Ft],V[J-2*ht]=Wn[255+kt+jt],V[J-ht]=Wn[255+Q+At],V[J+0]=Wn[255+gt-At],V[J+ht]=Wn[255+xt-jt],V[J+2*ht]=Wn[255+Pt-Ft]}u+=S}}function $r(o,u,m,S,F,D,z,H){for(D=2*D+1;0<F--;){if(cs(o,u,m,D,z))if(ls(o,u,m,H))oi(o,u,m);else{var V=o,J=u,ht=m,kt=V[J-ht],Q=V[J+0],gt=V[J+ht],xt=go[112+(4+(Pt=3*(Q-kt))>>3)],Pt=go[112+(Pt+3>>3)],At=xt+1>>1;V[J-2*ht]=Wn[255+V[J-2*ht]+At],V[J-ht]=Wn[255+kt+Pt],V[J+0]=Wn[255+Q-xt],V[J+ht]=Wn[255+gt-At]}u+=S}}function oo(o,u,m,S,F,D){Gr(o,u,m,1,16,S,F,D)}function lo(o,u,m,S,F,D){Gr(o,u,1,m,16,S,F,D)}function co(o,u,m,S,F,D){var z;for(z=3;0<z;--z)$r(o,u+=4*m,m,1,16,S,F,D)}function Ri(o,u,m,S,F,D){var z;for(z=3;0<z;--z)$r(o,u+=4,1,m,16,S,F,D)}function uo(o,u,m,S,F,D,z,H){Gr(o,u,F,1,8,D,z,H),Gr(m,S,F,1,8,D,z,H)}function p(o,u,m,S,F,D,z,H){Gr(o,u,1,F,8,D,z,H),Gr(m,S,1,F,8,D,z,H)}function P(o,u,m,S,F,D,z,H){$r(o,u+4*F,F,1,8,D,z,H),$r(m,S+4*F,F,1,8,D,z,H)}function Y(o,u,m,S,F,D,z,H){$r(o,u+4,1,F,8,D,z,H),$r(m,S+4,1,F,8,D,z,H)}function lt(){this.ba=new $t,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ye,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function _t(){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 It(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Tt(){this.ua=0,this.Wa=new W,this.vb=new W,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new X,this.yc=new R}function Qt(){this.xb=this.a=0,this.l=new fa,this.ca=new $t,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Tt,this.ab=0,this.gc=l(4,It),this.Oc=0}function Jt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new fa,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function fe(o,u,m,S,F,D,z){for(o=o==null?0:o[u+0],u=0;u<z;++u)F[D+u]=o+m[S+u]&255,o=F[D+u]}function pe(o,u,m,S,F,D,z){var H;if(o==null)fe(null,null,m,S,F,D,z);else for(H=0;H<z;++H)F[D+H]=o[u+H]+m[S+H]&255}function Ae(o,u,m,S,F,D,z){if(o==null)fe(null,null,m,S,F,D,z);else{var H,V=o[u+0],J=V,ht=V;for(H=0;H<z;++H)J=ht+(V=o[u+H])-J,ht=m[S+H]+(-256&J?0>J?0:255:J)&255,J=V,F[D+H]=ht}}function an(o,u,m,S){var F=u.width,D=u.o;if(n(o!=null&&u!=null),0>m||0>=S||m+S>D)return null;if(!o.Cc){if(o.ga==null){var z;if(o.ga=new Jt,(z=o.ga==null)||(z=u.width*u.o,n(o.Gb.length==0),o.Gb=i(z),o.Uc=0,o.Gb==null?z=0:(o.mb=o.Gb,o.nb=o.Uc,o.rc=null,z=1),z=!z),!z){z=o.ga;var H=o.Fa,V=o.P,J=o.qc,ht=o.mb,kt=o.nb,Q=V+1,gt=J-1,xt=z.l;if(n(H!=null&&ht!=null&&u!=null),pi[0]=null,pi[1]=fe,pi[2]=pe,pi[3]=Ae,z.ca=ht,z.tb=kt,z.c=u.width,z.i=u.height,n(0<z.c&&0<z.i),1>=J)u=0;else if(z.$a=3&H[V+0],z.Z=H[V+0]>>2&3,z.Lc=H[V+0]>>4&3,V=H[V+0]>>6&3,0>z.$a||1<z.$a||4<=z.Z||1<z.Lc||V)u=0;else if(xt.put=le,xt.ac=nr,xt.bc=zr,xt.ma=z,xt.width=u.width,xt.height=u.height,xt.Da=u.Da,xt.v=u.v,xt.va=u.va,xt.j=u.j,xt.o=u.o,z.$a)t:{n(z.$a==1),u=Ii();e:for(;;){if(u==null){u=0;break t}if(n(z!=null),z.mc=u,u.c=z.c,u.i=z.i,u.l=z.l,u.l.ma=z,u.l.width=z.c,u.l.height=z.i,u.a=0,it(u.m,H,Q,gt),!kr(z.c,z.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&fr(u.s)?(z.ic=1,H=u.c*u.i,u.Ta=null,u.Ua=0,u.V=i(H),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(z.ic=0,u=Pi(u,z.c)),!u))break e;u=1;break t}z.mc=null,u=0}else u=gt>=z.c*z.i;z=!u}if(z)return null;o.ga.Lc!=1?o.Ga=0:S=D-m}n(o.ga!=null),n(m+S<=D);t:{if(u=(H=o.ga).c,D=H.l.o,H.$a==0){if(Q=o.rc,gt=o.Vc,xt=o.Fa,V=o.P+1+m*u,J=o.mb,ht=o.nb+m*u,n(V<=o.P+o.qc),H.Z!=0)for(n(pi[H.Z]!=null),z=0;z<S;++z)pi[H.Z](Q,gt,xt,V,J,ht,u),Q=J,gt=ht,ht+=u,V+=u;else for(z=0;z<S;++z)r(J,ht,xt,V,u),Q=J,gt=ht,ht+=u,V+=u;o.rc=Q,o.Vc=gt}else{if(n(H.mc!=null),u=m+S,n((z=H.mc)!=null),n(u<=z.i),z.C>=u)u=1;else if(H.ic||$e(),H.ic){H=z.V,Q=z.Ba,gt=z.c;var Pt=z.i,At=(xt=1,V=z.$/gt,J=z.$%gt,ht=z.m,kt=z.s,z.$),jt=gt*Pt,Ft=gt*u,Mt=kt.wc,Bt=At<Ft?gn(kt,J,V):null;n(At<=jt),n(u<=Pt),n(fr(kt));e:for(;;){for(;!ht.h&&At<Ft;){if(J&Mt||(Bt=gn(kt,J,V)),n(Bt!=null),dt(ht),256>(Pt=Ve(Bt.G[0],Bt.H[0],ht)))H[Q+At]=Pt,++At,++J>=gt&&(J=0,++V<=u&&!(V%16)&&dr(z,V));else{if(!(280>Pt)){xt=0;break e}Pt=rr(Pt-256,ht);var re,Yt=Ve(Bt.G[4],Bt.H[4],ht);if(dt(ht),!(At>=(Yt=ir(gt,Yt=rr(Yt,ht)))&&jt-At>=Pt)){xt=0;break e}for(re=0;re<Pt;++re)H[Q+At+re]=H[Q+At+re-Yt];for(At+=Pt,J+=Pt;J>=gt;)J-=gt,++V<=u&&!(V%16)&&dr(z,V);At<Ft&&J&Mt&&(Bt=gn(kt,J,V))}n(ht.h==K(ht))}dr(z,V>u?u:V);break e}!xt||ht.h&&At<jt?(xt=0,z.a=ht.h?5:3):z.$=At,u=xt}else u=pr(z,z.V,z.Ba,z.c,z.i,u,ca);if(!u){S=0;break t}}m+S>=D&&(o.Cc=1),S=1}if(!S)return null;if(o.Cc&&((S=o.ga)!=null&&(S.mc=null),o.ga=null,0<o.Ga))return alert("todo:WebPDequantizeLevels"),null}return o.nb+m*F}function Fe(o,u,m,S,F,D){for(;0<F--;){var z,H=o,V=u+(m?1:0),J=o,ht=u+(m?0:3);for(z=0;z<S;++z){var kt=J[ht+4*z];kt!=255&&(kt*=32897,H[V+4*z+0]=H[V+4*z+0]*kt>>23,H[V+4*z+1]=H[V+4*z+1]*kt>>23,H[V+4*z+2]=H[V+4*z+2]*kt>>23)}u+=D}}function je(o,u,m,S,F){for(;0<S--;){var D;for(D=0;D<m;++D){var z=o[u+2*D+0],H=15&(J=o[u+2*D+1]),V=4369*H,J=(240&J|J>>4)*V>>16;o[u+2*D+0]=(240&z|z>>4)*V>>16&240|(15&z|z<<4)*V>>16>>4&15,o[u+2*D+1]=240&J|H}u+=F}}function Me(o,u,m,S,F,D,z,H){var V,J,ht=255;for(J=0;J<F;++J){for(V=0;V<S;++V){var kt=o[u+V];D[z+4*V]=kt,ht&=kt}u+=m,z+=H}return ht!=255}function Ge(o,u,m,S,F){var D;for(D=0;D<F;++D)m[S+D]=o[u+D]>>8}function $e(){vs=Fe,Su=je,Nu=Me,Lu=Ge}function xn(o,u,m){k[o]=function(S,F,D,z,H,V,J,ht,kt,Q,gt,xt,Pt,At,jt,Ft,Mt){var Bt,re=Mt-1>>1,Yt=H[V+0]|J[ht+0]<<16,be=kt[Q+0]|gt[xt+0]<<16;n(S!=null);var te=3*Yt+be+131074>>2;for(u(S[F+0],255&te,te>>16,Pt,At),D!=null&&(te=3*be+Yt+131074>>2,u(D[z+0],255&te,te>>16,jt,Ft)),Bt=1;Bt<=re;++Bt){var xe=H[V+Bt]|J[ht+Bt]<<16,ln=kt[Q+Bt]|gt[xt+Bt]<<16,ve=Yt+xe+be+ln+524296,ee=ve+2*(xe+be)>>3;te=ee+Yt>>1,Yt=(ve=ve+2*(Yt+ln)>>3)+xe>>1,u(S[F+2*Bt-1],255&te,te>>16,Pt,At+(2*Bt-1)*m),u(S[F+2*Bt-0],255&Yt,Yt>>16,Pt,At+(2*Bt-0)*m),D!=null&&(te=ve+be>>1,Yt=ee+ln>>1,u(D[z+2*Bt-1],255&te,te>>16,jt,Ft+(2*Bt-1)*m),u(D[z+2*Bt+0],255&Yt,Yt>>16,jt,Ft+(2*Bt+0)*m)),Yt=xe,be=ln}1&Mt||(te=3*Yt+be+131074>>2,u(S[F+Mt-1],255&te,te>>16,Pt,At+(Mt-1)*m),D!=null&&(te=3*be+Yt+131074>>2,u(D[z+Mt-1],255&te,te>>16,jt,Ft+(Mt-1)*m)))}}function Vr(){cr[mo]=r0,cr[bo]=Bu,cr[Fu]=i0,cr[vo]=Mu,cr[_o]=zu,cr[Ml]=Uu,cr[Ru]=a0,cr[zl]=Bu,cr[Ul]=Mu,cr[wo]=zu,cr[ql]=Uu}function hs(o){return o&~s0?0>o?0:255:o>>qu}function Oi(o,u){return hs((19077*o>>8)+(26149*u>>8)-14234)}function Ti(o,u,m){return hs((19077*o>>8)-(6419*u>>8)-(13320*m>>8)+8708)}function li(o,u){return hs((19077*o>>8)+(33050*u>>8)-17685)}function Di(o,u,m,S,F){S[F+0]=Oi(o,m),S[F+1]=Ti(o,u,m),S[F+2]=li(o,u)}function ya(o,u,m,S,F){S[F+0]=li(o,u),S[F+1]=Ti(o,u,m),S[F+2]=Oi(o,m)}function xa(o,u,m,S,F){var D=Ti(o,u,m);u=D<<3&224|li(o,u)>>3,S[F+0]=248&Oi(o,m)|D>>5,S[F+1]=u}function An(o,u,m,S,F){var D=240&li(o,u)|15;S[F+0]=240&Oi(o,m)|Ti(o,u,m)>>4,S[F+1]=D}function Bi(o,u,m,S,F){S[F+0]=255,Di(o,u,m,S,F+1)}function Mi(o,u,m,S,F){ya(o,u,m,S,F),S[F+3]=255}function fs(o,u,m,S,F){Di(o,u,m,S,F),S[F+3]=255}function Cr(o,u,m){k[o]=function(S,F,D,z,H,V,J,ht,kt){for(var Q=ht+(-2&kt)*m;ht!=Q;)u(S[F+0],D[z+0],H[V+0],J,ht),u(S[F+1],D[z+0],H[V+0],J,ht+m),F+=2,++z,++V,ht+=2*m;1&kt&&u(S[F+0],D[z+0],H[V+0],J,ht)}}function Pn(o,u,m){return m==0?o==0?u==0?6:5:u==0?4:0:m}function ho(o,u,m,S,F){switch(o>>>30){case 3:Zr(u,m,S,F,0);break;case 2:fi(u,m,S,F);break;case 1:kn(u,m,S,F)}}function Aa(o,u){var m,S,F=u.M,D=u.Nb,z=o.oc,H=o.pc+40,V=o.oc,J=o.pc+584,ht=o.oc,kt=o.pc+600;for(m=0;16>m;++m)z[H+32*m-1]=129;for(m=0;8>m;++m)V[J+32*m-1]=129,ht[kt+32*m-1]=129;for(0<F?z[H-1-32]=V[J-1-32]=ht[kt-1-32]=129:(a(z,H-32-1,127,21),a(V,J-32-1,127,9),a(ht,kt-32-1,127,9)),S=0;S<o.za;++S){var Q=u.ya[u.aa+S];if(0<S){for(m=-1;16>m;++m)r(z,H+32*m-4,z,H+32*m+12,4);for(m=-1;8>m;++m)r(V,J+32*m-4,V,J+32*m+4,4),r(ht,kt+32*m-4,ht,kt+32*m+4,4)}var gt=o.Gd,xt=o.Hd+S,Pt=Q.ad,At=Q.Hc;if(0<F&&(r(z,H-32,gt[xt].y,0,16),r(V,J-32,gt[xt].f,0,8),r(ht,kt-32,gt[xt].ea,0,8)),Q.Za){var jt=z,Ft=H-32+16;for(0<F&&(S>=o.za-1?a(jt,Ft,gt[xt].y[15],4):r(jt,Ft,gt[xt+1].y,0,4)),m=0;4>m;m++)jt[Ft+128+m]=jt[Ft+256+m]=jt[Ft+384+m]=jt[Ft+0+m];for(m=0;16>m;++m,At<<=2)jt=z,Ft=H+Wu[m],mr[Q.Ob[m]](jt,Ft),ho(At,Pt,16*+m,jt,Ft)}else if(jt=Pn(S,F,Q.Ob[0]),di[jt](z,H),At!=0)for(m=0;16>m;++m,At<<=2)ho(At,Pt,16*+m,z,H+Wu[m]);for(m=Q.Gc,jt=Pn(S,F,Q.Dd),Yr[jt](V,J),Yr[jt](ht,kt),At=Pt,jt=V,Ft=J,255&(Q=0|m)&&(170&Q?Ea(At,256,jt,Ft):Pr(At,256,jt,Ft)),Q=ht,At=kt,255&(m>>=8)&&(170&m?Ea(Pt,320,Q,At):Pr(Pt,320,Q,At)),F<o.Ub-1&&(r(gt[xt].y,0,z,H+480,16),r(gt[xt].f,0,V,J+224,8),r(gt[xt].ea,0,ht,kt+224,8)),m=8*D*o.B,gt=o.sa,xt=o.ta+16*S+16*D*o.R,Pt=o.qa,Q=o.ra+8*S+m,At=o.Ha,jt=o.Ia+8*S+m,m=0;16>m;++m)r(gt,xt+m*o.R,z,H+32*m,16);for(m=0;8>m;++m)r(Pt,Q+m*o.B,V,J+32*m,8),r(At,jt+m*o.B,ht,kt+32*m,8)}}function fo(o,u,m,S,F,D,z,H,V){var J=[0],ht=[0],kt=0,Q=V!=null?V.kd:0,gt=V??new _t;if(o==null||12>m)return 7;gt.data=o,gt.w=u,gt.ha=m,u=[u],m=[m],gt.gb=[gt.gb];t:{var xt=u,Pt=m,At=gt.gb;if(n(o!=null),n(Pt!=null),n(At!=null),At[0]=0,12<=Pt[0]&&!e(o,xt[0],"RIFF")){if(e(o,xt[0]+8,"WEBP")){At=3;break t}var jt=L(o,xt[0]+4);if(12>jt||4294967286<jt){At=3;break t}if(Q&&jt>Pt[0]-8){At=7;break t}At[0]=jt,xt[0]+=12,Pt[0]-=12}At=0}if(At!=0)return At;for(jt=0<gt.gb[0],m=m[0];;){t:{var Ft=o;Pt=u,At=m;var Mt=J,Bt=ht,re=xt=[0];if((te=kt=[kt])[0]=0,8>At[0])At=7;else{if(!e(Ft,Pt[0],"VP8X")){if(L(Ft,Pt[0]+4)!=10){At=3;break t}if(18>At[0]){At=7;break t}var Yt=L(Ft,Pt[0]+8),be=1+Rt(Ft,Pt[0]+12);if(2147483648<=be*(Ft=1+Rt(Ft,Pt[0]+15))){At=3;break t}re!=null&&(re[0]=Yt),Mt!=null&&(Mt[0]=be),Bt!=null&&(Bt[0]=Ft),Pt[0]+=18,At[0]-=18,te[0]=1}At=0}}if(kt=kt[0],xt=xt[0],At!=0)return At;if(Pt=!!(2&xt),!jt&&kt)return 3;if(D!=null&&(D[0]=!!(16&xt)),z!=null&&(z[0]=Pt),H!=null&&(H[0]=0),z=J[0],xt=ht[0],kt&&Pt&&V==null){At=0;break}if(4>m){At=7;break}if(jt&&kt||!jt&&!kt&&!e(o,u[0],"ALPH")){m=[m],gt.na=[gt.na],gt.P=[gt.P],gt.Sa=[gt.Sa];t:{Yt=o,At=u,jt=m;var te=gt.gb;Mt=gt.na,Bt=gt.P,re=gt.Sa,be=22,n(Yt!=null),n(jt!=null),Ft=At[0];var xe=jt[0];for(n(Mt!=null),n(re!=null),Mt[0]=null,Bt[0]=null,re[0]=0;;){if(At[0]=Ft,jt[0]=xe,8>xe){At=7;break t}var ln=L(Yt,Ft+4);if(4294967286<ln){At=3;break t}var ve=8+ln+1&-2;if(be+=ve,0<te&&be>te){At=3;break t}if(!e(Yt,Ft,"VP8 ")||!e(Yt,Ft,"VP8L")){At=0;break t}if(xe[0]<ve){At=7;break t}e(Yt,Ft,"ALPH")||(Mt[0]=Yt,Bt[0]=Ft+8,re[0]=ln),Ft+=ve,xe-=ve}}if(m=m[0],gt.na=gt.na[0],gt.P=gt.P[0],gt.Sa=gt.Sa[0],At!=0)break}m=[m],gt.Ja=[gt.Ja],gt.xa=[gt.xa];t:if(te=o,At=u,jt=m,Mt=gt.gb[0],Bt=gt.Ja,re=gt.xa,Yt=At[0],Ft=!e(te,Yt,"VP8 "),be=!e(te,Yt,"VP8L"),n(te!=null),n(jt!=null),n(Bt!=null),n(re!=null),8>jt[0])At=7;else{if(Ft||be){if(te=L(te,Yt+4),12<=Mt&&te>Mt-12){At=3;break t}if(Q&&te>jt[0]-8){At=7;break t}Bt[0]=te,At[0]+=8,jt[0]-=8,re[0]=be}else re[0]=5<=jt[0]&&te[Yt+0]==47&&!(te[Yt+4]>>5),Bt[0]=jt[0];At=0}if(m=m[0],gt.Ja=gt.Ja[0],gt.xa=gt.xa[0],u=u[0],At!=0)break;if(4294967286<gt.Ja)return 3;if(H==null||Pt||(H[0]=gt.xa?2:1),z=[z],xt=[xt],gt.xa){if(5>m){At=7;break}H=z,Q=xt,Pt=D,o==null||5>m?o=0:5<=m&&o[u+0]==47&&!(o[u+4]>>5)?(jt=[0],te=[0],Mt=[0],it(Bt=new U,o,u,m),Ur(Bt,jt,te,Mt)?(H!=null&&(H[0]=jt[0]),Q!=null&&(Q[0]=te[0]),Pt!=null&&(Pt[0]=Mt[0]),o=1):o=0):o=0}else{if(10>m){At=7;break}H=xt,o==null||10>m||!no(o,u+3,m-3)?o=0:(Q=o[u+0]|o[u+1]<<8|o[u+2]<<16,Pt=16383&(o[u+7]<<8|o[u+6]),o=16383&(o[u+9]<<8|o[u+8]),1&Q||3<(Q>>1&7)||!(Q>>4&1)||Q>>5>=gt.Ja||!Pt||!o?o=0:(z&&(z[0]=Pt),H&&(H[0]=o),o=1))}if(!o||(z=z[0],xt=xt[0],kt&&(J[0]!=z||ht[0]!=xt)))return 3;V!=null&&(V[0]=gt,V.offset=u-V.w,n(4294967286>u-V.w),n(V.offset==V.ha-m));break}return At==0||At==7&&kt&&V==null?(D!=null&&(D[0]|=gt.na!=null&&0<gt.na.length),S!=null&&(S[0]=z),F!=null&&(F[0]=xt),0):At}function or(o,u,m){var S=u.width,F=u.height,D=0,z=0,H=S,V=F;if(u.Da=o!=null&&0<o.Da,u.Da&&(H=o.cd,V=o.bd,D=o.v,z=o.j,11>m||(D&=-2,z&=-2),0>D||0>z||0>=H||0>=V||D+H>S||z+V>F))return 0;if(u.v=D,u.j=z,u.va=D+H,u.o=z+V,u.U=H,u.T=V,u.da=o!=null&&0<o.da,u.da){if(!q(H,V,m=[o.ib],D=[o.hb]))return 0;u.ib=m[0],u.hb=D[0]}return u.ob=o!=null&&o.ob,u.Kb=o==null||!o.Sd,u.da&&(u.ob=u.ib<3*S/4&&u.hb<3*F/4,u.Kb=0),1}function zi(o){if(o==null)return 2;if(11>o.S){var u=o.f.RGBA;u.fb+=(o.height-1)*u.A,u.A=-u.A}else u=o.f.kb,o=o.height,u.O+=(o-1)*u.fa,u.fa=-u.fa,u.N+=(o-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(o-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(o-1)*u.lb,u.lb=-u.lb);return 0}function ds(o,u,m,S){if(S==null||0>=o||0>=u)return 2;if(m!=null){if(m.Da){var F=m.cd,D=m.bd,z=-2&m.v,H=-2&m.j;if(0>z||0>H||0>=F||0>=D||z+F>o||H+D>u)return 2;o=F,u=D}if(m.da){if(!q(o,u,F=[m.ib],D=[m.hb]))return 2;o=F[0],u=D[0]}}S.width=o,S.height=u;t:{var V=S.width,J=S.height;if(o=S.S,0>=V||0>=J||!(o>=mo&&13>o))o=2;else{if(0>=S.Rd&&S.sd==null){z=D=F=u=0;var ht=(H=V*Gu[o])*J;if(11>o||(D=(J+1)/2*(u=(V+1)/2),o==12&&(z=(F=V)*J)),(J=i(ht+2*D+z))==null){o=1;break t}S.sd=J,11>o?((V=S.f.RGBA).eb=J,V.fb=0,V.A=H,V.size=ht):((V=S.f.kb).y=J,V.O=0,V.fa=H,V.Fd=ht,V.f=J,V.N=0+ht,V.Ab=u,V.Cd=D,V.ea=J,V.W=0+ht+D,V.Db=u,V.Ed=D,o==12&&(V.F=J,V.J=0+ht+2*D),V.Tc=z,V.lb=F)}if(u=1,F=S.S,D=S.width,z=S.height,F>=mo&&13>F)if(11>F)o=S.f.RGBA,u&=(H=Math.abs(o.A))*(z-1)+D<=o.size,u&=H>=D*Gu[F],u&=o.eb!=null;else{o=S.f.kb,H=(D+1)/2,ht=(z+1)/2,V=Math.abs(o.fa),J=Math.abs(o.Ab);var kt=Math.abs(o.Db),Q=Math.abs(o.lb),gt=Q*(z-1)+D;u&=V*(z-1)+D<=o.Fd,u&=J*(ht-1)+H<=o.Cd,u=(u&=kt*(ht-1)+H<=o.Ed)&V>=D&J>=H&kt>=H,u&=o.y!=null,u&=o.f!=null,u&=o.ea!=null,F==12&&(u&=Q>=D,u&=gt<=o.Tc,u&=o.F!=null)}else u=0;o=u?0:2}}return o!=0||m!=null&&m.fd&&(o=zi(S)),o}var ka=64,Ui=[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],ps=24,jn=32,Dn=8,Sa=[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];wt("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(o){return o},k.Predictor2=function(o,u,m){return u[m+0]},k.Predictor3=function(o,u,m){return u[m+1]},k.Predictor4=function(o,u,m){return u[m-1]},k.Predictor5=function(o,u,m){return St(St(o,u[m+1]),u[m+0])},k.Predictor6=function(o,u,m){return St(o,u[m-1])},k.Predictor7=function(o,u,m){return St(o,u[m+0])},k.Predictor8=function(o,u,m){return St(u[m-1],u[m+0])},k.Predictor9=function(o,u,m){return St(u[m+0],u[m+1])},k.Predictor10=function(o,u,m){return St(St(o,u[m-1]),St(u[m+0],u[m+1]))},k.Predictor11=function(o,u,m){var S=u[m+0];return 0>=Ot(S>>24&255,o>>24&255,(u=u[m-1])>>24&255)+Ot(S>>16&255,o>>16&255,u>>16&255)+Ot(S>>8&255,o>>8&255,u>>8&255)+Ot(255&S,255&o,255&u)?S:o},k.Predictor12=function(o,u,m){var S=u[m+0];return(Dt((o>>24&255)+(S>>24&255)-((u=u[m-1])>>24&255))<<24|Dt((o>>16&255)+(S>>16&255)-(u>>16&255))<<16|Dt((o>>8&255)+(S>>8&255)-(u>>
vendor: 5,951 bytes, line 135
1358&255))<<8|Dt((255&o)+(255&S)-(255&u)))>>>0},k.Predictor13=function(o,u,m){var S=u[m-1];return(Et((o=St(o,u[m+0]))>>24&255,S>>24&255)<<24|Et(o>>16&255,S>>16&255)<<16|Et(o>>8&255,S>>8&255)<<8|Et(255&o,255&S))>>>0};var ci=k.PredictorAdd0;k.PredictorAdd1=qt,wt("Predictor2","PredictorAdd2"),wt("Predictor3","PredictorAdd3"),wt("Predictor4","PredictorAdd4"),wt("Predictor5","PredictorAdd5"),wt("Predictor6","PredictorAdd6"),wt("Predictor7","PredictorAdd7"),wt("Predictor8","PredictorAdd8"),wt("Predictor9","PredictorAdd9"),wt("Predictor10","PredictorAdd10"),wt("Predictor11","PredictorAdd11"),wt("Predictor12","PredictorAdd12"),wt("Predictor13","PredictorAdd13");var ui=k.PredictorAdd2;Vt("ColorIndexInverseTransform","MapARGB","32b",function(o){return o>>8&255},function(o){return o}),Vt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(o){return o},function(o){return o>>8&255});var Na,qi=k.ColorIndexInverseTransform,sn=k.MapARGB,Dl=k.VP8LColorIndexInverseTransformAlpha,Ir=k.MapAlpha,gr=k.VP8LPredictorsAdd=[];gr.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var Hi,gs,ms,La,Wi,Gi,hi,Zr,fi,Ea,kn,Pr,Te,De,Xe,on,Kr,bs,Ca,po,yu,xu,Au,ku,vs,Su,Nu,Lu,Eu=i(511),Cu=i(2041),Iu=i(225),Pu=i(767),ju=0,Bl=Cu,go=Iu,Wn=Pu,lr=Eu,mo=0,bo=1,Fu=2,vo=3,_o=4,Ml=5,Ru=6,zl=7,Ul=8,wo=9,ql=10,H1=[2,3,7],W1=[3,3,11],Ou=[280,256,256,256,40],G1=[0,1,1,1,0],$1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],V1=[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],Z1=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],K1=8,Hl=[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],Wl=[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],_s=null,Y1=[[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]],X1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Tu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],J1=[[[[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
1355,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]]]],Q1=[[[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,
1351,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]]],t0=[[[[255,255,255,255,255,255,255,255,255,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
vendor: 10,609 bytes, line 135
1355,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]]]],e0=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],di=[],mr=[],Yr=[],n0=1,Du=2,pi=[],cr=[];xn("UpsampleRgbLinePair",Di,3),xn("UpsampleBgrLinePair",ya,3),xn("UpsampleRgbaLinePair",fs,4),xn("UpsampleBgraLinePair",Mi,4),xn("UpsampleArgbLinePair",Bi,4),xn("UpsampleRgba4444LinePair",An,2),xn("UpsampleRgb565LinePair",xa,2);var r0=k.UpsampleRgbLinePair,i0=k.UpsampleBgrLinePair,Bu=k.UpsampleRgbaLinePair,Mu=k.UpsampleBgraLinePair,zu=k.UpsampleArgbLinePair,Uu=k.UpsampleRgba4444LinePair,a0=k.UpsampleRgb565LinePair,yo=16,xo=1<<yo-1,ws=-227,Gl=482,qu=6,s0=(256<<qu)-1,Hu=0,o0=i(256),l0=i(256),c0=i(256),u0=i(256),h0=i(Gl-ws),f0=i(Gl-ws);Cr("YuvToRgbRow",Di,3),Cr("YuvToBgrRow",ya,3),Cr("YuvToRgbaRow",fs,4),Cr("YuvToBgraRow",Mi,4),Cr("YuvToArgbRow",Bi,4),Cr("YuvToRgba4444Row",An,2),Cr("YuvToRgb565Row",xa,2);var Wu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ao=[0,2,8],d0=[8,7,6,4,4,2,2,2,1,1,1,1],p0=1;this.WebPDecodeRGBA=function(o,u,m,S,F){var D=bo,z=new lt,H=new $t;z.ba=H,H.S=D,H.width=[H.width],H.height=[H.height];var V=H.width,J=H.height,ht=new Gt;if(ht==null||o==null)var kt=2;else n(ht!=null),kt=fo(o,u,m,ht.width,ht.height,ht.Pd,ht.Qd,ht.format,null);if(kt!=0?V=0:(V!=null&&(V[0]=ht.width[0]),J!=null&&(J[0]=ht.height[0]),V=1),V){H.width=H.width[0],H.height=H.height[0],S!=null&&(S[0]=H.width),F!=null&&(F[0]=H.height);t:{if(S=new fa,(F=new _t).data=o,F.w=u,F.ha=m,F.kd=1,u=[0],n(F!=null),((o=fo(F.data,F.w,F.ha,null,null,null,u,null,F))==0||o==7)&&u[0]&&(o=4),(u=o)==0){if(n(z!=null),S.data=F.data,S.w=F.w+F.offset,S.ha=F.ha-F.offset,S.put=le,S.ac=nr,S.bc=zr,S.ma=z,F.xa){if((o=Ii())==null){z=1;break t}if(function(Q,gt){var xt=[0],Pt=[0],At=[0];e:for(;;){if(Q==null)return 0;if(gt==null)return Q.a=2,0;if(Q.l=gt,Q.a=0,it(Q.m,gt.data,gt.w,gt.ha),!Ur(Q.m,xt,Pt,At)){Q.a=3;break e}if(Q.xb=Du,gt.width=xt[0],gt.height=Pt[0],!kr(xt[0],Pt[0],1,Q,null))break e;return 1}return n(Q.a!=0),0}(o,S)){if(S=(u=ds(S.width,S.height,z.Oa,z.ba))==0){e:{S=o;n:for(;;){if(S==null){S=0;break e}if(n(S.s.yc!=null),n(S.s.Ya!=null),n(0<S.s.Wb),n((m=S.l)!=null),n((F=m.ma)!=null),S.xb!=0){if(S.ca=F.ba,S.tb=F.tb,n(S.ca!=null),!or(F.Oa,m,vo)){S.a=2;break n}if(!Pi(S,m.width)||m.da)break n;if((m.da||Nt(S.ca.S))&&$e(),11>S.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),S.ca.f.kb.F!=null&&$e()),S.Pb&&0<S.s.ua&&S.s.vb.X==null&&!I(S.s.vb,S.s.Wa.Xa)){S.a=1;break n}S.xb=0}if(!pr(S,S.V,S.Ba,S.c,S.i,m.o,ii))break n;F.Dc=S.Ma,S=1;break e}n(S.a!=0),S=0}S=!S}S&&(u=o.a)}else u=o.a}else{if((o=new wl)==null){z=1;break t}if(o.Fa=F.na,o.P=F.P,o.qc=F.Sa,Nr(o,S)){if((u=ds(S.width,S.height,z.Oa,z.ba))==0){if(o.Aa=0,m=z.Oa,n((F=o)!=null),m!=null){if(0<(V=0>(V=m.Md)?0:100<V?255:255*V/100)){for(J=ht=0;4>J;++J)12>(kt=F.pb[J]).lc&&(kt.ia=V*d0[0>kt.lc?0:kt.lc]>>3),ht|=kt.ia;ht&&(alert("todo:VP8InitRandom"),F.ia=1)}F.Ga=m.Id,100<F.Ga?F.Ga=100:0>F.Ga&&(F.Ga=0)}(function(Q,gt){if(Q==null)return 0;if(gt==null)return rn(Q,2,"NULL VP8Io parameter in VP8Decode().");if(!Q.cb&&!Nr(Q,gt))return 0;if(n(Q.cb),gt.ac==null||gt.ac(gt)){gt.ob&&(Q.L=0);var xt=Ao[Q.L];if(Q.L==2?(Q.yb=0,Q.zb=0):(Q.yb=gt.v-xt>>4,Q.zb=gt.j-xt>>4,0>Q.yb&&(Q.yb=0),0>Q.zb&&(Q.zb=0)),Q.Va=gt.o+15+xt>>4,Q.Hb=gt.va+15+xt>>4,Q.Hb>Q.za&&(Q.Hb=Q.za),Q.Va>Q.Ub&&(Q.Va=Q.Ub),0<Q.L){var Pt=Q.ed;for(xt=0;4>xt;++xt){var At;if(Q.Qa.Cb){var jt=Q.Qa.Lb[xt];Q.Qa.Fb||(jt+=Pt.Tb)}else jt=Pt.Tb;for(At=0;1>=At;++At){var Ft=Q.gd[xt][At],Mt=jt;if(Pt.Pc&&(Mt+=Pt.vd[0],At&&(Mt+=Pt.od[0])),0<(Mt=0>Mt?0:63<Mt?63:Mt)){var Bt=Mt;0<Pt.wb&&(Bt=4<Pt.wb?Bt>>2:Bt>>1)>9-Pt.wb&&(Bt=9-Pt.wb),1>Bt&&(Bt=1),Ft.dd=Bt,Ft.tc=2*Mt+Bt,Ft.ld=40<=Mt?2:15<=Mt?1:0}else Ft.tc=0;Ft.La=At}}}xt=0}else rn(Q,6,"Frame setup failed"),xt=Q.a;if(xt=xt==0){if(xt){Q.$c=0,0<Q.Aa||(Q.Ic=p0);e:{xt=Q.Ic,Pt=4*(Bt=Q.za);var re=32*Bt,Yt=Bt+1,be=0<Q.L?Bt*(0<Q.Aa?2:1):0,te=(Q.Aa==2?2:1)*Bt;if((Ft=Pt+832+(At=3*(16*xt+Ao[Q.L])/2*re)+(jt=Q.Fa!=null&&0<Q.Fa.length?Q.Kc.c*Q.Kc.i:0))!=Ft)xt=0;else{if(Ft>Q.Vb){if(Q.Vb=0,Q.Ec=i(Ft),Q.Fc=0,Q.Ec==null){xt=rn(Q,1,"no memory during frame initialization.");break e}Q.Vb=Ft}Ft=Q.Ec,Mt=Q.Fc,Q.Ac=Ft,Q.Bc=Mt,Mt+=Pt,Q.Gd=l(re,to),Q.Hd=0,Q.rb=l(Yt+1,ns),Q.sb=1,Q.wa=be?l(be,sr):null,Q.Y=0,Q.D.Nb=0,Q.D.wa=Q.wa,Q.D.Y=Q.Y,0<Q.Aa&&(Q.D.Y+=Bt),n(!0),Q.oc=Ft,Q.pc=Mt,Mt+=832,Q.ya=l(te,rs),Q.aa=0,Q.D.ya=Q.ya,Q.D.aa=Q.aa,Q.Aa==2&&(Q.D.aa+=Bt),Q.R=16*Bt,Q.B=8*Bt,Bt=(re=Ao[Q.L])*Q.R,re=re/2*Q.B,Q.sa=Ft,Q.ta=Mt+Bt,Q.qa=Q.sa,Q.ra=Q.ta+16*xt*Q.R+re,Q.Ha=Q.qa,Q.Ia=Q.ra+8*xt*Q.B+re,Q.$c=0,Mt+=At,Q.mb=jt?Ft:null,Q.nb=jt?Mt:null,n(Mt+jt<=Q.Fc+Q.Vb),is(Q),a(Q.Ac,Q.Bc,0,Pt),xt=1}}if(xt){if(gt.ka=0,gt.y=Q.sa,gt.O=Q.ta,gt.f=Q.qa,gt.N=Q.ra,gt.ea=Q.Ha,gt.Vd=Q.Ia,gt.fa=Q.R,gt.Rc=Q.B,gt.F=null,gt.J=0,!ju){for(xt=-255;255>=xt;++xt)Eu[255+xt]=0>xt?-xt:xt;for(xt=-1020;1020>=xt;++xt)Cu[1020+xt]=-128>xt?-128:127<xt?127:xt;for(xt=-112;112>=xt;++xt)Iu[112+xt]=-16>xt?-16:15<xt?15:xt;for(xt=-255;510>=xt;++xt)Pu[255+xt]=0>xt?0:255<xt?255:xt;ju=1}hi=io,Zr=yl,Ea=xl,kn=Al,Pr=Lr,fi=ro,Te=oo,De=lo,Xe=uo,on=p,Kr=co,bs=Ri,Ca=P,po=Y,yu=_a,xu=us,Au=wa,ku=so,mr[0]=Il,mr[1]=ma,mr[2]=El,mr[3]=Cl,mr[4]=Pl,mr[5]=Hr,mr[6]=jl,mr[7]=Wr,mr[8]=Rl,mr[9]=Fl,di[0]=ao,di[1]=kl,di[2]=Sl,di[3]=Nl,di[4]=si,di[5]=Ll,di[6]=ji,Yr[0]=Ol,Yr[1]=as,Yr[2]=ba,Yr[3]=ss,Yr[4]=Tl,Yr[5]=va,Yr[6]=os,xt=1}else xt=0}xt&&(xt=function(xe,ln){for(xe.M=0;xe.M<xe.Va;++xe.M){var ve,ee=xe.Jc[xe.M&xe.Xb],Wt=xe.m,Je=xe;for(ve=0;ve<Je.za;++ve){var ge=Wt,ke=Je,ze=ke.Ac,bn=ke.Bc+4*ve,Fn=ke.zc,Ze=ke.ya[ke.aa+ve];if(ke.Qa.Bb?Ze.$b=yt(ge,ke.Pa.jb[0])?2+yt(ge,ke.Pa.jb[2]):yt(ge,ke.Pa.jb[1]):Ze.$b=0,ke.kc&&(Ze.Ad=yt(ge,ke.Bd)),Ze.Za=!yt(ge,145)+0,Ze.Za){var Sn=Ze.Ob,Rn=0;for(ke=0;4>ke;++ke){var cn,Se=Fn[0+ke];for(cn=0;4>cn;++cn){Se=Q1[ze[bn+cn]][Se];for(var Ee=Tu[yt(ge,Se[0])];0<Ee;)Ee=Tu[2*Ee+yt(ge,Se[Ee])];Se=-Ee,ze[bn+cn]=Se}r(Sn,Rn,ze,bn,4),Rn+=4,Fn[0+ke]=Se}}else Se=yt(ge,156)?yt(ge,128)?1:3:yt(ge,163)?2:0,Ze.Ob[0]=Se,a(ze,bn,Se,4),a(Fn,0,Se,4);Ze.Dd=yt(ge,142)?yt(ge,114)?yt(ge,183)?1:3:2:0}if(Je.m.Ka)return rn(xe,7,"Premature end-of-partition0 encountered.");for(;xe.ja<xe.za;++xe.ja){if(Je=ee,ge=(Wt=xe).rb[Wt.sb-1],ze=Wt.rb[Wt.sb+Wt.ja],ve=Wt.ya[Wt.aa+Wt.ja],bn=Wt.kc?ve.Ad:0)ge.la=ze.la=0,ve.Za||(ge.Na=ze.Na=0),ve.Hc=0,ve.Gc=0,ve.ia=0;else{var Ke,Ce;if(ge=ze,ze=Je,bn=Wt.Pa.Xc,Fn=Wt.ya[Wt.aa+Wt.ja],Ze=Wt.pb[Fn.$b],ke=Fn.ad,Sn=0,Rn=Wt.rb[Wt.sb-1],Se=cn=0,a(ke,Sn,0,384),Fn.Za)var vn=0,br=bn[3];else{Ee=i(16);var Qe=ge.Na+Rn.Na;if(Qe=_s(ze,bn[1],Qe,Ze.Eb,0,Ee,0),ge.Na=Rn.Na=(0<Qe)+0,1<Qe)hi(Ee,0,ke,Sn);else{var Bn=Ee[0]+3>>3;for(Ee=0;256>Ee;Ee+=16)ke[Sn+Ee]=Bn}vn=1,br=bn[0]}var Re=15&ge.la,un=15&Rn.la;for(Ee=0;4>Ee;++Ee){var Gn=1&un;for(Bn=Ce=0;4>Bn;++Bn)Re=Re>>1|(Gn=(Qe=_s(ze,br,Qe=Gn+(1&Re),Ze.Sc,vn,ke,Sn))>vn)<<7,Ce=Ce<<2|(3<Qe?3:1<Qe?2:ke[Sn+0]!=0),Sn+=16;Re>>=4,un=un>>1|Gn<<7,cn=(cn<<8|Ce)>>>0}for(br=Re,vn=un>>4,Ke=0;4>Ke;Ke+=2){for(Ce=0,Re=ge.la>>4+Ke,un=Rn.la>>4+Ke,Ee=0;2>Ee;++Ee){for(Gn=1&un,Bn=0;2>Bn;++Bn)Qe=Gn+(1&Re),Re=Re>>1|(Gn=0<(Qe=_s(ze,bn[2],Qe,Ze.Qc,0,ke,Sn)))<<3,Ce=Ce<<2|(3<Qe?3:1<Qe?2:ke[Sn+0]!=0),Sn+=16;Re>>=2,un=un>>1|Gn<<5}Se|=Ce<<4*Ke,br|=Re<<4<<Ke,vn|=(240&un)<<Ke}ge.la=br,Rn.la=vn,Fn.Hc=cn,Fn.Gc=Se,Fn.ia=43690&Se?0:Ze.ia,bn=!(cn|Se)}if(0<Wt.L&&(Wt.wa[Wt.Y+Wt.ja]=Wt.gd[ve.$b][ve.Za],Wt.wa[Wt.Y+Wt.ja].La|=!bn),Je.Ka)return rn(xe,7,"Premature end-of-file encountered.")}if(is(xe),Wt=ln,Je=1,ve=(ee=xe).D,ge=0<ee.L&&ee.M>=ee.zb&&ee.M<=ee.Va,ee.Aa==0)e:{if(ve.M=ee.M,ve.uc=ge,Aa(ee,ve),Je=1,ve=(Ce=ee.D).Nb,ge=(Se=Ao[ee.L])*ee.R,ze=Se/2*ee.B,Ee=16*ve*ee.R,Bn=8*ve*ee.B,bn=ee.sa,Fn=ee.ta-ge+Ee,Ze=ee.qa,ke=ee.ra-ze+Bn,Sn=ee.Ha,Rn=ee.Ia-ze+Bn,un=(Re=Ce.M)==0,cn=Re>=ee.Va-1,ee.Aa==2&&Aa(ee,Ce),Ce.uc)for(Gn=(Qe=ee).D.M,n(Qe.D.uc),Ce=Qe.yb;Ce<Qe.Hb;++Ce){vn=Ce,br=Gn;var On=($n=(_n=Qe).D).Nb;Ke=_n.R;var $n=$n.wa[$n.Y+vn],Vn=_n.sa,Mn=_n.ta+16*On*Ke+16*vn,Zn=$n.dd,Be=$n.tc;if(Be!=0)if(n(3<=Be),_n.L==1)0<vn&&xu(Vn,Mn,Ke,Be+4),$n.La&&ku(Vn,Mn,Ke,Be),0<br&&yu(Vn,Mn,Ke,Be+4),$n.La&&Au(Vn,Mn,Ke,Be);else{var Kn=_n.B,vr=_n.qa,$i=_n.ra+8*On*Kn+8*vn,Xr=_n.Ha,_n=_n.Ia+8*On*Kn+8*vn;On=$n.ld,0<vn&&(De(Vn,Mn,Ke,Be+4,Zn,On),on(vr,$i,Xr,_n,Kn,Be+4,Zn,On)),$n.La&&(bs(Vn,Mn,Ke,Be,Zn,On),po(vr,$i,Xr,_n,Kn,Be,Zn,On)),0<br&&(Te(Vn,Mn,Ke,Be+4,Zn,On),Xe(vr,$i,Xr,_n,Kn,Be+4,Zn,On)),$n.La&&(Kr(Vn,Mn,Ke,Be,Zn,On),Ca(vr,$i,Xr,_n,Kn,Be,Zn,On))}}if(ee.ia&&alert("todo:DitherRow"),Wt.put!=null){if(Ce=16*Re,Re=16*(Re+1),un?(Wt.y=ee.sa,Wt.O=ee.ta+Ee,Wt.f=ee.qa,Wt.N=ee.ra+Bn,Wt.ea=ee.Ha,Wt.W=ee.Ia+Bn):(Ce-=Se,Wt.y=bn,Wt.O=Fn,Wt.f=Ze,Wt.N=ke,Wt.ea=Sn,Wt.W=Rn),cn||(Re-=Se),Re>Wt.o&&(Re=Wt.o),Wt.F=null,Wt.J=null,ee.Fa!=null&&0<ee.Fa.length&&Ce<Re&&(Wt.J=an(ee,Wt,Ce,Re-Ce),Wt.F=ee.mb,Wt.F==null&&Wt.F.length==0)){Je=rn(ee,3,"Could not decode alpha data.");break e}Ce<Wt.j&&(Se=Wt.j-Ce,Ce=Wt.j,n(!(1&Se)),Wt.O+=ee.R*Se,Wt.N+=ee.B*(Se>>1),Wt.W+=ee.B*(Se>>1),Wt.F!=null&&(Wt.J+=Wt.width*Se)),Ce<Re&&(Wt.O+=Wt.v,Wt.N+=Wt.v>>1,Wt.W+=Wt.v>>1,Wt.F!=null&&(Wt.J+=Wt.v),Wt.ka=Ce-Wt.j,Wt.U=Wt.va-Wt.v,Wt.T=Re-Ce,Je=Wt.put(Wt))}ve+1!=ee.Ic||cn||(r(ee.sa,ee.ta-ge,bn,Fn+16*ee.R,ge),r(ee.qa,ee.ra-ze,Ze,ke+8*ee.B,ze),r(ee.Ha,ee.Ia-ze,Sn,Rn+8*ee.B,ze))}if(!Je)return rn(xe,6,"Output aborted.")}return 1}(Q,gt)),gt.bc!=null&>.bc(gt),xt&=1}return xt?(Q.cb=0,xt):0})(o,S)||(u=o.a)}}else u=o.a}u==0&&z.Oa!=null&&z.Oa.fd&&(u=zi(z.ba))}z=u}D=z!=0?null:11>D?H.f.RGBA.eb:H.f.kb.y}else D=null;return D};var Gu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function f(k,j){for(var E="",y=0;y<4;y++)E+=String.fromCharCode(k[j++]);return E}function d(k,j){return k[j+0]|k[j+1]<<8}function _(k,j){return(k[j+0]|k[j+1]<<8|k[j+2]<<16)>>>0}function w(k,j){return(k[j+0]|k[j+1]<<8|k[j+2]<<16|k[j+3]<<24)>>>0}new c;var h=[0],x=[0],b=[],N=new c,v=t,C=function(k,j){var E={},y=0,R=!1,g=0,X=0;if(E.frames=[],!function(A,U){for(var M=0;M<4;M++)if(A[U+M]!="RIFF".charCodeAt(M))return!0;return!1}(k,j)){for(w(k,j+=4),j+=8;j<k.length;){var ft=f(k,j),at=w(k,j+=4);j+=4;var nt=at+(1&at);switch(ft){case"VP8 ":case"VP8L":E.frames[y]===void 0&&(E.frames[y]={}
135),(tt=E.frames[y]).src_off=R?X:j-8,tt.src_size=g+at+8,y++,R&&(R=!1,g=0,X=0);break;case"VP8X":(tt=E.header={}).feature_flags=k[j];var it=j+4;tt.canvas_width=1+_(k,it),it+=3,tt.canvas_height=1+_(k,it),it+=3;break;case"ALPH":R=!0,g=nt+8,X=j-8;break;case"ANIM":(tt=E.header).bgcolor=w(k,j),it=j+4,tt.loop_count=d(k,it),it+=2;break;case"ANMF":var mt,tt;(tt=E.frames[y]={}).offset_x=2*_(k,j),j+=3,tt.offset_y=2*_(k,j),j+=3,tt.width=1+_(k,j),j+=3,tt.height=1+_(k,j),j+=3,tt.duration=_(k,j),j+=3,mt=k[j++],tt.dispose=1&mt,tt.blend=mt>>1&1}ft!="ANMF"&&(j+=nt)}return E}}(v,0);C.response=v,C.rgbaoutput=!0,C.dataurl=!1;var O=C.header?C.header:null,T=C.frames?C.frames:null;if(O){O.loop_counter=O.loop_count,h=[O.canvas_height],x=[O.canvas_width];for(var Z=0;Z<T.length&&T[Z].blend!=0;Z++);}var ot=T[0],et=N.WebPDecodeRGBA(v,ot.src_off,ot.src_size,x,h);ot.rgba=et,ot.imgwidth=x[0],ot.imgheight=h[0];for(var $=0;$<x[0]*h[0]*4;$++)b[$]=et[$];return this.width=x,this.height=h,this.data=b,this}/** ==================================================================== 136 * @license 137 * jsPDF XMP metadata plugin 138 * Copyright (c) 2016 Jussi Utunen, [email protected] 139 * 140 * Permission is hereby granted, free of charge, to any person obtaining 141 * a copy of this software and associated documentation files (the 142 * "Software"), to deal in the Software without restriction, including 143 * without limitation the rights to use, copy, modify, merge, publish, 144 * distribute, sublicense, and/or sell copies of the Software, and to 145 * permit persons to whom the Software is furnished to do so, subject to 146 * the following conditions: 147 * 148 * The above copyright notice and this permission notice shall be 149 * included in all copies or substantial portions of the Software. 150 * 151 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 152 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 153 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 154 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 155 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 156 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 157 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 158 * ==================================================================== 159 */function Um(){var t,n=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(n));t=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 "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function qm(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var n,e,r,a,i,l,s,c,f,d=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new c,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new l,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new l,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new _(this),n=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,l=this.internal.Point,
vendor: 8,542 bytes, line 159
159s=this.internal.Rectangle,c=this.internal.Matrix,f=new d}]);var _=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var U=A;Object.defineProperty(this,"pdf",{get:function(){return U}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(I){M=!!I}});var K=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return K},set:function(I){K=!!I}});var st=0;Object.defineProperty(this,"posX",{get:function(){return st},set:function(I){isNaN(I)||(st=I)}});var dt=0;Object.defineProperty(this,"posY",{get:function(){return dt},set:function(I){isNaN(I)||(dt=I)}}),Object.defineProperty(this,"margin",{get:function(){return f.margin},set:function(I){var rt;typeof I=="number"?rt=[I,I,I,I]:((rt=new Array(4))[0]=I[0],rt[1]=I.length>=2?I[1]:rt[0],rt[2]=I.length>=3?I[2]:rt[0],rt[3]=I.length>=4?I[3]:rt[1]),f.margin=rt}});var vt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return vt},set:function(I){vt=I}});var ut=0;Object.defineProperty(this,"lastBreak",{get:function(){return ut},set:function(I){ut=I}});var yt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return yt},set:function(I){yt=I}}),Object.defineProperty(this,"ctx",{get:function(){return f},set:function(I){I instanceof d&&(f=I)}}),Object.defineProperty(this,"path",{get:function(){return f.path},set:function(I){f.path=I}});var Lt=[];Object.defineProperty(this,"ctxStack",{get:function(){return Lt},set:function(I){Lt=I}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(I){var rt;rt=w(I),this.ctx.fillStyle=rt.style,this.ctx.isFillTransparent=rt.a===0,this.ctx.fillOpacity=rt.a,this.pdf.setFillColor(rt.r,rt.g,rt.b,{a:rt.a}),this.pdf.setTextColor(rt.r,rt.g,rt.b,{a:rt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(I){var rt=w(I);this.ctx.strokeStyle=rt.style,this.ctx.isStrokeTransparent=rt.a===0,this.ctx.strokeOpacity=rt.a,rt.a===0?this.pdf.setDrawColor(255,255,255):(rt.a,this.pdf.setDrawColor(rt.r,rt.g,rt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(I){["butt","round","square"].indexOf(I)!==-1&&(this.ctx.lineCap=I,this.pdf.setLineCap(I))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(I){isNaN(I)||(this.ctx.lineWidth=I,this.pdf.setLineWidth(I))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(I){["bevel","round","miter"].indexOf(I)!==-1&&(this.ctx.lineJoin=I,this.pdf.setLineJoin(I))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(I){isNaN(I)||(this.ctx.miterLimit=I,this.pdf.setMiterLimit(I))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(I){this.ctx.textBaseline=I}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(I){["right","end","center","left","start"].indexOf(I)!==-1&&(this.ctx.textAlign=I)}});var Ct=null,Rt=null,L=null;Object.defineProperty(this,"fontFaces",{get:function(){return L},set:function(I){Ct=null,Rt=null,L=I}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(I){var rt;if(this.ctx.font=I,(rt=/^\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(I))!==null){var W=rt[1];rt[2];var q=rt[3],G=rt[4];rt[5];var bt=rt[6],wt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(G)[2];G=Math.floor(wt==="px"?parseFloat(G)*this.pdf.internal.scaleFactor:wt==="em"?parseFloat(G)*this.pdf.getFontSize():parseFloat(G)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(G);var ct=function(Vt){var _e,Kt,se=[],ce=Vt.trim();if(ce==="")return Ic;if(ce in If)return[If[ce]];for(;ce!=="";){switch(Kt=null,_e=(ce=jf(ce)).charAt(0)){case'"':case"'":Kt=Om(ce.substring(1),_e);break;default:Kt=Tm(ce)}if(Kt===null||(se.push(Kt[0]),(ce=jf(Kt[1]))!==""&&ce.charAt(0)!==","))return Ic;ce=ce.replace(/^,/,"")}return se}(bt);if(this.fontFaces){var St=function(Vt,_e){var Kt=Vt.getFontList(),se=JSON.stringify(Kt);if(Ct===null||Rt!==se){var ce=function(we){var ne=[];return Object.keys(we).forEach(function(pt){we[pt].forEach(function(Nt){var Ht=null;switch(Nt){case"bold":Ht={family:pt,weight:"bold"};break;case"italic":Ht={family:pt,style:"italic"};break;case"bolditalic":Ht={family:pt,weight:"bold",style:"italic"};break;case"":case"normal":Ht={family:pt}}Ht!==null&&(Ht.ref={name:pt,style:Nt},ne.push(Ht))})}),ne}(Kt);Ct=function(we){for(var ne={},pt=0;pt<we.length;++pt){var Nt=Cc(we[pt]),Ht=Nt.family,Zt=Nt.stretch,$t=Nt.style,Gt=Nt.weight;ne[Ht]=ne[Ht]||{},ne[Ht][Zt]=ne[Ht][Zt]||{},ne[Ht][Zt][$t]=ne[Ht][Zt][$t]||{},ne[Ht][Zt][$t][Gt]=Nt}return ne}(ce.concat(_e)),Rt=se}return Ct}(this.pdf,this.fontFaces),Dt=ct.map(function(Vt){return{family:Vt,stretch:"normal",weight:q,style:W}}),Et=function(Vt,_e,Kt){for(var se=(Kt=Kt||{}).defaultFontFamily||"times",ce=Object.assign({},Rm,Kt.genericFontFamilies||{}),we=null,ne=null,pt=0;pt<_e.length;++pt)if(ce[(we=Cc(_e[pt])).family]&&(we.family=ce[we.family]),Vt.hasOwnProperty(we.family)){ne=Vt[we.family];break}if(!(ne=ne||Vt[se]))throw new Error("Could not find a font-family for the rule '"+Pf(we)+"' and default family '"+se+"'.");if(ne=function(Nt,Ht){if(Ht[Nt])return Ht[Nt];var Zt=nu[Nt],$t=Zt<=nu.normal?-1:1,Gt=Cf(Ht,R1,Zt,$t);if(!Gt)throw new Error("Could not find a matching font-stretch value for "+Nt);return Gt}(we.stretch,ne),ne=function(Nt,Ht){if(Ht[Nt])return Ht[Nt];for(var Zt=F1[Nt],$t=0;$t<Zt.length;++$t)if(Ht[Zt[$t]])return Ht[Zt[$t]];throw new Error("Could not find a matching font-style for "+Nt)}(we.style,ne),!(ne=function(Nt,Ht){if(Ht[Nt])return Ht[Nt];if(Nt===400&&Ht[500])return Ht[500];if(Nt===500&&Ht[400])return Ht[400];var Zt=Fm[Nt],$t=Cf(Ht,O1,Zt,Nt<400?-1:1);if(!$t)throw new Error("Could not find a matching font-weight for value "+Nt);return $t}(we.weight,ne)))throw new Error("Failed to resolve a font for the rule '"+Pf(we)+"'.");return ne}(St,Dt);this.pdf.setFont(Et.ref.name,Et.ref.style)}else{var Ot="";(q==="bold"||parseInt(q,10)>=700||W==="bold")&&(Ot="bold"),W==="italic"&&(Ot+="italic"),Ot.length===0&&(Ot="normal");for(var qt="",zt={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"},Ut=0;Ut<ct.length;Ut++){if(this.pdf.internal.getFont(ct[Ut],Ot,{noFallback:!0,disableWarning:!0})!==void 0){qt=ct[Ut];break}if(Ot==="bolditalic"&&this.pdf.internal.getFont(ct[Ut],"bold",{noFallback:!0,disableWarning:!0})!==void 0)qt=ct[Ut],Ot="bold";else if(this.pdf.internal.getFont(ct[Ut],"normal",{noFallback:!0,disableWarning:!0})!==void 0){qt=ct[Ut],Ot="normal";break}}if(qt===""){for(var ae=0;ae<ct.length;ae++)if(zt[ct[ae]]){qt=zt[ct[ae]];break}}qt=qt===""?"Times":qt,this.pdf.setFont(qt,Ot)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(I){this.ctx.globalCompositeOperation=I}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(I){this.ctx.globalAlpha=I}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(I){this.ctx.lineDashOffset=I,tt.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(I){this.ctx.lineDash=I,tt.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(I){this.ctx.ignoreClearRect=!!I}})};_.prototype.setLineDash=function(A){this.lineDash=A},_.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},_.prototype.fill=function(){T.call(this,"fill",!1)},_.prototype.stroke=function(){T.call(this,"stroke",!1)},_.prototype.beginPath=function(){this.path=[{type:"begin"}]},_.prototype.moveTo=function(A,U){if(isNaN(A)||isNaN(U))throw Oe.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
159jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new l(A,U));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new l(A,U)},_.prototype.closePath=function(){var A=new l(0,0),U=0;for(U=this.path.length-1;U!==-1;U--)if(this.path[U].type==="begin"&&Ie(this.path[U+1])==="object"&&typeof this.path[U+1].x=="number"){A=new l(this.path[U+1].x,this.path[U+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new l(A.x,A.y)},_.prototype.lineTo=function(A,U){if(isNaN(A)||isNaN(U))throw Oe.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new l(A,U));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new l(M.x,M.y)},_.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),T.call(this,null,!0)},_.prototype.quadraticCurveTo=function(A,U,M,K){if(isNaN(M)||isNaN(K)||isNaN(A)||isNaN(U))throw Oe.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var st=this.ctx.transform.applyToPoint(new l(M,K)),dt=this.ctx.transform.applyToPoint(new l(A,U));this.path.push({type:"qct",x1:dt.x,y1:dt.y,x:st.x,y:st.y}),this.ctx.lastPoint=new l(st.x,st.y)},_.prototype.bezierCurveTo=function(A,U,M,K,st,dt){if(isNaN(st)||isNaN(dt)||isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K))throw Oe.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var vt=this.ctx.transform.applyToPoint(new l(st,dt)),ut=this.ctx.transform.applyToPoint(new l(A,U)),yt=this.ctx.transform.applyToPoint(new l(M,K));this.path.push({type:"bct",x1:ut.x,y1:ut.y,x2:yt.x,y2:yt.y,x:vt.x,y:vt.y}),this.ctx.lastPoint=new l(vt.x,vt.y)},_.prototype.arc=function(A,U,M,K,st,dt){if(isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K)||isNaN(st))throw Oe.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(dt=!!dt,!this.ctx.transform.isIdentity){var vt=this.ctx.transform.applyToPoint(new l(A,U));A=vt.x,U=vt.y;var ut=this.ctx.transform.applyToPoint(new l(0,M)),yt=this.ctx.transform.applyToPoint(new l(0,0));M=Math.sqrt(Math.pow(ut.x-yt.x,2)+Math.pow(ut.y-yt.y,2))}Math.abs(st-K)>=2*Math.PI&&(K=0,st=2*Math.PI),this.path.push({type:"arc",x:A,y:U,radius:M,startAngle:K,endAngle:st,counterclockwise:dt})},_.prototype.arcTo=function(A,U,M,K,st){throw new Error("arcTo not implemented.")},_.prototype.rect=function(A,U,M,K){if(isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K))throw Oe.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,U),this.lineTo(A+M,U),this.lineTo(A+M,U+K),this.lineTo(A,U+K),this.lineTo(A,U),this.lineTo(A+M,U),this.lineTo(A,U)},_.prototype.fillRect=function(A,U,M,K){if(isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K))throw Oe.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var st={};this.lineCap!=="butt"&&(st.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(st.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,U,M,K),this.fill(),st.hasOwnProperty("lineCap")&&(this.lineCap=st.lineCap),st.hasOwnProperty("lineJoin")&&(this.lineJoin=st.lineJoin)}},_.prototype.strokeRect=function(A,U,M,K){if(isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K))throw Oe.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");x.call(this)||(this.beginPath(),this.rect(A,U,M,K),this.stroke())},_.prototype.clearRect=function(A,U,M,K){if(isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K))throw Oe.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,U,M,K))},_.prototype.save=function(A){A=typeof A!="boolean"||A;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");
vendor: 4,165 bytes, line 159
159if(this.pdf.setPage(U),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var K=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=K}},_.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(U),A&&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)},_.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(A){var U,M,K,st;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))U=0,M=0,K=0,st=0;else{var dt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(dt!==null)U=parseInt(dt[1]),M=parseInt(dt[2]),K=parseInt(dt[3]),st=1;else if((dt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)U=parseInt(dt[1]),M=parseInt(dt[2]),K=parseInt(dt[3]),st=parseFloat(dt[4]);else{if(st=1,typeof A=="string"&&A.charAt(0)!=="#"){var vt=new N1(A);A=vt.ok?vt.toHex():"#000000"}A.length===4?(U=A.substring(1,2),U+=U,M=A.substring(2,3),M+=M,K=A.substring(3,4),K+=K):(U=A.substring(1,3),M=A.substring(3,5),K=A.substring(5,7)),U=parseInt(U,16),M=parseInt(M,16),K=parseInt(K,16)}}return{r:U,g:M,b:K,a:st,style:A}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},x=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};_.prototype.fillText=function(A,U,M,K){if(isNaN(U)||isNaN(M)||typeof A!="string")throw Oe.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(K=isNaN(K)?void 0:K,!h.call(this)){var st=nt(this.ctx.transform.rotation),dt=this.ctx.transform.scaleX;y.call(this,{text:A,x:U,y:M,scale:dt,angle:st,align:this.textAlign,maxWidth:K})}},_.prototype.strokeText=function(A,U,M,K){if(isNaN(U)||isNaN(M)||typeof A!="string")throw Oe.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!x.call(this)){K=isNaN(K)?void 0:K;var st=nt(this.ctx.transform.rotation),dt=this.ctx.transform.scaleX;y.call(this,{text:A,x:U,y:M,scale:dt,renderingMode:"stroke",angle:st,align:this.textAlign,maxWidth:K})}},_.prototype.measureText=function(A){if(typeof A!="string")throw Oe.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var U=this.pdf,M=this.pdf.internal.scaleFactor,K=U.internal.getFontSize(),st=U.getStringUnitWidth(A)*K/U.internal.scaleFactor;return new function(dt){var vt=(dt=dt||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return vt}}),this}({width:st*=Math.round(96*M/72*1e4)/1e4})},_.prototype.scale=function(A,U){if(isNaN(A)||isNaN(U))throw Oe.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new c(A,0,0,U,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},_.prototype.rotate=function(A){if(isNaN(A))throw Oe.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var U=new c(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(U)},_.prototype.translate=function(A,U){if(isNaN(A)||isNaN(U))throw Oe.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new c(1,0,0,1,A,U);this.ctx.transform=this.ctx.transform.multiply(M)},_.prototype.transform=function(A,U,M,K,st,dt){if(isNaN(A)||isNaN(U)||isNaN(M)||isNaN(K)||isNaN(st)||isNaN(dt))throw Oe.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to
159jsPDF.context2d.transform");var vt=new c(A,U,M,K,st,dt);this.ctx.transform=this.ctx.transform.multiply(vt)},_.prototype.setTransform=function(A,U,M,K,st,dt){A=isNaN(A)?1:A,U=isNaN(U)?0:U,M=isNaN(M)?0:M,K=isNaN(K)?1:K,st=isNaN(st)?0:st,dt=isNaN(dt)?0:dt,this.ctx.transform=new c(A,U,M,K,st,dt)};var b=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};_.prototype.drawImage=function(A,U,M,K,st,dt,vt,ut,yt){var Lt=this.pdf.getImageProperties(A),Ct=1,Rt=1,L=1,I=1;K!==void 0&&ut!==void 0&&(L=ut/K,I=yt/st,Ct=Lt.width/K*ut/K,Rt=Lt.height/st*yt/st),dt===void 0&&(dt=U,vt=M,U=0,M=0),K!==void 0&&ut===void 0&&(ut=K,yt=st),K===void 0&&ut===void 0&&(ut=Lt.width,yt=Lt.height);var rt=this.ctx.transform.decompose(),W=nt(rt.rotate.shx),q=new c,G=(q=(q=(q=q.multiply(rt.translate)).multiply(rt.skew)).multiply(rt.scale)).applyToRectangle(new s(dt-U*L,vt-M*I,K*Ct,st*Rt));if(this.autoPaging){for(var bt,wt=N.call(this,G),ct=[],St=0;St<wt.length;St+=1)ct.indexOf(wt[St])===-1&&ct.push(wt[St]);O(ct);for(var Dt=ct[0],Et=ct[ct.length-1],Ot=Dt;Ot<Et+1;Ot++){this.pdf.setPage(Ot);var qt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=Ot===1?this.posY+this.margin[0]:this.margin[0],Ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ae=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Vt=Ot===1?0:Ut+(Ot-2)*ae;if(this.ctx.clip_path.length!==0){var _e=this.path;bt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(bt,this.posX+this.margin[3],-Vt+zt+this.ctx.prevPageLastElemOffset),Z.call(this,"fill",!0),this.path=_e}var Kt=JSON.parse(JSON.stringify(G));Kt=C([Kt],this.posX+this.margin[3],-Vt+zt+this.ctx.prevPageLastElemOffset)[0];var se=(Ot>Dt||Ot<Et)&&b.call(this);se&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],qt,ae,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",Kt.x,Kt.y,Kt.w,Kt.h,null,null,W),se&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(A,"JPEG",G.x,G.y,G.w,G.h,null,null,W)};var N=function(A,U,M){var K=[];U=U||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var st=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":K.push(Math.floor((A.y+st)/M)+1);break;case"arc":K.push(Math.floor((A.y+st-A.radius)/M)+1),K.push(Math.floor((A.y+st+A.radius)/M)+1);break;case"qct":var dt=it(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);K.push(Math.floor((dt.y+st)/M)+1),K.push(Math.floor((dt.y+dt.h+st)/M)+1);break;case"bct":var vt=mt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);K.push(Math.floor((vt.y+st)/M)+1),K.push(Math.floor((vt.y+vt.h+st)/M)+1);break;case"rect":K.push(Math.floor((A.y+st)/M)+1),K.push(Math.floor((A.y+A.h+st)/M)+1)}for(var ut=0;ut<K.length;ut+=1)for(;this.pdf.internal.getNumberOfPages()<K[ut];)v.call(this);return K},v=function(){var A=this.fillStyle,U=this.strokeStyle,M=this.font,K=this.lineCap,st=this.lineWidth,dt=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=U,this.font=M,this.lineCap=K,this.lineWidth=st,this.lineJoin=dt},C=function(A,U,M){for(var K=0;K<A.length;K++)switch(A[K].type){case"bct":A[K].x2+=U,A[K].y2+=M;case"qct":A[K].x1+=U,A[K].y1+=M;default:A[K].x+=U,A[K].y+=M}return A},O=function(A){return A.sort(function(U,M){return U-M})},T=function(A,U){var M=this.fillStyle,K=this.strokeStyle,st=this.lineCap,dt=this.lineWidth,vt=Math.abs(dt*this.ctx.transform.scaleX),ut=this.lineJoin;if(this.autoPaging){for(var yt,Lt,Ct=JSON.parse(JSON.stringify(this.path)),Rt=JSON.parse(JSON.stringify(this.path)),L=[],I=0;I<Rt.length;I++)if(Rt[I].x!==void 0)for(var rt=N.call(this,Rt[I]),W=0;W<rt.length;W+=1)L.indexOf(rt[W])===-1&&L.push(rt[W]);for(var q=0;q<L.length;q++)for(;this.pdf.internal.getNumberOfPages()<L[q];)v.call(this);O(L);for(var G=L[0],bt=L[L.length-1],wt=G;wt<bt+1;wt++){this.pdf.setPage(wt),this.fillStyle=M,this.strokeStyle=K,this.lineCap=st,this.lineWidth=vt,this.lineJoin=ut;var ct=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],St=wt===1?this.posY+this.margin[0]:this.margin[0],Dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ot=wt===1?0:Dt+(wt-2)*Et;if(this.ctx.clip_path.length!==0){var qt=this.path;yt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(yt,this.posX+this.margin[3],-Ot+St+this.ctx.prevPageLastElemOffset),Z.call(this,A,!0),this.path=qt}if(Lt=JSON.parse(JSON.stringify(Ct)),this.path=C(Lt,this.posX+this.margin[3],-Ot+St+this.ctx.prevPageLastElemOffset),U===!1||wt===0){var zt=(wt>G||wt<bt)&&b.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ct,Et,null).clip().discardPath()),Z.call(this,A,U),zt&&this.pdf.restoreGraphicsState()}this.lineWidth=dt}this.path=Ct}else this.lineWidth=vt,Z.call(this,A,U),this.lineWidth=dt},Z=function(A,U){if((A!=="stroke"||U||!x.call(this))&&(A==="stroke"||U||!h.call(this))){for(var M,K,st=[],dt=this.path,vt=0;vt<dt.length;vt++){var ut=dt[vt];switch(ut.type){case"begin":st.push({begin:!0}
vendor: 9,313 bytes, line 159
159);break;case"close":st.push({close:!0});break;case"mt":st.push({start:ut,deltas:[],abs:[]});break;case"lt":var yt=st.length;if(dt[vt-1]&&!isNaN(dt[vt-1].x)&&(M=[ut.x-dt[vt-1].x,ut.y-dt[vt-1].y],yt>0)){for(;yt>=0;yt--)if(st[yt-1].close!==!0&&st[yt-1].begin!==!0){st[yt-1].deltas.push(M),st[yt-1].abs.push(ut);break}}break;case"bct":M=[ut.x1-dt[vt-1].x,ut.y1-dt[vt-1].y,ut.x2-dt[vt-1].x,ut.y2-dt[vt-1].y,ut.x-dt[vt-1].x,ut.y-dt[vt-1].y],st[st.length-1].deltas.push(M);break;case"qct":var Lt=dt[vt-1].x+2/3*(ut.x1-dt[vt-1].x),Ct=dt[vt-1].y+2/3*(ut.y1-dt[vt-1].y),Rt=ut.x+2/3*(ut.x1-ut.x),L=ut.y+2/3*(ut.y1-ut.y),I=ut.x,rt=ut.y;M=[Lt-dt[vt-1].x,Ct-dt[vt-1].y,Rt-dt[vt-1].x,L-dt[vt-1].y,I-dt[vt-1].x,rt-dt[vt-1].y],st[st.length-1].deltas.push(M);break;case"arc":st.push({deltas:[],abs:[],arc:!0}),Array.isArray(st[st.length-1].abs)&&st[st.length-1].abs.push(ut)}}K=U?null:A==="stroke"?"stroke":"fill";for(var W=!1,q=0;q<st.length;q++)if(st[q].arc)for(var G=st[q].abs,bt=0;bt<G.length;bt++){var wt=G[bt];wt.type==="arc"?$.call(this,wt.x,wt.y,wt.radius,wt.startAngle,wt.endAngle,wt.counterclockwise,void 0,U,!W):R.call(this,wt.x,wt.y),W=!0}else if(st[q].close===!0)this.pdf.internal.out("h"),W=!1;else if(st[q].begin!==!0){var ct=st[q].start.x,St=st[q].start.y;g.call(this,st[q].deltas,ct,St),W=!0}K&&k.call(this,K),U&&j.call(this)}},ot=function(A){var U=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=U*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-M;case"top":return A+U-M;case"hanging":return A+U-2*M;case"middle":return A+U/2-M;default:return A}},et=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};_.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(U,M){this.colorStops.push([U,M])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},_.prototype.createPattern=function(){return this.createLinearGradient()},_.prototype.createRadialGradient=function(){return this.createLinearGradient()};var $=function(A,U,M,K,st,dt,vt,ut,yt){for(var Lt=ft.call(this,M,K,st,dt),Ct=0;Ct<Lt.length;Ct++){var Rt=Lt[Ct];Ct===0&&(yt?E.call(this,Rt.x1+A,Rt.y1+U):R.call(this,Rt.x1+A,Rt.y1+U)),X.call(this,A,U,Rt.x2,Rt.y2,Rt.x3,Rt.y3,Rt.x4,Rt.y4)}ut?j.call(this):k.call(this,vt)},k=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},j=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(A,U){this.pdf.internal.out(e(A)+" "+r(U)+" m")},y=function(A){var U;switch(A.align){case"right":case"end":U="right";break;case"center":U="center";break;default:U="left"}var M,K,st,dt=this.pdf.getTextDimensions(A.text),vt=ot.call(this,A.y),ut=et.call(this,vt)-dt.h,yt=this.ctx.transform.applyToPoint(new l(A.x,vt));if(this.autoPaging){var Lt=this.ctx.transform.decompose(),Ct=new c;Ct=(Ct=(Ct=Ct.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale);for(var Rt=this.ctx.transform.applyToRectangle(new s(A.x,vt,dt.w,dt.h)),L=Ct.applyToRectangle(new s(A.x,ut,dt.w,dt.h)),I=N.call(this,L),rt=[],W=0;W<I.length;W+=1)rt.indexOf(I[W])===-1&&rt.push(I[W]);O(rt);for(var q=rt[0],G=rt[rt.length-1],bt=q;bt<G+1;bt++){this.pdf.setPage(bt);var wt=bt===1?this.posY+this.margin[0]:this.margin[0],ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],St=this.pdf.internal.pageSize.height-this.margin[2],Dt=St-this.margin[0],Et=this.pdf.internal.pageSize.width-this.margin[1],Ot=Et-this.margin[3],qt=bt===1?0:ct+(bt-2)*Dt;if(this.ctx.clip_path.length!==0){var zt=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=C(M,this.posX+this.margin[3],-1*qt+wt),Z.call(this,"fill",!0),this.path=zt}var Ut=C([JSON.parse(JSON.stringify(L))],this.posX+this.margin[3],-qt+wt+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(K=this.pdf.internal.getFontSize(),this.pdf.setFontSize(K*A.scale),st=this.lineWidth,this.lineWidth=st*A.scale);var ae=this.autoPaging!=="text";if(ae||Ut.y+Ut.h<=St){if(ae||Ut.y>=wt&&Ut.x<=Et){var Vt=ae?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||Et-Ut.x)[0],_e=C([JSON.parse(JSON.stringify(Rt))],this.posX+this.margin[3],-qt+wt+this.ctx.prevPageLastElemOffset)[0],Kt=ae&&(bt>q||bt<G)&&b.call(this);Kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ot,Dt,null).clip().discardPath()),this.pdf.text(Vt,_e.x,_e.y,{angle:A.angle,align:U,renderingMode:A.renderingMode}),Kt&&this.pdf.restoreGraphicsState()}}else Ut.y<St&&(this.ctx.prevPageLastElemOffset+=St-Ut.y);A.scale>=.01&&(this.pdf.setFontSize(K),this.lineWidth=st)}}else A.scale>=.01&&(K=this.pdf.internal.getFontSize(),this.pdf.setFontSize(K*A.scale),st=this.lineWidth,this.lineWidth=st*A.scale),this.pdf.text(A.text,yt.x+this.posX,yt.y+this.posY,{angle:A.angle,align:U,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(K),this.lineWidth=st)},R=function(A,U,M,K){M=M||0,K=K||0,this.pdf.internal.out(e(A+M)+" "+r(U+K)+" l")},g=function(A,U,M){return this.pdf.lines(A,U,M,null,null)},X=function(A,U,M,K,st,dt,vt,ut){this.pdf.internal.out([n(a(M+A)),n(i(K+U)),n(a(st+A)),n(i(dt+U)),n(a(vt+A)),n(i(ut+U)),"c"].join(" "))},ft=function(A,U,M,K){for(var st=2*Math.PI,dt=Math.PI/2;U>M;)U-=st;var vt=Math.abs(M-U);vt<st&&K&&(vt=st-vt);for(var ut=[],yt=K?-1:1,Lt=U;vt>1e-5;){var Ct=Lt+yt*Math.min(vt,dt);ut.push(at.call(this,A,Lt,Ct)),vt-=Math.abs(Ct-Lt),Lt=Ct}return ut},at=function(A,U,M){var K=(M-U)/2,st=A*Math.cos(K),dt=A*Math.sin(K),vt=st,ut=-dt,yt=vt*vt+ut*ut,Lt=yt+vt*st+ut*dt,Ct=4/3*(Math.sqrt(2*yt*Lt)-Lt)/(vt*dt-ut*st),Rt=vt-Ct*ut,L=ut+Ct*vt,I=Rt,rt=-L,W=K+U,q=Math.cos(W),G=Math.sin(W);return{x1:A*Math.cos(U),y1:A*Math.sin(U),x2:Rt*q-L*G,y2:Rt*G+L*q,x3:I*q-rt*G,y3:I*G+rt*q,x4:A*Math.cos(M),y4:A*Math.sin(M)}},nt=function(A){return 180*A/Math.PI},it=function(A,U,M,K,st,dt){var vt=A+.5*(M-A),ut=U+.5*(K-U),yt=st+.5*(M-st),Lt=dt+.5*(K-dt),Ct=Math.min(A,st,vt,yt),Rt=Math.max(A,st,vt,yt),L=Math.min(U,dt,ut,Lt),I=Math.max(U,dt,ut,Lt);return new s(Ct,L,Rt-Ct,I-L)},mt=function(A,U,M,K,st,dt,vt,ut){var yt,Lt,Ct,Rt,L,I,rt,W,q,G,bt,wt,ct,St,Dt=M-A,Et=K-U,Ot=st-M,qt=dt-K,zt=vt-st,Ut=ut-dt;for(Lt=0;Lt<41;Lt++)q=(rt=(Ct=A+(yt=Lt/40)*Dt)+yt*((L=M+yt*Ot)-Ct))+yt*(L+yt*(st+yt*zt-L)-rt),G=(W=(Rt=U+yt*Et)+yt*((I=K+yt*qt)-Rt))+yt*(I+yt*(dt+yt*Ut-I)-W),Lt==0?(bt=q,wt=G,ct=q,St=G):(bt=Math.min(bt,q),wt=Math.min(wt,G),ct=Math.max(ct,q),St=Math.max(St,G));return new s(Math.round(bt),Math.round(wt),Math.round(ct-bt),Math.round(St-wt))},tt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,U,M=(A=this.ctx.lineDash,U=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:U}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(ie.API),function(t){var n=function(l){var s,c,f,d,_,w,h,x,b,N;for(c=[],f=0,d=(l+=s="\0\0\0\0".slice(l.length%4||4)).length;d>f;f+=4)(_=(l.charCodeAt(f)<<24)+(l.charCodeAt(f+1)<<16)+(l.charCodeAt(f+2)<<8)+l.charCodeAt(f+3))!==0?(w=(_=((_=((_=((_=(_-(N=_%85))/85)-(b=_%85))/85)-(x=_%85))/85)-(h=_%85))/85)%85,c.push(w+33,h+33,x+33,b+33,N+33)):c.push(122);return function(v,C){for(var O=C;O>0;O--)v.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},e=function(l){var s,c,f,d,_,w=String,h="length",x=255,b="charCodeAt",N="slice",v="replace";for(l[N](-2),l=l[N](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),f=[],d=0,_=(l+=s="uuuuu"[N](l[h]%5||5))[h];_>d;d+=5)c=52200625*(l[b](d)-33)+614125*(l[b](d+1)-33)+7225*(l[b](d+2)-33)+85*(l[b](d+3)-33)+(l[b](d+4)-33),f.push(x&c>>24,x&c>>16,x&c>>8,x&c);return function(C,O){for(var T=O;T>0;T--)C.pop()}(f,s[h]),w.fromCharCode.apply(w,f)},r=function(l){return l.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(l){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((l=l.replace(/\s/g,"")).indexOf(">")!==-1&&(l=l.substr(0,l.indexOf(">"))),l.length%2&&(l+="0"),s.test(l)===!1)return"";for(var c="",f=0;f<l.length;f+=2)c+=String.fromCharCode("0x"+(l[f]+l[f+1]));return c},i=function(l){for(var s=new Uint8Array(l.length),c=l.length;c--;)s[c]=l.charCodeAt(c);return(s=Hc(s)).reduce(function(f,d){return f+String.fromCharCode(d)},"")};t.processDataByFilters=function(l,s){var c=0,f=l||"",d=[];for(typeof(s=s||[])=="string"&&(s=[s]),c=0;c<s.length;c+=1)switch(s[c]){case"ASCII85Decode":case"/ASCII85Decode":f=e(f),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":f=n(f),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":f=a(f),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":f=r(f),d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":f=i(f),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[c]+'" is not implemented')}return{data:f,reverseChain:d.reverse().join(" ")}}}(ie.API),function(t){t.loadFile=function(n,e,r){return function(a,i,l){i=i!==!1,l=typeof l=="function"?l:function(){};var s=void 0;try{s=function(c,f,d){var _=new XMLHttpRequest,w=0,h=function(x){var b=x.length,N=[],v=String.fromCharCode;for(w=0;w<b;w+=1)N.push(v(255&x.charCodeAt(w)));return N.join("")};if(_.open("GET",c,!f),_.overrideMimeType("text/plain;
159 charset=x-user-defined"),f===!1&&(_.onload=function(){_.status===200?d(h(this.responseText)):d(void 0)}),_.send(null),f&&_.status===200)return h(_.responseText)}(a,i,l)}catch{}return s}(n,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(ie.API),function(t){function n(){return(he.html2canvas?Promise.resolve(he.html2canvas):Yo(()=>import("./html2canvas.esm-BfxBtG_O.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function e(){return(he.DOMPurify?Promise.resolve(he.DOMPurify):Yo(()=>import("./purify.es-Dqc4LzU4.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var c=Ie(s);return c==="undefined"?"undefined":c==="string"||s instanceof String?"string":c==="number"||s instanceof Number?"number":c==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":c==="object"?"object":"unknown"},a=function(s,c){var f=document.createElement(s);for(var d in c.className&&(f.className=c.className),c.innerHTML&&c.dompurify&&(f.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)f.style[d]=c.style[d];return f},i=function s(c,f){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),_=c.firstChild;_;_=_.nextSibling)f!==!0&&_.nodeType===1&&_.nodeName==="SCRIPT"||d.appendChild(s(_,f));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d},l=function s(c){var f=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),d=s.convert(Promise.resolve(),f);return(d=d.setProgress(1,s,1,[s])).set(c)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(s,c){return s.__proto__=c||l.prototype,s},l.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"}},l.prototype.from=function(s,c){return this.then(function(){switch(c=c||function(f){switch(r(f)){case"string":return"string";case"element":return f.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),c){case"string":return this.then(e).then(function(f){return this.set({src:a("div",{innerHTML:s,dompurify:f})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},l.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},c=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=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:s}),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"})},l.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(n).then(function(c){var f=Object.assign({},this.opt.html2canvas);return delete f.onrendered,c(this.prop.container,f)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},l.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(n).then(function(c){var f=this.opt.jsPDF,d=this.opt.fontFaces,_=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,w=Object.assign({async:!0,allowTaint:!0,scale:_,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 w.onrendered,f.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,f.context2d.posX=this.opt.x,f.context2d.posY=this.opt.y,f.context2d.margin=this.opt.margin,f.context2d.fontFaces=d,d)for(var h=0;h<d.length;++h){var x=d[h],b=x.src.find(function(N){return N.format==="truetype"});b&&f.addFont(b.url,x.ref.name,x.ref.style)}
vendor: 20,952 bytes, lines 159-165
159return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,f.context2d.save(!0),c(this.prop.container,w)}).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)})},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},l.prototype.output=function(s,c,f){return(f=f||"pdf").toLowerCase()==="img"||f.toLowerCase()==="image"?this.outputImg(s,c):this.outputPdf(s,c)},l.prototype.outputPdf=function(s,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,c)})},l.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},l.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},l.prototype.set=function(s){if(r(s)!=="object")return this;var c=Object.keys(s||{}).map(function(f){if(f in l.template.prop)return function(){this.prop[f]=s[f]};switch(f){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[f]=s[f]}}},this);return this.then(function(){return this.thenList(c)})},l.prototype.get=function(s,c){return this.then(function(){var f=s in l.template.prop?this.prop[s]:this.opt[s];return c?c(f):f})},l.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},l.prototype.setPageSize=function(s){function c(f,d){return Math.floor(f*d/72*96)}return this.then(function(){(s=s||ie.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:c(s.inner.width,s.k),height:c(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},l.prototype.setProgress=function(s,c,f,d){return s!=null&&(this.progress.val=s),c!=null&&(this.progress.state=c),f!=null&&(this.progress.n=f),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(s,c,f,d){return this.setProgress(s?this.progress.val+s:null,c||null,f?this.progress.n+f:null,d?this.progress.stack.concat(d):null)},l.prototype.then=function(s,c){var f=this;return this.thenCore(s,c,function(d,_){return f.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(w){return f.updateProgress(null,d),w}).then(d,_).then(function(w){return f.updateProgress(1),w})})},l.prototype.thenCore=function(s,c,f){f=f||Promise.prototype.then;var d=this;s&&(s=s.bind(d)),c&&(c=c.bind(d));var _=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?d:l.convert(Object.assign({},d),Promise.prototype),w=f.call(_,s,c);return l.convert(w,d.__proto__)},l.prototype.thenExternal=function(s,c){return Promise.prototype.then.call(this,s,c)},l.prototype.thenList=function(s){var c=this;return s.forEach(function(f){c=c.thenCore(f)}),c},l.prototype.catch=function(s){s&&(s=s.bind(this));var c=Promise.prototype.catch.call(this,s);return l.convert(c,this)},l.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},l.prototype.error=function(s){return this.then(function(){throw new Error(s)})},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,ie.getPageSize=function(s,c,f){if(Ie(s)==="object"){var d=s;s=d.orientation,c=d.unit||c,f=d.format||f}c=c||"mm",f=f||"a4",s=(""+(s||"P")).toLowerCase();var _,w=(""+f).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(c){case"pt":_=1;break;case"mm":_=72/25.4;break;case"cm":_=72/2.54;break;case"in":_=72;break;case"px":_=.75;break;case"pc":case"em":_=12;break;case"ex":_=6;break;default:throw"Invalid unit: "+c}var x,b=0,N=0;if(h.hasOwnProperty(w))b=h[w][1]/_,N=h[w][0]/_;else try{b=f[1],N=f[0]}catch{throw new Error("Invalid format: "+f)}if(s==="p"||s==="portrait")s="p",N>b&&(x=N,N=b,b=x);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",b>N&&(x=N,N=b,b=x)}return{width:N,height:b,unit:c,k:_,orientation:s}},t.html=function(s,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(Cc):null;var f=new l(c);return c.worker?f:f.from(s).doCallback()}}(ie.API),ie.API.addJS=function(t){var n,e,r=function(a){for(var i="",l=0;l<a.length;l++){var s=a[l];if(s==="("||s===")"){for(var c=0,f=l-1;f>=0&&a[f]==="\\";f--)c++;i+=c%2==0?"\\"+s:s}else i+=s}return i}(t);return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n+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(){n!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+n+" 0 R>>")}),this},function(t){var n;t.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/),i=0;i<a.length;i++){var l=a[i],s=r.exec(l);if(s!=null){var c=s[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(l)}if(this.outline.createNamedDestinations){var f=this.internal.pages.length,d=[];for(i=0;i<f;i++){var _=e.internal.newObject();d.push(_);var w=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var h=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<d.length;i++)e.internal.write("(page_"+(i+1)+")"+d[i]+" 0 R");e.internal.write(" ] >>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+h+" 0 R"),e.internal.write(">>","endobj")}}]),t.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 "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,a,i){var l={title:a,options:i,children:[]};return r==null&&(r=this.root),r.children.push(l),l},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,i=0;i<r.children.length;i++){var l=r.children[i];this.objStart(l),this.line("/Title "+this.makeString(l.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1])));var s=this.count=this.count_r({count:0},l);if(s>0&&this.line("/Count "+s),l.options&&l.options.pageNumber){var c=e.internal.getPageInfo(l.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var f=0;f<r.children.length;f++)this.renderItems(r.children[f])},e.outline.line=function(r){this.ctx.val+=r+`\r 160`},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 161`+r.id+` 0 obj\r 162<<\r 163`},e.outline.objEnd=function(){this.ctx.val+=`>> \r 164endobj\r 165`},e.outline.count_r=function(r,a){for(var i=0;i<a.children.length;i++)r.count++,this.count_r(r,a.children[i]);return r.count}}])}(ie.API),function(t){var n=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,r,a,i,l,s){var c,f=this.decode.DCT_DECODE,d=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=l||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,c=function(_){for(var w,h=256*_.charCodeAt(4)+_.charCodeAt(5),x=_.length,b={width:0,height:0,numcomponents:1},N=4;N<x;N+=2){if(N+=h,n.indexOf(_.charCodeAt(N+1))!==-1){w=256*_.charCodeAt(N+5)+_.charCodeAt(N+6),b={width:256*_.charCodeAt(N+7)+_.charCodeAt(N+8),height:w,numcomponents:_.charCodeAt(N+9)};break}h=256*_.charCodeAt(N+2)+_.charCodeAt(N+3)}return b}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),c.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}d={data:e,width:c.width,height:c.height,colorSpace:s,bitsPerComponent:8,filter:f,index:r,alias:a}}return d}}(ie.API),ie.API.processPNG=function(t,n,e,r){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var a,i=_m(t,{checkCrc:!0}),l=i.width,s=i.height,c=i.channels,f=i.palette,d=i.depth;a=f&&c===1?function($){for(var k=$.width,j=$.height,E=$.data,y=$.palette,R=$.depth,g=!1,X=[],ft=[],at=void 0,nt=!1,it=0,mt=0;mt<y.length;mt++){var tt=Sh(y[mt],4),A=tt[0],U=tt[1],M=tt[2],K=tt[3];X.push(A,U,M),K!=null&&(K===0?(it++,ft.length<1&&ft.push(mt)):K<255&&(nt=!0))}if(nt||it>1){g=!0,ft=void 0;var st=k*j;at=new Uint8Array(st);for(var dt=new DataView(E.buffer),vt=0;vt<st;vt++){var ut=Pc(dt,vt,R),yt=Sh(y[ut],4)[3];at[vt]=yt}}else it===0&&(ft=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:g?8:void 0,colorBytes:E,alphaBytes:at,needSMask:g,palette:X,mask:ft}}(i):c===2||c===4?function($){for(var k=$.data,j=$.width,E=$.height,y=$.channels,R=$.depth,g=y===2?"DeviceGray":"DeviceRGB",X=y-1,ft=j*E,at=X,nt=ft*at,it=1*ft,mt=Math.ceil(nt*R/8),tt=Math.ceil(it*R/8),A=new Uint8Array(mt),U=new Uint8Array(tt),M=new DataView(k.buffer),K=new DataView(A.buffer),st=new DataView(U.buffer),dt=!1,vt=0;vt<ft;vt++){for(var ut=vt*y,yt=0;yt<at;yt++)Uf(K,Pc(M,ut+yt,R),vt*at+yt,R);var Lt=Pc(M,ut+at,R);Lt<(1<<R)-1&&(dt=!0),Uf(st,Lt,1*vt,R)}return{colorSpace:g,colorsPerPixel:X,sMaskBitsPerComponent:dt?R:void 0,colorBytes:A,alphaBytes:U,needSMask:dt}}(i):function($){var k=$.data,j=$.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:j,colorsPerPixel:j==="DeviceGray"?1:3,colorBytes:k instanceof Uint16Array?function(E){for(var y=E.length,R=new Uint8Array(2*y),g=new DataView(R.buffer,R.byteOffset,R.byteLength),X=0;X<y;X++)g.setUint16(2*X,E[X],!1);return R}(k):k,needSMask:!1}}(i);var _,w,h,x=a,b=x.colorSpace,N=x.colorsPerPixel,v=x.sMaskBitsPerComponent,C=x.colorBytes,O=x.alphaBytes,T=x.needSMask,Z=x.palette,ot=x.mask,et=null;return r!==ie.API.image_compression.NONE&&typeof Hc=="function"?(et=function($){var k;switch($){case ie.API.image_compression.FAST:k=11;break;case ie.API.image_compression.MEDIUM:k=13;break;case ie.API.image_compression.SLOW:k=14;break;default:k=12}return k}(r),_=this.decode.FLATE_DECODE,w="/Predictor ".concat(et," /Colors ").concat(N," /BitsPerComponent ").concat(d," /Columns ").concat(l),t=Tf(C,Math.ceil(l*N*d/8),N,d,r),T&&(h=Tf(O,Math.ceil(l*v/8),1,v,r))):(_=void 0,w=void 0,t=C,T&&(h=O)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:e,data:t,index:n,filter:_,decodeParameters:w,transparency:ot,palette:Z,sMask:h,predictor:et,width:l,height:s,bitsPerComponent:d,sMaskBitsPerComponent:v,colorSpace:b}}},function(t){t.processGIF89A=function(n,e,r,a){var i=new zm(n),l=i.width,s=i.height,c=[];i.decodeAndBlitFrameRGBA(0,c);var f={data:c,width:l,height:s},d=new jc(100).encode(f,100);return t.processJPEG.call(this,d,e,r,a)},t.processGIF87A=t.processGIF89A}(ie.API),_r.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 t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var n=0;n<t;n++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[n]={red:a,green:r,blue:e,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},_r.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,n=this.width*this.height*4;if(n>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(n);try{this[t]()}catch(e){Oe.log("bit decode error:"+e)}},_r.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,a=0;a<n;a++)for(var i=this.datav.getUint8(this.pos++,!0),l=r*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var c=this.palette[i>>7-s&1];this.data[l+4*s]=c.blue,this.data[l+4*s+1]=c.green,this.data[l+4*s+2]=c.red,this.data[l+4*s+3]=255}e!==0&&(this.pos+=4-e)}},_r.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<t;a++){var i=this.datav.getUint8(this.pos++,!0),l=r*this.width*4+2*a*4,s=i>>4,c=15&i,f=this.palette[s];if(this.data[l]=f.blue,this.data[l+1]=f.green,this.data[l+2]=f.red,this.data[l+3]=255,2*a+1>=this.width)break;f=this.palette[c],this.data[l+4]=f.blue,this.data[l+4+1]=f.green,this.data[l+4+2]=f.red,this.data[l+4+3]=255}n!==0&&(this.pos+=4-n)}},_r.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),i=e*this.width*4+4*r;if(a<this.palette.length){var l=this.palette[a];this.data[i]=l.red,this.data[i+1]=l.green,this.data[i+2]=l.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}t!==0&&(this.pos+=4-t)}},_r.prototype.bit15=function(){for(var t=this.width%3,n=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 i=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(i&n)/n*255|0,s=(i>>5&n)/n*255|0,c=(i>>10&n)/n*255|0,f=i>>15?255:0,d=r*this.width*4+4*a;this.data[d]=c,this.data[d+1]=s,this.data[d+2]=l,this.data[d+3]=f}this.pos+=t}},_r.prototype.bit16=function(){for(var t=this.width%3,n=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,i=0;i<this.width;i++){var l=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(l&n)/n*255|0,c=(l>>5&e)/e*255|0,f=(l>>11)/n*255|0,d=a*this.width*4+4*i;this.data[d]=f,this.data[d+1]=c,this.data[d+2]=s,this.data[d+3]=255}this.pos+=t}},_r.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),l=n*this.width*4+4*e;this.data[l]=i,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=255}this.pos+=this.width%4}},_r.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+4*e;this.data[s]=i,this.data[s+1]=a,this.data[s+2]=r,this.data[s+3]=l}},_r.prototype.getData=function(){return this.data},function(t){t.processBMP=function(n,e,r,a){var i=new _r(n,!1),l=i.width,s=i.height,c={data:i.getData(),width:l,height:s},f=new jc(100).encode(c,100);return t.processJPEG.call(this,f,e,r,a)}}(ie.API),Hf.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(n,e,r,a){var i=new Hf(n),l=i.width,s=i.height,c={data:i.getData(),width:l,height:s},f=new jc(100).encode(c,100);return t.processJPEG.call(this,f,e,r,a)}}(ie.API),ie.API.processRGBA=function(t,n,e){for(var r=t.data,a=r.length,i=new Uint8Array(a/4*3),l=new Uint8Array(a/4),s=0,c=0,f=0;f<a;f+=4){var d=r[f],_=r[f+1],w=r[f+2],h=r[f+3];i[s++]=d,i[s++]=_,i[s++]=w,l[c++]=h}var x=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(l),data:x,index:n,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},ie.API.setLanguage=function(t){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 (Canad
165a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,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},Ta=ie.API,Wo=Ta.getCharWidthsArray=function(t,n){var e,r,a=(n=n||{}).font||this.internal.getFont(),i=n.fontSize||this.internal.getFontSize(),l=n.charSpace||this.internal.getCharSpace(),s=n.widths?n.widths:a.metadata.Unicode.widths,c=s.fof?s.fof:1,f=n.kerning?n.kerning:a.metadata.Unicode.kerning,d=f.fof?f.fof:1,_=n.doKerning!==!1,w=0,h=t.length,x=0,b=s[0]||c,N=[];for(e=0;e<h;e++)r=t.charCodeAt(e),typeof a.metadata.widthOfString=="function"?N.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+l*(1e3/i)||0)/1e3):(w=_&&Ie(f[r])==="object"&&!isNaN(parseInt(f[r][x],10))?f[r][x]/d:0,N.push((s[r]||b)/c+w)),x=r;return N},Ff=Ta.getStringUnitWidth=function(t,n){var e=(n=n||{}).fontSize||this.internal.getFontSize(),r=n.font||this.internal.getFont(),a=n.charSpace||this.internal.getCharSpace();return Ta.processArabic&&(t=Ta.processArabic(t)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(t,e,a)/e:Wo.apply(this,arguments).reduce(function(i,l){return i+l},0)},Rf=function(t,n,e,r){for(var a=[],i=0,l=t.length,s=0;i!==l&&s+n[i]<e;)s+=n[i],i++;a.push(t.slice(0,i));var c=i;for(s=0;i!==l;)s+n[i]>r&&(a.push(t.slice(c,i)),s=0,c=i),s+=n[i],i++;return c!==i&&a.push(t.slice(c,i)),a},Of=function(t,n,e){e||(e={});var r,a,i,l,s,c,f,d=[],_=[d],w=e.textIndent||0,h=0,x=0,b=t.split(" "),N=Wo.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?b[0].length+2:e.lineIndent||0){var v=Array(c).join(" "),C=[];b.map(function(T){(T=T.split(/\s*\n/)).length>1?C=C.concat(T.map(function(Z,ot){return(ot&&Z.length?` 166`:"")+Z})):C.push(T[0])}),b=C,c=Ff.apply(this,[v,e])}for(i=0,l=b.length;i<l;i++){var O=0;if(r=b[i],c&&r[0]==` 167`&&(r=r.substr(1),O=1),w+h+(x=(a=Wo.apply(this,[r,e])).reduce(function(T,Z){return T+Z},0))>n||O){if(x>n){for(s=Rf.apply(this,[r,a,n-(w+h),n]),d.push(s.shift()),d=[s.pop()];s.length;)_.push([s.shift()]);x=a.slice(r.length-(d[0]?d[0].length:0)).reduce(function(T,Z){return T+Z},0)}else d=[r];_.push(d),w=x+c,h=N}else d.push(r),w+=h+x,h=N}return f=c?function(T,Z){return(Z?v:"")+T.join(" ")}:function(T){return T.join(" ")},_.map(f)},Ta.splitTextToSize=function(t,n,e){var r,a=(e=e||{}).fontSize||this.internal.getFontSize(),i=function(d){if(d.widths&&d.kerning)return{widths:d.widths,kerning:d.kerning};var _=this.internal.getFont(d.fontName,d.fontStyle),w="Unicode";return _.metadata[w]?{widths:_.metadata[w].widths||{0:1},kerning:_.metadata[w].kerning||{}}:{font:_.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var l=1*this.internal.scaleFactor*n/a;i.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=e.lineIndent;var s,c,f=[];for(s=0,c=r.length;s<c;s++)f=f.concat(Of.apply(this,[r[s],l,i]));return f},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var n="0123456789abcdef",e="klmnopqrstuvwxyz",r={},a={},i=0;i<16;i++)r[e[i]]=n[i],a[n[i]]=e[i];var l=function(w){return"0x"+parseInt(w,10).toString(16)},s=t.__fontmetrics__.compress=function(w){var h,x,b,N,v=["{"];for(var C in w){if(h=w[C],isNaN(parseInt(C,10))?x="'"+C+"'":(C=parseInt(C,10),x=(x=l(C).slice(2)).slice(0,-1)+a[x.slice(-1)]),typeof h=="number")h<0?(b=l(h).slice(3),N="-"):(b=l(h).slice(2),N=""),b=N+b.slice(0,-1)+a[b.slice(-1)];
vendor: 1,100 bytes, line 167
167else{if(Ie(h)!=="object")throw new Error("Don't know what to do with value type "+Ie(h)+".");b=s(h)}v.push(x+b)}return v.push("}"),v.join("")},c=t.__fontmetrics__.uncompress=function(w){if(typeof w!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,x,b,N,v={},C=1,O=v,T=[],Z="",ot="",et=w.length-1,$=1;$<et;$+=1)(N=w[$])=="'"?h?(b=h.join(""),h=void 0):h=[]:h?h.push(N):N=="{"?(T.push([O,b]),O={},b=void 0):N=="}"?((x=T.pop())[0][x[1]]=O,b=void 0,O=x[0]):N=="-"?C=-1:b===void 0?r.hasOwnProperty(N)?(Z+=r[N],b=parseInt(Z,16)*C,C=1,Z=""):Z+=N:r.hasOwnProperty(N)?(ot+=r[N],O[b]=parseInt(ot,16)*C,C=1,b=void 0,ot=""):ot+=N;return v},f={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:f,"Courier-Bold":f,"Courier-BoldOblique":f,"Courier-Oblique":f,Helvetica:f,"Helvetica-Bold":f,"Helvetica-BoldOblique":f,"Helvetica-Oblique":f,"Times-Roman":f,"Times-Bold":f,"Times-BoldItalic":f,"Times-Italic":f}},_
vendor: 14,693 bytes, line 167
167={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}}}")}};
vendor: 45,033 bytes, lines 167-195
167t.events.push(["addFont",function(w){var h=w.font,x=_.Unicode[h.postScriptName];x&&(h.metadata.Unicode={},h.metadata.Unicode.widths=x.widths,h.metadata.Unicode.kerning=x.kerning);var b=d.Unicode[h.postScriptName];b&&(h.metadata.Unicode.encoding=b,h.encoding=b.codePages[0])}])}(ie.API),function(t){var n=function(e){for(var r=e.length,a=new Uint8Array(r),i=0;i<r;i++)a[i]=e.charCodeAt(i);return a};t.API.events.push(["addFont",function(e){var r=void 0,a=e.font,i=e.instance;if(!a.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=i.existsFileInVFS(a.postScriptName)===!1?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(l,s){s=/^\x00\x01\x00\x00/.test(s)?n(s):n(Qo(s)),l.metadata=t.API.TTFFont.open(s),l.metadata.Unicode=l.metadata.Unicode||{encoding:{},kerning:{},widths:[]},l.metadata.glyIdsUsed=[0]})(a,r)}}])}(ie),ie.API.addSvgAsImage=function(t,n,e,r,a,i,l,s){if(isNaN(n)||isNaN(e))throw Oe.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw Oe.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 f=c.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},_=this;return(he.canvg?Promise.resolve(he.canvg):Yo(()=>import("./index.es-hdsDxb-v.js"),__vite__mapDeps([0,1]))).catch(function(w){return Promise.reject(new Error("Could not load canvg: "+w))}).then(function(w){return w.default?w.default:w}).then(function(w){return w.fromString(f,t,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(w){return w.render(d)}).then(function(){_.addImage(c.toDataURL("image/jpeg",1),n,e,r,a,l,s)})},ie.API.putTotalPages=function(t){var n,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(n=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(n=new RegExp(this.pdfEscape16(t,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(n,e);return this},ie.API.viewerPreferences=function(t,n){var e;t=t||{},n=n||!1;var r,a,i,l={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(l),c=[],f=0,d=0,_=0;function w(x,b){var N,v=!1;for(N=0;N<x.length;N+=1)x[N]===b&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(l)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||n===!0){var h=s.length;for(_=0;_<h;_+=1)e[s[_]].value=e[s[_]].defaultValue,e[s[_]].explicitSet=!1}if(Ie(t)==="object"){for(a in t)if(i=t[a],w(s,a)&&i!==void 0){if(e[a].type==="boolean"&&typeof i=="boolean")e[a].value=i;else if(e[a].type==="name"&&w(e[a].valueSet,i))e[a].value=i;else if(e[a].type==="integer"&&Number.isInteger(i))e[a].value=i;else if(e[a].type==="array"){for(f=0;f<i.length;f+=1)if(r=!0,i[f].length===1&&typeof i[f][0]=="number")c.push(String(i[f]-1));else if(i[f].length>1){for(d=0;d<i[f].length;d+=1)typeof i[f][d]!="number"&&(r=!1);r===!0&&c.push([i[f][0]-1,i[f][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 x,b=[];for(x in e)e[x].explicitSet===!0&&(e[x].type==="name"?b.push("/"+x+" /"+e[x].value):b.push("/"+x+" "+e[x].value));b.length!==0&&this.internal.write(`/ViewerPreferences 168<< 169`+b.join(` 170`)+` 171>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},ie.API.addMetadata=function(t,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:n??"http://jspdf.default.namespaceuri/",rawXml:typeof n=="boolean"&&n},this.internal.events.subscribe("putCatalog",qm),this.internal.events.subscribe("postPutResources",Um)),this},function(t){var n=t.API,e=n.pdfEscape16=function(i,l){for(var s,c=l.metadata.Unicode.widths,f=["","0","00","000","0000"],d=[""],_=0,w=i.length;_<w;++_){if(s=l.metadata.characterToGlyph(i.charCodeAt(_)),l.metadata.glyIdsUsed.push(s),l.metadata.toUnicode[s]=i.charCodeAt(_),c.indexOf(s)==-1&&(c.push(s),c.push([parseInt(l.metadata.widthOfGlyph(s),10)])),s=="0")return d.join("");s=s.toString(16),d.push(f[4-s.length],s)}return d.join("")},r=function(i){var l,s,c,f,d,_,w;for(d=`/CIDInit /ProcSet findresource begin 17212 dict begin 173begincmap 174/CIDSystemInfo << 175 /Registry (Adobe) 176 /Ordering (UCS) 177 /Supplement 0 178>> def 179/CMapName /Adobe-Identity-UCS def 180/CMapType 2 def 1811 begincodespacerange 182<0000><ffff> 183endcodespacerange`,c=[],_=0,w=(s=Object.keys(i).sort(function(h,x){return h-x})).length;_<w;_++)l=s[_],c.length>=100&&(d+=` 184`+c.length+` beginbfchar 185`+c.join(` 186`)+` 187endbfchar`,c=[]),i[l]!==void 0&&i[l]!==null&&typeof i[l].toString=="function"&&(f=("0000"+i[l].toString(16)).slice(-4),l=("0000"+(+l).toString(16)).slice(-4),c.push("<"+l+"><"+f+">"));return c.length&&(d+=` 188`+c.length+` beginbfchar 189`+c.join(` 190`)+` 191endbfchar 192`),d+`endcmap 193CMapName currentdict /CMap defineresource pop 194end 195end`};n.events.push(["putFont",function(i){(function(l){var s=l.font,c=l.out,f=l.newObject,d=l.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="Identity-H"){for(var _=s.metadata.Unicode.widths,w=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",x=0;x<w.length;x++)h+=String.fromCharCode(w[x]);var b=f();d({data:h,addLength1:!0,objectId:b}),c("endobj");var N=f();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:N}),c("endobj");var v=f();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Ba(s.fontName)),c("/FontFile2 "+b+" 0 R"),c("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),c("/Flags "+s.metadata.flags),c("/StemV "+s.metadata.stemV),c("/ItalicAngle "+s.metadata.italicAngle),c("/Ascent "+s.metadata.ascender),c("/Descent "+s.metadata.decender),c("/CapHeight "+s.metadata.capHeight),c(">>"),c("endobj");var C=f();c("<<"),c("/Type /Font"),c("/BaseFont /"+Ba(s.fontName)),c("/FontDescriptor "+v+" 0 R"),c("/W "+t.API.PDFObject.convert(_)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+s.encoding+")"),c(">>"),c(">>"),c("endobj"),s.objectNumber=f(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+N+" 0 R"),c("/BaseFont /"+Ba(s.fontName)),c("/Encoding /"+s.encoding),c("/DescendantFonts ["+C+" 0 R]"),c(">>"),c("endobj"),s.isAlreadyPutted=!0}})(i)}]),n.events.push(["putFont",function(i){(function(l){var s=l.font,c=l.out,f=l.newObject,d=l.putStream;if(s.metadata instanceof t.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var _=s.metadata.rawData,w="",h=0;h<_.length;h++)w+=String.fromCharCode(_[h]);var x=f();d({data:w,addLength1:!0,objectId:x}),c("endobj");var b=f();d({data:r(s.metadata.toUnicode),addLength1:!0,objectId:b}),c("endobj");var N=f();c("<<"),c("/Descent "+s.metadata.decender),c("/CapHeight "+s.metadata.capHeight),c("/StemV "+s.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+x+" 0 R"),c("/Flags 96"),c("/FontBBox "+t.API.PDFObject.convert(s.metadata.bbox)),c("/FontName /"+Ba(s.fontName)),c("/ItalicAngle "+s.metadata.italicAngle),c("/Ascent "+s.metadata.ascender),c(">>"),c("endobj"),s.objectNumber=f();for(var v=0;v<s.metadata.hmtx.widths.length;v++)s.metadata.hmtx.widths[v]=parseInt(s.metadata.hmtx.widths[v]*(1e3/s.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+b+" 0 R/BaseFont/"+Ba(s.fontName)+"/FontDescriptor "+N+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),c("endobj"),s.isAlreadyPutted=!0}})(i)}]);var a=function(i){var l,s=i.text||"",c=i.x,f=i.y,d=i.options||{},_=i.mutex||{},w=_.pdfEscape,h=_.activeFontKey,x=_.fonts,b=h,N="",v=0,C="",O=x[b].encoding;if(x[b].encoding!=="Identity-H")return{text:s,x:c,y:f,options:d,mutex:_};for(C=s,b=h,Array.isArray(s)&&(C=s[0]),v=0;v<C.length;v+=1)x[b].metadata.hasOwnProperty("cmap")&&(l=x[b].metadata.cmap.unicode.codeMap[C[v].charCodeAt(0)]),l||C[v].charCodeAt(0)<256&&x[b].metadata.hasOwnProperty("Unicode")?N+=C[v]:N+="";var T="";return parseInt(b.slice(1))<14||O==="WinAnsiEncoding"?T=w(N,b).split("").map(function(Z){return Z.charCodeAt(0).toString(16)}).join(""):O==="Identity-H"&&(T=e(N,x[b])),_.isHex=!0,{text:T,x:c,y:f,options:d,mutex:_}};n.events.push(["postProcessText",function(i){var l=i.text||"",s=[],c={text:l,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(l)){var f=0;for(f=0;f<l.length;f+=1)Array.isArray(l[f])&&l[f].length===3?s.push([a(Object.assign({},c,{text:l[f][0]})).text,l[f][1],l[f][2]]):s.push(a(Object.assign({},c,{text:l[f]})).text);i.text=s}else i.text=a(Object.assign({},c,{text:l})).text}])}(ie),function(t){var n=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,r){return n.call(this),this.internal.vFS[e]=r,this},t.getFileFromVFS=function(e){return n.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}}(ie.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var a,i,l,s,c,f,d,_=n,w=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],x={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},b={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},N=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","â¹","âº","â¹","â ","â","â ","â½","â¾","â½","â","â","â","â¤","â¥","â¤","â©","âª","â©","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","ï¹","﹤","ï¹¥","﹤"],v=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)$/),C=!1,O=0;this.__bidiEngine__={};var T=function(E){var y=E.charCodeAt(),R=y>>8,g=b[R];return g!==void 0?_[256*g+(255&y)]:R===252||R===253?"AL":v.test(R)?"L":R===8?"R":"N"},Z=function(E){for(var y,R=0;R<E.length;R++){if((y=T(E.charAt(R)))==="L")return!1;if(y==="R")return!0}return!1},ot=function(E,y,R,g){var X,ft,at,nt,it=y[g];switch(it){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":C=!1;break;case"N":case"AN":break;case"EN":C&&(it="AN");break;case"AL":C=!0,it="R";break;case"WS":case"BN":it="N";break;case"CS":g<1||g+1>=y.length||(X=R[g-1])!=="EN"&&X!=="AN"||(ft=y[g+1])!=="EN"&&ft!=="AN"?it="N":C&&(ft="AN"),it=ft===X?ft:"N";break;case"ES":it=(X=g>0?R[g-1]:"B")==="EN"&&g+1<y.length&&y[g+1]==="EN"?"EN":"N";break;case"ET":if(g>0&&R[g-1]==="EN"){it="EN";break}if(C){it="N";break}for(at=g+1,nt=y.length;at<nt&&y[at]==="ET";)at++;it=at<nt&&y[at]==="EN"?"EN":"N";break;case"NSM":if(l&&!s){for(nt=y.length,at=g+1;at<nt&&y[at]==="NSM";)at++;if(at<nt){var mt=E[g],tt=mt>=1425&&mt<=2303||mt===64286;if(X=y[at],tt&&(X==="R"||X==="AL")){it="R";break}}}it=g<1||(X=y[g-1])==="B"?"N":R[g-1];break;case"B":C=!1,a=!0,it=O;break;case"S":i=!0,it="N"}return it},et=function(E,y,R){var g=E.split("");return R&&$(g,R,{hiLevel:O}),g.reverse(),y&&y.reverse(),g.join("")},$=function(E,y,R){var g,X,ft,at,nt,it=-1,mt=E.length,tt=0,A=[],U=O?h:w,M=[];for(C=!1,a=!1,i=!1,X=0;X<mt;X++)M[X]=T(E[X]);for(ft=0;ft<mt;ft++){if(nt=tt,A[ft]=ot(E,M,A,ft),g=240&(tt=U[nt][x[A[ft]]]),tt&=15,y[ft]=at=U[tt][5],g>0)if(g===16){for(X=it;X<ft;X++)y[X]=1;it=-1}else it=-1;if(U[tt][6])it===-1&&(it=ft);else if(it>-1){for(X=it;X<ft;X++)y[X]=at;it=-1}M[ft]==="B"&&(y[ft]=0),R.hiLevel|=at}i&&function(K,st,dt){for(var vt=0;vt<dt;vt++)if(K[vt]==="S"){st[vt]=O;for(var ut=vt-1;ut>=0&&K[ut]==="WS";ut--)st[ut]=O}}(M,y,mt)},k=function(E,y,R,g,X){if(!(X.hiLevel<E)){if(E===1&&O===1&&!a)return y.reverse(),void(R&&R.reverse());for(var ft,at,nt,it,mt=y.length,tt=0;tt<mt;){if(g[tt]>=E){for(nt=tt+1;nt<mt&&g[nt]>=E;)nt++;for(it=tt,at=nt-1;it<at;it++,at--)ft=y[it],y[it]=y[at],y[at]=ft,R&&(ft=R[it],R[it]=R[at],R[at]=ft);tt=nt}tt++}}},j=function(E,y,R){var g=E.split(""),X={hiLevel:O};return R||(R=[]),$(g,R,X),function(ft,at,nt){if(nt.hiLevel!==0&&d)for(var it,mt=0;mt<ft.length;mt++)at[mt]===1&&(it=N.indexOf(ft[mt]))>=0&&(ft[mt]=N[it+1])}(g,R,X),k(2,g,y,R,X),k(1,g,y,R,X),g.join("")};return this.__bidiEngine__.doBidiReorder=function(E,y,R){if(function(X,ft){if(ft)for(var at=0;at<X.length;at++)ft[at]=at;s===void 0&&(s=Z(X)),f===void 0&&(f=Z(X))}(E,y),l||!c||f)if(l&&c&&s^f)O=s?1:0,E=et(E,y,R);else if(!l&&c&&f)O=s?1:0,E=j(E,y,R),E=et(E,y);else if(!l||s||c||f){if(l&&!c&&s^f)E=et(E,y),s?(O=0,E=j(E,y,R)):(O=1,E=j(E,y,R),E=et(E,y));else if(l&&s&&!c&&f)O=1,E=j(E,y,R),E=et(E,y);else if(!l&&!c&&s^f){var g=d;s?(O=1,E=j(E,y,R),O=0,d=!1,E=j(E,y,R),d=g):(O=0,E=j(E,y,R),E=et(E,y),O=1,d=!1,E=j(E,y,R),d=g,E=et(E,y))}}else O=0,E=j(E,y,R);else O=s?1:0,E=j(E,y,R);return E},this.__bidiEngine__.setOptions=function(E){E&&(l=E.isInputVisual,c=E.isOutputVisual,s=E.isInputRtl,f=E.isOutputRtl,d=E.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var n=["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 t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var l=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,e.setOptions(i),Object.prototype.toString.call(a)==="[object Array]"){var s=0;for(l=[],s=0;s<a.length;s+=1)Object.prototype.toString.call(a[s])==="[object Array]"?l.push([e.doBidiReorder(a[s][0]),a[s][1],a[s][2]]):l.push([e.doBidiReorder(a[s])]);r.text=l}else r.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])}(ie),ie.API.TTFFont=function(){function t(n){var e;if(this.rawData=n,e=this.contents=new Ei(n),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new rb(this),this.registerTTF()}return t.open=function(n){return new t(n)},t.prototype.parse=function(){return this.directory=new Hm(this.contents),this.head=new Gm(this),this.name=new Ym(this),this.cmap=new D1(this),this.toUnicode={},this.hhea=new $m(this),this.maxp=new Xm(this),this.hmtx=new Jm(this),this.post=new Zm(this),this.os2=new Vm(this),this.loca=new nb(this),this.glyf=new Qm(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]},t.prototype.registerTTF=function(){var n,e,r,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var l,s,c,f;for(f=[],l=0,s=(c=this.bbox).length;l<s;l++)n=c[l],f.push(Math.round(n*this.scaleFactor));return f}.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=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(n){var e;return((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,r){var a,i,l,s;for(l=0,i=0,s=(n=""+n).length;0<=s?i<s:i>s;i=0<=s?++i:--i)a=n.charCodeAt(i),l+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/e)||0;return l*(e/1e3)},t.prototype.lineHeight=function(n,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*n},t}();var xr,Ei=function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,r;for(r=[],e=0;0<=n?e<n:e>n;e=0<=n?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(n){var e,r,a;for(a=[],e=0,r=n.length;0<=r?e<r:e>r;e=0<=r?++e:--e)a.push(this.writeByte(n.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,r,a,i,l,s,c;return n=this.readByte(),e=this.readByte(),r=this.readByte(),a=this.readByte(),i=this.readByte(),l=this.readByte(),s=this.readByte(),c=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^i)+65536*(255^l)+256*(255^s)+(255^c)+1):72057594037927940*n+281474976710656*e+1099511627776*r+4294967296*a+16777216*i+65536*l+256*s+c},t.prototype.writeLongLong=function(n){var e,r;return e=Math.floor(n/4294967296),r=4294967295&n,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)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,r;for(e=[],r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(n){var e,r,a,i;for(i=[],r=0,a=n.length;r<a;r++)e=n[r],i.push(this.writeByte(e));return i},t}(),Hm=function(){var t;function n(e){var r,a,i;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,i=this.tableCount;0<=i?a<i:a>i;a=0<=i?++a:--a)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return n.prototype.encode=function(e){var r,a,i,l,s,c,f,d,_,w,h,x,b;for(b in h=Object.keys(e).length,c=Math.log(2),_=16*Math.floor(Math.log(h)/c),l=Math.floor(_/c),d=16*h-_,(a=new Ei).writeInt(this.scalarType),a.writeShort(h),a.writeShort(_),a.writeShort(l),a.writeShort(d),i=16*h,f=a.pos+i,s=null,x=[],e)for(w=e[b],a.writeString(b),a.writeInt(t(w)),a.writeInt(f),a.writeInt(w.length),x=x.concat(w),b==="head"&&(s=f),f+=w.length;f%4;)x.push(0),f++;return a.write(x),r=2981146554-t(a.data),a.pos=s+8,a.writeUInt32(r),a.data},t=function(e){var r,a,i,l;for(e=B1.call(e);e.length%4;)e.push(0);for(i=new Ei(e),a=0,r=0,l=e.length;r<l;r=r+=4)a+=i.readUInt32();return 4294967295&a},n}(),Wm={}.hasOwnProperty,Mr=function(t,n){for(var e in n)Wm.call(n,e)&&(t[e]=n[e]);function r(){this.constructor=t}return r.prototype=n.prototype,t.prototype=new r,t.__super__=n.prototype,t};xr=function(){function t(n){var e;this.file=n,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 t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var Gm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="head",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.revision=n.readInt(),this.checkSumAdjustment=n.readInt(),this.magicNumber=n.readInt(),this.flags=n.readShort(),this.unitsPerEm=n.readShort(),this.created=n.readLongLong(),this.modified=n.readLongLong(),this.xMin=n.readShort(),this.yMin=n.readShort(),this.xMax=n.readShort(),this.yMax=n.readShort(),this.macStyle=n.readShort(),this.lowestRecPPEM=n.readShort(),this.fontDirectionHint=n.readShort(),this.indexToLocFormat=n.readShort(),this.glyphDataFormat=n.readShort()},t.prototype.encode=function(n){var e;return(e=new Ei).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),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(n),e.writeShort(this.glyphDataFormat),e.data},t}(),Wf=function(){function t(n,e){var r,a,i,l,s,c,f,d,_,w,h,x,b,N,v,C,O;switch(this.platformID=n.readUInt16(),this.encodingID=n.readShort(),this.offset=e+n.readInt(),_=n.pos,n.pos=this.offset,this.format=n.readUInt16(),this.length=n.readUInt16(),this.language=n.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]=n.readByte();break;case 4:for(h=n.readUInt16(),w=h/2,n.pos+=6,i=function(){var T,Z;for(Z=[],c=T=0;0<=w?T<w:T>w;c=0<=w?++T:--T)Z.push(n.readUInt16());return Z}(),n.pos+=2,b=function(){var T,Z;for(Z=[],c=T=0;0<=w?T<w:T>w;c=0<=w?++T:--T)Z.push(n.readUInt16());return Z}(),f=function(){var T,Z;for(Z=[],c=T=0;0<=w?T<w:T>w;c=0<=w?++T:--T)Z.push(n.readUInt16());return Z}(),d=function(){var T,Z;for(Z=[],c=T=0;0<=w?T<w:T>w;c=0<=w?++T:--T)Z.push(n.readUInt16());return Z}(),a=(this.length-n.pos+this.offset)/2,s=function(){var T,Z;for(Z=[],c=T=0;0<=a?T<a:T>a;c=0<=a?++T:--T)Z.push(n.readUInt16());return Z}(),c=v=0,O=i.length;v<O;c=++v)for(N=i[c],r=C=x=b[c];x<=N?C<=N:C>=N;r=x<=N?++C:--C)d[c]===0?l=r+f[c]:(l=s[d[c]/2+(r-x)-(w-c)]||0)!==0&&(l+=f[c]),this.codeMap[r]=65535&l}n.pos=_}return t.encode=function(n,e){var r,a,i,l,s,c,f,d,_,w,h,x,b,N,v,C,O,T,Z,ot,et,$,k,j,E,y,R,g,X,ft,at,nt,it,mt,tt,A,U,M,K,st,dt,vt,ut,yt,Lt,Ct;switch(g=new Ei,l=Object.keys(n).sort(function(Rt,L){return Rt-L}),e){case"macroman":for(b=0,N=function(){var Rt=[];for(x=0;x<256;++x)Rt.push(0);return Rt}(),C={0:0},i={},X=0,it=l.length;X<it;X++)C[ut=n[a=l[X]]]==null&&(C[ut]=++b),i[a]={old:n[a],new:C[n[a]]},N[a]=C[n[a]];return g.writeUInt16(1),g.writeUInt16(0),g.writeUInt32(12),g.writeUInt16(0),g.writeUInt16(262),g.writeUInt16(0),g.write(N),{charMap:i,subtable:g.data,maxGlyphID:b+1};case"unicode":for(y=[],_=[],O=0,C={},r={},v=f=null,ft=0,mt=l.length;ft<mt;ft++)C[Z=n[a=l[ft]]]==null&&(C[Z]=++O),r[a]={old:Z,new:C[Z]},s=C[Z]-a,v!=null&&s===f||(v&&_.push(v),y.push(a),f=s),v=a;for(v&&_.push(v),_.push(65535),y.push(65535),j=2*(k=y.length),$=2*Math.pow(Math.log(k)/Math.LN2,2),w=Math.log($/2)/Math.LN2,et=2*k-$,c=[],ot=[],h=[],x=at=0,tt=y.length;at<tt;x=++at){if(E=y[x],d=_[x],E===65535){c.push(0),ot.push(0);break}if(E-(R=r[E].new)>=32768)for(c.push(0),ot.push(2*(h.length+k-x)),a=nt=E;E<=d?nt<=d:nt>=d;a=E<=d?++nt:--nt)h.push(r[a].new);else c.push(R-E),ot.push(0)}for(g.writeUInt16(3),g.writeUInt16(1),g.writeUInt32(12),g.writeUInt16(4),g.writeUInt16(16+8*k+2*h.length),g.writeUInt16(0),g.writeUInt16(j),g.writeUInt16($),g.writeUInt16(w),g.writeUInt16(et),dt=0,A=_.length;dt<A;dt++)a=_[dt],g.writeUInt16(a);for(g.writeUInt16(0),vt=0,U=y.length;vt<U;vt++)a=y[vt],g.writeUInt16(a);for(yt=0,M=c.length;yt<M;yt++)s=c[yt],g.writeUInt16(s);for(Lt=0,K=ot.length;Lt<K;Lt++)T=ot[Lt],g.writeUInt16(T);for(Ct=0,st=h.length;Ct<st;Ct++)b=h[Ct],g.writeUInt16(b);return{charMap:r,subtable:g.data,maxGlyphID:O+1}}},t}(),D1=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="cmap",t.prototype.parse=function(n){var e,r,a;for(n.pos=this.offset,this.version=n.readUInt16(),a=n.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)e=new Wf(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(n,e){var r,a;return e==null&&(e="macroman"),r=Wf.encode(n,e),(a=new Ei).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},t}(),$m=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t}(),Vm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(n.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(n.readInt());return r}(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(n.readInt());return r}(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t}(),Zm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="post",t.prototype.parse=function(n){var e,r,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=n.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.pos<this.offset+this.length;)e=n.readByte(),a.push(this.names.push(n.readString(e)));return a;case 151552:return r=n.readUInt16(),this.offsets=n.read(r);case 262144:return this.map=function(){var l,s,c;for(c=[],i=l=0,s=this.file.maxp.numGlyphs;0<=s?l<s:l>s;i=0<=s?++l:--l)c.push(n.readUInt32());return c}.call(this)}},t}(),Km=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},Ym=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="name",t.prototype.parse=function(n){var e,r,a,i,l,s,c,f,d,_,w;for(n.pos=this.offset,n.readShort(),e=n.readShort(),s=n.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+s+n.readShort()});for(c={},i=d=0,_=r.length;d<_;i=++d)a=r[i],n.pos=a.offset,f=n.readString(a.length),l=new Km(f,a),c[w=a.nameID]==null&&(c[w]=[]),c[a.nameID].push(l);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=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]},t}(),Xm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="maxp",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.numGlyphs=n.readUInt16(),this.maxPoints=n.readUInt16(),this.maxContours=n.readUInt16(),this.maxCompositePoints=n.readUInt16(),this.maxComponentContours=n.readUInt16(),this.maxZones=n.readUInt16(),this.maxTwilightPoints=n.readUInt16(),this.maxStorage=n.readUInt16(),this.maxFunctionDefs=n.readUInt16(),this.maxInstructionDefs=n.readUInt16(),this.maxStackElements=n.readUInt16(),this.maxSizeOfInstructions=n.readUInt16(),this.maxComponentElements=n.readUInt16(),this.maxComponentDepth=n.readUInt16()},t}(),Jm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="hmtx",t.prototype.parse=function(n){var e,r,a,i,l,s,c;for(n.pos=this.offset,this.metrics=[],e=0,s=this.file.hhea.numberOfMetrics;0<=s?e<s:e>s;e=0<=s?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var f,d;for(d=[],e=f=0;0<=a?f<a:f>a;e=0<=a?++f:--f)d.push(n.readInt16());return d}(),this.widths=function(){var f,d,_,w;for(w=[],f=0,d=(_=this.metrics).length;f<d;f++)i=_[f],w.push(i.advance);return w}.call(this),r=this.widths[this.widths.length-1],c=[],e=l=0;0<=a?l<a:l>a;e=0<=a?++l:--l)c.push(this.widths.push(r));return c},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t}(),B1=[].slice,Qm=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var e,r,a,i,l,s,c,f,d,_;return n in this.cache?this.cache[n]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(n),(a=i.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+r,l=(s=new Ei(e.read(a))).readShort(),f=s.readShort(),_=s.readShort(),c=s.readShort(),d=s.readShort(),this.cache[n]=l===-1?new eb(s,f,_,c,d):new tb(s,l,f,_,c,d),this.cache[n]))},t.prototype.encode=function(n,e,r){var a,i,l,s,c;for(l=[],i=[],s=0,c=e.length;s<c;s++)a=n[e[s]],i.push(l.length),a&&(l=l.concat(a.encode(r)));return i.push(l.length),{table:l,offsets:i}},t}(),tb=function(){function t(n,e,r,a,i,l){this.raw=n,this.numberOfContours=e,this.xMin=r,this.yMin=a,this.xMax=i,this.yMax=l,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),eb=function(){function t(n,e,r,a,i){var l,s;for(this.raw=n,this.xMin=e,this.yMin=r,this.xMax=a,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;s=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&s;)l.pos+=1&s?4:2,128&s?l.pos+=8:64&s?l.pos+=4:8&s&&(l.pos+=2)}return t.prototype.encode=function(){var n,e,r;for(e=new Ei(B1.call(this.raw.data)),n=0,r=this.glyphIDs.length;n<r;++n)e.pos=this.glyphOffsets[n];return e.data},t}(),nb=function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Mr(t,xr),t.prototype.tag="loca",t.prototype.parse=function(n){var e,r;return n.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?function(){var a,i;for(i=[],r=0,a=this.length;r<a;r+=2)i.push(2*n.readUInt16());return i}.call(this):function(){var a,i;for(i=[],r=0,a=this.length;r<a;r+=4)i.push(n.readUInt32());return i}.call(this)},t.prototype.indexOf=function(n){return this.offsets[n]},t.prototype.lengthOf=function(n){return this.offsets[n+1]-this.offsets[n]}
195,t.prototype.encode=function(n,e){for(var r=new Uint32Array(this.offsets.length),a=0,i=0,l=0;l<r.length;++l)if(r[l]=a,i<e.length&&e[i]==l){++i,r[l]=a;var s=this.offsets[l],c=this.offsets[l+1]-s;c>0&&(a+=c)}for(var f=new Array(4*r.length),d=0;d<r.length;++d)f[4*d+3]=255&r[d],f[4*d+2]=(65280&r[d])>>8,f[4*d+1]=(16711680&r[d])>>16,f[4*d]=(4278190080&r[d])>>24;return f},t}(),rb=function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var n,e,r,a,i;for(e in a=this.font.cmap.tables[0].codeMap,n={},i=this.subset)r=i[e],n[e]=a[r];return n},t.prototype.glyphsFor=function(n){var e,r,a,i,l,s,c;for(a={},l=0,s=n.length;l<s;l++)a[i=n[l]]=this.font.glyf.glyphFor(i);for(i in e=[],a)(r=a[i])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in c=this.glyphsFor(e))r=c[i],a[i]=r;return a},t.prototype.encode=function(n,e){var r,a,i,l,s,c,f,d,_,w,h,x,b,N,v;for(a in r=D1.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(n),h={0:0},v=r.charMap)h[(c=v[a]).old]=c.new;for(x in w=r.maxGlyphID,l)x in h||(h[x]=w++);return d=function(C){var O,T;for(O in T={},C)T[C[O]]=O;return T}(h),_=Object.keys(d).sort(function(C,O){return C-O}),b=function(){var C,O,T;for(T=[],C=0,O=_.length;C<O;C++)s=_[C],T.push(d[s]);return T}(),i=this.font.glyf.encode(l,b,h),f=this.font.loca.encode(i.offsets,b),N={cmap:this.font.cmap.raw(),glyf:i.table,loca:f,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&&(N["OS/2"]=this.font.os2.raw()),this.font.directory.encode(N)},t}();ie.API.PDFObject=function(){var t;function n(){}return t=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},n.convert=function(e){var r,a,i,l;if(Array.isArray(e))return"["+function(){var s,c,f;for(f=[],s=0,c=e.length;s<c;s++)r=e[s],f.push(n.convert(r));return f}().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in i=["<<"],e)l=e[a],i.push("/"+a+" "+n.convert(l));return i.push(">>"),i.join(` 196`)}return""+e},n}();const ib=3.124,il=async t=>(document.fonts&&await document.fonts.ready,await _h(t,{pixelRatio:1,cacheBust:!0}),_h(t,{pixelRatio:ib,cacheBust:!0,width:1123,height:794,style:{transform:"none"}})),ab=(t,n)=>{const e=document.createElement("a");e.href=t,e.download=n,document.body.appendChild(e),e.click(),e.remove()},sb=async t=>(await fetch(t)).blob(),ob=(t,n)=>{const e=new ie({orientation:"landscape",unit:"mm",format:"a4"});return e.addImage(t,"PNG",0,0,297,210,void 0,"NONE"),n&&(e.setProperties({keywords:n,subject:n}),e.setFontSize(6),e.text(n,10,205,{renderingMode:"invisible"})),e.output("blob")},Go=(t,n)=>{const e=URL.createObjectURL(t);ab(e,n),setTimeout(()=>URL.revokeObjectURL(e),4e3)},za="CLP1",Ua=3,ru=220;function lb(t){const n=new TextEncoder().encode(t),e=[],r=[n.length>>8&255,n.length&255];for(const a of[...r,...n])for(let i=7;i>=0;i--)e.push(a>>i&1);return e}function cb(t){const n=[];for(let r=0;r+7<t.length;r+=8){let a=0;for(let i=0;i<8;i++)a=a<<1|t[r+i];n.push(a)}const e=n[0]<<8|n[1];if(!e||e>n.length-2)return null;try{return new TextDecoder().decode(new Uint8Array(n.slice(2,2+e)))}catch{return null}}function ub(t,n){const e=lb(`${za}:${n}`),r=e.length*Ua,a=Math.min(t.height,Math.ceil(r/t.width)+1),i=t.getContext("2d"),l=i.getImageData(0,0,t.width,a);for(let s=0;s<r;s++){const c=s*4+2;if(c>=l.data.length)break;l.data[c]=l.data[c]&254|e[s%e.length]}return i.putImageData(l,0,0),t}function M1(t){const n=[],r=(za.length+1+ru+2)*8*Ua;for(let a=0;a<r&&a*4+2<t.length;a++)n.push(t[a*4+2]&1);for(let a=8;a<=ru+za.length+1;a++){const i=(a+2)*8;if(i*Ua>n.length)break;const l=[];for(let c=0;c<i;c++){let f=0;for(let d=0;d<Ua;d++)f+=n[d*i+c];l.push(f>Ua/2?1:0)}const s=cb(l);if(s&&s.startsWith(`${za}:`))return s.slice(za.length+1)}return null}const hb=(()=>{const t=new Uint32Array(256);for(let n=0;n<256;n++){let e=n;for(let r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e>>>0}return t})();function fb(t){let n=4294967295;for(const e of t)n=hb[(n^e)&255]^n>>>8;return(n^4294967295)>>>0}function db(t,n,e){const r=new TextEncoder().encode(`${n}\0${e}`),a=new TextEncoder().encode("tEXt"),i=new Uint8Array(12+r.length),l=new DataView(i.buffer);l.setUint32(0,r.length),i.set(a,4),i.set(r,8),l.setUint32(8+r.length,fb([...a,...r]));const s=33,c=new Uint8Array(t.length+i.length);return c.set(t.subarray(0,s),0),c.set(i,s),c.set(t.subarray(s),s+i.length),c}function pb(t,n){const e=new DataView(t.buffer,t.byteOffset,t.byteLength);let r=8;for(;r+8<t.length;){const a=e.getUint32(r),i=String.fromCharCode(...t.subarray(r+4,r+8));if(i==="tEXt"){const l=new TextDecoder().decode(t.subarray(r+8,r+8+a)),[s,...c]=l.split("\0");if(s===n)return c.join("\0")}if(i==="IEND")break;r+=12+a}return null}const Yi=t=>`${t.certId}-${t.token}`,z1=t=>`${t.certId}-${t.token}|${t.name}|${t.course}|${t.issuedOn}`,gb=t=>new Promise((n,e)=>{const r=new Image;r.onload=()=>{const a=document.createElement("canvas");
196a.width=r.naturalWidth,a.height=r.naturalHeight,a.getContext("2d").drawImage(r,0,0),n(a)},r.onerror=e,r.src=t});async function Fc(t,n){const e=await gb(t);ub(e,z1(n));const r=atob(e.toDataURL("image/png").split(",")[1]),a=new Uint8Array(r.length);for(let l=0;l<r.length;l++)a[l]=r.charCodeAt(l);const i=db(a,"clapital",Yi(n));return new Blob([i.buffer],{type:"image/png"})}const mb=t=>new Promise((n,e)=>{const r=new FileReader;r.onload=()=>n(r.result),r.onerror=e,r.readAsDataURL(t)}),Cs=t=>{if(!t)return null;const[n,e,r,a]=t.split("|"),i=/^([2-9A-HJ-NP-Z]{7})-([2-9A-HJ-NP-Z]{6,16})$/i.exec((n||"").trim());return i?{certId:i[1].toUpperCase(),token:i[2].toUpperCase(),name:e??null,course:r??null,date:a??null}:null},U1=(t,n)=>{const e=Cs(t)??Cs(n);return{pixels:t,metadata:n,certId:e?.certId??null,token:e?.token??null,embeddedName:Cs(t)?.name??null,embeddedCourse:Cs(t)?.course??null,embeddedDate:Cs(t)?.date??null}};async function bb(t){const n=new Uint8Array(await t.arrayBuffer());let e=null;try{e=pb(n,"clapital")}catch{}let r=null;try{const a=await createImageBitmap(t),i=document.createElement("canvas");i.width=a.width,i.height=a.height;const l=i.getContext("2d");l.drawImage(a,0,0);const s=(za.length+1+ru+2)*8*Ua,c=Math.min(a.height,Math.ceil(s/a.width)+2);r=M1(l.getImageData(0,0,a.width,c).data)}catch{}return U1(r,e)}async function Gf(t){const n=t.type==="application/pdf"||/\.pdf$/i.test(t.name),{probePdf:e,cropStrip:r,fileToCanvas:a,STRIP_LIGHT:i,STRIP_DARK:l}=await Yo(async()=>{const{probePdf:h,cropStrip:x,fileToCanvas:b,STRIP_LIGHT:N,STRIP_DARK:v}=await import("./certPdfInspect-Bu7gxr_W.js");return{probePdf:h,cropStrip:x,fileToCanvas:b,STRIP_LIGHT:N,STRIP_DARK:v}},[]);let s,c=null,f=null,d=null;if(n){let h=null;try{h=await e(t)}catch(v){console.error("[cert-inspect] probePdf failed",v)}f=h?.pageCanvas??null,d=h?.diagnostics??{engine:"ØªØ¹Ø°ÙØ± تشغÙÙ ÙØ§Ø±Ø¦ PDF",metadata:null,images:null,text:null,render:null,imageCandidates:0};let x=null;if(h?.imageData?.length){for(const v of h.imageData)try{if(x=M1(v),x)break}catch{}!x&&d&&(d.images=`تÙ
استخراج ${h.imageData.length} ØµÙØ±Ø©Ø ÙÙÙ ÙÙ
تØÙ
٠أ٠Ù
ÙÙØ§ ترÙÙØ³Ø© CLP1 سÙÙÙ
Ø©`)}const b=h?.keywords?.trim()||null,N=h?.textPayload?.match(/[2-9A-HJ-NP-Z]{7}-[2-9A-HJ-NP-Z]{6,16}/i);c=N?N[0].toUpperCase():null,s=U1(x,b??c)}else s=await bb(t),f=await a(t);let _=null,w=null;if(f){try{_=r(f,i)}catch{}try{w=r(f,l)}catch{}}return{...s,isPdf:n,textLayer:c,stripLight:_,stripDark:w,diagnostics:d}}const $o=1200,Vo=630,vb=t=>new Promise((n,e)=>{const r=new Image;r.onload=()=>n(r),r.onerror=e,r.src=t}),q1=async(t,n)=>{const e=await vb(t),r=document.createElement("canvas");r.width=$o,r.height=Vo;const a=r.getContext("2d");a.fillStyle="#0b1020",a.fillRect(0,0,$o,Vo);const i=Math.min($o/e.width,Vo/e.height),l=e.width*i,s=e.height*i,c=($o-l)/2,f=(Vo-s)/2;return a.drawImage(e,c,f,l,s),await new Promise(d=>r.toBlob(_=>d(_),"image/png",.95))},Rc=async(t,n)=>{const e=await il(t),r=await q1(e),{error:a}=await qe.storage.from("certificate-cards").upload(`${n.certId}.png`,r,{contentType:"image/png",upsert:!0});if(a)throw a},Zo={course_title:"Generative artificial intelligence course",hours_line:"comprising 60 accredited training hours.",description:""},Ko=t=>`${typeof window<"u"?window.location.origin:""}/verify/${t}`,yi=async t=>{const{data:n,error:e}=await qe.functions.invoke("sign-certificate",{body:{action:"sign",certId:t}});if(e)throw e;if(n?.error)throw new Error(n.error);return n.token},_b=async(t,n)=>{const{data:e,error:r}=await qe.functions.invoke("sign-certificate",{body:{action:"check",certId:t,token:n}});if(r)throw r;return{match:e?.result==="match",certificate:e?.certificate??null}},wb=async(t,n,e)=>{try{const{data:r}=await qe.auth.getUser();await qe.from("certificate_checks").insert({cert_id:t,result:n,details:e,checked_by:r?.user?.id})}catch{}},Ob=()=>{const t=$f(),n=oe.useRef(null),e=oe.useRef(null),r=oe.useRef(null),[a,i]=oe.useState(null),[l,s]=oe.useState({recipient_name:"",course_title:Zo.course_title,hours_line:Zo.hours_line,description:Zo.description,issued_on:new Date().toISOString().slice(0,10)}),[c,f]=oe.useState(Po()),[d,_]=oe.useState(""),[w,h]=oe.useState(null),[x,b]=oe.useState(null),[N,v]=oe.useState([]),[C,O]=oe.useState(null),[T,Z]=oe.useState({done:0,total:0}),[ot,et]=oe.useState(""),[$,k]=oe.useState(""),[j,E]=oe.useState(null),[y,R]=oe.useState(null),[g,X]=oe.useState(null),[ft,at]=oe.useState(!1),[nt,it]=oe.useState(null),[mt,tt]=oe.useState(""),{data:A}=Is({queryKey:["certificate_settings"],queryFn:async()=>{const{data:pt,error:Nt}=await qe.from("certificate_settings").select("*").limit(1).maybeSingle();if(Nt)throw Nt;return pt}}),{data:U=[]}=Is({queryKey:["certificate_signers"],queryFn:async()=>{const{data:pt,error:Nt}=await qe.from("certificate_signers").select("*").order("sort_order");if(Nt)throw Nt;return pt||[]}}),{data:M=[]}=Is({queryKey:["course_presets"],queryFn:async()=>{const{data:pt,error:Nt}=await qe.from("course_presets").select("*").order("sort_order");if(Nt)throw Nt;return pt||[]}}),{data:K=[],isLoading:st}=Is({queryKey:["certificates"],queryFn:async()=>{const{data:pt,error:Nt}=await qe.from("certificates").select("*").order("created_at",{ascending:!1});if(Nt)throw Nt;return pt||[]}}),[dt,vt]=oe.useState(null),ut=dt??A,yt=oe.useMemo(()=>U.find(pt=>pt.is_default)??U[0]??null,[U]),[Lt,Ct]=oe.useState(""),Rt=oe.useMemo(()=>U.find(pt=>
196pt.id===Lt)??yt,[U,Lt,yt]),L=pt=>({signer:pt?.name??ut?.signer??"Mahmoud Masri",role:pt?.signer_role??ut?.role??"CEO & Founder",email:pt?.email??ut?.email??"[email protected]",signatureUrl:pt?.signature_url??"",logoUrl:pt?.logo_url??""}),I=pt=>(pt?U.find(Nt=>Nt.id===pt):null)??yt,rt=oe.useMemo(()=>y||K.find(pt=>pt.cert_id===ot.trim().toUpperCase())||null,[K,ot,y]),W=oe.useMemo(()=>({name:l.recipient_name||"Recipient Name",course:l.course_title,hours:l.hours_line,description:l.description,certId:c,mark:d,...L(Rt)}),[l,c,d,ut,Rt]),q=async pt=>{for(let Nt=0;Nt<160;Nt++){const Ht=r.current,Zt=Ht?.closest("[data-export-cert]")?.getAttribute("data-export-cert")===pt;if(Ht&&Zt){const $t=Array.from(Ht.querySelectorAll("img"));if($t.length>0&&$t.every(Gt=>Gt.complete&&Gt.naturalWidth>0))return document.fonts&&await document.fonts.ready,await new Promise(Gt=>requestAnimationFrame(()=>requestAnimationFrame(()=>Gt(null)))),Ht}await new Promise($t=>setTimeout($t,50))}throw new Error("ØªØ¹Ø°ÙØ± تجÙÙØ² ÙØ³Ø®Ø© Ø§ÙØ´Ùادة ÙÙØ§ÙØªÙØ§Ø·")},G=(pt,Nt)=>({name:pt.recipient_name,course:pt.course_title,hours:pt.hours_line??Zo.hours_line,description:pt.description??"",certId:pt.cert_id,mark:Nt,...L(I(pt.signer_id))}),bt=async(pt,Nt)=>{i(pt);try{const Ht=await q(pt.certId);return await Nt(Ht)}finally{i(null)}},wt=async(pt,Nt)=>{await navigator.clipboard.writeText(pt),b(Nt),setTimeout(()=>b(null),1800)},ct=async()=>{if(!l.recipient_name.trim())return me.error("اسÙ
اÙÙ
ستÙÙ
Ù
Ø·ÙÙØ¨"),null;if(!uh(c))return me.error("رÙÙ
Ø§ÙØ´Ùادة ØºÙØ± ØµØ§ÙØ"),null;const{data:pt,error:Nt}=await qe.from("certificates").insert({cert_id:c,recipient_name:l.recipient_name.trim(),course_title:l.course_title.trim(),hours_line:l.hours_line.trim(),description:l.description,issued_on:l.issued_on,signer_id:Rt?.id??null}).select().maybeSingle();return Nt?(me.error(Nt.code==="23505"?"رÙÙ
Ø§ÙØ´Ùادة Ù
ستخدÙ
Ø ÙÙÙØ¯ رÙÙ
ÙØ§ Ø¬Ø¯ÙØ¯Ùا":"ØªØ¹Ø°ÙØ± ØÙظ Ø§ÙØ´Ùادة"),null):(await D0({action:"create",entity_type:"certificates",entity_id:pt?.id,details:{cert_id:c}}),t.invalidateQueries({queryKey:["certificates"]}),pt)},St=async()=>{h("save");try{if(!await ct())return;const Nt=await yi(c);if(_(Nt),me.success("تÙ
إصدار Ø§ÙØ´Ùادة ÙØªÙÙÙØ¯ Ø¹ÙØ§Ù
Ø© Ø§ÙØªØÙÙ"),await new Promise(Ht=>setTimeout(Ht,400)),n.current)try{await Rc(n.current,{certId:c,name:l.recipient_name,course:l.course_title,issuedOn:l.issued_on})}catch{me.warning("تÙ
Ø§ÙØ¥ØµØ¯Ø§Ø± ÙÙÙ ØªØ¹Ø°ÙØ± تÙÙÙØ¯ Ø¨Ø·Ø§ÙØ© اÙÙ
Ø´Ø§Ø±ÙØ©")}}catch{me.error("تÙ
Ø§ÙØÙØ¸ ÙÙÙ ØªØ¹Ø°ÙØ± تÙÙÙØ¯ Ø¹ÙØ§Ù
Ø© Ø§ÙØªØÙÙ")}finally{h(null)}},Dt=async pt=>{if(n.current){h(pt),ft&&(at(!1),await new Promise(Nt=>requestAnimationFrame(()=>requestAnimationFrame(()=>Nt(null)))));try{let Nt=d;if(!Nt){try{Nt=await yi(c),_(Nt)}catch{me.error("اØÙظ Ø§ÙØ´Ùادة Ø£ÙÙÙØ§ ØØªÙ تÙÙÙÙÙØ¯ Ø¹ÙØ§Ù
Ø© Ø§ÙØªØÙÙ ÙØ¨Ù Ø§ÙØªØµØ¯Ùر");return}await new Promise(Gt=>requestAnimationFrame(()=>requestAnimationFrame(()=>Gt(null)))),await new Promise(Gt=>setTimeout(Gt,250))}document.fonts&&await document.fonts.ready;const Ht=await il(n.current),Zt=await Fc(Ht,{certId:c,token:Nt,name:l.recipient_name.trim(),course:l.course_title.trim(),issuedOn:l.issued_on}),$t=`${c}-${l.recipient_name.trim().replace(/\s+/g,"-")||"certificate"}`;if(pt==="png")Go(Zt,`${$t}.png`);else{const Gt=await mb(Zt),ye=ob(Gt,Yi({certId:c,token:Nt}));let hn=[];try{const Pe=await Gf(new File([ye],`${$t}.pdf`,{type:"application/pdf"})),In=Yi({certId:c,token:Nt}).toUpperCase();Pe.pixels?.toUpperCase().startsWith(`${In}|`)!==!0&&hn.push("Ø§ÙØ¨ÙسÙ"),Pe.metadata?.toUpperCase()!==In&&hn.push("Ø§ÙØ®ØµØ§Ø¦Øµ"),Pe.textLayer?.toUpperCase()!==In&&hn.push("اÙÙØµ اÙÙ
Ø®ÙÙ")}catch(Pe){console.warn("[cert-export] self-check skipped",Pe)}Go(ye,`${$t}.pdf`),hn.length&&me.warning(`تÙ
Ø§ÙØªÙزÙÙØ ÙÙÙ ØªØ¹Ø°ÙØ± تأÙÙØ¯ Ø§ÙØ·Ø¨Ùات: ${hn.join("Ø ")}`)}me.success("تÙ
Ø§ÙØªØµØ¯Ùر Ù
ع Ø·Ø¨ÙØ§Øª Ø§ÙØÙ
Ø§ÙØ©")}catch(Nt){console.error("[cert-export]",Nt),me.error(`ØªØ¹Ø°ÙØ± Ø§ÙØªØµØ¯Ùر: ${Nt?.message||"سبب ØºÙØ± Ù
عرÙÙ"}`)}finally{h(null)}}},Et=async pt=>{h("inspect"),X(null);try{const Nt=await Gf(pt);let Ht="unreadable";if(Nt.certId&&Nt.token)try{Ht=(await _b(Nt.certId,Nt.token)).match?"authentic":"tampered"}catch{Ht="tampered"}X({...Nt,verdict:Ht,fileName:pt.name}),await wb(Nt.certId,Ht,{file:pt.name,pixels:Nt.pixels,metadata:Nt.metadata,text_layer:Nt.textLayer})}catch(Nt){console.error("[cert-inspect]",Nt),me.error(`ØªØ¹Ø°ÙØ± ÙØ±Ø§Ø¡Ø© اÙÙ
ÙÙ: ${Nt?.message||"سبب ØºÙØ± Ù
عرÙÙ"}`)}finally{h(null)}},Ot=async pt=>{it(pt),tt("");try{tt(await yi(pt.cert_id))}catch{me.error("ØªØ¹Ø°ÙØ± Ø¬ÙØ¨ Ø¹ÙØ§Ù
Ø© Ø§ÙØªØÙÙ")}},qt=async pt=>{h(`reissue-${pt.id}`);try{const Nt=await yi(pt.cert_id),Ht=await bt(G(pt,Nt),async Zt=>{const $t=await il(Zt);return Fc($t,{certId:pt.cert_id,token:Nt,name:pt.recipient_name,course:pt.course_title,issuedOn:pt.issued_on})});Go(Ht,`${pt.cert_id}-${pt.recipient_name.replace(/\s+/g,"-")}.png`),me.success("تÙ
إعادة إصدار اÙÙ
ÙÙ Ù
ختÙÙ
ÙØ§")}catch(Nt){console.error("[cert-reissue]",Nt),me.error(`ØªØ¹Ø°ÙØ± إعادة إصدار اÙÙ
ÙÙ: ${Nt?.message||"سبب ØºÙØ± Ù
عرÙÙ"}`)}finally{h(null)}},zt=()=>{s({...l,recipient_name:""}),f(Po()),_("")},Ut=pt=>{r2.parse(pt,{header:!0,skipEmptyLines:!0,complete:Nt=>{const Ht=Nt.data.map(Zt=>
196({name:String(Zt.name??Zt.Name??Zt.Ø§ÙØ§Ø³Ù ??"").trim(),course:String(Zt.course??Zt.Course??"").trim()||l.course_title,hours:String(Zt.hours??Zt.Hours??"").trim()||l.hours_line,description:String(Zt.description??Zt.Description??"").trim()||l.description})).filter(Zt=>Zt.name);if(!Ht.length){me.error("ÙÙ ÙØªÙ Ø§ÙØ¹Ø«Ùر عÙ٠صÙÙÙ ØµØ§ÙØØ©Ø ÙØ¬Ø¨ ÙØ¬Ùد Ø¹Ù ÙØ¯ name");return}v(Ht),me.success(`ت٠تØÙ ÙÙ ${Ht.length} صÙÙØ§`)},error:()=>me.error("ØªØ¹Ø°ÙØ± ÙØ±Ø§Ø¡Ø© اÙÙ ÙÙ")})},ae=async()=>{if(!N.length)return;h("bulk"),Z({done:0,total:N.length});const pt=new e2,Nt=[];try{for(let Zt=0;Zt<N.length;Zt++){const $t=N[Zt],Gt=Po(),{error:ye}=await qe.from("certificates").insert({cert_id:Gt,recipient_name:$t.name,course_title:$t.course,hours_line:$t.hours,description:$t.description,issued_on:l.issued_on,signer_id:Rt?.id??null});if(ye)continue;let hn="";try{hn=await yi(Gt)}catch{}if(O({certId:Gt,mark:hn,row:$t}),await new Promise(Pe=>setTimeout(Pe,350)),e.current){document.fonts&&await document.fonts.ready;const Pe=await il(e.current),In=hn?await Fc(Pe,{certId:Gt,token:hn,name:$t.name,course:$t.course,issuedOn:l.issued_on}):await sb(Pe);pt.file(`${Gt}-${$t.name.replace(/\s+/g,"-")}.png`,In);try{const nr=await q1(Pe,{certId:Gt,name:$t.name,course:$t.course,issuedOn:l.issued_on});await qe.storage.from("certificate-cards").upload(`${Gt}.png`,nr,{contentType:"image/png",upsert:!0})}catch{}}Nt.push(`${Gt},${$t.name},${Ko(Gt)}`),Z({done:Zt+1,total:N.length})}pt.file("certificates.csv",`cert_id,name,verify_url 197${Nt.join(` 198`)}`);const Ht=await pt.generateAsync({type:"blob"});Go(Ht,`certificates-${new Date().toISOString().slice(0,10)}.zip`),t.invalidateQueries({queryKey:["certificates"]}),me.success(`ت٠إصدار ${Nt.length} Ø´ÙØ§Ø¯Ø©`)}catch{me.error("ØØ¯Ø« خطأ Ø£Ø«ÙØ§Ø¡ Ø§ÙØ¥ØµØ¯Ø§Ø± Ø§ÙØ¬Ù اعÙ")}finally{O(null),h(null)}},Vt=async pt=>{h(`card-${pt.id}`);try{const Nt=await yi(pt.cert_id).catch(()=>"");await bt(G(pt,Nt),Ht=>Rc(Ht,{certId:pt.cert_id,name:pt.recipient_name,course:pt.course_title,issuedOn:pt.issued_on})),me.success("ØªÙ ØªØØ¯ÙØ« Ø¨Ø·Ø§ÙØ© اÙÙ Ø´Ø§Ø±ÙØ©")}catch(Nt){console.error("[cert-card]",Nt),me.error(`ØªØ¹Ø°ÙØ± تÙÙÙØ¯ Ø¨Ø·Ø§ÙØ© اÙÙ Ø´Ø§Ø±ÙØ©: ${Nt?.message||"سبب ØºÙØ± ٠عرÙÙ"}`)}finally{h(null)}},_e=async()=>{h("cards-all");let pt=0;try{for(const Nt of K)try{const Ht=await yi(Nt.cert_id).catch(()=>"");await bt(G(Nt,Ht),Zt=>Rc(Zt,{certId:Nt.cert_id,name:Nt.recipient_name,course:Nt.course_title,issuedOn:Nt.issued_on})),pt++}catch(Ht){console.error("[cert-card-all]",Nt.cert_id,Ht)}pt===0?me.error("ØªØ¹Ø°ÙØ± تÙÙÙØ¯ Ø£Ù Ø¨Ø·Ø§ÙØ© Ù Ø´Ø§Ø±ÙØ©"):me.success(`ت٠تÙÙÙØ¯ ${pt} Ø¨Ø·Ø§ÙØ© Ù Ø´Ø§Ø±ÙØ©`)}finally{h(null)}},Kt=async()=>{h("check"),E(null),R(null);const pt=ot.trim().toUpperCase();try{const{data:Nt,error:Ht}=await qe.functions.invoke("sign-certificate",{body:{action:"check",certId:pt,token:$.trim()}});if(Ht)throw Ht;E({ok:Nt?.result==="match",cert:Nt?.certificate});const{data:Zt}=await qe.rpc("verify_certificate",{_cert_id:pt}),$t=Array.isArray(Zt)?Zt[0]:Zt;$t&&R($t)}catch{me.error("ØªØ¹Ø°ÙØ± Ø§ÙØªØÙÙ")}finally{h(null)}},se=async()=>{const{error:pt}=await qe.from("course_presets").insert({title:l.course_title,hours_line:l.hours_line,description:l.description,sort_order:M.length});if(pt)return me.error("ØªØ¹Ø°ÙØ± ØÙظ اÙÙØ§Ùب");t.invalidateQueries({queryKey:["course_presets"]}),me.success("ت٠ØÙظ اÙÙØ§Ùب")},ce=async pt=>{const{error:Nt}=await qe.from("course_presets").delete().eq("id",pt);if(Nt)return me.error("ØªØ¹Ø°ÙØ± Ø§ÙØØ°Ù");t.invalidateQueries({queryKey:["course_presets"]})},we=async pt=>{if(!confirm(`ØØ°Ù Ø§ÙØ´Ùادة ${pt.cert_id}Ø`))return;const{error:Nt}=await qe.from("certificates").delete().eq("id",pt.id);if(Nt)return me.error("ØªØ¹Ø°ÙØ± Ø§ÙØØ°Ù");t.invalidateQueries({queryKey:["certificates"]}),me.success("ØªÙ Ø§ÙØØ°Ù")},ne=pt=>{s({recipient_name:pt.recipient_name,course_title:pt.course_title,hours_line:pt.hours_line,description:pt.description,issued_on:pt.issued_on}),f(pt.cert_id),_(""),yi(pt.cert_id).then(_).catch(()=>{}),me.success("ت٠تØÙ ÙÙ Ø§ÙØ´Ùادة Ù٠اÙ٠عاÙÙØ©")};return B.jsxs("div",{className:"space-y-6",children:[B.jsxs("div",{className:"flex items-center gap-3",children:[B.jsx(N0,{className:"w-6 h-6 text-primary"}),B.jsxs("div",{children:[B.jsx("h2",{className:"text-xl font-bold",children:"Ù ÙÙÙØ¯ Ø§ÙØ´Ùادات"}),B.jsx("p",{className:"text-sm text-muted-foreground",children:"إصدار ÙØªØµØ¯Ùر ÙØ§ÙتØÙÙ Ù Ù Ø´ÙØ§Ø¯Ø§Øª Clapital"})]})]}),B.jsxs(Q0,{defaultValue:"issue",children:[B.jsxs(vd,{className:"flex-wrap h-auto",children:[B.jsx(Vi,{value:"issue",children:"إصدار Ø´ÙØ§Ø¯Ø©"}),B.jsxs(Vi,{value:"records",children:["Ø§ÙØ³Ø¬Ù (",K.length,")"]}),B.jsx(Vi,{value:"bulk",children:"إصدار ج٠اعÙ"}),B.jsx(Vi,{value:"check",children:"ÙØØµ Ø§ÙØ¹Ùا٠ة"}),B.jsx(Vi,{value:"file",children:"ÙØØµ Ù ÙÙ"}),B.jsx(Vi,{value:"settings",children:"Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§Øª"})]}),B.jsx(Zi,{value:"issue",className:"space-y-6 pt-4",children:B.jsxs("div",{className:"space-y-6",children:[B.jsx("div",{className:`rounded-xl border border-border bg-white p-3 overflow-hidden mx-auto w-full max-w-5xl ${ft?"clp-reveal":""}`,dir:"ltr",children:B.jsx(lh,{...W,stageRef:n})}),B.jsxs("div",{className:"mx-auto w-full max-w-5xl flex items-center gap-2 -mt-4",children:[B.jsxs(Ue,{size:"sm",variant:"outline",className:"gap-2",onClick:()=>at(pt=>!pt),children:[ft?B.jsx(ih,{className:"w-4 h-4"}):B.jsx(ah,{className:"w-4 h-4"}),ft?"Ø¥Ø®ÙØ§Ø¡ Ø§ÙØ¹Ùا٠ات Ø§ÙØ¯ÙÙÙØ©":"Ø¥Ø¸ÙØ§Ø± Ø§ÙØ¹Ùا٠ات Ø§ÙØ¯ÙÙÙØ©"]}),B.jsx("span",{className:"text-xs text-muted-foreground",children:"عرض عÙÙ Ø§ÙØ´Ø§Ø´Ø© ÙÙØ· ÙÙ Ø¹Ø±ÙØ© Ù ÙØ¶Ø¹ Ø§ÙØ·Ø¨ÙتÙÙ 1 Ù2Ø ÙØ§ ÙØ¤Ø«Ø± Ø¥Ø·ÙØ§ÙÙØ§ عÙ٠اÙÙ Ù٠اÙÙ ÙØµØ¯ÙÙØ±."})]}),B.jsxs("div",{className:"space-y-4 mx-auto w-full max-w-3xl",children:[B.jsxs("div",{children:[B.jsx(yn,{children:"اس٠اÙ٠ستÙÙ (Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©)"}),B.jsx(Qn,{dir:"ltr",value:l.recipient_name,onChange:pt=>s({...l,recipient_name:pt.target.value}),placeholder:"Ahmad Al-Sayed"})]}),M.length>0&&B.jsxs("div",{children:[B.jsx(yn,{children:"ÙØ§Ùب Ø¯ÙØ±Ø© Ø¬Ø§ÙØ²"}),B.jsxs("select",{className:"w-full h-10 rounded-md border border-border bg-background px-3 text-sm",onChange:pt=>{const Nt=M.find(Ht=>Ht.id===pt.target.value);Nt&&s({...l,course_title:Nt.title,hours_line:Nt.hours_line,description:Nt.description})},defaultValue:"",children:[B.jsx("option",{value:"",disabled:!0,children:"اختر ÙØ§ÙØ¨ÙØ§â¦"}),M.map(pt=>
198B.jsx("option",{value:pt.id,children:pt.title},pt.id))]})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"اÙÙ
ÙÙÙØ¹ عÙÙ Ø§ÙØ´Ùادة"}),B.jsx("select",{className:"w-full h-10 rounded-md border border-border bg-background px-3 text-sm",value:Rt?.id??"",onChange:pt=>Ct(pt.target.value),children:U.map(pt=>B.jsxs("option",{value:pt.id,children:[pt.name,"Ø ",pt.signer_role,pt.is_default?" (Ø§ÙØªØ±Ø§Ø¶Ù)":""]},pt.id))}),B.jsx("p",{className:"text-[11px] text-muted-foreground mt-1",children:"ÙÙØÙÙØ¸ اÙÙ
ÙÙÙØ¹ Ù
ع Ø§ÙØ´ÙØ§Ø¯Ø©Ø ÙØªØ¨ÙÙ Ø§ÙØ´Ùادات اÙÙØ¯ÙÙ
Ø© ÙÙ
ا صدرت. ØªÙØ¯Ø§Ø± اÙÙÙØ§Ùب Ù
٠تبÙÙØ¨ Â«Ø§ÙØ¥Ø¹Ø¯Ø§Ø¯Ø§ØªÂ»."})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"عÙÙØ§Ù Ø§ÙØ¯Ùرة"}),B.jsx(Qn,{dir:"ltr",value:l.course_title,onChange:pt=>s({...l,course_title:pt.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"سطر Ø§ÙØ³Ø§Ø¹Ø§Øª"}),B.jsx(Qn,{dir:"ltr",value:l.hours_line,onChange:pt=>s({...l,hours_line:pt.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"اÙÙØµÙ"}),B.jsx(C0,{dir:"ltr",rows:5,value:l.description,onChange:pt=>s({...l,description:pt.target.value})})]}),B.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[B.jsxs("div",{children:[B.jsx(yn,{children:"ØªØ§Ø±ÙØ® Ø§ÙØ¥ØµØ¯Ø§Ø±"}),B.jsx(Qn,{type:"date",value:l.issued_on,onChange:pt=>s({...l,issued_on:pt.target.value})})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"رÙÙ
Ø§ÙØ´Ùادة"}),B.jsxs("div",{className:"flex gap-2",children:[B.jsx(Qn,{dir:"ltr",className:"font-mono tracking-widest",value:c,onChange:pt=>f(pt.target.value.toUpperCase())}),B.jsx(Ue,{type:"button",variant:"outline",size:"icon",onClick:()=>{f(Po()),_("")},children:B.jsx(L0,{className:"w-4 h-4"})})]}),!uh(c)&&B.jsx("p",{className:"text-[11px] text-destructive mt-1",children:"رÙÙ
ØºÙØ± ØµØ§ÙØ (7 رÙ
ÙØ² + Ø®Ø§ÙØ© تØÙÙ)"})]})]}),B.jsxs("div",{className:"flex flex-wrap gap-2 pt-2",children:[B.jsxs(Ue,{onClick:St,disabled:w==="save",className:"gap-2",children:[w==="save"?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(Zf,{className:"w-4 h-4"}),"ØÙظ ÙØ¥ØµØ¯Ø§Ø±"]}),B.jsxs(Ue,{variant:"outline",onClick:()=>Dt("png"),disabled:w==="png",className:"gap-2",children:[w==="png"?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(tc,{className:"w-4 h-4"}),"PNG 300DPI"]}),B.jsxs(Ue,{variant:"outline",onClick:()=>Dt("pdf"),disabled:w==="pdf",className:"gap-2",children:[w==="pdf"?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(E0,{className:"w-4 h-4"}),"PDF"]}),B.jsxs(Ue,{variant:"ghost",onClick:se,className:"gap-2",children:[B.jsx(Oc,{className:"w-4 h-4"})," ØÙظ ÙÙØ§Ùب"]}),B.jsx(Ue,{variant:"ghost",onClick:zt,children:"Ø´ÙØ§Ø¯Ø© Ø¬Ø¯ÙØ¯Ø©"})]}),B.jsxs("div",{className:"rounded-lg border border-border bg-muted/30 p-3 text-xs space-y-2",children:[B.jsxs("div",{className:"flex items-center justify-between gap-2",children:[B.jsx("span",{className:"text-muted-foreground",children:"رابط Ø§ÙØªØÙÙ"}),B.jsxs("button",{className:"inline-flex items-center gap-1 text-primary",onClick:()=>wt(Ko(c),"link"),children:[x==="link"?B.jsx(ec,{className:"w-3 h-3"}):B.jsx(nc,{className:"w-3 h-3"})," ÙØ³Ø®"]})]}),B.jsx("code",{dir:"ltr",className:"block break-all",children:Ko(c)}),B.jsxs("p",{className:"text-muted-foreground",children:["Ø¹ÙØ§Ù
Ø© Ø§ÙØªØÙ٠اÙÙ
Ø®ÙÙØ©: ",d?B.jsx("code",{dir:"ltr",className:"text-primary",children:d}):"تÙÙÙÙÙØ¯ بعد Ø§ÙØÙØ¸"]})]})]})]})}),B.jsx(Zi,{value:"records",className:"pt-4",children:st?B.jsx("p",{className:"text-sm text-muted-foreground",children:"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙâ¦"}):K.length===0?B.jsx("p",{className:"text-sm text-muted-foreground",children:"ÙØ§ ØªÙØ¬Ø¯ Ø´ÙØ§Ø¯Ø§Øª بعد."}):B.jsxs("div",{className:"space-y-3",children:[B.jsx("div",{className:"flex justify-end",children:B.jsxs(Ue,{size:"sm",variant:"outline",onClick:_e,disabled:w==="cards-all",className:"gap-2",children:[w==="cards-all"?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(sh,{className:"w-4 h-4"}),"تÙÙÙØ¯ Ø¨Ø·Ø§ÙØ§Øª اÙÙ
Ø´Ø§Ø±ÙØ© ÙÙØ¬Ù
ÙØ¹"]})}),B.jsx("div",{className:"rounded-xl border border-border overflow-x-auto",children:B.jsxs(R0,{children:[B.jsx(O0,{children:B.jsxs(oh,{children:[B.jsx(ks,{children:"Ø§ÙØ±ÙÙ
"}),B.jsx(ks,{children:"اÙÙ
ستÙÙ
"}),B.jsx(ks,{children:"Ø§ÙØ¯Ùرة"}),B.jsx(ks,{children:"Ø§ÙØªØ§Ø±ÙØ®"}),B.jsx(ks,{})]})}),B.jsx(T0,{children:K.map(pt=>B.jsxs(oh,{children:[B.jsx(Ss,{children:B.jsx("code",{dir:"ltr",className:"font-mono text-primary",children:pt.cert_id})}),B.jsx(Ss,{dir:"ltr",children:pt.recipient_name}),B.jsx(Ss,{dir:"ltr",className:"max-w-[240px] truncate",children:pt.course_title}),B.jsx(Ss,{dir:"ltr",children:pt.issued_on}),B.jsxs(Ss,{className:"text-end whitespace-nowrap",children:[B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>ne(pt),children:"Ù
عاÙÙØ©"}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>Ot(pt),title:"ÙÙØØ© Ø§ÙØ£Ù
اÙ",children:B.jsx(rc,{className:"w-4 h-4 text-primary"})}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>Vt(pt),disabled:w===`card-${pt.id}`,title:"تÙÙÙØ¯ Ø¨Ø·Ø§ÙØ© اÙÙ
Ø´Ø§Ø±ÙØ©",children:w===`card-${pt.id}`?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(sh,{className:"w-4 h-4"})}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>wt(Ko(pt.cert_id),pt.id),children:x===pt.id?B.jsx(ec,{className:"w-4 h-4"}):B.jsx(nc,{className:"w-4 h-4"})}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>we(pt),children:B.jsx(Tc,{className:"w-4 h-4 text-destructive"})})]})]},pt.id))})]})}),nt&&B.jsxs("div",{className:"rounded-xl border border-primary/40 bg-primary/5 p-4 space-y-3 text-sm",children:[B.jsxs("div",{className:"flex items-center justify-between gap-3",children:[B.jsxs("h3",{className:"font-bold flex items-center gap-2",children:[B.jsx(rc,{className:"w-4 h-4 text-primary"}),"ÙÙØØ© Ø§ÙØ£Ù
Ø§ÙØ ",B.jsx("code",{dir:"ltr",className:"font-mono text-primary",children:nt.cert_id})]}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>it(null),children:"Ø¥ØºÙØ§Ù"})]}),B.jsxs("p",{children:["Ø¹ÙØ§Ù
Ø© Ø§ÙØªØÙÙ Ø§ÙØØ§ÙÙØ©:"," ",mt?B.jsx("code",{dir:"ltr",className:"text-primary font-mono",children:mt}):B.jsx("span",{className:"text-muted-foreground",children:"Ø¬Ø§Ø±Ù Ø§ÙØ¬Ùبâ¦"}),B.jsx("span",{className:"text-muted-foreground text-xs",children:" (Ù
ØØ³Ùبة ÙØØ¸ÙÙØ§Ø ØºÙØ± Ù
خزÙÙØ© ÙÙ ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª)"})]}),B.jsxs("div",{className:"rounded-lg border border-amber-500/40 bg-amber-500/10 p-2 text-xs text-amber-600",children:["ÙØ°Ù اÙÙÙØØ© تعرض Ù
ا ",B.jsx("b",{children:"ÙØ¬Ø¨"})," Ø£Ù ÙØØªÙÙÙ Ù
ÙÙ ÙØ°Ù Ø§ÙØ´Ùادة. Ø¥ÙÙØ§ ÙÙØ³Øª تØÙÙÙØ§: ÙÙØ· ÙØØµ Ù
ÙÙ ÙØ¹ÙÙ Ù٠تبÙÙØ¨ Â«ÙØØµ Ù
ÙÙ» ÙÙØ¸Ùر Ù
ا ÙØØªÙÙ٠ذÙ٠اÙÙ
ÙÙ ",B.jsx("b",{children:"باÙÙØ¹Ù"}),"."]}),mt&&B.jsxs("div",{className:"space-y-2 text-xs",children:[B.jsx("p",{className:"font-medium",children:"اÙÙ
ØØªÙ٠اÙÙ
تÙÙØ¹ ÙÙÙ Ø·Ø¨ÙØ©:"}),[["Ø§ÙØ·Ø¨ÙØ© 1Ø ÙØµ دÙÙÙ ÙØ§ØªØ (أسÙÙ Ù
ÙØªØµÙ Ø§ÙØ´Ùادة)",Yi({certId:nt.cert_id,token:mt})],["Ø§ÙØ·Ø¨ÙØ© 2Ø ÙØµ دÙÙ٠داÙÙ (Ø¯Ø§Ø®Ù Ø§ÙØ´Ø±ÙØ· Ø§ÙØ¬Ø§ÙØ¨ÙØ رÙÙ
Ø§ÙØ´Ùادة ÙÙØ·)",nt.cert_id],["Ø§ÙØ·Ø¨ÙØ© 3Ø Ø§ÙØ¨Ùس٠(LSB Ù٠اÙÙÙØ§Ø© Ø§ÙØ²Ø±Ùاء)",z1({certId:nt.cert_id,token:mt,name:nt.recipient_name,course:nt.course_title,issuedOn:nt.issued_on})],["Ø§ÙØ·Ø¨ÙØ© 4Ø Ø¨ÙØ§Ùات اÙÙ
ÙÙ (PNG tEXt / PDF Keywords)",Yi({certId:nt.cert_id,token:mt})]].map(([pt,Nt])=>B.jsxs("div",{className:"rounded border border-border bg-background/60 p-2",children:[B.jsx("p",{className:"text-muted-foreground",children:pt}),B.jsx("code",{dir:"ltr",className:"break-all",children:Nt})]},pt)),B.jsxs("div",{className:"rounded border border-border bg-background/60 p-2 flex items-center justify-between gap-2",children:[B.jsxs("div",{children:[B.jsx("p",{className:"text-muted-foreground",children:"تÙÙ
ÙØ Ctrl+F داخ٠Ù
ÙÙ PDFØ Ø§Ø¨ØØ« عÙ:"}),B.jsx("code",{dir:"ltr",className:"break-all",children:Yi({certId:nt.cert_id,token:mt})})]}),B.jsxs("button",{className:"inline-flex items-center gap-1 text-primary shrink-0",onClick:()=>wt(Yi({certId:nt.cert_id,token:mt}),"ctrlf"),children:[x==="ctrlf"?B.jsx(ec,{className:"w-3 h-3"}):B.jsx(nc,{className:"w-3 h-3"})," ÙØ³Ø®"]})]})]}),B.jsxs("div",{className:"flex items-center gap-2",children:[B.jsxs(Ue,{size:"sm",variant:"outline",className:"gap-2",onClick:()=>at(pt=>!pt),children:[ft?B.jsx(ih,{className:"w-4 h-4"}):B.jsx(ah,{className:"w-4 h-4"}),ft?"Ø¥Ø®ÙØ§Ø¡ Ø§ÙØ¹ÙاÙ
ات عÙ٠اÙÙ
عاÙÙØ©":"Ø¥Ø¸ÙØ§Ø± Ø§ÙØ¹ÙاÙ
ات عÙ٠اÙÙ
عاÙÙØ©"]}),B.jsx("span",{className:"text-xs text-muted-foreground",children:"ÙØ¸Ùر Ø£Ø«Ø±ÙØ§ ÙÙ Ù
عاÙÙØ© تبÙÙØ¨ «إصدار Ø´ÙØ§Ø¯Ø©Â»Ø عرض عÙÙ Ø§ÙØ´Ø§Ø´Ø© ÙÙØ·."})]}),B.jsxs("p",{className:"text-xs text-muted-foreground",children:["ØªØ§Ø±ÙØ® Ø§ÙØ¥ØµØ¯Ø§Ø±: ",B.jsx("span",{dir:"ltr",children:nt.issued_on})," · Ø£ÙØ¶ÙÙØª Ø¨ØªØ§Ø±ÙØ®"," ",B.jsx("span",{dir:"ltr",children:new Date(nt.created_at).toLocaleStr
198ing("ar")})]}),B.jsxs(Ue,{size:"sm",onClick:()=>qt(nt),disabled:w===`reissue-${nt.id}`,className:"gap-2",children:[w===`reissue-${nt.id}`?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(tc,{className:"w-4 h-4"}),"إعادة إصدار اÙÙ
ÙÙ Ù
ختÙÙ
ÙØ§"]})]})]})}),B.jsxs(Zi,{value:"bulk",className:"space-y-4 pt-4 max-w-2xl",children:[B.jsxs("p",{className:"text-sm text-muted-foreground",children:["Ø§Ø±ÙØ¹ Ù
ÙÙ CSV ÙØØªÙ٠عÙ
ÙØ¯ ",B.jsx("code",{dir:"ltr",children:"name"})," (ÙØ§Ø®ØªÙارÙÙØ§ ",B.jsx("code",{dir:"ltr",children:"course, hours, description"}),"). Ø§ÙØÙÙ٠اÙÙØ§Ø±ØºØ© تأخذ ÙÙÙ
ÙÙ
ÙØ°Ø¬ Ø§ÙØ¥ØµØ¯Ø§Ø± Ø§ÙØØ§ÙÙ."]}),B.jsxs("div",{className:"rounded-lg border border-border overflow-hidden",children:[B.jsx("div",{className:"px-3 py-2 text-xs font-medium bg-muted/50 border-b border-border",children:"Ù
ثا٠عÙÙ ØªØ±ØªÙØ¨ Ø§ÙØ£Ø¹Ù
دة (Ø§ÙØµÙ Ø§ÙØ£ÙÙ ÙØ¬Ø¨ Ø£Ù ÙØØªÙ٠أسÙ
اء Ø§ÙØ£Ø¹Ù
دة Ø¨Ø§ÙØ¥ÙجÙÙØ²ÙØ©)"}),B.jsx("div",{className:"overflow-x-auto",children:B.jsxs("table",{dir:"ltr",className:"w-full text-xs",children:[B.jsx("thead",{className:"bg-muted/30",children:B.jsxs("tr",{className:"[&>th]:px-3 [&>th]:py-2 [&>th]:text-left [&>th]:font-mono [&>th]:whitespace-nowrap [&>th]:border-b [&>th]:border-border",children:[B.jsx("th",{children:"name"}),B.jsx("th",{children:"course"}),B.jsx("th",{children:"hours"}),B.jsx("th",{children:"description"})]})}),B.jsxs("tbody",{className:"[&>tr>td]:px-3 [&>tr>td]:py-2 [&>tr>td]:whitespace-nowrap [&>tr]:border-b [&>tr]:border-border/50",children:[B.jsxs("tr",{children:[B.jsx("td",{children:"Ahmad Ali"}),B.jsx("td",{children:"Generative Storytelling"}),B.jsx("td",{children:"12 Hours"}),B.jsx("td",{children:"Completed all modules"})]}),B.jsxs("tr",{children:[B.jsx("td",{children:"Ù
ØÙ
ÙØ¯ اÙÙ
صرÙ"}),B.jsx("td",{children:"Ø§ÙØ³Ø±Ø¯ Ø§ÙØ¥Ø¨Ø¯Ø§Ø¹Ù"}),B.jsx("td",{children:"12 ساعة"}),B.jsx("td",{})]}),B.jsxs("tr",{children:[B.jsx("td",{children:"Sara Khaled"}),B.jsx("td",{}),B.jsx("td",{}),B.jsx("td",{})]})]})]})}),B.jsxs("div",{className:"px-3 py-2 text-[11px] text-muted-foreground border-t border-border leading-relaxed",children:["â¢ Ø§ÙØ¹Ù
ÙØ¯ ",B.jsx("code",{dir:"ltr",children:"name"})," Ø¥ÙØ²Ø§Ù
ÙØ ÙØ§ÙباÙÙ Ø§Ø®ØªÙØ§Ø±Ù.",B.jsx("br",{}),"â¢ Ø§ÙØ®Ø§ÙØ© اÙÙØ§Ø±ØºØ© تعÙ٠استخداÙ
ÙÙÙ
Ø© ÙÙ
ÙØ°Ø¬ Ø§ÙØ¥ØµØ¯Ø§Ø± Ø§ÙØØ§ÙÙ.",B.jsx("br",{}),"⢠اØÙظ اÙÙ
ÙÙ Ø¨ØµÙØºØ© CSV بترÙ
ÙØ² UTF-8Ø ÙØ¥Ø°Ø§ Ø§ØØªÙ٠اÙÙØµ عÙÙ ÙØ§ØµÙØ© ضع٠بÙÙ Ø¹ÙØ§Ù
تÙÙ Ø§ÙØªØ¨Ø§Ø³."]})]}),B.jsxs("label",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-border cursor-pointer hover:bg-muted",children:[B.jsx(Dc,{className:"w-4 h-4"})," Ø§Ø®ØªÙØ§Ø± Ù
ÙÙ CSV",B.jsx("input",{type:"file",accept:".csv",className:"hidden",onChange:pt=>pt.target.files?.[0]&&Ut(pt.target.files[0])})]}),N.length>0&&B.jsxs("div",{className:"space-y-3",children:[B.jsxs("p",{className:"text-sm",children:[N.length," Ù
ستÙÙ
Ø¬Ø§ÙØ² ÙÙØ¥ØµØ¯Ø§Ø±."]}),B.jsxs(Ue,{onClick:ae,disabled:w==="bulk",className:"gap-2",children:[w==="bulk"?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(tc,{className:"w-4 h-4"}),"إصدار ÙØªÙزÙÙ ZIP"]}),w==="bulk"&&B.jsxs("div",{className:"space-y-1",children:[B.jsx("div",{className:"h-2 rounded bg-muted overflow-hidden",children:B.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${T.done/Math.max(T.total,1)*100}%`}})}),B.jsxs("p",{className:"text-xs text-muted-foreground",children:[T.done," / ",T.total]})]})]})]}),B.jsxs(Zi,{value:"check",className:"space-y-4 pt-4 max-w-5xl",children:[B.jsx("p",{className:"text-sm text-muted-foreground",children:"أدخ٠رÙÙ
Ø§ÙØ´Ùادة ÙØ§ÙØ¹ÙØ§Ù
Ø© اÙÙ
Ø®ÙÙØ© اÙÙ
ÙØ±Ùءة Ù
Ù Ø§ÙØµÙرة ÙÙØªØ£Ùد Ù
Ù Ø£ØµØ§ÙØªÙا."}),B.jsxs("div",{children:[B.jsx(yn,{children:"رÙÙ
Ø§ÙØ´Ùادة"}),B.jsx(Qn,{dir:"ltr",className:"font-mono",value:ot,onChange:pt=>et(pt.target.value.toUpperCase())})]}),B.jsxs("div",{children:[B.jsx(yn,{children:"Ø§ÙØ¹ÙاÙ
Ø© اÙÙ
Ø®ÙÙØ©"}),B.jsx(Qn,{dir:"ltr",className:"font-mono",value:$,onChange:pt=>k(pt.target.value.toUpperCase())})]}),B.jsxs(Ue,{onClick:Kt,disabled:w==="check"||!ot,className:"gap-2",children:[B.jsx(rc,{className:"w-4 h-4"})," ÙØØµ"]}),j&&B.jsx("div",{className:`rounded-lg border p-4 text-sm ${j.ok?"border-green-500/40 bg-green-500/10":"border-destructive/40 bg-destructive/10"}`,children:j.ok?B.jsxs(B.Fragment,{children:["Ù
Ø·Ø§Ø¨ÙØ©Ø ",j.cert?.recipient_name," · ",j.cert?.issued_on]}):B.jsx(B.Fragment,{children:"ØºÙØ± Ù
Ø·Ø§Ø¨ÙØ© "})}),j&&B.jsx("div",{className:"pt-6 space-y-2",children:rt?B.jsxs(B.Fragment,{children:[B.jsxs("h3",{className:"font-bold text-sm",children:["Ø§ÙØ´Ùادة Ø§ÙØ£ØµÙÙØ© اÙÙ
سجÙÙØ© (",rt.cert_id,")"]}),B.jsx("div",{dir:"ltr",className:"rounded-xl border border-border bg-white p-2 md:p-3 w-full max-w-5xl overflow-hidden",children:B.jsx(lh,{name:rt.recipient_name,course:rt.course_title,hours:rt.hours_line,description:rt.description,certId:rt.cert_id,...L(I(rt.signer_id
198))})})]}):B.jsx("p",{className:"text-sm text-muted-foreground",children:"ÙØ§ ÙÙØ¬Ø¯ سج٠ÙÙØ°Ø§ Ø§ÙØ±ÙÙ
ÙÙ ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª."})})]}),B.jsxs(Zi,{value:"file",className:"space-y-4 pt-4 max-w-3xl",children:[B.jsxs("p",{className:"text-sm text-muted-foreground",children:["Ø§Ø±ÙØ¹ Ù
ÙÙ Ø§ÙØ´Ùادة اÙÙ
Ø´ØªØ¨Ù Ø¨ÙØ ",B.jsx("b",{children:"PNG"})," Ø£Ù ",B.jsx("b",{children:"PDF"})," (Ø£Ù JPEG). تÙÙØ±Ø£ Ø§ÙØ·Ø¨ÙØ© 3 (Ø§ÙØ¨ÙسÙ) ÙØ§ÙØ·Ø¨ÙØ© 4 (Ø¨ÙØ§Ùات اÙÙ
ÙÙ)Ø ÙÙÙ PDF Ø£ÙØ¶Ùا Ø·Ø¨ÙØ© اÙÙØµ ØºÙØ± اÙÙ
Ø±Ø¦ÙØ Ø«Ù
تÙÙØ§Ø±ÙÙ Ø§ÙØ¹ÙاÙ
Ø© Ù
ع Ø§ÙØ¹ÙاÙ
Ø© اÙÙ
عاد ØØ³Ø§Ø¨Ùا ÙÙØ±ÙÙ
ÙÙØ³Ù. Ø§ÙØ·Ø¨Ùتا٠1 Ù2 ÙØµ دÙÙÙ (3px) ÙØ§ ÙÙÙØ±Ø£ Ø¢ÙÙÙØ§Ø ØªÙØ¹Ø±Ùض Ù
ÙØ¨ÙÙØ±Ø© Ø£Ø¯ÙØ§Ù ÙØªÙØ±Ø£ÙØ§ بÙÙØ³Ù."]}),B.jsxs("label",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-border cursor-pointer hover:bg-muted",children:[w==="inspect"?B.jsx(ei,{className:"w-4 h-4 animate-spin"}):B.jsx(Dc,{className:"w-4 h-4"}),"Ø§Ø®ØªÙØ§Ø± Ù
ÙÙ ÙÙÙØØµ (PNG / PDF)",B.jsx("input",{type:"file",accept:"image/*,.pdf,application/pdf",className:"hidden",onChange:pt=>pt.target.files?.[0]&&Et(pt.target.files[0])})]}),g&&(()=>{const pt=g.certId?K.find(Zt=>Zt.cert_id===g.certId)??null:null,Nt=[];pt&&(g.embeddedName&&g.embeddedName!==pt.recipient_name&&Nt.push("Ø§ÙØ§Ø³Ù
"),g.embeddedCourse&&g.embeddedCourse!==pt.course_title&&Nt.push("Ø§ÙØ¯Ùرة"),g.embeddedDate&&g.embeddedDate!==pt.issued_on&&Nt.push("Ø§ÙØªØ§Ø±ÙØ®"));const Ht=[{n:1,label:"Ø§ÙØ·Ø¨ÙØ© 1Ø ÙØµ دÙÙÙ ÙØ§ØªØ",manual:!0},{n:2,label:"Ø§ÙØ·Ø¨ÙØ© 2Ø ÙØµ دÙÙ٠داÙÙ",manual:!0},{n:3,label:"Ø§ÙØ·Ø¨ÙØ© 3Ø Ø§ÙØ¨Ùس٠(LSB)",value:g.pixels},{n:4,label:"Ø§ÙØ·Ø¨ÙØ© 4Ø Ø¨ÙØ§Ùات اÙÙ
ÙÙ",value:g.metadata}];return B.jsxs("div",{className:"space-y-3",children:[B.jsxs("div",{className:`rounded-lg border p-4 text-sm font-bold ${g.verdict==="authentic"?"border-green-500/40 bg-green-500/10 text-green-500":g.verdict==="tampered"?"border-destructive/40 bg-destructive/10 text-destructive":"border-amber-500/40 bg-amber-500/10 text-amber-500"}`,children:[g.verdict==="authentic"&&"أصÙÙØ©Ø Ø§ÙØ¹ÙاÙ
Ø© Ù
Ø·Ø§Ø¨ÙØ© ÙÙØ¹ÙاÙ
Ø© اÙÙ
ØØ³Ùبة",g.verdict==="tampered"&&"Ù
زÙÙÙØ±Ø©Ø ØªÙØ¬Ø¯ Ø¹ÙØ§Ù
Ø© ÙÙÙÙØ§ ØºÙØ± Ù
Ø·Ø§Ø¨ÙØ©",g.verdict==="unreadable"&&"ÙØ§ ØªÙØ¬Ø¯ Ø·Ø¨ÙØ© ÙØ§Ø¨ÙØ© ÙÙÙØ±Ø§Ø¡Ø© Ø¢ÙÙÙØ§Ø Ø§ÙØ±Ø£ Ø´Ø±Ø§Ø¦Ø Ø§ÙÙØµ Ø§ÙØ¯ÙÙÙ Ø£Ø¯ÙØ§Ù ÙØ¯ÙÙÙØ§"]}),B.jsxs("div",{className:"rounded-lg border border-border p-4 text-xs space-y-3",children:[B.jsxs("p",{className:"text-muted-foreground",children:["اÙÙ
ÙÙ: ",B.jsx("span",{dir:"ltr",children:g.fileName}),g.isPdf&&B.jsx("span",{className:"ms-2 rounded bg-muted px-1.5 py-0.5",children:"PDF"})]}),Ht.map(Zt=>B.jsxs("div",{className:"flex flex-wrap items-start gap-2 border-t border-border pt-2",children:[B.jsx("span",{className:"min-w-[190px] font-medium",children:Zt.label}),Zt.manual?B.jsx("span",{className:"text-amber-500",children:"Ø§ÙØ±Ø£Ùا بÙÙØ³Ù "}):Zt.value?B.jsxs(B.Fragment,{children:[B.jsx("span",{className:"text-green-500",children:"Ù
ÙØ¬Ùدة"}),B.jsx("code",{dir:"ltr",className:"break-all text-primary",children:Zt.value})]}):B.jsx("span",{className:"text-muted-foreground",children:"ØºÙØ± Ù
ÙØ¬Ùدة"})]},Zt.n)),g.isPdf&&B.jsxs("div",{className:"flex flex-wrap items-start gap-2 border-t border-border pt-2",children:[B.jsx("span",{className:"min-w-[190px] font-medium",children:"Ø·Ø¨ÙØ© إضاÙÙØ©Ø ÙØµ PDF ØºÙØ± Ù
رئÙ"}),g.textLayer?B.jsx("code",{dir:"ltr",className:"break-all text-primary",children:g.textLayer}):B.jsx("span",{className:"text-muted-foreground",children:"ØºÙØ± Ù
ÙØ¬Ùدة"})]}),g.isPdf&&g.diagnostics&&B.jsxs("div",{className:"border-t border-border pt-2 space-y-1",children:[B.jsx("p",{className:"font-medium",children:"ØªØ´Ø®ÙØµ ÙØ§Ø±Ø¦ PDF"}),B.jsxs("p",{children:["Ø§ÙØµÙر اÙÙ
ستخرجة: ",g.diagnostics.imageCandidates]}),Object.entries(g.diagnostics).filter(([Zt,$t])=>Zt!=="imageCandidates"&&!!$t).map(([Zt,$t])=>B.jsxs("p",{className:"text-destructive break-words",children:[Zt,": ",String($t)]},Zt))]}),(g.stripLight||g.stripDark)&&B.jsxs("div",{className:"border-t border-border pt-2 space-y-2",children:[B.jsx("p",{className:"font-medium",children:"Ø´Ø±Ø§Ø¦Ø Ø§ÙÙØµ Ø§ÙØ¯ÙÙÙ (Ù
ÙØ¨ÙÙØ±Ø© 8à Ù
ع Ø±ÙØ¹ Ø§ÙØªØ¨Ø§ÙÙ):"}),g.stripLight&&B.jsxs("div",{children:[B.jsx("p",{className:"text-muted-foreground mb-1",children:"Ø§ÙØ·Ø¨ÙØ© 1 (ÙØ§ØªØØ©)"}),B.jsx("img",{src:g.stripLight,alt:"Ø§ÙØ·Ø¨ÙØ© 1",className:"w-full border border-border rounded bg-white",style:{imageRendering:"pixelated"}})]}),g.stripDark&&B.jsxs("div",{children:[B.jsx("p",{className:"text-muted-foreground mb-1",children:"Ø§ÙØ·Ø¨ÙØ© 2 (داÙÙØ©)"}),B.jsx("img",{src:g.stripDark,alt:"Ø§ÙØ·Ø¨ÙØ© 2",className:"w-full border border-border rounded bg-white",style:{imageRendering:"pixelated"}})]})]}),B.jsxs("div",{className:"border-t border-border pt-2 space-y-1",children:[g.certId&&B.jsxs("p",{children:["رÙÙ
Ø§ÙØ´Ùادة اÙÙ
ÙØ±ÙØ¡: ",B.jsx("code",{dir:"ltr",className:"font-mono",children:g.certId})]}),g.embeddedName&&B.jsxs("p",{children:["Ø§ÙØ§Ø³Ù
اÙÙ
ضÙ
ÙÙÙ: ",B.jsx("span",{dir:"ltr",children:g.embeddedName})]}),g.embeddedCourse&&B.jsxs("p",{children:["Ø§ÙØ¯Ùرة اÙÙ
ضÙ
ÙÙÙØ©: ",B.jsx("span",{dir:"ltr",children:g.embeddedCourse})]}),g.embeddedDate&&B.jsxs("p",{children:["Ø§ÙØªØ§Ø±ÙØ® اÙÙ
ضÙ
ÙÙÙ: ",B.jsx("span",{dir:"ltr",children:g.embeddedDate})]}),g.certId&&(pt?Nt.length?B.jsxs("p",{className:"text-destructive font-bold",children:["Ø§Ø®ØªÙØ§Ù Ø¹Ù Ø³Ø¬Ù ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª ÙÙ: ",Nt.join("Ø ")]}):B.jsx("p",{className:"text-green-500",children:"Ø§ÙØ¨ÙØ§ÙØ§Øª اÙÙ
ضÙ
ÙÙÙØ© Ù
Ø·Ø§Ø¨ÙØ© ÙØ³Ø¬Ù ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª "}):B.jsx("p",{className:"text-amber-500",children:"ÙØ§ ÙÙØ¬Ø¯ Ø³Ø¬Ù Ø¨ÙØ°Ø§ Ø§ÙØ±ÙÙ
ÙÙ ÙØ§Ø¹Ø¯Ø© Ø§ÙØ¨ÙØ§ÙØ§Øª"}))]})]})]})})()]}),B.jsxs(Zi,{value:"settings",className:"space-y-6 pt-4 max-w-4xl",children:[B.jsx(l2,{}),B.jsxs("div",{className:"pt-6",children:[B.jsx("h3",{className:"font-bold mb-2",children:"ÙÙØ§Ùب Ø§ÙØ¯Ùرات"}),B.jsxs("div",{className:"space-y-2",children:[M.map(pt=>B.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-lg border border-border p-2 text-sm",children:[B.jsx("span",{dir:"ltr",className:"truncate",children:pt.title}),B.jsx(Ue,{size:"sm",variant:"ghost",onClick:()=>ce(pt.id),children:B.jsx(Tc,{className:"w-4 h-4 text-destructive"})})]},pt.id)),M.length===0&&B.jsx("p",{className:"text-sm text-muted-foreground",children:"ÙØ§ ØªÙØ¬Ø¯ ÙÙØ§Ùب."})]})]})]})]}),a&&B.jsx("div",{dir:"ltr","data-export-cert":a.certId,style:{position:"fixed",left:-2e4,top:0}
198,"aria-hidden":!0,children:B.jsx(ch,{...a,scale:1,stageRef:r})}),C&&B.jsx("div",{dir:"ltr",style:{position:"fixed",left:-2e4,top:0},"aria-hidden":!0,children:B.jsx(ch,{name:C.row.name,course:C.row.course,hours:C.row.hours,description:C.row.description,certId:C.certId,mark:C.mark,...L(Rt),scale:1,stageRef:e})})]})};export{Ob as default};
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.