123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d06b0e54"],{"072e":function(t,e,A){
- /*!
- * html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
- * Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
- * Released under MIT License
- */
- (function(e,A){t.exports=A()})(0,(function(){"use strict";
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */var t=function(e,A){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var A in e)e.hasOwnProperty(A)&&(t[A]=e[A])},t(e,A)};function e(e,A){function r(){this.constructor=e}t(e,A),e.prototype=null===A?Object.create(A):(r.prototype=A.prototype,new r)}var A=function(){return A=Object.assign||function(t){for(var e,A=1,r=arguments.length;A<r;A++)for(var n in e=arguments[A],e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},A.apply(this,arguments)};function r(t,e,A,r){return new(A||(A=Promise))((function(n,i){function o(t){try{s(r.next(t))}catch(Re){i(Re)}}function a(t){try{s(r["throw"](t))}catch(Re){i(Re)}}function s(t){t.done?n(t.value):new A((function(e){e(t.value)})).then(o,a)}s((r=r.apply(t,e||[])).next())}))}function n(t,e){var A,r,n,i,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return s([t,e])}}function s(i){if(A)throw new TypeError("Generator is already executing.");while(o)try{if(A=1,r&&(n=2&i[0]?r["return"]:i[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!(n=n.length>0&&n[n.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){o.label=i[1];break}if(6===i[0]&&o.label<n[1]){o.label=n[1],n=i;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(i);break}n[2]&&o.ops.pop(),o.trys.pop();continue}i=e.call(t,o)}catch(Re){i=[6,Re],r=0}finally{A=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}for(var i=function(){function t(t,e,A,r){this.left=t,this.top=e,this.width=A,this.height=r}return t.prototype.add=function(e,A,r,n){return new t(this.left+e,this.top+A,this.width+r,this.height+n)},t.fromClientRect=function(e){return new t(e.left,e.top,e.width,e.height)},t}(),o=function(t){return i.fromClientRect(t.getBoundingClientRect())},a=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),n=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new i(0,0,r,n)},s=function(t){var e=[],A=0,r=t.length;while(A<r){var n=t.charCodeAt(A++);if(n>=55296&&n<=56319&&A<r){var i=t.charCodeAt(A++);56320===(64512&i)?e.push(((1023&n)<<10)+(1023&i)+65536):(e.push(n),A--)}else e.push(n)}return e},c=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var A=t.length;if(!A)return"";var r=[],n=-1,i="";while(++n<A){var o=t[n];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(n+1===A||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"===typeof Uint8Array?[]:new Uint8Array(256),h=0;h<u.length;h++)l[u.charCodeAt(h)]=h;var f,d=function(t){var e,A,r,n,i,o=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),u=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<a;e+=4)A=l[t.charCodeAt(e)],r=l[t.charCodeAt(e+1)],n=l[t.charCodeAt(e+2)],i=l[t.charCodeAt(e+3)],u[s++]=A<<2|r>>4,u[s++]=(15&r)<<4|n>>2,u[s++]=(3&n)<<6|63&i;return c},p=function(t){for(var e=t.length,A=[],r=0;r<e;r+=2)A.push(t[r+1]<<8|t[r]);return A},B=function(t){for(var e=t.length,A=[],r=0;r<e;r+=4)A.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return A},g=5,w=11,m=2,v=w-g,b=65536>>g,Q=1<<g,C=Q-1,y=1024>>g,F=b+y,U=F,N=32,E=U+N,L=65536>>w,H=1<<v,S=H-1,_=function(t,e,A){return t.slice?t.slice(e,A):new Uint16Array(Array.prototype.slice.call(t,e,A))},x=function(t,e,A){return t.slice?t.slice(e,A):new Uint32Array(Array.prototype.slice.call(t,e,A))},I=function(t){var e=d(t),A=Array.isArray(e)?B(e):new Uint32Array(e),r=Array.isArray(e)?p(e):new Uint16Array(e),n=24,i=_(r,n/2,A[4]/2),o=2===A[5]?_(r,(n+A[4])/2):x(A,Math.ceil((n+A[4])/4));return new P(A[0],A[1],A[2],A[3],i,o)},P=function(){function t(t,e,A,r,n,i){this.initialValue=t,this.errorValue=e,this.highStart=A,this.highValueIndex=r,this.index=n,this.data=i}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>g],e=(e<<m)+(t&C),this.data[e];if(t<=65535)return e=this.index[b+(t-55296>>g)],e=(e<<m)+(t&C),this.data[e];if(t<this.highStart)return e=E-L+(t>>w),e=this.index[e],e+=t>>g&S,e=this.index[e],e=(e<<m)+(t&C),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),T="KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA",O=50,R=1,K=2,M=3,k=4,D=5,j=7,z=8,V=9,q=10,G=11,X=12,J=13,W=14,Y=15,Z=16,$=17,tt=18,et=19,At=20,rt=21,nt=22,it=23,ot=24,at=25,st=26,ct=27,ut=28,lt=29,ht=30,ft=31,dt=32,pt=33,Bt=34,gt=35,wt=36,mt=37,vt=38,bt=39,Qt=40,Ct=41,yt=42,Ft=43,Ut="!",Nt="×",Et="÷",Lt=I(T),Ht=[ht,wt],St=[R,K,M,D],_t=[q,z],xt=[ct,st],It=St.concat(_t),Pt=[vt,bt,Qt,Bt,gt],Tt=[Y,J],Ot=function(t,e){void 0===e&&(e="strict");var A=[],r=[],n=[];return t.forEach((function(t,i){var o=Lt.get(t);if(o>O?(n.push(!0),o-=O):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(i),A.push(Z);if(o===k||o===G){if(0===i)return r.push(i),A.push(ht);var a=A[i-1];return-1===It.indexOf(a)?(r.push(r[i-1]),A.push(a)):(r.push(i),A.push(ht))}return r.push(i),o===ft?A.push("strict"===e?rt:mt):o===yt||o===lt?A.push(ht):o===Ft?t>=131072&&t<=196605||t>=196608&&t<=262141?A.push(mt):A.push(ht):void A.push(o)})),[r,A,n]},Rt=function(t,e,A,r){var n=r[A];if(Array.isArray(t)?-1!==t.indexOf(n):t===n){var i=A;while(i<=r.length){i++;var o=r[i];if(o===e)return!0;if(o!==q)break}}if(n===q){i=A;while(i>0){i--;var a=r[i];if(Array.isArray(t)?-1!==t.indexOf(a):t===a){var s=A;while(s<=r.length){s++;o=r[s];if(o===e)return!0;if(o!==q)break}}if(a!==q)break}}return!1},Kt=function(t,e){var A=t;while(A>=0){var r=e[A];if(r!==q)return r;A--}return 0},Mt=function(t,e,A,r,n){if(0===A[r])return Nt;var i=r-1;if(Array.isArray(n)&&!0===n[i])return Nt;var o=i-1,a=i+1,s=e[i],c=o>=0?e[o]:0,u=e[a];if(s===K&&u===M)return Nt;if(-1!==St.indexOf(s))return Ut;if(-1!==St.indexOf(u))return Nt;if(-1!==_t.indexOf(u))return Nt;if(Kt(i,e)===z)return Et;if(Lt.get(t[i])===G&&(u===mt||u===dt||u===pt))return Nt;if(s===j||u===j)return Nt;if(s===V)return Nt;if(-1===[q,J,Y].indexOf(s)&&u===V)return Nt;if(-1!==[$,tt,et,ot,ut].indexOf(u))return Nt;if(Kt(i,e)===nt)return Nt;if(Rt(it,nt,i,e))return Nt;if(Rt([$,tt],rt,i,e))return Nt;if(Rt(X,X,i,e))return Nt;if(s===q)return Et;if(s===it||u===it)return Nt;if(u===Z||s===Z)return Et;if(-1!==[J,Y,rt].indexOf(u)||s===W)return Nt;if(c===wt&&-1!==Tt.indexOf(s))return Nt;if(s===ut&&u===wt)return Nt;if(u===At&&-1!==Ht.concat(At,et,at,mt,dt,pt).indexOf(s))return Nt;if(-1!==Ht.indexOf(u)&&s===at||-1!==Ht.indexOf(s)&&u===at)return Nt;if(s===ct&&-1!==[mt,dt,pt].indexOf(u)||-1!==[mt,dt,pt].indexOf(s)&&u===st)return Nt;if(-1!==Ht.indexOf(s)&&-1!==xt.indexOf(u)||-1!==xt.indexOf(s)&&-1!==Ht.indexOf(u))return Nt;if(-1!==[ct,st].indexOf(s)&&(u===at||-1!==[nt,Y].indexOf(u)&&e[a+1]===at)||-1!==[nt,Y].indexOf(s)&&u===at||s===at&&-1!==[at,ut,ot].indexOf(u))return Nt;if(-1!==[at,ut,ot,$,tt].indexOf(u)){var l=i;while(l>=0){var h=e[l];if(h===at)return Nt;if(-1===[ut,ot].indexOf(h))break;l--}}if(-1!==[ct,st].indexOf(u)){l=-1!==[$,tt].indexOf(s)?o:i;while(l>=0){h=e[l];if(h===at)return Nt;if(-1===[ut,ot].indexOf(h))break;l--}}if(vt===s&&-1!==[vt,bt,Bt,gt].indexOf(u)||-1!==[bt,Bt].indexOf(s)&&-1!==[bt,Qt].indexOf(u)||-1!==[Qt,gt].indexOf(s)&&u===Qt)return Nt;if(-1!==Pt.indexOf(s)&&-1!==[At,st].indexOf(u)||-1!==Pt.indexOf(u)&&s===ct)return Nt;if(-1!==Ht.indexOf(s)&&-1!==Ht.indexOf(u))return Nt;if(s===ot&&-1!==Ht.indexOf(u))return Nt;if(-1!==Ht.concat(at).indexOf(s)&&u===nt||-1!==Ht.concat(at).indexOf(u)&&s===tt)return Nt;if(s===Ct&&u===Ct){var f=A[i],d=1;while(f>0){if(f--,e[f]!==Ct)break;d++}if(d%2!==0)return Nt}return s===dt&&u===pt?Nt:Et},kt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=Ot(t,e.lineBreak),r=A[0],n=A[1],i=A[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(n=n.map((function(t){return-1!==[at,ht,yt].indexOf(t)?mt:t})));var o="keep-all"===e.wordBreak?i.map((function(e,A){return e&&t[A]>=19968&&t[A]<=40959})):void 0;return[r,n,o]},Dt=function(){function t(t,e,A,r){this.codePoints=t,this.required=e===Ut,this.start=A,this.end=r}return t.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),jt=function(t,e){var A=s(t),r=kt(A,e),n=r[0],i=r[1],o=r[2],a=A.length,c=0,u=0;return{next:function(){if(u>=a)return{done:!0,value:null};var t=Nt;while(u<a&&(t=Mt(A,i,n,++u,o))===Nt);if(t!==Nt||u===a){var e=new Dt(A,t,c,u);return c=u,{value:e,done:!1}}return{done:!0,value:null}}}};(function(t){t[t["STRING_TOKEN"]=0]="STRING_TOKEN",t[t["BAD_STRING_TOKEN"]=1]="BAD_STRING_TOKEN",t[t["LEFT_PARENTHESIS_TOKEN"]=2]="LEFT_PARENTHESIS_TOKEN",t[t["RIGHT_PARENTHESIS_TOKEN"]=3]="RIGHT_PARENTHESIS_TOKEN",t[t["COMMA_TOKEN"]=4]="COMMA_TOKEN",t[t["HASH_TOKEN"]=5]="HASH_TOKEN",t[t["DELIM_TOKEN"]=6]="DELIM_TOKEN",t[t["AT_KEYWORD_TOKEN"]=7]="AT_KEYWORD_TOKEN",t[t["PREFIX_MATCH_TOKEN"]=8]="PREFIX_MATCH_TOKEN",t[t["DASH_MATCH_TOKEN"]=9]="DASH_MATCH_TOKEN",t[t["INCLUDE_MATCH_TOKEN"]=10]="INCLUDE_MATCH_TOKEN",t[t["LEFT_CURLY_BRACKET_TOKEN"]=11]="LEFT_CURLY_BRACKET_TOKEN",t[t["RIGHT_CURLY_BRACKET_TOKEN"]=12]="RIGHT_CURLY_BRACKET_TOKEN",t[t["SUFFIX_MATCH_TOKEN"]=13]="SUFFIX_MATCH_TOKEN",t[t["SUBSTRING_MATCH_TOKEN"]=14]="SUBSTRING_MATCH_TOKEN",t[t["DIMENSION_TOKEN"]=15]="DIMENSION_TOKEN",t[t["PERCENTAGE_TOKEN"]=16]="PERCENTAGE_TOKEN",t[t["NUMBER_TOKEN"]=17]="NUMBER_TOKEN",t[t["FUNCTION"]=18]="FUNCTION",t[t["FUNCTION_TOKEN"]=19]="FUNCTION_TOKEN",t[t["IDENT_TOKEN"]=20]="IDENT_TOKEN",t[t["COLUMN_TOKEN"]=21]="COLUMN_TOKEN",t[t["URL_TOKEN"]=22]="URL_TOKEN",t[t["BAD_URL_TOKEN"]=23]="BAD_URL_TOKEN",t[t["CDC_TOKEN"]=24]="CDC_TOKEN",t[t["CDO_TOKEN"]=25]="CDO_TOKEN",t[t["COLON_TOKEN"]=26]="COLON_TOKEN",t[t["SEMICOLON_TOKEN"]=27]="SEMICOLON_TOKEN",t[t["LEFT_SQUARE_BRACKET_TOKEN"]=28]="LEFT_SQUARE_BRACKET_TOKEN",t[t["RIGHT_SQUARE_BRACKET_TOKEN"]=29]="RIGHT_SQUARE_BRACKET_TOKEN",t[t["UNICODE_RANGE_TOKEN"]=30]="UNICODE_RANGE_TOKEN",t[t["WHITESPACE_TOKEN"]=31]="WHITESPACE_TOKEN",t[t["EOF_TOKEN"]=32]="EOF_TOKEN"})(f||(f={}));var zt=1,Vt=2,qt=4,Gt=8,Xt=10,Jt=47,Wt=92,Yt=9,Zt=32,$t=34,te=61,ee=35,Ae=36,re=37,ne=39,ie=40,oe=41,ae=95,se=45,ce=33,ue=60,le=62,he=64,fe=91,de=93,pe=61,Be=123,ge=63,we=125,me=124,ve=126,be=128,Qe=65533,Ce=42,ye=43,Fe=44,Ue=58,Ne=59,Ee=46,Le=0,He=8,Se=11,_e=14,xe=31,Ie=127,Pe=-1,Te=48,Oe=97,Re=101,Ke=102,Me=117,ke=122,De=65,je=69,ze=70,Ve=85,qe=90,Ge=function(t){return t>=Te&&t<=57},Xe=function(t){return t>=55296&&t<=57343},Je=function(t){return Ge(t)||t>=De&&t<=ze||t>=Oe&&t<=Ke},We=function(t){return t>=Oe&&t<=ke},Ye=function(t){return t>=De&&t<=qe},Ze=function(t){return We(t)||Ye(t)},$e=function(t){return t>=be},tA=function(t){return t===Xt||t===Yt||t===Zt},eA=function(t){return Ze(t)||$e(t)||t===ae},AA=function(t){return eA(t)||Ge(t)||t===se},rA=function(t){return t>=Le&&t<=He||t===Se||t>=_e&&t<=xe||t===Ie},nA=function(t,e){return t===Wt&&e!==Xt},iA=function(t,e,A){return t===se?eA(e)||nA(e,A):!!eA(t)||!(t!==Wt||!nA(t,e))},oA=function(t,e,A){return t===ye||t===se?!!Ge(e)||e===Ee&&Ge(A):Ge(t===Ee?e:t)},aA=function(t){var e=0,A=1;t[e]!==ye&&t[e]!==se||(t[e]===se&&(A=-1),e++);var r=[];while(Ge(t[e]))r.push(t[e++]);var n=r.length?parseInt(c.apply(void 0,r),10):0;t[e]===Ee&&e++;var i=[];while(Ge(t[e]))i.push(t[e++]);var o=i.length,a=o?parseInt(c.apply(void 0,i),10):0;t[e]!==je&&t[e]!==Re||e++;var s=1;t[e]!==ye&&t[e]!==se||(t[e]===se&&(s=-1),e++);var u=[];while(Ge(t[e]))u.push(t[e++]);var l=u.length?parseInt(c.apply(void 0,u),10):0;return A*(n+a*Math.pow(10,-o))*Math.pow(10,s*l)},sA={type:f.LEFT_PARENTHESIS_TOKEN},cA={type:f.RIGHT_PARENTHESIS_TOKEN},uA={type:f.COMMA_TOKEN},lA={type:f.SUFFIX_MATCH_TOKEN},hA={type:f.PREFIX_MATCH_TOKEN},fA={type:f.COLUMN_TOKEN},dA={type:f.DASH_MATCH_TOKEN},pA={type:f.INCLUDE_MATCH_TOKEN},BA={type:f.LEFT_CURLY_BRACKET_TOKEN},gA={type:f.RIGHT_CURLY_BRACKET_TOKEN},wA={type:f.SUBSTRING_MATCH_TOKEN},mA={type:f.BAD_URL_TOKEN},vA={type:f.BAD_STRING_TOKEN},bA={type:f.CDO_TOKEN},QA={type:f.CDC_TOKEN},CA={type:f.COLON_TOKEN},yA={type:f.SEMICOLON_TOKEN},FA={type:f.LEFT_SQUARE_BRACKET_TOKEN},UA={type:f.RIGHT_SQUARE_BRACKET_TOKEN},NA={type:f.WHITESPACE_TOKEN},EA={type:f.EOF_TOKEN},LA=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(s(t))},t.prototype.read=function(){var t=[],e=this.consumeToken();while(e!==EA)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case $t:return this.consumeStringToken($t);case ee:var e=this.peekCodePoint(0),A=this.peekCodePoint(1),r=this.peekCodePoint(2);if(AA(e)||nA(A,r)){var n=iA(e,A,r)?Vt:zt,i=this.consumeName();return{type:f.HASH_TOKEN,value:i,flags:n}}break;case Ae:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),lA;break;case ne:return this.consumeStringToken(ne);case ie:return sA;case oe:return cA;case Ce:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),wA;break;case ye:if(oA(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Fe:return uA;case se:var o=t,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(oA(o,a,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(iA(o,a,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===se&&s===le)return this.consumeCodePoint(),this.consumeCodePoint(),QA;break;case Ee:if(oA(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Jt:if(this.peekCodePoint(0)===Ce){this.consumeCodePoint();while(1){var u=this.consumeCodePoint();if(u===Ce&&(u=this.consumeCodePoint(),u===Jt))return this.consumeToken();if(u===Pe)return this.consumeToken()}}break;case Ue:return CA;case Ne:return yA;case ue:if(this.peekCodePoint(0)===ce&&this.peekCodePoint(1)===se&&this.peekCodePoint(2)===se)return this.consumeCodePoint(),this.consumeCodePoint(),bA;break;case he:var l=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(iA(l,h,d)){i=this.consumeName();return{type:f.AT_KEYWORD_TOKEN,value:i}}break;case fe:return FA;case Wt:if(nA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case de:return UA;case pe:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),hA;break;case Be:return BA;case we:return gA;case Me:case Ve:var p=this.peekCodePoint(0),B=this.peekCodePoint(1);return p!==ye||!Je(B)&&B!==ge||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case me:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),dA;if(this.peekCodePoint(0)===me)return this.consumeCodePoint(),fA;break;case ve:if(this.peekCodePoint(0)===te)return this.consumeCodePoint(),pA;break;case Pe:return EA}return tA(t)?(this.consumeWhiteSpace(),NA):Ge(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):eA(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:f.DELIM_TOKEN,value:c(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return"undefined"===typeof t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){var t=[],e=this.consumeCodePoint();while(Je(e)&&t.length<6)t.push(e),e=this.consumeCodePoint();var A=!1;while(e===ge&&t.length<6)t.push(e),e=this.consumeCodePoint(),A=!0;if(A){var r=parseInt(c.apply(void 0,t.map((function(t){return t===ge?Te:t}))),16),n=parseInt(c.apply(void 0,t.map((function(t){return t===ge?ze:t}))),16);return{type:f.UNICODE_RANGE_TOKEN,start:r,end:n}}var i=parseInt(c.apply(void 0,t),16);if(this.peekCodePoint(0)===se&&Je(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(Je(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();n=parseInt(c.apply(void 0,o),16);return{type:f.UNICODE_RANGE_TOKEN,start:i,end:n}}return{type:f.UNICODE_RANGE_TOKEN,start:i,end:i}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===ie?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ie?(this.consumeCodePoint(),{type:f.FUNCTION_TOKEN,value:t}):{type:f.IDENT_TOKEN,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe)return{type:f.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(e===ne||e===$t){var A=this.consumeStringToken(this.consumeCodePoint());return A.type===f.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===oe)?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:A.value}):(this.consumeBadUrlRemnants(),mA)}while(1){var r=this.consumeCodePoint();if(r===Pe||r===oe)return{type:f.URL_TOKEN,value:c.apply(void 0,t)};if(tA(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pe||this.peekCodePoint(0)===oe?(this.consumeCodePoint(),{type:f.URL_TOKEN,value:c.apply(void 0,t)}):(this.consumeBadUrlRemnants(),mA);if(r===$t||r===ne||r===ie||rA(r))return this.consumeBadUrlRemnants(),mA;if(r===Wt){if(!nA(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),mA;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){while(tA(this.peekCodePoint(0)))this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){while(1){var t=this.consumeCodePoint();if(t===oe||t===Pe)return;nA(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){var e=6e4,A="";while(t>0){var r=Math.min(e,t);A+=c.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),A},t.prototype.consumeStringToken=function(t){var e="",A=0;do{var r=this._value[A];if(r===Pe||void 0===r||r===t)return e+=this.consumeStringSlice(A),{type:f.STRING_TOKEN,value:e};if(r===Xt)return this._value.splice(0,A),vA;if(r===Wt){var n=this._value[A+1];n!==Pe&&void 0!==n&&(n===Xt?(e+=this.consumeStringSlice(A),A=-1,this._value.shift()):nA(r,n)&&(e+=this.consumeStringSlice(A),e+=c(this.consumeEscapedCodePoint()),A=-1))}A++}while(1)},t.prototype.consumeNumber=function(){var t=[],e=qt,A=this.peekCodePoint(0);A!==ye&&A!==se||t.push(this.consumeCodePoint());while(Ge(this.peekCodePoint(0)))t.push(this.consumeCodePoint());A=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(A===Ee&&Ge(r)){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;while(Ge(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}A=this.peekCodePoint(0),r=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((A===je||A===Re)&&((r===ye||r===se)&&Ge(n)||Ge(r))){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Gt;while(Ge(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}return[aA(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],A=t[1],r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(iA(r,n,i)){var o=this.consumeName();return{type:f.DIMENSION_TOKEN,number:e,flags:A,unit:o}}return r===re?(this.consumeCodePoint(),{type:f.PERCENTAGE_TOKEN,number:e,flags:A}):{type:f.NUMBER_TOKEN,number:e,flags:A}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Je(t)){var e=c(t);while(Je(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());tA(this.peekCodePoint(0))&&this.consumeCodePoint();var A=parseInt(e,16);return 0===A||Xe(A)||A>1114111?Qe:A}return t===Pe?Qe:t},t.prototype.consumeName=function(){var t="";while(1){var e=this.consumeCodePoint();if(AA(e))t+=c(e);else{if(!nA(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=c(this.consumeEscapedCodePoint())}}},t}(),HA=function(){function t(t){this._tokens=t}return t.create=function(e){var A=new LA;return A.write(e),new t(A.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){var t=this.consumeToken();while(t.type===f.WHITESPACE_TOKEN)t=this.consumeToken();if(t.type===f.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(t.type===f.WHITESPACE_TOKEN);if(t.type===f.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){var t=[];while(1){var e=this.consumeComponentValue();if(e.type===f.EOF_TOKEN)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case f.LEFT_CURLY_BRACKET_TOKEN:case f.LEFT_SQUARE_BRACKET_TOKEN:case f.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(t.type);case f.FUNCTION_TOKEN:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){var e={type:t,values:[]},A=this.consumeToken();while(1){if(A.type===f.EOF_TOKEN||KA(A,t))return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue()),A=this.consumeToken()}},t.prototype.consumeFunction=function(t){var e={name:t.value,values:[],type:f.FUNCTION};while(1){var A=this.consumeToken();if(A.type===f.EOF_TOKEN||A.type===f.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(A),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return"undefined"===typeof t?EA:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),SA=function(t){return t.type===f.DIMENSION_TOKEN},_A=function(t){return t.type===f.NUMBER_TOKEN},xA=function(t){return t.type===f.IDENT_TOKEN},IA=function(t){return t.type===f.STRING_TOKEN},PA=function(t,e){return xA(t)&&t.value===e},TA=function(t){return t.type!==f.WHITESPACE_TOKEN},OA=function(t){return t.type!==f.WHITESPACE_TOKEN&&t.type!==f.COMMA_TOKEN},RA=function(t){var e=[],A=[];return t.forEach((function(t){if(t.type===f.COMMA_TOKEN){if(0===A.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(A),void(A=[])}t.type!==f.WHITESPACE_TOKEN&&A.push(t)})),A.length&&e.push(A),e},KA=function(t,e){return e===f.LEFT_CURLY_BRACKET_TOKEN&&t.type===f.RIGHT_CURLY_BRACKET_TOKEN||(e===f.LEFT_SQUARE_BRACKET_TOKEN&&t.type===f.RIGHT_SQUARE_BRACKET_TOKEN||e===f.LEFT_PARENTHESIS_TOKEN&&t.type===f.RIGHT_PARENTHESIS_TOKEN)},MA=function(t){return t.type===f.NUMBER_TOKEN||t.type===f.DIMENSION_TOKEN},kA=function(t){return t.type===f.PERCENTAGE_TOKEN||MA(t)},DA=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},jA={type:f.NUMBER_TOKEN,number:0,flags:qt},zA={type:f.PERCENTAGE_TOKEN,number:50,flags:qt},VA={type:f.PERCENTAGE_TOKEN,number:100,flags:qt},qA=function(t,e,A){var r=t[0],n=t[1];return[GA(r,e),GA("undefined"!==typeof n?n:r,A)]},GA=function(t,e){if(t.type===f.PERCENTAGE_TOKEN)return t.number/100*e;if(SA(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},XA="deg",JA="grad",WA="rad",YA="turn",ZA={name:"angle",parse:function(t){if(t.type===f.DIMENSION_TOKEN)switch(t.unit){case XA:return Math.PI*t.number/180;case JA:return Math.PI/200*t.number;case WA:return t.number;case YA:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},$A=function(t){return t.type===f.DIMENSION_TOKEN&&(t.unit===XA||t.unit===JA||t.unit===WA||t.unit===YA)},tr=function(t){var e=t.filter(xA).map((function(t){return t.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[jA,jA];case"to top":case"bottom":return er(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[jA,VA];case"to right":case"left":return er(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[VA,VA];case"to bottom":case"top":return er(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[VA,jA];case"to left":case"right":return er(270)}return 0},er=function(t){return Math.PI*t/180},Ar={name:"color",parse:function(t){if(t.type===f.FUNCTION){var e=hr[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(t.values)}if(t.type===f.HASH_TOKEN){if(3===t.value.length){var A=t.value.substring(0,1),r=t.value.substring(1,2),n=t.value.substring(2,3);return ir(parseInt(A+A,16),parseInt(r+r,16),parseInt(n+n,16),1)}if(4===t.value.length){A=t.value.substring(0,1),r=t.value.substring(1,2),n=t.value.substring(2,3);var i=t.value.substring(3,4);return ir(parseInt(A+A,16),parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16)/255)}if(6===t.value.length){A=t.value.substring(0,2),r=t.value.substring(2,4),n=t.value.substring(4,6);return ir(parseInt(A,16),parseInt(r,16),parseInt(n,16),1)}if(8===t.value.length){A=t.value.substring(0,2),r=t.value.substring(2,4),n=t.value.substring(4,6),i=t.value.substring(6,8);return ir(parseInt(A,16),parseInt(r,16),parseInt(n,16),parseInt(i,16)/255)}}if(t.type===f.IDENT_TOKEN){var o=fr[t.value.toUpperCase()];if("undefined"!==typeof o)return o}return fr.TRANSPARENT}},rr=function(t){return 0===(255&t)},nr=function(t){var e=255&t,A=255&t>>8,r=255&t>>16,n=255&t>>24;return e<255?"rgba("+n+","+r+","+A+","+e/255+")":"rgb("+n+","+r+","+A+")"},ir=function(t,e,A,r){return(t<<24|e<<16|A<<8|Math.round(255*r)<<0)>>>0},or=function(t,e){if(t.type===f.NUMBER_TOKEN)return t.number;if(t.type===f.PERCENTAGE_TOKEN){var A=3===e?1:255;return 3===e?t.number/100*A:Math.round(t.number/100*A)}return 0},ar=function(t){var e=t.filter(OA);if(3===e.length){var A=e.map(or),r=A[0],n=A[1],i=A[2];return ir(r,n,i,1)}if(4===e.length){var o=e.map(or),a=(r=o[0],n=o[1],i=o[2],o[3]);return ir(r,n,i,a)}return 0};function sr(t,e,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(e-t)*A*6+t:A<.5?e:A<2/3?6*(e-t)*(2/3-A)+t:t}var cr,ur,lr=function(t){var e=t.filter(OA),A=e[0],r=e[1],n=e[2],i=e[3],o=(A.type===f.NUMBER_TOKEN?er(A.number):ZA.parse(A))/(2*Math.PI),a=kA(r)?r.number/100:0,s=kA(n)?n.number/100:0,c="undefined"!==typeof i&&kA(i)?GA(i,1):1;if(0===a)return ir(255*s,255*s,255*s,1);var u=s<=.5?s*(a+1):s+a-s*a,l=2*s-u,h=sr(l,u,o+1/3),d=sr(l,u,o),p=sr(l,u,o-1/3);return ir(255*h,255*d,255*p,c)},hr={hsl:lr,hsla:lr,rgb:ar,rgba:ar},fr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(t){t[t["VALUE"]=0]="VALUE",t[t["LIST"]=1]="LIST",t[t["IDENT_VALUE"]=2]="IDENT_VALUE",t[t["TYPE_VALUE"]=3]="TYPE_VALUE",t[t["TOKEN_VALUE"]=4]="TOKEN_VALUE"})(cr||(cr={})),function(t){t[t["BORDER_BOX"]=0]="BORDER_BOX",t[t["PADDING_BOX"]=1]="PADDING_BOX",t[t["CONTENT_BOX"]=2]="CONTENT_BOX"}(ur||(ur={}));var dr,pr={name:"background-clip",initialValue:"border-box",prefix:!1,type:cr.LIST,parse:function(t){return t.map((function(t){if(xA(t))switch(t.value){case"padding-box":return ur.PADDING_BOX;case"content-box":return ur.CONTENT_BOX}return ur.BORDER_BOX}))}},Br={name:"background-color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"},gr=function(t){var e=Ar.parse(t[0]),A=t[1];return A&&kA(A)?{color:e,stop:A}:{color:e,stop:null}},wr=function(t,e){var A=t[0],r=t[t.length-1];null===A.stop&&(A.stop=jA),null===r.stop&&(r.stop=VA);for(var n=[],i=0,o=0;o<t.length;o++){var a=t[o].stop;if(null!==a){var s=GA(a,e);s>i?n.push(s):n.push(i),i=s}else n.push(null)}var c=null;for(o=0;o<n.length;o++){var u=n[o];if(null===u)null===c&&(c=o);else if(null!==c){for(var l=o-c,h=n[c-1],f=(u-h)/(l+1),d=1;d<=l;d++)n[c+d-1]=f*d;c=null}}return t.map((function(t,A){var r=t.color;return{color:r,stop:Math.max(Math.min(1,n[A]/e),0)}}))},mr=function(t,e,A){var r=e/2,n=A/2,i=GA(t[0],e)-r,o=n-GA(t[1],A);return(Math.atan2(o,i)+2*Math.PI)%(2*Math.PI)},vr=function(t,e,A){var r="number"===typeof t?t:mr(t,e,A),n=Math.abs(e*Math.sin(r))+Math.abs(A*Math.cos(r)),i=e/2,o=A/2,a=n/2,s=Math.sin(r-Math.PI/2)*a,c=Math.cos(r-Math.PI/2)*a;return[n,i-c,i+c,o-s,o+s]},br=function(t,e){return Math.sqrt(t*t+e*e)},Qr=function(t,e,A,r,n){var i=[[0,0],[0,e],[t,0],[t,e]];return i.reduce((function(t,e){var i=e[0],o=e[1],a=br(A-i,r-o);return(n?a<t.optimumDistance:a>t.optimumDistance)?{optimumCorner:e,optimumDistance:a}:t}),{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Cr=function(t,e,A,r,n){var i=0,o=0;switch(t.size){case nn.CLOSEST_SIDE:t.shape===rn.CIRCLE?i=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(A),Math.abs(A-n)):t.shape===rn.ELLIPSE&&(i=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(A),Math.abs(A-n)));break;case nn.CLOSEST_CORNER:if(t.shape===rn.CIRCLE)i=o=Math.min(br(e,A),br(e,A-n),br(e-r,A),br(e-r,A-n));else if(t.shape===rn.ELLIPSE){var a=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(e),Math.abs(e-r)),s=Qr(r,n,e,A,!0),c=s[0],u=s[1];i=br(c-e,(u-A)/a),o=a*i}break;case nn.FARTHEST_SIDE:t.shape===rn.CIRCLE?i=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(A),Math.abs(A-n)):t.shape===rn.ELLIPSE&&(i=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(A),Math.abs(A-n)));break;case nn.FARTHEST_CORNER:if(t.shape===rn.CIRCLE)i=o=Math.max(br(e,A),br(e,A-n),br(e-r,A),br(e-r,A-n));else if(t.shape===rn.ELLIPSE){a=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(e),Math.abs(e-r));var l=Qr(r,n,e,A,!1);c=l[0],u=l[1];i=br(c-e,(u-A)/a),o=a*i}break}return Array.isArray(t.size)&&(i=GA(t.size[0],r),o=2===t.size.length?GA(t.size[1],n):i),[i,o]},yr=function(t){var e=er(180),A=[];return RA(t).forEach((function(t,r){if(0===r){var n=t[0];if(n.type===f.IDENT_TOKEN&&"to"===n.value)return void(e=tr(t));if($A(n))return void(e=ZA.parse(n))}var i=gr(t);A.push(i)})),{angle:e,stops:A,type:dr.LINEAR_GRADIENT}},Fr=function(t){var e=er(180),A=[];return RA(t).forEach((function(t,r){if(0===r){var n=t[0];if(n.type===f.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(n.value))return void(e=tr(t));if($A(n))return void(e=(ZA.parse(n)+er(270))%er(360))}var i=gr(t);A.push(i)})),{angle:e,stops:A,type:dr.LINEAR_GRADIENT}},Ur=function(t){var e=123;if(t.createRange){var A=t.createRange();if(A.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),A.selectNode(r);var n=A.getBoundingClientRect(),i=Math.round(n.height);if(t.body.removeChild(r),i===e)return!0}}return!1},Nr=function(){return"undefined"!==typeof(new Image).crossOrigin},Er=function(){return"string"===typeof(new XMLHttpRequest).responseType},Lr=function(t){var e=new Image,A=t.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),A.toDataURL()}catch(Re){return!1}return!0},Hr=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Sr=function(t){var e=t.createElement("canvas"),A=100;e.width=A,e.height=A;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var n=new Image,i=e.toDataURL();n.src=i;var o=_r(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),xr(o).then((function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var o=t.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height=A+"px",Hr(n)?xr(_r(A,A,0,0,o)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),Hr(r.getImageData(0,0,A,A).data)})).catch((function(){return!1}))},_r=function(t,e,A,r,n){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A.toString()),a.setAttributeNS(null,"y",r.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(n),o},xr=function(t){return new Promise((function(e,A){var r=new Image;r.onload=function(){return e(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Ir={get SUPPORT_RANGE_BOUNDS(){var t=Ur(document);return Object.defineProperty(Ir,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Lr(document);return Object.defineProperty(Ir,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"===typeof Array.from&&"function"===typeof window.fetch?Sr(document):Promise.resolve(!1);return Object.defineProperty(Ir,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Nr();return Object.defineProperty(Ir,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Er();return Object.defineProperty(Ir,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ir,"SUPPORT_CORS_XHR",{value:t}),t}},Pr=function(){function t(t){var e=t.id,A=t.enabled;this.id=e,this.enabled=A,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.create=function(e){t.instances[e.id]=new t(e)},t.destroy=function(e){delete t.instances[e]},t.getInstance=function(e){var A=t.instances[e];if("undefined"===typeof A)throw new Error("No logger instance found with id "+e);return A},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(t)):this.info.apply(this,t))},t.instances={},t}(),Tr=function(){function t(){}return t.create=function(e,A){return t._caches[e]=new Or(e,A)},t.destroy=function(e){delete t._caches[e]},t.open=function(e){var A=t._caches[e];if("undefined"!==typeof A)return A;throw new Error('Cache with key "'+e+'" not found')},t.getOrigin=function(e){var A=t._link;return A?(A.href=e,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t.getInstance=function(){var e=t._current;if(null===e)throw new Error("No cache instance attached");return e},t.attachInstance=function(e){t._current=e},t.detachInstance=function(){t._current=null},t._caches={},t._origin="about:blank",t._current=null,t}(),Or=function(){function t(t,e){this.id=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:zr(t)||kr(t)?(this._cache[t]=this.loadImage(t),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,A,r,i,o=this;return n(this,(function(n){switch(n.label){case 0:return e=Tr.isSameOrigin(t),A=!Dr(t)&&!0===this._options.useCORS&&Ir.SUPPORT_CORS_IMAGES&&!e,r=!Dr(t)&&!e&&"string"===typeof this._options.proxy&&Ir.SUPPORT_CORS_XHR&&!A,e||!1!==this._options.allowTaint||Dr(t)||r||A?(i=t,r?[4,this.proxy(i)]:[3,2]):[2];case 1:i=n.sent(),n.label=2;case 2:return Pr.getInstance(this.id).debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(jr(i)||A)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,n.sent()]}}))}))},t.prototype.has=function(t){return"undefined"!==typeof this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,A=this._options.proxy;if(!A)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(n,i){var o=Ir.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;if(a.onload=function(){if(200===a.status)if("text"===o)n(a.response);else{var t=new FileReader;t.addEventListener("load",(function(){return n(t.result)}),!1),t.addEventListener("error",(function(t){return i(t)}),!1),t.readAsDataURL(a.response)}else i("Failed to proxy resource "+r+" with status code "+a.status)},a.onerror=i,a.open("GET",A+"?url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),e._options.imageTimeout){var s=e._options.imageTimeout;a.timeout=s,a.ontimeout=function(){return i("Timed out ("+s+"ms) proxying "+r)}}a.send()}))},t}(),Rr=/^data:image\/svg\+xml/i,Kr=/^data:image\/.*;base64,/i,Mr=/^data:image\/.*/i,kr=function(t){return Ir.SUPPORT_SVG_DRAWING||!Vr(t)},Dr=function(t){return Mr.test(t)},jr=function(t){return Kr.test(t)},zr=function(t){return"blob"===t.substr(0,4)},Vr=function(t){return"svg"===t.substr(-3).toLowerCase()||Rr.test(t)},qr=function(t){var e=er(180),A=[],r=dr.LINEAR_GRADIENT,n=rn.CIRCLE,i=nn.FARTHEST_CORNER,o=[];return RA(t).forEach((function(t,e){var n=t[0];if(0===e){if(xA(n)&&"linear"===n.value)return void(r=dr.LINEAR_GRADIENT);if(xA(n)&&"radial"===n.value)return void(r=dr.RADIAL_GRADIENT)}if(n.type===f.FUNCTION)if("from"===n.name){var i=Ar.parse(n.values[0]);A.push({stop:jA,color:i})}else if("to"===n.name){i=Ar.parse(n.values[0]);A.push({stop:VA,color:i})}else if("color-stop"===n.name){var o=n.values.filter(OA);if(2===o.length){i=Ar.parse(o[1]);var a=o[0];_A(a)&&A.push({stop:{type:f.PERCENTAGE_TOKEN,number:100*a.number,flags:a.flags},color:i})}}})),r===dr.LINEAR_GRADIENT?{angle:(e+er(180))%er(360),stops:A,type:r}:{size:i,shape:n,stops:A,position:o,type:r}},Gr="closest-side",Xr="farthest-side",Jr="closest-corner",Wr="farthest-corner",Yr="circle",Zr="ellipse",$r="cover",tn="contain",en=function(t){var e=rn.CIRCLE,A=nn.FARTHEST_CORNER,r=[],n=[];return RA(t).forEach((function(t,i){var o=!0;if(0===i){var a=!1;o=t.reduce((function(t,r){if(a)if(xA(r))switch(r.value){case"center":return n.push(zA),t;case"top":case"left":return n.push(jA),t;case"right":case"bottom":return n.push(VA),t}else(kA(r)||MA(r))&&n.push(r);else if(xA(r))switch(r.value){case Yr:return e=rn.CIRCLE,!1;case Zr:return e=rn.ELLIPSE,!1;case"at":return a=!0,!1;case Gr:return A=nn.CLOSEST_SIDE,!1;case $r:case Xr:return A=nn.FARTHEST_SIDE,!1;case tn:case Jr:return A=nn.CLOSEST_CORNER,!1;case Wr:return A=nn.FARTHEST_CORNER,!1}else if(MA(r)||kA(r))return Array.isArray(A)||(A=[]),A.push(r),!1;return t}),o)}if(o){var s=gr(t);r.push(s)}})),{size:A,shape:e,stops:r,position:n,type:dr.RADIAL_GRADIENT}},An=function(t){var e=rn.CIRCLE,A=nn.FARTHEST_CORNER,r=[],n=[];return RA(t).forEach((function(t,i){var o=!0;if(0===i?o=t.reduce((function(t,e){if(xA(e))switch(e.value){case"center":return n.push(zA),!1;case"top":case"left":return n.push(jA),!1;case"right":case"bottom":return n.push(VA),!1}else if(kA(e)||MA(e))return n.push(e),!1;return t}),o):1===i&&(o=t.reduce((function(t,r){if(xA(r))switch(r.value){case Yr:return e=rn.CIRCLE,!1;case Zr:return e=rn.ELLIPSE,!1;case tn:case Gr:return A=nn.CLOSEST_SIDE,!1;case Xr:return A=nn.FARTHEST_SIDE,!1;case Jr:return A=nn.CLOSEST_CORNER,!1;case $r:case Wr:return A=nn.FARTHEST_CORNER,!1}else if(MA(r)||kA(r))return Array.isArray(A)||(A=[]),A.push(r),!1;return t}),o)),o){var a=gr(t);r.push(a)}})),{size:A,shape:e,stops:r,position:n,type:dr.RADIAL_GRADIENT}};(function(t){t[t["URL"]=0]="URL",t[t["LINEAR_GRADIENT"]=1]="LINEAR_GRADIENT",t[t["RADIAL_GRADIENT"]=2]="RADIAL_GRADIENT"})(dr||(dr={}));var rn,nn,on=function(t){return t.type===dr.LINEAR_GRADIENT},an=function(t){return t.type===dr.RADIAL_GRADIENT};(function(t){t[t["CIRCLE"]=0]="CIRCLE",t[t["ELLIPSE"]=1]="ELLIPSE"})(rn||(rn={})),function(t){t[t["CLOSEST_SIDE"]=0]="CLOSEST_SIDE",t[t["FARTHEST_SIDE"]=1]="FARTHEST_SIDE",t[t["CLOSEST_CORNER"]=2]="CLOSEST_CORNER",t[t["FARTHEST_CORNER"]=3]="FARTHEST_CORNER"}(nn||(nn={}));var sn={name:"image",parse:function(t){if(t.type===f.URL_TOKEN){var e={url:t.value,type:dr.URL};return Tr.getInstance().addImage(t.value),e}if(t.type===f.FUNCTION){var A=ln[t.name];if("undefined"===typeof A)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return A(t.values)}throw new Error("Unsupported image type")}};function cn(t){return t.type!==f.FUNCTION||ln[t.name]}var un,ln={"linear-gradient":yr,"-moz-linear-gradient":Fr,"-ms-linear-gradient":Fr,"-o-linear-gradient":Fr,"-webkit-linear-gradient":Fr,"radial-gradient":en,"-moz-radial-gradient":An,"-ms-radial-gradient":An,"-o-radial-gradient":An,"-webkit-radial-gradient":An,"-webkit-gradient":qr},hn={name:"background-image",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===f.IDENT_TOKEN&&"none"===e.value?[]:t.filter((function(t){return OA(t)&&cn(t)})).map(sn.parse)}},fn={name:"background-origin",initialValue:"border-box",prefix:!1,type:cr.LIST,parse:function(t){return t.map((function(t){if(xA(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},dn={name:"background-position",initialValue:"0% 0%",type:cr.LIST,prefix:!1,parse:function(t){return RA(t).map((function(t){return t.filter(kA)})).map(DA)}};(function(t){t[t["REPEAT"]=0]="REPEAT",t[t["NO_REPEAT"]=1]="NO_REPEAT",t[t["REPEAT_X"]=2]="REPEAT_X",t[t["REPEAT_Y"]=3]="REPEAT_Y"})(un||(un={}));var pn,Bn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:cr.LIST,parse:function(t){return RA(t).map((function(t){return t.filter(xA).map((function(t){return t.value})).join(" ")})).map(gn)}},gn=function(t){switch(t){case"no-repeat":return un.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return un.REPEAT_X;case"repeat-y":case"no-repeat repeat":return un.REPEAT_Y;case"repeat":default:return un.REPEAT}};(function(t){t["AUTO"]="auto",t["CONTAIN"]="contain",t["COVER"]="cover"})(pn||(pn={}));var wn,mn={name:"background-size",initialValue:"0",prefix:!1,type:cr.LIST,parse:function(t){return RA(t).map((function(t){return t.filter(vn)}))}},vn=function(t){return xA(t)||kA(t)},bn=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"}},Qn=bn("top"),Cn=bn("right"),yn=bn("bottom"),Fn=bn("left"),Un=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:cr.LIST,parse:function(t){return DA(t.filter(kA))}}},Nn=Un("top-left"),En=Un("top-right"),Ln=Un("bottom-right"),Hn=Un("bottom-left");(function(t){t[t["NONE"]=0]="NONE",t[t["SOLID"]=1]="SOLID"})(wn||(wn={}));var Sn,_n=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"none":return wn.NONE}return wn.SOLID}}},xn=_n("top"),In=_n("right"),Pn=_n("bottom"),Tn=_n("left"),On=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:cr.VALUE,prefix:!1,parse:function(t){return SA(t)?t.number:0}}},Rn=On("top"),Kn=On("right"),Mn=On("bottom"),kn=On("left"),Dn={name:"color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"},jn={name:"display",initialValue:"inline-block",prefix:!1,type:cr.LIST,parse:function(t){return t.filter(xA).reduce((function(t,e){return t|zn(e.value)}),0)}},zn=function(t){switch(t){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};(function(t){t[t["NONE"]=0]="NONE",t[t["LEFT"]=1]="LEFT",t[t["RIGHT"]=2]="RIGHT",t[t["INLINE_START"]=3]="INLINE_START",t[t["INLINE_END"]=4]="INLINE_END"})(Sn||(Sn={}));var Vn,qn={name:"float",initialValue:"none",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"left":return Sn.LEFT;case"right":return Sn.RIGHT;case"inline-start":return Sn.INLINE_START;case"inline-end":return Sn.INLINE_END}return Sn.NONE}},Gn={name:"letter-spacing",initialValue:"0",prefix:!1,type:cr.VALUE,parse:function(t){return t.type===f.IDENT_TOKEN&&"normal"===t.value?0:t.type===f.NUMBER_TOKEN||t.type===f.DIMENSION_TOKEN?t.number:0}};(function(t){t["NORMAL"]="normal",t["STRICT"]="strict"})(Vn||(Vn={}));var Xn,Jn={name:"line-break",initialValue:"normal",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"strict":return Vn.STRICT;case"normal":default:return Vn.NORMAL}}},Wn={name:"line-height",initialValue:"normal",prefix:!1,type:cr.TOKEN_VALUE},Yn=function(t,e){return xA(t)&&"normal"===t.value?1.2*e:t.type===f.NUMBER_TOKEN?e*t.number:kA(t)?GA(t,e):e},Zn={name:"list-style-image",initialValue:"none",type:cr.VALUE,prefix:!1,parse:function(t){return t.type===f.IDENT_TOKEN&&"none"===t.value?null:sn.parse(t)}};(function(t){t[t["INSIDE"]=0]="INSIDE",t[t["OUTSIDE"]=1]="OUTSIDE"})(Xn||(Xn={}));var $n,ti={name:"list-style-position",initialValue:"outside",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"inside":return Xn.INSIDE;case"outside":default:return Xn.OUTSIDE}}};(function(t){t[t["NONE"]=-1]="NONE",t[t["DISC"]=0]="DISC",t[t["CIRCLE"]=1]="CIRCLE",t[t["SQUARE"]=2]="SQUARE",t[t["DECIMAL"]=3]="DECIMAL",t[t["CJK_DECIMAL"]=4]="CJK_DECIMAL",t[t["DECIMAL_LEADING_ZERO"]=5]="DECIMAL_LEADING_ZERO",t[t["LOWER_ROMAN"]=6]="LOWER_ROMAN",t[t["UPPER_ROMAN"]=7]="UPPER_ROMAN",t[t["LOWER_GREEK"]=8]="LOWER_GREEK",t[t["LOWER_ALPHA"]=9]="LOWER_ALPHA",t[t["UPPER_ALPHA"]=10]="UPPER_ALPHA",t[t["ARABIC_INDIC"]=11]="ARABIC_INDIC",t[t["ARMENIAN"]=12]="ARMENIAN",t[t["BENGALI"]=13]="BENGALI",t[t["CAMBODIAN"]=14]="CAMBODIAN",t[t["CJK_EARTHLY_BRANCH"]=15]="CJK_EARTHLY_BRANCH",t[t["CJK_HEAVENLY_STEM"]=16]="CJK_HEAVENLY_STEM",t[t["CJK_IDEOGRAPHIC"]=17]="CJK_IDEOGRAPHIC",t[t["DEVANAGARI"]=18]="DEVANAGARI",t[t["ETHIOPIC_NUMERIC"]=19]="ETHIOPIC_NUMERIC",t[t["GEORGIAN"]=20]="GEORGIAN",t[t["GUJARATI"]=21]="GUJARATI",t[t["GURMUKHI"]=22]="GURMUKHI",t[t["HEBREW"]=22]="HEBREW",t[t["HIRAGANA"]=23]="HIRAGANA",t[t["HIRAGANA_IROHA"]=24]="HIRAGANA_IROHA",t[t["JAPANESE_FORMAL"]=25]="JAPANESE_FORMAL",t[t["JAPANESE_INFORMAL"]=26]="JAPANESE_INFORMAL",t[t["KANNADA"]=27]="KANNADA",t[t["KATAKANA"]=28]="KATAKANA",t[t["KATAKANA_IROHA"]=29]="KATAKANA_IROHA",t[t["KHMER"]=30]="KHMER",t[t["KOREAN_HANGUL_FORMAL"]=31]="KOREAN_HANGUL_FORMAL",t[t["KOREAN_HANJA_FORMAL"]=32]="KOREAN_HANJA_FORMAL",t[t["KOREAN_HANJA_INFORMAL"]=33]="KOREAN_HANJA_INFORMAL",t[t["LAO"]=34]="LAO",t[t["LOWER_ARMENIAN"]=35]="LOWER_ARMENIAN",t[t["MALAYALAM"]=36]="MALAYALAM",t[t["MONGOLIAN"]=37]="MONGOLIAN",t[t["MYANMAR"]=38]="MYANMAR",t[t["ORIYA"]=39]="ORIYA",t[t["PERSIAN"]=40]="PERSIAN",t[t["SIMP_CHINESE_FORMAL"]=41]="SIMP_CHINESE_FORMAL",t[t["SIMP_CHINESE_INFORMAL"]=42]="SIMP_CHINESE_INFORMAL",t[t["TAMIL"]=43]="TAMIL",t[t["TELUGU"]=44]="TELUGU",t[t["THAI"]=45]="THAI",t[t["TIBETAN"]=46]="TIBETAN",t[t["TRAD_CHINESE_FORMAL"]=47]="TRAD_CHINESE_FORMAL",t[t["TRAD_CHINESE_INFORMAL"]=48]="TRAD_CHINESE_INFORMAL",t[t["UPPER_ARMENIAN"]=49]="UPPER_ARMENIAN",t[t["DISCLOSURE_OPEN"]=50]="DISCLOSURE_OPEN",t[t["DISCLOSURE_CLOSED"]=51]="DISCLOSURE_CLOSED"})($n||($n={}));var ei,Ai={name:"list-style-type",initialValue:"none",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"disc":return $n.DISC;case"circle":return $n.CIRCLE;case"square":return $n.SQUARE;case"decimal":return $n.DECIMAL;case"cjk-decimal":return $n.CJK_DECIMAL;case"decimal-leading-zero":return $n.DECIMAL_LEADING_ZERO;case"lower-roman":return $n.LOWER_ROMAN;case"upper-roman":return $n.UPPER_ROMAN;case"lower-greek":return $n.LOWER_GREEK;case"lower-alpha":return $n.LOWER_ALPHA;case"upper-alpha":return $n.UPPER_ALPHA;case"arabic-indic":return $n.ARABIC_INDIC;case"armenian":return $n.ARMENIAN;case"bengali":return $n.BENGALI;case"cambodian":return $n.CAMBODIAN;case"cjk-earthly-branch":return $n.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return $n.CJK_HEAVENLY_STEM;case"cjk-ideographic":return $n.CJK_IDEOGRAPHIC;case"devanagari":return $n.DEVANAGARI;case"ethiopic-numeric":return $n.ETHIOPIC_NUMERIC;case"georgian":return $n.GEORGIAN;case"gujarati":return $n.GUJARATI;case"gurmukhi":return $n.GURMUKHI;case"hebrew":return $n.HEBREW;case"hiragana":return $n.HIRAGANA;case"hiragana-iroha":return $n.HIRAGANA_IROHA;case"japanese-formal":return $n.JAPANESE_FORMAL;case"japanese-informal":return $n.JAPANESE_INFORMAL;case"kannada":return $n.KANNADA;case"katakana":return $n.KATAKANA;case"katakana-iroha":return $n.KATAKANA_IROHA;case"khmer":return $n.KHMER;case"korean-hangul-formal":return $n.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return $n.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return $n.KOREAN_HANJA_INFORMAL;case"lao":return $n.LAO;case"lower-armenian":return $n.LOWER_ARMENIAN;case"malayalam":return $n.MALAYALAM;case"mongolian":return $n.MONGOLIAN;case"myanmar":return $n.MYANMAR;case"oriya":return $n.ORIYA;case"persian":return $n.PERSIAN;case"simp-chinese-formal":return $n.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return $n.SIMP_CHINESE_INFORMAL;case"tamil":return $n.TAMIL;case"telugu":return $n.TELUGU;case"thai":return $n.THAI;case"tibetan":return $n.TIBETAN;case"trad-chinese-formal":return $n.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return $n.TRAD_CHINESE_INFORMAL;case"upper-armenian":return $n.UPPER_ARMENIAN;case"disclosure-open":return $n.DISCLOSURE_OPEN;case"disclosure-closed":return $n.DISCLOSURE_CLOSED;case"none":default:return $n.NONE}}},ri=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:cr.TOKEN_VALUE}},ni=ri("top"),ii=ri("right"),oi=ri("bottom"),ai=ri("left");(function(t){t[t["VISIBLE"]=0]="VISIBLE",t[t["HIDDEN"]=1]="HIDDEN",t[t["SCROLL"]=2]="SCROLL",t[t["AUTO"]=3]="AUTO"})(ei||(ei={}));var si,ci={name:"overflow",initialValue:"visible",prefix:!1,type:cr.LIST,parse:function(t){return t.filter(xA).map((function(t){switch(t.value){case"hidden":return ei.HIDDEN;case"scroll":return ei.SCROLL;case"auto":return ei.AUTO;case"visible":default:return ei.VISIBLE}}))}};(function(t){t["NORMAL"]="normal",t["BREAK_WORD"]="break-word"})(si||(si={}));var ui,li={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"break-word":return si.BREAK_WORD;case"normal":default:return si.NORMAL}}},hi=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:cr.TYPE_VALUE,format:"length-percentage"}},fi=hi("top"),di=hi("right"),pi=hi("bottom"),Bi=hi("left");(function(t){t[t["LEFT"]=0]="LEFT",t[t["CENTER"]=1]="CENTER",t[t["RIGHT"]=2]="RIGHT"})(ui||(ui={}));var gi,wi={name:"text-align",initialValue:"left",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"right":return ui.RIGHT;case"center":case"justify":return ui.CENTER;case"left":default:return ui.LEFT}}};(function(t){t[t["STATIC"]=0]="STATIC",t[t["RELATIVE"]=1]="RELATIVE",t[t["ABSOLUTE"]=2]="ABSOLUTE",t[t["FIXED"]=3]="FIXED",t[t["STICKY"]=4]="STICKY"})(gi||(gi={}));var mi,vi={name:"position",initialValue:"static",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"relative":return gi.RELATIVE;case"absolute":return gi.ABSOLUTE;case"fixed":return gi.FIXED;case"sticky":return gi.STICKY}return gi.STATIC}},bi={name:"text-shadow",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){return 1===t.length&&PA(t[0],"none")?[]:RA(t).map((function(t){for(var e={color:fr.TRANSPARENT,offsetX:jA,offsetY:jA,blur:jA},A=0,r=0;r<t.length;r++){var n=t[r];MA(n)?(0===A?e.offsetX=n:1===A?e.offsetY=n:e.blur=n,A++):e.color=Ar.parse(n)}return e}))}};(function(t){t[t["NONE"]=0]="NONE",t[t["LOWERCASE"]=1]="LOWERCASE",t[t["UPPERCASE"]=2]="UPPERCASE",t[t["CAPITALIZE"]=3]="CAPITALIZE"})(mi||(mi={}));var Qi,Ci={name:"text-transform",initialValue:"none",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"uppercase":return mi.UPPERCASE;case"lowercase":return mi.LOWERCASE;case"capitalize":return mi.CAPITALIZE}return mi.NONE}},yi={name:"transform",initialValue:"none",prefix:!0,type:cr.VALUE,parse:function(t){if(t.type===f.IDENT_TOKEN&&"none"===t.value)return null;if(t.type===f.FUNCTION){var e=Ni[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},Fi=function(t){var e=t.filter((function(t){return t.type===f.NUMBER_TOKEN})).map((function(t){return t.number}));return 6===e.length?e:null},Ui=function(t){var e=t.filter((function(t){return t.type===f.NUMBER_TOKEN})).map((function(t){return t.number})),A=e[0],r=e[1],n=(e[2],e[3],e[4]),i=e[5],o=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),a=e[13];e[14],e[15];return 16===e.length?[A,r,n,i,o,a]:null},Ni={matrix:Fi,matrix3d:Ui},Ei={type:f.PERCENTAGE_TOKEN,number:50,flags:qt},Li=[Ei,Ei],Hi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:cr.LIST,parse:function(t){var e=t.filter(kA);return 2!==e.length?Li:[e[0],e[1]]}};(function(t){t[t["VISIBLE"]=0]="VISIBLE",t[t["HIDDEN"]=1]="HIDDEN",t[t["COLLAPSE"]=2]="COLLAPSE"})(Qi||(Qi={}));var Si,_i={name:"visible",initialValue:"none",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"hidden":return Qi.HIDDEN;case"collapse":return Qi.COLLAPSE;case"visible":default:return Qi.VISIBLE}}};(function(t){t["NORMAL"]="normal",t["BREAK_ALL"]="break-all",t["KEEP_ALL"]="keep-all"})(Si||(Si={}));var xi,Ii={name:"word-break",initialValue:"normal",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"break-all":return Si.BREAK_ALL;case"keep-all":return Si.KEEP_ALL;case"normal":default:return Si.NORMAL}}},Pi={name:"z-index",initialValue:"auto",prefix:!1,type:cr.VALUE,parse:function(t){if(t.type===f.IDENT_TOKEN)return{auto:!0,order:0};if(_A(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Ti={name:"opacity",initialValue:"1",type:cr.VALUE,prefix:!1,parse:function(t){return _A(t)?t.number:1}},Oi={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:cr.TYPE_VALUE,format:"color"},Ri={name:"text-decoration-line",initialValue:"none",prefix:!1,type:cr.LIST,parse:function(t){return t.filter(xA).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},Ki={name:"font-family",initialValue:"",prefix:!1,type:cr.LIST,parse:function(t){var e=[],A=[];return t.forEach((function(t){switch(t.type){case f.IDENT_TOKEN:case f.STRING_TOKEN:e.push(t.value);break;case f.NUMBER_TOKEN:e.push(t.number.toString());break;case f.COMMA_TOKEN:A.push(e.join(" ")),e.length=0;break}})),e.length&&A.push(e.join(" ")),A.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},Mi={name:"font-size",initialValue:"0",prefix:!1,type:cr.TYPE_VALUE,format:"length"},ki={name:"font-weight",initialValue:"normal",type:cr.VALUE,prefix:!1,parse:function(t){if(_A(t))return t.number;if(xA(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Di={name:"font-variant",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){return t.filter(xA).map((function(t){return t.value}))}};(function(t){t["NORMAL"]="normal",t["ITALIC"]="italic",t["OBLIQUE"]="oblique"})(xi||(xi={}));var ji,zi={name:"font-style",initialValue:"normal",prefix:!1,type:cr.IDENT_VALUE,parse:function(t){switch(t){case"oblique":return xi.OBLIQUE;case"italic":return xi.ITALIC;case"normal":default:return xi.NORMAL}}},Vi=function(t,e){return 0!==(t&e)},qi={name:"content",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===f.IDENT_TOKEN&&"none"===e.value?[]:t}},Gi={name:"counter-increment",initialValue:"none",prefix:!0,type:cr.LIST,parse:function(t){if(0===t.length)return null;var e=t[0];if(e.type===f.IDENT_TOKEN&&"none"===e.value)return null;for(var A=[],r=t.filter(TA),n=0;n<r.length;n++){var i=r[n],o=r[n+1];if(i.type===f.IDENT_TOKEN){var a=o&&_A(o)?o.number:1;A.push({counter:i.value,increment:a})}}return A}},Xi={name:"counter-reset",initialValue:"none",prefix:!0,type:cr.LIST,parse:function(t){if(0===t.length)return[];for(var e=[],A=t.filter(TA),r=0;r<A.length;r++){var n=A[r],i=A[r+1];if(xA(n)&&"none"!==n.value){var o=i&&_A(i)?i.number:0;e.push({counter:n.value,reset:o})}}return e}},Ji={name:"quotes",initialValue:"none",prefix:!0,type:cr.LIST,parse:function(t){if(0===t.length)return null;var e=t[0];if(e.type===f.IDENT_TOKEN&&"none"===e.value)return null;var A=[],r=t.filter(IA);if(r.length%2!==0)return null;for(var n=0;n<r.length;n+=2){var i=r[n].value,o=r[n+1].value;A.push({open:i,close:o})}return A}},Wi=function(t,e,A){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?A?r.open:r.close:""},Yi={name:"box-shadow",initialValue:"none",type:cr.LIST,prefix:!1,parse:function(t){return 1===t.length&&PA(t[0],"none")?[]:RA(t).map((function(t){for(var e={color:255,offsetX:jA,offsetY:jA,blur:jA,spread:jA,inset:!1},A=0,r=0;r<t.length;r++){var n=t[r];PA(n,"inset")?e.inset=!0:MA(n)?(0===A?e.offsetX=n:1===A?e.offsetY=n:2===A?e.blur=n:e.spread=n,A++):e.color=Ar.parse(n)}return e}))}},Zi=function(){function t(t){this.backgroundClip=eo(pr,t.backgroundClip),this.backgroundColor=eo(Br,t.backgroundColor),this.backgroundImage=eo(hn,t.backgroundImage),this.backgroundOrigin=eo(fn,t.backgroundOrigin),this.backgroundPosition=eo(dn,t.backgroundPosition),this.backgroundRepeat=eo(Bn,t.backgroundRepeat),this.backgroundSize=eo(mn,t.backgroundSize),this.borderTopColor=eo(Qn,t.borderTopColor),this.borderRightColor=eo(Cn,t.borderRightColor),this.borderBottomColor=eo(yn,t.borderBottomColor),this.borderLeftColor=eo(Fn,t.borderLeftColor),this.borderTopLeftRadius=eo(Nn,t.borderTopLeftRadius),this.borderTopRightRadius=eo(En,t.borderTopRightRadius),this.borderBottomRightRadius=eo(Ln,t.borderBottomRightRadius),this.borderBottomLeftRadius=eo(Hn,t.borderBottomLeftRadius),this.borderTopStyle=eo(xn,t.borderTopStyle),this.borderRightStyle=eo(In,t.borderRightStyle),this.borderBottomStyle=eo(Pn,t.borderBottomStyle),this.borderLeftStyle=eo(Tn,t.borderLeftStyle),this.borderTopWidth=eo(Rn,t.borderTopWidth),this.borderRightWidth=eo(Kn,t.borderRightWidth),this.borderBottomWidth=eo(Mn,t.borderBottomWidth),this.borderLeftWidth=eo(kn,t.borderLeftWidth),this.boxShadow=eo(Yi,t.boxShadow),this.color=eo(Dn,t.color),this.display=eo(jn,t.display),this.float=eo(qn,t.cssFloat),this.fontFamily=eo(Ki,t.fontFamily),this.fontSize=eo(Mi,t.fontSize),this.fontStyle=eo(zi,t.fontStyle),this.fontVariant=eo(Di,t.fontVariant),this.fontWeight=eo(ki,t.fontWeight),this.letterSpacing=eo(Gn,t.letterSpacing),this.lineBreak=eo(Jn,t.lineBreak),this.lineHeight=eo(Wn,t.lineHeight),this.listStyleImage=eo(Zn,t.listStyleImage),this.listStylePosition=eo(ti,t.listStylePosition),this.listStyleType=eo(Ai,t.listStyleType),this.marginTop=eo(ni,t.marginTop),this.marginRight=eo(ii,t.marginRight),this.marginBottom=eo(oi,t.marginBottom),this.marginLeft=eo(ai,t.marginLeft),this.opacity=eo(Ti,t.opacity);var e=eo(ci,t.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=eo(li,t.overflowWrap),this.paddingTop=eo(fi,t.paddingTop),this.paddingRight=eo(di,t.paddingRight),this.paddingBottom=eo(pi,t.paddingBottom),this.paddingLeft=eo(Bi,t.paddingLeft),this.position=eo(vi,t.position),this.textAlign=eo(wi,t.textAlign),this.textDecorationColor=eo(Oi,t.textDecorationColor||t.color),this.textDecorationLine=eo(Ri,t.textDecorationLine),this.textShadow=eo(bi,t.textShadow),this.textTransform=eo(Ci,t.textTransform),this.transform=eo(yi,t.transform),this.transformOrigin=eo(Hi,t.transformOrigin),this.visibility=eo(_i,t.visibility),this.wordBreak=eo(Ii,t.wordBreak),this.zIndex=eo(Pi,t.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Qi.VISIBLE},t.prototype.isTransparent=function(){return rr(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return this.position!==gi.STATIC},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==Sn.NONE},t.prototype.isInlineLevel=function(){return Vi(this.display,4)||Vi(this.display,33554432)||Vi(this.display,268435456)||Vi(this.display,536870912)||Vi(this.display,67108864)||Vi(this.display,134217728)},t}(),$i=function(){function t(t){this.content=eo(qi,t.content),this.quotes=eo(Ji,t.quotes)}return t}(),to=function(){function t(t){this.counterIncrement=eo(Gi,t.counterIncrement),this.counterReset=eo(Xi,t.counterReset)}return t}(),eo=function(t,e){var A=new LA,r=null!==e&&"undefined"!==typeof e?e.toString():t.initialValue;A.write(r);var n=new HA(A.read());switch(t.type){case cr.IDENT_VALUE:var i=n.parseComponentValue();return t.parse(xA(i)?i.value:t.initialValue);case cr.VALUE:return t.parse(n.parseComponentValue());case cr.LIST:return t.parse(n.parseComponentValues());case cr.TOKEN_VALUE:return n.parseComponentValue();case cr.TYPE_VALUE:switch(t.format){case"angle":return ZA.parse(n.parseComponentValue());case"color":return Ar.parse(n.parseComponentValue());case"image":return sn.parse(n.parseComponentValue());case"length":var o=n.parseComponentValue();return MA(o)?o:jA;case"length-percentage":var a=n.parseComponentValue();return kA(a)?a:jA}}throw new Error("Attempting to parse unsupported css format type "+t.format)},Ao=function(){function t(t){this.styles=new Zi(window.getComputedStyle(t,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Mo(t)&&(t.style.transform="none"),this.bounds=o(t),this.flags=0}return t}(),ro=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),no=function(t,e,A){var r=ao(t,e),n=[],i=0;return r.forEach((function(t){if(e.textDecorationLine.length||t.trim().length>0)if(Ir.SUPPORT_RANGE_BOUNDS)n.push(new ro(t,oo(A,i,t.length)));else{var r=A.splitText(t.length);n.push(new ro(t,io(A))),A=r}else Ir.SUPPORT_RANGE_BOUNDS||(A=A.splitText(t.length));i+=t.length})),n},io=function(t){var e=t.ownerDocument;if(e){var A=e.createElement("html2canvaswrapper");A.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(A,t);var n=o(A);return A.firstChild&&r.replaceChild(A.firstChild,A),n}}return new i(0,0,0,0)},oo=function(t,e,A){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(t,e),n.setEnd(t,e+A),i.fromClientRect(n.getBoundingClientRect())},ao=function(t,e){return 0!==e.letterSpacing?s(t).map((function(t){return c(t)})):so(t,e)},so=function(t,e){var A,r=jt(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===si.BREAK_WORD?"break-word":e.wordBreak}),n=[];while(!(A=r.next()).done)A.value&&n.push(A.value.slice());return n},co=function(){function t(t,e){this.text=uo(t.data,e.textTransform),this.textBounds=no(this.text,e,t)}return t}(),uo=function(t,e){switch(e){case mi.LOWERCASE:return t.toLowerCase();case mi.CAPITALIZE:return t.replace(lo,ho);case mi.UPPERCASE:return t.toUpperCase();default:return t}},lo=/(^|\s|:|-|\(|\))([a-z])/g,ho=function(t,e,A){return t.length>0?e+A.toUpperCase():t},fo=function(t){function A(e){var A=t.call(this,e)||this;return A.src=e.currentSrc||e.src,A.intrinsicWidth=e.naturalWidth,A.intrinsicHeight=e.naturalHeight,Tr.getInstance().addImage(A.src),A}return e(A,t),A}(Ao),po=function(t){function A(e){var A=t.call(this,e)||this;return A.canvas=e,A.intrinsicWidth=e.width,A.intrinsicHeight=e.height,A}return e(A,t),A}(Ao),Bo=function(t){function A(e){var A=t.call(this,e)||this,r=new XMLSerializer;return A.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),A.intrinsicWidth=e.width.baseVal.value,A.intrinsicHeight=e.height.baseVal.value,Tr.getInstance().addImage(A.svg),A}return e(A,t),A}(Ao),go=function(t){function A(e){var A=t.call(this,e)||this;return A.value=e.value,A}return e(A,t),A}(Ao),wo=function(t){function A(e){var A=t.call(this,e)||this;return A.start=e.start,A.reversed="boolean"===typeof e.reversed&&!0===e.reversed,A}return e(A,t),A}(Ao),mo=[{type:f.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],vo=[{type:f.PERCENTAGE_TOKEN,flags:0,number:50}],bo=function(t){return t.width>t.height?new i(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new i(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},Qo=function(t){var e=t.type===Fo?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},Co="checkbox",yo="radio",Fo="password",Uo=707406591,No=function(t){function A(e){var A=t.call(this,e)||this;switch(A.type=e.type.toLowerCase(),A.checked=e.checked,A.value=Qo(e),A.type!==Co&&A.type!==yo||(A.styles.backgroundColor=3739148031,A.styles.borderTopColor=A.styles.borderRightColor=A.styles.borderBottomColor=A.styles.borderLeftColor=2779096575,A.styles.borderTopWidth=A.styles.borderRightWidth=A.styles.borderBottomWidth=A.styles.borderLeftWidth=1,A.styles.borderTopStyle=A.styles.borderRightStyle=A.styles.borderBottomStyle=A.styles.borderLeftStyle=wn.SOLID,A.styles.backgroundClip=[ur.BORDER_BOX],A.styles.backgroundOrigin=[0],A.bounds=bo(A.bounds)),A.type){case Co:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=mo;break;case yo:A.styles.borderTopRightRadius=A.styles.borderTopLeftRadius=A.styles.borderBottomRightRadius=A.styles.borderBottomLeftRadius=vo;break}return A}return e(A,t),A}(Ao),Eo=function(t){function A(e){var A=t.call(this,e)||this,r=e.options[e.selectedIndex||0];return A.value=r&&r.text||"",A}return e(A,t),A}(Ao),Lo=function(t){function A(e){var A=t.call(this,e)||this;return A.value=e.value,A}return e(A,t),A}(Ao),Ho=function(t){return Ar.parse(HA.create(t).parseComponentValue())},So=function(t){function A(e){var A=t.call(this,e)||this;A.src=e.src,A.width=parseInt(e.width,10)||0,A.height=parseInt(e.height,10)||0,A.backgroundColor=A.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){A.tree=Po(e.contentWindow.document.documentElement);var r=e.contentWindow.document.documentElement?Ho(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):fr.TRANSPARENT,n=e.contentWindow.document.body?Ho(getComputedStyle(e.contentWindow.document.body).backgroundColor):fr.TRANSPARENT;A.backgroundColor=rr(r)?rr(n)?A.styles.backgroundColor:n:r}}catch(Re){}return A}return e(A,t),A}(Ao),_o=["OL","UL","MENU"],xo=function(t,e,A){for(var r=t.firstChild,n=void 0;r;r=n)if(n=r.nextSibling,Ro(r)&&r.data.trim().length>0)e.textNodes.push(new co(r,e.styles));else if(Ko(r)){var i=Io(r);i.styles.isVisible()&&(To(r,i,A)?i.flags|=4:Oo(i.styles)&&(i.flags|=2),-1!==_o.indexOf(r.tagName)&&(i.flags|=8),e.elements.push(i),$o(r)||qo(r)||ta(r)||xo(r,i,A))}},Io=function(t){return Jo(t)?new fo(t):Xo(t)?new po(t):qo(t)?new Bo(t):Do(t)?new go(t):jo(t)?new wo(t):zo(t)?new No(t):ta(t)?new Eo(t):$o(t)?new Lo(t):Wo(t)?new So(t):new Ao(t)},Po=function(t){var e=Io(t);return e.flags|=4,xo(t,e,e),e},To=function(t,e,A){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Go(t)&&A.styles.isTransparent()},Oo=function(t){return t.isPositioned()||t.isFloating()},Ro=function(t){return t.nodeType===Node.TEXT_NODE},Ko=function(t){return t.nodeType===Node.ELEMENT_NODE},Mo=function(t){return Ko(t)&&"undefined"!==typeof t.style&&!ko(t)},ko=function(t){return"object"===typeof t.className},Do=function(t){return"LI"===t.tagName},jo=function(t){return"OL"===t.tagName},zo=function(t){return"INPUT"===t.tagName},Vo=function(t){return"HTML"===t.tagName},qo=function(t){return"svg"===t.tagName},Go=function(t){return"BODY"===t.tagName},Xo=function(t){return"CANVAS"===t.tagName},Jo=function(t){return"IMG"===t.tagName},Wo=function(t){return"IFRAME"===t.tagName},Yo=function(t){return"STYLE"===t.tagName},Zo=function(t){return"SCRIPT"===t.tagName},$o=function(t){return"TEXTAREA"===t.tagName},ta=function(t){return"SELECT"===t.tagName},ea=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,A=t.counterIncrement,r=t.counterReset,n=!0;null!==A&&A.forEach((function(t){var A=e.counters[t.counter];A&&0!==t.increment&&(n=!1,A[Math.max(0,A.length-1)]+=t.increment)}));var i=[];return n&&r.forEach((function(t){var A=e.counters[t.counter];i.push(t.counter),A||(A=e.counters[t.counter]=[]),A.push(t.reset)})),i},t}(),Aa={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ra={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},na={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},ia={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},oa=function(t,e,A,r,n,i){return t<e||t>A?ma(t,n,i.length>0):r.integers.reduce((function(e,A,n){while(t>=A)t-=A,e+=r.values[n];return e}),"")+i},aa=function(t,e,A,r){var n="";do{A||t--,n=r(t)+n,t/=e}while(t*e>=e);return n},sa=function(t,e,A,r,n){var i=A-e+1;return(t<0?"-":"")+(aa(Math.abs(t),i,r,(function(t){return c(Math.floor(t%i)+e)}))+n)},ca=function(t,e,A){void 0===A&&(A=". ");var r=e.length;return aa(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+A},ua=1,la=2,ha=4,fa=8,da=function(t,e,A,r,n,i){if(t<-9999||t>9999)return ma(t,$n.CJK_DECIMAL,n.length>0);var o=Math.abs(t),a=n;if(0===o)return e[0]+a;for(var s=0;o>0&&s<=4;s++){var c=o%10;0===c&&Vi(i,ua)&&""!==a?a=e[c]+a:c>1||1===c&&0===s||1===c&&1===s&&Vi(i,la)||1===c&&1===s&&Vi(i,ha)&&t>100||1===c&&s>1&&Vi(i,fa)?a=e[c]+(s>0?A[s-1]:"")+a:1===c&&s>0&&(a=A[s-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},pa="十百千萬",Ba="拾佰仟萬",ga="マイナス",wa="마이너스",ma=function(t,e,A){var r=A?". ":"",n=A?"、":"",i=A?", ":"",o=A?" ":"";switch(e){case $n.DISC:return"•"+o;case $n.CIRCLE:return"◦"+o;case $n.SQUARE:return"◾"+o;case $n.DECIMAL_LEADING_ZERO:var a=sa(t,48,57,!0,r);return a.length<4?"0"+a:a;case $n.CJK_DECIMAL:return ca(t,"〇一二三四五六七八九",n);case $n.LOWER_ROMAN:return oa(t,1,3999,Aa,$n.DECIMAL,r).toLowerCase();case $n.UPPER_ROMAN:return oa(t,1,3999,Aa,$n.DECIMAL,r);case $n.LOWER_GREEK:return sa(t,945,969,!1,r);case $n.LOWER_ALPHA:return sa(t,97,122,!1,r);case $n.UPPER_ALPHA:return sa(t,65,90,!1,r);case $n.ARABIC_INDIC:return sa(t,1632,1641,!0,r);case $n.ARMENIAN:case $n.UPPER_ARMENIAN:return oa(t,1,9999,ra,$n.DECIMAL,r);case $n.LOWER_ARMENIAN:return oa(t,1,9999,ra,$n.DECIMAL,r).toLowerCase();case $n.BENGALI:return sa(t,2534,2543,!0,r);case $n.CAMBODIAN:case $n.KHMER:return sa(t,6112,6121,!0,r);case $n.CJK_EARTHLY_BRANCH:return ca(t,"子丑寅卯辰巳午未申酉戌亥",n);case $n.CJK_HEAVENLY_STEM:return ca(t,"甲乙丙丁戊己庚辛壬癸",n);case $n.CJK_IDEOGRAPHIC:case $n.TRAD_CHINESE_INFORMAL:return da(t,"零一二三四五六七八九",pa,"負",n,la|ha|fa);case $n.TRAD_CHINESE_FORMAL:return da(t,"零壹貳參肆伍陸柒捌玖",Ba,"負",n,ua|la|ha|fa);case $n.SIMP_CHINESE_INFORMAL:return da(t,"零一二三四五六七八九",pa,"负",n,la|ha|fa);case $n.SIMP_CHINESE_FORMAL:return da(t,"零壹贰叁肆伍陆柒捌玖",Ba,"负",n,ua|la|ha|fa);case $n.JAPANESE_INFORMAL:return da(t,"〇一二三四五六七八九","十百千万",ga,n,0);case $n.JAPANESE_FORMAL:return da(t,"零壱弐参四伍六七八九","拾百千万",ga,n,ua|la|ha);case $n.KOREAN_HANGUL_FORMAL:return da(t,"영일이삼사오육칠팔구","십백천만",wa,i,ua|la|ha);case $n.KOREAN_HANJA_INFORMAL:return da(t,"零一二三四五六七八九","十百千萬",wa,i,0);case $n.KOREAN_HANJA_FORMAL:return da(t,"零壹貳參四五六七八九","拾百千",wa,i,ua|la|ha);case $n.DEVANAGARI:return sa(t,2406,2415,!0,r);case $n.GEORGIAN:return oa(t,1,19999,ia,$n.DECIMAL,r);case $n.GUJARATI:return sa(t,2790,2799,!0,r);case $n.GURMUKHI:return sa(t,2662,2671,!0,r);case $n.HEBREW:return oa(t,1,10999,na,$n.DECIMAL,r);case $n.HIRAGANA:return ca(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case $n.HIRAGANA_IROHA:return ca(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case $n.KANNADA:return sa(t,3302,3311,!0,r);case $n.KATAKANA:return ca(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case $n.KATAKANA_IROHA:return ca(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case $n.LAO:return sa(t,3792,3801,!0,r);case $n.MONGOLIAN:return sa(t,6160,6169,!0,r);case $n.MYANMAR:return sa(t,4160,4169,!0,r);case $n.ORIYA:return sa(t,2918,2927,!0,r);case $n.PERSIAN:return sa(t,1776,1785,!0,r);case $n.TAMIL:return sa(t,3046,3055,!0,r);case $n.TELUGU:return sa(t,3174,3183,!0,r);case $n.THAI:return sa(t,3664,3673,!0,r);case $n.TIBETAN:return sa(t,3872,3881,!0,r);case $n.DECIMAL:default:return sa(t,48,57,!0,r)}},va="data-html2canvas-ignore",ba=function(){function t(t,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new ea,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return t.prototype.toIFrame=function(t,e){var A=this,i=Ca(t,e);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=i.contentWindow,c=s.document,u=ya(i).then((function(){return r(A,void 0,void 0,(function(){var t;return n(this,(function(A){switch(A.label){case 0:return this.scrolledElements.forEach(Ea),s&&(s.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===e.top&&s.scrollX===e.left||(c.documentElement.style.top=-e.top+"px",c.documentElement.style.left=-e.left+"px",c.documentElement.style.position="absolute")),t=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:A.sent(),A.label=2;case 2:return"function"===typeof t?[2,Promise.resolve().then((function(){return t(c)})).then((function(){return i}))]:[2,i]}}))}))}));return c.open(),c.write(Ua(document.doctype)+"<html></html>"),Na(this.referenceElement.ownerDocument,o,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},t.prototype.createElementClone=function(t){if(Xo(t))return this.createCanvasClone(t);if(Yo(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Jo(e)&&"lazy"===e.loading&&(e.loading="eager"),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var A=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"===typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=A,r}}catch(Re){if(Pr.getInstance(this.options.id).error("Unable to access cssRules property",Re),"SecurityError"!==Re.name)throw Re}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){if(this.options.inlineImages&&t.ownerDocument){var e=t.ownerDocument.createElement("img");try{return e.src=t.toDataURL(),e}catch(Re){Pr.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var A=t.cloneNode(!1);try{A.width=t.width,A.height=t.height;var r=t.getContext("2d"),n=A.getContext("2d");return n&&(r?n.putImageData(r.getImageData(0,0,t.width,t.height),0,0):n.drawImage(t,0,0)),A}catch(Re){}return A},t.prototype.cloneNode=function(t){if(Ro(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var e=t.ownerDocument.defaultView;if(e&&Ko(t)&&(Mo(t)||ko(t))){var A=this.createElementClone(t),r=e.getComputedStyle(t),n=e.getComputedStyle(t,":before"),i=e.getComputedStyle(t,":after");this.referenceElement===t&&Mo(A)&&(this.clonedReferenceElement=A),Go(A)&&Ia(A);for(var o=this.counters.parse(new to(r)),a=this.resolvePseudoContent(t,A,n,ji.BEFORE),s=t.firstChild;s;s=s.nextSibling)Ko(s)&&(Zo(s)||s.hasAttribute(va)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&Ko(s)&&Yo(s)||A.appendChild(this.cloneNode(s));a&&A.insertBefore(a,A.firstChild);var c=this.resolvePseudoContent(t,A,i,ji.AFTER);return c&&A.appendChild(c),this.counters.pop(o),r&&(this.options.copyStyles||ko(t))&&!Wo(t)&&Fa(r,A),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([A,t.scrollLeft,t.scrollTop]),($o(t)||ta(t))&&($o(A)||ta(A))&&(A.value=t.value),A}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,A,r){var n=this;if(A){var i=A.content,o=e.ownerDocument;if(o&&i&&"none"!==i&&"-moz-alt-content"!==i&&"none"!==A.display){this.counters.parse(new to(A));var a=new $i(A),s=o.createElement("html2canvaspseudoelement");Fa(A,s),a.content.forEach((function(e){if(e.type===f.STRING_TOKEN)s.appendChild(o.createTextNode(e.value));else if(e.type===f.URL_TOKEN){var A=o.createElement("img");A.src=e.value,A.style.opacity="1",s.appendChild(A)}else if(e.type===f.FUNCTION){if("attr"===e.name){var r=e.values.filter(xA);r.length&&s.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var i=e.values.filter(OA),c=i[0],u=i[1];if(c&&xA(c)){var l=n.counters.getCounterValue(c.value),h=u&&xA(u)?Ai.parse(u.value):$n.DECIMAL;s.appendChild(o.createTextNode(ma(l,h,!1)))}}else if("counters"===e.name){var d=e.values.filter(OA),p=(c=d[0],d[1]);u=d[2];if(c&&xA(c)){var B=n.counters.getCounterValues(c.value),g=u&&xA(u)?Ai.parse(u.value):$n.DECIMAL,w=p&&p.type===f.STRING_TOKEN?p.value:"",m=B.map((function(t){return ma(t,g,!1)})).join(w);s.appendChild(o.createTextNode(m))}}}else if(e.type===f.IDENT_TOKEN)switch(e.value){case"open-quote":s.appendChild(o.createTextNode(Wi(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":s.appendChild(o.createTextNode(Wi(a.quotes,--n.quoteDepth,!1)));break;default:s.appendChild(o.createTextNode(e.value))}})),s.className=Sa+" "+_a;var c=r===ji.BEFORE?" "+Sa:" "+_a;return ko(e)?e.className.baseValue+=c:e.className+=c,s}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();(function(t){t[t["BEFORE"]=0]="BEFORE",t[t["AFTER"]=1]="AFTER"})(ji||(ji={}));var Qa,Ca=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute(va,"true"),t.body.appendChild(A),A},ya=function(t){return new Promise((function(e,A){var r=t.contentWindow;if(!r)return A("No window assigned for iframe");var n=r.document;r.onload=t.onload=n.onreadystatechange=function(){r.onload=t.onload=n.onreadystatechange=null;var A=setInterval((function(){n.body.childNodes.length>0&&"complete"===n.readyState&&(clearInterval(A),e(t))}),50)}}))},Fa=function(t,e){for(var A=t.length-1;A>=0;A--){var r=t.item(A);"content"!==r&&e.style.setProperty(r,t.getPropertyValue(r))}return e},Ua=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},Na=function(t,e,A){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||A!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,A)},Ea=function(t){var e=t[0],A=t[1],r=t[2];e.scrollLeft=A,e.scrollTop=r},La=":before",Ha=":after",Sa="___html2canvas___pseudoelement_before",_a="___html2canvas___pseudoelement_after",xa='{\n content: "" !important;\n display: none !important;\n}',Ia=function(t){Pa(t,"."+Sa+La+xa+"\n ."+_a+Ha+xa)},Pa=function(t,e){var A=t.ownerDocument;if(A){var r=A.createElement("style");r.textContent=e,t.appendChild(r)}};(function(t){t[t["VECTOR"]=0]="VECTOR",t[t["BEZIER_CURVE"]=1]="BEZIER_CURVE"})(Qa||(Qa={}));var Ta,Oa=function(t,e){return t.length===e.length&&t.some((function(t,A){return t===e[A]}))},Ra=function(t,e,A,r,n){return t.map((function(t,i){switch(i){case 0:return t.add(e,A);case 1:return t.add(e+r,A);case 2:return t.add(e+r,A+n);case 3:return t.add(e,A+n)}return t}))},Ka=function(){function t(t,e){this.type=Qa.VECTOR,this.x=t,this.y=e}return t.prototype.add=function(e,A){return new t(this.x+e,this.y+A)},t}(),Ma=function(t,e,A){return new Ka(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},ka=function(){function t(t,e,A,r){this.type=Qa.BEZIER_CURVE,this.start=t,this.startControl=e,this.endControl=A,this.end=r}return t.prototype.subdivide=function(e,A){var r=Ma(this.start,this.startControl,e),n=Ma(this.startControl,this.endControl,e),i=Ma(this.endControl,this.end,e),o=Ma(r,n,e),a=Ma(n,i,e),s=Ma(o,a,e);return A?new t(this.start,r,o,s):new t(s,a,i,this.end)},t.prototype.add=function(e,A){return new t(this.start.add(e,A),this.startControl.add(e,A),this.endControl.add(e,A),this.end.add(e,A))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Da=function(t){return t.type===Qa.BEZIER_CURVE},ja=function(){function t(t){var e=t.styles,A=t.bounds,r=qA(e.borderTopLeftRadius,A.width,A.height),n=r[0],i=r[1],o=qA(e.borderTopRightRadius,A.width,A.height),a=o[0],s=o[1],c=qA(e.borderBottomRightRadius,A.width,A.height),u=c[0],l=c[1],h=qA(e.borderBottomLeftRadius,A.width,A.height),f=h[0],d=h[1],p=[];p.push((n+a)/A.width),p.push((f+u)/A.width),p.push((i+d)/A.height),p.push((s+l)/A.height);var B=Math.max.apply(Math,p);B>1&&(n/=B,i/=B,a/=B,s/=B,u/=B,l/=B,f/=B,d/=B);var g=A.width-a,w=A.height-l,m=A.width-u,v=A.height-d,b=e.borderTopWidth,Q=e.borderRightWidth,C=e.borderBottomWidth,y=e.borderLeftWidth,F=GA(e.paddingTop,t.bounds.width),U=GA(e.paddingRight,t.bounds.width),N=GA(e.paddingBottom,t.bounds.width),E=GA(e.paddingLeft,t.bounds.width);this.topLeftBorderBox=n>0||i>0?za(A.left,A.top,n,i,Ta.TOP_LEFT):new Ka(A.left,A.top),this.topRightBorderBox=a>0||s>0?za(A.left+g,A.top,a,s,Ta.TOP_RIGHT):new Ka(A.left+A.width,A.top),this.bottomRightBorderBox=u>0||l>0?za(A.left+m,A.top+w,u,l,Ta.BOTTOM_RIGHT):new Ka(A.left+A.width,A.top+A.height),this.bottomLeftBorderBox=f>0||d>0?za(A.left,A.top+v,f,d,Ta.BOTTOM_LEFT):new Ka(A.left,A.top+A.height),this.topLeftPaddingBox=n>0||i>0?za(A.left+y,A.top+b,Math.max(0,n-y),Math.max(0,i-b),Ta.TOP_LEFT):new Ka(A.left+y,A.top+b),this.topRightPaddingBox=a>0||s>0?za(A.left+Math.min(g,A.width+y),A.top+b,g>A.width+y?0:a-y,s-b,Ta.TOP_RIGHT):new Ka(A.left+A.width-Q,A.top+b),this.bottomRightPaddingBox=u>0||l>0?za(A.left+Math.min(m,A.width-y),A.top+Math.min(w,A.height+b),Math.max(0,u-Q),l-C,Ta.BOTTOM_RIGHT):new Ka(A.left+A.width-Q,A.top+A.height-C),this.bottomLeftPaddingBox=f>0||d>0?za(A.left+y,A.top+v,Math.max(0,f-y),d-C,Ta.BOTTOM_LEFT):new Ka(A.left+y,A.top+A.height-C),this.topLeftContentBox=n>0||i>0?za(A.left+y+E,A.top+b+F,Math.max(0,n-(y+E)),Math.max(0,i-(b+F)),Ta.TOP_LEFT):new Ka(A.left+y+E,A.top+b+F),this.topRightContentBox=a>0||s>0?za(A.left+Math.min(g,A.width+y+E),A.top+b+F,g>A.width+y+E?0:a-y+E,s-(b+F),Ta.TOP_RIGHT):new Ka(A.left+A.width-(Q+U),A.top+b+F),this.bottomRightContentBox=u>0||l>0?za(A.left+Math.min(m,A.width-(y+E)),A.top+Math.min(w,A.height+b+F),Math.max(0,u-(Q+U)),l-(C+N),Ta.BOTTOM_RIGHT):new Ka(A.left+A.width-(Q+U),A.top+A.height-(C+N)),this.bottomLeftContentBox=f>0||d>0?za(A.left+y+E,A.top+v,Math.max(0,f-(y+E)),d-(C+N),Ta.BOTTOM_LEFT):new Ka(A.left+y+E,A.top+A.height-(C+N))}return t}();(function(t){t[t["TOP_LEFT"]=0]="TOP_LEFT",t[t["TOP_RIGHT"]=1]="TOP_RIGHT",t[t["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",t[t["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(Ta||(Ta={}));var za=function(t,e,A,r,n){var i=(Math.sqrt(2)-1)/3*4,o=A*i,a=r*i,s=t+A,c=e+r;switch(n){case Ta.TOP_LEFT:return new ka(new Ka(t,c),new Ka(t,c-a),new Ka(s-o,e),new Ka(s,e));case Ta.TOP_RIGHT:return new ka(new Ka(t,e),new Ka(t+o,e),new Ka(s,c-a),new Ka(s,c));case Ta.BOTTOM_RIGHT:return new ka(new Ka(s,e),new Ka(s,e+a),new Ka(t+o,c),new Ka(t,c));case Ta.BOTTOM_LEFT:default:return new ka(new Ka(s,c),new Ka(s-o,c),new Ka(t,e+a),new Ka(t,e))}},Va=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},qa=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Ga=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Xa=function(){function t(t,e,A){this.type=0,this.offsetX=t,this.offsetY=e,this.matrix=A,this.target=6}return t}(),Ja=function(){function t(t,e){this.type=1,this.target=e,this.path=t}return t}(),Wa=function(t){return 0===t.type},Ya=function(t){return 1===t.type},Za=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),$a=function(){function t(t,e){if(this.container=t,this.effects=e.slice(0),this.curves=new ja(t),null!==t.styles.transform){var A=t.bounds.left+t.styles.transformOrigin[0].number,r=t.bounds.top+t.styles.transformOrigin[1].number,n=t.styles.transform;this.effects.push(new Xa(A,r,n))}if(t.styles.overflowX!==ei.VISIBLE){var i=Va(this.curves),o=Ga(this.curves);Oa(i,o)?this.effects.push(new Ja(i,6)):(this.effects.push(new Ja(i,2)),this.effects.push(new Ja(o,4)))}}return t.prototype.getParentEffects=function(){var t=this.effects.slice(0);if(this.container.styles.overflowX!==ei.VISIBLE){var e=Va(this.curves),A=Ga(this.curves);Oa(e,A)||t.push(new Ja(A,6))}return t},t}(),ts=function(t,e,A,r){t.container.elements.forEach((function(n){var i=Vi(n.flags,4),o=Vi(n.flags,2),a=new $a(n,t.getParentEffects());Vi(n.styles.display,2048)&&r.push(a);var s=Vi(n.flags,8)?[]:r;if(i||o){var c=i||n.styles.isPositioned()?A:e,u=new Za(a);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var l=n.styles.zIndex.order;if(l<0){var h=0;c.negativeZIndex.some((function(t,e){return l>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),c.negativeZIndex.splice(h,0,u)}else if(l>0){var f=0;c.positiveZIndex.some((function(t,e){return l>=t.element.container.styles.zIndex.order?(f=e+1,!1):f>0})),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);ts(a,u,i?u:A,s)}else n.styles.isInlineLevel()?e.inlineLevel.push(a):e.nonInlineLevel.push(a),ts(a,e,A,s);Vi(n.flags,8)&&es(n,s)}))},es=function(t,e){for(var A=t instanceof wo?t.start:1,r=t instanceof wo&&t.reversed,n=0;n<e.length;n++){var i=e[n];i.container instanceof go&&"number"===typeof i.container.value&&0!==i.container.value&&(A=i.container.value),i.listValue=ma(A,i.container.styles.listStyleType,!0),A+=r?-1:1}},As=function(t){var e=new $a(t,[]),A=new Za(e),r=[];return ts(e,A,A,r),es(e.container,r),A},rs=function(t,e){switch(e){case 0:return ns(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return ns(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return ns(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return ns(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ns=function(t,e,A,r){var n=[];return Da(t)?n.push(t.subdivide(.5,!1)):n.push(t),Da(A)?n.push(A.subdivide(.5,!0)):n.push(A),Da(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Da(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},is=function(t){var e=t.bounds,A=t.styles;return e.add(A.borderLeftWidth,A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth),-(A.borderTopWidth+A.borderBottomWidth))},os=function(t){var e=t.styles,A=t.bounds,r=GA(e.paddingLeft,A.width),n=GA(e.paddingRight,A.width),i=GA(e.paddingTop,A.width),o=GA(e.paddingBottom,A.width);return A.add(r+e.borderLeftWidth,i+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+i+o))},as=function(t,e){return 0===t?e.bounds:2===t?os(e):is(e)},ss=function(t,e){return t===ur.BORDER_BOX?e.bounds:t===ur.CONTENT_BOX?os(e):is(e)},cs=function(t,e,A){var r=as(fs(t.styles.backgroundOrigin,e),t),n=ss(fs(t.styles.backgroundClip,e),t),i=hs(fs(t.styles.backgroundSize,e),A,r),o=i[0],a=i[1],s=qA(fs(t.styles.backgroundPosition,e),r.width-o,r.height-a),c=ds(fs(t.styles.backgroundRepeat,e),s,i,r,n),u=Math.round(r.left+s[0]),l=Math.round(r.top+s[1]);return[c,u,l,o,a]},us=function(t){return xA(t)&&t.value===pn.AUTO},ls=function(t){return"number"===typeof t},hs=function(t,e,A){var r=e[0],n=e[1],i=e[2],o=t[0],a=t[1];if(kA(o)&&a&&kA(a))return[GA(o,A.width),GA(a,A.height)];var s=ls(i);if(xA(o)&&(o.value===pn.CONTAIN||o.value===pn.COVER)){if(ls(i)){var c=A.width/A.height;return c<i!==(o.value===pn.COVER)?[A.width,A.width/i]:[A.height*i,A.height]}return[A.width,A.height]}var u=ls(r),l=ls(n),h=u||l;if(us(o)&&(!a||us(a))){if(u&&l)return[r,n];if(!s&&!h)return[A.width,A.height];if(h&&s){var f=u?r:n*i,d=l?n:r/i;return[f,d]}var p=u?r:A.width,B=l?n:A.height;return[p,B]}if(s){var g=0,w=0;return kA(o)?g=GA(o,A.width):kA(a)&&(w=GA(a,A.height)),us(o)?g=w*i:a&&!us(a)||(w=g/i),[g,w]}var m=null,v=null;if(kA(o)?m=GA(o,A.width):a&&kA(a)&&(v=GA(a,A.height)),null===m||a&&!us(a)||(v=u&&l?m/r*n:A.height),null!==v&&us(o)&&(m=u&&l?v/n*r:A.width),null!==m&&null!==v)return[m,v];throw new Error("Unable to calculate background-size for element")},fs=function(t,e){var A=t[e];return"undefined"===typeof A?t[0]:A},ds=function(t,e,A,r,n){var i=e[0],o=e[1],a=A[0],s=A[1];switch(t){case un.REPEAT_X:return[new Ka(Math.round(r.left),Math.round(r.top+o)),new Ka(Math.round(r.left+r.width),Math.round(r.top+o)),new Ka(Math.round(r.left+r.width),Math.round(s+r.top+o)),new Ka(Math.round(r.left),Math.round(s+r.top+o))];case un.REPEAT_Y:return[new Ka(Math.round(r.left+i),Math.round(r.top)),new Ka(Math.round(r.left+i+a),Math.round(r.top)),new Ka(Math.round(r.left+i+a),Math.round(r.height+r.top)),new Ka(Math.round(r.left+i),Math.round(r.height+r.top))];case un.NO_REPEAT:return[new Ka(Math.round(r.left+i),Math.round(r.top+o)),new Ka(Math.round(r.left+i+a),Math.round(r.top+o)),new Ka(Math.round(r.left+i+a),Math.round(r.top+o+s)),new Ka(Math.round(r.left+i),Math.round(r.top+o+s))];default:return[new Ka(Math.round(n.left),Math.round(n.top)),new Ka(Math.round(n.left+n.width),Math.round(n.top)),new Ka(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Ka(Math.round(n.left),Math.round(n.height+n.top))]}},ps="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Bs="Hidden Text",gs=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var A=this._document.createElement("div"),r=this._document.createElement("img"),n=this._document.createElement("span"),i=this._document.body;A.style.visibility="hidden",A.style.fontFamily=t,A.style.fontSize=e,A.style.margin="0",A.style.padding="0",i.appendChild(A),r.src=ps,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(Bs)),A.appendChild(n),A.appendChild(r);var o=r.offsetTop-n.offsetTop+2;A.removeChild(n),A.appendChild(this._document.createTextNode(Bs)),A.style.lineHeight="normal",r.style.verticalAlign="super";var a=r.offsetTop-A.offsetTop+2;return i.removeChild(A),{baseline:o,middle:a}},t.prototype.getMetrics=function(t,e){var A=t+" "+e;return"undefined"===typeof this._data[A]&&(this._data[A]=this.parseMetrics(t,e)),this._data[A]},t}(),ws=1e4,ms=function(){function t(t){this._activeEffects=[],this.canvas=t.canvas?t.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=t,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=t.width+"px",this.canvas.style.height=t.height+"px"),this.fontMetrics=new gs(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x+t.scrollX,-t.y+t.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Pr.getInstance(t.id).debug("Canvas renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale)}return t.prototype.applyEffects=function(t,e){var A=this;while(this._activeEffects.length)this.popEffect();t.filter((function(t){return Vi(t.target,e)})).forEach((function(t){return A.applyEffect(t)}))},t.prototype.applyEffect=function(t){this.ctx.save(),Wa(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Ya(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(t){return r(this,void 0,void 0,(function(){var e;return n(this,(function(A){switch(A.label){case 0:return e=t.element.container.styles,e.isVisible()?(this.ctx.globalAlpha=e.opacity,[4,this.renderStackContent(t)]):[3,2];case 1:A.sent(),A.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(t){return r(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(t,e){var A=this;if(0===e)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height);else{var r=s(t.text).map((function(t){return c(t)}));r.reduce((function(e,r){return A.ctx.fillText(r,e,t.bounds.top+t.bounds.height),e+A.ctx.measureText(r).width}),t.bounds.left)}},t.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),A=t.fontFamily.join(", "),r=SA(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,A].join(" "),A,r]},t.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,(function(){var A,r,i,o,a=this;return n(this,(function(n){return A=this.createFontStyle(e),r=A[0],i=A[1],o=A[2],this.ctx.font=r,t.textBounds.forEach((function(t){a.ctx.fillStyle=nr(e.color),a.renderTextWithLetterSpacing(t,e.letterSpacing);var A=e.textShadow;A.length&&t.text.trim().length&&(A.slice(0).reverse().forEach((function(e){a.ctx.shadowColor=nr(e.color),a.ctx.shadowOffsetX=e.offsetX.number*a.options.scale,a.ctx.shadowOffsetY=e.offsetY.number*a.options.scale,a.ctx.shadowBlur=e.blur.number,a.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height)})),a.ctx.shadowColor="",a.ctx.shadowOffsetX=0,a.ctx.shadowOffsetY=0,a.ctx.shadowBlur=0),e.textDecorationLine.length&&(a.ctx.fillStyle=nr(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:var A=a.fontMetrics.getMetrics(i,o).baseline;a.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+A),t.bounds.width,1);break;case 2:a.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:var r=a.fontMetrics.getMetrics(i,o).middle;a.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+r),t.bounds.width,1);break}})))})),[2]}))}))},t.prototype.renderReplacedElement=function(t,e,A){if(A&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=os(t),n=Ga(e);this.path(n),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(A,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var A,r,o,a,s,c,u,l,h,f,d,p,B,g,w;return n(this,(function(n){switch(n.label){case 0:this.applyEffects(e.effects,4),A=e.container,r=e.curves,o=A.styles,a=0,s=A.textNodes,n.label=1;case 1:return a<s.length?(c=s[a],[4,this.renderTextNode(c,o)]):[3,4];case 2:n.sent(),n.label=3;case 3:return a++,[3,1];case 4:if(!(A instanceof fo))return[3,8];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.options.cache.match(A.src)];case 6:return B=n.sent(),this.renderReplacedElement(A,r,B),[3,8];case 7:return n.sent(),Pr.getInstance(this.options.id).error("Error loading image "+A.src),[3,8];case 8:if(A instanceof po&&this.renderReplacedElement(A,r,A.canvas),!(A instanceof Bo))return[3,12];n.label=9;case 9:return n.trys.push([9,11,,12]),[4,this.options.cache.match(A.svg)];case 10:return B=n.sent(),this.renderReplacedElement(A,r,B),[3,12];case 11:return n.sent(),Pr.getInstance(this.options.id).error("Error loading svg "+A.svg.substring(0,255)),[3,12];case 12:return A instanceof So&&A.tree?(u=new t({id:this.options.id,scale:this.options.scale,backgroundColor:A.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:A.width,height:A.height,cache:this.options.cache,windowWidth:A.width,windowHeight:A.height}),[4,u.render(A.tree)]):[3,14];case 13:l=n.sent(),A.width&&A.height&&this.ctx.drawImage(l,0,0,A.width,A.height,A.bounds.left,A.bounds.top,A.bounds.width,A.bounds.height),n.label=14;case 14:if(A instanceof No&&(h=Math.min(A.bounds.width,A.bounds.height),A.type===Co?A.checked&&(this.ctx.save(),this.path([new Ka(A.bounds.left+.39363*h,A.bounds.top+.79*h),new Ka(A.bounds.left+.16*h,A.bounds.top+.5549*h),new Ka(A.bounds.left+.27347*h,A.bounds.top+.44071*h),new Ka(A.bounds.left+.39694*h,A.bounds.top+.5649*h),new Ka(A.bounds.left+.72983*h,A.bounds.top+.23*h),new Ka(A.bounds.left+.84*h,A.bounds.top+.34085*h),new Ka(A.bounds.left+.39363*h,A.bounds.top+.79*h)]),this.ctx.fillStyle=nr(Uo),this.ctx.fill(),this.ctx.restore()):A.type===yo&&A.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(A.bounds.left+h/2,A.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=nr(Uo),this.ctx.fill(),this.ctx.restore())),vs(A)&&A.value.length){switch(this.ctx.font=this.createFontStyle(o)[0],this.ctx.fillStyle=nr(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign=Qs(A.styles.textAlign),w=os(A),f=0,A.styles.textAlign){case ui.CENTER:f+=w.width/2;break;case ui.RIGHT:f+=w.width;break}d=w.add(f,0,0,-w.height/2+1),this.ctx.save(),this.path([new Ka(w.left,w.top),new Ka(w.left+w.width,w.top),new Ka(w.left+w.width,w.top+w.height),new Ka(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ro(A.value,d),o.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Vi(A.styles.display,2048))return[3,20];if(null===A.styles.listStyleImage)return[3,19];if(p=A.styles.listStyleImage,p.type!==dr.URL)return[3,18];B=void 0,g=p.url,n.label=15;case 15:return n.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return B=n.sent(),this.ctx.drawImage(B,A.bounds.left-(B.width+10),A.bounds.top),[3,18];case 17:return n.sent(),Pr.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:e.listValue&&A.styles.listStyleType!==$n.NONE&&(this.ctx.font=this.createFontStyle(o)[0],this.ctx.fillStyle=nr(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new i(A.bounds.left,A.bounds.top+GA(A.styles.paddingTop,A.bounds.width),A.bounds.width,Yn(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ro(e.listValue,w),o.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),n.label=20;case 20:return[2]}}))}))},t.prototype.renderStackContent=function(t){return r(this,void 0,void 0,(function(){var e,A,r,i,o,a,s,c,u,l,h,f,d,p,B;return n(this,(function(n){switch(n.label){case 0:return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:n.sent(),e=0,A=t.negativeZIndex,n.label=2;case 2:return e<A.length?(B=A[e],[4,this.renderStack(B)]):[3,5];case 3:n.sent(),n.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:n.sent(),r=0,i=t.nonInlineLevel,n.label=7;case 7:return r<i.length?(B=i[r],[4,this.renderNode(B)]):[3,10];case 8:n.sent(),n.label=9;case 9:return r++,[3,7];case 10:o=0,a=t.nonPositionedFloats,n.label=11;case 11:return o<a.length?(B=a[o],[4,this.renderStack(B)]):[3,14];case 12:n.sent(),n.label=13;case 13:return o++,[3,11];case 14:s=0,c=t.nonPositionedInlineLevel,n.label=15;case 15:return s<c.length?(B=c[s],[4,this.renderStack(B)]):[3,18];case 16:n.sent(),n.label=17;case 17:return s++,[3,15];case 18:u=0,l=t.inlineLevel,n.label=19;case 19:return u<l.length?(B=l[u],[4,this.renderNode(B)]):[3,22];case 20:n.sent(),n.label=21;case 21:return u++,[3,19];case 22:h=0,f=t.zeroOrAutoZIndexOrTransformedOrOpacity,n.label=23;case 23:return h<f.length?(B=f[h],[4,this.renderStack(B)]):[3,26];case 24:n.sent(),n.label=25;case 25:return h++,[3,23];case 26:d=0,p=t.positiveZIndex,n.label=27;case 27:return d<p.length?(B=p[d],[4,this.renderStack(B)]):[3,30];case 28:n.sent(),n.label=29;case 29:return d++,[3,27];case 30:return[2]}}))}))},t.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},t.prototype.formatPath=function(t){var e=this;t.forEach((function(t,A){var r=Da(t)?t.start:t;0===A?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),Da(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},t.prototype.renderRepeat=function(t,e,A,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(A,r),this.ctx.fill(),this.ctx.translate(-A,-r)},t.prototype.resizeImage=function(t,e,A){if(t.width===e&&t.height===A)return t;var r=this.canvas.ownerDocument.createElement("canvas");r.width=e,r.height=A;var n=r.getContext("2d");return n.drawImage(t,0,0,t.width,t.height,0,0,e,A),r},t.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,(function(){var e,A,r,i,o,a;return n(this,(function(s){switch(s.label){case 0:e=t.styles.backgroundImage.length-1,A=function(A){var i,o,a,s,c,u,l,h,f,d,p,B,g,w,m,v,b,Q,C,y,F,U,N,E,L,H,S,_,x,I,P;return n(this,(function(n){switch(n.label){case 0:if(A.type!==dr.URL)return[3,5];i=void 0,o=A.url,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r.options.cache.match(o)];case 2:return i=n.sent(),[3,4];case 3:return n.sent(),Pr.getInstance(r.options.id).error("Error loading background-image "+o),[3,4];case 4:return i&&(a=cs(t,e,[i.width,i.height,i.width/i.height]),v=a[0],U=a[1],N=a[2],C=a[3],y=a[4],w=r.ctx.createPattern(r.resizeImage(i,C,y),"repeat"),r.renderRepeat(v,w,U,N)),[3,6];case 5:on(A)?(s=cs(t,e,[null,null,null]),v=s[0],U=s[1],N=s[2],C=s[3],y=s[4],c=vr(A.angle,C,y),u=c[0],l=c[1],h=c[2],f=c[3],d=c[4],p=document.createElement("canvas"),p.width=C,p.height=y,B=p.getContext("2d"),g=B.createLinearGradient(l,f,h,d),wr(A.stops,u).forEach((function(t){return g.addColorStop(t.stop,nr(t.color))})),B.fillStyle=g,B.fillRect(0,0,C,y),C>0&&y>0&&(w=r.ctx.createPattern(p,"repeat"),r.renderRepeat(v,w,U,N))):an(A)&&(m=cs(t,e,[null,null,null]),v=m[0],b=m[1],Q=m[2],C=m[3],y=m[4],F=0===A.position.length?[zA]:A.position,U=GA(F[0],C),N=GA(F[F.length-1],y),E=Cr(A,U,N,C,y),L=E[0],H=E[1],L>0&&L>0&&(S=r.ctx.createRadialGradient(b+U,Q+N,0,b+U,Q+N,L),wr(A.stops,2*L).forEach((function(t){return S.addColorStop(t.stop,nr(t.color))})),r.path(v),r.ctx.fillStyle=S,L!==H?(_=t.bounds.left+.5*t.bounds.width,x=t.bounds.top+.5*t.bounds.height,I=H/L,P=1/I,r.ctx.save(),r.ctx.translate(_,x),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-_,-x),r.ctx.fillRect(b,P*(Q-x)+x,C,y*P),r.ctx.restore()):r.ctx.fill())),n.label=6;case 6:return e--,[2]}}))},r=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:return i<o.length?(a=o[i],[5,A(a)]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}))},t.prototype.renderBorder=function(t,e,A){return r(this,void 0,void 0,(function(){return n(this,(function(r){return this.path(rs(A,e)),this.ctx.fillStyle=nr(t),this.ctx.fill(),[2]}))}))},t.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,(function(){var e,A,r,i,o,a,s,c,u=this;return n(this,(function(n){switch(n.label){case 0:return this.applyEffects(t.effects,2),e=t.container.styles,A=!rr(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor},{style:e.borderRightStyle,color:e.borderRightColor},{style:e.borderBottomStyle,color:e.borderBottomColor},{style:e.borderLeftStyle,color:e.borderLeftColor}],i=bs(fs(e.backgroundClip,0),t.curves),A||e.boxShadow.length?(this.ctx.save(),this.path(i),this.ctx.clip(),rr(e.backgroundColor)||(this.ctx.fillStyle=nr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:n.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){u.ctx.save();var A=Va(t.curves),r=e.inset?0:ws,n=Ra(A,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(u.path(A),u.ctx.clip(),u.mask(n)):(u.mask(A),u.ctx.clip(),u.path(n)),u.ctx.shadowOffsetX=e.offsetX.number+r,u.ctx.shadowOffsetY=e.offsetY.number,u.ctx.shadowColor=nr(e.color),u.ctx.shadowBlur=e.blur.number,u.ctx.fillStyle=e.inset?nr(e.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()})),n.label=2;case 2:o=0,a=0,s=r,n.label=3;case 3:return a<s.length?(c=s[a],c.style===wn.NONE||rr(c.color)?[3,5]:[4,this.renderBorder(c.color,o,t.curves)]):[3,7];case 4:n.sent(),n.label=5;case 5:o++,n.label=6;case 6:return a++,[3,3];case 7:return[2]}}))}))},t.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e;return n(this,(function(A){switch(A.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=nr(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),e=As(t),[4,this.renderStack(e)];case 1:return A.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},t}(),vs=function(t){return t instanceof Lo||(t instanceof Eo||t instanceof No&&t.type!==yo&&t.type!==Co)},bs=function(t,e){switch(t){case ur.BORDER_BOX:return Va(e);case ur.CONTENT_BOX:return qa(e);case ur.PADDING_BOX:default:return Ga(e)}},Qs=function(t){switch(t){case ui.CENTER:return"center";case ui.RIGHT:return"right";case ui.LEFT:default:return"left"}},Cs=function(){function t(t){this.canvas=t.canvas?t.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=t,this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=t.width+"px",this.canvas.style.height=t.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x+t.scrollX,-t.y+t.scrollY),Pr.getInstance(t.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale)}return t.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e,A;return n(this,(function(r){switch(r.label){case 0:return e=_r(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,t),[4,ys(e)];case 1:return A=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=nr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(A,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},t}(),ys=function(t){return new Promise((function(e,A){var r=new Image;r.onload=function(){e(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Fs=void 0,Us=function(t){return Ar.parse(HA.create(t).parseComponentValue())},Ns=function(t,e){return void 0===e&&(e={}),Es(t,e)};"undefined"!==typeof window&&Tr.setContext(window);var Es=function(t,e){return r(Fs,void 0,void 0,(function(){var r,s,c,u,l,h,f,d,p,B,g,w,m,v,b,Q,C,y,F,U,N,E,L,H,S;return n(this,(function(n){switch(n.label){case 0:if(r=t.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(s=r.defaultView,!s)throw new Error("Document is not attached to a Window");return c=(Math.round(1e3*Math.random())+Date.now()).toString(16),u=Go(t)||Vo(t)?a(r):o(t),l=u.width,h=u.height,f=u.left,d=u.top,p={allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},B=A({},p,e),g={backgroundColor:"#ffffff",cache:e.cache?e.cache:Tr.create(c,B),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:s.devicePixelRatio||1,windowWidth:s.innerWidth,windowHeight:s.innerHeight,scrollX:s.pageXOffset,scrollY:s.pageYOffset,x:f,y:d,width:Math.ceil(l),height:Math.ceil(h),id:c},w=A({},g,B,e),m=new i(w.scrollX,w.scrollY,w.windowWidth,w.windowHeight),Pr.create({id:c,enabled:w.logging}),Pr.getInstance(c).debug("Starting document clone"),v=new ba(t,{id:c,onclone:w.onclone,ignoreElements:w.ignoreElements,inlineImages:w.foreignObjectRendering,copyStyles:w.foreignObjectRendering}),b=v.clonedReferenceElement,b?[4,v.toIFrame(r,m)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Q=n.sent(),C=r.documentElement?Us(getComputedStyle(r.documentElement).backgroundColor):fr.TRANSPARENT,y=r.body?Us(getComputedStyle(r.body).backgroundColor):fr.TRANSPARENT,F=e.backgroundColor,U="string"===typeof F?Us(F):null===F?fr.TRANSPARENT:4294967295,N=t===r.documentElement?rr(C)?rr(y)?U:y:C:U,E={id:c,cache:w.cache,canvas:w.canvas,backgroundColor:N,scale:w.scale,x:w.x,y:w.y,scrollX:w.scrollX,scrollY:w.scrollY,width:w.width,height:w.height,windowWidth:w.windowWidth,windowHeight:w.windowHeight},w.foreignObjectRendering?(Pr.getInstance(c).debug("Document cloned, using foreign object rendering"),S=new Cs(E),[4,S.render(b)]):[3,3];case 2:return L=n.sent(),[3,5];case 3:return Pr.getInstance(c).debug("Document cloned, using computed rendering"),Tr.attachInstance(w.cache),Pr.getInstance(c).debug("Starting DOM parsing"),H=Po(b),Tr.detachInstance(),N===H.styles.backgroundColor&&(H.styles.backgroundColor=fr.TRANSPARENT),Pr.getInstance(c).debug("Starting renderer"),S=new ms(E),[4,S.render(H)];case 4:L=n.sent(),n.label=5;case 5:return!0===w.removeContainer&&(ba.destroy(Q)||Pr.getInstance(c).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Pr.getInstance(c).debug("Finished rendering"),Pr.destroy(c),Tr.destroy(c),[2,L]}}))}))};return Ns}))},"4e3d":function(t,e,A){!function(e,r){t.exports=r(A("072e"),A("8b7f"))}(window,(function(t,e){return function(t){var e={};function A(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,A),n.l=!0,n.exports}return A.m=t,A.c=e,A.d=function(t,e,r){A.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},A.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},A.t=function(t,e){if(1&e&&(t=A(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(A.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)A.d(r,n,function(e){return t[e]}.bind(null,n));return r},A.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return A.d(e,"a",e),e},A.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},A.p="",A(A.s=6)}([function(t,e,A){t.exports=A(5)},function(e,A){e.exports=t},function(t,e){function A(t,e,A,r,n,i,o){try{var a=t[i](o),s=a.value}catch(t){return void A(t)}a.done?e(s):Promise.resolve(s).then(r,n)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){A(o,n,i,a,s,"next",t)}function s(t){A(o,n,i,a,s,"throw",t)}a(void 0)}))}}},function(t,A){t.exports=e},function(t,e){function A(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=A=function(t){return typeof t}:t.exports=A=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},A(e)}t.exports=A},function(t,e,A){var r=function(t){"use strict";var e=Object.prototype,A=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function a(t,e,A){return Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,A){return t[e]=A}}function s(t,e,A,r){var n=e&&e.prototype instanceof l?e:l,i=Object.create(n.prototype),o=new C(r||[]);return i._invoke=function(t,e,A){var r="suspendedStart";return function(n,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw i;return F()}for(A.method=n,A.arg=i;;){var o=A.delegate;if(o){var a=v(o,A);if(a){if(a===u)continue;return a}}if("next"===A.method)A.sent=A._sent=A.arg;else if("throw"===A.method){if("suspendedStart"===r)throw r="completed",A.arg;A.dispatchException(A.arg)}else"return"===A.method&&A.abrupt("return",A.arg);r="executing";var s=c(t,e,A);if("normal"===s.type){if(r=A.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:A.done}}"throw"===s.type&&(r="completed",A.method="throw",A.arg=s.arg)}}}(t,A,o),i}function c(t,e,A){try{return{type:"normal",arg:t.call(e,A)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var u={};function l(){}function h(){}function f(){}var d={};d[n]=function(){return this};var p=Object.getPrototypeOf,B=p&&p(p(y([])));B&&B!==e&&A.call(B,n)&&(d=B);var g=f.prototype=l.prototype=Object.create(d);function w(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var r;this._invoke=function(n,i){function o(){return new e((function(r,o){!function r(n,i,o,a){var s=c(t[n],t,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&A.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,a)}),(function(t){r("throw",t,o,a)})):e.resolve(l).then((function(t){u.value=t,o(u)}),(function(t){return r("throw",t,o,a)}))}a(s.arg)}(n,i,r,o)}))}return r=r?r.then(o,o):o()}}function v(t,e){var A=t.iterator[e.method];if(void 0===A){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,v(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=c(A,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var n=r.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Q(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function y(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(A.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:F}}function F(){return{value:void 0,done:!0}}return h.prototype=g.constructor=f,f.constructor=h,h.displayName=a(f,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,a(t,o,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},w(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,A,r,n,i){void 0===i&&(i=Promise);var o=new m(s(e,A,r,n),i);return t.isGeneratorFunction(A)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},w(g),a(g,o,"Generator"),g[n]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var A in t)e.push(A);return e.reverse(),function A(){for(;e.length;){var r=e.pop();if(r in t)return A.value=r,A.done=!1,A}return A.done=!0,A}},t.values=y,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Q),!t)for(var e in this)"t"===e.charAt(0)&&A.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(A,r){return o.type="throw",o.arg=t,e.next=A,r&&(e.method="next",e.arg=void 0),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=A.call(i,"catchLoc"),s=A.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&A.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var A=this.tryEntries[e];if(A.finallyLoc===t)return this.complete(A.completion,A.afterLoc),Q(A),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var A=this.tryEntries[e];if(A.tryLoc===t){var r=A.completion;if("throw"===r.type){var n=r.arg;Q(A)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,A){return this.delegate={iterator:y(t),resultName:e,nextLoc:A},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,A){"use strict";A.r(e);var r=A(0),n=A.n(r),i=A(2),o=A.n(i),a=A(3),s=A(1),c=A.n(s),u={jsPDF:{unit:"px",format:"a4"},html2canvas:{imageTimeout:15e3,logging:!0,useCORS:!1},margin:{right:0,top:0,bottom:0,left:0},imageType:"image/jpeg",imageQuality:1,output:"jspdf-generate.pdf",init:function(){},success:function(t){t.save(this.output)}},l=A(4),h=A.n(l);function f(t){return null!==t&&"object"===h()(t)}function d(t){return"function"==typeof t}function p(t,e){for(var A=0,r=Object.keys(t);A<r.length;A++){var n=r[A];if(n in e){var i=f(t[n]),o=f(e[n]);i&&o?d(t[n])&&d(e[n])?d(t[n])&&!d(e[n])?console.error('[jspdf-html2canvas] config key "'.concat(n,'" type invalid')):t[n]=e[n]:t[n]=p(t[n],e[n]):o?(e[n].old=t[n],t[n]=e[n]):i?t[n].new=e[n]:t[n]=e[n],delete e[n]}}return Object.assign(t,e)}function B(t){var e=t.margin,A=new a.jsPDF(t.jsPDF),r=A.internal.pageSize.getWidth(),n=A.internal.pageSize.getHeight();return{pdf:A,pdfWidth:r,pdfHeight:n,pdfContentWidth:r-(e.left+e.right),pdfContentHeight:n-(e.top+e.bottom),position:0,currentPage:1,pageOfCurrentNode:1}}function g(t,e,A){var r=e.pdf,n=e.pdfContentWidth,i=e.pdfContentHeight,o=e.pdfWidth,a=e.pdfHeight,s=e.position,c=e.currentPage,u=e.pageOfCurrentNode,l=function(t){var e=t.canvas,A=t.pdf,r=t.pdfContentWidth,n=t.opts,i=e.toDataURL(n.imageType,n.imageQuality),o=A.getImageProperties(i);return{pageData:i,imgHeight:r/o.width*o.height}}({canvas:t,pdf:r,pdfContentWidth:n,opts:A}),h=l.pageData,f=l.imgHeight,d=f;s<0&&(r.addPage(),c+=1,u=1,s=0);for(var p=A.margin;d>0;){if(r.addImage(h,{"image/jpeg":"JPEG","image/png":"PNG","image/webp":"WEBP"}[A.imageType],p.left,s+p.top*u+p.bottom*(u-1),n,f),r.setFillColor(255,255,255),r.rect(0,0,o,p.top,"F"),r.rect(0,a-p.bottom,o,p.bottom,"F"),d<i){s-=d;break}d-=i,s-=a,r.addPage(),c+=1,u+=1}return e.pdf=r,e.position=s,e.currentPage=c,e.pageOfCurrentNode=u,{pdf:r,position:s}}function w(t,e){var A=t.internal.getNumberOfPages();if(e.watermarkImg)for(var r=t.getImageProperties(e.watermarkImg),n=e.watermark.scale||1,i=1;i<=A;i++)if(t.setPage(i),e.watermark.src&&e.watermark.handler){var o={pdf:t,pageNumber:i,totalPageNumber:A,imgNode:e.watermarkImg};e.watermark.handler.call(e,o)}else t.addImage(e.watermarkImg,"PNG",(t.internal.pageSize.width-r.width*n)/2,(t.internal.pageSize.height-r.height*n)/2,r.width*n,r.height*n);else if("function"==typeof e.watermark)for(var a=1;a<=A;a++){t.setPage(a);var s={pdf:t,pageNumber:a,totalPageNumber:A};e.watermark.call(e,s)}else console.warn('[jspdf-html2canvas] "watermark" option should be either "string" or "function" type.');return t}function m(t,e){var A=new Image,r="string"==typeof t.watermark?t.watermark:t.watermark.src;r?(A.onload=function(){e(A)},A.crossOrigin="Anonymous",A.src=r):e()}function v(){return(v=o()(n.a.mark((function t(e){var A,r,i,o=arguments;return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(A=o.length>1&&void 0!==o[1]?o[1]:{},A=p(u,A),r=B(A),A.init.call(A,r.pdf),!e.length){t.next=16;break}i=0;case 6:if(!(i<e.length)){t.next=14;break}return t.next=9,c()(e[i],A.html2canvas);case 9:g(t.sent,r,A);case 11:i++,t.next=6;break;case 14:t.next=20;break;case 16:return t.next=18,c()(e,A.html2canvas);case 18:g(t.sent,r,A);case 20:return A.watermark?m(A,(function(t){t&&(A.watermarkImg=t),r.pdf=w(r.pdf,A),A.success.call(A,r.pdf)})):A.success.call(A,r.pdf),t.abrupt("return",r.pdf);case 22:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.default=function(t){return v.apply(this,arguments)}}]).default}))},8249:function(t,e,A){"use strict";A.d(e,"b",(function(){return X})),A.d(e,"a",(function(){return J}));var r=Uint8Array,n=Uint16Array,i=Uint32Array,o=new r([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]),a=new r([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]),s=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var A=new n(31),r=0;r<31;++r)A[r]=e+=1<<t[r-1];var o=new i(A[30]);for(r=1;r<30;++r)for(var a=A[r];a<A[r+1];++a)o[a]=a-A[r]<<5|r;return[A,o]},u=c(o,2),l=u[0],h=u[1];l[28]=258,h[258]=28;for(var f=c(a,0),d=f[0],p=f[1],B=new n(32768),g=0;g<32768;++g){var w=(43690&g)>>>1|(21845&g)<<1;w=(52428&w)>>>2|(13107&w)<<2,w=(61680&w)>>>4|(3855&w)<<4,B[g]=((65280&w)>>>8|(255&w)<<8)>>>1}var m=function(t,e,A){for(var r=t.length,i=0,o=new n(e);i<r;++i)++o[t[i]-1];var a,s=new n(e);for(i=0;i<e;++i)s[i]=s[i-1]+o[i-1]<<1;if(A){a=new n(1<<e);var c=15-e;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],l=e-t[i],h=s[t[i]-1]++<<l,f=h|(1<<l)-1;h<=f;++h)a[B[h]>>>c]=u}else for(a=new n(r),i=0;i<r;++i)a[i]=B[s[t[i]-1]++]>>>15-t[i];return a},v=new r(288);for(g=0;g<144;++g)v[g]=8;for(g=144;g<256;++g)v[g]=9;for(g=256;g<280;++g)v[g]=7;for(g=280;g<288;++g)v[g]=8;var b=new r(32);for(g=0;g<32;++g)b[g]=5;var Q=m(v,9,0),C=m(v,9,1),y=m(b,5,0),F=m(b,5,1),U=function(t){for(var e=t[0],A=1;A<t.length;++A)t[A]>e&&(e=t[A]);return e},N=function(t,e,A){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&A},E=function(t,e){var A=e/8>>0;return(t[A]|t[A+1]<<8|t[A+2]<<16)>>>(7&e)},L=function(t){return(t/8>>0)+(7&t&&1)},H=function(t,e,A){(null==e||e<0)&&(e=0),(null==A||A>t.length)&&(A=t.length);var o=new(t instanceof n?n:t instanceof i?i:r)(A-e);return o.set(t.subarray(e,A)),o},S=function(t,e,A){var n=t.length,i=!e||A,c=!A||A.i;A||(A={}),e||(e=new r(3*n));var u=function(t){var A=e.length;if(t>A){var n=new r(Math.max(2*A,t));n.set(e),e=n}},h=A.f||0,f=A.p||0,p=A.b||0,B=A.l,g=A.d,w=A.m,v=A.n,b=8*n;do{if(!B){A.f=h=N(t,f,1);var Q=N(t,f+1,3);if(f+=3,!Q){var y=L(f)+4,S=t[y-4]|t[y-3]<<8,_=y+S;if(_>n){if(c)throw"unexpected EOF";break}i&&u(p+S),e.set(t.subarray(y,_),p),A.b=p+=S,A.p=f=8*_;continue}if(1==Q)B=C,g=F,w=9,v=5;else{if(2!=Q)throw"invalid block type";var x=N(t,f,31)+257,I=N(t,f+10,15)+4,P=x+N(t,f+5,31)+1;f+=14;for(var T=new r(P),O=new r(19),R=0;R<I;++R)O[s[R]]=N(t,f+3*R,7);f+=3*I;var K=U(O),M=(1<<K)-1;if(!c&&f+P*(K+7)>b)break;var k=m(O,K,1);for(R=0;R<P;){var D=k[N(t,f,M)];f+=15&D;y=D>>>4;if(y<16)T[R++]=y;else{var j=0,z=0;16==y?(z=3+N(t,f,3),f+=2,j=T[R-1]):17==y?(z=3+N(t,f,7),f+=3):18==y&&(z=11+N(t,f,127),f+=7);while(z--)T[R++]=j}}var V=T.subarray(0,x),q=T.subarray(x);w=U(V),v=U(q),B=m(V,w,1),g=m(q,v,1)}if(f>b)throw"unexpected EOF"}i&&u(p+131072);var G=(1<<w)-1,X=(1<<v)-1,J=w+v+18;while(c||f+J<b){j=B[E(t,f)&G];var W=j>>>4;if(f+=15&j,f>b)throw"unexpected EOF";if(!j)throw"invalid length/literal";if(W<256)e[p++]=W;else{if(256==W){B=null;break}var Y=W-254;if(W>264){R=W-257;var Z=o[R];Y=N(t,f,(1<<Z)-1)+l[R],f+=Z}var $=g[E(t,f)&X],tt=$>>>4;if(!$)throw"invalid distance";f+=15&$;q=d[tt];if(tt>3){Z=a[tt];q+=E(t,f)&(1<<Z)-1,f+=Z}if(f>b)throw"unexpected EOF";i&&u(p+131072);for(var et=p+Y;p<et;p+=4)e[p]=e[p-q],e[p+1]=e[p+1-q],e[p+2]=e[p+2-q],e[p+3]=e[p+3-q];p=et}}A.l=B,A.p=f,A.b=p,B&&(h=1,A.m=w,A.d=g,A.n=v)}while(!h);return p==e.length?e:H(e,0,p)},_=function(t,e,A){A<<=7&e;var r=e/8>>0;t[r]|=A,t[r+1]|=A>>>8},x=function(t,e,A){A<<=7&e;var r=e/8>>0;t[r]|=A,t[r+1]|=A>>>8,t[r+2]|=A>>>16},I=function(t,e){for(var A=[],i=0;i<t.length;++i)t[i]&&A.push({s:i,f:t[i]});var o=A.length,a=A.slice();if(!o)return[new r(0),0];if(1==o){var s=new r(A[0].s+1);return s[A[0].s]=1,[s,1]}A.sort((function(t,e){return t.f-e.f})),A.push({s:-1,f:25001});var c=A[0],u=A[1],l=0,h=1,f=2;A[0]={s:-1,f:c.f+u.f,l:c,r:u};while(h!=o-1)c=A[A[l].f<A[f].f?l++:f++],u=A[l!=h&&A[l].f<A[f].f?l++:f++],A[h++]={s:-1,f:c.f+u.f,l:c,r:u};var d=a[0].s;for(i=1;i<o;++i)a[i].s>d&&(d=a[i].s);var p=new n(d+1),B=P(A[h-1],p,0);if(B>e){i=0;var g=0,w=B-e,m=1<<w;for(a.sort((function(t,e){return p[e.s]-p[t.s]||t.f-e.f}));i<o;++i){var v=a[i].s;if(!(p[v]>e))break;g+=m-(1<<B-p[v]),p[v]=e}g>>>=w;while(g>0){var b=a[i].s;p[b]<e?g-=1<<e-p[b]++-1:++i}for(;i>=0&&g;--i){var Q=a[i].s;p[Q]==e&&(--p[Q],++g)}B=e}return[new r(p),B]},P=function(t,e,A){return-1==t.s?Math.max(P(t.l,e,A+1),P(t.r,e,A+1)):e[t.s]=A},T=function(t){var e=t.length;while(e&&!t[--e]);for(var A=new n(++e),r=0,i=t[0],o=1,a=function(t){A[r++]=t},s=1;s<=e;++s)if(t[s]==i&&s!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}while(o--)a(i);o=1,i=t[s]}return[A.subarray(0,r),e]},O=function(t,e){for(var A=0,r=0;r<e.length;++r)A+=t[r]*e[r];return A},R=function(t,e,A){var r=A.length,n=L(e+2);t[n]=255&r,t[n+1]=r>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var i=0;i<r;++i)t[n+i+4]=A[i];return 8*(n+4+r)},K=function(t,e,A,r,i,c,u,l,h,f,d){_(e,d++,A),++i[256];for(var p=I(i,15),B=p[0],g=p[1],w=I(c,15),C=w[0],F=w[1],U=T(B),N=U[0],E=U[1],L=T(C),H=L[0],S=L[1],P=new n(19),K=0;K<N.length;++K)P[31&N[K]]++;for(K=0;K<H.length;++K)P[31&H[K]]++;for(var M=I(P,7),k=M[0],D=M[1],j=19;j>4&&!k[s[j-1]];--j);var z,V,q,G,X=f+5<<3,J=O(i,v)+O(c,b)+u,W=O(i,B)+O(c,C)+u+14+3*j+O(P,k)+(2*P[16]+3*P[17]+7*P[18]);if(X<=J&&X<=W)return R(e,d,t.subarray(h,h+f));if(_(e,d,1+(W<J)),d+=2,W<J){z=m(B,g,0),V=B,q=m(C,F,0),G=C;var Y=m(k,D,0);_(e,d,E-257),_(e,d+5,S-1),_(e,d+10,j-4),d+=14;for(K=0;K<j;++K)_(e,d+3*K,k[s[K]]);d+=3*j;for(var Z=[N,H],$=0;$<2;++$){var tt=Z[$];for(K=0;K<tt.length;++K){var et=31&tt[K];_(e,d,Y[et]),d+=k[et],et>15&&(_(e,d,tt[K]>>>5&127),d+=tt[K]>>>12)}}}else z=Q,V=v,q=y,G=b;for(K=0;K<l;++K)if(r[K]>255){et=r[K]>>>18&31;x(e,d,z[et+257]),d+=V[et+257],et>7&&(_(e,d,r[K]>>>23&31),d+=o[et]);var At=31&r[K];x(e,d,q[At]),d+=G[At],At>3&&(x(e,d,r[K]>>>5&8191),d+=a[At])}else x(e,d,z[r[K]]),d+=V[r[K]];return x(e,d,z[256]),d+V[256]},M=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),k=new r(0),D=function(t,e,A,s,c,u){var l=t.length,f=new r(s+l+5*(1+Math.floor(l/7e3))+c),d=f.subarray(s,f.length-c),B=0;if(!e||l<8)for(var g=0;g<=l;g+=65535){var w=g+65535;w<l?B=R(d,B,t.subarray(g,w)):(d[g]=u,B=R(d,B,t.subarray(g,l)))}else{for(var m=M[e-1],v=m>>>13,b=8191&m,Q=(1<<A)-1,C=new n(32768),y=new n(Q+1),F=Math.ceil(A/3),U=2*F,N=function(e){return(t[e]^t[e+1]<<F^t[e+2]<<U)&Q},E=new i(25e3),S=new n(288),_=new n(32),x=0,I=0,P=(g=0,0),T=0,O=0;g<l;++g){var D=N(g),j=32767&g,z=y[D];if(C[j]=z,y[D]=j,T<=g){var V=l-g;if((x>7e3||P>24576)&&V>423){B=K(t,d,0,E,S,_,I,P,O,g-O,B),P=x=I=0,O=g;for(var q=0;q<286;++q)S[q]=0;for(q=0;q<30;++q)_[q]=0}var G=2,X=0,J=b,W=j-z&32767;if(V>2&&D==N(g-W)){var Y=Math.min(v,V)-1,Z=Math.min(32767,g),$=Math.min(258,V);while(W<=Z&&--J&&j!=z){if(t[g+G]==t[g+G-W]){for(var tt=0;tt<$&&t[g+tt]==t[g+tt-W];++tt);if(tt>G){if(G=tt,X=W,tt>Y)break;var et=Math.min(W,tt-2),At=0;for(q=0;q<et;++q){var rt=g-W+q+32768&32767,nt=C[rt],it=rt-nt+32768&32767;it>At&&(At=it,z=rt)}}}j=z,z=C[j],W+=j-z+32768&32767}}if(X){E[P++]=268435456|h[G]<<18|p[X];var ot=31&h[G],at=31&p[X];I+=o[ot]+a[at],++S[257+ot],++_[at],T=g+G,++x}else E[P++]=t[g],++S[t[g]]}}B=K(t,d,u,E,S,_,I,P,O,g-O,B),u||(B=R(d,B,k))}return H(f,0,s+L(B)+c)},j=function(){var t=1,e=0;return{p:function(A){for(var r=t,n=e,i=A.length,o=0;o!=i;){for(var a=Math.min(o+5552,i);o<a;++o)r+=A[o],n+=r;r%=65521,n%=65521}t=r,e=n},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},z=function(t,e,A,r,n){return D(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,A,r,!n)},V=function(t,e,A){for(;A;++e)t[e]=A,A>>>=8},q=function(t,e){var A=e.level,r=0==A?0:A<6?1:9==A?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},G=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 A=j();A.p(t);var r=z(t,e,2,4);return q(r,e),V(r,r.length-4,A.d()),r}function J(t,e){return S((G(t),t.subarray(2,-4)),e)}},"8b7f":function(t,e,A){"use strict";A.r(e),function(t){A.d(e,"AcroForm",(function(){return yt})),A.d(e,"AcroFormAppearance",(function(){return Qt})),A.d(e,"AcroFormButton",(function(){return pt})),A.d(e,"AcroFormCheckBox",(function(){return mt})),A.d(e,"AcroFormChoiceField",(function(){return lt})),A.d(e,"AcroFormComboBox",(function(){return ft})),A.d(e,"AcroFormEditBox",(function(){return dt})),A.d(e,"AcroFormListBox",(function(){return ht})),A.d(e,"AcroFormPasswordField",(function(){return bt})),A.d(e,"AcroFormPushButton",(function(){return Bt})),A.d(e,"AcroFormRadioButton",(function(){return gt})),A.d(e,"AcroFormTextField",(function(){return vt})),A.d(e,"GState",(function(){return S})),A.d(e,"ShadingPattern",(function(){return x})),A.d(e,"TilingPattern",(function(){return I})),A.d(e,"jsPDF",(function(){return P}));var r=A("8249"),n=function(){return"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this}();
- /** @license
- *
- * jsPDF - PDF Document creation from JavaScript
- * Version 2.3.1 Built on 2021-03-08T15:44:11.674Z
- * CommitID 00000000
- *
- * Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
- * 2015-2020 yWorks GmbH, http://www.yworks.com
- * 2015-2020 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, willow-systems.com
- * 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
- */function i(){n.console&&"function"==typeof n.console.log&&n.console.log.apply(n.console,arguments)}var o={log:i,warn:function(t){n.console&&("function"==typeof n.console.warn?n.console.warn.apply(n.console,arguments):i.call(null,arguments))},error:function(t){n.console&&("function"==typeof n.console.error?n.console.error.apply(n.console,arguments):i(t))}};
- /**
- * @license
- * FileSaver.js
- * A saveAs() FileSaver implementation.
- *
- * By Eli Grey, http://eligrey.com
- *
- * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
- * source : http://purl.eligrey.com/github/FileSaver.js
- */function a(t,e,A){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){h(r.response,e,A)},r.onerror=function(){o.error("could not download file")},r.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function c(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){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 u,l,h=n.saveAs||("object"!=typeof window||window!==n?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,A){var r=n.URL||n.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?s(i.href)?a(t,e,A):c(i,i.target="_blank"):c(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){c(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,A){if(e=e||t.name||"download","string"==typeof t)if(s(t))a(t,e,A);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){c(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(o.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,A),e)}:function(t,e,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return a(t,e,A);var i="application/octet-stream"===t.type,o=/constructor/i.test(n.HTMLElement)||n.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&o)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var u=n.URL||n.webkitURL,l=u.createObjectURL(t);r?r.location=l:location.href=l,r=null,setTimeout((function(){u.revokeObjectURL(l)}),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 f(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 A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(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)]}}],r=0;r<A.length;r++){var n=A[r].re,i=A[r].process,o=n.exec(t);o&&(e=i(o),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),A=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==A.length&&(A="0"+A),"#"+t+e+A
- /**
- * @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 d(t,e){var A=t[0],r=t[1],n=t[2],i=t[3];A=B(A,r,n,i,e[0],7,-680876936),i=B(i,A,r,n,e[1],12,-389564586),n=B(n,i,A,r,e[2],17,606105819),r=B(r,n,i,A,e[3],22,-1044525330),A=B(A,r,n,i,e[4],7,-176418897),i=B(i,A,r,n,e[5],12,1200080426),n=B(n,i,A,r,e[6],17,-1473231341),r=B(r,n,i,A,e[7],22,-45705983),A=B(A,r,n,i,e[8],7,1770035416),i=B(i,A,r,n,e[9],12,-1958414417),n=B(n,i,A,r,e[10],17,-42063),r=B(r,n,i,A,e[11],22,-1990404162),A=B(A,r,n,i,e[12],7,1804603682),i=B(i,A,r,n,e[13],12,-40341101),n=B(n,i,A,r,e[14],17,-1502002290),A=g(A,r=B(r,n,i,A,e[15],22,1236535329),n,i,e[1],5,-165796510),i=g(i,A,r,n,e[6],9,-1069501632),n=g(n,i,A,r,e[11],14,643717713),r=g(r,n,i,A,e[0],20,-373897302),A=g(A,r,n,i,e[5],5,-701558691),i=g(i,A,r,n,e[10],9,38016083),n=g(n,i,A,r,e[15],14,-660478335),r=g(r,n,i,A,e[4],20,-405537848),A=g(A,r,n,i,e[9],5,568446438),i=g(i,A,r,n,e[14],9,-1019803690),n=g(n,i,A,r,e[3],14,-187363961),r=g(r,n,i,A,e[8],20,1163531501),A=g(A,r,n,i,e[13],5,-1444681467),i=g(i,A,r,n,e[2],9,-51403784),n=g(n,i,A,r,e[7],14,1735328473),A=w(A,r=g(r,n,i,A,e[12],20,-1926607734),n,i,e[5],4,-378558),i=w(i,A,r,n,e[8],11,-2022574463),n=w(n,i,A,r,e[11],16,1839030562),r=w(r,n,i,A,e[14],23,-35309556),A=w(A,r,n,i,e[1],4,-1530992060),i=w(i,A,r,n,e[4],11,1272893353),n=w(n,i,A,r,e[7],16,-155497632),r=w(r,n,i,A,e[10],23,-1094730640),A=w(A,r,n,i,e[13],4,681279174),i=w(i,A,r,n,e[0],11,-358537222),n=w(n,i,A,r,e[3],16,-722521979),r=w(r,n,i,A,e[6],23,76029189),A=w(A,r,n,i,e[9],4,-640364487),i=w(i,A,r,n,e[12],11,-421815835),n=w(n,i,A,r,e[15],16,530742520),A=m(A,r=w(r,n,i,A,e[2],23,-995338651),n,i,e[0],6,-198630844),i=m(i,A,r,n,e[7],10,1126891415),n=m(n,i,A,r,e[14],15,-1416354905),r=m(r,n,i,A,e[5],21,-57434055),A=m(A,r,n,i,e[12],6,1700485571),i=m(i,A,r,n,e[3],10,-1894986606),n=m(n,i,A,r,e[10],15,-1051523),r=m(r,n,i,A,e[1],21,-2054922799),A=m(A,r,n,i,e[8],6,1873313359),i=m(i,A,r,n,e[15],10,-30611744),n=m(n,i,A,r,e[6],15,-1560198380),r=m(r,n,i,A,e[13],21,1309151649),A=m(A,r,n,i,e[4],6,-145523070),i=m(i,A,r,n,e[11],10,-1120210379),n=m(n,i,A,r,e[2],15,718787259),r=m(r,n,i,A,e[9],21,-343485551),t[0]=U(A,t[0]),t[1]=U(r,t[1]),t[2]=U(n,t[2]),t[3]=U(i,t[3])}function p(t,e,A,r,n,i){return e=U(U(e,t),U(r,i)),U(e<<n|e>>>32-n,A)}function B(t,e,A,r,n,i,o){return p(e&A|~e&r,t,e,n,i,o)}function g(t,e,A,r,n,i,o){return p(e&r|A&~r,t,e,n,i,o)}function w(t,e,A,r,n,i,o){return p(e^A^r,t,e,n,i,o)}function m(t,e,A,r,n,i,o){return p(A^(e|~r),t,e,n,i,o)}function v(t){var e,A=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)d(r,b(t.substring(e-64,e)));t=t.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)n[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(d(r,n),e=0;e<16;e++)n[e]=0;return n[14]=8*A,d(r,n),r}function b(t){var e,A=[];for(e=0;e<64;e+=4)A[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return A}u=n.atob.bind(n),l=n.btoa.bind(n);var Q="0123456789abcdef".split("");function C(t){for(var e="",A=0;A<4;A++)e+=Q[t>>8*A+4&15]+Q[t>>8*A&15];return e}function y(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function F(t){return v(t).map(y).join("")}function U(t,e){return t+e&4294967295}if("5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=C(t[e]);return t.join("")}(v("hello"))){function U(t,e){var A=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(A>>16)<<16|65535&A}}
- /**
- * @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 N(t,e){var A,r,n,i;if(t!==A){for(var o=(n=t,i=1+(256/t.length>>0),new Array(i+1).join(n)),a=[],s=0;s<256;s++)a[s]=s;var c=0;for(s=0;s<256;s++){var u=a[s];c=(c+u+o.charCodeAt(s))%256,a[s]=a[c],a[c]=u}A=t,r=a}else a=r;var l=e.length,h=0,f=0,d="";for(s=0;s<l;s++)f=(f+(u=a[h=(h+1)%256]))%256,a[h]=a[f],a[f]=u,o=a[(a[h]+a[f])%256],d+=String.fromCharCode(e.charCodeAt(s)^o);return d}
- /**
- * @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 E={print:4,modify:8,copy:16,"annot-forms":32};function L(t,e,A,r){this.v=1,this.r=2;let n=192;t.forEach((function(t){if(void 0!==E.perm)throw new Error("Invalid permission: "+t);n+=E[t]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";let i=(e+this.padding).substr(0,32),o=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^n)),this.encryptionKey=F(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=N(this.encryptionKey,this.padding)}function H(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,A,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof A||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var n=Math.random().toString(35);return e[t][n]=[A,!!r],n},this.unsubscribe=function(t){for(var A in e)if(e[A][t])return delete e[A][t],0===Object.keys(e[A]).length&&delete e[A],!0;return!1},this.publish=function(A){if(e.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[A]){var s=e[A][a];try{s[0].apply(t,r)}catch(t){n.console&&o.error("jsPDF PubSub Error",t.message,t)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function S(t){if(!(this instanceof S))return new S(t);var e="opacity,stroke-opacity".split(",");for(var A in t)t.hasOwnProperty(A)&&e.indexOf(A)>=0&&(this[A]=t[A]);this.id="",this.objectNumber=-1}function _(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function x(t,e,A,r,n){if(!(this instanceof x))return new x(t,e,A,r,n);this.type="axial"===t?2:3,this.coords=e,this.colors=A,_.call(this,r,n)}function I(t,e,A,r,n){if(!(this instanceof I))return new I(t,e,A,r,n);this.boundingBox=t,this.xStep=e,this.yStep=A,this.stream="",this.cloneIndex=0,_.call(this,r,n)}function P(t){var e,A="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],s=[],c=1,u=16,d="S",p=null;"object"==typeof(t=t||{})&&(A=t.orientation,r=t.unit||r,i=t.format||i,a=t.compress||t.compressPdf||a,null!==(p=t.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),c="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),d=t.defaultPathOperation||"S"),s=t.filters||(!0===a?["FlateEncode"]:s),r=r||"mm",A=(""+(A||"P")).toLowerCase();var B=t.putOnlyUsedFonts||!1,g={},w={internal:{},__private__:{}};w.__private__.PubSub=H;var m="1.3",v=w.__private__.getPdfVersion=function(){return m};w.__private__.setPdfVersion=function(t){m=t};var b={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]};w.__private__.getPageFormats=function(){return b};var Q=w.__private__.getPageFormat=function(t){return b[t]};i=i||"a4";var C={COMPAT:"compat",ADVANCED:"advanced"},y=C.COMPAT;function F(){this.saveGraphicsState(),ct(new jt(yt,0,0,-yt,0,TA()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),d="n",y=C.ADVANCED}function U(){this.restoreGraphicsState(),d="S",y=C.COMPAT}var N=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!==e&&(t=400==e?"italic"==t?"italic":"normal":700==e&&"italic"!==t?"bold":t+""+e),t};w.advancedAPI=function(t){var e=y===C.COMPAT;return e&&F.call(this),"function"!=typeof t||(t(this),e&&U.call(this)),this},w.compatAPI=function(t){var e=y===C.ADVANCED;return e&&U.call(this),"function"!=typeof t||(t(this),e&&F.call(this)),this},w.isAdvancedAPI=function(){return y===C.ADVANCED};var E,_=function(t){if(y!==C.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},T=w.roundToPrecision=w.__private__.roundToPrecision=function(t,A){var r=e||A;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};E=w.hpf=w.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return T(t,u)}:"smart"===u?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 O=w.f2=w.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return T(t,2)},R=w.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return T(t,3)},K=w.scale=w.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return y===C.COMPAT?t*yt:y===C.ADVANCED?t:void 0},M=function(t){return y===C.COMPAT?TA()-t:y===C.ADVANCED?t:void 0},k=function(t){return K(M(t))};w.__private__.setPrecision=w.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var D,j="00000000000000000000000000000000",z=w.__private__.getFileId=function(){return j},V=w.__private__.setFileId=function(t){return j=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():j.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==p&&(Ve=new L(p.userPermissions,p.userPassword,p.ownerPassword,j)),j};w.setFileId=function(t){return V(t),this},w.getFileId=function(){return z()};var q=w.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),A=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),i=[A,Y(r),"'",Y(n),"'"].join("");return["D:",t.getFullYear(),Y(t.getMonth()+1),Y(t.getDate()),Y(t.getHours()),Y(t.getMinutes()),Y(t.getSeconds()),i].join("")},G=w.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),A=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),n=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,A,r,n,i,o,0)},X=w.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=q(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 D=e},J=w.__private__.getCreationDate=function(t){var e=D;return"jsDate"===t&&(e=G(D)),e};w.setCreationDate=function(t){return X(t),this},w.getCreationDate=function(t){return J(t)};var W,Y=w.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},Z=w.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},$=0,tt=[],et=[],At=0,rt=[],nt=[],it=!1,ot=et,at=function(){$=0,At=0,et=[],tt=[],rt=[],Yt=Xt(),Zt=Xt()};w.__private__.setCustomOutputDestination=function(t){it=!0,ot=t};var st=function(t){it||(ot=t)};w.__private__.resetCustomOutputDestination=function(){it=!1,ot=et};var ct=w.__private__.out=function(t){return t=t.toString(),At+=t.length+1,ot.push(t),ot},ut=w.__private__.write=function(t){return ct(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},lt=w.__private__.getArrayBuffer=function(t){for(var e=t.length,A=new ArrayBuffer(e),r=new Uint8Array(A);e--;)r[e]=t.charCodeAt(e);return A},ht=[["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]];w.__private__.getStandardFonts=function(){return ht};var ft=t.fontSize||16;w.__private__.setFontSize=w.setFontSize=function(t){return ft=y===C.ADVANCED?t/yt:t,this};var dt,pt=w.__private__.getFontSize=w.getFontSize=function(){return y===C.COMPAT?ft:ft*yt},Bt=t.R2L||!1;w.__private__.setR2L=w.setR2L=function(t){return Bt=t,this},w.__private__.getR2L=w.getR2L=function(){return Bt};var gt,wt=w.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*%$/.test(t))dt=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.');dt=t}else dt=parseInt(t,10)};w.__private__.getZoomMode=function(){return dt};var mt,vt=w.__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.');gt=t};w.__private__.getPageMode=function(){return gt};var bt=w.__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.');mt=t};w.__private__.getLayoutMode=function(){return mt},w.__private__.setDisplayMode=w.setDisplayMode=function(t,e,A){return wt(t),bt(e),vt(A),this};var Qt={title:"",subject:"",author:"",keywords:"",creator:""};w.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Qt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qt[t]},w.__private__.getDocumentProperties=function(){return Qt},w.__private__.setDocumentProperties=w.setProperties=w.setDocumentProperties=function(t){for(var e in Qt)Qt.hasOwnProperty(e)&&t[e]&&(Qt[e]=t[e]);return this},w.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Qt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qt[t]=e};var Ct,yt,Ft,Ut,Nt,Et={},Lt={},Ht=[],St={},_t={},xt={},It={},Pt=null,Tt=0,Ot=[],Rt=new H(w),Kt=t.hotfixes||[],Mt={},kt={},Dt=[],jt=function(t,e,A,r,n,i){if(!(this instanceof jt))return new jt(t,e,A,r,n,i);isNaN(t)&&(t=1),isNaN(e)&&(e=0),isNaN(A)&&(A=0),isNaN(r)&&(r=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),this._matrix=[t,e,A,r,n,i]};Object.defineProperty(jt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(jt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(jt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(jt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(jt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(jt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(jt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(jt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(jt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(jt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(jt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(jt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(jt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(jt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(jt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(jt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),jt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(t)},jt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,A=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,n=t.shx*this.shy+t.sy*this.sy,i=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new jt(e,A,r,n,i,o)},jt.prototype.decompose=function(){var t=this.sx,e=this.shy,A=this.shx,r=this.sy,n=this.tx,i=this.ty,o=Math.sqrt(t*t+e*e),a=(t/=o)*A+(e/=o)*r;A-=t*a,r-=e*a;var s=Math.sqrt(A*A+r*r);return a/=s,t*(r/=s)<e*(A/=s)&&(t=-t,e=-e,a=-a,o=-o),{scale:new jt(o,0,0,s,0,0),translate:new jt(1,0,0,1,n,i),rotate:new jt(t,e,-e,t,0,0),skew:new jt(1,0,a,1,0,0)}},jt.prototype.toString=function(t){return this.join(" ")},jt.prototype.inversed=function(){var t=this.sx,e=this.shy,A=this.shx,r=this.sy,n=this.tx,i=this.ty,o=1/(t*r-e*A),a=r*o,s=-e*o,c=-A*o,u=t*o;return new jt(a,s,c,u,-a*n-c*i,-s*n-u*i)},jt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,A=t.x*this.shy+t.y*this.sy+this.ty;return new EA(e,A)},jt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),A=this.applyToPoint(new EA(t.x+t.w,t.y+t.h));return new LA(e.x,e.y,A.x-e.x,A.y-e.y)},jt.prototype.clone=function(){var t=this.sx,e=this.shy,A=this.shx,r=this.sy,n=this.tx,i=this.ty;return new jt(t,e,A,r,n,i)},w.Matrix=jt;var zt=w.matrixMult=function(t,e){return e.multiply(t)},Vt=new jt(1,0,0,1,0,0);w.unitMatrix=w.identityMatrix=Vt;var qt=function(t,e){if(!_t[t]){var A=(e instanceof x?"Sh":"P")+(Object.keys(St).length+1).toString(10);e.id=A,_t[t]=A,St[A]=e,Rt.publish("addPattern",e)}};w.ShadingPattern=x,w.TilingPattern=I,w.addShadingPattern=function(t,e){return _("addShadingPattern()"),qt(t,e),this},w.beginTilingPattern=function(t){_("beginTilingPattern()"),SA(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},w.endTilingPattern=function(t,e){_("endTilingPattern()"),e.stream=nt[W].join("\n"),qt(t,e),Rt.publish("endTilingPattern",e),Dt.pop().restore()};var Gt=w.__private__.newObject=function(){var t=Xt();return Jt(t,!0),t},Xt=w.__private__.newObjectDeferred=function(){return $++,tt[$]=function(){return At},$},Jt=function(t,e){return e="boolean"==typeof e&&e,tt[t]=At,e&&ct(t+" 0 obj"),t},Wt=w.__private__.newAdditionalObject=function(){var t={objId:Xt(),content:""};return rt.push(t),t},Yt=Xt(),Zt=Xt(),$t=w.__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 A=parseFloat(e[0]);e=[A,A,A,"r"]}for(var r="#",n=0;n<3;n++)r+=("0"+Math.floor(255*parseFloat(e[n])).toString(16)).slice(-2);return r},te=w.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var A=t.ch1,r=t.ch2,n=t.ch3,i=t.ch4,o="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof A&&"#"!==A.charAt(0)){var a=new f(A);if(a.ok)A=a.toHex();else if(!/^\d*\.?\d*$/.test(A))throw new Error('Invalid color "'+A+'" passed to jsPDF.encodeColorString.')}if("string"==typeof A&&/^#[0-9A-Fa-f]{3}$/.test(A)&&(A="#"+A[1]+A[1]+A[2]+A[2]+A[3]+A[3]),"string"==typeof A&&/^#[0-9A-Fa-f]{6}$/.test(A)){var s=parseInt(A.substr(1),16);A=s>>16&255,r=s>>8&255,n=255&s}if(void 0===r||void 0===i&&A===r&&r===n)if("string"==typeof A)e=A+" "+o[0];else switch(t.precision){case 2:e=O(A/255)+" "+o[0];break;case 3:default:e=R(A/255)+" "+o[0]}else if(void 0===i||"object"==typeof i){if(i&&!isNaN(i.a)&&0===i.a)return["1.","1.","1.",o[1]].join(" ");if("string"==typeof A)e=[A,r,n,o[1]].join(" ");else switch(t.precision){case 2:e=[O(A/255),O(r/255),O(n/255),o[1]].join(" ");break;default:case 3:e=[R(A/255),R(r/255),R(n/255),o[1]].join(" ")}}else if("string"==typeof A)e=[A,r,n,i,o[2]].join(" ");else switch(t.precision){case 2:e=[O(A),O(r),O(n),O(i),o[2]].join(" ");break;case 3:default:e=[R(A),R(r),R(n),R(i),o[2]].join(" ")}return e},ee=w.__private__.getFilters=function(){return s},Ae=w.__private__.putStream=function(t){var e=(t=t||{}).data||"",A=t.filters||ee(),r=t.alreadyAppliedFilters||[],n=t.addLength1||!1,i=e.length,o=t.objectId,a=function(t){return t};if(null!==p&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(a=Ve.encryptor(o,0));var s={};!0===A&&(A=["FlateEncode"]);var c=t.additionalKeyValues||[],u=(s=void 0!==P.API.processDataByFilters?P.API.processDataByFilters(e,A):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==s.data.length&&(c.push({key:"Length",value:s.data.length}),!0===n&&c.push({key:"Length1",value:i})),0!=u.length)if(u.split("/").length-1==1)c.push({key:"Filter",value:u});else{c.push({key:"Filter",value:"["+u+"]"});for(var l=0;l<c.length;l+=1)if("DecodeParms"===c[l].key){for(var h=[],f=0;f<s.reverseChain.split("/").length-1;f+=1)h.push("null");h.push(c[l].value),c[l].value="["+h.join(" ")+"]"}}ct("<<");for(var d=0;d<c.length;d++)ct("/"+c[d].key+" "+c[d].value);ct(">>"),0!==s.data.length&&(ct("stream"),ct(a(s.data)),ct("endstream"))},re=w.__private__.putPage=function(t){var e=t.number,A=t.data,r=t.objId,n=t.contentsObjId;Jt(r,!0),ct("<</Type /Page"),ct("/Parent "+t.rootDictionaryObjId+" 0 R"),ct("/Resources "+t.resourceDictionaryObjId+" 0 R"),ct("/MediaBox ["+parseFloat(E(t.mediaBox.bottomLeftX))+" "+parseFloat(E(t.mediaBox.bottomLeftY))+" "+E(t.mediaBox.topRightX)+" "+E(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ct("/CropBox ["+E(t.cropBox.bottomLeftX)+" "+E(t.cropBox.bottomLeftY)+" "+E(t.cropBox.topRightX)+" "+E(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ct("/BleedBox ["+E(t.bleedBox.bottomLeftX)+" "+E(t.bleedBox.bottomLeftY)+" "+E(t.bleedBox.topRightX)+" "+E(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ct("/TrimBox ["+E(t.trimBox.bottomLeftX)+" "+E(t.trimBox.bottomLeftY)+" "+E(t.trimBox.topRightX)+" "+E(t.trimBox.topRightY)+"]"),null!==t.artBox&&ct("/ArtBox ["+E(t.artBox.bottomLeftX)+" "+E(t.artBox.bottomLeftY)+" "+E(t.artBox.topRightX)+" "+E(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ct("/UserUnit "+t.userUnit),Rt.publish("putPage",{objId:r,pageContext:Ot[e],pageNumber:e,page:A}),ct("/Contents "+n+" 0 R"),ct(">>"),ct("endobj");var i=A.join("\n");return y===C.ADVANCED&&(i+="\nQ"),Jt(n,!0),Ae({data:i,filters:ee(),objectId:n}),ct("endobj"),r},ne=w.__private__.putPages=function(){var t,e,A=[];for(t=1;t<=Tt;t++)Ot[t].objId=Xt(),Ot[t].contentsObjId=Xt();for(t=1;t<=Tt;t++)A.push(re({number:t,data:nt[t],objId:Ot[t].objId,contentsObjId:Ot[t].contentsObjId,mediaBox:Ot[t].mediaBox,cropBox:Ot[t].cropBox,bleedBox:Ot[t].bleedBox,trimBox:Ot[t].trimBox,artBox:Ot[t].artBox,userUnit:Ot[t].userUnit,rootDictionaryObjId:Yt,resourceDictionaryObjId:Zt}));Jt(Yt,!0),ct("<</Type /Pages");var r="/Kids [";for(e=0;e<Tt;e++)r+=A[e]+" 0 R ";ct(r+"]"),ct("/Count "+Tt),ct(">>"),ct("endobj"),Rt.publish("postPutPages")},ie=function(t){var e=function(t,e){return-1!==t.indexOf(" ")?"("+Le(t,e)+")":Le(t,e)};Rt.publish("putFont",{font:t,out:ct,newObject:Gt,putStream:Ae,pdfEscapeWithNeededParanthesis:e}),!0!==t.isAlreadyPutted&&(t.objectNumber=Gt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+e(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},oe=function(){for(var t in Et)Et.hasOwnProperty(t)&&(!1===B||!0===B&&g.hasOwnProperty(t))&&ie(Et[t])},ae=function(t){t.objectNumber=Gt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[E(t.x),E(t.y),E(t.x+t.width),E(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var A=t.pages[1].join("\n");Ae({data:A,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},se=function(){for(var t in Mt)Mt.hasOwnProperty(t)&&ae(Mt[t])},ce=function(t,e){var A,r=[],n=1/(e-1);for(A=0;A<1;A+=n)r.push(A);if(r.push(1),0!=t[0].offset){var i={offset:0,color:t[0].color};t.unshift(i)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var a="",s=0,c=0;c<r.length;c++){for(A=r[c];A>t[s+1].offset;)s++;var u=t[s].offset,l=(A-u)/(t[s+1].offset-u),h=t[s].color,f=t[s+1].color;a+=Z(Math.round((1-l)*h[0]+l*f[0]).toString(16))+Z(Math.round((1-l)*h[1]+l*f[1]).toString(16))+Z(Math.round((1-l)*h[2]+l*f[2]).toString(16))}return a.trim()},ue=function(t,e){e||(e=21);var A=Gt(),r=ce(t.colors,e),n=[];n.push({key:"FunctionType",value:"0"}),n.push({key:"Domain",value:"[0.0 1.0]"}),n.push({key:"Size",value:"["+e+"]"}),n.push({key:"BitsPerSample",value:"8"}),n.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),n.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ae({data:r,additionalKeyValues:n,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:A}),ct("endobj"),t.objectNumber=Gt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var i="/Coords ["+E(parseFloat(t.coords[0]))+" "+E(parseFloat(t.coords[1]))+" ";2===t.type?i+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3])):i+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3]))+" "+E(parseFloat(t.coords[4]))+" "+E(parseFloat(t.coords[5])),ct(i+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+A+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},le=function(t,e){var A=Xt(),r=Gt();e.push({resourcesOid:A,objectOid:r}),t.objectNumber=r;var n=[];n.push({key:"Type",value:"/Pattern"}),n.push({key:"PatternType",value:"1"}),n.push({key:"PaintType",value:"1"}),n.push({key:"TilingType",value:"1"}),n.push({key:"BBox",value:"["+t.boundingBox.map(E).join(" ")+"]"}),n.push({key:"XStep",value:E(t.xStep)}),n.push({key:"YStep",value:E(t.yStep)}),n.push({key:"Resources",value:A+" 0 R"}),t.matrix&&n.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),Ae({data:t.stream,additionalKeyValues:n,objectId:t.objectNumber}),ct("endobj")},he=function(t){var e;for(e in St)St.hasOwnProperty(e)&&(St[e]instanceof x?ue(St[e]):St[e]instanceof I&&le(St[e],t))},fe=function(t){for(var e in t.objectNumber=Gt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+O(t[e]));break;case"stroke-opacity":ct("/CA "+O(t[e]))}ct(">>"),ct("endobj")},de=function(){var t;for(t in xt)xt.hasOwnProperty(t)&&fe(xt[t])},pe=function(){for(var t in ct("/XObject <<"),Mt)Mt.hasOwnProperty(t)&&Mt[t].objectNumber>=0&&ct("/"+t+" "+Mt[t].objectNumber+" 0 R");Rt.publish("putXobjectDict"),ct(">>")},Be=function(){Ve.oid=Gt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+Ve.v),ct("/R "+Ve.r),ct("/U <"+Ve.toHexString(Ve.U)+">"),ct("/O <"+Ve.toHexString(Ve.O)+">"),ct("/P "+Ve.P),ct(">>"),ct("endobj")},ge=function(){for(var t in ct("/Font <<"),Et)Et.hasOwnProperty(t)&&(!1===B||!0===B&&g.hasOwnProperty(t))&&ct("/"+t+" "+Et[t].objectNumber+" 0 R");ct(">>")},we=function(){if(Object.keys(St).length>0){for(var t in ct("/Shading <<"),St)St.hasOwnProperty(t)&&St[t]instanceof x&&St[t].objectNumber>=0&&ct("/"+t+" "+St[t].objectNumber+" 0 R");Rt.publish("putShadingPatternDict"),ct(">>")}},me=function(t){if(Object.keys(St).length>0){for(var e in ct("/Pattern <<"),St)St.hasOwnProperty(e)&&St[e]instanceof w.TilingPattern&&St[e].objectNumber>=0&&St[e].objectNumber<t&&ct("/"+e+" "+St[e].objectNumber+" 0 R");Rt.publish("putTilingPatternDict"),ct(">>")}},ve=function(){if(Object.keys(xt).length>0){var t;for(t in ct("/ExtGState <<"),xt)xt.hasOwnProperty(t)&&xt[t].objectNumber>=0&&ct("/"+t+" "+xt[t].objectNumber+" 0 R");Rt.publish("putGStateDict"),ct(">>")}},be=function(t){Jt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ge(),we(),me(t.objectOid),ve(),pe(),ct(">>"),ct("endobj")},Qe=function(){var t=[];oe(),de(),se(),he(t),Rt.publish("putResources"),t.forEach(be),be({resourcesOid:Zt,objectOid:Number.MAX_SAFE_INTEGER}),Rt.publish("postPutResources")},Ce=function(){Rt.publish("putAdditionalObjects");for(var t=0;t<rt.length;t++){var e=rt[t];Jt(e.objId,!0),ct(e.content),ct("endobj")}Rt.publish("postPutAdditionalObjects")},ye=function(t){Lt[t.fontName]=Lt[t.fontName]||{},Lt[t.fontName][t.fontStyle]=t.id},Fe=function(t,e,A,r,n){var i={id:"F"+(Object.keys(Et).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:A,encoding:r,isStandardFont:n||!1,metadata:{}};return Rt.publish("addFont",{font:i,instance:this}),Et[i.id]=i,ye(i),i.id},Ue=function(t){for(var e=0,A=ht.length;e<A;e++){var r=Fe.call(this,t[e][0],t[e][1],t[e][2],ht[e][3],!0);!1===B&&(g[r]=!0);var n=t[e][0].split("-");ye({id:r,fontName:n[0],fontStyle:n[1]||""})}Rt.publish("addFonts",{fonts:Et,dictionary:Lt})},Ne=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 A="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!n.console)throw new Error(A);n.console.error(A,t),n.alert&&alert(A)}},t.foo.bar=t,t.foo},Ee=function(t,e){var A,r,n,i,o,a,s,c,u;if(n=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&Et[Ct].metadata&&Et[Ct].metadata[n]&&Et[Ct].metadata[n].encoding&&(i=Et[Ct].metadata[n].encoding,!o&&Et[Ct].encoding&&(o=Et[Ct].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(s=!1,a=[],A=0,r=t.length;A<r;A++)(c=o[t.charCodeAt(A)])?a.push(String.fromCharCode(c)):a.push(t[A]),a[A].charCodeAt(0)>>8&&(s=!0);t=a.join("")}for(A=t.length;void 0===s&&0!==A;)t.charCodeAt(A-1)>>8&&(s=!0),A--;if(!s)return t;for(a=e.noBOM?[]:[254,255],A=0,r=t.length;A<r;A++){if((u=(c=t.charCodeAt(A))>>8)>>8)throw new Error("Character at position "+A+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(c-(u<<8))}return String.fromCharCode.apply(void 0,a)},Le=w.__private__.pdfEscape=w.pdfEscape=function(t,e){return Ee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},He=w.__private__.beginPage=function(t){nt[++Tt]=[],Ot[Tt]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},xe(Tt),st(nt[W])},Se=function(t,e){var r,n,a;switch(A=e||A,"string"==typeof t&&(r=Q(t.toLowerCase()),Array.isArray(r)&&(n=r[0],a=r[1])),Array.isArray(t)&&(n=t[0]*yt,a=t[1]*yt),isNaN(n)&&(n=i[0],a=i[1]),(n>14400||a>14400)&&(o.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),n=Math.min(14400,n),a=Math.min(14400,a)),i=[n,a],A.substr(0,1)){case"l":a>n&&(i=[a,n]);break;case"p":n>a&&(i=[a,n])}He(i),lA(uA),ct(mA),0!==FA&&ct(FA+" J"),0!==UA&&ct(UA+" j"),Rt.publish("addPage",{pageNumber:Tt})},_e=function(t){t>0&&t<=Tt&&(nt.splice(t,1),Ot.splice(t,1),Tt--,W>Tt&&(W=Tt),this.setPage(W))},xe=function(t){t>0&&t<=Tt&&(W=t)},Ie=w.__private__.getNumberOfPages=w.getNumberOfPages=function(){return nt.length-1},Pe=function(t,e,A){var r,n=void 0;return A=A||{},t=void 0!==t?t:Et[Ct].fontName,e=void 0!==e?e:Et[Ct].fontStyle,r=t.toLowerCase(),void 0!==Lt[r]&&void 0!==Lt[r][e]?n=Lt[r][e]:void 0!==Lt[t]&&void 0!==Lt[t][e]?n=Lt[t][e]:!1===A.disableWarning&&o.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),n||A.noFallback||null==(n=Lt.times[e])&&(n=Lt.times.normal),n},Te=w.__private__.putInfo=function(){var t=Gt(),e=function(t){return t};for(var A in null!==p&&(e=Ve.encryptor(t,0)),ct("<<"),ct("/Producer ("+Le(e("jsPDF "+P.version))+")"),Qt)Qt.hasOwnProperty(A)&&Qt[A]&&ct("/"+A.substr(0,1).toUpperCase()+A.substr(1)+" ("+Le(e(Qt[A]))+")");ct("/CreationDate ("+Le(e(D))+")"),ct(">>"),ct("endobj")},Oe=w.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Yt;switch(Gt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),dt||(dt="fullwidth"),dt){case"fullwidth":ct("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ct("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ct("/OpenAction [3 0 R /Fit]");break;case"original":ct("/OpenAction [3 0 R /XYZ null null 1]");break;default:var A=""+dt;"%"===A.substr(A.length-1)&&(dt=parseInt(dt)/100),"number"==typeof dt&&ct("/OpenAction [3 0 R /XYZ null null "+O(dt)+"]")}switch(mt||(mt="continuous"),mt){case"continuous":ct("/PageLayout /OneColumn");break;case"single":ct("/PageLayout /SinglePage");break;case"two":case"twoleft":ct("/PageLayout /TwoColumnLeft");break;case"tworight":ct("/PageLayout /TwoColumnRight")}gt&&ct("/PageMode /"+gt),Rt.publish("putCatalog"),ct(">>"),ct("endobj")},Re=w.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+($+1)),ct("/Root "+$+" 0 R"),ct("/Info "+($-1)+" 0 R"),null!==p&&ct("/Encrypt "+Ve.oid+" 0 R"),ct("/ID [ <"+j+"> <"+j+"> ]"),ct(">>")},Ke=w.__private__.putHeader=function(){ct("%PDF-"+m),ct("%ºß¬à")},Me=w.__private__.putXRef=function(){var t="0000000000";ct("xref"),ct("0 "+($+1)),ct("0000000000 65535 f ");for(var e=1;e<=$;e++)"function"==typeof tt[e]?ct((t+tt[e]()).slice(-10)+" 00000 n "):void 0!==tt[e]?ct((t+tt[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")},ke=w.__private__.buildDocument=function(){at(),st(et),Rt.publish("buildDocument"),Ke(),ne(),Ce(),Qe(),null!==p&&Be(),Te(),Oe();var t=At;return Me(),Re(),ct("startxref"),ct(""+t),ct("%%EOF"),st(nt[W]),et.join("\n")},De=w.__private__.getBlob=function(t){return new Blob([lt(t)],{type:"application/pdf"})},je=w.output=w.__private__.output=Ne((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ke();case"save":w.save(e.filename);break;case"arraybuffer":return lt(ke());case"blob":return De(ke());case"bloburi":case"bloburl":if(void 0!==n.URL&&"function"==typeof n.URL.createObjectURL)return n.URL&&n.URL.createObjectURL(De(ke()))||void 0;o.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var A="",r=ke();try{A=l(r)}catch(t){A=l(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+A;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(n)){var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(e.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",a=n.open();return null!==a&&a.document.write(i),a}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(n)){var s='<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>',c=n.open();if(null!==c){c.document.write(s);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=e.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(n))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var h='<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>',f=n.open();if(null!==f&&(f.document.write(h),f.document.title=e.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return n.document.location.href=this.output("datauristring",e);default:return null}})),ze=function(t){return!0===Array.isArray(Kt)&&Kt.indexOf(t)>-1};switch(r){case"pt":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=1==ze("px_scaling")?.75:96/72;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:throw new Error("Invalid unit: "+r)}var Ve=null;X(),V();var qe=function(t){return null!==p?Ve.encryptor(t,0):function(t){return t}},Ge=w.__private__.getPageInfo=w.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ot[t].objId,pageNumber:t,pageContext:Ot[t]}},Xe=w.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Ot)if(Ot[e].objId===t)break;return Ge(e)},Je=w.__private__.getCurrentPageInfo=w.getCurrentPageInfo=function(){return{objId:Ot[W].objId,pageNumber:W,pageContext:Ot[W]}};w.addPage=function(){return Se.apply(this,arguments),this},w.setPage=function(){return xe.apply(this,arguments),st.call(this,nt[W]),this},w.insertPage=function(t){return this.addPage(),this.movePage(W,t),this},w.movePage=function(t,e){var A,r;if(t>e){A=nt[t],r=Ot[t];for(var n=t;n>e;n--)nt[n]=nt[n-1],Ot[n]=Ot[n-1];nt[e]=A,Ot[e]=r,this.setPage(e)}else if(t<e){A=nt[t],r=Ot[t];for(var i=t;i<e;i++)nt[i]=nt[i+1],Ot[i]=Ot[i+1];nt[e]=A,Ot[e]=r,this.setPage(e)}return this},w.deletePage=function(){return _e.apply(this,arguments),this},w.__private__.text=w.text=function(t,e,A,r,n){var i,o,a,s,c,u,l,h,f=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof A||Array.isArray(A))){var d=A;A=e,e=t,t=d}if(arguments[3]instanceof jt==0?(a=arguments[4],s=arguments[5],"object"==typeof(l=arguments[3])&&null!==l||("string"==typeof a&&(s=a,a=null),"string"==typeof l&&(s=l,l=null),"number"==typeof l&&(a=l,l=null),r={flags:l,angle:a,align:s})):(_("The transform parameter of text() with a Matrix value"),h=n),isNaN(e)||isNaN(A)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return f;var p="",B=!1,w="number"==typeof r.lineHeightFactor?r.lineHeightFactor:cA,m=f.internal.scaleFactor;function v(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),Le(t,l)}function b(t){for(var e,A=t.concat(),r=[],n=A.length;n--;)"string"==typeof(e=A.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function Q(t,e){var A;if("string"==typeof t)A=e(t)[0];else if(Array.isArray(t)){for(var r,n,i=t.concat(),o=[],a=i.length;a--;)"string"==typeof(r=i.shift())?o.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(n=e(r[0],r[1],r[2]),o.push([n[0],n[1],n[2]]));A=o}return A}var F=!1,U=!0;if("string"==typeof t)F=!0;else if(Array.isArray(t)){var N=t.concat();o=[];for(var L,H=N.length;H--;)("string"!=typeof(L=N.shift())||Array.isArray(L)&&"string"!=typeof L[0])&&(U=!1);F=U}if(!1===F)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 S=ft/f.internal.scaleFactor,x=S*(cA-1);switch(r.baseline){case"bottom":A-=x;break;case"top":A+=S-x;break;case"hanging":A+=S-2*x;break;case"middle":A+=S/2-x}if((u=r.maxWidth||0)>0&&("string"==typeof t?t=f.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(f.splitTextToSize(e,u))}),[]))),i={text:t,x:e,y:A,options:r,mutex:{pdfEscape:Le,activeFontKey:Ct,fonts:Et,activeFontSize:ft}},Rt.publish("preProcessText",i),t=i.text,a=(r=i.options).angle,h instanceof jt==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),y===C.ADVANCED&&(a=-a);var I=Math.cos(a),P=Math.sin(a);h=new jt(I,P,-P,I,0,0)}else a&&a instanceof jt&&(h=a);y!==C.ADVANCED||h||(h=Vt),void 0!==(c=r.charSpace||CA)&&(p+=E(K(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),r.lang;var T=-1,O=void 0!==r.renderingMode?r.renderingMode:r.stroke,R=f.internal.getCurrentPageInfo().pageContext;switch(O){case 0:case!1:case"fill":T=0;break;case 1:case!0:case"stroke":T=1;break;case 2:case"fillThenStroke":T=2;break;case 3:case"invisible":T=3;break;case 4:case"fillAndAddForClipping":T=4;break;case 5:case"strokeAndAddPathForClipping":T=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":T=6;break;case 7:case"addToPathForClipping":T=7}var M=void 0!==R.usedRenderingMode?R.usedRenderingMode:-1;-1!==T?p+=T+" Tr\n":-1!==M&&(p+="0 Tr\n"),-1!==T&&(R.usedRenderingMode=T),s=r.align||"left";var k,D=ft*w,j=f.internal.pageSize.getWidth(),z=Et[Ct];c=r.charSpace||CA,u=r.maxWidth||0,l=Object.assign({autoencode:!0,noBOM:!0},r.flags);var V=[];if("[object Array]"===Object.prototype.toString.call(t)){var q;o=b(t),"left"!==s&&(k=o.map((function(t){return f.getStringUnitWidth(t,{font:z,charSpace:c,fontSize:ft,doKerning:!1})*ft/m})));var G,X=0;if("right"===s){e-=k[0],t=[],H=o.length;for(var J=0;J<H;J++)0===J?(G=pA(e),q=BA(A)):(G=K(X-k[J]),q=-D),t.push([o[J],G,q]),X=k[J]}else if("center"===s){e-=k[0]/2,t=[],H=o.length;for(var W=0;W<H;W++)0===W?(G=pA(e),q=BA(A)):(G=K((X-k[W])/2),q=-D),t.push([o[W],G,q]),X=k[W]}else if("left"===s){t=[],H=o.length;for(var Y=0;Y<H;Y++)t.push(o[Y])}else{if("justify"!==s)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],H=o.length,u=0!==u?u:j;for(var Z=0;Z<H;Z++)q=0===Z?BA(A):-D,G=0===Z?pA(e):0,Z<H-1&&V.push(E(K((u-k[Z])/(o[Z].split(" ").length-1)))),t.push([o[Z],G,q])}}var $="boolean"==typeof r.R2L?r.R2L:Bt;!0===$&&(t=Q(t,(function(t,e,A){return[t.split("").reverse().join(""),e,A]}))),i={text:t,x:e,y:A,options:r,mutex:{pdfEscape:Le,activeFontKey:Ct,fonts:Et,activeFontSize:ft}},Rt.publish("postProcessText",i),t=i.text,B=i.mutex.isHex||!1;var tt=Et[Ct].encoding;"WinAnsiEncoding"!==tt&&"StandardEncoding"!==tt||(t=Q(t,(function(t,e,A){return[v(t),e,A]}))),o=b(t),t=[];for(var et,At,rt,nt=0,it=1,ot=Array.isArray(o[0])?it:nt,at="",st=function(t,e,A){var n="";return A instanceof jt?(A="number"==typeof r.angle?zt(A,new jt(1,0,0,1,t,e)):zt(new jt(1,0,0,1,t,e),A),y===C.ADVANCED&&(A=zt(new jt(1,0,0,-1,0,0),A)),n=A.join(" ")+" Tm\n"):n=E(t)+" "+E(e)+" Td\n",n},ut=0;ut<o.length;ut++){switch(at="",ot){case it:rt=(B?"<":"(")+o[ut][0]+(B?">":")"),et=parseFloat(o[ut][1]),At=parseFloat(o[ut][2]);break;case nt:rt=(B?"<":"(")+o[ut]+(B?">":")"),et=pA(e),At=BA(A)}void 0!==V&&void 0!==V[ut]&&(at=V[ut]+" Tw\n"),0===ut?t.push(at+st(et,At,h)+rt):ot===nt?t.push(at+rt):ot===it&&t.push(at+st(et,At,h)+rt)}t=ot===nt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var lt="BT\n/";return lt+=Ct+" "+ft+" Tf\n",lt+=E(ft*w)+" TL\n",lt+=bA+"\n",lt+=p,lt+=t,ct(lt+="ET"),g[Ct]=!0,f};var We=w.__private__.clip=w.clip=function(t){return ct("evenodd"===t?"W*":"W"),this};w.clipEvenOdd=function(){return We("evenodd")},w.__private__.discardPath=w.discardPath=function(){return ct("n"),this};var Ye=w.__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};w.__private__.setDefaultPathOperation=w.setDefaultPathOperation=function(t){return Ye(t)&&(d=t),this};var Ze=w.__private__.getStyle=w.getStyle=function(t){var e=d;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},$e=w.close=function(){return ct("h"),this};w.stroke=function(){return ct("S"),this},w.fill=function(t){return tA("f",t),this},w.fillEvenOdd=function(t){return tA("f*",t),this},w.fillStroke=function(t){return tA("B",t),this},w.fillStrokeEvenOdd=function(t){return tA("B*",t),this};var tA=function(t,e){"object"==typeof e?rA(e,t):ct(t)},eA=function(t){null===t||y===C.ADVANCED&&void 0===t||(t=Ze(t),ct(t))};function AA(t,e,A,r,n){var i=new I(e||this.boundingBox,A||this.xStep,r||this.yStep,this.gState,n||this.matrix);i.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return qt(o,i),i}var rA=function(t,e){var A=_t[t.key],r=St[A];if(r instanceof x)ct("q"),ct(nA(e)),r.gState&&w.setGState(r.gState),ct(t.matrix.toString()+" cm"),ct("/"+A+" sh"),ct("Q");else if(r instanceof I){var n=new jt(1,0,0,-1,0,TA());t.matrix&&(n=n.multiply(t.matrix||Vt),A=AA.call(r,t.key,t.boundingBox,t.xStep,t.yStep,n).id),ct("q"),ct("/Pattern cs"),ct("/"+A+" scn"),r.gState&&w.setGState(r.gState),ct(e),ct("Q")}},nA=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"}},iA=w.moveTo=function(t,e){return ct(E(K(t))+" "+E(k(e))+" m"),this},oA=w.lineTo=function(t,e){return ct(E(K(t))+" "+E(k(e))+" l"),this},aA=w.curveTo=function(t,e,A,r,n,i){return ct([E(K(t)),E(k(e)),E(K(A)),E(k(r)),E(K(n)),E(k(i)),"c"].join(" ")),this};w.__private__.line=w.line=function(t,e,A,r,n){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||!Ye(n))throw new Error("Invalid arguments passed to jsPDF.line");return y===C.COMPAT?this.lines([[A-t,r-e]],t,e,[1,1],n||"S"):this.lines([[A-t,r-e]],t,e,[1,1]).stroke()},w.__private__.lines=w.lines=function(t,e,A,r,n,i){var o,a,s,c,u,l,h,f,d,p,B,g;if("number"==typeof t&&(g=A,A=e,e=t,t=g),r=r||[1,1],i=i||!1,isNaN(e)||isNaN(A)||!Array.isArray(t)||!Array.isArray(r)||!Ye(n)||"boolean"!=typeof i)throw new Error("Invalid arguments passed to jsPDF.lines");for(iA(e,A),o=r[0],a=r[1],c=t.length,p=e,B=A,s=0;s<c;s++)2===(u=t[s]).length?(p=u[0]*o+p,B=u[1]*a+B,oA(p,B)):(l=u[0]*o+p,h=u[1]*a+B,f=u[2]*o+p,d=u[3]*a+B,p=u[4]*o+p,B=u[5]*a+B,aA(l,h,f,d,p,B));return i&&$e(),eA(n),this},w.path=function(t){for(var e=0;e<t.length;e++){var A=t[e],r=A.c;switch(A.op){case"m":iA(r[0],r[1]);break;case"l":oA(r[0],r[1]);break;case"c":aA.apply(this,r);break;case"h":$e()}}return this},w.__private__.rect=w.rect=function(t,e,A,r,n){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||!Ye(n))throw new Error("Invalid arguments passed to jsPDF.rect");return y===C.COMPAT&&(r=-r),ct([E(K(t)),E(k(e)),E(K(A)),E(K(r)),"re"].join(" ")),eA(n),this},w.__private__.triangle=w.triangle=function(t,e,A,r,n,i,o){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||isNaN(n)||isNaN(i)||!Ye(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[A-t,r-e],[n-A,i-r],[t-n,e-i]],t,e,[1,1],o,!0),this},w.__private__.roundedRect=w.roundedRect=function(t,e,A,r,n,i,o){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||isNaN(n)||isNaN(i)||!Ye(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return n=Math.min(n,.5*A),i=Math.min(i,.5*r),this.lines([[A-2*n,0],[n*a,0,n,i-i*a,n,i],[0,r-2*i],[0,i*a,-n*a,i,-n,i],[2*n-A,0],[-n*a,0,-n,-i*a,-n,-i],[0,2*i-r],[0,-i*a,n*a,-i,n,-i]],t+n,e,[1,1],o,!0),this},w.__private__.ellipse=w.ellipse=function(t,e,A,r,n){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||!Ye(n))throw new Error("Invalid arguments passed to jsPDF.ellipse");var i=4/3*(Math.SQRT2-1)*A,o=4/3*(Math.SQRT2-1)*r;return iA(t+A,e),aA(t+A,e-o,t+i,e-r,t,e-r),aA(t-i,e-r,t-A,e-o,t-A,e),aA(t-A,e+o,t-i,e+r,t,e+r),aA(t+i,e+r,t+A,e+o,t+A,e),eA(n),this},w.__private__.circle=w.circle=function(t,e,A,r){if(isNaN(t)||isNaN(e)||isNaN(A)||!Ye(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,A,A,r)},w.setFont=function(t,e,A){return A&&(e=N(e,A)),Ct=Pe(t,e,{disableWarning:!1}),this};var sA=w.__private__.getFont=w.getFont=function(){return Et[Pe.apply(w,arguments)]};w.__private__.getFontList=w.getFontList=function(){var t,e,A={};for(t in Lt)if(Lt.hasOwnProperty(t))for(e in A[t]=[],Lt[t])Lt[t].hasOwnProperty(e)&&A[t].push(e);return A},w.addFont=function(t,e,A,r,n){var i=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==i.indexOf(arguments[3])?n=arguments[3]:arguments[3]&&-1==i.indexOf(arguments[3])&&(A=N(A,r)),n=n||"Identity-H",Fe.call(this,t,e,A,n)};var cA,uA=t.lineWidth||.200025,lA=w.__private__.setLineWidth=w.setLineWidth=function(t){return ct(E(K(t))+" w"),this};w.__private__.setLineDash=P.API.setLineDash=P.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 E(K(t))})).join(" "),e=E(K(e)),ct("["+t+"] "+e+" d"),this};var hA=w.__private__.getLineHeight=w.getLineHeight=function(){return ft*cA};w.__private__.getLineHeight=w.getLineHeight=function(){return ft*cA};var fA=w.__private__.setLineHeightFactor=w.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(cA=t),this},dA=w.__private__.getLineHeightFactor=w.getLineHeightFactor=function(){return cA};fA(t.lineHeight);var pA=w.__private__.getHorizontalCoordinate=function(t){return K(t)},BA=w.__private__.getVerticalCoordinate=function(t){return y===C.ADVANCED?t:Ot[W].mediaBox.topRightY-Ot[W].mediaBox.bottomLeftY-K(t)},gA=w.__private__.getHorizontalCoordinateString=w.getHorizontalCoordinateString=function(t){return E(pA(t))},wA=w.__private__.getVerticalCoordinateString=w.getVerticalCoordinateString=function(t){return E(BA(t))},mA=t.strokeColor||"0 G";w.__private__.getStrokeColor=w.getDrawColor=function(){return $t(mA)},w.__private__.setStrokeColor=w.setDrawColor=function(t,e,A,r){return mA=te({ch1:t,ch2:e,ch3:A,ch4:r,pdfColorType:"draw",precision:2}),ct(mA),this};var vA=t.fillColor||"0 g";w.__private__.getFillColor=w.getFillColor=function(){return $t(vA)},w.__private__.setFillColor=w.setFillColor=function(t,e,A,r){return vA=te({ch1:t,ch2:e,ch3:A,ch4:r,pdfColorType:"fill",precision:2}),ct(vA),this};var bA=t.textColor||"0 g",QA=w.__private__.getTextColor=w.getTextColor=function(){return $t(bA)};w.__private__.setTextColor=w.setTextColor=function(t,e,A,r){return bA=te({ch1:t,ch2:e,ch3:A,ch4:r,pdfColorType:"text",precision:3}),this};var CA=t.charSpace,yA=w.__private__.getCharSpace=w.getCharSpace=function(){return parseFloat(CA||0)};w.__private__.setCharSpace=w.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return CA=t,this};var FA=0;w.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},w.__private__.setLineCap=w.setLineCap=function(t){var e=w.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 FA=e,ct(e+" J"),this};var UA=0;w.__private__.setLineJoin=w.setLineJoin=function(t){var e=w.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 UA=e,ct(e+" j"),this},w.__private__.setLineMiterLimit=w.__private__.setMiterLimit=w.setLineMiterLimit=w.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ct(E(K(t))+" M"),this},w.GState=S,w.setGState=function(t){(t="string"==typeof t?xt[It[t]]:NA(null,t)).equals(Pt)||(ct("/"+t.id+" gs"),Pt=t)};var NA=function(t,e){if(!t||!It[t]){var A=!1;for(var r in xt)if(xt.hasOwnProperty(r)&&xt[r].equals(e)){A=!0;break}if(A)e=xt[r];else{var n="GS"+(Object.keys(xt).length+1).toString(10);xt[n]=e,e.id=n}return t&&(It[t]=e.id),Rt.publish("addGState",e),e}};w.addGState=function(t,e){return NA(t,e),this},w.saveGraphicsState=function(){return ct("q"),Ht.push({key:Ct,size:ft,color:bA}),this},w.restoreGraphicsState=function(){ct("Q");var t=Ht.pop();return Ct=t.key,ft=t.size,bA=t.color,Pt=null,this},w.setCurrentTransformationMatrix=function(t){return ct(t.toString()+" cm"),this},w.comment=function(t){return ct("#"+t),this};var EA=function(t,e){var A=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return A},set:function(t){isNaN(t)||(A=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var n="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return n},set:function(t){n=t.toString()}}),this},LA=function(t,e,A,r){EA.call(this,t,e),this.type="rect";var n=A||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}}),this},HA=function(){this.page=Tt,this.currentPage=W,this.pages=nt.slice(0),this.pagesContext=Ot.slice(0),this.x=Ft,this.y=Ut,this.matrix=Nt,this.width=IA(W),this.height=TA(W),this.outputDestination=ot,this.id="",this.objectNumber=-1};HA.prototype.restore=function(){Tt=this.page,W=this.currentPage,Ot=this.pagesContext,nt=this.pages,Ft=this.x,Ut=this.y,Nt=this.matrix,PA(W,this.width),OA(W,this.height),ot=this.outputDestination};var SA=function(t,e,A,r,n){Dt.push(new HA),Tt=W=0,nt=[],Ft=t,Ut=e,Nt=n,He([A,r])},_A=function(t){if(!kt[t]){var e=new HA,A="Xo"+(Object.keys(Mt).length+1).toString(10);e.id=A,kt[t]=A,Mt[A]=e,Rt.publish("addFormObject",e),Dt.pop().restore()}};for(var xA in w.beginFormObject=function(t,e,A,r,n){return SA(t,e,A,r,n),this},w.endFormObject=function(t){return _A(t),this},w.doFormObject=function(t,e){var A=Mt[kt[t]];return ct("q"),ct(e.toString()+" cm"),ct("/"+A.id+" Do"),ct("Q"),this},w.getFormObject=function(t){var e=Mt[kt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},w.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(h(De(ke()),t),"function"==typeof h.unload&&n.setTimeout&&setTimeout(h.unload,911),this):new Promise((function(e,A){try{var r=h(De(ke()),t);"function"==typeof h.unload&&n.setTimeout&&setTimeout(h.unload,911),e(r)}catch(t){A(t.message)}}))},P.API)P.API.hasOwnProperty(xA)&&("events"===xA&&P.API.events.length?function(t,e){var A,r,n;for(n=e.length-1;-1!==n;n--)A=e[n][0],r=e[n][1],t.subscribe.apply(t,[A].concat("function"==typeof r?[r]:r))}(Rt,P.API.events):w[xA]=P.API[xA]);var IA=w.getPageWidth=function(t){return(Ot[t=t||W].mediaBox.topRightX-Ot[t].mediaBox.bottomLeftX)/yt},PA=w.setPageWidth=function(t,e){Ot[t].mediaBox.topRightX=e*yt+Ot[t].mediaBox.bottomLeftX},TA=w.getPageHeight=function(t){return(Ot[t=t||W].mediaBox.topRightY-Ot[t].mediaBox.bottomLeftY)/yt},OA=w.setPageHeight=function(t,e){Ot[t].mediaBox.topRightY=e*yt+Ot[t].mediaBox.bottomLeftY};return w.internal={pdfEscape:Le,getStyle:Ze,getFont:sA,getFontSize:pt,getCharSpace:yA,getTextColor:QA,getLineHeight:hA,getLineHeightFactor:dA,write:ut,getHorizontalCoordinate:pA,getVerticalCoordinate:BA,getCoordinateString:gA,getVerticalCoordinateString:wA,collections:{},newObject:Gt,newAdditionalObject:Wt,newObjectDeferred:Xt,newObjectDeferredBegin:Jt,getFilters:ee,putStream:Ae,events:Rt,scaleFactor:yt,pageSize:{getWidth:function(){return IA(W)},setWidth:function(t){PA(W,t)},getHeight:function(){return TA(W)},setHeight:function(t){OA(W,t)}},encryptionOptions:p,encryption:Ve,getEncryptor:qe,output:je,getNumberOfPages:Ie,pages:nt,out:ct,f2:O,f3:R,getPageInfo:Ge,getPageInfoByObjId:Xe,getCurrentPageInfo:Je,getPDFVersion:v,Point:EA,Rectangle:LA,Matrix:jt,hasHotfix:ze},Object.defineProperty(w.internal.pageSize,"width",{get:function(){return IA(W)},set:function(t){PA(W,t)},enumerable:!0,configurable:!0}),Object.defineProperty(w.internal.pageSize,"height",{get:function(){return TA(W)},set:function(t){OA(W,t)},enumerable:!0,configurable:!0}),Ue.call(w,ht),Ct="F1",Se(i,A),Rt.publish("initialized"),w}L.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},L.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},L.prototype.hexToBytes=function(t){for(var e=[],A=0;A<t.length;A+=2)e.push(String.fromCharCode(parseInt(t.substr(A,2),16)));return e.join("")},L.prototype.processOwnerPassword=function(t,e){return N(F(e).substr(0,5),t)},L.prototype.encryptor=function(t,e){let A=F(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return N(A,t)}},S.prototype.equals=function(t){var e,A="id,objectNumber,equals";if(!t||typeof t!=typeof this)return!1;var r=0;for(e in this)if(!(A.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&A.indexOf(e)<0&&r--;return 0===r},P.API={events:[]},P.version="2.3.1";var T=P.API,O=1,R=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},K=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},M=function(t){return t.toFixed(2)},k=function(t){return t.toFixed(5)};T.__acroform__={};var D=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},j=function(t){return t*O},z=function(t){var e=new st,A=Qt.internal.getHeight(t)||0,r=Qt.internal.getWidth(t)||0;return e.BBox=[0,0,Number(M(r)),Number(M(A))],e},V=T.__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},q=T.__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)},G=T.__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},X=T.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return G(t,e-1)},J=T.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return V(t,e-1)},W=T.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return q(t,e-1)},Y=T.__acroform__.calculateCoordinates=function(t,e){var A=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,n=t[0],i=t[1],o=t[2],a=t[3],s={};return s.lowerLeft_X=A(n)||0,s.lowerLeft_Y=r(i+a)||0,s.upperRight_X=A(n+o)||0,s.upperRight_Y=r(i)||0,[Number(M(s.lowerLeft_X)),Number(M(s.lowerLeft_Y)),Number(M(s.upperRight_X)),Number(M(s.upperRight_Y))]},Z=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],A=t._V||t.DV,r=$(t,A),n=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("/"+n+" "+M(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=z(t);return i.scope=t.scope,i.stream=e.join("\n"),i}},$=function(t,e){var A=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},n=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),i=A,o=Qt.internal.getHeight(t)||0;o=o<0?-o:o;var a=Qt.internal.getWidth(t)||0;a=a<0?-a:a;var s=function(e,A,r){if(e+1<n.length){var i=A+" "+n[e+1];return tt(i,t,r).width<=a-4}return!1};i++;t:for(;i>0;){e="",i--;var c,u,l=tt("3",t,i).height,h=t.multiline?o-i:(o-l)/2,f=h+=2,d=0,p=0;if(i<=0){e="(...) Tj\n",e+="% Width of Text: "+tt(e,t,i=12).width+", FieldWidth:"+a+"\n";break}var B="",g=0;for(var w in n)if(n.hasOwnProperty(w)){B=" "==(B+=n[w]+" ").substr(B.length-1)?B.substr(0,B.length-1):B;var m=parseInt(w),v=s(m,B,i),b=w>=n.length-1;if(v&&!b){B+=" ";continue}if(v||b){if(b)p=m;else if(t.multiline&&(l+2)*(g+2)+2>o)continue t}else{if(!t.multiline)continue t;if((l+2)*(g+2)+2>o)continue t;p=m}for(var Q="",C=d;C<=p;C++)Q+=n[C]+" ";switch(Q=" "==Q.substr(Q.length-1)?Q.substr(0,Q.length-1):Q,u=tt(Q,t,i).width,t.textAlign){case"right":c=a-u-2;break;case"center":c=(a-u)/2;break;case"left":default:c=2}e+=M(c)+" "+M(f)+" Td\n",e+="("+R(Q)+") Tj\n",e+=-M(c)+" 0 Td\n",f=-(i+2),u=0,d=p+1,g++,B=""}break}return r.text=e,r.fontSize=i,r},tt=function(t,e,A){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A)*1.5,width:n}},et={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},At=function(t,e){var A={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===A.type&&t.object===A.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(A)},rt=function(t,e){for(var A in t)if(t.hasOwnProperty(A)){var r=A,n=t[A];e.internal.newObjectDeferredBegin(n.objId,!0),"object"==typeof n&&"function"==typeof n.putStream&&n.putStream(),delete t[r]}},nt=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(ut.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(et)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");O=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new ct,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 A in e)if(e.hasOwnProperty(A)){var r=e[A];r.objId=void 0,r.hasAnnotation&&At(r,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 A=!t;for(var r 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(r)){var n=t[r],i=[],o=n.Rect;if(n.Rect&&(n.Rect=Y(n.Rect,e)),e.internal.newObjectDeferredBegin(n.objId,!0),n.DA=Qt.createDefaultAppearanceStream(n),"object"==typeof n&&"function"==typeof n.getKeyValueListForStream&&(i=n.getKeyValueListForStream()),n.Rect=o,n.hasAppearanceStream&&!n.appearanceStreamContent){var a=Z(n);i.push({key:"AP",value:"<</N "+a+">>"}),e.internal.acroformPlugin.xForms.push(a)}if(n.appearanceStreamContent){var s="";for(var c in n.appearanceStreamContent)if(n.appearanceStreamContent.hasOwnProperty(c)){var u=n.appearanceStreamContent[c];if(s+="/"+c+" ",s+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var r in u)if(u.hasOwnProperty(r)){var l=u[r];"function"==typeof l&&(l=l.call(e,n)),s+="/"+r+" "+l+" ",e.internal.acroformPlugin.xForms.indexOf(l)>=0||e.internal.acroformPlugin.xForms.push(l)}}else"function"==typeof(l=u)&&(l=l.call(e,n)),s+="/"+r+" "+l,e.internal.acroformPlugin.xForms.indexOf(l)>=0||e.internal.acroformPlugin.xForms.push(l);s+=">>"}i.push({key:"AP",value:"<<\n"+s+">>"})}e.internal.putStream({additionalKeyValues:i,objectId:n.objId}),e.internal.out("endobj")}A&&rt(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}},it=T.__acroform__.arrayToPdfArray=function(t,e,A){var r=function(t){return t};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(0!==i&&(n+=" "),typeof t[i]){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":"/"!==t[i].substr(0,1)?(void 0!==e&&A&&(r=A.internal.getEncryptor(e)),n+="("+R(r(t[i].toString()))+")"):n+=t[i].toString()}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ot=function(t,e,A){var r=function(t){return t};return void 0!==e&&A&&(r=A.internal.getEncryptor(e)),(t=t||"").toString(),"("+R(r(t))+")"},at=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})};at.prototype.toString=function(){return this.objId+" 0 R"},at.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},at.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 A in e)if(!1===Object.getOwnPropertyDescriptor(this,e[A]).configurable){var r=e[A],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:it(n,this.objId,this.scope)}):n instanceof at?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):"function"!=typeof n&&t.push({key:r,value:n}))}return t};var st=function(){at.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}})};D(st,at);var ct=function(){at.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)),"("+R(e(t))+")"}},set:function(e){t=e}})};D(ct,at);var ut=function(){at.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(X(t,3))},set:function(e){!0===Boolean(e)?this.F=J(t,3):this.F=W(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 A=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==A.length)return A},set:function(t){A=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[0])?0:A[0]},set:function(t){A[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[1])?0:A[1]},set:function(t){A[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[2])?0:A[2]},set:function(t){A[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!A||isNaN(A[3])?0:A[3]},set:function(t){A[3]=t}});var r="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return r},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":r=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var n=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!n||n.length<1){if(this instanceof wt)return;n="FieldObject"+ut.FieldNum++}var t=function(t){return t};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+R(t(n))+")"},set:function(t){n=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return n},set:function(t){n=t}});var i="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return i},set:function(t){i=t}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var s=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===s?50/O:s},set:function(t){s=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof wt||this instanceof vt))return ot(u,this.objId,this.scope)},set:function(t){t=t.toString(),u=t}});var l=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(l)return this instanceof pt==0?ot(l,this.objId,this.scope):l},set:function(t){t=t.toString(),l=this instanceof pt==0?"("===t.substr(0,1)?K(t.substr(1,t.length-2)):K(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof pt==1?K(l.substr(1,l.length-1)):l},set:function(t){t=t.toString(),l=this instanceof pt==1?"/"+t:t}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof pt==0?ot(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof pt==0?"("===t.substr(0,1)?K(t.substr(1,t.length-2)):K(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof pt==1?K(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof pt==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 f,d=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return d},set:function(t){t=Boolean(t),d=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(t){f=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,1):this.Ff=W(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,2):this.Ff=W(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,3):this.Ff=W(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==p)return p},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');p=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(p){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:p=2;break;case"center":case 1:p=1;break;case"left":case 0:default:p=0}}})};D(ut,at);var lt=function(){ut.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 it(e,this.objId,this.scope)},set:function(t){var A,r;r=[],"string"==typeof(A=t)&&(r=function(t,e,A){A||(A=1);for(var r,n=[];r=e.exec(t);)n.push(r[A]);return n}(A,/\((.*?)\)/g)),e=r}}),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,A){for(A=A||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==A););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,18):this.Ff=W(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=J(this.Ff,19):this.Ff=W(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=J(this.Ff,20),e.sort()):this.Ff=W(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,22):this.Ff=W(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,23):this.Ff=W(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,27):this.Ff=W(this.Ff,27)}}),this.hasAppearanceStream=!1};D(lt,ut);var ht=function(){lt.call(this),this.fontName="helvetica",this.combo=!1};D(ht,lt);var ft=function(){ht.call(this),this.combo=!0};D(ft,ht);var dt=function(){ft.call(this),this.edit=!0};D(dt,ft);var pt=function(){ut.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,15):this.Ff=W(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,16):this.Ff=W(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,17):this.Ff=W(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,26):this.Ff=W(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 A,r=[];for(A in r.push("<<"),e)r.push("/"+A+" ("+R(t(e[A]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"==typeof 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}})};D(pt,ut);var Bt=function(){pt.call(this),this.pushButton=!0};D(Bt,pt);var gt=function(){pt.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:[]}})};D(gt,pt);var wt=function(){var t,e;ut.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 A,r={};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,A=[];for(e in A.push("<<"),r)A.push("/"+e+" ("+R(t(r[e]))+")");return A.push(">>"),A.join("\n")},set:function(t){"object"==typeof t&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(t){A="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Qt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};D(wt,ut),gt.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 A=this.Kids[e];A.appearanceStreamContent=t.createAppearanceStream(A.optionName),A.caption=t.getCA()}},gt.prototype.createOption=function(t){var e=new wt;return e.Parent=this,e.optionName=t,this.Kids.push(e),Ct.call(this.scope,e),e};var mt=function(){pt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Qt.CheckBox.createAppearanceStream()};D(mt,pt);var vt=function(){ut.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,13):this.Ff=W(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,21):this.Ff=W(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,23):this.Ff=W(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,24):this.Ff=W(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,25):this.Ff=W(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,26):this.Ff=W(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}})};D(vt,ut);var bt=function(){vt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=J(this.Ff,14):this.Ff=W(this.Ff,14)}}),this.password=!0};D(bt,vt);var Qt={CheckBox:{createAppearanceStream:function(){return{N:{On:Qt.CheckBox.YesNormal},D:{On:Qt.CheckBox.YesPushDown,Off:Qt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=z(t);e.scope=t.scope;var A=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=$(t,t.caption);return A.push("0.749023 g"),A.push("0 0 "+M(Qt.internal.getWidth(t))+" "+M(Qt.internal.getHeight(t))+" re"),A.push("f"),A.push("BMC"),A.push("q"),A.push("0 0 1 rg"),A.push("/"+r+" "+M(i.fontSize)+" Tf "+n),A.push("BT"),A.push(i.text),A.push("ET"),A.push("Q"),A.push("EMC"),e.stream=A.join("\n"),e},YesNormal:function(t){var e=z(t);e.scope=t.scope;var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],i=Qt.internal.getHeight(t),o=Qt.internal.getWidth(t),a=$(t,t.caption);return n.push("1 g"),n.push("0 0 "+M(o)+" "+M(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+M(o-1)+" "+M(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+A+" "+M(a.fontSize)+" Tf "+r),n.push(a.text),n.push("ET"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=z(t);e.scope=t.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+M(Qt.internal.getWidth(t))+" "+M(Qt.internal.getHeight(t))+" re"),A.push("f"),e.stream=A.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Qt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Qt.RadioButton.Circle.YesNormal,e.D[t]=Qt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=z(t);e.scope=t.scope;var A=[],r=Qt.internal.getWidth(t)<=Qt.internal.getHeight(t)?Qt.internal.getWidth(t)/4:Qt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Qt.internal.Bezier_C,i=Number((r*n).toFixed(5));return A.push("q"),A.push("1 0 0 1 "+k(Qt.internal.getWidth(t)/2)+" "+k(Qt.internal.getHeight(t)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=z(t);e.scope=t.scope;var A=[],r=Qt.internal.getWidth(t)<=Qt.internal.getHeight(t)?Qt.internal.getWidth(t)/4:Qt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*Qt.internal.Bezier_C).toFixed(5)),o=Number((r*Qt.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+k(Qt.internal.getWidth(t)/2)+" "+k(Qt.internal.getHeight(t)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+k(Qt.internal.getWidth(t)/2)+" "+k(Qt.internal.getHeight(t)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),A.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),A.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),A.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},OffPushDown:function(t){var e=z(t);e.scope=t.scope;var A=[],r=Qt.internal.getWidth(t)<=Qt.internal.getHeight(t)?Qt.internal.getWidth(t)/4:Qt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*Qt.internal.Bezier_C).toFixed(5));return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+k(Qt.internal.getWidth(t)/2)+" "+k(Qt.internal.getHeight(t)/2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Qt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Qt.RadioButton.Cross.YesNormal,e.D[t]=Qt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=z(t);e.scope=t.scope;var A=[],r=Qt.internal.calculateCross(t);return A.push("q"),A.push("1 1 "+M(Qt.internal.getWidth(t)-2)+" "+M(Qt.internal.getHeight(t)-2)+" re"),A.push("W"),A.push("n"),A.push(M(r.x1.x)+" "+M(r.x1.y)+" m"),A.push(M(r.x2.x)+" "+M(r.x2.y)+" l"),A.push(M(r.x4.x)+" "+M(r.x4.y)+" m"),A.push(M(r.x3.x)+" "+M(r.x3.y)+" l"),A.push("s"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=z(t);e.scope=t.scope;var A=Qt.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+M(Qt.internal.getWidth(t))+" "+M(Qt.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+M(Qt.internal.getWidth(t)-2)+" "+M(Qt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(M(A.x1.x)+" "+M(A.x1.y)+" m"),r.push(M(A.x2.x)+" "+M(A.x2.y)+" l"),r.push(M(A.x4.x)+" "+M(A.x4.y)+" m"),r.push(M(A.x3.x)+" "+M(A.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=z(t);e.scope=t.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+M(Qt.internal.getWidth(t))+" "+M(Qt.internal.getHeight(t))+" re"),A.push("f"),e.stream=A.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,A=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+A}};Qt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Qt.internal.getWidth(t),A=Qt.internal.getHeight(t),r=Math.min(e,A);return{x1:{x:(e-r)/2,y:(A-r)/2+r},x2:{x:(e-r)/2+r,y:(A-r)/2},x3:{x:(e-r)/2,y:(A-r)/2},x4:{x:(e-r)/2+r,y:(A-r)/2+r}}}},Qt.internal.getWidth=function(t){var e=0;return"object"==typeof t&&(e=j(t.Rect[2])),e},Qt.internal.getHeight=function(t){var e=0;return"object"==typeof t&&(e=j(t.Rect[3])),e};var Ct=T.addField=function(t){if(nt(this,t),!(t instanceof ut))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};T.AcroFormChoiceField=lt,T.AcroFormListBox=ht,T.AcroFormComboBox=ft,T.AcroFormEditBox=dt,T.AcroFormButton=pt,T.AcroFormPushButton=Bt,T.AcroFormRadioButton=gt,T.AcroFormCheckBox=mt,T.AcroFormTextField=vt,T.AcroFormPasswordField=bt,T.AcroFormAppearance=Qt,T.AcroForm={ChoiceField:lt,ListBox:ht,ComboBox:ft,EditBox:dt,Button:pt,PushButton:Bt,RadioButton:gt,CheckBox:mt,TextField:vt,PasswordField:bt,Appearance:Qt},P.AcroForm={ChoiceField:lt,ListBox:ht,ComboBox:ft,EditBox:dt,Button:pt,PushButton:Bt,RadioButton:gt,CheckBox:mt,TextField:vt,PasswordField:bt,Appearance:Qt};var yt=P.AcroForm;
- /** @license
- * jsPDF addImage plugin
- * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
- * 2013 Chris Dowling, https://github.com/gingerchris
- * 2013 Trinh Ho, https://github.com/ineedfat
- * 2013 Edwin Alejandro Perez, https://github.com/eaparango
- * 2013 Norah Smith, https://github.com/burnburnrocket
- * 2014 Diego Casorran, https://github.com/diegocr
- * 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.
- */function Ft(t){return t.reduce((function(t,e,A){return t[e]=A,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",A={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]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var n,i;r=r||e;var o,a,s,c=e;if(y(t))for(s in A)for(o=A[s],n=0;n<o.length;n+=1){for(a=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==t[i]){a=!1;break}if(!0===a){c=s;break}}else for(s in A)for(o=A[s],n=0;n<o.length;n+=1){for(a=!0,i=0;i<o[n].length;i+=1)if(void 0!==o[n][i]&&o[n][i]!==t.charCodeAt(i)){a=!1;break}if(!0===a){c=s;break}}return c===e&&r!==e&&(c=r),c},n=function(t){for(var e=this.internal.write,A=this.internal.putStream,r=(0,this.internal.getFilters)();-1!==r.indexOf("FlateEncode");)r.splice(r.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.width}),i.push({key:"Height",value:t.height}),t.colorSpace===w.INDEXED?i.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]"}):(i.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===w.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&i.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var o="",a=0,s=t.transparency.length;a<s;a++)o+=t.transparency[a]+" "+t.transparency[a]+" ";i.push({key:"Mask",value:"["+o+"]"})}void 0!==t.sMask&&i.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(A({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:c,objectId:t.objectId}),e("endobj"),"sMask"in t&&void 0!==t.sMask){var u="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,l={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:u,data:t.sMask};"filter"in t&&(l.filter=t.filter),n.call(this,l)}if(t.colorSpace===w.INDEXED){var h=this.internal.newObject();A({data:U(new Uint8Array(t.palette)),objectId:h}),e("endobj")}},i=function(){var t=this.internal.collections.addImage_images;for(var e in t)n.call(this,t[e])},o=function(){var t,e=this.internal.collections.addImage_images,A=this.internal.write;for(var r in e)A("/I"+(t=e[r]).index,t.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},s=function(){var t=this.internal.collections.addImage_images;return a.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},h=function(e){return"function"==typeof t["process"+e.toUpperCase()]},f=function(t){return"object"==typeof t&&1===t.nodeType},d=function(e,A){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return u(unescape(r).split("base64,").pop());var n=t.loadFile(r,!0);if(void 0!==n)return n}if("CANVAS"===e.nodeName){var i;switch(A){case"PNG":i="image/png";break;case"WEBP":i="image/webp";break;case"JPEG":case"JPG":default:i="image/jpeg"}return u(e.toDataURL(i,1).split("base64,").pop())}},p=function(t){var e=this.internal.collections.addImage_images;if(e)for(var A in e)if(t===e[A].alias)return e[A]},B=function(t,e,A){return t||e||(t=-96,e=-96),t<0&&(t=-1*A.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*A.height*72/e/this.internal.scaleFactor),0===t&&(t=e*A.width/A.height),0===e&&(e=t*A.height/A.width),[t,e]},g=function(t,e,A,r,n,i){var o=B.call(this,A,r,n),a=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=s.call(this);if(A=o[0],r=o[1],u[n.index]=n,i){i*=Math.PI/180;var l=Math.cos(i),h=Math.sin(i),f=function(t){return t.toFixed(4)},d=[f(l),f(h),f(-1*h),f(l),0,0,"cm"]}this.internal.write("q"),i?(this.internal.write([1,"0","0",1,a(t),c(e+r),"cm"].join(" ")),this.internal.write(d.join(" ")),this.internal.write([a(A),"0","0",a(r),"0","0","cm"].join(" "))):this.internal.write([a(A),"0","0",a(r),a(t),c(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+n.index+" Do"),this.internal.write("Q")},w=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 m=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=t.__addimage__.sHashCode=function(t){var e,A,r=0;if("string"==typeof t)for(A=t.length,e=0;e<A;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(y(t))for(A=t.byteLength/2,e=0;e<A;e++)r=(r<<5)-r+t[e],r|=0;return r},b=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},Q=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),A=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(A={mimeType:r[1],charset:r[2],data:e[1]})}return A},C=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return C()&&t instanceof ArrayBuffer};var y=t.__addimage__.isArrayBufferView=function(t){return C()&&"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)},F=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,A=new Uint8Array(e),r=0;r<e;r++)A[r]=t.charCodeAt(r);return A},U=t.__addimage__.arrayBufferToBinaryString=function(t){try{return u(l(String.fromCharCode.apply(null,t)))}catch(e){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(t).reduce((function(t,e){return t.push(String.fromCharCode(e)),t}),[]).join("")}};t.addImage=function(){var t,A,r,n,i,o,s,c,u;if("number"==typeof arguments[1]?(A=e,r=arguments[1],n=arguments[2],i=arguments[3],o=arguments[4],s=arguments[5],c=arguments[6],u=arguments[7]):(A=arguments[1],r=arguments[2],n=arguments[3],i=arguments[4],o=arguments[5],s=arguments[6],c=arguments[7],u=arguments[8]),"object"==typeof(t=arguments[0])&&!f(t)&&"imageData"in t){var l=t;t=l.imageData,A=l.format||A||e,r=l.x||r||0,n=l.y||n||0,i=l.w||l.width||i,o=l.h||l.height||o,s=l.alias||s,c=l.compression||c,u=l.rotation||l.angle||u}var h=this.internal.getFilters();if(void 0===c&&-1!==h.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(n))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var d=N.call(this,t,A,s,c);return g.call(this,r,n,i,o,d,u),this};var N=function(A,n,i,o){var a,s,u;if("string"==typeof A&&r(A)===e){A=unescape(A);var l=E(A,!1);(""!==l||void 0!==(l=t.loadFile(A,!0)))&&(A=l)}if(f(A)&&(A=d(A,n)),n=r(A,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=i)||0===u.length)&&(i=function(t){return"string"==typeof t||y(t)?v(t):null}(A)),(a=p.call(this,i))||(C()&&(A instanceof Uint8Array||(s=A,A=F(A))),a=this["process"+n.toUpperCase()](A,c.call(this),i,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:m.NONE}(o),s)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},E=t.__addimage__.convertBase64ToBinaryString=function(t,e){var A;e="boolean"!=typeof e||e;var r,n="";if("string"==typeof t){r=null!==(A=Q(t))?A.data:t;try{n=u(r)}catch(t){if(e)throw b(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};t.getImageProperties=function(A){var n,i,o="";if(f(A)&&(A=d(A)),"string"==typeof A&&r(A)===e&&(""===(o=E(A,!1))&&(o=t.loadFile(A)||""),A=o),i=r(A),!h(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(!C()||A instanceof Uint8Array||(A=F(A)),!(n=this["process"+i.toUpperCase()](A)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=i,n}}(P.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};P.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var A,r,n,i=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(t.objId),s=t.pageContext.annotations,c=!1,u=0;u<s.length&&!c;u++)switch((A=s[u]).type){case"link":(e(A.options.url)||e(A.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var l=0;l<s.length;l++){A=s[l];var h=this.internal.pdfEscape,f=this.internal.getEncryptor(t.objId);switch(A.type){case"reference":this.internal.write(" "+A.object.objId+" 0 R ");break;case"text":var d=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),B=this.internal.getEncryptor(d.objId),g=A.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+i(A.bounds.x)+" "+o(A.bounds.y+A.bounds.h)+" "+i(A.bounds.x+A.bounds.w)+" "+o(A.bounds.y)+"] ")+"/Contents ("+h(B(A.contents))+")",n+=" /Popup "+p.objId+" 0 R",n+=" /P "+a.objId+" 0 R",n+=" /T ("+h(B(g))+") >>",d.content=n;var w=d.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+i(A.bounds.x+30)+" "+o(A.bounds.y+A.bounds.h)+" "+i(A.bounds.x+A.bounds.w+30)+" "+o(A.bounds.y)+"] ")+" /Parent "+w,A.open&&(n+=" /Open true"),n+=" >>",p.content=n,this.internal.write(d.objId,"0 R",p.objId,"0 R");break;case"freetext":r="/Rect ["+i(A.bounds.x)+" "+o(A.bounds.y)+" "+i(A.bounds.x+A.bounds.w)+" "+o(A.bounds.y+A.bounds.h)+"] ";var m=A.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+h(f(A.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+m+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(A.options.name){var v=this.annotations._nameMap[A.options.name];A.options.pageNumber=v.page,A.options.top=v.y}else A.options.top||(A.options.top=0);if(r="/Rect ["+A.finalBounds.x+" "+A.finalBounds.y+" "+A.finalBounds.w+" "+A.finalBounds.h+"] ",n="",A.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+h(f(A.options.url))+") >>";else if(A.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(A.options.pageNumber).objId+" 0 R",A.options.magFactor=A.options.magFactor||"XYZ",A.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+A.options.top+"]";break;case"FitV":A.options.left=A.options.left||0,n+=" /FitV "+A.options.left+"]";break;case"XYZ":default:var b=o(A.options.top);A.options.left=A.options.left||0,void 0===A.options.zoom&&(A.options.zoom=0),n+=" /XYZ "+A.options.left+" "+b+" "+A.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}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,A,r,n){var i=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;i.pageContext.annotations.push({finalBounds:{x:o(t),y:a(e),w:o(t+A),h:a(e+r)},options:n,type:"link"})},t.textWithLink=function(t,e,A,r){var n=this.getTextWidth(t),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,A,r),A+=.2*i,"center"===r.align&&(e-=n/2),"right"===r.align&&(e-=n),this.link(e,A-i,n,i,r),n},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(P.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]},A={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},a=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length<=2},s=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&n.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&i(t)&&e[t.charCodeAt(0)].length>=3};var u=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&i(t)&&4==e[t.charCodeAt(0)].length},l=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=A,n="",i=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(i++,"number"==typeof(r=r[t.charCodeAt(e)])&&(n+=String.fromCharCode(r),r=A,i=0),e===t.length-1&&(r=A,n+=t.charAt(e-(i-1)),e-=i-1,i=0)):(r=A,n+=t.charAt(e-i),e-=i,i=0);return n};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var h=t.__arabicParser__.getCorrectForm=function(t,e,A){return o(t)?!1===i(t)?-1:!c(t)||!o(e)&&!o(A)||!o(A)&&a(e)||a(t)&&!o(e)||a(t)&&s(e)||a(t)&&a(e)?0:u(t)&&o(e)&&!a(e)&&o(A)&&c(A)?3:a(t)||!o(A)?1:2:-1},f=function(t){var A=0,r=0,n=0,i="",a="",s="",c=(t=t||"").split("\\s+"),u=[];for(A=0;A<c.length;A+=1){for(u.push(""),r=0;r<c[A].length;r+=1)i=c[A][r],a=c[A][r-1],s=c[A][r+1],o(i)?(n=h(i,a,s),u[A]+=-1!==n?String.fromCharCode(e[i.charCodeAt(0)][n]):i):u[A]+=i;u[A]=l(u[A])}return u.join(" ")},d=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,A=[];if(Array.isArray(e)){var r=0;for(A=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?A.push([f(e[r][0]),e[r][1],e[r][2]]):A.push([f(e[r])]);t=A}else t=f(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",d])}(P.API),P.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 A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(t){A=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var n={};Object.defineProperty(this,"style",{get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var A;if("2d"!==(t=t||"2d"))return null;for(A in e)this.pdf.context2d.hasOwnProperty(A)&&(this.pdf.context2d[A]=e[A]);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}])}(P.API),
- /**
- * @license
- * ====================================================================
- * Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
- * 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
- * 2013 Lee Driscoll, https://github.com/lsdriscoll
- * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
- * 2014 James Hall, james@parall.ax
- * 2014 Diego Casorran, https://github.com/diegocr
- *
- * 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={left:0,top:0,bottom:0,right:0},A=!1,r=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(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=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 A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var n=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var A=(e=e||{}).fontSize||this.getFontSize(),n=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,o=0,a=0,s=0,c=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)}const u=e.maxWidth;u>0?"string"==typeof t?t=this.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(c.splitTextToSize(e,u))}),[])):t=Array.isArray(t)?t:[t];for(var l=0;l<t.length;l++)o<(s=this.getStringUnitWidth(t[l],{font:n})*A)&&(o=s);return 0!==o&&(a=t.length),{w:o/=i,h:Math.max((a*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/i,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var t;t=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,a=this.internal.__cell__.margins||e,s=this.internal.__cell__.tableHeaderRow,c=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+a.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=a.top,c&&s&&(this.printHeaderRow(t.lineNumber,!0),t.y+=s[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===A?"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,A,s,c,u){if(r.call(this),!s)throw new Error("No data for PDF table.");var l,h,f,d,p=[],B=[],g=[],w={},m={},v=[],b=[],Q=(u=u||{}).autoSize||!1,C=!1!==u.printHeaders,y=u.css&&void 0!==u.css["font-size"]?16*u.css["font-size"]:u.fontSize||12,F=u.margins||Object.assign({width:this.getPageWidth()},e),U="number"==typeof u.padding?u.padding:3,N=u.headerBackgroundColor||"#c8c8c8";if(n.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=F,this.internal.__cell__.table_font_size=y,this.internal.__cell__.padding=U,this.internal.__cell__.headerBackgroundColor=N,this.setFontSize(y),null==c)B=p=Object.keys(s[0]),g=p.map((function(){return"left"}));else if(Array.isArray(c)&&"object"==typeof c[0])for(p=c.map((function(t){return t.name})),B=c.map((function(t){return t.prompt||t.name||""})),g=c.map((function(t){return t.align||"left"})),l=0;l<c.length;l+=1)m[c[l].name]=c[l].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(B=p=c,g=p.map((function(){return"left"})));if(Q||Array.isArray(c)&&"string"==typeof c[0])for(l=0;l<p.length;l+=1){for(w[d=p[l]]=s.map((function(t){return t[d]})),this.setFont(void 0,"bold"),v.push(this.getTextDimensions(B[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=w[d],this.setFont(void 0,"normal"),f=0;f<h.length;f+=1)v.push(this.getTextDimensions(h[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);m[d]=Math.max.apply(null,v)+U+U,v=[]}if(C){var E={};for(l=0;l<p.length;l+=1)E[p[l]]={},E[p[l]].text=B[l],E[p[l]].align=g[l];var L=a.call(this,E,m);b=p.map((function(e){return new i(t,A,m[e],L,E[e].text,void 0,E[e].align)})),this.setTableHeaderRow(b),this.printHeaderRow(1,!1)}var H=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(l=0;l<s.length;l+=1){var S=a.call(this,s[l],m);for(f=0;f<p.length;f+=1)o.call(this,new i(t,A,m[p[f]],S,s[l][p[f]],l+2,H[p[f]]))}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=A,this};var a=function(t,e){var A=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,n=this.internal.scaleFactor;return Object.keys(t).map((function(r){var n=t[r];return this.splitTextToSize(n.hasOwnProperty("text")?n.text:n,e[r]-A-A)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/n+A+A}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(A=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var s=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1)n=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(n.y=this.internal.__cell__.margins.top||0,s.push(n)),n.lineNumber=t,this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,n);s.length>0&&this.setTableHeaderRow(s),this.setFont(void 0,"normal"),A=!1}}(P.API);var Ut={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Nt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Et=Ft(Nt),Lt=[100,200,300,400,500,600,700,800,900],Ht=Ft(Lt);function St(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),A=function(t){return Ut[t=t||"normal"]?t:"normal"}(t.style),r=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),n=function(t){return"number"==typeof Et[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:A,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:e,style:[n,A,r].join(" ")}}}function _t(t,e,A,r){var n;for(n=A;n>=0&&n<e.length;n+=r)if(t[e[n]])return t[e[n]];for(n=A;n>=0&&n<e.length;n-=r)if(t[e[n]])return t[e[n]]}var xt={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},It={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Pt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Tt(t,e,A){for(var r=(A=A||{}).defaultFontFamily||"times",n=Object.assign({},xt,A.genericFontFamilies||{}),i=null,o=null,a=0;a<e.length;++a)if(n[(i=St(e[a])).family]&&(i.family=n[i.family]),t.hasOwnProperty(i.family)){o=t[i.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+Pt(i)+"' and default family '"+r+"'.");if(o=function(t,e){if(e[t])return e[t];var A=Et[t],r=A<=Et.normal?-1:1,n=_t(e,Nt,A,r);if(!n)throw new Error("Could not find a matching font-stretch value for "+t);return n}(i.stretch,o),o=function(t,e){if(e[t])return e[t];for(var A=Ut[t],r=0;r<A.length;++r)if(e[A[r]])return e[A[r]];throw new Error("Could not find a matching font-style for "+t)}(i.style,o),!(o=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 A=Ht[t],r=_t(e,Lt,A,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Pt(i)+"'.");return o}function Ot(t){return t.trimLeft()}function Rt(t,e){for(var A=0;A<t.length;){if(t.charAt(A)===e)return[t.substring(0,A),t.substring(A+1)];A+=1}return null}function Kt(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 Mt,kt,Dt,jt=["times"];!function(t){var e,A,r,n,i,a,s,c,u,l=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 c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new a,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new a,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new h(this),e=this.internal.f2,A=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,u=new l}]);var h=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 A=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return A},set:function(t){A=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var n=0;Object.defineProperty(this,"posX",{get:function(){return n},set:function(t){isNaN(t)||(n=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=Boolean(t)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof l&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=d(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=d(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 h=null;function f(t,e){if(null===h){var A=function(t){var e=[];return Object.keys(t).forEach((function(A){t[A].forEach((function(t){var r=null;switch(t){case"bold":r={family:A,weight:"bold"};break;case"italic":r={family:A,style:"italic"};break;case"bolditalic":r={family:A,weight:"bold",style:"italic"};break;case"":case"normal":r={family:A}}null!==r&&(r.ref={name:A,style:t},e.push(r))}))})),e}(t.getFontList());h=function(t){for(var e={},A=0;A<t.length;++A){var r=St(t[A]),n=r.family,i=r.stretch,o=r.style,a=r.weight;e[n]=e[n]||{},e[n][i]=e[n][i]||{},e[n][i][o]=e[n][i][o]||{},e[n][i][o][a]=r}return e}(A.concat(e))}return h}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(t){h=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 A=e[1],r=(e[2],e[3]),n=e[4],i=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(n)[2];n="px"===o?Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(n)*this.pdf.getFontSize()):Math.floor(parseFloat(n)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(n);var a=function(t){var e,A,r=[],n=t.trim();if(""===n)return jt;if(n in It)return[It[n]];for(;""!==n;){switch(A=null,e=(n=Ot(n)).charAt(0)){case'"':case"'":A=Rt(n.substring(1),e);break;default:A=Kt(n)}if(null===A)return jt;if(r.push(A[0]),""!==(n=Ot(A[1]))&&","!==n.charAt(0))return jt;n=n.replace(/^,/,"")}return r}(i);if(this.fontFaces){var s=Tt(f(this.pdf,this.fontFaces),a.map((function(t){return{family:t,stretch:"normal",weight:r,style:A}})));this.pdf.setFont(s.ref.name,s.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===A)&&(c="bold"),"italic"===A&&(c+="italic"),0===c.length&&(c="normal");for(var u="",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<a.length;h++){if(void 0!==this.pdf.internal.getFont(a[h],c,{noFallback:!0,disableWarning:!0})){u=a[h];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(a[h],"bold",{noFallback:!0,disableWarning:!0}))u=a[h],c="bold";else if(void 0!==this.pdf.internal.getFont(a[h],"normal",{noFallback:!0,disableWarning:!0})){u=a[h],c="normal";break}}if(""===u)for(var d=0;d<a.length;d++)if(l[a[d]]){u=l[a[d]];break}u=""===u?"Times":u,this.pdf.setFont(u,c)}}}}),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,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};h.prototype.fill=function(){b.call(this,"fill",!1)},h.prototype.stroke=function(){b.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var A=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"mt",x:A.x,y:A.y}),this.ctx.lastPoint=new a(t,e)},h.prototype.closePath=function(){var t=new a(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"==typeof this.path[e+1]&&"number"==typeof this.path[e+1].x){t=new a(this.path[e+1].x,this.path[e+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"==typeof this.path[e+2]&&"number"==typeof this.path[e+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[e+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new a(t.x,t.y)},h.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var A=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"lt",x:A.x,y:A.y}),this.ctx.lastPoint=new a(A.x,A.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},h.prototype.quadraticCurveTo=function(t,e,A,r){if(isNaN(A)||isNaN(r)||isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var n=this.ctx.transform.applyToPoint(new a(A,r)),i=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"qct",x1:i.x,y1:i.y,x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},h.prototype.bezierCurveTo=function(t,e,A,r,n,i){if(isNaN(n)||isNaN(i)||isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r))throw o.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new a(n,i)),c=this.ctx.transform.applyToPoint(new a(t,e)),u=this.ctx.transform.applyToPoint(new a(A,r));this.path.push({type:"bct",x1:c.x,y1:c.y,x2:u.x,y2:u.y,x:s.x,y:s.y}),this.ctx.lastPoint=new a(s.x,s.y)},h.prototype.arc=function(t,e,A,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||isNaN(n))throw o.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(i=Boolean(i),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new a(t,e));t=s.x,e=s.y;var c=this.ctx.transform.applyToPoint(new a(0,A)),u=this.ctx.transform.applyToPoint(new a(0,0));A=Math.sqrt(Math.pow(c.x-u.x,2)+Math.pow(c.y-u.y,2))}Math.abs(n-r)>=2*Math.PI&&(r=0,n=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:A,startAngle:r,endAngle:n,counterclockwise:i})},h.prototype.arcTo=function(t,e,A,r,n){throw new Error("arcTo not implemented.")},h.prototype.rect=function(t,e,A,r){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r))throw o.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+A,e),this.lineTo(t+A,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+A,e),this.lineTo(t,e)},h.prototype.fillRect=function(t,e,A,r){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r))throw o.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var n={};"butt"!==this.lineCap&&(n.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(n.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,A,r),this.fill(),n.hasOwnProperty("lineCap")&&(this.lineCap=n.lineCap),n.hasOwnProperty("lineJoin")&&(this.lineJoin=n.lineJoin)}},h.prototype.strokeRect=function(t,e,A,r){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r))throw o.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,A,r),this.stroke())},h.prototype.clearRect=function(t,e,A,r){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r))throw o.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,A,r))},h.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,A=0;A<this.pdf.internal.getNumberOfPages();A++)this.pdf.setPage(A+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},h.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,A=0;A<this.pdf.internal.getNumberOfPages();A++)this.pdf.setPage(A+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)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(t){var e,A,r,n;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,A=0,r=0,n=0;else{var i=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==i)e=parseInt(i[1]),A=parseInt(i[2]),r=parseInt(i[3]),n=1;else if(null!==(i=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(i[1]),A=parseInt(i[2]),r=parseInt(i[3]),n=parseFloat(i[4]);else{if(n=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new f(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,A=t.substring(2,3),A+=A,r=t.substring(3,4),r+=r):(e=t.substring(1,3),A=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),A=parseInt(A,16),r=parseInt(r,16)}}return{r:e,g:A,b:r,a:n,style:t}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},B=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};h.prototype.fillText=function(t,e,A,r){if(isNaN(e)||isNaN(A)||"string"!=typeof t)throw o.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!p.call(this)){A=C.call(this,A);var n=I(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:t,x:e,y:A,scale:i,angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.strokeText=function(t,e,A,r){if(isNaN(e)||isNaN(A)||"string"!=typeof t)throw o.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!B.call(this)){r=isNaN(r)?void 0:r,A=C.call(this,A);var n=I(this.ctx.transform.rotation),i=this.ctx.transform.scaleX;E.call(this,{text:t,x:e,y:A,scale:i,renderingMode:"stroke",angle:n,align:this.textAlign,maxWidth:r})}},h.prototype.measureText=function(t){if("string"!=typeof t)throw o.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,A=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),n=e.getStringUnitWidth(t)*r/e.internal.scaleFactor,i=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new i({width:n*=Math.round(96*A/72*1e4)/1e4})},h.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var A=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(A)},h.prototype.rotate=function(t){if(isNaN(t))throw o.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},h.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw o.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var A=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(A)},h.prototype.transform=function(t,e,A,r,n,i){if(isNaN(t)||isNaN(e)||isNaN(A)||isNaN(r)||isNaN(n)||isNaN(i))throw o.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new c(t,e,A,r,n,i);this.ctx.transform=this.ctx.transform.multiply(a)},h.prototype.setTransform=function(t,e,A,r,n,i){t=isNaN(t)?1:t,e=isNaN(e)?0:e,A=isNaN(A)?0:A,r=isNaN(r)?1:r,n=isNaN(n)?0:n,i=isNaN(i)?0:i,this.ctx.transform=new c(t,e,A,r,n,i)},h.prototype.drawImage=function(t,e,A,r,n,i,o,a,u){var l=this.pdf.getImageProperties(t),h=1,f=1,d=1,p=1;void 0!==r&&void 0!==a&&(d=a/r,p=u/n,h=l.width/r*a/r,f=l.height/n*u/n),void 0===i&&(i=e,o=A,e=0,A=0),void 0!==r&&void 0===a&&(a=r,u=n),void 0===r&&void 0===a&&(a=l.width,u=l.height);for(var B,w=this.ctx.transform.decompose(),b=I(w.rotate.shx),C=new c,y=(C=(C=(C=C.multiply(w.translate)).multiply(w.skew)).multiply(w.scale)).applyToRectangle(new s(i-e*d,o-A*p,r*h,n*f)),F=g.call(this,y),U=[],N=0;N<F.length;N+=1)-1===U.indexOf(F[N])&&U.push(F[N]);if(v(U),this.autoPaging)for(var E=U[0],L=U[U.length-1],H=E;H<L+1;H++){if(this.pdf.setPage(H),0!==this.ctx.clip_path.length){var S=this.path;B=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(B,this.posX,-1*this.pdf.internal.pageSize.height*(H-1)+this.posY),Q.call(this,"fill",!0),this.path=S}var _=JSON.parse(JSON.stringify(y));_=m([_],this.posX,-1*this.pdf.internal.pageSize.height*(H-1)+this.posY)[0],this.pdf.addImage(t,"JPEG",_.x,_.y,_.w,_.h,null,null,b)}else this.pdf.addImage(t,"JPEG",y.x,y.y,y.w,y.h,null,null,b)};var g=function(t,e,A){var r=[];switch(e=e||this.pdf.internal.pageSize.width,A=A||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/A)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/A)+1),r.push(Math.floor((t.y+this.posY+t.radius)/A)+1);break;case"qct":var n=P(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(n.y/A)+1),r.push(Math.floor((n.y+n.h)/A)+1);break;case"bct":var i=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(i.y/A)+1),r.push(Math.floor((i.y+i.h)/A)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/A)+1),r.push(Math.floor((t.y+t.h+this.posY)/A)+1)}for(var o=0;o<r.length;o+=1)for(;this.pdf.internal.getNumberOfPages()<r[o];)w.call(this);return r},w=function(){var t=this.fillStyle,e=this.strokeStyle,A=this.font,r=this.lineCap,n=this.lineWidth,i=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=A,this.lineCap=r,this.lineWidth=n,this.lineJoin=i},m=function(t,e,A){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=A;case"qct":t[r].x1+=e,t[r].y1+=A;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=A}return t},v=function(t){return t.sort((function(t,e){return t-e}))},b=function(t,e){for(var A,r,n=this.fillStyle,i=this.strokeStyle,o=this.lineCap,a=this.lineWidth,s=a*this.ctx.transform.scaleX,c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),h=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var d=g.call(this,l[f]),p=0;p<d.length;p+=1)-1===h.indexOf(d[p])&&h.push(d[p]);for(var B=0;B<h.length;B++)for(;this.pdf.internal.getNumberOfPages()<h[B];)w.call(this);if(v(h),this.autoPaging)for(var b=h[0],C=h[h.length-1],y=b;y<C+1;y++){if(this.pdf.setPage(y),this.fillStyle=n,this.strokeStyle=i,this.lineCap=o,this.lineWidth=s,this.lineJoin=c,0!==this.ctx.clip_path.length){var F=this.path;A=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(A,this.posX,-1*this.pdf.internal.pageSize.height*(y-1)+this.posY),Q.call(this,t,!0),this.path=F}r=JSON.parse(JSON.stringify(u)),this.path=m(r,this.posX,-1*this.pdf.internal.pageSize.height*(y-1)+this.posY),!1!==e&&0!==y||Q.call(this,t,e),this.lineWidth=a}else this.lineWidth=s,Q.call(this,t,e),this.lineWidth=a;this.path=u},Q=function(t,e){if(("stroke"!==t||e||!B.call(this))&&("stroke"===t||e||!p.call(this))){for(var A,r,n=[],i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(i[o-1].x)&&(A=[a.x-i[o-1].x,a.y-i[o-1].y],s>0))for(;s>=0;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(A),n[s-1].abs.push(a);break}break;case"bct":A=[a.x1-i[o-1].x,a.y1-i[o-1].y,a.x2-i[o-1].x,a.y2-i[o-1].y,a.x-i[o-1].x,a.y-i[o-1].y],n[n.length-1].deltas.push(A);break;case"qct":var c=i[o-1].x+2/3*(a.x1-i[o-1].x),u=i[o-1].y+2/3*(a.y1-i[o-1].y),l=a.x+2/3*(a.x1-a.x),h=a.y+2/3*(a.y1-a.y),f=a.x,d=a.y;A=[c-i[o-1].x,u-i[o-1].y,l-i[o-1].x,h-i[o-1].y,f-i[o-1].x,d-i[o-1].y],n[n.length-1].deltas.push(A);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}r=e?null:"stroke"===t?"stroke":"fill";for(var g=0;g<n.length;g++){if(n[g].arc){for(var w=n[g].abs,m=0;m<w.length;m++){var v=w[m];"arc"===v.type?y.call(this,v.x,v.y,v.radius,v.startAngle,v.endAngle,v.counterclockwise,void 0,e):L.call(this,v.x,v.y)}F.call(this,r),this.pdf.internal.out("h")}if(!n[g].arc&&!0!==n[g].close&&!0!==n[g].begin){var b=n[g].start.x,Q=n[g].start.y;H.call(this,n[g].deltas,b,Q)}}r&&F.call(this,r),e&&U.call(this)}},C=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,A=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-A;case"top":return t+e-A;case"hanging":return t+e-2*A;case"middle":return t+e/2-A;case"ideographic":return t;case"alphabetic":default:return t}};h.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},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var y=function(t,e,A,r,n,i,o,a){for(var s=_.call(this,A,r,n,i),c=0;c<s.length;c++){var u=s[c];0===c&&N.call(this,u.x1+t,u.y1+e),S.call(this,t,e,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}a?U.call(this):F.call(this,o)},F=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},U=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(t,e){this.pdf.internal.out(A(t)+" "+r(e)+" m")},E=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 A=this.ctx.transform.applyToPoint(new a(t.x,t.y)),r=this.ctx.transform.decompose(),n=new c;n=(n=(n=n.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var i,o,u,l=this.pdf.getTextDimensions(t.text),h=this.ctx.transform.applyToRectangle(new s(t.x,t.y,l.w,l.h)),f=n.applyToRectangle(new s(t.x,t.y-l.h,l.w,l.h)),d=g.call(this,f),p=[],B=0;B<d.length;B+=1)-1===p.indexOf(d[B])&&p.push(d[B]);if(v(p),!0===this.autoPaging)for(var w=p[0],b=p[p.length-1],C=w;C<b+1;C++){if(this.pdf.setPage(C),0!==this.ctx.clip_path.length){var y=this.path;i=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=m(i,this.posX,-1*this.pdf.internal.pageSize.height*(C-1)+this.posY),Q.call(this,"fill",!0),this.path=y}var F=JSON.parse(JSON.stringify(h));F=m([F],this.posX,-1*this.pdf.internal.pageSize.height*(C-1)+this.posY)[0],t.scale>=.01&&(o=this.pdf.internal.getFontSize(),this.pdf.setFontSize(o*t.scale),u=this.lineWidth,this.lineWidth=u*t.scale),this.pdf.text(t.text,F.x,F.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(o),this.lineWidth=u)}else t.scale>=.01&&(o=this.pdf.internal.getFontSize(),this.pdf.setFontSize(o*t.scale),u=this.lineWidth,this.lineWidth=u*t.scale),this.pdf.text(t.text,A.x+this.posX,A.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(o),this.lineWidth=u)},L=function(t,e,n,i){n=n||0,i=i||0,this.pdf.internal.out(A(t+n)+" "+r(e+i)+" l")},H=function(t,e,A){return this.pdf.lines(t,e,A,null,null)},S=function(t,A,r,o,a,s,c,u){this.pdf.internal.out([e(n(r+t)),e(i(o+A)),e(n(a+t)),e(i(s+A)),e(n(c+t)),e(i(u+A)),"c"].join(" "))},_=function(t,e,A,r){for(var n=2*Math.PI,i=Math.PI/2;e>A;)e-=n;var o=Math.abs(A-e);o<n&&r&&(o=n-o);for(var a=[],s=r?-1:1,c=e;o>1e-5;){var u=c+s*Math.min(o,i);a.push(x.call(this,t,c,u)),o-=Math.abs(u-c),c=u}return a},x=function(t,e,A){var r=(A-e)/2,n=t*Math.cos(r),i=t*Math.sin(r),o=n,a=-i,s=o*o+a*a,c=s+o*n+a*i,u=4/3*(Math.sqrt(2*s*c)-c)/(o*i-a*n),l=o-u*a,h=a+u*o,f=l,d=-h,p=r+e,B=Math.cos(p),g=Math.sin(p);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:l*B-h*g,y2:l*g+h*B,x3:f*B-d*g,y3:f*g+d*B,x4:t*Math.cos(A),y4:t*Math.sin(A)}},I=function(t){return 180*t/Math.PI},P=function(t,e,A,r,n,i){var o=t+.5*(A-t),a=e+.5*(r-e),c=n+.5*(A-n),u=i+.5*(r-i),l=Math.min(t,n,o,c),h=Math.max(t,n,o,c),f=Math.min(e,i,a,u),d=Math.max(e,i,a,u);return new s(l,f,h-l,d-f)},T=function(t,e,A,r,n,i,o,a){var c,u,l,h,f,d,p,B,g,w,m,v,b,Q,C=A-t,y=r-e,F=n-A,U=i-r,N=o-n,E=a-i;for(u=0;u<41;u++)g=(p=(l=t+(c=u/40)*C)+c*((f=A+c*F)-l))+c*(f+c*(n+c*N-f)-p),w=(B=(h=e+c*y)+c*((d=r+c*U)-h))+c*(d+c*(i+c*E-d)-B),0==u?(m=g,v=w,b=g,Q=w):(m=Math.min(m,g),v=Math.min(v,w),b=Math.max(b,g),Q=Math.max(Q,w));return new s(Math.round(m),Math.round(v),Math.round(b-m),Math.round(Q-v))}}(P.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,A,r,n,i,o,a,s,c,u;for(/[^\x00-\xFF]/.test(t),A=[],r=0,n=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;n>r;r+=4)0!==(i=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(o=(i=((i=((i=((i=(i-(u=i%85))/85)-(c=i%85))/85)-(s=i%85))/85)-(a=i%85))/85)%85,A.push(o+33,a+33,s+33,c+33,u+33)):A.push(122);return function(t,e){for(var A=e;A>0;A--)t.pop()}(A,e.length),String.fromCharCode.apply(String,A)+"~>"},A=function(t){var e,A,r,n,i,o=String,a="length",s=255,c="charCodeAt",u="slice",l="replace";for(t[u](-2),t=t[u](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),r=[],n=0,i=(t+=e="uuuuu"[u](t[a]%5||5))[a];i>n;n+=5)A=52200625*(t[c](n)-33)+614125*(t[c](n+1)-33)+7225*(t[c](n+2)-33)+85*(t[c](n+3)-33)+(t[c](n+4)-33),r.push(s&A>>24,s&A>>16,s&A>>8,s&A);return function(t,e){for(var A=e;A>0;A--)t.pop()}(r,e[a]),o.fromCharCode.apply(o,r)},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 A="",r=0;r<t.length;r+=2)A+=String.fromCharCode("0x"+(t[r]+t[r+1]));return A},i=function(t){for(var e=new Uint8Array(t.length),A=t.length;A--;)e[A]=t.charCodeAt(A);return(e=Object(r["b"])(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,r){var o=0,a=t||"",s=[];for("string"==typeof(r=r||[])&&(r=[r]),o=0;o<r.length;o+=1)switch(r[o]){case"ASCII85Decode":case"/ASCII85Decode":a=A(a),s.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":a=e(a),s.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":a=n(a),s.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":a=a.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",s.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":a=i(a),s.push("/FlateDecode");break;default:throw new Error('The filter: "'+r[o]+'" is not implemented')}return{data:a,reverseChain:s.reverse().join(" ")}}}(P.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,A){return function(t,e,A){e=!1!==e,A="function"==typeof A?A:function(){};var r=void 0;try{r=function(t,e,A){var r=new XMLHttpRequest,n=0,i=function(t){var e=t.length,A=[],r=String.fromCharCode;for(n=0;n<e;n+=1)A.push(r(255&t.charCodeAt(n)));return A.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?A(i(this.responseText)):A(void 0)}),r.send(null),e&&200===r.status)return i(r.responseText)}(t,e,A)}catch(t){}return r}(t,e,A)},t.loadImageFile=t.loadFile}(P.API),
- /**
- * @license
- * Copyright (c) 2018 Erik Koopmans
- * Released under the MIT License.
- *
- * Licensed under the MIT License.
- * http://opensource.org/licenses/mit-license
- */
- function(t){function e(){return(n.html2canvas?Promise.resolve(n.html2canvas):Promise.resolve().then(A.t.bind(null,"072e",7))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(n.DOMPurify?Promise.resolve(n.DOMPurify):A.e("chunk-2d230497").then(A.t.bind(null,"ec47",7))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var i=function(t){var e=typeof 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"},o=function(t,e){var A=document.createElement(t);for(var r in e.className&&(A.className=e.className),e.innerHTML&&e.dompurify&&(A.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)A.style[r]=e.style[r];return A},a=function(t,e){for(var A=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),r=t.firstChild;r;r=r.nextSibling)!0!==e&&1===r.nodeType&&"SCRIPT"===r.nodeName||A.appendChild(a(r,e));return 1===t.nodeType&&("CANVAS"===t.nodeName?(A.width=t.width,A.height=t.height,A.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(A.value=t.value),A.addEventListener("load",(function(){A.scrollTop=t.scrollTop,A.scrollLeft=t.scrollLeft}),!0)),A},s=function t(e){var A=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),A);return(r=r.setProgress(1,t,1,[t])).set(e)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(t,e){return t.__proto__=e||s.prototype,t},s.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"}},s.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(i(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(r).then((function(e){return this.set({src:o("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.")}}))},s.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.")}},s.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:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=a(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=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(o("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"}))},s.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)}))},s.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,A=this.opt.fontFaces,r=Object.assign({async:!0,allowTaint:!0,scale:1,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 r.onrendered,e.context2d.autoPaging=!0,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.fontFaces=A,A)for(var n=0;n<A.length;++n){var i=A[n],o=i.src.find((function(t){return"truetype"===t.format}));o&&e.addFont(o.url,i.ref.name,i.ref.style)}return r.windowHeight=r.windowHeight||0,r.windowHeight=0==r.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):r.windowHeight,t(this.prop.container,r)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},s.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}))},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},s.prototype.output=function(t,e,A){return"img"===(A=A||"pdf").toLowerCase()||"image"===A.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},s.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},s.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.'}}))},s.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)}))},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},s.prototype.set=function(t){if("object"!==i(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in s.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)}))},s.prototype.get=function(t,e){return this.then((function(){var A=t in s.template.prop?this.prop[t]:this.opt[t];return e?e(A):A}))},s.prototype.setMargin=function(t){return this.then((function(){switch(i(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)},s.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||P.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}))},s.prototype.setProgress=function(t,e,A,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=A&&(this.progress.n=A),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(t,e,A,r){return this.setProgress(t?this.progress.val+t:null,e||null,A?this.progress.n+A:null,r?this.progress.stack.concat(r):null)},s.prototype.then=function(t,e){var A=this;return this.thenCore(t,e,(function(t,e){return A.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return A.updateProgress(null,t),e})).then(t,e).then((function(t){return A.updateProgress(1),t}))}))},s.prototype.thenCore=function(t,e,A){A=A||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:s.convert(Object.assign({},this),Promise.prototype),n=A.call(r,t,e);return s.convert(n,this.__proto__)},s.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},s.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},s.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return s.convert(e,this)},s.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},s.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,P.getPageSize=function(t,e,A){if("object"==typeof t){var r=t;t=r.orientation,e=r.unit||e,A=r.format||A}e=e||"mm",A=A||"a4",t=(""+(t||"P")).toLowerCase();var n,i=(""+A).toLowerCase(),o={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":n=1;break;case"mm":n=72/25.4;break;case"cm":n=72/2.54;break;case"in":n=72;break;case"px":n=.75;break;case"pc":case"em":n=12;break;case"ex":n=6;break;default:throw"Invalid unit: "+e}var a,s=0,c=0;if(o.hasOwnProperty(i))s=o[i][1]/n,c=o[i][0]/n;else try{s=A[1],c=A[0]}catch(t){throw new Error("Invalid format: "+A)}if("p"===t||"portrait"===t)t="p",c>s&&(a=c,c=s,s=a);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",s>c&&(a=c,c=s,s=a)}return{width:c,height:s,unit:e,k:n,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(St):null;var A=new s(e);return e.worker?A:A.from(t).doCallback()}}(P.API),P.API.addJS=function(t){return Dt=t,this.internal.events.subscribe("postPutResources",(function(){Mt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Mt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),kt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Dt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Mt&&void 0!==kt&&this.internal.out("/Names <</JavaScript "+Mt+" 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,A=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),n=0;n<r.length;n++){var i=r[n],o=A.exec(i);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,c=[];for(n=0;n<s;n++){var u=t.internal.newObject();c.push(u);var l=t.internal.getPageInfo(n+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),n=0;n<c.length;n++)t.internal.write("(page_"+(n+1)+")"+c[n]+" 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,A){var r={title:e,options:A,children:[]};return null==t&&(t=this.root),t.children.push(r),r},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 A=0;A<e.children.length;A++)this.genIds_r(e.children[A])},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 A=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var n=e.children[r];this.objStart(n),this.line("/Title "+this.makeString(n.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1])));var i=this.count=this.count_r({count:0},n);if(i>0&&this.line("/Count "+i),n.options&&n.options.pageNumber){var o=t.internal.getPageInfo(n.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+A(0)+" 0]")}this.objEnd()}for(var a=0;a<e.children.length;a++)this.renderItems(e.children[a])},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 A=0;A<e.children.length;A++)t.count++,this.count_r(t,e.children[A]);return t.count}}])}(P.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,A,r,n,i,o){var a,s=this.decode.DCT_DECODE,c=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=i||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(a=function(t){for(var A,r=256*t.charCodeAt(4)+t.charCodeAt(5),n=t.length,i={width:0,height:0,numcomponents:1},o=4;o<n;o+=2){if(o+=r,-1!==e.indexOf(t.charCodeAt(o+1))){A=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),i={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:A,numcomponents:t.charCodeAt(o+9)};break}r=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return i}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}c={data:t,width:a.width,height:a.height,colorSpace:o,bitsPerComponent:8,filter:s,index:A,alias:r}}return c}}(P.API);var zt,Vt,qt,Gt,Xt,Jt=function(){var t,e,A;function i(t){var e,A,r,n,i,o,a,s,c,u,l,h,f,d;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),c=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":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),n=this.readUInt16()||100,o.delay=1e3*i/n,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,e-=4),t=(null!=o?o.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(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((u=r-this.transparency.indexed.length)>0)for(f=0;0<=u?f<u:f>u;0<=u?++f:--f)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":a=(l=this.read(e)).indexOf(0),s=String.fromCharCode.apply(String,l.slice(0,a)),this.text[s]=String.fromCharCode.apply(String,l.slice(a+1));break;case"IEND":return o&&this.animation.frames.push(o),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===(d=this.colorType)||6===d,A=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*A,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")}}i.prototype.read=function(t){var e,A;for(A=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)A.push(this.data[this.pos++]);return A},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,A=new Uint8Array(this.width*this.height*e),n=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(r,o,a,s){var c,u,l,h,f,d,p,B,g,w,m,v,b,Q,C,y,F,U,N,E,L,H=Math.ceil((i.width-r)/a),S=Math.ceil((i.height-o)/s),_=i.width==H&&i.height==S;for(Q=e*H,v=_?A:new Uint8Array(Q*S),d=t.length,b=0,u=0;b<S&&n<d;){switch(t[n++]){case 0:for(h=F=0;F<Q;h=F+=1)v[u++]=t[n++];break;case 1:for(h=U=0;U<Q;h=U+=1)c=t[n++],f=h<e?0:v[u-e],v[u++]=(c+f)%256;break;case 2:for(h=N=0;N<Q;h=N+=1)c=t[n++],l=(h-h%e)/e,C=b&&v[(b-1)*Q+l*e+h%e],v[u++]=(C+c)%256;break;case 3:for(h=E=0;E<Q;h=E+=1)c=t[n++],l=(h-h%e)/e,f=h<e?0:v[u-e],C=b&&v[(b-1)*Q+l*e+h%e],v[u++]=(c+Math.floor((f+C)/2))%256;break;case 4:for(h=L=0;L<Q;h=L+=1)c=t[n++],l=(h-h%e)/e,f=h<e?0:v[u-e],0===b?C=y=0:(C=v[(b-1)*Q+l*e+h%e],y=l&&v[(b-1)*Q+(l-1)*e+h%e]),p=f+C-y,B=Math.abs(p-f),w=Math.abs(p-C),m=Math.abs(p-y),g=B<=w&&B<=m?f:w<=m?C:y,v[u++]=(c+g)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!_){var x=((o+b*s)*i.width+r)*e,I=b*Q;for(h=0;h<H;h+=1){for(var P=0;P<e;P+=1)A[x++]=v[I++];x+=(a-1)*e}}b++}}return t=Object(r["a"])(t),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),A},i.prototype.decodePalette=function(){var t,e,A,r,n,i,o,a,s;for(A=this.palette,i=this.transparency.indexed||[],n=new Uint8Array((i.length||0)+A.length),r=0,t=0,e=o=0,a=A.length;o<a;e=o+=3)n[r++]=A[e],n[r++]=A[e+1],n[r++]=A[e+2],n[r++]=null!=(s=i[t++])?s:255;return n},i.prototype.copyToImageData=function(t,e){var A,r,n,i,o,a,s,c,u,l,h;if(r=this.colors,u=null,A=this.hasAlphaChannel,this.palette.length&&(u=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,A=!0),c=(n=t.data||t).length,o=u||e,i=a=0,1===r)for(;i<c;)s=u?4*e[i/4]:a,l=o[s++],n[i++]=l,n[i++]=l,n[i++]=l,n[i++]=A?o[s++]:255,a=s;else for(;i<c;)s=u?4*e[i/4]:a,n[i++]=o[s++],n[i++]=o[s++],n[i++]=o[s++],n[i++]=A?o[s++]:255,a=s},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var o=function(){if("[object Window]"===Object.prototype.toString.call(n)){try{e=n.document.createElement("canvas"),A=e.getContext("2d")}catch(t){return!1}return!0}return!1};return o(),t=function(t){var r;if(!0===o())return A.width=t.width,A.height=t.height,A.clearRect(0,0,t.width,t.height),A.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var A,r,n,i,o,a,s,c;if(this.animation){for(c=[],r=o=0,a=(s=this.animation.frames).length;o<a;r=++o)A=s[r],n=e.createImageData(A.width,A.height),i=this.decodePixels(new Uint8Array(A.data)),this.copyToImageData(n,i),A.imageData=n,c.push(A.image=t(n));return c}},i.prototype.renderFrame=function(t,e){var A,r,n;return A=(r=this.animation.frames)[e],n=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=n?n.disposeOp:void 0)?t.clearRect(n.xOffset,n.yOffset,n.width,n.height):2===(null!=n?n.disposeOp:void 0)&&t.putImageData(n.imageData,n.xOffset,n.yOffset),0===A.blendOp&&t.clearRect(A.xOffset,A.yOffset,A.width,A.height),t.drawImage(A.image,A.xOffset,A.yOffset)},i.prototype.animate=function(t){var e,A,r,n,i,o,a=this;return A=0,o=this.animation,n=o.numFrames,r=o.frames,i=o.numPlays,(e=function(){var o,s;if(o=A++%n,s=r[o],a.renderFrame(t,o),n>1&&A/n<i)return a.animation._timeout=setTimeout(e,s.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,A;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)):(A=e.createImageData(this.width,this.height),this.copyToImageData(A,this.decodePixels()),e.putImageData(A,0,0))},i}();
- /**
- * @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 Wt(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 A=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,n=t[e++],i=n>>7,o=1<<1+(7&n);t[e++],t[e++];var a=null,s=null;i&&(a=e,s=o,e+=3*o);var c=!0,u=[],l=0,h=null,f=0,d=null;for(this.width=A,this.height=r;c&&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,d=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((N=t[e++])>=0))throw Error("Invalid block size");if(0===N)break;e+=N}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var p=t[e++];l=t[e++]|t[e++]<<8,h=t[e++],0==(1&p)&&(h=null),f=p>>2&7,e++;break;case 254:for(;;){if(!((N=t[e++])>=0))throw Error("Invalid block size");if(0===N)break;e+=N}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var B=t[e++]|t[e++]<<8,g=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,v=t[e++],b=v>>6&1,Q=1<<1+(7&v),C=a,y=s,F=!1;v>>7&&(F=!0,C=e,y=Q,e+=3*Q);var U=e;for(e++;;){var N;if(!((N=t[e++])>=0))throw Error("Invalid block size");if(0===N)break;e+=N}u.push({x:B,y:g,width:w,height:m,has_local_palette:F,palette_offset:C,palette_size:y,data_offset:U,data_length:e-U,transparent_index:h,interlaced:!!b,delay:l,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return d},this.frameInfo=function(t){if(t<0||t>=u.length)throw new Error("Frame index out of range.");return u[t]},this.decodeAndBlitFrameBGRA=function(e,r){var n=this.frameInfo(e),i=n.width*n.height,o=new Uint8Array(i);Yt(t,n.data_offset,o,i);var a=n.palette_offset,s=n.transparent_index;null===s&&(s=256);var c=n.width,u=A-c,l=c,h=4*(n.y*A+n.x),f=4*((n.y+n.height)*A+n.x),d=h,p=4*u;!0===n.interlaced&&(p+=4*A*7);for(var B=8,g=0,w=o.length;g<w;++g){var m=o[g];if(0===l&&(l=c,(d+=p)>=f&&(p=4*u+4*A*(B-1),d=h+(c+u)*(B<<1),B>>=1)),m===s)d+=4;else{var v=t[a+3*m],b=t[a+3*m+1],Q=t[a+3*m+2];r[d++]=Q,r[d++]=b,r[d++]=v,r[d++]=255}--l}},this.decodeAndBlitFrameRGBA=function(e,r){var n=this.frameInfo(e),i=n.width*n.height,o=new Uint8Array(i);Yt(t,n.data_offset,o,i);var a=n.palette_offset,s=n.transparent_index;null===s&&(s=256);var c=n.width,u=A-c,l=c,h=4*(n.y*A+n.x),f=4*((n.y+n.height)*A+n.x),d=h,p=4*u;!0===n.interlaced&&(p+=4*A*7);for(var B=8,g=0,w=o.length;g<w;++g){var m=o[g];if(0===l&&(l=c,(d+=p)>=f&&(p=4*u+4*A*(B-1),d=h+(c+u)*(B<<1),B>>=1)),m===s)d+=4;else{var v=t[a+3*m],b=t[a+3*m+1],Q=t[a+3*m+2];r[d++]=v,r[d++]=b,r[d++]=Q,r[d++]=255}--l}}}function Yt(t,e,A,r){for(var n=t[e++],i=1<<n,a=i+1,s=a+1,c=n+1,u=(1<<c)-1,l=0,h=0,f=0,d=t[e++],p=new Int32Array(4096),B=null;;){for(;l<16&&0!==d;)h|=t[e++]<<l,l+=8,1===d?d=t[e++]:--d;if(l<c)break;var g=h&u;if(h>>=c,l-=c,g!==i){if(g===a)break;for(var w=g<s?g:B,m=0,v=w;v>i;)v=p[v]>>8,++m;var b=v;if(f+m+(w!==g?1:0)>r)return void o.log("Warning, gif stream longer than expected.");A[f++]=b;var Q=f+=m;for(w!==g&&(A[f++]=b),v=w;m--;)v=p[v],A[--Q]=255&v,v>>=8;null!==B&&s<4096&&(p[s++]=B<<8|b,s>=u+1&&c<12&&(++c,u=u<<1|1)),B=g}else s=a+1,u=(1<<(c=n+1))-1,B=null}return f!==r&&o.log("Warning, gif stream shorter than expected."),A}
- /**
- * @license
- Copyright (c) 2008, Adobe Systems Incorporated
- All rights reserved.
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are
- met:
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
-
- * Neither the name of Adobe Systems Incorporated nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
- IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */function Zt(t){var e,A,r,n,i,o=Math.floor,a=new Array(64),s=new Array(64),c=new Array(64),u=new Array(64),l=new Array(65535),h=new Array(65535),f=new Array(64),d=new Array(64),p=[],B=0,g=7,w=new Array(64),m=new Array(64),v=new Array(64),b=new Array(256),Q=new Array(2048),C=[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],y=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],U=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],H=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],S=[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 _(t,e){for(var A=0,r=0,n=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)n[e[r]]=[],n[e[r]][0]=A,n[e[r]][1]=i,r++,A++;A*=2}return n}function x(t){for(var e=t[0],A=t[1]-1;A>=0;)e&1<<A&&(B|=1<<g),A--,--g<0&&(255==B?(I(255),I(0)):I(B),g=7,B=0)}function I(t){p.push(t)}function P(t){I(t>>8&255),I(255&t)}function T(t,e,A,r,n){for(var i,o=n[0],a=n[240],s=function(t,e){var A,r,n,i,o,a,s,c,u,l,h=0;for(u=0;u<8;++u){A=t[h],r=t[h+1],n=t[h+2],i=t[h+3],o=t[h+4],a=t[h+5],s=t[h+6];var d=A+(c=t[h+7]),p=A-c,B=r+s,g=r-s,w=n+a,m=n-a,v=i+o,b=i-o,Q=d+v,C=d-v,y=B+w,F=B-w;t[h]=Q+y,t[h+4]=Q-y;var U=.707106781*(F+C);t[h+2]=C+U,t[h+6]=C-U;var N=.382683433*((Q=b+m)-(F=g+p)),E=.5411961*Q+N,L=1.306562965*F+N,H=.707106781*(y=m+g),S=p+H,_=p-H;t[h+5]=_+E,t[h+3]=_-E,t[h+1]=S+L,t[h+7]=S-L,h+=8}for(h=0,u=0;u<8;++u){A=t[h],r=t[h+8],n=t[h+16],i=t[h+24],o=t[h+32],a=t[h+40],s=t[h+48];var x=A+(c=t[h+56]),I=A-c,P=r+s,T=r-s,O=n+a,R=n-a,K=i+o,M=i-o,k=x+K,D=x-K,j=P+O,z=P-O;t[h]=k+j,t[h+32]=k-j;var V=.707106781*(z+D);t[h+16]=D+V,t[h+48]=D-V;var q=.382683433*((k=M+R)-(z=T+I)),G=.5411961*k+q,X=1.306562965*z+q,J=.707106781*(j=R+T),W=I+J,Y=I-J;t[h+40]=Y+G,t[h+24]=Y-G,t[h+8]=W+X,t[h+56]=W-X,h++}for(u=0;u<64;++u)l=t[u]*e[u],f[u]=l>0?l+.5|0:l-.5|0;return f}(t,e),c=0;c<64;++c)d[C[c]]=s[c];var u=d[0]-A;A=d[0],0==u?x(r[0]):(x(r[h[i=32767+u]]),x(l[i]));for(var p=63;p>0&&0==d[p];)p--;if(0==p)return x(o),A;for(var B,g=1;g<=p;){for(var w=g;0==d[g]&&g<=p;)++g;var m=g-w;if(m>=16){B=m>>4;for(var v=1;v<=B;++v)x(a);m&=15}i=32767+d[g],x(n[(m<<4)+h[i]]),x(l[i]),g++}return 63!=p&&x(o),A}function O(t){t=Math.min(Math.max(t,1),100),i!=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],A=0;A<64;A++){var r=o((e[A]*t+50)/100);r=Math.min(Math.max(r,1),255),a[C[A]]=r}for(var n=[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],i=0;i<64;i++){var l=o((n[i]*t+50)/100);l=Math.min(Math.max(l,1),255),s[C[i]]=l}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,d=0;d<8;d++)for(var p=0;p<8;p++)c[f]=1/(a[C[f]]*h[d]*h[p]*8),u[f]=1/(s[C[f]]*h[d]*h[p]*8),f++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),i=t)}this.encode=function(t,i){i&&O(i),p=new Array,B=0,g=7,P(65496),P(65504),P(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),P(1),P(1),I(0),I(0),function(){P(65499),P(132),I(0);for(var t=0;t<64;t++)I(a[t]);I(1);for(var e=0;e<64;e++)I(s[e])}(),function(t,e){P(65472),P(17),I(8),P(e),P(t),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(t.width,t.height),function(){P(65476),P(418),I(0);for(var t=0;t<16;t++)I(y[t+1]);for(var e=0;e<=11;e++)I(F[e]);I(16);for(var A=0;A<16;A++)I(U[A+1]);for(var r=0;r<=161;r++)I(N[r]);I(1);for(var n=0;n<16;n++)I(E[n+1]);for(var i=0;i<=11;i++)I(L[i]);I(17);for(var o=0;o<16;o++)I(H[o+1]);for(var a=0;a<=161;a++)I(S[a])}(),P(65498),P(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var o=0,l=0,h=0;B=0,g=7,this.encode.displayName="_encode_";for(var f,d,b,C,_,R,K,M,k,D=t.data,j=t.width,z=t.height,V=4*j,q=0;q<z;){for(f=0;f<V;){for(_=V*q+f,K=-1,M=0,k=0;k<64;k++)R=_+(M=k>>3)*V+(K=4*(7&k)),q+M>=z&&(R-=V*(q+1+M-z)),f+K>=V&&(R-=f+K-V+4),d=D[R++],b=D[R++],C=D[R++],w[k]=(Q[d]+Q[b+256>>0]+Q[C+512>>0]>>16)-128,m[k]=(Q[d+768>>0]+Q[b+1024>>0]+Q[C+1280>>0]>>16)-128,v[k]=(Q[d+1280>>0]+Q[b+1536>>0]+Q[C+1792>>0]>>16)-128;o=T(w,c,o,e,r),l=T(m,u,l,A,n),h=T(v,u,h,A,n),f+=32}q+=8}if(g>=0){var G=[];G[1]=g+1,G[0]=(1<<g+1)-1,x(G)}return P(65497),new Uint8Array(p)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)b[e]=t(e)}(),e=_(y,F),A=_(E,L),r=_(U,N),n=_(H,S),function(){for(var t=1,e=2,A=1;A<=15;A++){for(var r=t;r<e;r++)h[32767+r]=A,l[32767+r]=[],l[32767+r][1]=A,l[32767+r][0]=r;for(var n=-(e-1);n<=-t;n++)h[32767+n]=A,l[32767+n]=[],l[32767+n][1]=A,l[32767+n][0]=e-1+n;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)Q[t]=19595*t,Q[t+256>>0]=38470*t,Q[t+512>>0]=7471*t+32768,Q[t+768>>0]=-11059*t,Q[t+1024>>0]=-21709*t,Q[t+1280>>0]=32768*t+8421375,Q[t+1536>>0]=-27439*t,Q[t+1792>>0]=-5329*t}(),O(t)}
- /**
- * @license
- * Copyright (c) 2017 Aras Abbasi
- *
- * Licensed under the MIT License.
- * http://opensource.org/licenses/mit-license
- */function $t(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 te(t){function e(t){if(!t)throw Error("assert :P")}function A(t,e,A){for(var r=0;4>r;r++)if(t[e+r]!=A.charCodeAt(r))return!0;return!1}function r(t,e,A,r,n){for(var i=0;i<n;i++)t[e+i]=A[r+i]}function n(t,e,A,r){for(var n=0;n<r;n++)t[e+n]=A}function i(t){return new Int32Array(t)}function o(t,e){for(var A=[],r=0;r<t;r++)A.push(new e);return A}function a(t,e){var A=[];return function t(A,r,n){for(var i=n[r],o=0;o<i&&(A.push(n.length>r+1?[]:new e),!(n.length<r+1));o++)t(A[o],r+1,n)}(A,0,t),A}function s(t,e){for(var A="",r=0;r<4;r++)A+=String.fromCharCode(t[e++]);return A}function c(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function u(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new(te=function(){var t=this;function s(t,e){for(var A=1<<e-1>>>0;t&A;)A>>>=1;return A?(t&A-1)+A:t}function c(t,A,r,n,i){e(!(n%r));do{t[A+(n-=r)]=i}while(0<n)}function u(t,A,r,n,o){if(e(2328>=o),512>=o)var a=i(512);else if(null==(a=i(o)))return 0;return function(t,A,r,n,o,a){var u,h,f=A,d=1<<r,p=i(16),B=i(16);for(e(0!=o),e(null!=n),e(null!=t),e(0<r),h=0;h<o;++h){if(15<n[h])return 0;++p[n[h]]}if(p[0]==o)return 0;for(B[1]=0,u=1;15>u;++u){if(p[u]>1<<u)return 0;B[u+1]=B[u]+p[u]}for(h=0;h<o;++h)u=n[h],0<n[h]&&(a[B[u]++]=h);if(1==B[15])return(n=new l).g=0,n.value=a[0],c(t,f,1,d,n),d;var g,w=-1,m=d-1,v=0,b=1,Q=1,C=1<<r;for(h=0,u=1,o=2;u<=r;++u,o<<=1){if(b+=Q<<=1,0>(Q-=p[u]))return 0;for(;0<p[u];--p[u])(n=new l).g=u,n.value=a[h++],c(t,f+v,o,C,n),v=s(v,u)}for(u=r+1,o=2;15>=u;++u,o<<=1){if(b+=Q<<=1,0>(Q-=p[u]))return 0;for(;0<p[u];--p[u]){if(n=new l,(v&m)!=w){for(f+=C,g=1<<(w=u)-r;15>w&&!(0>=(g-=p[w]));)++w,g<<=1;d+=C=1<<(g=w-r),t[A+(w=v&m)].g=g+r,t[A+w].value=f-A-w}n.g=u-r,n.value=a[h++],c(t,f+(v>>r),o,C,n),v=s(v,u)}}return b!=2*B[15]-1?0:d}(t,A,r,n,o,a)}function l(){this.value=this.g=0}function h(){this.value=this.g=0}function f(){this.G=o(5,l),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(RA,h)}function d(t,A,r,n){e(null!=t),e(null!=A),e(2147483648>n),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=A,t.pa=r,t.Jd=A,t.Yc=r+n,t.Zc=4<=n?r+n-4+1:r,U(t)}function p(t,e){for(var A=0;0<e--;)A|=E(t,128)<<e;return A}function B(t,e){var A=p(t,e);return N(t)?-A:A}function g(t,A,r,n){var i,o=0;for(e(null!=t),e(null!=A),e(4294967288>n),t.Sb=n,t.Ra=0,t.u=0,t.h=0,4<n&&(n=4),i=0;i<n;++i)o+=A[r+i]<<8*i;t.Ra=o,t.bb=n,t.oa=A,t.pa=r}function w(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<kA-8>>>0,++t.bb,t.u-=8;C(t)&&(t.h=1,t.u=0)}function m(t,A){if(e(0<=A),!t.h&&A<=MA){var r=Q(t)&KA[A];return t.u+=A,w(t),r}return t.h=1,t.u=0}function v(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Q(t){return t.Ra>>>(t.u&kA-1)>>>0}function C(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>kA}function y(t,e){t.u=e,t.h=C(t)}function F(t){t.u>=DA&&(e(t.u>=DA),w(t))}function U(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 N(t){return p(t,1)}function E(t,e){var A=t.Ca;0>t.b&&U(t);var r=t.b,n=A*e>>>8,i=(t.I>>>r>n)+0;for(i?(A-=n,t.I-=n+1<<r>>>0):A=n+1,r=A,n=0;256<=r;)n+=8,r>>=8;return r=7^n+jA[r],t.b-=r,t.Ca=(A<<r)-1,i}function L(t,e,A){t[e+0]=A>>24&255,t[e+1]=A>>16&255,t[e+2]=A>>8&255,t[e+3]=A>>0&255}function H(t,e){return t[e+0]<<0|t[e+1]<<8}function S(t,e){return H(t,e)|t[e+2]<<16}function _(t,e){return H(t,e)|H(t,e+2)<<16}function x(t,A){var r=1<<A;return e(null!=t),e(0<A),t.X=i(r),null==t.X?0:(t.Mb=32-A,t.Xa=A,1)}function I(t,A){e(null!=t),e(null!=A),e(t.Xa==A.Xa),r(A.X,0,t.X,0,1<<A.Xa)}function P(){this.X=[],this.Xa=this.Mb=0}function T(t,A,r,n){e(null!=r),e(null!=n);var i=r[0],o=n[0];return 0==i&&(i=(t*o+A/2)/A),0==o&&(o=(A*i+t/2)/t),0>=i||0>=o?0:(r[0]=i,n[0]=o,1)}function O(t,e){return t+(1<<e)-1>>>e}function R(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function K(e,A){t[A]=function(A,r,n,i,o,a,s){var c;for(c=0;c<o;++c){var u=t[e](a[s+c-1],n,i+c);a[s+c]=R(A[r+c],u)}}}function M(){this.ud=this.hd=this.jd=0}function k(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function D(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function j(t,e){return D(t+(t-e+.5>>1))}function z(t,e,A){return Math.abs(e-A)-Math.abs(t-A)}function V(t,e,A,r,n,i,o){for(r=i[o-1],A=0;A<n;++A)i[o+A]=r=R(t[e+A],r)}function q(t,e,A,r,n){var i;for(i=0;i<A;++i){var o=t[e+i],a=o>>8&255,s=16711935&(s=(s=16711935&o)+((a<<16)+a));r[n+i]=(4278255360&o)+s>>>0}}function G(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function X(t,e,A,r,n,i){var o;for(o=0;o<r;++o){var a=e[A+o],s=a>>>8,c=a,u=255&(u=(u=a>>>16)+((t.jd<<24>>24)*(s<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(s<<24>>24)>>>5)+((t.ud<<24>>24)*(u<<24>>24)>>>5)),n[i+o]=(4278255360&a)+(u<<16)+c}}function J(e,A,r,n,i){t[A]=function(t,e,A,r,o,a,s,c,u){for(r=s;r<c;++r)for(s=0;s<u;++s)o[a++]=i(A[n(t[e++])])},t[e]=function(e,A,o,a,s,c,u){var l=8>>e.b,h=e.Ea,f=e.K[0],d=e.w;if(8>l)for(e=(1<<e.b)-1,d=(1<<l)-1;A<o;++A){var p,B=0;for(p=0;p<h;++p)p&e||(B=n(a[s++])),c[u++]=i(f[B&d]),B>>=l}else t["VP8LMapColor"+r](a,s,f,d,c,u,A,o,h)}}function W(t,e,A,r,n){for(A=e+A;e<A;){var i=t[e++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=i>>0&255}}function Y(t,e,A,r,n){for(A=e+A;e<A;){var i=t[e++];r[n++]=i>>16&255,r[n++]=i>>8&255,r[n++]=i>>0&255,r[n++]=i>>24&255}}function Z(t,e,A,r,n){for(A=e+A;e<A;){var i=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;r[n++]=i,r[n++]=o}}function $(t,e,A,r,n){for(A=e+A;e<A;){var i=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[n++]=i,r[n++]=o}}function tt(t,e,A,r,n){for(A=e+A;e<A;){var i=t[e++];r[n++]=i>>0&255,r[n++]=i>>8&255,r[n++]=i>>16&255}}function et(t,e,A,n,i,o){if(0==o)for(A=e+A;e<A;)L(n,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),i+=32;else r(n,i,t,e,A)}function At(e,A){t[A][0]=t[e+"0"],t[A][1]=t[e+"1"],t[A][2]=t[e+"2"],t[A][3]=t[e+"3"],t[A][4]=t[e+"4"],t[A][5]=t[e+"5"],t[A][6]=t[e+"6"],t[A][7]=t[e+"7"],t[A][8]=t[e+"8"],t[A][9]=t[e+"9"],t[A][10]=t[e+"10"],t[A][11]=t[e+"11"],t[A][12]=t[e+"12"],t[A][13]=t[e+"13"],t[A][14]=t[e+"0"],t[A][15]=t[e+"0"]}function rt(t){return t==Dr||t==jr||t==zr||t==Vr}function nt(){this.eb=[],this.size=this.A=this.fb=0}function it(){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 ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nt,this.f.kb=new it,this.sd=null}function at(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function st(){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 ct(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ut(t,e){var A=t.T,n=e.ba.f.RGBA,i=n.eb,o=n.fb+t.ka*n.A,a=gn[e.ba.S],s=t.y,c=t.O,u=t.f,l=t.N,h=t.ea,f=t.W,d=e.cc,p=e.dc,B=e.Mc,g=e.Nc,w=t.ka,m=t.ka+t.T,v=t.U,b=v+1>>1;for(0==w?a(s,c,null,null,u,l,h,f,u,l,h,f,i,o,null,null,v):(a(e.ec,e.fc,s,c,d,p,B,g,u,l,h,f,i,o-n.A,i,o,v),++A);w+2<m;w+=2)d=u,p=l,B=h,g=f,l+=t.Rc,f+=t.Rc,o+=2*n.A,a(s,(c+=2*t.fa)-t.fa,s,c,d,p,B,g,u,l,h,f,i,o-n.A,i,o,v);return c+=t.fa,t.j+m<t.o?(r(e.ec,e.fc,s,c,v),r(e.cc,e.dc,u,l,b),r(e.Mc,e.Nc,h,f,b),A--):1&m||a(s,c,null,null,u,l,h,f,u,l,h,f,i,o+n.A,null,null,v),A}function lt(t,A,r){var n=t.F,i=[t.J];if(null!=n){var o=t.U,a=A.ba.S,s=a==Kr||a==zr;A=A.ba.f.RGBA;var c=[0],u=t.ka;c[0]=t.T,t.Kb&&(0==u?--c[0]:(--u,i[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-u));var l=A.eb;u=A.fb+u*A.A,t=yr(n,i[0],t.width,o,c,l,u+(s?0:3),A.A),e(r==c),t&&rt(a)&&Qr(l,u,s,o,c,A.A)}return 0}function ht(t){var e=t.ma,A=e.ba.S,r=11>A,n=A==Tr||A==Rr||A==Kr||A==Mr||12==A||rt(A);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!PA(e.Oa,t,n?11:12))return 0;if(n&&rt(A)&&wA(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ct,t.Kb){if(A=t.U+1>>1,e.memory=i(t.U+2*A),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+A,e.Ib=ut,wA()}}else alert("todo:EmitYUV");n&&(e.Jb=lt,r&&BA())}if(r&&!Sn){for(t=0;256>t;++t)_n[t]=89858*(t-128)+Un>>Fn,Pn[t]=-22014*(t-128)+Un,In[t]=-45773*(t-128),xn[t]=113618*(t-128)+Un>>Fn;for(t=Nn;t<En;++t)e=76283*(t-16)+Un>>Fn,Tn[t-Nn]=Vt(e,255),On[t-Nn]=Vt(e+8>>4,15);Sn=1}return 1}function ft(t){var A=t.ma,r=t.U,n=t.T;return e(!(1&t.ka)),0>=r||0>=n?0:(r=A.Ib(t,A),null!=A.Jb&&A.Jb(t,A,r),A.Dc+=r,1)}function dt(t){t.ma.memory=null}function pt(t,e,A,r){return 47!=m(t,8)?0:(e[0]=m(t,14)+1,A[0]=m(t,14)+1,r[0]=m(t,1),0!=m(t,3)?0:!t.h)}function Bt(t,e){if(4>t)return t+1;var A=t-2>>1;return(2+(1&t)<<A)+m(e,A)+1}function gt(t,e){return 120<e?e-120:1<=(A=((A=Yr[e-1])>>4)*t+(8-(15&A)))?A:1;var A}function wt(t,e,A){var r=Q(A),n=t[e+=255&r].g-8;return 0<n&&(y(A,A.u+8),r=Q(A),e+=t[e].value,e+=r&(1<<n)-1),y(A,A.u+t[e].g),t[e].value}function mt(t,A,r){return r.g+=t.g,r.value+=t.value<<A>>>0,e(8>=r.g),t.g}function vt(t,A,r){var n=t.xc;return e((A=0==n?0:t.vc[t.md*(r>>n)+(A>>n)])<t.Wb),t.Ya[A]}function bt(t,A,n,i){var o=t.ab,a=t.c*A,s=t.C;A=s+A;var c=n,u=i;for(i=t.Ta,n=t.Ua;0<o--;){var l=t.gc[o],h=s,f=A,d=c,p=u,B=(u=i,c=n,l.Ea);switch(e(h<f),e(f<=l.nc),l.hc){case 2:qA(d,p,(f-h)*B,u,c);break;case 0:var g=h,w=f,m=u,v=c,b=(U=l).Ea;0==g&&(zA(d,p,null,null,1,m,v),V(d,p+1,0,0,b-1,m,v+1),p+=b,v+=b,++g);for(var Q=1<<U.b,C=Q-1,y=O(b,U.b),F=U.K,U=U.w+(g>>U.b)*y;g<w;){var N=F,E=U,L=1;for(VA(d,p,m,v-b,1,m,v);L<b;){var H=(L&~C)+Q;H>b&&(H=b),(0,YA[N[E++]>>8&15])(d,p+ +L,m,v+L-b,H-L,m,v+L),L=H}p+=b,v+=b,++g&C||(U+=y)}f!=l.nc&&r(u,c-B,u,c+(f-h-1)*B,B);break;case 1:for(B=d,w=p,b=(d=l.Ea)-(v=d&~(m=(p=1<<l.b)-1)),g=O(d,l.b),Q=l.K,l=l.w+(h>>l.b)*g;h<f;){for(C=Q,y=l,F=new M,U=w+v,N=w+d;w<U;)G(C[y++],F),ZA(F,B,w,p,u,c),w+=p,c+=p;w<N&&(G(C[y++],F),ZA(F,B,w,b,u,c),w+=b,c+=b),++h&m||(l+=g)}break;case 3:if(d==u&&p==c&&0<l.b){for(w=u,d=B=c+(f-h)*B-(v=(f-h)*O(l.Ea,l.b)),p=u,m=c,g=[],v=(b=v)-1;0<=v;--v)g[v]=p[m+v];for(v=b-1;0<=v;--v)w[d+v]=g[v];GA(l,h,f,u,B,u,c)}else GA(l,h,f,d,p,u,c)}c=i,u=n}u!=n&&r(i,n,c,u,a)}function Qt(t,A){var r=t.V,n=t.Ba+t.c*t.C,i=A-t.C;if(e(A<=t.l.o),e(16>=i),0<i){var o=t.l,a=t.Ta,s=t.Ua,c=o.width;if(bt(t,i,r,n),i=s=[s],e((r=t.C)<(n=A)),e(o.v<o.va),n>o.o&&(n=o.o),r<o.j){var u=o.j-r;r=o.j,i[0]+=u*c}if(r>=n?r=0:(i[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=n-r,r=1),r){if(s=s[0],11>(r=t.ca).S){var l=r.f.RGBA,h=(n=r.S,i=o.U,o=o.T,u=l.eb,l.A),f=o;for(l=l.fb+t.Ma*l.A;0<f--;){var d=a,p=s,B=i,g=u,w=l;switch(n){case Pr:$A(d,p,B,g,w);break;case Tr:tr(d,p,B,g,w);break;case Dr:tr(d,p,B,g,w),Qr(g,w,0,B,1,0);break;case Or:rr(d,p,B,g,w);break;case Rr:et(d,p,B,g,w,1);break;case jr:et(d,p,B,g,w,1),Qr(g,w,0,B,1,0);break;case Kr:et(d,p,B,g,w,0);break;case zr:et(d,p,B,g,w,0),Qr(g,w,1,B,1,0);break;case Mr:er(d,p,B,g,w);break;case Vr:er(d,p,B,g,w),Cr(g,w,B,1,0);break;case kr:Ar(d,p,B,g,w);break;default:e(0)}s+=c,l+=h}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=A,e(t.C<=t.i)}function Ct(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var A=t.Ya[e].G,r=t.Ya[e].H;if(0<A[1][r[1]+0].g||0<A[2][r[2]+0].g||0<A[3][r[3]+0].g)return 0}return 1}function yt(t,A,r,n,i,o){if(0!=t.Z){var a=t.qd,s=t.rd;for(e(null!=Bn[t.Z]);A<r;++A)Bn[t.Z](a,s,n,i,n,i,o),a=n,s=i,i+=o;t.qd=a,t.rd=s}}function Ft(t,A){var r=t.l.ma,n=0==r.Z||1==r.Z?t.l.j:t.C;if(n=t.C<n?n:t.C,e(A<=t.l.o),A>n){var i=t.l.width,o=r.ca,a=r.tb+i*n,s=t.V,c=t.Ba+t.c*n,u=t.gc;e(1==t.ab),e(3==u[0].hc),JA(u[0],n,A,s,c,o,a),yt(r,n,A,o,a,i)}t.C=t.Ma=A}function Ut(t,A,r,n,i,o,a){var s=t.$/n,c=t.$%n,u=t.m,l=t.s,h=r+t.$,f=h;i=r+n*i;var d=r+n*o,p=280+l.ua,B=t.Pb?s:16777216,g=0<l.ua?l.Wa:null,w=l.wc,m=h<d?vt(l,c,s):null;e(t.C<o),e(d<=i);var v=!1;t:for(;;){for(;v||h<d;){var b=0;if(s>=B){var U=h-r;e((B=t).Pb),B.wd=B.m,B.xd=U,0<B.s.ua&&I(B.s.Wa,B.s.vb),B=s+$r}if(c&w||(m=vt(l,c,s)),e(null!=m),m.Qb&&(A[h]=m.qb,v=!0),!v)if(F(u),m.jc){b=u,U=A;var N=h,E=m.pd[Q(b)&RA-1];e(m.jc),256>E.g?(y(b,b.u+E.g),U[N]=E.value,b=0):(y(b,b.u+E.g-256),e(256<=E.value),b=E.value),0==b&&(v=!0)}else b=wt(m.G[0],m.H[0],u);if(u.h)break;if(v||256>b){if(!v)if(m.nd)A[h]=(m.qb|b<<8)>>>0;else{if(F(u),v=wt(m.G[1],m.H[1],u),F(u),U=wt(m.G[2],m.H[2],u),N=wt(m.G[3],m.H[3],u),u.h)break;A[h]=(N<<24|v<<16|b<<8|U)>>>0}if(v=!1,++h,++c>=n&&(c=0,++s,null!=a&&s<=o&&!(s%16)&&a(t,s),null!=g))for(;f<h;)b=A[f++],g.X[(506832829*b&4294967295)>>>g.Mb]=b}else if(280>b){if(b=Bt(b-256,u),U=wt(m.G[4],m.H[4],u),F(u),U=gt(n,U=Bt(U,u)),u.h)break;if(h-r<U||i-h<b)break t;for(N=0;N<b;++N)A[h+N]=A[h+N-U];for(h+=b,c+=b;c>=n;)c-=n,++s,null!=a&&s<=o&&!(s%16)&&a(t,s);if(e(h<=i),c&w&&(m=vt(l,c,s)),null!=g)for(;f<h;)b=A[f++],g.X[(506832829*b&4294967295)>>>g.Mb]=b}else{if(!(b<p))break t;for(v=b-280,e(null!=g);f<h;)b=A[f++],g.X[(506832829*b&4294967295)>>>g.Mb]=b;b=h,e(!(v>>>(U=g).Xa)),A[b]=U.X[v],v=!0}v||e(u.h==C(u))}if(t.Pb&&u.h&&h<i)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&I(t.s.vb,t.s.Wa);else{if(u.h)break t;null!=a&&a(t,s>o?o:s),t.a=0,t.$=h-r}return 1}return t.a=3,0}function Nt(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var A=t.Wa;null!=A&&(A.X=null),t.vb=null,e(null!=t)}function Et(){var e=new oA;return null==e?null:(e.a=0,e.xb=pn,At("Predictor","VP8LPredictors"),At("Predictor","VP8LPredictors_C"),At("PredictorAdd","VP8LPredictorsAdd"),At("PredictorAdd","VP8LPredictorsAdd_C"),qA=q,ZA=X,$A=W,tr=Y,er=Z,Ar=$,rr=tt,t.VP8LMapColor32b=XA,t.VP8LMapColor8b=WA,e)}function Lt(t,A,r,a,s){var c=1,h=[t],d=[A],p=a.m,B=a.s,g=null,w=0;t:for(;;){if(r)for(;c&&m(p,1);){var v=h,b=d,C=a,U=1,N=C.m,E=C.gc[C.ab],L=m(N,2);if(C.Oc&1<<L)c=0;else{switch(C.Oc|=1<<L,E.hc=L,E.Ea=v[0],E.nc=b[0],E.K=[null],++C.ab,e(4>=C.ab),L){case 0:case 1:E.b=m(N,3)+2,U=Lt(O(E.Ea,E.b),O(E.nc,E.b),0,C,E.K),E.K=E.K[0];break;case 3:var H,S=m(N,8)+1,_=16<S?0:4<S?1:2<S?2:3;if(v[0]=O(E.Ea,_),E.b=_,H=U=Lt(S,1,0,C,E.K)){var I,P=S,T=E,K=1<<(8>>T.b),M=i(K);if(null==M)H=0;else{var k=T.K[0],D=T.w;for(M[0]=T.K[0][0],I=1;I<1*P;++I)M[I]=R(k[D+I],M[I-1]);for(;I<4*K;++I)M[I]=0;T.K[0]=null,T.K[0]=M,H=1}}U=H;break;case 2:break;default:e(0)}c=U}}if(h=h[0],d=d[0],c&&m(p,1)&&!(c=1<=(w=m(p,4))&&11>=w)){a.a=3;break t}var j;if(j=c)e:{var z,V,q,G=a,X=h,J=d,W=w,Y=r,Z=G.m,$=G.s,tt=[null],et=1,At=0,rt=Zr[W];A:for(;;){if(Y&&m(Z,1)){var nt=m(Z,3)+2,it=O(X,nt),ot=O(J,nt),at=it*ot;if(!Lt(it,ot,0,G,tt))break A;for(tt=tt[0],$.xc=nt,z=0;z<at;++z){var st=tt[z]>>8&65535;tt[z]=st,st>=et&&(et=st+1)}}if(Z.h)break A;for(V=0;5>V;++V){var ct=Xr[V];!V&&0<W&&(ct+=1<<W),At<ct&&(At=ct)}var ut=o(et*rt,l),lt=et,ht=o(lt,f);if(null==ht)var ft=null;else e(65536>=lt),ft=ht;var dt=i(At);if(null==ft||null==dt||null==ut){G.a=1;break A}var pt=ut;for(z=q=0;z<et;++z){var Bt=ft[z],gt=Bt.G,wt=Bt.H,vt=0,bt=1,Qt=0;for(V=0;5>V;++V){ct=Xr[V],gt[V]=pt,wt[V]=q,!V&&0<W&&(ct+=1<<W);r:{var Ct,yt=ct,Ft=G,Et=dt,Ht=pt,St=q,_t=0,xt=Ft.m,It=m(xt,1);if(n(Et,0,0,yt),It){var Pt=m(xt,1)+1,Tt=m(xt,1),Ot=m(xt,0==Tt?1:8);Et[Ot]=1,2==Pt&&(Et[Ot=m(xt,8)]=1);var Rt=1}else{var Kt=i(19),Mt=m(xt,4)+4;if(19<Mt){Ft.a=3;var kt=0;break r}for(Ct=0;Ct<Mt;++Ct)Kt[Wr[Ct]]=m(xt,3);var Dt=void 0,jt=void 0,zt=Ft,Vt=Kt,qt=yt,Gt=Et,Xt=0,Jt=zt.m,Wt=8,Yt=o(128,l);n:for(;u(Yt,0,7,Vt,19);){if(m(Jt,1)){var Zt=2+2*m(Jt,3);if((Dt=2+m(Jt,Zt))>qt)break n}else Dt=qt;for(jt=0;jt<qt&&Dt--;){F(Jt);var $t=Yt[0+(127&Q(Jt))];y(Jt,Jt.u+$t.g);var te=$t.value;if(16>te)Gt[jt++]=te,0!=te&&(Wt=te);else{var ee=16==te,Ae=te-16,re=Gr[Ae],ne=m(Jt,qr[Ae])+re;if(jt+ne>qt)break n;for(var ie=ee?Wt:0;0<ne--;)Gt[jt++]=ie}}Xt=1;break n}Xt||(zt.a=3),Rt=Xt}(Rt=Rt&&!xt.h)&&(_t=u(Ht,St,8,Et,yt)),Rt&&0!=_t?kt=_t:(Ft.a=3,kt=0)}if(0==kt)break A;if(bt&&1==Jr[V]&&(bt=0==pt[q].g),vt+=pt[q].g,q+=kt,3>=V){var oe,ae=dt[0];for(oe=1;oe<ct;++oe)dt[oe]>ae&&(ae=dt[oe]);Qt+=ae}}if(Bt.nd=bt,Bt.Qb=0,bt&&(Bt.qb=(gt[3][wt[3]+0].value<<24|gt[1][wt[1]+0].value<<16|gt[2][wt[2]+0].value)>>>0,0==vt&&256>gt[0][wt[0]+0].value&&(Bt.Qb=1,Bt.qb+=gt[0][wt[0]+0].value<<8)),Bt.jc=!Bt.Qb&&6>Qt,Bt.jc){var se,ce=Bt;for(se=0;se<RA;++se){var ue=se,le=ce.pd[ue],he=ce.G[0][ce.H[0]+ue];256<=he.value?(le.g=he.g+256,le.value=he.value):(le.g=0,le.value=0,ue>>=mt(he,8,le),ue>>=mt(ce.G[1][ce.H[1]+ue],16,le),ue>>=mt(ce.G[2][ce.H[2]+ue],0,le),mt(ce.G[3][ce.H[3]+ue],24,le))}}}$.vc=tt,$.Wb=et,$.Ya=ft,$.yc=ut,j=1;break e}j=0}if(!(c=j)){a.a=3;break t}if(0<w){if(B.ua=1<<w,!x(B.Wa,w)){a.a=1,c=0;break t}}else B.ua=0;var fe=a,de=h,pe=d,Be=fe.s,ge=Be.xc;if(fe.c=de,fe.i=pe,Be.md=O(de,ge),Be.wc=0==ge?-1:(1<<ge)-1,r){a.xb=dn;break t}if(null==(g=i(h*d))){a.a=1,c=0;break t}c=(c=Ut(a,g,0,h,d,d,null))&&!p.h;break t}return c?(null!=s?s[0]=g:(e(null==g),e(r)),a.$=0,r||Nt(B)):Nt(B),c}function Ht(t,A){var r=t.c*t.i,n=r+A+16*A;return e(t.c<=A),t.V=i(n),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+A,1)}function St(t,A){var r=t.C,n=A-r,i=t.V,o=t.Ba+t.c*r;for(e(A<=t.l.o);0<n;){var a=16<n?16:n,s=t.l.ma,c=t.l.width,u=c*a,l=s.ca,h=s.tb+c*r,f=t.Ta,d=t.Ua;bt(t,a,i,o),Fr(f,d,l,h,u),yt(s,r,r+a,l,h,c),n-=a,i+=a*t.c,r+=a}e(r==A),t.C=t.Ma=A}function _t(){this.ub=this.yd=this.td=this.Rb=0}function xt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function It(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Pt(){this.Yb=function(){var t=[];return function t(e,A,r){for(var n=r[A],i=0;i<n&&(e.push(r.length>A+1?[]:0),!(r.length<A+1));i++)t(e[i],A+1,r)}(t,0,[3,11]),t}()}function Tt(){this.jb=i(3),this.Wc=a([4,8],Pt),this.Xc=a([4,17],Pt)}function Ot(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Rt(){this.ld=this.La=this.dd=this.tc=0}function Kt(){this.Na=this.la=0}function Mt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function kt(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Dt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rt),this.Y=0,this.ya=Array(new kt),this.aa=0,this.l=new qt}function jt(){this.y=i(16),this.f=i(8),this.ea=i(8)}function zt(){this.cb=this.a=0,this.sc="",this.m=new v,this.Od=new _t,this.Kc=new xt,this.ed=new Ot,this.Qa=new It,this.Ic=this.$c=this.Aa=0,this.D=new Dt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,v),this.ia=0,this.pb=o(4,Mt),this.Pa=new Tt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new jt),this.Hd=0,this.rb=Array(new Kt),this.sb=0,this.wa=Array(new Rt),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 kt),this.L=this.aa=0,this.gd=a([4,2],Rt),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 qt(){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 Gt(){var t=new zt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,An||(An=Yt)),t}function Xt(t,e,A){return 0==t.a&&(t.a=e,t.sc=A,t.cb=0),0}function Jt(t,e,A){return 3<=A&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Wt(t,A){if(null==t)return 0;if(t.a=0,t.sc="OK",null==A)return Xt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=A.data,i=A.w,o=A.ha;if(4>o)return Xt(t,7,"Truncated header.");var a=r[i+0]|r[i+1]<<8|r[i+2]<<16,s=t.Od;if(s.Rb=!(1&a),s.td=a>>1&7,s.yd=a>>4&1,s.ub=a>>5,3<s.td)return Xt(t,3,"Incorrect keyframe parameters.");if(!s.yd)return Xt(t,4,"Frame not displayable.");i+=3,o-=3;var c=t.Kc;if(s.Rb){if(7>o)return Xt(t,7,"cannot parse picture header");if(!Jt(r,i,o))return Xt(t,3,"Bad code word");c.c=16383&(r[i+4]<<8|r[i+3]),c.Td=r[i+4]>>6,c.i=16383&(r[i+6]<<8|r[i+5]),c.Ud=r[i+6]>>6,i+=7,o-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,A.width=c.c,A.height=c.i,A.Da=0,A.j=0,A.v=0,A.va=A.width,A.o=A.height,A.da=0,A.ib=A.width,A.hb=A.height,A.U=A.width,A.T=A.height,n((a=t.Pa).jb,0,255,a.jb.length),e(null!=(a=t.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,n(a.Zb,0,0,a.Zb.length),n(a.Lb,0,0,a.Lb)}if(s.ub>o)return Xt(t,7,"bad partition length");d(a=t.m,r,i,s.ub),i+=s.ub,o-=s.ub,s.Rb&&(c.Ld=N(a),c.Kd=N(a)),c=t.Qa;var u,l=t.Pa;if(e(null!=a),e(null!=c),c.Cb=N(a),c.Cb){if(c.Bb=N(a),N(a)){for(c.Fb=N(a),u=0;4>u;++u)c.Zb[u]=N(a)?B(a,7):0;for(u=0;4>u;++u)c.Lb[u]=N(a)?B(a,6):0}if(c.Bb)for(u=0;3>u;++u)l.jb[u]=N(a)?p(a,8):255}else c.Bb=0;if(a.Ka)return Xt(t,3,"cannot parse segment header");if((c=t.ed).zd=N(a),c.Tb=p(a,6),c.wb=p(a,3),c.Pc=N(a),c.Pc&&N(a)){for(l=0;4>l;++l)N(a)&&(c.vd[l]=B(a,6));for(l=0;4>l;++l)N(a)&&(c.od[l]=B(a,6))}if(t.L=0==c.Tb?0:c.zd?1:2,a.Ka)return Xt(t,3,"cannot parse filter header");var h=o;if(o=u=i,i=u+h,c=h,t.Xb=(1<<p(t.m,2))-1,h<3*(l=t.Xb))r=7;else{for(u+=3*l,c-=3*l,h=0;h<l;++h){var f=r[o+0]|r[o+1]<<8|r[o+2]<<16;f>c&&(f=c),d(t.Jc[+h],r,u,f),u+=f,c-=f,o+=3}d(t.Jc[+l],r,u,c),r=u<i?0:5}if(0!=r)return Xt(t,r,"cannot parse partitions");for(r=p(u=t.m,7),o=N(u)?B(u,4):0,i=N(u)?B(u,4):0,c=N(u)?B(u,4):0,l=N(u)?B(u,4):0,u=N(u)?B(u,4):0,h=t.Qa,f=0;4>f;++f){if(h.Cb){var g=h.Zb[f];h.Fb||(g+=r)}else{if(0<f){t.pb[f]=t.pb[0];continue}g=r}var w=t.pb[f];w.Sc[0]=tn[Vt(g+o,127)],w.Sc[1]=en[Vt(g+0,127)],w.Eb[0]=2*tn[Vt(g+i,127)],w.Eb[1]=101581*en[Vt(g+c,127)]>>16,8>w.Eb[1]&&(w.Eb[1]=8),w.Qc[0]=tn[Vt(g+l,117)],w.Qc[1]=en[Vt(g+u,127)],w.lc=g+u}if(!s.Rb)return Xt(t,4,"Not a key frame.");for(N(a),s=t.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(i=0;3>i;++i)for(c=0;11>c;++c)l=E(a,cn[r][o][i][c])?p(a,8):an[r][o][i][c],s.Wc[r][o].Yb[i][c]=l;for(o=0;17>o;++o)s.Xc[r][o]=s.Wc[r][un[o]]}return t.kc=N(a),t.kc&&(t.Bd=p(a,8)),t.cb=1}function Yt(t,e,A,r,n,i,o){var a=e[n].Yb[A];for(A=0;16>n;++n){if(!E(t,a[A+0]))return n;for(;!E(t,a[A+1]);)if(a=e[++n].Yb[0],A=0,16==n)return 16;var s=e[n+1].Yb;if(E(t,a[A+2])){var c=t,u=0;if(E(c,(h=a)[(l=A)+3]))if(E(c,h[l+6])){for(a=0,l=2*(u=E(c,h[l+8]))+(h=E(c,h[l+9+u])),u=0,h=rn[l];h[a];++a)u+=u+E(c,h[a]);u+=3+(8<<l)}else E(c,h[l+7])?(u=7+2*E(c,165),u+=E(c,145)):u=5+E(c,159);else u=E(c,h[l+4])?3+E(c,h[l+5]):2;a=s[2]}else u=1,a=s[1];s=o+nn[n],0>(c=t).b&&U(c);var l,h=c.b,f=(l=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=f,c.Ca|=1,c.I-=(l+1&f)<<h,i[s]=((u^f)-f)*r[(0<n)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,n(t.zc,0,0,t.zc.length),t.ja=0}function $t(t,A){if(null==t)return 0;if(null==A)return Xt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Wt(t,A))return 0;if(e(t.cb),null==A.ac||A.ac(A)){A.ob&&(t.L=0);var a=Kn[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=A.v-a>>4,t.zb=A.j-a>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=A.o+15+a>>4,t.Hb=A.va+15+a>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var s=t.ed;for(a=0;4>a;++a){var c;if(t.Qa.Cb){var u=t.Qa.Lb[a];t.Qa.Fb||(u+=s.Tb)}else u=s.Tb;for(c=0;1>=c;++c){var l=t.gd[a][c],h=u;if(s.Pc&&(h+=s.vd[0],c&&(h+=s.od[0])),0<(h=0>h?0:63<h?63:h)){var f=h;0<s.wb&&(f=4<s.wb?f>>2:f>>1)>9-s.wb&&(f=9-s.wb),1>f&&(f=1),l.dd=f,l.tc=2*h+f,l.ld=40<=h?2:15<=h?1:0}else l.tc=0;l.La=c}}}a=0}else Xt(t,6,"Frame setup failed"),a=t.a;if(a=0==a){if(a){t.$c=0,0<t.Aa||(t.Ic=kn);t:{a=t.Ic,s=4*(f=t.za);var d=32*f,p=f+1,B=0<t.L?f*(0<t.Aa?2:1):0,g=(2==t.Aa?2:1)*f;if((l=s+832+(c=3*(16*a+Kn[t.L])/2*d)+(u=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=l)a=0;else{if(l>t.Vb){if(t.Vb=0,t.Ec=i(l),t.Fc=0,null==t.Ec){a=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+=s,t.Gd=o(d,jt),t.Hd=0,t.rb=o(p+1,Kt),t.sb=1,t.wa=B?o(B,Rt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=f),e(!0),t.oc=l,t.pc=h,h+=832,t.ya=o(g,kt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=f),t.R=16*f,t.B=8*f,f=(d=Kn[t.L])*t.R,d=d/2*t.B,t.sa=l,t.ta=h+f,t.qa=t.sa,t.ra=t.ta+16*a*t.R+d,t.Ha=t.qa,t.Ia=t.ra+8*a*t.B+d,t.$c=0,h+=c,t.mb=u?l:null,t.nb=u?h:null,e(h+u<=t.Fc+t.Vb),Zt(t),n(t.Ac,t.Bc,0,s),a=1}}if(a){if(A.ka=0,A.y=t.sa,A.O=t.ta,A.f=t.qa,A.N=t.ra,A.ea=t.Ha,A.Vd=t.Ia,A.fa=t.R,A.Rc=t.B,A.F=null,A.J=0,!Hr){for(a=-255;255>=a;++a)Ur[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Nr[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Er[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Lr[255+a]=0>a?0:255<a?255:a;Hr=1}nr=ce,ir=ie,ar=oe,sr=ae,cr=se,or=ne,ur=Xe,lr=Je,hr=Ze,fr=$e,dr=We,pr=Ye,Br=tA,gr=eA,wr=De,mr=je,vr=ze,br=Ve,hn[0]=ye,hn[1]=le,hn[2]=Qe,hn[3]=Ce,hn[4]=Fe,hn[5]=Ne,hn[6]=Ue,hn[7]=Ee,hn[8]=He,hn[9]=Le,ln[0]=ge,ln[1]=fe,ln[2]=de,ln[3]=pe,ln[4]=we,ln[5]=me,ln[6]=ve,fn[0]=Ie,fn[1]=he,fn[2]=Se,fn[3]=_e,fn[4]=Te,fn[5]=Pe,fn[6]=Oe,a=1}else a=0}a&&(a=function(t,A){for(t.M=0;t.M<t.Va;++t.M){var o,a=t.Jc[t.M&t.Xb],s=t.m,c=t;for(o=0;o<c.za;++o){var u=s,l=c,h=l.Ac,f=l.Bc+4*o,d=l.zc,p=l.ya[l.aa+o];if(l.Qa.Bb?p.$b=E(u,l.Pa.jb[0])?2+E(u,l.Pa.jb[2]):E(u,l.Pa.jb[1]):p.$b=0,l.kc&&(p.Ad=E(u,l.Bd)),p.Za=!E(u,145)+0,p.Za){var B=p.Ob,g=0;for(l=0;4>l;++l){var w,m=d[0+l];for(w=0;4>w;++w){m=sn[h[f+w]][m];for(var v=on[E(u,m[0])];0<v;)v=on[2*v+E(u,m[v])];m=-v,h[f+w]=m}r(B,g,h,f,4),g+=4,d[0+l]=m}}else m=E(u,156)?E(u,128)?1:3:E(u,163)?2:0,p.Ob[0]=m,n(h,f,m,4),n(d,0,m,4);p.Dd=E(u,142)?E(u,114)?E(u,183)?1:3:2:0}if(c.m.Ka)return Xt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(c=a,u=(s=t).rb[s.sb-1],h=s.rb[s.sb+s.ja],o=s.ya[s.aa+s.ja],f=s.kc?o.Ad:0)u.la=h.la=0,o.Za||(u.Na=h.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var b,Q;if(u=h,h=c,f=s.Pa.Xc,d=s.ya[s.aa+s.ja],p=s.pb[d.$b],l=d.ad,B=0,g=s.rb[s.sb-1],m=w=0,n(l,B,0,384),d.Za)var C=0,y=f[3];else{v=i(16);var F=u.Na+g.Na;if(F=An(h,f[1],F,p.Eb,0,v,0),u.Na=g.Na=(0<F)+0,1<F)nr(v,0,l,B);else{var U=v[0]+3>>3;for(v=0;256>v;v+=16)l[B+v]=U}C=1,y=f[0]}var N=15&u.la,L=15&g.la;for(v=0;4>v;++v){var H=1&L;for(U=Q=0;4>U;++U)N=N>>1|(H=(F=An(h,y,F=H+(1&N),p.Sc,C,l,B))>C)<<7,Q=Q<<2|(3<F?3:1<F?2:0!=l[B+0]),B+=16;N>>=4,L=L>>1|H<<7,w=(w<<8|Q)>>>0}for(y=N,C=L>>4,b=0;4>b;b+=2){for(Q=0,N=u.la>>4+b,L=g.la>>4+b,v=0;2>v;++v){for(H=1&L,U=0;2>U;++U)F=H+(1&N),N=N>>1|(H=0<(F=An(h,f[2],F,p.Qc,0,l,B)))<<3,Q=Q<<2|(3<F?3:1<F?2:0!=l[B+0]),B+=16;N>>=2,L=L>>1|H<<5}m|=Q<<4*b,y|=N<<4<<b,C|=(240&L)<<b}u.la=y,g.la=C,d.Hc=w,d.Gc=m,d.ia=43690&m?0:p.ia,f=!(w|m)}if(0<s.L&&(s.wa[s.Y+s.ja]=s.gd[o.$b][o.Za],s.wa[s.Y+s.ja].La|=!f),c.Ka)return Xt(t,7,"Premature end-of-file encountered.")}if(Zt(t),s=A,c=1,o=(a=t).D,u=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)t:{if(o.M=a.M,o.uc=u,xA(a,o),c=1,o=(Q=a.D).Nb,u=(m=Kn[a.L])*a.R,h=m/2*a.B,v=16*o*a.R,U=8*o*a.B,f=a.sa,d=a.ta-u+v,p=a.qa,l=a.ra-h+U,B=a.Ha,g=a.Ia-h+U,L=0==(N=Q.M),w=N>=a.Va-1,2==a.Aa&&xA(a,Q),Q.uc)for(H=(F=a).D.M,e(F.D.uc),Q=F.yb;Q<F.Hb;++Q){C=Q,y=H;var S=(_=(k=F).D).Nb;b=k.R;var _=_.wa[_.Y+C],x=k.sa,I=k.ta+16*S*b+16*C,P=_.dd,T=_.tc;if(0!=T)if(e(3<=T),1==k.L)0<C&&mr(x,I,b,T+4),_.La&&br(x,I,b,T),0<y&&wr(x,I,b,T+4),_.La&&vr(x,I,b,T);else{var O=k.B,R=k.qa,K=k.ra+8*S*O+8*C,M=k.Ha,k=k.Ia+8*S*O+8*C;S=_.ld,0<C&&(lr(x,I,b,T+4,P,S),fr(R,K,M,k,O,T+4,P,S)),_.La&&(pr(x,I,b,T,P,S),gr(R,K,M,k,O,T,P,S)),0<y&&(ur(x,I,b,T+4,P,S),hr(R,K,M,k,O,T+4,P,S)),_.La&&(dr(x,I,b,T,P,S),Br(R,K,M,k,O,T,P,S))}}if(a.ia&&alert("todo:DitherRow"),null!=s.put){if(Q=16*N,N=16*(N+1),L?(s.y=a.sa,s.O=a.ta+v,s.f=a.qa,s.N=a.ra+U,s.ea=a.Ha,s.W=a.Ia+U):(Q-=m,s.y=f,s.O=d,s.f=p,s.N=l,s.ea=B,s.W=g),w||(N-=m),N>s.o&&(N=s.o),s.F=null,s.J=null,null!=a.Fa&&0<a.Fa.length&&Q<N&&(s.J=lA(a,s,Q,N-Q),s.F=a.mb,null==s.F&&0==s.F.length)){c=Xt(a,3,"Could not decode alpha data.");break t}Q<s.j&&(m=s.j-Q,Q=s.j,e(!(1&m)),s.O+=a.R*m,s.N+=a.B*(m>>1),s.W+=a.B*(m>>1),null!=s.F&&(s.J+=s.width*m)),Q<N&&(s.O+=s.v,s.N+=s.v>>1,s.W+=s.v>>1,null!=s.F&&(s.J+=s.v),s.ka=Q-s.j,s.U=s.va-s.v,s.T=N-Q,c=s.put(s))}o+1!=a.Ic||w||(r(a.sa,a.ta-u,f,d+16*a.R,u),r(a.qa,a.ra-h,p,l+8*a.B,h),r(a.Ha,a.Ia-h,B,g+8*a.B,h))}if(!c)return Xt(t,6,"Output aborted.")}return 1}(t,A)),null!=A.bc&&A.bc(A),a&=1}return a?(t.cb=0,a):0}function te(t,e,A,r,n){n=t[e+A+32*r]+(n>>3),t[e+A+32*r]=-256&n?0>n?0:255:n}function ee(t,e,A,r,n,i){te(t,e,0,A,r+n),te(t,e,1,A,r+i),te(t,e,2,A,r-i),te(t,e,3,A,r-n)}function Ae(t){return(20091*t>>16)+t}function re(t,e,A,r){var n,o=0,a=i(16);for(n=0;4>n;++n){var s=t[e+0]+t[e+8],c=t[e+0]-t[e+8],u=(35468*t[e+4]>>16)-Ae(t[e+12]),l=Ae(t[e+4])+(35468*t[e+12]>>16);a[o+0]=s+l,a[o+1]=c+u,a[o+2]=c-u,a[o+3]=s-l,o+=4,e++}for(n=o=0;4>n;++n)s=(t=a[o+0]+4)+a[o+8],c=t-a[o+8],u=(35468*a[o+4]>>16)-Ae(a[o+12]),te(A,r,0,0,s+(l=Ae(a[o+4])+(35468*a[o+12]>>16))),te(A,r,1,0,c+u),te(A,r,2,0,c-u),te(A,r,3,0,s-l),o++,r+=32}function ne(t,e,A,r){var n=t[e+0]+4,i=35468*t[e+4]>>16,o=Ae(t[e+4]),a=35468*t[e+1]>>16;ee(A,r,0,n+o,t=Ae(t[e+1]),a),ee(A,r,1,n+i,t,a),ee(A,r,2,n-i,t,a),ee(A,r,3,n-o,t,a)}function ie(t,e,A,r,n){re(t,e,A,r),n&&re(t,e+16,A,r+4)}function oe(t,e,A,r){ir(t,e+0,A,r,1),ir(t,e+32,A,r+128,1)}function ae(t,e,A,r){var n;for(t=t[e+0]+4,n=0;4>n;++n)for(e=0;4>e;++e)te(A,r,e,n,t)}function se(t,e,A,r){t[e+0]&&sr(t,e+0,A,r),t[e+16]&&sr(t,e+16,A,r+4),t[e+32]&&sr(t,e+32,A,r+128),t[e+48]&&sr(t,e+48,A,r+128+4)}function ce(t,e,A,r){var n,o=i(16);for(n=0;4>n;++n){var a=t[e+0+n]+t[e+12+n],s=t[e+4+n]+t[e+8+n],c=t[e+4+n]-t[e+8+n],u=t[e+0+n]-t[e+12+n];o[0+n]=a+s,o[8+n]=a-s,o[4+n]=u+c,o[12+n]=u-c}for(n=0;4>n;++n)a=(t=o[0+4*n]+3)+o[3+4*n],s=o[1+4*n]+o[2+4*n],c=o[1+4*n]-o[2+4*n],u=t-o[3+4*n],A[r+0]=a+s>>3,A[r+16]=u+c>>3,A[r+32]=a-s>>3,A[r+48]=u-c>>3,r+=64}function ue(t,e,A){var r,n=e-32,i=xr,o=255-t[n-1];for(r=0;r<A;++r){var a,s=i,c=o+t[e-1];for(a=0;a<A;++a)t[e+a]=s[c+t[n+a]];e+=32}}function le(t,e){ue(t,e,4)}function he(t,e){ue(t,e,8)}function fe(t,e){ue(t,e,16)}function de(t,e){var A;for(A=0;16>A;++A)r(t,e+32*A,t,e-32,16)}function pe(t,e){var A;for(A=16;0<A;--A)n(t,e,t[e-1],16),e+=32}function Be(t,e,A){var r;for(r=0;16>r;++r)n(e,A+32*r,t,16)}function ge(t,e){var A,r=16;for(A=0;16>A;++A)r+=t[e-1+32*A]+t[e+A-32];Be(r>>5,t,e)}function we(t,e){var A,r=8;for(A=0;16>A;++A)r+=t[e-1+32*A];Be(r>>4,t,e)}function me(t,e){var A,r=8;for(A=0;16>A;++A)r+=t[e+A-32];Be(r>>4,t,e)}function ve(t,e){Be(128,t,e)}function be(t,e,A){return t+2*e+A+2>>2}function Qe(t,e){var A,n=e-32;for(n=new Uint8Array([be(t[n-1],t[n+0],t[n+1]),be(t[n+0],t[n+1],t[n+2]),be(t[n+1],t[n+2],t[n+3]),be(t[n+2],t[n+3],t[n+4])]),A=0;4>A;++A)r(t,e+32*A,n,0,n.length)}function Ce(t,e){var A=t[e-1],r=t[e-1+32],n=t[e-1+64],i=t[e-1+96];L(t,e+0,16843009*be(t[e-1-32],A,r)),L(t,e+32,16843009*be(A,r,n)),L(t,e+64,16843009*be(r,n,i)),L(t,e+96,16843009*be(n,i,i))}function ye(t,e){var A,r=4;for(A=0;4>A;++A)r+=t[e+A-32]+t[e-1+32*A];for(r>>=3,A=0;4>A;++A)n(t,e+32*A,r,4)}function Fe(t,e){var A=t[e-1+0],r=t[e-1+32],n=t[e-1+64],i=t[e-1-32],o=t[e+0-32],a=t[e+1-32],s=t[e+2-32],c=t[e+3-32];t[e+0+96]=be(r,n,t[e-1+96]),t[e+1+96]=t[e+0+64]=be(A,r,n),t[e+2+96]=t[e+1+64]=t[e+0+32]=be(i,A,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=be(o,i,A),t[e+3+64]=t[e+2+32]=t[e+1+0]=be(a,o,i),t[e+3+32]=t[e+2+0]=be(s,a,o),t[e+3+0]=be(c,s,a)}function Ue(t,e){var A=t[e+1-32],r=t[e+2-32],n=t[e+3-32],i=t[e+4-32],o=t[e+5-32],a=t[e+6-32],s=t[e+7-32];t[e+0+0]=be(t[e+0-32],A,r),t[e+1+0]=t[e+0+32]=be(A,r,n),t[e+2+0]=t[e+1+32]=t[e+0+64]=be(r,n,i),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=be(n,i,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=be(i,o,a),t[e+3+64]=t[e+2+96]=be(o,a,s),t[e+3+96]=be(a,s,s)}function Ne(t,e){var A=t[e-1+0],r=t[e-1+32],n=t[e-1+64],i=t[e-1-32],o=t[e+0-32],a=t[e+1-32],s=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=i+o+1>>1,t[e+1+0]=t[e+2+64]=o+a+1>>1,t[e+2+0]=t[e+3+64]=a+s+1>>1,t[e+3+0]=s+c+1>>1,t[e+0+96]=be(n,r,A),t[e+0+64]=be(r,A,i),t[e+0+32]=t[e+1+96]=be(A,i,o),t[e+1+32]=t[e+2+96]=be(i,o,a),t[e+2+32]=t[e+3+96]=be(o,a,s),t[e+3+32]=be(a,s,c)}function Ee(t,e){var A=t[e+0-32],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]=A+r+1>>1,t[e+1+0]=t[e+0+64]=r+n+1>>1,t[e+2+0]=t[e+1+64]=n+i+1>>1,t[e+3+0]=t[e+2+64]=i+o+1>>1,t[e+0+32]=be(A,r,n),t[e+1+32]=t[e+0+96]=be(r,n,i),t[e+2+32]=t[e+1+96]=be(n,i,o),t[e+3+32]=t[e+2+96]=be(i,o,a),t[e+3+64]=be(o,a,s),t[e+3+96]=be(a,s,c)}function Le(t,e){var A=t[e-1+0],r=t[e-1+32],n=t[e-1+64],i=t[e-1+96];t[e+0+0]=A+r+1>>1,t[e+2+0]=t[e+0+32]=r+n+1>>1,t[e+2+32]=t[e+0+64]=n+i+1>>1,t[e+1+0]=be(A,r,n),t[e+3+0]=t[e+1+32]=be(r,n,i),t[e+3+32]=t[e+1+64]=be(n,i,i),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=i}function He(t,e){var A=t[e-1+0],r=t[e-1+32],n=t[e-1+64],i=t[e-1+96],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=A+o+1>>1,t[e+0+32]=t[e+2+64]=r+A+1>>1,t[e+0+64]=t[e+2+96]=n+r+1>>1,t[e+0+96]=i+n+1>>1,t[e+3+0]=be(a,s,c),t[e+2+0]=be(o,a,s),t[e+1+0]=t[e+3+32]=be(A,o,a),t[e+1+32]=t[e+3+64]=be(r,A,o),t[e+1+64]=t[e+3+96]=be(n,r,A),t[e+1+96]=be(i,n,r)}function Se(t,e){var A;for(A=0;8>A;++A)r(t,e+32*A,t,e-32,8)}function _e(t,e){var A;for(A=0;8>A;++A)n(t,e,t[e-1],8),e+=32}function xe(t,e,A){var r;for(r=0;8>r;++r)n(e,A+32*r,t,8)}function Ie(t,e){var A,r=8;for(A=0;8>A;++A)r+=t[e+A-32]+t[e-1+32*A];xe(r>>4,t,e)}function Pe(t,e){var A,r=4;for(A=0;8>A;++A)r+=t[e+A-32];xe(r>>3,t,e)}function Te(t,e){var A,r=4;for(A=0;8>A;++A)r+=t[e-1+32*A];xe(r>>3,t,e)}function Oe(t,e){xe(128,t,e)}function Re(t,e,A){var r=t[e-A],n=t[e+0],i=3*(n-r)+Sr[1020+t[e-2*A]-t[e+A]],o=_r[112+(i+4>>3)];t[e-A]=xr[255+r+_r[112+(i+3>>3)]],t[e+0]=xr[255+n-o]}function Ke(t,e,A,r){var n=t[e+0],i=t[e+A];return Ir[255+t[e-2*A]-t[e-A]]>r||Ir[255+i-n]>r}function Me(t,e,A,r){return 4*Ir[255+t[e-A]-t[e+0]]+Ir[255+t[e-2*A]-t[e+A]]<=r}function ke(t,e,A,r,n){var i=t[e-3*A],o=t[e-2*A],a=t[e-A],s=t[e+0],c=t[e+A],u=t[e+2*A],l=t[e+3*A];return 4*Ir[255+a-s]+Ir[255+o-c]>r?0:Ir[255+t[e-4*A]-i]<=n&&Ir[255+i-o]<=n&&Ir[255+o-a]<=n&&Ir[255+l-u]<=n&&Ir[255+u-c]<=n&&Ir[255+c-s]<=n}function De(t,e,A,r){var n=2*r+1;for(r=0;16>r;++r)Me(t,e+r,A,n)&&Re(t,e+r,A)}function je(t,e,A,r){var n=2*r+1;for(r=0;16>r;++r)Me(t,e+r*A,1,n)&&Re(t,e+r*A,1)}function ze(t,e,A,r){var n;for(n=3;0<n;--n)De(t,e+=4*A,A,r)}function Ve(t,e,A,r){var n;for(n=3;0<n;--n)je(t,e+=4,A,r)}function qe(t,e,A,r,n,i,o,a){for(i=2*i+1;0<n--;){if(ke(t,e,A,i,o))if(Ke(t,e,A,a))Re(t,e,A);else{var s=t,c=e,u=A,l=s[c-2*u],h=s[c-u],f=s[c+0],d=s[c+u],p=s[c+2*u],B=27*(w=Sr[1020+3*(f-h)+Sr[1020+l-d]])+63>>7,g=18*w+63>>7,w=9*w+63>>7;s[c-3*u]=xr[255+s[c-3*u]+w],s[c-2*u]=xr[255+l+g],s[c-u]=xr[255+h+B],s[c+0]=xr[255+f-B],s[c+u]=xr[255+d-g],s[c+2*u]=xr[255+p-w]}e+=r}}function Ge(t,e,A,r,n,i,o,a){for(i=2*i+1;0<n--;){if(ke(t,e,A,i,o))if(Ke(t,e,A,a))Re(t,e,A);else{var s=t,c=e,u=A,l=s[c-u],h=s[c+0],f=s[c+u],d=_r[112+(4+(p=3*(h-l))>>3)],p=_r[112+(p+3>>3)],B=d+1>>1;s[c-2*u]=xr[255+s[c-2*u]+B],s[c-u]=xr[255+l+p],s[c+0]=xr[255+h-d],s[c+u]=xr[255+f-B]}e+=r}}function Xe(t,e,A,r,n,i){qe(t,e,A,1,16,r,n,i)}function Je(t,e,A,r,n,i){qe(t,e,1,A,16,r,n,i)}function We(t,e,A,r,n,i){var o;for(o=3;0<o;--o)Ge(t,e+=4*A,A,1,16,r,n,i)}function Ye(t,e,A,r,n,i){var o;for(o=3;0<o;--o)Ge(t,e+=4,1,A,16,r,n,i)}function Ze(t,e,A,r,n,i,o,a){qe(t,e,n,1,8,i,o,a),qe(A,r,n,1,8,i,o,a)}function $e(t,e,A,r,n,i,o,a){qe(t,e,1,n,8,i,o,a),qe(A,r,1,n,8,i,o,a)}function tA(t,e,A,r,n,i,o,a){Ge(t,e+4*n,n,1,8,i,o,a),Ge(A,r+4*n,n,1,8,i,o,a)}function eA(t,e,A,r,n,i,o,a){Ge(t,e+4,1,n,8,i,o,a),Ge(A,r+4,1,n,8,i,o,a)}function AA(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new st,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rA(){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 nA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function iA(){this.ua=0,this.Wa=new P,this.vb=new P,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new l}function oA(){this.xb=this.a=0,this.l=new qt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new iA,this.ab=0,this.gc=o(4,nA),this.Oc=0}function aA(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sA(t,e,A,r,n,i,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)n[i+e]=t+A[r+e]&255,t=n[i+e]}function cA(t,e,A,r,n,i,o){var a;if(null==t)sA(null,null,A,r,n,i,o);else for(a=0;a<o;++a)n[i+a]=t[e+a]+A[r+a]&255}function uA(t,e,A,r,n,i,o){if(null==t)sA(null,null,A,r,n,i,o);else{var a,s=t[e+0],c=s,u=s;for(a=0;a<o;++a)c=u+(s=t[e+a])-c,u=A[r+a]+(-256&c?0>c?0:255:c)&255,c=s,n[i+a]=u}}function lA(t,A,n,o){var a=A.width,s=A.o;if(e(null!=t&&null!=A),0>n||0>=o||n+o>s)return null;if(!t.Cc){if(null==t.ga){var c;if(t.ga=new aA,(c=null==t.ga)||(c=A.width*A.o,e(0==t.Gb.length),t.Gb=i(c),t.Uc=0,null==t.Gb?c=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,c=1),c=!c),!c){c=t.ga;var u=t.Fa,l=t.P,h=t.qc,f=t.mb,d=t.nb,p=l+1,B=h-1,w=c.l;if(e(null!=u&&null!=f&&null!=A),Bn[0]=null,Bn[1]=sA,Bn[2]=cA,Bn[3]=uA,c.ca=f,c.tb=d,c.c=A.width,c.i=A.height,e(0<c.c&&0<c.i),1>=h)A=0;else if(c.$a=u[l+0]>>0&3,c.Z=u[l+0]>>2&3,c.Lc=u[l+0]>>4&3,l=u[l+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||l)A=0;else if(w.put=ft,w.ac=ht,w.bc=dt,w.ma=c,w.width=A.width,w.height=A.height,w.Da=A.Da,w.v=A.v,w.va=A.va,w.j=A.j,w.o=A.o,c.$a)t:{e(1==c.$a),A=Et();e:for(;;){if(null==A){A=0;break t}if(e(null!=c),c.mc=A,A.c=c.c,A.i=c.i,A.l=c.l,A.l.ma=c,A.l.width=c.c,A.l.height=c.i,A.a=0,g(A.m,u,p,B),!Lt(c.c,c.i,1,A,null))break e;if(1==A.ab&&3==A.gc[0].hc&&Ct(A.s)?(c.ic=1,u=A.c*A.i,A.Ta=null,A.Ua=0,A.V=i(u),A.Ba=0,null==A.V?(A.a=1,A=0):A=1):(c.ic=0,A=Ht(A,c.c)),!A)break e;A=1;break t}c.mc=null,A=0}else A=B>=c.c*c.i;c=!A}if(c)return null;1!=t.ga.Lc?t.Ga=0:o=s-n}e(null!=t.ga),e(n+o<=s);t:{if(A=(u=t.ga).c,s=u.l.o,0==u.$a){if(p=t.rc,B=t.Vc,w=t.Fa,l=t.P+1+n*A,h=t.mb,f=t.nb+n*A,e(l<=t.P+t.qc),0!=u.Z)for(e(null!=Bn[u.Z]),c=0;c<o;++c)Bn[u.Z](p,B,w,l,h,f,A),p=h,B=f,f+=A,l+=A;else for(c=0;c<o;++c)r(h,f,w,l,A),p=h,B=f,f+=A,l+=A;t.rc=p,t.Vc=B}else{if(e(null!=u.mc),A=n+o,e(null!=(c=u.mc)),e(A<=c.i),c.C>=A)A=1;else if(u.ic||BA(),u.ic){u=c.V,p=c.Ba,B=c.c;var m=c.i,v=(w=1,l=c.$/B,h=c.$%B,f=c.m,d=c.s,c.$),b=B*m,Q=B*A,y=d.wc,U=v<Q?vt(d,h,l):null;e(v<=b),e(A<=m),e(Ct(d));e:for(;;){for(;!f.h&&v<Q;){if(h&y||(U=vt(d,h,l)),e(null!=U),F(f),256>(m=wt(U.G[0],U.H[0],f)))u[p+v]=m,++v,++h>=B&&(h=0,++l<=A&&!(l%16)&&Ft(c,l));else{if(!(280>m)){w=0;break e}m=Bt(m-256,f);var N,E=wt(U.G[4],U.H[4],f);if(F(f),!(v>=(E=gt(B,E=Bt(E,f)))&&b-v>=m)){w=0;break e}for(N=0;N<m;++N)u[p+v+N]=u[p+v+N-E];for(v+=m,h+=m;h>=B;)h-=B,++l<=A&&!(l%16)&&Ft(c,l);v<Q&&h&y&&(U=vt(d,h,l))}e(f.h==C(f))}Ft(c,l>A?A:l);break e}!w||f.h&&v<b?(w=0,c.a=f.h?5:3):c.$=v,A=w}else A=Ut(c,c.V,c.Ba,c.c,c.i,A,St);if(!A){o=0;break t}}n+o>=s&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+n*a}function hA(t,e,A,r,n,i){for(;0<n--;){var o,a=t,s=e+(A?1:0),c=t,u=e+(A?0:3);for(o=0;o<r;++o){var l=c[u+4*o];255!=l&&(l*=32897,a[s+4*o+0]=a[s+4*o+0]*l>>23,a[s+4*o+1]=a[s+4*o+1]*l>>23,a[s+4*o+2]=a[s+4*o+2]*l>>23)}e+=i}}function fA(t,e,A,r,n){for(;0<r--;){var i;for(i=0;i<A;++i){var o=t[e+2*i+0],a=15&(c=t[e+2*i+1]),s=4369*a,c=(240&c|c>>4)*s>>16;t[e+2*i+0]=(240&o|o>>4)*s>>16&240|(15&o|o<<4)*s>>16>>4&15,t[e+2*i+1]=240&c|a}e+=n}}function dA(t,e,A,r,n,i,o,a){var s,c,u=255;for(c=0;c<n;++c){for(s=0;s<r;++s){var l=t[e+s];i[o+4*s]=l,u&=l}e+=A,o+=a}return 255!=u}function pA(t,e,A,r,n){var i;for(i=0;i<n;++i)A[r+i]=t[e+i]>>8}function BA(){Qr=hA,Cr=fA,yr=dA,Fr=pA}function gA(A,r,n){t[A]=function(t,A,i,o,a,s,c,u,l,h,f,d,p,B,g,w,m){var v,b=m-1>>1,Q=a[s+0]|c[u+0]<<16,C=l[h+0]|f[d+0]<<16;e(null!=t);var y=3*Q+C+131074>>2;for(r(t[A+0],255&y,y>>16,p,B),null!=i&&(y=3*C+Q+131074>>2,r(i[o+0],255&y,y>>16,g,w)),v=1;v<=b;++v){var F=a[s+v]|c[u+v]<<16,U=l[h+v]|f[d+v]<<16,N=Q+F+C+U+524296,E=N+2*(F+C)>>3;y=E+Q>>1,Q=(N=N+2*(Q+U)>>3)+F>>1,r(t[A+2*v-1],255&y,y>>16,p,B+(2*v-1)*n),r(t[A+2*v-0],255&Q,Q>>16,p,B+(2*v-0)*n),null!=i&&(y=N+C>>1,Q=E+U>>1,r(i[o+2*v-1],255&y,y>>16,g,w+(2*v-1)*n),r(i[o+2*v+0],255&Q,Q>>16,g,w+(2*v+0)*n)),Q=F,C=U}1&m||(y=3*Q+C+131074>>2,r(t[A+m-1],255&y,y>>16,p,B+(m-1)*n),null!=i&&(y=3*C+Q+131074>>2,r(i[o+m-1],255&y,y>>16,g,w+(m-1)*n)))}}function wA(){gn[Pr]=wn,gn[Tr]=vn,gn[Or]=mn,gn[Rr]=bn,gn[Kr]=Qn,gn[Mr]=Cn,gn[kr]=yn,gn[Dr]=vn,gn[jr]=bn,gn[zr]=Qn,gn[Vr]=Cn}function mA(t){return t&~Hn?0>t?0:255:t>>Ln}function vA(t,e){return mA((19077*t>>8)+(26149*e>>8)-14234)}function bA(t,e,A){return mA((19077*t>>8)-(6419*e>>8)-(13320*A>>8)+8708)}function QA(t,e){return mA((19077*t>>8)+(33050*e>>8)-17685)}function CA(t,e,A,r,n){r[n+0]=vA(t,A),r[n+1]=bA(t,e,A),r[n+2]=QA(t,e)}function yA(t,e,A,r,n){r[n+0]=QA(t,e),r[n+1]=bA(t,e,A),r[n+2]=vA(t,A)}function FA(t,e,A,r,n){var i=bA(t,e,A);e=i<<3&224|QA(t,e)>>3,r[n+0]=248&vA(t,A)|i>>5,r[n+1]=e}function UA(t,e,A,r,n){var i=240&QA(t,e)|15;r[n+0]=240&vA(t,A)|bA(t,e,A)>>4,r[n+1]=i}function NA(t,e,A,r,n){r[n+0]=255,CA(t,e,A,r,n+1)}function EA(t,e,A,r,n){yA(t,e,A,r,n),r[n+3]=255}function LA(t,e,A,r,n){CA(t,e,A,r,n),r[n+3]=255}function Vt(t,e){return 0>t?0:t>e?e:t}function HA(e,A,r){t[e]=function(t,e,n,i,o,a,s,c,u){for(var l=c+(-2&u)*r;c!=l;)A(t[e+0],n[i+0],o[a+0],s,c),A(t[e+1],n[i+0],o[a+0],s,c+r),e+=2,++i,++a,c+=2*r;1&u&&A(t[e+0],n[i+0],o[a+0],s,c)}}function SA(t,e,A){return 0==A?0==t?0==e?6:5:0==e?4:0:A}function _A(t,e,A,r,n){switch(t>>>30){case 3:ir(e,A,r,n,0);break;case 2:or(e,A,r,n);break;case 1:sr(e,A,r,n)}}function xA(t,e){var A,i,o=e.M,a=e.Nb,s=t.oc,c=t.pc+40,u=t.oc,l=t.pc+584,h=t.oc,f=t.pc+600;for(A=0;16>A;++A)s[c+32*A-1]=129;for(A=0;8>A;++A)u[l+32*A-1]=129,h[f+32*A-1]=129;for(0<o?s[c-1-32]=u[l-1-32]=h[f-1-32]=129:(n(s,c-32-1,127,21),n(u,l-32-1,127,9),n(h,f-32-1,127,9)),i=0;i<t.za;++i){var d=e.ya[e.aa+i];if(0<i){for(A=-1;16>A;++A)r(s,c+32*A-4,s,c+32*A+12,4);for(A=-1;8>A;++A)r(u,l+32*A-4,u,l+32*A+4,4),r(h,f+32*A-4,h,f+32*A+4,4)}var p=t.Gd,B=t.Hd+i,g=d.ad,w=d.Hc;if(0<o&&(r(s,c-32,p[B].y,0,16),r(u,l-32,p[B].f,0,8),r(h,f-32,p[B].ea,0,8)),d.Za){var m=s,v=c-32+16;for(0<o&&(i>=t.za-1?n(m,v,p[B].y[15],4):r(m,v,p[B+1].y,0,4)),A=0;4>A;A++)m[v+128+A]=m[v+256+A]=m[v+384+A]=m[v+0+A];for(A=0;16>A;++A,w<<=2)m=s,v=c+Rn[A],hn[d.Ob[A]](m,v),_A(w,g,16*+A,m,v)}else if(m=SA(i,o,d.Ob[0]),ln[m](s,c),0!=w)for(A=0;16>A;++A,w<<=2)_A(w,g,16*+A,s,c+Rn[A]);for(A=d.Gc,m=SA(i,o,d.Dd),fn[m](u,l),fn[m](h,f),w=g,m=u,v=l,255&(d=A>>0)&&(170&d?ar(w,256,m,v):cr(w,256,m,v)),d=h,w=f,255&(A>>=8)&&(170&A?ar(g,320,d,w):cr(g,320,d,w)),o<t.Ub-1&&(r(p[B].y,0,s,c+480,16),r(p[B].f,0,u,l+224,8),r(p[B].ea,0,h,f+224,8)),A=8*a*t.B,p=t.sa,B=t.ta+16*i+16*a*t.R,g=t.qa,d=t.ra+8*i+A,w=t.Ha,m=t.Ia+8*i+A,A=0;16>A;++A)r(p,B+A*t.R,s,c+32*A,16);for(A=0;8>A;++A)r(g,d+A*t.B,u,l+32*A,8),r(w,m+A*t.B,h,f+32*A,8)}}function IA(t,r,n,i,o,a,s,c,u){var l=[0],h=[0],f=0,d=null!=u?u.kd:0,p=null!=u?u:new rA;if(null==t||12>n)return 7;p.data=t,p.w=r,p.ha=n,r=[r],n=[n],p.gb=[p.gb];t:{var B=r,w=n,m=p.gb;if(e(null!=t),e(null!=w),e(null!=m),m[0]=0,12<=w[0]&&!A(t,B[0],"RIFF")){if(A(t,B[0]+8,"WEBP")){m=3;break t}var v=_(t,B[0]+4);if(12>v||4294967286<v){m=3;break t}if(d&&v>w[0]-8){m=7;break t}m[0]=v,B[0]+=12,w[0]-=12}m=0}if(0!=m)return m;for(v=0<p.gb[0],n=n[0];;){t:{var Q=t;w=r,m=n;var C=l,y=h,F=B=[0];if((E=f=[f])[0]=0,8>m[0])m=7;else{if(!A(Q,w[0],"VP8X")){if(10!=_(Q,w[0]+4)){m=3;break t}if(18>m[0]){m=7;break t}var U=_(Q,w[0]+8),N=1+S(Q,w[0]+12);if(2147483648<=N*(Q=1+S(Q,w[0]+15))){m=3;break t}null!=F&&(F[0]=U),null!=C&&(C[0]=N),null!=y&&(y[0]=Q),w[0]+=18,m[0]-=18,E[0]=1}m=0}}if(f=f[0],B=B[0],0!=m)return m;if(w=!!(2&B),!v&&f)return 3;if(null!=a&&(a[0]=!!(16&B)),null!=s&&(s[0]=w),null!=c&&(c[0]=0),s=l[0],B=h[0],f&&w&&null==u){m=0;break}if(4>n){m=7;break}if(v&&f||!v&&!f&&!A(t,r[0],"ALPH")){n=[n],p.na=[p.na],p.P=[p.P],p.Sa=[p.Sa];t:{U=t,m=r,v=n;var E=p.gb;C=p.na,y=p.P,F=p.Sa,N=22,e(null!=U),e(null!=v),Q=m[0];var L=v[0];for(e(null!=C),e(null!=F),C[0]=null,y[0]=null,F[0]=0;;){if(m[0]=Q,v[0]=L,8>L){m=7;break t}var H=_(U,Q+4);if(4294967286<H){m=3;break t}var x=8+H+1&-2;if(N+=x,0<E&&N>E){m=3;break t}if(!A(U,Q,"VP8 ")||!A(U,Q,"VP8L")){m=0;break t}if(L[0]<x){m=7;break t}A(U,Q,"ALPH")||(C[0]=U,y[0]=Q+8,F[0]=H),Q+=x,L-=x}}if(n=n[0],p.na=p.na[0],p.P=p.P[0],p.Sa=p.Sa[0],0!=m)break}n=[n],p.Ja=[p.Ja],p.xa=[p.xa];t:if(E=t,m=r,v=n,C=p.gb[0],y=p.Ja,F=p.xa,U=m[0],Q=!A(E,U,"VP8 "),N=!A(E,U,"VP8L"),e(null!=E),e(null!=v),e(null!=y),e(null!=F),8>v[0])m=7;else{if(Q||N){if(E=_(E,U+4),12<=C&&E>C-12){m=3;break t}if(d&&E>v[0]-8){m=7;break t}y[0]=E,m[0]+=8,v[0]-=8,F[0]=N}else F[0]=5<=v[0]&&47==E[U+0]&&!(E[U+4]>>5),y[0]=v[0];m=0}if(n=n[0],p.Ja=p.Ja[0],p.xa=p.xa[0],r=r[0],0!=m)break;if(4294967286<p.Ja)return 3;if(null==c||w||(c[0]=p.xa?2:1),s=[s],B=[B],p.xa){if(5>n){m=7;break}c=s,d=B,w=a,null==t||5>n?t=0:5<=n&&47==t[r+0]&&!(t[r+4]>>5)?(v=[0],E=[0],C=[0],g(y=new b,t,r,n),pt(y,v,E,C)?(null!=c&&(c[0]=v[0]),null!=d&&(d[0]=E[0]),null!=w&&(w[0]=C[0]),t=1):t=0):t=0}else{if(10>n){m=7;break}c=B,null==t||10>n||!Jt(t,r+3,n-3)?t=0:(d=t[r+0]|t[r+1]<<8|t[r+2]<<16,w=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&d||3<(d>>1&7)||!(d>>4&1)||d>>5>=p.Ja||!w||!t?t=0:(s&&(s[0]=w),c&&(c[0]=t),t=1))}if(!t)return 3;if(s=s[0],B=B[0],f&&(l[0]!=s||h[0]!=B))return 3;null!=u&&(u[0]=p,u.offset=r-u.w,e(4294967286>r-u.w),e(u.offset==u.ha-n));break}return 0==m||7==m&&f&&null==u?(null!=a&&(a[0]|=null!=p.na&&0<p.na.length),null!=i&&(i[0]=s),null!=o&&(o[0]=B),0):m}function PA(t,e,A){var r=e.width,n=e.height,i=0,o=0,a=r,s=n;if(e.Da=null!=t&&0<t.Da,e.Da&&(a=t.cd,s=t.bd,i=t.v,o=t.j,11>A||(i&=-2,o&=-2),0>i||0>o||0>=a||0>=s||i+a>r||o+s>n))return 0;if(e.v=i,e.j=o,e.va=i+a,e.o=o+s,e.U=a,e.T=s,e.da=null!=t&&0<t.da,e.da){if(!T(a,s,A=[t.ib],i=[t.hb]))return 0;e.ib=A[0],e.hb=i[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*n/4,e.Kb=0),1}function TA(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 OA(t,e,A,r){if(null==r||0>=t||0>=e)return 2;if(null!=A){if(A.Da){var n=A.cd,o=A.bd,a=-2&A.v,s=-2&A.j;if(0>a||0>s||0>=n||0>=o||a+n>t||s+o>e)return 2;t=n,e=o}if(A.da){if(!T(t,e,n=[A.ib],o=[A.hb]))return 2;t=n[0],e=o[0]}}r.width=t,r.height=e;t:{var c=r.width,u=r.height;if(t=r.S,0>=c||0>=u||!(t>=Pr&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){a=o=n=e=0;var l=(s=c*Dn[t])*u;if(11>t||(o=(u+1)/2*(e=(c+1)/2),12==t&&(a=(n=c)*u)),null==(u=i(l+2*o+a))){t=1;break t}r.sd=u,11>t?((c=r.f.RGBA).eb=u,c.fb=0,c.A=s,c.size=l):((c=r.f.kb).y=u,c.O=0,c.fa=s,c.Fd=l,c.f=u,c.N=0+l,c.Ab=e,c.Cd=o,c.ea=u,c.W=0+l+o,c.Db=e,c.Ed=o,12==t&&(c.F=u,c.J=0+l+2*o),c.Tc=a,c.lb=n)}if(e=1,n=r.S,o=r.width,a=r.height,n>=Pr&&13>n)if(11>n)t=r.f.RGBA,e&=(s=Math.abs(t.A))*(a-1)+o<=t.size,e&=s>=o*Dn[n],e&=null!=t.eb;else{t=r.f.kb,s=(o+1)/2,l=(a+1)/2,c=Math.abs(t.fa),u=Math.abs(t.Ab);var h=Math.abs(t.Db),f=Math.abs(t.lb),d=f*(a-1)+o;e&=c*(a-1)+o<=t.Fd,e&=u*(l-1)+s<=t.Cd,e=(e&=h*(l-1)+s<=t.Ed)&c>=o&u>=s&h>=s,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==n&&(e&=f>=o,e&=d<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=A&&A.fd&&(t=TA(r)),t}var RA=64,KA=[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],MA=24,kA=32,DA=8,jA=[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];K("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,A){return e[A+0]},t.Predictor3=function(t,e,A){return e[A+1]},t.Predictor4=function(t,e,A){return e[A-1]},t.Predictor5=function(t,e,A){return k(k(t,e[A+1]),e[A+0])},t.Predictor6=function(t,e,A){return k(t,e[A-1])},t.Predictor7=function(t,e,A){return k(t,e[A+0])},t.Predictor8=function(t,e,A){return k(e[A-1],e[A+0])},t.Predictor9=function(t,e,A){return k(e[A+0],e[A+1])},t.Predictor10=function(t,e,A){return k(k(t,e[A-1]),k(e[A+0],e[A+1]))},t.Predictor11=function(t,e,A){var r=e[A+0];return 0>=z(r>>24&255,t>>24&255,(e=e[A-1])>>24&255)+z(r>>16&255,t>>16&255,e>>16&255)+z(r>>8&255,t>>8&255,e>>8&255)+z(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,A){var r=e[A+0];return(D((t>>24&255)+(r>>24&255)-((e=e[A-1])>>24&255))<<24|D((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|D((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|D((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,A){var r=e[A-1];return(j((t=k(t,e[A+0]))>>24&255,r>>24&255)<<24|j(t>>16&255,r>>16&255)<<16|j(t>>8&255,r>>8&255)<<8|j(t>>0&255,r>>0&255))>>>0};var zA=t.PredictorAdd0;t.PredictorAdd1=V,K("Predictor2","PredictorAdd2"),K("Predictor3","PredictorAdd3"),K("Predictor4","PredictorAdd4"),K("Predictor5","PredictorAdd5"),K("Predictor6","PredictorAdd6"),K("Predictor7","PredictorAdd7"),K("Predictor8","PredictorAdd8"),K("Predictor9","PredictorAdd9"),K("Predictor10","PredictorAdd10"),K("Predictor11","PredictorAdd11"),K("Predictor12","PredictorAdd12"),K("Predictor13","PredictorAdd13");var VA=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 qA,GA=t.ColorIndexInverseTransform,XA=t.MapARGB,JA=t.VP8LColorIndexInverseTransformAlpha,WA=t.MapAlpha,YA=t.VP8LPredictorsAdd=[];YA.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var ZA,$A,tr,er,Ar,rr,nr,ir,or,ar,sr,cr,ur,lr,hr,fr,dr,pr,Br,gr,wr,mr,vr,br,Qr,Cr,yr,Fr,Ur=i(511),Nr=i(2041),Er=i(225),Lr=i(767),Hr=0,Sr=Nr,_r=Er,xr=Lr,Ir=Ur,Pr=0,Tr=1,Or=2,Rr=3,Kr=4,Mr=5,kr=6,Dr=7,jr=8,zr=9,Vr=10,qr=[2,3,7],Gr=[3,3,11],Xr=[280,256,256,256,40],Jr=[0,1,1,1,0],Wr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Yr=[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],Zr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],$r=8,tn=[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],en=[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],An=null,rn=[[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]],nn=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],on=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],an=[[[[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]]]],sn=[[[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]]],cn=[[[[255,255,255,255,255,255,255,255,255,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]]]],un=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ln=[],hn=[],fn=[],dn=1,pn=2,Bn=[],gn=[];gA("UpsampleRgbLinePair",CA,3),gA("UpsampleBgrLinePair",yA,3),gA("UpsampleRgbaLinePair",LA,4),gA("UpsampleBgraLinePair",EA,4),gA("UpsampleArgbLinePair",NA,4),gA("UpsampleRgba4444LinePair",UA,2),gA("UpsampleRgb565LinePair",FA,2);var wn=t.UpsampleRgbLinePair,mn=t.UpsampleBgrLinePair,vn=t.UpsampleRgbaLinePair,bn=t.UpsampleBgraLinePair,Qn=t.UpsampleArgbLinePair,Cn=t.UpsampleRgba4444LinePair,yn=t.UpsampleRgb565LinePair,Fn=16,Un=1<<Fn-1,Nn=-227,En=482,Ln=6,Hn=(256<<Ln)-1,Sn=0,_n=i(256),xn=i(256),In=i(256),Pn=i(256),Tn=i(En-Nn),On=i(En-Nn);HA("YuvToRgbRow",CA,3),HA("YuvToBgrRow",yA,3),HA("YuvToRgbaRow",LA,4),HA("YuvToBgraRow",EA,4),HA("YuvToArgbRow",NA,4),HA("YuvToRgba4444Row",UA,2),HA("YuvToRgb565Row",FA,2);var Rn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Kn=[0,2,8],Mn=[8,7,6,4,4,2,2,2,1,1,1,1],kn=1;this.WebPDecodeRGBA=function(t,A,r,n,i){var o=Tr,a=new AA,s=new ot;a.ba=s,s.S=o,s.width=[s.width],s.height=[s.height];var c=s.width,u=s.height,l=new at;if(null==l||null==t)var h=2;else e(null!=l),h=IA(t,A,r,l.width,l.height,l.Pd,l.Qd,l.format,null);if(0!=h?c=0:(null!=c&&(c[0]=l.width[0]),null!=u&&(u[0]=l.height[0]),c=1),c){s.width=s.width[0],s.height=s.height[0],null!=n&&(n[0]=s.width),null!=i&&(i[0]=s.height);t:{if(n=new qt,(i=new rA).data=t,i.w=A,i.ha=r,i.kd=1,A=[0],e(null!=i),(0==(t=IA(i.data,i.w,i.ha,null,null,null,A,null,i))||7==t)&&A[0]&&(t=4),0==(A=t)){if(e(null!=a),n.data=i.data,n.w=i.w+i.offset,n.ha=i.ha-i.offset,n.put=ft,n.ac=ht,n.bc=dt,n.ma=a,i.xa){if(null==(t=Et())){a=1;break t}if(function(t,A){var r=[0],n=[0],i=[0];e:for(;;){if(null==t)return 0;if(null==A)return t.a=2,0;if(t.l=A,t.a=0,g(t.m,A.data,A.w,A.ha),!pt(t.m,r,n,i)){t.a=3;break e}if(t.xb=pn,A.width=r[0],A.height=n[0],!Lt(r[0],n[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,n)){if(n=0==(A=OA(n.width,n.height,a.Oa,a.ba))){e:{n=t;A:for(;;){if(null==n){n=0;break e}if(e(null!=n.s.yc),e(null!=n.s.Ya),e(0<n.s.Wb),e(null!=(r=n.l)),e(null!=(i=r.ma)),0!=n.xb){if(n.ca=i.ba,n.tb=i.tb,e(null!=n.ca),!PA(i.Oa,r,Rr)){n.a=2;break A}if(!Ht(n,r.width))break A;if(r.da)break A;if((r.da||rt(n.ca.S))&&BA(),11>n.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=n.ca.f.kb.F&&BA()),n.Pb&&0<n.s.ua&&null==n.s.vb.X&&!x(n.s.vb,n.s.Wa.Xa)){n.a=1;break A}n.xb=0}if(!Ut(n,n.V,n.Ba,n.c,n.i,r.o,Qt))break A;i.Dc=n.Ma,n=1;break e}e(0!=n.a),n=0}n=!n}n&&(A=t.a)}else A=t.a}else{if(null==(t=new Gt)){a=1;break t}if(t.Fa=i.na,t.P=i.P,t.qc=i.Sa,Wt(t,n)){if(0==(A=OA(n.width,n.height,a.Oa,a.ba))){if(t.Aa=0,r=a.Oa,e(null!=(i=t)),null!=r){if(0<(c=0>(c=r.Md)?0:100<c?255:255*c/100)){for(u=l=0;4>u;++u)12>(h=i.pb[u]).lc&&(h.ia=c*Mn[0>h.lc?0:h.lc]>>3),l|=h.ia;l&&(alert("todo:VP8InitRandom"),i.ia=1)}i.Ga=r.Id,100<i.Ga?i.Ga=100:0>i.Ga&&(i.Ga=0)}$t(t,n)||(A=t.a)}}else A=t.a}0==A&&null!=a.Oa&&a.Oa.fd&&(A=TA(a.ba))}a=A}o=0!=a?null:11>o?s.f.RGBA.eb:s.f.kb.y}else o=null;return o};var Dn=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var l=[0],h=[0],f=[],d=new te,p=t,B=function(t,e){var A={},r=0,n=!1,i=0,o=0;if(A.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,A,r){for(var n=0;n<r;n++)if(t[e+n]!=A.charCodeAt(n))return!0;return!1}(t,e,"RIFF",4)){var a,l;for(u(t,e+=4),e+=8;e<t.length;){var h=s(t,e),f=u(t,e+=4);e+=4;var d=f+(1&f);switch(h){case"VP8 ":case"VP8L":void 0===A.frames[r]&&(A.frames[r]={}),(g=A.frames[r]).src_off=n?o:e-8,g.src_size=i+f+8,r++,n&&(n=!1,i=0,o=0);break;case"VP8X":(g=A.header={}).feature_flags=t[e];var p=e+4;g.canvas_width=1+c(t,p),p+=3,g.canvas_height=1+c(t,p),p+=3;break;case"ALPH":n=!0,i=d+8,o=e-8;break;case"ANIM":(g=A.header).bgcolor=u(t,e),p=e+4,g.loop_count=(a=t)[(l=p)+0]<<0|a[l+1]<<8,p+=2;break;case"ANMF":var B,g;(g=A.frames[r]={}).offset_x=2*c(t,e),e+=3,g.offset_y=2*c(t,e),e+=3,g.width=1+c(t,e),e+=3,g.height=1+c(t,e),e+=3,g.duration=c(t,e),e+=3,B=t[e++],g.dispose=1&B,g.blend=B>>1&1}"ANMF"!=h&&(e+=d)}return A}}(p,0);B.response=p,B.rgbaoutput=!0,B.dataurl=!1;var g=B.header?B.header:null,w=B.frames?B.frames:null;if(g){g.loop_counter=g.loop_count,l=[g.canvas_height],h=[g.canvas_width];for(var m=0;m<w.length&&0!=w[m].blend;m++);}var v=w[0],b=d.WebPDecodeRGBA(p,v.src_off,v.src_size,h,l);v.rgba=b,v.imgwidth=h[0],v.imgheight=l[0];for(var Q=0;Q<h[0]*l[0]*4;Q++)f[Q]=b[Q];return this.width=h,this.height=l,this.data=f,this}!function(t){var e=function(){return"function"==typeof r["b"]},A=function(e,A,i,u){var l=4,h=a;switch(u){case t.image_compression.FAST:l=1,h=o;break;case t.image_compression.MEDIUM:l=6,h=s;break;case t.image_compression.SLOW:l=9,h=c}e=n(e,A,i,h);var f=Object(r["b"])(e,{level:l});return t.__addimage__.arrayBufferToBinaryString(f)},n=function(t,e,A,r){for(var n,i,o,a=t.length/e,s=new Uint8Array(t.length+a),c=l(),u=0;u<a;u+=1){if(o=u*e,n=t.subarray(o,o+e),r)s.set(r(n,A,i),o+u);else{for(var f,d=c.length,p=[];f<d;f+=1)p[f]=c[f](n,A,i);var B=h(p.concat());s.set(p[B],o+u)}i=n}return s},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},o=function(t,e){var A,r=[],n=t.length;r[0]=1;for(var i=0;i<n;i+=1)A=t[i-e]||0,r[i+1]=t[i]-A+256&255;return r},a=function(t,e,A){var r,n=[],i=t.length;n[0]=2;for(var o=0;o<i;o+=1)r=A&&A[o]||0,n[o+1]=t[o]-r+256&255;return n},s=function(t,e,A){var r,n,i=[],o=t.length;i[0]=3;for(var a=0;a<o;a+=1)r=t[a-e]||0,n=A&&A[a]||0,i[a+1]=t[a]+256-(r+n>>>1)&255;return i},c=function(t,e,A){var r,n,i,o,a=[],s=t.length;a[0]=4;for(var c=0;c<s;c+=1)r=t[c-e]||0,n=A&&A[c]||0,i=A&&A[c-e]||0,o=u(r,n,i),a[c+1]=t[c]-o+256&255;return a},u=function(t,e,A){if(t===e&&e===A)return t;var r=Math.abs(e-A),n=Math.abs(t-A),i=Math.abs(t+e-A-A);return r<=n&&r<=i?t:n<=i?e:A},l=function(){return[i,o,a,s,c]},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(r,n,i,o){var a,s,c,u,l,h,f,d,p,B,g,w,m,v,b,Q=this.decode.FLATE_DECODE,C="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(c=new Jt(r)).imgData,s=c.bits,a=c.colorSpace,l=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){p=(d=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,g=new Uint8Array(p*c.colors),B=new Uint8Array(p);var y,F=c.pixelBitlength-c.bits;for(v=0,b=0;v<p;v++){for(m=d[v],y=0;y<F;)g[b++]=m>>>y&255,y+=c.bits;B[v]=m>>>y&255}}if(16===c.bits){p=(d=new Uint32Array(c.decodePixels().buffer)).length,g=new Uint8Array(p*(32/c.pixelBitlength)*c.colors),B=new Uint8Array(p*(32/c.pixelBitlength)),w=c.colors>1,v=0,b=0;for(var U=0;v<p;)m=d[v++],g[b++]=m>>>0&255,w&&(g[b++]=m>>>16&255,m=d[v++],g[b++]=m>>>0&255),B[U++]=m>>>16&255;s=8}o!==t.image_compression.NONE&&e()?(r=A(g,c.width*c.colors,c.colors,o),f=A(B,c.width,1,o)):(r=g,f=B,Q=void 0)}if(3===c.colorType&&(a=this.color_spaces.INDEXED,h=c.palette,c.transparency.indexed)){var N=c.transparency.indexed,E=0;for(v=0,p=N.length;v<p;++v)E+=N[v];if((E/=255)===p-1&&-1!==N.indexOf(0))u=[N.indexOf(0)];else if(E!==p){for(d=c.decodePixels(),B=new Uint8Array(d.length),v=0,p=d.length;v<p;v++)B[v]=N[d[v]];f=A(B,c.width,1)}}var L=function(e){var A;switch(e){case t.image_compression.FAST:A=11;break;case t.image_compression.MEDIUM:A=13;break;case t.image_compression.SLOW:A=14;break;default:A=12}return A}(o);return Q===this.decode.FLATE_DECODE&&(C="/Predictor "+L+" "),C+="/Colors "+l+" /BitsPerComponent "+s+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:i,data:r,index:n,filter:Q,decodeParameters:C,transparency:u,palette:h,sMask:f,predictor:L,width:c.width,height:c.height,bitsPerComponent:s,colorSpace:a}}}}(P.API),function(t){t.processGIF89A=function(e,A,r,n){var i=new Wt(e),o=i.width,a=i.height,s=[];i.decodeAndBlitFrameRGBA(0,s);var c={data:s,width:o,height:a},u=new Zt(100).encode(c,100);return t.processJPEG.call(this,u,A,r,n)},t.processGIF87A=t.processGIF89A}(P.API),$t.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 A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:r,blue:A,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},$t.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){o.log("bit decode error:"+t)}},$t.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),A=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<e;n++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*n*4,a=0;a<8&&8*n+a<this.width;a++){var s=this.palette[i>>7-a&1];this.data[o+4*a]=s.blue,this.data[o+4*a+1]=s.green,this.data[o+4*a+2]=s.red,this.data[o+4*a+3]=255}0!==A&&(this.pos+=4-A)}},$t.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*n*4,a=i>>4,s=15&i,c=this.palette[a];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*n+1>=this.width)break;c=this.palette[s],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},$t.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var A=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=A*this.width*4+4*r;if(n<this.palette.length){var o=this.palette[n];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!==t&&(this.pos+=4-t)}},$t.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),A=this.height-1;A>=0;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,a=(i>>5&e)/e*255|0,s=(i>>10&e)/e*255|0,c=i>>15?255:0,u=r*this.width*4+4*n;this.data[u]=s,this.data[u+1]=a,this.data[u+2]=o,this.data[u+3]=c}this.pos+=t}},$t.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),A=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,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&A)/A*255|0,c=(o>>11)/e*255|0,u=n*this.width*4+4*i;this.data[u]=c,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=255}this.pos+=t}},$t.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*A;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},$t.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){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),a=e*this.width*4+4*A;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=o}},$t.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,A,r,n){var i=new $t(e,!1),o=i.width,a=i.height,s={data:i.getData(),width:o,height:a},c=new Zt(100).encode(s,100);return t.processJPEG.call(this,c,A,r,n)}}(P.API),te.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,A,r,n){var i=new te(e,!1),o=i.width,a=i.height,s={data:i.getData(),width:o,height:a},c=new Zt(100).encode(s,100);return t.processJPEG.call(this,c,A,r,n)}}(P.API),P.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:"FYRO Macedonian",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
- /** @license
- * MIT license.
- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
- * 2014 Diego Casorran, https://github.com/diegocr
- *
- * 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.
- * ====================================================================
- */},zt=P.API,Vt=zt.getCharWidthsArray=function(t,e){var A,r,n=(e=e||{}).font||this.internal.getFont(),i=e.fontSize||this.internal.getFontSize(),o=e.charSpace||this.internal.getCharSpace(),a=e.widths?e.widths:n.metadata.Unicode.widths,s=a.fof?a.fof:1,c=e.kerning?e.kerning:n.metadata.Unicode.kerning,u=c.fof?c.fof:1,l=!1!==e.doKerning,h=0,f=t.length,d=0,p=a[0]||s,B=[];for(A=0;A<f;A++)r=t.charCodeAt(A),"function"==typeof n.metadata.widthOfString?B.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+o*(1e3/i)||0)/1e3):(h=l&&"object"==typeof c[r]&&!isNaN(parseInt(c[r][d],10))?c[r][d]/u:0,B.push((a[r]||p)/s+h)),d=r;return B},qt=zt.getStringUnitWidth=function(t,e){var A=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return zt.processArabic&&(t=zt.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,A,n)/A:Vt.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Gt=function(t,e,A,r){for(var n=[],i=0,o=t.length,a=0;i!==o&&a+e[i]<A;)a+=e[i],i++;n.push(t.slice(0,i));var s=i;for(a=0;i!==o;)a+e[i]>r&&(n.push(t.slice(s,i)),a=0,s=i),a+=e[i],i++;return s!==i&&n.push(t.slice(s,i)),n},Xt=function(t,e,A){A||(A={});var r,n,i,o,a,s,c,u=[],l=[u],h=A.textIndent||0,f=0,d=0,p=t.split(" "),B=Vt.apply(this,[" ",A])[0];if(s=-1===A.lineIndent?p[0].length+2:A.lineIndent||0){var g=Array(s).join(" "),w=[];p.map((function(t){(t=t.split(/\s*\n/)).length>1?w=w.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):w.push(t[0])})),p=w,s=qt.apply(this,[g,A])}for(i=0,o=p.length;i<o;i++){var m=0;if(r=p[i],s&&"\n"==r[0]&&(r=r.substr(1),m=1),h+f+(d=(n=Vt.apply(this,[r,A])).reduce((function(t,e){return t+e}),0))>e||m){if(d>e){for(a=Gt.apply(this,[r,n,e-(h+f),e]),u.push(a.shift()),u=[a.pop()];a.length;)l.push([a.shift()]);d=n.slice(r.length-(u[0]?u[0].length:0)).reduce((function(t,e){return t+e}),0)}else u=[r];l.push(u),h=d+s,f=B}else u.push(r),h+=f+d,f=B}return c=s?function(t,e){return(e?g:"")+t.join(" ")}:function(t){return t.join(" ")},l.map(c)},zt.splitTextToSize=function(t,e,A){var r,n=(A=A||{}).fontSize||this.internal.getFontSize(),i=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,A);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/n;i.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=A.lineIndent;var a,s,c=[];for(a=0,s=r.length;a<s;a++)c=c.concat(Xt.apply(this,[r[a],o,i]));return c},
- /** @license
- jsPDF standard_fonts_metrics plugin
- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
- * MIT license.
- * 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){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",A={},r={},n=0;n<e.length;n++)A[e[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=e[n];var i=function(t){return"0x"+parseInt(t,10).toString(16)},o=t.__fontmetrics__.compress=function(t){var e,A,n,a,s=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?A="'"+c+"'":(c=parseInt(c,10),A=(A=i(c).slice(2)).slice(0,-1)+r[A.slice(-1)]),"number"==typeof e)e<0?(n=i(e).slice(3),a="-"):(n=i(e).slice(2),a=""),n=a+n.slice(0,-1)+r[n.slice(-1)];else{if("object"!=typeof e)throw new Error("Don't know what to do with value type "+typeof e+".");n=o(e)}s.push(A+n)}return s.push("}"),s.join("")},a=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,n,i,o={},a=1,s=o,c=[],u="",l="",h=t.length-1,f=1;f<h;f+=1)"'"==(i=t[f])?e?(n=e.join(""),e=void 0):e=[]:e?e.push(i):"{"==i?(c.push([s,n]),s={},n=void 0):"}"==i?((r=c.pop())[0][r[1]]=s,n=void 0,s=r[0]):"-"==i?a=-1:void 0===n?A.hasOwnProperty(i)?(u+=A[i],n=parseInt(u,16)*a,a=1,u=""):u+=i:A.hasOwnProperty(i)?(l+=A[i],s[n]=parseInt(l,16)*a,a=1,n=void 0,l=""):l+=i;return o},s={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:s,"Courier-Bold":s,"Courier-BoldOblique":s,"Courier-Oblique":s,Helvetica:s,"Helvetica-Bold":s,"Helvetica-BoldOblique":s,"Helvetica-Oblique":s,"Times-Roman":s,"Times-Bold":s,"Times-BoldItalic":s,"Times-Italic":s}},u={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'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":a("{'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:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'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:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'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":a("{'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:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'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":a("{'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":a("{'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,A=u.Unicode[e.postScriptName];A&&(e.metadata.Unicode={},e.metadata.Unicode.widths=A.widths,e.metadata.Unicode.kerning=A.kerning);var r=c.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(P.API),
- /**
- * @license
- * Licensed under the MIT License.
- * http://opensource.org/licenses/mit-license
- */
- function(t){var e=function(t){for(var e=t.length,A=new Uint8Array(e),r=0;r<e;r++)A[r]=t.charCodeAt(r);return A};t.API.events.push(["addFont",function(A){var r=void 0,n=A.font,i=A.instance;if(!n.isStandardFont){if(void 0===i)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if("string"!=typeof(r=!1===i.existsFileInVFS(n.postScriptName)?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");!function(A,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(u(r)),A.metadata=t.API.TTFFont.open(r),A.metadata.Unicode=A.metadata.Unicode||{encoding:{},kerning:{},widths:[]},A.metadata.glyIdsUsed=[0]}(n,r)}}])}(P),
- /** @license
- * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
- *
- * 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(n.canvg?Promise.resolve(n.canvg):A.e("chunk-0b5e786a").then(A.bind(null,"3cb6"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}P.API.addSvgAsImage=function(t,A,r,n,i,a,s,c){if(isNaN(A)||isNaN(r))throw o.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw o.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=n,u.height=i;var l=u.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,u.width,u.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=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(){f.addImage(u.toDataURL("image/jpeg",1),A,r,n,i,s,c)}))}}(),P.API.putTotalPages=function(t){var e,A=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),A=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),A=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(e,A);return this},P.API.viewerPreferences=function(t,e){var A;t=t||{},e=e||!1;var r,n,i,o={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}},a=Object.keys(o),s=[],c=0,u=0,l=0;function h(t,e){var A,r=!1;for(A=0;A<t.length;A+=1)t[A]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),A=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var f=a.length;for(l=0;l<f;l+=1)A[a[l]].value=A[a[l]].defaultValue,A[a[l]].explicitSet=!1}if("object"==typeof t)for(n in t)if(i=t[n],h(a,n)&&void 0!==i){if("boolean"===A[n].type&&"boolean"==typeof i)A[n].value=i;else if("name"===A[n].type&&h(A[n].valueSet,i))A[n].value=i;else if("integer"===A[n].type&&Number.isInteger(i))A[n].value=i;else if("array"===A[n].type){for(c=0;c<i.length;c+=1)if(r=!0,1===i[c].length&&"number"==typeof i[c][0])s.push(String(i[c]-1));else if(i[c].length>1){for(u=0;u<i[c].length;u+=1)"number"!=typeof i[c][u]&&(r=!1);!0===r&&s.push([i[c][0]-1,i[c][1]-1].join(" "))}A[n].value="["+s.join(" ")+"]"}else A[n].value=A[n].defaultValue;A[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in A)!0===A[t].explicitSet&&("name"===A[t].type?e.push("/"+t+" /"+A[t].value):e.push("/"+t+" "+A[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=A,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/">')),A=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),n=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=A.length+r.length+n.length+e.length+i.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+A+r+n+i),this.internal.write("endstream"),this.internal.write("endobj")},A=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",A),this.internal.events.subscribe("postPutResources",e)),this}}(P.API),function(t){var e=t.API,A=e.pdfEscape16=function(t,e){for(var A,r=e.metadata.Unicode.widths,n=["","0","00","000","0000"],i=[""],o=0,a=t.length;o<a;++o){if(A=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(A),e.metadata.toUnicode[A]=t.charCodeAt(o),-1==r.indexOf(A)&&(r.push(A),r.push([parseInt(e.metadata.widthOfGlyph(A),10)])),"0"==A)return i.join("");A=A.toString(16),i.push(n[4-A.length],A)}return i.join("")},r=function(t){var e,A,r,n,i,o,a;for(i="/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",r=[],o=0,a=(A=Object.keys(t).sort((function(t,e){return t-e}))).length;o<a;o++)e=A[o],r.length>=100&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(n=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+n+">"));return r.length&&(i+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),i+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var A=e.font,n=e.out,i=e.newObject,o=e.putStream,a=e.pdfEscapeWithNeededParanthesis;if(A.metadata instanceof t.API.TTFFont&&"Identity-H"===A.encoding){for(var s=A.metadata.Unicode.widths,c=A.metadata.subset.encode(A.metadata.glyIdsUsed,1),u="",l=0;l<c.length;l++)u+=String.fromCharCode(c[l]);var h=i();o({data:u,addLength1:!0,objectId:h}),n("endobj");var f=i();o({data:r(A.metadata.toUnicode),addLength1:!0,objectId:f}),n("endobj");var d=i();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+a(A.fontName)),n("/FontFile2 "+h+" 0 R"),n("/FontBBox "+t.API.PDFObject.convert(A.metadata.bbox)),n("/Flags "+A.metadata.flags),n("/StemV "+A.metadata.stemV),n("/ItalicAngle "+A.metadata.italicAngle),n("/Ascent "+A.metadata.ascender),n("/Descent "+A.metadata.decender),n("/CapHeight "+A.metadata.capHeight),n(">>"),n("endobj");var p=i();n("<<"),n("/Type /Font"),n("/BaseFont /"+a(A.fontName)),n("/FontDescriptor "+d+" 0 R"),n("/W "+t.API.PDFObject.convert(s)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+A.encoding+")"),n(">>"),n(">>"),n("endobj"),A.objectNumber=i(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+f+" 0 R"),n("/BaseFont /"+a(A.fontName)),n("/Encoding /"+A.encoding),n("/DescendantFonts ["+p+" 0 R]"),n(">>"),n("endobj"),A.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var A=e.font,n=e.out,i=e.newObject,o=e.putStream,a=e.pdfEscapeWithNeededParanthesis;if(A.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===A.encoding){for(var s=A.metadata.rawData,c="",u=0;u<s.length;u++)c+=String.fromCharCode(s[u]);var l=i();o({data:c,addLength1:!0,objectId:l}),n("endobj");var h=i();o({data:r(A.metadata.toUnicode),addLength1:!0,objectId:h}),n("endobj");var f=i();n("<<"),n("/Descent "+A.metadata.decender),n("/CapHeight "+A.metadata.capHeight),n("/StemV "+A.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+l+" 0 R"),n("/Flags 96"),n("/FontBBox "+t.API.PDFObject.convert(A.metadata.bbox)),n("/FontName /"+a(A.fontName)),n("/ItalicAngle "+A.metadata.italicAngle),n("/Ascent "+A.metadata.ascender),n(">>"),n("endobj"),A.objectNumber=i();for(var d=0;d<A.metadata.hmtx.widths.length;d++)A.metadata.hmtx.widths[d]=parseInt(A.metadata.hmtx.widths[d]*(1e3/A.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+a(A.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+A.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(A.metadata.hmtx.widths)+">>"),n("endobj"),A.isAlreadyPutted=!0}}(e)}]);var n=function(t){var e,r=t.text||"",n=t.x,i=t.y,o=t.options||{},a=t.mutex||{},s=a.pdfEscape,c=a.activeFontKey,u=a.fonts,l=c,h="",f=0,d="",p=u[l].encoding;if("Identity-H"!==u[l].encoding)return{text:r,x:n,y:i,options:o,mutex:a};for(d=r,l=c,Array.isArray(r)&&(d=r[0]),f=0;f<d.length;f+=1)u[l].metadata.hasOwnProperty("cmap")&&(e=u[l].metadata.cmap.unicode.codeMap[d[f].charCodeAt(0)]),e||d[f].charCodeAt(0)<256&&u[l].metadata.hasOwnProperty("Unicode")?h+=d[f]:h+="";var B="";return parseInt(l.slice(1))<14||"WinAnsiEncoding"===p?B=s(h,l).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===p&&(B=A(h,u[l])),a.isHex=!0,{text:B,x:n,y:i,options:o,mutex:a}};e.events.push(["postProcessText",function(t){var e=t.text||"",A=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i<e.length;i+=1)Array.isArray(e[i])&&3===e[i].length?A.push([n(Object.assign({},r,{text:e[i][0]})).text,e[i][1],e[i][2]]):A.push(n(Object.assign({},r,{text:e[i]})).text);t.text=A}else t.text=n(Object.assign({},r,{text:e})).text}])}(P),
- /**
- * @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,A){return e.call(this),this.internal.vFS[t]=A,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(P.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 A,r,n,i,o,a,s,c=e,u=[[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},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},d=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],p=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)$/),B=!1,g=0;this.__bidiEngine__={};var w=function(t){var e=t.charCodeAt(),A=e>>8,r=f[A];return void 0!==r?c[256*r+(255&e)]:252===A||253===A?"AL":p.test(A)?"L":8===A?"R":"N"},m=function(t){for(var e,A=0;A<t.length;A++){if("L"===(e=w(t.charAt(A))))return!1;if("R"===e)return!0}return!1},v=function(t,e,o,a){var s,c,u,l,h=e[a];switch(h){case"L":case"R":B=!1;break;case"N":case"AN":break;case"EN":B&&(h="AN");break;case"AL":B=!0,h="R";break;case"WS":h="N";break;case"CS":a<1||a+1>=e.length||"EN"!==(s=o[a-1])&&"AN"!==s||"EN"!==(c=e[a+1])&&"AN"!==c?h="N":B&&(c="AN"),h=c===s?c:"N";break;case"ES":h="EN"===(s=a>0?o[a-1]:"B")&&a+1<e.length&&"EN"===e[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===o[a-1]){h="EN";break}if(B){h="N";break}for(u=a+1,l=e.length;u<l&&"ET"===e[u];)u++;h=u<l&&"EN"===e[u]?"EN":"N";break;case"NSM":if(n&&!i){for(l=e.length,u=a+1;u<l&&"NSM"===e[u];)u++;if(u<l){var f=t[a],d=f>=1425&&f<=2303||64286===f;if(s=e[u],d&&("R"===s||"AL"===s)){h="R";break}}}h=a<1||"B"===(s=e[a-1])?"N":o[a-1];break;case"B":B=!1,A=!0,h=g;break;case"S":r=!0,h="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":B=!1;break;case"BN":h="N"}return h},b=function(t,e,A){var r=t.split("");return A&&Q(r,A,{hiLevel:g}),r.reverse(),e&&e.reverse(),r.join("")},Q=function(t,e,n){var i,o,a,s,c,f=-1,d=t.length,p=0,m=[],b=g?l:u,Q=[];for(B=!1,A=!1,r=!1,o=0;o<d;o++)Q[o]=w(t[o]);for(a=0;a<d;a++){if(c=p,m[a]=v(t,Q,m,a),i=240&(p=b[c][h[m[a]]]),p&=15,e[a]=s=b[p][5],i>0)if(16===i){for(o=f;o<a;o++)e[o]=1;f=-1}else f=-1;if(b[p][6])-1===f&&(f=a);else if(f>-1){for(o=f;o<a;o++)e[o]=s;f=-1}"B"===Q[a]&&(e[a]=0),n.hiLevel|=s}r&&function(t,e,A){for(var r=0;r<A;r++)if("S"===t[r]){e[r]=g;for(var n=r-1;n>=0&&"WS"===t[n];n--)e[n]=g}}(Q,e,d)},C=function(t,e,r,n,i){if(!(i.hiLevel<t)){if(1===t&&1===g&&!A)return e.reverse(),void(r&&r.reverse());for(var o,a,s,c,u=e.length,l=0;l<u;){if(n[l]>=t){for(s=l+1;s<u&&n[s]>=t;)s++;for(c=l,a=s-1;c<a;c++,a--)o=e[c],e[c]=e[a],e[a]=o,r&&(o=r[c],r[c]=r[a],r[a]=o);l=s}l++}}},y=function(t,e,A){var r=t.split(""),n={hiLevel:g};return A||(A=[]),Q(r,A,n),function(t,e,A){if(0!==A.hiLevel&&s)for(var r,n=0;n<t.length;n++)1===e[n]&&(r=d.indexOf(t[n]))>=0&&(t[n]=d[r+1])}(r,A,n),C(2,r,e,A,n),C(1,r,e,A,n),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,A){if(function(t,e){if(e)for(var A=0;A<t.length;A++)e[A]=A;void 0===i&&(i=m(t)),void 0===a&&(a=m(t))}(t,e),n||!o||a)if(n&&o&&i^a)g=i?1:0,t=b(t,e,A);else if(!n&&o&&a)g=i?1:0,t=y(t,e,A),t=b(t,e);else if(!n||i||o||a){if(n&&!o&&i^a)t=b(t,e),i?(g=0,t=y(t,e,A)):(g=1,t=y(t,e,A),t=b(t,e));else if(n&&i&&!o&&a)g=1,t=y(t,e,A),t=b(t,e);else if(!n&&!o&&i^a){var r=s;i?(g=1,t=y(t,e,A),g=0,s=!1,t=y(t,e,A),s=r):(g=0,t=y(t,e,A),t=b(t,e),g=1,s=!1,t=y(t,e,A),s=r,t=b(t,e))}}else g=0,t=y(t,e,A);else g=i?1:0,t=y(t,e,A);return t},this.__bidiEngine__.setOptions=function(t){t&&(n=t.isInputVisual,o=t.isOutputVisual,i=t.isInputRtl,a=t.isOutputRtl,s=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"],A=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),n=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,A.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var i=0;for(n=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?n.push([A.doBidiReorder(e[i][0]),e[i][1],e[i][2]]):n.push([A.doBidiReorder(e[i])]);t.text=n}else t.text=A.doBidiReorder(e);A.setOptions({isInputVisual:!0})}])}(P),P.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Ae(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new be(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new re(this.contents),this.head=new oe(this),this.name=new fe(this),this.cmap=new se(this),this.toUnicode={},this.hhea=new ce(this),this.maxp=new de(this),this.hmtx=new pe(this),this.post=new le(this),this.os2=new ue(this),this.loca=new ve(this),this.glyf=new ge(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,A,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,A,r,n;for(n=[],e=0,A=(r=this.bbox).length;e<A;e++)t=r[e],n.push(Math.round(t*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(A=255&(r=this.post.italic_angle),0!=(32768&(e=r>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+A)):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===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,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,A){var r,n,i,o;for(i=0,n=0,o=(t=""+t).length;0<=o?n<o:n>o;n=0<=o?++n:--n)r=t.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+A*(1e3/e)||0;return i*(e/1e3)},t.prototype.lineHeight=function(t,e){var A;return null==e&&(e=!1),A=e?this.lineGap:0,(this.ascender+A-this.decender)/1e3*t},t}();var ee,Ae=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,A;for(A=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)A[e]=String.fromCharCode(this.readByte());return A.join("")},t.prototype.writeString=function(t){var e,A,r;for(r=[],e=0,A=t.length;0<=A?e<A:e>A;e=0<=A?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,A,r,n,i,o,a;return t=this.readByte(),e=this.readByte(),A=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^A)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*A+4294967296*r+16777216*n+65536*i+256*o+a},t.prototype.writeLongLong=function(t){var e,A;return e=Math.floor(t/4294967296),A=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,A;for(e=[],A=0;0<=t?A<t:A>t;A=0<=t?++A:--A)e.push(this.readByte());return e},t.prototype.write=function(t){var e,A,r,n;for(n=[],A=0,r=t.length;A<r;A++)e=t[A],n.push(this.writeByte(e));return n},t}(),re=function(){var t;function e(t){var e,A,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},A=0,r=this.tableCount;0<=r?A<r:A>r;A=0<=r?++A:--A)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 A,r,n,i,o,a,s,c,u,l,h,f,d;for(d in h=Object.keys(e).length,a=Math.log(2),u=16*Math.floor(Math.log(h)/a),i=Math.floor(u/a),c=16*h-u,(r=new Ae).writeInt(this.scalarType),r.writeShort(h),r.writeShort(u),r.writeShort(i),r.writeShort(c),n=16*h,s=r.pos+n,o=null,f=[],e)for(l=e[d],r.writeString(d),r.writeInt(t(l)),r.writeInt(s),r.writeInt(l.length),f=f.concat(l),"head"===d&&(o=s),s+=l.length;s%4;)f.push(0),s++;return r.write(f),A=2981146554-t(r.data),r.pos=o+8,r.writeUInt32(A),r.data},t=function(t){var e,A,r,n;for(t=Be.call(t);t.length%4;)t.push(0);for(r=new Ae(t),A=0,e=0,n=t.length;e<n;e=e+=4)A+=r.readUInt32();return 4294967295&A},e}(),ne={}.hasOwnProperty,ie=function(t,e){for(var A in e)ne.call(e,A)&&(t[A]=e[A]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};ee=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 oe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),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 Ae).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}(),ae=function(){function t(t,e){var A,r,n,i,o,a,s,c,u,l,h,f,d,p,B,g,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),u=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(a=0;a<256;++a)this.codeMap[a]=t.readByte();break;case 4:for(h=t.readUInt16(),l=h/2,t.pos+=6,n=function(){var e,A;for(A=[],a=e=0;0<=l?e<l:e>l;a=0<=l?++e:--e)A.push(t.readUInt16());return A}(),t.pos+=2,d=function(){var e,A;for(A=[],a=e=0;0<=l?e<l:e>l;a=0<=l?++e:--e)A.push(t.readUInt16());return A}(),s=function(){var e,A;for(A=[],a=e=0;0<=l?e<l:e>l;a=0<=l?++e:--e)A.push(t.readUInt16());return A}(),c=function(){var e,A;for(A=[],a=e=0;0<=l?e<l:e>l;a=0<=l?++e:--e)A.push(t.readUInt16());return A}(),r=(this.length-t.pos+this.offset)/2,o=function(){var e,A;for(A=[],a=e=0;0<=r?e<r:e>r;a=0<=r?++e:--e)A.push(t.readUInt16());return A}(),a=B=0,w=n.length;B<w;a=++B)for(p=n[a],A=g=f=d[a];f<=p?g<=p:g>=p;A=f<=p?++g:--g)0===c[a]?i=A+s[a]:0!==(i=o[c[a]/2+(A-f)-(l-a)]||0)&&(i+=s[a]),this.codeMap[A]=65535&i}t.pos=u}return t.encode=function(t,e){var A,r,n,i,o,a,s,c,u,l,h,f,d,p,B,g,w,m,v,b,Q,C,y,F,U,N,E,L,H,S,_,x,I,P,T,O,R,K,M,k,D,j,z,V,q,G;switch(L=new Ae,i=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(d=0,p=function(){var t=[];for(f=0;f<256;++f)t.push(0);return t}(),g={0:0},n={},H=0,I=i.length;H<I;H++)null==g[z=t[r=i[H]]]&&(g[z]=++d),n[r]={old:t[r],new:g[t[r]]},p[r]=g[t[r]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(p),{charMap:n,subtable:L.data,maxGlyphID:d+1};case"unicode":for(N=[],u=[],w=0,g={},A={},B=s=null,S=0,P=i.length;S<P;S++)null==g[v=t[r=i[S]]]&&(g[v]=++w),A[r]={old:v,new:g[v]},o=g[v]-r,null!=B&&o===s||(B&&u.push(B),N.push(r),s=o),B=r;for(B&&u.push(B),u.push(65535),N.push(65535),F=2*(y=N.length),C=2*Math.pow(Math.log(y)/Math.LN2,2),l=Math.log(C/2)/Math.LN2,Q=2*y-C,a=[],b=[],h=[],f=_=0,T=N.length;_<T;f=++_){if(U=N[f],c=u[f],65535===U){a.push(0),b.push(0);break}if(U-(E=A[U].new)>=32768)for(a.push(0),b.push(2*(h.length+y-f)),r=x=U;U<=c?x<=c:x>=c;r=U<=c?++x:--x)h.push(A[r].new);else a.push(E-U),b.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*y+2*h.length),L.writeUInt16(0),L.writeUInt16(F),L.writeUInt16(C),L.writeUInt16(l),L.writeUInt16(Q),D=0,O=u.length;D<O;D++)r=u[D],L.writeUInt16(r);for(L.writeUInt16(0),j=0,R=N.length;j<R;j++)r=N[j],L.writeUInt16(r);for(V=0,K=a.length;V<K;V++)o=a[V],L.writeUInt16(o);for(q=0,M=b.length;q<M;q++)m=b[q],L.writeUInt16(m);for(G=0,k=h.length;G<k;G++)d=h[G],L.writeUInt16(d);return{charMap:A,subtable:L.data,maxGlyphID:w+1}}},t}(),se=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,A,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,A=0;0<=r?A<r:A>r;A=0<=r?++A:--A)e=new ae(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var A,r;return null==e&&(e="macroman"),A=ae.encode(t,e),(r=new Ae).writeUInt16(0),r.writeUInt16(1),A.table=r.data.concat(A.subtable),A},e}(),ce=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),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}(),ue=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),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,A;for(A=[],e=0;e<10;++e)A.push(t.readByte());return A}(),this.charRange=function(){var e,A;for(A=[],e=0;e<4;++e)A.push(t.readInt());return A}(),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,A;for(A=[],e=0;e<2;e=++e)A.push(t.readInt());return A}(),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}(),le=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),e.prototype.tag="post",e.prototype.parse=function(t){var e,A,r;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 n;for(A=t.readUInt16(),this.glyphNameIndex=[],n=0;0<=A?n<A:n>A;n=0<=A?++n:--n)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return A=t.readUInt16(),this.offsets=t.read(A);case 196608:break;case 262144:return this.map=function(){var e,A,r;for(r=[],n=e=0,A=this.file.maxp.numGlyphs;0<=A?e<A:e>A;n=0<=A?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),he=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},fe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),e.prototype.tag="name",e.prototype.parse=function(t){var e,A,r,n,i,o,a,s,c,u,l;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),A=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)A.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},n=c=0,u=A.length;c<u;n=++c)r=A[n],t.pos=r.offset,s=t.readString(r.length),i=new he(s,r),null==a[l=r.nameID]&&(a[l]=[]),a[r.nameID].push(i);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),de=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),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}(),pe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,A,r,n,i,o,a;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var A,n;for(n=[],e=A=0;0<=r?A<r:A>r;e=0<=r?++A:--A)n.push(t.readInt16());return n}(),this.widths=function(){var t,e,A,r;for(r=[],t=0,e=(A=this.metrics).length;t<e;t++)n=A[t],r.push(n.advance);return r}.call(this),A=this.widths[this.widths.length-1],a=[],e=i=0;0<=r?i<r:i>r;e=0<=r?++i:--i)a.push(this.widths.push(A));return a},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}(),Be=[].slice,ge=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,A,r,n,i,o,a,s,c,u;return t in this.cache?this.cache[t]:(n=this.file.loca,e=this.file.contents,A=n.indexOf(t),0===(r=n.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+A,i=(o=new Ae(e.read(r))).readShort(),s=o.readShort(),u=o.readShort(),a=o.readShort(),c=o.readShort(),this.cache[t]=-1===i?new me(o,s,u,a,c):new we(o,i,s,u,a,c),this.cache[t]))},e.prototype.encode=function(t,e,A){var r,n,i,o,a;for(i=[],n=[],o=0,a=e.length;o<a;o++)r=t[e[o]],n.push(i.length),r&&(i=i.concat(r.encode(A)));return n.push(i.length),{table:i,offsets:n}},e}(),we=function(){function t(t,e,A,r,n,i){this.raw=t,this.numberOfContours=e,this.xMin=A,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),me=function(){function t(t,e,A,r,n){var i,o;for(this.raw=t,this.xMin=e,this.yMin=A,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readUInt16()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(){var t,e,A;for(e=new Ae(Be.call(this.raw.data)),t=0,A=this.glyphIDs.length;t<A;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),ve=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ie(e,ee),e.prototype.tag="loca",e.prototype.parse=function(t){var e,A;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],A=0,e=this.length;A<e;A+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],A=0,e=this.length;A<e;A+=4)r.push(t.readUInt32());return r}.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 A=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<A.length;++i)if(A[i]=r,n<e.length&&e[n]==i){++n,A[i]=r;var o=this.offsets[i],a=this.offsets[i+1]-o;a>0&&(r+=a)}for(var s=new Array(4*A.length),c=0;c<A.length;++c)s[4*c+3]=255&A[c],s[4*c+2]=(65280&A[c])>>8,s[4*c+1]=(16711680&A[c])>>16,s[4*c]=(4278190080&A[c])>>24;return s},e}(),be=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,A,r,n;for(e in r=this.font.cmap.tables[0].codeMap,t={},n=this.subset)A=n[e],t[e]=r[A];return t},t.prototype.glyphsFor=function(t){var e,A,r,n,i,o,a;for(r={},i=0,o=t.length;i<o;i++)r[n=t[i]]=this.font.glyf.glyphFor(n);for(n in e=[],r)(null!=(A=r[n])?A.compound:void 0)&&e.push.apply(e,A.glyphIDs);if(e.length>0)for(n in a=this.glyphsFor(e))A=a[n],r[n]=A;return r},t.prototype.encode=function(t,e){var A,r,n,i,o,a,s,c,u,l,h,f,d,p,B;for(r in A=se.encode(this.generateCmap(),"unicode"),i=this.glyphsFor(t),h={0:0},B=A.charMap)h[(a=B[r]).old]=a.new;for(f in l=A.maxGlyphID,i)f in h||(h[f]=l++);return c=function(t){var e,A;for(e in A={},t)A[t[e]]=e;return A}(h),u=Object.keys(c).sort((function(t,e){return t-e})),d=function(){var t,e,A;for(A=[],t=0,e=u.length;t<e;t++)o=u[t],A.push(c[o]);return A}(),n=this.font.glyf.encode(i,d,h),s=this.font.loca.encode(n.offsets,d),p={cmap:this.font.cmap.raw(),glyf:n.table,loca:s,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&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},t}();P.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(A){var r,n,i,o;if(Array.isArray(A))return"["+function(){var t,n,i;for(i=[],t=0,n=A.length;t<n;t++)r=A[t],i.push(e.convert(r));return i}().join(" ")+"]";if("string"==typeof A)return"/"+A;if(null!=A?A.isString:void 0)return"("+A+")";if(A instanceof Date)return"(D:"+t(A.getUTCFullYear(),4)+t(A.getUTCMonth(),2)+t(A.getUTCDate(),2)+t(A.getUTCHours(),2)+t(A.getUTCMinutes(),2)+t(A.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(A)){for(n in i=["<<"],A)o=A[n],i.push("/"+n+" "+e.convert(o));return i.push(">>"),i.join("\n")}return""+A},e}(),e["default"]=P}.call(this,A("2409"))},a313:function(t,e,A){"use strict";A.r(e);var r=function(){var t=this,e=t.$createElement,A=t._self._c||e;return A("section",{staticClass:"tjfx"},[A("el-breadcrumb",{attrs:{separator:"/"}},[A("el-breadcrumb-item",[t._v("审读管理")]),A("el-breadcrumb-item",{on:{click:function(e){return t.$router.go(-1)}}},[t._v("四封审读")]),A("el-breadcrumb-item",[t._v(t._s(t.data.name))])],1),A("div",{staticClass:"content"},[A("el-button",{attrs:{type:"text"},on:{click:function(e){return t.$router.go(-1)}}},[t._v("返回")]),A("el-button",{staticStyle:{float:"right"},attrs:{type:"success",size:"mini"},on:{click:t.downloadpdf}},[t._v("下载pdf")]),A("div",{staticClass:"printingPage"},[t.text?A("h1",{staticClass:"sh_title",staticStyle:{margin:"10vh 0"}},[t._v(t._s(t.text))]):t._e(),t.data.id?A("h1",{staticClass:"sh_title"},[t._v(t._s(t.data.name))]):t._e(),A("div",{staticClass:"desc"},[A("p",{domProps:{innerHTML:t._s(t.data.desc)}})]),t.data.id?A("el-row",{staticStyle:{padding:"10px"}},[A("el-col",{staticStyle:{background:"#f5f5f5",padding:"10px"},attrs:{span:6}},[t._v("\n 期刊名称: "+t._s(t.data.journal)),A("br"),A("br"),t._v("\n 期刊负责人: "+t._s(t.data.journaluser_realname)),A("br"),A("br"),t._v("\n 负责人电话:"+t._s(t.data.journaluser_phone)),A("br"),A("br"),A("b",[t._v("审读工作流程:")]),A("br"),A("br"),t.data.workflow_records?A("div",{style:"height:"+100*t.data.workflow_records.length+"px"},[A("el-timeline",t._l(t.data.workflow_records,(function(e,r){return A("el-timeline-item",{key:r,class:t.flow_index==r?"active":"",staticStyle:{cursor:"pointer"},attrs:{color:e.color,timestamp:e.ctime},nativeOn:{click:function(A){return t.step(e.record_id,r)}}},[t._v("\n "+t._s(e.desc)+"\n ")])})),1)],1):t._e()]),A("el-col",{staticClass:"wj",attrs:{span:18}},[t.data.post_status>0&&t.data.journal_fourface&&t.data.journal_fourface.length>0?A("div",[A("p",[t._v("\n "+t._s(t.data.journal)+"四封图片: \n "),t.data.post_status>0?A("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.downloadFourFace(t.data)}}},[t._v("下载四封图片")]):t._e()],1),A("br"),t.data.journal_fourface?A("ul",t._l(t.data.journal_fourface,(function(e,r){return A("li",{key:r},[A("el-image",{staticStyle:{width:"100px"},attrs:{src:e,"preview-src-list":t.data.journal_fourface}}),A("br"),t._v("\n "+t._s(t.word[r])+"\n ")],1)})),0):t._e()]):A("div",[A("p",[A("span",{staticStyle:{color:"red"}},[t._v("*")]),t._v(" 上传期刊四封图片:")]),A("div",{staticClass:"el-upload__tip",staticStyle:{color:"red"},attrs:{slot:"tip"},slot:"tip"},[t._v("图片说明:只能上传jpeg/jpg/png文件,且不超过10M")]),A("br"),A("el-upload",{attrs:{action:"/api/admin/uploadfile","list-type":"picture-card","on-success":t.imageChange,"on-remove":function(e,A){return t.handleRemove(e,A)},"file-list":t.journal_fourface_list,limit:10}},[A("i",{staticClass:"el-icon-plus"})])],1),A("temp",{ref:"temp",attrs:{show_record:t.show_record,show_head:!0,info:t.data},on:{post:t.post}})],1)],1):t._e()],1)],1)],1)},n=[],i=(A("1bc78"),A("8dee"),A("fc02"),A("a450"),A("78c3")),o=A("4e3d"),a=A.n(o),s={components:{temp:i["a"]},data:function(){return{text:"",active:0,title:"申请复检原因",word:["一","二","三","四"],open:!1,query:{record_id:-1},list:[],form:{name:""},progress:1,data:{},journal_fourface:[],journal_fourface_list:[],role:"",review_remark:"",review_attach:"",show_record:!1,flow_index:999,url:"https://tederen.oss-cn-shanghai.aliyuncs.com/Axure/zhongkeyuan/03_2021/sifengshendu_04_jb/images/%E9%A2%84%E8%A7%88%E5%B0%81%E5%9B%9B1/u2979.jpg",img_list:["https://tederen.oss-cn-shanghai.aliyuncs.com/Axure/zhongkeyuan/03_2021/sifengshendu_04_jb/images/%E9%A2%84%E8%A7%88%E5%B0%81%E5%9B%9B1/u2979.jpg"]}},methods:{downloadpdf:function(){var t=document.querySelector(".printingPage"),e=this.data.name;a()(t,{jsPDF:{unit:"pt",format:"a4"},imageType:"image/jpeg",html2canvas:{allowTaint:!0,useCORS:!0},success:function(t){window.scrollTo(0,document.body.scrollHeight),t.save(e+".pdf")}})},downloadFourFace:function(t){var e=this;this.$api.downloadFourFace({journal:t.journal,journal_fourface:t.journal_fourface}).then((function(t){var A=document.createElement("a"),r=new Blob([t.data],{type:"application/zip,charset=UTF-8"}),n=URL.createObjectURL(r),i=decodeURIComponent(t.headers["content-disposition"].split("=")[1]);console.log(i),A.download=i,A.style.display="none",A.href=n,document.body.appendChild(A),A.click(),document.body.removeChild(A),e.download_loading=!1}))},step:function(t,e){if(this.flow_index=e,this.query.record_id=t,this.getData(1),!this.data.workflow_records)return!1;var A=this.data.workflow_records.length-1;this.data.workflow_records[A].record_id==t?this.show_record=!1:this.show_record=!0},handleRemove:function(t,e){this.journal_fourface_list=e},imageChange:function(t,e,A){if(this.journal_fourface_list.length<=10){var r=t.data.split("/").pop(),n=t.data;this.journal_fourface_list.push({name:r,url:n})}else this.$message.error("只能上传10张封面")},getData:function(t){var e=this;this.$api.getWorkflow(this.query).then((function(A){if(!A.data.data)return e.text="-暂无数据-",!1;e.data=A.data.data;var r=e.data.desc;r=r.replace(/\n/g,"</p><p>"),r=r.replace(/<br>/g,"</p><p>"),e.data.desc="<p>"+r+"</p>";var n=e.data.workflow_records;if(!t&&n&&(e.flow_index=n.length-1),n){n=e.data.workflow_records.reverse(),e.data.workflow_records=n;for(var i=0;i<n.length;i++)i==e.flow_index?n[i].color="#0bbd87":n[i].color="";e.data.workflow_records=n}A.data.data.journal_fourface&&A.data.data.journal_fourface.forEach((function(t){var A=t.split("/").pop();e.journal_fourface_list.push({name:A,url:t})}))}))},review:function(){var t=this,e=this.form1;e.review_remark=this.review_remark,e.review_attach=this.review_attach,this.$api.addWorkflow(e).then((function(e){0==e.data.code?(t.$message({message:"申请成功!",type:"success"}),t.$router.go(-1)):t.$message.error(e.data.message)}))},post:function(t){var e=this,A=[];if(this.journal_fourface_list.forEach((function(t){A.push(t.url)})),t.journal_fourface=A,0!=t.action&&t.journal_fourface.length<=0&&1==this.role)return this.$message.error("请上传封面图片"),!1;this.$api.addWorkflow(t).then((function(t){0==t.data.code?(e.$message({message:"操作成功!",type:"success"}),e.$router.go(-1)):e.$message.error(t.data.message)}))}},mounted:function(){this.$route.query.id&&(this.query.id=this.$route.query.id,this.getData())},created:function(){this.role=localStorage.getItem("role")}},c=s,u=(A("a9ab"),A("5d22")),l=Object(u["a"])(c,r,n,!1,null,null,null);e["default"]=l.exports},a9ab:function(t,e,A){"use strict";A("c8a8")},c8a8:function(t,e,A){}}]);
- //# sourceMappingURL=chunk-d06b0e54.0118c524.js.map
|