HEX
Server: Apache/2.4.59 (Debian)
System: Linux keymana 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64
User: lijunjie (1003)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/uileague/cms/js/chunk-f269607a.85abfd69.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f269607a","chunk-d9bb2b7c","chunk-2d0ab800","chunk-2d0f0b9f"],{"0035":function(t,e,r){var n=r("eee5"),i=r("5de5"),o=r("e401"),a=r("bc58"),s=function(t){var e=1==t;return function(r,s,c){var u,f,l=o(r),h=i(l),d=n(s,c),p=a(h);while(p-- >0)if(u=h[p],f=d(u,p,l),f)switch(t){case 0:return u;case 1:return p}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},"015a":function(t,e,r){r("7739");var n=r("5609");t.exports=n("Array","forEach")},"01a0":function(t,e,r){var n=r("66f6"),i=r("c700"),o=r("d799").CONSTRUCTOR;t.exports=o||!i((function(t){n.all(t).then(void 0,(function(){}))}))},"023e":function(t,e,r){var n=r("d1db"),i=r("e677"),o=r("58b3"),a=r("7b29"),s=n("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),l=function(t){return function(e){var r=o(i(e));return 1&t&&(r=s(r,u,"")),2&t&&(r=s(r,f,"")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},"0285":function(t,e,r){var n=r("405b"),i=r("5977"),o=r("7794"),a=r("d4cb"),s=r("86f5").CONFIGURABLE,c=r("a1a1"),u=r("95cb"),f=u.enforce,l=u.get,h=Object.defineProperty,d=a&&!n((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=t.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),d&&r&&o(r,"arity")&&t.length!==r.arity&&h(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=f(t);return o(n,"source")||(n.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return i(this)&&l(this).source||c(this)}),"toString")},"02cf":function(t,e,r){var n=r("cc94"),i=r("405b"),o=r("c700"),a=r("bca7").NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,c=n.Int8Array;t.exports=!a||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!o((function(t){new c,new c(null),new c(1.5),new c(t)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},"0319":function(t,e,r){var n=r("d4cb"),i=r("7436"),o=r("2272"),a=r("6165"),s=r("b31a"),c=r("d5d1"),u=r("7794"),f=r("48af"),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=s(t),e=c(e),f)try{return l(t,e)}catch(r){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},"052d":function(t,e,r){var n=r("d4acb"),i=r("cc94");t.exports="process"==n(i.process)},"0593":function(t,e,r){"use strict";var n=r("41bc"),i=r("b2df"),o=r("405b"),a=r("e474"),s=r("3994"),c=r("cb4a"),u=r("14cf"),f=r("09ce"),l=a.ArrayBuffer,h=a.DataView,d=h.prototype,p=i(l.prototype.slice),g=i(d.getUint8),v=i(d.setUint8),b=o((function(){return!new l(2).slice(1,void 0).byteLength}));n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:b},{slice:function(t,e){if(p&&void 0===e)return p(s(this),t);var r=s(this).byteLength,n=c(t,r),i=c(void 0===e?r:e,r),o=new(f(this,l))(u(i-n)),a=new h(this),d=new h(o),b=0;while(n<i)v(d,b++,g(a,n++));return o}})},"074f":function(t,e,r){r("54c4"),r("d9a6"),r("af1d"),r("fb0e"),r("185b"),r("663a"),r("b9b5"),r("59b9");var n=r("5028");t.exports=n.Promise},"08bf":function(t,e,r){var n,i=r("3994"),o=r("9473"),a=r("5383"),s=r("d60f"),c=r("524c"),u=r("33f8"),f=r("1287"),l=">",h="<",d="prototype",p="script",g=f("IE_PROTO"),v=function(){},b=function(t){return h+p+l+t+h+"/"+p+l},m=function(t){t.write(b("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=u("iframe"),r="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(b("document.F=Object")),t.close(),t.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}w="undefined"!=typeof document?document.domain&&n?m(n):y():m(n);var t=a.length;while(t--)delete w[d][a[t]];return w()};s[g]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(v[d]=i(t),r=new v,v[d]=null,r[g]=t):r=w(),void 0===e?r:o.f(r,e)}},"092e":function(t,e,r){"use strict";var n=r("9cea"),i=r("b31a"),o=r("0d11"),a=r("bc58"),s=r("f9de"),c=Math.min,u=[].lastIndexOf,f=!!u&&1/[1].lastIndexOf(1,-0)<0,l=s("lastIndexOf"),h=f||!l;t.exports=h?function(t){if(f)return n(u,this,arguments)||0;var e=i(this),r=a(e),s=r-1;for(arguments.length>1&&(s=c(s,o(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:u},"09b7":function(t,e,r){var n=r("5977"),i=r("1deb"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===o}:function(t){return"object"==typeof t?null!==t:n(t)}},"09ce":function(t,e,r){var n=r("3994"),i=r("f21c"),o=r("f41d"),a=r("15e7"),s=a("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||o(r=n(a)[s])?e:i(r)}},"0b16":function(t,e,r){"use strict";var n=r("1985"),i=r("35e8");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=x,e.resolve=L,e.resolveObject=N,e.format=A,e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(u),l=["'"].concat(f),h=["%","/","?",";","#"].concat(l),d=["/","?","#"],p=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r("b383");function x(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}function A(t){return i.isString(t)&&(t=x(t)),t instanceof o?t.format():o.prototype.format.call(t)}function L(t,e){return x(t,!1,!0).resolve(e)}function N(t,e){return t?x(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o<t.indexOf("#")?"?":"#",u=t.split(s),f=/\\/g;u[0]=u[0].replace(f,"/"),t=u.join(s);var x=t;if(x=x.trim(),!r&&1===t.split("#").length){var A=c.exec(x);if(A)return this.path=x,this.href=x,this.pathname=A[1],A[2]?(this.search=A[2],this.query=e?w.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var L=a.exec(x);if(L){L=L[0];var N=L.toLowerCase();this.protocol=N,x=x.substr(L.length)}if(r||L||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===x.substr(0,2);!S||L&&m[L]||(x=x.substr(2),this.slashes=!0)}if(!m[L]&&(S||L&&!y[L])){for(var _,P,k=-1,j=0;j<d.length;j++){var C=x.indexOf(d[j]);-1!==C&&(-1===k||C<k)&&(k=C)}P=-1===k?x.lastIndexOf("@"):x.lastIndexOf("@",k),-1!==P&&(_=x.slice(0,P),x=x.slice(P+1),this.auth=decodeURIComponent(_)),k=-1;for(j=0;j<h.length;j++){C=x.indexOf(h[j]);-1!==C&&(-1===k||C<k)&&(k=C)}-1===k&&(k=x.length),this.host=x.slice(0,k),x=x.slice(k),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var O=this.hostname.split(/\./),F=(j=0,O.length);j<F;j++){var E=O[j];if(E&&!E.match(g)){for(var T="",M=0,R=E.length;M<R;M++)E.charCodeAt(M)>127?T+="x":T+=E[M];if(!T.match(g)){var B=O.slice(0,j),D=O.slice(j+1),q=E.match(v);q&&(B.push(q[1]),D.unshift(q[2])),D.length&&(x="/"+D.join(".")+x),this.hostname=B.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+U,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!b[N])for(j=0,F=l.length;j<F;j++){var H=l[j];if(-1!==x.indexOf(H)){var W=encodeURIComponent(H);W===H&&(W=escape(H)),x=x.split(H).join(W)}}var V=x.indexOf("#");-1!==V&&(this.hash=x.substr(V),x=x.slice(0,V));var G=x.indexOf("?");if(-1!==G?(this.search=x.substr(G),this.query=x.substr(G+1),e&&(this.query=w.parse(this.query)),x=x.slice(0,G)):e&&(this.search="",this.query={}),x&&(this.pathname=x),y[N]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var Y=this.search||"";this.path=U+Y}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=w.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||y[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})),s=s.replace("#","%23"),e+o+r+s+n},o.prototype.resolve=function(t){return this.resolveObject(x(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),u=0;u<c.length;u++){var f=c[u];"protocol"!==f&&(r[f]=t[f])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!y[t.protocol]){for(var l=Object.keys(t),h=0;h<l.length;h++){var d=l[h];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||m[t.protocol])r.pathname=t.pathname;else{var p=(t.pathname||"").split("/");while(p.length&&!(t.host=p.shift()));t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var g=r.pathname||"",v=r.search||"";r.path=g+v}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=w||b||r.host&&t.pathname,A=x,L=r.pathname&&r.pathname.split("/")||[],N=(p=t.pathname&&t.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(N&&(r.hostname="",r.port=null,r.host&&(""===L[0]?L[0]=r.host:L.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),x=x&&(""===p[0]||""===L[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,L=p;else if(p.length)L||(L=[]),L.pop(),L=L.concat(p),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(N){r.hostname=r.host=L.shift();var S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!L.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=L.slice(-1)[0],P=(r.host||t.host||L.length>1)&&("."===_||".."===_)||""===_,k=0,j=L.length;j>=0;j--)_=L[j],"."===_?L.splice(j,1):".."===_?(L.splice(j,1),k++):k&&(L.splice(j,1),k--);if(!x&&!A)for(;k--;k)L.unshift("..");!x||""===L[0]||L[0]&&"/"===L[0].charAt(0)||L.unshift(""),P&&"/"!==L.join("/").substr(-1)&&L.push("");var C=""===L[0]||L[0]&&"/"===L[0].charAt(0);if(N){r.hostname=r.host=C?"":L.length?L.shift():"";S=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");S&&(r.auth=S.shift(),r.host=r.hostname=S.shift())}return x=x||r.host&&L.length,x&&!C&&L.unshift(""),L.length?r.pathname=L.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0cf5":function(t,e,r){"use strict";var n=r("cc94"),i=r("9cea"),o=r("bca7"),a=r("405b"),s=r("16cd"),c=n.Int8Array,u=o.aTypedArray,f=o.exportTypedArrayMethod,l=[].toLocaleString,h=!!c&&a((function(){l.call(new c(1))})),d=a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])}));f("toLocaleString",(function(){return i(l,h?s(u(this)):u(this),s(arguments))}),d)},"0d11":function(t,e,r){var n=r("11e95");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"0d40":function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").forEach,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"0e8a":function(t,e,r){"use strict";var n=r("cc94"),i=r("b2df"),o=r("405b"),a=r("8b60"),s=r("fd50"),c=r("bca7"),u=r("cfa5"),f=r("5592"),l=r("fe35"),h=r("bcba"),d=c.aTypedArray,p=c.exportTypedArrayMethod,g=n.Uint16Array,v=g&&i(g.prototype.sort),b=!!v&&!(o((function(){v(new g(2),null)}))&&o((function(){v(new g(2),{})}))),m=!!v&&!o((function(){if(l)return l<74;if(u)return u<67;if(f)return!0;if(h)return h<602;var t,e,r=new g(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(v(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0})),y=function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!==r?-1:e!==e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}};p("sort",(function(t){return void 0!==t&&a(t),m?v(this,t):s(d(this),y(t))}),!m||b)},"0eb7":function(t,e,r){var n=r("eee5"),i=r("7436"),o=r("f21c"),a=r("e401"),s=r("bc58"),c=r("ca61"),u=r("8ee9"),f=r("f8d4"),l=r("3361"),h=r("bca7").aTypedArrayConstructor,d=r("82a2");t.exports=function(t){var e,r,p,g,v,b,m,y,w=o(this),x=a(t),A=arguments.length,L=A>1?arguments[1]:void 0,N=void 0!==L,S=u(x);if(S&&!f(S)){m=c(x,S),y=m.next,x=[];while(!(b=i(y,m)).done)x.push(b.value)}for(N&&A>2&&(L=n(L,arguments[2])),r=s(x),p=new(h(w))(r),g=l(p),e=0;r>e;e++)v=N?L(x[e],e):x[e],p[e]=g?d(v):+v;return p}},"0f5b":function(t,e,r){var n=r("7227");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1112:function(t,e){e.f=Object.getOwnPropertySymbols},"11bb":function(t,e,r){r("c25a");var n=r("5028");t.exports=n.Array.isArray},"11e95":function(t,e){var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?n:r)(e)}},1224:function(t,e,r){r("73d4");var n=r("5028"),i=n.Object;t.exports=function(t,e){return i.create(t,e)}},1287:function(t,e,r){var n=r("9579"),i=r("98b1"),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},"12ac":function(t,e,r){"use strict";var n=r("41bc"),i=r("4526"),o=r("a095"),a=r("66f6"),s=r("d799").CONSTRUCTOR,c=r("a7f4"),u=i("Promise"),f=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return c(f&&this===u?a:this,t)}})},"14a4":function(t,e,r){var n,i,o,a,s=r("cc94"),c=r("9cea"),u=r("eee5"),f=r("5977"),l=r("7794"),h=r("405b"),d=r("524c"),p=r("16cd"),g=r("33f8"),v=r("5784"),b=r("7a4d"),m=r("052d"),y=s.setImmediate,w=s.clearImmediate,x=s.process,A=s.Dispatch,L=s.Function,N=s.MessageChannel,S=s.String,_=0,P={},k="onreadystatechange";try{n=s.location}catch(F){}var j=function(t){if(l(P,t)){var e=P[t];delete P[t],e()}},C=function(t){return function(){j(t)}},I=function(t){j(t.data)},O=function(t){s.postMessage(S(t),n.protocol+"//"+n.host)};y&&w||(y=function(t){v(arguments.length,1);var e=f(t)?t:L(t),r=p(arguments,1);return P[++_]=function(){c(e,void 0,r)},i(_),_},w=function(t){delete P[t]},m?i=function(t){x.nextTick(C(t))}:A&&A.now?i=function(t){A.now(C(t))}:N&&!b?(o=new N,a=o.port2,o.port1.onmessage=I,i=u(a.postMessage,a)):s.addEventListener&&f(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!h(O)?(i=O,s.addEventListener("message",I,!1)):i=k in g("script")?function(t){d.appendChild(g("script"))[k]=function(){d.removeChild(this),j(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:y,clear:w}},"14cf":function(t,e,r){var n=r("0d11"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},1580:function(t,e,r){var n=r("d4cb"),i=r("eb94"),o=r("6165");t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},"15e7":function(t,e,r){var n=r("cc94"),i=r("9579"),o=r("7794"),a=r("98b1"),s=r("7227"),c=r("0f5b"),u=i("wks"),f=n.Symbol,l=f&&f["for"],h=c?f:f&&f.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&o(f,t)?u[t]=f[t]:u[t]=c&&l?l(e):h(e)}return u[t]}},1616:function(t,e,r){"use strict";r.r(e),r.d(e,"LogsModel",(function(){return l}));var n=r("a34a"),i=r.n(n),o=r("ceda");r("4360");function a(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function s(t){a(o,n,i,s,c,"next",t)}function c(t){a(o,n,i,s,c,"throw",t)}s(void 0)}))}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),t}var l=function(){function t(){c(this,t)}return f(t,null,[{key:"getList",value:function(){var t=s(i.a.mark((function t(e){var r;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=new Object,t.prev=1,t.next=4,Object(o["post"])("/api-data",{c:"Logs",a:"getList",company_id:e.company_id,pageLimit:e.count,cpage:e.start,keyword:e.keyword}).then((function(t){r=t})).catch((function(t){console.log(null==t?"網絡出錯":t)}));case 4:t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),console.log("網絡出錯");case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));function e(e){return t.apply(this,arguments)}return e}()},{key:"downloadPdf",value:function(){var t=s(i.a.mark((function t(e){var r;return i.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=new Object,t.prev=1,t.next=4,Object(o["download"])("/pdf",{c:"Logs",a:"getList",company_id:e.company_id,pageLimit:e.count,cpage:e.start,keyword:e.keyword}).then((function(t){r=t;var e=window.URL.createObjectURL(new Blob([t])),n=document.createElement("a");n.style.display="none",n.href=e,n.setAttribute("download","Export_操作記錄.pdf"),document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(n.href),document.body.removeChild(n)})).catch((function(t){console.log(null==t?"網絡出錯":t)}));case 4:t.sent,t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](1),console.log("網絡出錯");case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));function e(e){return t.apply(this,arguments)}return e}()}]),t}()},"16cd":function(t,e,r){var n=r("d1db");t.exports=n([].slice)},"17e8":function(t,e,r){var n=r("d1db");t.exports=n({}.isPrototypeOf)},"182e":function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").some,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"185b":function(t,e,r){"use strict";var n=r("41bc"),i=r("7436"),o=r("8b60"),a=r("5e08"),s=r("2d7c"),c=r("54f7");n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=a.f(e),n=r.resolve,u=r.reject,f=s((function(){var r=o(e.resolve),a=[],s=0,u=1;c(t,(function(t){var o=s++,c=!1;u++,i(r,e,t).then((function(t){c||(c=!0,a[o]={status:"fulfilled",value:t},--u||n(a))}),(function(t){c||(c=!0,a[o]={status:"rejected",reason:t},--u||n(a))}))})),--u||n(a)}));return f.error&&u(f.value),r.promise}})},1985:function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,u=36,f=1,l=26,h=38,d=700,p=72,g=128,v="-",b=/^xn--/,m=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=u-f,A=Math.floor,L=String.fromCharCode;function N(t){throw new RangeError(w[t])}function S(t,e){var r=t.length,n=[];while(r--)n[r]=e(t[r]);return n}function _(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(y,".");var i=t.split("."),o=S(i,e).join(".");return n+o}function P(t){var e,r,n=[],i=0,o=t.length;while(i<o)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function k(t){return S(t,(function(t){var e="";return t>65535&&(t-=65536,e+=L(t>>>10&1023|55296),t=56320|1023&t),e+=L(t),e})).join("")}function j(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function I(t,e,r){var n=0;for(t=r?A(t/d):t>>1,t+=A(t/e);t>x*l>>1;n+=u)t=A(t/x);return A(n+(x+1)*t/(t+h))}function O(t){var e,r,n,i,o,a,s,h,d,b,m=[],y=t.length,w=0,x=g,L=p;for(r=t.lastIndexOf(v),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&N("not-basic"),m.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=w,a=1,s=u;;s+=u){if(i>=y&&N("invalid-input"),h=j(t.charCodeAt(i++)),(h>=u||h>A((c-w)/a))&&N("overflow"),w+=h*a,d=s<=L?f:s>=L+l?l:s-L,h<d)break;b=u-d,a>A(c/b)&&N("overflow"),a*=b}e=m.length+1,L=I(w-o,e,0==o),A(w/e)>c-x&&N("overflow"),x+=A(w/e),w%=e,m.splice(w++,0,x)}return k(m)}function F(t){var e,r,n,i,o,a,s,h,d,b,m,y,w,x,S,_=[];for(t=P(t),y=t.length,e=g,r=0,o=p,a=0;a<y;++a)m=t[a],m<128&&_.push(L(m));n=i=_.length,i&&_.push(v);while(n<y){for(s=c,a=0;a<y;++a)m=t[a],m>=e&&m<s&&(s=m);for(w=n+1,s-e>A((c-r)/w)&&N("overflow"),r+=(s-e)*w,e=s,a=0;a<y;++a)if(m=t[a],m<e&&++r>c&&N("overflow"),m==e){for(h=r,d=u;;d+=u){if(b=d<=o?f:d>=o+l?l:d-o,h<b)break;S=h-b,x=u-b,_.push(L(C(b+S%x,0))),h=A(S/x)}_.push(L(C(h,0))),o=I(r,w,n==i),r=0,++n}++r,++e}return _.join("")}function E(t){return _(t,(function(t){return b.test(t)?O(t.slice(4).toLowerCase()):t}))}function T(t){return _(t,(function(t){return m.test(t)?"xn--"+F(t):t}))}s={version:"1.4.1",ucs2:{decode:P,encode:k},decode:O,encode:F,toASCII:T,toUnicode:E},i=function(){return s}.call(e,r,e,t),void 0===i||(t.exports=i)})()}).call(this,r("62e4")(t),r("c8ba"))},"1a0a":function(t,e,r){var n=r("b31a"),i=r("cb4a"),o=r("bc58"),a=function(t){return function(e,r,a){var s,c=n(e),u=o(c),f=i(a,u);if(t&&r!=r){while(u>f)if(s=c[f++],s!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"1deb":function(t,e){var r="object"==typeof document&&document.all,n="undefined"==typeof r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}},"1e6a":function(t,e,r){"use strict";var n=r("cc94"),i=r("7436"),o=r("bca7"),a=r("bc58"),s=r("6d9d"),c=r("e401"),u=r("405b"),f=n.RangeError,l=n.Int8Array,h=l&&l.prototype,d=h&&h.set,p=o.aTypedArray,g=o.exportTypedArrayMethod,v=!u((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),b=v&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var t=new l(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));g("set",(function(t){p(this);var e=s(arguments.length>1?arguments[1]:void 0,1),r=c(t);if(v)return i(d,this,r,e);var n=this.length,o=a(r),u=0;if(o+e>n)throw f("Wrong length");while(u<o)this[e+u]=r[u++]}),!v||b)},"21a5":function(t,e,r){var n=r("d3c5"),i=r("ed75"),o=r("09b7"),a=r("15e7"),s=a("species"),c=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,i(e)&&(e===c||n(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?c:e}},"21b7":function(t,e,r){"use strict";var n=r("bca7"),i=r("bc58"),o=r("0d11"),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("at",(function(t){var e=a(this),r=i(e),n=o(t),s=n>=0?n:r+n;return s<0||s>=r?void 0:e[s]}))},2217:function(t,e,r){r("8106");var n=r("5609");t.exports=n("Array","reduce")},2264:function(t,e,r){"use strict";var n=r("e401"),i=r("cb4a"),o=r("bc58"),a=r("ab87"),s=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),c=o(r),u=i(t,c),f=i(e,c),l=arguments.length>2?arguments[2]:void 0,h=s((void 0===l?c:i(l,c))-f,c-u),d=1;f<u&&u<f+h&&(d=-1,f+=h-1,u+=h-1);while(h-- >0)f in r?r[u]=r[f]:a(r,u),u+=d,f+=d;return r}},2272:function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},"234a":function(t,e,r){r("a9e2")},"27aa":function(t,e,r){var n=r("4526"),i=r("d1db"),o=r("47bc"),a=r("1112"),s=r("3994"),c=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=a.f;return r?c(e,r(t)):e}},2864:function(t,e,r){var n=r("35cb"),i=r("5977"),o=r("d4acb"),a=r("15e7"),s=a("toStringTag"),c=Object,u="Arguments"==o(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(r){}};t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=f(e=c(t),s))?r:u?o(e):"Object"==(n=o(e))&&i(e.callee)?"Arguments":n}},"286f":function(t,e,r){"use strict";var n=r("bca7").exportTypedArrayMethod,i=r("405b"),o=r("cc94"),a=r("d1db"),s=o.Uint8Array,c=s&&s.prototype||{},u=[].toString,f=a([].join);i((function(){u.call({})}))&&(u=function(){return f(this)});var l=c.toString!=u;n("toString",u,l)},"28ce":function(t,e,r){var n=r("0d11"),i=r("14cf"),o=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw o("Wrong length or index");return r}},"2d7c":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"30ae":function(t,e,r){var n=r("7794"),i=r("27aa"),o=r("0319"),a=r("eb94");t.exports=function(t,e,r){for(var s=i(e),c=a.f,u=o.f,f=0;f<s.length;f++){var l=s[f];n(t,l)||r&&n(r,l)||c(t,l,u(e,l))}}},3107:function(t,e,r){r("ec43");var n=r("5609");t.exports=n("Array","find")},"32fb":function(t,e,r){r("44aa");var n=r("5028");t.exports=n.Object.keys},3361:function(t,e,r){var n=r("2864"),i=r("d1db"),o=i("".slice);t.exports=function(t){return"Big"===o(n(t),0,3)}},"33f8":function(t,e,r){var n=r("cc94"),i=r("09b7"),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},"349f":function(t,e,r){var n=r("eee5"),i=r("d1db"),o=r("5de5"),a=r("e401"),s=r("bc58"),c=r("41d5"),u=i([].push),f=function(t){var e=1==t,r=2==t,i=3==t,f=4==t,l=6==t,h=7==t,d=5==t||l;return function(p,g,v,b){for(var m,y,w=a(p),x=o(w),A=n(g,v),L=s(x),N=0,S=b||c,_=e?S(p,L):r||h?S(p,0):void 0;L>N;N++)if((d||N in x)&&(m=x[N],y=A(m,N,w),t))if(e)_[N]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return N;case 2:u(_,m)}else switch(t){case 4:return!1;case 7:u(_,m)}return l?-1:i||f?f:_}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},"35cb":function(t,e,r){var n=r("15e7"),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"35e8":function(t,e,r){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},3642:function(t,e,r){"use strict";var n=r("bca7"),i=r("0035").findLastIndex,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("findLastIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"37fc":function(t,e,r){var n=r("5977"),i=r("eb94"),o=r("0285"),a=r("f5e3");t.exports=function(t,e,r,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(n(r)&&o(r,u,s),s.global)c?t[e]=r:a(e,r);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(f){}c?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3994:function(t,e,r){var n=r("09b7"),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw o(i(t)+" is not an object")}},"39a9":function(t,e,r){"use strict";var n=r("41bc"),i=r("7436"),o=r("8b60"),a=r("5e08"),s=r("2d7c"),c=r("54f7"),u=r("01a0");n({target:"Promise",stat:!0,forced:u},{all:function(t){var e=this,r=a.f(e),n=r.resolve,u=r.reject,f=s((function(){var r=o(e.resolve),a=[],s=0,f=1;c(t,(function(t){var o=s++,c=!1;f++,i(r,e,t).then((function(t){c||(c=!0,a[o]=t,--f||n(a))}),u)})),--f||n(a)}));return f.error&&u(f.value),r.promise}})},"3a49":function(t,e,r){var n=r("405b");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"3bd2":function(t,e,r){"use strict";var n=r("bca7"),i=r("7cca"),o=r("82a2"),a=r("2864"),s=r("7436"),c=r("d1db"),u=r("405b"),f=n.aTypedArray,l=n.exportTypedArrayMethod,h=c("".slice),d=u((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));l("fill",(function(t){var e=arguments.length;f(this);var r="Big"===h(a(this),0,3)?o(t):+t;return s(i,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),d)},"3d19":function(t,e,r){r("e6ec");var n=r("5028");t.exports=n.Object.values},"3e77":function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").find,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"3e9d":function(t,e,r){"use strict";var n=r("bca7"),i=r("e4fb").right,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("reduceRight",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},"405b":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"40a9":function(t,e,r){var n=r("d1db"),i=Error,o=n("".replace),a=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"41bc":function(t,e,r){var n=r("cc94"),i=r("0319").f,o=r("1580"),a=r("37fc"),s=r("f5e3"),c=r("30ae"),u=r("7f8d");t.exports=function(t,e){var r,f,l,h,d,p,g=t.target,v=t.global,b=t.stat;if(f=v?n:b?n[g]||s(g,{}):(n[g]||{}).prototype,f)for(l in e){if(d=e[l],t.dontCallGetSet?(p=i(f,l),h=p&&p.value):h=f[l],r=u(v?l:g+(b?".":"#")+l,t.forced),!r&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(f,l,d,t)}}},"41d5":function(t,e,r){var n=r("21a5");t.exports=function(t,e){return new(n(t))(0===e?0:e)}},4277:function(t,e,r){"use strict";var n=r("bca7"),i=r("9cea"),o=r("092e"),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("lastIndexOf",(function(t){var e=arguments.length;return i(o,a(this),e>1?[t,arguments[1]]:[t])}))},"43cd":function(t,e,r){var n=r("bca7"),i=r("09ce"),o=n.aTypedArrayConstructor,a=n.getTypedArrayConstructor;t.exports=function(t){return o(i(t,a(t)))}},"44aa":function(t,e,r){var n=r("41bc"),i=r("e401"),o=r("b9eb"),a=r("405b"),s=a((function(){o(1)}));n({target:"Object",stat:!0,forced:s},{keys:function(t){return o(i(t))}})},4526:function(t,e,r){var n=r("cc94"),i=r("5977"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},"45f0":function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").map,o=r("43cd"),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("map",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(o(t))(e)}))}))},"46fb":function(t,e,r){"use strict";var n=r("023e").end,i=r("8173");t.exports=i("trimEnd")?function(){return n(this)}:"".trimEnd},"47b5":function(t,e,r){var n=r("d1db"),i=r("3994"),o=r("ba6b");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(r,[]),e=r instanceof Array}catch(a){}return function(r,n){return i(r),o(n),e?t(r,n):r.__proto__=n,r}}():void 0)},"47bc":function(t,e,r){var n=r("5b06"),i=r("5383"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"48af":function(t,e,r){var n=r("d4cb"),i=r("405b"),o=r("33f8");t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"48d1":function(t,e,r){"use strict";var n=r("35cb"),i=r("2864");t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},"49e2":function(t,e,r){var n=r("6827"),i=r("43cd");t.exports=function(t,e){return n(i(t),e)}},"4bc9":function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4c1e":function(t,e,r){var n=r("09b7"),i=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&i(t)===t}},"4d11":function(t,e,r){var n,i,o,a,s,c,u,f,l=r("cc94"),h=r("eee5"),d=r("0319").f,p=r("14a4").set,g=r("7a4d"),v=r("ecae"),b=r("a0f1"),m=r("052d"),y=l.MutationObserver||l.WebKitMutationObserver,w=l.document,x=l.process,A=l.Promise,L=d(l,"queueMicrotask"),N=L&&L.value;N||(n=function(){var t,e;m&&(t=x.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(r){throw i?a():o=void 0,r}}o=void 0,t&&t.enter()},g||m||b||!y||!w?!v&&A&&A.resolve?(u=A.resolve(void 0),u.constructor=A,f=h(u.then,u),a=function(){f(n)}):m?a=function(){x.nextTick(n)}:(p=h(p,l),a=function(){p(n)}):(s=!0,c=w.createTextNode(""),new y(n).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=N||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},"4fad":function(t,e,r){var n=r("37fc");t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},5028:function(t,e,r){var n=r("cc94");t.exports=n},"524c":function(t,e,r){var n=r("4526");t.exports=n("document","documentElement")},5383:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5411:function(t,e,r){var n=r("eb94").f,i=r("7794"),o=r("15e7"),a=o("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!i(t,a)&&n(t,a,{configurable:!0,value:e})}},5481:function(t,e,r){"use strict";var n=r("bca7"),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var t,e=this,r=i(e).length,n=a(r/2),o=0;while(o<n)t=e[o],e[o++]=e[--r],e[r]=t;return e}))},"54c4":function(t,e,r){r("b47c")},"54f7":function(t,e,r){var n=r("eee5"),i=r("7436"),o=r("3994"),a=r("b3c7"),s=r("f8d4"),c=r("bc58"),u=r("17e8"),f=r("ca61"),l=r("8ee9"),h=r("8965"),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},g=p.prototype;t.exports=function(t,e,r){var v,b,m,y,w,x,A,L=r&&r.that,N=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),_=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),k=n(e,L),j=function(t){return v&&h(v,"normal",t),new p(!0,t)},C=function(t){return N?(o(t),P?k(t[0],t[1],j):k(t[0],t[1])):P?k(t,j):k(t)};if(S)v=t.iterator;else if(_)v=t;else{if(b=l(t),!b)throw d(a(t)+" is not iterable");if(s(b)){for(m=0,y=c(t);y>m;m++)if(w=C(t[m]),w&&u(g,w))return w;return new p(!1)}v=f(t,b)}x=S?t.next:v.next;while(!(A=i(x,v)).done){try{w=C(A.value)}catch(I){h(v,"throw",I)}if("object"==typeof w&&w&&u(g,w))return w}return new p(!1)}},5592:function(t,e,r){var n=r("b18b");t.exports=/MSIE|Trident/.test(n)},5609:function(t,e,r){var n=r("cc94"),i=r("d1db");t.exports=function(t,e){return i(n[t].prototype[e])}},5649:function(t,e,r){var n=r("41bc"),i=r("a487");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},5784:function(t,e){var r=TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},"57b6":function(t,e,r){"use strict";var n=r("593d").IteratorPrototype,i=r("08bf"),o=r("6165"),a=r("5411"),s=r("5dde"),c=function(){return this};t.exports=function(t,e,r,u){var f=e+" Iterator";return t.prototype=i(n,{next:o(+!u,r)}),a(t,f,!1,!0),s[f]=c,t}},5845:function(t,e,r){var n=r("7436"),i=r("09b7"),o=r("5c55"),a=r("6b6d"),s=r("d8b0"),c=r("15e7"),u=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var r,c=a(t,f);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!i(r)||o(r))return r;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},"58b3":function(t,e,r){var n=r("2864"),i=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},"58df":function(t,e,r){"use strict";var n=r("e9da"),i=r.n(n);i.a},"593d":function(t,e,r){"use strict";var n,i,o,a=r("405b"),s=r("5977"),c=r("09b7"),u=r("08bf"),f=r("e08b"),l=r("37fc"),h=r("15e7"),d=r("a095"),p=h("iterator"),g=!1;[].keys&&(o=[].keys(),"next"in o?(i=f(f(o)),i!==Object.prototype&&(n=i)):g=!0);var v=!c(n)||a((function(){var t={};return n[p].call(t)!==t}));v?n={}:d&&(n=u(n)),s(n[p])||l(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},5977:function(t,e,r){var n=r("1deb"),i=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"59b9":function(t,e,r){"use strict";var n=r("9706").charAt,i=r("58b3"),o=r("95cb"),a=r("dfdd"),s=r("d858"),c="String Iterator",u=o.set,f=o.getterFor(c);a(String,"String",(function(t){u(this,{type:c,string:i(t),index:0})}),(function(){var t,e=f(this),r=e.string,i=e.index;return i>=r.length?s(void 0,!0):(t=n(r,i),e.index+=t.length,s(t,!1))}))},"5b06":function(t,e,r){var n=r("d1db"),i=r("7794"),o=r("b31a"),a=r("1a0a").indexOf,s=r("d60f"),c=n([].push);t.exports=function(t,e){var r,n=o(t),u=0,f=[];for(r in n)!i(s,r)&&i(n,r)&&c(f,r);while(e.length>u)i(n,r=e[u++])&&(~a(f,r)||c(f,r));return f}},"5c09":function(t,e,r){"use strict";var n=r("bca7"),i=r("1a0a").indexOf,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},"5c55":function(t,e,r){var n=r("4526"),i=r("5977"),o=r("17e8"),a=r("0f5b"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&o(e.prototype,s(t))}},"5dde":function(t,e){t.exports={}},"5de5":function(t,e,r){var n=r("d1db"),i=r("405b"),o=r("d4acb"),a=Object,s=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},"5e08":function(t,e,r){"use strict";var n=r("8b60"),i=TypeError,o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw i("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},"5e47":function(t,e,r){"use strict";var n=r("bca7"),i=r("14cf"),o=r("cb4a"),a=r("43cd"),s=n.aTypedArray,c=n.exportTypedArrayMethod;c("subarray",(function(t,e){var r=s(this),n=r.length,c=o(t,n),u=a(r);return new u(r.buffer,r.byteOffset+c*r.BYTES_PER_ELEMENT,i((void 0===e?n:o(e,n))-c))}))},6110:function(t,e,r){var n=r("cc94"),i=r("f5e3"),o="__core-js_shared__",a=n[o]||i(o,{});t.exports=a},6165:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"63b8":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"lin-search"},[r("el-input",{staticClass:"input-with-select",attrs:{size:"medium",placeholder:t.placeholder,clearable:""},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},slot:"append"})],1)],1)},i=[],o=r("0a2a"),a={props:{placeholder:{type:String,default:"请输入内容"}},data:function(){return{keyword:""}},created:function(){var t=this;this.$watch("keyword",o["default"].debounce((function(e){t.$emit("query",e)}),1e3))},methods:{clear:function(){this.keyword=""}}},s=a,c=(r("58df"),r("2877")),u=Object(c["a"])(s,n,i,!1,null,"18aca186",null);e["default"]=u.exports},"663a":function(t,e,r){"use strict";var n=r("41bc"),i=r("7436"),o=r("8b60"),a=r("4526"),s=r("5e08"),c=r("2d7c"),u=r("54f7"),f="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=a("AggregateError"),n=s.f(e),l=n.resolve,h=n.reject,d=c((function(){var n=o(e.resolve),a=[],s=0,c=1,d=!1;u(t,(function(t){var o=s++,u=!1;c++,i(n,e,t).then((function(t){u||d||(d=!0,l(t))}),(function(t){u||d||(u=!0,a[o]=t,--c||h(new r(a,f)))}))})),--c||h(new r(a,f))}));return d.error&&h(d.value),n.promise}})},"66f6":function(t,e,r){var n=r("cc94");t.exports=n.Promise},6827:function(t,e,r){var n=r("bc58");t.exports=function(t,e){var r=0,i=n(e),o=new t(i);while(i>r)o[r]=e[r++];return o}},6968:function(t,e,r){var n=r("58b3");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},"6a72":function(t,e,r){"use strict";var n=r("4526"),i=r("eb94"),o=r("15e7"),a=r("d4cb"),s=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},"6ada":function(t,e,r){"use strict";(function(t){r("074f"),r("e1017"),r("11bb"),r("2217"),r("015a"),r("3107"),r("1224"),r("32fb"),r("3d19"),r("9288"),r("be45"),r("7db5"),r("d25a"),r("c719"),r("7f7c"),r("234a");var e=function(){return"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this}(),n=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;
/**
 * @license
 * Blob.js
 * A Blob, File, FileReader & URL implementation.
 * 2018-08-09
 *
 * By Eli Grey, http://eligrey.com
 * By Jimmy Wärting, https://github.com/jimmywarting
 * License: MIT
 *   See https://github.com/eligrey/Blob.js/blob/master/LICENSE.md
 */
e.URL=e.URL||e.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var i=e.Blob,o=URL.createObjectURL,a=URL.revokeObjectURL,s=e.Symbol&&e.Symbol.toStringTag,c=!1,u=!1,f=!!e.ArrayBuffer,l=n&&n.prototype.append&&n.prototype.getBlob;try{c=2===new Blob(["ä"]).size,u=2===new Blob([new Uint8Array([1,2])]).size}catch(e){}function h(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var r=new Uint8Array(t.byteLength);r.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=r.buffer}return e}return t}))}function d(t,e){e=e||{};var r=new n;return h(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function p(t,e){return new i(h(t),e||{})}if(e.Blob&&(d.prototype=Blob.prototype,p.prototype=Blob.prototype),s)try{File.prototype[s]="File",Blob.prototype[s]="Blob",FileReader.prototype[s]="FileReader"}catch(e){}function g(){var t=!!e.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,r=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;t&&r&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob?(this.setRequestHeader("Content-Type",t.type),r.call(this,t)):r.call(this,t)});try{new File([],"")}catch(t){try{var n=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();e.File=n}catch(t){n=function(t,e,r){var n=new Blob(t,r),i=r&&void 0!==r.lastModified?new Date(r.lastModified):new Date;return n.name=e,n.lastModifiedDate=i,n.lastModified=+i,n.toString=function(){return"[object File]"},s&&(n[s]="File"),n},e.File=n}}}c?(g(),e.Blob=u?e.Blob:p):l?(g(),e.Blob=d):function(){function t(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(n):n<2048?e.push(192|n>>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}function r(t){var e,r,n,i,o,a;for(e="",n=t.length,r=0;r<n;)switch((i=t[r++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(i);break;case 12:case 13:o=t[r++],e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t[r++],a=t[r++],e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return e}function n(t){for(var e=new Array(t.byteLength),r=new Uint8Array(t),n=e.length;n--;)e[n]=r[n];return e}function i(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=[],n=0;n<t.length;n+=3){var i=t[n],o=n+1<t.length,a=o?t[n+1]:0,s=n+2<t.length,c=s?t[n+2]:0,u=i>>2,f=(3&i)<<4|a>>4,l=(15&a)<<2|c>>6,h=63&c;s||(h=64,o||(l=64)),r.push(e[u],e[f],e[l],e[h])}return r.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(f)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function l(e,r){for(var i=0,o=(e=e||[]).length;i<o;i++){var a=e[i];a instanceof l?e[i]=a._buffer:"string"==typeof a?e[i]=t(a):f&&(ArrayBuffer.prototype.isPrototypeOf(a)||u(a))?e[i]=n(a):f&&(s=a)&&DataView.prototype.isPrototypeOf(s)?e[i]=n(a.buffer):e[i]=t(String(a))}var s;this._buffer=[].concat.apply([],e),this.size=this._buffer.length,this.type=r&&r.type||""}function h(t,e,r){r=r||{};var n=l.call(this,t,r)||this;return n.name=e,n.lastModifiedDate=r.lastModified?new Date(r.lastModified):new Date,n.lastModified=+n.lastModifiedDate,n}if(l.prototype.slice=function(t,e,r){return new l([this._buffer.slice(t||0,e||this._buffer.length)],{type:r})},l.prototype.toString=function(){return"[object Blob]"},h.prototype=s(l.prototype),h.prototype.constructor=h,Object.setPrototypeOf)Object.setPrototypeOf(h,l);else try{h.__proto__=l}catch(e){}function d(){if(!(this instanceof d))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var r=this["on"+e.type];"function"==typeof r&&r(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function p(t,e,r){if(!(e instanceof l))throw new TypeError("Failed to execute '"+r+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout((function(){this.readyState=d.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))}))}h.prototype.toString=function(){return"[object File]"},d.EMPTY=0,d.LOADING=1,d.DONE=2,d.prototype.error=null,d.prototype.onabort=null,d.prototype.onerror=null,d.prototype.onload=null,d.prototype.onloadend=null,d.prototype.onloadstart=null,d.prototype.onprogress=null,d.prototype.readAsDataURL=function(t){p(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+i(t._buffer)},d.prototype.readAsText=function(t){p(this,t,"readAsText"),this.result=r(t._buffer)},d.prototype.readAsArrayBuffer=function(t){p(this,t,"readAsText"),this.result=t._buffer.slice()},d.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof l?"data:"+t.type+";base64,"+i(t._buffer):o.call(URL,t)},URL.revokeObjectURL=function(t){a&&a.call(URL,t)};var g=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;g&&(XMLHttpRequest.prototype.send=function(t){t instanceof l?(this.setRequestHeader("Content-Type",t.type),g.call(this,r(t._buffer))):g.call(this,t)}),e.FileReader=d,e.File=h,e.Blob=l}();var v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===e.btoa&&(e.btoa=function(t){var e,r,n,i,o,a=0,s=0,c="",u=[];if(!t)return t;do{e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[s++]=v.charAt(e)+v.charAt(r)+v.charAt(n)+v.charAt(i)}while(a<t.length);c=u.join("");var f=t.length%3;return(f?c.slice(0,f-3):c)+"===".slice(f||3)}),void 0===e.atob&&(e.atob=function(t){var e,r,n,i,o,a,s=0,c=0,u=[];if(!t)return t;t+="";do{e=(a=v.indexOf(t.charAt(s++))<<18|v.indexOf(t.charAt(s++))<<12|(i=v.indexOf(t.charAt(s++)))<<6|(o=v.indexOf(t.charAt(s++))))>>16&255,r=a>>8&255,n=255&a,u[c++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,r):String.fromCharCode(e,r,n)}while(s<t.length);return u.join("")})}).call(this,r("c8ba"))},"6b6d":function(t,e,r){var n=r("8b60"),i=r("f41d");t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},"6d9d":function(t,e,r){var n=r("fa00"),i=RangeError;t.exports=function(t,e){var r=n(t);if(r%e)throw i("Wrong offset");return r}},"6fd7":function(t,e,r){var n=r("cc94");t.exports=function(t,e){var r=n.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},7227:function(t,e,r){var n=r("fe35"),i=r("405b");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7270:function(t,e,r){var n=r("5977"),i=r("09b7"),o=r("47b5");t.exports=function(t,e,r){var a,s;return o&&n(a=e.constructor)&&a!==r&&i(s=a.prototype)&&s!==r.prototype&&o(t,s),t}},"73d4":function(t,e,r){var n=r("41bc"),i=r("d4cb"),o=r("08bf");n({target:"Object",stat:!0,sham:!i},{create:o})},7436:function(t,e,r){var n=r("3a49"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},7739:function(t,e,r){"use strict";var n=r("41bc"),i=r("d2a6");n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},7794:function(t,e,r){var n=r("d1db"),i=r("e401"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"79e0":function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"7a4d":function(t,e,r){var n=r("b18b");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"7b29":function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"7cca":function(t,e,r){"use strict";var n=r("e401"),i=r("cb4a"),o=r("bc58");t.exports=function(t){var e=n(this),r=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),c=a>2?arguments[2]:void 0,u=void 0===c?r:i(c,r);while(u>s)e[s++]=t;return e}},"7db5":function(t,e,r){r("b240");var n=r("5609");t.exports=n("String","trimLeft")},"7e98":function(t,e,r){"use strict";var n=r("41bc"),i=r("023e").trim,o=r("8173");n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"7f7c":function(t,e,r){r("9af1"),r("0593"),r("aaeb"),r("ad4a");var n=r("cc94");t.exports=n.Uint8Array},"7f8d":function(t,e,r){var n=r("405b"),i=r("5977"),o=/#|\.prototype\./,a=function(t,e){var r=c[s(t)];return r==f||r!=u&&(i(e)?n(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8106:function(t,e,r){"use strict";var n=r("41bc"),i=r("e4fb").left,o=r("f9de"),a=r("fe35"),s=r("052d"),c=o("reduce"),u=!s&&a>79&&a<83;n({target:"Array",proto:!0,forced:!c||u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},8173:function(t,e,r){var n=r("86f5").PROPER,i=r("405b"),o=r("7b29"),a="​…᠎";t.exports=function(t){return i((function(){return!!o[t]()||a[t]()!==a||n&&o[t].name!==t}))}},"81f6":function(t,e,r){var n=r("41bc"),i=r("46fb");n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},"82a2":function(t,e,r){var n=r("5845"),i=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw i("Can't convert number to bigint");return BigInt(e)}},"86f5":function(t,e,r){var n=r("d4cb"),i=r("7794"),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"881e":function(t,e,r){"use strict";var n=r("bca7"),i=r("0035").findLast,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("findLast",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},8896:function(t,e,r){r("81f6");var n=r("41bc"),i=r("46fb");n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},8965:function(t,e,r){var n=r("7436"),i=r("3994"),o=r("6b6d");t.exports=function(t,e,r){var a,s;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw r;return r}a=n(a,t)}catch(c){s=!0,a=c}if("throw"===e)throw r;if(s)throw a;return i(a),r}},"89e3":function(t,e,r){"use strict";var n=r("d5d1"),i=r("eb94"),o=r("6165");t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},"8b60":function(t,e,r){var n=r("5977"),i=r("b3c7"),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(i(t)+" is not a function")}},"8baf":function(t,e,r){"use strict";(function(t){var e=r("4bc9"),n=r.n(e),i=r("9764"),o=function(){return"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this}();function a(){o.console&&"function"==typeof o.console.log&&o.console.log.apply(o.console,arguments)}var s={log:a,warn:function(t){o.console&&("function"==typeof o.console.warn?o.console.warn.apply(o.console,arguments):a.call(null,arguments))},error:function(t){o.console&&("function"==typeof o.console.error?o.console.error.apply(o.console,arguments):a(t))}};function c(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){d(n.response,e,r)},n.onerror=function(){s.error("could not download file")},n.send()}function u(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function f(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var l,h,d=o.saveAs||("object"!==("undefined"==typeof window?"undefined":n()(window))||window!==o?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=o.URL||o.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?u(i.href)?c(t,e,r):f(i,i.target="_blank"):f(i)):(i.href=n.createObjectURL(t),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){f(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(u(t))c(t,e,r);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){f(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==n()(e)&&(s.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,r),e)}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return c(t,e,r);var a="application/octet-stream"===t.type,s=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"===("undefined"==typeof FileReader?"undefined":n()(FileReader))){var f=new FileReader;f.onloadend=function(){var t=f.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},f.readAsDataURL(t)}else{var l=o.URL||o.webkitURL,h=l.createObjectURL(t);i?i.location=h:location.href=h,i=null,setTimeout((function(){l.revokeObjectURL(h)}),4e4)}});
/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function p(t){var e;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:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,a=i.exec(t);a&&(e=o(a),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r
/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */}}function g(t,e){var r=t[0],n=t[1],i=t[2],o=t[3];r=b(r,n,i,o,e[0],7,-680876936),o=b(o,r,n,i,e[1],12,-389564586),i=b(i,o,r,n,e[2],17,606105819),n=b(n,i,o,r,e[3],22,-1044525330),r=b(r,n,i,o,e[4],7,-176418897),o=b(o,r,n,i,e[5],12,1200080426),i=b(i,o,r,n,e[6],17,-1473231341),n=b(n,i,o,r,e[7],22,-45705983),r=b(r,n,i,o,e[8],7,1770035416),o=b(o,r,n,i,e[9],12,-1958414417),i=b(i,o,r,n,e[10],17,-42063),n=b(n,i,o,r,e[11],22,-1990404162),r=b(r,n,i,o,e[12],7,1804603682),o=b(o,r,n,i,e[13],12,-40341101),i=b(i,o,r,n,e[14],17,-1502002290),r=m(r,n=b(n,i,o,r,e[15],22,1236535329),i,o,e[1],5,-165796510),o=m(o,r,n,i,e[6],9,-1069501632),i=m(i,o,r,n,e[11],14,643717713),n=m(n,i,o,r,e[0],20,-373897302),r=m(r,n,i,o,e[5],5,-701558691),o=m(o,r,n,i,e[10],9,38016083),i=m(i,o,r,n,e[15],14,-660478335),n=m(n,i,o,r,e[4],20,-405537848),r=m(r,n,i,o,e[9],5,568446438),o=m(o,r,n,i,e[14],9,-1019803690),i=m(i,o,r,n,e[3],14,-187363961),n=m(n,i,o,r,e[8],20,1163531501),r=m(r,n,i,o,e[13],5,-1444681467),o=m(o,r,n,i,e[2],9,-51403784),i=m(i,o,r,n,e[7],14,1735328473),r=y(r,n=m(n,i,o,r,e[12],20,-1926607734),i,o,e[5],4,-378558),o=y(o,r,n,i,e[8],11,-2022574463),i=y(i,o,r,n,e[11],16,1839030562),n=y(n,i,o,r,e[14],23,-35309556),r=y(r,n,i,o,e[1],4,-1530992060),o=y(o,r,n,i,e[4],11,1272893353),i=y(i,o,r,n,e[7],16,-155497632),n=y(n,i,o,r,e[10],23,-1094730640),r=y(r,n,i,o,e[13],4,681279174),o=y(o,r,n,i,e[0],11,-358537222),i=y(i,o,r,n,e[3],16,-722521979),n=y(n,i,o,r,e[6],23,76029189),r=y(r,n,i,o,e[9],4,-640364487),o=y(o,r,n,i,e[12],11,-421815835),i=y(i,o,r,n,e[15],16,530742520),r=w(r,n=y(n,i,o,r,e[2],23,-995338651),i,o,e[0],6,-198630844),o=w(o,r,n,i,e[7],10,1126891415),i=w(i,o,r,n,e[14],15,-1416354905),n=w(n,i,o,r,e[5],21,-57434055),r=w(r,n,i,o,e[12],6,1700485571),o=w(o,r,n,i,e[3],10,-1894986606),i=w(i,o,r,n,e[10],15,-1051523),n=w(n,i,o,r,e[1],21,-2054922799),r=w(r,n,i,o,e[8],6,1873313359),o=w(o,r,n,i,e[15],10,-30611744),i=w(i,o,r,n,e[6],15,-1560198380),n=w(n,i,o,r,e[13],21,1309151649),r=w(r,n,i,o,e[4],6,-145523070),o=w(o,r,n,i,e[11],10,-1120210379),i=w(i,o,r,n,e[2],15,718787259),n=w(n,i,o,r,e[9],21,-343485551),t[0]=k(r,t[0]),t[1]=k(n,t[1]),t[2]=k(i,t[2]),t[3]=k(o,t[3])}function v(t,e,r,n,i,o){return e=k(k(e,t),k(n,o)),k(e<<i|e>>>32-i,r)}function b(t,e,r,n,i,o,a){return v(e&r|~e&n,t,e,i,o,a)}function m(t,e,r,n,i,o,a){return v(e&n|r&~n,t,e,i,o,a)}function y(t,e,r,n,i,o,a){return v(e^r^n,t,e,i,o,a)}function w(t,e,r,n,i,o,a){return v(r^(e|~n),t,e,i,o,a)}function x(t){var e,r=t.length,n=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)g(n,A(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(g(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,g(n,i),n}function A(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}l=o.atob.bind(o),h=o.btoa.bind(o);var L="0123456789abcdef".split("");function N(t){for(var e="",r=0;r<4;r++)e+=L[t>>8*r+4&15]+L[t>>8*r&15];return e}function S(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function _(t){return x(t).map(S).join("")}var P="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=N(t[e]);return t.join("")}(x("hello"));function k(t,e){if(P){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e&4294967295}
/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function j(t,e){var r,n,i,o;if(t!==r){for(var a=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),s=[],c=0;c<256;c++)s[c]=c;var u=0;for(c=0;c<256;c++){var f=s[c];u=(u+f+a.charCodeAt(c))%256,s[c]=s[u],s[u]=f}r=t,n=s}else s=n;var l=e.length,h=0,d=0,p="";for(c=0;c<l;c++)d=(d+(f=s[h=(h+1)%256]))%256,s[h]=s[d],s[d]=f,a=s[(s[h]+s[d])%256],p+=String.fromCharCode(e.charCodeAt(c)^a);return p}
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var C={print:4,modify:8,copy:16,"annot-forms":32};function I(t,e,r,n){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==C.perm)throw new Error("Invalid permission: "+t);i+=C[t]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var o=(e+this.padding).substr(0,32),a=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=_(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=j(this.encryptionKey,this.padding)}function O(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n<r;n++){var i=t.charCodeAt(n);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function F(t){if("object"!==n()(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[r]){var c=e[r][a];try{c[0].apply(t,n)}catch(r){o.console&&s.error("jsPDF PubSub Error",r.message,r)}c[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function E(t){if(!(this instanceof E))return new E(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function T(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function M(t,e,r,n,i){if(!(this instanceof M))return new M(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,T.call(this,n,i)}function R(t,e,r,n,i){if(!(this instanceof R))return new R(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,T.call(this,n,i)}function B(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],c=arguments[3],u=[],f=1,l=16,g="S",v=null;"object"===n()(t=t||{})&&(r=t.orientation,i=t.unit||i,a=t.format||a,c=t.compress||t.compressPdf||c,null!==(v=t.encryption||null)&&(v.userPassword=v.userPassword||"",v.ownerPassword=v.ownerPassword||"",v.userPermissions=v.userPermissions||[]),f="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(l=t.floatPrecision),g=t.defaultPathOperation||"S"),u=t.filters||(!0===c?["FlateEncode"]:u),i=i||"mm",r=(""+(r||"P")).toLowerCase();var b=t.putOnlyUsedFonts||!1,m={},y={internal:{},__private__:{}};y.__private__.PubSub=F;var w="1.3",x=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var A={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]};y.__private__.getPageFormats=function(){return A};var L=y.__private__.getPageFormat=function(t){return A[t]};a=a||"a4";var N={COMPAT:"compat",ADVANCED:"advanced"},S=N.COMPAT;function _(){this.saveGraphicsState(),lt(new Vt(_t,0,0,-_t,0,Dr()*_t).toString()+" cm"),this.setFontSize(this.getFontSize()/_t),g="n",S=N.ADVANCED}function P(){this.restoreGraphicsState(),g="S",S=N.COMPAT}var k=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=S===N.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.compatAPI=function(t){var e=S===N.ADVANCED;return e&&P.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},y.isAdvancedAPI=function(){return S===N.ADVANCED};var j,C=function(t){if(S!==N.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},T=y.roundToPrecision=y.__private__.roundToPrecision=function(t,r){var n=e||r;if(isNaN(t)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};j=y.hpf=y.__private__.hpf="number"==typeof l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,l)}:"smart"===l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,16)};var D=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return T(t,2)},q=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return T(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return S===N.COMPAT?t*_t:S===N.ADVANCED?t:void 0},z=function(t){return S===N.COMPAT?Dr()-t:S===N.ADVANCED?t:void 0},H=function(t){return U(z(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==v&&(Ye=new I(v.userPermissions,v.userPassword,v.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var X=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=e<0?"+":"-",n=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[r,Q(n),"'",Q(i),"'"].join("");return["D:",t.getFullYear(),Q(t.getMonth()+1),Q(t.getDate()),Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds()),o].join("")},J=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),r=parseInt(t.substr(6,2),10)-1,n=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,r,n,i,o,a,0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=X(t);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(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},$=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=J(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return $(t)};var Z,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,rt=[],nt=[],it=0,ot=[],at=[],st=!1,ct=nt,ut=function(){et=0,it=0,nt=[],rt=[],ot=[],Qt=Kt(),te=Kt()};y.__private__.setCustomOutputDestination=function(t){st=!0,ct=t};var ft=function(t){st||(ct=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,ct=nt};var lt=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,ct.push(t),ct},ht=y.__private__.write=function(t){return lt(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},pt=[["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]];y.__private__.getStandardFonts=function(){return pt};var gt=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return gt=S===N.ADVANCED?t/_t:t,this};var vt,bt=y.__private__.getFontSize=y.getFontSize=function(){return S===N.COMPAT?gt:gt*_t},mt=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return mt=t,this},y.__private__.getR2L=y.getR2L=function(){return mt};var yt,wt=y.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))vt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');vt=t}else vt=parseInt(t,10)};y.__private__.getZoomMode=function(){return vt};var xt,At=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};y.__private__.getPageMode=function(){return yt};var Lt=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');xt=t};y.__private__.getLayoutMode=function(){return xt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return wt(t),Lt(e),At(r),this};var Nt={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Nt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Nt[t]},y.__private__.getDocumentProperties=function(){return Nt},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in Nt)Nt.hasOwnProperty(e)&&t[e]&&(Nt[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Nt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Nt[t]=e};var St,_t,Pt,kt,jt,Ct={},It={},Ot=[],Ft={},Et={},Tt={},Mt={},Rt=null,Bt=0,Dt=[],qt=new F(y),Ut=t.hotfixes||[],zt={},Ht={},Wt=[],Vt=function(t,e,r,i,o,a){if(!(this instanceof n.a))return new n.a(t,e,r,i,o,a);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[t,e,r,i,o,a]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Vt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(j).join(t)},Vt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,r=t.sx*this.shy+t.shy*this.sy,n=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Vt(e,r,n,i,o,a)},Vt.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*r+(e/=a)*n;r-=t*s,n-=e*s;var c=Math.sqrt(r*r+n*n);return s/=c,t*(n/=c)<e*(r/=c)&&(t=-t,e=-e,s=-s,a=-a),{scale:new Vt(a,0,0,c,0,0),translate:new Vt(1,0,0,1,i,o),rotate:new Vt(t,e,-e,t,0,0),skew:new Vt(1,0,s,1,0,0)}},Vt.prototype.toString=function(t){return this.join(" ")},Vt.prototype.inversed=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty,a=1/(t*n-e*r),s=n*a,c=-e*a,u=-r*a,f=t*a;return new Vt(s,c,u,f,-s*i-u*o,-c*i-f*o)},Vt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,r=t.x*this.shy+t.y*this.sy+this.ty;return new Ir(e,r)},Vt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),r=this.applyToPoint(new Ir(t.x+t.w,t.y+t.h));return new Or(e.x,e.y,r.x-e.x,r.y-e.y)},Vt.prototype.clone=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty;return new Vt(t,e,r,n,i,o)},y.Matrix=Vt;var Gt=y.matrixMult=function(t,e){return e.multiply(t)},Yt=new Vt(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Yt;var Xt=function(t,e){if(!Et[t]){var r=(e instanceof M?"Sh":"P")+(Object.keys(Ft).length+1).toString(10);e.id=r,Et[t]=r,Ft[r]=e,qt.publish("addPattern",e)}};y.ShadingPattern=M,y.TilingPattern=R,y.addShadingPattern=function(t,e){return C("addShadingPattern()"),Xt(t,e),this},y.beginTilingPattern=function(t){C("beginTilingPattern()"),Er(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},y.endTilingPattern=function(t,e){C("endTilingPattern()"),e.stream=at[Z].join("\n"),Xt(t,e),qt.publish("endTilingPattern",e),Wt.pop().restore()};var Jt=y.__private__.newObject=function(){var t=Kt();return $t(t,!0),t},Kt=y.__private__.newObjectDeferred=function(){return et++,rt[et]=function(){return it},et},$t=function(t,e){return e="boolean"==typeof e&&e,rt[t]=it,e&&lt(t+" 0 obj"),t},Zt=y.__private__.newAdditionalObject=function(){var t={objId:Kt(),content:""};return ot.push(t),t},Qt=Kt(),te=Kt(),ee=y.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var r=parseFloat(e[0]);e=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return n},re=y.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var r=t.ch1,i=t.ch2,o=t.ch3,a=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var c=new p(r);if(c.ok)r=c.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var u=parseInt(r.substr(1),16);r=u>>16&255,i=u>>8&255,o=255&u}if(void 0===i||void 0===a&&r===i&&i===o)if("string"==typeof r)e=r+" "+s[0];else switch(t.precision){case 2:e=D(r/255)+" "+s[0];break;case 3:default:e=q(r/255)+" "+s[0]}else if(void 0===a||"object"===n()(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof r)e=[r,i,o,s[1]].join(" ");else switch(t.precision){case 2:e=[D(r/255),D(i/255),D(o/255),s[1]].join(" ");break;default:case 3:e=[q(r/255),q(i/255),q(o/255),s[1]].join(" ")}}else if("string"==typeof r)e=[r,i,o,a,s[2]].join(" ");else switch(t.precision){case 2:e=[D(r),D(i),D(o),D(a),s[2]].join(" ");break;case 3:default:e=[q(r),q(i),q(o),q(a),s[2]].join(" ")}return e},ne=y.__private__.getFilters=function(){return u},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||ne(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==v&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==v&&(s=Ye.encryptor(a,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],f=(c=void 0!==B.API.processDataByFilters?B.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=f.length)if(f.split("/").length-1==1)u.push({key:"Filter",value:f});else{u.push({key:"Filter",value:"["+f+"]"});for(var l=0;l<u.length;l+=1)if("DecodeParms"===u[l].key){for(var h=[],d=0;d<c.reverseChain.split("/").length-1;d+=1)h.push("null");h.push(u[l].value),u[l].value="["+h.join(" ")+"]"}}lt("<<");for(var p=0;p<u.length;p++)lt("/"+u[p].key+" "+u[p].value);lt(">>"),0!==c.data.length&&(lt("stream"),lt(s(c.data)),lt("endstream"))},oe=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;$t(n,!0),lt("<</Type /Page"),lt("/Parent "+t.rootDictionaryObjId+" 0 R"),lt("/Resources "+t.resourceDictionaryObjId+" 0 R"),lt("/MediaBox ["+parseFloat(j(t.mediaBox.bottomLeftX))+" "+parseFloat(j(t.mediaBox.bottomLeftY))+" "+j(t.mediaBox.topRightX)+" "+j(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&lt("/CropBox ["+j(t.cropBox.bottomLeftX)+" "+j(t.cropBox.bottomLeftY)+" "+j(t.cropBox.topRightX)+" "+j(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&lt("/BleedBox ["+j(t.bleedBox.bottomLeftX)+" "+j(t.bleedBox.bottomLeftY)+" "+j(t.bleedBox.topRightX)+" "+j(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&lt("/TrimBox ["+j(t.trimBox.bottomLeftX)+" "+j(t.trimBox.bottomLeftY)+" "+j(t.trimBox.topRightX)+" "+j(t.trimBox.topRightY)+"]"),null!==t.artBox&&lt("/ArtBox ["+j(t.artBox.bottomLeftX)+" "+j(t.artBox.bottomLeftY)+" "+j(t.artBox.topRightX)+" "+j(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&lt("/UserUnit "+t.userUnit),qt.publish("putPage",{objId:n,pageContext:Dt[e],pageNumber:e,page:r}),lt("/Contents "+i+" 0 R"),lt(">>"),lt("endobj");var o=r.join("\n");return S===N.ADVANCED&&(o+="\nQ"),$t(i,!0),ie({data:o,filters:ne(),objectId:i}),lt("endobj"),n},ae=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=Bt;t++)Dt[t].objId=Kt(),Dt[t].contentsObjId=Kt();for(t=1;t<=Bt;t++)r.push(oe({number:t,data:at[t],objId:Dt[t].objId,contentsObjId:Dt[t].contentsObjId,mediaBox:Dt[t].mediaBox,cropBox:Dt[t].cropBox,bleedBox:Dt[t].bleedBox,trimBox:Dt[t].trimBox,artBox:Dt[t].artBox,userUnit:Dt[t].userUnit,rootDictionaryObjId:Qt,resourceDictionaryObjId:te}));$t(Qt,!0),lt("<</Type /Pages");var n="/Kids [";for(e=0;e<Bt;e++)n+=r[e]+" 0 R ";lt(n+"]"),lt("/Count "+Bt),lt(">>"),lt("endobj"),qt.publish("postPutPages")},se=function(t){qt.publish("putFont",{font:t,out:lt,newObject:Jt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Jt(),lt("<<"),lt("/Type /Font"),lt("/BaseFont /"+O(t.postScriptName)),lt("/Subtype /Type1"),"string"==typeof t.encoding&&lt("/Encoding /"+t.encoding),lt("/FirstChar 32"),lt("/LastChar 255"),lt(">>"),lt("endobj"))},ce=function(){for(var t in Ct)Ct.hasOwnProperty(t)&&(!1===b||!0===b&&m.hasOwnProperty(t))&&se(Ct[t])},ue=function(t){t.objectNumber=Jt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[j(t.x),j(t.y),j(t.x+t.width),j(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var r=t.pages[1].join("\n");ie({data:r,additionalKeyValues:e,objectId:t.objectNumber}),lt("endobj")},fe=function(){for(var t in zt)zt.hasOwnProperty(t)&&ue(zt[t])},le=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",c=0,u=0;u<n.length;u++){for(r=n[u];r>t[c+1].offset;)c++;var f=t[c].offset,l=(r-f)/(t[c+1].offset-f),h=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-l)*h[0]+l*d[0]).toString(16))+tt(Math.round((1-l)*h[1]+l*d[1]).toString(16))+tt(Math.round((1-l)*h[2]+l*d[2]).toString(16))}return s.trim()},he=function(t,e){e||(e=21);var r=Jt(),n=le(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),lt("endobj"),t.objectNumber=Jt(),lt("<< /ShadingType "+t.type),lt("/ColorSpace /DeviceRGB");var o="/Coords ["+j(parseFloat(t.coords[0]))+" "+j(parseFloat(t.coords[1]))+" ";2===t.type?o+=j(parseFloat(t.coords[2]))+" "+j(parseFloat(t.coords[3])):o+=j(parseFloat(t.coords[2]))+" "+j(parseFloat(t.coords[3]))+" "+j(parseFloat(t.coords[4]))+" "+j(parseFloat(t.coords[5])),lt(o+="]"),t.matrix&&lt("/Matrix ["+t.matrix.toString()+"]"),lt("/Function "+r+" 0 R"),lt("/Extend [true true]"),lt(">>"),lt("endobj")},de=function(t,e){var r=Kt(),n=Jt();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(j).join(" ")+"]"}),i.push({key:"XStep",value:j(t.xStep)}),i.push({key:"YStep",value:j(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),lt("endobj")},pe=function(t){var e;for(e in Ft)Ft.hasOwnProperty(e)&&(Ft[e]instanceof M?he(Ft[e]):Ft[e]instanceof R&&de(Ft[e],t))},ge=function(t){for(var e in t.objectNumber=Jt(),lt("<<"),t)switch(e){case"opacity":lt("/ca "+D(t[e]));break;case"stroke-opacity":lt("/CA "+D(t[e]))}lt(">>"),lt("endobj")},ve=function(){var t;for(t in Tt)Tt.hasOwnProperty(t)&&ge(Tt[t])},be=function(){for(var t in lt("/XObject <<"),zt)zt.hasOwnProperty(t)&&zt[t].objectNumber>=0&&lt("/"+t+" "+zt[t].objectNumber+" 0 R");qt.publish("putXobjectDict"),lt(">>")},me=function(){Ye.oid=Jt(),lt("<<"),lt("/Filter /Standard"),lt("/V "+Ye.v),lt("/R "+Ye.r),lt("/U <"+Ye.toHexString(Ye.U)+">"),lt("/O <"+Ye.toHexString(Ye.O)+">"),lt("/P "+Ye.P),lt(">>"),lt("endobj")},ye=function(){for(var t in lt("/Font <<"),Ct)Ct.hasOwnProperty(t)&&(!1===b||!0===b&&m.hasOwnProperty(t))&&lt("/"+t+" "+Ct[t].objectNumber+" 0 R");lt(">>")},we=function(){if(Object.keys(Ft).length>0){for(var t in lt("/Shading <<"),Ft)Ft.hasOwnProperty(t)&&Ft[t]instanceof M&&Ft[t].objectNumber>=0&&lt("/"+t+" "+Ft[t].objectNumber+" 0 R");qt.publish("putShadingPatternDict"),lt(">>")}},xe=function(t){if(Object.keys(Ft).length>0){for(var e in lt("/Pattern <<"),Ft)Ft.hasOwnProperty(e)&&Ft[e]instanceof y.TilingPattern&&Ft[e].objectNumber>=0&&Ft[e].objectNumber<t&&lt("/"+e+" "+Ft[e].objectNumber+" 0 R");qt.publish("putTilingPatternDict"),lt(">>")}},Ae=function(){if(Object.keys(Tt).length>0){var t;for(t in lt("/ExtGState <<"),Tt)Tt.hasOwnProperty(t)&&Tt[t].objectNumber>=0&&lt("/"+t+" "+Tt[t].objectNumber+" 0 R");qt.publish("putGStateDict"),lt(">>")}},Le=function(t){$t(t.resourcesOid,!0),lt("<<"),lt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),we(),xe(t.objectOid),Ae(),be(),lt(">>"),lt("endobj")},Ne=function(){var t=[];ce(),ve(),fe(),pe(t),qt.publish("putResources"),t.forEach(Le),Le({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),qt.publish("postPutResources")},Se=function(){qt.publish("putAdditionalObjects");for(var t=0;t<ot.length;t++){var e=ot[t];$t(e.objId,!0),lt(e.content),lt("endobj")}qt.publish("postPutAdditionalObjects")},_e=function(t){It[t.fontName]=It[t.fontName]||{},It[t.fontName][t.fontStyle]=t.id},Pe=function(t,e,r,n,i){var o={id:"F"+(Object.keys(Ct).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return qt.publish("addFont",{font:o,instance:this}),Ct[o.id]=o,_e(o),o.id},ke=function(t){for(var e=0,r=pt.length;e<r;e++){var n=Pe.call(this,t[e][0],t[e][1],t[e][2],pt[e][3],!0);!1===b&&(m[n]=!0);var i=t[e][0].split("-");_e({id:n,fontName:i[0],fontStyle:i[1]||""})}qt.publish("addFonts",{fonts:Ct,dictionary:It})},je=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var r="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!o.console)throw new Error(r);o.console.error(r,t),o.alert&&alert(r)}},t.foo.bar=t,t.foo},Ce=function(t,e){var r,n,i,o,a,s,c,u,f;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&Ct[St].metadata&&Ct[St].metadata[i]&&Ct[St].metadata[i].encoding&&(o=Ct[St].metadata[i].encoding,!a&&Ct[St].encoding&&(a=Ct[St].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(c=!1,s=[],r=0,n=t.length;r<n;r++)(u=a[t.charCodeAt(r)])?s.push(String.fromCharCode(u)):s.push(t[r]),s[r].charCodeAt(0)>>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r<n;r++){if((f=(u=t.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(f),s.push(u-(f<<8))}return String.fromCharCode.apply(void 0,s)},Ie=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return Ce(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Oe=y.__private__.beginPage=function(t){at[++Bt]=[],Dt[Bt]={objId:0,contentsObjId:0,userUnit:Number(f),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Te(Bt),ft(at[Z])},Fe=function(t,e){var n,i,o;switch(r=e||r,"string"==typeof t&&(n=L(t.toLowerCase()),Array.isArray(n)&&(i=n[0],o=n[1])),Array.isArray(t)&&(i=t[0]*_t,o=t[1]*_t),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(s.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],r.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}Oe(a),pr(hr),lt(Ar),0!==kr&&lt(kr+" J"),0!==jr&&lt(jr+" j"),qt.publish("addPage",{pageNumber:Bt})},Ee=function(t){t>0&&t<=Bt&&(at.splice(t,1),Dt.splice(t,1),Bt--,Z>Bt&&(Z=Bt),this.setPage(Z))},Te=function(t){t>0&&t<=Bt&&(Z=t)},Me=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return at.length-1},Re=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:Ct[St].fontName,e=void 0!==e?e:Ct[St].fontStyle,n=t.toLowerCase(),void 0!==It[n]&&void 0!==It[n][e]?i=It[n][e]:void 0!==It[t]&&void 0!==It[t][e]?i=It[t][e]:!1===r.disableWarning&&s.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=It.times[e])&&(i=It.times.normal),i},Be=y.__private__.putInfo=function(){var t=Jt(),e=function(t){return t};for(var r in null!==v&&(e=Ye.encryptor(t,0)),lt("<<"),lt("/Producer ("+Ie(e("jsPDF "+B.version))+")"),Nt)Nt.hasOwnProperty(r)&&Nt[r]&&lt("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Ie(e(Nt[r]))+")");lt("/CreationDate ("+Ie(e(W))+")"),lt(">>"),lt("endobj")},De=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Qt;switch(Jt(),lt("<<"),lt("/Type /Catalog"),lt("/Pages "+e+" 0 R"),vt||(vt="fullwidth"),vt){case"fullwidth":lt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":lt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":lt("/OpenAction [3 0 R /Fit]");break;case"original":lt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+vt;"%"===r.substr(r.length-1)&&(vt=parseInt(vt)/100),"number"==typeof vt&&lt("/OpenAction [3 0 R /XYZ null null "+D(vt)+"]")}switch(xt||(xt="continuous"),xt){case"continuous":lt("/PageLayout /OneColumn");break;case"single":lt("/PageLayout /SinglePage");break;case"two":case"twoleft":lt("/PageLayout /TwoColumnLeft");break;case"tworight":lt("/PageLayout /TwoColumnRight")}yt&&lt("/PageMode /"+yt),qt.publish("putCatalog"),lt(">>"),lt("endobj")},qe=y.__private__.putTrailer=function(){lt("trailer"),lt("<<"),lt("/Size "+(et+1)),lt("/Root "+et+" 0 R"),lt("/Info "+(et-1)+" 0 R"),null!==v&&lt("/Encrypt "+Ye.oid+" 0 R"),lt("/ID [ <"+V+"> <"+V+"> ]"),lt(">>")},Ue=y.__private__.putHeader=function(){lt("%PDF-"+w),lt("%ºß¬à")},ze=y.__private__.putXRef=function(){var t="0000000000";lt("xref"),lt("0 "+(et+1)),lt("0000000000 65535 f ");for(var e=1;e<=et;e++)"function"==typeof rt[e]?lt((t+rt[e]()).slice(-10)+" 00000 n "):void 0!==rt[e]?lt((t+rt[e]).slice(-10)+" 00000 n "):lt("0000000000 00000 n ")},He=y.__private__.buildDocument=function(){ut(),ft(nt),qt.publish("buildDocument"),Ue(),ae(),Se(),Ne(),null!==v&&me(),Be(),De();var t=it;return ze(),qe(),lt("startxref"),lt(""+t),lt("%%EOF"),ft(at[Z]),nt.join("\n")},We=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ve=y.output=y.__private__.output=je((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return He();case"save":y.save(e.filename);break;case"arraybuffer":return dt(He());case"blob":return We(He());case"bloburi":case"bloburl":if(void 0!==o.URL&&"function"==typeof o.URL.createObjectURL)return o.URL&&o.URL.createObjectURL(We(He()))||void 0;s.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=He();try{r=h(n)}catch(t){r=h(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+e.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+i+'"'+a+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",u=o.open();return null!==u&&u.document.write(c),u}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',l=o.open();if(null!==l){l.document.write(f);var d=this;l.document.documentElement.querySelector("#pdfViewer").onload=function(){l.document.title=e.filename,l.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(d.output("bloburl"))}}return l}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(o))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var p='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',g=o.open();if(null!==g&&(g.document.write(p),g.document.title=e.filename),g||"undefined"==typeof safari)return g;break;case"datauri":case"dataurl":return o.document.location.href=this.output("datauristring",e);default:return null}})),Ge=function(t){return!0===Array.isArray(Ut)&&Ut.indexOf(t)>-1};switch(i){case"pt":_t=1;break;case"mm":_t=72/25.4;break;case"cm":_t=72/2.54;break;case"in":_t=72;break;case"px":_t=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":_t=12;break;case"ex":_t=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);_t=i}var Ye=null;K(),Y();var Xe=function(t){return null!==v?Ye.encryptor(t,0):function(t){return t}},Je=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Dt[t].objId,pageNumber:t,pageContext:Dt[t]}},Ke=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Dt)if(Dt[e].objId===t)break;return Je(e)},$e=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Dt[Z].objId,pageNumber:Z,pageContext:Dt[Z]}};y.addPage=function(){return Fe.apply(this,arguments),this},y.setPage=function(){return Te.apply(this,arguments),ft.call(this,at[Z]),this},y.insertPage=function(t){return this.addPage(),this.movePage(Z,t),this},y.movePage=function(t,e){var r,n;if(t>e){r=at[t],n=Dt[t];for(var i=t;i>e;i--)at[i]=at[i-1],Dt[i]=Dt[i-1];at[e]=r,Dt[e]=n,this.setPage(e)}else if(t<e){r=at[t],n=Dt[t];for(var o=t;o<e;o++)at[o]=at[o+1],Dt[o]=Dt[o+1];at[e]=r,Dt[e]=n,this.setPage(e)}return this},y.deletePage=function(){return Ee.apply(this,arguments),this},y.__private__.text=y.text=function(t,e,r,i,o){var a,s,c,u,f,l,h,d,p,g=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof r||Array.isArray(r))){var v=r;r=e,e=t,t=v}if(arguments[3]instanceof Vt==0?(c=arguments[4],u=arguments[5],"object"===n()(h=arguments[3])&&null!==h||("string"==typeof c&&(u=c,c=null),"string"==typeof h&&(u=h,h=null),"number"==typeof h&&(c=h,h=null),i={flags:h,angle:c,align:u})):(C("The transform parameter of text() with a Matrix value"),p=o),isNaN(e)||isNaN(r)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return g;var b="",y=!1,w="number"==typeof i.lineHeightFactor?i.lineHeightFactor:lr,x=g.internal.scaleFactor;function A(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),Ie(t,h)}function L(t){for(var e,r=t.concat(),n=[],i=r.length;i--;)"string"==typeof(e=r.shift())?n.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?n.push(e[0]):n.push([e[0],e[1],e[2]]);return n}function _(t,e){var r;if("string"==typeof t)r=e(t)[0];else if(Array.isArray(t)){for(var n,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(n=o.shift())?a.push(e(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(i=e(n[0],n[1],n[2]),a.push([i[0],i[1],i[2]]));r=a}return r}var P=!1,k=!0;if("string"==typeof t)P=!0;else if(Array.isArray(t)){var I=t.concat();s=[];for(var O,F=I.length;F--;)("string"!=typeof(O=I.shift())||Array.isArray(O)&&"string"!=typeof O[0])&&(k=!1);P=k}if(!1===P)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var E=gt/g.internal.scaleFactor,T=E*(w-1);switch(i.baseline){case"bottom":r-=T;break;case"top":r+=E-T;break;case"hanging":r+=E-2*T;break;case"middle":r+=E/2-T}if((l=i.maxWidth||0)>0&&("string"==typeof t?t=g.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(g.splitTextToSize(e,l))}),[]))),a={text:t,x:e,y:r,options:i,mutex:{pdfEscape:Ie,activeFontKey:St,fonts:Ct,activeFontSize:gt}},qt.publish("preProcessText",a),t=a.text,c=(i=a.options).angle,p instanceof Vt==0&&c&&"number"==typeof c){c*=Math.PI/180,0===i.rotationDirection&&(c=-c),S===N.ADVANCED&&(c=-c);var M=Math.cos(c),R=Math.sin(c);p=new Vt(M,R,-R,M,0,0)}else c&&c instanceof Vt&&(p=c);S!==N.ADVANCED||p||(p=Yt),void 0!==(f=i.charSpace||_r)&&(b+=j(U(f))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=i.horizontalScale)&&(b+=j(100*d)+" Tz\n"),i.lang;var B=-1,D=void 0!==i.renderingMode?i.renderingMode:i.stroke,q=g.internal.getCurrentPageInfo().pageContext;switch(D){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var z=void 0!==q.usedRenderingMode?q.usedRenderingMode:-1;-1!==B?b+=B+" Tr\n":-1!==z&&(b+="0 Tr\n"),-1!==B&&(q.usedRenderingMode=B),u=i.align||"left";var H,W=gt*w,V=g.internal.pageSize.getWidth(),G=Ct[St];f=i.charSpace||_r,l=i.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},i.flags);var Y=[];if("[object Array]"===Object.prototype.toString.call(t)){var X;s=L(t),"left"!==u&&(H=s.map((function(t){return g.getStringUnitWidth(t,{font:G,charSpace:f,fontSize:gt,doKerning:!1})*gt/x})));var J,K=0;if("right"===u){e-=H[0],t=[],F=s.length;for(var $=0;$<F;$++)0===$?(J=mr(e),X=yr(r)):(J=U(K-H[$]),X=-W),t.push([s[$],J,X]),K=H[$]}else if("center"===u){e-=H[0]/2,t=[],F=s.length;for(var Z=0;Z<F;Z++)0===Z?(J=mr(e),X=yr(r)):(J=U((K-H[Z])/2),X=-W),t.push([s[Z],J,X]),K=H[Z]}else if("left"===u){t=[],F=s.length;for(var Q=0;Q<F;Q++)t.push(s[Q])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],F=s.length,l=0!==l?l:V;for(var tt=0;tt<F;tt++)X=0===tt?yr(r):-W,J=0===tt?mr(e):0,tt<F-1?Y.push(j(U((l-H[tt])/(s[tt].split(" ").length-1)))):Y.push(0),t.push([s[tt],J,X])}}var et="boolean"==typeof i.R2L?i.R2L:mt;!0===et&&(t=_(t,(function(t,e,r){return[t.split("").reverse().join(""),e,r]}))),a={text:t,x:e,y:r,options:i,mutex:{pdfEscape:Ie,activeFontKey:St,fonts:Ct,activeFontSize:gt}},qt.publish("postProcessText",a),t=a.text,y=a.mutex.isHex||!1;var rt=Ct[St].encoding;"WinAnsiEncoding"!==rt&&"StandardEncoding"!==rt||(t=_(t,(function(t,e,r){return[A(t),e,r]}))),s=L(t),t=[];for(var nt,it,ot,at=0,st=1,ct=Array.isArray(s[0])?st:at,ut="",ft=function(t,e,r){var n="";return r instanceof Vt?(r="number"==typeof i.angle?Gt(r,new Vt(1,0,0,1,t,e)):Gt(new Vt(1,0,0,1,t,e),r),S===N.ADVANCED&&(r=Gt(new Vt(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=j(t)+" "+j(e)+" Td\n",n},ht=0;ht<s.length;ht++){switch(ut="",ct){case st:ot=(y?"<":"(")+s[ht][0]+(y?">":")"),nt=parseFloat(s[ht][1]),it=parseFloat(s[ht][2]);break;case at:ot=(y?"<":"(")+s[ht]+(y?">":")"),nt=mr(e),it=yr(r)}void 0!==Y&&void 0!==Y[ht]&&(ut=Y[ht]+" Tw\n"),0===ht?t.push(ut+ft(nt,it,p)+ot):ct===at?t.push(ut+ot):ct===st&&t.push(ut+ft(nt,it,p)+ot)}t=ct===at?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var dt="BT\n/";return dt+=St+" "+gt+" Tf\n",dt+=j(gt*w)+" TL\n",dt+=Nr+"\n",dt+=b,dt+=t,lt(dt+="ET"),m[St]=!0,g};var Ze=y.__private__.clip=y.clip=function(t){return lt("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return Ze("evenodd")},y.__private__.discardPath=y.discardPath=function(){return lt("n"),this};var Qe=y.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return Qe(t)&&(g=t),this};var tr=y.__private__.getStyle=y.getStyle=function(t){var e=g;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},er=y.close=function(){return lt("h"),this};y.stroke=function(){return lt("S"),this},y.fill=function(t){return rr("f",t),this},y.fillEvenOdd=function(t){return rr("f*",t),this},y.fillStroke=function(t){return rr("B",t),this},y.fillStrokeEvenOdd=function(t){return rr("B*",t),this};var rr=function(t,e){"object"===n()(e)?or(e,t):lt(t)},nr=function(t){null===t||S===N.ADVANCED&&void 0===t||(t=tr(t),lt(t))};function ir(t,e,r,n,i){var o=new R(e||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=t+"$$"+this.cloneIndex+++"$$";return Xt(a,o),o}var or=function(t,e){var r=Et[t.key],n=Ft[r];if(n instanceof M)lt("q"),lt(ar(e)),n.gState&&y.setGState(n.gState),lt(t.matrix.toString()+" cm"),lt("/"+r+" sh"),lt("Q");else if(n instanceof R){var i=new Vt(1,0,0,-1,0,Dr());t.matrix&&(i=i.multiply(t.matrix||Yt),r=ir.call(n,t.key,t.boundingBox,t.xStep,t.yStep,i).id),lt("q"),lt("/Pattern cs"),lt("/"+r+" scn"),n.gState&&y.setGState(n.gState),lt(e),lt("Q")}},ar=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sr=y.moveTo=function(t,e){return lt(j(U(t))+" "+j(H(e))+" m"),this},cr=y.lineTo=function(t,e){return lt(j(U(t))+" "+j(H(e))+" l"),this},ur=y.curveTo=function(t,e,r,n,i,o){return lt([j(U(t)),j(H(e)),j(U(r)),j(H(n)),j(U(i)),j(H(o)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.line");return S===N.COMPAT?this.lines([[r-t,n-e]],t,e,[1,1],i||"S"):this.lines([[r-t,n-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,r,n,i,o){var a,s,c,u,f,l,h,d,p,g,v,b;if("number"==typeof t&&(b=r,r=e,e=t,t=b),n=n||[1,1],o=o||!1,isNaN(e)||isNaN(r)||!Array.isArray(t)||!Array.isArray(n)||!Qe(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(sr(e,r),a=n[0],s=n[1],u=t.length,g=e,v=r,c=0;c<u;c++)2===(f=t[c]).length?(g=f[0]*a+g,v=f[1]*s+v,cr(g,v)):(l=f[0]*a+g,h=f[1]*s+v,d=f[2]*a+g,p=f[3]*s+v,g=f[4]*a+g,v=f[5]*s+v,ur(l,h,d,p,g,v));return o&&er(),nr(i),this},y.path=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.c;switch(r.op){case"m":sr(n[0],n[1]);break;case"l":cr(n[0],n[1]);break;case"c":ur.apply(this,n);break;case"h":er()}}return this},y.__private__.rect=y.rect=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.rect");return S===N.COMPAT&&(n=-n),lt([j(U(t)),j(H(e)),j(U(r)),j(U(n)),"re"].join(" ")),nr(i),this},y.__private__.triangle=y.triangle=function(t,e,r,n,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||!Qe(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-t,n-e],[i-r,o-n],[t-i,e-o]],t,e,[1,1],a,!0),this},y.__private__.roundedRect=y.roundedRect=function(t,e,r,n,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||!Qe(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),o=Math.min(o,.5*n),this.lines([[r-2*i,0],[i*s,0,i,o-o*s,i,o],[0,n-2*o],[0,o*s,-i*s,o,-i,o],[2*i-r,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-n],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a,!0),this},y.__private__.ellipse=y.ellipse=function(t,e,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||!Qe(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*r,a=4/3*(Math.SQRT2-1)*n;return sr(t+r,e),ur(t+r,e-a,t+o,e-n,t,e-n),ur(t-o,e-n,t-r,e-a,t-r,e),ur(t-r,e+a,t-o,e+n,t,e+n),ur(t+o,e+n,t+r,e+a,t+r,e),nr(i),this},y.__private__.circle=y.circle=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||!Qe(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,r,r,n)},y.setFont=function(t,e,r){return r&&(e=k(e,r)),St=Re(t,e,{disableWarning:!1}),this};var fr=y.__private__.getFont=y.getFont=function(){return Ct[Re.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var t,e,r={};for(t in It)if(It.hasOwnProperty(t))for(e in r[t]=[],It[t])It[t].hasOwnProperty(e)&&r[t].push(e);return r},y.addFont=function(t,e,r,n,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(r=k(r,n)),i=i||"Identity-H",Pe.call(this,t,e,r,i)};var lr,hr=t.lineWidth||.200025,dr=y.__private__.getLineWidth=y.getLineWidth=function(){return hr},pr=y.__private__.setLineWidth=y.setLineWidth=function(t){return hr=t,lt(j(U(t))+" w"),this};y.__private__.setLineDash=B.API.setLineDash=B.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return j(U(t))})).join(" "),e=j(U(e)),lt("["+t+"] "+e+" d"),this};var gr=y.__private__.getLineHeight=y.getLineHeight=function(){return gt*lr};y.__private__.getLineHeight=y.getLineHeight=function(){return gt*lr};var vr=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(lr=t),this},br=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return lr};vr(t.lineHeight);var mr=y.__private__.getHorizontalCoordinate=function(t){return U(t)},yr=y.__private__.getVerticalCoordinate=function(t){return S===N.ADVANCED?t:Dt[Z].mediaBox.topRightY-Dt[Z].mediaBox.bottomLeftY-U(t)},wr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(t){return j(mr(t))},xr=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(t){return j(yr(t))},Ar=t.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return ee(Ar)},y.__private__.setStrokeColor=y.setDrawColor=function(t,e,r,n){return Ar=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),lt(Ar),this};var Lr=t.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return ee(Lr)},y.__private__.setFillColor=y.setFillColor=function(t,e,r,n){return Lr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),lt(Lr),this};var Nr=t.textColor||"0 g",Sr=y.__private__.getTextColor=y.getTextColor=function(){return ee(Nr)};y.__private__.setTextColor=y.setTextColor=function(t,e,r,n){return Nr=re({ch1:t,ch2:e,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var _r=t.charSpace,Pr=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(_r||0)};y.__private__.setCharSpace=y.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return _r=t,this};var kr=0;y.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},y.__private__.setLineCap=y.setLineCap=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return kr=e,lt(e+" J"),this};var jr=0;y.__private__.setLineJoin=y.setLineJoin=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return jr=e,lt(e+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return lt(j(U(t))+" M"),this},y.GState=E,y.setGState=function(t){(t="string"==typeof t?Tt[Mt[t]]:Cr(null,t)).equals(Rt)||(lt("/"+t.id+" gs"),Rt=t)};var Cr=function(t,e){if(!t||!Mt[t]){var r=!1;for(var n in Tt)if(Tt.hasOwnProperty(n)&&Tt[n].equals(e)){r=!0;break}if(r)e=Tt[n];else{var i="GS"+(Object.keys(Tt).length+1).toString(10);Tt[i]=e,e.id=i}return t&&(Mt[t]=e.id),qt.publish("addGState",e),e}};y.addGState=function(t,e){return Cr(t,e),this},y.saveGraphicsState=function(){return lt("q"),Ot.push({key:St,size:gt,color:Nr}),this},y.restoreGraphicsState=function(){lt("Q");var t=Ot.pop();return St=t.key,gt=t.size,Nr=t.color,Rt=null,this},y.setCurrentTransformationMatrix=function(t){return lt(t.toString()+" cm"),this},y.comment=function(t){return lt("#"+t),this};var Ir=function(t,e){var r=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Or=function(t,e,r,n){Ir.call(this,t,e),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},Fr=function(){this.page=Bt,this.currentPage=Z,this.pages=at.slice(0),this.pagesContext=Dt.slice(0),this.x=Pt,this.y=kt,this.matrix=jt,this.width=Rr(Z),this.height=Dr(Z),this.outputDestination=ct,this.id="",this.objectNumber=-1};Fr.prototype.restore=function(){Bt=this.page,Z=this.currentPage,Dt=this.pagesContext,at=this.pages,Pt=this.x,kt=this.y,jt=this.matrix,Br(Z,this.width),qr(Z,this.height),ct=this.outputDestination};var Er=function(t,e,r,n,i){Wt.push(new Fr),Bt=Z=0,at=[],Pt=t,kt=e,jt=i,Oe([r,n])},Tr=function(t){if(Ht[t])Wt.pop().restore();else{var e=new Fr,r="Xo"+(Object.keys(zt).length+1).toString(10);e.id=r,Ht[t]=r,zt[r]=e,qt.publish("addFormObject",e),Wt.pop().restore()}};for(var Mr in y.beginFormObject=function(t,e,r,n,i){return Er(t,e,r,n,i),this},y.endFormObject=function(t){return Tr(t),this},y.doFormObject=function(t,e){var r=zt[Ht[t]];return lt("q"),lt(e.toString()+" cm"),lt("/"+r.id+" Do"),lt("Q"),this},y.getFormObject=function(t){var e=zt[Ht[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},y.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(d(We(He()),t),"function"==typeof d.unload&&o.setTimeout&&setTimeout(d.unload,911),this):new Promise((function(e,r){try{var n=d(We(He()),t);"function"==typeof d.unload&&o.setTimeout&&setTimeout(d.unload,911),e(n)}catch(t){r(t.message)}}))},B.API)B.API.hasOwnProperty(Mr)&&("events"===Mr&&B.API.events.length?function(t,e){var r,n,i;for(i=e.length-1;-1!==i;i--)r=e[i][0],n=e[i][1],t.subscribe.apply(t,[r].concat("function"==typeof n?[n]:n))}(qt,B.API.events):y[Mr]=B.API[Mr]);var Rr=y.getPageWidth=function(t){return(Dt[t=t||Z].mediaBox.topRightX-Dt[t].mediaBox.bottomLeftX)/_t},Br=y.setPageWidth=function(t,e){Dt[t].mediaBox.topRightX=e*_t+Dt[t].mediaBox.bottomLeftX},Dr=y.getPageHeight=function(t){return(Dt[t=t||Z].mediaBox.topRightY-Dt[t].mediaBox.bottomLeftY)/_t},qr=y.setPageHeight=function(t,e){Dt[t].mediaBox.topRightY=e*_t+Dt[t].mediaBox.bottomLeftY};return y.internal={pdfEscape:Ie,getStyle:tr,getFont:fr,getFontSize:bt,getCharSpace:Pr,getTextColor:Sr,getLineHeight:gr,getLineHeightFactor:br,getLineWidth:dr,write:ht,getHorizontalCoordinate:mr,getVerticalCoordinate:yr,getCoordinateString:wr,getVerticalCoordinateString:xr,collections:{},newObject:Jt,newAdditionalObject:Zt,newObjectDeferred:Kt,newObjectDeferredBegin:$t,getFilters:ne,putStream:ie,events:qt,scaleFactor:_t,pageSize:{getWidth:function(){return Rr(Z)},setWidth:function(t){Br(Z,t)},getHeight:function(){return Dr(Z)},setHeight:function(t){qr(Z,t)}},encryptionOptions:v,encryption:Ye,getEncryptor:Xe,output:Ve,getNumberOfPages:Me,pages:at,out:lt,f2:D,f3:q,getPageInfo:Je,getPageInfoByObjId:Ke,getCurrentPageInfo:$e,getPDFVersion:x,Point:Ir,Rectangle:Or,Matrix:Vt,hasHotfix:Ge},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return Rr(Z)},set:function(t){Br(Z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Dr(Z)},set:function(t){qr(Z,t)},enumerable:!0,configurable:!0}),ke.call(y,pt),St="F1",Fe(a,r),qt.publish("initialized"),y}I.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},I.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},I.prototype.hexToBytes=function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(String.fromCharCode(parseInt(t.substr(r,2),16)));return e.join("")},I.prototype.processOwnerPassword=function(t,e){return j(_(e).substr(0,5),t)},I.prototype.encryptor=function(t,e){var r=_(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return j(r,t)}},E.prototype.equals=function(t){var e,r="id,objectNumber,equals";if(!t||n()(t)!==n()(this))return!1;var i=0;for(e in this)if(!(r.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;i++}for(e in t)t.hasOwnProperty(e)&&r.indexOf(e)<0&&i--;return 0===i},B.API={events:[]},B.version="2.5.1";var D=B.API,q=1,U=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},z=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},H=function(t){return t.toFixed(2)},W=function(t){return t.toFixed(5)};D.__acroform__={};var V=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},G=function(t){return t*q},Y=function(t){var e=new lt,r=St.internal.getHeight(t)||0,n=St.internal.getWidth(t)||0;return e.BBox=[0,0,Number(H(n)),Number(H(r))],e},X=D.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},J=D.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},K=D.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},$=D.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return K(t,e-1)},Z=D.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return X(t,e-1)},Q=D.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return J(t,e-1)},tt=D.__acroform__.calculateCoordinates=function(t,e){var r=e.internal.getHorizontalCoordinate,n=e.internal.getVerticalCoordinate,i=t[0],o=t[1],a=t[2],s=t[3],c={};return c.lowerLeft_X=r(i)||0,c.lowerLeft_Y=n(o+s)||0,c.upperRight_X=r(i+a)||0,c.upperRight_Y=n(o)||0,[Number(H(c.lowerLeft_X)),Number(H(c.lowerLeft_Y)),Number(H(c.upperRight_X)),Number(H(c.upperRight_Y))]},et=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t._V||t.DV,n=rt(t,r),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+H(n.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(n.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=Y(t);return o.scope=t.scope,o.stream=e.join("\n"),o}},rt=function(t,e){var r=0===t.fontSize?t.maxFontSize:t.fontSize,n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map((function(t){return t.split("\n")})):i.map((function(t){return[t]}));var o=r,a=St.internal.getHeight(t)||0;a=a<0?-a:a;var s=St.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(e,r,n){if(e+1<i.length){var o=r+" "+i[e+1][0];return nt(o,t,n).width<=s-4}return!1};o++;t:for(;o>0;){e="",o--;var u,f,l=nt("3",t,o).height,h=t.multiline?a-o:(a-l)/2,d=h+=2,p=0,g=0,v=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+nt(e,t,o=12).width+", FieldWidth:"+s+"\n";break}for(var b="",m=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&v!==i[y].length-1){if((l+2)*(m+2)+2>a)continue t;b+=i[y][v],w=!0,g=y,y--}else{b=" "==(b+=i[y][v]+" ").substr(b.length-1)?b.substr(0,b.length-1):b;var x=parseInt(y),A=c(x,b,o),L=y>=i.length-1;if(A&&!L){b+=" ",v=0;continue}if(A||L){if(L)g=x;else if(t.multiline&&(l+2)*(m+2)+2>a)continue t}else{if(!t.multiline)continue t;if((l+2)*(m+2)+2>a)continue t;g=x}}for(var N="",S=p;S<=g;S++){var _=i[S];if(t.multiline){if(S===g){N+=_[v]+" ",v=(v+1)%_.length;continue}if(S===p){N+=_[_.length-1]+" ";continue}}N+=_[0]+" "}switch(N=" "==N.substr(N.length-1)?N.substr(0,N.length-1):N,f=nt(N,t,o).width,t.textAlign){case"right":u=s-f-2;break;case"center":u=(s-f)/2;break;case"left":default:u=2}e+=H(u)+" "+H(d)+" Td\n",e+="("+U(N)+") Tj\n",e+=-H(u)+" 0 Td\n",d=-(o+2),f=0,p=w?g:g+1,m++,b=""}break}return n.text=e,n.fontSize=o,n},nt=function(t,e,r){var n=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:e.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},it={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ot=function(t,e){var r={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===r.type&&t.object===r.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(r)},at=function(t,e){for(var r in t)if(t.hasOwnProperty(r)){var i=r,o=t[r];e.internal.newObjectDeferredBegin(o.objId,!0),"object"===n()(o)&&"function"==typeof o.putStream&&o.putStream(),delete t[i]}},st=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(dt.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(it)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");q=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ht,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];n.objId=void 0,n.hasAnnotation&&ot(n,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var r=!t;for(var i in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var o=t[i],a=[],s=o.Rect;if(o.Rect&&(o.Rect=tt(o.Rect,e)),e.internal.newObjectDeferredBegin(o.objId,!0),o.DA=St.createDefaultAppearanceStream(o),"object"===n()(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var c=et(o);a.push({key:"AP",value:"<</N "+c+">>"}),e.internal.acroformPlugin.xForms.push(c)}if(o.appearanceStreamContent){var u="";for(var f in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(f)){var l=o.appearanceStreamContent[f];if(u+="/"+f+" ",u+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var i in l)if(l.hasOwnProperty(i)){var h=l[i];"function"==typeof h&&(h=h.call(e,o)),u+="/"+i+" "+h+" ",e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=l)&&(h=h.call(e,o)),u+="/"+i+" "+h,e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h);u+=">>"}a.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:a,objectId:o.objId}),e.internal.out("endobj")}r&&at(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}},ct=D.__acroform__.arrayToPdfArray=function(t,e,r){var i=function(t){return t};if(Array.isArray(t)){for(var o="[",a=0;a<t.length;a++)switch(0!==a&&(o+=" "),n()(t[a])){case"boolean":case"number":case"object":o+=t[a].toString();break;case"string":"/"!==t[a].substr(0,1)?(void 0!==e&&r&&(i=r.internal.getEncryptor(e)),o+="("+U(i(t[a].toString()))+")"):o+=t[a].toString()}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ut=function(t,e,r){var n=function(t){return t};return void 0!==e&&r&&(n=r.internal.getEncryptor(e)),(t=t||"").toString(),"("+U(n(t))+")"},ft=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)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})};ft.prototype.toString=function(){return this.objId+" 0 R"},ft.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ft.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var r in e)if(!1===Object.getOwnPropertyDescriptor(this,e[r]).configurable){var n=e[r],i=this[n];i&&(Array.isArray(i)?t.push({key:n,value:ct(i,this.objId,this.scope)}):i instanceof ft?(i.scope=this.scope,t.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:n,value:i}))}return t};var lt=function(){ft.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,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};V(lt,ft);var ht=function(){ft.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+U(e(t))+")"}},set:function(e){t=e}})};V(ht,ft);var dt=function(){ft.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean($(t,3))},set:function(e){!0===Boolean(e)?this.F=Z(t,3):this.F=Q(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');e=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof xt)return;o="FieldObject"+n.a.FieldNum++}var t=function(t){return t};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+U(t(o))+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===u?50/q:u},set:function(t){u=t}});var f="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return f},set:function(t){f=t}});var l="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!l||this instanceof xt||this instanceof Lt))return ut(l,this.objId,this.scope)},set:function(t){t=t.toString(),l=t}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof mt==0?ut(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof mt==0?"("===t.substr(0,1)?z(t.substr(1,t.length-2)):z(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt==1?z(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof mt==1?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof mt==0?ut(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof mt==0?"("===t.substr(0,1)?z(t.substr(1,t.length-2)):z(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof mt==1?z(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof mt==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(t){t=Boolean(t),g=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,1):this.Ff=Q(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,2):this.Ff=Q(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,3):this.Ff=Q(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==v)return v},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');v=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(v){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:v=2;break;case"center":case 1:v=1;break;case"left":case 0:default:v=0}}})};V(dt,ft);var pt=function(){dt.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 e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ct(e,this.objId,this.scope)},set:function(t){var r,n;n=[],"string"==typeof(r=t)&&(n=function(t,e,r){r||(r=1);for(var n,i=[];n=e.exec(t);)i.push(n[r]);return i}(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,18):this.Ff=Q(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=Z(this.Ff,19):this.Ff=Q(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=Z(this.Ff,20),e.sort()):this.Ff=Q(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,22):this.Ff=Q(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,23):this.Ff=Q(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,27):this.Ff=Q(this.Ff,27)}}),this.hasAppearanceStream=!1};V(pt,dt);var gt=function(){pt.call(this),this.fontName="helvetica",this.combo=!1};V(gt,pt);var vt=function(){gt.call(this),this.combo=!0};V(vt,gt);var bt=function(){vt.call(this),this.edit=!0};V(bt,vt);var mt=function(){dt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,15):this.Ff=Q(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,16):this.Ff=Q(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,17):this.Ff=Q(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,26):this.Ff=Q(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+U(t(e[r]))+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===n()(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};V(mt,dt);var yt=function(){mt.call(this),this.pushButton=!0};V(yt,mt);var wt=function(){mt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};V(wt,mt);var xt=function(){var t,e;dt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,r=[];for(e in r.push("<<"),i)r.push("/"+e+" ("+U(t(i[e]))+")");return r.push(">>"),r.join("\n")},set:function(t){"object"===n()(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(t){r=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(t){r="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=St.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};V(xt,dt),wt.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 e in this.Kids)if(this.Kids.hasOwnProperty(e)){var r=this.Kids[e];r.appearanceStreamContent=t.createAppearanceStream(r.optionName),r.caption=t.getCA()}},wt.prototype.createOption=function(t){var e=new xt;return e.Parent=this,e.optionName=t,this.Kids.push(e),_t.call(this.scope,e),e};var At=function(){mt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=St.CheckBox.createAppearanceStream()};V(At,mt);var Lt=function(){dt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,13):this.Ff=Q(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,21):this.Ff=Q(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,23):this.Ff=Q(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,24):this.Ff=Q(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,25):this.Ff=Q(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,26):this.Ff=Q(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};V(Lt,dt);var Nt=function(){Lt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean($(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=Z(this.Ff,14):this.Ff=Q(this.Ff,14)}}),this.password=!0};V(Nt,Lt);var St={CheckBox:{createAppearanceStream:function(){return{N:{On:St.CheckBox.YesNormal},D:{On:St.CheckBox.YesPushDown,Off:St.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=rt(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+H(St.internal.getWidth(t))+" "+H(St.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+H(o.fontSize)+" Tf "+i),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=Y(t);e.scope=t.scope;var r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=[],o=St.internal.getHeight(t),a=St.internal.getWidth(t),s=rt(t,t.caption);return i.push("1 g"),i.push("0 0 "+H(a)+" "+H(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+H(a-1)+" "+H(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+H(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+H(St.internal.getWidth(t))+" "+H(St.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:St.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=St.RadioButton.Circle.YesNormal,e.D[t]=St.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=St.internal.getWidth(t)<=St.internal.getHeight(t)?St.internal.getWidth(t)/4:St.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=St.internal.Bezier_C,o=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=St.internal.getWidth(t)<=St.internal.getHeight(t)?St.internal.getWidth(t)/4:St.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*St.internal.Bezier_C).toFixed(5)),a=Number((n*St.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=St.internal.getWidth(t)<=St.internal.getHeight(t)?St.internal.getWidth(t)/4:St.internal.getHeight(t)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*St.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+W(St.internal.getWidth(t)/2)+" "+W(St.internal.getHeight(t)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),e.stream=r.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:St.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=St.RadioButton.Cross.YesNormal,e.D[t]=St.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=Y(t);e.scope=t.scope;var r=[],n=St.internal.calculateCross(t);return r.push("q"),r.push("1 1 "+H(St.internal.getWidth(t)-2)+" "+H(St.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(H(n.x1.x)+" "+H(n.x1.y)+" m"),r.push(H(n.x2.x)+" "+H(n.x2.y)+" l"),r.push(H(n.x4.x)+" "+H(n.x4.y)+" m"),r.push(H(n.x3.x)+" "+H(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},YesPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=St.internal.calculateCross(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+H(St.internal.getWidth(t))+" "+H(St.internal.getHeight(t))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+H(St.internal.getWidth(t)-2)+" "+H(St.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(H(r.x1.x)+" "+H(r.x1.y)+" m"),n.push(H(r.x2.x)+" "+H(r.x2.y)+" l"),n.push(H(r.x4.x)+" "+H(r.x4.y)+" m"),n.push(H(r.x3.x)+" "+H(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=Y(t);e.scope=t.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+H(St.internal.getWidth(t))+" "+H(St.internal.getHeight(t))+" re"),r.push("f"),e.stream=r.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};St.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=St.internal.getWidth(t),r=St.internal.getHeight(t),n=Math.min(e,r);return{x1:{x:(e-n)/2,y:(r-n)/2+n},x2:{x:(e-n)/2+n,y:(r-n)/2},x3:{x:(e-n)/2,y:(r-n)/2},x4:{x:(e-n)/2+n,y:(r-n)/2+n}}}},St.internal.getWidth=function(t){var e=0;return"object"===n()(t)&&(e=G(t.Rect[2])),e},St.internal.getHeight=function(t){var e=0;return"object"===n()(t)&&(e=G(t.Rect[3])),e};var _t=D.addField=function(t){if(st(this,t),!(t instanceof dt))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};D.AcroFormChoiceField=pt,D.AcroFormListBox=gt,D.AcroFormComboBox=vt,D.AcroFormEditBox=bt,D.AcroFormButton=mt,D.AcroFormPushButton=yt,D.AcroFormRadioButton=wt,D.AcroFormCheckBox=At,D.AcroFormTextField=Lt,D.AcroFormPasswordField=Nt,D.AcroFormAppearance=St,D.AcroForm={ChoiceField:pt,ListBox:gt,ComboBox:vt,EditBox:bt,Button:mt,PushButton:yt,RadioButton:wt,CheckBox:At,TextField:Lt,PasswordField:Nt,Appearance:St},B.AcroForm={ChoiceField:pt,ListBox:gt,ComboBox:vt,EditBox:bt,Button:mt,PushButton:yt,RadioButton:wt,CheckBox:At,TextField:Lt,PasswordField:Nt,Appearance:St};B.AcroForm;function Pt(t){return t.reduce((function(t,e,r){return t[e]=r,t}),{})}!function(t){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]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,n){var i,o,a,s,c,u=e;if("RGBA"===(n=n||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(N(t))for(c in r)for(a=r[c],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t[o]){s=!1;break}if(!0===s){u=c;break}}else for(c in r)for(a=r[c],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){u=c;break}}return u===e&&n!==e&&(u=n),u},o=function(t){for(var e=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:t.width}),o.push({key:"Height",value:t.height}),t.colorSpace===m.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===m.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var a="",s=0,c=t.transparency.length;s<c;s++)a+=t.transparency[s]+" "+t.transparency[s]+" ";o.push({key:"Mask",value:"["+a+"]"})}void 0!==t.sMask&&o.push({key:"SMask",value:t.objectId+1+" 0 R"});var u=void 0!==t.filter?["/"+t.filter]:void 0;if(r({data:t.data,additionalKeyValues:o,alreadyAppliedFilters:u,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var f="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,l={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:f,data:t.sMask};"filter"in t&&(l.filter=t.filter),n.a.call(this,l)}if(t.colorSpace===m.INDEXED){var h=this.internal.newObject();r({data:_(new Uint8Array(t.palette)),objectId:h}),e("endobj")}},a=function(){var t=this.internal.collections.addImage_images;for(var e in t)o.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,r=this.internal.write;for(var n in e)r("/I"+(t=e[n]).index,t.objectId,"0","R")},c=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s))},u=function(){var t=this.internal.collections.addImage_images;return c.call(this),t},f=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(e){return"function"==typeof t["process"+e.toUpperCase()]},d=function(t){return"object"===n()(t)&&1===t.nodeType},p=function(e,r){if("IMG"===e.nodeName&&e.hasAttribute("src")){var n=""+e.getAttribute("src");if(0===n.indexOf("data:image/"))return l(unescape(n).split("base64,").pop());var i=t.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var o;switch(r){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;case"JPEG":case"JPG":default:o="image/jpeg"}return l(e.toDataURL(o,1).split("base64,").pop())}},g=function(t){var e=this.internal.collections.addImage_images;if(e)for(var r in e)if(t===e[r].alias)return e[r]},v=function(t,e,r){return t||e||(t=-96,e=-96),t<0&&(t=-1*r.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*r.height*72/e/this.internal.scaleFactor),0===t&&(t=e*r.width/r.height),0===e&&(e=t*r.height/r.width),[t,e]},b=function(t,e,r,n,i,o){var a=v.call(this,r,n,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,f=u.call(this);if(r=a[0],n=a[1],f[i.index]=i,o){o*=Math.PI/180;var l=Math.cos(o),h=Math.sin(o),d=function(t){return t.toFixed(4)},p=[d(l),d(h),d(-1*h),d(l),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(t),c(e+n),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(t),c(e+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},m=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 y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=t.__addimage__.sHashCode=function(t){var e,r,n=0;if("string"==typeof t)for(r=t.length,e=0;e<r;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;else if(N(t))for(r=t.byteLength/2,e=0;e<r;e++)n=(n<<5)-n+t[e],n|=0;return n},x=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},A=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),r=null;if(2===e.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:e[1]})}return r},L=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return L()&&t instanceof ArrayBuffer};var N=t.__addimage__.isArrayBufferView=function(t){return L()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},S=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r},_=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",r=N(t)?t:new Uint8Array(t),n=0;n<r.length;n+=8192)e+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return e};t.addImage=function(){var t,r,i,o,a,s,u,f,l;if("number"==typeof arguments[1]?(r=e,i=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],u=arguments[5],f=arguments[6],l=arguments[7]):(r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],u=arguments[6],f=arguments[7],l=arguments[8]),"object"===n()(t=arguments[0])&&!d(t)&&"imageData"in t){var h=t;t=h.imageData,r=h.format||r||e,i=h.x||i||0,o=h.y||o||0,a=h.w||h.width||a,s=h.h||h.height||s,u=h.alias||u,f=h.compression||f,l=h.rotation||h.angle||l}var p=this.internal.getFilters();if(void 0===f&&-1!==p.indexOf("FlateEncode")&&(f="SLOW"),isNaN(i)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var g=P.call(this,t,r,u,f);return b.call(this,i,o,a,s,g,l),this};var P=function(r,n,o,a){var s,c,u;if("string"==typeof r&&i(r)===e){r=unescape(r);var l=k(r,!1);(""!==l||void 0!==(l=t.loadFile(r,!0)))&&(r=l)}if(d(r)&&(r=p(r,n)),n=i(r,n),!h(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(u=o)||0===u.length)&&(o=function(t){return"string"==typeof t||N(t)?w(t):N(t.data)?w(t.data):null}(r)),(s=g.call(this,o))||(L()&&(r instanceof Uint8Array||"RGBA"===n||(c=r,r=S(r))),s=this["process"+n.toUpperCase()](r,f.call(this),o,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:y.NONE}(a),c)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},k=t.__addimage__.convertBase64ToBinaryString=function(t,e){var r;e="boolean"!=typeof e||e;var n,i="";if("string"==typeof t){n=null!==(r=A(t))?r.data:t;try{i=l(n)}catch(t){if(e)throw x(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(r){var n,o,a="";if(d(r)&&(r=p(r)),"string"==typeof r&&i(r)===e&&(""===(a=k(r,!1))&&(a=t.loadFile(r)||""),r=a),o=i(r),!h(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(!L()||r instanceof Uint8Array||(r=S(r)),!(n=this["process"+o.toUpperCase()](r)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=o,n}}(B.API),
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};B.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var r,n,i,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,f=0;f<c.length&&!u;f++)switch((r=c[f]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(0!=u){this.internal.write("/Annots [");for(var l=0;l<c.length;l++){r=c[l];var h=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),g=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(p.objId),b=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",i+=" /Popup "+g.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+h(v(b))+") >>",p.content=i;var m=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+o(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+m,r.open&&(i+=" /Open true"),i+=" >>",g.content=i,this.internal.write(p.objId,"0 R",g.objId,"0 R");break;case"freetext":n="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var y=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(d(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var w=this.annotations._nameMap[r.options.name];r.options.pageNumber=w.page,r.options.top=w.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(d(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":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;case"XYZ":default:var x=a(r.options.top);r.options.left=r.options.left||0,void 0===r.options.zoom&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+x+" "+r.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,r,n,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(t),y:s(e),w:a(t+r),h:s(e+n)},options:i,type:"link"})},t.textWithLink=function(t,e,r,n){var i,o,a=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==n.maxWidth){o=n.maxWidth;var c=this.splitTextToSize(t,o).length;i=Math.ceil(s*c)}else o=a,i=s;return this.text(t,e,r,n),r+=.2*s,"center"===n.align&&(e-=a/2),"right"===n.align&&(e-=a),this.link(e,r-s,o,i,n),a},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(B.API),
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},c=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var u=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var f=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length},l=t.__arabicParser__.resolveLigatures=function(t){var e=0,n=r,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==n[t.charCodeAt(e)]?(o++,"number"==typeof(n=n[t.charCodeAt(e)])&&(i+=String.fromCharCode(n),n=r,o=0),e===t.length-1&&(n=r,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(n=r,i+=t.charAt(e-o),e-=o,o=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==n[t.charCodeAt(0)]};var h=t.__arabicParser__.getCorrectForm=function(t,e,r){return a(t)?!1===o(t)?-1:!u(t)||!a(e)&&!a(r)||!a(r)&&s(e)||s(t)&&!a(e)||s(t)&&c(e)||s(t)&&s(e)?0:f(t)&&a(e)&&!s(e)&&a(r)&&u(r)?3:s(t)||!a(r)?1:2:-1},d=function(t){var r=0,n=0,i=0,o="",s="",c="",u=(t=t||"").split("\\s+"),f=[];for(r=0;r<u.length;r+=1){for(f.push(""),n=0;n<u[r].length;n+=1)o=u[r][n],s=u[r][n-1],c=u[r][n+1],a(o)?(i=h(o,s,c),f[r]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):f[r]+=o;f[r]=l(f[r])}return f.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(e)){var n=0;for(r=[],n=0;n<e.length;n+=1)Array.isArray(e[n])?r.push([d(e[n][0]),e[n][1],e[n][2]]):r.push([d(e[n])]);t=r}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(B.API),B.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this},
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(t){r=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(t){n=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var r;if("2d"!==(t=t||"2d"))return null;for(r in e)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=e[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(B.API),function(t){var e={left:0,top:0,bottom:0,right:0},r=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(t){a=t}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var r=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),o=e.scaleFactor||this.internal.scaleFactor,a=0,s=0,c=0,u=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var f=e.maxWidth;f>0?"string"==typeof t?t=this.splitTextToSize(t,f):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(u.splitTextToSize(e,f))}),[])):t=Array.isArray(t)?t:[t];for(var l=0;l<t.length;l++)a<(c=this.getStringUnitWidth(t[l],{font:n})*r)&&(a=c);return 0!==a&&(s=t.length),{w:a/=o,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/o,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,c=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===t.lineNumber?(t.x=(n.x||0)+(n.width||0),t.y=n.y||0):n.y+n.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,u&&c&&(this.printHeaderRow(t.lineNumber,!0),t.y+=c[0].height)):t.y=n.y+n.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===r?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-o,t.y+o,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+o,{align:"center",baseline:"top",maxWidth:t.width-o-o}):this.text(t.text,t.x+o,t.y+o,{align:"left",baseline:"top",maxWidth:t.width-o-o})),this.internal.__cell__.lastCell=t,this};t.table=function(t,r,u,f,l){if(i.call(this),!u)throw new Error("No data for PDF table.");var h,d,p,g,v=[],b=[],m=[],y={},w={},x=[],A=[],L=(l=l||{}).autoSize||!1,N=!1!==l.printHeaders,S=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,_=l.margins||Object.assign({width:this.getPageWidth()},e),P="number"==typeof l.padding?l.padding:3,k=l.headerBackgroundColor||"#c8c8c8",j=l.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=N,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=j,this.setFontSize(S),null==f)b=v=Object.keys(u[0]),m=v.map((function(){return"left"}));else if(Array.isArray(f)&&"object"===n()(f[0]))for(v=f.map((function(t){return t.name})),b=f.map((function(t){return t.prompt||t.name||""})),m=f.map((function(t){return t.align||"left"})),h=0;h<f.length;h+=1)w[f[h].name]=f[h].width*(19.049976/25.4);else Array.isArray(f)&&"string"==typeof f[0]&&(b=v=f,m=v.map((function(){return"left"})));if(L||Array.isArray(f)&&"string"==typeof f[0])for(h=0;h<v.length;h+=1){for(y[g=v[h]]=u.map((function(t){return t[g]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(b[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[g],this.setFont(void 0,"normal"),p=0;p<d.length;p+=1)x.push(this.getTextDimensions(d[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[g]=Math.max.apply(null,x)+P+P,x=[]}if(N){var C={};for(h=0;h<v.length;h+=1)C[v[h]]={},C[v[h]].text=b[h],C[v[h]].align=m[h];var I=c.call(this,C,w);A=v.map((function(e){return new a(t,r,w[e],I,C[e].text,void 0,C[e].align)})),this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}var O=f.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(h=0;h<u.length;h+=1){"rowStart"in l&&l.rowStart instanceof Function&&l.rowStart({row:h,data:u[h]},this);var F=c.call(this,u[h],w);for(p=0;p<v.length;p+=1){var E=u[h][v[p]];"cellStart"in l&&l.cellStart instanceof Function&&l.cellStart({row:h,col:p,data:E},this),s.call(this,new a(t,r,w[v[p]],F,E,h+2,O[v[p]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=r,this};var c=function(t,e){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(n){var i=t[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[n]-r-r)}),this).map((function(t){return this.getLineHeightFactor()*t.length*n/i+r+r}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var c=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1){n=this.internal.__cell__.tableHeaderRow[u].clone(),e&&(n.y=this.internal.__cell__.margins.top||0,c.push(n)),n.lineNumber=t;var f=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,n),this.setTextColor(f)}c.length>0&&this.setTableHeaderRow(c),this.setFont(void 0,"normal"),r=!1}}(B.API);var kt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},jt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ct=Pt(jt),It=[100,200,300,400,500,600,700,800,900],Ot=Pt(It);function Ft(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),r=function(t){return kt[t=t||"normal"]?t:"normal"}(t.style),n=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(t){return"number"==typeof Ct[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:r,weight:n,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,r,n].join(" ")}}}function Et(t,e,r,n){var i;for(i=r;i>=0&&i<e.length;i+=n)if(t[e[i]])return t[e[i]];for(i=r;i>=0&&i<e.length;i-=n)if(t[e[i]])return t[e[i]]}var Tt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Rt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Bt(t,e,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Tt,r.genericFontFamilies||{}),o=null,a=null,s=0;s<e.length;++s)if(i[(o=Ft(e[s])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){a=t[o.family];break}if(!(a=a||t[n]))throw new Error("Could not find a font-family for the rule '"+Rt(o)+"' and default family '"+n+"'.");if(a=function(t,e){if(e[t])return e[t];var r=Ct[t],n=r<=Ct.normal?-1:1,i=Et(e,jt,r,n);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(o.stretch,a),a=function(t,e){if(e[t])return e[t];for(var r=kt[t],n=0;n<r.length;++n)if(e[r[n]])return e[r[n]];throw new Error("Could not find a matching font-style for "+t)}(o.style,a),!(a=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var r=Ot[t],n=Et(e,It,r,t<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+t);return n}(o.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Rt(o)+"'.");return a}function Dt(t){return t.trimLeft()}function qt(t,e){for(var r=0;r<t.length;){if(t.charAt(r)===e)return[t.substring(0,r),t.substring(r+1)];r+=1}return null}function Ut(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var zt,Ht,Wt,Vt=["times"];!function(t){var e,r,i,o,a,c,u,f,l,h=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new f,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new c,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new c,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,r=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,c=this.internal.Point,u=this.internal.Rectangle,f=this.internal.Matrix,l=new h}]);var d=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(t){isNaN(t)||(o=t)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),l.margin=e}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var c=[];Object.defineProperty(this,"pageBreaks",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(t){t instanceof h&&(l=t)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(t){l.path=t}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=g(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=g(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var f=null;function d(t,e){if(null===f){var r=function(t){var e=[];return Object.keys(t).forEach((function(r){t[r].forEach((function(t){var n=null;switch(t){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:t},e.push(n))}))})),e}(t.getFontList());f=function(t){for(var e={},r=0;r<t.length;++r){var n=Ft(t[r]),i=n.family,o=n.stretch,a=n.style,s=n.weight;e[i]=e[i]||{},e[i][o]=e[i][o]||{},e[i][o][a]=e[i][o][a]||{},e[i][o][a][s]=n}return e}(r.concat(e))}return f}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(t){f=null,p=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var r=e[1],n=(e[2],e[3]),i=e[4],o=(e[5],e[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===a?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,r,n=[],i=t.trim();if(""===i)return Vt;if(i in Mt)return[Mt[i]];for(;""!==i;){switch(r=null,e=(i=Dt(i)).charAt(0)){case'"':case"'":r=qt(i.substring(1),e);break;default:r=Ut(i)}if(null===r)return Vt;if(n.push(r[0]),""!==(i=Dt(r[1]))&&","!==i.charAt(0))return Vt;i=i.replace(/^,/,"")}return n}(o);if(this.fontFaces){var c=Bt(d(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(c.ref.name,c.ref.style)}else{var u="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var f="",l={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"},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],u,{noFallback:!0,disableWarning:!0})){f=s[h];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(s[h],"bold",{noFallback:!0,disableWarning:!0}))f=s[h],u="bold";else if(void 0!==this.pdf.internal.getFont(s[h],"normal",{noFallback:!0,disableWarning:!0})){f=s[h],u="normal";break}}if(""===f)for(var p=0;p<s.length;p++)if(l[s[p]]){f=l[s[p]];break}f=""===f?"Times":f,this.pdf.setFont(f,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,q.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,q.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};d.prototype.setLineDash=function(t){this.lineDash=t},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){L.call(this,"fill",!1)},d.prototype.stroke=function(){L.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw s.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(t,e)},d.prototype.closePath=function(){var t=new c(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===n()(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new c(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new c(t.x,t.y)},d.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw s.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new c(r.x,r.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),L.call(this,null,!0)},d.prototype.quadraticCurveTo=function(t,e,r,n){if(isNaN(r)||isNaN(n)||isNaN(t)||isNaN(e))throw s.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new c(r,n)),o=this.ctx.transform.applyToPoint(new c(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new c(i.x,i.y)},d.prototype.bezierCurveTo=function(t,e,r,n,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw s.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new c(i,o)),u=this.ctx.transform.applyToPoint(new c(t,e)),f=this.ctx.transform.applyToPoint(new c(r,n));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:f.x,y2:f.y,x:a.x,y:a.y}),this.ctx.lastPoint=new c(a.x,a.y)},d.prototype.arc=function(t,e,r,n,i,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i))throw s.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new c(t,e));t=a.x,e=a.y;var u=this.ctx.transform.applyToPoint(new c(0,r)),f=this.ctx.transform.applyToPoint(new c(0,0));r=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2))}Math.abs(i-n)>=2*Math.PI&&(n=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:r,startAngle:n,endAngle:i,counterclockwise:o})},d.prototype.arcTo=function(t,e,r,n,i){throw new Error("arcTo not implemented.")},d.prototype.rect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw s.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+r,e),this.lineTo(t+r,e+n),this.lineTo(t,e+n),this.lineTo(t,e),this.lineTo(t+r,e),this.lineTo(t,e)},d.prototype.fillRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw s.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!v.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,r,n),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw s.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(t,e,r,n),this.stroke())},d.prototype.clearRect=function(t,e,r,n){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n))throw s.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,r,n))},d.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},d.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(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)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var g=function(t){var e,r,n,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,r=0,n=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),r=parseInt(o[2]),n=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(o[1]),r=parseInt(o[2]),n=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new p(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,r=t.substring(2,3),r+=r,n=t.substring(3,4),n+=n):(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7)),e=parseInt(e,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:e,g:r,b:n,a:i,style:t}},v=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},b=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw s.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!v.call(this)){var i=R(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;I.call(this,{text:t,x:e,y:r,scale:o,angle:i,align:this.textAlign,maxWidth:n})}},d.prototype.strokeText=function(t,e,r,n){if(isNaN(e)||isNaN(r)||"string"!=typeof t)throw s.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){n=isNaN(n)?void 0:n;var i=R(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;I.call(this,{text:t,x:e,y:r,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:n})}},d.prototype.measureText=function(t){if("string"!=typeof t)throw s.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,r=this.pdf.internal.scaleFactor,n=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*n/e.internal.scaleFactor,o=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new o({width:i*=Math.round(96*r/72*1e4)/1e4})},d.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw s.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new f(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.rotate=function(t){if(isNaN(t))throw s.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new f(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},d.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw s.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new f(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.transform=function(t,e,r,n,i,o){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o))throw s.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new f(t,e,r,n,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},d.prototype.setTransform=function(t,e,r,n,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new f(t,e,r,n,i,o)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(t,e,r,n,i,o,a,s,c){var l=this.pdf.getImageProperties(t),h=1,d=1,p=1,g=1;void 0!==n&&void 0!==s&&(p=s/n,g=c/i,h=l.width/n*s/n,d=l.height/i*c/i),void 0===o&&(o=e,a=r,e=0,r=0),void 0!==n&&void 0===s&&(s=n,c=i),void 0===n&&void 0===s&&(s=l.width,c=l.height);for(var v,b=this.ctx.transform.decompose(),w=R(b.rotate.shx),L=new f,S=(L=(L=(L=L.multiply(b.translate)).multiply(b.skew)).multiply(b.scale)).applyToRectangle(new u(o-e*p,a-r*g,n*h,i*d)),_=y.call(this,S),P=[],k=0;k<_.length;k+=1)-1===P.indexOf(_[k])&&P.push(_[k]);if(A(P),this.autoPaging)for(var j=P[0],C=P[P.length-1],I=j;I<C+1;I++){this.pdf.setPage(I);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],F=1===I?this.posY+this.margin[0]:this.margin[0],E=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],T=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===I?0:E+(I-2)*T;if(0!==this.ctx.clip_path.length){var B=this.path;v=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(v,this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset),N.call(this,"fill",!0),this.path=B}var D=JSON.parse(JSON.stringify(S));D=x([D],this.posX+this.margin[3],-M+F+this.ctx.prevPageLastElemOffset)[0];var q=(I>j||I<C)&&m.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,T,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",D.x,D.y,D.w,D.h,null,null,w),q&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",S.x,S.y,S.w,S.h,null,null,w)};var y=function(t,e,r){var n=[];e=e||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":n.push(Math.floor((t.y+i)/r)+1);break;case"arc":n.push(Math.floor((t.y+i-t.radius)/r)+1),n.push(Math.floor((t.y+i+t.radius)/r)+1);break;case"qct":var o=B(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"bct":var a=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);n.push(Math.floor((a.y+i)/r)+1),n.push(Math.floor((a.y+a.h+i)/r)+1);break;case"rect":n.push(Math.floor((t.y+i)/r)+1),n.push(Math.floor((t.y+t.h+i)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)w.call(this);return n},w=function(){var t=this.fillStyle,e=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=o},x=function(t,e,r){for(var n=0;n<t.length;n++)switch(t[n].type){case"bct":t[n].x2+=e,t[n].y2+=r;case"qct":t[n].x1+=e,t[n].y1+=r;case"mt":case"lt":case"arc":default:t[n].x+=e,t[n].y+=r}return t},A=function(t){return t.sort((function(t,e){return t-e}))},L=function(t,e){for(var r,n,i=this.fillStyle,o=this.strokeStyle,a=this.lineCap,s=this.lineWidth,c=Math.abs(s*this.ctx.transform.scaleX),u=this.lineJoin,f=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),h=[],d=0;d<l.length;d++)if(void 0!==l[d].x)for(var p=y.call(this,l[d]),g=0;g<p.length;g+=1)-1===h.indexOf(p[g])&&h.push(p[g]);for(var v=0;v<h.length;v++)for(;this.pdf.internal.getNumberOfPages()<h[v];)w.call(this);if(A(h),this.autoPaging)for(var b=h[0],L=h[h.length-1],S=b;S<L+1;S++){this.pdf.setPage(S),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=c,this.lineJoin=u;var _=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],P=1===S?this.posY+this.margin[0]:this.margin[0],k=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],j=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],C=1===S?0:k+(S-2)*j;if(0!==this.ctx.clip_path.length){var I=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(r,this.posX+this.margin[3],-C+P+this.ctx.prevPageLastElemOffset),N.call(this,t,!0),this.path=I}if(n=JSON.parse(JSON.stringify(f)),this.path=x(n,this.posX+this.margin[3],-C+P+this.ctx.prevPageLastElemOffset),!1===e||0===S){var O=(S>b||S<L)&&m.call(this);O&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_,j,null).clip().discardPath()),N.call(this,t,e),O&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=c,N.call(this,t,e),this.lineWidth=s;this.path=f},N=function(t,e){if(("stroke"!==t||e||!b.call(this))&&("stroke"===t||e||!v.call(this))){for(var r,n,i=[],o=this.path,a=0;a<o.length;a++){var s=o[a];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var c=i.length;if(o[a-1]&&!isNaN(o[a-1].x)&&(r=[s.x-o[a-1].x,s.y-o[a-1].y],c>0))for(;c>=0;c--)if(!0!==i[c-1].close&&!0!==i[c-1].begin){i[c-1].deltas.push(r),i[c-1].abs.push(s);break}break;case"bct":r=[s.x1-o[a-1].x,s.y1-o[a-1].y,s.x2-o[a-1].x,s.y2-o[a-1].y,s.x-o[a-1].x,s.y-o[a-1].y],i[i.length-1].deltas.push(r);break;case"qct":var u=o[a-1].x+2/3*(s.x1-o[a-1].x),f=o[a-1].y+2/3*(s.y1-o[a-1].y),l=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),d=s.x,p=s.y;r=[u-o[a-1].x,f-o[a-1].y,l-o[a-1].x,h-o[a-1].y,d-o[a-1].x,p-o[a-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=e?null:"stroke"===t?"stroke":"fill";for(var g=!1,m=0;m<i.length;m++)if(i[m].arc)for(var y=i[m].abs,w=0;w<y.length;w++){var x=y[w];"arc"===x.type?P.call(this,x.x,x.y,x.radius,x.startAngle,x.endAngle,x.counterclockwise,void 0,e,!g):O.call(this,x.x,x.y),g=!0}else if(!0===i[m].close)this.pdf.internal.out("h"),g=!1;else if(!0!==i[m].begin){var A=i[m].start.x,L=i[m].start.y;F.call(this,i[m].deltas,A,L),g=!0}n&&k.call(this,n),e&&j.call(this)}},S=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-r;case"top":return t+e-r;case"hanging":return t+e-2*r;case"middle":return t+e/2-r;case"ideographic":return t;case"alphabetic":default:return t}},_=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var P=function(t,e,r,n,i,o,a,s,c){for(var u=T.call(this,r,n,i,o),f=0;f<u.length;f++){var l=u[f];0===f&&(c?C.call(this,l.x1+t,l.y1+e):O.call(this,l.x1+t,l.y1+e)),E.call(this,t,e,l.x2,l.y2,l.x3,l.y3,l.x4,l.y4)}s?j.call(this):k.call(this,a)},k=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},j=function(){this.pdf.clip(),this.pdf.discardPath()},C=function(t,e){this.pdf.internal.out(r(t)+" "+i(e)+" m")},I=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var r=this.pdf.getTextDimensions(t.text),n=S.call(this,t.y),i=_.call(this,n)-r.h,o=this.ctx.transform.applyToPoint(new c(t.x,n)),a=this.ctx.transform.decompose(),s=new f;s=(s=(s=s.multiply(a.translate)).multiply(a.skew)).multiply(a.scale);for(var l,h,d,p=this.ctx.transform.applyToRectangle(new u(t.x,n,r.w,r.h)),g=s.applyToRectangle(new u(t.x,i,r.w,r.h)),v=y.call(this,g),b=[],w=0;w<v.length;w+=1)-1===b.indexOf(v[w])&&b.push(v[w]);if(A(b),this.autoPaging)for(var L=b[0],P=b[b.length-1],k=L;k<P+1;k++){this.pdf.setPage(k);var j=1===k?this.posY+this.margin[0]:this.margin[0],C=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],I=this.pdf.internal.pageSize.height-this.margin[2],O=I-this.margin[0],F=this.pdf.internal.pageSize.width-this.margin[1],E=F-this.margin[3],T=1===k?0:C+(k-2)*O;if(0!==this.ctx.clip_path.length){var M=this.path;l=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(l,this.posX+this.margin[3],-1*T+j),N.call(this,"fill",!0),this.path=M}var R=x([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-T+j+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var B="text"!==this.autoPaging;if(B||R.y+R.h<=I){if(B||R.y>=j&&R.x<=F){var D=B?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||F-R.x)[0],q=x([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-T+j+this.ctx.prevPageLastElemOffset)[0],U=B&&(k>L||k<P)&&m.call(this);U&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,O,null).clip().discardPath()),this.pdf.text(D,q.x,q.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),U&&this.pdf.restoreGraphicsState()}}else R.y<I&&(this.ctx.prevPageLastElemOffset+=I-R.y);t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)}else t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,o.x+this.posX,o.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)},O=function(t,e,n,o){n=n||0,o=o||0,this.pdf.internal.out(r(t+n)+" "+i(e+o)+" l")},F=function(t,e,r){return this.pdf.lines(t,e,r,null,null)},E=function(t,r,n,i,s,c,u,f){this.pdf.internal.out([e(o(n+t)),e(a(i+r)),e(o(s+t)),e(a(c+r)),e(o(u+t)),e(a(f+r)),"c"].join(" "))},T=function(t,e,r,n){for(var i=2*Math.PI,o=Math.PI/2;e>r;)e-=i;var a=Math.abs(r-e);a<i&&n&&(a=i-a);for(var s=[],c=n?-1:1,u=e;a>1e-5;){var f=u+c*Math.min(a,o);s.push(M.call(this,t,u,f)),a-=Math.abs(f-u),u=f}return s},M=function(t,e,r){var n=(r-e)/2,i=t*Math.cos(n),o=t*Math.sin(n),a=i,s=-o,c=a*a+s*s,u=c+a*i+s*o,f=4/3*(Math.sqrt(2*c*u)-u)/(a*o-s*i),l=a-f*s,h=s+f*a,d=l,p=-h,g=n+e,v=Math.cos(g),b=Math.sin(g);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:l*v-h*b,y2:l*b+h*v,x3:d*v-p*b,y3:d*b+p*v,x4:t*Math.cos(r),y4:t*Math.sin(r)}},R=function(t){return 180*t/Math.PI},B=function(t,e,r,n,i,o){var a=t+.5*(r-t),s=e+.5*(n-e),c=i+.5*(r-i),f=o+.5*(n-o),l=Math.min(t,i,a,c),h=Math.max(t,i,a,c),d=Math.min(e,o,s,f),p=Math.max(e,o,s,f);return new u(l,d,h-l,p-d)},D=function(t,e,r,n,i,o,a,s){var c,f,l,h,d,p,g,v,b,m,y,w,x,A,L=r-t,N=n-e,S=i-r,_=o-n,P=a-i,k=s-o;for(f=0;f<41;f++)b=(g=(l=t+(c=f/40)*L)+c*((d=r+c*S)-l))+c*(d+c*(i+c*P-d)-g),m=(v=(h=e+c*N)+c*((p=n+c*_)-h))+c*(p+c*(o+c*k-p)-v),0==f?(y=b,w=m,x=b,A=m):(y=Math.min(y,b),w=Math.min(w,m),x=Math.max(x,b),A=Math.max(A,m));return new u(Math.round(y),Math.round(w),Math.round(x-y),Math.round(A-w))},q=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,r=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(B.API),
/**
 * @license
 * jsPDF filters PlugIn
 * Copyright (c) 2014 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e=function(t){var e,r,n,i,o,a,s,c,u,f;for(/[^\x00-\xFF]/.test(t),r=[],n=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>n;n+=4)0!==(o=(t.charCodeAt(n)<<24)+(t.charCodeAt(n+1)<<16)+(t.charCodeAt(n+2)<<8)+t.charCodeAt(n+3))?(a=(o=((o=((o=((o=(o-(f=o%85))/85)-(u=o%85))/85)-(c=o%85))/85)-(s=o%85))/85)%85,r.push(a+33,s+33,c+33,u+33,f+33)):r.push(122);return function(t,e){for(var r=e;r>0;r--)t.pop()}(r,e.length),String.fromCharCode.apply(String,r)+"~>"},r=function(t){var e,r,n,i,o,a=String,s="length",c=255,u="charCodeAt",f="slice",l="replace";for(t[f](-2),t=t[f](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],i=0,o=(t+=e="uuuuu"[f](t[s]%5||5))[s];o>i;i+=5)r=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),n.push(c&r>>24,c&r>>16,c&r>>8,c&r);return function(t,e){for(var r=e;r>0;r--)t.pop()}(n,e[s]),a.fromCharCode.apply(a,n)},n=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var r="",n=0;n<t.length;n+=2)r+=String.fromCharCode("0x"+(t[n]+t[n+1]));return r},o=function(t){for(var e=new Uint8Array(t.length),r=t.length;r--;)e[r]=t.charCodeAt(r);return(e=Object(i["b"])(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,i){var a=0,s=t||"",c=[];for("string"==typeof(i=i||[])&&(i=[i]),a=0;a<i.length;a+=1)switch(i[a]){case"ASCII85Decode":case"/ASCII85Decode":s=r(s),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=n(s),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=o(s),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[a]+'" is not implemented')}return{data:s,reverseChain:c.reverse().join(" ")}}}(B.API),
/**
 * @license
 * jsPDF fileloading PlugIn
 * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){t.loadFile=function(t,e,r){return function(t,e,r){e=!1!==e,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(t,e,r){var n=new XMLHttpRequest,i=0,o=function(t){var e=t.length,r=[],n=String.fromCharCode;for(i=0;i<e;i+=1)r.push(n(255&t.charCodeAt(i)));return r.join("")};if(n.open("GET",t,!e),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(n.onload=function(){200===n.status?r(o(this.responseText)):r(void 0)}),n.send(null),e&&200===n.status)return o(n.responseText)}(t,e,r)}catch(t){}return n}(t,e,r)},t.loadImageFile=t.loadFile}(B.API),function(t){function e(){return(o.html2canvas?Promise.resolve(o.html2canvas):r.e("chunk-2d216257").then(r.t.bind(null,"c0e9",7))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function i(){return(o.DOMPurify?Promise.resolve(o.DOMPurify):r.e("chunk-2d216214").then(r.t.bind(null,"c0c4",7))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var a=function(t){var e=n()(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},s=function(t,e){var r=document.createElement(t);for(var n in e.className&&(r.className=e.className),e.innerHTML&&e.dompurify&&(r.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)r.style[n]=e.style[n];return r},c=function(t){var e=Object.assign(n.a.convert(Promise.resolve()),JSON.parse(JSON.stringify(n.a.template))),r=n.a.convert(Promise.resolve(),e);return(r=r.setProgress(1,n.a,1,[n.a])).set(t)};(c.prototype=Object.create(Promise.prototype)).constructor=c,c.convert=function(t,e){return t.__proto__=e||c.prototype,t},c.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"}},c.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(a(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).then((function(e){return this.set({src:s("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},c.prototype.to=function(t){switch(t){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.")}},c.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 t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||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},e=function t(e,r){for(var n=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(t(i,r));return 1===e.nodeType&&("CANVAS"===e.nodeName?(n.width=e.width,n.height=e.height,n.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(n.value=e.value),n.addEventListener("load",(function(){n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft}),!0)),n}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(s("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"}))},c.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:n,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 i.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=r,r)for(var o=0;o<r.length;++o){var a=r[o],s=a.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,a.ref.name,a.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},c.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},c.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},c.prototype.output=function(t,e,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},c.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},c.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){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 "'+t+'" is not supported.'}}))},c.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},c.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},c.prototype.set=function(t){if("object"!==a(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in c.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},c.prototype.get=function(t,e){return this.then((function(){var r=t in c.template.prop?this.prop[t]:this.opt[t];return e?e(r):r}))},c.prototype.setMargin=function(t){return this.then((function(){switch(a(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},c.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||B.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},c.prototype.setProgress=function(t,e,r,n){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},c.prototype.updateProgress=function(t,e,r,n){return this.setProgress(t?this.progress.val+t:null,e||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},c.prototype.then=function(t,e){var r=this;return this.thenCore(t,e,(function(t,e){return r.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return r.updateProgress(null,t),e})).then(t,e).then((function(t){return r.updateProgress(1),t}))}))},c.prototype.thenCore=function(t,e,r){r=r||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:c.convert(Object.assign({},this),Promise.prototype),i=r.call(n,t,e);return c.convert(i,this.__proto__)},c.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},c.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},c.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return c.convert(e,this)},c.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},c.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},c.prototype.using=c.prototype.set,c.prototype.saveAs=c.prototype.save,c.prototype.export=c.prototype.output,c.prototype.run=c.prototype.then,B.getPageSize=function(t,e,r){if("object"===n()(t)){var i=t;t=i.orientation,e=i.unit||e,r=i.format||r}e=e||"mm",r=r||"a4",t=(""+(t||"P")).toLowerCase();var o,a=(""+r).toLowerCase(),s={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(e){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+e}var c,u=0,f=0;if(s.hasOwnProperty(a))u=s[a][1]/o,f=s[a][0]/o;else try{u=r[1],f=r[0]}catch(l){throw new Error("Invalid format: "+r)}if("p"===t||"portrait"===t)t="p",f>u&&(c=f,f=u,u=c);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>f&&(c=f,f=u,u=c)}return{width:f,height:u,unit:e,k:o,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Ft):null;var r=new c(e);return e.worker?r:r.from(t).doCallback()}}(B.API),B.API.addJS=function(t){return Wt=t,this.internal.events.subscribe("postPutResources",(function(){zt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(zt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ht=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Wt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==zt&&void 0!==Ht&&this.internal.out("/Names <</JavaScript "+zt+" 0 R>>")})),this
/**
 * @license
 * Copyright (c) 2014 Steven Spungin (TwelveTone LLC)  steven@twelvetone.tv
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */},function(t){var e;t.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var o=n[i],a=r.exec(o);if(null!=a){var s=a[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var f=t.internal.newObject();u.push(f);var l=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,r){var n={title:e,options:r,children:[]};return null==t&&(t=this.root),t.children.push(n),n},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var r=0;r<e.children.length;r++)this.genIds_r(e.children[r])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<e.children.length;n++){var i=e.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),n>0&&this.line("/Prev "+this.makeRef(e.children[n-1])),n<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[n+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var r=0;r<e.children.length;r++)t.count++,this.count_r(t,e.children[r]);return t.count}}])}(B.API),
/**
 * @license
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,r,n,i,o,a){var s,c=this.decode.DCT_DECODE,u=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var r,n=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,o={width:0,height:0,numcomponents:1},a=4;a<i;a+=2){if(a+=n,-1!==e.indexOf(t.charCodeAt(a+1))){r=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),o={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:r,numcomponents:t.charCodeAt(a+9)};break}n=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return o}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}u={data:t,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:c,index:r,alias:n}}return u}}(B.API);var Gt,Yt,Xt,Jt,Kt,$t=function(){var t,e,r;function n(t){var e,r,n,i,o,a,s,c,u,f,l,h,d,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),u=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,h=0;0<=e?h<e:h>e;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((f=n-this.transparency.indexed.length)>0)for(d=0;0<=f?d<f:d>f;0<=f?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(l=this.read(e)).indexOf(0),c=String.fromCharCode.apply(String,l.slice(0,s)),this.text[c]=String.fromCharCode.apply(String,l.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(this.data[this.pos++]);return r},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*e),n=0,o=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(i,a,s,c){var u,f,l,h,d,p,g,v,b,m,y,w,x,A,L,N,S,_,P,k,j,C=Math.ceil((o.width-i)/s),I=Math.ceil((o.height-a)/c),O=o.width==C&&o.height==I;for(A=e*C,w=O?r:new Uint8Array(A*I),p=t.length,x=0,f=0;x<I&&n<p;){switch(t[n++]){case 0:for(h=S=0;S<A;h=S+=1)w[f++]=t[n++];break;case 1:for(h=_=0;_<A;h=_+=1)u=t[n++],d=h<e?0:w[f-e],w[f++]=(u+d)%256;break;case 2:for(h=P=0;P<A;h=P+=1)u=t[n++],l=(h-h%e)/e,L=x&&w[(x-1)*A+l*e+h%e],w[f++]=(L+u)%256;break;case 3:for(h=k=0;k<A;h=k+=1)u=t[n++],l=(h-h%e)/e,d=h<e?0:w[f-e],L=x&&w[(x-1)*A+l*e+h%e],w[f++]=(u+Math.floor((d+L)/2))%256;break;case 4:for(h=j=0;j<A;h=j+=1)u=t[n++],l=(h-h%e)/e,d=h<e?0:w[f-e],0===x?L=N=0:(L=w[(x-1)*A+l*e+h%e],N=l&&w[(x-1)*A+(l-1)*e+h%e]),g=d+L-N,v=Math.abs(g-d),m=Math.abs(g-L),y=Math.abs(g-N),b=v<=m&&v<=y?d:m<=y?L:N,w[f++]=(u+b)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!O){var F=((a+x*c)*o.width+i)*e,E=x*A;for(h=0;h<C;h+=1){for(var T=0;T<e;T+=1)r[F++]=w[E++];F+=(s-1)*e}}x++}}return t=Object(i["a"])(t),1==o.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),r},n.prototype.decodePalette=function(){var t,e,r,n,i,o,a,s,c;for(r=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+r.length),n=0,t=0,e=a=0,s=r.length;a<s;e=a+=3)i[n++]=r[e],i[n++]=r[e+1],i[n++]=r[e+2],i[n++]=null!=(c=o[t++])?c:255;return i},n.prototype.copyToImageData=function(t,e){var r,n,i,o,a,s,c,u,f,l,h;if(n=this.colors,f=null,r=this.hasAlphaChannel,this.palette.length&&(f=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),n=4,r=!0),u=(i=t.data||t).length,a=f||e,o=s=0,1===n)for(;o<u;)c=f?4*e[o/4]:s,l=a[c++],i[o++]=l,i[o++]=l,i[o++]=l,i[o++]=r?a[c++]:255,s=c;else for(;o<u;)c=f?4*e[o/4]:s,i[o++]=a[c++],i[o++]=a[c++],i[o++]=a[c++],i[o++]=r?a[c++]:255,s=c},n.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var a=function(){if("[object Window]"===Object.prototype.toString.call(o)){try{e=o.document.createElement("canvas"),r=e.getContext("2d")}catch(t){return!1}return!0}return!1};return a(),t=function(t){var n;if(!0===a())return r.width=t.width,r.height=t.height,r.clearRect(0,0,t.width,t.height),r.putImageData(t,0,0),(n=new Image).src=e.toDataURL(),n;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(e){var r,n,i,o,a,s,c,u;if(this.animation){for(u=[],n=a=0,s=(c=this.animation.frames).length;a<s;n=++a)r=c[n],i=e.createImageData(r.width,r.height),o=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(i,o),r.imageData=i,u.push(r.image=t(i));return u}},n.prototype.renderFrame=function(t,e){var r,n,i;return r=(n=this.animation.frames)[e],i=n[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===r.blendOp&&t.clearRect(r.xOffset,r.yOffset,r.width,r.height),t.drawImage(r.image,r.xOffset,r.yOffset)},n.prototype.animate=function(t){var e,r,n,i,o,a,s=this;return r=0,a=this.animation,i=a.numFrames,n=a.frames,o=a.numPlays,(e=function(){var a,c;if(a=r++%i,c=n[a],s.renderFrame(t,a),i>1&&r/i<o)return s.animation._timeout=setTimeout(e,c.delay)})()},n.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},n.prototype.render=function(t){var e,r;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(r=e.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),e.putImageData(r,0,0))},n}();
/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
/**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function Zt(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var r=t[e++]|t[e++]<<8,n=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null,c=null;o&&(s=e,c=a,e+=3*a);var u=!0,f=[],l=0,h=null,d=0,p=null;for(this.width=r,this.height=n;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var g=t[e++];l=t[e++]|t[e++]<<8,h=t[e++],0==(1&g)&&(h=null),d=g>>2&7,e++;break;case 254:for(;;){if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var v=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],x=w>>6&1,A=1<<1+(7&w),L=s,N=c,S=!1;w>>7&&(S=!0,L=e,N=A,e+=3*A);var _=e;for(e++;;){var P;if(!((P=t[e++])>=0))throw Error("Invalid block size");if(0===P)break;e+=P}f.push({x:v,y:b,width:m,height:y,has_local_palette:S,palette_offset:L,palette_size:N,data_offset:_,data_length:e-_,transparent_index:h,interlaced:!!x,delay:l,disposal:d});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return f.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=f.length)throw new Error("Frame index out of range.");return f[t]},this.decodeAndBlitFrameBGRA=function(e,n){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Qt(t,i.data_offset,a,o);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,f=r-u,l=u,h=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=h,g=4*f;!0===i.interlaced&&(g+=4*r*7);for(var v=8,b=0,m=a.length;b<m;++b){var y=a[b];if(0===l&&(l=u,(p+=g)>=d&&(g=4*f+4*r*(v-1),p=h+(u+f)*(v<<1),v>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],A=t[s+3*y+2];n[p++]=A,n[p++]=x,n[p++]=w,n[p++]=255}--l}},this.decodeAndBlitFrameRGBA=function(e,n){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Qt(t,i.data_offset,a,o);var s=i.palette_offset,c=i.transparent_index;null===c&&(c=256);var u=i.width,f=r-u,l=u,h=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),p=h,g=4*f;!0===i.interlaced&&(g+=4*r*7);for(var v=8,b=0,m=a.length;b<m;++b){var y=a[b];if(0===l&&(l=u,(p+=g)>=d&&(g=4*f+4*r*(v-1),p=h+(u+f)*(v<<1),v>>=1)),y===c)p+=4;else{var w=t[s+3*y],x=t[s+3*y+1],A=t[s+3*y+2];n[p++]=w,n[p++]=x,n[p++]=A,n[p++]=255}--l}}}function Qt(t,e,r,n){for(var i=t[e++],o=1<<i,a=o+1,c=a+1,u=i+1,f=(1<<u)-1,l=0,h=0,d=0,p=t[e++],g=new Int32Array(4096),v=null;;){for(;l<16&&0!==p;)h|=t[e++]<<l,l+=8,1===p?p=t[e++]:--p;if(l<u)break;var b=h&f;if(h>>=u,l-=u,b!==o){if(b===a)break;for(var m=b<c?b:v,y=0,w=m;w>o;)w=g[w]>>8,++y;var x=w;if(d+y+(m!==b?1:0)>n)return void s.log("Warning, gif stream longer than expected.");r[d++]=x;var A=d+=y;for(m!==b&&(r[d++]=x),w=m;y--;)w=g[w],r[--A]=255&w,w>>=8;null!==v&&c<4096&&(g[c++]=v<<8|x,c>=f+1&&u<12&&(++u,f=f<<1|1)),v=b}else c=a+1,f=(1<<(u=i+1))-1,v=null}return d!==n&&s.log("Warning, gif stream shorter than expected."),r}
/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

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

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

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function te(t){var e,r,n,i,o,a=Math.floor,s=new Array(64),c=new Array(64),u=new Array(64),f=new Array(64),l=new Array(65535),h=new Array(65535),d=new Array(64),p=new Array(64),g=[],v=0,b=7,m=new Array(64),y=new Array(64),w=new Array(64),x=new Array(256),A=new Array(2048),L=[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],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],P=[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],k=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],I=[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 O(t,e){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[n]]=[],i[e[n]][0]=r,i[e[n]][1]=o,n++,r++;r*=2}return i}function F(t){for(var e=t[0],r=t[1]-1;r>=0;)e&1<<r&&(v|=1<<b),r--,--b<0&&(255==v?(E(255),E(0)):E(v),b=7,v=0)}function E(t){g.push(t)}function T(t){E(t>>8&255),E(255&t)}function M(t,e,r,n,i){for(var o,a=i[0],s=i[240],c=function(t,e){var r,n,i,o,a,s,c,u,f,l,h=0;for(f=0;f<8;++f){r=t[h],n=t[h+1],i=t[h+2],o=t[h+3],a=t[h+4],s=t[h+5],c=t[h+6];var p=r+(u=t[h+7]),g=r-u,v=n+c,b=n-c,m=i+s,y=i-s,w=o+a,x=o-a,A=p+w,L=p-w,N=v+m,S=v-m;t[h]=A+N,t[h+4]=A-N;var _=.707106781*(S+L);t[h+2]=L+_,t[h+6]=L-_;var P=.382683433*((A=x+y)-(S=b+g)),k=.5411961*A+P,j=1.306562965*S+P,C=.707106781*(N=y+b),I=g+C,O=g-C;t[h+5]=O+k,t[h+3]=O-k,t[h+1]=I+j,t[h+7]=I-j,h+=8}for(h=0,f=0;f<8;++f){r=t[h],n=t[h+8],i=t[h+16],o=t[h+24],a=t[h+32],s=t[h+40],c=t[h+48];var F=r+(u=t[h+56]),E=r-u,T=n+c,M=n-c,R=i+s,B=i-s,D=o+a,q=o-a,U=F+D,z=F-D,H=T+R,W=T-R;t[h]=U+H,t[h+32]=U-H;var V=.707106781*(W+z);t[h+16]=z+V,t[h+48]=z-V;var G=.382683433*((U=q+B)-(W=M+E)),Y=.5411961*U+G,X=1.306562965*W+G,J=.707106781*(H=B+M),K=E+J,$=E-J;t[h+40]=$+Y,t[h+24]=$-Y,t[h+8]=K+X,t[h+56]=K-X,h++}for(f=0;f<64;++f)l=t[f]*e[f],d[f]=l>0?l+.5|0:l-.5|0;return d}(t,e),u=0;u<64;++u)p[L[u]]=c[u];var f=p[0]-r;r=p[0],0==f?F(n[0]):(F(n[h[o=32767+f]]),F(l[o]));for(var g=63;g>0&&0==p[g];)g--;if(0==g)return F(a),r;for(var v,b=1;b<=g;){for(var m=b;0==p[b]&&b<=g;)++b;var y=b-m;if(y>=16){v=y>>4;for(var w=1;w<=v;++w)F(s);y&=15}o=32767+p[b],F(i[(y<<4)+h[o]]),F(l[o]),b++}return 63!=g&&F(a),r}function R(t){t=Math.min(Math.max(t,1),100),o!=t&&(function(t){for(var e=[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],r=0;r<64;r++){var n=a((e[r]*t+50)/100);n=Math.min(Math.max(n,1),255),s[L[r]]=n}for(var i=[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],o=0;o<64;o++){var l=a((i[o]*t+50)/100);l=Math.min(Math.max(l,1),255),c[L[o]]=l}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var g=0;g<8;g++)u[d]=1/(s[L[d]]*h[p]*h[g]*8),f[d]=1/(c[L[d]]*h[p]*h[g]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&R(o),g=new Array,v=0,b=7,T(65496),T(65504),T(16),E(74),E(70),E(73),E(70),E(0),E(1),E(1),E(0),T(1),T(1),E(0),E(0),function(){T(65499),T(132),E(0);for(var t=0;t<64;t++)E(s[t]);E(1);for(var e=0;e<64;e++)E(c[e])}(),function(t,e){T(65472),T(17),E(8),T(e),T(t),E(3),E(1),E(17),E(0),E(2),E(17),E(1),E(3),E(17),E(1)}(t.width,t.height),function(){T(65476),T(418),E(0);for(var t=0;t<16;t++)E(N[t+1]);for(var e=0;e<=11;e++)E(S[e]);E(16);for(var r=0;r<16;r++)E(_[r+1]);for(var n=0;n<=161;n++)E(P[n]);E(1);for(var i=0;i<16;i++)E(k[i+1]);for(var o=0;o<=11;o++)E(j[o]);E(17);for(var a=0;a<16;a++)E(C[a+1]);for(var s=0;s<=161;s++)E(I[s])}(),T(65498),T(12),E(3),E(1),E(0),E(2),E(17),E(3),E(17),E(0),E(63),E(0);var a=0,l=0,h=0;v=0,b=7,this.encode.displayName="_encode_";for(var d,p,x,L,O,B,D,q,U,z=t.data,H=t.width,W=t.height,V=4*H,G=0;G<W;){for(d=0;d<V;){for(O=V*G+d,D=-1,q=0,U=0;U<64;U++)B=O+(q=U>>3)*V+(D=4*(7&U)),G+q>=W&&(B-=V*(G+1+q-W)),d+D>=V&&(B-=d+D-V+4),p=z[B++],x=z[B++],L=z[B++],m[U]=(A[p]+A[x+256>>0]+A[L+512>>0]>>16)-128,y[U]=(A[p+768>>0]+A[x+1024>>0]+A[L+1280>>0]>>16)-128,w[U]=(A[p+1280>>0]+A[x+1536>>0]+A[L+1792>>0]>>16)-128;a=M(m,u,a,e,n),l=M(y,f,l,r,i),h=M(w,f,h,r,i),d+=32}G+=8}if(b>=0){var Y=[];Y[1]=b+1,Y[0]=(1<<b+1)-1,F(Y)}return T(65497),new Uint8Array(g)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)x[e]=t(e)}(),e=O(N,S),r=O(k,j),n=O(_,P),i=O(C,I),function(){for(var t=1,e=2,r=1;r<=15;r++){for(var n=t;n<e;n++)h[32767+n]=r,l[32767+n]=[],l[32767+n][1]=r,l[32767+n][0]=n;for(var i=-(e-1);i<=-t;i++)h[32767+i]=r,l[32767+i]=[],l[32767+i][1]=r,l[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)A[t]=19595*t,A[t+256>>0]=38470*t,A[t+512>>0]=7471*t+32768,A[t+768>>0]=-11059*t,A[t+1024>>0]=-21709*t,A[t+1280>>0]=32768*t+8421375,A[t+1536>>0]=-27439*t,A[t+1792>>0]=-5329*t}(),R(t)}
/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function ee(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function re(t){function e(t){if(!t)throw Error("assert :P")}function r(t,e,r){for(var n=0;4>n;n++)if(t[e+n]!=r.charCodeAt(n))return!0;return!1}function n(t,e,r,n,i){for(var o=0;o<i;o++)t[e+o]=r[n+o]}function i(t,e,r,n){for(var i=0;i<n;i++)t[e+i]=r}function o(t){return new Int32Array(t)}function a(t,e){for(var r=[],n=0;n<t;n++)r.push(new e);return r}function s(t,e){var r=[];return function t(r,n,i){for(var o=i[n],a=0;a<o&&(r.push(i.length>n+1?[]:new e),!(i.length<n+1));a++)t(r[a],n+1,i)}(r,0,t),r}var c=function(){var t=this;function c(t,e){for(var r=1<<e-1>>>0;t&r;)r>>>=1;return r?(t&r-1)+r:t}function u(t,r,n,i,o){e(!(i%n));do{t[r+(i-=n)]=o}while(0<i)}function f(t,r,n,i,a){if(e(2328>=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(t,r,n,i,a,s){var f,h,d=r,p=1<<n,g=o(16),v=o(16);for(e(0!=a),e(null!=i),e(null!=t),e(0<n),h=0;h<a;++h){if(15<i[h])return 0;++g[i[h]]}if(g[0]==a)return 0;for(v[1]=0,f=1;15>f;++f){if(g[f]>1<<f)return 0;v[f+1]=v[f]+g[f]}for(h=0;h<a;++h)f=i[h],0<i[h]&&(s[v[f]++]=h);if(1==v[15])return(i=new l).g=0,i.value=s[0],u(t,d,1,p,i),p;var b,m=-1,y=p-1,w=0,x=1,A=1,L=1<<n;for(h=0,f=1,a=2;f<=n;++f,a<<=1){if(x+=A<<=1,0>(A-=g[f]))return 0;for(;0<g[f];--g[f])(i=new l).g=f,i.value=s[h++],u(t,d+w,a,L,i),w=c(w,f)}for(f=n+1,a=2;15>=f;++f,a<<=1){if(x+=A<<=1,0>(A-=g[f]))return 0;for(;0<g[f];--g[f]){if(i=new l,(w&y)!=m){for(d+=L,b=1<<(m=f)-n;15>m&&!(0>=(b-=g[m]));)++m,b<<=1;p+=L=1<<(b=m-n),t[r+(m=w&y)].g=b+n,t[r+m].value=d-r-m}i.g=f-n,i.value=s[h++],u(t,d+(w>>n),a,L,i),w=c(w,f)}}return x!=2*v[15]-1?0:p}(t,r,n,i,a,s)}function l(){this.value=this.g=0}function h(){this.value=this.g=0}function d(){this.G=a(5,l),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Br,h)}function p(t,r,n,i){e(null!=t),e(null!=r),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=r,t.pa=n,t.Jd=r,t.Yc=n+i,t.Zc=4<=i?n+i-4+1:n,_(t)}function g(t,e){for(var r=0;0<e--;)r|=k(t,128)<<e;return r}function v(t,e){var r=g(t,e);return P(t)?-r:r}function b(t,r,n,i){var o,a=0;for(e(null!=t),e(null!=r),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),o=0;o<i;++o)a+=r[n+o]<<8*o;t.Ra=a,t.bb=i,t.oa=r,t.pa=n}function m(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<Ur-8>>>0,++t.bb,t.u-=8;L(t)&&(t.h=1,t.u=0)}function y(t,r){if(e(0<=r),!t.h&&r<=qr){var n=A(t)&Dr[r];return t.u+=r,m(t),n}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function x(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function A(t){return t.Ra>>>(t.u&Ur-1)>>>0}function L(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>Ur}function N(t,e){t.u=e,t.h=L(t)}function S(t){t.u>=zr&&(e(t.u>=zr),m(t))}function _(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function P(t){return g(t,1)}function k(t,e){var r=t.Ca;0>t.b&&_(t);var n=t.b,i=r*e>>>8,o=(t.I>>>n>i)+0;for(o?(r-=i,t.I-=i+1<<n>>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+Hr[n],t.b-=n,t.Ca=(r<<n)-1,o}function j(t,e,r){t[e+0]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=r>>0&255}function C(t,e){return t[e+0]<<0|t[e+1]<<8}function I(t,e){return C(t,e)|t[e+2]<<16}function O(t,e){return C(t,e)|C(t,e+2)<<16}function F(t,r){var n=1<<r;return e(null!=t),e(0<r),t.X=o(n),null==t.X?0:(t.Mb=32-r,t.Xa=r,1)}function E(t,r){e(null!=t),e(null!=r),e(t.Xa==r.Xa),n(r.X,0,t.X,0,1<<r.Xa)}function T(){this.X=[],this.Xa=this.Mb=0}function M(t,r,n,i){e(null!=n),e(null!=i);var o=n[0],a=i[0];return 0==o&&(o=(t*a+r/2)/r),0==a&&(a=(r*o+t/2)/t),0>=o||0>=a?0:(n[0]=o,i[0]=a,1)}function R(t,e){return t+(1<<e)-1>>>e}function B(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function D(e,r){t[r]=function(r,n,i,o,a,s,c){var u;for(u=0;u<a;++u){var f=t[e](s[c+u-1],i,o+u);s[c+u]=B(r[n+u],f)}}}function q(){this.ud=this.hd=this.jd=0}function U(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function z(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function H(t,e){return z(t+(t-e+.5>>1))}function W(t,e,r){return Math.abs(e-r)-Math.abs(t-r)}function V(t,e,r,n,i,o,a){for(n=o[a-1],r=0;r<i;++r)o[a+r]=n=B(t[e+r],n)}function G(t,e,r,n,i){var o;for(o=0;o<r;++o){var a=t[e+o],s=a>>8&255,c=16711935&(c=(c=16711935&a)+((s<<16)+s));n[i+o]=(4278255360&a)+c>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function X(t,e,r,n,i,o){var a;for(a=0;a<n;++a){var s=e[r+a],c=s>>>8,u=s,f=255&(f=(f=s>>>16)+((t.jd<<24>>24)*(c<<24>>24)>>>5));u=255&(u=(u+=(t.hd<<24>>24)*(c<<24>>24)>>>5)+((t.ud<<24>>24)*(f<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(f<<16)+u}}function J(e,r,n,i,o){t[r]=function(t,e,r,n,a,s,c,u,f){for(n=c;n<u;++n)for(c=0;c<f;++c)a[s++]=o(r[i(t[e++])])},t[e]=function(e,r,a,s,c,u,f){var l=8>>e.b,h=e.Ea,d=e.K[0],p=e.w;if(8>l)for(e=(1<<e.b)-1,p=(1<<l)-1;r<a;++r){var g,v=0;for(g=0;g<h;++g)g&e||(v=i(s[c++])),u[f++]=o(d[v&p]),v>>=l}else t["VP8LMapColor"+n](s,c,d,p,u,f,r,a,h)}}function K(t,e,r,n,i){for(r=e+r;e<r;){var o=t[e++];n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=o>>0&255}}function $(t,e,r,n,i){for(r=e+r;e<r;){var o=t[e++];n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=o>>0&255,n[i++]=o>>24&255}}function Z(t,e,r,n,i){for(r=e+r;e<r;){var o=(a=t[e++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;n[i++]=o,n[i++]=a}}function Q(t,e,r,n,i){for(r=e+r;e<r;){var o=(a=t[e++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;n[i++]=o,n[i++]=a}}function tt(t,e,r,n,i){for(r=e+r;e<r;){var o=t[e++];n[i++]=o>>0&255,n[i++]=o>>8&255,n[i++]=o>>16&255}}function et(t,e,r,i,o,a){if(0==a)for(r=e+r;e<r;)j(i,((a=t[e++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else n(i,o,t,e,r)}function rt(e,r){t[r][0]=t[e+"0"],t[r][1]=t[e+"1"],t[r][2]=t[e+"2"],t[r][3]=t[e+"3"],t[r][4]=t[e+"4"],t[r][5]=t[e+"5"],t[r][6]=t[e+"6"],t[r][7]=t[e+"7"],t[r][8]=t[e+"8"],t[r][9]=t[e+"9"],t[r][10]=t[e+"10"],t[r][11]=t[e+"11"],t[r][12]=t[e+"12"],t[r][13]=t[e+"13"],t[r][14]=t[e+"0"],t[r][15]=t[e+"0"]}function nt(t){return t==Hn||t==Wn||t==Vn||t==Gn}function it(){this.eb=[],this.size=this.A=this.fb=0}function ot(){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 at(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new ot,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ct(){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 ut(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ft(t,e){var r=t.T,i=e.ba.f.RGBA,o=i.eb,a=i.fb+t.ka*i.A,s=bi[e.ba.S],c=t.y,u=t.O,f=t.f,l=t.N,h=t.ea,d=t.W,p=e.cc,g=e.dc,v=e.Mc,b=e.Nc,m=t.ka,y=t.ka+t.T,w=t.U,x=w+1>>1;for(0==m?s(c,u,null,null,f,l,h,d,f,l,h,d,o,a,null,null,w):(s(e.ec,e.fc,c,u,p,g,v,b,f,l,h,d,o,a-i.A,o,a,w),++r);m+2<y;m+=2)p=f,g=l,v=h,b=d,l+=t.Rc,d+=t.Rc,a+=2*i.A,s(c,(u+=2*t.fa)-t.fa,c,u,p,g,v,b,f,l,h,d,o,a-i.A,o,a,w);return u+=t.fa,t.j+y<t.o?(n(e.ec,e.fc,c,u,w),n(e.cc,e.dc,f,l,x),n(e.Mc,e.Nc,h,d,x),r--):1&y||s(c,u,null,null,f,l,h,d,f,l,h,d,o,a+i.A,null,null,w),r}function lt(t,r,n){var i=t.F,o=[t.J];if(null!=i){var a=t.U,s=r.ba.S,c=s==qn||s==Vn;r=r.ba.f.RGBA;var u=[0],f=t.ka;u[0]=t.T,t.Kb&&(0==f?--u[0]:(--f,o[0]-=t.width),t.j+t.ka+t.T==t.o&&(u[0]=t.o-t.j-f));var l=r.eb;f=r.fb+f*r.A,t=Sn(i,o[0],t.width,a,u,l,f+(c?0:3),r.A),e(n==u),t&&nt(s)&&Ln(l,f,c,a,u,r.A)}return 0}function ht(t){var e=t.ma,r=e.ba.S,n=11>r,i=r==Rn||r==Dn||r==qn||r==Un||12==r||nt(r);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Tr(e.Oa,t,i?11:12))return 0;if(i&&nt(r)&&mr(),t.da)alert("todo:use_scaling");else{if(n){if(e.Ib=ut,t.Kb){if(r=t.U+1>>1,e.memory=o(t.U+2*r),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+r,e.Ib=ft,mr()}}else alert("todo:EmitYUV");i&&(e.Jb=lt,n&&vr())}if(n&&!Ii){for(t=0;256>t;++t)Oi[t]=89858*(t-128)+_i>>Si,Ti[t]=-22014*(t-128)+_i,Ei[t]=-45773*(t-128),Fi[t]=113618*(t-128)+_i>>Si;for(t=Pi;t<ki;++t)e=76283*(t-16)+_i>>Si,Mi[t-Pi]=Vt(e,255),Ri[t-Pi]=Vt(e+8>>4,15);Ii=1}return 1}function dt(t){var r=t.ma,n=t.U,i=t.T;return e(!(1&t.ka)),0>=n||0>=i?0:(n=r.Ib(t,r),null!=r.Jb&&r.Jb(t,r,n),r.Dc+=n,1)}function pt(t){t.ma.memory=null}function gt(t,e,r,n){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,r[0]=y(t,14)+1,n[0]=y(t,1),0!=y(t,3)?0:!t.h)}function vt(t,e){if(4>t)return t+1;var r=t-2>>1;return(2+(1&t)<<r)+y(e,r)+1}function bt(t,e){return 120<e?e-120:1<=(r=((r=Zn[e-1])>>4)*t+(8-(15&r)))?r:1;var r}function mt(t,e,r){var n=A(r),i=t[e+=255&n].g-8;return 0<i&&(N(r,r.u+8),n=A(r),e+=t[e].value,e+=n&(1<<i)-1),N(r,r.u+t[e].g),t[e].value}function yt(t,r,n){return n.g+=t.g,n.value+=t.value<<r>>>0,e(8>=n.g),t.g}function wt(t,r,n){var i=t.xc;return e((r=0==i?0:t.vc[t.md*(n>>i)+(r>>i)])<t.Wb),t.Ya[r]}function xt(t,r,i,o){var a=t.ab,s=t.c*r,c=t.C;r=c+r;var u=i,f=o;for(o=t.Ta,i=t.Ua;0<a--;){var l=t.gc[a],h=c,d=r,p=u,g=f,v=(f=o,u=i,l.Ea);switch(e(h<d),e(d<=l.nc),l.hc){case 2:Gr(p,g,(d-h)*v,f,u);break;case 0:var b=h,m=d,y=f,w=u,x=(_=l).Ea;0==b&&(Wr(p,g,null,null,1,y,w),V(p,g+1,0,0,x-1,y,w+1),g+=x,w+=x,++b);for(var A=1<<_.b,L=A-1,N=R(x,_.b),S=_.K,_=_.w+(b>>_.b)*N;b<m;){var P=S,k=_,j=1;for(Vr(p,g,y,w-x,1,y,w);j<x;){var C=(j&~L)+A;C>x&&(C=x),(0,$r[P[k++]>>8&15])(p,g+ +j,y,w+j-x,C-j,y,w+j),j=C}g+=x,w+=x,++b&L||(_+=N)}d!=l.nc&&n(f,u-v,f,u+(d-h-1)*v,v);break;case 1:for(v=p,m=g,x=(p=l.Ea)-(w=p&~(y=(g=1<<l.b)-1)),b=R(p,l.b),A=l.K,l=l.w+(h>>l.b)*b;h<d;){for(L=A,N=l,S=new q,_=m+w,P=m+p;m<_;)Y(L[N++],S),Zr(S,v,m,g,f,u),m+=g,u+=g;m<P&&(Y(L[N++],S),Zr(S,v,m,x,f,u),m+=x,u+=x),++h&y||(l+=b)}break;case 3:if(p==f&&g==u&&0<l.b){for(m=f,p=v=u+(d-h)*v-(w=(d-h)*R(l.Ea,l.b)),g=f,y=u,b=[],w=(x=w)-1;0<=w;--w)b[w]=g[y+w];for(w=x-1;0<=w;--w)m[p+w]=b[w];Yr(l,h,d,f,v,f,u)}else Yr(l,h,d,p,g,f,u)}u=o,f=i}f!=i&&n(o,i,u,f,s)}function At(t,r){var n=t.V,i=t.Ba+t.c*t.C,o=r-t.C;if(e(r<=t.l.o),e(16>=o),0<o){var a=t.l,s=t.Ta,c=t.Ua,u=a.width;if(xt(t,o,n,i),o=c=[c],e((n=t.C)<(i=r)),e(a.v<a.va),i>a.o&&(i=a.o),n<a.j){var f=a.j-n;n=a.j,o[0]+=f*u}if(n>=i?n=0:(o[0]+=4*a.v,a.ka=n-a.j,a.U=a.va-a.v,a.T=i-n,n=1),n){if(c=c[0],11>(n=t.ca).S){var l=n.f.RGBA,h=(i=n.S,o=a.U,a=a.T,f=l.eb,l.A),d=a;for(l=l.fb+t.Ma*l.A;0<d--;){var p=s,g=c,v=o,b=f,m=l;switch(i){case Mn:Qr(p,g,v,b,m);break;case Rn:tn(p,g,v,b,m);break;case Hn:tn(p,g,v,b,m),Ln(b,m,0,v,1,0);break;case Bn:nn(p,g,v,b,m);break;case Dn:et(p,g,v,b,m,1);break;case Wn:et(p,g,v,b,m,1),Ln(b,m,0,v,1,0);break;case qn:et(p,g,v,b,m,0);break;case Vn:et(p,g,v,b,m,0),Ln(b,m,1,v,1,0);break;case Un:en(p,g,v,b,m);break;case Gn:en(p,g,v,b,m),Nn(b,m,v,1,0);break;case zn:rn(p,g,v,b,m);break;default:e(0)}c+=u,l+=h}t.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=n.height)}}t.C=r,e(t.C<=t.i)}function Lt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var r=t.Ya[e].G,n=t.Ya[e].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function Nt(t,r,n,i,o,a){if(0!=t.Z){var s=t.qd,c=t.rd;for(e(null!=vi[t.Z]);r<n;++r)vi[t.Z](s,c,i,o,i,o,a),s=i,c=o,o+=a;t.qd=s,t.rd=c}}function St(t,r){var n=t.l.ma,i=0==n.Z||1==n.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(r<=t.l.o),r>i){var o=t.l.width,a=n.ca,s=n.tb+o*i,c=t.V,u=t.Ba+t.c*i,f=t.gc;e(1==t.ab),e(3==f[0].hc),Jr(f[0],i,r,c,u,a,s),Nt(n,i,r,a,s,o)}t.C=t.Ma=r}function _t(t,r,n,i,o,a,s){var c=t.$/i,u=t.$%i,f=t.m,l=t.s,h=n+t.$,d=h;o=n+i*o;var p=n+i*a,g=280+l.ua,v=t.Pb?c:16777216,b=0<l.ua?l.Wa:null,m=l.wc,y=h<p?wt(l,u,c):null;e(t.C<a),e(p<=o);var w=!1;t:for(;;){for(;w||h<p;){var x=0;if(c>=v){var _=h-n;e((v=t).Pb),v.wd=v.m,v.xd=_,0<v.s.ua&&E(v.s.Wa,v.s.vb),v=c+ti}if(u&m||(y=wt(l,u,c)),e(null!=y),y.Qb&&(r[h]=y.qb,w=!0),!w)if(S(f),y.jc){x=f,_=r;var P=h,k=y.pd[A(x)&Br-1];e(y.jc),256>k.g?(N(x,x.u+k.g),_[P]=k.value,x=0):(N(x,x.u+k.g-256),e(256<=k.value),x=k.value),0==x&&(w=!0)}else x=mt(y.G[0],y.H[0],f);if(f.h)break;if(w||256>x){if(!w)if(y.nd)r[h]=(y.qb|x<<8)>>>0;else{if(S(f),w=mt(y.G[1],y.H[1],f),S(f),_=mt(y.G[2],y.H[2],f),P=mt(y.G[3],y.H[3],f),f.h)break;r[h]=(P<<24|w<<16|x<<8|_)>>>0}if(w=!1,++h,++u>=i&&(u=0,++c,null!=s&&c<=a&&!(c%16)&&s(t,c),null!=b))for(;d<h;)x=r[d++],b.X[(506832829*x&4294967295)>>>b.Mb]=x}else if(280>x){if(x=vt(x-256,f),_=mt(y.G[4],y.H[4],f),S(f),_=bt(i,_=vt(_,f)),f.h)break;if(h-n<_||o-h<x)break t;for(P=0;P<x;++P)r[h+P]=r[h+P-_];for(h+=x,u+=x;u>=i;)u-=i,++c,null!=s&&c<=a&&!(c%16)&&s(t,c);if(e(h<=o),u&m&&(y=wt(l,u,c)),null!=b)for(;d<h;)x=r[d++],b.X[(506832829*x&4294967295)>>>b.Mb]=x}else{if(!(x<g))break t;for(w=x-280,e(null!=b);d<h;)x=r[d++],b.X[(506832829*x&4294967295)>>>b.Mb]=x;x=h,e(!(w>>>(_=b).Xa)),r[x]=_.X[w],w=!0}w||e(f.h==L(f))}if(t.Pb&&f.h&&h<o)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&E(t.s.vb,t.s.Wa);else{if(f.h)break t;null!=s&&s(t,c>a?a:c),t.a=0,t.$=h-n}return 1}return t.a=3,0}function Pt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var r=t.Wa;null!=r&&(r.X=null),t.vb=null,e(null!=t)}function kt(){var e=new ar;return null==e?null:(e.a=0,e.xb=gi,rt("Predictor","VP8LPredictors"),rt("Predictor","VP8LPredictors_C"),rt("PredictorAdd","VP8LPredictorsAdd"),rt("PredictorAdd","VP8LPredictorsAdd_C"),Gr=G,Zr=X,Qr=K,tn=$,en=Z,rn=Q,nn=tt,t.VP8LMapColor32b=Xr,t.VP8LMapColor8b=Kr,e)}function jt(t,r,n,s,c){var u=1,h=[t],p=[r],g=s.m,v=s.s,b=null,m=0;t:for(;;){if(n)for(;u&&y(g,1);){var w=h,x=p,L=s,_=1,P=L.m,k=L.gc[L.ab],j=y(P,2);if(L.Oc&1<<j)u=0;else{switch(L.Oc|=1<<j,k.hc=j,k.Ea=w[0],k.nc=x[0],k.K=[null],++L.ab,e(4>=L.ab),j){case 0:case 1:k.b=y(P,3)+2,_=jt(R(k.Ea,k.b),R(k.nc,k.b),0,L,k.K),k.K=k.K[0];break;case 3:var C,I=y(P,8)+1,O=16<I?0:4<I?1:2<I?2:3;if(w[0]=R(k.Ea,O),k.b=O,C=_=jt(I,1,0,L,k.K)){var E,T=I,M=k,D=1<<(8>>M.b),q=o(D);if(null==q)C=0;else{var U=M.K[0],z=M.w;for(q[0]=M.K[0][0],E=1;E<1*T;++E)q[E]=B(U[z+E],q[E-1]);for(;E<4*D;++E)q[E]=0;M.K[0]=null,M.K[0]=q,C=1}}_=C;break;case 2:break;default:e(0)}u=_}}if(h=h[0],p=p[0],u&&y(g,1)&&!(u=1<=(m=y(g,4))&&11>=m)){s.a=3;break t}var H;if(H=u)e:{var W,V,G,Y=s,X=h,J=p,K=m,$=n,Z=Y.m,Q=Y.s,tt=[null],et=1,rt=0,nt=Qn[K];r:for(;;){if($&&y(Z,1)){var it=y(Z,3)+2,ot=R(X,it),at=R(J,it),st=ot*at;if(!jt(ot,at,0,Y,tt))break r;for(tt=tt[0],Q.xc=it,W=0;W<st;++W){var ct=tt[W]>>8&65535;tt[W]=ct,ct>=et&&(et=ct+1)}}if(Z.h)break r;for(V=0;5>V;++V){var ut=Jn[V];!V&&0<K&&(ut+=1<<K),rt<ut&&(rt=ut)}var ft=a(et*nt,l),lt=et,ht=a(lt,d);if(null==ht)var dt=null;else e(65536>=lt),dt=ht;var pt=o(rt);if(null==dt||null==pt||null==ft){Y.a=1;break r}var gt=ft;for(W=G=0;W<et;++W){var vt=dt[W],bt=vt.G,mt=vt.H,wt=0,xt=1,At=0;for(V=0;5>V;++V){ut=Jn[V],bt[V]=gt,mt[V]=G,!V&&0<K&&(ut+=1<<K);n:{var Lt,Nt=ut,St=Y,kt=pt,Ct=gt,It=G,Ot=0,Ft=St.m,Et=y(Ft,1);if(i(kt,0,0,Nt),Et){var Tt=y(Ft,1)+1,Mt=y(Ft,1),Rt=y(Ft,0==Mt?1:8);kt[Rt]=1,2==Tt&&(kt[Rt=y(Ft,8)]=1);var Bt=1}else{var Dt=o(19),qt=y(Ft,4)+4;if(19<qt){St.a=3;var Ut=0;break n}for(Lt=0;Lt<qt;++Lt)Dt[$n[Lt]]=y(Ft,3);var zt=void 0,Ht=void 0,Wt=St,Vt=Dt,Gt=Nt,Yt=kt,Xt=0,Jt=Wt.m,Kt=8,$t=a(128,l);i:for(;f($t,0,7,Vt,19);){if(y(Jt,1)){var Zt=2+2*y(Jt,3);if((zt=2+y(Jt,Zt))>Gt)break i}else zt=Gt;for(Ht=0;Ht<Gt&&zt--;){S(Jt);var Qt=$t[0+(127&A(Jt))];N(Jt,Jt.u+Qt.g);var te=Qt.value;if(16>te)Yt[Ht++]=te,0!=te&&(Kt=te);else{var ee=16==te,re=te-16,ne=Xn[re],ie=y(Jt,Yn[re])+ne;if(Ht+ie>Gt)break i;for(var oe=ee?Kt:0;0<ie--;)Yt[Ht++]=oe}}Xt=1;break i}Xt||(Wt.a=3),Bt=Xt}(Bt=Bt&&!Ft.h)&&(Ot=f(Ct,It,8,kt,Nt)),Bt&&0!=Ot?Ut=Ot:(St.a=3,Ut=0)}if(0==Ut)break r;if(xt&&1==Kn[V]&&(xt=0==gt[G].g),wt+=gt[G].g,G+=Ut,3>=V){var ae,se=pt[0];for(ae=1;ae<ut;++ae)pt[ae]>se&&(se=pt[ae]);At+=se}}if(vt.nd=xt,vt.Qb=0,xt&&(vt.qb=(bt[3][mt[3]+0].value<<24|bt[1][mt[1]+0].value<<16|bt[2][mt[2]+0].value)>>>0,0==wt&&256>bt[0][mt[0]+0].value&&(vt.Qb=1,vt.qb+=bt[0][mt[0]+0].value<<8)),vt.jc=!vt.Qb&&6>At,vt.jc){var ce,ue=vt;for(ce=0;ce<Br;++ce){var fe=ce,le=ue.pd[fe],he=ue.G[0][ue.H[0]+fe];256<=he.value?(le.g=he.g+256,le.value=he.value):(le.g=0,le.value=0,fe>>=yt(he,8,le),fe>>=yt(ue.G[1][ue.H[1]+fe],16,le),fe>>=yt(ue.G[2][ue.H[2]+fe],0,le),yt(ue.G[3][ue.H[3]+fe],24,le))}}}Q.vc=tt,Q.Wb=et,Q.Ya=dt,Q.yc=ft,H=1;break e}H=0}if(!(u=H)){s.a=3;break t}if(0<m){if(v.ua=1<<m,!F(v.Wa,m)){s.a=1,u=0;break t}}else v.ua=0;var de=s,pe=h,ge=p,ve=de.s,be=ve.xc;if(de.c=pe,de.i=ge,ve.md=R(pe,be),ve.wc=0==be?-1:(1<<be)-1,n){s.xb=pi;break t}if(null==(b=o(h*p))){s.a=1,u=0;break t}u=(u=_t(s,b,0,h,p,p,null))&&!g.h;break t}return u?(null!=c?c[0]=b:(e(null==b),e(n)),s.$=0,n||Pt(v)):Pt(v),u}function Ct(t,r){var n=t.c*t.i,i=n+r+16*r;return e(t.c<=r),t.V=o(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+n+r,1)}function It(t,r){var n=t.C,i=r-n,o=t.V,a=t.Ba+t.c*n;for(e(r<=t.l.o);0<i;){var s=16<i?16:i,c=t.l.ma,u=t.l.width,f=u*s,l=c.ca,h=c.tb+u*n,d=t.Ta,p=t.Ua;xt(t,s,o,a),_n(d,p,l,h,f),Nt(c,n,n+s,l,h,u),i-=s,o+=s*t.c,n+=s}e(n==r),t.C=t.Ma=r}function Ot(){this.ub=this.yd=this.td=this.Rb=0}function Ft(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Et(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Tt(){this.Yb=function(){var t=[];return function t(e,r,n){for(var i=n[r],o=0;o<i&&(e.push(n.length>r+1?[]:0),!(n.length<r+1));o++)t(e[o],r+1,n)}(t,0,[3,11]),t}()}function Mt(){this.jb=o(3),this.Wc=s([4,8],Tt),this.Xc=s([4,17],Tt)}function Rt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Bt(){this.ld=this.La=this.dd=this.tc=0}function Dt(){this.Na=this.la=0}function qt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Bt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new Gt}function Ht(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Ot,this.Kc=new Ft,this.ed=new Rt,this.Qa=new Et,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,w),this.ia=0,this.pb=a(4,qt),this.Pa=new Mt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Dt),this.sb=0,this.wa=Array(new Bt),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 Ut),this.L=this.aa=0,this.gd=s([4,2],Bt),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 Vt(t,e){return 0>t?0:t>e?e:t}function Gt(){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 Yt(){var t=new Wt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ni||(ni=$t)),t}function Xt(t,e,r){return 0==t.a&&(t.a=e,t.sc=r,t.cb=0),0}function Jt(t,e,r){return 3<=r&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Kt(t,r){if(null==t)return 0;if(t.a=0,t.sc="OK",null==r)return Xt(t,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,o=r.w,a=r.ha;if(4>a)return Xt(t,7,"Truncated header.");var s=n[o+0]|n[o+1]<<8|n[o+2]<<16,c=t.Od;if(c.Rb=!(1&s),c.td=s>>1&7,c.yd=s>>4&1,c.ub=s>>5,3<c.td)return Xt(t,3,"Incorrect keyframe parameters.");if(!c.yd)return Xt(t,4,"Frame not displayable.");o+=3,a-=3;var u=t.Kc;if(c.Rb){if(7>a)return Xt(t,7,"cannot parse picture header");if(!Jt(n,o,a))return Xt(t,3,"Bad code word");u.c=16383&(n[o+4]<<8|n[o+3]),u.Td=n[o+4]>>6,u.i=16383&(n[o+6]<<8|n[o+5]),u.Ud=n[o+6]>>6,o+=7,a-=7,t.za=u.c+15>>4,t.Ub=u.i+15>>4,r.width=u.c,r.height=u.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(c.ub>a)return Xt(t,7,"bad partition length");p(s=t.m,n,o,c.ub),o+=c.ub,a-=c.ub,c.Rb&&(u.Ld=P(s),u.Kd=P(s)),u=t.Qa;var f,l=t.Pa;if(e(null!=s),e(null!=u),u.Cb=P(s),u.Cb){if(u.Bb=P(s),P(s)){for(u.Fb=P(s),f=0;4>f;++f)u.Zb[f]=P(s)?v(s,7):0;for(f=0;4>f;++f)u.Lb[f]=P(s)?v(s,6):0}if(u.Bb)for(f=0;3>f;++f)l.jb[f]=P(s)?g(s,8):255}else u.Bb=0;if(s.Ka)return Xt(t,3,"cannot parse segment header");if((u=t.ed).zd=P(s),u.Tb=g(s,6),u.wb=g(s,3),u.Pc=P(s),u.Pc&&P(s)){for(l=0;4>l;++l)P(s)&&(u.vd[l]=v(s,6));for(l=0;4>l;++l)P(s)&&(u.od[l]=v(s,6))}if(t.L=0==u.Tb?0:u.zd?1:2,s.Ka)return Xt(t,3,"cannot parse filter header");var h=a;if(a=f=o,o=f+h,u=h,t.Xb=(1<<g(t.m,2))-1,h<3*(l=t.Xb))n=7;else{for(f+=3*l,u-=3*l,h=0;h<l;++h){var d=n[a+0]|n[a+1]<<8|n[a+2]<<16;d>u&&(d=u),p(t.Jc[+h],n,f,d),f+=d,u-=d,a+=3}p(t.Jc[+l],n,f,u),n=f<o?0:5}if(0!=n)return Xt(t,n,"cannot parse partitions");for(n=g(f=t.m,7),a=P(f)?v(f,4):0,o=P(f)?v(f,4):0,u=P(f)?v(f,4):0,l=P(f)?v(f,4):0,f=P(f)?v(f,4):0,h=t.Qa,d=0;4>d;++d){if(h.Cb){var b=h.Zb[d];h.Fb||(b+=n)}else{if(0<d){t.pb[d]=t.pb[0];continue}b=n}var m=t.pb[d];m.Sc[0]=ei[Vt(b+a,127)],m.Sc[1]=ri[Vt(b+0,127)],m.Eb[0]=2*ei[Vt(b+o,127)],m.Eb[1]=101581*ri[Vt(b+u,127)]>>16,8>m.Eb[1]&&(m.Eb[1]=8),m.Qc[0]=ei[Vt(b+l,117)],m.Qc[1]=ri[Vt(b+f,127)],m.lc=b+f}if(!c.Rb)return Xt(t,4,"Not a key frame.");for(P(s),c=t.Pa,n=0;4>n;++n){for(a=0;8>a;++a)for(o=0;3>o;++o)for(u=0;11>u;++u)l=k(s,ui[n][a][o][u])?g(s,8):si[n][a][o][u],c.Wc[n][a].Yb[o][u]=l;for(a=0;17>a;++a)c.Xc[n][a]=c.Wc[n][fi[a]]}return t.kc=P(s),t.kc&&(t.Bd=g(s,8)),t.cb=1}function $t(t,e,r,n,i,o,a){var s=e[i].Yb[r];for(r=0;16>i;++i){if(!k(t,s[r+0]))return i;for(;!k(t,s[r+1]);)if(s=e[++i].Yb[0],r=0,16==i)return 16;var c=e[i+1].Yb;if(k(t,s[r+2])){var u=t,f=0;if(k(u,(h=s)[(l=r)+3]))if(k(u,h[l+6])){for(s=0,l=2*(f=k(u,h[l+8]))+(h=k(u,h[l+9+f])),f=0,h=ii[l];h[s];++s)f+=f+k(u,h[s]);f+=3+(8<<l)}else k(u,h[l+7])?(f=7+2*k(u,165),f+=k(u,145)):f=5+k(u,159);else f=k(u,h[l+4])?3+k(u,h[l+5]):2;s=c[2]}else f=1,s=c[1];c=a+oi[i],0>(u=t).b&&_(u);var l,h=u.b,d=(l=u.Ca>>1)-(u.I>>h)>>31;--u.b,u.Ca+=d,u.Ca|=1,u.I-=(l+1&d)<<h,o[c]=((f^d)-d)*n[(0<i)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Qt(t,r){if(null==t)return 0;if(null==r)return Xt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Kt(t,r))return 0;if(e(t.cb),null==r.ac||r.ac(r)){r.ob&&(t.L=0);var s=Di[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=r.v-s>>4,t.zb=r.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=r.o+15+s>>4,t.Hb=r.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var c=t.ed;for(s=0;4>s;++s){var u;if(t.Qa.Cb){var f=t.Qa.Lb[s];t.Qa.Fb||(f+=c.Tb)}else f=c.Tb;for(u=0;1>=u;++u){var l=t.gd[s][u],h=f;if(c.Pc&&(h+=c.vd[0],u&&(h+=c.od[0])),0<(h=0>h?0:63<h?63:h)){var d=h;0<c.wb&&(d=4<c.wb?d>>2:d>>1)>9-c.wb&&(d=9-c.wb),1>d&&(d=1),l.dd=d,l.tc=2*h+d,l.ld=40<=h?2:15<=h?1:0}else l.tc=0;l.La=u}}}s=0}else Xt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Ui);t:{s=t.Ic,c=4*(d=t.za);var p=32*d,g=d+1,v=0<t.L?d*(0<t.Aa?2:1):0,b=(2==t.Aa?2:1)*d;if((l=c+832+(u=3*(16*s+Di[t.L])/2*p)+(f=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=l)s=0;else{if(l>t.Vb){if(t.Vb=0,t.Ec=o(l),t.Fc=0,null==t.Ec){s=Xt(t,1,"no memory during frame initialization.");break t}t.Vb=l}l=t.Ec,h=t.Fc,t.Ac=l,t.Bc=h,h+=c,t.Gd=a(p,Ht),t.Hd=0,t.rb=a(g+1,Dt),t.sb=1,t.wa=v?a(v,Bt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=l,t.pc=h,h+=832,t.ya=a(b,Ut),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(p=Di[t.L])*t.R,p=p/2*t.B,t.sa=l,t.ta=h+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,h+=u,t.mb=f?l:null,t.nb=f?h:null,e(h+f<=t.Fc+t.Vb),Zt(t),i(t.Ac,t.Bc,0,c),s=1}}if(s){if(r.ka=0,r.y=t.sa,r.O=t.ta,r.f=t.qa,r.N=t.ra,r.ea=t.Ha,r.Vd=t.Ia,r.fa=t.R,r.Rc=t.B,r.F=null,r.J=0,!In){for(s=-255;255>=s;++s)Pn[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)kn[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)jn[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Cn[255+s]=0>s?0:255<s?255:s;In=1}on=ue,an=oe,cn=ae,un=se,fn=ce,sn=ie,ln=Xe,hn=Je,dn=Ze,pn=Qe,gn=Ke,vn=$e,bn=tr,mn=er,yn=ze,wn=He,xn=We,An=Ve,hi[0]=Ne,hi[1]=le,hi[2]=Ae,hi[3]=Le,hi[4]=Se,hi[5]=Pe,hi[6]=_e,hi[7]=ke,hi[8]=Ce,hi[9]=je,li[0]=be,li[1]=de,li[2]=pe,li[3]=ge,li[4]=me,li[5]=ye,li[6]=we,di[0]=Ee,di[1]=he,di[2]=Ie,di[3]=Oe,di[4]=Me,di[5]=Te,di[6]=Re,s=1}else s=0}s&&(s=function(t,r){for(t.M=0;t.M<t.Va;++t.M){var a,s=t.Jc[t.M&t.Xb],c=t.m,u=t;for(a=0;a<u.za;++a){var f=c,l=u,h=l.Ac,d=l.Bc+4*a,p=l.zc,g=l.ya[l.aa+a];if(l.Qa.Bb?g.$b=k(f,l.Pa.jb[0])?2+k(f,l.Pa.jb[2]):k(f,l.Pa.jb[1]):g.$b=0,l.kc&&(g.Ad=k(f,l.Bd)),g.Za=!k(f,145)+0,g.Za){var v=g.Ob,b=0;for(l=0;4>l;++l){var m,y=p[0+l];for(m=0;4>m;++m){y=ci[h[d+m]][y];for(var w=ai[k(f,y[0])];0<w;)w=ai[2*w+k(f,y[w])];y=-w,h[d+m]=y}n(v,b,h,d,4),b+=4,p[0+l]=y}}else y=k(f,156)?k(f,128)?1:3:k(f,163)?2:0,g.Ob[0]=y,i(h,d,y,4),i(p,0,y,4);g.Dd=k(f,142)?k(f,114)?k(f,183)?1:3:2:0}if(u.m.Ka)return Xt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(u=s,f=(c=t).rb[c.sb-1],h=c.rb[c.sb+c.ja],a=c.ya[c.aa+c.ja],d=c.kc?a.Ad:0)f.la=h.la=0,a.Za||(f.Na=h.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var x,A;if(f=h,h=u,d=c.Pa.Xc,p=c.ya[c.aa+c.ja],g=c.pb[p.$b],l=p.ad,v=0,b=c.rb[c.sb-1],y=m=0,i(l,v,0,384),p.Za)var L=0,N=d[3];else{w=o(16);var S=f.Na+b.Na;if(S=ni(h,d[1],S,g.Eb,0,w,0),f.Na=b.Na=(0<S)+0,1<S)on(w,0,l,v);else{var _=w[0]+3>>3;for(w=0;256>w;w+=16)l[v+w]=_}L=1,N=d[0]}var P=15&f.la,j=15&b.la;for(w=0;4>w;++w){var C=1&j;for(_=A=0;4>_;++_)P=P>>1|(C=(S=ni(h,N,S=C+(1&P),g.Sc,L,l,v))>L)<<7,A=A<<2|(3<S?3:1<S?2:0!=l[v+0]),v+=16;P>>=4,j=j>>1|C<<7,m=(m<<8|A)>>>0}for(N=P,L=j>>4,x=0;4>x;x+=2){for(A=0,P=f.la>>4+x,j=b.la>>4+x,w=0;2>w;++w){for(C=1&j,_=0;2>_;++_)S=C+(1&P),P=P>>1|(C=0<(S=ni(h,d[2],S,g.Qc,0,l,v)))<<3,A=A<<2|(3<S?3:1<S?2:0!=l[v+0]),v+=16;P>>=2,j=j>>1|C<<5}y|=A<<4*x,N|=P<<4<<x,L|=(240&j)<<x}f.la=N,b.la=L,p.Hc=m,p.Gc=y,p.ia=43690&y?0:g.ia,d=!(m|y)}if(0<c.L&&(c.wa[c.Y+c.ja]=c.gd[a.$b][a.Za],c.wa[c.Y+c.ja].La|=!d),u.Ka)return Xt(t,7,"Premature end-of-file encountered.")}if(Zt(t),c=r,u=1,a=(s=t).D,f=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(a.M=s.M,a.uc=f,Fr(s,a),u=1,a=(A=s.D).Nb,f=(y=Di[s.L])*s.R,h=y/2*s.B,w=16*a*s.R,_=8*a*s.B,d=s.sa,p=s.ta-f+w,g=s.qa,l=s.ra-h+_,v=s.Ha,b=s.Ia-h+_,j=0==(P=A.M),m=P>=s.Va-1,2==s.Aa&&Fr(s,A),A.uc)for(C=(S=s).D.M,e(S.D.uc),A=S.yb;A<S.Hb;++A){L=A,N=C;var I=(O=(U=S).D).Nb;x=U.R;var O=O.wa[O.Y+L],F=U.sa,E=U.ta+16*I*x+16*L,T=O.dd,M=O.tc;if(0!=M)if(e(3<=M),1==U.L)0<L&&wn(F,E,x,M+4),O.La&&An(F,E,x,M),0<N&&yn(F,E,x,M+4),O.La&&xn(F,E,x,M);else{var R=U.B,B=U.qa,D=U.ra+8*I*R+8*L,q=U.Ha,U=U.Ia+8*I*R+8*L;I=O.ld,0<L&&(hn(F,E,x,M+4,T,I),pn(B,D,q,U,R,M+4,T,I)),O.La&&(vn(F,E,x,M,T,I),mn(B,D,q,U,R,M,T,I)),0<N&&(ln(F,E,x,M+4,T,I),dn(B,D,q,U,R,M+4,T,I)),O.La&&(gn(F,E,x,M,T,I),bn(B,D,q,U,R,M,T,I))}}if(s.ia&&alert("todo:DitherRow"),null!=c.put){if(A=16*P,P=16*(P+1),j?(c.y=s.sa,c.O=s.ta+w,c.f=s.qa,c.N=s.ra+_,c.ea=s.Ha,c.W=s.Ia+_):(A-=y,c.y=d,c.O=p,c.f=g,c.N=l,c.ea=v,c.W=b),m||(P-=y),P>c.o&&(P=c.o),c.F=null,c.J=null,null!=s.Fa&&0<s.Fa.length&&A<P&&(c.J=lr(s,c,A,P-A),c.F=s.mb,null==c.F&&0==c.F.length)){u=Xt(s,3,"Could not decode alpha data.");break t}A<c.j&&(y=c.j-A,A=c.j,e(!(1&y)),c.O+=s.R*y,c.N+=s.B*(y>>1),c.W+=s.B*(y>>1),null!=c.F&&(c.J+=c.width*y)),A<P&&(c.O+=c.v,c.N+=c.v>>1,c.W+=c.v>>1,null!=c.F&&(c.J+=c.v),c.ka=A-c.j,c.U=c.va-c.v,c.T=P-A,u=c.put(c))}a+1!=s.Ic||m||(n(s.sa,s.ta-f,d,p+16*s.R,f),n(s.qa,s.ra-h,g,l+8*s.B,h),n(s.Ha,s.Ia-h,v,b+8*s.B,h))}if(!u)return Xt(t,6,"Output aborted.")}return 1}(t,r)),null!=r.bc&&r.bc(r),s&=1}return s?(t.cb=0,s):0}function te(t,e,r,n,i){i=t[e+r+32*n]+(i>>3),t[e+r+32*n]=-256&i?0>i?0:255:i}function ee(t,e,r,n,i,o){te(t,e,0,r,n+i),te(t,e,1,r,n+o),te(t,e,2,r,n-o),te(t,e,3,r,n-i)}function re(t){return(20091*t>>16)+t}function ne(t,e,r,n){var i,a=0,s=o(16);for(i=0;4>i;++i){var c=t[e+0]+t[e+8],u=t[e+0]-t[e+8],f=(35468*t[e+4]>>16)-re(t[e+12]),l=re(t[e+4])+(35468*t[e+12]>>16);s[a+0]=c+l,s[a+1]=u+f,s[a+2]=u-f,s[a+3]=c-l,a+=4,e++}for(i=a=0;4>i;++i)c=(t=s[a+0]+4)+s[a+8],u=t-s[a+8],f=(35468*s[a+4]>>16)-re(s[a+12]),te(r,n,0,0,c+(l=re(s[a+4])+(35468*s[a+12]>>16))),te(r,n,1,0,u+f),te(r,n,2,0,u-f),te(r,n,3,0,c-l),a++,n+=32}function ie(t,e,r,n){var i=t[e+0]+4,o=35468*t[e+4]>>16,a=re(t[e+4]),s=35468*t[e+1]>>16;ee(r,n,0,i+a,t=re(t[e+1]),s),ee(r,n,1,i+o,t,s),ee(r,n,2,i-o,t,s),ee(r,n,3,i-a,t,s)}function oe(t,e,r,n,i){ne(t,e,r,n),i&&ne(t,e+16,r,n+4)}function ae(t,e,r,n){an(t,e+0,r,n,1),an(t,e+32,r,n+128,1)}function se(t,e,r,n){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(r,n,e,i,t)}function ce(t,e,r,n){t[e+0]&&un(t,e+0,r,n),t[e+16]&&un(t,e+16,r,n+4),t[e+32]&&un(t,e+32,r,n+128),t[e+48]&&un(t,e+48,r,n+128+4)}function ue(t,e,r,n){var i,a=o(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],c=t[e+4+i]+t[e+8+i],u=t[e+4+i]-t[e+8+i],f=t[e+0+i]-t[e+12+i];a[0+i]=s+c,a[8+i]=s-c,a[4+i]=f+u,a[12+i]=f-u}for(i=0;4>i;++i)s=(t=a[0+4*i]+3)+a[3+4*i],c=a[1+4*i]+a[2+4*i],u=a[1+4*i]-a[2+4*i],f=t-a[3+4*i],r[n+0]=s+c>>3,r[n+16]=f+u>>3,r[n+32]=s-c>>3,r[n+48]=f-u>>3,n+=64}function fe(t,e,r){var n,i=e-32,o=En,a=255-t[i-1];for(n=0;n<r;++n){var s,c=o,u=a+t[e-1];for(s=0;s<r;++s)t[e+s]=c[u+t[i+s]];e+=32}}function le(t,e){fe(t,e,4)}function he(t,e){fe(t,e,8)}function de(t,e){fe(t,e,16)}function pe(t,e){var r;for(r=0;16>r;++r)n(t,e+32*r,t,e-32,16)}function ge(t,e){var r;for(r=16;0<r;--r)i(t,e,t[e-1],16),e+=32}function ve(t,e,r){var n;for(n=0;16>n;++n)i(e,r+32*n,t,16)}function be(t,e){var r,n=16;for(r=0;16>r;++r)n+=t[e-1+32*r]+t[e+r-32];ve(n>>5,t,e)}function me(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e-1+32*r];ve(n>>4,t,e)}function ye(t,e){var r,n=8;for(r=0;16>r;++r)n+=t[e+r-32];ve(n>>4,t,e)}function we(t,e){ve(128,t,e)}function xe(t,e,r){return t+2*e+r+2>>2}function Ae(t,e){var r,i=e-32;for(i=new Uint8Array([xe(t[i-1],t[i+0],t[i+1]),xe(t[i+0],t[i+1],t[i+2]),xe(t[i+1],t[i+2],t[i+3]),xe(t[i+2],t[i+3],t[i+4])]),r=0;4>r;++r)n(t,e+32*r,i,0,i.length)}function Le(t,e){var r=t[e-1],n=t[e-1+32],i=t[e-1+64],o=t[e-1+96];j(t,e+0,16843009*xe(t[e-1-32],r,n)),j(t,e+32,16843009*xe(r,n,i)),j(t,e+64,16843009*xe(n,i,o)),j(t,e+96,16843009*xe(i,o,o))}function Ne(t,e){var r,n=4;for(r=0;4>r;++r)n+=t[e+r-32]+t[e-1+32*r];for(n>>=3,r=0;4>r;++r)i(t,e+32*r,n,4)}function Se(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+96]=xe(n,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=xe(r,n,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=xe(o,r,n),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=xe(a,o,r),t[e+3+64]=t[e+2+32]=t[e+1+0]=xe(s,a,o),t[e+3+32]=t[e+2+0]=xe(c,s,a),t[e+3+0]=xe(u,c,s)}function _e(t,e){var r=t[e+1-32],n=t[e+2-32],i=t[e+3-32],o=t[e+4-32],a=t[e+5-32],s=t[e+6-32],c=t[e+7-32];t[e+0+0]=xe(t[e+0-32],r,n),t[e+1+0]=t[e+0+32]=xe(r,n,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=xe(n,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=xe(i,o,a),t[e+3+32]=t[e+2+64]=t[e+1+96]=xe(o,a,s),t[e+3+64]=t[e+2+96]=xe(a,s,c),t[e+3+96]=xe(s,c,c)}function Pe(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32],u=t[e+3-32];t[e+0+0]=t[e+1+64]=o+a+1>>1,t[e+1+0]=t[e+2+64]=a+s+1>>1,t[e+2+0]=t[e+3+64]=s+c+1>>1,t[e+3+0]=c+u+1>>1,t[e+0+96]=xe(i,n,r),t[e+0+64]=xe(n,r,o),t[e+0+32]=t[e+1+96]=xe(r,o,a),t[e+1+32]=t[e+2+96]=xe(o,a,s),t[e+2+32]=t[e+3+96]=xe(a,s,c),t[e+3+32]=xe(s,c,u)}function ke(t,e){var r=t[e+0-32],n=t[e+1-32],i=t[e+2-32],o=t[e+3-32],a=t[e+4-32],s=t[e+5-32],c=t[e+6-32],u=t[e+7-32];t[e+0+0]=r+n+1>>1,t[e+1+0]=t[e+0+64]=n+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+a+1>>1,t[e+0+32]=xe(r,n,i),t[e+1+32]=t[e+0+96]=xe(n,i,o),t[e+2+32]=t[e+1+96]=xe(i,o,a),t[e+3+32]=t[e+2+96]=xe(o,a,s),t[e+3+64]=xe(a,s,c),t[e+3+96]=xe(s,c,u)}function je(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=r+n+1>>1,t[e+2+0]=t[e+0+32]=n+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=xe(r,n,i),t[e+3+0]=t[e+1+32]=xe(n,i,o),t[e+3+32]=t[e+1+64]=xe(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function Ce(t,e){var r=t[e-1+0],n=t[e-1+32],i=t[e-1+64],o=t[e-1+96],a=t[e-1-32],s=t[e+0-32],c=t[e+1-32],u=t[e+2-32];t[e+0+0]=t[e+2+32]=r+a+1>>1,t[e+0+32]=t[e+2+64]=n+r+1>>1,t[e+0+64]=t[e+2+96]=i+n+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=xe(s,c,u),t[e+2+0]=xe(a,s,c),t[e+1+0]=t[e+3+32]=xe(r,a,s),t[e+1+32]=t[e+3+64]=xe(n,r,a),t[e+1+64]=t[e+3+96]=xe(i,n,r),t[e+1+96]=xe(o,i,n)}function Ie(t,e){var r;for(r=0;8>r;++r)n(t,e+32*r,t,e-32,8)}function Oe(t,e){var r;for(r=0;8>r;++r)i(t,e,t[e-1],8),e+=32}function Fe(t,e,r){var n;for(n=0;8>n;++n)i(e,r+32*n,t,8)}function Ee(t,e){var r,n=8;for(r=0;8>r;++r)n+=t[e+r-32]+t[e-1+32*r];Fe(n>>4,t,e)}function Te(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e+r-32];Fe(n>>3,t,e)}function Me(t,e){var r,n=4;for(r=0;8>r;++r)n+=t[e-1+32*r];Fe(n>>3,t,e)}function Re(t,e){Fe(128,t,e)}function Be(t,e,r){var n=t[e-r],i=t[e+0],o=3*(i-n)+On[1020+t[e-2*r]-t[e+r]],a=Fn[112+(o+4>>3)];t[e-r]=En[255+n+Fn[112+(o+3>>3)]],t[e+0]=En[255+i-a]}function De(t,e,r,n){var i=t[e+0],o=t[e+r];return Tn[255+t[e-2*r]-t[e-r]]>n||Tn[255+o-i]>n}function qe(t,e,r,n){return 4*Tn[255+t[e-r]-t[e+0]]+Tn[255+t[e-2*r]-t[e+r]]<=n}function Ue(t,e,r,n,i){var o=t[e-3*r],a=t[e-2*r],s=t[e-r],c=t[e+0],u=t[e+r],f=t[e+2*r],l=t[e+3*r];return 4*Tn[255+s-c]+Tn[255+a-u]>n?0:Tn[255+t[e-4*r]-o]<=i&&Tn[255+o-a]<=i&&Tn[255+a-s]<=i&&Tn[255+l-f]<=i&&Tn[255+f-u]<=i&&Tn[255+u-c]<=i}function ze(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)qe(t,e+n,r,i)&&Be(t,e+n,r)}function He(t,e,r,n){var i=2*n+1;for(n=0;16>n;++n)qe(t,e+n*r,1,i)&&Be(t,e+n*r,1)}function We(t,e,r,n){var i;for(i=3;0<i;--i)ze(t,e+=4*r,r,n)}function Ve(t,e,r,n){var i;for(i=3;0<i;--i)He(t,e+=4,r,n)}function Ge(t,e,r,n,i,o,a,s){for(o=2*o+1;0<i--;){if(Ue(t,e,r,o,a))if(De(t,e,r,s))Be(t,e,r);else{var c=t,u=e,f=r,l=c[u-2*f],h=c[u-f],d=c[u+0],p=c[u+f],g=c[u+2*f],v=27*(m=On[1020+3*(d-h)+On[1020+l-p]])+63>>7,b=18*m+63>>7,m=9*m+63>>7;c[u-3*f]=En[255+c[u-3*f]+m],c[u-2*f]=En[255+l+b],c[u-f]=En[255+h+v],c[u+0]=En[255+d-v],c[u+f]=En[255+p-b],c[u+2*f]=En[255+g-m]}e+=n}}function Ye(t,e,r,n,i,o,a,s){for(o=2*o+1;0<i--;){if(Ue(t,e,r,o,a))if(De(t,e,r,s))Be(t,e,r);else{var c=t,u=e,f=r,l=c[u-f],h=c[u+0],d=c[u+f],p=Fn[112+(4+(g=3*(h-l))>>3)],g=Fn[112+(g+3>>3)],v=p+1>>1;c[u-2*f]=En[255+c[u-2*f]+v],c[u-f]=En[255+l+g],c[u+0]=En[255+h-p],c[u+f]=En[255+d-v]}e+=n}}function Xe(t,e,r,n,i,o){Ge(t,e,r,1,16,n,i,o)}function Je(t,e,r,n,i,o){Ge(t,e,1,r,16,n,i,o)}function Ke(t,e,r,n,i,o){var a;for(a=3;0<a;--a)Ye(t,e+=4*r,r,1,16,n,i,o)}function $e(t,e,r,n,i,o){var a;for(a=3;0<a;--a)Ye(t,e+=4,1,r,16,n,i,o)}function Ze(t,e,r,n,i,o,a,s){Ge(t,e,i,1,8,o,a,s),Ge(r,n,i,1,8,o,a,s)}function Qe(t,e,r,n,i,o,a,s){Ge(t,e,1,i,8,o,a,s),Ge(r,n,1,i,8,o,a,s)}function tr(t,e,r,n,i,o,a,s){Ye(t,e+4*i,i,1,8,o,a,s),Ye(r,n+4*i,i,1,8,o,a,s)}function er(t,e,r,n,i,o,a,s){Ye(t,e+4,1,i,8,o,a,s),Ye(r,n+4,1,i,8,o,a,s)}function rr(){this.ba=new at,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ct,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){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 ir(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function or(){this.ua=0,this.Wa=new T,this.vb=new T,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new l}function ar(){this.xb=this.a=0,this.l=new Gt,this.ca=new at,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new x,this.Pb=0,this.wd=new x,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new or,this.ab=0,this.gc=a(4,ir),this.Oc=0}function sr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cr(t,e,r,n,i,o,a){for(t=null==t?0:t[e+0],e=0;e<a;++e)i[o+e]=t+r[n+e]&255,t=i[o+e]}function ur(t,e,r,n,i,o,a){var s;if(null==t)cr(null,null,r,n,i,o,a);else for(s=0;s<a;++s)i[o+s]=t[e+s]+r[n+s]&255}function fr(t,e,r,n,i,o,a){if(null==t)cr(null,null,r,n,i,o,a);else{var s,c=t[e+0],u=c,f=c;for(s=0;s<a;++s)u=f+(c=t[e+s])-u,f=r[n+s]+(-256&u?0>u?0:255:u)&255,u=c,i[o+s]=f}}function lr(t,r,i,a){var s=r.width,c=r.o;if(e(null!=t&&null!=r),0>i||0>=a||i+a>c)return null;if(!t.Cc){if(null==t.ga){var u;if(t.ga=new sr,(u=null==t.ga)||(u=r.width*r.o,e(0==t.Gb.length),t.Gb=o(u),t.Uc=0,null==t.Gb?u=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,u=1),u=!u),!u){u=t.ga;var f=t.Fa,l=t.P,h=t.qc,d=t.mb,p=t.nb,g=l+1,v=h-1,m=u.l;if(e(null!=f&&null!=d&&null!=r),vi[0]=null,vi[1]=cr,vi[2]=ur,vi[3]=fr,u.ca=d,u.tb=p,u.c=r.width,u.i=r.height,e(0<u.c&&0<u.i),1>=h)r=0;else if(u.$a=f[l+0]>>0&3,u.Z=f[l+0]>>2&3,u.Lc=f[l+0]>>4&3,l=f[l+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||l)r=0;else if(m.put=dt,m.ac=ht,m.bc=pt,m.ma=u,m.width=r.width,m.height=r.height,m.Da=r.Da,m.v=r.v,m.va=r.va,m.j=r.j,m.o=r.o,u.$a)t:{e(1==u.$a),r=kt();e:for(;;){if(null==r){r=0;break t}if(e(null!=u),u.mc=r,r.c=u.c,r.i=u.i,r.l=u.l,r.l.ma=u,r.l.width=u.c,r.l.height=u.i,r.a=0,b(r.m,f,g,v),!jt(u.c,u.i,1,r,null))break e;if(1==r.ab&&3==r.gc[0].hc&&Lt(r.s)?(u.ic=1,f=r.c*r.i,r.Ta=null,r.Ua=0,r.V=o(f),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(u.ic=0,r=Ct(r,u.c)),!r)break e;r=1;break t}u.mc=null,r=0}else r=v>=u.c*u.i;u=!r}if(u)return null;1!=t.ga.Lc?t.Ga=0:a=c-i}e(null!=t.ga),e(i+a<=c);t:{if(r=(f=t.ga).c,c=f.l.o,0==f.$a){if(g=t.rc,v=t.Vc,m=t.Fa,l=t.P+1+i*r,h=t.mb,d=t.nb+i*r,e(l<=t.P+t.qc),0!=f.Z)for(e(null!=vi[f.Z]),u=0;u<a;++u)vi[f.Z](g,v,m,l,h,d,r),g=h,v=d,d+=r,l+=r;else for(u=0;u<a;++u)n(h,d,m,l,r),g=h,v=d,d+=r,l+=r;t.rc=g,t.Vc=v}else{if(e(null!=f.mc),r=i+a,e(null!=(u=f.mc)),e(r<=u.i),u.C>=r)r=1;else if(f.ic||vr(),f.ic){f=u.V,g=u.Ba,v=u.c;var y=u.i,w=(m=1,l=u.$/v,h=u.$%v,d=u.m,p=u.s,u.$),x=v*y,A=v*r,N=p.wc,_=w<A?wt(p,h,l):null;e(w<=x),e(r<=y),e(Lt(p));e:for(;;){for(;!d.h&&w<A;){if(h&N||(_=wt(p,h,l)),e(null!=_),S(d),256>(y=mt(_.G[0],_.H[0],d)))f[g+w]=y,++w,++h>=v&&(h=0,++l<=r&&!(l%16)&&St(u,l));else{if(!(280>y)){m=0;break e}y=vt(y-256,d);var P,k=mt(_.G[4],_.H[4],d);if(S(d),!(w>=(k=bt(v,k=vt(k,d)))&&x-w>=y)){m=0;break e}for(P=0;P<y;++P)f[g+w+P]=f[g+w+P-k];for(w+=y,h+=y;h>=v;)h-=v,++l<=r&&!(l%16)&&St(u,l);w<A&&h&N&&(_=wt(p,h,l))}e(d.h==L(d))}St(u,l>r?r:l);break e}!m||d.h&&w<x?(m=0,u.a=d.h?5:3):u.$=w,r=m}else r=_t(u,u.V,u.Ba,u.c,u.i,r,It);if(!r){a=0;break t}}i+a>=c&&(t.Cc=1),a=1}if(!a)return null;if(t.Cc&&(null!=(a=t.ga)&&(a.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function hr(t,e,r,n,i,o){for(;0<i--;){var a,s=t,c=e+(r?1:0),u=t,f=e+(r?0:3);for(a=0;a<n;++a){var l=u[f+4*a];255!=l&&(l*=32897,s[c+4*a+0]=s[c+4*a+0]*l>>23,s[c+4*a+1]=s[c+4*a+1]*l>>23,s[c+4*a+2]=s[c+4*a+2]*l>>23)}e+=o}}function dr(t,e,r,n,i){for(;0<n--;){var o;for(o=0;o<r;++o){var a=t[e+2*o+0],s=15&(u=t[e+2*o+1]),c=4369*s,u=(240&u|u>>4)*c>>16;t[e+2*o+0]=(240&a|a>>4)*c>>16&240|(15&a|a<<4)*c>>16>>4&15,t[e+2*o+1]=240&u|s}e+=i}}function pr(t,e,r,n,i,o,a,s){var c,u,f=255;for(u=0;u<i;++u){for(c=0;c<n;++c){var l=t[e+c];o[a+4*c]=l,f&=l}e+=r,a+=s}return 255!=f}function gr(t,e,r,n,i){var o;for(o=0;o<i;++o)r[n+o]=t[e+o]>>8}function vr(){Ln=hr,Nn=dr,Sn=pr,_n=gr}function br(r,n,i){t[r]=function(t,r,o,a,s,c,u,f,l,h,d,p,g,v,b,m,y){var w,x=y-1>>1,A=s[c+0]|u[f+0]<<16,L=l[h+0]|d[p+0]<<16;e(null!=t);var N=3*A+L+131074>>2;for(n(t[r+0],255&N,N>>16,g,v),null!=o&&(N=3*L+A+131074>>2,n(o[a+0],255&N,N>>16,b,m)),w=1;w<=x;++w){var S=s[c+w]|u[f+w]<<16,_=l[h+w]|d[p+w]<<16,P=A+S+L+_+524296,k=P+2*(S+L)>>3;N=k+A>>1,A=(P=P+2*(A+_)>>3)+S>>1,n(t[r+2*w-1],255&N,N>>16,g,v+(2*w-1)*i),n(t[r+2*w-0],255&A,A>>16,g,v+(2*w-0)*i),null!=o&&(N=P+L>>1,A=k+_>>1,n(o[a+2*w-1],255&N,N>>16,b,m+(2*w-1)*i),n(o[a+2*w+0],255&A,A>>16,b,m+(2*w+0)*i)),A=S,L=_}1&y||(N=3*A+L+131074>>2,n(t[r+y-1],255&N,N>>16,g,v+(y-1)*i),null!=o&&(N=3*L+A+131074>>2,n(o[a+y-1],255&N,N>>16,b,m+(y-1)*i)))}}function mr(){bi[Mn]=mi,bi[Rn]=wi,bi[Bn]=yi,bi[Dn]=xi,bi[qn]=Ai,bi[Un]=Li,bi[zn]=Ni,bi[Hn]=wi,bi[Wn]=xi,bi[Vn]=Ai,bi[Gn]=Li}function yr(t){return t&~Ci?0>t?0:255:t>>ji}function wr(t,e){return yr((19077*t>>8)+(26149*e>>8)-14234)}function xr(t,e,r){return yr((19077*t>>8)-(6419*e>>8)-(13320*r>>8)+8708)}function Ar(t,e){return yr((19077*t>>8)+(33050*e>>8)-17685)}function Lr(t,e,r,n,i){n[i+0]=wr(t,r),n[i+1]=xr(t,e,r),n[i+2]=Ar(t,e)}function Nr(t,e,r,n,i){n[i+0]=Ar(t,e),n[i+1]=xr(t,e,r),n[i+2]=wr(t,r)}function Sr(t,e,r,n,i){var o=xr(t,e,r);e=o<<3&224|Ar(t,e)>>3,n[i+0]=248&wr(t,r)|o>>5,n[i+1]=e}function _r(t,e,r,n,i){var o=240&Ar(t,e)|15;n[i+0]=240&wr(t,r)|xr(t,e,r)>>4,n[i+1]=o}function Pr(t,e,r,n,i){n[i+0]=255,Lr(t,e,r,n,i+1)}function kr(t,e,r,n,i){Nr(t,e,r,n,i),n[i+3]=255}function jr(t,e,r,n,i){Lr(t,e,r,n,i),n[i+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function Cr(e,r,n){t[e]=function(t,e,i,o,a,s,c,u,f){for(var l=u+(-2&f)*n;u!=l;)r(t[e+0],i[o+0],a[s+0],c,u),r(t[e+1],i[o+0],a[s+0],c,u+n),e+=2,++o,++s,u+=2*n;1&f&&r(t[e+0],i[o+0],a[s+0],c,u)}}function Ir(t,e,r){return 0==r?0==t?0==e?6:5:0==e?4:0:r}function Or(t,e,r,n,i){switch(t>>>30){case 3:an(e,r,n,i,0);break;case 2:sn(e,r,n,i);break;case 1:un(e,r,n,i)}}function Fr(t,e){var r,o,a=e.M,s=e.Nb,c=t.oc,u=t.pc+40,f=t.oc,l=t.pc+584,h=t.oc,d=t.pc+600;for(r=0;16>r;++r)c[u+32*r-1]=129;for(r=0;8>r;++r)f[l+32*r-1]=129,h[d+32*r-1]=129;for(0<a?c[u-1-32]=f[l-1-32]=h[d-1-32]=129:(i(c,u-32-1,127,21),i(f,l-32-1,127,9),i(h,d-32-1,127,9)),o=0;o<t.za;++o){var p=e.ya[e.aa+o];if(0<o){for(r=-1;16>r;++r)n(c,u+32*r-4,c,u+32*r+12,4);for(r=-1;8>r;++r)n(f,l+32*r-4,f,l+32*r+4,4),n(h,d+32*r-4,h,d+32*r+4,4)}var g=t.Gd,v=t.Hd+o,b=p.ad,m=p.Hc;if(0<a&&(n(c,u-32,g[v].y,0,16),n(f,l-32,g[v].f,0,8),n(h,d-32,g[v].ea,0,8)),p.Za){var y=c,w=u-32+16;for(0<a&&(o>=t.za-1?i(y,w,g[v].y[15],4):n(y,w,g[v+1].y,0,4)),r=0;4>r;r++)y[w+128+r]=y[w+256+r]=y[w+384+r]=y[w+0+r];for(r=0;16>r;++r,m<<=2)y=c,w=u+Bi[r],hi[p.Ob[r]](y,w),Or(m,b,16*+r,y,w)}else if(y=Ir(o,a,p.Ob[0]),li[y](c,u),0!=m)for(r=0;16>r;++r,m<<=2)Or(m,b,16*+r,c,u+Bi[r]);for(r=p.Gc,y=Ir(o,a,p.Dd),di[y](f,l),di[y](h,d),m=b,y=f,w=l,255&(p=r>>0)&&(170&p?cn(m,256,y,w):fn(m,256,y,w)),p=h,m=d,255&(r>>=8)&&(170&r?cn(b,320,p,m):fn(b,320,p,m)),a<t.Ub-1&&(n(g[v].y,0,c,u+480,16),n(g[v].f,0,f,l+224,8),n(g[v].ea,0,h,d+224,8)),r=8*s*t.B,g=t.sa,v=t.ta+16*o+16*s*t.R,b=t.qa,p=t.ra+8*o+r,m=t.Ha,y=t.Ia+8*o+r,r=0;16>r;++r)n(g,v+r*t.R,c,u+32*r,16);for(r=0;8>r;++r)n(b,p+r*t.B,f,l+32*r,8),n(m,y+r*t.B,h,d+32*r,8)}}function Er(t,n,i,o,a,s,c,u,f){var l=[0],h=[0],d=0,p=null!=f?f.kd:0,g=null!=f?f:new nr;if(null==t||12>i)return 7;g.data=t,g.w=n,g.ha=i,n=[n],i=[i],g.gb=[g.gb];t:{var v=n,m=i,y=g.gb;if(e(null!=t),e(null!=m),e(null!=y),y[0]=0,12<=m[0]&&!r(t,v[0],"RIFF")){if(r(t,v[0]+8,"WEBP")){y=3;break t}var w=O(t,v[0]+4);if(12>w||4294967286<w){y=3;break t}if(p&&w>m[0]-8){y=7;break t}y[0]=w,v[0]+=12,m[0]-=12}y=0}if(0!=y)return y;for(w=0<g.gb[0],i=i[0];;){t:{var A=t;m=n,y=i;var L=l,N=h,S=v=[0];if((k=d=[d])[0]=0,8>y[0])y=7;else{if(!r(A,m[0],"VP8X")){if(10!=O(A,m[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var _=O(A,m[0]+8),P=1+I(A,m[0]+12);if(2147483648<=P*(A=1+I(A,m[0]+15))){y=3;break t}null!=S&&(S[0]=_),null!=L&&(L[0]=P),null!=N&&(N[0]=A),m[0]+=18,y[0]-=18,k[0]=1}y=0}}if(d=d[0],v=v[0],0!=y)return y;if(m=!!(2&v),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&v)),null!=c&&(c[0]=m),null!=u&&(u[0]=0),c=l[0],v=h[0],d&&m&&null==f){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!r(t,n[0],"ALPH")){i=[i],g.na=[g.na],g.P=[g.P],g.Sa=[g.Sa];t:{_=t,y=n,w=i;var k=g.gb;L=g.na,N=g.P,S=g.Sa,P=22,e(null!=_),e(null!=w),A=y[0];var j=w[0];for(e(null!=L),e(null!=S),L[0]=null,N[0]=null,S[0]=0;;){if(y[0]=A,w[0]=j,8>j){y=7;break t}var C=O(_,A+4);if(4294967286<C){y=3;break t}var F=8+C+1&-2;if(P+=F,0<k&&P>k){y=3;break t}if(!r(_,A,"VP8 ")||!r(_,A,"VP8L")){y=0;break t}if(j[0]<F){y=7;break t}r(_,A,"ALPH")||(L[0]=_,N[0]=A+8,S[0]=C),A+=F,j-=F}}if(i=i[0],g.na=g.na[0],g.P=g.P[0],g.Sa=g.Sa[0],0!=y)break}i=[i],g.Ja=[g.Ja],g.xa=[g.xa];t:if(k=t,y=n,w=i,L=g.gb[0],N=g.Ja,S=g.xa,_=y[0],A=!r(k,_,"VP8 "),P=!r(k,_,"VP8L"),e(null!=k),e(null!=w),e(null!=N),e(null!=S),8>w[0])y=7;else{if(A||P){if(k=O(k,_+4),12<=L&&k>L-12){y=3;break t}if(p&&k>w[0]-8){y=7;break t}N[0]=k,y[0]+=8,w[0]-=8,S[0]=P}else S[0]=5<=w[0]&&47==k[_+0]&&!(k[_+4]>>5),N[0]=w[0];y=0}if(i=i[0],g.Ja=g.Ja[0],g.xa=g.xa[0],n=n[0],0!=y)break;if(4294967286<g.Ja)return 3;if(null==u||m||(u[0]=g.xa?2:1),c=[c],v=[v],g.xa){if(5>i){y=7;break}u=c,p=v,m=s,null==t||5>i?t=0:5<=i&&47==t[n+0]&&!(t[n+4]>>5)?(w=[0],k=[0],L=[0],b(N=new x,t,n,i),gt(N,w,k,L)?(null!=u&&(u[0]=w[0]),null!=p&&(p[0]=k[0]),null!=m&&(m[0]=L[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}u=v,null==t||10>i||!Jt(t,n+3,i-3)?t=0:(p=t[n+0]|t[n+1]<<8|t[n+2]<<16,m=16383&(t[n+7]<<8|t[n+6]),t=16383&(t[n+9]<<8|t[n+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=g.Ja||!m||!t?t=0:(c&&(c[0]=m),u&&(u[0]=t),t=1))}if(!t)return 3;if(c=c[0],v=v[0],d&&(l[0]!=c||h[0]!=v))return 3;null!=f&&(f[0]=g,f.offset=n-f.w,e(4294967286>n-f.w),e(f.offset==f.ha-i));break}return 0==y||7==y&&d&&null==f?(null!=s&&(s[0]|=null!=g.na&&0<g.na.length),null!=o&&(o[0]=c),null!=a&&(a[0]=v),0):y}function Tr(t,e,r){var n=e.width,i=e.height,o=0,a=0,s=n,c=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,c=t.bd,o=t.v,a=t.j,11>r||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=c||o+s>n||a+c>i))return 0;if(e.v=o,e.j=a,e.va=o+s,e.o=a+c,e.U=s,e.T=c,e.da=null!=t&&0<t.da,e.da){if(!M(s,c,r=[t.ib],o=[t.hb]))return 0;e.ib=r[0],e.hb=o[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*n/4&&e.hb<3*i/4,e.Kb=0),1}function Mr(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Rr(t,e,r,n){if(null==n||0>=t||0>=e)return 2;if(null!=r){if(r.Da){var i=r.cd,a=r.bd,s=-2&r.v,c=-2&r.j;if(0>s||0>c||0>=i||0>=a||s+i>t||c+a>e)return 2;t=i,e=a}if(r.da){if(!M(t,e,i=[r.ib],a=[r.hb]))return 2;t=i[0],e=a[0]}}n.width=t,n.height=e;t:{var u=n.width,f=n.height;if(t=n.S,0>=u||0>=f||!(t>=Mn&&13>t))t=2;else{if(0>=n.Rd&&null==n.sd){s=a=i=e=0;var l=(c=u*zi[t])*f;if(11>t||(a=(f+1)/2*(e=(u+1)/2),12==t&&(s=(i=u)*f)),null==(f=o(l+2*a+s))){t=1;break t}n.sd=f,11>t?((u=n.f.RGBA).eb=f,u.fb=0,u.A=c,u.size=l):((u=n.f.kb).y=f,u.O=0,u.fa=c,u.Fd=l,u.f=f,u.N=0+l,u.Ab=e,u.Cd=a,u.ea=f,u.W=0+l+a,u.Db=e,u.Ed=a,12==t&&(u.F=f,u.J=0+l+2*a),u.Tc=s,u.lb=i)}if(e=1,i=n.S,a=n.width,s=n.height,i>=Mn&&13>i)if(11>i)t=n.f.RGBA,e&=(c=Math.abs(t.A))*(s-1)+a<=t.size,e&=c>=a*zi[i],e&=null!=t.eb;else{t=n.f.kb,c=(a+1)/2,l=(s+1)/2,u=Math.abs(t.fa),f=Math.abs(t.Ab);var h=Math.abs(t.Db),d=Math.abs(t.lb),p=d*(s-1)+a;e&=u*(s-1)+a<=t.Fd,e&=f*(l-1)+c<=t.Cd,e=(e&=h*(l-1)+c<=t.Ed)&u>=a&f>=c&h>=c,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=a,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=r&&r.fd&&(t=Mr(n)),t}var Br=64,Dr=[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],qr=24,Ur=32,zr=8,Hr=[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];D("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,r){return e[r+0]},t.Predictor3=function(t,e,r){return e[r+1]},t.Predictor4=function(t,e,r){return e[r-1]},t.Predictor5=function(t,e,r){return U(U(t,e[r+1]),e[r+0])},t.Predictor6=function(t,e,r){return U(t,e[r-1])},t.Predictor7=function(t,e,r){return U(t,e[r+0])},t.Predictor8=function(t,e,r){return U(e[r-1],e[r+0])},t.Predictor9=function(t,e,r){return U(e[r+0],e[r+1])},t.Predictor10=function(t,e,r){return U(U(t,e[r-1]),U(e[r+0],e[r+1]))},t.Predictor11=function(t,e,r){var n=e[r+0];return 0>=W(n>>24&255,t>>24&255,(e=e[r-1])>>24&255)+W(n>>16&255,t>>16&255,e>>16&255)+W(n>>8&255,t>>8&255,e>>8&255)+W(255&n,255&t,255&e)?n:t},t.Predictor12=function(t,e,r){var n=e[r+0];return(z((t>>24&255)+(n>>24&255)-((e=e[r-1])>>24&255))<<24|z((t>>16&255)+(n>>16&255)-(e>>16&255))<<16|z((t>>8&255)+(n>>8&255)-(e>>8&255))<<8|z((255&t)+(255&n)-(255&e)))>>>0},t.Predictor13=function(t,e,r){var n=e[r-1];return(H((t=U(t,e[r+0]))>>24&255,n>>24&255)<<24|H(t>>16&255,n>>16&255)<<16|H(t>>8&255,n>>8&255)<<8|H(t>>0&255,n>>0&255))>>>0};var Wr=t.PredictorAdd0;t.PredictorAdd1=V,D("Predictor2","PredictorAdd2"),D("Predictor3","PredictorAdd3"),D("Predictor4","PredictorAdd4"),D("Predictor5","PredictorAdd5"),D("Predictor6","PredictorAdd6"),D("Predictor7","PredictorAdd7"),D("Predictor8","PredictorAdd8"),D("Predictor9","PredictorAdd9"),D("Predictor10","PredictorAdd10"),D("Predictor11","PredictorAdd11"),D("Predictor12","PredictorAdd12"),D("Predictor13","PredictorAdd13");var Vr=t.PredictorAdd2;J("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),J("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Gr,Yr=t.ColorIndexInverseTransform,Xr=t.MapARGB,Jr=t.VP8LColorIndexInverseTransformAlpha,Kr=t.MapAlpha,$r=t.VP8LPredictorsAdd=[];$r.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Zr,Qr,tn,en,rn,nn,on,an,sn,cn,un,fn,ln,hn,dn,pn,gn,vn,bn,mn,yn,wn,xn,An,Ln,Nn,Sn,_n,Pn=o(511),kn=o(2041),jn=o(225),Cn=o(767),In=0,On=kn,Fn=jn,En=Cn,Tn=Pn,Mn=0,Rn=1,Bn=2,Dn=3,qn=4,Un=5,zn=6,Hn=7,Wn=8,Vn=9,Gn=10,Yn=[2,3,7],Xn=[3,3,11],Jn=[280,256,256,256,40],Kn=[0,1,1,1,0],$n=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[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],Qn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[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],ri=[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],ni=null,ii=[[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]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ai=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ci=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ui=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],fi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],li=[],hi=[],di=[],pi=1,gi=2,vi=[],bi=[];br("UpsampleRgbLinePair",Lr,3),br("UpsampleBgrLinePair",Nr,3),br("UpsampleRgbaLinePair",jr,4),br("UpsampleBgraLinePair",kr,4),br("UpsampleArgbLinePair",Pr,4),br("UpsampleRgba4444LinePair",_r,2),br("UpsampleRgb565LinePair",Sr,2);var mi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,wi=t.UpsampleRgbaLinePair,xi=t.UpsampleBgraLinePair,Ai=t.UpsampleArgbLinePair,Li=t.UpsampleRgba4444LinePair,Ni=t.UpsampleRgb565LinePair,Si=16,_i=1<<Si-1,Pi=-227,ki=482,ji=6,Ci=(256<<ji)-1,Ii=0,Oi=o(256),Fi=o(256),Ei=o(256),Ti=o(256),Mi=o(ki-Pi),Ri=o(ki-Pi);Cr("YuvToRgbRow",Lr,3),Cr("YuvToBgrRow",Nr,3),Cr("YuvToRgbaRow",jr,4),Cr("YuvToBgraRow",kr,4),Cr("YuvToArgbRow",Pr,4),Cr("YuvToRgba4444Row",_r,2),Cr("YuvToRgb565Row",Sr,2);var Bi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Di=[0,2,8],qi=[8,7,6,4,4,2,2,2,1,1,1,1],Ui=1;this.WebPDecodeRGBA=function(t,r,n,i,o){var a=Rn,s=new rr,c=new at;s.ba=c,c.S=a,c.width=[c.width],c.height=[c.height];var u=c.width,f=c.height,l=new st;if(null==l||null==t)var h=2;else e(null!=l),h=Er(t,r,n,l.width,l.height,l.Pd,l.Qd,l.format,null);if(0!=h?u=0:(null!=u&&(u[0]=l.width[0]),null!=f&&(f[0]=l.height[0]),u=1),u){c.width=c.width[0],c.height=c.height[0],null!=i&&(i[0]=c.width),null!=o&&(o[0]=c.height);t:{if(i=new Gt,(o=new nr).data=t,o.w=r,o.ha=n,o.kd=1,r=[0],e(null!=o),(0==(t=Er(o.data,o.w,o.ha,null,null,null,r,null,o))||7==t)&&r[0]&&(t=4),0==(r=t)){if(e(null!=s),i.data=o.data,i.w=o.w+o.offset,i.ha=o.ha-o.offset,i.put=dt,i.ac=ht,i.bc=pt,i.ma=s,o.xa){if(null==(t=kt())){s=1;break t}if(function(t,r){var n=[0],i=[0],o=[0];e:for(;;){if(null==t)return 0;if(null==r)return t.a=2,0;if(t.l=r,t.a=0,b(t.m,r.data,r.w,r.ha),!gt(t.m,n,i,o)){t.a=3;break e}if(t.xb=gi,r.width=n[0],r.height=i[0],!jt(n[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(r=Rr(i.width,i.height,s.Oa,s.ba))){e:{i=t;r:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(n=i.l)),e(null!=(o=n.ma)),0!=i.xb){if(i.ca=o.ba,i.tb=o.tb,e(null!=i.ca),!Tr(o.Oa,n,Dn)){i.a=2;break r}if(!Ct(i,n.width))break r;if(n.da)break r;if((n.da||nt(i.ca.S))&&vr(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&vr()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!F(i.s.vb,i.s.Wa.Xa)){i.a=1;break r}i.xb=0}if(!_t(i,i.V,i.Ba,i.c,i.i,n.o,At))break r;o.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(r=t.a)}else r=t.a}else{if(null==(t=new Yt)){s=1;break t}if(t.Fa=o.na,t.P=o.P,t.qc=o.Sa,Kt(t,i)){if(0==(r=Rr(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,n=s.Oa,e(null!=(o=t)),null!=n){if(0<(u=0>(u=n.Md)?0:100<u?255:255*u/100)){for(f=l=0;4>f;++f)12>(h=o.pb[f]).lc&&(h.ia=u*qi[0>h.lc?0:h.lc]>>3),l|=h.ia;l&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=n.Id,100<o.Ga?o.Ga=100:0>o.Ga&&(o.Ga=0)}Qt(t,i)||(r=t.a)}}else r=t.a}0==r&&null!=s.Oa&&s.Oa.fd&&(r=Mr(s.ba))}s=r}a=0!=s?null:11>a?c.f.RGBA.eb:c.f.kb.y}else a=null;return a};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(t,e){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(t[e++]);return r}function f(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new c;var h=[0],d=[0],p=[],g=new c,v=t,b=function(t,e){var r={},n=0,i=!1,o=0,a=0;if(r.frames=[],!
/** @license
   * Copyright (c) 2017 Dominik Homberger
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  https://webpjs.appspot.com
  WebPRiffParser dominikhlbg@gmail.com
  */
function(t,e,r,n){for(var i=0;i<n;i++)if(t[e+i]!=r.charCodeAt(i))return!0;return!1}(t,e,"RIFF",4)){var s,c;for(l(t,e+=4),e+=8;e<t.length;){var h=u(t,e),d=l(t,e+=4);e+=4;var p=d+(1&d);switch(h){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(b=r.frames[n]).src_off=i?a:e-8,b.src_size=o+d+8,n++,i&&(i=!1,o=0,a=0);break;case"VP8X":(b=r.header={}).feature_flags=t[e];var g=e+4;b.canvas_width=1+f(t,g),g+=3,b.canvas_height=1+f(t,g),g+=3;break;case"ALPH":i=!0,o=p+8,a=e-8;break;case"ANIM":(b=r.header).bgcolor=l(t,e),g=e+4,b.loop_count=(s=t)[(c=g)+0]<<0|s[c+1]<<8,g+=2;break;case"ANMF":var v,b;(b=r.frames[n]={}).offset_x=2*f(t,e),e+=3,b.offset_y=2*f(t,e),e+=3,b.width=1+f(t,e),e+=3,b.height=1+f(t,e),e+=3,b.duration=f(t,e),e+=3,v=t[e++],b.dispose=1&v,b.blend=v>>1&1}"ANMF"!=h&&(e+=p)}return r}}(v,0);b.response=v,b.rgbaoutput=!0,b.dataurl=!1;var m=b.header?b.header:null,y=b.frames?b.frames:null;if(m){m.loop_counter=m.loop_count,h=[m.canvas_height],d=[m.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var x=y[0],A=g.WebPDecodeRGBA(v,x.src_off,x.src_size,d,h);x.rgba=A,x.imgwidth=d[0],x.imgheight=h[0];for(var L=0;L<d[0]*h[0]*4;L++)p[L]=A[L];return this.width=d,this.height=h,this.data=p,this}!function(t){var e=function(){return"function"==typeof i["b"]},r=function(e,r,o,f){var l=4,h=s;switch(f){case t.image_compression.FAST:l=1,h=a;break;case t.image_compression.MEDIUM:l=6,h=c;break;case t.image_compression.SLOW:l=9,h=u}e=n(e,r,o,h);var d=Object(i["b"])(e,{level:l});return t.__addimage__.arrayBufferToBinaryString(d)},n=function(t,e,r,n){for(var i,o,a,s=t.length/e,c=new Uint8Array(t.length+s),u=l(),f=0;f<s;f+=1){if(a=f*e,i=t.subarray(a,a+e),n)c.set(n(i,r,o),a+f);else{for(var d,p=u.length,g=[];d<p;d+=1)g[d]=u[d](i,r,o);var v=h(g.concat());c.set(g[v],a+f)}o=i}return c},o=function(t){var e=Array.apply([],t);return e.unshift(0),e},a=function(t,e){var r,n=[],i=t.length;n[0]=1;for(var o=0;o<i;o+=1)r=t[o-e]||0,n[o+1]=t[o]-r+256&255;return n},s=function(t,e,r){var n,i=[],o=t.length;i[0]=2;for(var a=0;a<o;a+=1)n=r&&r[a]||0,i[a+1]=t[a]-n+256&255;return i},c=function(t,e,r){var n,i,o=[],a=t.length;o[0]=3;for(var s=0;s<a;s+=1)n=t[s-e]||0,i=r&&r[s]||0,o[s+1]=t[s]+256-(n+i>>>1)&255;return o},u=function(t,e,r){var n,i,o,a,s=[],c=t.length;s[0]=4;for(var u=0;u<c;u+=1)n=t[u-e]||0,i=r&&r[u]||0,o=r&&r[u-e]||0,a=f(n,i,o),s[u+1]=t[u]-a+256&255;return s},f=function(t,e,r){if(t===e&&e===r)return t;var n=Math.abs(e-r),i=Math.abs(t-r),o=Math.abs(t+e-r-r);return n<=i&&n<=o?t:i<=o?e:r},l=function(){return[o,a,s,c,u]},h=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,i,o,a){var s,c,u,f,l,h,d,p,g,v,b,m,y,w,x,A=this.decode.FLATE_DECODE,L="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(u=new $t(n)).imgData,c=u.bits,s=u.colorSpace,l=u.colors,-1!==[4,6].indexOf(u.colorType)){if(8===u.bits){g=(p=32==u.pixelBitlength?new Uint32Array(u.decodePixels().buffer):16==u.pixelBitlength?new Uint16Array(u.decodePixels().buffer):new Uint8Array(u.decodePixels().buffer)).length,b=new Uint8Array(g*u.colors),v=new Uint8Array(g);var N,S=u.pixelBitlength-u.bits;for(w=0,x=0;w<g;w++){for(y=p[w],N=0;N<S;)b[x++]=y>>>N&255,N+=u.bits;v[w]=y>>>N&255}}if(16===u.bits){g=(p=new Uint32Array(u.decodePixels().buffer)).length,b=new Uint8Array(g*(32/u.pixelBitlength)*u.colors),v=new Uint8Array(g*(32/u.pixelBitlength)),m=u.colors>1,w=0,x=0;for(var _=0;w<g;)y=p[w++],b[x++]=y>>>0&255,m&&(b[x++]=y>>>16&255,y=p[w++],b[x++]=y>>>0&255),v[_++]=y>>>16&255;c=8}a!==t.image_compression.NONE&&e()?(n=r(b,u.width*u.colors,u.colors,a),d=r(v,u.width,1,a)):(n=b,d=v,A=void 0)}if(3===u.colorType&&(s=this.color_spaces.INDEXED,h=u.palette,u.transparency.indexed)){var P=u.transparency.indexed,k=0;for(w=0,g=P.length;w<g;++w)k+=P[w];if((k/=255)===g-1&&-1!==P.indexOf(0))f=[P.indexOf(0)];else if(k!==g){for(p=u.decodePixels(),v=new Uint8Array(p.length),w=0,g=p.length;w<g;w++)v[w]=P[p[w]];d=r(v,u.width,1)}}var j=function(e){var r;switch(e){case t.image_compression.FAST:r=11;break;case t.image_compression.MEDIUM:r=13;break;case t.image_compression.SLOW:r=14;break;default:r=12}return r}(a);return A===this.decode.FLATE_DECODE&&(L="/Predictor "+j+" "),L+="/Colors "+l+" /BitsPerComponent "+c+" /Columns "+u.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:o,data:n,index:i,filter:A,decodeParameters:L,transparency:f,palette:h,sMask:d,predictor:j,width:u.width,height:u.height,bitsPerComponent:c,colorSpace:s}}}}(B.API),function(t){t.processGIF89A=function(e,r,n,i){var o=new Zt(e),a=o.width,s=o.height,c=[];o.decodeAndBlitFrameRGBA(0,c);var u={data:c,width:a,height:s},f=new te(100).encode(u,100);return t.processJPEG.call(this,f,r,n,i)},t.processGIF87A=t.processGIF89A}(B.API),ee.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,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ee.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){s.log("bit decode error:"+t)}},ee.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),r=e%4;for(t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var c=this.palette[o>>7-s&1];this.data[a+4*s]=c.blue,this.data[a+4*s+1]=c.green,this.data[a+4*s+2]=c.red,this.data[a+4*s+3]=255}0!==r&&(this.pos+=4-r)}},ee.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*i*4,s=o>>4,c=15&o,u=this.palette[s];if(this.data[a]=u.blue,this.data[a+1]=u.green,this.data[a+2]=u.red,this.data[a+3]=255,2*i+1>=this.width)break;u=this.palette[c],this.data[a+4]=u.blue,this.data[a+4+1]=u.green,this.data[a+4+2]=u.red,this.data[a+4+3]=255}0!==e&&(this.pos+=4-e)}},ee.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*n;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==t&&(this.pos+=4-t)}},ee.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,c=(o>>10&e)/e*255|0,u=o>>15?255:0,f=n*this.width*4+4*i;this.data[f]=c,this.data[f+1]=s,this.data[f+2]=a,this.data[f+3]=u}this.pos+=t}},ee.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,c=(a>>5&r)/r*255|0,u=(a>>11)/e*255|0,f=i*this.width*4+4*o;this.data[f]=u,this.data[f+1]=c,this.data[f+2]=s,this.data[f+3]=255}this.pos+=t}},ee.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*r;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},ee.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=a}},ee.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2018 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){t.processBMP=function(e,r,n,i){var o=new ee(e,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new te(100).encode(c,100);return t.processJPEG.call(this,u,r,n,i)}}(B.API),re.prototype.getData=function(){return this.data},
/**
 * @license
 * Copyright (c) 2019 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){t.processWEBP=function(e,r,n,i){var o=new re(e,!1),a=o.width,s=o.height,c={data:o.getData(),width:a,height:s},u=new te(100).encode(c,100);return t.processJPEG.call(this,u,r,n,i)}}(B.API),B.API.processRGBA=function(t,e,r){for(var n=t.data,i=n.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,c=0,u=0;u<i;u+=4){var f=n[u],l=n[u+1],h=n[u+2],d=n[u+3];o[s++]=f,o[s++]=l,o[s++]=h,a[c++]=d}var p=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:p,index:e,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},B.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Gt=B.API,Yt=Gt.getCharWidthsArray=function(t,e){var r,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),c=e.widths?e.widths:o.metadata.Unicode.widths,u=c.fof?c.fof:1,f=e.kerning?e.kerning:o.metadata.Unicode.kerning,l=f.fof?f.fof:1,h=!1!==e.doKerning,d=0,p=t.length,g=0,v=c[0]||u,b=[];for(r=0;r<p;r++)i=t.charCodeAt(r),"function"==typeof o.metadata.widthOfString?b.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):(d=h&&"object"===n()(f[i])&&!isNaN(parseInt(f[i][g],10))?f[i][g]/l:0,b.push((c[i]||v)/u+d)),g=i;return b},Xt=Gt.getStringUnitWidth=function(t,e){var r=(e=e||{}).fontSize||this.internal.getFontSize(),n=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Gt.processArabic&&(t=Gt.processArabic(t)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(t,r,i)/r:Yt.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Jt=function(t,e,r,n){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<r;)s+=e[o],o++;i.push(t.slice(0,o));var c=o;for(s=0;o!==a;)s+e[o]>n&&(i.push(t.slice(c,o)),s=0,c=o),s+=e[o],o++;return c!==o&&i.push(t.slice(c,o)),i},Kt=function(t,e,r){r||(r={});var n,i,o,a,s,c,u,f=[],l=[f],h=r.textIndent||0,d=0,p=0,g=t.split(" "),v=Yt.apply(this,[" ",r])[0];if(c=-1===r.lineIndent?g[0].length+2:r.lineIndent||0){var b=Array(c).join(" "),m=[];g.map((function(t){(t=t.split(/\s*\n/)).length>1?m=m.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):m.push(t[0])})),g=m,c=Xt.apply(this,[b,r])}for(o=0,a=g.length;o<a;o++){var y=0;if(n=g[o],c&&"\n"==n[0]&&(n=n.substr(1),y=1),h+d+(p=(i=Yt.apply(this,[n,r])).reduce((function(t,e){return t+e}),0))>e||y){if(p>e){for(s=Jt.apply(this,[n,i,e-(h+d),e]),f.push(s.shift()),f=[s.pop()];s.length;)l.push([s.shift()]);p=i.slice(n.length-(f[0]?f[0].length:0)).reduce((function(t,e){return t+e}),0)}else f=[n];l.push(f),h=p+c,d=v}else f.push(n),h+=d+p,d=v}return u=c?function(t,e){return(e?b:"")+t.join(" ")}:function(t){return t.join(" ")},l.map(u)},Gt.splitTextToSize=function(t,e,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=r.lineIndent;var s,c,u=[];for(s=0,c=n.length;s<c;s++)u=u.concat(Kt.apply(this,[n[s],a,o]));return u},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",r={},i={},o=0;o<e.length;o++)r[e[o]]="0123456789abcdef"[o],i["0123456789abcdef"[o]]=e[o];var a=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var e,r,o,c,u=["{"];for(var f in t){if(e=t[f],isNaN(parseInt(f,10))?r="'"+f+"'":(f=parseInt(f,10),r=(r=a(f).slice(2)).slice(0,-1)+i[r.slice(-1)]),"number"==typeof e)e<0?(o=a(e).slice(3),c="-"):(o=a(e).slice(2),c=""),o=c+o.slice(0,-1)+i[o.slice(-1)];else{if("object"!==n()(e))throw new Error("Don't know what to do with value type "+n()(e)+".");o=s(e)}u.push(r+o)}return u.push("}"),u.join("")},c=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,n,i,o,a={},s=1,c=a,u=[],f="",l="",h=t.length-1,d=1;d<h;d+=1)"'"==(o=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(o):"{"==o?(u.push([c,i]),c={},i=void 0):"}"==o?((n=u.pop())[0][n[1]]=c,i=void 0,c=n[0]):"-"==o?s=-1:void 0===i?r.hasOwnProperty(o)?(f+=r[o],i=parseInt(f,16)*s,s=1,f=""):f+=o:r.hasOwnProperty(o)?(l+=r[o],c[i]=parseInt(l,16)*s,s=1,i=void 0,l=""):l+=o;return a},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},l={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}}}")}};t.events.push(["addFont",function(t){var e=t.font,r=l.Unicode[e.postScriptName];r&&(e.metadata.Unicode={},e.metadata.Unicode.widths=r.widths,e.metadata.Unicode.kerning=r.kerning);var n=f.Unicode[e.postScriptName];n&&(e.metadata.Unicode.encoding=n,e.encoding=n.codePages[0])}])}(B.API),
/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e=function(t){for(var e=t.length,r=new Uint8Array(e),n=0;n<e;n++)r[n]=t.charCodeAt(n);return r};t.API.events.push(["addFont",function(r){var n=void 0,i=r.font,o=r.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(n=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?e(n):e(l(n)),r.metadata=t.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(i,n)}}])}(B),
/** @license
 * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */
function(t){function e(){return(o.canvg?Promise.resolve(o.canvg):r.e("chunk-024814c9").then(r.bind(null,"0d73"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}B.API.addSvgAsImage=function(t,r,n,i,o,a,c,u){if(isNaN(r)||isNaN(n))throw s.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw s.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var f=document.createElement("canvas");f.width=i,f.height=o;var l=f.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,f.width,f.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(l,t,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){d.addImage(f.toDataURL("image/jpeg",1),r,n,i,o,c,u)}))}}(),B.API.putTotalPages=function(t){var e,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),r=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(e,r);return this},B.API.viewerPreferences=function(t,e){var r;t=t||{},e=e||!1;var i,o,a,s={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}},c=Object.keys(s),u=[],f=0,l=0,h=0;function d(t,e){var r,n=!1;for(r=0;r<t.length;r+=1)t[r]===e&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=c.length;for(h=0;h<p;h+=1)r[c[h]].value=r[c[h]].defaultValue,r[c[h]].explicitSet=!1}if("object"===n()(t))for(o in t)if(a=t[o],d(c,o)&&void 0!==a){if("boolean"===r[o].type&&"boolean"==typeof a)r[o].value=a;else if("name"===r[o].type&&d(r[o].valueSet,a))r[o].value=a;else if("integer"===r[o].type&&Number.isInteger(a))r[o].value=a;else if("array"===r[o].type){for(f=0;f<a.length;f+=1)if(i=!0,1===a[f].length&&"number"==typeof a[f][0])u.push(String(a[f]-1));else if(a[f].length>1){for(l=0;l<a[f].length;l+=1)"number"!=typeof a[f][l]&&(i=!1);!0===i&&u.push([a[f][0]-1,a[f][1]-1].join(" "))}r[o].value="["+u.join(" ")+"]"}else r[o].value=r[o].defaultValue;r[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in r)!0===r[t].explicitSet&&("name"===r[t].type?e.push("/"+t+" /"+r[t].value):e.push("/"+t+" "+r[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this
/** ====================================================================
 * @license
 * jsPDF XMP metadata plugin
 * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */},function(t){var e=function(){var t='<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=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(t)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=r.length+n.length+i.length+e.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+r+n+i+o),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",e)),this}}(B.API),function(t){var e=t.API,r=e.pdfEscape16=function(t,e){for(var r,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(r=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(r),e.metadata.toUnicode[r]=t.charCodeAt(a),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(e.metadata.widthOfGlyph(r),10)])),"0"==r)return o.join("");r=r.toString(16),o.push(i[4-r.length],r)}return o.join("")},n=function(t){var e,r,n,i,o,a,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],a=0,s=(r=Object.keys(t).sort((function(t,e){return t-e}))).length;a<s;a++)e=r[a],n.length>=100&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),n.push("<"+e+"><"+i+">"));return n.length&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,o=e.newObject,a=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"Identity-H"===r.encoding){for(var s=r.metadata.Unicode.widths,c=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),u="",f=0;f<c.length;f++)u+=String.fromCharCode(c[f]);var l=o();a({data:u,addLength1:!0,objectId:l}),i("endobj");var h=o();a({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var d=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+O(r.fontName)),i("/FontFile2 "+l+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/Flags "+r.metadata.flags),i("/StemV "+r.metadata.stemV),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i(">>"),i("endobj");var p=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+O(r.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+r.encoding+")"),i(">>"),i(">>"),i("endobj"),r.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+h+" 0 R"),i("/BaseFont /"+O(r.fontName)),i("/Encoding /"+r.encoding),i("/DescendantFonts ["+p+" 0 R]"),i(">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var r=e.font,i=e.out,o=e.newObject,a=e.putStream;if(r.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var s=r.metadata.rawData,c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var f=o();a({data:c,addLength1:!0,objectId:f}),i("endobj");var l=o();a({data:n(r.metadata.toUnicode),addLength1:!0,objectId:l}),i("endobj");var h=o();i("<<"),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i("/StemV "+r.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+f+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(r.metadata.bbox)),i("/FontName /"+O(r.fontName)),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i(">>"),i("endobj"),r.objectNumber=o();for(var d=0;d<r.metadata.hmtx.widths.length;d++)r.metadata.hmtx.widths[d]=parseInt(r.metadata.hmtx.widths[d]*(1e3/r.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+l+" 0 R/BaseFont/"+O(r.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),i("endobj"),r.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,n=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},c=s.pdfEscape,u=s.activeFontKey,f=s.fonts,l=u,h="",d=0,p="",g=f[l].encoding;if("Identity-H"!==f[l].encoding)return{text:n,x:i,y:o,options:a,mutex:s};for(p=n,l=u,Array.isArray(n)&&(p=n[0]),d=0;d<p.length;d+=1)f[l].metadata.hasOwnProperty("cmap")&&(e=f[l].metadata.cmap.unicode.codeMap[p[d].charCodeAt(0)]),e||p[d].charCodeAt(0)<256&&f[l].metadata.hasOwnProperty("Unicode")?h+=p[d]:h+="";var v="";return parseInt(l.slice(1))<14||"WinAnsiEncoding"===g?v=c(h,l).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===g&&(v=r(h,f[l])),s.isHex=!0,{text:v,x:i,y:o,options:a,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",r=[],n={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var o=0;for(o=0;o<e.length;o+=1)Array.isArray(e[o])&&3===e[o].length?r.push([i(Object.assign({},n,{text:e[o][0]})).text,e[o][1],e[o][2]]):r.push(i(Object.assign({},n,{text:e[o]})).text);t.text=r}else t.text=i(Object.assign({},n,{text:e})).text}])}(B),
/**
 * @license
 * jsPDF virtual FileSystem functionality
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */
function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(B.API),
/**
 * @license
 * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
 * MIT License
 */
function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var r,n,i,o,a,s,c,u=e,f=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[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]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],g=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),v=!1,b=0;this.__bidiEngine__={};var m=function(t){var e=t.charCodeAt(),r=e>>8,n=d[r];return void 0!==n?u[256*n+(255&e)]:252===r||253===r?"AL":g.test(r)?"L":8===r?"R":"N"},y=function(t){for(var e,r=0;r<t.length;r++){if("L"===(e=m(t.charAt(r))))return!1;if("R"===e)return!0}return!1},w=function(t,e,a,s){var c,u,f,l,h=e[s];switch(h){case"L":case"R":v=!1;break;case"N":case"AN":break;case"EN":v&&(h="AN");break;case"AL":v=!0,h="R";break;case"WS":h="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(c=a[s-1])&&"AN"!==c||"EN"!==(u=e[s+1])&&"AN"!==u?h="N":v&&(u="AN"),h=u===c?u:"N";break;case"ES":h="EN"===(c=s>0?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){h="EN";break}if(v){h="N";break}for(f=s+1,l=e.length;f<l&&"ET"===e[f];)f++;h=f<l&&"EN"===e[f]?"EN":"N";break;case"NSM":if(i&&!o){for(l=e.length,f=s+1;f<l&&"NSM"===e[f];)f++;if(f<l){var d=t[s],p=d>=1425&&d<=2303||64286===d;if(c=e[f],p&&("R"===c||"AL"===c)){h="R";break}}}h=s<1||"B"===(c=e[s-1])?"N":a[s-1];break;case"B":v=!1,r=!0,h=b;break;case"S":n=!0,h="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":v=!1;break;case"BN":h="N"}return h},x=function(t,e,r){var n=t.split("");return r&&A(n,r,{hiLevel:b}),n.reverse(),e&&e.reverse(),n.join("")},A=function(t,e,i){var o,a,s,c,u,d=-1,p=t.length,g=0,y=[],x=b?l:f,A=[];for(v=!1,r=!1,n=!1,a=0;a<p;a++)A[a]=m(t[a]);for(s=0;s<p;s++){if(u=g,y[s]=w(t,A,y,s),o=240&(g=x[u][h[y[s]]]),g&=15,e[s]=c=x[g][5],o>0)if(16===o){for(a=d;a<s;a++)e[a]=1;d=-1}else d=-1;if(x[g][6])-1===d&&(d=s);else if(d>-1){for(a=d;a<s;a++)e[a]=c;d=-1}"B"===A[s]&&(e[s]=0),i.hiLevel|=c}n&&function(t,e,r){for(var n=0;n<r;n++)if("S"===t[n]){e[n]=b;for(var i=n-1;i>=0&&"WS"===t[i];i--)e[i]=b}}(A,e,p)},L=function(t,e,n,i,o){if(!(o.hiLevel<t)){if(1===t&&1===b&&!r)return e.reverse(),void(n&&n.reverse());for(var a,s,c,u,f=e.length,l=0;l<f;){if(i[l]>=t){for(c=l+1;c<f&&i[c]>=t;)c++;for(u=l,s=c-1;u<s;u++,s--)a=e[u],e[u]=e[s],e[s]=a,n&&(a=n[u],n[u]=n[s],n[s]=a);l=c}l++}}},N=function(t,e,r){var n=t.split(""),i={hiLevel:b};return r||(r=[]),A(n,r,i),function(t,e,r){if(0!==r.hiLevel&&c)for(var n,i=0;i<t.length;i++)1===e[i]&&(n=p.indexOf(t[i]))>=0&&(t[i]=p[n+1])}(n,r,i),L(2,n,e,r,i),L(1,n,e,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,r){if(function(t,e){if(e)for(var r=0;r<t.length;r++)e[r]=r;void 0===o&&(o=y(t)),void 0===s&&(s=y(t))}(t,e),i||!a||s)if(i&&a&&o^s)b=o?1:0,t=x(t,e,r);else if(!i&&a&&s)b=o?1:0,t=N(t,e,r),t=x(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=x(t,e),o?(b=0,t=N(t,e,r)):(b=1,t=N(t,e,r),t=x(t,e));else if(i&&o&&!a&&s)b=1,t=N(t,e,r),t=x(t,e);else if(!i&&!a&&o^s){var n=c;o?(b=1,t=N(t,e,r),b=0,c=!1,t=N(t,e,r),c=n):(b=0,t=N(t,e,r),t=x(t,e),b=1,c=!1,t=N(t,e,r),c=n,t=x(t,e))}}else b=0,t=N(t,e,r);else b=o?1:0,t=N(t,e,r);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,c=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),i=(t.mutex,n.lang,[]);if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([r.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([r.doBidiReorder(e[o])]);t.text=i}else t.text=r.doBidiReorder(e);r.setOptions({isInputVisual:!0})}])}(B),B.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new ie(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Le(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new oe(this.contents),this.head=new ce(this),this.name=new ge(this),this.cmap=new fe(this),this.toUnicode={},this.hhea=new le(this),this.maxp=new ve(this),this.hmtx=new be(this),this.post=new de(this),this.os2=new he(this),this.loca=new Ae(this),this.glyf=new ye(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 t,e,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,r,n,i;for(i=[],e=0,r=(n=this.bbox).length;e<r;e++)t=n[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),0!=(32768&(e=n>>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=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,r){var n,i,o,a;for(o=0,i=0,a=(t=""+t).length;0<=a?i<a:i>a;i=0<=a?++i:--i)n=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var r;return null==e&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},t}();var ne,ie=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(t){var e,r,n;for(n=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,r,n,i,o,a,s;return t=this.readByte(),e=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*n+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},t.prototype.write=function(t){var e,r,n,i;for(i=[],r=0,n=t.length;r<n;r++)e=t[r],i.push(this.writeByte(e));return i},t}(),oe=function(){var t;function e(t){var e,r,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var r,n,i,o,a,s,c,u,f,l,h,d,p;for(p in h=Object.keys(e).length,s=Math.log(2),f=16*Math.floor(Math.log(h)/s),o=Math.floor(f/s),u=16*h-f,(n=new ie).writeInt(this.scalarType),n.writeShort(h),n.writeShort(f),n.writeShort(o),n.writeShort(u),i=16*h,c=n.pos+i,a=null,d=[],e)for(l=e[p],n.writeString(p),n.writeInt(t(l)),n.writeInt(c),n.writeInt(l.length),d=d.concat(l),"head"===p&&(a=c),c+=l.length;c%4;)d.push(0),c++;return n.write(d),r=2981146554-t(n.data),n.pos=a+8,n.writeUInt32(r),n.data},t=function(t){var e,r,n,i;for(t=me.call(t);t.length%4;)t.push(0);for(n=new ie(t),r=0,e=0,i=t.length;e<i;e=e+=4)r+=n.readUInt32();return 4294967295&r},e}(),ae={}.hasOwnProperty,se=function(t,e){for(var r in e)ae.call(e,r)&&(t[r]=e[r]);function n(){this.constructor=t}return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t};ne=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return 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 ce=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new ie).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(t),e.writeShort(this.glyphDataFormat),e.data},e}(),ue=function(){function t(t,e){var r,n,i,o,a,s,c,u,f,l,h,d,p,g,v,b,m;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),f=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(h=t.readUInt16(),l=h/2,t.pos+=6,i=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),t.pos+=2,p=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),c=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),u=function(){var e,r;for(r=[],s=e=0;0<=l?e<l:e>l;s=0<=l?++e:--e)r.push(t.readUInt16());return r}(),n=(this.length-t.pos+this.offset)/2,a=function(){var e,r;for(r=[],s=e=0;0<=n?e<n:e>n;s=0<=n?++e:--e)r.push(t.readUInt16());return r}(),s=v=0,m=i.length;v<m;s=++v)for(g=i[s],r=b=d=p[s];d<=g?b<=g:b>=g;r=d<=g?++b:--b)0===u[s]?o=r+c[s]:0!==(o=a[u[s]/2+(r-d)-(l-s)]||0)&&(o+=c[s]),this.codeMap[r]=65535&o}t.pos=f}return t.encode=function(t,e){var r,n,i,o,a,s,c,u,f,l,h,d,p,g,v,b,m,y,w,x,A,L,N,S,_,P,k,j,C,I,O,F,E,T,M,R,B,D,q,U,z,H,W,V,G,Y;switch(j=new ie,o=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,g=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),b={0:0},i={},C=0,E=o.length;C<E;C++)null==b[W=t[n=o[C]]]&&(b[W]=++p),i[n]={old:t[n],new:b[t[n]]},g[n]=b[t[n]];return j.writeUInt16(1),j.writeUInt16(0),j.writeUInt32(12),j.writeUInt16(0),j.writeUInt16(262),j.writeUInt16(0),j.write(g),{charMap:i,subtable:j.data,maxGlyphID:p+1};case"unicode":for(P=[],f=[],m=0,b={},r={},v=c=null,I=0,T=o.length;I<T;I++)null==b[w=t[n=o[I]]]&&(b[w]=++m),r[n]={old:w,new:b[w]},a=b[w]-n,null!=v&&a===c||(v&&f.push(v),P.push(n),c=a),v=n;for(v&&f.push(v),f.push(65535),P.push(65535),S=2*(N=P.length),L=2*Math.pow(Math.log(N)/Math.LN2,2),l=Math.log(L/2)/Math.LN2,A=2*N-L,s=[],x=[],h=[],d=O=0,M=P.length;O<M;d=++O){if(_=P[d],u=f[d],65535===_){s.push(0),x.push(0);break}if(_-(k=r[_].new)>=32768)for(s.push(0),x.push(2*(h.length+N-d)),n=F=_;_<=u?F<=u:F>=u;n=_<=u?++F:--F)h.push(r[n].new);else s.push(k-_),x.push(0)}for(j.writeUInt16(3),j.writeUInt16(1),j.writeUInt32(12),j.writeUInt16(4),j.writeUInt16(16+8*N+2*h.length),j.writeUInt16(0),j.writeUInt16(S),j.writeUInt16(L),j.writeUInt16(l),j.writeUInt16(A),z=0,R=f.length;z<R;z++)n=f[z],j.writeUInt16(n);for(j.writeUInt16(0),H=0,B=P.length;H<B;H++)n=P[H],j.writeUInt16(n);for(V=0,D=s.length;V<D;V++)a=s[V],j.writeUInt16(a);for(G=0,q=x.length;G<q;G++)y=x[G],j.writeUInt16(y);for(Y=0,U=h.length;Y<U;Y++)p=h[Y],j.writeUInt16(p);return{charMap:r,subtable:j.data,maxGlyphID:m+1}}},t}(),fe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,r,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)e=new ue(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var r,n;return null==e&&(e="macroman"),r=ue.encode(t,e),(n=new ie).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},e}(),le=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),he=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r}(),this.charRange=function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),de=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="post",e.prototype.parse=function(t){var e,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var i;for(r=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 196608:break;case 262144:return this.map=function(){var e,r,n;for(n=[],i=e=0,r=this.file.maxp.numGlyphs;0<=r?e<r:e>r;i=0<=r?++e:--e)n.push(t.readUInt32());return n}.call(this)}},e}(),pe=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},ge=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="name",e.prototype.parse=function(t){var e,r,n,i,o,a,s,c,u,f,l;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),r=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=u=0,f=r.length;u<f;i=++u)n=r[i],t.pos=n.offset,c=t.readString(n.length),o=new pe(c,n),null==s[l=n.nameID]&&(s[l]=[]),s[n.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),ve=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),be=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,r,n,i,o,a,s;for(t.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],e=r=0;0<=n?r<n:r>n;e=0<=n?++r:--r)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,r,n;for(n=[],t=0,e=(r=this.metrics).length;t<e;t++)i=r[t],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],e=o=0;0<=n?o<n:o>n;e=0<=n?++o:--o)s.push(this.widths.push(r));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),me=[].slice,ye=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,r,n,i,o,a,s,c,u,f;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,r=i.indexOf(t),0===(n=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+r,o=(a=new ie(e.read(n))).readShort(),c=a.readShort(),f=a.readShort(),s=a.readShort(),u=a.readShort(),this.cache[t]=-1===o?new xe(a,c,f,s,u):new we(a,o,c,f,s,u),this.cache[t]))},e.prototype.encode=function(t,e,r){var n,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)n=t[e[a]],i.push(o.length),n&&(o=o.concat(n.encode(r)));return i.push(o.length),{table:o,offsets:i}},e}(),we=function(){function t(t,e,r,n,i,o){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),xe=function(){function t(t,e,r,n,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(){var t,e,r;for(e=new ie(me.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Ae=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return se(e,ne),e.prototype.tag="loca",e.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=2)n.push(2*t.readUInt16());return n}.call(this):function(){var e,n;for(n=[],r=0,e=this.length;r<e;r+=4)n.push(t.readUInt32());return n}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,o=0;o<r.length;++o)if(r[o]=n,i<e.length&&e[i]==o){++i,r[o]=n;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(n+=s)}for(var c=new Array(4*r.length),u=0;u<r.length;++u)c[4*u+3]=255&r[u],c[4*u+2]=(65280&r[u])>>8,c[4*u+1]=(16711680&r[u])>>16,c[4*u]=(4278190080&r[u])>>24;return c},e}(),Le=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,r,n,i;for(e in n=this.font.cmap.tables[0].codeMap,t={},i=this.subset)r=i[e],t[e]=n[r];return t},t.prototype.glyphsFor=function(t){var e,r,n,i,o,a,s;for(n={},o=0,a=t.length;o<a;o++)n[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],n)(null!=(r=n[i])?r.compound:void 0)&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))r=s[i],n[i]=r;return n},t.prototype.encode=function(t,e){var r,n,i,o,a,s,c,u,f,l,h,d,p,g,v;for(n in r=fe.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},v=r.charMap)h[(s=v[n]).old]=s.new;for(d in l=r.maxGlyphID,o)d in h||(h[d]=l++);return u=function(t){var e,r;for(e in r={},t)r[t[e]]=e;return r}(h),f=Object.keys(u).sort((function(t,e){return t-e})),p=function(){var t,e,r;for(r=[],t=0,e=f.length;t<e;t++)a=f[t],r.push(u[a]);return r}(),i=this.font.glyf.encode(o,p,h),c=this.font.loca.encode(i.offsets,p),g={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(g["OS/2"]=this.font.os2.raw()),this.font.directory.encode(g)},t}();B.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(r){var n,i,o,a;if(Array.isArray(r))return"["+function(){var t,i,o;for(o=[],t=0,i=r.length;t<i;t++)n=r[t],o.push(e.convert(n));return o}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+t(r.getUTCFullYear(),4)+t(r.getUTCMonth(),2)+t(r.getUTCDate(),2)+t(r.getUTCHours(),2)+t(r.getUTCMinutes(),2)+t(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in o=["<<"],r)a=r[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")}return""+r},e}()}).call(this,r("c8ba"))},"8ee9":function(t,e,r){var n=r("2864"),i=r("6b6d"),o=r("f41d"),a=r("5dde"),s=r("15e7"),c=s("iterator");t.exports=function(t){if(!o(t))return i(t,c)||i(t,"@@iterator")||a[n(t)]}},"90ba":function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").filter,o=r("49e2"),a=n.aTypedArray,s=n.exportTypedArrayMethod;s("filter",(function(t){var e=i(a(this),t,arguments.length>1?arguments[1]:void 0);return o(this,e)}))},"91dd":function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var a={};if("string"!==typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var c=1e3;o&&"number"===typeof o.maxKeys&&(c=o.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var f=0;f<u;++f){var l,h,d,p,g=t[f].replace(s,"%20"),v=g.indexOf(r);v>=0?(l=g.substr(0,v),h=g.substr(v+1)):(l=g,h=""),d=decodeURIComponent(l),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},9217:function(t,e,r){var n=r("cc94"),i=r("5977"),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},9288:function(t,e,r){r("5649");var n=r("5028");t.exports=n.Object.assign},9473:function(t,e,r){var n=r("d4cb"),i=r("c845"),o=r("eb94"),a=r("3994"),s=r("b31a"),c=r("b9eb");e.f=n&&!i?Object.defineProperties:function(t,e){a(t);var r,n=s(e),i=c(e),u=i.length,f=0;while(u>f)o.f(t,r=i[f++],n[r]);return t}},9579:function(t,e,r){var n=r("a095"),i=r("6110");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"95cb":function(t,e,r){var n,i,o,a=r("9217"),s=r("cc94"),c=r("09b7"),u=r("1580"),f=r("7794"),l=r("6110"),h=r("1287"),d=r("d60f"),p="Object already initialized",g=s.TypeError,v=s.WeakMap,b=function(t){return o(t)?i(t):n(t,{})},m=function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}};if(a||l.state){var y=l.state||(l.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw g(p);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var w=h("state");d[w]=!0,n=function(t,e){if(f(t,w))throw g(p);return e.facade=t,u(t,w,e),e},i=function(t){return f(t,w)?t[w]:{}},o=function(t){return f(t,w)}}t.exports={set:n,get:i,has:o,enforce:b,getterFor:m}},9706:function(t,e,r){var n=r("d1db"),i=r("0d11"),o=r("58b3"),a=r("e677"),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),f=function(t){return function(e,r){var n,f,l=o(a(e)),h=i(r),d=l.length;return h<0||h>=d?t?"":void 0:(n=c(l,h),n<55296||n>56319||h+1===d||(f=c(l,h+1))<56320||f>57343?t?s(l,h):n:t?u(l,h,h+2):f-56320+(n-55296<<10)+65536)}};t.exports={codeAt:f(!1),charAt:f(!0)}},9764:function(t,e,r){"use strict";r.d(e,"b",(function(){return X})),r.d(e,"a",(function(){return J}));var n=Uint8Array,i=Uint16Array,o=Uint32Array,a=new n([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]),s=new n([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]),c=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(t,e){for(var r=new i(31),n=0;n<31;++n)r[n]=e+=1<<t[n-1];var a=new o(r[30]);for(n=1;n<30;++n)for(var s=r[n];s<r[n+1];++s)a[s]=s-r[n]<<5|n;return[r,a]},f=u(a,2),l=f[0],h=f[1];l[28]=258,h[258]=28;for(var d=u(s,0),p=d[0],g=d[1],v=new i(32768),b=0;b<32768;++b){var m=(43690&b)>>>1|(21845&b)<<1;m=(52428&m)>>>2|(13107&m)<<2,m=(61680&m)>>>4|(3855&m)<<4,v[b]=((65280&m)>>>8|(255&m)<<8)>>>1}var y=function(t,e,r){for(var n=t.length,o=0,a=new i(e);o<n;++o)++a[t[o]-1];var s,c=new i(e);for(o=0;o<e;++o)c[o]=c[o-1]+a[o-1]<<1;if(r){s=new i(1<<e);var u=15-e;for(o=0;o<n;++o)if(t[o])for(var f=o<<4|t[o],l=e-t[o],h=c[t[o]-1]++<<l,d=h|(1<<l)-1;h<=d;++h)s[v[h]>>>u]=f}else for(s=new i(n),o=0;o<n;++o)s[o]=v[c[t[o]-1]++]>>>15-t[o];return s},w=new n(288);for(b=0;b<144;++b)w[b]=8;for(b=144;b<256;++b)w[b]=9;for(b=256;b<280;++b)w[b]=7;for(b=280;b<288;++b)w[b]=8;var x=new n(32);for(b=0;b<32;++b)x[b]=5;var A=y(w,9,0),L=y(w,9,1),N=y(x,5,0),S=y(x,5,1),_=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},P=function(t,e,r){var n=e/8>>0;return(t[n]|t[n+1]<<8)>>>(7&e)&r},k=function(t,e){var r=e/8>>0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>>(7&e)},j=function(t){return(t/8>>0)+(7&t&&1)},C=function(t,e,r){(null==e||e<0)&&(e=0),(null==r||r>t.length)&&(r=t.length);var a=new(t instanceof i?i:t instanceof o?o:n)(r-e);return a.set(t.subarray(e,r)),a},I=function(t,e,r){var i=t.length,o=!e||r,u=!r||r.i;r||(r={}),e||(e=new n(3*i));var f=function(t){var r=e.length;if(t>r){var i=new n(Math.max(2*r,t));i.set(e),e=i}},h=r.f||0,d=r.p||0,g=r.b||0,v=r.l,b=r.d,m=r.m,w=r.n,x=8*i;do{if(!v){r.f=h=P(t,d,1);var A=P(t,d+1,3);if(d+=3,!A){var N=j(d)+4,I=t[N-4]|t[N-3]<<8,O=N+I;if(O>i){if(u)throw"unexpected EOF";break}o&&f(g+I),e.set(t.subarray(N,O),g),r.b=g+=I,r.p=d=8*O;continue}if(1==A)v=L,b=S,m=9,w=5;else{if(2!=A)throw"invalid block type";var F=P(t,d,31)+257,E=P(t,d+10,15)+4,T=F+P(t,d+5,31)+1;d+=14;for(var M=new n(T),R=new n(19),B=0;B<E;++B)R[c[B]]=P(t,d+3*B,7);d+=3*E;var D=_(R),q=(1<<D)-1;if(!u&&d+T*(D+7)>x)break;var U=y(R,D,1);for(B=0;B<T;){var z=U[P(t,d,q)];d+=15&z;N=z>>>4;if(N<16)M[B++]=N;else{var H=0,W=0;16==N?(W=3+P(t,d,3),d+=2,H=M[B-1]):17==N?(W=3+P(t,d,7),d+=3):18==N&&(W=11+P(t,d,127),d+=7);while(W--)M[B++]=H}}var V=M.subarray(0,F),G=M.subarray(F);m=_(V),w=_(G),v=y(V,m,1),b=y(G,w,1)}if(d>x)throw"unexpected EOF"}o&&f(g+131072);var Y=(1<<m)-1,X=(1<<w)-1,J=m+w+18;while(u||d+J<x){H=v[k(t,d)&Y];var K=H>>>4;if(d+=15&H,d>x)throw"unexpected EOF";if(!H)throw"invalid length/literal";if(K<256)e[g++]=K;else{if(256==K){v=null;break}var $=K-254;if(K>264){B=K-257;var Z=a[B];$=P(t,d,(1<<Z)-1)+l[B],d+=Z}var Q=b[k(t,d)&X],tt=Q>>>4;if(!Q)throw"invalid distance";d+=15&Q;G=p[tt];if(tt>3){Z=s[tt];G+=k(t,d)&(1<<Z)-1,d+=Z}if(d>x)throw"unexpected EOF";o&&f(g+131072);for(var et=g+$;g<et;g+=4)e[g]=e[g-G],e[g+1]=e[g+1-G],e[g+2]=e[g+2-G],e[g+3]=e[g+3-G];g=et}}r.l=v,r.p=d,r.b=g,v&&(h=1,r.m=m,r.d=b,r.n=w)}while(!h);return g==e.length?e:C(e,0,g)},O=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8},F=function(t,e,r){r<<=7&e;var n=e/8>>0;t[n]|=r,t[n+1]|=r>>>8,t[n+2]|=r>>>16},E=function(t,e){for(var r=[],o=0;o<t.length;++o)t[o]&&r.push({s:o,f:t[o]});var a=r.length,s=r.slice();if(!a)return[new n(0),0];if(1==a){var c=new n(r[0].s+1);return c[r[0].s]=1,[c,1]}r.sort((function(t,e){return t.f-e.f})),r.push({s:-1,f:25001});var u=r[0],f=r[1],l=0,h=1,d=2;r[0]={s:-1,f:u.f+f.f,l:u,r:f};while(h!=a-1)u=r[r[l].f<r[d].f?l++:d++],f=r[l!=h&&r[l].f<r[d].f?l++:d++],r[h++]={s:-1,f:u.f+f.f,l:u,r:f};var p=s[0].s;for(o=1;o<a;++o)s[o].s>p&&(p=s[o].s);var g=new i(p+1),v=T(r[h-1],g,0);if(v>e){o=0;var b=0,m=v-e,y=1<<m;for(s.sort((function(t,e){return g[e.s]-g[t.s]||t.f-e.f}));o<a;++o){var w=s[o].s;if(!(g[w]>e))break;b+=y-(1<<v-g[w]),g[w]=e}b>>>=m;while(b>0){var x=s[o].s;g[x]<e?b-=1<<e-g[x]++-1:++o}for(;o>=0&&b;--o){var A=s[o].s;g[A]==e&&(--g[A],++b)}v=e}return[new n(g),v]},T=function(t,e,r){return-1==t.s?Math.max(T(t.l,e,r+1),T(t.r,e,r+1)):e[t.s]=r},M=function(t){var e=t.length;while(e&&!t[--e]);for(var r=new i(++e),n=0,o=t[0],a=1,s=function(t){r[n++]=t},c=1;c<=e;++c)if(t[c]==o&&c!=e)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}while(a--)s(o);a=1,o=t[c]}return[r.subarray(0,n),e]},R=function(t,e){for(var r=0,n=0;n<e.length;++n)r+=t[n]*e[n];return r},B=function(t,e,r){var n=r.length,i=j(e+2);t[i]=255&n,t[i+1]=n>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<n;++o)t[i+o+4]=r[o];return 8*(i+4+n)},D=function(t,e,r,n,o,u,f,l,h,d,p){O(e,p++,r),++o[256];for(var g=E(o,15),v=g[0],b=g[1],m=E(u,15),L=m[0],S=m[1],_=M(v),P=_[0],k=_[1],j=M(L),C=j[0],I=j[1],T=new i(19),D=0;D<P.length;++D)T[31&P[D]]++;for(D=0;D<C.length;++D)T[31&C[D]]++;for(var q=E(T,7),U=q[0],z=q[1],H=19;H>4&&!U[c[H-1]];--H);var W,V,G,Y,X=d+5<<3,J=R(o,w)+R(u,x)+f,K=R(o,v)+R(u,L)+f+14+3*H+R(T,U)+(2*T[16]+3*T[17]+7*T[18]);if(X<=J&&X<=K)return B(e,p,t.subarray(h,h+d));if(O(e,p,1+(K<J)),p+=2,K<J){W=y(v,b,0),V=v,G=y(L,S,0),Y=L;var $=y(U,z,0);O(e,p,k-257),O(e,p+5,I-1),O(e,p+10,H-4),p+=14;for(D=0;D<H;++D)O(e,p+3*D,U[c[D]]);p+=3*H;for(var Z=[P,C],Q=0;Q<2;++Q){var tt=Z[Q];for(D=0;D<tt.length;++D){var et=31&tt[D];O(e,p,$[et]),p+=U[et],et>15&&(O(e,p,tt[D]>>>5&127),p+=tt[D]>>>12)}}}else W=A,V=w,G=N,Y=x;for(D=0;D<l;++D)if(n[D]>255){et=n[D]>>>18&31;F(e,p,W[et+257]),p+=V[et+257],et>7&&(O(e,p,n[D]>>>23&31),p+=a[et]);var rt=31&n[D];F(e,p,G[rt]),p+=Y[rt],rt>3&&(F(e,p,n[D]>>>5&8191),p+=s[rt])}else F(e,p,W[n[D]]),p+=V[n[D]];return F(e,p,W[256]),p+V[256]},q=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),U=new n(0),z=function(t,e,r,c,u,f){var l=t.length,d=new n(c+l+5*(1+Math.floor(l/7e3))+u),p=d.subarray(c,d.length-u),v=0;if(!e||l<8)for(var b=0;b<=l;b+=65535){var m=b+65535;m<l?v=B(p,v,t.subarray(b,m)):(p[b]=f,v=B(p,v,t.subarray(b,l)))}else{for(var y=q[e-1],w=y>>>13,x=8191&y,A=(1<<r)-1,L=new i(32768),N=new i(A+1),S=Math.ceil(r/3),_=2*S,P=function(e){return(t[e]^t[e+1]<<S^t[e+2]<<_)&A},k=new o(25e3),I=new i(288),O=new i(32),F=0,E=0,T=(b=0,0),M=0,R=0;b<l;++b){var z=P(b),H=32767&b,W=N[z];if(L[H]=W,N[z]=H,M<=b){var V=l-b;if((F>7e3||T>24576)&&V>423){v=D(t,p,0,k,I,O,E,T,R,b-R,v),T=F=E=0,R=b;for(var G=0;G<286;++G)I[G]=0;for(G=0;G<30;++G)O[G]=0}var Y=2,X=0,J=x,K=H-W&32767;if(V>2&&z==P(b-K)){var $=Math.min(w,V)-1,Z=Math.min(32767,b),Q=Math.min(258,V);while(K<=Z&&--J&&H!=W){if(t[b+Y]==t[b+Y-K]){for(var tt=0;tt<Q&&t[b+tt]==t[b+tt-K];++tt);if(tt>Y){if(Y=tt,X=K,tt>$)break;var et=Math.min(K,tt-2),rt=0;for(G=0;G<et;++G){var nt=b-K+G+32768&32767,it=L[nt],ot=nt-it+32768&32767;ot>rt&&(rt=ot,W=nt)}}}H=W,W=L[H],K+=H-W+32768&32767}}if(X){k[T++]=268435456|h[Y]<<18|g[X];var at=31&h[Y],st=31&g[X];E+=a[at]+s[st],++I[257+at],++O[st],M=b+Y,++F}else k[T++]=t[b],++I[t[b]]}}v=D(t,p,f,k,I,O,E,T,R,b-R,v),f||(v=B(p,v,U))}return C(d,0,c+j(v)+u)},H=function(){var t=1,e=0;return{p:function(r){for(var n=t,i=e,o=r.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)n+=r[a],i+=n;n%=65521,i%=65521}t=n,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},W=function(t,e,r,n,i){return z(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,n,!i)},V=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},G=function(t,e){var r=e.level,n=0==r?0:r<6?1:9==r?3:2;t[0]=120,t[1]=n<<6|(n?32-2*n:1)},Y=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function X(t,e){void 0===e&&(e={});var r=H();r.p(t);var n=W(t,e,2,4);return G(n,e),V(n,n.length-4,r.d()),n}function J(t,e){return I((Y(t),t.subarray(2,-4)),e)}},"97a9":function(t,e,r){},"98b1":function(t,e,r){var n=r("d1db"),i=0,o=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},"9af1":function(t,e,r){"use strict";var n=r("41bc"),i=r("cc94"),o=r("e474"),a=r("6a72"),s="ArrayBuffer",c=o[s],u=i[s];n({global:!0,constructor:!0,forced:u!==c},{ArrayBuffer:c}),a(s)},"9b21":function(t,e,r){"use strict";var n=r("cc94"),i=r("405b"),o=r("d1db"),a=r("bca7"),s=r("d9a6"),c=r("15e7"),u=c("iterator"),f=n.Uint8Array,l=o(s.values),h=o(s.keys),d=o(s.entries),p=a.aTypedArray,g=a.exportTypedArrayMethod,v=f&&f.prototype,b=!i((function(){v[u].call([1])})),m=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,y=function(){return l(p(this))};g("entries",(function(){return d(p(this))}),b),g("keys",(function(){return h(p(this))}),b),g("values",y,b||!m,{name:"values"}),g(u,y,b||!m,{name:"values"})},"9cea":function(t,e,r){var n=r("3a49"),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},"9de0":function(t,e,r){var n=r("41bc"),i=r("b37f");n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},"9e30":function(t,e,r){"use strict";r.r(e),r.d(e,"tableColumn",(function(){return n})),r.d(e,"a",(function(){return i}));var n=[{prop:"created",label:"時間",width:160},{prop:"content",label:"执行操作",noRepeat:!0},{prop:"uid",label:"操作用戶",noRepeat:!0},{prop:"role",label:"操作角色",noRepeat:!0}],i=1},"9e78":function(t,e,r){var n=r("405b"),i=r("15e7"),o=r("fe35"),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},a095:function(t,e){t.exports=!1},a0f1:function(t,e,r){var n=r("b18b");t.exports=/web0s(?!.*chrome)/i.test(n)},a1a1:function(t,e,r){var n=r("d1db"),i=r("5977"),o=r("6110"),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},a345:function(t,e,r){"use strict";var n=r("41bc"),i=r("a095"),o=r("d799").CONSTRUCTOR,a=r("66f6"),s=r("4526"),c=r("5977"),u=r("37fc"),f=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&c(a)){var l=s("Promise").prototype["catch"];f["catch"]!==l&&u(f,"catch",l,{unsafe:!0})}},a382:function(t,e,r){"use strict";var n=r("02cf"),i=r("bca7").exportTypedArrayStaticMethod,o=r("0eb7");i("from",o,n)},a487:function(t,e,r){"use strict";var n=r("d4cb"),i=r("d1db"),o=r("7436"),a=r("405b"),s=r("b9eb"),c=r("1112"),u=r("2272"),f=r("e401"),l=r("5de5"),h=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!h||a((function(){if(n&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[r]||s(h({},e)).join("")!=i}))?function(t,e){var r=f(t),i=arguments.length,a=1,h=c.f,d=u.f;while(i>a){var g,v=l(arguments[a++]),b=h?p(s(v),h(v)):s(v),m=b.length,y=0;while(m>y)g=b[y++],n&&!o(d,v,g)||(r[g]=v[g])}return r}:h},a7f4:function(t,e,r){var n=r("3994"),i=r("09b7"),o=r("5e08");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t),a=r.resolve;return a(e),r.promise}},a9e2:function(t,e,r){"use strict";var n=r("bca7"),i=r("e4fb").left,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("reduce",(function(t){var e=arguments.length;return i(o(this),t,e,e>1?arguments[1]:void 0)}))},aaeb:function(t,e,r){var n=r("e331");n("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},ab0f:function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").findIndex,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},ab87:function(t,e,r){"use strict";var n=r("b3c7"),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+n(e)+" of "+n(t))}},ad4a:function(t,e,r){r("af1d"),r("59b9"),r("a382"),r("f61a"),r("21b7"),r("ce73"),r("da4c"),r("3bd2"),r("90ba"),r("3e77"),r("ab0f"),r("881e"),r("3642"),r("0d40"),r("fc51"),r("5c09"),r("d409"),r("4277"),r("45f0"),r("a9e2"),r("3e9d"),r("5481"),r("1e6a"),r("d83e"),r("182e"),r("0e8a"),r("5e47"),r("0cf5"),r("286f"),r("9b21")},af1d:function(t,e,r){var n=r("35cb"),i=r("37fc"),o=r("48d1");n||i(Object.prototype,"toString",o,{unsafe:!0})},b139:function(t,e){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=r},b18b:function(t,e,r){var n=r("4526");t.exports=n("navigator","userAgent")||""},b240:function(t,e,r){r("9de0");var n=r("41bc"),i=r("b37f");n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},b2df:function(t,e,r){var n=r("d4acb"),i=r("d1db");t.exports=function(t){if("Function"===n(t))return i(t)}},b31a:function(t,e,r){var n=r("5de5"),i=r("e677");t.exports=function(t){return n(i(t))}},b37f:function(t,e,r){"use strict";var n=r("023e").start,i=r("8173");t.exports=i("trimStart")?function(){return n(this)}:"".trimStart},b383:function(t,e,r){"use strict";e.decode=e.parse=r("91dd"),e.encode=e.stringify=r("e099")},b3c7:function(t,e){var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},b47c:function(t,e,r){"use strict";var n=r("41bc"),i=r("17e8"),o=r("e08b"),a=r("47b5"),s=r("30ae"),c=r("08bf"),u=r("1580"),f=r("6165"),l=r("40a9"),h=r("f426"),d=r("54f7"),p=r("6968"),g=r("15e7"),v=r("ba74"),b=g("toStringTag"),m=Error,y=[].push,w=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,s=i(x,this);a?r=a(m(),s?o(this):x):(r=s?this:c(x),u(r,b,"Error")),void 0!==e&&u(r,"message",p(e)),v&&u(r,"stack",l(r.stack,1)),h(r,n);var f=[];return d(t,y,{that:f}),u(r,"errors",f),r};a?a(w,m):s(w,m,{name:!0});var x=w.prototype=c(m.prototype,{constructor:f(1,w),message:f(1,""),name:f(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:w})},b77d:function(t,e,r){var n=r("41bc"),i=r("4c1e");n({target:"Number",stat:!0},{isInteger:i})},b9b5:function(t,e,r){"use strict";var n=r("41bc"),i=r("a095"),o=r("66f6"),a=r("405b"),s=r("4526"),c=r("5977"),u=r("09ce"),f=r("a7f4"),l=r("37fc"),h=o&&o.prototype,d=!!o&&a((function(){h["finally"].call({then:function(){}},(function(){}))}));if(n({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(t){var e=u(this,s("Promise")),r=c(t);return this.then(r?function(r){return f(e,t()).then((function(){return r}))}:t,r?function(r){return f(e,t()).then((function(){throw r}))}:t)}}),!i&&c(o)){var p=s("Promise").prototype["finally"];h["finally"]!==p&&l(h,"finally",p,{unsafe:!0})}},b9eb:function(t,e,r){var n=r("5b06"),i=r("5383");t.exports=Object.keys||function(t){return n(t,i)}},ba6b:function(t,e,r){var n=r("5977"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},ba74:function(t,e,r){var n=r("405b"),i=r("6165");t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},bb66:function(t,e,r){var n=r("cb4a"),i=r("bc58"),o=r("89e3"),a=Array,s=Math.max;t.exports=function(t,e,r){for(var c=i(t),u=n(e,c),f=n(void 0===r?c:r,c),l=a(s(f-u,0)),h=0;u<f;u++,h++)o(l,h,t[u]);return l.length=h,l}},bc58:function(t,e,r){var n=r("14cf");t.exports=function(t){return n(t.length)}},bca7:function(t,e,r){"use strict";var n,i,o,a=r("79e0"),s=r("d4cb"),c=r("cc94"),u=r("5977"),f=r("09b7"),l=r("7794"),h=r("2864"),d=r("b3c7"),p=r("1580"),g=r("37fc"),v=r("eb94").f,b=r("17e8"),m=r("e08b"),y=r("47b5"),w=r("15e7"),x=r("98b1"),A=r("95cb"),L=A.enforce,N=A.get,S=c.Int8Array,_=S&&S.prototype,P=c.Uint8ClampedArray,k=P&&P.prototype,j=S&&m(S),C=_&&m(_),I=Object.prototype,O=c.TypeError,F=w("toStringTag"),E=x("TYPED_ARRAY_TAG"),T="TypedArrayConstructor",M=a&&!!y&&"Opera"!==h(c.opera),R=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},q=function(t){if(!f(t))return!1;var e=h(t);return"DataView"===e||l(B,e)||l(D,e)},U=function(t){var e=m(t);if(f(e)){var r=N(e);return r&&l(r,T)?r[T]:U(e)}},z=function(t){if(!f(t))return!1;var e=h(t);return l(B,e)||l(D,e)},H=function(t){if(z(t))return t;throw O("Target is not a typed array")},W=function(t){if(u(t)&&(!y||b(j,t)))return t;throw O(d(t)+" is not a typed array constructor")},V=function(t,e,r,n){if(s){if(r)for(var i in B){var o=c[i];if(o&&l(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(u){}}}C[t]&&!r||g(C,t,r?e:M&&_[t]||e,n)}},G=function(t,e,r){var n,i;if(s){if(y){if(r)for(n in B)if(i=c[n],i&&l(i,t))try{delete i[t]}catch(o){}if(j[t]&&!r)return;try{return g(j,t,r?e:M&&j[t]||e)}catch(o){}}for(n in B)i=c[n],!i||i[t]&&!r||g(i,t,e)}};for(n in B)i=c[n],o=i&&i.prototype,o?L(o)[T]=i:M=!1;for(n in D)i=c[n],o=i&&i.prototype,o&&(L(o)[T]=i);if((!M||!u(j)||j===Function.prototype)&&(j=function(){throw O("Incorrect invocation")},M))for(n in B)c[n]&&y(c[n],j);if((!M||!C||C===I)&&(C=j.prototype,M))for(n in B)c[n]&&y(c[n].prototype,C);if(M&&m(k)!==C&&y(k,C),s&&!l(C,F))for(n in R=!0,v(C,F,{get:function(){return f(this)?this[E]:void 0}}),B)c[n]&&p(c[n],E,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:R&&E,aTypedArray:H,aTypedArrayConstructor:W,exportTypedArrayMethod:V,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:U,isView:q,isTypedArray:z,TypedArray:j,TypedArrayPrototype:C}},bcb6:function(t,e,r){var n=r("15e7"),i=r("08bf"),o=r("eb94").f,a=n("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},bcba:function(t,e,r){var n=r("b18b"),i=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},be45:function(t,e,r){r("7e98");var n=r("5609");t.exports=n("String","trim")},bedf:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"tableSample"},[r("div",{staticClass:"header"},[r("div",{staticClass:"header-left"},[r("lin-search",{attrs:{placeholder:"搜索"},on:{query:t.onQueryChange}})],1),r("div",{staticClass:"header-right"},[r("el-dropdown",{on:{command:t.handleCommand}},[r("el-button",{attrs:{type:"primary",round:""}},[t._v("\n          導出報告"),r("i",{staticClass:"el-icon-download el-icon--right"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{icon:"iconfont icon-s_danchuangXlsxwenjian",command:"xlsx"}},[t._v("\n            導出 XLSX\n          ")])],1)],1)],1)]),r("div",{staticClass:"table-main"},[r("el-dialog",{attrs:{top:"5vh",width:"60%",visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[r("span",[t._v("選擇要展示的列:")]),r("el-checkbox-group",{staticClass:"m-20",on:{change:t.handleChange},model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},t._l(t.tempCheckList,(function(t){return r("el-checkbox",{key:t,attrs:{disabled:"標題"===t||"排名"===t,label:t}})})),1),r("span",[t._v("選擇固定在左側的列:")]),r("el-checkbox-group",{staticClass:"m-20",model:{value:t.fixedLeftList,callback:function(e){t.fixedLeftList=e},expression:"fixedLeftList"}},t._l(t.tempCheckList,(function(e){return r("el-checkbox",{key:e,attrs:{disabled:t.fixedRightList.indexOf(e)>-1||-1===t.checkList.indexOf(e),label:e}})})),1),r("span",[t._v("選擇固定在右側的列:")]),r("el-checkbox-group",{staticClass:"m-20",model:{value:t.fixedRightList,callback:function(e){t.fixedRightList=e},expression:"fixedRightList"}},t._l(t.tempCheckList,(function(e){return r("el-checkbox",{key:e,attrs:{disabled:t.fixedLeftList.indexOf(e)>-1||-1===t.checkList.indexOf(e),label:e}})})),1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableData,id:"out-table'"},on:{"row-dblclick":t.rowClick}},[t._l(t.filterTableColumn,(function(e){return["排序"===e.label?r("el-table-column",{key:e.label,attrs:{label:"排序"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("input",{directives:[{name:"model",rawName:"v-model",value:e.row.sorting,expression:"props.row.sorting"}],staticClass:"sort-input",attrs:{type:"number"},domProps:{value:e.row.sorting},on:{blur:function(r){return t.handleSort(e.row.sorting,e.row)},input:function(r){r.target.composing||t.$set(e.row,"sorting",r.target.value)}}})]}}],null,!0)}):t._e(),e.noRepeat?t._e():r("el-table-column",{key:e.label,attrs:{prop:e.prop,label:e.label,"show-overflow-tooltip":!0,fixed:!!e.fixed&&e.fixed,width:e.width?e.width:""}}),"uid"===e.prop?r("el-table-column",{key:e.label,attrs:{label:e.label},scopedSlots:t._u([{key:"default",fn:function(e){return[null!=e.row.wp_user?r("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.row.wp_user.user_name))]):null!=e.row.company_user?r("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.row.company_user.user_name))]):t._e()]}}],null,!0)}):t._e(),"role"===e.prop?r("el-table-column",{key:e.label,attrs:{label:e.label},scopedSlots:t._u([{key:"default",fn:function(e){return[null!=e.row.wp_user?r("el-tag",{attrs:{type:"success"}},[t._v(t._s(e.row.wp_user.role_name))]):null!=e.row.company_user?r("el-tag",{attrs:{type:"primary"}},[t._v(t._s(e.row.company_user.role_name))]):t._e()]}}],null,!0)}):t._e(),"company_id"===e.prop?r("el-table-column",{key:e.label,attrs:{label:e.label},scopedSlots:t._u([{key:"default",fn:function(e){return[null!=e.row.company?r("div",[t._v("\n              "+t._s(e.row.company.company_name)+"\n            ")]):t._e()]}}],null,!0)}):t._e(),"content"===e.prop?r("el-table-column",{key:e.label,attrs:{label:e.label},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n            "+t._s(e.row.content)+"\n            "),null!=e.row.row_id&&0!=e.row.row_id?r("span",{staticStyle:{color:"#86B3F1"},attrs:{type:"success"}},[t._v(t._s("#"+e.row.row_id))]):t._e()]}}],null,!0)}):t._e()]}))],2),t.searchKeyword?t._e():r("div",{staticClass:"pagination"},[r("el-pagination",{attrs:{"current-page":this.currentPage,"page-sizes":[10,20,30,50],"page-size":this.pageCount,layout:"total, sizes, prev, pager, next, jumper",total:this.total_nums},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])},i=[],o=r("a34a"),a=r.n(o),s=r("2f62"),c=r("63b8"),u=r("9e30"),f=r("1616"),l=(r("f121"),r("1146")),h=r.n(l);r("8baf"),r("6ada"),r("0b16");function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(r,!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var m={components:{LinSearch:c["default"]},data:function(){return{tableData:[],loading:!1,Hidden:!0,searchKeyword:"",checkList:[],filterTableColumn:[],refreshPagination:!0,currentPage:1,pageCount:50,total_nums:0,dialogTableVisible:!1,fixedLeftList:[],fixedRightList:[],value:"",editRow:0,showTooltip:!0,syncLoading:!1,catList:[],options:[],optionsValue:[1],status:{0:"下架",1:"展示中",99:"已删除"},dialogTitle:"",showDialog:!1,temp:{id:0,user_login:null,user_name:null,user_pass:null,user_phone:null,user_email:null,status:"1"},transfer_data:[],filterMethod:function(t,e){return e.pinyin.indexOf(t)>-1},rules:{company_name:[{required:!0,message:"名稱不能為空",trigger:"blur"}],expiration:[{required:!0,message:"expiration 不能為空",trigger:"blur"}]},showDeleteDialog:!1,showImportDialog:!1}},computed:{},created:function(){var t=this;this.getList(this.cat,this.currentPage,this.pageCount),this.tableColumn=u["tableColumn"],this.operate=[{name:"修改",func:"handleEdit",type:"primary"},{name:"刪除",func:"handleDelete",type:"danger"}],this.tempCheckList=u["tableColumn"].map((function(t){return t.label})).slice(),this.checkList=u["tableColumn"].map((function(t){return t.label})),this.filterTableColumn=u["tableColumn"].filter((function(e){return t.checkList.indexOf(e.label)>-1}))},methods:v({getList:function(){var t=p(a.a.mark((function t(e,r,n){var i,o;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,i=this.searchKeyword,t.next=4,f["LogsModel"].getList({cat:e,start:r,count:n,keyword:i,company_id:this.$store.state.company_id});case 4:o=t.sent,this.tableData=o.data,this.currentPage=o.currentPage,this.total_nums=parseInt(o.total),this.loading=!1;case 9:case"end":return t.stop()}}),t,this)})));function e(e,r,n){return t.apply(this,arguments)}return e}(),rowClick:function(t){console.log(t)},handleChange:function(){var t=this;this.filterTableColumn=u["tableColumn"].filter((function(e){return t.checkList.indexOf(e.label)>-1}))},showRowOperateModal:function(){},handleSort:function(t,e){console.log("rowData",e),this.$message({type:"success",message:"排序已更改为:".concat(t)})},handleRecommend:function(t,e){var r=this;this.loading=!0,console.log(t,e),t?setTimeout((function(){r.loading=!1,r.$message({type:"success",message:"推荐成功"})}),1e3):setTimeout((function(){r.loading=!1,r.$message({type:"success",message:"取消推荐"})}),1e3)},handleCellEdit:function(t){t.editFlag=!0,this.$set(this.filterTableColumn[7],"width",200),this.tempEditRemark=t.remark,this.editRow++},handleCellSave:function(t){var e=this;t.editFlag=!1,setTimeout((function(){e.editRow--,e.$message({type:"success",message:"修改成功"})}),1e3)},handleCellCancel:function(t){t.editFlag=!1,console.log(this.tempEditRemark),t.remark=this.tempEditRemark,this.editRow--},handleSizeChange:function(t){var e=this;console.log("每页 ".concat(t," 条")),this.pageCount=t,this.loading=!0,setTimeout((function(){e.getList(e.cat,e.currentPage,e.pageCount),e.loading=!1}),1e3)},handleCurrentChange:function(){var t=p(a.a.mark((function t(e){var r=this;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.currentPage=e,this.loading=!0,setTimeout((function(){r.getList(r.cat,r.currentPage,r.pageCount),r.loading=!1}),1e3);case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),buttonMethods:function(t,e,r){var n=this,i=this.$options.methods;i[t](n,e,r)},beforeCloseImportDialog:function(){this.showImportDialog=!1},handleImport:function(){var t=p(a.a.mark((function t(e){var r,n;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(e),null!=e){t.next=5;break}this.$message.error("文件解析出錯"),t.next=20;break;case 5:if(e=e.map((function(t){var e=new Object;return e.group_name=t.Name,e.remark=t.Remark,e})),0!=e.length){t.next=10;break}this.$message.error("導入失敗,數據表為空"),t.next=20;break;case 10:return r=this.$loading({lock:!0,text:"正在導入,請稍候...",background:"rgba(255,255,255, 0.8)"}),t.next=13,GroupModel.import(this.temp.server_id,e);case 13:n=t.sent,console.log(n),0==n.rc?this.$confirm("其中"+n.data.success.length+"項導入成功,"+n.data.error.length+"項導入失敗,"+n.data.duplicate.length+"項因已存在已被忽略","處理完成",{confirmButtonText:"確定",showCancelButton:!1,type:"success"}):this.$message.error(n.msg),r.close(),this.showImportDialog=!1,this.currentPage=1,this.getList(this.cat,this.currentPage,this.pageCount);case 20:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),handleCommand:function(t){"xlsx"==t?this.exportXLSX():"pdf"==t&&this.exportPDF()},exportXLSX:function(){var t=p(a.a.mark((function t(){var e,r,n,i,o,s,c,u;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.$loading({lock:!0,text:"正在導出,請稍候...",background:"rgba(255,255,255, 0.8)"}),t.next=4,f["LogsModel"].getList({cat:"",start:1,count:-1,keyword:this.searchKeyword,company_id:this.$store.state.company_id});case 4:r=t.sent,console.log(r),0==r.rc?(n=r.export_report,i=n.header,o=n.body,s=o.map((function(t,e){var r=[];return t.forEach((function(t,e){r[i[e]]=t})),r})),console.log(s),c=h.a.utils.json_to_sheet(s),u=h.a.utils.book_new(),h.a.utils.book_append_sheet(u,c,"操作記錄"),h.a.writeFile(u,"Export_操作記錄.xlsx")):this.$message.error(r.msg),e.close(),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),exportPDF:function(){var t=p(a.a.mark((function t(){var e;return a.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.$loading({lock:!0,text:"正在導出,請稍候...",background:"rgba(255,255,255, 0.8)"}),t.next=4,f["LogsModel"].downloadPdf({cat:"",start:1,count:-1,keyword:this.searchKeyword,company_id:this.$store.state.company_id});case 4:t.sent,e.close(),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),onQueryChange:function(t){this.searchKeyword=t.trim(),this.currentPage=1,this.getList(this.cat,this.currentPage,this.pageCount)},handleChangeOptions:function(t){this.optionsValue=t;var e=t[t.length-1];this.cat=e,this.total_nums=0,this.getList(this.cat,this.currentPage,this.pageCount)},_generateOptionsData:function(t){var e=[];return t.forEach((function(t){0!=t.pid||e.push({value:t.id,label:t.title,children:[]})})),e.forEach((function(r,n){var i=[];t.forEach((function(t){t.pid===r.value&&i.push({value:t.id,label:t.title,disabled:!t.status})})),e[n].children=i})),e},resetForm:function(){this.$refs.form.resetFields(),this.optionsValue=[]}},Object(s["b"])(["setUserAndState","setCompanyID","setCmsMod"]),{},Object(s["d"])({setUserPermissions:"SET_USER_PERMISSIONS"})),watch:{"temp.file":{handler:function(){this.temp.title=decodeURI(this.temp.file).replace(/%2F/g,"/")}},fixedLeftList:function(){var t=this;this.filterTableColumn.map((function(e,r){return t.fixedLeftList.indexOf(e.label)>-1?t.$set(t.filterTableColumn[r],"fixed","left"):-1===t.fixedRightList.indexOf(e.label)&&t.$set(t.filterTableColumn[r],"fixed",!1),""}))},fixedRightList:function(){var t=this;this.filterTableColumn.map((function(e,r){return t.fixedRightList.indexOf(e.label)>-1?t.$set(t.filterTableColumn[r],"fixed","right"):-1===t.fixedLeftList.indexOf(e.label)&&t.$set(t.filterTableColumn[r],"fixed",!1),""}))},editRow:function(){return this.filterTableColumn[7]&&0===this.editRow&&this.$set(this.filterTableColumn[7],"width",200),""}}},y=m,w=(r("c310"),r("2877")),x=Object(w["a"])(y,n,i,!1,null,"361d1bda",null);e["default"]=x.exports},c25a:function(t,e,r){var n=r("41bc"),i=r("d3c5");n({target:"Array",stat:!0},{isArray:i})},c310:function(t,e,r){"use strict";var n=r("97a9"),i=r.n(n);i.a},c358:function(t,e,r){var n=r("d4cb"),i=r("d1db"),o=r("b9eb"),a=r("b31a"),s=r("2272").f,c=i(s),u=i([].push),f=function(t){return function(e){var r,i=a(e),s=o(i),f=s.length,l=0,h=[];while(f>l)r=s[l++],n&&!c(i,r)||u(h,t?[r,i[r]]:i[r]);return h}};t.exports={entries:f(!0),values:f(!1)}},c700:function(t,e,r){var n=r("15e7"),i=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(c){}return r}},c719:function(t,e,r){r("b77d");var n=r("5028");t.exports=n.Number.isInteger},c845:function(t,e,r){var n=r("d4cb"),i=r("405b");t.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},ca61:function(t,e,r){var n=r("7436"),i=r("8b60"),o=r("3994"),a=r("b3c7"),s=r("8ee9"),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(i(r))return o(n(r,t));throw c(a(t)+" is not iterable")}},cb4a:function(t,e,r){var n=r("0d11"),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},cc94:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},ce73:function(t,e,r){"use strict";var n=r("d1db"),i=r("bca7"),o=r("2264"),a=n(o),s=i.aTypedArray,c=i.exportTypedArrayMethod;c("copyWithin",(function(t,e){return a(s(this),t,e,arguments.length>2?arguments[2]:void 0)}))},cfa5:function(t,e,r){var n=r("b18b"),i=n.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},d00c:function(t,e,r){"use strict";var n=r("41bc"),i=r("349f").map,o=r("9e78"),a=o("map");n({target:"Array",proto:!0,forced:!a},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d1db:function(t,e,r){var n=r("3a49"),i=Function.prototype,o=i.call,a=n&&i.bind.bind(o,o);t.exports=n?a:function(t){return function(){return o.apply(t,arguments)}}},d25a:function(t,e,r){r("8896");var n=r("5609");t.exports=n("String","trimRight")},d2a6:function(t,e,r){"use strict";var n=r("349f").forEach,i=r("f9de"),o=i("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},d3c5:function(t,e,r){var n=r("d4acb");t.exports=Array.isArray||function(t){return"Array"==n(t)}},d409:function(t,e,r){"use strict";var n=r("bca7"),i=r("d1db"),o=n.aTypedArray,a=n.exportTypedArrayMethod,s=i([].join);a("join",(function(t){return s(o(this),t)}))},d4acb:function(t,e,r){var n=r("d1db"),i=n({}.toString),o=n("".slice);t.exports=function(t){return o(i(t),8,-1)}},d4cb:function(t,e,r){var n=r("405b");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d5d1:function(t,e,r){var n=r("5845"),i=r("5c55");t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},d60f:function(t,e){t.exports={}},d6da:function(t,e){var r=Array,n=Math.abs,i=Math.pow,o=Math.floor,a=Math.log,s=Math.LN2,c=function(t,e,c){var u,f,l,h=r(c),d=8*c-e-1,p=(1<<d)-1,g=p>>1,v=23===e?i(2,-24)-i(2,-77):0,b=t<0||0===t&&1/t<0?1:0,m=0;t=n(t),t!=t||t===1/0?(f=t!=t?1:0,u=p):(u=o(a(t)/s),l=i(2,-u),t*l<1&&(u--,l*=2),t+=u+g>=1?v/l:v*i(2,1-g),t*l>=2&&(u++,l/=2),u+g>=p?(f=0,u=p):u+g>=1?(f=(t*l-1)*i(2,e),u+=g):(f=t*i(2,g-1)*i(2,e),u=0));while(e>=8)h[m++]=255&f,f/=256,e-=8;u=u<<e|f,d+=e;while(d>0)h[m++]=255&u,u/=256,d-=8;return h[--m]|=128*b,h},u=function(t,e){var r,n=t.length,o=8*n-e-1,a=(1<<o)-1,s=a>>1,c=o-7,u=n-1,f=t[u--],l=127&f;f>>=7;while(c>0)l=256*l+t[u--],c-=8;r=l&(1<<-c)-1,l>>=-c,c+=e;while(c>0)r=256*r+t[u--],c-=8;if(0===l)l=1-s;else{if(l===a)return r?NaN:f?-1/0:1/0;r+=i(2,e),l-=s}return(f?-1:1)*r*i(2,l-e)};t.exports={pack:c,unpack:u}},d799:function(t,e,r){var n=r("cc94"),i=r("66f6"),o=r("5977"),a=r("7f8d"),s=r("a1a1"),c=r("15e7"),u=r("d94f"),f=r("ed8e"),l=r("a095"),h=r("fe35"),d=i&&i.prototype,p=c("species"),g=!1,v=o(n.PromiseRejectionEvent),b=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(l&&(!d["catch"]||!d["finally"]))return!0;if(!h||h<51||!/native code/.test(t)){var r=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},o=r.constructor={};if(o[p]=n,g=r.then((function(){}))instanceof n,!g)return!0}return!e&&(u||f)&&!v}));t.exports={CONSTRUCTOR:b,REJECTION_EVENT:v,SUBCLASSING:g}},d83e:function(t,e,r){"use strict";var n=r("bca7"),i=r("43cd"),o=r("405b"),a=r("16cd"),s=n.aTypedArray,c=n.exportTypedArrayMethod,u=o((function(){new Int8Array(1).slice()}));c("slice",(function(t,e){var r=a(s(this),t,e),n=i(this),o=0,c=r.length,u=new n(c);while(c>o)u[o]=r[o++];return u}),u)},d858:function(t,e){t.exports=function(t,e){return{value:t,done:e}}},d8b0:function(t,e,r){var n=r("7436"),i=r("5977"),o=r("09b7"),a=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&i(r=t.toString)&&!o(s=n(r,t)))return s;if(i(r=t.valueOf)&&!o(s=n(r,t)))return s;if("string"!==e&&i(r=t.toString)&&!o(s=n(r,t)))return s;throw a("Can't convert object to primitive value")}},d94f:function(t,e,r){var n=r("ed8e"),i=r("052d");t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},d9a6:function(t,e,r){"use strict";var n=r("b31a"),i=r("bcb6"),o=r("5dde"),a=r("95cb"),s=r("eb94").f,c=r("dfdd"),u=r("d858"),f=r("a095"),l=r("d4cb"),h="Array Iterator",d=a.set,p=a.getterFor(h);t.exports=c(Array,"Array",(function(t,e){d(this,{type:h,target:n(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!f&&l&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(v){}},da4c:function(t,e,r){"use strict";var n=r("bca7"),i=r("349f").every,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},dfdd:function(t,e,r){"use strict";var n=r("41bc"),i=r("7436"),o=r("a095"),a=r("86f5"),s=r("5977"),c=r("57b6"),u=r("e08b"),f=r("47b5"),l=r("5411"),h=r("1580"),d=r("37fc"),p=r("15e7"),g=r("5dde"),v=r("593d"),b=a.PROPER,m=a.CONFIGURABLE,y=v.IteratorPrototype,w=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),A="keys",L="values",N="entries",S=function(){return this};t.exports=function(t,e,r,a,p,v,_){c(r,e,a);var P,k,j,C=function(t){if(t===p&&T)return T;if(!w&&t in F)return F[t];switch(t){case A:return function(){return new r(this,t)};case L:return function(){return new r(this,t)};case N:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",O=!1,F=t.prototype,E=F[x]||F["@@iterator"]||p&&F[p],T=!w&&E||C(p),M="Array"==e&&F.entries||E;if(M&&(P=u(M.call(new t)),P!==Object.prototype&&P.next&&(o||u(P)===y||(f?f(P,y):s(P[x])||d(P,x,S)),l(P,I,!0,!0),o&&(g[I]=S))),b&&p==L&&E&&E.name!==L&&(!o&&m?h(F,"name",L):(O=!0,T=function(){return i(E,this)})),p)if(k={values:C(L),keys:v?T:C(A),entries:C(N)},_)for(j in k)(w||O||!(j in F))&&d(F,j,k[j]);else n({target:e,proto:!0,forced:w||O},k);return o&&!_||F[x]===T||d(F,x,T,{name:p}),g[e]=T,k}},e08b:function(t,e,r){var n=r("7794"),i=r("5977"),o=r("e401"),a=r("1287"),s=r("f982"),c=a("IE_PROTO"),u=Object,f=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(n(e,c))return e[c];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof u?f:null}},e099:function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?o(a(t),(function(a){var s=encodeURIComponent(n(a))+r;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[a]))})).join(e):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var a=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},e1017:function(t,e,r){r("d00c");var n=r("5609");t.exports=n("Array","map")},e331:function(t,e,r){"use strict";var n=r("41bc"),i=r("cc94"),o=r("7436"),a=r("d4cb"),s=r("02cf"),c=r("bca7"),u=r("e474"),f=r("f283"),l=r("6165"),h=r("1580"),d=r("4c1e"),p=r("14cf"),g=r("28ce"),v=r("6d9d"),b=r("d5d1"),m=r("7794"),y=r("2864"),w=r("09b7"),x=r("5c55"),A=r("08bf"),L=r("17e8"),N=r("47b5"),S=r("47bc").f,_=r("0eb7"),P=r("349f").forEach,k=r("6a72"),j=r("eb94"),C=r("0319"),I=r("95cb"),O=r("7270"),F=I.get,E=I.set,T=I.enforce,M=j.f,R=C.f,B=Math.round,D=i.RangeError,q=u.ArrayBuffer,U=q.prototype,z=u.DataView,H=c.NATIVE_ARRAY_BUFFER_VIEWS,W=c.TYPED_ARRAY_TAG,V=c.TypedArray,G=c.TypedArrayPrototype,Y=c.aTypedArrayConstructor,X=c.isTypedArray,J="BYTES_PER_ELEMENT",K="Wrong length",$=function(t,e){Y(t);var r=0,n=e.length,i=new t(n);while(n>r)i[r]=e[r++];return i},Z=function(t,e){M(t,e,{get:function(){return F(this)[e]}})},Q=function(t){var e;return L(U,t)||"ArrayBuffer"==(e=y(t))||"SharedArrayBuffer"==e},tt=function(t,e){return X(t)&&!x(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=b(e),tt(t,e)?l(2,t[e]):R(t,e)},rt=function(t,e,r){return e=b(e),!(tt(t,e)&&w(r)&&m(r,"value"))||m(r,"get")||m(r,"set")||r.configurable||m(r,"writable")&&!r.writable||m(r,"enumerable")&&!r.enumerable?M(t,e,r):(t[e]=r.value,t)};a?(H||(C.f=et,j.f=rt,Z(G,"buffer"),Z(G,"byteOffset"),Z(G,"byteLength"),Z(G,"length")),n({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:et,defineProperty:rt}),t.exports=function(t,e,r){var a=t.match(/\d+$/)[0]/8,c=t+(r?"Clamped":"")+"Array",u="get"+t,l="set"+t,d=i[c],b=d,m=b&&b.prototype,y={},x=function(t,e){var r=F(t);return r.view[u](e*a+r.byteOffset,!0)},L=function(t,e,n){var i=F(t);r&&(n=(n=B(n))<0?0:n>255?255:255&n),i.view[l](e*a+i.byteOffset,n,!0)},j=function(t,e){M(t,e,{get:function(){return x(this,e)},set:function(t){return L(this,e,t)},enumerable:!0})};H?s&&(b=e((function(t,e,r,n){return f(t,m),O(function(){return w(e)?Q(e)?void 0!==n?new d(e,v(r,a),n):void 0!==r?new d(e,v(r,a)):new d(e):X(e)?$(b,e):o(_,b,e):new d(g(e))}(),t,b)})),N&&N(b,V),P(S(d),(function(t){t in b||h(b,t,d[t])})),b.prototype=m):(b=e((function(t,e,r,n){f(t,m);var i,s,c,u=0,l=0;if(w(e)){if(!Q(e))return X(e)?$(b,e):o(_,b,e);i=e,l=v(r,a);var h=e.byteLength;if(void 0===n){if(h%a)throw D(K);if(s=h-l,s<0)throw D(K)}else if(s=p(n)*a,s+l>h)throw D(K);c=s/a}else c=g(e),s=c*a,i=new q(s);E(t,{buffer:i,byteOffset:l,byteLength:s,length:c,view:new z(i)});while(u<c)j(t,u++)})),N&&N(b,V),m=b.prototype=A(G)),m.constructor!==b&&h(m,"constructor",b),T(m).TypedArrayConstructor=b,W&&h(m,W,c);var C=b!=d;y[c]=b,n({global:!0,constructor:!0,forced:C,sham:!H},y),J in b||h(b,J,a),J in m||h(m,J,a),k(c)}):t.exports=function(){}},e401:function(t,e,r){var n=r("e677"),i=Object;t.exports=function(t){return i(n(t))}},e474:function(t,e,r){"use strict";var n=r("cc94"),i=r("d1db"),o=r("d4cb"),a=r("79e0"),s=r("86f5"),c=r("1580"),u=r("4fad"),f=r("405b"),l=r("f283"),h=r("0d11"),d=r("14cf"),p=r("28ce"),g=r("d6da"),v=r("e08b"),b=r("47b5"),m=r("47bc").f,y=r("eb94").f,w=r("7cca"),x=r("bb66"),A=r("5411"),L=r("95cb"),N=s.PROPER,S=s.CONFIGURABLE,_=L.get,P=L.set,k="ArrayBuffer",j="DataView",C="prototype",I="Wrong length",O="Wrong index",F=n[k],E=F,T=E&&E[C],M=n[j],R=M&&M[C],B=Object.prototype,D=n.Array,q=n.RangeError,U=i(w),z=i([].reverse),H=g.pack,W=g.unpack,V=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},Y=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},X=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},J=function(t){return H(t,23,4)},K=function(t){return H(t,52,8)},$=function(t,e){y(t[C],e,{get:function(){return _(this)[e]}})},Z=function(t,e,r,n){var i=p(r),o=_(t);if(i+e>o.byteLength)throw q(O);var a=_(o.buffer).bytes,s=i+o.byteOffset,c=x(a,s,s+e);return n?c:z(c)},Q=function(t,e,r,n,i,o){var a=p(r),s=_(t);if(a+e>s.byteLength)throw q(O);for(var c=_(s.buffer).bytes,u=a+s.byteOffset,f=n(+i),l=0;l<e;l++)c[u+l]=f[o?l:e-l-1]};if(a){var tt=N&&F.name!==k;if(f((function(){F(1)}))&&f((function(){new F(-1)}))&&!f((function(){return new F,new F(1.5),new F(NaN),1!=F.length||tt&&!S})))tt&&S&&c(F,"name",k);else{E=function(t){return l(this,T),new F(p(t))},E[C]=T;for(var et,rt=m(F),nt=0;rt.length>nt;)(et=rt[nt++])in E||c(E,et,F[et]);T.constructor=E}b&&v(R)!==B&&b(R,B);var it=new M(new E(2)),ot=i(R.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||u(R,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else E=function(t){l(this,T);var e=p(t);P(this,{bytes:U(D(e),0),byteLength:e}),o||(this.byteLength=e)},T=E[C],M=function(t,e,r){l(this,R),l(t,T);var n=_(t).byteLength,i=h(e);if(i<0||i>n)throw q("Wrong offset");if(r=void 0===r?n-i:d(r),i+r>n)throw q(I);P(this,{buffer:t,byteLength:r,byteOffset:i}),o||(this.buffer=t,this.byteLength=r,this.byteOffset=i)},R=M[C],o&&($(E,"byteLength"),$(M,"buffer"),$(M,"byteLength"),$(M,"byteOffset")),u(R,{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return X(Z(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return X(Z(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return W(Z(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return W(Z(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Q(this,1,t,V,e)},setUint8:function(t,e){Q(this,1,t,V,e)},setInt16:function(t,e){Q(this,2,t,G,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Q(this,2,t,G,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Q(this,4,t,Y,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Q(this,4,t,Y,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Q(this,4,t,J,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Q(this,8,t,K,e,arguments.length>2?arguments[2]:void 0)}});A(E,k),A(M,j),t.exports={ArrayBuffer:E,DataView:M}},e4fb:function(t,e,r){var n=r("8b60"),i=r("e401"),o=r("5de5"),a=r("bc58"),s=TypeError,c=function(t){return function(e,r,c,u){n(r);var f=i(e),l=o(f),h=a(f),d=t?h-1:0,p=t?-1:1;if(c<2)while(1){if(d in l){u=l[d],d+=p;break}if(d+=p,t?d<0:h<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=p)d in l&&(u=r(u,l[d],d,f));return u}};t.exports={left:c(!1),right:c(!0)}},e61f:function(t,e,r){"use strict";var n=r("41bc"),i=r("7436"),o=r("8b60"),a=r("5e08"),s=r("2d7c"),c=r("54f7"),u=r("01a0");n({target:"Promise",stat:!0,forced:u},{race:function(t){var e=this,r=a.f(e),n=r.reject,u=s((function(){var a=o(e.resolve);c(t,(function(t){i(a,e,t).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},e677:function(t,e,r){var n=r("f41d"),i=TypeError;t.exports=function(t){if(n(t))throw i("Can't call method on "+t);return t}},e6ec:function(t,e,r){var n=r("41bc"),i=r("c358").values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},e9da:function(t,e,r){},eb94:function(t,e,r){var n=r("d4cb"),i=r("48af"),o=r("c845"),a=r("3994"),s=r("d5d1"),c=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",h="configurable",d="writable";e.f=n?o?function(t,e,r){if(a(t),e=s(e),a(r),"function"===typeof t&&"prototype"===e&&"value"in r&&d in r&&!r[d]){var n=f(t,e);n&&n[d]&&(t[e]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:l in r?r[l]:n[l],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(a(t),e=s(e),a(r),i)try{return u(t,e,r)}catch(n){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ec43:function(t,e,r){"use strict";var n=r("41bc"),i=r("349f").find,o=r("bcb6"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},ecae:function(t,e,r){var n=r("b18b"),i=r("cc94");t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},ed75:function(t,e,r){var n=r("d1db"),i=r("405b"),o=r("5977"),a=r("2864"),s=r("4526"),c=r("a1a1"),u=function(){},f=[],l=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),p=!h.exec(u),g=function(t){if(!o(t))return!1;try{return l(u,f,t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,c(t))}catch(e){return!0}};v.sham=!0,t.exports=!l||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?v:g},ed8e:function(t,e){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},eee5:function(t,e,r){var n=r("b2df"),i=r("8b60"),o=r("3a49"),a=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},f21c:function(t,e,r){var n=r("ed75"),i=r("b3c7"),o=TypeError;t.exports=function(t){if(n(t))return t;throw o(i(t)+" is not a constructor")}},f283:function(t,e,r){var n=r("17e8"),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw i("Incorrect invocation")}},f41d:function(t,e){t.exports=function(t){return null===t||void 0===t}},f426:function(t,e,r){var n=r("09b7"),i=r("1580");t.exports=function(t,e){n(e)&&"cause"in e&&i(t,"cause",e.cause)}},f5e3:function(t,e,r){var n=r("cc94"),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},f61a:function(t,e,r){"use strict";var n=r("bca7"),i=r("02cf"),o=n.aTypedArrayConstructor,a=n.exportTypedArrayStaticMethod;a("of",(function(){var t=0,e=arguments.length,r=new(o(this))(e);while(e>t)r[t]=arguments[t++];return r}),i)},f8d4:function(t,e,r){var n=r("15e7"),i=r("5dde"),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},f982:function(t,e,r){var n=r("405b");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},f9de:function(t,e,r){"use strict";var n=r("405b");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},f9ec:function(t,e,r){"use strict";var n=r("41bc"),i=r("7436"),o=r("5e08"),a=r("d799").CONSTRUCTOR;n({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},fa00:function(t,e,r){var n=r("0d11"),i=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw i("The argument can't be less than 0");return e}},fb0e:function(t,e,r){r("ff27"),r("39a9"),r("a345"),r("e61f"),r("f9ec"),r("12ac")},fc51:function(t,e,r){"use strict";var n=r("bca7"),i=r("1a0a").includes,o=n.aTypedArray,a=n.exportTypedArrayMethod;a("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},fd50:function(t,e,r){var n=r("bb66"),i=Math.floor,o=function(t,e){var r=t.length,c=i(r/2);return r<8?a(t,e):s(t,o(n(t,0,c),e),o(n(t,c),e),e)},a=function(t,e){var r,n,i=t.length,o=1;while(o<i){n=o,r=t[o];while(n&&e(t[n-1],r)>0)t[n]=t[--n];n!==o++&&(t[n]=r)}return t},s=function(t,e,r,n){var i=e.length,o=r.length,a=0,s=0;while(a<i||s<o)t[a+s]=a<i&&s<o?n(e[a],r[s])<=0?e[a++]:r[s++]:a<i?e[a++]:r[s++];return t};t.exports=o},fe35:function(t,e,r){var n,i,o=r("cc94"),a=r("b18b"),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,f=u&&u.v8;f&&(n=f.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},ff27:function(t,e,r){"use strict";var n,i,o,a,s=r("41bc"),c=r("a095"),u=r("052d"),f=r("cc94"),l=r("7436"),h=r("37fc"),d=r("47b5"),p=r("5411"),g=r("6a72"),v=r("8b60"),b=r("5977"),m=r("09b7"),y=r("f283"),w=r("09ce"),x=r("14a4").set,A=r("4d11"),L=r("6fd7"),N=r("2d7c"),S=r("b139"),_=r("95cb"),P=r("66f6"),k=r("d799"),j=r("5e08"),C="Promise",I=k.CONSTRUCTOR,O=k.REJECTION_EVENT,F=k.SUBCLASSING,E=_.getterFor(C),T=_.set,M=P&&P.prototype,R=P,B=M,D=f.TypeError,q=f.document,U=f.process,z=j.f,H=z,W=!!(q&&q.createEvent&&f.dispatchEvent),V="unhandledrejection",G="rejectionhandled",Y=0,X=1,J=2,K=1,$=2,Z=function(t){var e;return!(!m(t)||!b(e=t.then))&&e},Q=function(t,e){var r,n,i,o=e.value,a=e.state==X,s=a?t.ok:t.fail,c=t.resolve,u=t.reject,f=t.domain;try{s?(a||(e.rejection===$&&it(e),e.rejection=K),!0===s?r=o:(f&&f.enter(),r=s(o),f&&(f.exit(),i=!0)),r===t.promise?u(D("Promise-chain cycle")):(n=Z(r))?l(n,r,c,u):c(r)):u(o)}catch(h){f&&!i&&f.exit(),u(h)}},tt=function(t,e){t.notified||(t.notified=!0,A((function(){var r,n=t.reactions;while(r=n.get())Q(r,t);t.notified=!1,e&&!t.rejection&&rt(t)})))},et=function(t,e,r){var n,i;W?(n=q.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:e,reason:r},!O&&(i=f["on"+t])?i(n):t===V&&L("Unhandled promise rejection",r)},rt=function(t){l(x,f,(function(){var e,r=t.facade,n=t.value,i=nt(t);if(i&&(e=N((function(){u?U.emit("unhandledRejection",n,r):et(V,r,n)})),t.rejection=u||nt(t)?$:K,e.error))throw e.value}))},nt=function(t){return t.rejection!==K&&!t.parent},it=function(t){l(x,f,(function(){var e=t.facade;u?U.emit("rejectionHandled",e):et(G,e,t.value)}))},ot=function(t,e,r){return function(n){t(e,n,r)}},at=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=J,tt(t,!0))},st=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw D("Promise can't be resolved itself");var n=Z(e);n?A((function(){var r={done:!1};try{l(n,e,ot(st,r,t),ot(at,r,t))}catch(i){at(r,i,t)}})):(t.value=e,t.state=X,tt(t,!1))}catch(i){at({done:!1},i,t)}}};if(I&&(R=function(t){y(this,B),v(t),l(n,this);var e=E(this);try{t(ot(st,e),ot(at,e))}catch(r){at(e,r)}},B=R.prototype,n=function(t){T(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:Y,value:void 0})},n.prototype=h(B,"then",(function(t,e){var r=E(this),n=z(w(this,R));return r.parent=!0,n.ok=!b(t)||t,n.fail=b(e)&&e,n.domain=u?U.domain:void 0,r.state==Y?r.reactions.add(n):A((function(){Q(n,r)})),n.promise})),i=function(){var t=new n,e=E(t);this.promise=t,this.resolve=ot(st,e),this.reject=ot(at,e)},j.f=z=function(t){return t===R||t===o?new i(t):H(t)},!c&&b(P)&&M!==Object.prototype)){a=M.then,F||h(M,"then",(function(t,e){var r=this;return new R((function(t,e){l(a,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete M.constructor}catch(ct){}d&&d(M,B)}s({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:R}),p(R,C,!1,!0),g(C)}}]);