169 lines
417 KiB
JavaScript
169 lines
417 KiB
JavaScript
|
|
try{let pr=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$i=new pr.Error().stack;$i&&(pr._sentryDebugIds=pr._sentryDebugIds||{},pr._sentryDebugIds[$i]="83dca642-8fa0-41e0-8c40-8a400c7c0532",pr._sentryDebugIdIdentifier="sentry-dbid-83dca642-8fa0-41e0-8c40-8a400c7c0532")}catch(pr){}{let pr=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};pr.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[976],{77109:(pr,$i,Tn)=>{Tn.r($i),Tn.d($i,{BwsImgCmp:()=>on,JsPdf:()=>Yt,zip:()=>Sc});var _u={},dc=function(e,t,n,i,o){var r=new Worker(_u[t]||(_u[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return r.onmessage=function(s){var u=s.data,c=u.$e$;if(c){var m=new Error(c[0]);m.code=c[1],m.stack=c[2],o(m,null)}else o(null,u)},r.postMessage(n,i),r},pe=Uint8Array,ln=Uint16Array,ta=Int32Array,ui=new pe([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]),li=new pe([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]),ea=new pe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Su=function(e,t){for(var n=new ln(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new ta(n[30]),i=1;i<30;++i)for(var r=n[i];r<n[i+1];++r)o[r]=r-n[i]<<5|i;return{b:n,r:o}},Pu=Su(ui,2),ss=Pu.b,Ta=Pu.r;ss[28]=258,Ta[258]=28;for(var ku=Su(li,0),Iu=ku.b,us=ku.r,na=new ln(32768),Se=0;Se<32768;++Se){var Sr=(Se&43690)>>1|(Se&21845)<<1;Sr=(Sr&52428)>>2|(Sr&13107)<<2,Sr=(Sr&61680)>>4|(Sr&3855)<<4,na[Se]=((Sr&65280)>>8|(Sr&255)<<8)>>1}for(var Pn=function(e,t,n){for(var i=e.length,o=0,r=new ln(t);o<i;++o)e[o]&&++r[e[o]-1];var s=new ln(t);for(o=1;o<t;++o)s[o]=s[o-1]+r[o-1]<<1;var u;if(n){u=new ln(1<<t);var c=15-t;for(o=0;o<i;++o)if(e[o])for(var m=o<<4|e[o],d=t-e[o],p=s[e[o]-1]++<<d,g=p|(1<<d)-1;p<=g;++p)u[na[p]>>c]=m}else for(u=new ln(i),o=0;o<i;++o)e[o]&&(u[o]=na[s[e[o]-1]++]>>15-e[o]);return u},gr=new pe(288),Se=0;Se<144;++Se)gr[Se]=8;for(var Se=144;Se<256;++Se)gr[Se]=9;for(var Se=256;Se<280;++Se)gr[Se]=7;for(var Se=280;Se<288;++Se)gr[Se]=8;for(var ci=new pe(32),Se=0;Se<32;++Se)ci[Se]=5;var Fu=Pn(gr,9,0),Cu=Pn(gr,9,1),Eu=Pn(ci,5,0),ju=Pn(ci,5,1),Ra=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},kn=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},qa=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},ra=function(e){return(e+7)/8|0},Pr=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new pe(e.subarray(t,n))},e1={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Ou=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ue=function(e,t,n){var i=new Error(t||Ou[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,ue),!n)throw i;return i},Ua=function(e,t,n,i){var o=e.length,r=i?i.length:0;if(!o||t.f&&!t.l)return n||new pe(0);var s=!n,u=s||t.i!=2,c=t.i;s&&(n=new pe(o*3));var m=function(bt){var St=n.length;if(bt>St){var Ft=new pe(Math.max(St*2,bt));Ft.set(n),n=Ft}},d=t.f||0,p=t.p||0,g=t.b||0,f=t.l,w=t.d,N=t.m,C=t.n,y=o*8;do{if(!f){d=kn(e,p,1);var M=kn(e,p+1,3);if(p+=3,M)if(M==1)f=Cu,w=ju,N=9,C=5;else if(M==2){var W=kn(e,p,31)+257,Q=kn(e,p+10,15)+4,x=W+kn(e,p+5,31)+1;p+=14;for(var k=new pe(x),H=new pe(19),A=0;A<Q;++A)H[ea[A]]=kn(e,p+A*3,7);p+=Q*3;for(var L=Ra(H),B=(1<<L)-1,F=Pn(H,L,1),A=0;A<x;){var Y=F[kn(e,p,B)];p+=Y&15;var z=Y>>4;if(z<16)k[A++]=z;else{var E=0,I=0;for(z==16?(I=3+kn(e,p,3),p+=2,E=k[A-1]):z==17?(I=3+kn(e,p,7),p+=3):z==18&&(I=1
|
|||
|
|
*
|
|||
|
|
* jsPDF - PDF Document creation from JavaScript
|
|||
|
|
* Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
|
|||
|
|
* CommitID 00000000
|
|||
|
|
*
|
|||
|
|
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|||
|
|
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|||
|
|
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|||
|
|
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|||
|
|
* 2010 Aaron Spike, https://github.com/acspike
|
|||
|
|
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|||
|
|
* 2012 Pablo Hess, https://github.com/pablohess
|
|||
|
|
* 2012 Florian Jenett, https://github.com/fjenett
|
|||
|
|
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|||
|
|
* 2013 Youssef Beddad, https://github.com/lifof
|
|||
|
|
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|||
|
|
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|||
|
|
* 2013 Jeremy Morel, https://github.com/jmorel
|
|||
|
|
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|||
|
|
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|||
|
|
* 2014 James Makes, https://github.com/dollaruw
|
|||
|
|
* 2014 Diego Casorran, https://github.com/diegocr
|
|||
|
|
* 2014 Steven Spungin, https://github.com/Flamenco
|
|||
|
|
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|||
|
|
*
|
|||
|
|
* 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.
|
|||
|
|
*
|
|||
|
|
* Contributor(s):
|
|||
|
|
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|||
|
|
* kim3er, mfo, alnorth, Flamenco
|
|||
|
|
*/var Jt=function(){return typeof window<"u"?window:typeof Tn.g<"u"?Tn.g:typeof self<"u"?self:this}();function As(){Jt.console&&typeof Jt.console.log=="function"&&Jt.console.log.apply(Jt.console,arguments)}var xe={log:As,warn:function(e){Jt.console&&(typeof Jt.console.warn=="function"?Jt.console.warn.apply(Jt.console,arguments):As.call(null,arguments))},error:function(e){Jt.console&&(typeof Jt.console.error=="function"?Jt.console.error.apply(Jt.console,arguments):As(e))}};function xs(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){Vr(i.response,t,n)},i.onerror=function(){xe.error("could not download file")},i.send()}function Ku(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function $a(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var sa,Ls,Vr=Jt.saveAs||((typeof window>"u"?"undefined":(0,Ae.A)(window))!=="object"||window!==Jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=Jt.URL||Jt.webkitURL,o=document.createElement("a");t=t||e.name||"download",o.download=t,o.rel="noopener",typeof e=="string"?(o.href=e,o.origin!==location.origin?Ku(o.href)?xs(e,t,n):$a(o,o.target="_blank"):$a(o)):(o.href=i.createObjectURL(e),setTimeout(function(){i.revokeObjectURL(o.href)},4e4),setTimeout(function(){$a(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download",typeof e=="string")if(Ku(e))xs(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){$a(i)})}else navigator.msSaveOrOpenBlob(function(o,r){return r===void 0?r={autoBom:!1}:(0,Ae.A)(r)!=="object"&&(xe.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type)?new Blob(["\uFEFF",o],{type:o.type}):o}(e,n),t)}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return xs(e,t,n);var o=e.type==="application/octet-stream",r=/constructor/i.test(Jt.HTMLElement)||Jt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&r)&&(typeof FileReader>"u"?"undefined":(0,Ae.A)(FileReader))==="object"){var u=new FileReader;u.onloadend=function(){var d=u.result;d=s?d:d.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=d:location=d,i=null},u.readAsDataURL(e)}else{var c=Jt.URL||Jt.webkitURL,m=c.createObjectURL(e);i?i.location=m:location.href=m,i=null,setTimeout(function(){c.revokeObjectURL(m)},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 $u(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],i=0;i<n.length;i++){var o=n[i].re,r=n[i].process,s=o.exec(e);s&&(t=r(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var u=this.r.toString(16),c=this.g.toString(16),m=this.b.toString(16);return u.length==1&&(u="0"+u),c.length==1&&(c="0"+c),m.length==1&&(m="0"+m),"#"+u+c+m}}/**
|
|||
|
|
* @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 Ns(e,t){var n=e[0],i=e[1],o=e[2],r=e[3];n=en(n,i,o,r,t[0],7,-680876936),r=en(r,n,i,o,t[1],12,-389564586),o=en(o,r,n,i,t[2],17,606105819),i=en(i,o,r,n,t[3],22,-1044525330),n=en(n,i,o,r,t[4],7,-176418897),r=en(r,n,i,o,t[5],12,1200080426),o=en(o,r,n,i,t[6],17,-1473231341),i=en(i,o,r,n,t[7],22,-45705983),n=en(n,i,o,r,t[8],7,1770035416),r=en(r,n,i,o,t[9],12,-1958414417),o=en(o,r,n,i,t[10],17,-42063),i=en(i,o,r,n,t[11],22,-1990404162),n=en(n,i,o,r,t[12],7,1804603682),r=en(r,n,i,o,t[13],12,-40341101),o=en(o,r,n,i,t[14],17,-1502002290),n=nn(n,i=en(i,o,r,n,t[15],22,1236535329),o,r,t[1],5,-165796510),r=nn(r,n,i,o,t[6],9,-1069501632),o=nn(o,r,n,i,t[11],14,643717713),i=nn(i,o,r,n,t[0],20,-373897302),n=nn(n,i,o,r,t[5],5,-701558691),r=nn(r,n,i,o,t[10],9,38016083),o=nn(o,r,n,i,t[15],14,-660478335),i=nn(i,o,r,n,t[4],20,-405537848),n=nn(n,i,o,r,t[9],5,568446438),r=nn(r,n,i,o,t[14],9,-1019803690),o=nn(o,r,n,i,t[3],14,-187363961),i=nn(i,o,r,n,t[8],20,1163531501),n=nn(n,i,o,r,t[13],5,-1444681467),r=nn(r,n,i,o,t[2],9,-51403784),o=nn(o,r,n,i,t[7],14,1735328473),n=rn(n,i=nn(i,o,r,n,t[12],20,-1926607734),o,r,t[5],4,-378558),r=rn(r,n,i,o,t[8],11,-2022574463),o=rn(o,r,n,i,t[11],16,1839030562),i=rn(i,o,r,n,t[14],23,-35309556),n=rn(n,i,o,r,t[1],4,-1530992060),r=rn(r,n,i,o,t[4],11,1272893353),o=rn(o,r,n,i,t[7],16,-155497632),i=rn(i,o,r,n,t[10],23,-1094730640),n=rn(n,i,o,r,t[13],4,681279174),r=rn(r,n,i,o,t[0],11,-358537222),o=rn(o,r,n,i,t[3],16,-722521979),i=rn(i,o,r,n,t[6],23,76029189),n=rn(n,i,o,r,t[9],4,-640364487),r=rn(r,n,i,o,t[12],11,-421815835),o=rn(o,r,n,i,t[15],16,530742520),n=an(n,i=rn(i,o,r,n,t[2],23,-995338651),o,r,t[0],6,-198630844),r=an(r,n,i,o,t[7],10,1126891415),o=an(o,r,n,i,t[14],15,-1416354905),i=an(i,o,r,n,t[5],21,-57434055),n=an(n,i,o,r,t[12],6,1700485571),r=an(r,n,i,o,t[3],10,-1894986606),o=an(o,r,n,i,t[10],15,-1051523),i=an(i,o,r,n,t[1],21,-2054922799),n=an(n,i,o,r,t[8],6,1873313359),r=an(r,n,i,o,t[15],10,-30611744),o=an(o,r,n,i,t[6],15,-1560198380),i=an(i,o,r,n,t[13],21,1309151649),n=an(n,i,o,r,t[4],6,-145523070),r=an(r,n,i,o,t[11],10,-1120210379),o=an(o,r,n,i,t[2],15,718787259),i=an(i,o,r,n,t[9],21,-343485551),e[0]=Ir(n,e[0]),e[1]=Ir(i,e[1]),e[2]=Ir(o,e[2]),e[3]=Ir(r,e[3])}function to(e,t,n,i,o,r){return t=Ir(Ir(t,e),Ir(i,r)),Ir(t<<o|t>>>32-o,n)}function en(e,t,n,i,o,r,s){return to(t&n|~t&i,e,t,o,r,s)}function nn(e,t,n,i,o,r,s){return to(t&i|n&~i,e,t,o,r,s)}function rn(e,t,n,i,o,r,s){return to(t^n^i,e,t,o,r,s)}function an(e,t,n,i,o,r,s){return to(n^(t|~i),e,t,o,r,s)}function tl(e){var t,n=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Ns(i,Pc(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(Ns(i,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,Ns(i,o),i}function Pc(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}sa=Jt.atob.bind(Jt),Ls=Jt.btoa.bind(Jt);var el="0123456789abcdef".split("");function kc(e){for(var t="",n=0;n<4;n++)t+=el[e>>8*n+4&15]+el[e>>8*n&15];return t}function Ic(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function _s(e){return tl(e).map(Ic).join("")}var Fc=function(e){for(var t=0;t<e.length;t++)e[t]=kc(e[t]);return e.join("")}(tl("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ir(e,t){if(Fc){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}/**
|
|||
|
|
* @license
|
|||
|
|
* FPDF is released under a permissive license: there is no usage restriction.
|
|||
|
|
* You may embed it freely in your application (commercial or not), with or
|
|||
|
|
* without modifications.
|
|||
|
|
*
|
|||
|
|
* Reference: http://www.fpdf.org/en/script/script37.php
|
|||
|
|
*/function Ss(e,t){var n,i,o,r;if(e!==n){for(var s=(o=e,r=1+(256/e.length>>0),new Array(r+1).join(o)),u=[],c=0;c<256;c++)u[c]=c;var m=0;for(c=0;c<256;c++){var d=u[c];m=(m+d+s.charCodeAt(c))%256,u[c]=u[m],u[m]=d}n=e,i=u}else u=i;var p=t.length,g=0,f=0,w="";for(c=0;c<p;c++)f=(f+(d=u[g=(g+1)%256]))%256,u[g]=u[f],u[f]=d,s=u[(u[g]+u[f])%256],w+=String.fromCharCode(t.charCodeAt(c)^s);return w}/**
|
|||
|
|
* @license
|
|||
|
|
* Licensed under the MIT License.
|
|||
|
|
* http://opensource.org/licenses/mit-license
|
|||
|
|
* Author: Owen Leong (@owenl131)
|
|||
|
|
* Date: 15 Oct 2020
|
|||
|
|
* References:
|
|||
|
|
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|||
|
|
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|||
|
|
* http://www.fpdf.org/en/script/script37.php
|
|||
|
|
*/var nl={print:4,modify:8,copy:16,"annot-forms":32};function pi(e,t,n,i){this.v=1,this.r=2;var o=192;e.forEach(function(u){if(nl.perm!==void 0)throw new Error("Invalid permission: "+u);o+=nl[u]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var r=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^o)),this.encryptionKey=_s(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Ss(this.encryptionKey,this.padding)}function gi(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i);o<33||o===35||o===37||o===40||o===41||o===47||o===60||o===62||o===91||o===93||o===123||o===125||o>126?t+="#"+("0"+o.toString(16)).slice(-2):t+=e[i]}return t}function rl(e){if((0,Ae.A)(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(n,i,o){if(o=o||!1,typeof n!="string"||typeof i!="function"||typeof o!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(n)||(t[n]={});var r=Math.random().toString(35);return t[n][r]=[i,!!o],r},this.unsubscribe=function(n){for(var i in t)if(t[i][n])return delete t[i][n],Object.keys(t[i]).length===0&&delete t[i],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var r in t[n]){var s=t[n][r];try{s[0].apply(e,i)}catch(u){Jt.console&&xe.error("jsPDF PubSub Error",u.message,u)}s[1]&&o.push(r)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function eo(e){if(!(this instanceof eo))return new eo(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function il(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Yr(e,t,n,i,o){if(!(this instanceof Yr))return new Yr(e,t,n,i,o);this.type=e==="axial"?2:3,this.coords=t,this.colors=n,il.call(this,i,o)}function vi(e,t,n,i,o){if(!(this instanceof vi))return new vi(e,t,n,i,o);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,il.call(this,i,o)}function Yt(e){var t,n=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],o=arguments[2],r=arguments[3],s=[],u=1,c=16,m="S",d=null;(0,Ae.A)(e=e||{})==="object"&&(n=e.orientation,i=e.unit||i,o=e.format||o,r=e.compress||e.compressPdf||r,(d=e.encryption||null)!==null&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),u=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),m=e.defaultPathOperation||"S"),s=e.filters||(r===!0?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,g={},f={internal:{},__private__:{}};f.__private__.PubSub=rl;var w="1.3",N=f.__private__.getPdfVersion=function(){return w};f.__private__.setPdfVersion=function(h){w=h};var C={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]};f.__private__.getPageFormats=function(){return C};var y=f.__private__.getPageFormat=function(h){return C[h]};o=o||"a4";var M={CO
|
|||
|
|
* @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 Yc(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,i=e[t++]|e[t++]<<8,o=e[t++],r=o>>7,s=1<<(7&o)+1;e[t++],e[t++];var u=null,c=null;r&&(u=t,c=s,t+=3*s);var m=!0,d=[],p=0,g=null,f=0,w=null;for(this.width=n,this.height=i;m&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,w=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((A=e[t++])>=0))throw Error("Invalid block size");if(A===0)break;t+=A}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var N=e[t++];p=e[t++]|e[t++]<<8,g=e[t++],(1&N)==0&&(g=null),f=N>>2&7,t++;break;case 254:for(;;){if(!((A=e[t++])>=0))throw Error("Invalid block size");if(A===0)break;t+=A}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var C=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,M=e[t++]|e[t++]<<8,z=e[t++]|e[t++]<<8,G=e[t++],$=G>>6&1,W=1<<(7&G)+1,Q=u,x=c,k=!1;G>>7&&(k=!0,Q=t,x=W,t+=3*W);var H=t;for(t++;;){var A;if(!((A=e[t++])>=0))throw Error("Invalid block size");if(A===0)break;t+=A}d.push({x:C,y,width:M,height:z,has_local_palette:k,palette_offset:Q,palette_size:x,data_offset:H,data_length:t-H,transparent_index:g,interlaced:!!$,delay:p,disposal:f});break;case 59:m=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return w},this.frameInfo=function(L){if(L<0||L>=d.length)throw new Error("Frame index out of range.");return d[L]},this.decodeAndBlitFrameBGRA=function(L,B){var F=this.frameInfo(L),Y=F.width*F.height,E=new Uint8Array(Y);xl(e,F.data_offset,E,Y);var I=F.palette_offset,X=F.transparent_index;X===null&&(X=256);var J=F.width,tt=n-J,gt=J,_=4*(F.y*n+F.x),R=4*((F.y+F.height)*n+F.x),q=_,U=4*tt;F.interlaced===!0&&(U+=4*n*7);for(var et=8,st=0,lt=E.length;st<lt;++st){var ut=E[st];if(gt===0&&(gt=J,(q+=U)>=R&&(U=4*tt+4*n*(et-1),q=_+(J+tt)*(et<<1),et>>=1)),ut===X)q+=4;else{var wt=e[I+3*ut],bt=e[I+3*ut+1],St=e[I+3*ut+2];B[q++]=St,B[q++]=bt,B[q++]=wt,B[q++]=255}--gt}},this.decodeAndBlitFrameRGBA=function(L,B){var F=this.frameInfo(L),Y=F.width*F.height,E=new Uint8Array(Y);xl(e,F.data_offset,E,Y);var I=F.palette_offset,X=F.transparent_index;X===null&&(X=256);var J=F.width,tt=n-J,gt=J,_=4*(F.y*n+F.x),R=4*((F.y+F.height)*n+F.x),q=_,U=4*tt;F.interlaced===!0&&(U+=4*n*7);for(var et=8,st=0,lt=E.length;st<lt;++st){var ut=E[st];if(gt===0&&(gt=J,(q+=U)>=R&&(U=4*tt+4*n*(et-1),q=_+(J+tt)*(et<<1),et>>=1)),ut===X)q+=4;else{var wt=e[I+3*ut],bt=e[I+3*ut+1],St=e[I+3*ut+2];B[q++]=wt,B[q++]=bt,B[q++]=St,B[q++]=255}--gt}}}function xl(e,t,n,i){for(var o=e[t++],r=1<<o,s=r+1,u=s+1,c=o+1,m=(1<<c)-1,d=0,p=0,g=0,f=e[t++],w=new Int32Array(4096),N=null;;){for(;d<16&&f!==0;)p|=e[t++]<<d,d+=8,f===1?f=e[t++]:--f;if(d<c)break;var C=p&m;if(p>>=c,d-=c,C!==r){if(C===s)break;for(var y=C<u?C:N,M=0,z=y;z>r;)z=w[z]>>8,++M;var G=z;if(g+M+(y!==C?1:0)>i)return void xe.log("Warning, gif stream longer than expected.");n[g++]=G;var $=g+=M;for(y!==C&&(n[g++]=G),z=y;M--;)z=w[z],n[--$]=255&z,z>>=8;N!==null&&u<4096&&(w[u++]=N<<8|G,u>=m+1&&c<12&&(++c,m=m<<1|1)),N=C}else u=s+1,m=(1<<(c=o+1))-1,N=null}return g!==i&&xe.log("Warning, gif stream shorter than expected."),n}/**
|
|||
|
|
* @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 js(e){var t,n,i,o,r,s=Math.floor,u=new Array(64),c=new Array(64),m=new Array(64),d=new Array(64),p=new Array(65535),g=new Array(65535),f=new Array(64),w=new Array(64),N=[],C=0,y=7,M=new Array(64),z=new Array(64),G=new Array(64),$=new Array(256),W=new Array(2048),Q=[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],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],A=[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],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Y=[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 E(_,R){for(var q=0,U=0,et=new Array,st=1;st<=16;st++){for(var lt=1;lt<=_[st];lt++)et[R[U]]=[],et[R[U]][0]=q,et[R[U]][1]=st,U++,q++;q*=2}return et}function I(_){for(var R=_[0],q=_[1]-1;q>=0;)R&1<<q&&(C|=1<<y),q--,--y<0&&(C==255?(X(255),X(0)):X(C),y=7,C=0)}function X(_){N.push(_)}function J(_){X(_>>8&255),X(255&_)}function tt(_,R,q,U,et){for(var st,lt=et[0],ut=et[240],wt=function(xt,_t){var Pt,kt,jt,Bt,Ut,Zt,ie,Xt,zt,Wt,Ct=0;for(zt=0;zt<8;++zt){Pt=xt[Ct],kt=xt[Ct+1],jt=xt[Ct+2],Bt=xt[Ct+3],Ut=xt[Ct+4],Zt=xt[Ct+5],ie=xt[Ct+6];var ge=Pt+(Xt=xt[Ct+7]),ne=Pt-Xt,Ce=kt+ie,se=kt-ie,be=jt+Zt,In=jt-Zt,le=Bt+Ut,ir=Bt-Ut,ye=ge+le,An=ge-le,Ye=Ce+be,he=Ce-be;xt[Ct]=ye+Ye,xt[Ct+4]=ye-Ye;var Vt=.707106781*(he+An);xt[Ct+2]=An+Vt,xt[Ct+6]=An-Vt;var ae=.382683433*((ye=ir+In)-(he=se+ne)),ar=.5411961*ye+ae,Pe=1.306562965*he+ae,Qe=.707106781*(Ye=In+se),or=ne+Qe,Qt=ne-Qe;xt[Ct+5]=Qt+ar,xt[Ct+3]=Qt-ar,xt[Ct+1]=or+Pe,xt[Ct+7]=or-Pe,Ct+=8}for(Ct=0,zt=0;zt<8;++zt){Pt=xt[Ct],kt=xt[Ct+8],jt=xt[Ct+16],Bt=xt[Ct+24],Ut=xt[Ct+32],Zt=xt[Ct+40],ie=xt[Ct+48];var Wn=Pt+(Xt=xt[Ct+56]),sr=Pt-Xt,gn=kt+ie,We=kt-ie,qe=jt+Zt,xn=jt-Zt,Ni=Bt+Ut,vr=Bt-Ut,Gn=Wn+Ni,Vn=Wn-Ni,Yn=gn+qe,ur=gn-qe;xt[Ct]=Gn+Yn,xt[Ct+32]=Gn-Yn;var Fn=.707106781*(ur+Vn);xt[Ct+16]=Vn+Fn,xt[Ct+48]=Vn-Fn;var lr=.382683433*((Gn=vr+xn)-(ur=We+sr)),Xr=.5411961*Gn+lr,_i=1.306562965*ur+lr,Si=.707106781*(Yn=xn+We),Pi=sr+Si,ki=sr-Si;xt[Ct+40]=ki+Xr,xt[Ct+24]=ki-Xr,xt[Ct+8]=Pi+_i,xt[Ct+56]=Pi-_i,Ct++}for(zt=0;zt<64;++zt)Wt=xt[zt]*_t[zt],f[zt]=Wt>0?Wt+.5|0:Wt-.5|0;return f}(_,R),bt=0;bt<64;++bt)w[Q[bt]]=wt[bt];var St=w[0]-q;q=w[0],St==0?I(U[0]):(I(U[g[st=32767+St]]),I(p[st]));for(var Ft=63;Ft>0&&w[Ft]==0;)Ft--;if(Ft==0)return I(lt),q;for(var qt,dt=1;dt<=Ft;){for(var K=dt;w[dt]==0&&dt<=Ft;)++dt;var Tt=dt-K;if(Tt>=16){qt=Tt>>4;for(var It=1;It<=qt;++It)I(ut);Tt&=15}st=32767+w[dt],I(et[(Tt<<4)+g[st]]),I(p[st]),dt++}return Ft!=63&&I(lt),q}function gt(_){_=Math.min(Math.max(_,1),100),r!=_&&(function(R){for(var q=[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],U=0;U<64;U++){var et=s((q[U]*R+50)/100);et=Math.min(Math.max(et,1),255),u[Q[U]]=et}for(var st
|
|||
|
|
* @license
|
|||
|
|
* Copyright (c) 2017 Aras Abbasi
|
|||
|
|
*
|
|||
|
|
* Licensed under the MIT License.
|
|||
|
|
* http://opensource.org/licenses/mit-license
|
|||
|
|
*/function Un(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ll(e){function t(x){if(!x)throw Error("assert :P")}function n(x,k,H){for(var A=0;4>A;A++)if(x[k+A]!=H.charCodeAt(A))return!0;return!1}function i(x,k,H,A,L){for(var B=0;B<L;B++)x[k+B]=H[A+B]}function o(x,k,H,A){for(var L=0;L<A;L++)x[k+L]=H}function r(x){return new Int32Array(x)}function s(x,k){for(var H=[],A=0;A<x;A++)H.push(new k);return H}function u(x,k){var H=[];return function A(L,B,F){for(var Y=F[B],E=0;E<Y&&(L.push(F.length>B+1?[]:new k),!(F.length<B+1));E++)A(L[E],B+1,F)}(H,0,x),H}var c=function(){var x=this;function k(a,l){for(var v=1<<l-1>>>0;a&v;)v>>>=1;return v?(a&v-1)+v:a}function H(a,l,v,b,S){t(!(b%v));do a[l+(b-=v)]=S;while(0<b)}function A(a,l,v,b,S){if(t(2328>=S),512>=S)var j=r(512);else if((j=r(S))==null)return 0;return function(O,D,T,V,rt,ft){var ht,ot,At=D,pt=1<<T,it=r(16),at=r(16);for(t(rt!=0),t(V!=null),t(O!=null),t(0<T),ot=0;ot<rt;++ot){if(15<V[ot])return 0;++it[V[ot]]}if(it[0]==rt)return 0;for(at[1]=0,ht=1;15>ht;++ht){if(it[ht]>1<<ht)return 0;at[ht+1]=at[ht]+it[ht]}for(ot=0;ot<rt;++ot)ht=V[ot],0<V[ot]&&(ft[at[ht]++]=ot);if(at[15]==1)return(V=new L).g=0,V.value=ft[0],H(O,At,1,pt,V),pt;var mt,Lt=-1,yt=pt-1,Dt=0,Et=1,Gt=1,Ot=1<<T;for(ot=0,ht=1,rt=2;ht<=T;++ht,rt<<=1){if(Et+=Gt<<=1,0>(Gt-=it[ht]))return 0;for(;0<it[ht];--it[ht])(V=new L).g=ht,V.value=ft[ot++],H(O,At+Dt,rt,Ot,V),Dt=k(Dt,ht)}for(ht=T+1,rt=2;15>=ht;++ht,rt<<=1){if(Et+=Gt<<=1,0>(Gt-=it[ht]))return 0;for(;0<it[ht];--it[ht]){if(V=new L,(Dt&yt)!=Lt){for(At+=Ot,mt=1<<(Lt=ht)-T;15>Lt&&!(0>=(mt-=it[Lt]));)++Lt,mt<<=1;pt+=Ot=1<<(mt=Lt-T),O[D+(Lt=Dt&yt)].g=mt+T,O[D+Lt].value=At-D-Lt}V.g=ht-T,V.value=ft[ot++],H(O,At+(Dt>>T),rt,Ot,V),Dt=k(Dt,ht)}}return Et!=2*at[15]-1?0:pt}(a,l,v,b,S,j)}function L(){this.value=this.g=0}function B(){this.value=this.g=0}function F(){this.G=s(5,L),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s($e,B)}function Y(a,l,v,b){t(a!=null),t(l!=null),t(2147483648>b),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=l,a.pa=v,a.Jd=l,a.Yc=v+b,a.Zc=4<=b?v+b-4+1:v,st(a)}function E(a,l){for(var v=0;0<l--;)v|=ut(a,128)<<l;return v}function I(a,l){var v=E(a,l);return lt(a)?-v:v}function X(a,l,v,b){var S,j=0;for(t(a!=null),t(l!=null),t(4294967288>b),a.Sb=b,a.Ra=0,a.u=0,a.h=0,4<b&&(b=4),S=0;S<b;++S)j+=l[v+S]<<8*S;a.Ra=j,a.bb=b,a.oa=l,a.pa=v}function J(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<Hi-8>>>0,++a.bb,a.u-=8;q(a)&&(a.h=1,a.u=0)}function tt(a,l){if(t(0<=l),!a.h&&l<=zi){var v=R(a)&Ui[l];return a.u+=l,J(a),v}return a.h=1,a.u=0}function gt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function R(a){return a.Ra>>>(a.u&Hi-1)>>>0}function q(a){return t(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>Hi}function U(a,l){a.u=l,a.h=q(a)}function et(a){a.u>=Sa&&(t(a.u>=Sa),J(a))}function st(a){t(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(t(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function lt(a){return E(a,1)}function ut(a,l){var v=a.Ca;0>a.b&&st(a);var b=a.b,S=v*l>>>8,j=(a.I>>>b>S)+0;for(j?(v-=S,a.I-=S+1<<b>>>0):v=S+1,b=v,S=0;256<=b;)S+=8,b>>=8;return b=7^S+mn[b],a.b-=b,a.Ca=(v<<b)-1,j}function wt(a,l,v){a[l+0]=v>>24&255,a[l+1]=v>>16&255,a[l+2]=v>>8&255,a[l+3]=v>>0&255}function bt(a,l){return a[l+0]<<0|a[l+1]<<8}function St(a,l){return bt(a,l)|a[l+2]<<16}function Ft(a,l){return bt(a,l)|bt(a,l+2)<<16}function qt(a,l){var v=1<<l;return t(a!=null),t(0<l),a.X=r(v),a.X==null?0:(a.Mb=32-l,a.Xa=l,1)}function dt(a,l){t(a!=null),t(l!=null),t(a.Xa==l.Xa),i(l.X,0,a.X,0,1<<l.Xa)}function K(){this.X=[],this.Xa=this.Mb=0}function Tt(a,l,v,b){t(v!=null),t(b!=null);var S=v[0],j=b[0];return S==0&&(S=(a*j+l/2)/l),j==0&&
|
|||
|
|
|
|||
|
|
//# sourceMappingURL=lazy-lib-dl-906655530ecd54e72602.js.map
|