File: //proc/self/root/opt/netdata/usr/share/netdata/web/v3/1522.07ba52a20ef8ce7e5195.chunk.js
/*! For license information please see 1522.07ba52a20ef8ce7e5195.chunk.js.LICENSE.txt */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"add58d114229f0c7996ebd9e09ce63888b5394f2"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5a281350-5f3f-42d6-9743-ca57b6167647",e._sentryDebugIdIdentifier="sentry-dbid-5a281350-5f3f-42d6-9743-ca57b6167647")}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[1522],{42561(e,t){"use strict";t.A=void 0;t.A=function(e){var t=[];for(e=e.parentNode;e;)t.push(e),e=e.parentNode;return t}},43119(e,t,r){"use strict";t.A=void 0;var n=r(96540);t.A=function(e){return(0,n.useEffect)((function(){if(e){var t=function(t){27===t.keyCode&&e(t)};return document.addEventListener("keydown",t),function(){return document.removeEventListener("keydown",t)}}}),[e])}},24716(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Ay:()=>z});var i=r(69861);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=r(7587),u=function(){return"undefined"!=typeof window?window:"undefined"!=typeof r.g?r.g:"undefined"!=typeof self?self:this}();function l(){u.console&&"function"==typeof u.console.log&&u.console.log.apply(u.console,arguments)}var c={log:l,warn:function(e){u.console&&("function"==typeof u.console.warn?u.console.warn.apply(u.console,arguments):l.call(null,arguments))},error:function(e){u.console&&("function"==typeof u.console.error?u.console.error.apply(u.console,arguments):l(e))}};function h(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){f(n.response,t,r)},n.onerror=function(){c.error("could not download file")},n.send()}function p(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(r){}return t.status>=200&&t.status<=299}function d(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var f=u.saveAs||("object"!==("undefined"==typeof window?"undefined":n(window))||window!==u?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=u.URL||u.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?p(i.href)?h(e,t,r):d(i,i.target="_blank"):d(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){d(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"==typeof e)if(p(e))h(e,t,r);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){d(i)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==n(t)&&(c.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,t,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return h(e,t,r);var o="application/octet-stream"===e.type,a=/constructor/i.test(u.HTMLElement)||u.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||o&&a)&&"object"===("undefined"==typeof FileReader?"undefined":n(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var c=u.URL||u.webkitURL,p=c.createObjectURL(e);i?i.location=p:location.href=p,i=null,setTimeout((function(){c.revokeObjectURL(p)}),4e4)}});function m(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,o=r[n].process,a=i.exec(e);a&&(t=o(a),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r}}var g=u.atob.bind(u),v=u.btoa.bind(u);function y(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r=D(r,n,i,o,t[0],7,-680876936),o=D(o,r,n,i,t[1],12,-389564586),i=D(i,o,r,n,t[2],17,606105819),n=D(n,i,o,r,t[3],22,-1044525330),r=D(r,n,i,o,t[4],7,-176418897),o=D(o,r,n,i,t[5],12,1200080426),i=D(i,o,r,n,t[6],17,-1473231341),n=D(n,i,o,r,t[7],22,-45705983),r=D(r,n,i,o,t[8],7,1770035416),o=D(o,r,n,i,t[9],12,-1958414417),i=D(i,o,r,n,t[10],17,-42063),n=D(n,i,o,r,t[11],22,-1990404162),r=D(r,n,i,o,t[12],7,1804603682),o=D(o,r,n,i,t[13],12,-40341101),i=D(i,o,r,n,t[14],17,-1502002290),r=w(r,n=D(n,i,o,r,t[15],22,1236535329),i,o,t[1],5,-165796510),o=w(o,r,n,i,t[6],9,-1069501632),i=w(i,o,r,n,t[11],14,643717713),n=w(n,i,o,r,t[0],20,-373897302),r=w(r,n,i,o,t[5],5,-701558691),o=w(o,r,n,i,t[10],9,38016083),i=w(i,o,r,n,t[15],14,-660478335),n=w(n,i,o,r,t[4],20,-405537848),r=w(r,n,i,o,t[9],5,568446438),o=w(o,r,n,i,t[14],9,-1019803690),i=w(i,o,r,n,t[3],14,-187363961),n=w(n,i,o,r,t[8],20,1163531501),r=w(r,n,i,o,t[13],5,-1444681467),o=w(o,r,n,i,t[2],9,-51403784),i=w(i,o,r,n,t[7],14,1735328473),r=k(r,n=w(n,i,o,r,t[12],20,-1926607734),i,o,t[5],4,-378558),o=k(o,r,n,i,t[8],11,-2022574463),i=k(i,o,r,n,t[11],16,1839030562),n=k(n,i,o,r,t[14],23,-35309556),r=k(r,n,i,o,t[1],4,-1530992060),o=k(o,r,n,i,t[4],11,1272893353),i=k(i,o,r,n,t[7],16,-155497632),n=k(n,i,o,r,t[10],23,-1094730640),r=k(r,n,i,o,t[13],4,681279174),o=k(o,r,n,i,t[0],11,-358537222),i=k(i,o,r,n,t[3],16,-722521979),n=k(n,i,o,r,t[6],23,76029189),r=k(r,n,i,o,t[9],4,-640364487),o=k(o,r,n,i,t[12],11,-421815835),i=k(i,o,r,n,t[15],16,530742520),r=_(r,n=k(n,i,o,r,t[2],23,-995338651),i,o,t[0],6,-198630844),o=_(o,r,n,i,t[7],10,1126891415),i=_(i,o,r,n,t[14],15,-1416354905),n=_(n,i,o,r,t[5],21,-57434055),r=_(r,n,i,o,t[12],6,1700485571),o=_(o,r,n,i,t[3],10,-1894986606),i=_(i,o,r,n,t[10],15,-1051523),n=_(n,i,o,r,t[1],21,-2054922799),r=_(r,n,i,o,t[8],6,1873313359),o=_(o,r,n,i,t[15],10,-30611744),i=_(i,o,r,n,t[6],15,-1560198380),n=_(n,i,o,r,t[13],21,1309151649),r=_(r,n,i,o,t[4],6,-145523070),o=_(o,r,n,i,t[11],10,-1120210379),i=_(i,o,r,n,t[2],15,718787259),n=_(n,i,o,r,t[9],21,-343485551),e[0]=L(r,e[0]),e[1]=L(n,e[1]),e[2]=L(i,e[2]),e[3]=L(o,e[3])}function b(e,t,r,n,i,o){return t=L(L(t,e),L(n,o)),L(t<<i|t>>>32-i,r)}function D(e,t,r,n,i,o,a){return b(t&r|~t&n,e,t,i,o,a)}function w(e,t,r,n,i,o,a){return b(t&n|r&~n,e,t,i,o,a)}function k(e,t,r,n,i,o,a){return b(t^r^n,e,t,i,o,a)}function _(e,t,r,n,i,o,a){return b(r^(t|~n),e,t,i,o,a)}function x(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)y(n,F(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(y(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,y(n,i),n}function F(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var C="0123456789abcdef".split("");function S(e){for(var t="",r=0;r<4;r++)t+=C[e>>8*r+4&15]+C[e>>8*r&15];return t}function A(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function E(e){return x(e).map(A).join("")}var N="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=S(e[t]);return e.join("")}(x("hello"));function L(e,t){if(N){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}function P(e,t){var r,n,i,o;if(e!==r){for(var a=(i=e,o=1+(256/e.length|0),new Array(o+1).join(i)),s=[],u=0;u<256;u++)s[u]=u;var l=0;for(u=0;u<256;u++){var c=s[u];l=(l+c+a.charCodeAt(u))%256,s[u]=s[l],s[l]=c}r=e,n=s}else s=n;var h=t.length,p=0,d=0,f="";for(u=0;u<h;u++)d=(d+(c=s[p=(p+1)%256]))%256,s[p]=s[d],s[d]=c,a=s[(s[p]+s[d])%256],f+=String.fromCharCode(t.charCodeAt(u)^a);return f}var M={print:4,modify:8,copy:16,"annot-forms":32};function I(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach((function(e){if(void 0!==M.perm)throw new Error("Invalid permission: "+e);i+=M[e]})),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var o=(t+this.padding).substr(0,32),a=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=E(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=P(this.encryptionKey,this.padding)}function T(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);t+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):e[n]}return t}function O(e){if("object"!==n(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,n){if(n=n||!1,"string"!=typeof e||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[r,!!n],i},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],0===Object.keys(t[r]).length&&delete t[r],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[r]){var a=t[r][o];try{a[0].apply(e,n)}catch(d){u.console&&c.error("jsPDF PubSub Error",d.message,d)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function B(e){if(!(this instanceof B))return new B(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function j(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function R(e,t,r,n,i){if(!(this instanceof R))return new R(e,t,r,n,i);this.type="axial"===e?2:3,this.coords=t,this.colors=r,j.call(this,n,i)}function q(e,t,r,n,i){if(!(this instanceof q))return new q(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,j.call(this,n,i)}function z(e){var t,r="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],o=arguments[2],a=arguments[3],s=[],l=1,h=16,p="S",d=null;"object"===n(e=e||{})&&(r=e.orientation,i=e.unit||i,o=e.format||o,a=e.compress||e.compressPdf||a,null!==(d=e.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),l="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(h=e.floatPrecision),p=e.defaultPathOperation||"S"),s=e.filters||(!0===a?["FlateEncode"]:s),i=i||"mm",r=(""+(r||"P")).toLowerCase();var g=e.putOnlyUsedFonts||!1,y={},b={internal:{},__private__:{}};b.__private__.PubSub=O;var D="1.3",w=b.__private__.getPdfVersion=function(){return D};b.__private__.setPdfVersion=function(e){D=e};var k={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};b.__private__.getPageFormats=function(){return k};var _=b.__private__.getPageFormat=function(e){return k[e]};o=o||"a4";var x="compat",F="advanced",C=x;function S(){this.saveGraphicsState(),ce(new We(Fe,0,0,-Fe,0,Sr()*Fe).toString()+" cm"),this.setFontSize(this.getFontSize()/Fe),p="n",C=F}function A(){this.restoreGraphicsState(),p="S",C=x}var E=b.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};b.advancedAPI=function(e){var t=C===x;return t&&S.call(this),"function"!=typeof e||(e(this),t&&A.call(this)),this},b.compatAPI=function(e){var t=C===F;return t&&A.call(this),"function"!=typeof e||(e(this),t&&S.call(this)),this},b.isAdvancedAPI=function(){return C===F};var N,L=function(e){if(C!==F)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=b.roundToPrecision=b.__private__.roundToPrecision=function(e,r){var n=t||r;if(isNaN(e)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(n).replace(/0+$/,"")};N=b.hpf=b.__private__.hpf="number"==typeof h?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return P(e,h)}:"smart"===h?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return P(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return P(e,16)};var M=b.f2=b.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return P(e,2)},j=b.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return P(e,3)},U=b.scale=b.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return C===x?e*Fe:C===F?e:void 0},H=function(e){return U(function(e){return C===x?Sr()-e:C===F?e:void 0}(e))};b.__private__.setPrecision=b.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var W,Y="00000000000000000000000000000000",V=b.__private__.getFileId=function(){return Y},$=b.__private__.setFileId=function(e){return Y=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():Y.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(Mt=new I(d.userPermissions,d.userPassword,d.ownerPassword,Y)),Y};b.setFileId=function(e){return $(e),this},b.getFileId=function(){return V()};var G=b.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),r=t<0?"+":"-",n=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),o=[r,X(n),"'",X(i),"'"].join("");return["D:",e.getFullYear(),X(e.getMonth()+1),X(e.getDate()),X(e.getHours()),X(e.getMinutes()),X(e.getSeconds()),o].join("")},K=b.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),r=parseInt(e.substr(6,2),10)-1,n=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),a=parseInt(e.substr(14,2),10);return new Date(t,r,n,i,o,a,0)},J=b.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=G(e);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(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return W=t},Z=b.__private__.getCreationDate=function(e){var t=W;return"jsDate"===e&&(t=K(W)),t};b.setCreationDate=function(e){return J(e),this},b.getCreationDate=function(e){return Z(e)};var Q,X=b.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},ee=b.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},te=0,re=[],ne=[],ie=0,oe=[],ae=[],se=!1,ue=ne;b.__private__.setCustomOutputDestination=function(e){se=!0,ue=e};var le=function(e){se||(ue=e)};b.__private__.resetCustomOutputDestination=function(){se=!1,ue=ne};var ce=b.__private__.out=function(e){return e=e.toString(),ie+=e.length+1,ue.push(e),ue},he=b.__private__.write=function(e){return ce(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},pe=b.__private__.getArrayBuffer=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r);t--;)n[t]=e.charCodeAt(t);return r},de=[["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]];b.__private__.getStandardFonts=function(){return de};var fe=e.fontSize||16;b.__private__.setFontSize=b.setFontSize=function(e){return fe=C===F?e/Fe:e,this};var me,ge=b.__private__.getFontSize=b.getFontSize=function(){return C===x?fe:fe*Fe},ve=e.R2L||!1;b.__private__.setR2L=b.setR2L=function(e){return ve=e,this},b.__private__.getR2L=b.getR2L=function(){return ve};var ye,be=b.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))me=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');me=e}else me=parseInt(e,10)};b.__private__.getZoomMode=function(){return me};var De,we=b.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');ye=e};b.__private__.getPageMode=function(){return ye};var ke=b.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');De=e};b.__private__.getLayoutMode=function(){return De},b.__private__.setDisplayMode=b.setDisplayMode=function(e,t,r){return be(e),ke(t),we(r),this};var _e={title:"",subject:"",author:"",keywords:"",creator:""};b.__private__.getDocumentProperty=function(e){if(-1===Object.keys(_e).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return _e[e]},b.__private__.getDocumentProperties=function(){return _e},b.__private__.setDocumentProperties=b.setProperties=b.setDocumentProperties=function(e){for(var t in _e)_e.hasOwnProperty(t)&&e[t]&&(_e[t]=e[t]);return this},b.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(_e).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return _e[e]=t};var xe,Fe,Ce,Se,Ae,Ee={},Ne={},Le=[],Pe={},Me={},Ie={},Te={},Oe=null,Be=0,je=[],Re=new O(b),qe=e.hotfixes||[],ze={},Ue={},He=[],We=function e(t,r,n,i,o,a){if(!(this instanceof e))return new e(t,r,n,i,o,a);isNaN(t)&&(t=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[t,r,n,i,o,a]};Object.defineProperty(We.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(We.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(We.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(We.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(We.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(We.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(We.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(We.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(We.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(We.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(We.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(We.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(We.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(We.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(We.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(We.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),We.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(e)},We.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,r=e.sx*this.shy+e.shy*this.sy,n=e.shx*this.sx+e.sy*this.shx,i=e.shx*this.shy+e.sy*this.sy,o=e.tx*this.sx+e.ty*this.shx+this.tx,a=e.tx*this.shy+e.ty*this.sy+this.ty;return new We(t,r,n,i,o,a)},We.prototype.decompose=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(e*e+t*t),s=(e/=a)*r+(t/=a)*n;r-=e*s,n-=t*s;var u=Math.sqrt(r*r+n*n);return s/=u,e*(n/=u)<t*(r/=u)&&(e=-e,t=-t,s=-s,a=-a),{scale:new We(a,0,0,u,0,0),translate:new We(1,0,0,1,i,o),rotate:new We(e,t,-t,e,0,0),skew:new We(1,0,s,1,0,0)}},We.prototype.toString=function(e){return this.join(" ")},We.prototype.inversed=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty,a=1/(e*n-t*r),s=n*a,u=-t*a,l=-r*a,c=e*a;return new We(s,u,l,c,-s*i-l*o,-u*i-c*o)},We.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,r=e.x*this.shy+e.y*this.sy+this.ty;return new gr(t,r)},We.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),r=this.applyToPoint(new gr(e.x+e.w,e.y+e.h));return new vr(t.x,t.y,r.x-t.x,r.y-t.y)},We.prototype.clone=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,i=this.tx,o=this.ty;return new We(e,t,r,n,i,o)},b.Matrix=We;var Ye=b.matrixMult=function(e,t){return t.multiply(e)},Ve=new We(1,0,0,1,0,0);b.unitMatrix=b.identityMatrix=Ve;var $e=function(e,t){if(!Me[e]){var r=(t instanceof R?"Sh":"P")+(Object.keys(Pe).length+1).toString(10);t.id=r,Me[e]=r,Pe[r]=t,Re.publish("addPattern",t)}};b.ShadingPattern=R,b.TilingPattern=q,b.addShadingPattern=function(e,t){return L("addShadingPattern()"),$e(e,t),this},b.beginTilingPattern=function(e){L("beginTilingPattern()"),br(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},b.endTilingPattern=function(e,t){L("endTilingPattern()"),t.stream=ae[Q].join("\n"),$e(e,t),Re.publish("endTilingPattern",t),He.pop().restore()};var Ge,Ke=b.__private__.newObject=function(){var e=Je();return Ze(e,!0),e},Je=b.__private__.newObjectDeferred=function(){return te++,re[te]=function(){return ie},te},Ze=function(e,t){return t="boolean"==typeof t&&t,re[e]=ie,t&&ce(e+" 0 obj"),e},Qe=b.__private__.newAdditionalObject=function(){var e={objId:Je(),content:""};return oe.push(e),e},Xe=Je(),et=Je(),tt=b.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var r=parseFloat(t[0]);t=[r,r,r,"r"]}for(var n="#",i=0;i<3;i++)n+=("0"+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return n},rt=b.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var r=e.ch1,i=e.ch2,o=e.ch3,a=e.ch4,s="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var u=new m(r);if(u.ok)r=u.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var l=parseInt(r.substr(1),16);r=l>>16&255,i=l>>8&255,o=255&l}if(void 0===i||void 0===a&&r===i&&i===o)t="string"==typeof r?r+" "+s[0]:2===e.precision?M(r/255)+" "+s[0]:j(r/255)+" "+s[0];else if(void 0===a||"object"===n(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.","1.","1.",s[1]].join(" ");t="string"==typeof r?[r,i,o,s[1]].join(" "):2===e.precision?[M(r/255),M(i/255),M(o/255),s[1]].join(" "):[j(r/255),j(i/255),j(o/255),s[1]].join(" ")}else t="string"==typeof r?[r,i,o,a,s[2]].join(" "):2===e.precision?[M(r),M(i),M(o),M(a),s[2]].join(" "):[j(r),j(i),j(o),j(a),s[2]].join(" ");return t},nt=b.__private__.getFilters=function(){return s},it=b.__private__.putStream=function(e){var t=(e=e||{}).data||"",r=e.filters||nt(),n=e.alreadyAppliedFilters||[],i=e.addLength1||!1,o=t.length,a=e.objectId,s=function(e){return e};if(null!==d&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(s=Mt.encryptor(a,0));var u={};!0===r&&(r=["FlateEncode"]);var l=e.additionalKeyValues||[],c=(u=void 0!==z.API.processDataByFilters?z.API.processDataByFilters(t,r):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==u.data.length&&(l.push({key:"Length",value:u.data.length}),!0===i&&l.push({key:"Length1",value:o})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var h=0;h<l.length;h+=1)if("DecodeParms"===l[h].key){for(var p=[],f=0;f<u.reverseChain.split("/").length-1;f+=1)p.push("null");p.push(l[h].value),l[h].value="["+p.join(" ")+"]"}}ce("<<");for(var m=0;m<l.length;m++)ce("/"+l[m].key+" "+l[m].value);ce(">>"),0!==u.data.length&&(ce("stream"),ce(s(u.data)),ce("endstream"))},ot=b.__private__.putPage=function(e){var t=e.number,r=e.data,n=e.objId,i=e.contentsObjId;Ze(n,!0),ce("<</Type /Page"),ce("/Parent "+e.rootDictionaryObjId+" 0 R"),ce("/Resources "+e.resourceDictionaryObjId+" 0 R"),ce("/MediaBox ["+parseFloat(N(e.mediaBox.bottomLeftX))+" "+parseFloat(N(e.mediaBox.bottomLeftY))+" "+N(e.mediaBox.topRightX)+" "+N(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&ce("/CropBox ["+N(e.cropBox.bottomLeftX)+" "+N(e.cropBox.bottomLeftY)+" "+N(e.cropBox.topRightX)+" "+N(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&ce("/BleedBox ["+N(e.bleedBox.bottomLeftX)+" "+N(e.bleedBox.bottomLeftY)+" "+N(e.bleedBox.topRightX)+" "+N(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&ce("/TrimBox ["+N(e.trimBox.bottomLeftX)+" "+N(e.trimBox.bottomLeftY)+" "+N(e.trimBox.topRightX)+" "+N(e.trimBox.topRightY)+"]"),null!==e.artBox&&ce("/ArtBox ["+N(e.artBox.bottomLeftX)+" "+N(e.artBox.bottomLeftY)+" "+N(e.artBox.topRightX)+" "+N(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&ce("/UserUnit "+e.userUnit),Re.publish("putPage",{objId:n,pageContext:je[t],pageNumber:t,page:r}),ce("/Contents "+i+" 0 R"),ce(">>"),ce("endobj");var o=r.join("\n");return C===F&&(o+="\nQ"),Ze(i,!0),it({data:o,filters:nt(),objectId:i}),ce("endobj"),n},at=b.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=Be;e++)je[e].objId=Je(),je[e].contentsObjId=Je();for(e=1;e<=Be;e++)r.push(ot({number:e,data:ae[e],objId:je[e].objId,contentsObjId:je[e].contentsObjId,mediaBox:je[e].mediaBox,cropBox:je[e].cropBox,bleedBox:je[e].bleedBox,trimBox:je[e].trimBox,artBox:je[e].artBox,userUnit:je[e].userUnit,rootDictionaryObjId:Xe,resourceDictionaryObjId:et}));Ze(Xe,!0),ce("<</Type /Pages");var n="/Kids [";for(t=0;t<Be;t++)n+=r[t]+" 0 R ";ce(n+"]"),ce("/Count "+Be),ce(">>"),ce("endobj"),Re.publish("postPutPages")},st=function(e){Re.publish("putFont",{font:e,out:ce,newObject:Ke,putStream:it}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ke(),ce("<<"),ce("/Type /Font"),ce("/BaseFont /"+T(e.postScriptName)),ce("/Subtype /Type1"),"string"==typeof e.encoding&&ce("/Encoding /"+e.encoding),ce("/FirstChar 32"),ce("/LastChar 255"),ce(">>"),ce("endobj"))},ut=function(e){e.objectNumber=Ke();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[N(e.x),N(e.y),N(e.x+e.width),N(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var r=e.pages[1].join("\n");it({data:r,additionalKeyValues:t,objectId:e.objectNumber}),ce("endobj")},lt=function(e,t){t||(t=21);var r=Ke(),n=function(e,t){var r,n=[],i=1/(t-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=e[0].offset){var o={offset:0,color:e[0].color};e.unshift(o)}if(1!=e[e.length-1].offset){var a={offset:1,color:e[e.length-1].color};e.push(a)}for(var s="",u=0,l=0;l<n.length;l++){for(r=n[l];r>e[u+1].offset;)u++;var c=e[u].offset,h=(r-c)/(e[u+1].offset-c),p=e[u].color,d=e[u+1].color;s+=ee(Math.round((1-h)*p[0]+h*d[0]).toString(16))+ee(Math.round((1-h)*p[1]+h*d[1]).toString(16))+ee(Math.round((1-h)*p[2]+h*d[2]).toString(16))}return s.trim()}(e.colors,t),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+t+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),it({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ce("endobj"),e.objectNumber=Ke(),ce("<< /ShadingType "+e.type),ce("/ColorSpace /DeviceRGB");var o="/Coords ["+N(parseFloat(e.coords[0]))+" "+N(parseFloat(e.coords[1]))+" ";2===e.type?o+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3])):o+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3]))+" "+N(parseFloat(e.coords[4]))+" "+N(parseFloat(e.coords[5])),ce(o+="]"),e.matrix&&ce("/Matrix ["+e.matrix.toString()+"]"),ce("/Function "+r+" 0 R"),ce("/Extend [true true]"),ce(">>"),ce("endobj")},ct=function(e,t){var r=Je(),n=Ke();t.push({resourcesOid:r,objectOid:n}),e.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+e.boundingBox.map(N).join(" ")+"]"}),i.push({key:"XStep",value:N(e.xStep)}),i.push({key:"YStep",value:N(e.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),e.matrix&&i.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),it({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),ce("endobj")},ht=function(e){for(var t in e.objectNumber=Ke(),ce("<<"),e)switch(t){case"opacity":ce("/ca "+M(e[t]));break;case"stroke-opacity":ce("/CA "+M(e[t]))}ce(">>"),ce("endobj")},pt=function(e){Ze(e.resourcesOid,!0),ce("<<"),ce("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in ce("/Font <<"),Ee)Ee.hasOwnProperty(e)&&(!1===g||!0===g&&y.hasOwnProperty(e))&&ce("/"+e+" "+Ee[e].objectNumber+" 0 R");ce(">>")}(),function(){if(Object.keys(Pe).length>0){for(var e in ce("/Shading <<"),Pe)Pe.hasOwnProperty(e)&&Pe[e]instanceof R&&Pe[e].objectNumber>=0&&ce("/"+e+" "+Pe[e].objectNumber+" 0 R");Re.publish("putShadingPatternDict"),ce(">>")}}(),function(e){if(Object.keys(Pe).length>0){for(var t in ce("/Pattern <<"),Pe)Pe.hasOwnProperty(t)&&Pe[t]instanceof b.TilingPattern&&Pe[t].objectNumber>=0&&Pe[t].objectNumber<e&&ce("/"+t+" "+Pe[t].objectNumber+" 0 R");Re.publish("putTilingPatternDict"),ce(">>")}}(e.objectOid),function(){if(Object.keys(Ie).length>0){var e;for(e in ce("/ExtGState <<"),Ie)Ie.hasOwnProperty(e)&&Ie[e].objectNumber>=0&&ce("/"+e+" "+Ie[e].objectNumber+" 0 R");Re.publish("putGStateDict"),ce(">>")}}(),function(){for(var e in ce("/XObject <<"),ze)ze.hasOwnProperty(e)&&ze[e].objectNumber>=0&&ce("/"+e+" "+ze[e].objectNumber+" 0 R");Re.publish("putXobjectDict"),ce(">>")}(),ce(">>"),ce("endobj")},dt=function(e){Ne[e.fontName]=Ne[e.fontName]||{},Ne[e.fontName][e.fontStyle]=e.id},ft=function(e,t,r,n,i){var o={id:"F"+(Object.keys(Ee).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return Re.publish("addFont",{font:o,instance:this}),Ee[o.id]=o,dt(o),o.id},mt=b.__private__.pdfEscape=b.pdfEscape=function(e,t){return function(e,t){var r,n,i,o,a,s,u,l,c;if(i=(t=t||{}).sourceEncoding||"Unicode",a=t.outputEncoding,(t.autoencode||a)&&Ee[xe].metadata&&Ee[xe].metadata[i]&&Ee[xe].metadata[i].encoding&&(o=Ee[xe].metadata[i].encoding,!a&&Ee[xe].encoding&&(a=Ee[xe].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(u=!1,s=[],r=0,n=e.length;r<n;r++)(l=a[e.charCodeAt(r)])?s.push(String.fromCharCode(l)):s.push(e[r]),s[r].charCodeAt(0)>>8&&(u=!0);e=s.join("")}for(r=e.length;void 0===u&&0!==r;)e.charCodeAt(r-1)>>8&&(u=!0),r--;if(!u)return e;for(s=t.noBOM?[]:[254,255],r=0,n=e.length;r<n;r++){if((c=(l=e.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(l-(c<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},gt=b.__private__.beginPage=function(e){ae[++Be]=[],je[Be]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},bt(Be),le(ae[Q])},vt=function(e,t){var n,i,a;switch(r=t||r,"string"==typeof e&&(n=_(e.toLowerCase()),Array.isArray(n)&&(i=n[0],a=n[1])),Array.isArray(e)&&(i=e[0]*Fe,a=e[1]*Fe),isNaN(i)&&(i=o[0],a=o[1]),(i>14400||a>14400)&&(c.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),a=Math.min(14400,a)),o=[i,a],r.substr(0,1)){case"l":a>i&&(o=[a,i]);break;case"p":i>a&&(o=[a,i])}gt(o),Xt(Zt),ce(sr),0!==dr&&ce(dr+" J"),0!==fr&&ce(fr+" j"),Re.publish("addPage",{pageNumber:Be})},yt=function(e){e>0&&e<=Be&&(ae.splice(e,1),je.splice(e,1),Be--,Q>Be&&(Q=Be),this.setPage(Q))},bt=function(e){e>0&&e<=Be&&(Q=e)},Dt=b.__private__.getNumberOfPages=b.getNumberOfPages=function(){return ae.length-1},wt=function(e,t,r){var n,i=void 0;return r=r||{},e=void 0!==e?e:Ee[xe].fontName,t=void 0!==t?t:Ee[xe].fontStyle,n=e.toLowerCase(),void 0!==Ne[n]&&void 0!==Ne[n][t]?i=Ne[n][t]:void 0!==Ne[e]&&void 0!==Ne[e][t]?i=Ne[e][t]:!1===r.disableWarning&&c.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=Ne.times[t])&&(i=Ne.times.normal),i},kt=b.__private__.putInfo=function(){var e=Ke(),t=function(e){return e};for(var r in null!==d&&(t=Mt.encryptor(e,0)),ce("<<"),ce("/Producer ("+mt(t("jsPDF "+z.version))+")"),_e)_e.hasOwnProperty(r)&&_e[r]&&ce("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+mt(t(_e[r]))+")");ce("/CreationDate ("+mt(t(W))+")"),ce(">>"),ce("endobj")},_t=b.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Xe;switch(Ke(),ce("<<"),ce("/Type /Catalog"),ce("/Pages "+t+" 0 R"),me||(me="fullwidth"),me){case"fullwidth":ce("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ce("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ce("/OpenAction [3 0 R /Fit]");break;case"original":ce("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+me;"%"===r.substr(r.length-1)&&(me=parseInt(me)/100),"number"==typeof me&&ce("/OpenAction [3 0 R /XYZ null null "+M(me)+"]")}switch(De||(De="continuous"),De){case"continuous":ce("/PageLayout /OneColumn");break;case"single":ce("/PageLayout /SinglePage");break;case"two":case"twoleft":ce("/PageLayout /TwoColumnLeft");break;case"tworight":ce("/PageLayout /TwoColumnRight")}ye&&ce("/PageMode /"+ye),Re.publish("putCatalog"),ce(">>"),ce("endobj")},xt=b.__private__.putTrailer=function(){ce("trailer"),ce("<<"),ce("/Size "+(te+1)),ce("/Root "+te+" 0 R"),ce("/Info "+(te-1)+" 0 R"),null!==d&&ce("/Encrypt "+Mt.oid+" 0 R"),ce("/ID [ <"+Y+"> <"+Y+"> ]"),ce(">>")},Ft=b.__private__.putHeader=function(){ce("%PDF-"+D),ce("%\xba\xdf\xac\xe0")},Ct=b.__private__.putXRef=function(){var e="0000000000";ce("xref"),ce("0 "+(te+1)),ce("0000000000 65535 f ");for(var t=1;t<=te;t++)"function"==typeof re[t]?ce((e+re[t]()).slice(-10)+" 00000 n "):void 0!==re[t]?ce((e+re[t]).slice(-10)+" 00000 n "):ce("0000000000 00000 n ")},St=b.__private__.buildDocument=function(){var e;te=0,ie=0,ne=[],re=[],oe=[],Xe=Je(),et=Je(),le(ne),Re.publish("buildDocument"),Ft(),at(),function(){Re.publish("putAdditionalObjects");for(var e=0;e<oe.length;e++){var t=oe[e];Ze(t.objId,!0),ce(t.content),ce("endobj")}Re.publish("postPutAdditionalObjects")}(),e=[],function(){for(var e in Ee)Ee.hasOwnProperty(e)&&(!1===g||!0===g&&y.hasOwnProperty(e))&&st(Ee[e])}(),function(){var e;for(e in Ie)Ie.hasOwnProperty(e)&&ht(Ie[e])}(),function(){for(var e in ze)ze.hasOwnProperty(e)&&ut(ze[e])}(),function(e){var t;for(t in Pe)Pe.hasOwnProperty(t)&&(Pe[t]instanceof R?lt(Pe[t]):Pe[t]instanceof q&&ct(Pe[t],e))}(e),Re.publish("putResources"),e.forEach(pt),pt({resourcesOid:et,objectOid:Number.MAX_SAFE_INTEGER}),Re.publish("postPutResources"),null!==d&&(Mt.oid=Ke(),ce("<<"),ce("/Filter /Standard"),ce("/V "+Mt.v),ce("/R "+Mt.r),ce("/U <"+Mt.toHexString(Mt.U)+">"),ce("/O <"+Mt.toHexString(Mt.O)+">"),ce("/P "+Mt.P),ce(">>"),ce("endobj")),kt(),_t();var t=ie;return Ct(),xt(),ce("startxref"),ce(""+t),ce("%%EOF"),le(ae[Q]),ne.join("\n")},At=b.__private__.getBlob=function(e){return new Blob([pe(e)],{type:"application/pdf"})},Et=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},Nt=function(e){var t,r=e.document,n=r.documentElement,i=r.head,o=r.body;return i||(i=r.createElement("head"),n.appendChild(i)),o||(o=r.createElement("body"),n.appendChild(o)),Et(i),Et(o),(t=r.createElement("style")).appendChild(r.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),i.appendChild(t),{document:r,body:o}},Lt=b.output=b.__private__.output=(Ge=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return St();case"save":b.save(t.filename);break;case"arraybuffer":return pe(St());case"blob":return At(St());case"bloburi":case"bloburl":if(void 0!==u.URL&&"function"==typeof u.URL.createObjectURL)return u.URL&&u.URL.createObjectURL(At(St()))||void 0;c.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=St();try{r=v(n)}catch(k){r=v(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+encodeURIComponent(t.filename)+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(u)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=!t.pdfObjectUrl;o||(i=t.pdfObjectUrl);var a=u.open();if(null!==a){var s=Nt(a),l=s.document.createElement("script"),h=this;l.src=i,o&&(l.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",l.crossOrigin="anonymous"),l.onload=function(){a.PDFObject.embed(h.output("dataurlstring"),t)},s.body.appendChild(l)}return a}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(u)){var p=t.pdfJsUrl||"examples/PDF.js/web/viewer.html",d=u.open();if(null!==d){var f=Nt(d),m=f.document.createElement("iframe"),g=-1===p.indexOf("?")?"?":"&";h=this,m.id="pdfViewer",m.width="500px",m.height="400px",m.src=p+g+"file=&downloadName="+encodeURIComponent(t.filename),m.onload=function(){d.document.title=t.filename,m.contentWindow.PDFViewerApplication.open(h.output("bloburl"))},f.body.appendChild(m)}return d}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(u))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var y=u.open();if(null!==y){var D=Nt(y),w=D.document.createElement("iframe");w.src=this.output("datauristring",t),D.body.appendChild(w),y.document.title=t.filename}if(y||"undefined"==typeof safari)return y;break;case"datauri":case"dataurl":return u.document.location.href=this.output("datauristring",t);default:return null}},Ge.foo=function(){try{return Ge.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var r="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!u.console)throw new Error(r);u.console.error(r,t),u.alert&&alert(r)}},Ge.foo.bar=Ge,Ge.foo),Pt=function(e){return!0===Array.isArray(qe)&&qe.indexOf(e)>-1};switch(i){case"pt":Fe=1;break;case"mm":Fe=72/25.4;break;case"cm":Fe=72/2.54;break;case"in":Fe=72;break;case"px":Fe=1==Pt("px_scaling")?.75:96/72;break;case"pc":case"em":Fe=12;break;case"ex":Fe=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);Fe=i}var Mt=null;J(),$();var It=b.__private__.getPageInfo=b.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:je[e].objId,pageNumber:e,pageContext:je[e]}},Tt=b.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in je)if(je[t].objId===e)break;return It(t)},Ot=b.__private__.getCurrentPageInfo=b.getCurrentPageInfo=function(){return{objId:je[Q].objId,pageNumber:Q,pageContext:je[Q]}};b.addPage=function(){return vt.apply(this,arguments),this},b.setPage=function(){return bt.apply(this,arguments),le.call(this,ae[Q]),this},b.insertPage=function(e){return this.addPage(),this.movePage(Q,e),this},b.movePage=function(e,t){var r,n;if(e>t){r=ae[e],n=je[e];for(var i=e;i>t;i--)ae[i]=ae[i-1],je[i]=je[i-1];ae[t]=r,je[t]=n,this.setPage(t)}else if(e<t){r=ae[e],n=je[e];for(var o=e;o<t;o++)ae[o]=ae[o+1],je[o]=je[o+1];ae[t]=r,je[t]=n,this.setPage(t)}return this},b.deletePage=function(){return yt.apply(this,arguments),this},b.__private__.text=b.text=function(e,t,r,i,o){var a,s,u,l,c,h,p,d,f,m=(i=i||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof r||Array.isArray(r))){var g=r;r=t,t=e,e=g}if(arguments[3]instanceof We==0?(u=arguments[4],l=arguments[5],"object"===n(p=arguments[3])&&null!==p||("string"==typeof u&&(l=u,u=null),"string"==typeof p&&(l=p,p=null),"number"==typeof p&&(u=p,p=null),i={flags:p,angle:u,align:l})):(L("The transform parameter of text() with a Matrix value"),f=o),isNaN(t)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return m;var v,b="",D="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Jt,w=m.internal.scaleFactor;function k(e){return e=e.split("\t").join(Array(i.TabLen||9).join(" ")),mt(e,p)}function _(e){for(var t,r=e.concat(),n=[],i=r.length;i--;)"string"==typeof(t=r.shift())?n.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?n.push(t[0]):n.push([t[0],t[1],t[2]]);return n}function x(e,t){var r;if("string"==typeof e)r=t(e)[0];else if(Array.isArray(e)){for(var n,i,o=e.concat(),a=[],s=o.length;s--;)"string"==typeof(n=o.shift())?a.push(t(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(i=t(n[0],n[1],n[2]),a.push([i[0],i[1],i[2]]));r=a}return r}var S=!1,A=!0;if("string"==typeof e)S=!0;else if(Array.isArray(e)){var E=e.concat();s=[];for(var P,M=E.length;M--;)("string"!=typeof(P=E.shift())||Array.isArray(P)&&"string"!=typeof P[0])&&(A=!1);S=A}if(!1===S)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var I=fe/m.internal.scaleFactor,T=I*(D-1);switch(i.baseline){case"bottom":r-=T;break;case"top":r+=I-T;break;case"hanging":r+=I-2*T;break;case"middle":r+=I/2-T}if((h=i.maxWidth||0)>0&&("string"==typeof e?e=m.splitTextToSize(e,h):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(m.splitTextToSize(t,h))}),[]))),a={text:e,x:t,y:r,options:i,mutex:{pdfEscape:mt,activeFontKey:xe,fonts:Ee,activeFontSize:fe}},Re.publish("preProcessText",a),e=a.text,u=(i=a.options).angle,f instanceof We==0&&u&&"number"==typeof u){u*=Math.PI/180,0===i.rotationDirection&&(u=-u),C===F&&(u=-u);var O=Math.cos(u),B=Math.sin(u);f=new We(O,B,-B,O,0,0)}else u&&u instanceof We&&(f=u);C!==F||f||(f=Ve),void 0!==(c=i.charSpace||hr)&&(b+=N(U(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=i.horizontalScale)&&(b+=N(100*d)+" Tz\n"),i.lang;var j=-1,R=void 0!==i.renderingMode?i.renderingMode:i.stroke,q=m.internal.getCurrentPageInfo().pageContext;switch(R){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var z=void 0!==q.usedRenderingMode?q.usedRenderingMode:-1;-1!==j?b+=j+" Tr\n":-1!==z&&(b+="0 Tr\n"),-1!==j&&(q.usedRenderingMode=j),l=i.align||"left";var H,W=fe*D,Y=m.internal.pageSize.getWidth(),V=Ee[xe];c=i.charSpace||hr,h=i.maxWidth||0,p=Object.assign({autoencode:!0,noBOM:!0},i.flags);var $=[],G=function(e){return m.getStringUnitWidth(e,{font:V,charSpace:c,fontSize:fe,doKerning:!1})*fe/w};if("[object Array]"===Object.prototype.toString.call(e)){var K;s=_(e),"left"!==l&&(H=s.map(G));var J,Z=0;if("right"===l){t-=H[0],e=[],M=s.length;for(var Q=0;Q<M;Q++)0===Q?(J=nr(t),K=ir(r)):(J=U(Z-H[Q]),K=-W),e.push([s[Q],J,K]),Z=H[Q]}else if("center"===l){t-=H[0]/2,e=[],M=s.length;for(var X=0;X<M;X++)0===X?(J=nr(t),K=ir(r)):(J=U((Z-H[X])/2),K=-W),e.push([s[X],J,K]),Z=H[X]}else if("left"===l){e=[],M=s.length;for(var ee=0;ee<M;ee++)e.push(s[ee])}else if("justify"===l&&"Identity-H"===V.encoding){e=[],M=s.length,h=0!==h?h:Y;for(var te=0,re=0;re<M;re++)if(K=0===re?ir(r):-W,J=0===re?nr(t):te,re<M-1){var ne=U((h-H[re])/(s[re].split(" ").length-1)),ie=s[re].split(" ");e.push([ie[0]+" ",J,K]),te=0;for(var oe=1;oe<ie.length;oe++){var ae=(G(ie[oe-1]+" "+ie[oe])-G(ie[oe]))*w+ne;oe==ie.length-1?e.push([ie[oe],ae,0]):e.push([ie[oe]+" ",ae,0]),te-=ae}}else e.push([s[re],J,K]);e.push(["",te,0])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],M=s.length,h=0!==h?h:Y,re=0;re<M;re++){K=0===re?ir(r):-W,J=0===re?nr(t):0;var se=s[re].split(" ").length-1,ue=se>0?(h-H[re])/se:0;re<M-1?$.push(N(U(ue))):$.push(0),e.push([s[re],J,K])}}}!0===("boolean"==typeof i.R2L?i.R2L:ve)&&(e=x(e,(function(e,t,r){return[e.split("").reverse().join(""),t,r]}))),a={text:e,x:t,y:r,options:i,mutex:{pdfEscape:mt,activeFontKey:xe,fonts:Ee,activeFontSize:fe}},Re.publish("postProcessText",a),e=a.text,v=a.mutex.isHex||!1;var le=Ee[xe].encoding;"WinAnsiEncoding"!==le&&"StandardEncoding"!==le||(e=x(e,(function(e,t,r){return[k(e),t,r]}))),s=_(e),e=[];for(var he,pe,de,me=Array.isArray(s[0])?1:0,ge="",ye=function(e,t,r){var n="";return r instanceof We?(r="number"==typeof i.angle?Ye(r,new We(1,0,0,1,e,t)):Ye(new We(1,0,0,1,e,t),r),C===F&&(r=Ye(new We(1,0,0,-1,0,0),r)),n=r.join(" ")+" Tm\n"):n=N(e)+" "+N(t)+" Td\n",n},be=0;be<s.length;be++){switch(ge="",me){case 1:de=(v?"<":"(")+s[be][0]+(v?">":")"),he=parseFloat(s[be][1]),pe=parseFloat(s[be][2]);break;case 0:de=(v?"<":"(")+s[be]+(v?">":")"),he=nr(t),pe=ir(r)}void 0!==$&&void 0!==$[be]&&(ge=$[be]+" Tw\n"),0===be?e.push(ge+ye(he,pe,f)+de):0===me?e.push(ge+de):1===me&&e.push(ge+ye(he,pe,f)+de)}e=0===me?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var De="BT\n/";return De+=xe+" "+fe+" Tf\n",De+=N(fe*D)+" TL\n",De+=lr+"\n",De+=b,De+=e,ce(De+="ET"),y[xe]=!0,m};var Bt=b.__private__.clip=b.clip=function(e){return ce("evenodd"===e?"W*":"W"),this};b.clipEvenOdd=function(){return Bt("evenodd")},b.__private__.discardPath=b.discardPath=function(){return ce("n"),this};var jt=b.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};b.__private__.setDefaultPathOperation=b.setDefaultPathOperation=function(e){return jt(e)&&(p=e),this};var Rt=b.__private__.getStyle=b.getStyle=function(e){var t=p;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},qt=b.close=function(){return ce("h"),this};b.stroke=function(){return ce("S"),this},b.fill=function(e){return zt("f",e),this},b.fillEvenOdd=function(e){return zt("f*",e),this},b.fillStroke=function(e){return zt("B",e),this},b.fillStrokeEvenOdd=function(e){return zt("B*",e),this};var zt=function(e,t){"object"===n(t)?Wt(t,e):ce(e)},Ut=function(e){null===e||C===F&&void 0===e||(e=Rt(e),ce(e))};function Ht(e,t,r,n,i){var o=new q(t||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=e+"$$"+this.cloneIndex+++"$$";return $e(a,o),o}var Wt=function(e,t){var r=Me[e.key],n=Pe[r];if(n instanceof R)ce("q"),ce(Yt(t)),n.gState&&b.setGState(n.gState),ce(e.matrix.toString()+" cm"),ce("/"+r+" sh"),ce("Q");else if(n instanceof q){var i=new We(1,0,0,-1,0,Sr());e.matrix&&(i=i.multiply(e.matrix||Ve),r=Ht.call(n,e.key,e.boundingBox,e.xStep,e.yStep,i).id),ce("q"),ce("/Pattern cs"),ce("/"+r+" scn"),n.gState&&b.setGState(n.gState),ce(t),ce("Q")}},Yt=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Vt=b.moveTo=function(e,t){return ce(N(U(e))+" "+N(H(t))+" m"),this},$t=b.lineTo=function(e,t){return ce(N(U(e))+" "+N(H(t))+" l"),this},Gt=b.curveTo=function(e,t,r,n,i,o){return ce([N(U(e)),N(H(t)),N(U(r)),N(H(n)),N(U(i)),N(H(o)),"c"].join(" ")),this};b.__private__.line=b.line=function(e,t,r,n,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!jt(i))throw new Error("Invalid arguments passed to jsPDF.line");return C===x?this.lines([[r-e,n-t]],e,t,[1,1],i||"S"):this.lines([[r-e,n-t]],e,t,[1,1]).stroke()},b.__private__.lines=b.lines=function(e,t,r,n,i,o){var a,s,u,l,c,h,p,d,f,m,g,v;if("number"==typeof e&&(v=r,r=t,t=e,e=v),n=n||[1,1],o=o||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!jt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(Vt(t,r),a=n[0],s=n[1],l=e.length,m=t,g=r,u=0;u<l;u++)2===(c=e[u]).length?(m=c[0]*a+m,g=c[1]*s+g,$t(m,g)):(h=c[0]*a+m,p=c[1]*s+g,d=c[2]*a+m,f=c[3]*s+g,m=c[4]*a+m,g=c[5]*s+g,Gt(h,p,d,f,m,g));return o&&qt(),Ut(i),this},b.path=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.c;switch(r.op){case"m":Vt(n[0],n[1]);break;case"l":$t(n[0],n[1]);break;case"c":Gt.apply(this,n);break;case"h":qt()}}return this},b.__private__.rect=b.rect=function(e,t,r,n,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!jt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return C===x&&(n=-n),ce([N(U(e)),N(H(t)),N(U(r)),N(U(n)),"re"].join(" ")),Ut(i),this},b.__private__.triangle=b.triangle=function(e,t,r,n,i,o,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||!jt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-e,n-t],[i-r,o-n],[e-i,t-o]],e,t,[1,1],a,!0),this},b.__private__.roundedRect=b.roundedRect=function(e,t,r,n,i,o,a){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||!jt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*r),o=Math.min(o,.5*n),this.lines([[r-2*i,0],[i*s,0,i,o-o*s,i,o],[0,n-2*o],[0,o*s,-i*s,o,-i,o],[2*i-r,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-n],[0,-o*s,i*s,-o,i,-o]],e+i,t,[1,1],a,!0),this},b.__private__.ellipse=b.ellipse=function(e,t,r,n,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!jt(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*r,a=4/3*(Math.SQRT2-1)*n;return Vt(e+r,t),Gt(e+r,t-a,e+o,t-n,e,t-n),Gt(e-o,t-n,e-r,t-a,e-r,t),Gt(e-r,t+a,e-o,t+n,e,t+n),Gt(e+o,t+n,e+r,t+a,e+r,t),Ut(i),this},b.__private__.circle=b.circle=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||!jt(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,r,r,n)},b.setFont=function(e,t,r){return r&&(t=E(t,r)),xe=wt(e,t,{disableWarning:!1}),this};var Kt=b.__private__.getFont=b.getFont=function(){return Ee[wt.apply(b,arguments)]};b.__private__.getFontList=b.getFontList=function(){var e,t,r={};for(e in Ne)if(Ne.hasOwnProperty(e))for(t in r[e]=[],Ne[e])Ne[e].hasOwnProperty(t)&&r[e].push(t);return r},b.addFont=function(e,t,r,n,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(r=E(r,n)),ft.call(this,e,t,r,i=i||"Identity-H")};var Jt,Zt=e.lineWidth||.200025,Qt=b.__private__.getLineWidth=b.getLineWidth=function(){return Zt},Xt=b.__private__.setLineWidth=b.setLineWidth=function(e){return Zt=e,ce(N(U(e))+" w"),this};b.__private__.setLineDash=z.API.setLineDash=z.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return N(U(e))})).join(" "),t=N(U(t)),ce("["+e+"] "+t+" d"),this};var er=b.__private__.getLineHeight=b.getLineHeight=function(){return fe*Jt};b.__private__.getLineHeight=b.getLineHeight=function(){return fe*Jt};var tr=b.__private__.setLineHeightFactor=b.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(Jt=e),this},rr=b.__private__.getLineHeightFactor=b.getLineHeightFactor=function(){return Jt};tr(e.lineHeight);var nr=b.__private__.getHorizontalCoordinate=function(e){return U(e)},ir=b.__private__.getVerticalCoordinate=function(e){return C===F?e:je[Q].mediaBox.topRightY-je[Q].mediaBox.bottomLeftY-U(e)},or=b.__private__.getHorizontalCoordinateString=b.getHorizontalCoordinateString=function(e){return N(nr(e))},ar=b.__private__.getVerticalCoordinateString=b.getVerticalCoordinateString=function(e){return N(ir(e))},sr=e.strokeColor||"0 G";b.__private__.getStrokeColor=b.getDrawColor=function(){return tt(sr)},b.__private__.setStrokeColor=b.setDrawColor=function(e,t,r,n){return sr=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),ce(sr),this};var ur=e.fillColor||"0 g";b.__private__.getFillColor=b.getFillColor=function(){return tt(ur)},b.__private__.setFillColor=b.setFillColor=function(e,t,r,n){return ur=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),ce(ur),this};var lr=e.textColor||"0 g",cr=b.__private__.getTextColor=b.getTextColor=function(){return tt(lr)};b.__private__.setTextColor=b.setTextColor=function(e,t,r,n){return lr=rt({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var hr=e.charSpace,pr=b.__private__.getCharSpace=b.getCharSpace=function(){return parseFloat(hr||0)};b.__private__.setCharSpace=b.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return hr=e,this};var dr=0;b.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},b.__private__.setLineCap=b.setLineCap=function(e){var t=b.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return dr=t,ce(t+" J"),this};var fr=0;b.__private__.setLineJoin=b.setLineJoin=function(e){var t=b.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return fr=t,ce(t+" j"),this},b.__private__.setLineMiterLimit=b.__private__.setMiterLimit=b.setLineMiterLimit=b.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ce(N(U(e))+" M"),this},b.GState=B,b.setGState=function(e){(e="string"==typeof e?Ie[Te[e]]:mr(null,e)).equals(Oe)||(ce("/"+e.id+" gs"),Oe=e)};var mr=function(e,t){if(!e||!Te[e]){var r=!1;for(var n in Ie)if(Ie.hasOwnProperty(n)&&Ie[n].equals(t)){r=!0;break}if(r)t=Ie[n];else{var i="GS"+(Object.keys(Ie).length+1).toString(10);Ie[i]=t,t.id=i}return e&&(Te[e]=t.id),Re.publish("addGState",t),t}};b.addGState=function(e,t){return mr(e,t),this},b.saveGraphicsState=function(){return ce("q"),Le.push({key:xe,size:fe,color:lr}),this},b.restoreGraphicsState=function(){ce("Q");var e=Le.pop();return xe=e.key,fe=e.size,lr=e.color,Oe=null,this},b.setCurrentTransformationMatrix=function(e){return ce(e.toString()+" cm"),this},b.comment=function(e){return ce("#"+e),this};var gr=function(e,t){var r=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var n=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},vr=function(e,t,r,n){gr.call(this,e,t),this.type="rect";var i=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var o=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}}),this},yr=function(){this.page=Be,this.currentPage=Q,this.pages=ae.slice(0),this.pagesContext=je.slice(0),this.x=Ce,this.y=Se,this.matrix=Ae,this.width=wr(Q),this.height=_r(Q),this.outputDestination=ue,this.id="",this.objectNumber=-1};yr.prototype.restore=function(){Be=this.page,Q=this.currentPage,je=this.pagesContext,ae=this.pages,Ce=this.x,Se=this.y,Ae=this.matrix,kr(Q,this.width),xr(Q,this.height),ue=this.outputDestination};var br=function(e,t,r,n,i){He.push(new yr),Be=Q=0,ae=[],Ce=e,Se=t,Ae=i,gt([r,n])};for(var Dr in b.beginFormObject=function(e,t,r,n,i){return br(e,t,r,n,i),this},b.endFormObject=function(e){return function(e){if(Ue[e])He.pop().restore();else{var t=new yr,r="Xo"+(Object.keys(ze).length+1).toString(10);t.id=r,Ue[e]=r,ze[r]=t,Re.publish("addFormObject",t),He.pop().restore()}}(e),this},b.doFormObject=function(e,t){var r=ze[Ue[e]];return ce("q"),ce(t.toString()+" cm"),ce("/"+r.id+" Do"),ce("Q"),this},b.getFormObject=function(e){var t=ze[Ue[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},b.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(f(At(St()),e),"function"==typeof f.unload&&u.setTimeout&&setTimeout(f.unload,911),this):new Promise((function(t,r){try{var n=f(At(St()),e);"function"==typeof f.unload&&u.setTimeout&&setTimeout(f.unload,911),t(n)}catch(i){r(i.message)}}))},z.API)z.API.hasOwnProperty(Dr)&&("events"===Dr&&z.API.events.length?function(e,t){var r,n,i;for(i=t.length-1;-1!==i;i--)r=t[i][0],n=t[i][1],e.subscribe.apply(e,[r].concat("function"==typeof n?[n]:n))}(Re,z.API.events):b[Dr]=z.API[Dr]);function wr(e){return je[e].mediaBox.topRightX-je[e].mediaBox.bottomLeftX}function kr(e,t){je[e].mediaBox.topRightX=t+je[e].mediaBox.bottomLeftX}function _r(e){return je[e].mediaBox.topRightY-je[e].mediaBox.bottomLeftY}function xr(e,t){je[e].mediaBox.topRightY=t+je[e].mediaBox.bottomLeftY}var Fr=b.getPageWidth=function(e){return wr(e=e||Q)/Fe},Cr=b.setPageWidth=function(e,t){kr(e,t*Fe)},Sr=b.getPageHeight=function(e){return _r(e=e||Q)/Fe},Ar=b.setPageHeight=function(e,t){xr(e,t*Fe)};return b.internal={pdfEscape:mt,getStyle:Rt,getFont:Kt,getFontSize:ge,getCharSpace:pr,getTextColor:cr,getLineHeight:er,getLineHeightFactor:rr,getLineWidth:Qt,write:he,getHorizontalCoordinate:nr,getVerticalCoordinate:ir,getCoordinateString:or,getVerticalCoordinateString:ar,collections:{},newObject:Ke,newAdditionalObject:Qe,newObjectDeferred:Je,newObjectDeferredBegin:Ze,getFilters:nt,putStream:it,events:Re,scaleFactor:Fe,pageSize:{getWidth:function(){return Fr(Q)},setWidth:function(e){Cr(Q,e)},getHeight:function(){return Sr(Q)},setHeight:function(e){Ar(Q,e)}},encryptionOptions:d,encryption:Mt,getEncryptor:function(e){return null!==d?Mt.encryptor(e,0):function(e){return e}},output:Lt,getNumberOfPages:Dt,get pages(){return ae},out:ce,f2:M,f3:j,getPageInfo:It,getPageInfoByObjId:Tt,getCurrentPageInfo:Ot,getPDFVersion:w,Point:gr,Rectangle:vr,Matrix:We,hasHotfix:Pt},Object.defineProperty(b.internal.pageSize,"width",{get:function(){return Fr(Q)},set:function(e){Cr(Q,e)},enumerable:!0,configurable:!0}),Object.defineProperty(b.internal.pageSize,"height",{get:function(){return Sr(Q)},set:function(e){Ar(Q,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,r=de.length;t<r;t++){var n=ft.call(this,e[t][0],e[t][1],e[t][2],de[t][3],!0);!1===g&&(y[n]=!0);var i=e[t][0].split("-");dt({id:n,fontName:i[0],fontStyle:i[1]||""})}Re.publish("addFonts",{fonts:Ee,dictionary:Ne})}.call(b,de),xe="F1",vt(o,r),Re.publish("initialized"),b}I.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},I.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},I.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},I.prototype.processOwnerPassword=function(e,t){return P(E(t).substr(0,5),e)},I.prototype.encryptor=function(e,t){var r=E(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return P(r,e)}},B.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||n(e)!==n(this))return!1;var i=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;i++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&i--;return 0===i},z.API={events:[]},z.version="4.2.1";var U=z.API,H=1,W=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Y=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},V=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(1===t.length?"0"+t:t)}))},$=function(e){return e.toFixed(2)},G=function(e){return e.toFixed(5)};U.__acroform__={};var K=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},J=function(e){return e*H},Z=function(e){var t=new de,r=Se.internal.getHeight(e)||0,n=Se.internal.getWidth(e)||0;return t.BBox=[0,0,Number($(n)),Number($(r))],t},Q=U.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},X=U.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},ee=U.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},te=U.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ee(e,t-1)},re=U.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Q(e,t-1)},ne=U.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return X(e,t-1)},ie=U.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],o=e[1],a=e[2],s=e[3],u={};return u.lowerLeft_X=r(i)||0,u.lowerLeft_Y=n(o+s)||0,u.upperRight_X=r(i+a)||0,u.upperRight_Y=n(o)||0,[Number($(u.lowerLeft_X)),Number($(u.lowerLeft_Y)),Number($(u.upperRight_X)),Number($(u.upperRight_Y))]},oe=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=ae(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+$(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=Z(e);return o.scope=e.scope,o.stream=t.join("\n"),o}},ae=function(e,t){var r=0===e.fontSize?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map((function(e){return e.split("\n")})):i.map((function(e){return[e]}));var o=r,a=Se.internal.getHeight(e)||0;a=a<0?-a:a;var s=Se.internal.getWidth(e)||0;s=s<0?-s:s;var u=function(t,r,n){if(t+1<i.length){var o=r+" "+i[t+1][0];return se(o,e,n).width<=s-4}return!1};o++;e:for(;o>0;){t="",o--;var l,c,h=se("3",e,o).height,p=e.multiline?a-o:(a-h)/2,d=p+=2,f=0,m=0,g=0;if(o<=0){t="(...) Tj\n",t+="% Width of Text: "+se(t,e,o=12).width+", FieldWidth:"+s+"\n";break}for(var v="",y=0,b=0;b<i.length;b++)if(i.hasOwnProperty(b)){var D=!1;if(1!==i[b].length&&g!==i[b].length-1){if((h+2)*(y+2)+2>a)continue e;v+=i[b][g],D=!0,m=b,b--}else{v=" "==(v+=i[b][g]+" ").substr(v.length-1)?v.substr(0,v.length-1):v;var w=parseInt(b),k=u(w,v,o),_=b>=i.length-1;if(k&&!_){v+=" ",g=0;continue}if(k||_){if(_)m=w;else if(e.multiline&&(h+2)*(y+2)+2>a)continue e}else{if(!e.multiline)continue e;if((h+2)*(y+2)+2>a)continue e;m=w}}for(var x="",F=f;F<=m;F++){var C=i[F];if(e.multiline){if(F===m){x+=C[g]+" ",g=(g+1)%C.length;continue}if(F===f){x+=C[C.length-1]+" ";continue}}x+=C[0]+" "}switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,c=se(x,e,o).width,e.textAlign){case"right":l=s-c-2;break;case"center":l=(s-c)/2;break;default:l=2}t+=$(l)+" "+$(d)+" Td\n",t+="("+W(x)+") Tj\n",t+=-$(l)+" 0 Td\n",d=-(o+2),c=0,f=D?m:m+1,y++,v=""}break}return n.text=t,n.fontSize=o,n},se=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},ue={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},le=function(e,t){var r={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===r.type&&e.object===r.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},ce=U.__acroform__.arrayToPdfArray=function(e,t,r){var i=function(e){return e};if(Array.isArray(e)){for(var o="[",a=0;a<e.length;a++)switch(0!==a&&(o+=" "),n(e[a])){case"boolean":case"number":case"object":o+=e[a].toString();break;case"string":"/"===e[a].substr(0,1)?o+="/"+V(e[a].substr(1)):(void 0!==t&&r&&(i=r.internal.getEncryptor(t)),o+="("+W(i(e[a].toString()))+")")}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},he=function(e,t,r){var n=function(e){return e};return void 0!==t&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+W(n(e))+")"},pe=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(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};pe.prototype.toString=function(){return this.objId+" 0 R"},pe.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},pe.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var r in t)if(!1===Object.getOwnPropertyDescriptor(this,t[r]).configurable){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:ce(i,this.objId,this.scope)}):i instanceof pe?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):"function"!=typeof i&&e.push({key:n,value:i}))}return e};var de=function(){pe.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 e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};K(de,pe);var fe=function(){pe.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+W(t(e))+")"}},set:function(t){e=t}})};K(fe,pe);var me=function e(){pe.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(te(t,3))},set:function(e){!0===Boolean(e)?this.F=re(t,3):this.F=ne(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');r=e}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==n.length)return n},set:function(e){n=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(e){n[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(e){n[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(e){n[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(e){n[3]=e}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof _e)return;o="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+W(t(o))+")"},set:function(e){o=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/H:l},set:function(e){l=e}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof _e||this instanceof Fe))return he(h,this.objId,this.scope)},set:function(e){e=e.toString(),h=e}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof De==0?he(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof De==0?"("===e.substr(0,1)?Y(e.substr(1,e.length-2)):Y(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof De==1?Y(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof De==1?"/"+V(e):e}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof De==0?he(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof De==0?"("===e.substr(0,1)?Y(e.substr(1,e.length-2)):Y(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof De==1?Y(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof De==1?"/"+V(e):e}}),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,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(e){e=Boolean(e),m=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(e){f=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,1):this.Ff=ne(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,2):this.Ff=ne(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,3):this.Ff=ne(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');g=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(g){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};K(me,pe);var ge=function(){me.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ce(t,this.objId,this.scope)},set:function(e){var r,n;n=[],"string"==typeof(r=e)&&(n=function(e,t,r){r||(r=1);for(var n,i=[];n=t.exec(e);)i.push(n[r]);return i}(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,18):this.Ff=ne(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=re(this.Ff,19):this.Ff=ne(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=re(this.Ff,20),t.sort()):this.Ff=ne(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,22):this.Ff=ne(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,23):this.Ff=ne(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,27):this.Ff=ne(this.Ff,27)}}),this.hasAppearanceStream=!1};K(ge,me);var ve=function(){ge.call(this),this.fontName="helvetica",this.combo=!1};K(ve,ge);var ye=function(){ve.call(this),this.combo=!0};K(ye,ve);var be=function(){ye.call(this),this.edit=!0};K(be,ye);var De=function(){me.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,15):this.Ff=ne(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,16):this.Ff=ne(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,17):this.Ff=ne(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,26):this.Ff=ne(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+W(e(t[r]))+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"===n(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){var r=null==t?"":t.toString();"/"===r.substr(0,1)&&(r=r.substr(1)),e="/"+V(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+V(t)}})};K(De,me);var we=function(){De.call(this),this.pushButton=!0};K(we,De);var ke=function(){De.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};K(ke,De);var _e=function(){var e,t;me.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var r,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,r=[];for(t in r.push("<<"),i)r.push("/"+t+" ("+W(e(i[t]))+")");return r.push(">>"),r.join("\n")},set:function(e){"object"===n(e)&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){"string"==typeof e&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){var t=null==e?"":e.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),r="/"+V(t)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){var t=null==e?"":e.toString();"/"===t.substr(0,1)&&(t=t.substr(1)),r="/"+V(t)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Se.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};K(_e,me),ke.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},ke.prototype.createOption=function(e){var t=new _e;return t.Parent=this,t.optionName=e,this.Kids.push(t),Ae.call(this.scope,t),t};var xe=function(){De.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Se.CheckBox.createAppearanceStream()};K(xe,De);var Fe=function(){me.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,13):this.Ff=ne(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,21):this.Ff=ne(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,23):this.Ff=ne(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,24):this.Ff=ne(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,25):this.Ff=ne(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,26):this.Ff=ne(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};K(Fe,me);var Ce=function(){Fe.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(te(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=re(this.Ff,14):this.Ff=ne(this.Ff,14)}}),this.password=!0};K(Ce,Fe);var Se={CheckBox:{createAppearanceStream:function(){return{N:{On:Se.CheckBox.YesNormal},D:{On:Se.CheckBox.YesPushDown,Off:Se.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=ae(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+$(Se.internal.getWidth(e))+" "+$(Se.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+$(o.fontSize)+" Tf "+i),r.push("BT"),r.push(o.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],o=Se.internal.getHeight(e),a=Se.internal.getWidth(e),s=ae(e,e.caption);return i.push("1 g"),i.push("0 0 "+$(a)+" "+$(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+$(a-1)+" "+$(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+$(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+$(Se.internal.getWidth(e))+" "+$(Se.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Se.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Se.RadioButton.Circle.YesNormal,t.D[e]=Se.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var r=[],n=Se.internal.getWidth(e)<=Se.internal.getHeight(e)?Se.internal.getWidth(e)/4:Se.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Se.internal.Bezier_C,o=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var r=[],n=Se.internal.getWidth(e)<=Se.internal.getHeight(e)?Se.internal.getWidth(e)/4:Se.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*Se.internal.Bezier_C).toFixed(5)),a=Number((n*Se.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var r=[],n=Se.internal.getWidth(e)<=Se.internal.getHeight(e)?Se.internal.getWidth(e)/4:Se.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),o=Number((i*Se.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+G(Se.internal.getWidth(e)/2)+" "+G(Se.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),r.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),r.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),r.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Se.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Se.RadioButton.Cross.YesNormal,t.D[e]=Se.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Z(e);t.scope=e.scope;var r=[],n=Se.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+$(Se.internal.getWidth(e)-2)+" "+$(Se.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push($(n.x1.x)+" "+$(n.x1.y)+" m"),r.push($(n.x2.x)+" "+$(n.x2.y)+" l"),r.push($(n.x4.x)+" "+$(n.x4.y)+" m"),r.push($(n.x3.x)+" "+$(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=Z(e);t.scope=e.scope;var r=Se.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+$(Se.internal.getWidth(e))+" "+$(Se.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+$(Se.internal.getWidth(e)-2)+" "+$(Se.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push($(r.x1.x)+" "+$(r.x1.y)+" m"),n.push($(r.x2.x)+" "+$(r.x2.y)+" l"),n.push($(r.x4.x)+" "+$(r.x4.y)+" m"),n.push($(r.x3.x)+" "+$(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Z(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+$(Se.internal.getWidth(e))+" "+$(Se.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};Se.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Se.internal.getWidth(e),r=Se.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Se.internal.getWidth=function(e){var t=0;return"object"===n(e)&&(t=J(e.Rect[2])),t},Se.internal.getHeight=function(e){var t=0;return"object"===n(e)&&(t=J(e.Rect[3])),t};var Ae=U.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(me.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(ue)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");H=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new fe,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){var t;(t=e).internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];n.objId=void 0,n.hasAnnotation&&le(n,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var r=!e;for(var i in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(i)){var o=e[i],a=[],s=o.Rect;if(o.Rect&&(o.Rect=ie(o.Rect,t)),t.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Se.createDefaultAppearanceStream(o),"object"===n(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=oe(o);a.push({key:"AP",value:"<</N "+u+">>"}),t.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var l="";for(var c in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(c)){var h=o.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var i in h)if(h.hasOwnProperty(i)){var p=h[i];"function"==typeof p&&(p=p.call(t,o)),l+="/"+i+" "+p+" ",t.internal.acroformPlugin.xForms.indexOf(p)>=0||t.internal.acroformPlugin.xForms.push(p)}}else"function"==typeof(p=h)&&(p=p.call(t,o)),l+="/"+i+" "+p,t.internal.acroformPlugin.xForms.indexOf(p)>=0||t.internal.acroformPlugin.xForms.push(p);l+=">>"}a.push({key:"AP",value:"<<\n"+l+">>"})}t.internal.putStream({additionalKeyValues:a,objectId:o.objId}),t.internal.out("endobj")}r&&function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var i=r,o=e[r];t.internal.newObjectDeferredBegin(o.objId,!0),"object"===n(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[i]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof me))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};U.AcroFormChoiceField=ge,U.AcroFormListBox=ve,U.AcroFormComboBox=ye,U.AcroFormEditBox=be,U.AcroFormButton=De,U.AcroFormPushButton=we,U.AcroFormRadioButton=ke,U.AcroFormCheckBox=xe,U.AcroFormTextField=Fe,U.AcroFormPasswordField=Ce,U.AcroFormAppearance=Se,U.AcroForm={ChoiceField:ge,ListBox:ve,ComboBox:ye,EditBox:be,Button:De,PushButton:we,RadioButton:ke,CheckBox:xe,TextField:Fe,PasswordField:Ce,Appearance:Se},z.AcroForm={ChoiceField:ge,ListBox:ve,ComboBox:ye,EditBox:be,Button:De,PushButton:we,RadioButton:ke,CheckBox:xe,TextField:Fe,PasswordField:Ce,Appearance:Se};z.AcroForm;function Ee(e){return e.reduce((function(e,t,r){return e[t]=r,e}),{})}!function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",i={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]]},o=e.__addimage__.getImageFileTypeByImageData=function(e,t){var n,o,a,s,u,l=r;if("RGBA"===(t=t||r)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(x(e))for(u in i)for(a=i[u],n=0;n<a.length;n+=1){for(s=!0,o=0;o<a[n].length;o+=1)if(void 0!==a[n][o]&&a[n][o]!==e[o]){s=!1;break}if(!0===s){l=u;break}}else for(u in i)for(a=i[u],n=0;n<a.length;n+=1){for(s=!0,o=0;o<a[n].length;o+=1)if(void 0!==a[n][o]&&a[n][o]!==e.charCodeAt(o)){s=!1;break}if(!0===s){l=u;break}}return l===r&&t!==r&&(l=t),l},a=function e(t){for(var r=this.internal.write,n=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:t.width}),o.push({key:"Height",value:t.height}),t.colorSpace===b.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===b.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)&&t.transparency.length>0){for(var a="",s=0,u=t.transparency.length;s<u;s++)a+=t.transparency[s]+" "+t.transparency[s]+" ";o.push({key:"Mask",value:"["+a+"]"})}void 0!==t.sMask&&o.push({key:"SMask",value:t.objectId+1+" 0 R"});var l=void 0!==t.filter?["/"+t.filter]:void 0;if(n({data:t.data,additionalKeyValues:o,alreadyAppliedFilters:l,objectId:t.objectId}),r("endobj"),"sMask"in t&&void 0!==t.sMask){var c,h=null!==(c=t.sMaskBitsPerComponent)&&void 0!==c?c:t.bitsPerComponent,p={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:h,data:t.sMask};"filter"in t&&(p.decodeParameters="/Predictor ".concat(t.predictor," /Colors 1 /BitsPerComponent ").concat(h," /Columns ").concat(t.width),p.filter=t.filter),e.call(this,p)}if(t.colorSpace===b.INDEXED){var d=this.internal.newObject();n({data:C(new Uint8Array(t.palette)),objectId:d}),r("endobj")}},s=function(){var e=this.internal.collections[t+"images"];for(var r in e)a.call(this,e[r])},u=function(){var e,r=this.internal.collections[t+"images"],n=this.internal.write;for(var i in r)n("/I"+(e=r[i]).index,e.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",u))},c=function(){var e=this.internal.collections[t+"images"];return l.call(this),e},h=function(){return Object.keys(this.internal.collections[t+"images"]).length},p=function(t){return"function"==typeof e["process"+t.toUpperCase()]},d=function(e){return"object"===n(e)&&1===e.nodeType},f=function(t,r){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return g(unescape(n).split("base64,").pop());var i=e.loadFile(n,!0);if(void 0!==i)return i}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var o;switch(r){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;default:o="image/jpeg"}return g(t.toDataURL(o,1).split("base64,").pop())}},m=function(e){var r=this.internal.collections[t+"images"];if(r)for(var n in r)if(e===r[n].alias)return r[n]},v=function(e,t,r){return e||t||(e=-96,t=-96),e<0&&(e=-1*r.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.height*72/t/this.internal.scaleFactor),0===e&&(e=t*r.width/r.height),0===t&&(t=e*r.height/r.width),[e,t]},y=function(e,t,r,n,i,o){var a=v.call(this,r,n,i),s=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,l=c.call(this);if(r=a[0],n=a[1],l[i.index]=i,o){o*=Math.PI/180;var h=Math.cos(o),p=Math.sin(o),d=function(e){return e.toFixed(4)},f=[d(h),d(p),d(-1*p),d(h),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(e),u(t+n),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([s(r),"0","0",s(n),"0","0","cm"].join(" "))):this.internal.write([s(r),"0","0",s(n),s(e),u(t+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},b=e.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"};e.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 D=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=e.__addimage__.sHashCode=function(e){var t,r,n=0;if("string"==typeof e)for(r=e.length,t=0;t<r;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;else if(x(e))for(r=e.byteLength/2,t=0;t<r;t++)n=(n<<5)-n+e[t],n|=0;return n},k=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},_=e.__addimage__.extractImageFromDataUrl=function(e){if(null==e)return null;if(!(e=e.trim()).startsWith("data:"))return null;var t=e.indexOf(",");return t<0?null:e.substring(0,t).trim().endsWith("base64")?e.substring(t+1):null};e.__addimage__.isArrayBuffer=function(e){return e instanceof ArrayBuffer};var x=e.__addimage__.isArrayBufferView=function(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array},F=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r},C=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",r=x(e)?e:new Uint8Array(e),n=0;n<r.length;n+=8192)t+=String.fromCharCode.apply(null,r.subarray(n,n+8192));return t};e.addImage=function(){var e,t,i,o,a,s,u,c,h;if("number"==typeof arguments[1]?(t=r,i=arguments[1],o=arguments[2],a=arguments[3],s=arguments[4],u=arguments[5],c=arguments[6],h=arguments[7]):(t=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],s=arguments[5],u=arguments[6],c=arguments[7],h=arguments[8]),"object"===n(e=arguments[0])&&!d(e)&&"imageData"in e){var p=e;e=p.imageData,t=p.format||t||r,i=p.x||i||0,o=p.y||o||0,a=p.w||p.width||a,s=p.h||p.height||s,u=p.alias||u,c=p.compression||c,h=p.rotation||p.angle||h}var f=this.internal.getFilters();if(void 0===c&&-1!==f.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var m=S.call(this,e,t,u,c);return y.call(this,i,o,a,s,m,h),this};var S=function(t,n,i,a){var s,u,l;if("string"==typeof t&&o(t)===r){t=unescape(t);var c=A(t,!1);(""!==c||void 0!==(c=e.loadFile(t,!0)))&&(t=c)}if(d(t)&&(t=f(t,n)),n=o(t,n),!p(n))throw new Error("addImage does not support files of type '"+n+"', please ensure that a plugin for '"+n+"' support is added.");if((null==(l=i)||0===l.length)&&(i=function(e){return"string"==typeof e||x(e)?w(e):x(e.data)?w(e.data):null}(t)),(s=m.call(this,i))||(t instanceof Uint8Array||"RGBA"===n||(u=t,t=F(t)),s=this["process"+n.toUpperCase()](t,h.call(this),i,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:D.NONE}(a),u)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},A=e.__addimage__.convertBase64ToBinaryString=function(e,t){t="boolean"!=typeof t||t;var r,n="";if("string"==typeof e){var i;r=null!==(i=_(e))&&void 0!==i?i:e;try{n=g(r)}catch(o){if(t)throw k(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+o.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return n};e.getImageProperties=function(t){var n,i,a="";if(d(t)&&(t=f(t)),"string"==typeof t&&o(t)===r&&(""===(a=A(t,!1))&&(a=e.loadFile(t)||""),t=a),i=o(t),!p(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if(t instanceof Uint8Array||(t=F(t)),!(n=this["process"+i.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return n.fileType=i,n}}(z.API),function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};z.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var r,n,i,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),u=e.pageContext.annotations,l=!1,c=0;c<u.length&&!l;c++)switch((r=u[c]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var h=0;h<u.length;h++){r=u[h];var p=this.internal.pdfEscape,d=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(f.objId),v=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+p(g(r.contents))+")",i+=" /Popup "+m.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+p(g(v))+") >>",f.content=i;var y=f.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+o(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+o(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+y,r.open&&(i+=" /Open true"),i+=" >>",m.content=i,this.internal.write(f.objId,"0 R",m.objId,"0 R");break;case"freetext":n="/Rect ["+o(r.bounds.x)+" "+a(r.bounds.y)+" "+o(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var b="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+p(d(r.contents))+")",i+=" /DS("+p(d(b))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var D=this.annotations._nameMap[r.options.name];r.options.pageNumber=D.page,r.options.top=D.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+p(d(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var w=a(r.options.top);r.options.left=r.options.left||0,void 0===r.options.zoom&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+w+" "+r.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,r,n,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(e),y:s(t),w:a(e+r),h:s(t+n)},options:i,type:"link"})},e.textWithLink=function(e,t,r,n){var i,o,a=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==n.maxWidth){o=n.maxWidth;var u=this.splitTextToSize(e,o).length;i=Math.ceil(s*u)}else o=a,i=s;return this.text(e,t,r,n),r+=.2*s,"center"===n.align&&(t-=a/2),"right"===n.align&&(t-=a),this.link(t,r-s,o,i,n),a},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(z.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},a=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},u=e.__arabicParser__.isArabicAlfLetter=function(e){return a(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length>=1};var l=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return a(e)&&o(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return a(e)&&o(e)&&4==t[e.charCodeAt(0)].length},h=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,i="",o=0;for(t=0;t<e.length;t+=1)void 0!==n[e.charCodeAt(t)]?(o++,"number"==typeof(n=n[e.charCodeAt(t)])&&(i+=String.fromCharCode(n),n=r,o=0),t===e.length-1&&(n=r,i+=e.charAt(t-(o-1)),t-=o-1,o=0)):(n=r,i+=e.charAt(t-o),t-=o,o=0);return i};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==n[e.charCodeAt(0)]};var p=e.__arabicParser__.getCorrectForm=function(e,t,r){return a(e)?!1===o(e)?-1:!l(e)||!a(t)&&!a(r)||!a(r)&&s(t)||s(e)&&!a(t)||s(e)&&u(t)||s(e)&&s(t)?0:c(e)&&a(t)&&!s(t)&&a(r)&&l(r)?3:s(e)||!a(r)?1:2:-1},d=function(e){var r=0,n=0,i=0,o="",s="",u="",l=(e=e||"").split("\\s+"),c=[];for(r=0;r<l.length;r+=1){for(c.push(""),n=0;n<l[r].length;n+=1)o=l[r][n],s=l[r][n-1],u=l[r][n+1],a(o)?(i=p(o,s,u),c[r]+=-1!==i?String.fromCharCode(t[o.charCodeAt(0)][i]):o):c[r]+=o;c[r]=h(c[r])}return c.join(" ")},f=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(t)){var n=0;for(r=[],n=0;n<t.length;n+=1)Array.isArray(t[n])?r.push([d(t[n][0]),t[n][1],t[n][2]]):r.push([d(t[n])]);e=r}else e=d(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",f])}(z.API),z.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform","javascript"===e.variant?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))),this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(z.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(e){a=e}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){i.call(this);var r=(t=t||{}).fontSize||this.getFontSize(),n=t.font||this.getFont(),o=t.scaleFactor||this.internal.scaleFactor,a=0,s=0,u=0,l=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(l.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var h=0;h<e.length;h++)a<(u=this.getStringUnitWidth(e[h],{font:n})*r)&&(a=u);return 0!==a&&(s=e.length),{w:a/=o,h:Math.max((s*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/o,0)}},e.cellAddPage=function(){i.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var e;e=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),i.call(this);var n=this.internal.__cell__.lastCell,o=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,u=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==n.lineNumber&&(n.lineNumber===e.lineNumber?(e.x=(n.x||0)+(n.width||0),e.y=n.y||0):n.y+n.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,l&&u&&(this.printHeaderRow(e.lineNumber,!0),e.y+=u[0].height)):e.y=n.y+n.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===r?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-o,e.y+o,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+o,{align:"center",baseline:"top",maxWidth:e.width-o-o}):this.text(e.text,e.x+o,e.y+o,{align:"left",baseline:"top",maxWidth:e.width-o-o})),this.internal.__cell__.lastCell=e,this};e.table=function(e,r,l,c,h){if(i.call(this),!l)throw new Error("No data for PDF table.");var p,d,f,m,g=[],v=[],y=[],b={},D={},w=[],k=[],_=(h=h||{}).autoSize||!1,x=!1!==h.printHeaders,F=h.css&&void 0!==h.css["font-size"]?16*h.css["font-size"]:h.fontSize||12,C=h.margins||Object.assign({width:this.getPageWidth()},t),S="number"==typeof h.padding?h.padding:3,A=h.headerBackgroundColor||"#c8c8c8",E=h.headerTextColor||"#000";if(o.call(this),this.internal.__cell__.printHeaders=x,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=F,this.internal.__cell__.padding=S,this.internal.__cell__.headerBackgroundColor=A,this.internal.__cell__.headerTextColor=E,this.setFontSize(F),null==c)v=g=Object.keys(l[0]),y=g.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===n(c[0]))for(g=c.map((function(e){return e.name})),v=c.map((function(e){return e.prompt||e.name||""})),y=c.map((function(e){return e.align||"left"})),p=0;p<c.length;p+=1)D[c[p].name]=.7499990551181103*c[p].width;else Array.isArray(c)&&"string"==typeof c[0]&&(v=g=c,y=g.map((function(){return"left"})));if(_||Array.isArray(c)&&"string"==typeof c[0])for(p=0;p<g.length;p+=1){for(b[m=g[p]]=l.map((function(e){return e[m]})),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(v[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=b[m],this.setFont(void 0,"normal"),f=0;f<d.length;f+=1)w.push(this.getTextDimensions(d[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);D[m]=Math.max.apply(null,w)+S+S,w=[]}if(x){var N={};for(p=0;p<g.length;p+=1)N[g[p]]={},N[g[p]].text=v[p],N[g[p]].align=y[p];var L=u.call(this,N,D);k=g.map((function(t){return new a(e,r,D[t],L,N[t].text,void 0,N[t].align)})),this.setTableHeaderRow(k),this.printHeaderRow(1,!1)}var P=c.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(p=0;p<l.length;p+=1){"rowStart"in h&&h.rowStart instanceof Function&&h.rowStart({row:p,data:l[p]},this);var M=u.call(this,l[p],D);for(f=0;f<g.length;f+=1){var I=l[p][g[f]];"cellStart"in h&&h.cellStart instanceof Function&&h.cellStart({row:p,col:f,data:I},this),s.call(this,new a(e,r,D[g[f]],M,I,p+2,P[g[f]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=r,this};var u=function(e,t){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map((function(n){var i=e[n];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,t[n]-r-r)}),this).map((function(e){return this.getLineHeightFactor()*e.length*n/i+r+r}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){i.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var n;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){n=this.internal.__cell__.tableHeaderRow[l].clone(),t&&(n.y=this.internal.__cell__.margins.top||0,u.push(n)),n.lineNumber=e;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,n),this.setTextColor(c)}u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),r=!1}}(z.API);var Ne={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Le=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Pe=Ee(Le),Me=[100,200,300,400,500,600,700,800,900],Ie=Ee(Me);function Te(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(e){return Ne[e=e||"normal"]?e:"normal"}(e.style),n=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),i=function(e){return"number"==typeof Pe[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function Oe(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var Be={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},je={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Re(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function qe(e){return e.trimLeft()}function ze(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function Ue(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var He,We,Ye,Ve,$e,Ge,Ke=["times"];function Je(e,t,r,n,o){var a=4,s=Xe;switch(o){case z.API.image_compression.FAST:a=1,s=Qe;break;case z.API.image_compression.MEDIUM:a=6,s=et;break;case z.API.image_compression.SLOW:a=9,s=tt}e=function(e,t,r,n){for(var i,o=e.length/t,a=new Uint8Array(e.length+o),s=[Ze,Qe,Xe,et,tt],u=0;u<o;u+=1){var l=u*t,c=e.subarray(l,l+t);if(n)a.set(n(c,r,i),l+u);else{for(var h=s.length,p=[],d=0;d<h;d+=1)p[d]=s[d](c,r,i);var f=nt(p.concat());a.set(p[f],l+u)}i=c}return a}(e,t,Math.ceil(r*n/8),s);var u=(0,i.$)(e,{level:a});return z.API.__addimage__.arrayBufferToBinaryString(u)}function Ze(e){var t=Array.apply([],e);return t.unshift(0),t}function Qe(e,t){var r=e.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var o=e[i-t]||0;n[i+1]=e[i]-o+256&255}return n}function Xe(e,t,r){var n=e.length,i=[];i[0]=2;for(var o=0;o<n;o+=1){var a=r&&r[o]||0;i[o+1]=e[o]-a+256&255}return i}function et(e,t,r){var n=e.length,i=[];i[0]=3;for(var o=0;o<n;o+=1){var a=e[o-t]||0,s=r&&r[o]||0;i[o+1]=e[o]+256-(a+s>>>1)&255}return i}function tt(e,t,r){var n=e.length,i=[];i[0]=4;for(var o=0;o<n;o+=1){var a=rt(e[o-t]||0,r&&r[o]||0,r&&r[o-t]||0);i[o+1]=e[o]-a+256&255}return i}function rt(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),i=Math.abs(e-r),o=Math.abs(e+t-r-r);return n<=i&&n<=o?e:i<=o?t:r}function nt(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))}function it(e,t,r){var n=t*r,i=Math.floor(n/8),o=16-(n-8*i+r),a=(1<<r)-1;return at(e,i)>>o&a}function ot(e,t,r,n){var i=r*n,o=Math.floor(i/8),a=16-(i-8*o+n),s=(1<<n)-1,u=(t&s)<<a;!function(e,t,r){if(t+1<e.byteLength)e.setUint16(t,r,!1);else{var n=r>>8&255;e.setUint8(t,n)}}(e,o,at(e,o)&~(s<<a)&65535|u)}function at(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function st(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,a=1<<1+(7&i);e[t++],e[t++];var s=null,u=null;o&&(s=t,u=a,t+=3*a);var l=!0,c=[],h=0,p=null,d=0,f=null;for(this.width=r,this.height=n;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,f=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((S=e[t++])>=0))throw Error("Invalid block size");if(0===S)break;t+=S}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var m=e[t++];h=e[t++]|e[t++]<<8,p=e[t++],1&m||(p=null),d=m>>2&7,t++;break;case 254:for(;;){if(!((S=e[t++])>=0))throw Error("Invalid block size");if(0===S)break;t+=S}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var g=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,D=e[t++],w=D>>6&1,k=1<<1+(7&D),_=s,x=u,F=!1;D>>7&&(F=!0,_=t,x=k,t+=3*k);var C=t;for(t++;;){var S;if(!((S=e[t++])>=0))throw Error("Invalid block size");if(0===S)break;t+=S}c.push({x:g,y:v,width:y,height:b,has_local_palette:F,palette_offset:_,palette_size:x,data_offset:C,data_length:t-C,transparent_index:p,interlaced:!!w,delay:h,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,n){var i=this.frameInfo(t),o=i.width*i.height;if(o>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var a=new Uint8Array(o);ut(e,i.data_offset,a,o);var s=i.palette_offset,u=i.transparent_index;null===u&&(u=256);var l=i.width,c=r-l,h=l,p=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),f=p,m=4*c;!0===i.interlaced&&(m+=4*r*7);for(var g=8,v=0,y=a.length;v<y;++v){var b=a[v];if(0===h&&(h=l,(f+=m)>=d&&(m=4*c+4*r*(g-1),f=p+(l+c)*(g<<1),g>>=1)),b===u)f+=4;else{var D=e[s+3*b],w=e[s+3*b+1],k=e[s+3*b+2];n[f++]=k,n[f++]=w,n[f++]=D,n[f++]=255}--h}},this.decodeAndBlitFrameRGBA=function(t,n){var i=this.frameInfo(t),o=i.width*i.height;if(o>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var a=new Uint8Array(o);ut(e,i.data_offset,a,o);var s=i.palette_offset,u=i.transparent_index;null===u&&(u=256);var l=i.width,c=r-l,h=l,p=4*(i.y*r+i.x),d=4*((i.y+i.height)*r+i.x),f=p,m=4*c;!0===i.interlaced&&(m+=4*r*7);for(var g=8,v=0,y=a.length;v<y;++v){var b=a[v];if(0===h&&(h=l,(f+=m)>=d&&(m=4*c+4*r*(g-1),f=p+(l+c)*(g<<1),g>>=1)),b===u)f+=4;else{var D=e[s+3*b],w=e[s+3*b+1],k=e[s+3*b+2];n[f++]=D,n[f++]=w,n[f++]=k,n[f++]=255}--h}}}function ut(e,t,r,n){for(var i=e[t++],o=1<<i,a=o+1,s=a+1,u=i+1,l=(1<<u)-1,h=0,p=0,d=0,f=e[t++],m=new Int32Array(4096),g=null;;){for(;h<16&&0!==f;)p|=e[t++]<<h,h+=8,1===f?f=e[t++]:--f;if(h<u)break;var v=p&l;if(p>>=u,h-=u,v!==o){if(v===a)break;for(var y=v<s?v:g,b=0,D=y;D>o;)D=m[D]>>8,++b;var w=D;if(d+b+(y!==v?1:0)>n)return void c.log("Warning, gif stream longer than expected.");r[d++]=w;var k=d+=b;for(y!==v&&(r[d++]=w),D=y;b--;)D=m[D],r[--k]=255&D,D>>=8;null!==g&&s<4096&&(m[s++]=g<<8|w,s>=l+1&&u<12&&(++u,l=l<<1|1)),g=v}else s=a+1,l=(1<<(u=i+1))-1,g=null}return d!==n&&c.log("Warning, gif stream shorter than expected."),r}function lt(e){var t,r,n,i,o,a=Math.floor,s=new Array(64),u=new Array(64),l=new Array(64),c=new Array(64),h=new Array(65535),p=new Array(65535),d=new Array(64),f=new Array(64),m=[],g=0,v=7,y=new Array(64),b=new Array(64),D=new Array(64),w=new Array(256),k=new Array(2048),_=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],C=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],A=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[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 P(e,t){for(var r=0,n=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=e[o];a++)i[t[n]]=[],i[t[n]][0]=r,i[t[n]][1]=o,n++,r++;r*=2}return i}function M(e){for(var t=e[0],r=e[1]-1;r>=0;)t&1<<r&&(g|=1<<v),r--,--v<0&&(255==g?(I(255),I(0)):I(g),v=7,g=0)}function I(e){m.push(e)}function T(e){I(e>>8&255),I(255&e)}function O(e,t,r,n,i){for(var o,a=i[0],s=i[240],u=function(e,t){var r,n,i,o,a,s,u,l,c,h,p=0;for(c=0;c<8;++c){r=e[p],n=e[p+1],i=e[p+2],o=e[p+3],a=e[p+4],s=e[p+5],u=e[p+6];var f=r+(l=e[p+7]),m=r-l,g=n+u,v=n-u,y=i+s,b=i-s,D=o+a,w=o-a,k=f+D,_=f-D,x=g+y,F=g-y;e[p]=k+x,e[p+4]=k-x;var C=.707106781*(F+_);e[p+2]=_+C,e[p+6]=_-C;var S=.382683433*((k=w+b)-(F=v+m)),A=.5411961*k+S,E=1.306562965*F+S,N=.707106781*(x=b+v),L=m+N,P=m-N;e[p+5]=P+A,e[p+3]=P-A,e[p+1]=L+E,e[p+7]=L-E,p+=8}for(p=0,c=0;c<8;++c){r=e[p],n=e[p+8],i=e[p+16],o=e[p+24],a=e[p+32],s=e[p+40],u=e[p+48];var M=r+(l=e[p+56]),I=r-l,T=n+u,O=n-u,B=i+s,j=i-s,R=o+a,q=o-a,z=M+R,U=M-R,H=T+B,W=T-B;e[p]=z+H,e[p+32]=z-H;var Y=.707106781*(W+U);e[p+16]=U+Y,e[p+48]=U-Y;var V=.382683433*((z=q+j)-(W=O+I)),$=.5411961*z+V,G=1.306562965*W+V,K=.707106781*(H=j+O),J=I+K,Z=I-K;e[p+40]=Z+$,e[p+24]=Z-$,e[p+8]=J+G,e[p+56]=J-G,p++}for(c=0;c<64;++c)h=e[c]*t[c],d[c]=h>0?h+.5|0:h-.5|0;return d}(e,t),l=0;l<64;++l)f[_[l]]=u[l];var c=f[0]-r;r=f[0],0==c?M(n[0]):(M(n[p[o=32767+c]]),M(h[o]));for(var m=63;m>0&&0==f[m];)m--;if(0==m)return M(a),r;for(var g,v=1;v<=m;){for(var y=v;0==f[v]&&v<=m;)++v;var b=v-y;if(b>=16){g=b>>4;for(var D=1;D<=g;++D)M(s);b&=15}o=32767+f[v],M(i[(b<<4)+p[o]]),M(h[o]),v++}return 63!=m&&M(a),r}function B(e){e=Math.min(Math.max(e,1),100),o!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=a((t[r]*e+50)/100);n=Math.min(Math.max(n,1),255),s[_[r]]=n}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var h=a((i[o]*e+50)/100);h=Math.min(Math.max(h,1),255),u[_[o]]=h}for(var p=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,f=0;f<8;f++)for(var m=0;m<8;m++)l[d]=1/(s[_[d]]*p[f]*p[m]*8),c[d]=1/(u[_[d]]*p[f]*p[m]*8),d++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){o&&B(o),m=new Array,g=0,v=7,T(65496),T(65504),T(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),T(1),T(1),I(0),I(0),function(){T(65499),T(132),I(0);for(var e=0;e<64;e++)I(s[e]);I(1);for(var t=0;t<64;t++)I(u[t])}(),function(e,t){T(65472),T(17),I(8),T(t),T(e),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(e.width,e.height),function(){T(65476),T(418),I(0);for(var e=0;e<16;e++)I(x[e+1]);for(var t=0;t<=11;t++)I(F[t]);I(16);for(var r=0;r<16;r++)I(C[r+1]);for(var n=0;n<=161;n++)I(S[n]);I(1);for(var i=0;i<16;i++)I(A[i+1]);for(var o=0;o<=11;o++)I(E[o]);I(17);for(var a=0;a<16;a++)I(N[a+1]);for(var s=0;s<=161;s++)I(L[s])}(),T(65498),T(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var a=0,h=0,p=0;g=0,v=7,this.encode.displayName="_encode_";for(var d,f,w,_,P,j,R,q,z,U=e.data,H=e.width,W=e.height,Y=4*H,V=0;V<W;){for(d=0;d<Y;){for(P=Y*V+d,R=-1,q=0,z=0;z<64;z++)j=P+(q=z>>3)*Y+(R=4*(7&z)),V+q>=W&&(j-=Y*(V+1+q-W)),d+R>=Y&&(j-=d+R-Y+4),f=U[j++],w=U[j++],_=U[j++],y[z]=(k[f]+k[w+256|0]+k[_+512|0]>>16)-128,b[z]=(k[f+768|0]+k[w+1024|0]+k[_+1280|0]>>16)-128,D[z]=(k[f+1280|0]+k[w+1536|0]+k[_+1792|0]>>16)-128;a=O(y,l,a,t,n),h=O(b,c,h,r,i),p=O(D,c,p,r,i),d+=32}V+=8}if(v>=0){var $=[];$[1]=v+1,$[0]=(1<<v+1)-1,M($)}return T(65497),new Uint8Array(m)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)w[t]=e(t)}(),t=P(x,F),r=P(A,E),n=P(C,S),i=P(N,L),function(){for(var e=1,t=2,r=1;r<=15;r++){for(var n=e;n<t;n++)p[32767+n]=r,h[32767+n]=[],h[32767+n][1]=r,h[32767+n][0]=n;for(var i=-(t-1);i<=-e;i++)p[32767+i]=r,h[32767+i]=[],h[32767+i][1]=r,h[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)k[e]=19595*e,k[e+256|0]=38470*e,k[e+512|0]=7471*e+32768,k[e+768|0]=-11059*e,k[e+1024|0]=-21709*e,k[e+1280|0]=32768*e+8421375,k[e+1536|0]=-27439*e,k[e+1792|0]=-5329*e}(),B(e)}function ct(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ht(e){function t(e){if(!e)throw Error("assert :P")}function r(e,t,r){for(var n=0;4>n;n++)if(e[t+n]!=r.charCodeAt(n))return!0;return!1}function n(e,t,r,n,i){for(var o=0;o<i;o++)e[t+o]=r[n+o]}function i(e,t,r,n){for(var i=0;i<n;i++)e[t+i]=r}function o(e){return new Int32Array(e)}function a(e,t){for(var r=[],n=0;n<e;n++)r.push(new t);return r}function s(e,t){var r=[];return function e(r,n,i){for(var o=i[n],a=0;a<o&&(r.push(i.length>n+1?[]:new t),!(i.length<n+1));a++)e(r[a],n+1,i)}(r,0,e),r}var u=function(){var e=this;function u(e,t){for(var r=1<<t-1>>>0;e&r;)r>>>=1;return r?(e&r-1)+r:e}function l(e,r,n,i,o){t(!(i%n));do{e[r+(i-=n)]=o}while(0<i)}function c(e,r,n,i,a){if(t(2328>=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(e,r,n,i,a,s){var c,p,d=r,f=1<<n,m=o(16),g=o(16);for(t(0!=a),t(null!=i),t(null!=e),t(0<n),p=0;p<a;++p){if(15<i[p])return 0;++m[i[p]]}if(m[0]==a)return 0;for(g[1]=0,c=1;15>c;++c){if(m[c]>1<<c)return 0;g[c+1]=g[c]+m[c]}for(p=0;p<a;++p)c=i[p],0<i[p]&&(s[g[c]++]=p);if(1==g[15])return(i=new h).g=0,i.value=s[0],l(e,d,1,f,i),f;var v,y=-1,b=f-1,D=0,w=1,k=1,_=1<<n;for(p=0,c=1,a=2;c<=n;++c,a<<=1){if(w+=k<<=1,0>(k-=m[c]))return 0;for(;0<m[c];--m[c])(i=new h).g=c,i.value=s[p++],l(e,d+D,a,_,i),D=u(D,c)}for(c=n+1,a=2;15>=c;++c,a<<=1){if(w+=k<<=1,0>(k-=m[c]))return 0;for(;0<m[c];--m[c]){if(i=new h,(D&b)!=y){for(d+=_,v=1<<(y=c)-n;15>y&&!(0>=(v-=m[y]));)++y,v<<=1;f+=_=1<<(v=y-n),e[r+(y=D&b)].g=v+n,e[r+y].value=d-r-y}i.g=c-n,i.value=s[p++],l(e,d+(D>>n),a,_,i),D=u(D,c)}}return w!=2*g[15]-1?0:f}(e,r,n,i,a,s)}function h(){this.value=this.g=0}function p(){this.value=this.g=0}function d(){this.G=a(5,h),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Br,p)}function f(e,r,n,i){t(null!=e),t(null!=r),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=r,e.pa=n,e.Jd=r,e.Yc=n+i,e.Zc=4<=i?n+i-4+1:n,C(e)}function m(e,t){for(var r=0;0<t--;)r|=A(e,128)<<t;return r}function g(e,t){var r=m(e,t);return S(e)?-r:r}function v(e,r,n,i){var o,a=0;for(t(null!=e),t(null!=r),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),o=0;o<i;++o)a+=r[n+o]<<8*o;e.Ra=a,e.bb=i,e.oa=r,e.pa=n}function y(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<qr-8>>>0,++e.bb,e.u-=8;_(e)&&(e.h=1,e.u=0)}function b(e,r){if(t(0<=r),!e.h&&r<=Rr){var n=k(e)&jr[r];return e.u+=r,y(e),n}return e.h=1,e.u=0}function D(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function k(e){return e.Ra>>>(e.u&qr-1)>>>0}function _(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>qr}function x(e,t){e.u=t,e.h=_(e)}function F(e){e.u>=zr&&(t(e.u>=zr),y(e))}function C(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function S(e){return m(e,1)}function A(e,t){var r=e.Ca;0>e.b&&C(e);var n=e.b,i=r*t>>>8,o=(e.I>>>n>i)+0;for(o?(r-=i,e.I-=i+1<<n>>>0):r=i+1,n=r,i=0;256<=n;)i+=8,n>>=8;return n=7^i+Ur[n],e.b-=n,e.Ca=(r<<n)-1,o}function E(e,t,r){e[t+0]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r}function N(e,t){return e[t+0]|e[t+1]<<8}function L(e,t){return N(e,t)|e[t+2]<<16}function P(e,t){return N(e,t)|N(e,t+2)<<16}function M(e,r){var n=1<<r;return t(null!=e),t(0<r),e.X=o(n),null==e.X?0:(e.Mb=32-r,e.Xa=r,1)}function I(e,r){t(null!=e),t(null!=r),t(e.Xa==r.Xa),n(r.X,0,e.X,0,1<<r.Xa)}function T(){this.X=[],this.Xa=this.Mb=0}function O(e,r,n,i){t(null!=n),t(null!=i);var o=n[0],a=i[0];return 0==o&&(o=(e*a+r/2)/r),0==a&&(a=(r*o+e/2)/e),0>=o||0>=a?0:(n[0]=o,i[0]=a,1)}function B(e,t){return e+(1<<t)-1>>>t}function j(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function R(t,r){e[r]=function(r,n,i,o,a,s,u){var l;for(l=0;l<a;++l){var c=e[t](s[u+l-1],i,o+l);s[u+l]=j(r[n+l],c)}}}function q(){this.ud=this.hd=this.jd=0}function z(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function U(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function H(e,t){return U(e+(e-t+.5>>1))}function W(e,t,r){return Math.abs(t-r)-Math.abs(e-r)}function Y(e,t,r,n,i,o,a){for(n=o[a-1],r=0;r<i;++r)o[a+r]=n=j(e[t+r],n)}function V(e,t,r,n,i){var o;for(o=0;o<r;++o){var a=e[t+o],s=a>>8&255,u=16711935&(u=(u=16711935&a)+((s<<16)+s));n[i+o]=(4278255360&a)+u>>>0}}function $(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function G(e,t,r,n,i,o){var a;for(a=0;a<n;++a){var s=t[r+a],u=s>>>8,l=s,c=255&(c=(c=s>>>16)+((e.jd<<24>>24)*(u<<24>>24)>>>5));l=255&(l=(l+=(e.hd<<24>>24)*(u<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(c<<16)+l}}function K(t,r,n,i,o){e[r]=function(e,t,r,n,a,s,u,l,c){for(n=u;n<l;++n)for(u=0;u<c;++u)a[s++]=o(r[i(e[t++])])},e[t]=function(t,r,a,s,u,l,c){var h=8>>t.b,p=t.Ea,d=t.K[0],f=t.w;if(8>h)for(t=(1<<t.b)-1,f=(1<<h)-1;r<a;++r){var m,g=0;for(m=0;m<p;++m)m&t||(g=i(s[u++])),l[c++]=o(d[g&f]),g>>=h}else e["VP8LMapColor"+n](s,u,d,f,l,c,r,a,p)}}function J(e,t,r,n,i){for(r=t+r;t<r;){var o=e[t++];n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o}}function Z(e,t,r,n,i){for(r=t+r;t<r;){var o=e[t++];n[i++]=o>>16&255,n[i++]=o>>8&255,n[i++]=255&o,n[i++]=o>>24&255}}function Q(e,t,r,n,i){for(r=t+r;t<r;){var o=(a=e[t++])>>16&240|a>>12&15,a=240&a|a>>28&15;n[i++]=o,n[i++]=a}}function X(e,t,r,n,i){for(r=t+r;t<r;){var o=(a=e[t++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;n[i++]=o,n[i++]=a}}function ee(e,t,r,n,i){for(r=t+r;t<r;){var o=e[t++];n[i++]=255&o,n[i++]=o>>8&255,n[i++]=o>>16&255}}function te(e,t,r,i,o,a){if(0==a)for(r=t+r;t<r;)E(i,((a=e[t++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else n(i,o,e,t,r)}function re(t,r){e[r][0]=e[t+"0"],e[r][1]=e[t+"1"],e[r][2]=e[t+"2"],e[r][3]=e[t+"3"],e[r][4]=e[t+"4"],e[r][5]=e[t+"5"],e[r][6]=e[t+"6"],e[r][7]=e[t+"7"],e[r][8]=e[t+"8"],e[r][9]=e[t+"9"],e[r][10]=e[t+"10"],e[r][11]=e[t+"11"],e[r][12]=e[t+"12"],e[r][13]=e[t+"13"],e[r][14]=e[t+"0"],e[r][15]=e[t+"0"]}function ne(e){return e==Un||e==Hn||e==Wn||e==Yn}function ie(){this.eb=[],this.size=this.A=this.fb=0}function oe(){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 ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ie,this.f.kb=new oe,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ue(){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 le(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var r=e.T,i=t.ba.f.RGBA,o=i.eb,a=i.fb+e.ka*i.A,s=gi[t.ba.S],u=e.y,l=e.O,c=e.f,h=e.N,p=e.ea,d=e.W,f=t.cc,m=t.dc,g=t.Mc,v=t.Nc,y=e.ka,b=e.ka+e.T,D=e.U,w=D+1>>1;for(0==y?s(u,l,null,null,c,h,p,d,c,h,p,d,o,a,null,null,D):(s(t.ec,t.fc,u,l,f,m,g,v,c,h,p,d,o,a-i.A,o,a,D),++r);y+2<b;y+=2)f=c,m=h,g=p,v=d,h+=e.Rc,d+=e.Rc,a+=2*i.A,s(u,(l+=2*e.fa)-e.fa,u,l,f,m,g,v,c,h,p,d,o,a-i.A,o,a,D);return l+=e.fa,e.j+b<e.o?(n(t.ec,t.fc,u,l,D),n(t.cc,t.dc,c,h,w),n(t.Mc,t.Nc,p,d,w),r--):1&b||s(u,l,null,null,c,h,p,d,c,h,p,d,o,a+i.A,null,null,D),r}function he(e,r,n){var i=e.F,o=[e.J];if(null!=i){var a=e.U,s=r.ba.S,u=s==Rn||s==Wn;r=r.ba.f.RGBA;var l=[0],c=e.ka;l[0]=e.T,e.Kb&&(0==c?--l[0]:(--c,o[0]-=e.width),e.j+e.ka+e.T==e.o&&(l[0]=e.o-e.j-c));var h=r.eb;c=r.fb+c*r.A,e=xn(i,o[0],e.width,a,l,h,c+(u?0:3),r.A),t(n==l),e&&ne(s)&&kn(h,c,u,a,l,r.A)}return 0}function pe(e){var t=e.ma,r=t.ba.S,n=11>r,i=r==On||r==jn||r==Rn||r==qn||12==r||ne(r);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Ir(t.Oa,e,i?11:12))return 0;if(i&&ne(r)&&vr(),e.da)alert("todo:use_scaling");else{if(n){if(t.Ib=le,e.Kb){if(r=e.U+1>>1,t.memory=o(e.U+2*r),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+r,t.Ib=ce,vr()}}else alert("todo:EmitYUV");i&&(t.Jb=he,n&&mr())}if(n&&!Ni){for(e=0;256>e;++e)Li[e]=89858*(e-128)+Fi>>xi,Ii[e]=-22014*(e-128)+Fi,Mi[e]=-45773*(e-128),Pi[e]=113618*(e-128)+Fi>>xi;for(e=Ci;e<Si;++e)t=76283*(e-16)+Fi>>xi,Ti[e-Ci]=Ye(t,255),Oi[e-Ci]=Ye(t+8>>4,15);Ni=1}return 1}function de(e){var r=e.ma,n=e.U,i=e.T;return t(!(1&e.ka)),0>=n||0>=i?0:(n=r.Ib(e,r),null!=r.Jb&&r.Jb(e,r,n),r.Dc+=n,1)}function fe(e){e.ma.memory=null}function me(e,t,r,n){return 47!=b(e,8)?0:(t[0]=b(e,14)+1,r[0]=b(e,14)+1,n[0]=b(e,1),0!=b(e,3)?0:!e.h)}function ge(e,t){if(4>e)return e+1;var r=e-2>>1;return(2+(1&e)<<r)+b(t,r)+1}function ve(e,t){return 120<t?t-120:1<=(r=((r=Zn[t-1])>>4)*e+(8-(15&r)))?r:1;var r}function ye(e,t,r){var n=k(r),i=e[t+=255&n].g-8;return 0<i&&(x(r,r.u+8),n=k(r),t+=e[t].value,t+=n&(1<<i)-1),x(r,r.u+e[t].g),e[t].value}function be(e,r,n){return n.g+=e.g,n.value+=e.value<<r>>>0,t(8>=n.g),e.g}function De(e,r,n){var i=e.xc;return t((r=0==i?0:e.vc[e.md*(n>>i)+(r>>i)])<e.Wb),e.Ya[r]}function we(e,r,i,o){var a=e.ab,s=e.c*r,u=e.C;r=u+r;var l=i,c=o;for(o=e.Ta,i=e.Ua;0<a--;){var h=e.gc[a],p=u,d=r,f=l,m=c,g=(c=o,l=i,h.Ea);switch(t(p<d),t(d<=h.nc),h.hc){case 2:Yr(f,m,(d-p)*g,c,l);break;case 0:var v=p,y=d,b=c,D=l,w=(C=h).Ea;0==v&&(Hr(f,m,null,null,1,b,D),Y(f,m+1,0,0,w-1,b,D+1),m+=w,D+=w,++v);for(var k=1<<C.b,_=k-1,x=B(w,C.b),F=C.K,C=C.w+(v>>C.b)*x;v<y;){var S=F,A=C,E=1;for(Wr(f,m,b,D-w,1,b,D);E<w;){var N=(E&~_)+k;N>w&&(N=w),(0,Jr[S[A++]>>8&15])(f,m+ +E,b,D+E-w,N-E,b,D+E),E=N}m+=w,D+=w,++v&_||(C+=x)}d!=h.nc&&n(c,l-g,c,l+(d-p-1)*g,g);break;case 1:for(g=f,y=m,w=(f=h.Ea)-(D=f&~(b=(m=1<<h.b)-1)),v=B(f,h.b),k=h.K,h=h.w+(p>>h.b)*v;p<d;){for(_=k,x=h,F=new q,C=y+D,S=y+f;y<C;)$(_[x++],F),Zr(F,g,y,m,c,l),y+=m,l+=m;y<S&&($(_[x++],F),Zr(F,g,y,w,c,l),y+=w,l+=w),++p&b||(h+=v)}break;case 3:if(f==c&&m==l&&0<h.b){for(y=c,f=g=l+(d-p)*g-(D=(d-p)*B(h.Ea,h.b)),m=c,b=l,v=[],D=(w=D)-1;0<=D;--D)v[D]=m[b+D];for(D=w-1;0<=D;--D)y[f+D]=v[D];Vr(h,p,d,c,g,c,l)}else Vr(h,p,d,f,m,c,l)}l=o,c=i}c!=i&&n(o,i,l,c,s)}function ke(e,r){var n=e.V,i=e.Ba+e.c*e.C,o=r-e.C;if(t(r<=e.l.o),t(16>=o),0<o){var a=e.l,s=e.Ta,u=e.Ua,l=a.width;if(we(e,o,n,i),o=u=[u],t((n=e.C)<(i=r)),t(a.v<a.va),i>a.o&&(i=a.o),n<a.j){var c=a.j-n;n=a.j,o[0]+=c*l}if(n>=i?n=0:(o[0]+=4*a.v,a.ka=n-a.j,a.U=a.va-a.v,a.T=i-n,n=1),n){if(u=u[0],11>(n=e.ca).S){var h=n.f.RGBA,p=(i=n.S,o=a.U,a=a.T,c=h.eb,h.A),d=a;for(h=h.fb+e.Ma*h.A;0<d--;){var f=s,m=u,g=o,v=c,y=h;switch(i){case Tn:Qr(f,m,g,v,y);break;case On:Xr(f,m,g,v,y);break;case Un:Xr(f,m,g,v,y),kn(v,y,0,g,1,0);break;case Bn:rn(f,m,g,v,y);break;case jn:te(f,m,g,v,y,1);break;case Hn:te(f,m,g,v,y,1),kn(v,y,0,g,1,0);break;case Rn:te(f,m,g,v,y,0);break;case Wn:te(f,m,g,v,y,0),kn(v,y,1,g,1,0);break;case qn:en(f,m,g,v,y);break;case Yn:en(f,m,g,v,y),_n(v,y,g,1,0);break;case zn:tn(f,m,g,v,y);break;default:t(0)}u+=l,h+=p}e.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=n.height)}}e.C=r,t(e.C<=e.i)}function _e(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var r=e.Ya[t].G,n=e.Ya[t].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function xe(e,r,n,i,o,a){if(0!=e.Z){var s=e.qd,u=e.rd;for(t(null!=mi[e.Z]);r<n;++r)mi[e.Z](s,u,i,o,i,o,a),s=i,u=o,o+=a;e.qd=s,e.rd=u}}function Fe(e,r){var n=e.l.ma,i=0==n.Z||1==n.Z?e.l.j:e.C;if(i=e.C<i?i:e.C,t(r<=e.l.o),r>i){var o=e.l.width,a=n.ca,s=n.tb+o*i,u=e.V,l=e.Ba+e.c*i,c=e.gc;t(1==e.ab),t(3==c[0].hc),Gr(c[0],i,r,u,l,a,s),xe(n,i,r,a,s,o)}e.C=e.Ma=r}function Ce(e,r,n,i,o,a,s){var u=e.$/i,l=e.$%i,c=e.m,h=e.s,p=n+e.$,d=p;o=n+i*o;var f=n+i*a,m=280+h.ua,g=e.Pb?u:16777216,v=0<h.ua?h.Wa:null,y=h.wc,b=p<f?De(h,l,u):null;t(e.C<a),t(f<=o);var D=!1;e:for(;;){for(;D||p<f;){var w=0;if(u>=g){var C=p-n;t((g=e).Pb),g.wd=g.m,g.xd=C,0<g.s.ua&&I(g.s.Wa,g.s.vb),g=u+Xn}if(l&y||(b=De(h,l,u)),t(null!=b),b.Qb&&(r[p]=b.qb,D=!0),!D)if(F(c),b.jc){w=c,C=r;var S=p,A=b.pd[k(w)&Br-1];t(b.jc),256>A.g?(x(w,w.u+A.g),C[S]=A.value,w=0):(x(w,w.u+A.g-256),t(256<=A.value),w=A.value),0==w&&(D=!0)}else w=ye(b.G[0],b.H[0],c);if(c.h)break;if(D||256>w){if(!D)if(b.nd)r[p]=(b.qb|w<<8)>>>0;else{if(F(c),D=ye(b.G[1],b.H[1],c),F(c),C=ye(b.G[2],b.H[2],c),S=ye(b.G[3],b.H[3],c),c.h)break;r[p]=(S<<24|D<<16|w<<8|C)>>>0}if(D=!1,++p,++l>=i&&(l=0,++u,null!=s&&u<=a&&!(u%16)&&s(e,u),null!=v))for(;d<p;)w=r[d++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else if(280>w){if(w=ge(w-256,c),C=ye(b.G[4],b.H[4],c),F(c),C=ve(i,C=ge(C,c)),c.h)break;if(p-n<C||o-p<w)break e;for(S=0;S<w;++S)r[p+S]=r[p+S-C];for(p+=w,l+=w;l>=i;)l-=i,++u,null!=s&&u<=a&&!(u%16)&&s(e,u);if(t(p<=o),l&y&&(b=De(h,l,u)),null!=v)for(;d<p;)w=r[d++],v.X[(506832829*w&4294967295)>>>v.Mb]=w}else{if(!(w<m))break e;for(D=w-280,t(null!=v);d<p;)w=r[d++],v.X[(506832829*w&4294967295)>>>v.Mb]=w;w=p,t(!(D>>>(C=v).Xa)),r[w]=C.X[D],D=!0}D||t(c.h==_(c))}if(e.Pb&&c.h&&p<o)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&I(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=s&&s(e,u>a?a:u),e.a=0,e.$=p-n}return 1}return e.a=3,0}function Se(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var r=e.Wa;null!=r&&(r.X=null),e.vb=null,t(null!=e)}function Ae(){var t=new or;return null==t?null:(t.a=0,t.xb=fi,re("Predictor","VP8LPredictors"),re("Predictor","VP8LPredictors_C"),re("PredictorAdd","VP8LPredictorsAdd"),re("PredictorAdd","VP8LPredictorsAdd_C"),Yr=V,Zr=G,Qr=J,Xr=Z,en=Q,tn=X,rn=ee,e.VP8LMapColor32b=$r,e.VP8LMapColor8b=Kr,t)}function Ee(e,r,n,s,u){var l=1,p=[e],f=[r],m=s.m,g=s.s,v=null,y=0;e:for(;;){if(n)for(;l&&b(m,1);){var D=p,w=f,_=s,C=1,S=_.m,A=_.gc[_.ab],E=b(S,2);if(_.Oc&1<<E)l=0;else{switch(_.Oc|=1<<E,A.hc=E,A.Ea=D[0],A.nc=w[0],A.K=[null],++_.ab,t(4>=_.ab),E){case 0:case 1:A.b=b(S,3)+2,C=Ee(B(A.Ea,A.b),B(A.nc,A.b),0,_,A.K),A.K=A.K[0];break;case 3:var N,L=b(S,8)+1,P=16<L?0:4<L?1:2<L?2:3;if(D[0]=B(A.Ea,P),A.b=P,N=C=Ee(L,1,0,_,A.K)){var I,T=L,O=A,R=1<<(8>>O.b),q=o(R);if(null==q)N=0;else{var z=O.K[0],U=O.w;for(q[0]=O.K[0][0],I=1;I<1*T;++I)q[I]=j(z[U+I],q[I-1]);for(;I<4*R;++I)q[I]=0;O.K[0]=null,O.K[0]=q,N=1}}C=N;break;case 2:break;default:t(0)}l=C}}if(p=p[0],f=f[0],l&&b(m,1)&&!(l=1<=(y=b(m,4))&&11>=y)){s.a=3;break e}var H;if(H=l)t:{var W,Y,V,$=s,G=p,K=f,J=y,Z=n,Q=$.m,X=$.s,ee=[null],te=1,re=0,ne=Qn[J];r:for(;;){if(Z&&b(Q,1)){var ie=b(Q,3)+2,oe=B(G,ie),ae=B(K,ie),se=oe*ae;if(!Ee(oe,ae,0,$,ee))break r;for(ee=ee[0],X.xc=ie,W=0;W<se;++W){var ue=ee[W]>>8&65535;ee[W]=ue,ue>=te&&(te=ue+1)}}if(Q.h)break r;for(Y=0;5>Y;++Y){var le=Gn[Y];!Y&&0<J&&(le+=1<<J),re<le&&(re=le)}var ce=a(te*ne,h),he=te,pe=a(he,d);if(null==pe)var de=null;else t(65536>=he),de=pe;var fe=o(re);if(null==de||null==fe||null==ce){$.a=1;break r}var me=ce;for(W=V=0;W<te;++W){var ge=de[W],ve=ge.G,ye=ge.H,De=0,we=1,ke=0;for(Y=0;5>Y;++Y){le=Gn[Y],ve[Y]=me,ye[Y]=V,!Y&&0<J&&(le+=1<<J);n:{var _e,xe=le,Fe=$,Ae=fe,Ne=me,Le=V,Pe=0,Me=Fe.m,Ie=b(Me,1);if(i(Ae,0,0,xe),Ie){var Te=b(Me,1)+1,Oe=b(Me,1),Be=b(Me,0==Oe?1:8);Ae[Be]=1,2==Te&&(Ae[Be=b(Me,8)]=1);var je=1}else{var Re=o(19),qe=b(Me,4)+4;if(19<qe){Fe.a=3;var ze=0;break n}for(_e=0;_e<qe;++_e)Re[Jn[_e]]=b(Me,3);var Ue=void 0,He=void 0,We=Fe,Ye=Re,Ve=xe,$e=Ae,Ge=0,Ke=We.m,Je=8,Ze=a(128,h);i:for(;c(Ze,0,7,Ye,19);){if(b(Ke,1)){var Qe=2+2*b(Ke,3);if((Ue=2+b(Ke,Qe))>Ve)break i}else Ue=Ve;for(He=0;He<Ve&&Ue--;){F(Ke);var Xe=Ze[0+(127&k(Ke))];x(Ke,Ke.u+Xe.g);var et=Xe.value;if(16>et)$e[He++]=et,0!=et&&(Je=et);else{var tt=16==et,rt=et-16,nt=$n[rt],it=b(Ke,Vn[rt])+nt;if(He+it>Ve)break i;for(var ot=tt?Je:0;0<it--;)$e[He++]=ot}}Ge=1;break i}Ge||(We.a=3),je=Ge}(je=je&&!Me.h)&&(Pe=c(Ne,Le,8,Ae,xe)),je&&0!=Pe?ze=Pe:(Fe.a=3,ze=0)}if(0==ze)break r;if(we&&1==Kn[Y]&&(we=0==me[V].g),De+=me[V].g,V+=ze,3>=Y){var at,st=fe[0];for(at=1;at<le;++at)fe[at]>st&&(st=fe[at]);ke+=st}}if(ge.nd=we,ge.Qb=0,we&&(ge.qb=(ve[3][ye[3]+0].value<<24|ve[1][ye[1]+0].value<<16|ve[2][ye[2]+0].value)>>>0,0==De&&256>ve[0][ye[0]+0].value&&(ge.Qb=1,ge.qb+=ve[0][ye[0]+0].value<<8)),ge.jc=!ge.Qb&&6>ke,ge.jc){var ut,lt=ge;for(ut=0;ut<Br;++ut){var ct=ut,ht=lt.pd[ct],pt=lt.G[0][lt.H[0]+ct];256<=pt.value?(ht.g=pt.g+256,ht.value=pt.value):(ht.g=0,ht.value=0,ct>>=be(pt,8,ht),ct>>=be(lt.G[1][lt.H[1]+ct],16,ht),ct>>=be(lt.G[2][lt.H[2]+ct],0,ht),be(lt.G[3][lt.H[3]+ct],24,ht))}}}X.vc=ee,X.Wb=te,X.Ya=de,X.yc=ce,H=1;break t}H=0}if(!(l=H)){s.a=3;break e}if(0<y){if(g.ua=1<<y,!M(g.Wa,y)){s.a=1,l=0;break e}}else g.ua=0;var dt=s,ft=p,mt=f,gt=dt.s,vt=gt.xc;if(dt.c=ft,dt.i=mt,gt.md=B(ft,vt),gt.wc=0==vt?-1:(1<<vt)-1,n){s.xb=di;break e}if(null==(v=o(p*f))){s.a=1,l=0;break e}l=(l=Ce(s,v,0,p,f,f,null))&&!m.h;break e}return l?(null!=u?u[0]=v:(t(null==v),t(n)),s.$=0,n||Se(g)):Se(g),l}function Ne(e,r){var n=e.c*e.i,i=n+r+16*r;return t(e.c<=r),e.V=o(i),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+n+r,1)}function Le(e,r){var n=e.C,i=r-n,o=e.V,a=e.Ba+e.c*n;for(t(r<=e.l.o);0<i;){var s=16<i?16:i,u=e.l.ma,l=e.l.width,c=l*s,h=u.ca,p=u.tb+l*n,d=e.Ta,f=e.Ua;we(e,s,o,a),Fn(d,f,h,p,c),xe(u,n,n+s,h,p,l),i-=s,o+=s*e.c,n+=s}t(n==r),e.C=e.Ma=r}function Pe(){this.ub=this.yd=this.td=this.Rb=0}function Me(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ie(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Te(){this.Yb=function(){var e=[];return function e(t,r,n){for(var i=n[r],o=0;o<i&&(t.push(n.length>r+1?[]:0),!(n.length<r+1));o++)e(t[o],r+1,n)}(e,0,[3,11]),e}()}function Oe(){this.jb=o(3),this.Wc=s([4,8],Te),this.Xc=s([4,17],Te)}function Be(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function je(){this.ld=this.La=this.dd=this.tc=0}function Re(){this.Na=this.la=0}function qe(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ze(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ue(){this.uc=this.M=this.Nb=0,this.wa=Array(new je),this.Y=0,this.ya=Array(new ze),this.aa=0,this.l=new Ve}function He(){this.y=o(16),this.f=o(8),this.ea=o(8)}function We(){this.cb=this.a=0,this.sc="",this.m=new D,this.Od=new Pe,this.Kc=new Me,this.ed=new Be,this.Qa=new Ie,this.Ic=this.$c=this.Aa=0,this.D=new Ue,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,D),this.ia=0,this.pb=a(4,qe),this.Pa=new Oe,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new He),this.Hd=0,this.rb=Array(new Re),this.sb=0,this.wa=Array(new je),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 ze),this.L=this.aa=0,this.gd=s([4,2],je),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 Ye(e,t){return 0>e?0:e>t?t:e}function Ve(){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 $e(){var e=new We;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ri||(ri=Ze)),e}function Ge(e,t,r){return 0==e.a&&(e.a=t,e.sc=r,e.cb=0),0}function Ke(e,t,r){return 3<=r&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Je(e,r){if(null==e)return 0;if(e.a=0,e.sc="OK",null==r)return Ge(e,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,o=r.w,a=r.ha;if(4>a)return Ge(e,7,"Truncated header.");var s=n[o+0]|n[o+1]<<8|n[o+2]<<16,u=e.Od;if(u.Rb=!(1&s),u.td=s>>1&7,u.yd=s>>4&1,u.ub=s>>5,3<u.td)return Ge(e,3,"Incorrect keyframe parameters.");if(!u.yd)return Ge(e,4,"Frame not displayable.");o+=3,a-=3;var l=e.Kc;if(u.Rb){if(7>a)return Ge(e,7,"cannot parse picture header");if(!Ke(n,o,a))return Ge(e,3,"Bad code word");l.c=16383&(n[o+4]<<8|n[o+3]),l.Td=n[o+4]>>6,l.i=16383&(n[o+6]<<8|n[o+5]),l.Ud=n[o+6]>>6,o+=7,a-=7,e.za=l.c+15>>4,e.Ub=l.i+15>>4,r.width=l.c,r.height=l.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,i((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(u.ub>a)return Ge(e,7,"bad partition length");f(s=e.m,n,o,u.ub),o+=u.ub,a-=u.ub,u.Rb&&(l.Ld=S(s),l.Kd=S(s)),l=e.Qa;var c,h=e.Pa;if(t(null!=s),t(null!=l),l.Cb=S(s),l.Cb){if(l.Bb=S(s),S(s)){for(l.Fb=S(s),c=0;4>c;++c)l.Zb[c]=S(s)?g(s,7):0;for(c=0;4>c;++c)l.Lb[c]=S(s)?g(s,6):0}if(l.Bb)for(c=0;3>c;++c)h.jb[c]=S(s)?m(s,8):255}else l.Bb=0;if(s.Ka)return Ge(e,3,"cannot parse segment header");if((l=e.ed).zd=S(s),l.Tb=m(s,6),l.wb=m(s,3),l.Pc=S(s),l.Pc&&S(s)){for(h=0;4>h;++h)S(s)&&(l.vd[h]=g(s,6));for(h=0;4>h;++h)S(s)&&(l.od[h]=g(s,6))}if(e.L=0==l.Tb?0:l.zd?1:2,s.Ka)return Ge(e,3,"cannot parse filter header");var p=a;if(a=c=o,o=c+p,l=p,e.Xb=(1<<m(e.m,2))-1,p<3*(h=e.Xb))n=7;else{for(c+=3*h,l-=3*h,p=0;p<h;++p){var d=n[a+0]|n[a+1]<<8|n[a+2]<<16;d>l&&(d=l),f(e.Jc[+p],n,c,d),c+=d,l-=d,a+=3}f(e.Jc[+h],n,c,l),n=c<o?0:5}if(0!=n)return Ge(e,n,"cannot parse partitions");for(n=m(c=e.m,7),a=S(c)?g(c,4):0,o=S(c)?g(c,4):0,l=S(c)?g(c,4):0,h=S(c)?g(c,4):0,c=S(c)?g(c,4):0,p=e.Qa,d=0;4>d;++d){if(p.Cb){var v=p.Zb[d];p.Fb||(v+=n)}else{if(0<d){e.pb[d]=e.pb[0];continue}v=n}var y=e.pb[d];y.Sc[0]=ei[Ye(v+a,127)],y.Sc[1]=ti[Ye(v+0,127)],y.Eb[0]=2*ei[Ye(v+o,127)],y.Eb[1]=101581*ti[Ye(v+l,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=ei[Ye(v+h,117)],y.Qc[1]=ti[Ye(v+c,127)],y.lc=v+c}if(!u.Rb)return Ge(e,4,"Not a key frame.");for(S(s),u=e.Pa,n=0;4>n;++n){for(a=0;8>a;++a)for(o=0;3>o;++o)for(l=0;11>l;++l)h=A(s,ui[n][a][o][l])?m(s,8):ai[n][a][o][l],u.Wc[n][a].Yb[o][l]=h;for(a=0;17>a;++a)u.Xc[n][a]=u.Wc[n][li[a]]}return e.kc=S(s),e.kc&&(e.Bd=m(s,8)),e.cb=1}function Ze(e,t,r,n,i,o,a){var s=t[i].Yb[r];for(r=0;16>i;++i){if(!A(e,s[r+0]))return i;for(;!A(e,s[r+1]);)if(s=t[++i].Yb[0],r=0,16==i)return 16;var u=t[i+1].Yb;if(A(e,s[r+2])){var l=e,c=0;if(A(l,(p=s)[(h=r)+3]))if(A(l,p[h+6])){for(s=0,h=2*(c=A(l,p[h+8]))+(p=A(l,p[h+9+c])),c=0,p=ni[h];p[s];++s)c+=c+A(l,p[s]);c+=3+(8<<h)}else A(l,p[h+7])?(c=7+2*A(l,165),c+=A(l,145)):c=5+A(l,159);else c=A(l,p[h+4])?3+A(l,p[h+5]):2;s=u[2]}else c=1,s=u[1];u=a+ii[i],0>(l=e).b&&C(l);var h,p=l.b,d=(h=l.Ca>>1)-(l.I>>p)>>31;--l.b,l.Ca+=d,l.Ca|=1,l.I-=(h+1&d)<<p,o[u]=((c^d)-d)*n[(0<i)+0]}return 16}function Qe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function Xe(e,t,r,n,i){i=e[t+r+32*n]+(i>>3),e[t+r+32*n]=-256&i?0>i?0:255:i}function et(e,t,r,n,i,o){Xe(e,t,0,r,n+i),Xe(e,t,1,r,n+o),Xe(e,t,2,r,n-o),Xe(e,t,3,r,n-i)}function tt(e){return(20091*e>>16)+e}function rt(e,t,r,n){var i,a=0,s=o(16);for(i=0;4>i;++i){var u=e[t+0]+e[t+8],l=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-tt(e[t+12]),h=tt(e[t+4])+(35468*e[t+12]>>16);s[a+0]=u+h,s[a+1]=l+c,s[a+2]=l-c,s[a+3]=u-h,a+=4,t++}for(i=a=0;4>i;++i)u=(e=s[a+0]+4)+s[a+8],l=e-s[a+8],c=(35468*s[a+4]>>16)-tt(s[a+12]),Xe(r,n,0,0,u+(h=tt(s[a+4])+(35468*s[a+12]>>16))),Xe(r,n,1,0,l+c),Xe(r,n,2,0,l-c),Xe(r,n,3,0,u-h),a++,n+=32}function nt(e,t,r,n){var i=e[t+0]+4,o=35468*e[t+4]>>16,a=tt(e[t+4]),s=35468*e[t+1]>>16;et(r,n,0,i+a,e=tt(e[t+1]),s),et(r,n,1,i+o,e,s),et(r,n,2,i-o,e,s),et(r,n,3,i-a,e,s)}function it(e,t,r,n,i){rt(e,t,r,n),i&&rt(e,t+16,r,n+4)}function ot(e,t,r,n){on(e,t+0,r,n,1),on(e,t+32,r,n+128,1)}function at(e,t,r,n){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)Xe(r,n,t,i,e)}function st(e,t,r,n){e[t+0]&&un(e,t+0,r,n),e[t+16]&&un(e,t+16,r,n+4),e[t+32]&&un(e,t+32,r,n+128),e[t+48]&&un(e,t+48,r,n+128+4)}function ut(e,t,r,n){var i,a=o(16);for(i=0;4>i;++i){var s=e[t+0+i]+e[t+12+i],u=e[t+4+i]+e[t+8+i],l=e[t+4+i]-e[t+8+i],c=e[t+0+i]-e[t+12+i];a[0+i]=s+u,a[8+i]=s-u,a[4+i]=c+l,a[12+i]=c-l}for(i=0;4>i;++i)s=(e=a[0+4*i]+3)+a[3+4*i],u=a[1+4*i]+a[2+4*i],l=a[1+4*i]-a[2+4*i],c=e-a[3+4*i],r[n+0]=s+u>>3,r[n+16]=c+l>>3,r[n+32]=s-u>>3,r[n+48]=c-l>>3,n+=64}function lt(e,t,r){var n,i=t-32,o=Mn,a=255-e[i-1];for(n=0;n<r;++n){var s,u=o,l=a+e[t-1];for(s=0;s<r;++s)e[t+s]=u[l+e[i+s]];t+=32}}function ct(e,t){lt(e,t,4)}function ht(e,t){lt(e,t,8)}function pt(e,t){lt(e,t,16)}function dt(e,t){var r;for(r=0;16>r;++r)n(e,t+32*r,e,t-32,16)}function ft(e,t){var r;for(r=16;0<r;--r)i(e,t,e[t-1],16),t+=32}function mt(e,t,r){var n;for(n=0;16>n;++n)i(t,r+32*n,e,16)}function gt(e,t){var r,n=16;for(r=0;16>r;++r)n+=e[t-1+32*r]+e[t+r-32];mt(n>>5,e,t)}function vt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t-1+32*r];mt(n>>4,e,t)}function yt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t+r-32];mt(n>>4,e,t)}function bt(e,t){mt(128,e,t)}function Dt(e,t,r){return e+2*t+r+2>>2}function wt(e,t){var r,i=t-32;for(i=new Uint8Array([Dt(e[i-1],e[i+0],e[i+1]),Dt(e[i+0],e[i+1],e[i+2]),Dt(e[i+1],e[i+2],e[i+3]),Dt(e[i+2],e[i+3],e[i+4])]),r=0;4>r;++r)n(e,t+32*r,i,0,i.length)}function kt(e,t){var r=e[t-1],n=e[t-1+32],i=e[t-1+64],o=e[t-1+96];E(e,t+0,16843009*Dt(e[t-1-32],r,n)),E(e,t+32,16843009*Dt(r,n,i)),E(e,t+64,16843009*Dt(n,i,o)),E(e,t+96,16843009*Dt(i,o,o))}function _t(e,t){var r,n=4;for(r=0;4>r;++r)n+=e[t+r-32]+e[t-1+32*r];for(n>>=3,r=0;4>r;++r)i(e,t+32*r,n,4)}function xt(e,t){var r=e[t-1+0],n=e[t-1+32],i=e[t-1+64],o=e[t-1-32],a=e[t+0-32],s=e[t+1-32],u=e[t+2-32],l=e[t+3-32];e[t+0+96]=Dt(n,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=Dt(r,n,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=Dt(o,r,n),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=Dt(a,o,r),e[t+3+64]=e[t+2+32]=e[t+1+0]=Dt(s,a,o),e[t+3+32]=e[t+2+0]=Dt(u,s,a),e[t+3+0]=Dt(l,u,s)}function Ft(e,t){var r=e[t+1-32],n=e[t+2-32],i=e[t+3-32],o=e[t+4-32],a=e[t+5-32],s=e[t+6-32],u=e[t+7-32];e[t+0+0]=Dt(e[t+0-32],r,n),e[t+1+0]=e[t+0+32]=Dt(r,n,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=Dt(n,i,o),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=Dt(i,o,a),e[t+3+32]=e[t+2+64]=e[t+1+96]=Dt(o,a,s),e[t+3+64]=e[t+2+96]=Dt(a,s,u),e[t+3+96]=Dt(s,u,u)}function Ct(e,t){var r=e[t-1+0],n=e[t-1+32],i=e[t-1+64],o=e[t-1-32],a=e[t+0-32],s=e[t+1-32],u=e[t+2-32],l=e[t+3-32];e[t+0+0]=e[t+1+64]=o+a+1>>1,e[t+1+0]=e[t+2+64]=a+s+1>>1,e[t+2+0]=e[t+3+64]=s+u+1>>1,e[t+3+0]=u+l+1>>1,e[t+0+96]=Dt(i,n,r),e[t+0+64]=Dt(n,r,o),e[t+0+32]=e[t+1+96]=Dt(r,o,a),e[t+1+32]=e[t+2+96]=Dt(o,a,s),e[t+2+32]=e[t+3+96]=Dt(a,s,u),e[t+3+32]=Dt(s,u,l)}function St(e,t){var r=e[t+0-32],n=e[t+1-32],i=e[t+2-32],o=e[t+3-32],a=e[t+4-32],s=e[t+5-32],u=e[t+6-32],l=e[t+7-32];e[t+0+0]=r+n+1>>1,e[t+1+0]=e[t+0+64]=n+i+1>>1,e[t+2+0]=e[t+1+64]=i+o+1>>1,e[t+3+0]=e[t+2+64]=o+a+1>>1,e[t+0+32]=Dt(r,n,i),e[t+1+32]=e[t+0+96]=Dt(n,i,o),e[t+2+32]=e[t+1+96]=Dt(i,o,a),e[t+3+32]=e[t+2+96]=Dt(o,a,s),e[t+3+64]=Dt(a,s,u),e[t+3+96]=Dt(s,u,l)}function At(e,t){var r=e[t-1+0],n=e[t-1+32],i=e[t-1+64],o=e[t-1+96];e[t+0+0]=r+n+1>>1,e[t+2+0]=e[t+0+32]=n+i+1>>1,e[t+2+32]=e[t+0+64]=i+o+1>>1,e[t+1+0]=Dt(r,n,i),e[t+3+0]=e[t+1+32]=Dt(n,i,o),e[t+3+32]=e[t+1+64]=Dt(i,o,o),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=o}function Et(e,t){var r=e[t-1+0],n=e[t-1+32],i=e[t-1+64],o=e[t-1+96],a=e[t-1-32],s=e[t+0-32],u=e[t+1-32],l=e[t+2-32];e[t+0+0]=e[t+2+32]=r+a+1>>1,e[t+0+32]=e[t+2+64]=n+r+1>>1,e[t+0+64]=e[t+2+96]=i+n+1>>1,e[t+0+96]=o+i+1>>1,e[t+3+0]=Dt(s,u,l),e[t+2+0]=Dt(a,s,u),e[t+1+0]=e[t+3+32]=Dt(r,a,s),e[t+1+32]=e[t+3+64]=Dt(n,r,a),e[t+1+64]=e[t+3+96]=Dt(i,n,r),e[t+1+96]=Dt(o,i,n)}function Nt(e,t){var r;for(r=0;8>r;++r)n(e,t+32*r,e,t-32,8)}function Lt(e,t){var r;for(r=0;8>r;++r)i(e,t,e[t-1],8),t+=32}function Pt(e,t,r){var n;for(n=0;8>n;++n)i(t,r+32*n,e,8)}function Mt(e,t){var r,n=8;for(r=0;8>r;++r)n+=e[t+r-32]+e[t-1+32*r];Pt(n>>4,e,t)}function It(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t+r-32];Pt(n>>3,e,t)}function Tt(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t-1+32*r];Pt(n>>3,e,t)}function Ot(e,t){Pt(128,e,t)}function Bt(e,t,r){var n=e[t-r],i=e[t+0],o=3*(i-n)+Ln[1020+e[t-2*r]-e[t+r]],a=Pn[112+(o+4>>3)];e[t-r]=Mn[255+n+Pn[112+(o+3>>3)]],e[t+0]=Mn[255+i-a]}function jt(e,t,r,n){var i=e[t+0],o=e[t+r];return In[255+e[t-2*r]-e[t-r]]>n||In[255+o-i]>n}function Rt(e,t,r,n){return 4*In[255+e[t-r]-e[t+0]]+In[255+e[t-2*r]-e[t+r]]<=n}function qt(e,t,r,n,i){var o=e[t-3*r],a=e[t-2*r],s=e[t-r],u=e[t+0],l=e[t+r],c=e[t+2*r],h=e[t+3*r];return 4*In[255+s-u]+In[255+a-l]>n?0:In[255+e[t-4*r]-o]<=i&&In[255+o-a]<=i&&In[255+a-s]<=i&&In[255+h-c]<=i&&In[255+c-l]<=i&&In[255+l-u]<=i}function zt(e,t,r,n){var i=2*n+1;for(n=0;16>n;++n)Rt(e,t+n,r,i)&&Bt(e,t+n,r)}function Ut(e,t,r,n){var i=2*n+1;for(n=0;16>n;++n)Rt(e,t+n*r,1,i)&&Bt(e,t+n*r,1)}function Ht(e,t,r,n){var i;for(i=3;0<i;--i)zt(e,t+=4*r,r,n)}function Wt(e,t,r,n){var i;for(i=3;0<i;--i)Ut(e,t+=4,r,n)}function Yt(e,t,r,n,i,o,a,s){for(o=2*o+1;0<i--;){if(qt(e,t,r,o,a))if(jt(e,t,r,s))Bt(e,t,r);else{var u=e,l=t,c=r,h=u[l-2*c],p=u[l-c],d=u[l+0],f=u[l+c],m=u[l+2*c],g=27*(y=Ln[1020+3*(d-p)+Ln[1020+h-f]])+63>>7,v=18*y+63>>7,y=9*y+63>>7;u[l-3*c]=Mn[255+u[l-3*c]+y],u[l-2*c]=Mn[255+h+v],u[l-c]=Mn[255+p+g],u[l+0]=Mn[255+d-g],u[l+c]=Mn[255+f-v],u[l+2*c]=Mn[255+m-y]}t+=n}}function Vt(e,t,r,n,i,o,a,s){for(o=2*o+1;0<i--;){if(qt(e,t,r,o,a))if(jt(e,t,r,s))Bt(e,t,r);else{var u=e,l=t,c=r,h=u[l-c],p=u[l+0],d=u[l+c],f=Pn[112+(4+(m=3*(p-h))>>3)],m=Pn[112+(m+3>>3)],g=f+1>>1;u[l-2*c]=Mn[255+u[l-2*c]+g],u[l-c]=Mn[255+h+m],u[l+0]=Mn[255+p-f],u[l+c]=Mn[255+d-g]}t+=n}}function $t(e,t,r,n,i,o){Yt(e,t,r,1,16,n,i,o)}function Gt(e,t,r,n,i,o){Yt(e,t,1,r,16,n,i,o)}function Kt(e,t,r,n,i,o){var a;for(a=3;0<a;--a)Vt(e,t+=4*r,r,1,16,n,i,o)}function Jt(e,t,r,n,i,o){var a;for(a=3;0<a;--a)Vt(e,t+=4,1,r,16,n,i,o)}function Zt(e,t,r,n,i,o,a,s){Yt(e,t,i,1,8,o,a,s),Yt(r,n,i,1,8,o,a,s)}function Qt(e,t,r,n,i,o,a,s){Yt(e,t,1,i,8,o,a,s),Yt(r,n,1,i,8,o,a,s)}function Xt(e,t,r,n,i,o,a,s){Vt(e,t+4*i,i,1,8,o,a,s),Vt(r,n+4*i,i,1,8,o,a,s)}function er(e,t,r,n,i,o,a,s){Vt(e,t+4,1,i,8,o,a,s),Vt(r,n+4,1,i,8,o,a,s)}function tr(){this.ba=new ae,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ue,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rr(){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 nr(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ir(){this.ua=0,this.Wa=new T,this.vb=new T,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new h}function or(){this.xb=this.a=0,this.l=new Ve,this.ca=new ae,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ir,this.ab=0,this.gc=a(4,nr),this.Oc=0}function ar(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ve,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sr(e,t,r,n,i,o,a){for(e=null==e?0:e[t+0],t=0;t<a;++t)i[o+t]=e+r[n+t]&255,e=i[o+t]}function ur(e,t,r,n,i,o,a){var s;if(null==e)sr(null,null,r,n,i,o,a);else for(s=0;s<a;++s)i[o+s]=e[t+s]+r[n+s]&255}function lr(e,t,r,n,i,o,a){if(null==e)sr(null,null,r,n,i,o,a);else{var s,u=e[t+0],l=u,c=u;for(s=0;s<a;++s)l=c+(u=e[t+s])-l,c=r[n+s]+(-256&l?0>l?0:255:l)&255,l=u,i[o+s]=c}}function cr(e,r,i,a){var s=r.width,u=r.o;if(t(null!=e&&null!=r),0>i||0>=a||i+a>u)return null;if(!e.Cc){if(null==e.ga){var l;if(e.ga=new ar,(l=null==e.ga)||(l=r.width*r.o,t(0==e.Gb.length),e.Gb=o(l),e.Uc=0,null==e.Gb?l=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,l=1),l=!l),!l){l=e.ga;var c=e.Fa,h=e.P,p=e.qc,d=e.mb,f=e.nb,m=h+1,g=p-1,y=l.l;if(t(null!=c&&null!=d&&null!=r),mi[0]=null,mi[1]=sr,mi[2]=ur,mi[3]=lr,l.ca=d,l.tb=f,l.c=r.width,l.i=r.height,t(0<l.c&&0<l.i),1>=p)r=0;else if(l.$a=3&c[h+0],l.Z=c[h+0]>>2&3,l.Lc=c[h+0]>>4&3,h=c[h+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||h)r=0;else if(y.put=de,y.ac=pe,y.bc=fe,y.ma=l,y.width=r.width,y.height=r.height,y.Da=r.Da,y.v=r.v,y.va=r.va,y.j=r.j,y.o=r.o,l.$a)e:{t(1==l.$a),r=Ae();t:for(;;){if(null==r){r=0;break e}if(t(null!=l),l.mc=r,r.c=l.c,r.i=l.i,r.l=l.l,r.l.ma=l,r.l.width=l.c,r.l.height=l.i,r.a=0,v(r.m,c,m,g),!Ee(l.c,l.i,1,r,null))break t;if(1==r.ab&&3==r.gc[0].hc&&_e(r.s)?(l.ic=1,c=r.c*r.i,r.Ta=null,r.Ua=0,r.V=o(c),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(l.ic=0,r=Ne(r,l.c)),!r)break t;r=1;break e}l.mc=null,r=0}else r=g>=l.c*l.i;l=!r}if(l)return null;1!=e.ga.Lc?e.Ga=0:a=u-i}t(null!=e.ga),t(i+a<=u);e:{if(r=(c=e.ga).c,u=c.l.o,0==c.$a){if(m=e.rc,g=e.Vc,y=e.Fa,h=e.P+1+i*r,p=e.mb,d=e.nb+i*r,t(h<=e.P+e.qc),0!=c.Z)for(t(null!=mi[c.Z]),l=0;l<a;++l)mi[c.Z](m,g,y,h,p,d,r),m=p,g=d,d+=r,h+=r;else for(l=0;l<a;++l)n(p,d,y,h,r),m=p,g=d,d+=r,h+=r;e.rc=m,e.Vc=g}else{if(t(null!=c.mc),r=i+a,t(null!=(l=c.mc)),t(r<=l.i),l.C>=r)r=1;else if(c.ic||mr(),c.ic){c=l.V,m=l.Ba,g=l.c;var b=l.i,D=(y=1,h=l.$/g,p=l.$%g,d=l.m,f=l.s,l.$),w=g*b,k=g*r,x=f.wc,C=D<k?De(f,p,h):null;t(D<=w),t(r<=b),t(_e(f));t:for(;;){for(;!d.h&&D<k;){if(p&x||(C=De(f,p,h)),t(null!=C),F(d),256>(b=ye(C.G[0],C.H[0],d)))c[m+D]=b,++D,++p>=g&&(p=0,++h<=r&&!(h%16)&&Fe(l,h));else{if(!(280>b)){y=0;break t}b=ge(b-256,d);var S,A=ye(C.G[4],C.H[4],d);if(F(d),!(D>=(A=ve(g,A=ge(A,d)))&&w-D>=b)){y=0;break t}for(S=0;S<b;++S)c[m+D+S]=c[m+D+S-A];for(D+=b,p+=b;p>=g;)p-=g,++h<=r&&!(h%16)&&Fe(l,h);D<k&&p&x&&(C=De(f,p,h))}t(d.h==_(d))}Fe(l,h>r?r:h);break t}!y||d.h&&D<w?(y=0,l.a=d.h?5:3):l.$=D,r=y}else r=Ce(l,l.V,l.Ba,l.c,l.i,r,Le);if(!r){a=0;break e}}i+a>=u&&(e.Cc=1),a=1}if(!a)return null;if(e.Cc&&(null!=(a=e.ga)&&(a.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+i*s}function hr(e,t,r,n,i,o){for(;0<i--;){var a,s=e,u=t+(r?1:0),l=e,c=t+(r?0:3);for(a=0;a<n;++a){var h=l[c+4*a];255!=h&&(h*=32897,s[u+4*a+0]=s[u+4*a+0]*h>>23,s[u+4*a+1]=s[u+4*a+1]*h>>23,s[u+4*a+2]=s[u+4*a+2]*h>>23)}t+=o}}function pr(e,t,r,n,i){for(;0<n--;){var o;for(o=0;o<r;++o){var a=e[t+2*o+0],s=15&(l=e[t+2*o+1]),u=4369*s,l=(240&l|l>>4)*u>>16;e[t+2*o+0]=(240&a|a>>4)*u>>16&240|(15&a|a<<4)*u>>16>>4&15,e[t+2*o+1]=240&l|s}t+=i}}function dr(e,t,r,n,i,o,a,s){var u,l,c=255;for(l=0;l<i;++l){for(u=0;u<n;++u){var h=e[t+u];o[a+4*u]=h,c&=h}t+=r,a+=s}return 255!=c}function fr(e,t,r,n,i){var o;for(o=0;o<i;++o)r[n+o]=e[t+o]>>8}function mr(){kn=hr,_n=pr,xn=dr,Fn=fr}function gr(r,n,i){e[r]=function(e,r,o,a,s,u,l,c,h,p,d,f,m,g,v,y,b){var D,w=b-1>>1,k=s[u+0]|l[c+0]<<16,_=h[p+0]|d[f+0]<<16;t(null!=e);var x=3*k+_+131074>>2;for(n(e[r+0],255&x,x>>16,m,g),null!=o&&(x=3*_+k+131074>>2,n(o[a+0],255&x,x>>16,v,y)),D=1;D<=w;++D){var F=s[u+D]|l[c+D]<<16,C=h[p+D]|d[f+D]<<16,S=k+F+_+C+524296,A=S+2*(F+_)>>3;x=A+k>>1,k=(S=S+2*(k+C)>>3)+F>>1,n(e[r+2*D-1],255&x,x>>16,m,g+(2*D-1)*i),n(e[r+2*D-0],255&k,k>>16,m,g+(2*D-0)*i),null!=o&&(x=S+_>>1,k=A+C>>1,n(o[a+2*D-1],255&x,x>>16,v,y+(2*D-1)*i),n(o[a+2*D+0],255&k,k>>16,v,y+(2*D+0)*i)),k=F,_=C}1&b||(x=3*k+_+131074>>2,n(e[r+b-1],255&x,x>>16,m,g+(b-1)*i),null!=o&&(x=3*_+k+131074>>2,n(o[a+b-1],255&x,x>>16,v,y+(b-1)*i)))}}function vr(){gi[Tn]=vi,gi[On]=bi,gi[Bn]=yi,gi[jn]=Di,gi[Rn]=wi,gi[qn]=ki,gi[zn]=_i,gi[Un]=bi,gi[Hn]=Di,gi[Wn]=wi,gi[Yn]=ki}function yr(e){return e&~Ei?0>e?0:255:e>>Ai}function br(e,t){return yr((19077*e>>8)+(26149*t>>8)-14234)}function Dr(e,t,r){return yr((19077*e>>8)-(6419*t>>8)-(13320*r>>8)+8708)}function wr(e,t){return yr((19077*e>>8)+(33050*t>>8)-17685)}function kr(e,t,r,n,i){n[i+0]=br(e,r),n[i+1]=Dr(e,t,r),n[i+2]=wr(e,t)}function _r(e,t,r,n,i){n[i+0]=wr(e,t),n[i+1]=Dr(e,t,r),n[i+2]=br(e,r)}function xr(e,t,r,n,i){var o=Dr(e,t,r);t=o<<3&224|wr(e,t)>>3,n[i+0]=248&br(e,r)|o>>5,n[i+1]=t}function Fr(e,t,r,n,i){var o=240&wr(e,t)|15;n[i+0]=240&br(e,r)|Dr(e,t,r)>>4,n[i+1]=o}function Cr(e,t,r,n,i){n[i+0]=255,kr(e,t,r,n,i+1)}function Sr(e,t,r,n,i){_r(e,t,r,n,i),n[i+3]=255}function Ar(e,t,r,n,i){kr(e,t,r,n,i),n[i+3]=255}function Er(t,r,n){e[t]=function(e,t,i,o,a,s,u,l,c){for(var h=l+(-2&c)*n;l!=h;)r(e[t+0],i[o+0],a[s+0],u,l),r(e[t+1],i[o+0],a[s+0],u,l+n),t+=2,++o,++s,l+=2*n;1&c&&r(e[t+0],i[o+0],a[s+0],u,l)}}function Nr(e,t,r){return 0==r?0==e?0==t?6:5:0==t?4:0:r}function Lr(e,t,r,n,i){switch(e>>>30){case 3:on(t,r,n,i,0);break;case 2:an(t,r,n,i);break;case 1:un(t,r,n,i)}}function Pr(e,t){var r,o,a=t.M,s=t.Nb,u=e.oc,l=e.pc+40,c=e.oc,h=e.pc+584,p=e.oc,d=e.pc+600;for(r=0;16>r;++r)u[l+32*r-1]=129;for(r=0;8>r;++r)c[h+32*r-1]=129,p[d+32*r-1]=129;for(0<a?u[l-1-32]=c[h-1-32]=p[d-1-32]=129:(i(u,l-32-1,127,21),i(c,h-32-1,127,9),i(p,d-32-1,127,9)),o=0;o<e.za;++o){var f=t.ya[t.aa+o];if(0<o){for(r=-1;16>r;++r)n(u,l+32*r-4,u,l+32*r+12,4);for(r=-1;8>r;++r)n(c,h+32*r-4,c,h+32*r+4,4),n(p,d+32*r-4,p,d+32*r+4,4)}var m=e.Gd,g=e.Hd+o,v=f.ad,y=f.Hc;if(0<a&&(n(u,l-32,m[g].y,0,16),n(c,h-32,m[g].f,0,8),n(p,d-32,m[g].ea,0,8)),f.Za){var b=u,D=l-32+16;for(0<a&&(o>=e.za-1?i(b,D,m[g].y[15],4):n(b,D,m[g+1].y,0,4)),r=0;4>r;r++)b[D+128+r]=b[D+256+r]=b[D+384+r]=b[D+0+r];for(r=0;16>r;++r,y<<=2)b=u,D=l+Bi[r],hi[f.Ob[r]](b,D),Lr(y,v,16*+r,b,D)}else if(b=Nr(o,a,f.Ob[0]),ci[b](u,l),0!=y)for(r=0;16>r;++r,y<<=2)Lr(y,v,16*+r,u,l+Bi[r]);for(r=f.Gc,b=Nr(o,a,f.Dd),pi[b](c,h),pi[b](p,d),y=v,b=c,D=h,255&(f=0|r)&&(170&f?sn(y,256,b,D):ln(y,256,b,D)),f=p,y=d,255&(r>>=8)&&(170&r?sn(v,320,f,y):ln(v,320,f,y)),a<e.Ub-1&&(n(m[g].y,0,u,l+480,16),n(m[g].f,0,c,h+224,8),n(m[g].ea,0,p,d+224,8)),r=8*s*e.B,m=e.sa,g=e.ta+16*o+16*s*e.R,v=e.qa,f=e.ra+8*o+r,y=e.Ha,b=e.Ia+8*o+r,r=0;16>r;++r)n(m,g+r*e.R,u,l+32*r,16);for(r=0;8>r;++r)n(v,f+r*e.B,c,h+32*r,8),n(y,b+r*e.B,p,d+32*r,8)}}function Mr(e,n,i,o,a,s,u,l,c){var h=[0],p=[0],d=0,f=null!=c?c.kd:0,m=null!=c?c:new rr;if(null==e||12>i)return 7;m.data=e,m.w=n,m.ha=i,n=[n],i=[i],m.gb=[m.gb];e:{var g=n,y=i,b=m.gb;if(t(null!=e),t(null!=y),t(null!=b),b[0]=0,12<=y[0]&&!r(e,g[0],"RIFF")){if(r(e,g[0]+8,"WEBP")){b=3;break e}var D=P(e,g[0]+4);if(12>D||4294967286<D){b=3;break e}if(f&&D>y[0]-8){b=7;break e}b[0]=D,g[0]+=12,y[0]-=12}b=0}if(0!=b)return b;for(D=0<m.gb[0],i=i[0];;){e:{var k=e;y=n,b=i;var _=h,x=p,F=g=[0];if((A=d=[d])[0]=0,8>b[0])b=7;else{if(!r(k,y[0],"VP8X")){if(10!=P(k,y[0]+4)){b=3;break e}if(18>b[0]){b=7;break e}var C=P(k,y[0]+8),S=1+L(k,y[0]+12);if(2147483648<=S*(k=1+L(k,y[0]+15))){b=3;break e}null!=F&&(F[0]=C),null!=_&&(_[0]=S),null!=x&&(x[0]=k),y[0]+=18,b[0]-=18,A[0]=1}b=0}}if(d=d[0],g=g[0],0!=b)return b;if(y=!!(2&g),!D&&d)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=u&&(u[0]=y),null!=l&&(l[0]=0),u=h[0],g=p[0],d&&y&&null==c){b=0;break}if(4>i){b=7;break}if(D&&d||!D&&!d&&!r(e,n[0],"ALPH")){i=[i],m.na=[m.na],m.P=[m.P],m.Sa=[m.Sa];e:{C=e,b=n,D=i;var A=m.gb;_=m.na,x=m.P,F=m.Sa,S=22,t(null!=C),t(null!=D),k=b[0];var E=D[0];for(t(null!=_),t(null!=F),_[0]=null,x[0]=null,F[0]=0;;){if(b[0]=k,D[0]=E,8>E){b=7;break e}var N=P(C,k+4);if(4294967286<N){b=3;break e}var M=8+N+1&-2;if(S+=M,0<A&&S>A){b=3;break e}if(!r(C,k,"VP8 ")||!r(C,k,"VP8L")){b=0;break e}if(E[0]<M){b=7;break e}r(C,k,"ALPH")||(_[0]=C,x[0]=k+8,F[0]=N),k+=M,E-=M}}if(i=i[0],m.na=m.na[0],m.P=m.P[0],m.Sa=m.Sa[0],0!=b)break}i=[i],m.Ja=[m.Ja],m.xa=[m.xa];e:if(A=e,b=n,D=i,_=m.gb[0],x=m.Ja,F=m.xa,C=b[0],k=!r(A,C,"VP8 "),S=!r(A,C,"VP8L"),t(null!=A),t(null!=D),t(null!=x),t(null!=F),8>D[0])b=7;else{if(k||S){if(A=P(A,C+4),12<=_&&A>_-12){b=3;break e}if(f&&A>D[0]-8){b=7;break e}x[0]=A,b[0]+=8,D[0]-=8,F[0]=S}else F[0]=5<=D[0]&&47==A[C+0]&&!(A[C+4]>>5),x[0]=D[0];b=0}if(i=i[0],m.Ja=m.Ja[0],m.xa=m.xa[0],n=n[0],0!=b)break;if(4294967286<m.Ja)return 3;if(null==l||y||(l[0]=m.xa?2:1),u=[u],g=[g],m.xa){if(5>i){b=7;break}l=u,f=g,y=s,null==e||5>i?e=0:5<=i&&47==e[n+0]&&!(e[n+4]>>5)?(D=[0],A=[0],_=[0],v(x=new w,e,n,i),me(x,D,A,_)?(null!=l&&(l[0]=D[0]),null!=f&&(f[0]=A[0]),null!=y&&(y[0]=_[0]),e=1):e=0):e=0}else{if(10>i){b=7;break}l=g,null==e||10>i||!Ke(e,n+3,i-3)?e=0:(f=e[n+0]|e[n+1]<<8|e[n+2]<<16,y=16383&(e[n+7]<<8|e[n+6]),e=16383&(e[n+9]<<8|e[n+8]),1&f||3<(f>>1&7)||!(f>>4&1)||f>>5>=m.Ja||!y||!e?e=0:(u&&(u[0]=y),l&&(l[0]=e),e=1))}if(!e)return 3;if(u=u[0],g=g[0],d&&(h[0]!=u||p[0]!=g))return 3;null!=c&&(c[0]=m,c.offset=n-c.w,t(4294967286>n-c.w),t(c.offset==c.ha-i));break}return 0==b||7==b&&d&&null==c?(null!=s&&(s[0]|=null!=m.na&&0<m.na.length),null!=o&&(o[0]=u),null!=a&&(a[0]=g),0):b}function Ir(e,t,r){var n=t.width,i=t.height,o=0,a=0,s=n,u=i;if(t.Da=null!=e&&0<e.Da,t.Da&&(s=e.cd,u=e.bd,o=e.v,a=e.j,11>r||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=u||o+s>n||a+u>i))return 0;if(t.v=o,t.j=a,t.va=o+s,t.o=a+u,t.U=s,t.T=u,t.da=null!=e&&0<e.da,t.da){if(!O(s,u,r=[e.ib],o=[e.hb]))return 0;t.ib=r[0],t.hb=o[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*n/4&&t.hb<3*i/4,t.Kb=0),1}function Tr(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Or(e,t,r,n){if(null==n||0>=e||0>=t)return 2;if(null!=r){if(r.Da){var i=r.cd,a=r.bd,s=-2&r.v,u=-2&r.j;if(0>s||0>u||0>=i||0>=a||s+i>e||u+a>t)return 2;e=i,t=a}if(r.da){if(!O(e,t,i=[r.ib],a=[r.hb]))return 2;e=i[0],t=a[0]}}n.width=e,n.height=t;e:{var l=n.width,c=n.height;if(e=n.S,0>=l||0>=c||!(e>=Tn&&13>e))e=2;else{if(0>=n.Rd&&null==n.sd){s=a=i=t=0;var h=(u=l*qi[e])*c;if(11>e||(a=(c+1)/2*(t=(l+1)/2),12==e&&(s=(i=l)*c)),null==(c=o(h+2*a+s))){e=1;break e}n.sd=c,11>e?((l=n.f.RGBA).eb=c,l.fb=0,l.A=u,l.size=h):((l=n.f.kb).y=c,l.O=0,l.fa=u,l.Fd=h,l.f=c,l.N=0+h,l.Ab=t,l.Cd=a,l.ea=c,l.W=0+h+a,l.Db=t,l.Ed=a,12==e&&(l.F=c,l.J=0+h+2*a),l.Tc=s,l.lb=i)}if(t=1,i=n.S,a=n.width,s=n.height,i>=Tn&&13>i)if(11>i)e=n.f.RGBA,t&=(u=Math.abs(e.A))*(s-1)+a<=e.size,t&=u>=a*qi[i],t&=null!=e.eb;else{e=n.f.kb,u=(a+1)/2,h=(s+1)/2,l=Math.abs(e.fa),c=Math.abs(e.Ab);var p=Math.abs(e.Db),d=Math.abs(e.lb),f=d*(s-1)+a;t&=l*(s-1)+a<=e.Fd,t&=c*(h-1)+u<=e.Cd,t=(t&=p*(h-1)+u<=e.Ed)&l>=a&c>=u&p>=u,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==i&&(t&=d>=a,t&=f<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=r&&r.fd&&(e=Tr(n)),e}var Br=64,jr=[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],Rr=24,qr=32,zr=8,Ur=[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];R("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,r){return t[r+0]},e.Predictor3=function(e,t,r){return t[r+1]},e.Predictor4=function(e,t,r){return t[r-1]},e.Predictor5=function(e,t,r){return z(z(e,t[r+1]),t[r+0])},e.Predictor6=function(e,t,r){return z(e,t[r-1])},e.Predictor7=function(e,t,r){return z(e,t[r+0])},e.Predictor8=function(e,t,r){return z(t[r-1],t[r+0])},e.Predictor9=function(e,t,r){return z(t[r+0],t[r+1])},e.Predictor10=function(e,t,r){return z(z(e,t[r-1]),z(t[r+0],t[r+1]))},e.Predictor11=function(e,t,r){var n=t[r+0];return 0>=W(n>>24&255,e>>24&255,(t=t[r-1])>>24&255)+W(n>>16&255,e>>16&255,t>>16&255)+W(n>>8&255,e>>8&255,t>>8&255)+W(255&n,255&e,255&t)?n:e},e.Predictor12=function(e,t,r){var n=t[r+0];return(U((e>>24&255)+(n>>24&255)-((t=t[r-1])>>24&255))<<24|U((e>>16&255)+(n>>16&255)-(t>>16&255))<<16|U((e>>8&255)+(n>>8&255)-(t>>8&255))<<8|U((255&e)+(255&n)-(255&t)))>>>0},e.Predictor13=function(e,t,r){var n=t[r-1];return(H((e=z(e,t[r+0]))>>24&255,n>>24&255)<<24|H(e>>16&255,n>>16&255)<<16|H(e>>8&255,n>>8&255)<<8|H(255&e,255&n))>>>0};var Hr=e.PredictorAdd0;e.PredictorAdd1=Y,R("Predictor2","PredictorAdd2"),R("Predictor3","PredictorAdd3"),R("Predictor4","PredictorAdd4"),R("Predictor5","PredictorAdd5"),R("Predictor6","PredictorAdd6"),R("Predictor7","PredictorAdd7"),R("Predictor8","PredictorAdd8"),R("Predictor9","PredictorAdd9"),R("Predictor10","PredictorAdd10"),R("Predictor11","PredictorAdd11"),R("Predictor12","PredictorAdd12"),R("Predictor13","PredictorAdd13");var Wr=e.PredictorAdd2;K("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),K("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var Yr,Vr=e.ColorIndexInverseTransform,$r=e.MapARGB,Gr=e.VP8LColorIndexInverseTransformAlpha,Kr=e.MapAlpha,Jr=e.VP8LPredictorsAdd=[];Jr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zr,Qr,Xr,en,tn,rn,nn,on,an,sn,un,ln,cn,hn,pn,dn,fn,mn,gn,vn,yn,bn,Dn,wn,kn,_n,xn,Fn,Cn=o(511),Sn=o(2041),An=o(225),En=o(767),Nn=0,Ln=Sn,Pn=An,Mn=En,In=Cn,Tn=0,On=1,Bn=2,jn=3,Rn=4,qn=5,zn=6,Un=7,Hn=8,Wn=9,Yn=10,Vn=[2,3,7],$n=[3,3,11],Gn=[280,256,256,256,40],Kn=[0,1,1,1,0],Jn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qn=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Xn=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ti=[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],ri=null,ni=[[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]],ii=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ai=[[[[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]]]],si=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ui=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],li=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ci=[],hi=[],pi=[],di=1,fi=2,mi=[],gi=[];gr("UpsampleRgbLinePair",kr,3),gr("UpsampleBgrLinePair",_r,3),gr("UpsampleRgbaLinePair",Ar,4),gr("UpsampleBgraLinePair",Sr,4),gr("UpsampleArgbLinePair",Cr,4),gr("UpsampleRgba4444LinePair",Fr,2),gr("UpsampleRgb565LinePair",xr,2);var vi=e.UpsampleRgbLinePair,yi=e.UpsampleBgrLinePair,bi=e.UpsampleRgbaLinePair,Di=e.UpsampleBgraLinePair,wi=e.UpsampleArgbLinePair,ki=e.UpsampleRgba4444LinePair,_i=e.UpsampleRgb565LinePair,xi=16,Fi=1<<xi-1,Ci=-227,Si=482,Ai=6,Ei=(256<<Ai)-1,Ni=0,Li=o(256),Pi=o(256),Mi=o(256),Ii=o(256),Ti=o(Si-Ci),Oi=o(Si-Ci);Er("YuvToRgbRow",kr,3),Er("YuvToBgrRow",_r,3),Er("YuvToRgbaRow",Ar,4),Er("YuvToBgraRow",Sr,4),Er("YuvToArgbRow",Cr,4),Er("YuvToRgba4444Row",Fr,2),Er("YuvToRgb565Row",xr,2);var Bi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ji=[0,2,8],Ri=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(e,r,s,u,l){var c=On,h=new tr,p=new ae;h.ba=p,p.S=c,p.width=[p.width],p.height=[p.height];var d=p.width,f=p.height,m=new se;if(null==m||null==e)var g=2;else t(null!=m),g=Mr(e,r,s,m.width,m.height,m.Pd,m.Qd,m.format,null);if(0!=g?d=0:(null!=d&&(d[0]=m.width[0]),null!=f&&(f[0]=m.height[0]),d=1),d){p.width=p.width[0],p.height=p.height[0],null!=u&&(u[0]=p.width),null!=l&&(l[0]=p.height);e:{if(u=new Ve,(l=new rr).data=e,l.w=r,l.ha=s,l.kd=1,r=[0],t(null!=l),(0==(e=Mr(l.data,l.w,l.ha,null,null,null,r,null,l))||7==e)&&r[0]&&(e=4),0==(r=e)){if(t(null!=h),u.data=l.data,u.w=l.w+l.offset,u.ha=l.ha-l.offset,u.put=de,u.ac=pe,u.bc=fe,u.ma=h,l.xa){if(null==(e=Ae())){h=1;break e}if(function(e,r){var n=[0],i=[0],o=[0];t:for(;;){if(null==e)return 0;if(null==r)return e.a=2,0;if(e.l=r,e.a=0,v(e.m,r.data,r.w,r.ha),!me(e.m,n,i,o)){e.a=3;break t}if(e.xb=fi,r.width=n[0],r.height=i[0],!Ee(n[0],i[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,u)){if(u=0==(r=Or(u.width,u.height,h.Oa,h.ba))){t:{u=e;r:for(;;){if(null==u){u=0;break t}if(t(null!=u.s.yc),t(null!=u.s.Ya),t(0<u.s.Wb),t(null!=(s=u.l)),t(null!=(l=s.ma)),0!=u.xb){if(u.ca=l.ba,u.tb=l.tb,t(null!=u.ca),!Ir(l.Oa,s,jn)){u.a=2;break r}if(!Ne(u,s.width))break r;if(s.da)break r;if((s.da||ne(u.ca.S))&&mr(),11>u.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=u.ca.f.kb.F&&mr()),u.Pb&&0<u.s.ua&&null==u.s.vb.X&&!M(u.s.vb,u.s.Wa.Xa)){u.a=1;break r}u.xb=0}if(!Ce(u,u.V,u.Ba,u.c,u.i,s.o,ke))break r;l.Dc=u.Ma,u=1;break t}t(0!=u.a),u=0}u=!u}u&&(r=e.a)}else r=e.a}else{if(null==(e=new $e)){h=1;break e}if(e.Fa=l.na,e.P=l.P,e.qc=l.Sa,Je(e,u)){if(0==(r=Or(u.width,u.height,h.Oa,h.ba))){if(e.Aa=0,s=h.Oa,t(null!=(l=e)),null!=s){if(0<(d=0>(d=s.Md)?0:100<d?255:255*d/100)){for(f=m=0;4>f;++f)12>(g=l.pb[f]).lc&&(g.ia=d*Ri[0>g.lc?0:g.lc]>>3),m|=g.ia;m&&(alert("todo:VP8InitRandom"),l.ia=1)}l.Ga=s.Id,100<l.Ga?l.Ga=100:0>l.Ga&&(l.Ga=0)}(function(e,r){if(null==e)return 0;if(null==r)return Ge(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Je(e,r))return 0;if(t(e.cb),null==r.ac||r.ac(r)){r.ob&&(e.L=0);var s=ji[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=r.v-s>>4,e.zb=r.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=r.o+15+s>>4,e.Hb=r.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var u=e.ed;for(s=0;4>s;++s){var l;if(e.Qa.Cb){var c=e.Qa.Lb[s];e.Qa.Fb||(c+=u.Tb)}else c=u.Tb;for(l=0;1>=l;++l){var h=e.gd[s][l],p=c;if(u.Pc&&(p+=u.vd[0],l&&(p+=u.od[0])),0<(p=0>p?0:63<p?63:p)){var d=p;0<u.wb&&(d=4<u.wb?d>>2:d>>1)>9-u.wb&&(d=9-u.wb),1>d&&(d=1),h.dd=d,h.tc=2*p+d,h.ld=40<=p?2:15<=p?1:0}else h.tc=0;h.La=l}}}s=0}else Ge(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0<e.Aa||(e.Ic=1);t:{s=e.Ic,u=4*(d=e.za);var f=32*d,m=d+1,g=0<e.L?d*(0<e.Aa?2:1):0,v=(2==e.Aa?2:1)*d;if((h=u+832+(l=3*(16*s+ji[e.L])/2*f)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=h)s=0;else{if(h>e.Vb){if(e.Vb=0,e.Ec=o(h),e.Fc=0,null==e.Ec){s=Ge(e,1,"no memory during frame initialization.");break t}e.Vb=h}h=e.Ec,p=e.Fc,e.Ac=h,e.Bc=p,p+=u,e.Gd=a(f,He),e.Hd=0,e.rb=a(m+1,Re),e.sb=1,e.wa=g?a(g,je):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=d),t(!0),e.oc=h,e.pc=p,p+=832,e.ya=a(v,ze),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=d),e.R=16*d,e.B=8*d,d=(f=ji[e.L])*e.R,f=f/2*e.B,e.sa=h,e.ta=p+d,e.qa=e.sa,e.ra=e.ta+16*s*e.R+f,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+f,e.$c=0,p+=l,e.mb=c?h:null,e.nb=c?p:null,t(p+c<=e.Fc+e.Vb),Qe(e),i(e.Ac,e.Bc,0,u),s=1}}if(s){if(r.ka=0,r.y=e.sa,r.O=e.ta,r.f=e.qa,r.N=e.ra,r.ea=e.Ha,r.Vd=e.Ia,r.fa=e.R,r.Rc=e.B,r.F=null,r.J=0,!Nn){for(s=-255;255>=s;++s)Cn[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Sn[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)An[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)En[255+s]=0>s?0:255<s?255:s;Nn=1}nn=ut,on=it,sn=ot,un=at,ln=st,an=nt,cn=$t,hn=Gt,pn=Zt,dn=Qt,fn=Kt,mn=Jt,gn=Xt,vn=er,yn=zt,bn=Ut,Dn=Ht,wn=Wt,hi[0]=_t,hi[1]=ct,hi[2]=wt,hi[3]=kt,hi[4]=xt,hi[5]=Ct,hi[6]=Ft,hi[7]=St,hi[8]=Et,hi[9]=At,ci[0]=gt,ci[1]=pt,ci[2]=dt,ci[3]=ft,ci[4]=vt,ci[5]=yt,ci[6]=bt,pi[0]=Mt,pi[1]=ht,pi[2]=Nt,pi[3]=Lt,pi[4]=Tt,pi[5]=It,pi[6]=Ot,s=1}else s=0}s&&(s=function(e,r){for(e.M=0;e.M<e.Va;++e.M){var a,s=e.Jc[e.M&e.Xb],u=e.m,l=e;for(a=0;a<l.za;++a){var c=u,h=l,p=h.Ac,d=h.Bc+4*a,f=h.zc,m=h.ya[h.aa+a];if(h.Qa.Bb?m.$b=A(c,h.Pa.jb[0])?2+A(c,h.Pa.jb[2]):A(c,h.Pa.jb[1]):m.$b=0,h.kc&&(m.Ad=A(c,h.Bd)),m.Za=!A(c,145)+0,m.Za){var g=m.Ob,v=0;for(h=0;4>h;++h){var y,b=f[0+h];for(y=0;4>y;++y){b=si[p[d+y]][b];for(var D=oi[A(c,b[0])];0<D;)D=oi[2*D+A(c,b[D])];b=-D,p[d+y]=b}n(g,v,p,d,4),v+=4,f[0+h]=b}}else b=A(c,156)?A(c,128)?1:3:A(c,163)?2:0,m.Ob[0]=b,i(p,d,b,4),i(f,0,b,4);m.Dd=A(c,142)?A(c,114)?A(c,183)?1:3:2:0}if(l.m.Ka)return Ge(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(l=s,c=(u=e).rb[u.sb-1],p=u.rb[u.sb+u.ja],a=u.ya[u.aa+u.ja],d=u.kc?a.Ad:0)c.la=p.la=0,a.Za||(c.Na=p.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var w,k;if(c=p,p=l,d=u.Pa.Xc,f=u.ya[u.aa+u.ja],m=u.pb[f.$b],h=f.ad,g=0,v=u.rb[u.sb-1],b=y=0,i(h,g,0,384),f.Za)var _=0,x=d[3];else{D=o(16);var F=c.Na+v.Na;if(F=ri(p,d[1],F,m.Eb,0,D,0),c.Na=v.Na=(0<F)+0,1<F)nn(D,0,h,g);else{var C=D[0]+3>>3;for(D=0;256>D;D+=16)h[g+D]=C}_=1,x=d[0]}var S=15&c.la,E=15&v.la;for(D=0;4>D;++D){var N=1&E;for(C=k=0;4>C;++C)S=S>>1|(N=(F=ri(p,x,F=N+(1&S),m.Sc,_,h,g))>_)<<7,k=k<<2|(3<F?3:1<F?2:0!=h[g+0]),g+=16;S>>=4,E=E>>1|N<<7,y=(y<<8|k)>>>0}for(x=S,_=E>>4,w=0;4>w;w+=2){for(k=0,S=c.la>>4+w,E=v.la>>4+w,D=0;2>D;++D){for(N=1&E,C=0;2>C;++C)F=N+(1&S),S=S>>1|(N=0<(F=ri(p,d[2],F,m.Qc,0,h,g)))<<3,k=k<<2|(3<F?3:1<F?2:0!=h[g+0]),g+=16;S>>=2,E=E>>1|N<<5}b|=k<<4*w,x|=S<<4<<w,_|=(240&E)<<w}c.la=x,v.la=_,f.Hc=y,f.Gc=b,f.ia=43690&b?0:m.ia,d=!(y|b)}if(0<u.L&&(u.wa[u.Y+u.ja]=u.gd[a.$b][a.Za],u.wa[u.Y+u.ja].La|=!d),l.Ka)return Ge(e,7,"Premature end-of-file encountered.")}if(Qe(e),u=r,l=1,a=(s=e).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(a.M=s.M,a.uc=c,Pr(s,a),l=1,a=(k=s.D).Nb,c=(b=ji[s.L])*s.R,p=b/2*s.B,D=16*a*s.R,C=8*a*s.B,d=s.sa,f=s.ta-c+D,m=s.qa,h=s.ra-p+C,g=s.Ha,v=s.Ia-p+C,E=0==(S=k.M),y=S>=s.Va-1,2==s.Aa&&Pr(s,k),k.uc)for(N=(F=s).D.M,t(F.D.uc),k=F.yb;k<F.Hb;++k){_=k,x=N;var L=(P=(z=F).D).Nb;w=z.R;var P=P.wa[P.Y+_],M=z.sa,I=z.ta+16*L*w+16*_,T=P.dd,O=P.tc;if(0!=O)if(t(3<=O),1==z.L)0<_&&bn(M,I,w,O+4),P.La&&wn(M,I,w,O),0<x&&yn(M,I,w,O+4),P.La&&Dn(M,I,w,O);else{var B=z.B,j=z.qa,R=z.ra+8*L*B+8*_,q=z.Ha,z=z.Ia+8*L*B+8*_;L=P.ld,0<_&&(hn(M,I,w,O+4,T,L),dn(j,R,q,z,B,O+4,T,L)),P.La&&(mn(M,I,w,O,T,L),vn(j,R,q,z,B,O,T,L)),0<x&&(cn(M,I,w,O+4,T,L),pn(j,R,q,z,B,O+4,T,L)),P.La&&(fn(M,I,w,O,T,L),gn(j,R,q,z,B,O,T,L))}}if(s.ia&&alert("todo:DitherRow"),null!=u.put){if(k=16*S,S=16*(S+1),E?(u.y=s.sa,u.O=s.ta+D,u.f=s.qa,u.N=s.ra+C,u.ea=s.Ha,u.W=s.Ia+C):(k-=b,u.y=d,u.O=f,u.f=m,u.N=h,u.ea=g,u.W=v),y||(S-=b),S>u.o&&(S=u.o),u.F=null,u.J=null,null!=s.Fa&&0<s.Fa.length&&k<S&&(u.J=cr(s,u,k,S-k),u.F=s.mb,null==u.F&&0==u.F.length)){l=Ge(s,3,"Could not decode alpha data.");break t}k<u.j&&(b=u.j-k,k=u.j,t(!(1&b)),u.O+=s.R*b,u.N+=s.B*(b>>1),u.W+=s.B*(b>>1),null!=u.F&&(u.J+=u.width*b)),k<S&&(u.O+=u.v,u.N+=u.v>>1,u.W+=u.v>>1,null!=u.F&&(u.J+=u.v),u.ka=k-u.j,u.U=u.va-u.v,u.T=S-k,l=u.put(u))}a+1!=s.Ic||y||(n(s.sa,s.ta-c,d,f+16*s.R,c),n(s.qa,s.ra-p,m,h+8*s.B,p),n(s.Ha,s.Ia-p,g,v+8*s.B,p))}if(!l)return Ge(e,6,"Output aborted.")}return 1}(e,r)),null!=r.bc&&r.bc(r),s&=1}return s?(e.cb=0,s):0})(e,u)||(r=e.a)}}else r=e.a}0==r&&null!=h.Oa&&h.Oa.fd&&(r=Tr(h.ba))}h=r}c=0!=h?null:11>c?p.f.RGBA.eb:p.f.kb.y}else c=null;return c};var qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(e,t){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(e[t++]);return r}function c(e,t){return e[t+0]|e[t+1]<<8}function h(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function p(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new u;var d=[0],f=[0],m=[],g=new u,v=e,y=function(e,t){var r={},n=0,i=!1,o=0,a=0;if(r.frames=[],!function(e,t){for(var r=0;r<4;r++)if(e[t+r]!="RIFF".charCodeAt(r))return!0;return!1}(e,t)){for(p(e,t+=4),t+=8;t<e.length;){var s=l(e,t),u=p(e,t+=4);t+=4;var d=u+(1&u);switch(s){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(g=r.frames[n]).src_off=i?a:t-8,g.src_size=o+u+8,n++,i&&(i=!1,o=0,a=0);break;case"VP8X":(g=r.header={}).feature_flags=e[t];var f=t+4;g.canvas_width=1+h(e,f),f+=3,g.canvas_height=1+h(e,f),f+=3;break;case"ALPH":i=!0,o=d+8,a=t-8;break;case"ANIM":(g=r.header).bgcolor=p(e,t),f=t+4,g.loop_count=c(e,f),f+=2;break;case"ANMF":var m,g;(g=r.frames[n]={}).offset_x=2*h(e,t),t+=3,g.offset_y=2*h(e,t),t+=3,g.width=1+h(e,t),t+=3,g.height=1+h(e,t),t+=3,g.duration=h(e,t),t+=3,m=e[t++],g.dispose=1&m,g.blend=m>>1&1}"ANMF"!=s&&(t+=d)}return r}}(v,0);y.response=v,y.rgbaoutput=!0,y.dataurl=!1;var b=y.header?y.header:null,D=y.frames?y.frames:null;if(b){b.loop_counter=b.loop_count,d=[b.canvas_height],f=[b.canvas_width];for(var w=0;w<D.length&&0!=D[w].blend;w++);}var k=D[0],_=g.WebPDecodeRGBA(v,k.src_off,k.src_size,f,d);k.rgba=_,k.imgwidth=f[0],k.imgheight=d[0];for(var x=0;x<f[0]*d[0]*4;x++)m[x]=_[x];return this.width=f,this.height=d,this.data=m,this}function pt(){var e,t=this.internal.__metadata__.metadata,r=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?r:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function dt(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}!function(e){var t,r,i,o,a,s,u,l,h,p=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new l,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new s,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new s,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,r=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,u=this.internal.Rectangle,l=this.internal.Matrix,h=new p}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}}),Object.defineProperty(this,"margin",{get:function(){return h.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),h.margin=t}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(e){a=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var u=[];Object.defineProperty(this,"pageBreaks",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"ctx",{get:function(){return h},set:function(e){e instanceof p&&(h=e)}}),Object.defineProperty(this,"path",{get:function(){return h.path},set:function(e){h.path=e}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=f(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=f(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var c=null,d=null,m=null;Object.defineProperty(this,"fontFaces",{get:function(){return m},set:function(e){c=null,d=null,m=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(e))){var r=t[1];t[2];var n=t[3],i=t[4];t[5];var o=t[6],a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===a?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(e){var t,r,n=[],i=e.trim();if(""===i)return Ke;if(i in je)return[je[i]];for(;""!==i;){switch(r=null,t=(i=qe(i)).charAt(0)){case'"':case"'":r=ze(i.substring(1),t);break;default:r=Ue(i)}if(null===r)return Ke;if(n.push(r[0]),""!==(i=qe(r[1]))&&","!==i.charAt(0))return Ke;i=i.replace(/^,/,"")}return n}(o);if(this.fontFaces){var u=function(e,t){var r=e.getFontList(),n=JSON.stringify(r);if(null===c||d!==n){var i=function(e){var t=[];return Object.keys(e).forEach((function(r){e[r].forEach((function(e){var n=null;switch(e){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:e},t.push(n))}))})),t}(r);c=function(e){for(var t={},r=0;r<e.length;++r){var n=Te(e[r]),i=n.family,o=n.stretch,a=n.style,s=n.weight;t[i]=t[i]||{},t[i][o]=t[i][o]||{},t[i][o][a]=t[i][o][a]||{},t[i][o][a][s]=n}return t}(i.concat(t)),d=n}return c}(this.pdf,this.fontFaces),l=s.map((function(e){return{family:e,stretch:"normal",weight:n,style:r}})),h=function(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Be,r.genericFontFamilies||{}),o=null,a=null,s=0;s<t.length;++s)if(i[(o=Te(t[s])).family]&&(o.family=i[o.family]),e.hasOwnProperty(o.family)){a=e[o.family];break}if(!(a=a||e[n]))throw new Error("Could not find a font-family for the rule '"+Re(o)+"' and default family '"+n+"'.");if(a=function(e,t){if(t[e])return t[e];var r=Pe[e],n=r<=Pe.normal?-1:1,i=Oe(t,Le,r,n);if(!i)throw new Error("Could not find a matching font-stretch value for "+e);return i}(o.stretch,a),a=function(e,t){if(t[e])return t[e];for(var r=Ne[e],n=0;n<r.length;++n)if(t[r[n]])return t[r[n]];throw new Error("Could not find a matching font-style for "+e)}(o.style,a),!(a=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var r=Ie[e],n=Oe(t,Me,r,e<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+e);return n}(o.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Re(o)+"'.");return a}(u,l);this.pdf.setFont(h.ref.name,h.ref.style)}else{var p="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(p="bold"),"italic"===r&&(p+="italic"),0===p.length&&(p="normal");for(var f="",m={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"},g=0;g<s.length;g++){if(void 0!==this.pdf.internal.getFont(s[g],p,{noFallback:!0,disableWarning:!0})){f=s[g];break}if("bolditalic"===p&&void 0!==this.pdf.internal.getFont(s[g],"bold",{noFallback:!0,disableWarning:!0}))f=s[g],p="bold";else if(void 0!==this.pdf.internal.getFont(s[g],"normal",{noFallback:!0,disableWarning:!0})){f=s[g],p="normal";break}}if(""===f)for(var v=0;v<s.length;v++)if(m[s[v]]){f=m[s[v]];break}f=""===f?"Times":f,this.pdf.setFont(f,p)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,q.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,q.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){_.call(this,"fill",!1)},d.prototype.stroke=function(){_.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(e,t)},d.prototype.closePath=function(){var e=new s(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===n(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new s(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new s(r.x,r.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,r,n){if(isNaN(r)||isNaN(n)||isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(r,n)),o=this.ctx.transform.applyToPoint(new s(e,t));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},d.prototype.bezierCurveTo=function(e,t,r,n,i,o){if(isNaN(i)||isNaN(o)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new s(i,o)),u=this.ctx.transform.applyToPoint(new s(e,t)),l=this.ctx.transform.applyToPoint(new s(r,n));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:l.x,y2:l.y,x:a.x,y:a.y}),this.ctx.lastPoint=new s(a.x,a.y)},d.prototype.arc=function(e,t,r,n,i,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i))throw c.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var a=this.ctx.transform.applyToPoint(new s(e,t));e=a.x,t=a.y;var u=this.ctx.transform.applyToPoint(new s(0,r)),l=this.ctx.transform.applyToPoint(new s(0,0));r=Math.sqrt(Math.pow(u.x-l.x,2)+Math.pow(u.y-l.y,2))}Math.abs(i-n)>=2*Math.PI&&(n=0,i=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:n,endAngle:i,counterclockwise:o})},d.prototype.arcTo=function(e,t,r,n,i){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+r,t),this.lineTo(e+r,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,r,n),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(e,t,r,n),this.stroke())},d.prototype.clearRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw c.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,r,n))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new p(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(e){var t,r,n,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,r=0,n=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==o)t=parseInt(o[1]),r=parseInt(o[2]),n=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(o[1]),r=parseInt(o[2]),n=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof e&&"#"!==e.charAt(0)){var a=new m(e);e=a.ok?a.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,r=e.substring(2,3),r+=r,n=e.substring(3,4),n+=n):(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7)),t=parseInt(t,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:t,g:r,b:n,a:i,style:e}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},v=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw c.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!g.call(this)){var i=B(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;L.call(this,{text:e,x:t,y:r,scale:o,angle:i,align:this.textAlign,maxWidth:n})}},d.prototype.strokeText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw c.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){n=isNaN(n)?void 0:n;var i=B(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;L.call(this,{text:e,x:t,y:r,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:n})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw c.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,r=this.pdf.internal.scaleFactor,n=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*n/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:i*=Math.round(96*r/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new l(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.rotate=function(e){if(isNaN(e))throw c.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new l(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw c.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new l(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.transform=function(e,t,r,n,i,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o))throw c.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new l(e,t,r,n,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},d.prototype.setTransform=function(e,t,r,n,i,o){e=isNaN(e)?1:e,t=isNaN(t)?0:t,r=isNaN(r)?0:r,n=isNaN(n)?1:n,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new l(e,t,r,n,i,o)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,r,n,i,o,a,s,c){var h=this.pdf.getImageProperties(e),p=1,d=1,f=1,m=1;void 0!==n&&void 0!==s&&(f=s/n,m=c/i,p=h.width/n*s/n,d=h.height/i*c/i),void 0===o&&(o=t,a=r,t=0,r=0),void 0!==n&&void 0===s&&(s=n,c=i),void 0===n&&void 0===s&&(s=h.width,c=h.height);var g=this.ctx.transform.decompose(),v=B(g.rotate.shx),D=new l,_=(D=(D=(D=D.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToRectangle(new u(o-t*f,a-r*m,n*p,i*d));if(this.autoPaging){for(var F,C=b.call(this,_),S=[],A=0;A<C.length;A+=1)-1===S.indexOf(C[A])&&S.push(C[A]);k(S);for(var E=S[0],N=S[S.length-1],L=E;L<N+1;L++){this.pdf.setPage(L);var P=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],M=1===L?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],T=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],O=1===L?0:I+(L-2)*T;if(0!==this.ctx.clip_path.length){var j=this.path;F=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(F,this.posX+this.margin[3],-O+M+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=j}var R=JSON.parse(JSON.stringify(_));R=w([R],this.posX+this.margin[3],-O+M+this.ctx.prevPageLastElemOffset)[0];var q=(L>E||L<N)&&y.call(this);q&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,T,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",R.x,R.y,R.w,R.h,null,null,v),q&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(e,"JPEG",_.x,_.y,_.w,_.h,null,null,v)};var b=function(e,t,r){var n=[];t=t||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":n.push(Math.floor((e.y+i)/r)+1);break;case"arc":n.push(Math.floor((e.y+i-e.radius)/r)+1),n.push(Math.floor((e.y+i+e.radius)/r)+1);break;case"qct":var o=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);n.push(Math.floor((o.y+i)/r)+1),n.push(Math.floor((o.y+o.h+i)/r)+1);break;case"bct":var a=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);n.push(Math.floor((a.y+i)/r)+1),n.push(Math.floor((a.y+a.h+i)/r)+1);break;case"rect":n.push(Math.floor((e.y+i)/r)+1),n.push(Math.floor((e.y+e.h+i)/r)+1)}for(var s=0;s<n.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<n[s];)D.call(this);return n},D=function(){var e=this.fillStyle,t=this.strokeStyle,r=this.font,n=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=r,this.lineCap=n,this.lineWidth=i,this.lineJoin=o},w=function(e,t,r){for(var n=0;n<e.length;n++)switch(e[n].type){case"bct":e[n].x2+=t,e[n].y2+=r;case"qct":e[n].x1+=t,e[n].y1+=r;default:e[n].x+=t,e[n].y+=r}return e},k=function(e){return e.sort((function(e,t){return e-t}))},_=function(e,t){var r=this.fillStyle,n=this.strokeStyle,i=this.lineCap,o=this.lineWidth,a=Math.abs(o*this.ctx.transform.scaleX),s=this.lineJoin;if(this.autoPaging){for(var u,l,c=JSON.parse(JSON.stringify(this.path)),h=JSON.parse(JSON.stringify(this.path)),p=[],d=0;d<h.length;d++)if(void 0!==h[d].x)for(var f=b.call(this,h[d]),m=0;m<f.length;m+=1)-1===p.indexOf(f[m])&&p.push(f[m]);for(var g=0;g<p.length;g++)for(;this.pdf.internal.getNumberOfPages()<p[g];)D.call(this);k(p);for(var v=p[0],_=p[p.length-1],F=v;F<_+1;F++){this.pdf.setPage(F),this.fillStyle=r,this.strokeStyle=n,this.lineCap=i,this.lineWidth=a,this.lineJoin=s;var C=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=1===F?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],E=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],N=1===F?0:A+(F-2)*E;if(0!==this.ctx.clip_path.length){var L=this.path;u=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(u,this.posX+this.margin[3],-N+S+this.ctx.prevPageLastElemOffset),x.call(this,e,!0),this.path=L}if(l=JSON.parse(JSON.stringify(c)),this.path=w(l,this.posX+this.margin[3],-N+S+this.ctx.prevPageLastElemOffset),!1===t||0===F){var P=(F>v||F<_)&&y.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],C,E,null).clip().discardPath()),x.call(this,e,t),P&&this.pdf.restoreGraphicsState()}this.lineWidth=o}this.path=c}else this.lineWidth=a,x.call(this,e,t),this.lineWidth=o},x=function(e,t){if(("stroke"!==e||t||!v.call(this))&&("stroke"===e||t||!g.call(this))){for(var r,n,i=[],o=this.path,a=0;a<o.length;a++){var s=o[a];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var u=i.length;if(o[a-1]&&!isNaN(o[a-1].x)&&(r=[s.x-o[a-1].x,s.y-o[a-1].y],u>0))for(;u>=0;u--)if(!0!==i[u-1].close&&!0!==i[u-1].begin){i[u-1].deltas.push(r),i[u-1].abs.push(s);break}break;case"bct":r=[s.x1-o[a-1].x,s.y1-o[a-1].y,s.x2-o[a-1].x,s.y2-o[a-1].y,s.x-o[a-1].x,s.y-o[a-1].y],i[i.length-1].deltas.push(r);break;case"qct":var l=o[a-1].x+2/3*(s.x1-o[a-1].x),c=o[a-1].y+2/3*(s.y1-o[a-1].y),h=s.x+2/3*(s.x1-s.x),p=s.y+2/3*(s.y1-s.y),d=s.x,f=s.y;r=[l-o[a-1].x,c-o[a-1].y,h-o[a-1].x,p-o[a-1].y,d-o[a-1].x,f-o[a-1].y],i[i.length-1].deltas.push(r);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}n=t?null:"stroke"===e?"stroke":"fill";for(var m=!1,y=0;y<i.length;y++)if(i[y].arc)for(var b=i[y].abs,D=0;D<b.length;D++){var w=b[D];"arc"===w.type?S.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,t,!m):P.call(this,w.x,w.y),m=!0}else if(!0===i[y].close)this.pdf.internal.out("h"),m=!1;else if(!0!==i[y].begin){var k=i[y].start.x,_=i[y].start.y;M.call(this,i[y].deltas,k,_),m=!0}n&&A.call(this,n),t&&E.call(this)}},F=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-r;case"top":return e+t-r;case"hanging":return e+t-2*r;case"middle":return e+t/2-r;default:return e}},C=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(e,t,r,n,i,o,a,s,u){for(var l=T.call(this,r,n,i,o),c=0;c<l.length;c++){var h=l[c];0===c&&(u?N.call(this,h.x1+e,h.y1+t):P.call(this,h.x1+e,h.y1+t)),I.call(this,e,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?E.call(this):A.call(this,a)},A=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(e,t){this.pdf.internal.out(r(e)+" "+i(t)+" m")},L=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var r,n,i,o=this.pdf.getTextDimensions(e.text),a=F.call(this,e.y),c=C.call(this,a)-o.h,h=this.ctx.transform.applyToPoint(new s(e.x,a));if(this.autoPaging){var p=this.ctx.transform.decompose(),d=new l;d=(d=(d=d.multiply(p.translate)).multiply(p.skew)).multiply(p.scale);for(var f=this.ctx.transform.applyToRectangle(new u(e.x,a,o.w,o.h)),m=d.applyToRectangle(new u(e.x,c,o.w,o.h)),g=b.call(this,m),v=[],D=0;D<g.length;D+=1)-1===v.indexOf(g[D])&&v.push(g[D]);k(v);for(var _=v[0],S=v[v.length-1],A=_;A<S+1;A++){this.pdf.setPage(A);var E=1===A?this.posY+this.margin[0]:this.margin[0],N=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[2],P=L-this.margin[0],M=this.pdf.internal.pageSize.width-this.margin[1],I=M-this.margin[3],T=1===A?0:N+(A-2)*P;if(0!==this.ctx.clip_path.length){var O=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(r,this.posX+this.margin[3],-1*T+E),x.call(this,"fill",!0),this.path=O}var B=w([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-T+E+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale);var j="text"!==this.autoPaging;if(j||B.y+B.h<=L){if(j||B.y>=E&&B.x<=M){var R=j?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||M-B.x)[0],q=w([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-T+E+this.ctx.prevPageLastElemOffset)[0],z=j&&(A>_||A<S)&&y.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,P,null).clip().discardPath()),this.pdf.text(R,q.x,q.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),z&&this.pdf.restoreGraphicsState()}}else B.y<L&&(this.ctx.prevPageLastElemOffset+=L-B.y);e.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)}}else e.scale>=.01&&(n=this.pdf.internal.getFontSize(),this.pdf.setFontSize(n*e.scale),i=this.lineWidth,this.lineWidth=i*e.scale),this.pdf.text(e.text,h.x+this.posX,h.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(n),this.lineWidth=i)},P=function(e,t,n,o){n=n||0,o=o||0,this.pdf.internal.out(r(e+n)+" "+i(t+o)+" l")},M=function(e,t,r){return this.pdf.lines(e,t,r,null,null)},I=function(e,r,n,i,s,u,l,c){this.pdf.internal.out([t(o(n+e)),t(a(i+r)),t(o(s+e)),t(a(u+r)),t(o(l+e)),t(a(c+r)),"c"].join(" "))},T=function(e,t,r,n){for(var i=2*Math.PI,o=Math.PI/2;t>r;)t-=i;var a=Math.abs(r-t);a<i&&n&&(a=i-a);for(var s=[],u=n?-1:1,l=t;a>1e-5;){var c=l+u*Math.min(a,o);s.push(O.call(this,e,l,c)),a-=Math.abs(c-l),l=c}return s},O=function(e,t,r){var n=(r-t)/2,i=e*Math.cos(n),o=e*Math.sin(n),a=i,s=-o,u=a*a+s*s,l=u+a*i+s*o,c=4/3*(Math.sqrt(2*u*l)-l)/(a*o-s*i),h=a-c*s,p=s+c*a,d=h,f=-p,m=n+t,g=Math.cos(m),v=Math.sin(m);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:h*g-p*v,y2:h*v+p*g,x3:d*g-f*v,y3:d*v+f*g,x4:e*Math.cos(r),y4:e*Math.sin(r)}},B=function(e){return 180*e/Math.PI},j=function(e,t,r,n,i,o){var a=e+.5*(r-e),s=t+.5*(n-t),l=i+.5*(r-i),c=o+.5*(n-o),h=Math.min(e,i,a,l),p=Math.max(e,i,a,l),d=Math.min(t,o,s,c),f=Math.max(t,o,s,c);return new u(h,d,p-h,f-d)},R=function(e,t,r,n,i,o,a,s){var l,c,h,p,d,f,m,g,v,y,b,D,w,k,_=r-e,x=n-t,F=i-r,C=o-n,S=a-i,A=s-o;for(c=0;c<41;c++)v=(m=(h=e+(l=c/40)*_)+l*((d=r+l*F)-h))+l*(d+l*(i+l*S-d)-m),y=(g=(p=t+l*x)+l*((f=n+l*C)-p))+l*(f+l*(o+l*A-f)-g),0==c?(b=v,D=y,w=v,k=y):(b=Math.min(b,v),D=Math.min(D,y),w=Math.max(w,v),k=Math.max(k,y));return new u(Math.round(b),Math.round(D),Math.round(w-b),Math.round(k-D))},q=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,r=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==r&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=r)}}}(z.API),function(e){var t=function(e){var t,r,n,i,o,a,s,u,l,c;for(/[^\x00-\xFF]/.test(e),r=[],n=0,i=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;i>n;n+=4)0!==(o=(e.charCodeAt(n)<<24)+(e.charCodeAt(n+1)<<16)+(e.charCodeAt(n+2)<<8)+e.charCodeAt(n+3))?(a=(o=((o=((o=((o=(o-(c=o%85))/85)-(l=o%85))/85)-(u=o%85))/85)-(s=o%85))/85)%85,r.push(a+33,s+33,u+33,l+33,c+33)):r.push(122);return function(e,t){for(var r=t;r>0;r--)e.pop()}(r,t.length),String.fromCharCode.apply(String,r)+"~>"},r=function(e){var t,r,n,i,o,a=String,s="length",u=255,l="charCodeAt",c="slice",h="replace";for(e[c](-2),e=e[c](0,-2)[h](/\s/g,"")[h]("z","!!!!!"),n=[],i=0,o=(e+=t="uuuuu"[c](e[s]%5||5))[s];o>i;i+=5)r=52200625*(e[l](i)-33)+614125*(e[l](i+1)-33)+7225*(e[l](i+2)-33)+85*(e[l](i+3)-33)+(e[l](i+4)-33),n.push(u&r>>24,u&r>>16,u&r>>8,u&r);return function(e,t){for(var r=t;r>0;r--)e.pop()}(n,t[s]),a.fromCharCode.apply(a,n)},n=function(e){return e.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">"},o=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var r="",n=0;n<e.length;n+=2)r+=String.fromCharCode("0x"+(e[n]+e[n+1]));return r},a=function(e){for(var t=new Uint8Array(e.length),r=e.length;r--;)t[r]=e.charCodeAt(r);return(t=(0,i.$)(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,i){var s=0,u=e||"",l=[];for("string"==typeof(i=i||[])&&(i=[i]),s=0;s<i.length;s+=1)switch(i[s]){case"ASCII85Decode":case"/ASCII85Decode":u=r(u),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=t(u),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=o(u),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=n(u),l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=a(u),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+i[s]+'" is not implemented')}return{data:u,reverseChain:l.reverse().join(" ")}}}(z.API),(Ge=z.API).loadFile=function(e,t,r){return function(e,t,r){t=!1!==t,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(e,t,r){var n=new XMLHttpRequest,i=0,o=function(e){var t=e.length,r=[],n=String.fromCharCode;for(i=0;i<t;i+=1)r.push(n(255&e.charCodeAt(i)));return r.join("")};if(n.open("GET",e,!t),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(n.onload=function(){200===n.status?r(o(this.responseText)):r(void 0)}),n.send(null),t&&200===n.status)return o(n.responseText)}(e,t,r)}catch(u){}return n}(e,t,r)},Ge.allowFsRead=void 0,Ge.loadImageFile=Ge.loadFile,function(e){function t(){return(u.html2canvas?Promise.resolve(u.html2canvas):Promise.resolve().then(r.t.bind(r,20354,23))).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function i(){return(u.DOMPurify?Promise.resolve(u.DOMPurify):r.e(9418).then(r.bind(r,99418))).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var o=function(e){var t=n(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},a=function(e,t){var r=document.createElement(e);for(var n in t.className&&(r.className=t.className),t.innerHTML&&t.dompurify&&(r.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)r.style[n]=t.style[n];return r},s=function e(t,r){for(var n=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==r&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(e(i,r));return 1===t.nodeType&&("CANVAS"===t.nodeName?(n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(n.value=t.value),n.addEventListener("load",(function(){n.scrollTop=t.scrollTop,n.scrollLeft=t.scrollLeft}),!0)),n},l=function e(t){var r=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),n=e.convert(Promise.resolve(),r);return(n=n.setProgress(1,e,1,[e])).set(t)};(l.prototype=Object.create(Promise.prototype)).constructor=l,l.convert=function(e,t){return e.__proto__=t||l.prototype,e},l.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},l.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(o(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e),t){case"string":return this.then(i).then((function(t){return this.set({src:a("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},l.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},l.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},l.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,r=this.opt.fontFaces,n="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:n,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=r,r)for(var o=0;o<r.length;++o){var a=r[o],s=a.src.find((function(e){return"truetype"===e.format}));s&&t.addFont(s.url,a.ref.name,a.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t.context2d.save(!0),e(this.prop.container,i)})).then((function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},l.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},l.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},l.prototype.output=function(e,t,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},l.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},l.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){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 "'+e+'" is not supported.'}}))},l.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},l.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},l.prototype.set=function(e){if("object"!==o(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in l.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},l.prototype.get=function(e,t){return this.then((function(){var r=e in l.template.prop?this.prop[e]:this.opt[e];return t?t(r):r}))},l.prototype.setMargin=function(e){return this.then((function(){switch(o(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},l.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||z.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},l.prototype.setProgress=function(e,t,r,n){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},l.prototype.updateProgress=function(e,t,r,n){return this.setProgress(e?this.progress.val+e:null,t||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},l.prototype.then=function(e,t){var r=this;return this.thenCore(e,t,(function(e,t){return r.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return r.updateProgress(null,e),t})).then(e,t).then((function(e){return r.updateProgress(1),e}))}))},l.prototype.thenCore=function(e,t,r){r=r||Promise.prototype.then;var n=this;e&&(e=e.bind(n)),t&&(t=t.bind(n));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?n:l.convert(Object.assign({},n),Promise.prototype),o=r.call(i,e,t);return l.convert(o,n.__proto__)},l.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},l.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},l.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return l.convert(t,this)},l.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},l.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},l.prototype.using=l.prototype.set,l.prototype.saveAs=l.prototype.save,l.prototype.export=l.prototype.output,l.prototype.run=l.prototype.then,z.getPageSize=function(e,t,r){if("object"===n(e)){var i=e;e=i.orientation,t=i.unit||t,r=i.format||r}t=t||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var o,a=(""+r).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+t}var u,l=0,c=0;if(s.hasOwnProperty(a))l=s[a][1]/o,c=s[a][0]/o;else try{l=r[1],c=r[0]}catch(m){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e)e="p",c>l&&(u=c,c=l,l=u);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",l>c&&(u=c,c=l,l=u)}return{width:c,height:l,unit:t,k:o,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Te):null;var r=new l(t);return t.worker?r:r.from(e).doCallback()}}(z.API),z.API.addJS=function(e){var t,r,n=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if("("===n||")"===n){for(var i=0,o=r-1;o>=0&&"\\"===e[o];o--)i++;t+=i%2==0?"\\"+n:n}else t+=n}return t}(e);return this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==t&&void 0!==r&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")})),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var o=n[i],a=r.exec(o);if(null!=a){var s=a[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,l=[];for(i=0;i<u;i++){var c=e.internal.newObject();l.push(c);var h=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+h.objId+" 0 R /XYZ null null null]>> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<l.length;i++)e.internal.write("(page_"+(i+1)+")"+l[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,r){var n={title:t,options:r,children:[]};return null==e&&(e=this.root),e.children.push(n),n},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var r=0;r<t.children.length;r++)this.genIds_r(t.children[r])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<t.children.length;n++){var i=t.children[n];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(t)),n>0&&this.line("/Prev "+this.makeRef(t.children[n-1])),n<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[n+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r<t.children.length;r++)e.count++,this.count_r(e,t.children[r]);return e.count}}])}(z.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,r,n,i,o,a){var s,u=this.decode.DCT_DECODE,l=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=o||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,s=function(e){for(var r,n=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,o={width:0,height:0,numcomponents:1},a=4;a<i;a+=2){if(a+=n,-1!==t.indexOf(e.charCodeAt(a+1))){r=256*e.charCodeAt(a+5)+e.charCodeAt(a+6),o={width:256*e.charCodeAt(a+7)+e.charCodeAt(a+8),height:r,numcomponents:e.charCodeAt(a+9)};break}n=256*e.charCodeAt(a+2)+e.charCodeAt(a+3)}return o}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),s.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}l={data:e,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:u,index:r,alias:n}}return l}}(z.API),z.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var o,u=(0,s.D4)(e,{checkCrc:!0}),l=u.width,c=u.height,h=u.channels,p=u.palette,d=u.depth;o=p&&1===h?function(e){for(var t=e.width,r=e.height,n=e.data,i=e.palette,o=e.depth,s=!1,u=[],l=[],c=void 0,h=!1,p=0,d=0;d<i.length;d++){var f=a(i[d],4),m=f[0],g=f[1],v=f[2],y=f[3];u.push(m,g,v),null!=y&&(0===y?(p++,l.length<1&&l.push(d)):y<255&&(h=!0))}if(h||p>1){s=!0,l=void 0;var b=t*r;c=new Uint8Array(b);for(var D=new DataView(n.buffer),w=0;w<b;w++){var k=a(i[it(D,w,o)],4)[3];c[w]=k}}else 0===p&&(l=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:s?8:void 0,colorBytes:n,alphaBytes:c,needSMask:s,palette:u,mask:l}}(u):2===h||4===h?function(e){for(var t=e.data,r=e.width,n=e.height,i=e.channels,o=e.depth,a=2===i?"DeviceGray":"DeviceRGB",s=i-1,u=r*n,l=s,c=u*l,h=1*u,p=Math.ceil(c*o/8),d=Math.ceil(h*o/8),f=new Uint8Array(p),m=new Uint8Array(d),g=new DataView(t.buffer),v=new DataView(f.buffer),y=new DataView(m.buffer),b=!1,D=0;D<u;D++){for(var w=D*i,k=0;k<l;k++)ot(v,it(g,w+k,o),D*l+k,o);var _=it(g,w+l,o);_<(1<<o)-1&&(b=!0),ot(y,_,1*D,o)}return{colorSpace:a,colorsPerPixel:s,sMaskBitsPerComponent:b?o:void 0,colorBytes:f,alphaBytes:m,needSMask:b}}(u):function(e){var t=e.data,r=1===e.channels?"DeviceGray":"DeviceRGB";return{colorSpace:r,colorsPerPixel:"DeviceGray"===r?1:3,colorBytes:t instanceof Uint16Array?function(e){for(var t=e.length,r=new Uint8Array(2*t),n=new DataView(r.buffer,r.byteOffset,r.byteLength),i=0;i<t;i++)n.setUint16(2*i,e[i],!1);return r}(t):t,needSMask:!1}}(u);var f,m,g,v=o,y=v.colorSpace,b=v.colorsPerPixel,D=v.sMaskBitsPerComponent,w=v.colorBytes,k=v.alphaBytes,_=v.needSMask,x=v.palette,F=v.mask,C=null;return n!==z.API.image_compression.NONE&&"function"==typeof i.$?(C=function(e){var t;switch(e){case z.API.image_compression.FAST:t=11;break;case z.API.image_compression.MEDIUM:t=13;break;case z.API.image_compression.SLOW:t=14;break;default:t=12}return t}(n),f=this.decode.FLATE_DECODE,m="/Predictor ".concat(C," /Colors ").concat(b," /BitsPerComponent ").concat(d," /Columns ").concat(l),e=Je(w,Math.ceil(l*b*d/8),b,d,n),_&&(g=Je(k,Math.ceil(l*D/8),1,D,n))):(f=void 0,m=void 0,e=w,_&&(g=k)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:r,data:e,index:t,filter:f,decodeParameters:m,transparency:F,palette:x,sMask:g,predictor:C,width:l,height:c,bitsPerComponent:d,sMaskBitsPerComponent:D,colorSpace:y}}},function(e){e.processGIF89A=function(t,r,n,i){var o=new st(t),a=o.width,s=o.height,u=[];o.decodeAndBlitFrameRGBA(0,u);var l={data:u,width:a,height:s},c=new lt(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)},e.processGIF87A=e.processGIF89A}(z.API),ct.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 e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ct.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(r){c.log("bit decode error:"+r)}},ct.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var u=this.palette[o>>7-s&1];this.data[a+4*s]=u.blue,this.data[a+4*s+1]=u.green,this.data[a+4*s+2]=u.red,this.data[a+4*s+3]=255}0!==r&&(this.pos+=4-r)}},ct.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),a=n*this.width*4+2*i*4,s=o>>4,u=15&o,l=this.palette[s];if(this.data[a]=l.blue,this.data[a+1]=l.green,this.data[a+2]=l.red,this.data[a+3]=255,2*i+1>=this.width)break;l=this.palette[u],this.data[a+4]=l.blue,this.data[a+4+1]=l.green,this.data[a+4+2]=l.red,this.data[a+4+3]=255}0!==t&&(this.pos+=4-t)}},ct.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+4*n;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==e&&(this.pos+=4-e)}},ct.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&t)/t*255|0,s=(o>>5&t)/t*255|0,u=(o>>10&t)/t*255|0,l=o>>15?255:0,c=n*this.width*4+4*i;this.data[c]=u,this.data[c+1]=s,this.data[c+2]=a,this.data[c+3]=l}this.pos+=e}},ct.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,u=(a>>5&r)/r*255|0,l=(a>>11)/t*255|0,c=i*this.width*4+4*o;this.data[c]=l,this.data[c+1]=u,this.data[c+2]=s,this.data[c+3]=255}this.pos+=e}},ct.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=n,this.data[a+3]=255}this.pos+=this.width%4}},ct.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=a}},ct.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,i){var o=new ct(t,!1),a=o.width,s=o.height,u={data:o.getData(),width:a,height:s},l=new lt(100).encode(u,100);return e.processJPEG.call(this,l,r,n,i)}}(z.API),ht.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,i){var o=new ht(t),a=o.width,s=o.height,u={data:o.getData(),width:a,height:s},l=new lt(100).encode(u,100);return e.processJPEG.call(this,l,r,n,i)}}(z.API),z.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,o=new Uint8Array(i/4*3),a=new Uint8Array(i/4),s=0,u=0,l=0;l<i;l+=4){var c=n[l],h=n[l+1],p=n[l+2],d=n[l+3];o[s++]=c,o[s++]=h,o[s++]=p,a[u++]=d}var f=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:f,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},z.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!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},He=z.API,We=He.getCharWidthsArray=function(e,t){var r,i,o=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),u=t.widths?t.widths:o.metadata.Unicode.widths,l=u.fof?u.fof:1,c=t.kerning?t.kerning:o.metadata.Unicode.kerning,h=c.fof?c.fof:1,p=!1!==t.doKerning,d=0,f=e.length,m=0,g=u[0]||l,v=[];for(r=0;r<f;r++)i=e.charCodeAt(r),"function"==typeof o.metadata.widthOfString?v.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):(d=p&&"object"===n(c[i])&&!isNaN(parseInt(c[i][m],10))?c[i][m]/h:0,v.push((u[i]||g)/l+d)),m=i;return v},Ye=He.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return He.processArabic&&(e=He.processArabic(e)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(e,r,i)/r:We.apply(this,arguments).reduce((function(e,t){return e+t}),0)},Ve=function(e,t,r,n){for(var i=[],o=0,a=e.length,s=0;o!==a&&s+t[o]<r;)s+=t[o],o++;i.push(e.slice(0,o));var u=o;for(s=0;o!==a;)s+t[o]>n&&(i.push(e.slice(u,o)),s=0,u=o),s+=t[o],o++;return u!==o&&i.push(e.slice(u,o)),i},$e=function(e,t,r){r||(r={});var n,i,o,a,s,u,l,c=[],h=[c],p=r.textIndent||0,d=0,f=0,m=e.split(" "),g=We.apply(this,[" ",r])[0];if(u=-1===r.lineIndent?m[0].length+2:r.lineIndent||0){var v=Array(u).join(" "),y=[];m.map((function(e){(e=e.split(/\s*\n/)).length>1?y=y.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):y.push(e[0])})),m=y,u=Ye.apply(this,[v,r])}for(o=0,a=m.length;o<a;o++){var b=0;if(n=m[o],u&&"\n"==n[0]&&(n=n.substr(1),b=1),p+d+(f=(i=We.apply(this,[n,r])).reduce((function(e,t){return e+t}),0))>t||b){if(f>t){for(s=Ve.apply(this,[n,i,t-(p+d),t]),c.push(s.shift()),c=[s.pop()];s.length;)h.push([s.shift()]);f=i.slice(n.length-(c[0]?c[0].length:0)).reduce((function(e,t){return e+t}),0)}else c=[n];h.push(c),p=f+u,d=g}else c.push(n),p+=d+f,d=g}return l=u?function(e,t){return(t?v:"")+e.join(" ")}:function(e){return e.join(" ")},h.map(l)},He.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),o=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),r="Unicode";return t.metadata[r]?{widths:t.metadata[r].widths||{0:1},kerning:t.metadata[r].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*t/i;o.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=r.lineIndent;var s,u,l=[];for(s=0,u=n.length;s<u;s++)l=l.concat($e.apply(this,[n[s],a,o]));return l},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",i={},o={},a=0;a<16;a++)i[r[a]]=t[a],o[t[a]]=r[a];var s=function(e){return"0x"+parseInt(e,10).toString(16)},u=e.__fontmetrics__.compress=function(e){var t,r,i,a,l=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?r="'"+c+"'":(c=parseInt(c,10),r=(r=s(c).slice(2)).slice(0,-1)+o[r.slice(-1)]),"number"==typeof t)t<0?(i=s(t).slice(3),a="-"):(i=s(t).slice(2),a=""),i=a+i.slice(0,-1)+o[i.slice(-1)];else{if("object"!==n(t))throw new Error("Don't know what to do with value type "+n(t)+".");i=u(t)}l.push(r+i)}return l.push("}"),l.join("")},l=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,r,n,o,a={},s=1,u=a,l=[],c="",h="",p=e.length-1,d=1;d<p;d+=1)"'"==(o=e[d])?t?(n=t.join(""),t=void 0):t=[]:t?t.push(o):"{"==o?(l.push([u,n]),u={},n=void 0):"}"==o?((r=l.pop())[0][r[1]]=u,n=void 0,u=r[0]):"-"==o?s=-1:void 0===n?i.hasOwnProperty(o)?(c+=i[o],n=parseInt(c,16)*s,s=1,c=""):c+=o:i.hasOwnProperty(o)?(h+=i[o],u[n]=parseInt(h,16)*s,s=1,n=void 0,h=""):h+=o;return a},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},h={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},p={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'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":l("{'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:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'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:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'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":l("{'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:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'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":l("{'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":l("{'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}}}")}};e.events.push(["addFont",function(e){var t=e.font,r=p.Unicode[t.postScriptName];r&&(t.metadata.Unicode={},t.metadata.Unicode.widths=r.widths,t.metadata.Unicode.kerning=r.kerning);var n=h.Unicode[t.postScriptName];n&&(t.metadata.Unicode.encoding=n,t.encoding=n.codePages[0])}])}(z.API),function(e){var t=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,o=r.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(n=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?t(n):t(g(n)),r.metadata=e.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(i,n)}}])}(z),z.API.addSvgAsImage=function(e,t,n,i,o,a,s,l){if(isNaN(t)||isNaN(n))throw c.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw c.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var h=document.createElement("canvas");h.width=i,h.height=o;var p=h.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,h.width,h.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(u.canvg?Promise.resolve(u.canvg):r.e(399).then(r.bind(r,40399))).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e})).then((function(t){return t.fromString(p,e,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(d)})).then((function(){f.addImage(h.toDataURL("image/jpeg",1),t,n,i,o,s,l)}))},z.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},z.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var i,o,a,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},u=Object.keys(s),l=[],c=0,h=0,p=0;function d(e,t){var r,n=!1;for(r=0;r<e.length;r+=1)e[r]===t&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var f=u.length;for(p=0;p<f;p+=1)r[u[p]].value=r[u[p]].defaultValue,r[u[p]].explicitSet=!1}if("object"===n(e))for(o in e)if(a=e[o],d(u,o)&&void 0!==a){if("boolean"===r[o].type&&"boolean"==typeof a)r[o].value=a;else if("name"===r[o].type&&d(r[o].valueSet,a))r[o].value=a;else if("integer"===r[o].type&&Number.isInteger(a))r[o].value=a;else if("array"===r[o].type){for(c=0;c<a.length;c+=1)if(i=!0,1===a[c].length&&"number"==typeof a[c][0])l.push(String(a[c]-1));else if(a[c].length>1){for(h=0;h<a[c].length;h+=1)"number"!=typeof a[c][h]&&(i=!1);!0===i&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}r[o].value="["+l.join(" ")+"]"}else r[o].value=r[o].defaultValue;r[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in r)!0===r[e].explicitSet&&("name"===r[e].type?t.push("/"+e+" /"+r[e].value):t.push("/"+e+" "+r[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},z.API.addMetadata=function(e,t){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceUri:null!=t?t:"http://jspdf.default.namespaceuri/",rawXml:"boolean"==typeof t&&t},this.internal.events.subscribe("putCatalog",dt),this.internal.events.subscribe("postPutResources",pt)),this},function(e){var t=e.API,r=t.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=e.length;a<s;++a){if(r=t.metadata.characterToGlyph(e.charCodeAt(a)),t.metadata.glyIdsUsed.push(r),t.metadata.toUnicode[r]=e.charCodeAt(a),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(t.metadata.widthOfGlyph(r),10)])),"0"==r)return o.join("");r=r.toString(16),o.push(i[4-r.length],r)}return o.join("")},n=function(e){var t,r,n,i,o,a,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],a=0,s=(r=Object.keys(e).sort((function(e,t){return e-t}))).length;a<s;a++)t=r[a],n.length>=100&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(i=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),n.push("<"+t+"><"+i+">"));return n.length&&(o+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var r=t.font,i=t.out,o=t.newObject,a=t.putStream;if(r.metadata instanceof e.API.TTFFont&&"Identity-H"===r.encoding){for(var s=r.metadata.Unicode.widths,u=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),l="",c=0;c<u.length;c++)l+=String.fromCharCode(u[c]);var h=o();a({data:l,addLength1:!0,objectId:h}),i("endobj");var p=o();a({data:n(r.metadata.toUnicode),addLength1:!0,objectId:p}),i("endobj");var d=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+T(r.fontName)),i("/FontFile2 "+h+" 0 R"),i("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),i("/Flags "+r.metadata.flags),i("/StemV "+r.metadata.stemV),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i(">>"),i("endobj");var f=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+T(r.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+e.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+r.encoding+")"),i(">>"),i(">>"),i("endobj"),r.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+p+" 0 R"),i("/BaseFont /"+T(r.fontName)),i("/Encoding /"+r.encoding),i("/DescendantFonts ["+f+" 0 R]"),i(">>"),i("endobj"),r.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var r=t.font,i=t.out,o=t.newObject,a=t.putStream;if(r.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var s=r.metadata.rawData,u="",l=0;l<s.length;l++)u+=String.fromCharCode(s[l]);var c=o();a({data:u,addLength1:!0,objectId:c}),i("endobj");var h=o();a({data:n(r.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var p=o();i("<<"),i("/Descent "+r.metadata.decender),i("/CapHeight "+r.metadata.capHeight),i("/StemV "+r.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),i("/FontName /"+T(r.fontName)),i("/ItalicAngle "+r.metadata.italicAngle),i("/Ascent "+r.metadata.ascender),i(">>"),i("endobj"),r.objectNumber=o();for(var d=0;d<r.metadata.hmtx.widths.length;d++)r.metadata.hmtx.widths[d]=parseInt(r.metadata.hmtx.widths[d]*(1e3/r.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+h+" 0 R/BaseFont/"+T(r.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),i("endobj"),r.isAlreadyPutted=!0}}(t)}]);var i=function(e){var t,n=e.text||"",i=e.x,o=e.y,a=e.options||{},s=e.mutex||{},u=s.pdfEscape,l=s.activeFontKey,c=s.fonts,h=l,p="",d=0,f="",m=c[h].encoding;if("Identity-H"!==c[h].encoding)return{text:n,x:i,y:o,options:a,mutex:s};for(f=n,h=l,Array.isArray(n)&&(f=n[0]),d=0;d<f.length;d+=1)c[h].metadata.hasOwnProperty("cmap")&&(t=c[h].metadata.cmap.unicode.codeMap[f[d].charCodeAt(0)]),t||f[d].charCodeAt(0)<256&&c[h].metadata.hasOwnProperty("Unicode")?p+=f[d]:p+="";var g="";return parseInt(h.slice(1))<14||"WinAnsiEncoding"===m?g=u(p,h).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===m&&(g=r(p,c[h])),s.isHex=!0,{text:g,x:i,y:o,options:a,mutex:s}};t.events.push(["postProcessText",function(e){var t=e.text||"",r=[],n={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var o=0;for(o=0;o<t.length;o+=1)Array.isArray(t[o])&&3===t[o].length?r.push([i(Object.assign({},n,{text:t[o][0]})).text,t[o][1],t[o][2]]):r.push(i(Object.assign({},n,{text:t[o]})).text);e.text=r}else e.text=i(Object.assign({},n,{text:t})).text}])}(z),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(z.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var r,n,i,o,a,s,u,l=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],p={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},f=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],m=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)$/),g=!1,v=0;this.__bidiEngine__={};var y=function(e){var t=e.charCodeAt(),r=t>>8,n=d[r];return void 0!==n?l[256*n+(255&t)]:252===r||253===r?"AL":m.test(r)?"L":8===r?"R":"N"},b=function(e){for(var t,r=0;r<e.length;r++){if("L"===(t=y(e.charAt(r))))return!1;if("R"===t)return!0}return!1},D=function(e,t,a,s){var u,l,c,h,p=t[s];switch(p){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"N":case"AN":break;case"EN":g&&(p="AN");break;case"AL":g=!0,p="R";break;case"WS":case"BN":p="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(u=a[s-1])&&"AN"!==u||"EN"!==(l=t[s+1])&&"AN"!==l?p="N":g&&(l="AN"),p=l===u?l:"N";break;case"ES":p="EN"===(u=s>0?a[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){p="EN";break}if(g){p="N";break}for(c=s+1,h=t.length;c<h&&"ET"===t[c];)c++;p=c<h&&"EN"===t[c]?"EN":"N";break;case"NSM":if(i&&!o){for(h=t.length,c=s+1;c<h&&"NSM"===t[c];)c++;if(c<h){var d=e[s],f=d>=1425&&d<=2303||64286===d;if(u=t[c],f&&("R"===u||"AL"===u)){p="R";break}}}p=s<1||"B"===(u=t[s-1])?"N":a[s-1];break;case"B":g=!1,r=!0,p=v;break;case"S":n=!0,p="N"}return p},w=function(e,t,r){var n=e.split("");return r&&k(n,r,{hiLevel:v}),n.reverse(),t&&t.reverse(),n.join("")},k=function(e,t,i){var o,a,s,u,l,d=-1,f=e.length,m=0,b=[],w=v?h:c,k=[];for(g=!1,r=!1,n=!1,a=0;a<f;a++)k[a]=y(e[a]);for(s=0;s<f;s++){if(l=m,b[s]=D(e,k,b,s),o=240&(m=w[l][p[b[s]]]),m&=15,t[s]=u=w[m][5],o>0)if(16===o){for(a=d;a<s;a++)t[a]=1;d=-1}else d=-1;if(w[m][6])-1===d&&(d=s);else if(d>-1){for(a=d;a<s;a++)t[a]=u;d=-1}"B"===k[s]&&(t[s]=0),i.hiLevel|=u}n&&function(e,t,r){for(var n=0;n<r;n++)if("S"===e[n]){t[n]=v;for(var i=n-1;i>=0&&"WS"===e[i];i--)t[i]=v}}(k,t,f)},_=function(e,t,n,i,o){if(!(o.hiLevel<e)){if(1===e&&1===v&&!r)return t.reverse(),void(n&&n.reverse());for(var a,s,u,l,c=t.length,h=0;h<c;){if(i[h]>=e){for(u=h+1;u<c&&i[u]>=e;)u++;for(l=h,s=u-1;l<s;l++,s--)a=t[l],t[l]=t[s],t[s]=a,n&&(a=n[l],n[l]=n[s],n[s]=a);h=u}h++}}},x=function(e,t,r){var n=e.split(""),i={hiLevel:v};return r||(r=[]),k(n,r,i),function(e,t,r){if(0!==r.hiLevel&&u)for(var n,i=0;i<e.length;i++)1===t[i]&&(n=f.indexOf(e[i]))>=0&&(e[i]=f[n+1])}(n,r,i),_(2,n,t,r,i),_(1,n,t,r,i),n.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,r){if(function(e,t){if(t)for(var r=0;r<e.length;r++)t[r]=r;void 0===o&&(o=b(e)),void 0===s&&(s=b(e))}(e,t),i||!a||s)if(i&&a&&o^s)v=o?1:0,e=w(e,t,r);else if(!i&&a&&s)v=o?1:0,e=x(e,t,r),e=w(e,t);else if(!i||o||a||s){if(i&&!a&&o^s)e=w(e,t),o?(v=0,e=x(e,t,r)):(v=1,e=x(e,t,r),e=w(e,t));else if(i&&o&&!a&&s)v=1,e=x(e,t,r),e=w(e,t);else if(!i&&!a&&o^s){var n=u;o?(v=1,e=x(e,t,r),v=0,u=!1,e=x(e,t,r),u=n):(v=0,e=x(e,t,r),e=w(e,t),v=1,u=!1,e=x(e,t,r),u=n,e=w(e,t))}}else v=0,e=x(e,t,r);else v=o?1:0,e=x(e,t,r);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,a=e.isOutputVisual,o=e.isInputRtl,s=e.isOutputRtl,u=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text;e.x,e.y;var n=e.options||{};e.mutex,n.lang;var i=[];if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(t)){var o=0;for(i=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?i.push([r.doBidiReorder(t[o][0]),t[o][1],t[o][2]]):i.push([r.doBidiReorder(t[o])]);e.text=i}else e.text=r.doBidiReorder(t);r.setOptions({isInputVisual:!0})}])}(z),z.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new mt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new It(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new gt(this.contents),this.head=new bt(this),this.name=new Ct(this),this.cmap=new wt(this),this.toUnicode={},this.hhea=new kt(this),this.maxp=new St(this),this.hmtx=new At(this),this.post=new xt(this),this.os2=new _t(this),this.loca=new Mt(this),this.glyf=new Nt(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]},e.prototype.registerTTF=function(){var e,t,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,r,n,i;for(i=[],t=0,r=(n=this.bbox).length;t<r;t++)e=n[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(t=n>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,r){var n,i,o,a;for(o=0,i=0,a=(e=""+e).length;0<=a?i<a:i>a;i=0<=a?++i:--i)n=e.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){var r;return null==t&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},e}();var ft,mt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(e){var t,r,n;for(n=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(e.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,r,n,i,o,a,s;return e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*n+16777216*i+65536*o+256*a+s},e.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(e){var t,r,n,i;for(i=[],r=0,n=e.length;r<n;r++)t=e[r],i.push(this.writeByte(t));return i},e}(),gt=function(){var e;function t(e){var t,r,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var r,n,i,o,a,s,u,l,c,h,p,d,f;for(f in p=Object.keys(t).length,s=Math.log(2),c=16*Math.floor(Math.log(p)/s),o=Math.floor(c/s),l=16*p-c,(n=new mt).writeInt(this.scalarType),n.writeShort(p),n.writeShort(c),n.writeShort(o),n.writeShort(l),i=16*p,u=n.pos+i,a=null,d=[],t)for(h=t[f],n.writeString(f),n.writeInt(e(h)),n.writeInt(u),n.writeInt(h.length),d=d.concat(h),"head"===f&&(a=u),u+=h.length;u%4;)d.push(0),u++;return n.write(d),r=2981146554-e(n.data),n.pos=a+8,n.writeUInt32(r),n.data},e=function(e){var t,r,n,i;for(e=Et.call(e);e.length%4;)e.push(0);for(n=new mt(e),r=0,t=0,i=e.length;t<i;t=t+=4)r+=n.readUInt32();return 4294967295&r},t}(),vt={}.hasOwnProperty,yt=function(e,t){for(var r in t)vt.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};ft=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var bt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new mt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),Dt=function(){function e(e,t){var r,n,i,o,a,s,u,l,c,h,p,d,f,m,g,v,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(p=e.readUInt16(),h=p/2,e.pos+=6,i=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),e.pos+=2,f=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),u=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),l=function(){var t,r;for(r=[],s=t=0;0<=h?t<h:t>h;s=0<=h?++t:--t)r.push(e.readUInt16());return r}(),n=(this.length-e.pos+this.offset)/2,a=function(){var t,r;for(r=[],s=t=0;0<=n?t<n:t>n;s=0<=n?++t:--t)r.push(e.readUInt16());return r}(),s=g=0,y=i.length;g<y;s=++g)for(m=i[s],r=v=d=f[s];d<=m?v<=m:v>=m;r=d<=m?++v:--v)0===l[s]?o=r+u[s]:0!==(o=a[l[s]/2+(r-d)-(h-s)]||0)&&(o+=u[s]),this.codeMap[r]=65535&o}e.pos=c}return e.encode=function(e,t){var r,n,i,o,a,s,u,l,c,h,p,d,f,m,g,v,y,b,D,w,k,_,x,F,C,S,A,E,N,L,P,M,I,T,O,B,j,R,q,z,U,H,W,Y,V,$;switch(E=new mt,o=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(f=0,m=function(){var e=[];for(d=0;d<256;++d)e.push(0);return e}(),v={0:0},i={},N=0,I=o.length;N<I;N++)null==v[W=e[n=o[N]]]&&(v[W]=++f),i[n]={old:e[n],new:v[e[n]]},m[n]=v[e[n]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(m),{charMap:i,subtable:E.data,maxGlyphID:f+1};case"unicode":for(S=[],c=[],y=0,v={},r={},g=u=null,L=0,T=o.length;L<T;L++)null==v[D=e[n=o[L]]]&&(v[D]=++y),r[n]={old:D,new:v[D]},a=v[D]-n,null!=g&&a===u||(g&&c.push(g),S.push(n),u=a),g=n;for(g&&c.push(g),c.push(65535),S.push(65535),F=2*(x=S.length),_=2*Math.pow(Math.log(x)/Math.LN2,2),h=Math.log(_/2)/Math.LN2,k=2*x-_,s=[],w=[],p=[],d=P=0,O=S.length;P<O;d=++P){if(C=S[d],l=c[d],65535===C){s.push(0),w.push(0);break}if(C-(A=r[C].new)>=32768)for(s.push(0),w.push(2*(p.length+x-d)),n=M=C;C<=l?M<=l:M>=l;n=C<=l?++M:--M)p.push(r[n].new);else s.push(A-C),w.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*x+2*p.length),E.writeUInt16(0),E.writeUInt16(F),E.writeUInt16(_),E.writeUInt16(h),E.writeUInt16(k),U=0,B=c.length;U<B;U++)n=c[U],E.writeUInt16(n);for(E.writeUInt16(0),H=0,j=S.length;H<j;H++)n=S[H],E.writeUInt16(n);for(Y=0,R=s.length;Y<R;Y++)a=s[Y],E.writeUInt16(a);for(V=0,q=w.length;V<q;V++)b=w[V],E.writeUInt16(b);for($=0,z=p.length;$<z;$++)f=p[$],E.writeUInt16(f);return{charMap:r,subtable:E.data,maxGlyphID:y+1}}},e}(),wt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t=new Dt(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var r,n;return null==t&&(t="macroman"),r=Dt.encode(e,t),(n=new mt).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},e}(),kt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),_t=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r}(),this.charRange=function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),xt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="post",e.prototype.parse=function(e){var t,r,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)t=e.readByte(),n.push(this.names.push(e.readString(t)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=function(){var t,r,n;for(n=[],i=t=0,r=this.file.maxp.numGlyphs;0<=r?t<r:t>r;i=0<=r?++t:--t)n.push(e.readUInt32());return n}.call(this)}},e}(),Ft=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},Ct=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="name",e.prototype.parse=function(e){var t,r,n,i,o,a,s,u,l,c,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),a=e.readShort(),r=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(s={},i=l=0,c=r.length;l<c;i=++l)n=r[i],e.pos=n.offset,u=e.readString(n.length),o=new Ft(u,n),null==s[h=n.nameID]&&(s[h]=[]),s[n.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(g){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),St=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),At=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,r,n,i,o,a,s;for(e.pos=this.offset,this.metrics=[],t=0,a=this.file.hhea.numberOfMetrics;0<=a?t<a:t>a;t=0<=a?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,i;for(i=[],t=r=0;0<=n?r<n:r>n;t=0<=n?++r:--r)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.metrics).length;e<t;e++)i=r[e],n.push(i.advance);return n}.call(this),r=this.widths[this.widths.length-1],s=[],t=o=0;0<=n?o<n:o>n;t=0<=n?++o:--o)s.push(this.widths.push(r));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),Et=[].slice,Nt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,r,n,i,o,a,s,u,l,c;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,r=i.indexOf(e),0===(n=i.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+r,o=(a=new mt(t.read(n))).readShort(),u=a.readShort(),c=a.readShort(),s=a.readShort(),l=a.readShort(),this.cache[e]=-1===o?new Pt(a,u,c,s,l):new Lt(a,o,u,c,s,l),this.cache[e]))},e.prototype.encode=function(e,t,r){var n,i,o,a,s;for(o=[],i=[],a=0,s=t.length;a<s;a++)n=e[t[a]],i.push(o.length),n&&(o=o.concat(n.encode(r)));return i.push(o.length),{table:o,offsets:i}},e}(),Lt=function(){function e(e,t,r,n,i,o){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),Pt=function(){function e(e,t,r,n,i){var o,a;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return e.prototype.encode=function(){var e,t,r;for(t=new mt(Et.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),Mt=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return yt(e,ft),e.prototype.tag="loca",e.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=2)n.push(2*e.readUInt16());return n}.call(this):function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=4)n.push(e.readUInt32());return n}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,o=0;o<r.length;++o)if(r[o]=n,i<t.length&&t[i]==o){++i,r[o]=n;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(n+=s)}for(var u=new Array(4*r.length),l=0;l<r.length;++l)u[4*l+3]=255&r[l],u[4*l+2]=(65280&r[l])>>8,u[4*l+1]=(16711680&r[l])>>16,u[4*l]=(4278190080&r[l])>>24;return u},e}(),It=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,r,n,i;for(t in n=this.font.cmap.tables[0].codeMap,e={},i=this.subset)r=i[t],e[t]=n[r];return e},e.prototype.glyphsFor=function(e){var t,r,n,i,o,a,s;for(n={},o=0,a=e.length;o<a;o++)n[i=e[o]]=this.font.glyf.glyphFor(i);for(i in t=[],n)(null!=(r=n[i])?r.compound:void 0)&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(i in s=this.glyphsFor(t))r=s[i],n[i]=r;return n},e.prototype.encode=function(e,t){var r,n,i,o,a,s,u,l,c,h,p,d,f,m,g;for(n in r=wt.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),p={0:0},g=r.charMap)p[(s=g[n]).old]=s.new;for(d in h=r.maxGlyphID,o)d in p||(p[d]=h++);return l=function(e){var t,r;for(t in r={},e)r[e[t]]=t;return r}(p),c=Object.keys(l).sort((function(e,t){return e-t})),f=function(){var e,t,r;for(r=[],e=0,t=c.length;e<t;e++)a=c[e],r.push(l[a]);return r}(),i=this.font.glyf.encode(o,f,p),u=this.font.loca.encode(i.offsets,f),m={cmap:this.font.cmap.raw(),glyf:i.table,loca:u,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(t)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e}();z.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(r){var n,i,o,a;if(Array.isArray(r))return"["+function(){var e,i,o;for(o=[],e=0,i=r.length;e<i;e++)n=r[e],o.push(t.convert(n));return o}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(i in o=["<<"],r)a=r[i],o.push("/"+i+" "+t.convert(a));return o.push(">>"),o.join("\n")}return""+r},t}()},95395(){},93956(e,t,r){"use strict";r.d(t,{Ay:()=>ln});var n=r(34164),i=r(96540),o=r.t(i,2),a=r(41394),s=r(29407),u=r(58646),l=r(32370),c=r(80658),h=r(85577);function p(e,t,r){const n=(0,s.a)(e,r?.in);return n.setHours(t),n}function d(e,t,r){const n=(0,s.a)(e,r?.in);return n.setMinutes(t),n}function f(e,t,r){const n=(0,s.a)(e,r?.in);return n.setSeconds(t),n}var m=r(72794),g=r(6463),v=r(80337),y=r(27763),b=r(70228),D=r(4501),w=r(12268),k=r(54352),_=r(11580),x=r(5305);function F(e,t,r){const[n,i]=(0,x.x)(r?.in,e,t);return n.getFullYear()===i.getFullYear()}var C=r(91868);function S(e,t,r){const[n,i]=(0,x.x)(r?.in,e,t);return+(0,D.a)(n)===+(0,D.a)(i)}var A=r(88652);function E(e,t){return+(0,s.a)(e)===+(0,s.a)(t)}var N=r(73604),L=r(43329);function P(e,t){const r=(0,s.a)(e,t?.in),n=r.getFullYear(),i=r.getMonth(),o=(0,L.w)(r,0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}function M(e,t,r){const n=(0,s.a)(e,r?.in),i=n.getFullYear(),o=n.getDate(),a=(0,L.w)(r?.in||e,0);a.setFullYear(i,t,15),a.setHours(0,0,0,0);const u=P(a);return n.setMonth(t,Math.min(o,u)),n}function I(e,t,r){const n=(0,s.a)(e,r?.in),i=t-(Math.trunc(n.getMonth()/3)+1);return M(n,n.getMonth()+3*i)}function T(e,t){return(0,s.a)(e,t?.in).getFullYear()}function O(e,t){return(0,s.a)(e,t?.in).getMonth()}var B=r(64169);function j(e,t){const r=(0,s.a)(e,t?.in);return Math.trunc(r.getMonth()/3)+1}var R=r(2831);function q(e,t){return(0,s.a)(e,t?.in).getHours()}function z(e,t){return(0,s.a)(e,t?.in).getMinutes()}function U(e){return(0,s.a)(e).getSeconds()}var H=r(60125),W=r(29543),Y=r(66304),V=r(37122);function $(e,t,r){return(0,V.z)(e,-t,r)}function G(e,t,r){const[n,i]=(0,x.x)(r?.in,e,t);return 4*(n.getFullYear()-i.getFullYear())+(j(n)-j(i))}var K=r(95413);function J(e,t,r){return(0,K.e)(e,-t,r)}var Z=r(32688);function Q(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!==typeof e||(n=L.w.bind(null,e));const t=(0,s.a)(e,n);(!r||r>t||isNaN(+t))&&(r=t)})),(0,L.w)(n,r||NaN)}function X(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!==typeof e||(n=L.w.bind(null,e));const t=(0,s.a)(e,n);(!r||r<t||isNaN(+t))&&(r=t)})),(0,L.w)(n,r||NaN)}var ee=r(49176),te=r(38342),re=r(49914);function ne(e,t){return+(0,s.a)(e)>+(0,s.a)(t)}var ie=r(48497);function oe(e,t){return(0,s.a)(e,t?.in).getDay()}function ae(e,t){return(0,s.a)(e,t?.in).getDate()}var se=r(16172),ue=r(79114),le=r(63537);function ce(e,t,r){const n=(0,s.a)(e,r?.in);return isNaN(+n)?(0,L.w)(r?.in||e,NaN):(n.setFullYear(t),n)}var he=r(18373);function pe(e,t,r){return(0,ue.J)(e,-t,r)}var de=r(69821);var fe="undefined"!==typeof document?i.useLayoutEffect:function(){};const me={...o}.useInsertionEffect||(e=>e());var ge=r(74848),ve=r(86635),ye=r(40961),be=r(97193);function De(e,t,r){let{reference:n,floating:i}=e;const o=(0,be.TV)(t),a=(0,be.Dz)(t),s=(0,be.sq)(a),u=(0,be.C0)(t),l="y"===o,c=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,p=n[s]/2-i[s]/2;let d;switch(u){case"top":d={x:c,y:n.y-i.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-i.width,y:h};break;default:d={x:n.x,y:n.y}}switch((0,be.Sg)(t)){case"start":d[a]-=p*(r&&l?-1:1);break;case"end":d[a]+=p*(r&&l?-1:1)}return d}async function we(e,t){var r;void 0===t&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:d=0}=(0,be._3)(t,e),f=(0,be.nI)(d),m=s[p?"floating"===h?"reference":"floating":h],g=(0,be.B1)(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),v="floating"===h?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},D=(0,be.B1)(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:u}):v);return{top:(g.top-D.top+f.top)/b.y,bottom:(D.bottom-g.bottom+f.bottom)/b.y,left:(g.left-D.left+f.left)/b.x,right:(D.right-g.right+f.right)/b.x}}const ke=new Set(["left","top"]);function _e(e){const t=(0,ve.L9)(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=(0,ve.sb)(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=(0,be.LI)(r)!==o||(0,be.LI)(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function xe(e){return(0,ve.vq)(e)?e:e.contextElement}function Fe(e){const t=xe(e);if(!(0,ve.sb)(t))return(0,be.Jx)(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=_e(t);let a=(o?(0,be.LI)(r.width):r.width)/n,s=(o?(0,be.LI)(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ce=(0,be.Jx)(0);function Se(e){const t=(0,ve.zk)(e);return(0,ve.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ce}function Ae(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const i=e.getBoundingClientRect(),o=xe(e);let a=(0,be.Jx)(1);t&&(n?(0,ve.vq)(n)&&(a=Fe(n)):a=Fe(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==(0,ve.zk)(e))&&t}(o,r,n)?Se(o):(0,be.Jx)(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(o){const e=(0,ve.zk)(o),t=n&&(0,ve.vq)(n)?(0,ve.zk)(n):n;let r=e,i=(0,ve._m)(r);for(;i&&n&&t!==r;){const e=Fe(i),t=i.getBoundingClientRect(),n=(0,ve.L9)(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,h*=e.y,u+=o,l+=a,r=(0,ve.zk)(i),i=(0,ve._m)(r)}}return(0,be.B1)({width:c,height:h,x:u,y:l})}function Ee(e,t){const r=(0,ve.CP)(e).scrollLeft;return t?t.left+r:Ae((0,ve.ep)(e)).left+r}function Ne(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Ee(e,r),y:r.top+t.scrollTop}}const Le=new Set(["absolute","fixed"]);function Pe(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=(0,ve.zk)(e),n=(0,ve.ep)(e),i=r.visualViewport;let o=n.clientWidth,a=n.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;const e=(0,ve.Tc)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}const l=Ee(n);if(l<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else l<=25&&(o+=l);return{width:o,height:a,x:s,y:u}}(e,r);else if("document"===t)n=function(e){const t=(0,ve.ep)(e),r=(0,ve.CP)(e),n=e.ownerDocument.body,i=(0,be.T9)(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=(0,be.T9)(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ee(e);const s=-r.scrollTop;return"rtl"===(0,ve.L9)(n).direction&&(a+=(0,be.T9)(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:a,y:s}}((0,ve.ep)(e));else if((0,ve.vq)(t))n=function(e,t){const r=Ae(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=(0,ve.sb)(e)?Fe(e):(0,be.Jx)(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{const r=Se(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return(0,be.B1)(n)}function Me(e,t){const r=(0,ve.$4)(e);return!(r===t||!(0,ve.vq)(r)||(0,ve.eu)(r))&&("fixed"===(0,ve.L9)(r).position||Me(r,t))}function Ie(e,t,r){const n=(0,ve.sb)(t),i=(0,ve.ep)(t),o="fixed"===r,a=Ae(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=(0,be.Jx)(0);function l(){u.x=Ee(i)}if(n||!n&&!o)if(("body"!==(0,ve.mq)(t)||(0,ve.ZU)(i))&&(s=(0,ve.CP)(t)),n){const e=Ae(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&l();o&&!n&&i&&l();const c=!i||n||o?(0,be.Jx)(0):Ne(i,s);return{x:a.left+s.scrollLeft-u.x-c.x,y:a.top+s.scrollTop-u.y-c.y,width:a.width,height:a.height}}function Te(e){return"static"===(0,ve.L9)(e).position}function Oe(e,t){if(!(0,ve.sb)(e)||"fixed"===(0,ve.L9)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,ve.ep)(e)===r&&(r=r.ownerDocument.body),r}function Be(e,t){const r=(0,ve.zk)(e);if((0,ve.Tf)(e))return r;if(!(0,ve.sb)(e)){let t=(0,ve.$4)(e);for(;t&&!(0,ve.eu)(t);){if((0,ve.vq)(t)&&!Te(t))return t;t=(0,ve.$4)(t)}return r}let n=Oe(e,t);for(;n&&(0,ve.Lv)(n)&&Te(n);)n=Oe(n,t);return n&&(0,ve.eu)(n)&&Te(n)&&!(0,ve.sQ)(n)?r:n||(0,ve.gJ)(e)||r}const je={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o="fixed"===i,a=(0,ve.ep)(n),s=!!t&&(0,ve.Tf)(t.floating);if(n===a||s&&o)return r;let u={scrollLeft:0,scrollTop:0},l=(0,be.Jx)(1);const c=(0,be.Jx)(0),h=(0,ve.sb)(n);if((h||!h&&!o)&&(("body"!==(0,ve.mq)(n)||(0,ve.ZU)(a))&&(u=(0,ve.CP)(n)),(0,ve.sb)(n))){const e=Ae(n);l=Fe(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}const p=!a||h||o?(0,be.Jx)(0):Ne(a,u);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+p.x,y:r.y*l.y-u.scrollTop*l.y+c.y+p.y}},getDocumentElement:ve.ep,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[..."clippingAncestors"===r?(0,ve.Tf)(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=(0,ve.v9)(e,[],!1).filter((e=>(0,ve.vq)(e)&&"body"!==(0,ve.mq)(e))),i=null;const o="fixed"===(0,ve.L9)(e).position;let a=o?(0,ve.$4)(e):e;for(;(0,ve.vq)(a)&&!(0,ve.eu)(a);){const t=(0,ve.L9)(a),r=(0,ve.sQ)(a);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&i&&Le.has(i.position)||(0,ve.ZU)(a)&&!r&&Me(e,a))?n=n.filter((e=>e!==a)):i=t,a=(0,ve.$4)(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=o[0],s=o.reduce(((e,r)=>{const n=Pe(t,r,i);return e.top=(0,be.T9)(n.top,e.top),e.right=(0,be.jk)(n.right,e.right),e.bottom=(0,be.jk)(n.bottom,e.bottom),e.left=(0,be.T9)(n.left,e.left),e}),Pe(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Be,getElementRects:async function(e){const t=this.getOffsetParent||Be,r=this.getDimensions,n=await r(e.floating);return{reference:Ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=_e(e);return{width:t,height:r}},getScale:Fe,isElement:ve.vq,isRTL:function(e){return"rtl"===(0,ve.L9)(e).direction}};function Re(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qe(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:u=!1}=n,l=xe(e),c=i||o?[...l?(0,ve.v9)(l):[],...(0,ve.v9)(t)]:[];c.forEach((e=>{i&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)}));const h=l&&s?function(e,t){let r,n=null;const i=(0,ve.ep)(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();const l=e.getBoundingClientRect(),{left:c,top:h,width:p,height:d}=l;if(s||t(),!p||!d)return;const f={rootMargin:-(0,be.RI)(h)+"px "+-(0,be.RI)(i.clientWidth-(c+p))+"px "+-(0,be.RI)(i.clientHeight-(h+d))+"px "+-(0,be.RI)(c)+"px",threshold:(0,be.T9)(0,(0,be.jk)(1,u))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==u){if(!m)return a();n?a(!1,n):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==n||Re(l,e.getBoundingClientRect())||a(),m=!1}try{n=new IntersectionObserver(g,{...f,root:i.ownerDocument})}catch(v){n=new IntersectionObserver(g,f)}n.observe(e)}(!0),o}(l,r):null;let p,d=-1,f=null;a&&(f=new ResizeObserver((e=>{let[n]=e;n&&n.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),r()})),l&&!u&&f.observe(l),f.observe(t));let m=u?Ae(e):null;return u&&function t(){const n=Ae(e);m&&!Re(m,n)&&r();m=n,p=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach((e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)})),null==h||h(),null==(e=f)||e.disconnect(),f=null,u&&cancelAnimationFrame(p)}}const ze=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,u=await async function(e,t){const{placement:r,platform:n,elements:i}=e,o=await(null==n.isRTL?void 0:n.isRTL(i.floating)),a=(0,be.C0)(r),s=(0,be.Sg)(r),u="y"===(0,be.TV)(r),l=ke.has(a)?-1:1,c=o&&u?-1:1,h=(0,be._3)(t,e);let{mainAxis:p,crossAxis:d,alignmentAxis:f}="number"===typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"===typeof f&&(d="end"===s?-1*f:f),u?{x:d*c,y:p*l}:{x:p*l,y:d*c}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:a}}}}},Ue=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=(0,be._3)(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const v=(0,be.C0)(i),y=(0,be.TV)(s),b=(0,be.C0)(s)===s,D=await(null==u.isRTL?void 0:u.isRTL(l.floating)),w=p||(b||!m?[(0,be.bV)(s)]:(0,be.WJ)(s)),k="none"!==f;!p&&k&&w.push(...(0,be.lP)(s,m,f,D));const _=[s,...w],x=await we(t,g),F=[];let C=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&F.push(x[v]),h){const e=(0,be.w7)(i,a,D);F.push(x[e[0]],x[e[1]])}if(C=[...C,{placement:i,overflows:F}],!F.every((e=>e<=0))){var S,A;const e=((null==(S=o.flip)?void 0:S.index)||0)+1,t=_[e];if(t){if(!("alignment"===h&&y!==(0,be.TV)(t))||C.every((e=>(0,be.TV)(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:C},reset:{placement:t}}}let r=null==(A=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!r)switch(d){case"bestFit":{var E;const e=null==(E=C.filter((e=>{if(k){const t=(0,be.TV)(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0];e&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}},He=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:o,platform:a,elements:s,middlewareData:u}=t,{element:l,padding:c=0}=(0,be._3)(e,t)||{};if(null==l)return{};const h=(0,be.nI)(c),p={x:r,y:n},d=(0,be.Dz)(i),f=(0,be.sq)(d),m=await a.getDimensions(l),g="y"===d,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",D=o.reference[f]+o.reference[d]-p[d]-o.floating[f],w=p[d]-o.reference[d],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let _=k?k[b]:0;_&&await(null==a.isElement?void 0:a.isElement(k))||(_=s.floating[b]||o.floating[f]);const x=D/2-w/2,F=_/2-m[f]/2-1,C=(0,be.jk)(h[v],F),S=(0,be.jk)(h[y],F),A=C,E=_-m[f]-S,N=_/2-m[f]/2+x,L=(0,be.qE)(A,N,E),P=!u.arrow&&null!=(0,be.Sg)(i)&&N!==L&&o.reference[f]/2-(N<A?C:S)-m[f]/2<0,M=P?N<A?N-A:N-E:0;return{[d]:p[d]+M,data:{[d]:L,centerOffset:N-L-M,...P&&{alignmentOffset:M}},reset:P}}}),We=(e,t,r)=>{const n=new Map,i={platform:je,...r},o={...i.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=o.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:h}=De(l,n,u),p=n,d={},f=0;for(let m=0;m<s.length;m++){const{name:r,fn:o}=s[m],{x:g,y:v,data:y,reset:b}=await o({x:c,y:h,initialPlacement:n,placement:p,strategy:i,middlewareData:d,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,h=null!=v?v:h,d={...d,[r]:{...d[r],...y}},b&&f<=50&&(f++,"object"===typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:c,y:h}=De(l,p,u))),m=-1)}return{x:c,y:h,placement:p,strategy:i,middlewareData:d}})(e,t,{...i,platform:o})};var Ye="undefined"!==typeof document?i.useLayoutEffect:function(){};function Ve(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Ve(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!==n--;){const r=i[n];if(("_owner"!==r||!e.$$typeof)&&!Ve(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function $e(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ge(e,t){const r=$e(e);return Math.round(t*r)/r}function Ke(e){const t=i.useRef(e);return Ye((()=>{t.current=e})),t}const Je=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"===typeof e?e(t):e;return r&&(i=r,{}.hasOwnProperty.call(i,"current"))?null!=r.current?He({element:r.current,padding:n}).fn(t):{}:r?He({element:r,padding:n}).fn(t):{};var i}}),Ze=(e,t)=>({...ze(e),options:[e,t]}),Qe=(e,t)=>({...Je(e),options:[e,t]});const Xe="ArrowLeft",et="ArrowRight",tt="ArrowUp",rt="ArrowDown";const nt=[Xe,et],it=[tt,rt],ot={...o};let at=!1,st=0;const ut=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+st++;const lt=ot.useId||function(){const[e,t]=i.useState((()=>at?ut():void 0));return fe((()=>{null==e&&t(ut())}),[]),i.useEffect((()=>{at=!0}),[]),e};const ct=i.forwardRef((function(e,t){const{context:{placement:r,elements:{floating:n},middlewareData:{arrow:o,shift:a}},width:s=14,height:u=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:h,stroke:p,d:d,style:{transform:f,...m}={},...g}=e;const v=lt(),[y,b]=i.useState(!1);if(fe((()=>{if(!n)return;"rtl"===(0,ve.L9)(n).direction&&b(!0)}),[n]),!n)return null;const[D,w]=r.split("-"),k="top"===D||"bottom"===D;let _=h;(k&&null!=a&&a.x||!k&&null!=a&&a.y)&&(_=null);const x=2*c,F=x/2,C=s/2*(l/-8+1),S=u/2*l/4,A=!!d,E=_&&"end"===w?"bottom":"top";let N=_&&"end"===w?"right":"left";_&&y&&(N="end"===w?"left":"right");const L=null!=(null==o?void 0:o.x)?_||o.x:"",P=null!=(null==o?void 0:o.y)?_||o.y:"",M=d||"M0,0 H"+s+" L"+(s-C)+","+(u-S)+" Q"+s/2+","+u+" "+C+","+(u-S)+" Z",I={top:A?"rotate(180deg)":"",left:A?"rotate(90deg)":"rotate(-90deg)",bottom:A?"":"rotate(180deg)",right:A?"rotate(-90deg)":"rotate(90deg)"}[D];return(0,ge.jsxs)("svg",{...g,"aria-hidden":!0,ref:t,width:A?s:s+x,height:s,viewBox:"0 0 "+s+" "+(u>s?u:s),style:{position:"absolute",pointerEvents:"none",[N]:L,[E]:P,[D]:k||A?"100%":"calc(100% - "+x/2+"px)",transform:[I,f].filter((e=>!!e)).join(" "),...m},children:[x>0&&(0,ge.jsx)("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:x+(d?0:1),d:M}),(0,ge.jsx)("path",{stroke:x&&!d?g.fill:"none",d:M}),(0,ge.jsx)("clipPath",{id:v,children:(0,ge.jsx)("rect",{x:-F,y:F*(A?-1:1),width:s+x,height:s})})]})}));function ht(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.has(t)||e.set(t,new Set),e.get(t).add(r)},off(t,r){var n;null==(n=e.get(t))||n.delete(r)}}}const pt=i.createContext(null),dt=i.createContext(null),ft=()=>{var e;return(null==(e=i.useContext(pt))?void 0:e.id)||null},mt=()=>i.useContext(dt);function gt(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=lt(),a=i.useRef({}),[s]=i.useState((()=>ht())),u=null!=ft();const[l,c]=i.useState(n.reference),h=function(e){const t=i.useRef((()=>{}));return me((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}(((e,t,n)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:u}),null==r||r(e,t,n)})),p=i.useMemo((()=>({setPositionReference:c})),[]),d=i.useMemo((()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference})),[l,n.reference,n.floating]);return i.useMemo((()=>({dataRef:a,open:t,onOpenChange:h,elements:d,events:s,floatingId:o,refs:p})),[t,h,d,s,o,p])}function vt(e){void 0===e&&(e={});const{nodeId:t}=e,r=gt({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[a,s]=i.useState(null),[u,l]=i.useState(null),c=(null==o?void 0:o.domReference)||a,h=i.useRef(null),p=mt();fe((()=>{c&&(h.current=c)}),[c]);const d=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:l,open:c}=e,[h,p]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,f]=i.useState(n);Ve(d,n)||f(n);const[m,g]=i.useState(null),[v,y]=i.useState(null),b=i.useCallback((e=>{e!==_.current&&(_.current=e,g(e))}),[]),D=i.useCallback((e=>{e!==x.current&&(x.current=e,y(e))}),[]),w=a||m,k=s||v,_=i.useRef(null),x=i.useRef(null),F=i.useRef(h),C=null!=l,S=Ke(l),A=Ke(o),E=Ke(c),N=i.useCallback((()=>{if(!_.current||!x.current)return;const e={placement:t,strategy:r,middleware:d};A.current&&(e.platform=A.current),We(_.current,x.current,e).then((e=>{const t={...e,isPositioned:!1!==E.current};L.current&&!Ve(F.current,t)&&(F.current=t,ye.flushSync((()=>{p(t)})))}))}),[d,t,r,A,E]);Ye((()=>{!1===c&&F.current.isPositioned&&(F.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[c]);const L=i.useRef(!1);Ye((()=>(L.current=!0,()=>{L.current=!1})),[]),Ye((()=>{if(w&&(_.current=w),k&&(x.current=k),w&&k){if(S.current)return S.current(w,k,N);N()}}),[w,k,N,S,C]);const P=i.useMemo((()=>({reference:_,floating:x,setReference:b,setFloating:D})),[b,D]),M=i.useMemo((()=>({reference:w,floating:k})),[w,k]),I=i.useMemo((()=>{const e={position:r,left:0,top:0};if(!M.floating)return e;const t=Ge(M.floating,h.x),n=Ge(M.floating,h.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...$e(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,u,M.floating,h.x,h.y]);return i.useMemo((()=>({...h,update:N,refs:P,elements:M,floatingStyles:I})),[h,N,P,M,I])}({...e,elements:{...o,...u&&{reference:u}}}),f=i.useCallback((e=>{const t=(0,ve.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;l(t),d.refs.setReference(t)}),[d.refs]),m=i.useCallback((e=>{((0,ve.vq)(e)||null===e)&&(h.current=e,s(e)),((0,ve.vq)(d.refs.reference.current)||null===d.refs.reference.current||null!==e&&!(0,ve.vq)(e))&&d.refs.setReference(e)}),[d.refs]),g=i.useMemo((()=>({...d.refs,setReference:m,setPositionReference:f,domReference:h})),[d.refs,m,f]),v=i.useMemo((()=>({...d.elements,domReference:c})),[d.elements,c]),y=i.useMemo((()=>({...d,...n,refs:g,elements:v,nodeId:t})),[d,g,v,t,n]);return fe((()=>{n.dataRef.current.floatingContext=y;const e=null==p?void 0:p.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),i.useMemo((()=>({...d,context:y,refs:g,elements:v})),[d,g,v,y])}var yt=function(e,t){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},yt(e,t)};function bt(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}yt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var Dt=function(){return Dt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Dt.apply(this,arguments)};function wt(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"===typeof SuppressedError&&SuppressedError;var kt,_t=function(e){var t=e.showTimeSelectOnly,r=void 0!==t&&t,n=e.showTime,o=void 0!==n&&n,a=e.className,s=e.children,u=e.inline,l=r?"Choose Time":"Choose Date".concat(o?" and Time":"");return i.createElement("div",{className:a,"aria-label":l,role:u?void 0:"dialog","aria-modal":u?void 0:"true",translate:"no"},s)},xt=function(e){var t=e.children,r=e.onClickOutside,n=e.className,o=e.containerRef,a=e.style,s=function(e,t){var r=(0,i.useRef)(null),n=(0,i.useRef)(e);(0,i.useEffect)((function(){n.current=e}),[e]);var o=(0,i.useCallback)((function(e){var i,o=e.composed&&e.composedPath&&e.composedPath().find((function(e){return e instanceof Node}))||e.target;r.current&&!r.current.contains(o)&&(t&&o instanceof HTMLElement&&o.classList.contains(t)||null===(i=n.current)||void 0===i||i.call(n,e))}),[t]);return(0,i.useEffect)((function(){return document.addEventListener("mousedown",o),function(){document.removeEventListener("mousedown",o)}}),[o]),r}(r,e.ignoreClass);return i.createElement("div",{className:n,style:a,ref:function(e){s.current=e,o&&(o.current=e)}},t)},Ft=null,Ct=!1;function St(){if(Ct)return Ft;Ct=!0;try{Ft=r(54391)("date-fns-tz")}catch(Lr){Ft=null}return Ft}function At(e,t){if(!t)return e;var r=St();return r?r.toZonedTime(e,t):e}function Et(e,t){if(!t)return e;var r=St();return r?r.fromZonedTime(e,t):e}function Nt(){return"undefined"!==typeof window?window:globalThis}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}(kt||(kt={}));function Lt(e){if(null==e)return new Date;var t="string"===typeof e?(0,a.H)(e):(0,s.a)(e);return Mt(t)?t:new Date}function Pt(e,t,r,n,i){void 0===i&&(i=Lt());for(var o=Xt(r)||Xt(Qt()),a=0,s=Array.isArray(t)?t:[t];a<s.length;a++){var c=s[a],h=(0,u.qg)(e,c,i,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(Mt(h)&&(!n||e===Tt(h,c,r)))return h}if(!n&&e&&e.length>=8){var p=new Date(e);if((0,l.f)(p))return p}return null}function Mt(e){return(0,l.f)(e)}function It(e){return null==e?null:(0,c.$)(e)&&(0,l.f)(e)?e:null}function Tt(e,t,r){if("en"===r)return(0,h.GP)(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var n=r?Xt(r):void 0;return r&&!n&&console.warn('A locale object was not found for the provided string ["'.concat(r,'"].')),n=n||Xt(Qt()),(0,h.GP)(e,t,{locale:n,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ot(e,t){var r=t.dateFormat,n=t.locale,i=Array.isArray(r)&&r.length>0?r[0]:r;return e&&Tt(e,i,n)||""}function Bt(e,t){var r=t.hour,n=void 0===r?0:r,i=t.minute,o=void 0===i?0:i,a=t.second;return p(d(f(e,void 0===a?0:a),o),n)}function jt(e){return(0,g.o)(e)}function Rt(e,t,r){var n=Xt(t||Qt());return(0,v.k)(e,{locale:n,weekStartsOn:r})}function qt(e){return(0,y.w)(e)}function zt(e){return(0,b.D)(e)}function Ut(e){return(0,D.a)(e)}function Ht(){return(0,g.o)(Lt())}function Wt(e){return(0,w.D)(e)}function Yt(e){return(0,_.p)(e)}function Vt(e,t){return e&&t?F(e,t):!e&&!t}function $t(e,t){return e&&t?(0,C.t)(e,t):!e&&!t}function Gt(e,t){return e&&t?S(e,t):!e&&!t}function Kt(e,t){return e&&t?(0,A.r)(e,t):!e&&!t}function Jt(e,t){return e&&t?E(e,t):!e&&!t}function Zt(e,t,r){var n,i=(0,g.o)(t),o=(0,w.D)(r);try{n=(0,N.v)(e,{start:i,end:o})}catch(a){n=!1}return n}function Qt(){return Nt().__localeId__}function Xt(e){if("string"===typeof e){var t=Nt();return t.__localeData__?t.__localeData__[e]:void 0}return e}function er(e,t){return Tt(M(Lt(),e),"LLLL",t)}function tr(e,t){return Tt(M(Lt(),e),"LLL",t)}function rr(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.maxDate,o=r.excludeDates,a=r.excludeDateIntervals,s=r.includeDates,u=r.includeDateIntervals,l=r.filterDate;return!!r.disabled||(hr(e,{minDate:n,maxDate:i})||o&&o.some((function(t){return t instanceof Date?Kt(e,t):Kt(e,t.date)}))||a&&a.some((function(t){var r=t.start,n=t.end;return(0,N.v)(e,{start:r,end:n})}))||s&&!s.some((function(t){return Kt(e,t)}))||u&&!u.some((function(t){var r=t.start,n=t.end;return(0,N.v)(e,{start:r,end:n})}))||l&&!l(Lt(e))||!1)}function nr(e,t){var r=void 0===t?{}:t,n=r.excludeDates,i=r.excludeDateIntervals;return i&&i.length>0?i.some((function(t){var r=t.start,n=t.end;return(0,N.v)(e,{start:r,end:n})})):n&&n.some((function(t){var r;return t instanceof Date?Kt(e,t):Kt(e,null!==(r=t.date)&&void 0!==r?r:new Date)}))||!1}function ir(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.maxDate,o=r.excludeDates,a=r.includeDates,s=r.filterDate;return hr(e,{minDate:n?(0,y.w)(n):void 0,maxDate:i?(0,_.p)(i):void 0})||(null===o||void 0===o?void 0:o.some((function(t){return $t(e,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return $t(e,t)}))||s&&!s(Lt(e))||!1}function or(e,t,r,n){var i=T(e),o=O(e),a=T(t),s=O(t),u=T(n);return i===a&&i===u?o<=r&&r<=s:i<a&&(u===i&&o<=r||u===a&&s>=r||u<a&&u>i)}function ar(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.maxDate,o=r.excludeDates,a=r.includeDates;return hr(e,{minDate:n,maxDate:i})||o&&o.some((function(t){return $t(t instanceof Date?t:t.date,e)}))||a&&!a.some((function(t){return $t(t,e)}))||!1}function sr(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.maxDate,o=r.excludeDates,a=r.includeDates,s=r.filterDate;return!!r.disabled||(hr(e,{minDate:n,maxDate:i})||(null===o||void 0===o?void 0:o.some((function(t){return Gt(e,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return Gt(e,t)}))||s&&!s(Lt(e))||!1)}function ur(e,t,r){if(!t||!r)return!1;if(!(0,l.f)(t)||!(0,l.f)(r))return!1;var n=T(t),i=T(r);return n<=e&&i>=e}function lr(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.maxDate,o=r.excludeDates,a=r.includeDates,s=r.filterDate;if(r.disabled)return!0;var u=new Date(e,0,1);return hr(u,{minDate:n?(0,b.D)(n):void 0,maxDate:i?(0,B.Q)(i):void 0})||(null===o||void 0===o?void 0:o.some((function(e){return Vt(u,e instanceof Date?e:e.date)})))||a&&!a.some((function(e){return Vt(u,e)}))||s&&!s(Lt(u))||!1}function cr(e,t,r,n){var i=T(e),o=j(e),a=T(t),s=j(t),u=T(n);return i===a&&i===u?o<=r&&r<=s:i<a&&(u===i&&o<=r||u===a&&s>=r||u<a&&u>i)}function hr(e,t){var r,n=void 0===t?{}:t,i=n.minDate,o=n.maxDate;return null!==(r=i&&(0,R.m)(e,i)<0||o&&(0,R.m)(e,o)>0)&&void 0!==r&&r}function pr(e,t){return t.some((function(t){return q(t)===q(e)&&z(t)===z(e)&&U(t)===U(e)}))}function dr(e,t){var r=void 0===t?{}:t,n=r.excludeTimes,i=r.includeTimes,o=r.filterTime;return n&&pr(e,n)||i&&!pr(e,i)||o&&!o(e)||!1}function fr(e,t){var r=t.minTime,n=t.maxTime;if(!r||!n)throw new Error("Both minTime and maxTime props required");var i=Lt();i=f(i=d(i=p(i,q(e)),z(e)),U(e));var o=Lt();o=f(o=d(o=p(o,q(r)),z(r)),U(r));var a,s=Lt();s=f(s=d(s=p(s,q(n)),z(n)),U(n));try{a=!(0,N.v)(i,{start:o,end:s})}catch(u){a=!1}return a}function mr(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.includeDates,o=(0,H.a)(e,1);return n&&(0,W.U)(n,o)>0||i&&i.every((function(e){return(0,W.U)(e,o)>0}))||!1}function gr(e,t){var r=void 0===t?{}:t,n=r.maxDate,i=r.includeDates,o=(0,Y.P)(e,1);return n&&(0,W.U)(o,n)>0||i&&i.every((function(e){return(0,W.U)(o,e)>0}))||!1}function vr(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.includeDates,o=J(e,1);return n&&(0,Z.n)(n,o)>0||i&&i.every((function(e){return(0,Z.n)(e,o)>0}))||!1}function yr(e,t){var r=void 0===t?{}:t,n=r.maxDate,i=r.includeDates,o=(0,K.e)(e,1);return n&&(0,Z.n)(o,n)>0||i&&i.every((function(e){return(0,Z.n)(o,e)>0}))||!1}function br(e){var t=e.minDate,r=e.includeDates;return r&&t?Q(r.filter((function(e){return(0,R.m)(e,t)>=0}))):r?Q(r):t}function Dr(e){var t=e.maxDate,r=e.includeDates;return r&&t?X(r.filter((function(e){return(0,R.m)(e,t)<=0}))):r?X(r):t}function wr(e,t){var r;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var n=new Map,i=0,o=e.length;i<o;i++){var a=e[i];if((0,c.$)(a)){var s=Tt(a,"MM.dd.yyyy");(f=n.get(s)||[]).includes(t)||(f.push(t),n.set(s,f))}else if("object"===typeof a){var u=null!==(r=Object.keys(a)[0])&&void 0!==r?r:"",l=a[u];if("string"===typeof u&&Array.isArray(l))for(var h=0,p=l.length;h<p;h++){var d=l[h];if(d){var f;s=Tt(d,"MM.dd.yyyy");(f=n.get(s)||[]).includes(u)||(f.push(u),n.set(s,f))}}}}return n}function kr(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var r=new Map;return e.forEach((function(e){var n=e.date,i=e.holidayName;if((0,c.$)(n)){var o=Tt(n,"MM.dd.yyyy"),a=r.get(o)||{className:"",holidayNames:[]};if(!("className"in a)||a.className!==t||(s=a.holidayNames,u=[i],s.length!==u.length||!s.every((function(e,t){return e===u[t]})))){var s,u;a.className=t;var l=a.holidayNames;a.holidayNames=l?wt(wt([],l,!0),[i],!1):[i],r.set(o,a)}}})),r}function _r(e,t,r,n,i){for(var o=i.length,a=[],s=0;s<o;s++){var u=e,l=i[s];l&&(u=(0,ee.L)(u,q(l)),u=(0,te.z)(u,z(l)),u=(0,re.p)(u,U(l)));var c=(0,te.z)(e,(r+1)*n);ne(u,t)&&(0,ie.Y)(u,c)&&void 0!=l&&a.push(l)}return a}function xr(e){return e<10?"0".concat(e):"".concat(e)}function Fr(e,t){void 0===t&&(t=12);var r=Math.ceil(T(e)/t)*t;return{startPeriod:r-(t-1),endPeriod:r}}function Cr(e){var t=e.getSeconds(),r=e.getMilliseconds();return(0,s.a)(e.getTime()-1e3*t-r)}function Sr(e,t){return Cr(e).getTime()===Cr(t).getTime()}function Ar(e){if(!(0,c.$)(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function Er(e,t){if(!(0,c.$)(e)||!(0,c.$)(t))throw new Error("Invalid date received");var r=Ar(e),n=Ar(t);return(0,ie.Y)(r,n)}function Nr(e){return e.key===kt.Space}var Lr,Pr=function(e){function t(t){var r=e.call(this,t)||this;return r.inputRef=i.createRef(),r.onTimeChange=function(e){var t,n;r.setState({time:e});var i=r.props.date,o=i instanceof Date&&!isNaN(+i)?i:new Date;if(null===e||void 0===e?void 0:e.includes(":")){var a=e.split(":"),s=a[0],u=a[1];o.setHours(Number(s)),o.setMinutes(Number(u))}null===(n=(t=r.props).onChange)||void 0===n||n.call(t,o)},r.renderTimeInput=function(){var e=r.state.time,t=r.props,n=t.date,o=t.timeString,a=t.customTimeInput;return a?(0,i.cloneElement)(a,{date:n,value:e,onChange:r.onTimeChange}):i.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var e;null===(e=r.inputRef.current)||void 0===e||e.focus()},required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||o)}})},r.state={time:r.props.timeString},r}return bt(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return i.createElement("div",{className:"react-datepicker__input-time-container"},i.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),i.createElement("div",{className:"react-datepicker-time__input-container"},i.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(i.Component),Mr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dayEl=(0,i.createRef)(),t.handleClick=function(e){!t.isDisabled()&&t.props.onClick&&t.props.onClick(e)},t.handleMouseEnter=function(e){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(e)},t.handleOnKeyDown=function(e){var r,n;e.key===kt.Space&&(e.preventDefault(),e.key=kt.Enter),null===(n=(r=t.props).handleOnKeyDown)||void 0===n||n.call(r,e)},t.isSameDay=function(e){return Kt(t.props.day,e)},t.isKeyboardSelected=function(){var e;if(t.props.disabledKeyboardNavigation)return!1;var r=t.props.selectsMultiple?null===(e=t.props.selectedDates)||void 0===e?void 0:e.some((function(e){return t.isSameDayOrWeek(e)})):t.isSameDayOrWeek(t.props.selected),n=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!r&&t.isSameDayOrWeek(t.props.preSelection)&&!n},t.isDisabled=function(e){return void 0===e&&(e=t.props.day),rr(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate,disabled:t.props.disabled})},t.isExcluded=function(){return nr(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return Kt(t.props.day,Rt(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(e){return t.props.showWeekPicker&&Kt(e,Rt(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(e){return t.isSameDay(e)||t.isSameWeek(e)},t.getHighLightedClass=function(){var e=t.props,r=e.day,n=e.highlightDates;if(!n)return!1;var i=Tt(r,"MM.dd.yyyy");return n.get(i)},t.getHolidaysClass=function(){var e,r=t.props,n=r.day,i=r.holidays;if(!i)return[void 0];var o=Tt(n,"MM.dd.yyyy");return i.has(o)?[null===(e=i.get(o))||void 0===e?void 0:e.className]:[void 0]},t.isInRange=function(){var e=t.props,r=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Zt(r,n,i)},t.isInSelectingRange=function(){var e,r=t.props,n=r.day,i=r.selectsStart,o=r.selectsEnd,a=r.selectsRange,s=r.selectsDisabledDaysInRange,u=r.startDate,l=r.swapRange,c=r.endDate,h=null!==(e=t.props.selectingDate)&&void 0!==e?e:t.props.preSelection;if(t.isAfterMonth()||t.isBeforeMonth())return!1;if(!(i||o||a)||!h||!s&&t.isDisabled())return!1;if(i&&c&&((0,ie.Y)(h,c)||Jt(h,c)))return Zt(n,h,c);if(o&&u&&(ne(h,u)||Jt(h,u)))return Zt(n,u,h);if(a&&u&&!c){if(Jt(h,u))return Zt(n,u,h);if(ne(h,u))return Zt(n,u,h);if(l&&(0,ie.Y)(h,u))return Zt(n,h,u)}return!1},t.isSelectingRangeStart=function(){var e;if(!t.isInSelectingRange())return!1;var r=t.props,n=r.day,i=r.startDate,o=r.selectsStart,a=r.swapRange,s=r.selectsRange,u=null!==(e=t.props.selectingDate)&&void 0!==e?e:t.props.preSelection;return Kt(n,o||s&&a&&i&&u&&(0,ie.Y)(u,i)?u:i)},t.isSelectingRangeEnd=function(){var e;if(!t.isInSelectingRange())return!1;var r=t.props,n=r.day,i=r.endDate,o=r.selectsEnd,a=r.selectsRange,s=r.swapRange,u=r.startDate,l=null!==(e=t.props.selectingDate)&&void 0!==e?e:t.props.preSelection;return Kt(n,o?l:a&&s&&u&&l?(0,ie.Y)(l,u)?u:l:a?l:i)},t.isRangeStart=function(){var e=t.props,r=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Kt(n,r)},t.isRangeEnd=function(){var e=t.props,r=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Kt(i,r)},t.isWeekend=function(){var e=oe(t.props.day);return 0===e||6===e},t.isAfterMonth=function(){return void 0!==t.props.month&&(t.props.month+1)%12===O(t.props.day)},t.isBeforeMonth=function(){return void 0!==t.props.month&&(O(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(Lt())},t.isSelected=function(){var e;return t.props.selectsMultiple?null===(e=t.props.selectedDates)||void 0===e?void 0:e.some((function(e){return t.isSameDayOrWeek(e)})):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(e){var r,i=t.props.dayClassName?t.props.dayClassName(e):void 0;return(0,n.$)("react-datepicker__day",i,"react-datepicker__day--"+Tt(t.props.day,"ddd",r),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var e=t.props,r=e.day,n=e.ariaLabelPrefixWhenEnabled,i=void 0===n?"Choose":n,o=e.ariaLabelPrefixWhenDisabled,a=void 0===o?"Not available":o,s=t.isDisabled()||t.isExcluded()?a:i;return"".concat(s," ").concat(Tt(r,"PPPP",t.props.locale))},t.getTitle=function(){var e=t.props,r=e.day,n=e.holidays,i=void 0===n?new Map:n,o=e.excludeDates,a=Tt(r,"MM.dd.yyyy"),s=[];return i.has(a)&&s.push.apply(s,i.get(a).holidayNames),t.isExcluded()&&s.push(null===o||void 0===o?void 0:o.filter((function(e){return e instanceof Date?Kt(e,r):Kt(null===e||void 0===e?void 0:e.date,r)})).map((function(e){if(!(e instanceof Date))return null===e||void 0===e?void 0:e.message}))),s.join(", ")},t.getTabIndex=function(){var e=t.props.selected,r=t.props.preSelection;return(!t.props.showWeekPicker||!t.props.showWeekNumber&&t.isStartOfWeek())&&(t.isKeyboardSelected()||t.isSameDay(e)&&Kt(r,e))?0:-1},t.handleFocusDay=function(){var e;t.shouldFocusDay()&&(null===(e=t.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(ae(t.props.day),t.props.day):ae(t.props.day)},t.render=function(){return i.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),""!==t.getTitle()&&i.createElement("span",{className:"overlay"},t.getTitle()))},t}return bt(t,e),t.prototype.componentDidMount=function(){this.handleFocusDay()},t.prototype.componentDidUpdate=function(){this.handleFocusDay()},t.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},t.prototype.isDayActiveElement=function(){var e,t,r;return(null===(t=null===(e=this.props.containerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains(document.activeElement))&&(null===(r=document.activeElement)||void 0===r?void 0:r.classList.contains("react-datepicker__day"))},t.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},t}(i.Component),Ir=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=(0,i.createRef)(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var r,n;e.key===kt.Space&&(e.preventDefault(),e.key=kt.Enter),null===(n=(r=t.props).handleOnKeyDown)||void 0===n||n.call(r,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Kt(t.props.date,t.props.selected)&&Kt(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Kt(t.props.date,t.props.selected)&&Kt(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var r=!1;0===t.getTabIndex()&&!(null===e||void 0===e?void 0:e.isInputFocused)&&Kt(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(r=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(r=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(r=!0)),r&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return bt(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},t.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},t.prototype.render=function(){var e=this.props,r=e.weekNumber,o=e.isWeekDisabled,a=e.ariaLabelPrefix,s=void 0===a?t.defaultProps.ariaLabelPrefix:a,u=e.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!u&&!o,"react-datepicker__week-number--selected":!!u&&Kt(this.props.date,this.props.selected)};return i.createElement("div",{ref:this.weekNumberEl,className:(0,n.$)(l),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},r)},t}(i.Component),Tr=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.isDisabled=function(e){return rr(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleWeekClick=function(e,n,i){for(var o,a,s,u=new Date(e),l=0;l<7;l++){var c=new Date(e);if(c.setDate(c.getDate()+l),!r.isDisabled(c)){u=c;break}}"function"===typeof r.props.onWeekSelect&&r.props.onWeekSelect(u,n,i),r.props.showWeekPicker&&r.handleDayClick(u,i),(null!==(o=r.props.shouldCloseOnSelect)&&void 0!==o?o:t.defaultProps.shouldCloseOnSelect)&&(null===(s=(a=r.props).setOpen)||void 0===s||s.call(a,!1))},r.formatWeekNumber=function(e){return r.props.formatWeekNumber?r.props.formatWeekNumber(e):function(e){return(0,m.s)(e)}(e)},r.isWeekDisabled=function(){for(var e=r.startOfWeek(),t=(0,se.f)(e,6),n=new Date(e);n<=t;){if(!r.isDisabled(n))return!1;n=(0,se.f)(n,1)}return!0},r.renderDays=function(){var e=r.startOfWeek(),n=[],o=r.formatWeekNumber(e);if(r.props.showWeekNumber){var a=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(r,e,o):void 0;n.push(i.createElement(Ir,Dt({key:"W"},t.defaultProps,r.props,{weekNumber:o,isWeekDisabled:r.isWeekDisabled(),date:e,onClick:a})))}return n.concat([0,1,2,3,4,5,6].map((function(n){var o=(0,se.f)(e,n);return i.createElement(Mr,Dt({},t.defaultProps,r.props,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:o.valueOf(),day:o,onClick:r.handleDayClick.bind(r,o),onMouseEnter:r.handleDayMouseEnter.bind(r,o)}))})))},r.startOfWeek=function(){return Rt(r.props.day,r.props.locale,r.props.calendarStartDay)},r.isKeyboardSelected=function(){return!r.props.disabledKeyboardNavigation&&!Kt(r.startOfWeek(),r.props.selected)&&Kt(r.startOfWeek(),r.props.preSelection)},r}return bt(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Kt(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},t=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return i.createElement("div",{className:(0,n.$)(e,t),role:"row"},this.renderDays())},t}(i.Component),Or="two_columns",Br="three_columns",jr="four_columns",Rr=((Lr={})[Or]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Lr[Br]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Lr[jr]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Lr);function qr(e,t){return e?jr:t?Or:Br}var zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.MONTH_REFS=wt([],Array(12),!0).map((function(){return(0,i.createRef)()})),t.QUARTER_REFS=wt([],Array(4),!0).map((function(){return(0,i.createRef)()})),t.isDisabled=function(e){return rr(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate,disabled:t.props.disabled})},t.isExcluded=function(e){return nr(e,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(e,r){var n,i;null===(i=(n=t.props).onDayClick)||void 0===i||i.call(n,e,r,t.props.orderInDisplay)},t.handleDayMouseEnter=function(e){var r,n;null===(n=(r=t.props).onDayMouseEnter)||void 0===n||n.call(r,e)},t.handleMouseLeave=function(){var e,r;null===(r=(e=t.props).onMouseLeave)||void 0===r||r.call(e)},t.isRangeStartMonth=function(e){var r=t.props,n=r.day,i=r.startDate,o=r.endDate;return!(!i||!o)&&$t(M(n,e),i)},t.isRangeStartQuarter=function(e){var r=t.props,n=r.day,i=r.startDate,o=r.endDate;return!(!i||!o)&&Gt(I(n,e),i)},t.isRangeEndMonth=function(e){var r=t.props,n=r.day,i=r.startDate,o=r.endDate;return!(!i||!o)&&$t(M(n,e),o)},t.isRangeEndQuarter=function(e){var r=t.props,n=r.day,i=r.startDate,o=r.endDate;return!(!i||!o)&&Gt(I(n,e),o)},t.isInSelectingRangeMonth=function(e){var r,n=t.props,i=n.day,o=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,u=n.startDate,l=n.endDate,c=null!==(r=t.props.selectingDate)&&void 0!==r?r:t.props.preSelection;return!(!(o||a||s)||!c)&&(o&&l?or(c,l,e,i):(a&&u||!(!s||!u||l))&&or(u,c,e,i))},t.isSelectingMonthRangeStart=function(e){var r;if(!t.isInSelectingRangeMonth(e))return!1;var n=t.props,i=n.day,o=n.startDate,a=n.selectsStart,s=M(i,e),u=null!==(r=t.props.selectingDate)&&void 0!==r?r:t.props.preSelection;return $t(s,a?u:o)},t.isSelectingMonthRangeEnd=function(e){var r;if(!t.isInSelectingRangeMonth(e))return!1;var n=t.props,i=n.day,o=n.endDate,a=n.selectsEnd,s=n.selectsRange,u=M(i,e),l=null!==(r=t.props.selectingDate)&&void 0!==r?r:t.props.preSelection;return $t(u,a||s?l:o)},t.isInSelectingRangeQuarter=function(e){var r,n=t.props,i=n.day,o=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,u=n.startDate,l=n.endDate,c=null!==(r=t.props.selectingDate)&&void 0!==r?r:t.props.preSelection;return!(!(o||a||s)||!c)&&(o&&l?cr(c,l,e,i):(a&&u||!(!s||!u||l))&&cr(u,c,e,i))},t.isWeekInMonth=function(e){var r=t.props.day,n=(0,se.f)(e,6);return $t(e,r)||$t(n,r)},t.isCurrentMonth=function(e,t){return T(e)===T(Lt())&&t===O(Lt())},t.isCurrentQuarter=function(e,t){return T(e)===T(Lt())&&t===j(Lt())},t.isSelectedMonth=function(e,t,r){return O(r)===t&&T(e)===T(r)},t.isSelectMonthInList=function(e,r,n){return n.some((function(n){return t.isSelectedMonth(e,r,n)}))},t.isSelectedQuarter=function(e,t,r){return j(r)===t&&T(e)===T(r)},t.isSelectQuarterInList=function(e,r,n){return n.some((function(n){return t.isSelectedQuarter(e,r,n)}))},t.isMonthSelected=function(){var e=t.props,r=e.day,n=e.selected,i=e.selectedDates,o=e.selectsMultiple,a=O(r);return o?null===i||void 0===i?void 0:i.some((function(e){return t.isSelectedMonth(r,a,e)})):!!n&&t.isSelectedMonth(r,a,n)},t.isQuarterSelected=function(){var e=t.props,r=e.day,n=e.selected,i=e.selectedDates,o=e.selectsMultiple,a=j(r);return o?null===i||void 0===i?void 0:i.some((function(e){return t.isSelectedQuarter(r,a,e)})):!!n&&t.isSelectedQuarter(r,a,n)},t.renderWeeks=function(){if(!Mt(t.props.day))return[];for(var e=[],r=t.props.fixedHeight,n=0,o=!1,a=Rt(qt(t.props.day),t.props.locale,t.props.calendarStartDay),s=t.props.selected?function(e){return t.props.showWeekPicker?Rt(e,t.props.locale,t.props.calendarStartDay):t.props.selected}(t.props.selected):void 0,u=t.props.preSelection?function(e){return t.props.showWeekPicker?Rt(e,t.props.locale,t.props.calendarStartDay):t.props.preSelection}(t.props.preSelection):void 0;e.push(i.createElement(Tr,Dt({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:n,day:a,month:O(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:s,preSelection:u,showWeekNumber:t.props.showWeekNumbers}))),!o;){n++,a=(0,ue.J)(a,1);var l=r&&n>=6,c=!r&&!t.isWeekInMonth(a);if(l||c){if(!t.props.peekNextMonth)break;o=!0}}return e},t.onMonthClick=function(e,r){var n=t.isMonthDisabledForLabelDate(r),i=n.isDisabled,o=n.labelDate;i||t.handleDayClick(qt(o),e)},t.onMonthMouseEnter=function(e){var r=t.isMonthDisabledForLabelDate(e),n=r.isDisabled,i=r.labelDate;n||t.handleDayMouseEnter(qt(i))},t.handleMonthNavigation=function(e,r){var n,i,o,a;null===(i=(n=t.props).setPreSelection)||void 0===i||i.call(n,r),null===(a=null===(o=t.MONTH_REFS[e])||void 0===o?void 0:o.current)||void 0===a||a.focus()},t.handleKeyboardNavigation=function(e,r,n){var i,o=t.props,a=o.selected,s=o.preSelection,u=o.setPreSelection,l=o.minDate,c=o.maxDate,h=o.showFourColumnMonthYearPicker,p=o.showTwoColumnMonthYearPicker;if(s){var d=qr(h,p),f=t.getVerticalOffset(d),m=null===(i=Rr[d])||void 0===i?void 0:i.grid,g=function(e,t,r){var n,i,o=t,a=r;switch(e){case kt.ArrowRight:o=(0,Y.P)(t,1),a=11===r?0:r+1;break;case kt.ArrowLeft:o=(0,H.a)(t,1),a=0===r?11:r-1;break;case kt.ArrowUp:o=(0,H.a)(t,f),a=(null===(n=null===m||void 0===m?void 0:m[0])||void 0===n?void 0:n.includes(r))?r+12-f:r-f;break;case kt.ArrowDown:o=(0,Y.P)(t,f),a=(null===(i=null===m||void 0===m?void 0:m[m.length-1])||void 0===i?void 0:i.includes(r))?r-12+f:r+f}return{newCalculatedDate:o,newCalculatedMonth:a}};if(r!==kt.Enter){var v=function(e,r,n){for(var i=e,o=!1,a=0,s=g(i,r,n),u=s.newCalculatedDate,h=s.newCalculatedMonth;!o;){if(a>=40){u=r,h=n;break}var p;if(l&&u<l)i=kt.ArrowRight,u=(p=g(i,u,h)).newCalculatedDate,h=p.newCalculatedMonth;if(c&&u>c)i=kt.ArrowLeft,u=(p=g(i,u,h)).newCalculatedDate,h=p.newCalculatedMonth;if(ar(u,t.props))u=(p=g(i,u,h)).newCalculatedDate,h=p.newCalculatedMonth;else o=!0;a++}return{newCalculatedDate:u,newCalculatedMonth:h}}(r,s,n),y=v.newCalculatedDate,b=v.newCalculatedMonth;switch(r){case kt.ArrowRight:case kt.ArrowLeft:case kt.ArrowUp:case kt.ArrowDown:t.handleMonthNavigation(b,y)}}else t.isMonthDisabled(n)||(t.onMonthClick(e,n),null===u||void 0===u||u(a))}},t.getVerticalOffset=function(e){var t,r;return null!==(r=null===(t=Rr[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==r?r:0},t.onMonthKeyDown=function(e,r){var n=t.props,i=n.disabledKeyboardNavigation,o=n.handleOnMonthKeyDown,a=e.key;a!==kt.Tab&&e.preventDefault(),i||t.handleKeyboardNavigation(e,a,r),o&&o(e)},t.onQuarterClick=function(e,r){var n=I(t.props.day,r);sr(n,t.props)||t.handleDayClick(Ut(n),e)},t.onQuarterMouseEnter=function(e){var r=I(t.props.day,e);sr(r,t.props)||t.handleDayMouseEnter(Ut(r))},t.handleQuarterNavigation=function(e,r){var n,i,o,a;t.isDisabled(r)||t.isExcluded(r)||(null===(i=(n=t.props).setPreSelection)||void 0===i||i.call(n,r),null===(a=null===(o=t.QUARTER_REFS[e-1])||void 0===o?void 0:o.current)||void 0===a||a.focus())},t.onQuarterKeyDown=function(e,r){var n,i,o=e.key;if(!t.props.disabledKeyboardNavigation)switch(o){case kt.Enter:t.onQuarterClick(e,r),null===(i=(n=t.props).setPreSelection)||void 0===i||i.call(n,t.props.selected);break;case kt.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(4===r?1:r+1,(0,V.z)(t.props.preSelection,1));break;case kt.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(1===r?4:r-1,$(t.props.preSelection,1))}},t.isMonthDisabledForLabelDate=function(e){var r,n=t.props,i=n.day,o=n.disabled,a=n.minDate,s=n.maxDate,u=n.excludeDates,l=n.includeDates,c=M(i,e);return o?{isDisabled:!0,labelDate:M(i,e)}:{isDisabled:null!==(r=(a||s||u||l)&&ir(c,t.props))&&void 0!==r&&r,labelDate:c}},t.isMonthDisabled=function(e){return t.isMonthDisabledForLabelDate(e).isDisabled},t.getMonthClassNames=function(e){var r=t.props,i=r.day,o=r.startDate,a=r.endDate,s=r.preSelection,u=r.monthClassName,l=u?u(M(i,e)):void 0,c=t.getSelection();return(0,n.$)("react-datepicker__month-text","react-datepicker__month-".concat(e),l,{"react-datepicker__month-text--disabled":t.isMonthDisabled(e),"react-datepicker__month-text--selected":c?t.isSelectMonthInList(i,e,c):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&s&&t.isSelectedMonth(i,e,s)&&!t.isMonthSelected()&&!t.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":o&&a?or(o,a,e,i):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(e),"react-datepicker__month-text--range-end":t.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":t.isCurrentMonth(i,e)})},t.getTabIndex=function(e){if(null==t.props.preSelection)return"-1";var r=O(t.props.preSelection),n=t.isMonthDisabledForLabelDate(r).isDisabled;return e!==r||n||t.props.disabledKeyboardNavigation?"-1":"0"},t.getQuarterTabIndex=function(e){if(null==t.props.preSelection)return"-1";var r=j(t.props.preSelection),n=sr(t.props.day,t.props);return e!==r||n||t.props.disabledKeyboardNavigation?"-1":"0"},t.getAriaLabel=function(e){var r=t.props,n=r.chooseDayAriaLabelPrefix,i=void 0===n?"Choose":n,o=r.disabledDayAriaLabelPrefix,a=void 0===o?"Not available":o,s=r.day,u=r.locale,l=M(s,e),c=t.isDisabled(l)||t.isExcluded(l)?a:i;return"".concat(c," ").concat(Tt(l,"MMMM yyyy",u))},t.getQuarterClassNames=function(e){var r=t.props,i=r.day,o=r.startDate,a=r.endDate,s=r.minDate,u=r.maxDate,l=r.excludeDates,c=r.includeDates,h=r.filterDate,p=r.preSelection,d=r.disabledKeyboardNavigation,f=r.disabled,m=(s||u||l||c||h||f)&&sr(I(i,e),t.props),g=t.getSelection();return(0,n.$)("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":m,"react-datepicker__quarter-text--selected":g?t.isSelectQuarterInList(i,e,g):void 0,"react-datepicker__quarter-text--keyboard-selected":!d&&p&&t.isSelectedQuarter(i,e,p)&&!t.isQuarterSelected()&&!m,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":o&&a?cr(o,a,e,i):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(e),"react-datepicker__quarter-text--today":t.isCurrentQuarter(i,e)})},t.getMonthContent=function(e){var r=t.props,n=r.showFullMonthYearPicker,i=r.renderMonthContent,o=r.locale,a=r.day,s=tr(e,o),u=er(e,o);return i?i(e,s,u,a):n?u:s},t.getQuarterContent=function(e){var r,n=t.props,i=n.renderQuarterContent,o=function(e,t){return Tt(I(Lt(),e),"QQQ",t)}(e,n.locale);return null!==(r=null===i||void 0===i?void 0:i(e,o))&&void 0!==r?r:o},t.renderMonths=function(){var e,r=t.props,n=r.showTwoColumnMonthYearPicker,o=r.showFourColumnMonthYearPicker,a=r.day,s=r.selected,u=null===(e=Rr[qr(o,n)])||void 0===e?void 0:e.grid;return null===u||void 0===u?void 0:u.map((function(e,r){return i.createElement("div",{className:"react-datepicker__month-wrapper",key:r},e.map((function(e,r){return i.createElement("div",{ref:t.MONTH_REFS[e],key:r,onClick:function(r){t.onMonthClick(r,e)},onKeyDown:function(r){Nr(r)&&(r.preventDefault(),r.key=kt.Enter),t.onMonthKeyDown(r,e)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(e)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(e)}:void 0,tabIndex:Number(t.getTabIndex(e)),className:t.getMonthClassNames(e),"aria-disabled":t.isMonthDisabled(e),role:"option","aria-label":t.getAriaLabel(e),"aria-current":t.isCurrentMonth(a,e)?"date":void 0,"aria-selected":s?t.isSelectedMonth(a,e,s):void 0},t.getMonthContent(e))})))}))},t.renderQuarters=function(){var e=t.props,r=e.day,n=e.selected;return i.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,o){return i.createElement("div",{key:o,ref:t.QUARTER_REFS[o],role:"option",onClick:function(r){t.onQuarterClick(r,e)},onKeyDown:function(r){t.onQuarterKeyDown(r,e)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(e)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(e)}:void 0,className:t.getQuarterClassNames(e),"aria-selected":n?t.isSelectedQuarter(r,e,n):void 0,tabIndex:Number(t.getQuarterTabIndex(e)),"aria-current":t.isCurrentQuarter(r,e)?"date":void 0},t.getQuarterContent(e))})))},t.getClassNames=function(){var e=t.props,r=e.selectingDate,i=e.selectsStart,o=e.selectsEnd,a=e.showMonthYearPicker,s=e.showQuarterYearPicker,u=e.showWeekPicker;return(0,n.$)("react-datepicker__month",{"react-datepicker__month--selecting-range":r&&(i||o)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":u})},t}return bt(t,e),t.prototype.getSelection=function(){var e=this.props,t=e.selected,r=e.selectedDates;return e.selectsMultiple?r:t?[t]:void 0},t.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,r=e.showQuarterYearPicker,n=e.day,o=e.ariaLabelPrefix,a=void 0===o?"Month ":o,s=a?a.trim()+" ":"",u=Mt(n)?"".concat(s).concat(Tt(n,"MMMM, yyyy",this.props.locale)):"";return t||r?i.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":u,role:"listbox"},t?this.renderMonths():this.renderQuarters()):i.createElement("div",{role:"table"},this.props.dayNamesHeader&&i.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),this.props.monthHeader&&i.createElement("div",{role:"rowgroup"},this.props.monthHeader),i.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":u,role:"rowgroup"},this.renderWeeks()),this.props.monthFooter&&i.createElement("div",{role:"rowgroup"},this.props.monthFooter))},t}(i.Component),Ur=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(e){return t.props.month===e},t.handleOptionKeyDown=function(e,r){var n;switch(r.key){case"Enter":r.preventDefault(),t.onChange(e);break;case"Escape":r.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":r.preventDefault();var i=(e+("ArrowUp"===r.key?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;null===(n=t.monthOptionButtonsRef[i])||void 0===n||n.focus()}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map((function(e,r){return i.createElement("div",{ref:function(e){t.monthOptionButtonsRef[r]=e,t.isSelectedMonth(r)&&(null===e||void 0===e||e.focus())},role:"button",tabIndex:0,className:t.isSelectedMonth(r)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,r),onKeyDown:t.handleOptionKeyDown.bind(t,r),"aria-selected":t.isSelectedMonth(r)?"true":void 0},t.isSelectedMonth(r)?i.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",e)}))},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return bt(t,e),t.prototype.render=function(){return i.createElement(xt,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(i.Component),Hr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map((function(e,t){return i.createElement("option",{key:e,value:t},e)}))},t.renderSelectMode=function(e){return i.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,r){return i.createElement("button",{key:"read",type:"button",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},i.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),i.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},r[t.props.month]))},t.renderDropdown=function(e){return i.createElement(Ur,Dt({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var r=t.state.dropdownVisible,n=[t.renderReadView(!r,e)];return r&&n.unshift(t.renderDropdown(e)),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return bt(t,e),t.prototype.render=function(){var e,t=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return tr(e,t.props.locale)}:function(e){return er(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(r);break;case"select":e=this.renderSelectMode(r)}return i.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(i.Component);function Wr(e,t,r){for(var n=[],i=null!==e&&void 0!==e?e:J(r,5),o=null!==t&&void 0!==t?t:(0,K.e)(r,5),a=qt(i),s=qt(o);!ne(a,s);)n.push(Lt(a)),a=(0,Y.P)(a,1);return n}var Yr=function(e){function t(t){var r=e.call(this,t)||this;return r.renderOptions=function(){return r.state.monthYearsList.map((function(e){var t=(0,le.W)(e),n=Vt(r.props.date,e)&&$t(r.props.date,e);return i.createElement("div",{className:n?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":n?"true":void 0},n?i.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Tt(e,r.props.dateFormat,r.props.locale))}))},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:Wr(r.props.minDate,r.props.maxDate,r.props.date)},r}return bt(t,e),t.prototype.render=function(){var e=(0,n.$)({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return i.createElement(xt,{className:e,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(i.Component),Vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e,r,n=null!==(e=t.props.minDate)&&void 0!==e?e:J(t.props.date,5),o=null!==(r=t.props.maxDate)&&void 0!==r?r:(0,K.e)(t.props.date,5),a=qt(n),s=qt(o),u=[];!ne(a,s);){var l=(0,le.W)(a);u.push(i.createElement("option",{key:l,value:l},Tt(a,t.props.dateFormat,t.props.locale))),a=(0,Y.P)(a,1)}return u},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return i.createElement("select",{value:(0,le.W)(qt(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var r=Tt(t.props.date,t.props.dateFormat,t.props.locale);return i.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},i.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),i.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},r))},t.renderDropdown=function(){return i.createElement(Yr,Dt({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,r=[t.renderReadView(!e)];return e&&r.unshift(t.renderDropdown()),r},t.onChange=function(e){t.toggleDropdown();var r=Lt(e);Vt(t.props.date,r)&&$t(t.props.date,r)||t.props.onChange(r)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return bt(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return i.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(i.Component),$r=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.state={height:null},r.scrollToTheSelectedTime=function(){requestAnimationFrame((function(){var e,n,i;r.list&&(r.list.scrollTop=null!==(i=r.centerLi&&t.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-(null!==(n=null===(e=r.header)||void 0===e?void 0:e.clientHeight)&&void 0!==n?n:0):r.list.clientHeight,r.centerLi))&&void 0!==i?i:0)}))},r.handleClick=function(e){var t,n;(r.props.minTime||r.props.maxTime)&&fr(e,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&dr(e,r.props)||null===(n=(t=r.props).onChange)||void 0===n||n.call(t,e)},r.isSelectedTime=function(e){var t=It(r.props.selected);return t&&Sr(t,e)},r.isDisabledTime=function(e){return(r.props.minTime||r.props.maxTime)&&fr(e,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&dr(e,r.props)},r.liClasses=function(e){var n,i=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(e):void 0];return r.isSelectedTime(e)&&i.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(e)&&i.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(3600*q(e)+60*z(e)+U(e))%(60*(null!==(n=r.props.intervals)&&void 0!==n?n:t.defaultProps.intervals))!==0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},r.handleOnKeyDown=function(e,t){var n,i;e.key===kt.Space&&(e.preventDefault(),e.key=kt.Enter),(e.key===kt.ArrowUp||e.key===kt.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===kt.ArrowDown||e.key===kt.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===kt.Enter&&r.handleClick(t),null===(i=(n=r.props).handleOnKeyDown)||void 0===i||i.call(n,e)},r.renderTimes=function(){for(var e,n=[],o="string"===typeof r.props.format?r.props.format:"p",a=null!==(e=r.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,s=It(r.props.selected)||It(r.props.openToDate)||Lt(),u=jt(s),l=r.props.injectTimes&&r.props.injectTimes.sort((function(e,t){return e.getTime()-t.getTime()})),c=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+r-+t)/36e5)}(s),h=c/a,p=0;p<h;p++){var d=(0,te.z)(u,p*a);if(n.push(d),l){var f=_r(u,d,p,a,l);n=n.concat(f)}}var m=n.reduce((function(e,t){return t.getTime()<=s.getTime()?t:e}),n[0]);return n.map((function(e){return i.createElement("li",{key:e.valueOf(),onClick:r.handleClick.bind(r,e),className:r.liClasses(e),ref:function(t){e===m&&(r.centerLi=t)},onKeyDown:function(t){r.handleOnKeyDown(t,e)},tabIndex:e===m?0:-1,role:"option","aria-selected":r.isSelectedTime(e)?"true":void 0,"aria-disabled":r.isDisabledTime(e)?"true":void 0},Tt(e,o,r.props.locale))}))},r.renderTimeCaption=function(){return!1===r.props.showTimeCaption?i.createElement(i.Fragment,null):i.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(r.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){r.header=e}},i.createElement("div",{className:"react-datepicker-time__header"},r.props.timeCaption))},r}return bt(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},t.prototype.componentWillUnmount=function(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()},t.prototype.observeDatePickerHeightChanges=function(){var e=this,t=this.props.monthRef;this.updateContainerHeight(),t&&(this.resizeObserver=new ResizeObserver((function(){e.updateContainerHeight()})),this.resizeObserver.observe(t))},t.prototype.updateContainerHeight=function(){if(this.props.monthRef&&this.header){var e=this.props.monthRef.clientHeight-this.header.clientHeight;this.state.height!==e&&this.setState({height:e})}},t.prototype.render=function(){var e,r=this,n=this.state.height;return i.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(e=this.props.todayButton)&&void 0!==e?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),i.createElement("div",{className:"react-datepicker__time"},i.createElement("div",{className:"react-datepicker__time-box"},i.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){r.list=e},style:n?{height:n}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(i.Component),Gr=function(e){function t(t){var r=e.call(this,t)||this;return r.YEAR_REFS=wt([],Array(r.props.yearItemNumber),!0).map((function(){return(0,i.createRef)()})),r.isDisabled=function(e){return rr(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(e){return nr(e,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var e;return null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection},r.updateFocusOnPaginate=function(e){window.requestAnimationFrame((function(){var t,n;null===(n=null===(t=r.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()}))},r.handleYearClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleYearNavigation=function(e,t){var n,i,o,a,s=r.props,u=s.date,l=s.yearItemNumber;if(void 0!==u&&void 0!==l){var c=Fr(u,l).startPeriod;r.isDisabled(t)||r.isExcluded(t)||(null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,t),e-c<0?r.updateFocusOnPaginate(l-(c-e)):e-c>=l?r.updateFocusOnPaginate(Math.abs(l-(e-c))):null===(a=null===(o=r.YEAR_REFS[e-c])||void 0===o?void 0:o.current)||void 0===a||a.focus())}},r.isSameDay=function(e,t){return Kt(e,t)},r.isCurrentYear=function(e){return e===T(Lt())},r.isRangeStart=function(e){return r.props.startDate&&r.props.endDate&&Vt(ce(Lt(),e),r.props.startDate)},r.isRangeEnd=function(e){return r.props.startDate&&r.props.endDate&&Vt(ce(Lt(),e),r.props.endDate)},r.isInRange=function(e){return ur(e,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(e){var t=r.props,n=t.selectsStart,i=t.selectsEnd,o=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||i||o)||!r.selectingDate())&&(n&&s?ur(e,r.selectingDate(),s):(i&&a||!(!o||!a||s))&&ur(e,a,r.selectingDate()))},r.isSelectingRangeStart=function(e){var t;if(!r.isInSelectingRange(e))return!1;var n=r.props,i=n.startDate,o=n.selectsStart,a=ce(Lt(),e);return Vt(a,o?null!==(t=r.selectingDate())&&void 0!==t?t:null:null!==i&&void 0!==i?i:null)},r.isSelectingRangeEnd=function(e){var t;if(!r.isInSelectingRange(e))return!1;var n=r.props,i=n.endDate,o=n.selectsEnd,a=n.selectsRange,s=ce(Lt(),e);return Vt(s,o||a?null!==(t=r.selectingDate())&&void 0!==t?t:null:null!==i&&void 0!==i?i:null)},r.isKeyboardSelected=function(e){if(!r.props.disabledKeyboardNavigation&&void 0!==r.props.date&&null!=r.props.preSelection){var t=r.props,n=t.minDate,i=t.maxDate,o=t.excludeDates,a=t.includeDates,s=t.filterDate,u=t.selected,l=zt(ce(r.props.date,e)),c=(n||i||o||a||s)&&lr(e,r.props),h=!!u&&Kt(l,zt(u)),p=Kt(l,zt(r.props.preSelection));return!r.props.inline&&!h&&p&&!c}},r.isSelectedYear=function(e){var t=r.props,n=t.selectsMultiple,i=t.selected,o=t.selectedDates;return n?null===o||void 0===o?void 0:o.some((function(t){return e===T(t)})):!!i&&e===T(i)},r.onYearClick=function(e,t){var n=r.props.date;void 0!==n&&r.handleYearClick(zt(ce(n,t)),e)},r.onYearKeyDown=function(e,t){var n,i,o=e.key,a=r.props,s=a.date,u=a.yearItemNumber,l=a.handleOnKeyDown;if(o!==kt.Tab&&e.preventDefault(),!r.props.disabledKeyboardNavigation)switch(o){case kt.Enter:if(null==r.props.selected)break;r.onYearClick(e,t),null===(i=(n=r.props).setPreSelection)||void 0===i||i.call(n,r.props.selected);break;case kt.ArrowRight:if(null==r.props.preSelection)break;r.handleYearNavigation(t+1,(0,K.e)(r.props.preSelection,1));break;case kt.ArrowLeft:if(null==r.props.preSelection)break;r.handleYearNavigation(t-1,J(r.props.preSelection,1));break;case kt.ArrowUp:if(void 0===s||void 0===u||null==r.props.preSelection)break;var c=Fr(s,u).startPeriod;if((d=t-(p=3))<c){var h=u%p;t>=c&&t<c+h?p=h:p+=h,d=t-p}r.handleYearNavigation(d,J(r.props.preSelection,p));break;case kt.ArrowDown:if(void 0===s||void 0===u||null==r.props.preSelection)break;var p,d,f=Fr(s,u).endPeriod;if((d=t+(p=3))>f){h=u%p;t<=f&&t>f-h?p=h:p+=h,d=t+p}r.handleYearNavigation(d,(0,K.e)(r.props.preSelection,p))}l&&l(e)},r.getYearClassNames=function(e){var t=r.props,i=t.date,o=t.disabled,a=t.minDate,s=t.maxDate,u=t.excludeDates,l=t.includeDates,c=t.filterDate,h=t.yearClassName;return(0,n.$)("react-datepicker__year-text","react-datepicker__year-".concat(e),i?null===h||void 0===h?void 0:h(ce(i,e)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(e),"react-datepicker__year-text--disabled":(a||s||u||l||c||o)&&lr(e,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(e),"react-datepicker__year-text--range-start":r.isRangeStart(e),"react-datepicker__year-text--range-end":r.isRangeEnd(e),"react-datepicker__year-text--in-range":r.isInRange(e),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(e),"react-datepicker__year-text--today":r.isCurrentYear(e)})},r.getYearTabIndex=function(e){if(r.props.disabledKeyboardNavigation||null==r.props.preSelection)return"-1";var t=T(r.props.preSelection),n=lr(e,r.props);return e!==t||n?"-1":"0"},r.getYearContent=function(e){return r.props.renderYearContent?r.props.renderYearContent(e):e},r}return bt(t,e),t.prototype.render=function(){var e=this,t=[],r=this.props,n=r.date,o=r.yearItemNumber,a=r.onYearMouseEnter,s=r.onYearMouseLeave;if(void 0===n)return null;for(var u=Fr(n,o),l=u.startPeriod,c=u.endPeriod,h=function(r){t.push(i.createElement("div",{ref:p.YEAR_REFS[r-l],onClick:function(t){e.onYearClick(t,r)},onKeyDown:function(t){Nr(t)&&(t.preventDefault(),t.key=kt.Enter),e.onYearKeyDown(t,r)},tabIndex:Number(p.getYearTabIndex(r)),className:p.getYearClassNames(r),onMouseEnter:p.props.usePointerEvent?void 0:function(e){return a(e,r)},onPointerEnter:p.props.usePointerEvent?function(e){return a(e,r)}:void 0,onMouseLeave:p.props.usePointerEvent?void 0:function(e){return s(e,r)},onPointerLeave:p.props.usePointerEvent?function(e){return s(e,r)}:void 0,key:r,"aria-current":p.isCurrentYear(r)?"date":void 0},p.getYearContent(r)))},p=this,d=l;d<=c;d++)h(d);return i.createElement("div",{className:"react-datepicker__year"},i.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},t}(i.Component);function Kr(e,t,r,n){for(var i=[],o=0;o<2*t+1;o++){var a=e+t-o,s=!0;r&&(s=T(r)<=a),n&&s&&(s=T(n)>=a),s&&i.push(a)}return i}var Jr=function(e){function t(t){var r=e.call(this,t)||this;r.yearOptionButtonsRef={},r.handleOptionKeyDown=function(e,t){var n;switch(t.key){case"Enter":t.preventDefault(),r.onChange(e);break;case"Escape":t.preventDefault(),r.props.onCancel();break;case"ArrowUp":case"ArrowDown":t.preventDefault();var i=e+("ArrowUp"===t.key?1:-1);r.yearOptionButtonsRef[i]&&(null===(n=r.yearOptionButtonsRef[i])||void 0===n||n.focus())}},r.renderOptions=function(){r.yearOptionButtonsRef={};var e=r.props.year,t=r.state.yearsList.map((function(t){return i.createElement("div",{ref:function(n){r.yearOptionButtonsRef[t]=n,t===e&&(null===n||void 0===n||n.focus())},role:"button",tabIndex:0,className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),onKeyDown:r.handleOptionKeyDown.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?i.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?T(r.props.minDate):null,o=r.props.maxDate?T(r.props.maxDate):null;return o&&r.state.yearsList.find((function(e){return e===o}))||t.unshift(i.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},i.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(i.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},i.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var n=t.yearDropdownItemNumber,o=t.scrollableYearDropdown,a=n||(o?10:5);return r.state={yearsList:Kr(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=(0,i.createRef)(),r}return bt(t,e),t.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,r=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=r&&r instanceof HTMLElement?r.offsetTop+(r.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},t.prototype.render=function(){var e=(0,n.$)({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return i.createElement(xt,{className:e,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},t}(i.Component),Zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?T(t.props.minDate):1900,r=t.props.maxDate?T(t.props.maxDate):2100,n=[],o=e;o<=r;o++)n.push(i.createElement("option",{key:o,value:o},o));return n},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return i.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return i.createElement("button",{key:"read",type:"button",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},i.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),i.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return i.createElement(Jr,Dt({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,r=[t.renderReadView(!e)];return e&&r.unshift(t.renderDropdown()),r},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},(function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)}))},t.handleYearChange=function(e,r){var n;null===(n=t.onSelect)||void 0===n||n.call(t,e,r),t.setOpen()},t.onSelect=function(e,r){var n,i;null===(i=(n=t.props).onSelect)||void 0===i||i.call(n,e,r)},t.setOpen=function(){var e,r;null===(r=(e=t.props).setOpen)||void 0===r||r.call(e,!0)},t}return bt(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return i.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(i.Component),Qr=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Xr="react-datepicker-ignore-onclickoutside",en=function(e){function t(r){var o=e.call(this,r)||this;return o.monthContainer=void 0,o.handleClickOutside=function(e){o.props.onClickOutside(e)},o.setClickOutsideRef=function(){return o.containerRef.current},o.handleDropdownFocus=function(e){var t,r;(function(e){var t=(e.className||"").split(/\s+/);return Qr.some((function(e){return t.indexOf(e)>=0}))})(e.target)&&(null===(r=(t=o.props).onDropdownFocus)||void 0===r||r.call(t,e))},o.getDateInView=function(){var e=o.props,t=e.preSelection,r=e.selected,n=e.openToDate,i=br(o.props),a=Dr(o.props),s=Lt(),u=n||r||t;return u||(i&&(0,ie.Y)(s,i)?i:a&&ne(s,a)?a:s)},o.increaseMonth=function(){o.setState((function(e){var t=e.date;return{date:(0,Y.P)(t,1)}}),(function(){return o.handleMonthChange(o.state.date)}))},o.decreaseMonth=function(){o.setState((function(e){var t=e.date;return{date:(0,H.a)(t,1)}}),(function(){return o.handleMonthChange(o.state.date)}))},o.handleDayClick=function(e,t,r){o.props.onSelect(e,t,r),o.props.setPreSelection&&o.props.setPreSelection(e)},o.handleDayMouseEnter=function(e){o.setState({selectingDate:e}),o.props.onDayMouseEnter&&o.props.onDayMouseEnter(e)},o.handleMonthMouseLeave=function(){o.setState({selectingDate:void 0}),o.props.onMonthMouseLeave&&o.props.onMonthMouseLeave()},o.handleYearMouseEnter=function(e,t){o.setState({selectingDate:ce(Lt(),t)}),o.props.onYearMouseEnter&&o.props.onYearMouseEnter(e,t)},o.handleYearMouseLeave=function(e,t){o.props.onYearMouseLeave&&o.props.onYearMouseLeave(e,t)},o.handleYearChange=function(e){var t,r,n,i;null===(r=(t=o.props).onYearChange)||void 0===r||r.call(t,e),o.setState({isRenderAriaLiveMessage:!0}),o.props.adjustDateOnChange&&(o.props.onSelect(e),null===(i=(n=o.props).setOpen)||void 0===i||i.call(n,!0)),o.props.setPreSelection&&o.props.setPreSelection(e)},o.getEnabledPreSelectionDateForMonth=function(e){if(!rr(e,o.props))return e;for(var t=qt(e),r=Yt(e),n=(0,he.c)(r,t),i=null,a=0;a<=n;a++){var s=(0,se.f)(t,a);if(!rr(s,o.props)){i=s;break}}return i},o.handleMonthChange=function(e){var t,r,n,i=null!==(t=o.getEnabledPreSelectionDateForMonth(e))&&void 0!==t?t:e;o.handleCustomMonthChange(i),o.props.adjustDateOnChange&&(o.props.onSelect(i),null===(n=(r=o.props).setOpen)||void 0===n||n.call(r,!0)),o.props.setPreSelection&&o.props.setPreSelection(i)},o.handleCustomMonthChange=function(e){var t,r;null===(r=(t=o.props).onMonthChange)||void 0===r||r.call(t,e),o.setState({isRenderAriaLiveMessage:!0})},o.handleMonthYearChange=function(e){o.handleYearChange(e),o.handleMonthChange(e)},o.changeYear=function(e){o.setState((function(t){return{date:ce(t.date,Number(e))}}),(function(){return o.handleYearChange(o.state.date)}))},o.changeMonth=function(e){o.setState((function(t){return{date:M(t.date,Number(e))}}),(function(){var e,t;o.handleMonthChange(o.state.date),null===(t=(e=o.props).onMonthSelectedInChange)||void 0===t||t.call(e,0)}))},o.changeMonthYear=function(e){o.setState((function(t){return{date:ce(M(t.date,O(e)),T(e))}}),(function(){return o.handleMonthYearChange(o.state.date)}))},o.header=function(e,t){if(void 0===e&&(e=o.state.date),void 0===t&&(t=0),!Mt(e))return[];var r=o.props.disabled,a=Rt(e,o.props.locale,o.props.calendarStartDay),s=[];return o.props.showWeekNumbers&&s.push(i.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(r?"react-datepicker__day-name--disabled":""),role:"columnheader"},i.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),i.createElement("span",{"aria-hidden":"true"},o.props.weekLabel||"#"))),s.concat([0,1,2,3,4,5,6].map((function(e){var s=(0,se.f)(a,e),u=o.formatWeekday(s,o.props.locale),l=Tt(s,"EEEE",o.props.locale),c=o.props.weekDayClassName?o.props.weekDayClassName(s):void 0;if(o.props.renderCustomDayName){var h=o.props.renderCustomDayName({day:s,shortName:u,fullName:l,locale:o.props.locale,customDayNameCount:t});return i.createElement("div",{key:e,role:"columnheader",className:(0,n.$)("react-datepicker__day-name",c,r?"react-datepicker__day-name--disabled":"")},h)}return i.createElement("div",{key:e,role:"columnheader",className:(0,n.$)("react-datepicker__day-name",c,r?"react-datepicker__day-name--disabled":"")},i.createElement("span",{className:"react-datepicker__sr-only"},l),i.createElement("span",{"aria-hidden":"true"},u))})))},o.formatWeekday=function(e,t){return o.props.formatWeekDay?function(e,t,r){return t(Tt(e,"EEEE",r))}(e,o.props.formatWeekDay,t):o.props.useWeekdaysShort?function(e,t){return Tt(e,"EEE",t)}(e,t):function(e,t){return Tt(e,"EEEEEE",t)}(e,t)},o.decreaseYear=function(){o.setState((function(e){var r;return{date:J(e.date,o.props.showYearPicker?null!==(r=o.props.yearItemNumber)&&void 0!==r?r:t.defaultProps.yearItemNumber:1)}}),(function(){return o.handleYearChange(o.state.date)}))},o.clearSelectingDate=function(){o.setState({selectingDate:void 0})},o.renderPreviousButton=function(){var e,r,n;if(!o.props.renderCustomHeader){var a,s=null!==(e=o.props.monthsShown)&&void 0!==e?e:t.defaultProps.monthsShown,u=o.props.showPreviousMonths?s-1:0,l=null!==(r=o.props.monthSelectedIn)&&void 0!==r?r:u,c=(0,H.a)(o.state.date,l);switch(!0){case o.props.disabled:a=!0;break;case o.props.showMonthYearPicker:a=vr(o.state.date,o.props);break;case o.props.showYearPicker:a=function(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.yearItemNumber,o=void 0===i?12:i,a=Fr(zt(J(e,o)),o).endPeriod,s=n&&T(n);return s&&s>a||!1}(o.state.date,o.props);break;case o.props.showQuarterYearPicker:a=function(e,t){var r=void 0===t?{}:t,n=r.minDate,i=r.includeDates,o=$((0,b.D)(e),1);return n&&G(n,o)>0||i&&i.every((function(e){return G(e,o)>0}))||!1}(o.state.date,o.props);break;default:a=mr(c,o.props)}if(((null!==(n=o.props.forceShowMonthNavigation)&&void 0!==n?n:t.defaultProps.forceShowMonthNavigation)||o.props.showDisabledMonthNavigation||!a)&&!o.props.showTimeSelectOnly){var h=["react-datepicker__navigation","react-datepicker__navigation--previous"],p=o.decreaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(p=o.decreaseYear),a&&o.props.showDisabledMonthNavigation&&(h.push("react-datepicker__navigation--previous--disabled"),p=void 0);var d=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,f=o.props,m=f.previousMonthButtonLabel,g=void 0===m?t.defaultProps.previousMonthButtonLabel:m,v=f.previousYearButtonLabel,y=void 0===v?t.defaultProps.previousYearButtonLabel:v,D=o.props,w=D.previousMonthAriaLabel,k=void 0===w?"string"===typeof g?g:"Previous Month":w,_=D.previousYearAriaLabel,x=void 0===_?"string"===typeof y?y:"Previous Year":_;return i.createElement("button",{type:"button",className:h.join(" "),onClick:p,onKeyDown:o.props.handleOnKeyDown,"aria-label":d?x:k},i.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},d?y:g))}}},o.increaseYear=function(){o.setState((function(e){var r,n=e.date;return{date:(0,K.e)(n,o.props.showYearPicker?null!==(r=o.props.yearItemNumber)&&void 0!==r?r:t.defaultProps.yearItemNumber:1)}}),(function(){return o.handleYearChange(o.state.date)}))},o.renderNextButton=function(){var e;if(!o.props.renderCustomHeader){var r;switch(!0){case o.props.disabled:r=!0;break;case o.props.showMonthYearPicker:r=yr(o.state.date,o.props);break;case o.props.showYearPicker:r=function(e,t){var r=void 0===t?{}:t,n=r.maxDate,i=r.yearItemNumber,o=void 0===i?12:i,a=Fr((0,K.e)(e,o),o).startPeriod,s=n&&T(n);return s&&s<a||!1}(o.state.date,o.props);break;case o.props.showQuarterYearPicker:r=function(e,t){var r=void 0===t?{}:t,n=r.maxDate,i=r.includeDates,o=(0,B.Q)(e),a=(0,V.z)(o,1);return n&&G(a,n)>0||i&&i.every((function(e){return G(a,e)>0}))||!1}(o.state.date,o.props);break;default:r=gr(o.state.date,o.props)}if(((null!==(e=o.props.forceShowMonthNavigation)&&void 0!==e?e:t.defaultProps.forceShowMonthNavigation)||o.props.showDisabledMonthNavigation||!r)&&!o.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--next"];o.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),o.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var a=o.increaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(a=o.increaseYear),r&&o.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),a=void 0);var s=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,u=o.props,l=u.nextMonthButtonLabel,c=void 0===l?t.defaultProps.nextMonthButtonLabel:l,h=u.nextYearButtonLabel,p=void 0===h?t.defaultProps.nextYearButtonLabel:h,d=o.props,f=d.nextMonthAriaLabel,m=void 0===f?"string"===typeof c?c:"Next Month":f,g=d.nextYearAriaLabel,v=void 0===g?"string"===typeof p?p:"Next Year":g;return i.createElement("button",{type:"button",className:n.join(" "),onClick:a,onKeyDown:o.props.handleOnKeyDown,"aria-label":s?v:m},i.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},s?p:c))}}},o.renderCurrentMonth=function(e){void 0===e&&(e=o.state.date);var t=["react-datepicker__current-month"];return o.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),o.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),o.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),i.createElement("h2",{className:t.join(" ")},Mt(e)?Tt(e,o.props.dateFormat,o.props.locale):"")},o.renderYearDropdown=function(e){if(void 0===e&&(e=!1),o.props.showYearDropdown&&!e)return i.createElement(Zr,Dt({},t.defaultProps,o.props,{date:o.state.date,onChange:o.changeYear,year:T(o.state.date)}))},o.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),o.props.showMonthDropdown&&!e)return i.createElement(Hr,Dt({},t.defaultProps,o.props,{month:O(o.state.date),onChange:o.changeMonth}))},o.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),o.props.showMonthYearDropdown&&!e)return i.createElement(Vr,Dt({},t.defaultProps,o.props,{date:o.state.date,onChange:o.changeMonthYear}))},o.handleTodayButtonClick=function(e){o.props.onSelect(Ht(),e),o.props.setPreSelection&&o.props.setPreSelection(Ht())},o.renderTodayButton=function(){if(o.props.todayButton&&!o.props.showTimeSelectOnly)return i.createElement("div",{className:"react-datepicker__today-button",onClick:o.handleTodayButtonClick},o.props.todayButton)},o.renderDayNamesHeader=function(e,t){return void 0===t&&(t=0),i.createElement("div",{className:"react-datepicker__day-names",role:"row"},o.header(e,t))},o.renderDefaultHeader=function(e){var t=e.monthDate,r=e.i,a=i.createElement("div",{className:(0,n.$)("react-datepicker__header",{"react-datepicker__header--has-time-select":o.props.showTimeSelect,"react-datepicker__header--middle":"middle"===o.props.monthHeaderPosition,"react-datepicker__header--bottom":"bottom"===o.props.monthHeaderPosition})},o.renderCurrentMonth(t),i.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(o.props.dropdownMode),onFocus:o.handleDropdownFocus},o.renderMonthDropdown(0!==r),o.renderMonthYearDropdown(0!==r),o.renderYearDropdown(0!==r)));return"top"===o.props.monthHeaderPosition?a:i.createElement("div",{className:"react-datepicker__header-wrapper"},o.renderPreviousButton()||null,o.renderNextButton()||null,a)},o.renderCustomHeader=function(e){var t,r,n=e.monthDate,a=e.i;if(o.props.showTimeSelect&&!o.state.monthContainer||o.props.showTimeSelectOnly)return null;var s,u=o.props,l=u.showYearPicker,c=u.yearItemNumber;if(l){var h=Fr(n,c);s={startYear:h.startPeriod,endYear:h.endPeriod}}var p=mr(o.state.date,o.props),d=gr(o.state.date,o.props),f=vr(o.state.date,o.props),m=yr(o.state.date,o.props);return i.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:o.props.onDropdownFocus},null===(r=(t=o.props).renderCustomHeader)||void 0===r?void 0:r.call(t,Dt(Dt(Dt({},o.state),l&&{visibleYearsRange:s}),{customHeaderCount:a,monthDate:n,changeMonth:o.changeMonth,changeYear:o.changeYear,decreaseMonth:o.decreaseMonth,increaseMonth:o.increaseMonth,decreaseYear:o.decreaseYear,increaseYear:o.increaseYear,prevMonthButtonDisabled:p,nextMonthButtonDisabled:d,prevYearButtonDisabled:f,nextYearButtonDisabled:m})))},o.renderYearHeader=function(e){var r=e.monthDate,n=o.props,a=n.showYearPicker,s=n.yearItemNumber,u=Fr(r,void 0===s?t.defaultProps.yearItemNumber:s),l=u.startPeriod,c=u.endPeriod;return i.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},a?"".concat(l," - ").concat(c):T(r))},o.renderHeader=function(e){var t=e.monthDate,r=e.i,n={monthDate:t,i:void 0===r?0:r};switch(!0){case void 0!==o.props.renderCustomHeader:return o.renderCustomHeader(n);case o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker:return o.renderYearHeader(n);default:return o.renderDefaultHeader(n)}},o.renderMonths=function(){var e,r;if(!o.props.showTimeSelectOnly&&!o.props.showYearPicker){for(var n=[],a=null!==(e=o.props.monthsShown)&&void 0!==e?e:t.defaultProps.monthsShown,s=o.props.showPreviousMonths?a-1:0,u=o.props.showMonthYearPicker||o.props.showQuarterYearPicker?(0,K.e)(o.state.date,s):(0,H.a)(o.state.date,s),l=null!==(r=o.props.monthSelectedIn)&&void 0!==r?r:s,c=0;c<a;++c){var h=c-l+s,p=o.props.showMonthYearPicker||o.props.showQuarterYearPicker?(0,K.e)(u,h):(0,Y.P)(u,h),d="month-".concat(c),f=c<a-1,m=c>0;n.push(i.createElement("div",{key:d,ref:function(e){o.monthContainer=null!==e&&void 0!==e?e:void 0},className:"react-datepicker__month-container"},"top"===o.props.monthHeaderPosition&&o.renderHeader({monthDate:p,i:c}),i.createElement(zr,Dt({},t.defaultProps,o.props,{containerRef:o.containerRef,ariaLabelPrefix:o.props.monthAriaLabelPrefix,day:p,onDayClick:o.handleDayClick,handleOnKeyDown:o.props.handleOnDayKeyDown,handleOnMonthKeyDown:o.props.handleOnKeyDown,onDayMouseEnter:o.handleDayMouseEnter,onMouseLeave:o.handleMonthMouseLeave,orderInDisplay:c,selectingDate:o.state.selectingDate,monthShowsDuplicateDaysEnd:f,monthShowsDuplicateDaysStart:m,dayNamesHeader:o.renderDayNamesHeader(p,c),monthHeader:"middle"===o.props.monthHeaderPosition?o.renderHeader({monthDate:p,i:c}):void 0,monthFooter:"bottom"===o.props.monthHeaderPosition?o.renderHeader({monthDate:p,i:c}):void 0}))))}return n}},o.renderYears=function(){if(!o.props.showTimeSelectOnly)return o.props.showYearPicker?i.createElement("div",{className:"react-datepicker__year--container"},o.renderHeader({monthDate:o.state.date}),i.createElement(Gr,Dt({},t.defaultProps,o.props,{selectingDate:o.state.selectingDate,date:o.state.date,onDayClick:o.handleDayClick,clearSelectingDate:o.clearSelectingDate,onYearMouseEnter:o.handleYearMouseEnter,onYearMouseLeave:o.handleYearMouseLeave}))):void 0},o.renderTimeSection=function(){if(o.props.showTimeSelect&&(o.state.monthContainer||o.props.showTimeSelectOnly))return i.createElement($r,Dt({},t.defaultProps,o.props,{onChange:o.props.onTimeChange,format:o.props.timeFormat,intervals:o.props.timeIntervals,monthRef:o.state.monthContainer}))},o.renderInputTimeSection=function(){var e,r;if(o.props.showTimeInput){if(o.props.selectsRange){var n=o.props,a=n.startDate,s=n.endDate,u=a?new Date(a):void 0,l=u&&Mt(u)&&Boolean(a)?"".concat(xr(u.getHours()),":").concat(xr(u.getMinutes())):"",c=s?new Date(s):void 0,h=c&&Mt(c)&&Boolean(s)?"".concat(xr(c.getHours()),":").concat(xr(c.getMinutes())):"";return i.createElement(i.Fragment,null,i.createElement(Pr,Dt({},t.defaultProps,o.props,{date:u,timeString:l,onChange:function(e){var t,r;null===(r=(t=o.props).onTimeChange)||void 0===r||r.call(t,e,"start")},timeInputLabel:(null!==(e=o.props.timeInputLabel)&&void 0!==e?e:"Time")+" (Start)"})),i.createElement(Pr,Dt({},t.defaultProps,o.props,{date:c,timeString:h,onChange:function(e){var t,r;null===(r=(t=o.props).onTimeChange)||void 0===r||r.call(t,e,"end")},timeInputLabel:(null!==(r=o.props.timeInputLabel)&&void 0!==r?r:"Time")+" (End)"})))}var p=o.props.selected?new Date(o.props.selected):void 0,d=p&&Mt(p)&&Boolean(o.props.selected)?"".concat(xr(p.getHours()),":").concat(xr(p.getMinutes())):"";return i.createElement(Pr,Dt({},t.defaultProps,o.props,{date:p,timeString:d,onChange:function(e){var t,r;null===(r=(t=o.props).onTimeChange)||void 0===r||r.call(t,e)}}))}},o.renderAriaLiveRegion=function(){var e;if(!Mt(o.state.date))return i.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var r,n=Fr(o.state.date,null!==(e=o.props.yearItemNumber)&&void 0!==e?e:t.defaultProps.yearItemNumber),a=n.startPeriod,s=n.endPeriod;return r=o.props.showYearPicker?"".concat(a," - ").concat(s):o.props.showMonthYearPicker||o.props.showQuarterYearPicker?T(o.state.date):"".concat(er(O(o.state.date),o.props.locale)," ").concat(T(o.state.date)),i.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o.state.isRenderAriaLiveMessage&&r)},o.renderChildren=function(){if(o.props.children)return i.createElement("div",{className:"react-datepicker__children-container"},o.props.children)},o.containerRef=(0,i.createRef)(),o.state={date:o.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},o}return bt(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:Xr,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:12,monthHeaderPosition:"top"}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},t.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||!Mt(this.props.preSelection)||Kt(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Kt(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var r=!$t(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return r&&t.handleCustomMonthChange(t.state.date)}))}},t.prototype.render=function(){var e=this.props.container||_t;return i.createElement(xt,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},i.createElement("div",{style:{display:"contents"},ref:this.containerRef},i.createElement(e,{className:(0,n.$)("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),"top"===this.props.monthHeaderPosition&&this.renderPreviousButton(),"top"===this.props.monthHeaderPosition&&this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},t}(i.Component),tn=function(e){var t=e.icon,r=e.className,n=void 0===r?"":r,o=e.onClick,a="react-datepicker__calendar-icon";if("string"===typeof t)return i.createElement("i",{className:"".concat(a," ").concat(t," ").concat(n),"aria-hidden":"true",onClick:o});if(i.isValidElement(t)){var s=t;return i.cloneElement(s,{className:"".concat(s.props.className||""," ").concat(a," ").concat(n),onClick:function(e){"function"===typeof s.props.onClick&&s.props.onClick(e),"function"===typeof o&&o(e)}})}return i.createElement("svg",{className:"".concat(a," ").concat(n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},i.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},rn=function(e){function t(t){var r=e.call(this,t)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return bt(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return ye.createPortal(this.props.children,this.el)},t}(i.Component),nn=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},on=function(e){function t(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=r.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(nn)},r.handleFocusStart=function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},r.handleFocusEnd=function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()},r.tabLoopRef=(0,i.createRef)(),r}return bt(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?i.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},i.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,i.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(i.Component);var an=function(e){function t(t){var r,n,o,a="boolean"!==typeof t.hidePopper||t.hidePopper,s=(0,i.useRef)(null),u=vt(Dt({open:!a,whileElementsMounted:qe,placement:t.popperPlacement,middleware:wt([(n={padding:15},{...Ue(n),options:[n,o]}),Ze(10),Qe({element:s})],null!==(r=t.popperModifiers)&&void 0!==r?r:[],!0)},t.popperProps)),l=Dt(Dt({},t),{hidePopper:a,popperProps:Dt(Dt({},u),{arrowRef:s})});return i.createElement(e,Dt({},l))}return t.displayName="withFloating(".concat(e.displayName||e.name||"Component",")"),t}((function(e){var t=e.className,r=e.wrapperClassName,o=e.hidePopper,a=void 0===o||o,s=e.popperComponent,u=e.targetComponent,l=e.enableTabLoop,c=e.popperOnKeyDown,h=e.portalId,p=e.portalHost,d=e.popperProps,f=e.showArrow,m=e.popperTargetRef,g=e.monthHeaderPosition;(0,i.useEffect)((function(){(null===m||void 0===m?void 0:m.current)&&d.refs.setPositionReference(m.current)}),[m,d.refs]);var v=void 0;if(!a){var y=(0,n.$)("react-datepicker-popper",!f&&"react-datepicker-popper-offset","middle"===g&&"react-datepicker-popper--header-middle","bottom"===g&&"react-datepicker-popper--header-bottom",t);v=i.createElement(on,{enableTabLoop:l},i.createElement("div",{ref:d.refs.setFloating,style:d.floatingStyles,className:y,"data-placement":d.placement,onKeyDown:c},s,f&&i.createElement(ct,{ref:d.arrowRef,context:d.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}e.popperContainer&&(v=(0,i.createElement)(e.popperContainer,{},v)),h&&!a&&(v=i.createElement(rn,{portalId:h,portalHost:p},v));var b=(0,n.$)("react-datepicker-wrapper",r);return i.createElement(i.Fragment,null,i.createElement("div",{ref:d.refs.setReference,className:b},u),v)}));function sn(e,t){return e&&t?O(e)!==O(t)||T(e)!==T(t):e!==t}var un="Date input not valid.",ln=function(e){function t(r){var o=e.call(this,r)||this;return o.calendar=null,o.input=null,o.getPreSelection=function(){var e=o.props.timeZone,t=o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:Lt();return e?At(t,e):t},o.modifyHolidays=function(){var e;return null===(e=o.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var r=Pt(t.date,"yyyy-MM-dd",void 0,!1);return r?wt(wt([],e,!0),[Dt(Dt({},t),{date:r})],!1):e}),[])},o.calcInitialState=function(){var e=o.props.timeZone,t=o.getPreSelection(),r=br(o.props),n=Dr(o.props),i=r&&(0,ie.Y)(t,jt(r))?r:n&&ne(t,Wt(n))?n:t,a=o.props.selectsRange?o.props.startDate:o.props.selected;return a&&e&&(a=At(a,e)),{open:o.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==a&&void 0!==a?a:i,highlightDates:wr(o.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},o.getInputValue=function(){var e,r=o.props,n=r.locale,i=r.startDate,a=r.endDate,s=r.rangeSeparator,u=r.selected,l=r.selectedDates,c=r.selectsMultiple,h=r.selectsRange,p=r.formatMultipleDates,d=r.value,f=null!==(e=o.props.dateFormat)&&void 0!==e?e:t.defaultProps.dateFormat,m=o.state.inputValue;if("string"===typeof d)return d;if("string"===typeof m)return m;if(h)return function(e,t,r){if(!e&&!t)return"";var n=e?Ot(e,r):"",i=t?Ot(t,r):"",o=r.rangeSeparator||" - ";return"".concat(n).concat(o).concat(i)}(i,a,{dateFormat:f,locale:n,rangeSeparator:s});if(c){if(p){return p(null!==l&&void 0!==l?l:[],(function(e){return Ot(e,{dateFormat:f,locale:n})}))}return function(e,t){if(!(null===e||void 0===e?void 0:e.length))return"";var r=e[0]?Ot(e[0],t):"";if(1===e.length)return r;if(2===e.length&&e[1]){var n=Ot(e[1],t);return"".concat(r,", ").concat(n)}var i=e.length-1;return"".concat(r," (+").concat(i,")")}(null!==l&&void 0!==l?l:[],{dateFormat:f,locale:n})}return Ot(u,{dateFormat:f,locale:n})},o.resetHiddenStatus=function(){o.setState(Dt(Dt({},o.state),{wasHidden:!1}))},o.setHiddenStatus=function(){o.setState(Dt(Dt({},o.state),{wasHidden:!0}))},o.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&o.setHiddenStatus()},o.clearPreventFocusTimeout=function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)},o.setFocus=function(){var e,t;null===(t=null===(e=o.input)||void 0===e?void 0:e.focus)||void 0===t||t.call(e,{preventScroll:!0})},o.setBlur=function(){var e,t;null===(t=null===(e=o.input)||void 0===e?void 0:e.blur)||void 0===t||t.call(e),o.cancelFocusInput()},o.deferBlur=function(){requestAnimationFrame((function(){o.setBlur()}))},o.setOpen=function(e,t){void 0===t&&(t=!1),o.setState({open:e,preSelection:e&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:hn},(function(){e||o.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&o.deferBlur(),o.setState({inputValue:null})}))}))},o.inputOk=function(){return(0,c.$)(o.state.preSelection)},o.isCalendarOpen=function(){return void 0===o.props.open?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open},o.handleFocus=function(e){var t,r,n=o.state.wasHidden,i=!n||o.state.open;n&&o.resetHiddenStatus(),o.state.preventFocus||(null===(r=(t=o.props).onFocus)||void 0===r||r.call(t,e),!i||o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})},o.sendFocusBackToInput=function(){o.preventFocusTimeout&&o.clearPreventFocusTimeout(),o.setState({preventFocus:!0},(function(){o.preventFocusTimeout=setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))}))},o.cancelFocusInput=function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=void 0},o.deferFocusInput=function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout((function(){return o.setFocus()}),1)},o.handleDropdownFocus=function(){o.cancelFocusInput()},o.resetInputValue=function(){o.setState(Dt(Dt({},o.state),{inputValue:null}))},o.handleBlur=function(e){var t,r;(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&(null===(r=(t=o.props).onBlur)||void 0===r||r.call(t,e));var n=o.state.inputValue;"string"===typeof n&&n.length>0&&(!/[a-zA-Z0-9]/.test(n)&&o.props.selected&&o.setSelected(null,void 0,!0));o.resetInputValue(),o.state.open&&!1===o.props.open&&o.setOpen(!1),o.setState({focused:!1})},o.handleCalendarClickOutside=function(e){var t,r;null===(r=(t=o.props).onClickOutside)||void 0===r||r.call(t,e),o.props.inline||e.defaultPrevented||o.setOpen(!1),o.props.withPortal&&e.preventDefault()},o.handleChange=function(){for(var e,r,n,i,a,s,u,l,c=[],h=0;h<arguments.length;h++)c[h]=arguments[h];var p=c[0];if(!o.props.onChangeRaw||(o.props.onChangeRaw.apply(o,c),p&&"function"===typeof p.isDefaultPrevented&&!p.isDefaultPrevented())){o.setState({inputValue:(null===p||void 0===p?void 0:p.target)instanceof HTMLInputElement?p.target.value:null,lastPreSelectChange:cn});var d=o.props,f=d.selectsRange,m=d.startDate,g=d.endDate,v=null!==(e=o.props.dateFormat)&&void 0!==e?e:t.defaultProps.dateFormat,y=null!==(r=o.props.strictParsing)&&void 0!==r?r:t.defaultProps.strictParsing,b=(null===p||void 0===p?void 0:p.target)instanceof HTMLInputElement?p.target.value:"";if(f){var D=o.props.rangeSeparator,w=D.trim(),k=b.split(v.includes(w)?D:w,2).map((function(e){return e.trim()})),_=k[0],x=k[1],F=Pt(null!==_&&void 0!==_?_:"",v,o.props.locale,y),C=F?Pt(null!==x&&void 0!==x?x:"",v,o.props.locale,y):null,S=(null===(n=It(m))||void 0===n?void 0:n.getTime())!==(null===F||void 0===F?void 0:F.getTime()),A=(null===(i=It(g))||void 0===i?void 0:i.getTime())!==(null===C||void 0===C?void 0:C.getTime());if(!S&&!A)return;if(F&&rr(F,o.props))return;if(C&&rr(C,o.props))return;F&&o.setState({preSelection:F}),null===(s=(a=o.props).onChange)||void 0===s||s.call(a,[F,C],p)}else{var E=Pt(b,v,o.props.locale,y,null!==(u=o.props.selected)&&void 0!==u?u:void 0);if(E||!b)o.setSelected(E,p,!0);else if(!o.props.inline){var N=function(e,t){if(void 0===t&&(t=Lt()),!e)return null;var r=e.match(/\b(1\d{3}|2\d{3})\b/);if(!r||!r[1])return null;var n=parseInt(r[1],10),i=e.match(/(?:^|[/\-\s])?(0?[1-9]|1[0-2])(?:[/\-\s]|$)/),o=i&&i[1]?parseInt(i[1],10)-1:t.getMonth();return new Date(n,o,1)}(b,null!==(l=o.state.preSelection)&&void 0!==l?l:void 0);!N||o.props.minDate&&(0,ie.Y)(N,o.props.minDate)||o.props.maxDate&&ne(N,o.props.maxDate)||o.setState({preSelection:N})}}}},o.handleSelect=function(e,r,n){var i;if(!o.props.readOnly){var a=o.props,s=a.selectsRange,u=a.startDate,l=a.endDate,c=a.locale,h=a.swapRange,p=null!==(i=o.props.dateFormat)&&void 0!==i?i:t.defaultProps.dateFormat,d=!s||u&&!l&&(h||!Er(e,u));if(o.props.shouldCloseOnSelect&&!o.props.showTimeSelect&&d&&o.sendFocusBackToInput(),o.props.onChangeRaw){var f=Ot(e,{dateFormat:p,locale:c});o.props.onChangeRaw(r,{date:e,formattedDate:f})}o.setSelected(e,r,!1,n),o.props.showDateSelect&&o.setState({isRenderAriaLiveMessage:!0}),!o.props.shouldCloseOnSelect||o.props.showTimeSelect?o.setPreSelection(e):d&&o.setOpen(!1)}},o.setSelected=function(e,t,r,n){var i,a,s=o.props.timeZone,u=e;if(u&&s&&(u=Et(u,s)),o.props.showYearPicker){if(null!==u&&lr(T(u),o.props))return}else if(o.props.showMonthYearPicker){if(null!==u&&ir(u,o.props))return}else if(null!==u&&rr(u,o.props))return;var l=o.props,c=l.onChange,h=l.selectsRange,p=l.startDate,d=l.endDate,f=l.selectsMultiple,m=l.selectedDates,g=l.minTime,v=l.swapRange;if(!Jt(o.props.selected,u)||o.props.allowSameDay||h||f)if(null!==u&&(!o.props.selected||r&&(o.props.showTimeSelect||o.props.showTimeSelectOnly||o.props.showTimeInput)||(u=Bt(u,{hour:q(o.props.selected),minute:z(o.props.selected),second:U(o.props.selected)})),r||!o.props.showTimeSelect&&!o.props.showTimeSelectOnly||g&&(u=Bt(u,{hour:g.getHours(),minute:g.getMinutes(),second:g.getSeconds()})),o.props.inline||o.setState({preSelection:u}),o.props.focusSelectedMonth||o.setState({monthSelectedIn:n})),h){var y=c,b=p&&!d,D=!p&&!!d,w=p&&d;!p&&!d?null===y||void 0===y||y([u,null],t):b?null===u?null===y||void 0===y||y([null,null],t):Er(u,p)?v?null===y||void 0===y||y([u,p],t):null===y||void 0===y||y([u,null],t):null===y||void 0===y||y([p,u],t):D&&(u&&Er(u,d)?null===y||void 0===y||y([u,d],t):null===y||void 0===y||y([u,null],t)),w&&(null===y||void 0===y||y([u,null],t))}else if(f){var k=c;if(null!==u)if(null===m||void 0===m?void 0:m.length)if(m.some((function(e){return Kt(e,u)}))){var _=m.filter((function(e){return!Kt(e,u)}));null===k||void 0===k||k(_,t)}else null===k||void 0===k||k(wt(wt([],m,!0),[u],!1),t);else null===k||void 0===k||k([u],t)}else null===c||void 0===c||c(u,t);r||(null===(a=(i=o.props).onSelect)||void 0===a||a.call(i,u,t),o.setState({inputValue:null}))},o.setPreSelection=function(e){if(!o.props.readOnly){var t=(0,c.$)(o.props.minDate),r=(0,c.$)(o.props.maxDate),n=!0;if(e){var i=jt(e);if(t&&r)n=Zt(e,o.props.minDate,o.props.maxDate);else if(t){var a=jt(o.props.minDate);n=ne(e,a)||Jt(i,a)}else if(r){var s=Wt(o.props.maxDate);n=(0,ie.Y)(e,s)||Jt(i,s)}}n&&o.setState({preSelection:e})}},o.toggleCalendar=function(){o.setOpen(!o.state.open)},o.handleTimeChange=function(e,t){var r,n;if(!o.props.selectsMultiple){var i=o.props,a=i.selectsRange,s=i.startDate,u=i.endDate,l=i.onChange,c=i.timeZone;if(a){var h=l;if("start"===t){if(s){var p=Bt(s,{hour:q(e),minute:z(e)});o.setState({preSelection:p}),c&&(p=Et(p,c)),null===h||void 0===h||h([p,u?c?Et(u,c):u:null],void 0)}}else if("end"===t){if(u){var d=Bt(u,{hour:q(e),minute:z(e)});o.setState({preSelection:d}),c&&(d=Et(d,c)),null===h||void 0===h||h([s?c?Et(s,c):s:null,d],void 0)}}else{if(s&&!u){p=Bt(s,{hour:q(e),minute:z(e)});o.setState({preSelection:p}),c&&(p=Et(p,c)),null===h||void 0===h||h([p,null],void 0)}else if(s&&u){d=Bt(u,{hour:q(e),minute:z(e)});o.setState({preSelection:d}),c&&(d=Et(d,c)),null===h||void 0===h||h([c?Et(s,c):s,d],void 0)}else{var f=Bt(o.getPreSelection(),{hour:q(e),minute:z(e)});o.setState({preSelection:f})}}}else{var m=o.props.selected?o.props.selected:o.getPreSelection();f=o.props.selected?e:Bt(m,{hour:q(e),minute:z(e)});o.setState({preSelection:f}),f&&c&&(f=Et(f,c)),null===(n=(r=o.props).onChange)||void 0===n||n.call(r,f)}o.props.shouldCloseOnSelect&&!o.props.showTimeInput&&(o.sendFocusBackToInput(),o.setOpen(!1)),o.props.showTimeInput&&o.setOpen(!0),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),o.setState({inputValue:null})}},o.onInputClick=function(){var e,t;o.props.disabled||o.props.readOnly||o.setOpen(!0),null===(t=(e=o.props).onInputClick)||void 0===t||t.call(e)},o.handleTimeOnlyArrowKey=function(e){var r,n,i,a,s,u=It(o.props.selected)||o.state.preSelection||Lt(),l=null!==(r=o.props.timeIntervals)&&void 0!==r?r:30,c=null!==(n=o.props.dateFormat)&&void 0!==n?n:t.defaultProps.dateFormat,h=Array.isArray(c)?c[0]:c,p=jt(u),d=60*q(u)+z(u),f=1440-l;if(e===kt.ArrowUp){var m=Math.max(0,d-l);s=(0,te.z)(p,m)}else{m=Math.min(f,d+l);s=(0,te.z)(p,m)}var g=Tt(s,h||t.defaultProps.dateFormat,o.props.locale);if(o.setState({preSelection:s,inputValue:g}),!o.props.selectsRange&&!o.props.selectsMultiple){var v=o.props.selected?o.props.selected:o.getPreSelection(),y=o.props.selected?s:Bt(v,{hour:q(s),minute:z(s)});null===(a=(i=o.props).onChange)||void 0===a||a.call(i,y),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame((function(){o.scrollToTimeOption(s)}))}},o.handleTimeOnlyEnterKey=function(e){var r,n,i,a,s=e.target.value,u=null!==(r=o.props.dateFormat)&&void 0!==r?r:t.defaultProps.dateFormat,l=o.props.timeFormat||"p",c=o.state.preSelection||It(o.props.selected)||Lt(),h=Pt(s,u,o.props.locale,null!==(n=o.props.strictParsing)&&void 0!==n&&n,c),p=c;if(h&&Mt(h))p=h;else{var d=(null===(i=o.calendar)||void 0===i?void 0:i.containerRef.current)instanceof Element&&o.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");if(d instanceof HTMLElement){var f=null===(a=d.textContent)||void 0===a?void 0:a.trim();if(f){var m=Pt(f,l,o.props.locale,!1,c);m&&Mt(m)&&(p=m)}}}o.handleTimeChange(p),o.setOpen(!1),o.sendFocusBackToInput()},o.scrollToTimeOption=function(e){var t,r;if(null===(t=o.calendar)||void 0===t?void 0:t.containerRef.current){for(var n=o.calendar.containerRef.current,i=Array.from(n.querySelectorAll(".react-datepicker__time-list-item")),a=null,s=1/0,u=o.props.timeFormat||"p",l=0,c=i;l<c.length;l++){var h=c[l],p=null===(r=h.textContent)||void 0===r?void 0:r.trim();if(p){var d=Pt(p,u,o.props.locale,!1,e);if(d&&Mt(d)){if(Sr(d,e)){a=h;break}var f=Math.abs(d.getTime()-e.getTime());f<s&&(s=f,a=h)}}}a&&(i.forEach((function(e){e.setAttribute("tabindex","-1")})),a.setAttribute("tabindex","0"),a.scrollIntoView({behavior:"smooth",block:"center"}))}},o.onInputKeyDown=function(e){var t,r,n,i,a,s;null===(r=(t=o.props).onKeyDown)||void 0===r||r.call(t,e);var u=e.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open&&o.props.showTimeSelectOnly){if(u===kt.ArrowDown||u===kt.ArrowUp)return e.preventDefault(),void o.handleTimeOnlyArrowKey(u);if(u===kt.Enter)return e.preventDefault(),void o.handleTimeOnlyEnterKey(e)}if(o.state.open){if(u===kt.ArrowDown||u===kt.ArrowUp){e.preventDefault();var l=o.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":o.props.showWeekPicker&&o.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':o.props.showFullMonthYearPicker||o.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=(null===(i=o.calendar)||void 0===i?void 0:i.containerRef.current)instanceof Element&&o.calendar.containerRef.current.querySelector(l);return void(c instanceof HTMLElement&&c.focus({preventScroll:!0}))}var h=Lt(o.state.preSelection);u===kt.Enter?(e.preventDefault(),e.target.blur(),o.inputOk()&&o.state.lastPreSelectChange===hn?(o.handleSelect(h,e),!o.props.shouldCloseOnSelect&&o.setPreSelection(h)):o.setOpen(!1)):u===kt.Escape?(e.preventDefault(),e.target.blur(),o.sendFocusBackToInput(),o.setOpen(!1)):u===kt.Tab&&o.setOpen(!1),o.inputOk()||null===(s=(a=o.props).onInputError)||void 0===s||s.call(a,{code:1,msg:un})}}else u!==kt.ArrowDown&&u!==kt.ArrowUp&&u!==kt.Enter||null===(n=o.onInputClick)||void 0===n||n.call(o)},o.onPortalKeyDown=function(e){e.key===kt.Escape&&(e.preventDefault(),o.setState({preventFocus:!0},(function(){o.setOpen(!1),setTimeout((function(){o.setFocus(),o.setState({preventFocus:!1})}))})))},o.onDayKeyDown=function(e){var t,r,n,i,a,s,u=o.props,l=u.minDate,c=u.maxDate,h=u.disabledKeyboardNavigation,p=u.showWeekPicker,d=u.shouldCloseOnSelect,f=u.locale,m=u.calendarStartDay,g=u.adjustDateOnChange,v=u.inline;if(null===(r=(t=o.props).onKeyDown)||void 0===r||r.call(t,e),!h){var y=e.key,b=e.shiftKey,D=Lt(o.state.preSelection),w=function(e,t){var r=t;switch(e){case kt.ArrowRight:r=p?(0,ue.J)(t,1):(0,se.f)(t,1);break;case kt.ArrowLeft:r=p?pe(t,1):(0,de.e)(t,1);break;case kt.ArrowUp:r=pe(t,1);break;case kt.ArrowDown:r=(0,ue.J)(t,1);break;case kt.PageUp:r=b?J(t,1):(0,H.a)(t,1);break;case kt.PageDown:r=b?(0,K.e)(t,1):(0,Y.P)(t,1);break;case kt.Home:r=Rt(t,f,m);break;case kt.End:r=function(e){return(0,k.$)(e)}(t)}return r};if(y===kt.Enter)return e.preventDefault(),o.handleSelect(D,e),void(!d&&o.setPreSelection(D));if(y===kt.Escape)return e.preventDefault(),o.setOpen(!1),void(o.inputOk()||null===(i=(n=o.props).onInputError)||void 0===i||i.call(n,{code:1,msg:un}));var _=null;switch(y){case kt.ArrowLeft:case kt.ArrowRight:case kt.ArrowUp:case kt.ArrowDown:case kt.PageUp:case kt.PageDown:case kt.Home:case kt.End:_=function(e,t){for(var r=e,n=!1,i=0,a=w(e,t);!n;){if(i>=40){a=t;break}l&&a<l&&(r=kt.ArrowRight,a=rr(l,o.props)?w(r,a):l),c&&a>c&&(r=kt.ArrowLeft,a=rr(c,o.props)?w(r,a):c),rr(a,o.props)?(r!==kt.PageUp&&r!==kt.Home||(r=kt.ArrowRight),r!==kt.PageDown&&r!==kt.End||(r=kt.ArrowLeft),a=w(r,a)):n=!0,i++}return a}(y,D)}_?(e.preventDefault(),o.setState({lastPreSelectChange:hn}),g&&o.setSelected(_),o.setPreSelection(_),v&&o.setState({shouldFocusDayInline:!0})):null===(s=(a=o.props).onInputError)||void 0===s||s.call(a,{code:1,msg:un})}},o.onPopperKeyDown=function(e){e.key===kt.Escape&&(e.preventDefault(),o.sendFocusBackToInput(),o.setOpen(!1))},o.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),o.sendFocusBackToInput();var t=o.props,r=t.selectsRange,n=t.onChange;r?null===n||void 0===n||n([null,null],e):null===n||void 0===n||n(null,e),o.setState({inputValue:null})},o.clear=function(){o.onClearClick()},o.onScroll=function(e){"boolean"===typeof o.props.closeOnScroll&&o.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||o.setOpen(!1):"function"===typeof o.props.closeOnScroll&&o.props.closeOnScroll(e)&&o.setOpen(!1)},o.handleMonthSelectedInChange=function(e){o.setState({monthSelectedIn:e})},o.renderCalendar=function(){var e,r;return o.props.inline||o.isCalendarOpen()?i.createElement(en,Dt({showMonthYearDropdown:void 0,ref:function(e){o.calendar=e}},o.props,o.state,{setOpen:o.setOpen,dateFormat:null!==(e=o.props.dateFormatCalendar)&&void 0!==e?e:t.defaultProps.dateFormatCalendar,onSelect:o.handleSelect,onClickOutside:o.handleCalendarClickOutside,holidays:kr(o.modifyHolidays()),outsideClickIgnoreClass:o.props.outsideClickIgnoreClass,onDropdownFocus:o.handleDropdownFocus,onTimeChange:o.handleTimeChange,className:o.props.calendarClassName,container:o.props.calendarContainer,handleOnKeyDown:o.props.onKeyDown,handleOnDayKeyDown:o.onDayKeyDown,setPreSelection:o.setPreSelection,dropdownMode:null!==(r=o.props.dropdownMode)&&void 0!==r?r:t.defaultProps.dropdownMode,onMonthSelectedInChange:o.handleMonthSelectedInChange}),o.props.children):null},o.renderAriaLiveRegion=function(){var e,r,n=o.props.locale,a=null!==(e=o.props.dateFormat)&&void 0!==e?e:t.defaultProps.dateFormat,s=o.props.showTimeInput||o.props.showTimeSelect?"PPPPp":"PPPP";return r=o.props.selectsRange?"Selected start date: ".concat(Ot(o.props.startDate,{dateFormat:s,locale:n}),". ").concat(o.props.endDate?"End date: "+Ot(o.props.endDate,{dateFormat:s,locale:n}):""):o.props.showTimeSelectOnly?"Selected time: ".concat(Ot(o.props.selected,{dateFormat:a,locale:n})):o.props.showYearPicker?"Selected year: ".concat(Ot(o.props.selected,{dateFormat:"yyyy",locale:n})):o.props.showMonthYearPicker?"Selected month: ".concat(Ot(o.props.selected,{dateFormat:"MMMM yyyy",locale:n})):o.props.showQuarterYearPicker?"Selected quarter: ".concat(Ot(o.props.selected,{dateFormat:"yyyy, QQQ",locale:n})):"Selected date: ".concat(Ot(o.props.selected,{dateFormat:s,locale:n})),i.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r)},o.renderDateInput=function(){var e,r,a,s,u,l,c,h=(0,n.$)(o.props.className,((e={})[o.props.outsideClickIgnoreClass||t.defaultProps.outsideClickIgnoreClass]=o.state.open,e)),p=o.props.customInput||i.createElement("input",{type:"text"}),d=o.props.customInputRef||"ref",f={},m=null!==(a=o.props["aria-describedby"])&&void 0!==a?a:o.props.ariaDescribedBy,g=null!==(s=o.props["aria-invalid"])&&void 0!==s?s:o.props.ariaInvalid,v=null!==(u=o.props["aria-label"])&&void 0!==u?u:o.props.ariaLabel,y=null!==(l=o.props["aria-labelledby"])&&void 0!==l?l:o.props.ariaLabelledBy,b=null!==(c=o.props["aria-required"])&&void 0!==c?c:o.props.ariaRequired;return null!=m&&(f["aria-describedby"]=m),null!=g&&(f["aria-invalid"]=g),null!=v&&(f["aria-label"]=v),null!=y&&(f["aria-labelledby"]=y),null!=b&&(f["aria-required"]=b),(0,i.cloneElement)(p,Dt(((r={})[d]=function(e){o.input=e},r.value=o.getInputValue(),r.onBlur=o.handleBlur,r.onChange=o.handleChange,r.onClick=o.onInputClick,r.onFocus=o.handleFocus,r.onKeyDown=o.onInputKeyDown,r.id=o.props.id,r.name=o.props.name,r.form=o.props.form,r.autoFocus=o.props.autoFocus,r.placeholder=o.props.placeholderText,r.disabled=o.props.disabled,r.autoComplete=o.props.autoComplete,r.className=(0,n.$)(p.props.className,h),r.title=o.props.title,r.readOnly=o.props.readOnly,r.required=o.props.required,r.tabIndex=o.props.tabIndex,r),f))},o.renderClearButton=function(){var e=o.props,t=e.isClearable,r=e.disabled,a=e.selected,s=e.startDate,u=e.endDate,l=e.clearButtonTitle,c=e.clearButtonClassName,h=void 0===c?"":c,p=e.ariaLabelClose,d=void 0===p?"Close":p,f=e.selectedDates,m=e.readOnly;return!t||m||null==a&&null==s&&null==u&&!(null===f||void 0===f?void 0:f.length)?null:i.createElement("button",{type:"button",className:(0,n.$)("react-datepicker__close-icon",h,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":d,onClick:o.onClearClick,title:l,tabIndex:-1})},o.state=o.calcInitialState(),o.preventFocusTimeout=void 0,o}return bt(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:Xr,readOnly:!1,rangeSeparator:" - ",withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.componentDidUpdate=function(e,t){var r,n,i,o;this.props.selectsRange&&sn(e.startDate,this.props.startDate)?this.setPreSelection(this.props.startDate):sn(e.selected,this.props.selected)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&!1===t.open&&!0===this.state.open&&0!==this.state.monthSelectedIn&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:wr(this.props.highlightDates)}),t.focused||Jt(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(n=(r=this.props).onCalendarOpen)||void 0===n||n.call(r)),!0===t.open&&!1===this.state.open&&(null===(o=(i=this.props).onCalendarClose)||void 0===o||o.call(i)))},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},t.prototype.renderInputContainer=function(){var e=this.props,t=e.showIcon,r=e.icon,o=e.calendarIconClassname,a=e.calendarIconClassName,s=e.toggleCalendarOnIconClick,u=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),i.createElement("div",{className:"react-datepicker__input-container".concat(t?" react-datepicker__view-calendar-icon":"")},t&&i.createElement(tn,Dt({icon:r,className:(0,n.$)(a,!a&&o,u&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},t.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?i.createElement(on,{enableTabLoop:this.props.enableTabLoop},i.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=i.createElement(rn,Dt({portalId:this.props.portalId},this.props),t)),i.createElement(i.Fragment,null,this.renderInputContainer(),t)}return i.createElement(an,Dt({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow,monthHeaderPosition:this.props.monthHeaderPosition}))},t}(i.Component),cn="input",hn="navigate"},92255(e,t,r){"use strict";r.d(t,{p3:()=>He,w$:()=>v,YI:()=>Ve});var n=["MO","TU","WE","TH","FR","SA","SU"],i=function(){function e(e,t){if(0===t)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(n.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=n[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),o=function(e){return null!==e&&void 0!==e},a=function(e){return"number"===typeof e},s=function(e){return"string"===typeof e&&n.includes(e)},u=Array.isArray,l=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var r=[],n=e;n<t;n++)r.push(n);return r},c=function(e,t){var r=0,n=[];if(u(e))for(;r<t;r++)n[r]=[].concat(e);else for(;r<t;r++)n[r]=e;return n};function h(e,t,r){void 0===r&&(r=" ");var n=String(e);return t|=0,n.length>t?String(n):((t-=n.length)>r.length&&(r+=c(r,t/r.length)),r.slice(0,t)+String(n))}var p=function(e,t){var r=e%t;return r*t<0?r+t:r},d=function(e,t){return{div:Math.floor(e/t),mod:p(e,t)}},f=function(e){return!o(e)||0===e.length},m=function(e){return!f(e)},g=function(e,t){return m(e)&&-1!==e.indexOf(t)},v=function(e,t,r,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=0),new Date(Date.UTC(e,t-1,r,n,i,o))},y=[31,28,31,30,31,30,31,31,30,31,30,31],b=864e5,D=v(1970,1,1),w=[6,0,1,2,3,4,5],k=function(e){return e%4===0&&e%100!==0||e%400===0},_=function(e){return e instanceof Date},x=function(e){return _(e)&&!isNaN(e.getTime())},F=function(e){return function(e,t){var r=e.getTime()-t.getTime();return Math.round(r/b)}(e,D)},C=function(e){return new Date(D.getTime()+e*b)},S=function(e){var t=e.getUTCMonth();return 1===t&&k(e.getUTCFullYear())?29:y[t]},A=function(e){return w[e.getUTCDay()]},E=function(e,t){var r=v(e,t+1,1);return[A(r),S(r)]},N=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},L=function(e){return new Date(e.getTime())},P=function(e){for(var t=[],r=0;r<e.length;r++)t.push(L(e[r]));return t},M=function(e){e.sort((function(e,t){return e.getTime()-t.getTime()}))},I=function(e,t){void 0===t&&(t=!0);var r=new Date(e);return[h(r.getUTCFullYear().toString(),4,"0"),h(r.getUTCMonth()+1,2,"0"),h(r.getUTCDate(),2,"0"),"T",h(r.getUTCHours(),2,"0"),h(r.getUTCMinutes(),2,"0"),h(r.getUTCSeconds(),2,"0"),t?"Z":""].join("")},T=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},O=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"};const B=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,r=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(r)return!1}else if("before"===this.method){if(r)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}();var j=function(e,t){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},j(e,t)};function R(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var q=function(){return q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)};Object.create;function z(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;const U=function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.iterator=n,i}return R(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(B);const H={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var W=function(e,t){return-1!==e.indexOf(t)},Y=function(e){return e.toString()},V=function(e,t,r){return"".concat(t," ").concat(r,", ").concat(e)};const $=function(){function e(e,t,r,n){if(void 0===t&&(t=Y),void 0===r&&(r=H),void 0===n&&(n=V),this.text=[],this.language=r||H,this.gettext=t,this.dateFormatter=n,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);i.sort((function(e,t){return e-t})),a.sort((function(e,t){return t-e})),this.bymonthday=i.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(o(this.origOptions.byweekday)){var s=u(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(s);this.byweekday={allWeeks:s.filter((function(e){return!e.n})),someWeeks:s.filter((function(e){return Boolean(e.n)})),isWeekdays:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1===l.indexOf("SA")&&-1===l.indexOf("SU"),isEveryDay:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1!==l.indexOf("SA")&&-1!==l.indexOf("SU")};var c=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(c),this.byweekday.someWeeks.sort(c),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var r in t.origOptions){if(W(["dtstart","tzid","wkst","freq"],r))return!0;if(!W(e.IMPLEMENTED[t.options.freq],r))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[He.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){var t;e=parseInt(e.toString(),10);var r=this.gettext;if(-1===e)return r("last");var n=Math.abs(e);switch(n){case 1:case 21:case 31:t=n+r("st");break;case 2:case 22:t=n+r("nd");break;case 3:case 23:t=n+r("rd");break;default:t=n+r("th")}return e<0?t+" "+r("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=a(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!==1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,r,n){var i=this;void 0===n&&(n=","),u(e)||(e=[e]);t=t||function(e){return e.toString()};var o=function(e){return t&&t.call(i,e)};return r?function(e,t,r){for(var n="",i=0;i<e.length;i++)0!==i&&(i===e.length-1?n+=" "+r+" ":n+=t+" "),n+=e[i];return n}(e.map(o),n,r):e.map(o).join(n+" ")},e}();var G,K=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){var e,t;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var r in e=null,this.rules){var n=this.rules[r].exec(this.text);n&&(null===e||n[0].length>e[0].length)&&(e=n,t=r)}if(null!=e&&(this.text=this.text.substr(e[0].length),""===this.text&&(this.done=!0)),null==e)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===t);return this.symbol=t,this.value=e,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},e}();function J(e,t){void 0===t&&(t=H);var r={},n=new K(t.tokens);return n.start(e)?(function(){n.expect("every");var e=n.acceptNumber();e&&(r.interval=parseInt(e[0],10));if(n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=He.DAILY,n.nextSymbol()&&(o(),l());break;case"weekday(s)":r.freq=He.WEEKLY,r.byweekday=[He.MO,He.TU,He.WE,He.TH,He.FR],n.nextSymbol(),o(),l();break;case"week(s)":r.freq=He.WEEKLY,n.nextSymbol()&&(i(),o(),l());break;case"hour(s)":r.freq=He.HOURLY,n.nextSymbol()&&(i(),l());break;case"minute(s)":r.freq=He.MINUTELY,n.nextSymbol()&&(i(),l());break;case"month(s)":r.freq=He.MONTHLY,n.nextSymbol()&&(i(),l());break;case"year(s)":r.freq=He.YEARLY,n.nextSymbol()&&(i(),l());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=He.WEEKLY;var t=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[He[t]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var c=s();if(!c)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(He[c]),n.nextSymbol()}o(),function(){n.accept("on"),n.accept("the");var e=u();if(!e)return;r.bymonthday=[e],n.nextSymbol();for(;n.accept("comma");){if(!(e=u()))throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(e),n.nextSymbol()}}(),l();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=He.YEARLY,r.bymonth=[a()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var h=a();if(!h)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(h),n.nextSymbol()}i(),l();break;default:throw new Error("Unknown symbol")}}(),r):null;function i(){var e=n.accept("on"),t=n.accept("the");if(e||t)do{var i=u(),o=s(),l=a();if(i)o?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(He[o].nth(i))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(i),n.accept("day(s)"));else if(o)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(He[o]);else if("weekday(s)"===n.symbol)n.nextSymbol(),r.byweekday||(r.byweekday=[He.MO,He.TU,He.WE,He.TH,He.FR]);else if("week(s)"===n.symbol){n.nextSymbol();var c=n.acceptNumber();if(!c)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(c[0],10)];n.accept("comma");){if(!(c=n.acceptNumber()))throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(c[0],10))}}else{if(!l)return;n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(l)}}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function o(){if(n.accept("at"))do{var e=n.acceptNumber();if(!e)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(e[0],10)];n.accept("comma");){if(!(e=n.acceptNumber()))throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(e[0],10))}}while(n.accept("comma")||n.accept("at"))}function a(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var e=parseInt(n.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return n.nextSymbol(),n.accept("last")?-e:e;default:return!1}}function l(){if("until"===n.symbol){var e=Date.parse(n.text);if(!e)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(e)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}function Z(e){return e<G.HOURLY}!function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"}(G||(G={}));var Q=function(e,t){return void 0===t&&(t=H),new He(J(e,t)||void 0)},X=["count","until","interval","byweekday","bymonthday","bymonth"];$.IMPLEMENTED=[],$.IMPLEMENTED[G.HOURLY]=X,$.IMPLEMENTED[G.MINUTELY]=X,$.IMPLEMENTED[G.DAILY]=["byhour"].concat(X),$.IMPLEMENTED[G.WEEKLY]=X,$.IMPLEMENTED[G.MONTHLY]=X,$.IMPLEMENTED[G.YEARLY]=["byweekno","byyearday"].concat(X);var ee=$.isFullyConvertible,te=function(){function e(e,t,r,n){this.hour=e,this.minute=t,this.second=r,this.millisecond=n||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},e}(),re=function(e){function t(t,r,n,i,o,a,s){var u=e.call(this,i,o,a,s)||this;return u.year=t,u.month=r,u.day=n,u}return R(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return A(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),r=p(this.month,12);this.month=r,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,r){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var n=d(this.hour,24),i=n.div,o=n.mod;if(i&&(this.hour=o,this.addDaily(i)),f(r)||g(r,this.hour))break}},t.prototype.addMinutes=function(e,t,r,n){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var i=d(this.minute,60),o=i.div,a=i.mod;if(o&&(this.minute=a,this.addHours(o,!1,r)),(f(r)||g(r,this.hour))&&(f(n)||g(n,this.minute)))break}},t.prototype.addSeconds=function(e,t,r,n,i){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var o=d(this.second,60),a=o.div,s=o.mod;if(a&&(this.second=s,this.addMinutes(a,!1,r,n)),(f(r)||g(r,this.hour))&&(f(n)||g(n,this.minute))&&(f(i)||g(i,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=E(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=E(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var r=e.freq,n=e.interval,i=e.wkst,o=e.byhour,a=e.byminute,s=e.bysecond;switch(r){case G.YEARLY:return this.addYears(n);case G.MONTHLY:return this.addMonths(n);case G.WEEKLY:return this.addWeekly(n,i);case G.DAILY:return this.addDaily(n);case G.HOURLY:return this.addHours(n,t,o);case G.MINUTELY:return this.addMinutes(n,t,o,a);case G.SECONDLY:return this.addSeconds(n,t,o,a,s)}},t}(te);function ne(e){for(var t=[],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];g(Ue,i)||t.push(i),_(e[i])&&!x(e[i])&&t.push(i)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return q({},e)}function ie(e){var t=q(q({},ze),ne(e));if(o(t.byeaster)&&(t.freq=He.YEARLY),!o(t.freq)||!He.FREQUENCIES[t.freq])throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),o(t.wkst)?a(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=He.MO.weekday,o(t.bysetpos)){a(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var r=0;r<t.bysetpos.length;r++){if(0===(c=t.bysetpos[r])||!(c>=-366&&c<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(t.byweekno)||m(t.byweekno)||m(t.byyearday)||Boolean(t.bymonthday)||m(t.bymonthday)||o(t.byweekday)||o(t.byeaster)))switch(t.freq){case He.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case He.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case He.WEEKLY:t.byweekday=[A(t.dtstart)]}if(o(t.bymonth)&&!u(t.bymonth)&&(t.bymonth=[t.bymonth]),o(t.byyearday)&&!u(t.byyearday)&&a(t.byyearday)&&(t.byyearday=[t.byyearday]),o(t.bymonthday))if(u(t.bymonthday)){var n=[],l=[];for(r=0;r<t.bymonthday.length;r++){var c;(c=t.bymonthday[r])>0?n.push(c):c<0&&l.push(c)}t.bymonthday=n,t.bynmonthday=l}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(o(t.byweekno)&&!u(t.byweekno)&&(t.byweekno=[t.byweekno]),o(t.byweekday))if(a(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(s(t.byweekday))t.byweekday=[i.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof i)!t.byweekday.n||t.freq>He.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var h=[],p=[];for(r=0;r<t.byweekday.length;r++){var d=t.byweekday[r];a(d)?h.push(d):s(d)?h.push(i.fromStr(d).weekday):!d.n||t.freq>He.MONTHLY?h.push(d.weekday):p.push([d.weekday,d.n])}t.byweekday=m(h)?h:null,t.bynweekday=m(p)?p:null}else t.bynweekday=null;return o(t.byhour)?a(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<He.HOURLY?[t.dtstart.getUTCHours()]:null,o(t.byminute)?a(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<He.MINUTELY?[t.dtstart.getUTCMinutes()]:null,o(t.bysecond)?a(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<He.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function oe(e){var t=e.split("\n").map(se).filter((function(e){return null!==e}));return q(q({},t[0]),t[1])}function ae(e){var t={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!r)return t;var n=r[1],i=r[2];return n&&(t.tzid=n),t.dtstart=T(i),t}function se(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return ue(e);var r=t[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return ue(e);case"DTSTART":return ae(e);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(e))}}function ue(e){var t=ae(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach((function(r){var n=r.split("="),o=n[0],a=n[1];switch(o.toUpperCase()){case"FREQ":t.freq=G[a.toUpperCase()];break;case"WKST":t.wkst=qe[a.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var s=function(e){if(-1!==e.indexOf(",")){return e.split(",").map(le)}return le(e)}(a),u=o.toLowerCase();t[u]=s;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=function(e){var t=e.split(",");return t.map((function(e){if(2===e.length)return qe[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var r=Number(t[1]),n=t[2],o=qe[n].weekday;return new i(o,r)}))}(a);break;case"DTSTART":case"TZID":var l=ae(e);t.tzid=l.tzid,t.dtstart=l.dtstart;break;case"UNTIL":t.until=T(a);break;case"BYEASTER":t.byeaster=Number(a);break;default:throw new Error("Unknown RRULE property '"+o+"'")}})),t}function le(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var ce=function(){function e(e,t){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=I(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:function(e,t){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(O(e,r)),i=new Date(O(e,null!==t&&void 0!==t?t:"UTC")).getTime()-n.getTime();return new Date(e.getTime()-i)}(this.date,this.tzid)},e}();function he(e){for(var t,r=[],n="",s=Object.keys(e),l=Object.keys(ze),c=0;c<s.length;c++)if("tzid"!==s[c]&&g(l,s[c])){var h=s[c].toUpperCase(),p=e[s[c]],d="";if(o(p)&&(!u(p)||p.length)){switch(h){case"FREQ":d=He.FREQUENCIES[e.freq];break;case"WKST":d=a(p)?new i(p).toString():p.toString();break;case"BYWEEKDAY":h="BYDAY",d=(t=p,u(t)?t:[t]).map((function(e){return e instanceof i?e:u(e)?new i(e[0],e[1]):new i(e)})).toString();break;case"DTSTART":n=pe(p,e.tzid);break;case"UNTIL":d=I(p,!e.tzid);break;default:if(u(p)){for(var f=[],m=0;m<p.length;m++)f[m]=String(p[m]);d=f.toString()}else d=String(p)}d&&r.push([h,d])}}var v=r.map((function(e){var t=e[0],r=e[1];return"".concat(t,"=").concat(r.toString())})).join(";"),y="";return""!==v&&(y="RRULE:".concat(v)),[n,y].filter((function(e){return!!e})).join("\n")}function pe(e,t){return e?"DTSTART"+new ce(new Date(e),t).toString():""}function de(e,t){return Array.isArray(e)?!!Array.isArray(t)&&(e.length===t.length&&e.every((function(e,r){return e.getTime()===t[r].getTime()}))):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var fe=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,r){t&&(t=t instanceof Date?L(t):P(t)),"all"===e?this.all=t:(r._value=t,this[e].push(r))},e.prototype._cacheGet=function(e,t){var r=!1,n=t?Object.keys(t):[],i=function(e){for(var r=0;r<n.length;r++){var i=n[r];if(!de(t[i],e[i]))return!0}return!1},o=this[e];if("all"===e)r=this.all;else if(u(o))for(var a=0;a<o.length;a++){var s=o[a];if(!n.length||!i(s)){r=s._value;break}}if(!r&&this.all){var l=new B(e,t);for(a=0;a<this.all.length&&l.accept(this.all[a]);a++);r=l.getValue(),this._cacheAdd(e,r,t)}return u(r)?P(r):r instanceof Date?L(r):r},e}(),me=z(z(z(z(z(z(z(z(z(z(z(z(z([],c(1,31),!0),c(2,28),!0),c(3,31),!0),c(4,30),!0),c(5,31),!0),c(6,30),!0),c(7,31),!0),c(8,31),!0),c(9,30),!0),c(10,31),!0),c(11,30),!0),c(12,31),!0),c(1,7),!0),ge=z(z(z(z(z(z(z(z(z(z(z(z(z([],c(1,31),!0),c(2,29),!0),c(3,31),!0),c(4,30),!0),c(5,31),!0),c(6,30),!0),c(7,31),!0),c(8,31),!0),c(9,30),!0),c(10,31),!0),c(11,30),!0),c(12,31),!0),c(1,7),!0),ve=l(1,29),ye=l(1,30),be=l(1,31),De=l(1,32),we=z(z(z(z(z(z(z(z(z(z(z(z(z([],De,!0),ye,!0),De,!0),be,!0),De,!0),be,!0),De,!0),De,!0),be,!0),De,!0),be,!0),De,!0),De.slice(0,7),!0),ke=z(z(z(z(z(z(z(z(z(z(z(z(z([],De,!0),ve,!0),De,!0),be,!0),De,!0),be,!0),De,!0),De,!0),be,!0),De,!0),be,!0),De,!0),De.slice(0,7),!0),_e=l(-28,0),xe=l(-29,0),Fe=l(-30,0),Ce=l(-31,0),Se=z(z(z(z(z(z(z(z(z(z(z(z(z([],Ce,!0),xe,!0),Ce,!0),Fe,!0),Ce,!0),Fe,!0),Ce,!0),Ce,!0),Fe,!0),Ce,!0),Fe,!0),Ce,!0),Ce.slice(0,7),!0),Ae=z(z(z(z(z(z(z(z(z(z(z(z(z([],Ce,!0),_e,!0),Ce,!0),Fe,!0),Ce,!0),Fe,!0),Ce,!0),Ce,!0),Fe,!0),Ce,!0),Fe,!0),Ce,!0),Ce.slice(0,7),!0),Ee=[0,31,60,91,121,152,182,213,244,274,305,335,366],Ne=[0,31,59,90,120,151,181,212,243,273,304,334,365],Le=function(){for(var e=[],t=0;t<55;t++)e=e.concat(l(7));return e}();function Pe(e,t){var r,n,i=v(e,1,1),o=k(e)?366:365,a=k(e+1)?366:365,s=F(i),u=A(i),l=q(q({yearlen:o,nextyearlen:a,yearordinal:s,yearweekday:u},function(e){var t=k(e)?366:365,r=v(e,1,1),n=A(r);if(365===t)return{mmask:me,mdaymask:ke,nmdaymask:Ae,wdaymask:Le.slice(n),mrange:Ne};return{mmask:ge,mdaymask:we,nmdaymask:Se,wdaymask:Le.slice(n),mrange:Ee}}(e)),{wnomask:null});if(f(t.byweekno))return l;l.wnomask=c(0,o+7);var h=r=p(7-u+t.wkst,7);h>=4?(h=0,n=l.yearlen+p(u-t.wkst,7)):n=o-h;for(var d=Math.floor(n/7),m=p(n,7),y=Math.floor(d+m/4),b=0;b<t.byweekno.length;b++){var D=t.byweekno[b];if(D<0&&(D+=y+1),D>0&&D<=y){var w=void 0;D>1?(w=h+7*(D-1),h!==r&&(w-=7-r)):w=h;for(var _=0;_<7&&(l.wnomask[w]=1,w++,l.wdaymask[w]!==t.wkst);_++);}}if(g(t.byweekno,1)){w=h+7*y;if(h!==r&&(w-=7-r),w<o)for(b=0;b<7&&(l.wnomask[w]=1,w+=1,l.wdaymask[w]!==t.wkst);b++);}if(h){var x=void 0;if(g(t.byweekno,-1))x=-1;else{var C=A(v(e-1,1,1)),S=p(7-C.valueOf()+t.wkst,7),E=k(e-1)?366:365,N=void 0;S>=4?(S=0,N=E+p(C-t.wkst,7)):N=o-h,x=Math.floor(52+p(N,7)/4)}if(g(t.byweekno,x))for(w=0;w<h;w++)l.wnomask[w]=1}return l}const Me=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var r=this.options;if(e!==this.lastyear&&(this.yearinfo=Pe(e,r)),m(r.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var n=this.yearinfo,i=n.yearlen,a=n.mrange,s=n.wdaymask;this.monthinfo=function(e,t,r,n,i,o){var a={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(o.freq===He.YEARLY)if(f(o.bymonth))s=[[0,r]];else for(var u=0;u<o.bymonth.length;u++)t=o.bymonth[u],s.push(n.slice(t-1,t+1));else o.freq===He.MONTHLY&&(s=[n.slice(t-1,t+1)]);if(f(s))return a;for(a.nwdaymask=c(0,r),u=0;u<s.length;u++)for(var l=s[u],h=l[0],d=l[1]-1,m=0;m<o.bynweekday.length;m++){var g=void 0,v=o.bynweekday[m],y=v[0],b=v[1];b<0?(g=d+7*(b+1),g-=p(i[g]-y,7)):(g=h+7*(b-1),g+=p(7-i[g]+y,7)),h<=g&&g<=d&&(a.nwdaymask[g]=1)}return a}(e,t,i,a,s,r)}o(r.byeaster)&&(this.eastermask=function(e,t){void 0===t&&(t=0);var r=e%19,n=Math.floor(e/100),i=e%100,o=Math.floor(n/4),a=n%4,s=Math.floor((n+8)/25),u=Math.floor((n-s+1)/3),l=Math.floor(19*r+n-o-u+15)%30,c=Math.floor(i/4),h=i%4,p=Math.floor(32+2*a+2*c-l-h)%7,d=Math.floor((r+11*l+22*p)/451),f=Math.floor((l+p-7*d+114)/31),m=(l+p-7*d+114)%31+1,g=Date.UTC(e,f-1,m+t),v=Date.UTC(e,0,1);return[Math.ceil((g-v)/864e5)]}(e,r.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[l(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var r=this.mrange[t-1],n=this.mrange[t],i=c(null,this.yearlen),o=r;o<n;o++)i[o]=o;return[i,r,n]},e.prototype.wdayset=function(e,t,r){for(var n=c(null,this.yearlen+7),i=F(v(e,t,r))-this.yearordinal,o=i,a=0;a<7&&(n[i]=i,++i,this.wdaymask[i]!==this.options.wkst);a++);return[n,o,i]},e.prototype.ddayset=function(e,t,r){var n=c(null,this.yearlen),i=F(v(e,t,r))-this.yearordinal;return n[i]=i,[n,i,i+1]},e.prototype.htimeset=function(e,t,r,n){var i=this,o=[];return this.options.byminute.forEach((function(t){o=o.concat(i.mtimeset(e,t,r,n))})),M(o),o},e.prototype.mtimeset=function(e,t,r,n){var i=this.options.bysecond.map((function(r){return new te(e,t,r,n)}));return M(i),i},e.prototype.stimeset=function(e,t,r,n){return[new te(e,t,r,n)]},e.prototype.getdayset=function(e){switch(e){case G.YEARLY:return this.ydayset.bind(this);case G.MONTHLY:return this.mdayset.bind(this);case G.WEEKLY:return this.wdayset.bind(this);case G.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case G.HOURLY:return this.htimeset.bind(this);case G.MINUTELY:return this.mtimeset.bind(this);case G.SECONDLY:return this.stimeset.bind(this)}},e}();function Ie(e,t,r,n,i,a){for(var s=[],u=0;u<e.length;u++){var l=void 0,c=void 0,h=e[u];h<0?(l=Math.floor(h/t.length),c=p(h,t.length)):(l=Math.floor((h-1)/t.length),c=p(h-1,t.length));for(var d=[],f=r;f<n;f++){var m=a[f];o(m)&&d.push(m)}var v=void 0;v=l<0?d.slice(l)[0]:d[l];var y=t[c],b=C(i.yearordinal+v),D=N(b,y);g(s,D)||s.push(D)}return M(s),s}function Te(e,t){var r=t.dtstart,n=t.freq,i=t.interval,a=t.until,s=t.bysetpos,u=t.count;if(0===u||0===i)return je(e);var l=re.fromDate(r),c=new Me(t);c.rebuild(l.year,l.month);for(var h=function(e,t,r){var n=r.freq,i=r.byhour,o=r.byminute,a=r.bysecond;if(Z(n))return function(e){var t=e.dtstart.getTime()%1e3;if(!Z(e.freq))return[];var r=[];return e.byhour.forEach((function(n){e.byminute.forEach((function(i){e.bysecond.forEach((function(e){r.push(new te(n,i,e,t))}))}))})),r}(r);if(n>=He.HOURLY&&m(i)&&!g(i,t.hour)||n>=He.MINUTELY&&m(o)&&!g(o,t.minute)||n>=He.SECONDLY&&m(a)&&!g(a,t.second))return[];return e.gettimeset(n)(t.hour,t.minute,t.second,t.millisecond)}(c,l,t);;){var p=c.getdayset(n)(l.year,l.month,l.day),d=p[0],f=p[1],v=p[2],y=Re(d,f,v,c,t);if(m(s))for(var b=Ie(s,h,f,v,c,d),D=0;D<b.length;D++){var w=b[D];if(a&&w>a)return je(e);if(w>=r){var k=Be(w,t);if(!e.accept(k))return je(e);if(u&&! --u)return je(e)}}else for(D=f;D<v;D++){var _=d[D];if(o(_))for(var x=C(c.yearordinal+_),F=0;F<h.length;F++){var S=h[F];w=N(x,S);if(a&&w>a)return je(e);if(w>=r){k=Be(w,t);if(!e.accept(k))return je(e);if(u&&! --u)return je(e)}}}if(0===t.interval)return je(e);if(l.add(t,y),l.year>9999)return je(e);Z(n)||(h=c.gettimeset(n)(l.hour,l.minute,l.second,0)),c.rebuild(l.year,l.month)}}function Oe(e,t,r){var n=r.bymonth,i=r.byweekno,o=r.byweekday,a=r.byeaster,s=r.bymonthday,u=r.bynmonthday,l=r.byyearday;return m(n)&&!g(n,e.mmask[t])||m(i)&&!e.wnomask[t]||m(o)&&!g(o,e.wdaymask[t])||m(e.nwdaymask)&&!e.nwdaymask[t]||null!==a&&!g(e.eastermask,t)||(m(s)||m(u))&&!g(s,e.mdaymask[t])&&!g(u,e.nmdaymask[t])||m(l)&&(t<e.yearlen&&!g(l,t+1)&&!g(l,-e.yearlen+t)||t>=e.yearlen&&!g(l,t+1-e.yearlen)&&!g(l,-e.nextyearlen+t-e.yearlen))}function Be(e,t){return new ce(e,t.tzid).rezonedDate()}function je(e){return e.getValue()}function Re(e,t,r,n,i){for(var o=!1,a=t;a<r;a++){var s=e[a];(o=Oe(n,s,i))&&(e[s]=null)}return o}var qe={MO:new i(0),TU:new i(1),WE:new i(2),TH:new i(3),FR:new i(4),SA:new i(5),SU:new i(6)},ze={freq:G.YEARLY,dtstart:null,interval:1,wkst:qe.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},Ue=Object.keys(ze),He=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new fe,this.origOptions=ne(e);var r=ie(e).parsedOptions;this.options=r}return e.parseText=function(e,t){return J(e,t)},e.fromText=function(e,t){return Q(e,t)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return Te(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,r){if(this._cache)return this._cache._cacheAdd(e,t,r)},e.prototype.all=function(e){if(e)return this._iter(new U("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new B("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,r,n){if(void 0===r&&(r=!1),!x(e)||!x(t))throw new Error("Invalid date passed in to RRule.between");var i={before:t,after:e,inc:r};if(n)return this._iter(new U("between",i,n));var o=this._cacheGet("between",i);return!1===o&&(o=this._iter(new B("between",i)),this._cacheAdd("between",o,i)),o},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!x(e))throw new Error("Invalid date passed in to RRule.before");var r={dt:e,inc:t},n=this._cacheGet("before",r);return!1===n&&(n=this._iter(new B("before",r)),this._cacheAdd("before",n,r)),n},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!x(e))throw new Error("Invalid date passed in to RRule.after");var r={dt:e,inc:t},n=this._cacheGet("after",r);return!1===n&&(n=this._iter(new B("after",r)),this._cacheAdd("after",n,r)),n},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return he(this.origOptions)},e.prototype.toText=function(e,t,r){return function(e,t,r,n){return new $(e,t,r,n).toString()}(this,e,t,r)},e.prototype.isFullyConvertibleToText=function(){return ee(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=G.YEARLY,e.MONTHLY=G.MONTHLY,e.WEEKLY=G.WEEKLY,e.DAILY=G.DAILY,e.HOURLY=G.HOURLY,e.MINUTELY=G.MINUTELY,e.SECONDLY=G.SECONDLY,e.MO=qe.MO,e.TU=qe.TU,e.WE=qe.WE,e.TH=qe.TH,e.FR=qe.FR,e.SA=qe.SA,e.SU=qe.SU,e.parseString=oe,e.optionsToString=he,e}();var We={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function Ye(e,t){var r=[],n=[],i=[],o=[],a=ae(e),s=a.dtstart,u=a.tzid,l=function(e,t){void 0===t&&(t=!1);if(e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);var r=e.split("\n"),n=0;for(;n<r.length;){var i=r[n]=r[n].replace(/\s+$/g,"");i?n>0&&" "===i[0]?(r[n-1]+=i.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}(e,t.unfold);return l.forEach((function(e){var t;if(e){var a=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=function(e,t,r){var n=e.split(t);return r?n.slice(0,r).concat([n.slice(r).join(t)]):n}(e,":",1),r=t[0],n=t[1];return{name:r,value:n}}(e),r=t.name,n=t.value,i=r.split(";");if(!i)throw new Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:n}}(e),s=a.name,l=a.parms,c=a.value;switch(s.toUpperCase()){case"RRULE":if(l.length)throw new Error("unsupported RRULE parm: ".concat(l.join(",")));r.push(oe(e));break;case"RDATE":var h=(null!==(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))&&void 0!==t?t:[])[1];h&&!u&&(u=h),n=n.concat(Ge(c,l));break;case"EXRULE":if(l.length)throw new Error("unsupported EXRULE parm: ".concat(l.join(",")));i.push(oe(c));break;case"EXDATE":o=o.concat(Ge(c,l));break;case"DTSTART":break;default:throw new Error("unsupported property: "+s)}}})),{dtstart:s,tzid:u,rrulevals:r,rdatevals:n,exrulevals:i,exdatevals:o}}function Ve(e,t){return void 0===t&&(t={}),function(e,t){var r=Ye(e,t),n=r.rrulevals,i=r.rdatevals,o=r.exrulevals,a=r.exdatevals,s=r.dtstart,u=r.tzid,l=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||n.length>1||i.length||o.length||a.length){var c=new Je(l);return c.dtstart(s),c.tzid(u||void 0),n.forEach((function(e){c.rrule(new He($e(e,s,u),l))})),i.forEach((function(e){c.rdate(e)})),o.forEach((function(e){c.exrule(new He($e(e,s,u),l))})),a.forEach((function(e){c.exdate(e)})),t.compatible&&t.dtstart&&c.rdate(s),c}var h=n[0]||{};return new He($e(h,h.dtstart||t.dtstart||s,h.tzid||t.tzid||u),l)}(e,function(e){var t=[],r=Object.keys(e),n=Object.keys(We);if(r.forEach((function(e){g(n,e)||t.push(e)})),t.length)throw new Error("Invalid options: "+t.join(", "));return q(q({},We),e)}(t))}function $e(e,t,r){return q(q({},e),{dtstart:t,tzid:r})}function Ge(e,t){return function(e){e.forEach((function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)}))}(t),e.split(",").map((function(e){return T(e)}))}function Ke(e){var t=this;return function(r){if(void 0!==r&&(t["_".concat(e)]=r),void 0!==t["_".concat(e)])return t["_".concat(e)];for(var n=0;n<t._rrule.length;n++){var i=t._rrule[n].origOptions[e];if(i)return i}}}var Je=function(e){function t(t){void 0===t&&(t=!1);var r=e.call(this,{},t)||this;return r.dtstart=Ke.apply(r,["dtstart"]),r.tzid=Ke.apply(r,["tzid"]),r._rrule=[],r._rdate=[],r._exrule=[],r._exdate=[],r}return R(t,e),t.prototype._iter=function(e){return function(e,t,r,n,i,o){var a={},s=e.accept;function u(e,t){r.forEach((function(r){r.between(e,t,!0).forEach((function(e){a[Number(e)]=!0}))}))}i.forEach((function(e){var t=new ce(e,o).rezonedDate();a[Number(t)]=!0})),e.accept=function(e){var t=Number(e);return isNaN(t)?s.call(this,e):!(!a[t]&&(u(new Date(t-1),new Date(t+1)),!a[t]))||(a[t]=!0,s.call(this,e))},"between"===e.method&&(u(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!a[t]||(a[t]=!0,s.call(this,e))});for(var l=0;l<n.length;l++){var c=new ce(n[l],o).rezonedDate();if(!e.accept(new Date(c.getTime())))break}t.forEach((function(t){Te(e,t.options)}));var h=e._result;switch(M(h),e.method){case"all":case"between":return h;case"before":return h.length&&h[h.length-1]||null;default:return h.length&&h[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){Ze(e,this._rrule)},t.prototype.exrule=function(e){Ze(e,this._exrule)},t.prototype.rdate=function(e){Qe(e,this._rdate)},t.prototype.exdate=function(e){Qe(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map((function(e){return Ve(e.toString())}))},t.prototype.exrules=function(){return this._exrule.map((function(e){return Ve(e.toString())}))},t.prototype.rdates=function(){return this._rdate.map((function(e){return new Date(e.getTime())}))},t.prototype.exdates=function(){return this._exdate.map((function(e){return new Date(e.getTime())}))},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(he({dtstart:this._dtstart}))),this._rrule.forEach((function(t){e=e.concat(t.toString().split("\n"))})),this._exrule.forEach((function(t){e=e.concat(t.toString().split("\n").map((function(e){return e.replace(/^RRULE:/,"EXRULE:")})).filter((function(e){return!/^DTSTART/.test(e)})))})),this._rdate.length&&e.push(Xe("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(Xe("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach((function(t){return e.rrule(t.clone())})),this._exrule.forEach((function(t){return e.exrule(t.clone())})),this._rdate.forEach((function(t){return e.rdate(new Date(t.getTime()))})),this._exdate.forEach((function(t){return e.exdate(new Date(t.getTime()))})),e},t}(He);function Ze(e,t){if(!(e instanceof He))throw new TypeError(String(e)+" is not RRule instance");g(t.map(String),String(e))||t.push(e)}function Qe(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");g(t.map(Number),Number(e))||(t.push(e),M(t))}function Xe(e,t,r){var n=!r||"UTC"===r.toUpperCase(),i=n?"".concat(e,":"):"".concat(e,";TZID=").concat(r,":"),o=t.map((function(e){return I(e.valueOf(),n)})).join(",");return"".concat(i).concat(o)}},17271(e){e.exports=function(e,t,r){"use strict";if(e===t)return 1;if(""===t)return 0;var n=0,i=e.toLowerCase(),o=e.length,a=t.toLowerCase(),s=t.length,u=0,l=1;r=r?1-r:0;for(var c=0;c<s;c+=1){var h=i.indexOf(a[c],u);if(-1===h){if(!r)return 0;l+=r}else{var p=0;u===h?p=.7:(p=.1," "===e[h-1]&&(p+=.8)),e[h]===t[c]&&(p+=.1),n+=p,u=h+1}}var d=.5*(n/o+n/s)/l;return a[0]===i[0]&&d<.85&&(d+=.15),d}},84215(e,t,r){"use strict";var n=r(44576),i=r(82839),o=r(22195),a=function(e){return i.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},16193(e,t,r){"use strict";var n=r(79504),i=Error,o=n("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},80747(e,t,r){"use strict";var n=r(66699),i=r(16193),o=r(24659),a=Error.captureStackTrace;e.exports=function(e,t,r,s){o&&(a?a(e,t):n(e,"stack",i(r,s)))}},24659(e,t,r){"use strict";var n=r(79039),i=r(6980);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},77584(e,t,r){"use strict";var n=r(20034),i=r(66699);e.exports=function(e,t){n(t)&&"cause"in t&&i(e,"cause",t.cause)}},32603(e,t,r){"use strict";var n=r(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},1103(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},10916(e,t,r){"use strict";var n=r(44576),i=r(80550),o=r(94901),a=r(92796),s=r(33706),u=r(78227),l=r(84215),c=r(96395),h=r(39519),p=i&&i.prototype,d=u("species"),f=!1,m=o(n.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===h)return!0;if(c&&(!p.catch||!p.finally))return!0;if(!h||h<51||!/native code/.test(e)){var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[d]=n,!(f=r.then((function(){}))instanceof n))return!0}return!t&&("BROWSER"===l||"DENO"===l)&&!m}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:f}},90537(e,t,r){"use strict";var n=r(80550),i=r(84428),o=r(10916).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},17145(e,t,r){"use strict";var n=r(46518),i=r(1625),o=r(42787),a=r(52967),s=r(77740),u=r(2360),l=r(66699),c=r(6980),h=r(77584),p=r(80747),d=r(72652),f=r(32603),m=r(78227)("toStringTag"),g=Error,v=[].push,y=function(e,t){var r,n=i(b,this);a?r=a(new g,n?o(this):b):(r=n?this:u(b),l(r,m,"Error")),void 0!==t&&l(r,"message",f(t)),p(r,y,r.stack,1),arguments.length>2&&h(r,arguments[2]);var s=[];return d(e,v,{that:s}),l(r,"errors",s),r};a?a(y,g):s(y,g,{name:!0});var b=y.prototype=u(g.prototype,{constructor:c(1,y),message:c(1,""),name:c(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:y})},30067(e,t,r){"use strict";r(17145)},53921(e,t,r){"use strict";var n=r(46518),i=r(72652),o=r(97040);n({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,r){o(t,e,r)}),{AS_ENTRIES:!0}),t}})},96167(e,t,r){"use strict";var n=r(46518),i=r(69565),o=r(79306),a=r(36043),s=r(1103),u=r(72652);n({target:"Promise",stat:!0,forced:r(90537)},{allSettled:function(e){var t=this,r=a.f(t),n=r.resolve,l=r.reject,c=s((function(){var r=o(t.resolve),a=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,i(r,t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--l||n(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--l||n(a))}))})),--l||n(a)}));return c.error&&l(c.value),r.promise}})},93518(e,t,r){"use strict";var n=r(46518),i=r(69565),o=r(79306),a=r(97751),s=r(36043),u=r(1103),l=r(72652),c=r(90537),h="No one promise resolved";n({target:"Promise",stat:!0,forced:c},{any:function(e){var t=this,r=a("AggregateError"),n=s.f(t),c=n.resolve,p=n.reject,d=u((function(){var n=o(t.resolve),a=[],s=0,u=1,d=!1;l(e,(function(e){var o=s++,l=!1;u++,i(n,t,e).then((function(e){l||d||(d=!0,c(e))}),(function(e){l||d||(l=!0,a[o]=e,--u||p(new r(a,h)))}))})),--u||p(new r(a,h))}));return d.error&&p(d.value),n.promise}})},7897(e,t,r){"use strict";r.d(t,{a$:()=>i,k6j:()=>o,pS3:()=>n});var n={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80C222.8 80 169.2 109.6 128.1 147.7 89.6 183.5 63 226 49.4 256 63 286 89.6 328.5 128.1 364.3 169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256 513 226 486.4 183.5 447.9 147.7 406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1 3.3 7.9 3.3 16.7 0 24.6-14.9 35.7-46.2 87.7-93 131.1-47.1 43.7-111.8 80.6-192.6 80.6S142.5 443.2 95.4 399.4c-46.8-43.5-78.1-95.4-93-131.1-3.3-7.9-3.3-16.7 0-24.6 14.9-35.7 46.2-87.7 93-131.1zM288 336c44.2 0 80-35.8 80-80 0-29.6-16.1-55.5-40-69.3-1.4 59.7-49.6 107.9-109.3 109.3 13.8 23.9 39.7 40 69.3 40zm-79.6-88.4c2.5 .3 5 .4 7.6 .4 35.3 0 64-28.7 64-64 0-2.6-.2-5.1-.4-7.6-37.4 3.9-67.2 33.7-71.1 71.1zm45.6-115c10.8-3 22.2-4.5 33.9-4.5 8.8 0 17.5 .9 25.8 2.6 .3 .1 .5 .1 .8 .2 57.9 12.2 101.4 63.7 101.4 125.2 0 70.7-57.3 128-128 128-61.6 0-113-43.5-125.2-101.4-1.8-8.6-2.8-17.5-2.8-26.6 0-11 1.4-21.8 4-32 .2-.7 .3-1.3 .5-1.9 11.9-43.4 46.1-77.6 89.5-89.5z"]},i={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},o={prefix:"far",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM176.9 111.1c32.1-18.9 69.2-31.1 111.1-31.1 65.2 0 118.8 29.6 159.9 67.7 38.5 35.7 65.1 78.3 78.6 108.3-13.6 30-40.2 72.5-78.6 108.3-3.1 2.8-6.2 5.6-9.4 8.4L393.8 328c14-20.5 22.2-45.3 22.2-72 0-70.7-57.3-128-128-128-26.7 0-51.5 8.2-72 22.2l-39.1-39.1zm182 182l-108-108c11.1-5.8 23.7-9.1 37.1-9.1 44.2 0 80 35.8 80 80 0 13.4-3.3 26-9.1 37.1zM103.4 173.2l-34-34c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6L352.2 422c-20 6.4-41.4 10-64.2 10-65.2 0-118.8-29.6-159.9-67.7-38.5-35.7-65.1-78.3-78.6-108.3 10.4-23.1 28.6-53.6 54-82.8z"]}},13083(e,t,r){"use strict";r.d(t,{Ay:()=>Ur});var n=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,l=e=>i(e,"__esModule",{value:!0}),c=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},h=(e,t)=>{for(var r in l(e),t)i(e,r,{get:t[r],enumerable:!0})},p=e=>((e,t,r)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let n of a(t))u.call(e,n)||"default"===n||i(e,n,{get:()=>t[n],enumerable:!(r=o(t,n))||r.enumerable});return e})(l(i(null!=e?n(s(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),d=c({"src/grammar/tag.js"(e,t){function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name="SyntaxError","function"===typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}!function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(r,Error),r.buildMessage=function(e,t,r){var n,i={literal:function(e){return'"'+a(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description},not:function(e){return"not "+u(e.expected)}};function o(e){return e.charCodeAt(0).toString(16).toUpperCase()}function a(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+o(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+o(e)}))}function s(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+o(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+o(e)}))}function u(e){return i[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(u);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(((n=t)?'"'+a(n)+'"':"end of input")+" found.")},t.exports={SyntaxError:r,parse:function(e,t){t=void 0!==t?t:{};var n,i={},o={Top:We},a=We,s="/",u=".",l="#",c="=",h="(",p=")",d=",",f="[",m="]",g="null",v="true",y="false",b="{",D="}",w=":",k="-",_='"',x="\\",F="n",C="r",S="t",A=/^[$@]/,E=/^[0-9]/,N=/^[^\0-\x1F"\\]/,L=/^[a-zA-Z0-9_\-]/,P=/^[ \n\t]/,M=Be("/",!1),I=je("tag name"),T=je("class"),O=je("id"),B=Be("=",!1),j=Be("(",!1),R=Be(")",!1),q=Be(",",!1),z=je("variable"),U=je("null"),H=je("boolean"),W=Be("[",!1),Y=Be("]",!1),V=Be("{",!1),$=Be("}",!1),G=Be(":",!1),K=je("number"),J=je("string"),Z=je("identifier"),Q=je("whitespace"),X=function(e){return{type:"variable",meta:{variable:e}}},ee=function(e){return{type:"annotation",meta:{attributes:e}}},te=function(e,t){return t},re=function(e,t,r,n){t&&(r=r||[]).unshift({type:"attribute",name:"primary",value:t});const[i,o]=n?["tag",0]:["tag_open",1];return{type:i,nesting:o,meta:{tag:e,attributes:r}}},ne=function(e){return{type:"tag_close",nesting:-1,meta:{tag:e}}},ie=function(e,t){return e?[e,...t]:[]},oe=function(e){return e},ae=function(e){return e},se=function(e){return e},ue=function(e){return e},le=function(e){return{type:"class",name:e,value:!0}},ce=function(e){return{type:"attribute",name:"id",value:e}},he=function(e,t){return{type:"attribute",name:e,value:t}},pe=function(e,t,r){return t?[t,...r]:[]},de=function(e,t){let r={};for(let[n,{name:i,value:o}]of t.entries())r[i||n]=o;return new ht(e,r)},fe=function(e){return e},me=function(e,t){return{name:e,value:t}},ge=function(e){return e},ve=function(e,t,r){return"@"===e?[t,...r]:new ct([t,...r])},ye=function(){return null},be=function(){return!0},De=function(){return!1},we=function(e,t){return[e,...t]},ke=function(e){return e||[]},_e=function(e,t){return Object.assign(e,...t)},xe=function(e){return e||{}},Fe=function(e,t){return"$$mdtype"===e?{}:{[e]:t}},Ce=function(){return parseFloat(e.substring(Me,Pe))},Se=function(e){return e.join("")},Ae=function(){return"\n"},Ee=function(){return"\r"},Ne=function(){return"\t"},Le=function(e){return e},Pe=0,Me=0,Ie=[{line:1,column:1}],Te=[],Oe=0;if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=o[t.startRule]}function Be(e,t){return{type:"literal",text:e,ignoreCase:t}}function je(e){return{type:"other",description:e}}function Re(t){var r,n=Ie[t];if(n)return n;for(r=t-1;!Ie[r];)r--;for(n={line:(n=Ie[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Ie[t]=n,n}var qe="string"===typeof t.filename&&t.filename.length>0;function ze(e,r){var n={};qe&&(n.filename=t.filename);var i=Re(e);n.start={offset:e,line:i.line,column:i.column};var o=Re(r);return n.end={offset:r,line:o.line,column:o.column},n}function Ue(e){var t=Te[Te.length-1];Pe<t.pos||(Pe>t.pos&&(t.pos=Pe,t.variants=[]),t.variants.push(e))}function He(e,t,n){return new r(r.buildMessage(e,t,n),e,t,n)}function We(){var t;return(t=function(){var e,t;e=Pe,(t=Xe())===i&&(t=Ke());t!==i&&(Me=e,t=X(t));return e=t,e}())===i&&(t=function(){var e,t,r,n;if(e=Pe,(t=Ve())!==i){for(r=[],n=lt();n!==i;)r.push(n),n=lt();Me=e,e=ee(t)}else Pe=e,e=i;return e}())===i&&(t=function(){var t,r,n,o,a,u,l,c=function(e){0===Oe&&Ue(e)};if(t=Pe,(r=Ye())!==i){for(n=[],o=lt();o!==i;)n.push(o),o=lt();for(o=Pe,(a=tt())!==i?((u=lt())===i&&(u=null),Me=o,o=te(r,a)):(Pe=o,o=i),o===i&&(o=null),(a=Ve())===i&&(a=null),u=[],l=lt();l!==i;)u.push(l),l=lt();c(M),47===e.charCodeAt(Pe)?(l=s,Pe++):l=i,l===i&&(l=null),Me=t,t=re(r,o,a,l)}else Pe=t,t=i;return t}(),t===i&&(t=function(){var t,r,n,o=function(e){0===Oe&&Ue(e)};t=Pe,o(M),47===e.charCodeAt(Pe)?(r=s,Pe++):r=i;r!==i&&(n=Ye())!==i?(Me=t,t=ne(n)):(Pe=t,t=i);return t}())),t}function Ye(){var e,t;return t=I,0===Oe&&Ue(t),Oe++,e=ut(),Oe--,e}function Ve(){var e,t,r,n;if(e=Pe,(t=Ge())!==i){for(r=[],n=$e();n!==i;)r.push(n),n=$e();Me=e,e=ie(t,r)}else Pe=e,e=i;return e}function $e(){var e,t,r;if(e=Pe,t=[],(r=lt())!==i)for(;r!==i;)t.push(r),r=lt();else t=i;return t!==i&&(r=Ge())!==i?(Me=e,e=oe(r)):(Pe=e,e=i),e}function Ge(){var t,r;return t=Pe,r=function(){var t,r,n,o=function(e){0===Oe&&Ue(e)};o(O),Oe++,t=Pe,35===e.charCodeAt(Pe)?(r=l,Pe++):r=i;r!==i&&(n=ut())!==i?(Me=t,t=ce(n)):(Pe=t,t=i);return Oe--,t}(),r!==i&&(Me=t,r=ae(r)),(t=r)===i&&(t=Pe,r=function(){var t,r,n,o=function(e){0===Oe&&Ue(e)};o(T),Oe++,t=Pe,46===e.charCodeAt(Pe)?(r=u,Pe++):r=i;r!==i&&(n=ut())!==i?(Me=t,t=le(n)):(Pe=t,t=i);return Oe--,t}(),r!==i&&(Me=t,r=se(r)),(t=r)===i&&(t=Pe,r=function(){var t,r,n,o,a=function(e){0===Oe&&Ue(e)};t=Pe,r=ut(),r!==i?(a(B),61===e.charCodeAt(Pe)?(n=c,Pe++):n=i,n!==i&&(o=tt())!==i?(Me=t,t=he(r,o)):(Pe=t,t=i)):(Pe=t,t=i);return t}(),r!==i&&(Me=t,r=ue(r)),t=r)),t}function Ke(){var t,r,n,o,a,s,u,l,c=function(e){0===Oe&&Ue(e)};if(t=Pe,(r=ut())!==i)if(c(j),40===e.charCodeAt(Pe)?(n=h,Pe++):n=i,n!==i){for(o=[],a=lt();a!==i;)o.push(a),a=lt();for(a=Pe,(s=Je())===i&&(s=null),u=[],l=Ze();l!==i;)u.push(l),l=Ze();Me=a,a=pe(r,s,u),c(R),41===e.charCodeAt(Pe)?(s=p,Pe++):s=i,s!==i?(Me=t,t=de(r,a)):(Pe=t,t=i)}else Pe=t,t=i;else Pe=t,t=i;return t}function Je(){var t,r,n,o,a;return t=Pe,r=Pe,(n=ut())!==i?(a=B,0===Oe&&Ue(a),61===e.charCodeAt(Pe)?(o=c,Pe++):o=i,o!==i?(Me=r,r=fe(n)):(Pe=r,r=i)):(Pe=r,r=i),r===i&&(r=null),(n=tt())!==i?(Me=t,t=me(r,n)):(Pe=t,t=i),t}function Ze(){var t,r,n,o,a,s;for(t=Pe,r=[],n=lt();n!==i;)r.push(n),n=lt();if(s=q,0===Oe&&Ue(s),44===e.charCodeAt(Pe)?(n=d,Pe++):n=i,n!==i){for(o=[],a=lt();a!==i;)o.push(a),a=lt();(a=Je())!==i?(Me=t,t=ge(a)):(Pe=t,t=i)}else Pe=t,t=i;return t}function Qe(){var t,r,n,o;for(t=Pe,r=[],n=lt();n!==i;)r.push(n),n=lt();return o=q,0===Oe&&Ue(o),44===e.charCodeAt(Pe)?(n=d,Pe++):n=i,n!==i?t=r=[r,n]:(Pe=t,t=i),t===i&&(t=null),t}function Xe(){var t,r,n,o,a,s;if(s=z,0===Oe&&Ue(s),Oe++,t=Pe,A.test(e.charAt(Pe))?(r=e.charAt(Pe),Pe++):r=i,r!==i)if((n=ut())!==i){for(o=[],a=et();a!==i;)o.push(a),a=et();Me=t,t=ve(r,n,o)}else Pe=t,t=i;else Pe=t,t=i;return Oe--,t}function et(){var t,r,n,o;return t=Pe,46===e.charCodeAt(Pe)?(r=u,Pe++):r=i,r!==i&&(n=ut())!==i?(Me=t,t=fe(n)):(Pe=t,t=i),t===i&&(t=Pe,91===e.charCodeAt(Pe)?(r=f,Pe++):r=i,r!==i?((n=ot())===i&&(n=at()),n!==i?(93===e.charCodeAt(Pe)?(o=m,Pe++):o=i,o!==i?(Me=t,t=ge(n)):(Pe=t,t=i)):(Pe=t,t=i)):(Pe=t,t=i)),t}function tt(){var t;return t=function(){var t,r,n=function(e){0===Oe&&Ue(e)};n(U),Oe++,t=Pe,e.substr(Pe,4)===g?(r=g,Pe+=4):r=i;r!==i&&(Me=t,r=ye());return t=r,Oe--,t}(),t===i&&(t=function(){var t,r,n=function(e){0===Oe&&Ue(e)};n(H),Oe++,t=Pe,e.substr(Pe,4)===v?(r=v,Pe+=4):r=i;r!==i&&(Me=t,r=be());t=r,t===i&&(t=Pe,e.substr(Pe,5)===y?(r=y,Pe+=5):r=i,r!==i&&(Me=t,r=De()),t=r);return Oe--,t}(),t===i&&(t=at())===i&&(t=ot())===i&&(t=function(){var t,r,n,o,a,s,u,l=function(e){0===Oe&&Ue(e)};t=Pe,l(W),91===e.charCodeAt(Pe)?(r=f,Pe++):r=i;if(r!==i){for(n=[],o=lt();o!==i;)n.push(o),o=lt();if(o=Pe,(a=tt())!==i){for(s=[],u=rt();u!==i;)s.push(u),u=rt();u=Qe(),Me=o,o=we(a,s)}else Pe=o,o=i;for(o===i&&(o=null),a=[],s=lt();s!==i;)a.push(s),s=lt();l(Y),93===e.charCodeAt(Pe)?(s=m,Pe++):s=i,s!==i?(Me=t,t=ke(o)):(Pe=t,t=i)}else Pe=t,t=i;return t}(),t===i&&(t=function(){var t,r,n,o,a,s,u,l=function(e){0===Oe&&Ue(e)};t=Pe,l(V),123===e.charCodeAt(Pe)?(r=b,Pe++):r=i;if(r!==i){for(n=[],o=lt();o!==i;)n.push(o),o=lt();if(o=Pe,(a=it())!==i){for(s=[],u=nt();u!==i;)s.push(u),u=nt();u=Qe(),Me=o,o=_e(a,s)}else Pe=o,o=i;for(o===i&&(o=null),a=[],s=lt();s!==i;)a.push(s),s=lt();l($),125===e.charCodeAt(Pe)?(s=D,Pe++):s=i,s!==i?(Me=t,t=xe(o)):(Pe=t,t=i)}else Pe=t,t=i;return t}(),t===i&&(t=Ke())===i&&(t=Xe())))),t}function rt(){var t,r,n,o,a,s;for(t=Pe,r=[],n=lt();n!==i;)r.push(n),n=lt();if(s=q,0===Oe&&Ue(s),44===e.charCodeAt(Pe)?(n=d,Pe++):n=i,n!==i){for(o=[],a=lt();a!==i;)o.push(a),a=lt();(a=tt())!==i?(Me=t,t=ge(a)):(Pe=t,t=i)}else Pe=t,t=i;return t}function nt(){var t,r,n,o,a,s;for(t=Pe,r=[],n=lt();n!==i;)r.push(n),n=lt();if(s=q,0===Oe&&Ue(s),44===e.charCodeAt(Pe)?(n=d,Pe++):n=i,n!==i){for(o=[],a=lt();a!==i;)o.push(a),a=lt();(a=it())!==i?(Me=t,t=oe(a)):(Pe=t,t=i)}else Pe=t,t=i;return t}function it(){var t,r,n,o,a,s;if(t=Pe,(r=ut())===i&&(r=at()),r!==i)if(s=G,0===Oe&&Ue(s),58===e.charCodeAt(Pe)?(n=w,Pe++):n=i,n!==i){for(o=[],a=lt();a!==i;)o.push(a),a=lt();(a=tt())!==i?(Me=t,t=Fe(r,a)):(Pe=t,t=i)}else Pe=t,t=i;else Pe=t,t=i;return t}function ot(){var t,r,n,o,a,s,l,c;if(c=K,0===Oe&&Ue(c),Oe++,t=Pe,45===e.charCodeAt(Pe)?(r=k,Pe++):r=i,r===i&&(r=null),n=[],E.test(e.charAt(Pe))?(o=e.charAt(Pe),Pe++):o=i,o!==i)for(;o!==i;)n.push(o),E.test(e.charAt(Pe))?(o=e.charAt(Pe),Pe++):o=i;else n=i;if(n!==i){if(o=Pe,46===e.charCodeAt(Pe)?(a=u,Pe++):a=i,a!==i){if(s=[],E.test(e.charAt(Pe))?(l=e.charAt(Pe),Pe++):l=i,l!==i)for(;l!==i;)s.push(l),E.test(e.charAt(Pe))?(l=e.charAt(Pe),Pe++):l=i;else s=i;s!==i?o=a=[a,s]:(Pe=o,o=i)}else Pe=o,o=i;o===i&&(o=null),Me=t,t=Ce()}else Pe=t,t=i;return Oe--,t}function at(){var t,r,n,o,a;if(a=J,0===Oe&&Ue(a),Oe++,t=Pe,34===e.charCodeAt(Pe)?(r=_,Pe++):r=i,r!==i){for(n=[],o=st();o!==i;)n.push(o),o=st();34===e.charCodeAt(Pe)?(o=_,Pe++):o=i,o!==i?(Me=t,t=Se(n)):(Pe=t,t=i)}else Pe=t,t=i;return Oe--,t}function st(){var t;return N.test(e.charAt(Pe))?(t=e.charAt(Pe),Pe++):t=i,t===i&&(t=function(){var t,r,n,o;t=Pe,92===e.charCodeAt(Pe)?(r=x,Pe++):r=i;r!==i?(34===e.charCodeAt(Pe)?(n=_,Pe++):n=i,n===i&&(92===e.charCodeAt(Pe)?(n=x,Pe++):n=i,n===i&&(n=Pe,110===e.charCodeAt(Pe)?(o=F,Pe++):o=i,o!==i&&(Me=n,o=Ae()),(n=o)===i&&(n=Pe,114===e.charCodeAt(Pe)?(o=C,Pe++):o=i,o!==i&&(Me=n,o=Ee()),(n=o)===i&&(n=Pe,116===e.charCodeAt(Pe)?(o=S,Pe++):o=i,o!==i&&(Me=n,o=Ne()),n=o)))),n!==i?(Me=t,t=Le(n)):(Pe=t,t=i)):(Pe=t,t=i);return t}()),t}function ut(){var t,r,n,o;if(o=Z,0===Oe&&Ue(o),Oe++,t=Pe,r=[],L.test(e.charAt(Pe))?(n=e.charAt(Pe),Pe++):n=i,n!==i)for(;n!==i;)r.push(n),L.test(e.charAt(Pe))?(n=e.charAt(Pe),Pe++):n=i;else r=i;return t=r!==i?e.substring(t,Pe):r,Oe--,t}function lt(){var t,r;return r=Q,0===Oe&&Ue(r),Oe++,P.test(e.charAt(Pe))?(t=e.charAt(Pe),Pe++):t=i,Oe--,t}const{Variable:ct,Function:ht}=t;if(Te.push({pos:Pe,variants:[]}),(n=a())!==i&&Pe===e.length)return n;throw n!==i&&Pe<e.length&&Ue({type:"end"}),function(){var t=Te[0],r=t.pos;return He(t.variants,r<e.length?e.charAt(r):null,r<e.length?ze(r,r+1):ze(r,r))}()}}}}),f=c({"node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xc1",aacute:"\xe1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223e",acd:"\u223f",acE:"\u223e\u0333",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"\u0410",acy:"\u0430",AElig:"\xc6",aelig:"\xe6",af:"\u2061",Afr:"\ud835\udd04",afr:"\ud835\udd1e",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03b1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2a3f",amp:"&",AMP:"&",andand:"\u2a55",And:"\u2a53",and:"\u2227",andd:"\u2a5c",andslope:"\u2a58",andv:"\u2a5a",ang:"\u2220",ange:"\u29a4",angle:"\u2220",angmsdaa:"\u29a8",angmsdab:"\u29a9",angmsdac:"\u29aa",angmsdad:"\u29ab",angmsdae:"\u29ac",angmsdaf:"\u29ad",angmsdag:"\u29ae",angmsdah:"\u29af",angmsd:"\u2221",angrt:"\u221f",angrtvb:"\u22be",angrtvbd:"\u299d",angsph:"\u2222",angst:"\xc5",angzarr:"\u237c",Aogon:"\u0104",aogon:"\u0105",Aopf:"\ud835\udd38",aopf:"\ud835\udd52",apacir:"\u2a6f",ap:"\u2248",apE:"\u2a70",ape:"\u224a",apid:"\u224b",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224a",Aring:"\xc5",aring:"\xe5",Ascr:"\ud835\udc9c",ascr:"\ud835\udcb6",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224d",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"\u2233",awint:"\u2a11",backcong:"\u224c",backepsilon:"\u03f6",backprime:"\u2035",backsim:"\u223d",backsimeq:"\u22cd",Backslash:"\u2216",Barv:"\u2ae7",barvee:"\u22bd",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23b5",bbrktbrk:"\u23b6",bcong:"\u224c",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201e",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29b0",bepsi:"\u03f6",bernou:"\u212c",Bernoullis:"\u212c",Beta:"\u0392",beta:"\u03b2",beth:"\u2136",between:"\u226c",Bfr:"\ud835\udd05",bfr:"\ud835\udd1f",bigcap:"\u22c2",bigcirc:"\u25ef",bigcup:"\u22c3",bigodot:"\u2a00",bigoplus:"\u2a01",bigotimes:"\u2a02",bigsqcup:"\u2a06",bigstar:"\u2605",bigtriangledown:"\u25bd",bigtriangleup:"\u25b3",biguplus:"\u2a04",bigvee:"\u22c1",bigwedge:"\u22c0",bkarow:"\u290d",blacklozenge:"\u29eb",blacksquare:"\u25aa",blacktriangle:"\u25b4",blacktriangledown:"\u25be",blacktriangleleft:"\u25c2",blacktriangleright:"\u25b8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20e5",bnequiv:"\u2261\u20e5",bNot:"\u2aed",bnot:"\u2310",Bopf:"\ud835\udd39",bopf:"\ud835\udd53",bot:"\u22a5",bottom:"\u22a5",bowtie:"\u22c8",boxbox:"\u29c9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250c",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252c",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229f",boxplus:"\u229e",boxtimes:"\u22a0",boxul:"\u2518",boxuL:"\u255b",boxUl:"\u255c",boxUL:"\u255d",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255a",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253c",boxvH:"\u256a",boxVh:"\u256b",boxVH:"\u256c",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251c",boxvR:"\u255e",boxVr:"\u255f",boxVR:"\u2560",bprime:"\u2035",breve:"\u02d8",Breve:"\u02d8",brvbar:"\xa6",bscr:"\ud835\udcb7",Bscr:"\u212c",bsemi:"\u204f",bsim:"\u223d",bsime:"\u22cd",bsolb:"\u29c5",bsol:"\\",bsolhsub:"\u27c8",bull:"\u2022",bullet:"\u2022",bump:"\u224e",bumpE:"\u2aae",bumpe:"\u224f",Bumpeq:"\u224e",bumpeq:"\u224f",Cacute:"\u0106",cacute:"\u0107",capand:"\u2a44",capbrcup:"\u2a49",capcap:"\u2a4b",cap:"\u2229",Cap:"\u22d2",capcup:"\u2a47",capdot:"\u2a40",CapitalDifferentialD:"\u2145",caps:"\u2229\ufe00",caret:"\u2041",caron:"\u02c7",Cayleys:"\u212d",ccaps:"\u2a4d",Ccaron:"\u010c",ccaron:"\u010d",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2a4c",ccupssm:"\u2a50",Cdot:"\u010a",cdot:"\u010b",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"\u29b2",cent:"\xa2",centerdot:"\xb7",CenterDot:"\xb7",cfr:"\ud835\udd20",Cfr:"\u212d",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",circeq:"\u2257",circlearrowleft:"\u21ba",circlearrowright:"\u21bb",circledast:"\u229b",circledcirc:"\u229a",circleddash:"\u229d",CircleDot:"\u2299",circledR:"\xae",circledS:"\u24c8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25cb",cirE:"\u29c3",cire:"\u2257",cirfnint:"\u2a10",cirmid:"\u2aef",cirscir:"\u29c2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201d",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2a74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2a6d",Congruent:"\u2261",conint:"\u222e",Conint:"\u222f",ContourIntegral:"\u222e",copf:"\ud835\udd54",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xa9",COPY:"\xa9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21b5",cross:"\u2717",Cross:"\u2a2f",Cscr:"\ud835\udc9e",cscr:"\ud835\udcb8",csub:"\u2acf",csube:"\u2ad1",csup:"\u2ad0",csupe:"\u2ad2",ctdot:"\u22ef",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22de",cuesc:"\u22df",cularr:"\u21b6",cularrp:"\u293d",cupbrcap:"\u2a48",cupcap:"\u2a46",CupCap:"\u224d",cup:"\u222a",Cup:"\u22d3",cupcup:"\u2a4a",cupdot:"\u228d",cupor:"\u2a45",cups:"\u222a\ufe00",curarr:"\u21b7",curarrm:"\u293c",curlyeqprec:"\u22de",curlyeqsucc:"\u22df",curlyvee:"\u22ce",curlywedge:"\u22cf",curren:"\xa4",curvearrowleft:"\u21b6",curvearrowright:"\u21b7",cuvee:"\u22ce",cuwed:"\u22cf",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232d",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21a1",dArr:"\u21d3",dash:"\u2010",Dashv:"\u2ae4",dashv:"\u22a3",dbkarow:"\u290f",dblac:"\u02dd",Dcaron:"\u010e",dcaron:"\u010f",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21ca",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2a77",deg:"\xb0",Del:"\u2207",Delta:"\u0394",delta:"\u03b4",demptyv:"\u29b1",dfisht:"\u297f",Dfr:"\ud835\udd07",dfr:"\ud835\udd21",dHar:"\u2965",dharl:"\u21c3",dharr:"\u21c2",DiacriticalAcute:"\xb4",DiacriticalDot:"\u02d9",DiacriticalDoubleAcute:"\u02dd",DiacriticalGrave:"`",DiacriticalTilde:"\u02dc",diam:"\u22c4",diamond:"\u22c4",Diamond:"\u22c4",diamondsuit:"\u2666",diams:"\u2666",die:"\xa8",DifferentialD:"\u2146",digamma:"\u03dd",disin:"\u22f2",div:"\xf7",divide:"\xf7",divideontimes:"\u22c7",divonx:"\u22c7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231e",dlcrop:"\u230d",dollar:"$",Dopf:"\ud835\udd3b",dopf:"\ud835\udd55",Dot:"\xa8",dot:"\u02d9",DotDot:"\u20dc",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22a1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222f",DoubleDot:"\xa8",DoubleDownArrow:"\u21d3",DoubleLeftArrow:"\u21d0",DoubleLeftRightArrow:"\u21d4",DoubleLeftTee:"\u2ae4",DoubleLongLeftArrow:"\u27f8",DoubleLongLeftRightArrow:"\u27fa",DoubleLongRightArrow:"\u27f9",DoubleRightArrow:"\u21d2",DoubleRightTee:"\u22a8",DoubleUpArrow:"\u21d1",DoubleUpDownArrow:"\u21d5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21d3",DownArrowUpArrow:"\u21f5",DownBreve:"\u0311",downdownarrows:"\u21ca",downharpoonleft:"\u21c3",downharpoonright:"\u21c2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295e",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21bd",DownRightTeeVector:"\u295f",DownRightVectorBar:"\u2957",DownRightVector:"\u21c1",DownTeeArrow:"\u21a7",DownTee:"\u22a4",drbkarow:"\u2910",drcorn:"\u231f",drcrop:"\u230c",Dscr:"\ud835\udc9f",dscr:"\ud835\udcb9",DScy:"\u0405",dscy:"\u0455",dsol:"\u29f6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22f1",dtri:"\u25bf",dtrif:"\u25be",duarr:"\u21f5",duhar:"\u296f",dwangle:"\u29a6",DZcy:"\u040f",dzcy:"\u045f",dzigrarr:"\u27ff",Eacute:"\xc9",eacute:"\xe9",easter:"\u2a6e",Ecaron:"\u011a",ecaron:"\u011b",Ecirc:"\xca",ecirc:"\xea",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042d",ecy:"\u044d",eDDot:"\u2a77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\ud835\udd08",efr:"\ud835\udd22",eg:"\u2a9a",Egrave:"\xc8",egrave:"\xe8",egs:"\u2a96",egsdot:"\u2a98",el:"\u2a99",Element:"\u2208",elinters:"\u23e7",ell:"\u2113",els:"\u2a95",elsdot:"\u2a97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25fb",emptyv:"\u2205",EmptyVerySmallSquare:"\u25ab",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014a",eng:"\u014b",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\ud835\udd3c",eopf:"\ud835\udd56",epar:"\u22d5",eparsl:"\u29e3",eplus:"\u2a71",epsi:"\u03b5",Epsilon:"\u0395",epsilon:"\u03b5",epsiv:"\u03f5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2a96",eqslantless:"\u2a95",Equal:"\u2a75",equals:"=",EqualTilde:"\u2242",equest:"\u225f",Equilibrium:"\u21cc",equiv:"\u2261",equivDD:"\u2a78",eqvparsl:"\u29e5",erarr:"\u2971",erDot:"\u2253",escr:"\u212f",Escr:"\u2130",esdot:"\u2250",Esim:"\u2a73",esim:"\u2242",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\ufb03",fflig:"\ufb00",ffllig:"\ufb04",Ffr:"\ud835\udd09",ffr:"\ud835\udd23",filig:"\ufb01",FilledSmallSquare:"\u25fc",FilledVerySmallSquare:"\u25aa",fjlig:"fj",flat:"\u266d",fllig:"\ufb02",fltns:"\u25b1",fnof:"\u0192",Fopf:"\ud835\udd3d",fopf:"\ud835\udd57",forall:"\u2200",ForAll:"\u2200",fork:"\u22d4",forkv:"\u2ad9",Fouriertrf:"\u2131",fpartint:"\u2a0d",frac12:"\xbd",frac13:"\u2153",frac14:"\xbc",frac15:"\u2155",frac16:"\u2159",frac18:"\u215b",frac23:"\u2154",frac25:"\u2156",frac34:"\xbe",frac35:"\u2157",frac38:"\u215c",frac45:"\u2158",frac56:"\u215a",frac58:"\u215d",frac78:"\u215e",frasl:"\u2044",frown:"\u2322",fscr:"\ud835\udcbb",Fscr:"\u2131",gacute:"\u01f5",Gamma:"\u0393",gamma:"\u03b3",Gammad:"\u03dc",gammad:"\u03dd",gap:"\u2a86",Gbreve:"\u011e",gbreve:"\u011f",Gcedil:"\u0122",Gcirc:"\u011c",gcirc:"\u011d",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2a8c",gel:"\u22db",geq:"\u2265",geqq:"\u2267",geqslant:"\u2a7e",gescc:"\u2aa9",ges:"\u2a7e",gesdot:"\u2a80",gesdoto:"\u2a82",gesdotol:"\u2a84",gesl:"\u22db\ufe00",gesles:"\u2a94",Gfr:"\ud835\udd0a",gfr:"\ud835\udd24",gg:"\u226b",Gg:"\u22d9",ggg:"\u22d9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2aa5",gl:"\u2277",glE:"\u2a92",glj:"\u2aa4",gnap:"\u2a8a",gnapprox:"\u2a8a",gne:"\u2a88",gnE:"\u2269",gneq:"\u2a88",gneqq:"\u2269",gnsim:"\u22e7",Gopf:"\ud835\udd3e",gopf:"\ud835\udd58",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22db",GreaterFullEqual:"\u2267",GreaterGreater:"\u2aa2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2a7e",GreaterTilde:"\u2273",Gscr:"\ud835\udca2",gscr:"\u210a",gsim:"\u2273",gsime:"\u2a8e",gsiml:"\u2a90",gtcc:"\u2aa7",gtcir:"\u2a7a",gt:">",GT:">",Gt:"\u226b",gtdot:"\u22d7",gtlPar:"\u2995",gtquest:"\u2a7c",gtrapprox:"\u2a86",gtrarr:"\u2978",gtrdot:"\u22d7",gtreqless:"\u22db",gtreqqless:"\u2a8c",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\ufe00",gvnE:"\u2269\ufe00",Hacek:"\u02c7",hairsp:"\u200a",half:"\xbd",hamilt:"\u210b",HARDcy:"\u042a",hardcy:"\u044a",harrcir:"\u2948",harr:"\u2194",hArr:"\u21d4",harrw:"\u21ad",Hat:"^",hbar:"\u210f",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22b9",hfr:"\ud835\udd25",Hfr:"\u210c",HilbertSpace:"\u210b",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21ff",homtht:"\u223b",hookleftarrow:"\u21a9",hookrightarrow:"\u21aa",hopf:"\ud835\udd59",Hopf:"\u210d",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\ud835\udcbd",Hscr:"\u210b",hslash:"\u210f",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224e",HumpEqual:"\u224f",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xcd",iacute:"\xed",ic:"\u2063",Icirc:"\xce",icirc:"\xee",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xa1",iff:"\u21d4",ifr:"\ud835\udd26",Ifr:"\u2111",Igrave:"\xcc",igrave:"\xec",ii:"\u2148",iiiint:"\u2a0c",iiint:"\u222d",iinfin:"\u29dc",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012a",imacr:"\u012b",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22b7",imped:"\u01b5",Implies:"\u21d2",incare:"\u2105",in:"\u2208",infin:"\u221e",infintie:"\u29dd",inodot:"\u0131",intcal:"\u22ba",int:"\u222b",Int:"\u222c",integers:"\u2124",Integral:"\u222b",intercal:"\u22ba",Intersection:"\u22c2",intlarhk:"\u2a17",intprod:"\u2a3c",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012e",iogon:"\u012f",Iopf:"\ud835\udd40",iopf:"\ud835\udd5a",Iota:"\u0399",iota:"\u03b9",iprod:"\u2a3c",iquest:"\xbf",iscr:"\ud835\udcbe",Iscr:"\u2110",isin:"\u2208",isindot:"\u22f5",isinE:"\u22f9",isins:"\u22f4",isinsv:"\u22f3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xcf",iuml:"\xef",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\ud835\udd0d",jfr:"\ud835\udd27",jmath:"\u0237",Jopf:"\ud835\udd41",jopf:"\ud835\udd5b",Jscr:"\ud835\udca5",jscr:"\ud835\udcbf",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039a",kappa:"\u03ba",kappav:"\u03f0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041a",kcy:"\u043a",Kfr:"\ud835\udd0e",kfr:"\ud835\udd28",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040c",kjcy:"\u045c",Kopf:"\ud835\udd42",kopf:"\ud835\udd5c",Kscr:"\ud835\udca6",kscr:"\ud835\udcc0",lAarr:"\u21da",Lacute:"\u0139",lacute:"\u013a",laemptyv:"\u29b4",lagran:"\u2112",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",Lang:"\u27ea",langd:"\u2991",langle:"\u27e8",lap:"\u2a85",Laplacetrf:"\u2112",laquo:"\xab",larrb:"\u21e4",larrbfs:"\u291f",larr:"\u2190",Larr:"\u219e",lArr:"\u21d0",larrfs:"\u291d",larrhk:"\u21a9",larrlp:"\u21ab",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21a2",latail:"\u2919",lAtail:"\u291b",lat:"\u2aab",late:"\u2aad",lates:"\u2aad\ufe00",lbarr:"\u290c",lBarr:"\u290e",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298b",lbrksld:"\u298f",lbrkslu:"\u298d",Lcaron:"\u013d",lcaron:"\u013e",Lcedil:"\u013b",lcedil:"\u013c",lceil:"\u2308",lcub:"{",Lcy:"\u041b",lcy:"\u043b",ldca:"\u2936",ldquo:"\u201c",ldquor:"\u201e",ldrdhar:"\u2967",ldrushar:"\u294b",ldsh:"\u21b2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27e8",LeftArrowBar:"\u21e4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21d0",LeftArrowRightArrow:"\u21c6",leftarrowtail:"\u21a2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27e6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21c3",LeftFloor:"\u230a",leftharpoondown:"\u21bd",leftharpoonup:"\u21bc",leftleftarrows:"\u21c7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21d4",leftrightarrows:"\u21c6",leftrightharpoons:"\u21cb",leftrightsquigarrow:"\u21ad",LeftRightVector:"\u294e",LeftTeeArrow:"\u21a4",LeftTee:"\u22a3",LeftTeeVector:"\u295a",leftthreetimes:"\u22cb",LeftTriangleBar:"\u29cf",LeftTriangle:"\u22b2",LeftTriangleEqual:"\u22b4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21bf",LeftVectorBar:"\u2952",LeftVector:"\u21bc",lEg:"\u2a8b",leg:"\u22da",leq:"\u2264",leqq:"\u2266",leqslant:"\u2a7d",lescc:"\u2aa8",les:"\u2a7d",lesdot:"\u2a7f",lesdoto:"\u2a81",lesdotor:"\u2a83",lesg:"\u22da\ufe00",lesges:"\u2a93",lessapprox:"\u2a85",lessdot:"\u22d6",lesseqgtr:"\u22da",lesseqqgtr:"\u2a8b",LessEqualGreater:"\u22da",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2aa1",lesssim:"\u2272",LessSlantEqual:"\u2a7d",LessTilde:"\u2272",lfisht:"\u297c",lfloor:"\u230a",Lfr:"\ud835\udd0f",lfr:"\ud835\udd29",lg:"\u2276",lgE:"\u2a91",lHar:"\u2962",lhard:"\u21bd",lharu:"\u21bc",lharul:"\u296a",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21c7",ll:"\u226a",Ll:"\u22d8",llcorner:"\u231e",Lleftarrow:"\u21da",llhard:"\u296b",lltri:"\u25fa",Lmidot:"\u013f",lmidot:"\u0140",lmoustache:"\u23b0",lmoust:"\u23b0",lnap:"\u2a89",lnapprox:"\u2a89",lne:"\u2a87",lnE:"\u2268",lneq:"\u2a87",lneqq:"\u2268",lnsim:"\u22e6",loang:"\u27ec",loarr:"\u21fd",lobrk:"\u27e6",longleftarrow:"\u27f5",LongLeftArrow:"\u27f5",Longleftarrow:"\u27f8",longleftrightarrow:"\u27f7",LongLeftRightArrow:"\u27f7",Longleftrightarrow:"\u27fa",longmapsto:"\u27fc",longrightarrow:"\u27f6",LongRightArrow:"\u27f6",Longrightarrow:"\u27f9",looparrowleft:"\u21ab",looparrowright:"\u21ac",lopar:"\u2985",Lopf:"\ud835\udd43",lopf:"\ud835\udd5d",loplus:"\u2a2d",lotimes:"\u2a34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25ca",lozenge:"\u25ca",lozf:"\u29eb",lpar:"(",lparlt:"\u2993",lrarr:"\u21c6",lrcorner:"\u231f",lrhar:"\u21cb",lrhard:"\u296d",lrm:"\u200e",lrtri:"\u22bf",lsaquo:"\u2039",lscr:"\ud835\udcc1",Lscr:"\u2112",lsh:"\u21b0",Lsh:"\u21b0",lsim:"\u2272",lsime:"\u2a8d",lsimg:"\u2a8f",lsqb:"[",lsquo:"\u2018",lsquor:"\u201a",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2aa6",ltcir:"\u2a79",lt:"<",LT:"<",Lt:"\u226a",ltdot:"\u22d6",lthree:"\u22cb",ltimes:"\u22c9",ltlarr:"\u2976",ltquest:"\u2a7b",ltri:"\u25c3",ltrie:"\u22b4",ltrif:"\u25c2",ltrPar:"\u2996",lurdshar:"\u294a",luruhar:"\u2966",lvertneqq:"\u2268\ufe00",lvnE:"\u2268\ufe00",macr:"\xaf",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21a6",mapsto:"\u21a6",mapstodown:"\u21a7",mapstoleft:"\u21a4",mapstoup:"\u21a5",marker:"\u25ae",mcomma:"\u2a29",Mcy:"\u041c",mcy:"\u043c",mdash:"\u2014",mDDot:"\u223a",measuredangle:"\u2221",MediumSpace:"\u205f",Mellintrf:"\u2133",Mfr:"\ud835\udd10",mfr:"\ud835\udd2a",mho:"\u2127",micro:"\xb5",midast:"*",midcir:"\u2af0",mid:"\u2223",middot:"\xb7",minusb:"\u229f",minus:"\u2212",minusd:"\u2238",minusdu:"\u2a2a",MinusPlus:"\u2213",mlcp:"\u2adb",mldr:"\u2026",mnplus:"\u2213",models:"\u22a7",Mopf:"\ud835\udd44",mopf:"\ud835\udd5e",mp:"\u2213",mscr:"\ud835\udcc2",Mscr:"\u2133",mstpos:"\u223e",Mu:"\u039c",mu:"\u03bc",multimap:"\u22b8",mumap:"\u22b8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20d2",nap:"\u2249",napE:"\u2a70\u0338",napid:"\u224b\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266e",naturals:"\u2115",natur:"\u266e",nbsp:"\xa0",nbump:"\u224e\u0338",nbumpe:"\u224f\u0338",ncap:"\u2a43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2a6d\u0338",ncup:"\u2a42",Ncy:"\u041d",ncy:"\u043d",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21d7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200b",NegativeThickSpace:"\u200b",NegativeThinSpace:"\u200b",NegativeVeryThinSpace:"\u200b",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226b",NestedLessLess:"\u226a",NewLine:"\n",nexist:"\u2204",nexists:"\u2204",Nfr:"\ud835\udd11",nfr:"\ud835\udd2b",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2a7e\u0338",nges:"\u2a7e\u0338",nGg:"\u22d9\u0338",ngsim:"\u2275",nGt:"\u226b\u20d2",ngt:"\u226f",ngtr:"\u226f",nGtv:"\u226b\u0338",nharr:"\u21ae",nhArr:"\u21ce",nhpar:"\u2af2",ni:"\u220b",nis:"\u22fc",nisd:"\u22fa",niv:"\u220b",NJcy:"\u040a",njcy:"\u045a",nlarr:"\u219a",nlArr:"\u21cd",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219a",nLeftarrow:"\u21cd",nleftrightarrow:"\u21ae",nLeftrightarrow:"\u21ce",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2a7d\u0338",nles:"\u2a7d\u0338",nless:"\u226e",nLl:"\u22d8\u0338",nlsim:"\u2274",nLt:"\u226a\u20d2",nlt:"\u226e",nltri:"\u22ea",nltrie:"\u22ec",nLtv:"\u226a\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xa0",nopf:"\ud835\udd5f",Nopf:"\u2115",Not:"\u2aec",not:"\xac",NotCongruent:"\u2262",NotCupCap:"\u226d",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226f",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226b\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2a7e\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224e\u0338",NotHumpEqual:"\u224f\u0338",notin:"\u2209",notindot:"\u22f5\u0338",notinE:"\u22f9\u0338",notinva:"\u2209",notinvb:"\u22f7",notinvc:"\u22f6",NotLeftTriangleBar:"\u29cf\u0338",NotLeftTriangle:"\u22ea",NotLeftTriangleEqual:"\u22ec",NotLess:"\u226e",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226a\u0338",NotLessSlantEqual:"\u2a7d\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2aa2\u0338",NotNestedLessLess:"\u2aa1\u0338",notni:"\u220c",notniva:"\u220c",notnivb:"\u22fe",notnivc:"\u22fd",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2aaf\u0338",NotPrecedesSlantEqual:"\u22e0",NotReverseElement:"\u220c",NotRightTriangleBar:"\u29d0\u0338",NotRightTriangle:"\u22eb",NotRightTriangleEqual:"\u22ed",NotSquareSubset:"\u228f\u0338",NotSquareSubsetEqual:"\u22e2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22e3",NotSubset:"\u2282\u20d2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2ab0\u0338",NotSucceedsSlantEqual:"\u22e1",NotSucceedsTilde:"\u227f\u0338",NotSuperset:"\u2283\u20d2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2afd\u20e5",npart:"\u2202\u0338",npolint:"\u2a14",npr:"\u2280",nprcue:"\u22e0",nprec:"\u2280",npreceq:"\u2aaf\u0338",npre:"\u2aaf\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219b",nrArr:"\u21cf",nrarrw:"\u219d\u0338",nrightarrow:"\u219b",nRightarrow:"\u21cf",nrtri:"\u22eb",nrtrie:"\u22ed",nsc:"\u2281",nsccue:"\u22e1",nsce:"\u2ab0\u0338",Nscr:"\ud835\udca9",nscr:"\ud835\udcc3",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22e2",nsqsupe:"\u22e3",nsub:"\u2284",nsubE:"\u2ac5\u0338",nsube:"\u2288",nsubset:"\u2282\u20d2",nsubseteq:"\u2288",nsubseteqq:"\u2ac5\u0338",nsucc:"\u2281",nsucceq:"\u2ab0\u0338",nsup:"\u2285",nsupE:"\u2ac6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20d2",nsupseteq:"\u2289",nsupseteqq:"\u2ac6\u0338",ntgl:"\u2279",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"\u2278",ntriangleleft:"\u22ea",ntrianglelefteq:"\u22ec",ntriangleright:"\u22eb",ntrianglerighteq:"\u22ed",Nu:"\u039d",nu:"\u03bd",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224d\u20d2",nvdash:"\u22ac",nvDash:"\u22ad",nVdash:"\u22ae",nVDash:"\u22af",nvge:"\u2265\u20d2",nvgt:">\u20d2",nvHarr:"\u2904",nvinfin:"\u29de",nvlArr:"\u2902",nvle:"\u2264\u20d2",nvlt:"<\u20d2",nvltrie:"\u22b4\u20d2",nvrArr:"\u2903",nvrtrie:"\u22b5\u20d2",nvsim:"\u223c\u20d2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21d6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xd3",oacute:"\xf3",oast:"\u229b",Ocirc:"\xd4",ocirc:"\xf4",ocir:"\u229a",Ocy:"\u041e",ocy:"\u043e",odash:"\u229d",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2a38",odot:"\u2299",odsold:"\u29bc",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29bf",Ofr:"\ud835\udd12",ofr:"\ud835\udd2c",ogon:"\u02db",Ograve:"\xd2",ograve:"\xf2",ogt:"\u29c1",ohbar:"\u29b5",ohm:"\u03a9",oint:"\u222e",olarr:"\u21ba",olcir:"\u29be",olcross:"\u29bb",oline:"\u203e",olt:"\u29c0",Omacr:"\u014c",omacr:"\u014d",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",omid:"\u29b6",ominus:"\u2296",Oopf:"\ud835\udd46",oopf:"\ud835\udd60",opar:"\u29b7",OpenCurlyDoubleQuote:"\u201c",OpenCurlyQuote:"\u2018",operp:"\u29b9",oplus:"\u2295",orarr:"\u21bb",Or:"\u2a54",or:"\u2228",ord:"\u2a5d",order:"\u2134",orderof:"\u2134",ordf:"\xaa",ordm:"\xba",origof:"\u22b6",oror:"\u2a56",orslope:"\u2a57",orv:"\u2a5b",oS:"\u24c8",Oscr:"\ud835\udcaa",oscr:"\u2134",Oslash:"\xd8",oslash:"\xf8",osol:"\u2298",Otilde:"\xd5",otilde:"\xf5",otimesas:"\u2a36",Otimes:"\u2a37",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",ovbar:"\u233d",OverBar:"\u203e",OverBrace:"\u23de",OverBracket:"\u23b4",OverParenthesis:"\u23dc",para:"\xb6",parallel:"\u2225",par:"\u2225",parsim:"\u2af3",parsl:"\u2afd",part:"\u2202",PartialD:"\u2202",Pcy:"\u041f",pcy:"\u043f",percnt:"%",period:".",permil:"\u2030",perp:"\u22a5",pertenk:"\u2031",Pfr:"\ud835\udd13",pfr:"\ud835\udd2d",Phi:"\u03a6",phi:"\u03c6",phiv:"\u03d5",phmmat:"\u2133",phone:"\u260e",Pi:"\u03a0",pi:"\u03c0",pitchfork:"\u22d4",piv:"\u03d6",planck:"\u210f",planckh:"\u210e",plankv:"\u210f",plusacir:"\u2a23",plusb:"\u229e",pluscir:"\u2a22",plus:"+",plusdo:"\u2214",plusdu:"\u2a25",pluse:"\u2a72",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"\u2a26",plustwo:"\u2a27",pm:"\xb1",Poincareplane:"\u210c",pointint:"\u2a15",popf:"\ud835\udd61",Popf:"\u2119",pound:"\xa3",prap:"\u2ab7",Pr:"\u2abb",pr:"\u227a",prcue:"\u227c",precapprox:"\u2ab7",prec:"\u227a",preccurlyeq:"\u227c",Precedes:"\u227a",PrecedesEqual:"\u2aaf",PrecedesSlantEqual:"\u227c",PrecedesTilde:"\u227e",preceq:"\u2aaf",precnapprox:"\u2ab9",precneqq:"\u2ab5",precnsim:"\u22e8",pre:"\u2aaf",prE:"\u2ab3",precsim:"\u227e",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2ab9",prnE:"\u2ab5",prnsim:"\u22e8",prod:"\u220f",Product:"\u220f",profalar:"\u232e",profline:"\u2312",profsurf:"\u2313",prop:"\u221d",Proportional:"\u221d",Proportion:"\u2237",propto:"\u221d",prsim:"\u227e",prurel:"\u22b0",Pscr:"\ud835\udcab",pscr:"\ud835\udcc5",Psi:"\u03a8",psi:"\u03c8",puncsp:"\u2008",Qfr:"\ud835\udd14",qfr:"\ud835\udd2e",qint:"\u2a0c",qopf:"\ud835\udd62",Qopf:"\u211a",qprime:"\u2057",Qscr:"\ud835\udcac",qscr:"\ud835\udcc6",quaternions:"\u210d",quatint:"\u2a16",quest:"?",questeq:"\u225f",quot:'"',QUOT:'"',rAarr:"\u21db",race:"\u223d\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221a",raemptyv:"\u29b3",rang:"\u27e9",Rang:"\u27eb",rangd:"\u2992",range:"\u29a5",rangle:"\u27e9",raquo:"\xbb",rarrap:"\u2975",rarrb:"\u21e5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21a0",rArr:"\u21d2",rarrfs:"\u291e",rarrhk:"\u21aa",rarrlp:"\u21ac",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21a3",rarrw:"\u219d",ratail:"\u291a",rAtail:"\u291c",ratio:"\u2236",rationals:"\u211a",rbarr:"\u290d",rBarr:"\u290f",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298c",rbrksld:"\u298e",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201d",rdquor:"\u201d",rdsh:"\u21b3",real:"\u211c",realine:"\u211b",realpart:"\u211c",reals:"\u211d",Re:"\u211c",rect:"\u25ad",reg:"\xae",REG:"\xae",ReverseElement:"\u220b",ReverseEquilibrium:"\u21cb",ReverseUpEquilibrium:"\u296f",rfisht:"\u297d",rfloor:"\u230b",rfr:"\ud835\udd2f",Rfr:"\u211c",rHar:"\u2964",rhard:"\u21c1",rharu:"\u21c0",rharul:"\u296c",Rho:"\u03a1",rho:"\u03c1",rhov:"\u03f1",RightAngleBracket:"\u27e9",RightArrowBar:"\u21e5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21d2",RightArrowLeftArrow:"\u21c4",rightarrowtail:"\u21a3",RightCeiling:"\u2309",RightDoubleBracket:"\u27e7",RightDownTeeVector:"\u295d",RightDownVectorBar:"\u2955",RightDownVector:"\u21c2",RightFloor:"\u230b",rightharpoondown:"\u21c1",rightharpoonup:"\u21c0",rightleftarrows:"\u21c4",rightleftharpoons:"\u21cc",rightrightarrows:"\u21c9",rightsquigarrow:"\u219d",RightTeeArrow:"\u21a6",RightTee:"\u22a2",RightTeeVector:"\u295b",rightthreetimes:"\u22cc",RightTriangleBar:"\u29d0",RightTriangle:"\u22b3",RightTriangleEqual:"\u22b5",RightUpDownVector:"\u294f",RightUpTeeVector:"\u295c",RightUpVectorBar:"\u2954",RightUpVector:"\u21be",RightVectorBar:"\u2953",RightVector:"\u21c0",ring:"\u02da",risingdotseq:"\u2253",rlarr:"\u21c4",rlhar:"\u21cc",rlm:"\u200f",rmoustache:"\u23b1",rmoust:"\u23b1",rnmid:"\u2aee",roang:"\u27ed",roarr:"\u21fe",robrk:"\u27e7",ropar:"\u2986",ropf:"\ud835\udd63",Ropf:"\u211d",roplus:"\u2a2e",rotimes:"\u2a35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2a12",rrarr:"\u21c9",Rrightarrow:"\u21db",rsaquo:"\u203a",rscr:"\ud835\udcc7",Rscr:"\u211b",rsh:"\u21b1",Rsh:"\u21b1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22cc",rtimes:"\u22ca",rtri:"\u25b9",rtrie:"\u22b5",rtrif:"\u25b8",rtriltri:"\u29ce",RuleDelayed:"\u29f4",ruluhar:"\u2968",rx:"\u211e",Sacute:"\u015a",sacute:"\u015b",sbquo:"\u201a",scap:"\u2ab8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2abc",sc:"\u227b",sccue:"\u227d",sce:"\u2ab0",scE:"\u2ab4",Scedil:"\u015e",scedil:"\u015f",Scirc:"\u015c",scirc:"\u015d",scnap:"\u2aba",scnE:"\u2ab6",scnsim:"\u22e9",scpolint:"\u2a13",scsim:"\u227f",Scy:"\u0421",scy:"\u0441",sdotb:"\u22a1",sdot:"\u22c5",sdote:"\u2a66",searhk:"\u2925",searr:"\u2198",seArr:"\u21d8",searrow:"\u2198",sect:"\xa7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\ud835\udd16",sfr:"\ud835\udd30",sfrown:"\u2322",sharp:"\u266f",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sigmav:"\u03c2",sim:"\u223c",simdot:"\u2a6a",sime:"\u2243",simeq:"\u2243",simg:"\u2a9e",simgE:"\u2aa0",siml:"\u2a9d",simlE:"\u2a9f",simne:"\u2246",simplus:"\u2a24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2a33",smeparsl:"\u29e4",smid:"\u2223",smile:"\u2323",smt:"\u2aaa",smte:"\u2aac",smtes:"\u2aac\ufe00",SOFTcy:"\u042c",softcy:"\u044c",solbar:"\u233f",solb:"\u29c4",sol:"/",Sopf:"\ud835\udd4a",sopf:"\ud835\udd64",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\ufe00",sqcup:"\u2294",sqcups:"\u2294\ufe00",Sqrt:"\u221a",sqsub:"\u228f",sqsube:"\u2291",sqsubset:"\u228f",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25a1",Square:"\u25a1",SquareIntersection:"\u2293",SquareSubset:"\u228f",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25aa",squ:"\u25a1",squf:"\u25aa",srarr:"\u2192",Sscr:"\ud835\udcae",sscr:"\ud835\udcc8",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22c6",Star:"\u22c6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03f5",straightphi:"\u03d5",strns:"\xaf",sub:"\u2282",Sub:"\u22d0",subdot:"\u2abd",subE:"\u2ac5",sube:"\u2286",subedot:"\u2ac3",submult:"\u2ac1",subnE:"\u2acb",subne:"\u228a",subplus:"\u2abf",subrarr:"\u2979",subset:"\u2282",Subset:"\u22d0",subseteq:"\u2286",subseteqq:"\u2ac5",SubsetEqual:"\u2286",subsetneq:"\u228a",subsetneqq:"\u2acb",subsim:"\u2ac7",subsub:"\u2ad5",subsup:"\u2ad3",succapprox:"\u2ab8",succ:"\u227b",succcurlyeq:"\u227d",Succeeds:"\u227b",SucceedsEqual:"\u2ab0",SucceedsSlantEqual:"\u227d",SucceedsTilde:"\u227f",succeq:"\u2ab0",succnapprox:"\u2aba",succneqq:"\u2ab6",succnsim:"\u22e9",succsim:"\u227f",SuchThat:"\u220b",sum:"\u2211",Sum:"\u2211",sung:"\u266a",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"\u2283",Sup:"\u22d1",supdot:"\u2abe",supdsub:"\u2ad8",supE:"\u2ac6",supe:"\u2287",supedot:"\u2ac4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27c9",suphsub:"\u2ad7",suplarr:"\u297b",supmult:"\u2ac2",supnE:"\u2acc",supne:"\u228b",supplus:"\u2ac0",supset:"\u2283",Supset:"\u22d1",supseteq:"\u2287",supseteqq:"\u2ac6",supsetneq:"\u228b",supsetneqq:"\u2acc",supsim:"\u2ac8",supsub:"\u2ad4",supsup:"\u2ad6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21d9",swarrow:"\u2199",swnwar:"\u292a",szlig:"\xdf",Tab:"\t",target:"\u2316",Tau:"\u03a4",tau:"\u03c4",tbrk:"\u23b4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20db",telrec:"\u2315",Tfr:"\ud835\udd17",tfr:"\ud835\udd31",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thetav:"\u03d1",thickapprox:"\u2248",thicksim:"\u223c",ThickSpace:"\u205f\u200a",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223c",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",Tilde:"\u223c",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2a31",timesb:"\u22a0",times:"\xd7",timesd:"\u2a30",tint:"\u222d",toea:"\u2928",topbot:"\u2336",topcir:"\u2af1",top:"\u22a4",Topf:"\ud835\udd4b",topf:"\ud835\udd65",topfork:"\u2ada",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25b5",triangledown:"\u25bf",triangleleft:"\u25c3",trianglelefteq:"\u22b4",triangleq:"\u225c",triangleright:"\u25b9",trianglerighteq:"\u22b5",tridot:"\u25ec",trie:"\u225c",triminus:"\u2a3a",TripleDot:"\u20db",triplus:"\u2a39",trisb:"\u29cd",tritime:"\u2a3b",trpezium:"\u23e2",Tscr:"\ud835\udcaf",tscr:"\ud835\udcc9",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040b",tshcy:"\u045b",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226c",twoheadleftarrow:"\u219e",twoheadrightarrow:"\u21a0",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",Uarr:"\u219f",uArr:"\u21d1",Uarrocir:"\u2949",Ubrcy:"\u040e",ubrcy:"\u045e",Ubreve:"\u016c",ubreve:"\u016d",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21c5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296e",ufisht:"\u297e",Ufr:"\ud835\udd18",ufr:"\ud835\udd32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"\u2963",uharl:"\u21bf",uharr:"\u21be",uhblk:"\u2580",ulcorn:"\u231c",ulcorner:"\u231c",ulcrop:"\u230f",ultri:"\u25f8",Umacr:"\u016a",umacr:"\u016b",uml:"\xa8",UnderBar:"_",UnderBrace:"\u23df",UnderBracket:"\u23b5",UnderParenthesis:"\u23dd",Union:"\u22c3",UnionPlus:"\u228e",Uogon:"\u0172",uogon:"\u0173",Uopf:"\ud835\udd4c",uopf:"\ud835\udd66",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21d1",UpArrowDownArrow:"\u21c5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21d5",UpEquilibrium:"\u296e",upharpoonleft:"\u21bf",upharpoonright:"\u21be",uplus:"\u228e",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03c5",Upsi:"\u03d2",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",UpTeeArrow:"\u21a5",UpTee:"\u22a5",upuparrows:"\u21c8",urcorn:"\u231d",urcorner:"\u231d",urcrop:"\u230e",Uring:"\u016e",uring:"\u016f",urtri:"\u25f9",Uscr:"\ud835\udcb0",uscr:"\ud835\udcca",utdot:"\u22f0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25b5",utrif:"\u25b4",uuarr:"\u21c8",Uuml:"\xdc",uuml:"\xfc",uwangle:"\u29a7",vangrt:"\u299c",varepsilon:"\u03f5",varkappa:"\u03f0",varnothing:"\u2205",varphi:"\u03d5",varpi:"\u03d6",varpropto:"\u221d",varr:"\u2195",vArr:"\u21d5",varrho:"\u03f1",varsigma:"\u03c2",varsubsetneq:"\u228a\ufe00",varsubsetneqq:"\u2acb\ufe00",varsupsetneq:"\u228b\ufe00",varsupsetneqq:"\u2acc\ufe00",vartheta:"\u03d1",vartriangleleft:"\u22b2",vartriangleright:"\u22b3",vBar:"\u2ae8",Vbar:"\u2aeb",vBarv:"\u2ae9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22a2",vDash:"\u22a8",Vdash:"\u22a9",VDash:"\u22ab",Vdashl:"\u2ae6",veebar:"\u22bb",vee:"\u2228",Vee:"\u22c1",veeeq:"\u225a",vellip:"\u22ee",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200a",Vfr:"\ud835\udd19",vfr:"\ud835\udd33",vltri:"\u22b2",vnsub:"\u2282\u20d2",vnsup:"\u2283\u20d2",Vopf:"\ud835\udd4d",vopf:"\ud835\udd67",vprop:"\u221d",vrtri:"\u22b3",Vscr:"\ud835\udcb1",vscr:"\ud835\udccb",vsubnE:"\u2acb\ufe00",vsubne:"\u228a\ufe00",vsupnE:"\u2acc\ufe00",vsupne:"\u228b\ufe00",Vvdash:"\u22aa",vzigzag:"\u299a",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2a5f",wedge:"\u2227",Wedge:"\u22c0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\ud835\udd1a",wfr:"\ud835\udd34",Wopf:"\ud835\udd4e",wopf:"\ud835\udd68",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\ud835\udcb2",wscr:"\ud835\udccc",xcap:"\u22c2",xcirc:"\u25ef",xcup:"\u22c3",xdtri:"\u25bd",Xfr:"\ud835\udd1b",xfr:"\ud835\udd35",xharr:"\u27f7",xhArr:"\u27fa",Xi:"\u039e",xi:"\u03be",xlarr:"\u27f5",xlArr:"\u27f8",xmap:"\u27fc",xnis:"\u22fb",xodot:"\u2a00",Xopf:"\ud835\udd4f",xopf:"\ud835\udd69",xoplus:"\u2a01",xotime:"\u2a02",xrarr:"\u27f6",xrArr:"\u27f9",Xscr:"\ud835\udcb3",xscr:"\ud835\udccd",xsqcup:"\u2a06",xuplus:"\u2a04",xutri:"\u25b3",xvee:"\u22c1",xwedge:"\u22c0",Yacute:"\xdd",yacute:"\xfd",YAcy:"\u042f",yacy:"\u044f",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042b",ycy:"\u044b",yen:"\xa5",Yfr:"\ud835\udd1c",yfr:"\ud835\udd36",YIcy:"\u0407",yicy:"\u0457",Yopf:"\ud835\udd50",yopf:"\ud835\udd6a",Yscr:"\ud835\udcb4",yscr:"\ud835\udcce",YUcy:"\u042e",yucy:"\u044e",yuml:"\xff",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017a",Zcaron:"\u017d",zcaron:"\u017e",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017b",zdot:"\u017c",zeetrf:"\u2128",ZeroWidthSpace:"\u200b",Zeta:"\u0396",zeta:"\u03b6",zfr:"\ud835\udd37",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21dd",zopf:"\ud835\udd6b",Zopf:"\u2124",Zscr:"\ud835\udcb5",zscr:"\ud835\udccf",zwj:"\u200d",zwnj:"\u200c"}}}),m=c({"node_modules/markdown-it/lib/common/entities.js"(e,t){t.exports=f()}}),g=c({"node_modules/uc.micro/categories/P/regex.js"(e,t){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/}}),v=c({"node_modules/mdurl/encode.js"(e,t){var r={};function n(e,t,i){var o,a,s,u,l,c="";for("string"!==typeof t&&(i=t,t=n.defaultChars),"undefined"===typeof i&&(i=!0),l=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=l[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",t.exports=n}}),y=c({"node_modules/mdurl/decode.js"(e,t){var r={};function n(e,t){var i;return"string"!==typeof t&&(t=n.defaultChars),i=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t<e.length;t++)i[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return i}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,n,o,a,s,u,l="";for(t=0,r=e.length;t<r;t+=3)(n=parseInt(e.slice(t+1,t+3),16))<128?l+=i[n]:192===(224&n)&&t+3<r&&128===(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(u=n<<6&1984|63&o)<128?"\ufffd\ufffd":String.fromCharCode(u),t+=3):224===(240&n)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128===(192&o)&&128===(192&a))?(l+=(u=n<<12&61440|o<<6&4032|63&a)<2048||u>=55296&&u<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(u),t+=6):240===(248&n)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128===(192&o)&&128===(192&a)&&128===(192&s))?((u=n<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||u>1114111?l+="\ufffd\ufffd\ufffd\ufffd":(u-=65536,l+=String.fromCharCode(55296+(u>>10),56320+(1023&u))),t+=9):l+="\ufffd";return l}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",t.exports=n}}),b=c({"node_modules/mdurl/format.js"(e,t){t.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}}}),D=c({"node_modules/mdurl/parse.js"(e,t){function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,i=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(a),u=["%","/","?",";","#"].concat(s),l=["/","?","#"],c=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};r.prototype.parse=function(e,t){var r,i,a,s,f,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=o.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(f="//"===m.substr(0,2))||v&&p[v]||(m=m.substr(2),this.slashes=!0)),!p[v]&&(f||v&&!d[v])){var y,b,D=-1;for(r=0;r<l.length;r++)-1!==(s=m.indexOf(l[r]))&&(-1===D||s<D)&&(D=s);for(-1!==(b=-1===D?m.lastIndexOf("@"):m.lastIndexOf("@",D))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),D=-1,r=0;r<u.length;r++)-1!==(s=m.indexOf(u[r]))&&(-1===D||s<D)&&(D=s);-1===D&&(D=m.length),":"===m[D-1]&&D--;var w=m.slice(0,D);m=m.slice(D),this.parseHost(w),this.hostname=this.hostname||"";var k="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!k){var _=this.hostname.split(/\./);for(r=0,i=_.length;r<i;r++){var x=_[r];if(x&&!x.match(c)){for(var F="",C=0,S=x.length;C<S;C++)x.charCodeAt(C)>127?F+="x":F+=x[C];if(!F.match(c)){var A=_.slice(0,r),E=_.slice(r+1),N=x.match(h);N&&(A.push(N[1]),E.unshift(N[2])),E.length&&(m=E.join(".")+m),this.hostname=A.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=m.indexOf("#");-1!==L&&(this.hash=m.substr(L),m=m.slice(0,L));var P=m.indexOf("?");return-1!==P&&(this.search=m.substr(P),m=m.slice(0,P)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=i.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.exports=function(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}}}),w=c({"node_modules/mdurl/index.js"(e,t){t.exports.encode=v(),t.exports.decode=y(),t.exports.format=b(),t.exports.parse=D()}}),k=c({"node_modules/uc.micro/properties/Any/regex.js"(e,t){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}}),_=c({"node_modules/uc.micro/categories/Cc/regex.js"(e,t){t.exports=/[\0-\x1F\x7F-\x9F]/}}),x=c({"node_modules/uc.micro/categories/Cf/regex.js"(e,t){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/}}),F=c({"node_modules/uc.micro/categories/Z/regex.js"(e,t){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}}),C=c({"node_modules/uc.micro/index.js"(e){e.Any=k(),e.Cc=_(),e.Cf=x(),e.P=g(),e.Z=F()}}),S=c({"node_modules/markdown-it/lib/common/utils.js"(e){var t=Object.prototype.hasOwnProperty;function r(e,r){return t.call(e,r)}function n(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),s=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=m();var l=/[&<>"]/,c=/[&<>"]/g,h={"&":"&","<":"<",">":">",'"':"""};function p(e){return h[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var f=g();e.lib={},e.lib.mdurl=w(),e.lib.ucmicro=C(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=r,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(o,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,(function(e,t,o){return t||function(e,t){var o=0;return r(u,t)?u[t]:35===t.charCodeAt(0)&&s.test(t)&&n(o="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(o):e}(e,o)}))},e.isValidEntityCode=n,e.fromCodePoint=i,e.escapeHtml=function(e){return l.test(e)?e.replace(c,p):e},e.arrayReplaceAt=function(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return f.test(e)},e.escapeRE=function(e){return e.replace(d,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}}}),A=c({"node_modules/markdown-it/lib/helpers/parse_link_label.js"(e,t){t.exports=function(e,t,r){var n,i,o,a,s=-1,u=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos<u;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--n){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)n++;else if(r)return e.pos=l,-1}return i&&(s=e.pos),e.pos=l,s}}}),E=c({"node_modules/markdown-it/lib/helpers/parse_link_destination.js"(e,t){var r=S().unescapeAll;t.exports=function(e,t,n){var i,o,a=t,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return s;if(60===i)return s;if(62===i)return s.pos=t+1,s.str=r(e.slice(a+1,t)),s.ok=!0,s;92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}t++}return a===t||0!==o||(s.str=r(e.slice(a,t)),s.lines=0,s.pos=t,s.ok=!0),s}}}),N=c({"node_modules/markdown-it/lib/helpers/parse_link_title.js"(e,t){var r=S().unescapeAll;t.exports=function(e,t,n){var i,o,a=0,s=t,u={ok:!1,pos:0,lines:0,str:""};if(t>=n)return u;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return u;for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return u.pos=t+1,u.lines=a,u.str=r(e.slice(s+1,t)),u.ok=!0,u;if(40===i&&41===o)return u;10===i?a++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&a++),t++}return u}}}),L=c({"node_modules/markdown-it/lib/helpers/index.js"(e){e.parseLinkLabel=A(),e.parseLinkDestination=E(),e.parseLinkTitle=N()}}),P=c({"node_modules/markdown-it/lib/renderer.js"(e,t){var r=S().assign,n=S().unescapeAll,i=S().escapeHtml,o={};function a(){this.rules=r({},o)}o.code_inline=function(e,t,r,n,o){var a=e[t];return"<code"+o.renderAttrs(a)+">"+i(e[t].content)+"</code>"},o.code_block=function(e,t,r,n,o){var a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+i(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,r,o,a){var s,u,l,c,h,p=e[t],d=p.info?n(p.info).trim():"",f="",m="";return d&&(f=(l=d.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(s=r.highlight&&r.highlight(p.content,f,m)||i(p.content)).indexOf("<pre")?s+"\n":d?(u=p.attrIndex("class"),c=p.attrs?p.attrs.slice():[],u<0?c.push(["class",r.langPrefix+f]):(c[u]=c[u].slice(),c[u][1]+=" "+r.langPrefix+f),h={attrs:c},"<pre><code"+a.renderAttrs(h)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(p)+">"+s+"</code></pre>\n"},o.image=function(e,t,r,n,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)},o.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,r,n;if(!e.attrs)return"";for(n="",t=0,r=e.attrs.length;t<r;t++)n+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return n},a.prototype.renderToken=function(e,t,r){var n,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&r.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(n=e[t+1]).type||n.hidden||-1===n.nesting&&n.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},a.prototype.renderInline=function(e,t,r){for(var n,i="",o=this.rules,a=0,s=e.length;a<s;a++)"undefined"!==typeof o[n=e[a].type]?i+=o[n](e,a,t,r,this):i+=this.renderToken(e,a,t);return i},a.prototype.renderInlineAsText=function(e,t,r){for(var n="",i=0,o=e.length;i<o;i++)"text"===e[i].type?n+=e[i].content:"image"===e[i].type?n+=this.renderInlineAsText(e[i].children,t,r):"softbreak"===e[i].type&&(n+="\n");return n},a.prototype.render=function(e,t,r){var n,i,o,a="",s=this.rules;for(n=0,i=e.length;n<i;n++)"inline"===(o=e[n].type)?a+=this.renderInline(e[n].children,t,r):"undefined"!==typeof s[o]?a+=s[e[n].type](e,n,t,r,this):a+=this.renderToken(e,n,t,r);return a},t.exports=a}}),M=c({"node_modules/markdown-it/lib/ruler.js"(e,t){function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},r.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(r){r.enabled&&(t&&r.alt.indexOf(t)<0||e.__cache__[t].push(r.fn))}))}))},r.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null},r.prototype.before=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},r.prototype.after=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},r.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},r.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},r.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},r.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},r.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},t.exports=r}}),I=c({"node_modules/markdown-it/lib/rules_core/normalize.js"(e,t){var r=/\r\n?|\n/g,n=/\0/g;t.exports=function(e){var t;t=(t=e.src.replace(r,"\n")).replace(n,"\ufffd"),e.src=t}}}),T=c({"node_modules/markdown-it/lib/rules_core/block.js"(e,t){t.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}}}),O=c({"node_modules/markdown-it/lib/rules_core/inline.js"(e,t){t.exports=function(e){var t,r,n,i=e.tokens;for(r=0,n=i.length;r<n;r++)"inline"===(t=i[r]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}}}),B=c({"node_modules/markdown-it/lib/rules_core/linkify.js"(e,t){var r=S().arrayReplaceAt;function n(e){return/^<\/a\s*>/i.test(e)}t.exports=function(e){var t,i,o,a,s,u,l,c,h,p,d,f,m,g,v,y,b,D,w=e.tokens;if(e.md.options.linkify)for(i=0,o=w.length;i<o;i++)if("inline"===w[i].type&&e.md.linkify.pretest(w[i].content))for(m=0,t=(a=w[i].children).length-1;t>=0;t--)if("link_close"!==(u=a[t]).type){if("html_inline"===u.type&&(D=u.content,/^<a[>\s]/i.test(D)&&m>0&&m--,n(u.content)&&m++),!(m>0)&&"text"===u.type&&e.md.linkify.test(u.content)){for(h=u.content,b=e.md.linkify.match(h),l=[],f=u.level,d=0,c=0;c<b.length;c++)g=b[c].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(p=b[c].index)>d&&((s=new e.Token("text","",0)).content=h.slice(d,p),s.level=f,l.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=f++,s.markup="linkify",s.info="auto",l.push(s),(s=new e.Token("text","",0)).content=y,s.level=f,l.push(s),(s=new e.Token("link_close","a",-1)).level=--f,s.markup="linkify",s.info="auto",l.push(s),d=b[c].lastIndex);d<h.length&&((s=new e.Token("text","",0)).content=h.slice(d),s.level=f,l.push(s)),w[i].children=a=r(a,t,l)}}else for(t--;a[t].level!==u.level&&"link_open"!==a[t].type;)t--}}}),j=c({"node_modules/markdown-it/lib/rules_core/replacements.js"(e,t){var r=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,i=/\((c|tm|r|p)\)/gi,o={c:"\xa9",r:"\xae",p:"\xa7",tm:"\u2122"};function a(e,t){return o[t.toLowerCase()]}function s(e){var t,r,n=0;for(t=e.length-1;t>=0;t--)"text"!==(r=e[t]).type||n||(r.content=r.content.replace(i,a)),"link_open"===r.type&&"auto"===r.info&&n--,"link_close"===r.type&&"auto"===r.info&&n++}function u(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||r.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}t.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(n.test(e.tokens[t].content)&&s(e.tokens[t].children),r.test(e.tokens[t].content)&&u(e.tokens[t].children))}}}),R=c({"node_modules/markdown-it/lib/rules_core/smartquotes.js"(e,t){var r=S().isWhiteSpace,n=S().isPunctChar,i=S().isMdAsciiPunct,o=/['"]/,a=/['"]/g;function s(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function u(e,t){var o,u,l,c,h,p,d,f,m,g,v,y,b,D,w,k,_,x,F,C,S;for(F=[],o=0;o<e.length;o++){for(u=e[o],d=e[o].level,_=F.length-1;_>=0&&!(F[_].level<=d);_--);if(F.length=_+1,"text"===u.type){h=0,p=(l=u.content).length;e:for(;h<p&&(a.lastIndex=h,c=a.exec(l));){if(w=k=!0,h=c.index+1,x="'"===c[0],m=32,c.index-1>=0)m=l.charCodeAt(c.index-1);else for(_=o-1;_>=0&&("softbreak"!==e[_].type&&"hardbreak"!==e[_].type);_--)if(e[_].content){m=e[_].content.charCodeAt(e[_].content.length-1);break}if(g=32,h<p)g=l.charCodeAt(h);else for(_=o+1;_<e.length&&("softbreak"!==e[_].type&&"hardbreak"!==e[_].type);_++)if(e[_].content){g=e[_].content.charCodeAt(0);break}if(v=i(m)||n(String.fromCharCode(m)),y=i(g)||n(String.fromCharCode(g)),b=r(m),(D=r(g))?w=!1:y&&(b||v||(w=!1)),b?k=!1:v&&(D||y||(k=!1)),34===g&&'"'===c[0]&&m>=48&&m<=57&&(k=w=!1),w&&k&&(w=v,k=y),w||k){if(k)for(_=F.length-1;_>=0&&(f=F[_],!(F[_].level<d));_--)if(f.single===x&&F[_].level===d){f=F[_],x?(C=t.md.options.quotes[2],S=t.md.options.quotes[3]):(C=t.md.options.quotes[0],S=t.md.options.quotes[1]),u.content=s(u.content,c.index,S),e[f.token].content=s(e[f.token].content,f.pos,C),h+=S.length-1,f.token===o&&(h+=C.length-1),p=(l=u.content).length,F.length=_;continue e}w?F.push({token:o,pos:c.index,single:x,level:d}):k&&x&&(u.content=s(u.content,c.index,"\u2019"))}else x&&(u.content=s(u.content,c.index,"\u2019"))}}}}t.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}}}),q=c({"node_modules/markdown-it/lib/token.js"(e,t){function r(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}r.prototype.attrIndex=function(e){var t,r,n;if(!this.attrs)return-1;for(r=0,n=(t=this.attrs).length;r<n;r++)if(t[r][0]===e)return r;return-1},r.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},r.prototype.attrSet=function(e,t){var r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},r.prototype.attrGet=function(e){var t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},r.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},t.exports=r}}),z=c({"node_modules/markdown-it/lib/rules_core/state_core.js"(e,t){var r=q();function n(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}n.prototype.Token=r,t.exports=n}}),U=c({"node_modules/markdown-it/lib/parser_core.js"(e,t){var r=M(),n=[["normalize",I()],["block",T()],["inline",O()],["linkify",B()],["replacements",j()],["smartquotes",R()]];function i(){this.ruler=new r;for(var e=0;e<n.length;e++)this.ruler.push(n[e][0],n[e][1])}i.prototype.process=function(e){var t,r,n;for(t=0,r=(n=this.ruler.getRules("")).length;t<r;t++)n[t](e)},i.prototype.State=z(),t.exports=i}}),H=c({"node_modules/markdown-it/lib/rules_block/table.js"(e,t){var r=S().isSpace;function n(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.substr(r,n-r)}function i(e){var t,r=[],n=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(n);n<i;)124===t&&(o?(s+=e.substring(a,n-1),a=n):(r.push(s+e.substring(a,n)),s="",a=n+1)),o=92===t,n++,t=e.charCodeAt(n);return r.push(s+e.substring(a)),r}t.exports=function(e,t,o,a){var s,u,l,c,h,p,d,f,m,g,v,y,b,D,w,k,_,x;if(t+2>o)return!1;if(p=t+1,e.sCount[p]<e.blkIndent)return!1;if(!e.md.options.allowIndentation&&e.sCount[p]-e.blkIndent>=4)return!1;if((l=e.bMarks[p]+e.tShift[p])>=e.eMarks[p])return!1;if(124!==(_=e.src.charCodeAt(l++))&&45!==_&&58!==_)return!1;if(l>=e.eMarks[p])return!1;if(124!==(x=e.src.charCodeAt(l++))&&45!==x&&58!==x&&!r(x))return!1;if(45===_&&r(x))return!1;for(;l<e.eMarks[p];){if(124!==(s=e.src.charCodeAt(l))&&45!==s&&58!==s&&!r(s))return!1;l++}for(d=(u=n(e,t+1)).split("|"),g=[],c=0;c<d.length;c++){if(!(v=d[c].trim())){if(0===c||c===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(u=n(e,t).trim()).indexOf("|"))return!1;if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if((d=i(u)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(f=d.length)||f!==g.length)return!1;if(a)return!0;for(D=e.parentType,e.parentType="table",k=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<d.length;c++)m=e.push("th_open","th",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=d[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),p=t+2;p<o&&!(e.sCount[p]<e.blkIndent);p++){for(w=!1,c=0,h=k.length;c<h;c++)if(k[c](e,p,o,!0)){w=!0;break}if(w)break;if(!(u=n(e,p).trim()))break;if(!e.md.options.allowIndentation&&e.sCount[p]-e.blkIndent>=4)break;for((d=i(u)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),p===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[p,p+1],c=0;c<f;c++)m=e.push("td_open","td",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=d[c]?d[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=p),m=e.push("table_close","table",-1),y[1]=p,e.parentType=D,e.line=p,!0}}}),W=c({"node_modules/markdown-it/lib/rules_block/code.js"(e,t){t.exports=function(e,t,r){if(e.md.options.allowIndentation)return!1;var n,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=n=t+1;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;i=++n}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}}}),Y=c({"node_modules/markdown-it/lib/rules_block/fence.js"(e,t){t.exports=function(e,t,r,n){var i,o,a,s,u,l,c,h=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(u=p,(o=(p=e.skipChars(p,i))-u)<3)return!1;if(c=e.src.slice(u,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;for(s=t;!(++s>=r)&&!((p=u=e.bMarks[s]+e.tShift[s])<(d=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&(e.md.options.allowIndentation||!(e.sCount[s]-e.blkIndent>=4))&&!((p=e.skipChars(p,i))-u<o)&&!((p=e.skipSpaces(p))<d)){h=!0;break}return o=e.sCount[t],e.line=s+(h?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,s,o,!0),l.markup=c,l.map=[t,e.line],!0}}}),V=c({"node_modules/markdown-it/lib/rules_block/blockquote.js"(e,t){var r=S().isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l,c,h,p,d,f,m,g,v,y,b,D,w,k,_,x,F=e.lineMax,C=e.bMarks[t]+e.tShift[t],S=e.eMarks[t];if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(C++))return!1;if(i)return!0;for(u=d=e.sCount[t]+1,32===e.src.charCodeAt(C)?(C++,u++,d++,o=!1,D=!0):9===e.src.charCodeAt(C)?(D=!0,(e.bsCount[t]+d)%4===3?(C++,u++,d++,o=!1):o=!0):D=!1,f=[e.bMarks[t]],e.bMarks[t]=C;C<S&&(a=e.src.charCodeAt(C),r(a));)9===a?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,C++;for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(D?1:0),c=C>=S,y=[e.sCount[t]],e.sCount[t]=d-u,b=[e.tShift[t]],e.tShift[t]=C-e.bMarks[t],k=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",p=t+1;p<n&&(x=e.sCount[p]<e.blkIndent,!((C=e.bMarks[p]+e.tShift[p])>=(S=e.eMarks[p])));p++)if(62!==e.src.charCodeAt(C++)||x){if(c)break;for(w=!1,s=0,l=k.length;s<l;s++)if(k[s](e,p,n,!0)){w=!0;break}if(w){e.lineMax=p,0!==e.blkIndent&&(f.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}f.push(e.bMarks[p]),m.push(e.bsCount[p]),b.push(e.tShift[p]),y.push(e.sCount[p]),e.sCount[p]=-1}else{for(u=d=e.sCount[p]+1,32===e.src.charCodeAt(C)?(C++,u++,d++,o=!1,D=!0):9===e.src.charCodeAt(C)?(D=!0,(e.bsCount[p]+d)%4===3?(C++,u++,d++,o=!1):o=!0):D=!1,f.push(e.bMarks[p]),e.bMarks[p]=C;C<S&&(a=e.src.charCodeAt(C),r(a));)9===a?d+=4-(d+e.bsCount[p]+(o?1:0))%4:d++,C++;c=C>=S,m.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(D?1:0),y.push(e.sCount[p]),e.sCount[p]=d-u,b.push(e.tShift[p]),e.tShift[p]=C-e.bMarks[p]}for(g=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=h=[t,0],e.md.block.tokenize(e,t,p),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=F,e.parentType=v,h[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=f[s],e.tShift[s+t]=b[s],e.sCount[s+t]=y[s],e.bsCount[s+t]=m[s];return e.blkIndent=g,!0}}}),$=c({"node_modules/markdown-it/lib/rules_block/hr.js"(e,t){var r=S().isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1;for(a=1;l<c;){if((s=e.src.charCodeAt(l++))!==o&&!r(s))return!1;s===o&&a++}return!(a<3)&&(i||(e.line=t+1,(u=e.push("hr","hr",0)).map=[t,e.line],u.markup=Array(a+1).join(String.fromCharCode(o))),!0)}}}),G=c({"node_modules/markdown-it/lib/rules_block/list.js"(e,t){var r=S().isSpace;function n(e,t){var n,i,o,a;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&(a=e.src.charCodeAt(i),!r(a))?-1:i}function i(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,a=e.eMarks[t];if(o+1>=a)return-1;if((n=e.src.charCodeAt(o++))<48||n>57)return-1;for(;;){if(o>=a)return-1;if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(o-i>=10)return-1}return o<a&&(n=e.src.charCodeAt(o),!r(n))?-1:o}t.exports=function(e,t,r,o){var a,s,u,l,c,h,p,d,f,m,g,v,y,b,D,w,k,_,x,F,C,S,A,E,N,L,P,M,I=!1,T=!0;if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.allowIndentation&&e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(o&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(I=!0),(A=i(e,t))>=0){if(p=!0,N=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(N,A-1)),I&&1!==y)return!1}else{if(!((A=n(e,t))>=0))return!1;p=!1}if(I&&e.skipSpaces(A)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(A-1),o)return!0;for(g=e.tokens.length,p?(M=e.push("ordered_list_open","ol",1),1!==y&&(M.attrs=[["start",y]])):M=e.push("bullet_list_open","ul",1),M.map=m=[t,0],M.markup=String.fromCharCode(v),D=t,E=!1,P=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";D<r;){for(S=A,b=e.eMarks[D],h=w=e.sCount[D]+A-(e.bMarks[t]+e.tShift[t]);S<b;){if(9===(a=e.src.charCodeAt(S)))w+=4-(w+e.bsCount[D])%4;else{if(32!==a)break;w++}S++}if(c=(s=S)>=b?1:w-h,!e.md.options.allowIndentation&&c>4&&(c=1),l=h+c,(M=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),M.map=d=[t,0],p&&(M.info=e.src.slice(N,A-1)),C=e.tight,F=e.tShift[t],x=e.sCount[t],k=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=w,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,t,r,!0),e.tight&&!E||(T=!1),E=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=k,e.tShift[t]=F,e.sCount[t]=x,e.tight=C,(M=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),D=t=e.line,d[1]=D,s=e.bMarks[t],D>=r)break;if(e.sCount[D]<e.blkIndent)break;if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)break;for(L=!1,u=0,f=P.length;u<f;u++)if(P[u](e,D,r,!0)){L=!0;break}if(L)break;if(p){if((A=i(e,D))<0)break;N=e.bMarks[D]+e.tShift[D]}else if((A=n(e,D))<0)break;if(v!==e.src.charCodeAt(A-1))break}return(M=p?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=D,e.line=D,e.parentType=_,T&&function(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,g),!0}}}),K=c({"node_modules/markdown-it/lib/rules_block/reference.js"(e,t){var r=S().normalizeReference,n=S().isSpace;t.exports=function(e,t,i,o){var a,s,u,l,c,h,p,d,f,m,g,v,y,b,D,w,k=0,_=e.bMarks[t]+e.tShift[t],x=e.eMarks[t],F=t+1;if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(_))return!1;for(;++_<x;)if(93===e.src.charCodeAt(_)&&92!==e.src.charCodeAt(_-1)){if(_+1===x)return!1;if(58!==e.src.charCodeAt(_+1))return!1;break}for(l=e.lineMax,D=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";F<l&&!e.isEmpty(F);F++)if((e.md.options.allowIndentation||!(e.sCount[F]-e.blkIndent>3))&&!(e.sCount[F]<0)){for(b=!1,h=0,p=D.length;h<p;h++)if(D[h](e,F,l,!0)){b=!0;break}if(b)break}for(x=(y=e.getLines(t,F,e.blkIndent,!1).trim()).length,_=1;_<x;_++){if(91===(a=y.charCodeAt(_)))return!1;if(93===a){f=_;break}(10===a||92===a&&++_<x&&10===y.charCodeAt(_))&&k++}if(f<0||58!==y.charCodeAt(f+1))return!1;for(_=f+2;_<x;_++)if(10===(a=y.charCodeAt(_)))k++;else if(!n(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,_,x)).ok)return!1;if(c=e.md.normalizeLink(g.str),!e.md.validateLink(c))return!1;for(s=_=g.pos,u=k+=g.lines,v=_;_<x;_++)if(10===(a=y.charCodeAt(_)))k++;else if(!n(a))break;for(g=e.md.helpers.parseLinkTitle(y,_,x),_<x&&v!==_&&g.ok?(w=g.str,_=g.pos,k+=g.lines):(w="",_=s,k=u);_<x&&(a=y.charCodeAt(_),n(a));)_++;if(_<x&&10!==y.charCodeAt(_)&&w)for(w="",_=s,k=u;_<x&&(a=y.charCodeAt(_),n(a));)_++;return!(_<x&&10!==y.charCodeAt(_))&&(!!(d=r(y.slice(1,f)))&&(o||("undefined"===typeof e.env.references&&(e.env.references={}),"undefined"===typeof e.env.references[d]&&(e.env.references[d]={title:w,href:c}),e.parentType=m,e.line=t+k+1),!0))}}}),J=c({"node_modules/markdown-it/lib/common/html_blocks.js"(e,t){t.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}}),Z=c({"node_modules/markdown-it/lib/common/html_re.js"(e,t){var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",i=new RegExp("^(?:"+r+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),o=new RegExp("^(?:"+r+"|"+n+")");t.exports.HTML_TAG_RE=i,t.exports.HTML_OPEN_CLOSE_TAG_RE=o}}),Q=c({"node_modules/markdown-it/lib/rules_block/html_block.js"(e,t){var r=J(),n=Z().HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+r.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(n.source+"\\s*$"),/^$/,!1]];t.exports=function(e,t,r,n){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(u=e.src.slice(l,c),o=0;o<i.length&&!i[o][0].test(u);o++);if(o===i.length)return!1;if(n)return i[o][2];if(a=t+1,!i[o][1].test(u))for(;a<r&&!(e.sCount[a]<e.blkIndent);a++)if(l=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],u=e.src.slice(l,c),i[o][1].test(u)){0!==u.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}}}),X=c({"node_modules/markdown-it/lib/rules_block/heading.js"(e,t){var r=S().isSpace;t.exports=function(e,t,n,i){var o,a,s,u,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(l))||l>=c)return!1;for(a=1,o=e.src.charCodeAt(++l);35===o&&l<c&&a<=6;)a++,o=e.src.charCodeAt(++l);return!(a>6||l<c&&!r(o))&&(i||(c=e.skipSpacesBack(c,l),(s=e.skipCharsBack(c,35,l))>l&&r(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(u=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),u.map=[t,e.line],(u=e.push("inline","",0)).content=e.src.slice(l,c).trim(),u.map=[t,e.line],u.children=[],(u=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),!0)}}}),ee=c({"node_modules/markdown-it/lib/rules_block/lheading.js"(e,t){t.exports=function(e,t,r){var n,i,o,a,s,u,l,c,h,p,d=t+1,f=e.md.block.ruler.getRules("paragraph");if(!e.md.options.allowIndentation&&e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(e.md.options.allowIndentation||!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(h=e.src.charCodeAt(u))||61===h)&&(u=e.skipChars(u,h),(u=e.skipSpaces(u))>=l)){c=61===h?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=f.length;o<a;o++)if(f[o](e,d,r,!0)){i=!0;break}if(i)break}}return!!c&&(n=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(h),s.map=[t,e.line],(s=e.push("inline","",0)).content=n,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(h),e.parentType=p,!0)}}}),te=c({"node_modules/markdown-it/lib/rules_block/paragraph.js"(e,t){t.exports=function(e,t){var r,n,i,o,a,s,u=t+1,l=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";u<c&&!e.isEmpty(u);u++)if((e.md.options.allowIndentation||!(e.sCount[u]-e.blkIndent>3))&&!(e.sCount[u]<0)){for(n=!1,i=0,o=l.length;i<o;i++)if(l[i](e,u,c,!0)){n=!0;break}if(n)break}return r=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=r,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}}}),re=c({"node_modules/markdown-it/lib/rules_block/state_block.js"(e,t){var r=q(),n=S().isSpace;function i(e,t,r,i){var o,a,s,u,l,c,h,p;for(this.src=e,this.md=t,this.env=r,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",p=!1,s=u=c=h=0,l=(a=this.src).length;u<l;u++){if(o=a.charCodeAt(u),!p){if(n(o)){c++,9===o?h+=4-h%4:h++;continue}p=!0}10!==o&&u!==l-1||(10!==o&&u++,this.bMarks.push(s),this.eMarks.push(u),this.tShift.push(c),this.sCount.push(h),this.bsCount.push(0),p=!1,c=0,h=0,s=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,t,n){var i=new r(e,t,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,r=this.src.length;e<r&&(t=this.src.charCodeAt(e),n(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!n(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,r,i){var o,a,s,u,l,c,h,p=e;if(e>=t)return"";for(c=new Array(t-e),o=0;p<t;p++,o++){for(a=0,h=u=this.bMarks[p],l=p+1<t||i?this.eMarks[p]+1:this.eMarks[p];u<l&&a<r;){if(s=this.src.charCodeAt(u),n(s))9===s?a+=4-(a+this.bsCount[p])%4:a++;else{if(!(u-h<this.tShift[p]))break;a++}u++}c[o]=a>r?new Array(a-r+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return c.join("")},i.prototype.Token=r,t.exports=i}}),ne=c({"node_modules/markdown-it/lib/parser_block.js"(e,t){var r=M(),n=[["table",H(),["paragraph","reference"]],["code",W()],["fence",Y(),["paragraph","reference","blockquote","list"]],["blockquote",V(),["paragraph","reference","blockquote","list"]],["hr",$(),["paragraph","reference","blockquote","list"]],["list",G(),["paragraph","reference","blockquote"]],["reference",K()],["html_block",Q(),["paragraph","reference","blockquote"]],["heading",X(),["paragraph","reference","blockquote"]],["lheading",ee()],["paragraph",te()]];function i(){this.ruler=new r;for(var e=0;e<n.length;e++)this.ruler.push(n[e][0],n[e][1],{alt:(n[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,r){for(var n,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,u=e.md.options.maxNesting;a<r&&(e.line=a=e.skipEmptyLines(a),!(a>=r))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=u){e.line=r;break}for(n=0;n<o&&!i[n](e,a,r,!1);n++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<r&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},i.prototype.parse=function(e,t,r,n){var i;e&&(i=new this.State(e,t,r,n),this.tokenize(i,i.line,i.lineMax))},i.prototype.State=re(),t.exports=i}}),ie=c({"node_modules/markdown-it/lib/rules_inline/text.js"(e,t){function r(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}t.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!r(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}}}),oe=c({"node_modules/markdown-it/lib/rules_inline/newline.js"(e,t){var r=S().isSpace;t.exports=function(e,t){var n,i,o,a=e.pos;if(10!==e.src.charCodeAt(a))return!1;if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&r(e.src.charCodeAt(a));)a++;return e.pos=a,!0}}}),ae=c({"node_modules/markdown-it/lib/rules_inline/escape.js"(e,t){var r,n=S().isSpace,i=[];for(r=0;r<256;r++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),t.exports=function(e,t){var r,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((r=e.src.charCodeAt(o))<256&&0!==i[r])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===r){for(t||e.push("hardbreak","br",0),o++;o<a&&(r=e.src.charCodeAt(o),n(r));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}}}),se=c({"node_modules/markdown-it/lib/rules_inline/backticks.js"(e,t){t.exports=function(e,t){var r,n,i,o,a,s,u,l,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(r=c,c++,n=e.posMax;c<n&&96===e.src.charCodeAt(c);)c++;if(u=(i=e.src.slice(r,c)).length,e.backticksScanned&&(e.backticks[u]||0)<=r)return t||(e.pending+=i),e.pos+=u,!0;for(a=s=c;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<n&&96===e.src.charCodeAt(s);)s++;if((l=s-a)===u)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=u,!0}}}),ue=c({"node_modules/markdown-it/lib/rules_inline/strikethrough.js"(e,t){function r(e,t){var r,n,i,o,a,s=[],u=t.length;for(r=0;r<u;r++)126===(i=t[r]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(n=(r=s.pop())+1;n<e.tokens.length&&"s_close"===e.tokens[n].type;)n++;r!==--n&&(a=e.tokens[n],e.tokens[n]=e.tokens[r],e.tokens[r]=a)}}t.exports.tokenize=function(e,t){var r,n,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(n=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),r=0;r<i;r+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},t.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}}}),le=c({"node_modules/markdown-it/lib/rules_inline/emphasis.js"(e,t){function r(e,t){var r,n,i,o,a,s;for(r=t.length-1;r>=0;r--)95!==(n=t[r]).marker&&42!==n.marker||-1!==n.end&&(i=t[n.end],s=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,a=String.fromCharCode(n.marker),(o=e.tokens[n.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}t.exports.tokenize=function(e,t){var r,n,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(n=e.scanDelims(e.pos,42===o),r=0;r<n.length;r++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:n.length,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},t.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(e,n[t].delimiters)}}}),ce=c({"node_modules/markdown-it/lib/rules_inline/link.js"(e,t){var r=S().normalizeReference,n=S().isSpace;t.exports=function(e,t){var i,o,a,s,u,l,c,h,p="",d="",f=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(u=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=s+1)<m&&40===e.src.charCodeAt(l)){for(v=!1,l++;l<m&&(o=e.src.charCodeAt(l),n(o)||10===o);l++);if(l>=m)return!1;if(g=l,(c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(p=e.md.normalizeLink(c.str),e.md.validateLink(p)?l=c.pos:p="",g=l;l<m&&(o=e.src.charCodeAt(l),n(o)||10===o);l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&g!==l&&c.ok)for(d=c.str,l=c.pos;l<m&&(o=e.src.charCodeAt(l),n(o)||10===o);l++);}(l>=m||41!==e.src.charCodeAt(l))&&(v=!0),l++}if(v){if("undefined"===typeof e.env.references)return!1;if(l<m&&91===e.src.charCodeAt(l)?(g=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?a=e.src.slice(g,l++):l=s+1):l=s+1,a||(a=e.src.slice(u,s)),!(h=e.env.references[r(a)]))return e.pos=f,!1;p=h.href,d=h.title}return t||(e.pos=u,e.posMax=s,e.push("link_open","a",1).attrs=i=[["href",p]],d&&i.push(["title",d]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}}}),he=c({"node_modules/markdown-it/lib/rules_inline/image.js"(e,t){var r=S().normalizeReference,n=S().isSpace;t.exports=function(e,t){var i,o,a,s,u,l,c,h,p,d,f,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(u=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=u+1)<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),n(o)||10===o);c++);if(c>=b)return!1;for(g=c,(p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(p.str),e.md.validateLink(v)?c=p.pos:v=""),g=c;c<b&&(o=e.src.charCodeAt(c),n(o)||10===o);c++);if(p=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&g!==c&&p.ok)for(d=p.str,c=p.pos;c<b&&(o=e.src.charCodeAt(c),n(o)||10===o);c++);else d="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if("undefined"===typeof e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(g,c++):c=u+1):c=u+1,s||(s=e.src.slice(l,u)),!(h=e.env.references[r(s)]))return e.pos=y,!1;v=h.href,d=h.title}return t||(a=e.src.slice(l,u),e.md.inline.parse(a,e.md,e.env,m=[]),(f=e.push("image","img",0)).attrs=i=[["src",v],["alt",""]],f.children=m,f.content=a,d&&i.push(["title",d])),e.pos=c,e.posMax=b,!0}}}),pe=c({"node_modules/markdown-it/lib/rules_inline/autolink.js"(e,t){var r=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;t.exports=function(e,t){var i,o,a,s,u,l,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(u=e.pos,l=e.posMax;;){if(++c>=l)return!1;if(60===(s=e.src.charCodeAt(c)))return!1;if(62===s)break}return i=e.src.slice(u+1,c),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(t||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!r.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(t||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}}}),de=c({"node_modules/markdown-it/lib/rules_inline/html_inline.js"(e,t){var r=Z().HTML_TAG_RE;t.exports=function(e,t){var n,i,o,a=e.pos;return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=o)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(r))&&(t||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,!0))))}}}),fe=c({"node_modules/markdown-it/lib/rules_inline/entity.js"(e,t){var r=m(),n=S().has,i=S().isValidEntityCode,o=S().fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;t.exports=function(e,t){var u,l,c=e.pos,h=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<h)if(35===e.src.charCodeAt(c+1)){if(l=e.src.slice(c).match(a))return t||(u="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),e.pending+=i(u)?o(u):o(65533)),e.pos+=l[0].length,!0}else if((l=e.src.slice(c).match(s))&&n(r,l[1]))return t||(e.pending+=r[l[1]]),e.pos+=l[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}}}),me=c({"node_modules/markdown-it/lib/rules_inline/balance_pairs.js"(e,t){function r(e,t){var r,n,i,o,a,s,u,l,c={},h=t.length;if(h){var p=0,d=-2,f=[];for(r=0;r<h;r++)if(i=t[r],f.push(0),t[p].marker===i.marker&&d===i.token-1||(p=r),d=i.token,i.length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],s=n=p-f[p]-1;n>a;n-=f[n]+1)if((o=t[n]).marker===i.marker&&o.open&&o.end<0&&(u=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3===0&&i.length%3===0||(u=!0)),!u)){l=n>0&&!t[n-1].open?f[n-1]+1:0,f[r]=r-n+l,f[n]=l,i.open=!1,o.end=r,o.close=!1,s=-1,d=-2;break}-1!==s&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}t.exports=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(r(0,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&r(0,n[t].delimiters)}}}),ge=c({"node_modules/markdown-it/lib/rules_inline/text_collapse.js"(e,t){t.exports=function(e){var t,r,n=0,i=e.tokens,o=e.tokens.length;for(t=r=0;t<o;t++)i[t].nesting<0&&n--,i[t].level=n,i[t].nesting>0&&n++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==r&&(i[r]=i[t]),r++);t!==r&&(i.length=r)}}}),ve=c({"node_modules/markdown-it/lib/rules_inline/state_inline.js"(e,t){var r=q(),n=S().isWhiteSpace,i=S().isPunctChar,o=S().isMdAsciiPunct;function a(e,t,r,n){this.src=e,this.env=r,this.md=t,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}a.prototype.pushPending=function(){var e=new r("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},a.prototype.push=function(e,t,n){this.pending&&this.pushPending();var i=new r(e,t,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(e,t){var r,a,s,u,l,c,h,p,d,f=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;f<v&&this.src.charCodeAt(f)===y;)f++;return s=f-e,a=f<v?this.src.charCodeAt(f):32,h=o(r)||i(String.fromCharCode(r)),d=o(a)||i(String.fromCharCode(a)),c=n(r),(p=n(a))?m=!1:d&&(c||h||(m=!1)),c?g=!1:h&&(p||d||(g=!1)),t?(u=m,l=g):(u=m&&(!g||h),l=g&&(!m||d)),{can_open:u,can_close:l,length:s}},a.prototype.Token=r,t.exports=a}}),ye=c({"node_modules/markdown-it/lib/parser_inline.js"(e,t){var r=M(),n=[["text",ie()],["newline",oe()],["escape",ae()],["backticks",se()],["strikethrough",ue().tokenize],["emphasis",le().tokenize],["link",ce()],["image",he()],["autolink",pe()],["html_inline",de()],["entity",fe()]],i=[["balance_pairs",me()],["strikethrough",ue().postProcess],["emphasis",le().postProcess],["text_collapse",ge()]];function o(){var e;for(this.ruler=new r,e=0;e<n.length;e++)this.ruler.push(n[e][0],n[e][1]);for(this.ruler2=new r,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}o.prototype.skipToken=function(e){var t,r,n=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if("undefined"===typeof s[n]){if(e.level<a)for(r=0;r<o&&(e.level++,t=i[r](e,!0),e.level--,!t);r++);else e.pos=e.posMax;t||e.pos++,s[n]=e.pos}else e.pos=s[n]},o.prototype.tokenize=function(e){for(var t,r,n=this.ruler.getRules(""),i=n.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(r=0;r<i&&!(t=n[r](e,!1));r++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,r,n){var i,o,a,s=new this.State(e,t,r,n);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},o.prototype.State=ve(),t.exports=o}}),be=c({"node_modules/linkify-it/lib/re.js"(e,t){t.exports=function(e){var t={};t.src_Any=k().source,t.src_Cc=_().source,t.src_Z=F().source,t.src_P=g().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}}}),De=c({"node_modules/linkify-it/index.js"(e,t){function r(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e}function n(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===n(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var s={"http:":{validate:function(e,t,r){var n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function l(e){var t=e.re=be()(e.__opts__),r=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var s=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var r=e.__schemas__[t];if(null!==r){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===n(r))return!function(e){return"[object RegExp]"===n(e)}(r.validate)?i(r.validate)?o.validate=r.validate:u(t,r):o.validate=function(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(i(r.normalize)?o.normalize=r.normalize:r.normalize?u(t,r):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===n(e)}(r)?u(t,r):s.push(t)}})),s.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var l=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+l+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function c(e,t){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function h(e,t){var r=new c(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function p(e,t){if(!(this instanceof p))return new p(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},s,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},l(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,l(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,n,i,o,a,s,u;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||u<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(o=n.index+n[1].length,a=n.index+n[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},p.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(h(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)r.push(h(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},p.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),l(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,l(this),this)},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},t.exports=p}}),we=c({"node_modules/punycode/punycode.js"(e,t){var r=2147483647,n=36,i=/^xn--/,o=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,s={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},u=Math.floor,l=String.fromCharCode;function c(e){throw new RangeError(s[e])}function h(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const i=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(a,".")).split("."),t).join(".");return n+i}function p(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&i)<<10)+(1023&n)+65536):(t.push(i),r--)}else t.push(i)}return t}var d=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},f=function(e,t,r){let i=0;for(e=r?u(e/700):e>>1,e+=u(e/t);e>455;i+=n)e=u(e/35);return u(i+36*e/(e+38))},m=function(e){const t=[],i=e.length;let o=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let r=0;r<l;++r)e.charCodeAt(r)>=128&&c("not-basic"),t.push(e.charCodeAt(r));for(let p=l>0?l+1:0;p<i;){let l=o;for(let t=1,a=n;;a+=n){p>=i&&c("invalid-input");const l=(h=e.charCodeAt(p++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:n;(l>=n||l>u((r-o)/t))&&c("overflow"),o+=l*t;const d=a<=s?1:a>=s+26?26:a-s;if(l<d)break;const f=n-d;t>u(r/f)&&c("overflow"),t*=f}const d=t.length+1;s=f(o-l,d,0==l),u(o/d)>r-a&&c("overflow"),a+=u(o/d),o%=d,t.splice(o++,0,a)}var h;return String.fromCodePoint(...t)},g=function(e){const t=[];let i=(e=p(e)).length,o=128,a=0,s=72;for(const r of e)r<128&&t.push(l(r));let h=t.length,m=h;for(h&&t.push("-");m<i;){let i=r;for(const t of e)t>=o&&t<i&&(i=t);const p=m+1;i-o>u((r-a)/p)&&c("overflow"),a+=(i-o)*p,o=i;for(const g of e)if(g<o&&++a>r&&c("overflow"),g==o){let e=a;for(let r=n;;r+=n){const i=r<=s?1:r>=s+26?26:r-s;if(e<i)break;const o=e-i,a=n-i;t.push(l(d(i+o%a,0))),e=u(o/a)}t.push(l(d(e,0))),s=f(a,p,m==h),a=0,++m}++a,++o}return t.join("")},v={version:"2.1.0",ucs2:{decode:p,encode:e=>String.fromCodePoint(...e)},decode:m,encode:g,toASCII:function(e){return h(e,(function(e){return o.test(e)?"xn--"+g(e):e}))},toUnicode:function(e){return h(e,(function(e){return i.test(e)?m(e.slice(4).toLowerCase()):e}))}};t.exports=v}}),ke=c({"node_modules/markdown-it/lib/presets/default.js"(e,t){t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}}}),_e=c({"node_modules/markdown-it/lib/presets/zero.js"(e,t){t.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}}}),xe=c({"node_modules/markdown-it/lib/presets/commonmark.js"(e,t){t.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}}}),Fe=c({"node_modules/markdown-it/lib/index.js"(e,t){var r=S(),n=L(),i=P(),o=U(),a=ne(),s=ye(),u=De(),l=w(),c=we(),h={default:ke(),zero:_e(),commonmark:xe()},p=/^(vbscript|javascript|file|data):/,d=/^data:image\/(gif|png|jpeg|webp);/;function f(e){var t=e.trim().toLowerCase();return!p.test(t)||!!d.test(t)}var m=["http:","https:","mailto:"];function g(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=c.toASCII(t.hostname)}catch(r){}return l.encode(l.format(t))}function v(e){var t=l.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=c.toUnicode(t.hostname)}catch(r){}return l.decode(l.format(t),l.decode.defaultChars+"%")}function y(e,t){if(!(this instanceof y))return new y(e,t);t||r.isString(e)||(t=e||{},e="default"),this.inline=new s,this.block=new a,this.core=new o,this.renderer=new i,this.linkify=new u,this.validateLink=f,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=r,this.helpers=r.assign({},n),this.options={},this.configure(e),t&&this.set(t)}y.prototype.set=function(e){return r.assign(this.options,e),this},y.prototype.configure=function(e){var t,n=this;if(r.isString(e)&&!(e=h[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},y.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},y.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},t.exports=y}}),Ce=c({"node_modules/markdown-it/index.js"(e,t){t.exports=Fe()}}),Se={};function Ae(e){return!!e?.$$mdtype}function Ee(e){return!("Function"!==e?.$$mdtype)}function Ne(e){return!("Variable"!==e?.$$mdtype)}function*Le(e){if(null!=e&&"object"===typeof e){if(Array.isArray(e))for(const t of e)yield*Le(t);if(Ae(e)&&(yield e),Object.getPrototypeOf(e)===Object.prototype)for(const t of Object.values(e))yield*Le(t)}}function Pe(e,t={}){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map((e=>Pe(e,t)));if(Ae(e)&&e?.resolve instanceof Function)return e.resolve(t);if(Object.getPrototypeOf(e)!==Object.prototype)return e;const r={};for(const[n,i]of Object.entries(e))r[n]=Pe(i,t);return r}h(Se,{getAstValues:()=>Le,isAst:()=>Ae,isFunction:()=>Ee,isVariable:()=>Ne,resolve:()=>Pe});var Me=class{constructor(e="div",t={},r=[]){this.$$mdtype="Tag",this.name=e,this.attributes=t,this.children=r}};Me.isTag=e=>!("Tag"!==e?.$$mdtype);var Ie,Te,Oe=p(d()),Be=class{constructor(e=[]){this.$$mdtype="Variable",this.path=e}resolve({variables:e}={}){return e instanceof Function?e(this.path):this.path.reduce(((e={},t)=>e[t]),e)}},je=class{constructor(e,t){this.$$mdtype="Function",this.name=e,this.parameters=t}resolve(e={}){const t=e?.functions?.[this.name];if(!t)return null;const r=Pe(this.parameters,e);return t.transform?.(r,e)}};(Te=Ie||(Ie={}))[Te.normal=0]="normal",Te[Te.string=1]="string",Te[Te.escape=2]="escape";var Re="{%",qe="%}",ze=/^[a-zA-Z0-9_-]+$/;function Ue(e){return"string"===typeof e&&ze.test(e)}function He(e){return e&&"object"===typeof e&&"function"===typeof e.then}function We(e,t=0){let r=0;for(let n=t;n<e.length;n++){const t=e[n];switch(r){case 1:switch(t){case'"':r=0;break;case"\\":r=2}break;case 2:r=1;break;case 0:if('"'===t)r=1;else if(e.startsWith(qe,n))return n}}return null}function Ye(e,t,r){try{return(0,Oe.parse)(e,{Variable:Be,Function:je})}catch(n){if(!(n instanceof Oe.SyntaxError))throw n;const{message:e,location:{start:i,end:o}}=n;return{type:"error",meta:{error:{message:e,location:{start:{line:t,character:i.offset+r},end:{line:t+1,character:o.offset+r}}}}}}}function Ve(e,t=0){let r=t+1;const n=[];let i=0;for(let o=0;o<e.length;o++){if("\n"===e[o]){r++;continue}if(!e.startsWith(Re,o))continue;const t=We(e,o);if(null==t){o+=2;continue}const a=e.slice(o,t+2),s=e.slice(o+2,t),u=e.lastIndexOf("\n",o),l=e.indexOf("\n",t),c=e.slice(u,l),h=Ye(s.trim(),r,o-u),p=c.trim()===a?u:o,d=e.slice(i,p);n.push({type:"text",start:i,end:o-1,content:d}),n.push({map:[r,r+1],position:{start:o-u,end:o-u+a.length},start:o,end:o+a.length-1,info:a,...h}),i=t+2,o=i-1}return n.push({type:"text",start:i,end:e.length-1,content:e.slice(i)}),n}var $e={class:{type:class{validate(e,t,r){return"string"===typeof e||"object"===typeof e?[]:[{id:"attribute-type-invalid",level:"error",message:`Attribute '${r}' must be type 'string | object'`}]}transform(e){if(!e||"string"===typeof e)return e;const t=[];for(const[r,n]of Object.entries(e??{}))n&&t.push(r);return t.join(" ")}},render:!0},id:{type:class{validate(e){return"string"===typeof e&&e.match(/^[a-zA-Z]/)?[]:[{id:"attribute-value-invalid",level:"error",message:"The 'id' attribute must start with a letter"}]}},render:!0}},Ge={findSchema:(e,{nodes:t={},tags:r={}}={})=>e.tag?r[e.tag]:t[e.type],attributes(e,t={}){const r=this.findSchema(e,t)??{},n={},i={...$e,...r.attributes};for(const[o,a]of Object.entries(i)){if(0==a.render)continue;const r="string"===typeof a.render?a.render:o;let i=e.attributes[o];if("function"===typeof a.type){const e=new a.type;e.transform&&(i=e.transform(i,t))}i=void 0===i?a.default:i,void 0!==i&&(n[r]=i)}if(r.slots)for(const[o,a]of Object.entries(r.slots)){if(!1===a.render)continue;const r="string"===typeof a.render?a.render:o;e.slots[o]&&(n[r]=this.node(e.slots[o],t))}return n},children(e,t={}){const r=e.children.flatMap((e=>this.node(e,t)));return r.some(He)?Promise.all(r):r},node(e,t={}){const r=this.findSchema(e,t)??{};if(r&&r.transform instanceof Function)return r.transform(e,t);const n=this.children(e,t);if(!r||!r.render)return n;const i=this.attributes(e,t);return He(i)||He(n)?Promise.all([i,n]).then((e=>new Me(r.render,...e))):new Me(r.render,i,n)}},Ke=class{constructor(e="node",t={},r=[],n){this.$$mdtype="Node",this.errors=[],this.lines=[],this.inline=!1,this.attributes=t,this.children=r,this.type=e,this.tag=n,this.annotations=[],this.slots={}}*walk(){for(const e of[...Object.values(this.slots),...this.children])yield e,yield*e.walk()}push(e){this.children.push(e)}resolve(e={}){return Object.assign(new Ke,this,{children:this.children.map((t=>t.resolve(e))),attributes:Pe(this.attributes,e),slots:Object.fromEntries(Object.entries(this.slots).map((([t,r])=>[t,r.resolve(e)])))})}findSchema(e={}){return Ge.findSchema(this,e)}transformAttributes(e={}){return Ge.attributes(this,e)}transformChildren(e){return Ge.children(this,e)}transform(e){return Ge.node(this,e)}},Je={Function:je,Node:Ke,Variable:Be};function Ze(e,t){if(!t)return t;const r=Je[t.$$mdtype];return r?Object.assign(new r,t):t}var Qe={...Je,...Se,fromJSON:function(e){return JSON.parse(e,Ze)}},Xe=" ",et=", ",tt="\n",rt=["strong","em","s"],nt=(e,t)=>Math.max(e,t),it=(e,t=2)=>({...e,indent:(e.indent||0)+t});function*ot(e,t){for(const r of e.children)yield*ft(r,t)}function*at(e){yield[...e].join("").trim()}function*st(e){yield`| ${e.join(" | ")} |`}function ut(e){if(void 0!==e)return Qe.isAst(e)?mt(e):null===e?"null":Array.isArray(e)?"["+e.map(ut).join(et)+"]":"object"===typeof e?"{"+Object.entries(e).map((([e,t])=>`${Ue(e)?e:`"${e}"`}: ${ut(t)}`)).join(et)+"}":JSON.stringify(e)}function lt(e){const t=ut(e.value);if(void 0!==t)return"primary"===e.name?t:"id"===e.name&&"string"===typeof e.value&&Ue(e.value)?"#"+e.value:"class"===e.type&&Ue(e.name)?"."+e.name:`${e.name}=${t}`}function*ct(e){for(const[t,r]of Object.entries(e.attributes))if("class"!==t||"object"!==typeof r||Qe.isAst(r))yield lt({type:"attribute",name:t,value:r});else for(const e of Object.keys(r))yield lt({type:"class",name:e,value:r})}function*ht(e){e.annotations.length&&(yield Re+Xe,yield e.annotations.map(lt).join(Xe),yield Xe+qe)}function*pt(e){let t;do{const{value:r,done:n}=e.next();if(n)return;t=r.trimStart()}while(!t.length);yield t,yield*e}function*dt(e,t){yield e.replace(t,"\\$&").replace(new RegExp("\xa0","g")," ")}function*ft(e,t={}){switch(typeof e){case"undefined":break;case"boolean":case"number":case"string":yield e.toString();break;case"object":if(null===e)break;if(Array.isArray(e)){for(const r of e)yield*ft(r,t);break}switch(e.$$mdtype){case"Function":yield*function*(e){yield e.name,yield"(",yield Object.values(e.parameters).map(ut).join(et),yield")"}(e);break;case"Node":yield*function*(e,t={}){const r={...t,parent:e},n=Xe.repeat(r.indent||0);switch(e.type){case"document":e.attributes.frontmatter&&e.attributes.frontmatter.length&&(yield"---\n"+e.attributes.frontmatter+"\n---"+tt+tt),yield*pt(ot(e,r));break;case"heading":yield tt,yield n,yield"#".repeat(e.attributes.level||1),yield Xe,yield*pt(ot(e,r)),yield*ht(e),yield tt;break;case"paragraph":yield tt,yield*ot(e,r),yield*ht(e),yield tt;break;case"inline":yield n,yield*ot(e,r);break;case"image":yield"!",yield"[",yield*ft(e.attributes.alt,r),yield"]",yield"(",yield*"string"===typeof e.attributes.src?dt(e.attributes.src,/[()]/g):ft(e.attributes.src,r),e.attributes.title&&(yield Xe+`"${e.attributes.title}"`),yield")";break;case"link":{const t=[...ot(e,r)].join("");if(t===e.attributes.href&&!e.attributes.title){yield`<${e.attributes.href}>`;break}yield"[",yield t,yield"]",yield"(",yield*"string"===typeof e.attributes.href?dt(e.attributes.href,/[()]/g):ft(e.attributes.href,r),e.attributes.title&&(yield Xe+`"${e.attributes.title}"`),yield")";break}case"text":{const{content:n}=e.attributes;Qe.isAst(n)?(yield Re+Xe,yield*ft(n,r),yield Xe+qe):t.parent&&rt.includes(t.parent.type)?yield*dt(n,/[*_~]/g):yield*dt(n,/^\*|#+\s|^>/);break}case"blockquote":{const t="> ";yield e.children.map((e=>mt(e,r).trimStart())).map((e=>tt+n+t+e)).join(n+t);break}case"hr":yield tt,yield n,yield"---",yield tt;break;case"fence":{yield tt,yield n;const t=(e.attributes.content.match(/`{3,}/g)||[]).map((e=>e.length)).reduce(nt,0),r="`".repeat(t?t+1:3),i=!e.attributes.content.endsWith(tt);yield r,e.attributes.language&&(yield e.attributes.language),e.annotations.length&&(yield Xe),yield*ht(e),yield tt,yield n,yield e.attributes.content.split(tt).join(tt+n),i&&(yield tt),yield r,yield tt;break}case"tag":{e.inline||(yield tt,yield n);const i=Re+Xe,o=[...ct(e)].filter((e=>void 0!==e)),a=[i+e.tag,...o],s=a.join(Xe),u=s.length+2*i.length>(t.maxTagOpeningWidth||80);yield(!e.inline&&u?a.join(tt+Xe.repeat(i.length)+n):s)+Xe+(e.children.length?"":"/")+qe,e.children.length&&(yield*ot(e,r.allowIndentation?it(r):r),e.inline||(yield n),yield"{% /"+e.tag+Xe+qe),e.inline||(yield tt);break}case"list":{const i=e.children.some((e=>e.children.some((e=>"paragraph"===e.type))));for(let o=0;o<e.children.length;o++){const a=(()=>{if(!e.attributes.ordered)return e.attributes.marker??"-";let r="1";const n=e.attributes.start??1;return 0===o&&(r=n.toString()),"increment"===t.orderedListMode&&(r=(parseInt(n)+o).toString()),`${r}${e.attributes.marker??"."}`})();let s=mt(e.children[o],it(r,a.length+1));i&&o!==e.children.length-1||(s=s.trim()),yield tt+n+a+" "+s}yield tt;break}case"item":for(let t=0;t<e.children.length;t++)yield*ft(e.children[t],r),0===t&&(yield*ht(e));break;case"strong":yield e.attributes.marker??"**",yield*at(ot(e,r)),yield e.attributes.marker??"**";break;case"em":yield e.attributes.marker??"*",yield*at(ot(e,r)),yield e.attributes.marker??"*";break;case"code":yield"`",yield*at(ft(e.attributes.content,r)),yield"`";break;case"s":yield"~~",yield*at(ot(e,r)),yield"~~";break;case"hardbreak":yield"\\\n",yield n;break;case"softbreak":yield tt,yield n;break;case"table":{const i=[...ot(e,it(r))];if(t.parent&&"tag"===t.parent.type&&"table"===t.parent.tag){for(let e=0;e<i.length;e++){const t=i[e];if("string"===typeof t)t.trim().length&&(yield tt,yield t);else{0!==e&&(yield tt,yield n+"---");for(const e of t)yield tt+n+"- "+e}}yield tt}else{const e=[];for(const n of i)for(let t=0;t<n.length;t++)e[t]=e[t]?Math.max(e[t],n[t].length):n[t].length;const[t,...r]=i;yield tt,yield*st(t.map(((t,r)=>t+Xe.repeat(e[r]-t.length)))),yield tt,yield*st(t.map(((t,r)=>"-".repeat(e[r])))),yield tt;for(const n of r)yield*st(n.map(((t,r)=>t+Xe.repeat(e[r]-t.length)))),yield tt}break}case"thead":{const[t]=[...ot(e,r)];yield t||[];break}case"tr":yield[...ot(e,r)];break;case"td":case"th":yield[...ot(e,r),...ht(e)].join("").trim();break;case"tbody":yield*ot(e,r);break;case"comment":yield"\x3c!-- "+e.attributes.content+" --\x3e\n"}}(e,t);break;case"Variable":yield*function*(e){yield"$",yield e.path.map(((e,t)=>0===t?e:Ue(e)?"."+e:"number"===typeof e?`[${e}]`:`["${e}"]`)).join("")}(e);break;default:throw new Error(`Unimplemented: "${e.$$mdtype}"`)}}}function mt(e,t){let r="";for(const n of ft(e,t))r+=n;return r.trimStart()}var gt=class{validate(e,t,r){return"boolean"===typeof e||null===e||void 0===e||"object"===typeof e?[]:[{id:"attribute-type-invalid",level:"error",message:`Attribute '${r}' must be type 'boolean | object' (null or undefined are also allowed)`}]}};function vt(e){return!1!==e&&void 0!==e&&null!==e}var yt={attributes:{primary:{type:gt,render:!1}},transform(e,t){const r=function(e){const t=[{condition:e.attributes.primary,children:[]}];for(const r of e.children)"tag"===r.type&&"else"===r.tag?t.push({condition:!("primary"in r.attributes)||r.attributes.primary,children:[]}):t[t.length-1].children.push(r);return t}(e);for(const{condition:n,children:i}of r)if(vt(n)){const e=i.flatMap((e=>e.transform(t)));return e.some(He)?Promise.all(e).then((e=>e.flat())):e}return[]}},bt={selfClosing:!0,attributes:{primary:{type:gt,render:!1}}},Dt={and:{transform:e=>Object.values(e).every((e=>vt(e)))},or:{transform:e=>void 0!==Object.values(e).find((e=>vt(e)))},not:{parameters:{0:{required:!0}},transform:e=>!vt(e[0])},equals:{transform(e){const t=Object.values(e);return t.every((e=>e===t[0]))}},default:{transform:e=>void 0===e[0]?e[1]:e[0]},debug:{transform:e=>JSON.stringify(e[0],null,2)}};function wt(e,t="td"){e.type="tr",e.attributes={};for(const r of e.children)r.type=t;return e}function kt(e,t){return"tag"===e.type&&!!e.tag&&t.includes(e.tag)}function _t(e){return"comment"===e.type||"tag"===e.type&&"comment"===e.tag}function xt({type:e,tag:t}){return{id:"table-syntax",level:"critical",message:`Found ${e}${t?` ${t}`:""} where a list was expected. Make sure all content inside table cells is indented.`}}var Ft=[function(e,t=["if"]){for(const r of e.walk()){if("tag"!==r.type||"table"!==r.tag)continue;const[e,...n]=r.children;if(!e||"table"===e.type)continue;const i=new Qe.Node("table",r.attributes,[new Qe.Node("thead"),new Qe.Node("tbody")]),[o,a]=i.children;"list"===e.type&&o.push(wt(e,"th"));for(const s of n){if("list"===s.type)wt(s);else{if(!kt(s,t)){if("hr"===s.type||_t(s))continue;r.errors.push(xt({type:s.type,tag:s.tag}));continue}{const e=[];for(const r of s.children)if("hr"!==r.type){if("list"===r.type)wt(r);else if(!_t(r)&&"else"!==r.tag&&!kt(r,t)){s.errors.push(xt({type:r.type,tag:r.tag}));continue}e.push(r)}s.children=e}}a.push(s)}r.children=[i]}}],Ct={ordered_list:"list",bullet_list:"list",code_inline:"code",list_item:"item",variable:"text"};function St(e,t){for(const r of t){e.annotations.push(r);const{name:t,value:n,type:i}=r;"attribute"===i?(void 0!==e.attributes[t]&&e.errors.push({id:"duplicate-attribute",level:"warning",message:`Attribute '${t}' already set`}),e.attributes[t]=n):"class"===i&&(e.attributes.class?e.attributes.class[t]=n:e.attributes.class={[t]:n})}}function At(e,t,r,n,i,o){if("frontmatter"===e.type)return void(t[0].attributes.frontmatter=e.content);if(e.hidden||"text"===e.type&&""===e.content)return;const a=e.errors||[],s=t[t.length-1],{tag:u,attributes:l,error:c}=e.meta||{};if("annotation"===e.type)return o?St(o,l):s.errors.push({id:"no-inline-annotations",level:"error",message:`Can't apply inline annotations to '${s.type}'`});let h=e.type.replace(/_(open|close)$/,"");if(Ct[h]&&(h=Ct[h]),"error"===h){const{message:e,location:t}=c;a.push({id:"parse-error",level:"critical",message:e,location:t})}if(e.nesting<0){if(s.type===h&&s.tag===u)return s.lines&&e.map&&s.lines.push(...e.map),t.pop();a.push({id:"missing-opening",level:"critical",message:`Node '${h}' is missing opening`})}const p=function(e,t){switch(t){case"heading":return{level:Number(e.tag.replace("h",""))};case"list":{const t=e.attrs?Object.fromEntries(e.attrs):void 0,r=e.type.startsWith("ordered");return r&&t?.start?{ordered:!0,start:t.start,marker:e.markup}:{ordered:r,marker:e.markup}}case"link":{const t=Object.fromEntries(e.attrs);return t.title?{href:t.href,title:t.title}:{href:t.href}}case"image":{const t=Object.fromEntries(e.attrs);return t.title?{alt:e.content,src:t.src,title:t.title}:{alt:e.content,src:t.src}}case"em":case"strong":return{marker:e.markup};case"text":case"code":case"comment":return{content:(e.meta||{}).variable||e.content};case"fence":{const[t]=e.info.split(" ",1);return""===t||t===Re?{content:e.content}:{content:e.content,language:t}}case"td":case"th":if(e.attrs){const t=Object.fromEntries(e.attrs);let r;if(t.style&&(t.style.includes("left")?r="left":t.style.includes("center")?r="center":t.style.includes("right")&&(r="right")),r)return{align:r}}return{};default:return{}}}(e,h),d=new Ke(h,p,void 0,u||void 0),{position:f={}}=e;if(d.errors=a,!1!==i&&(d.lines=e.map||s.lines||[],d.location={file:r,start:{line:d.lines[0],character:f.start},end:{line:d.lines[1],character:f.end}}),o&&(d.inline=!0),l&&["tag","fence","image"].includes(h)&&St(d,l),n&&"slot"===u&&"string"===typeof d.attributes.primary?s.slots[d.attributes.primary]=d:s.push(d),e.nesting>0&&t.push(d),!Array.isArray(e.children))return;"inline"===d.type&&(o=s),t.push(d);if(!("image"===h))for(const m of e.children)At(m,t,r,n,i,o);t.pop()}var Et={};h(Et,{blockquote:()=>Tt,code:()=>Jt,comment:()=>er,document:()=>Nt,em:()=>Vt,error:()=>tr,fence:()=>It,hardbreak:()=>Qt,heading:()=>Lt,hr:()=>jt,image:()=>Mt,inline:()=>Gt,item:()=>Ot,link:()=>Kt,list:()=>Bt,node:()=>rr,paragraph:()=>Pt,s:()=>$t,softbreak:()=>Xt,strong:()=>Yt,table:()=>Rt,tbody:()=>Ht,td:()=>qt,text:()=>Zt,th:()=>zt,thead:()=>Wt,tr:()=>Ut});var Nt={render:"article",children:["heading","paragraph","image","table","tag","fence","blockquote","comment","list","hr"],attributes:{frontmatter:{render:!1}}},Lt={children:["inline"],attributes:{level:{type:Number,render:!1,required:!0}},transform:(e,t)=>new Me(`h${e.attributes.level}`,e.transformAttributes(t),e.transformChildren(t))},Pt={render:"p",children:["inline"]},Mt={render:"img",attributes:{src:{type:String,required:!0},alt:{type:String},title:{type:String}}},It={render:"pre",attributes:{content:{type:String,render:!1,required:!0},language:{type:String,render:"data-language"},process:{type:Boolean,render:!1,default:!0}},transform(e,t){const r=e.transformAttributes(t),n=e.children.length?e.transformChildren(t):[e.attributes.content];return new Me("pre",r,n)}},Tt={render:"blockquote",children:["heading","paragraph","image","table","tag","fence","blockquote","list","hr"]},Ot={render:"li",children:["inline","heading","paragraph","image","table","tag","fence","blockquote","list","hr"]},Bt={children:["item"],attributes:{ordered:{type:Boolean,render:!1,required:!0},start:{type:Number},marker:{type:String,render:!1}},transform:(e,t)=>new Me(e.attributes.ordered?"ol":"ul",e.transformAttributes(t),e.transformChildren(t))},jt={render:"hr"},Rt={render:"table"},qt={render:"td",children:["inline","heading","paragraph","image","table","tag","fence","blockquote","list","hr"],attributes:{align:{type:String},colspan:{type:Number,render:"colSpan"},rowspan:{type:Number,render:"rowSpan"}}},zt={render:"th",attributes:{width:{type:String},align:{type:String},colspan:{type:Number,render:"colSpan"},rowspan:{type:Number,render:"rowSpan"}}},Ut={render:"tr",children:["th","td"]},Ht={render:"tbody",children:["tr","tag"]},Wt={render:"thead",children:["tr"]},Yt={render:"strong",children:["em","s","link","code","text","tag"],attributes:{marker:{type:String,render:!1}}},Vt={render:"em",children:["strong","s","link","code","text","tag"],attributes:{marker:{type:String,render:!1}}},$t={render:"s",children:["strong","em","link","code","text","tag"]},Gt={children:["strong","em","s","code","text","tag","link","image","hardbreak","softbreak","comment"]},Kt={render:"a",children:["strong","em","s","code","text","tag"],attributes:{href:{type:String,required:!0},title:{type:String}}},Jt={render:"code",attributes:{content:{type:String,render:!1,required:!0}},transform(e,t){const r=e.transformAttributes(t);return new Me("code",r,[e.attributes.content])}},Zt={attributes:{content:{type:String,required:!0}},transform:e=>e.attributes.content},Qt={render:"br"},Xt={transform:()=>" "},er={attributes:{content:{type:String,required:!0}}},tr={},rr={},nr=p(Ce()),{escapeHtml:ir}=(0,nr.default)().utils,or=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function ar(e,t){return"string"!==typeof e||e[0]!==e[0].toUpperCase()?e:t instanceof Function?t(e):t[e]}function sr(e,t){return"string"!==typeof e?"Fragment":e[0]!==e[0].toUpperCase()?e:t instanceof Function?t(e):t[e]}function ur(e){return e.map(cr).join(", ")}function lr(e){if(null==e||"object"!==typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map((e=>lr(e))).join(", ")}]`;if("Tag"===e.$$mdtype)return cr(e);if("object"!==typeof e)return JSON.stringify(e);return`{${Object.entries(e).map((([e,t])=>[JSON.stringify(e),lr(t)].join(": "))).join(", ")}}`}function cr(e){if(Array.isArray(e))return`React.createElement(React.Fragment, null, ${ur(e)})`;if(null===e||"object"!==typeof e||!Me.isTag(e))return JSON.stringify(e);const{name:t,attributes:{class:r,...n}={},children:i=[]}=e;return r&&(n.className=r),`React.createElement(\n tagName(${JSON.stringify(t)}, components),\n ${0==Object.keys(n).length?"null":lr(n)},\n ${ur(i)})`}var hr={html:function e(t){if("string"===typeof t||"number"===typeof t)return ir(String(t));if(Array.isArray(t))return t.map(e).join("");if(null===t||"object"!==typeof t||!Me.isTag(t))return"";const{name:r,attributes:n,children:i=[]}=t;if(!r)return e(i);let o=`<${r}`;for(const[a,s]of Object.entries(n??{}))o+=` ${a.toLowerCase()}="${ir(String(s))}"`;return o+=">",or.has(r)||(i.length&&(o+=e(i)),o+=`</${r}>`),o},react:function(e,t,{components:r={},resolveTagName:n=ar}={}){function i(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map((e=>i(e)));if("Tag"===e.$$mdtype)return o(e);if("object"!==typeof e)return e;const t={};for(const[r,n]of Object.entries(e))t[r]=i(n);return t}function o(e){if(Array.isArray(e))return t.createElement(t.Fragment,null,...e.map(o));if(null===e||"object"!==typeof e||!Me.isTag(e))return e;const{name:a,attributes:{class:s,...u}={},children:l=[]}=e;return s&&(u.className=s),t.createElement(n(a,r),0==Object.keys(u).length?null:i(u),...l.map(o))}return o(e)},reactStatic:function(e,{resolveTagName:t=sr}={}){if("tagName"!==t.name)throw new Error("resolveTagName must be named tagName");return`\n (({components = {}} = {}) => {\n ${t}\n return ${cr(e)};\n })\n`}},pr={else:bt,if:yt,partial:{inline:!1,selfClosing:!0,attributes:{file:{type:class{validate(e,t){const{partials:r={}}=t;return r[e]?[]:[{id:"attribute-value-invalid",level:"error",message:`Partial \`${e}\` not found. The 'file' attribute must be set in \`config.partials\``}]}},render:!1,required:!0},variables:{type:Object,render:!1}},transform(e,t){const{partials:r={}}=t,{file:n,variables:i}=e.attributes,o=r[n];if(!o)return null;const a={...t,variables:{...t.variables,...i,"$$partial:filename":n}},s=e=>e.resolve(a).transformChildren(a);return Array.isArray(o)?o.flatMap(s):s(o)}},slot:{attributes:{primary:{type:String,required:!0}}},table:{children:["table"],inline:!1}},dr=p(Fe()),fr=p(d());function mr(e,t,r){try{const{type:r,meta:n,nesting:i=0}=(0,fr.parse)(t,{Variable:Be,Function:je}),o=e.push(r,"",i);return o.info=t,o.meta=n,e.delimiters||(e.delimiters=[]),o}catch(n){if(!(n instanceof fr.SyntaxError))throw n;const{message:t,location:{start:i,end:o}}=n,a=r?{start:{offset:i.offset+r},end:{offset:o.offset+r}}:null,s=e.push("error","",0);return s.meta={error:{message:t,location:a}},s}}function gr(e,t,r,n){const i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(!e.src.startsWith(Re,i))return!1;const a=We(e.src,i),s=e.src.slice(0,o).trim().length;if(!a||a<s-2)return!1;const u=i+2,l=e.src.slice(u,a).trim(),c=e.src.slice(i,a+2).split("\n").length;if("$"===l[0])return!1;if(n)return!0;return mr(e,l,u).map=[t,t+c],e.line+=c,!0}function vr(e,t){if(!e.src.startsWith(Re,e.pos))return!1;const r=We(e.src,e.pos);if(!r)return!1;const n=e.src.slice(e.pos+2,r);return t||mr(e,n.trim()),e.pos=r+2,!0}function yr(e){let t;for(t of e.tokens)if("fence"===t.type){if(t.info.includes(Re)){const e=t.info.indexOf(Re),n=We(t.info,e),i=t.info.slice(e+2,n);try{const{meta:e}=(0,fr.parse)(i.trim(),{Variable:Be,Function:je});t.meta=e}catch(r){if(!(r instanceof fr.SyntaxError))throw r;t.errors||(t.errors=[]),t.errors.push({id:"fence-tag-error",level:"error",message:`Syntax error in fence tag: ${r.message}`})}}t?.meta?.attributes?.find((e=>"process"===e.name&&!e.value))||(t.children=Ve(t.content,t.map[0]))}}function br(e){e.block.ruler.before("paragraph","annotations",gr,{alt:["paragraph","blockquote"]}),e.inline.ruler.push("containers",vr),e.core.ruler.push("annotations",yr)}function Dr(e,t){return e.src.slice(e.bMarks[t],e.eMarks[t]).trim()}function wr(e,t,r,n){if(0!=t||"---"!=Dr(e,0))return!1;const i=function(e,t){for(let r=1;r<t;r++)if("---"===Dr(e,r))return r}(e,r);if(!i)return!1;if(n)return!0;const o=e.push("frontmatter","",0);return o.content=e.src.slice(e.eMarks[0],e.bMarks[i]).trim(),o.map=[0,i],o.hidden=!0,e.line=i+1,!0}function kr(e){e.block.ruler.before("hr","frontmatter",wr)}var _r="\x3c!--",xr="--\x3e";function Fr(e,t,r,n){const i=e.bMarks[t]+e.tShift[t];if(!e.src.startsWith(_r,i))return!1;const o=e.src.indexOf(xr,i);if(-1===o)return!1;if(n)return!0;const a=e.src.slice(i+4,o),s=a.split("\n").length,u=e.push("comment","",0);return u.content=a.trim(),u.map=[t,t+s],e.line+=s,!0}function Cr(e,t){if(!e.src.startsWith(_r,e.pos))return!1;const r=e.src.indexOf(xr,e.pos);if(-1===r)return!1;if(t)return!0;const n=e.src.slice(e.pos+4,r);return e.push("comment","",0).content=n.trim(),e.pos=r+3,!0}function Sr(e){e.block.ruler.before("table","comment",Fr,{alt:["paragraph"]}),e.inline.ruler.push("comment",Cr)}var Ar=class{constructor(e={}){this.parser=new dr.default(e),this.parser.use(br,"annotations",{}),this.parser.use(kr,"frontmatter",{}),this.parser.disable(["lheading","code"]),e.allowComments&&this.parser.use(Sr,"comments",{})}tokenize(e){return this.parser.parse(e.toString(),{})}},Er={String:String,Number:Number,Array:Array,Object:Object,Boolean:Boolean};function Nr(e,t,r,n){if(!e)return!0;if(Qe.isFunction(t)&&r.validation?.validateFunctions){const n=r.functions?.[t.name];return!n?.returns||(Array.isArray(n.returns)?void 0!==n.returns.find((t=>t===e)):n.returns===e)}if(Qe.isAst(t))return!0;if(Array.isArray(e))return e.some((e=>Nr(e,t,r,n)));if("string"===typeof e&&(e=Er[e]),"function"===typeof e){const i=new e;if(i.validate)return i.validate(t,r,n)}return null!=t&&t.constructor===e}function Lr(e){return"string"===typeof e?e:Array.isArray(e)?e.map(Lr).join(" | "):e.name}function Pr(e,t){const r=t.functions?.[e.name],n=[];if(!r)return[{id:"function-undefined",level:"critical",message:`Undefined function: '${e.name}'`}];if(r.validate&&n.push(...r.validate(e,t)),r.parameters)for(const[i,o]of Object.entries(e.parameters)){const a=r.parameters?.[i];if(a){if((!Qe.isAst(o)||Qe.isFunction(o))&&a.type){const r=Nr(a.type,o,t,i);!1===r?n.push({id:"parameter-type-invalid",level:"error",message:`Parameter '${i}' of '${e.name}' must be type of '${Lr(a.type)}'`}):Array.isArray(r)&&n.push(...r)}}else n.push({id:"parameter-undefined",level:"error",message:`Invalid parameter: '${i}'`})}for(const[i,{required:o}]of Object.entries(r.parameters??{}))o&&void 0===e.parameters[i]&&n.push({id:"parameter-missing-required",level:"error",message:`Missing required parameter: '${i}'`});return n}function Mr(e,t){if(e.length<=t)return JSON.stringify(e);return`[${e.slice(0,t).map((e=>JSON.stringify(e))).join(",")}, ... ${e.length-t} more]`}function Ir(e,t){const r=e.findSchema(t),n=[...e.errors||[]];if(!r)return n.push({id:e.tag?"tag-undefined":"node-undefined",level:"critical",message:e.tag?`Undefined tag: '${e.tag}'`:`Undefined node: '${e.type}'`}),n;void 0!=r.inline&&e.inline!==r.inline&&n.push({id:"tag-placement-invalid",level:"critical",message:`'${e.tag}' tag should be ${r.inline?"inline":"block"}`}),r.selfClosing&&e.children.length>0&&n.push({id:"tag-selfclosing-has-children",level:"critical",message:`'${e.tag}' tag should be self-closing`});const i={...$e,...r.attributes};for(const o of Object.keys(e.slots)){const e=r.slots?.[o];e||n.push({id:"slot-undefined",level:"error",message:`Invalid slot: '${o}'`})}for(let[o,a]of Object.entries(e.attributes)){const e=i[o];if(!e){n.push({id:"attribute-undefined",level:"error",message:`Invalid attribute: '${o}'`});continue}let{type:r,matches:s,errorLevel:u}=e;if(Qe.isAst(a))if(Qe.isFunction(a)&&t.validation?.validateFunctions)n.push(...Pr(a,t));else{if(!Qe.isVariable(a)||!t.variables)continue;{let e=!1,r=t.variables;for(const t of a.path){if(!Object.prototype.hasOwnProperty.call(r,t)){e=!0;break}r=r[t]}e&&n.push({id:"variable-undefined",level:"error",message:`Undefined variable: '${a.path.join(".")}'`})}}if(r){const e=Nr(r,a,t,o);!1===e&&n.push({id:"attribute-type-invalid",level:u||"error",message:`Attribute '${o}' must be type of '${Lr(r)}'`}),Array.isArray(e)&&n.push(...e)}if("function"===typeof s&&(s=s(t)),Array.isArray(s)&&!s.includes(a)&&n.push({id:"attribute-value-invalid",level:u||"error",message:`Attribute '${o}' must match one of ${Mr(s,8)}. Got '${a}' instead.`}),s instanceof RegExp&&!s.test(a)&&n.push({id:"attribute-value-invalid",level:u||"error",message:`Attribute '${o}' must match ${s}. Got '${a}' instead.`}),"function"===typeof e.validate){const r=e.validate(a,t,o);Array.isArray(r)&&n.push(...r)}}for(const[o,{required:a}]of Object.entries(i))a&&void 0===e.attributes[o]&&n.push({id:"attribute-missing-required",level:"error",message:`Missing required attribute: '${o}'`});if(r.slots)for(const[o,{required:a}]of Object.entries(r.slots))a&&void 0===e.slots[o]&&n.push({id:"slot-missing-required",level:"error",message:`Missing required slot: '${o}'`});for(const{type:o}of e.children)r.children&&"error"!==o&&!r.children.includes(o)&&n.push({id:"child-invalid",level:"warning",message:`Can't nest '${o}' in '${e.tag||e.type}'`});if(r.validate){const i=r.validate(e,t);if(He(i))return i.then((e=>n.concat(e)));n.push(...i)}return n}function*Tr(e,t=[]){yield[e,t];for(const r of[...Object.values(e.slots),...e.children])yield*Tr(r,[...t,e])}var Or=new Ar;function Br(e={}){return{...e,tags:{...pr,...e.tags},nodes:{...Et,...e.nodes},functions:{...Dt,...e.functions}}}function jr(e,t){return"string"===typeof e&&(e=Or.tokenize(e)),function(e,t){const r=new Ke("document"),n=[r];"string"===typeof t&&(t={file:t});for(const i of e)At(i,n,t?.file,t?.slots,t?.location);if(n.length>1)for(const i of n.slice(1))i.errors.push({id:"missing-closing",level:"critical",message:`Node '${i.tag||i.type}' is missing closing`});for(const i of Ft)i(r,t?.conditionalTags);return r}(e,t)}function Rr(e,t){return Array.isArray(e)?e.flatMap((e=>e.resolve(t))):e.resolve(t)}function qr(e,t){const r=Br(t),n=Rr(e,r);return Array.isArray(n)?n.flatMap((e=>e.transform(r))):n.transform(r)}function zr(e,t){return function(e,t){const r=[...Tr(e)].map((([e,r])=>{const{type:n,lines:i,location:o}=e,a=Ir(e,{...t,validation:{...t.validation,parents:r}});return He(a)?a.then((e=>e.map((e=>({type:n,lines:i,location:o,error:e}))))):a.map((e=>({type:n,lines:i,location:o,error:e})))}));return r.some(He)?Promise.all(r).then((e=>e.flat())):r.flat()}(e,Br(t))}var Ur=class{constructor(e){this.parse=jr,this.resolve=e=>Rr(e,this.config),this.transform=e=>qr(e,this.config),this.validate=e=>zr(e,this.config),this.config=e}};Ur.nodes=Et,Ur.tags=pr,Ur.functions=Dt,Ur.globalAttributes=$e,Ur.renderers=hr,Ur.transforms=Ft,Ur.Ast=Qe,Ur.Tag=Me,Ur.Tokenizer=Ar,Ur.parseTags=Ve,Ur.transformer=Ge,Ur.validator=Ir,Ur.parse=jr,Ur.transform=qr,Ur.validate=zr,Ur.createElement=function(e,t={},...r){return{name:e,attributes:t,children:r}},Ur.truthy=vt,Ur.format=mt},59007(e,t,r){"use strict";r.d(t,{P:()=>i});var n=r(5305);function i(e,t){const[r,i]=(0,n.x)(e,t.start,t.end);return{start:r,end:i}}},49176(e,t,r){"use strict";r.d(t,{L:()=>o});var n=r(79197),i=r(61501);function o(e,t,r){return(0,n.A)(e,t*i.s0,r)}},79197(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(43329),i=r(29407);function o(e,t,r){return(0,n.w)(r?.in||e,+(0,i.a)(e)+t)}},38342(e,t,r){"use strict";r.d(t,{z:()=>o});var n=r(61501),i=r(29407);function o(e,t,r){const o=(0,i.a)(e,r?.in);return o.setTime(o.getTime()+t*n.Cg),o}},37122(e,t,r){"use strict";r.d(t,{z:()=>i});var n=r(66304);function i(e,t,r){return(0,n.P)(e,3*t,r)}},49914(e,t,r){"use strict";r.d(t,{p:()=>i});var n=r(79197);function i(e,t,r){return(0,n.A)(e,1e3*t,r)}},79114(e,t,r){"use strict";r.d(t,{J:()=>i});var n=r(16172);function i(e,t,r){return(0,n.f)(e,7*t,r)}},95413(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(66304);function i(e,t,r){return(0,n.P)(e,12*t,r)}},52365(e,t,r){"use strict";r.d(t,{A:()=>i});var n=r(43329);function i(e){return(0,n.w)(e,Date.now())}},29543(e,t,r){"use strict";r.d(t,{U:()=>i});var n=r(5305);function i(e,t,r){const[i,o]=(0,n.x)(r?.in,e,t);return 12*(i.getFullYear()-o.getFullYear())+(i.getMonth()-o.getMonth())}},32688(e,t,r){"use strict";r.d(t,{n:()=>i});var n=r(5305);function i(e,t,r){const[i,o]=(0,n.x)(r?.in,e,t);return i.getFullYear()-o.getFullYear()}},18373(e,t,r){"use strict";r.d(t,{c:()=>o});var n=r(5305),i=r(2831);function o(e,t,r){const[o,s]=(0,n.x)(r?.in,e,t),u=a(o,s),l=Math.abs((0,i.m)(o,s));o.setDate(o.getDate()-u*l);const c=u*(l-Number(a(o,s)===-u));return 0===c?0:c}function a(e,t){const r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}},98163(e,t,r){"use strict";r.d(t,{M:()=>a});var n=r(14936),i=r(5305),o=r(61501);function a(e,t,r){const[a,s]=(0,i.x)(r?.in,e,t),u=(+a-+s)/o.s0;return(0,n.u)(r?.roundingMethod)(u)}},92488(e,t,r){"use strict";r.d(t,{b:()=>i});var n=r(29407);function i(e,t){return+(0,n.a)(e)-+(0,n.a)(t)}},49785(e,t,r){"use strict";r.d(t,{o:()=>a});var n=r(14936),i=r(61501),o=r(92488);function a(e,t,r){const a=(0,o.b)(e,t)/i.Cg;return(0,n.u)(r?.roundingMethod)(a)}},10911(e,t,r){"use strict";r.d(t,{W:()=>c});var n=r(5305),i=r(96054),o=r(29543),a=r(12268),s=r(11580),u=r(29407);function l(e,t){const r=(0,u.a)(e,t?.in);return+(0,a.D)(r,t)===+(0,s.p)(r,t)}function c(e,t,r){const[a,s,u]=(0,n.x)(r?.in,e,e,t),c=(0,i.z)(s,u),h=Math.abs((0,o.U)(s,u));if(h<1)return 0;1===s.getMonth()&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-c*h);let p=(0,i.z)(s,u)===-c;l(a)&&1===h&&1===(0,i.z)(a,u)&&(p=!1);const d=c*(h-+p);return 0===d?0:d}},91349(e,t,r){"use strict";r.d(t,{O:()=>o});var n=r(14936),i=r(92488);function o(e,t,r){const o=(0,i.b)(e,t)/1e3;return(0,n.u)(r?.roundingMethod)(o)}},26382(e,t,r){"use strict";r.d(t,{V:()=>a});var n=r(5305),i=r(96054),o=r(32688);function a(e,t,r){const[a,s]=(0,n.x)(r?.in,e,t),u=(0,i.z)(a,s),l=Math.abs((0,o.n)(a,s));a.setFullYear(1584),s.setFullYear(1584);const c=u*(l-+((0,i.z)(a,s)===-u));return 0===c?0:c}},7685(e,t,r){"use strict";r.d(t,{k:()=>o});var n=r(59007),i=r(43329);function o(e,t){const{start:r,end:o}=(0,n.P)(t?.in,e);let a=+r>+o;const s=a?+r:+o,u=a?o:r;u.setHours(0,0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const c=[];for(;+u<=s;)c.push((0,i.w)(r,u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return a?c.reverse():c}},12268(e,t,r){"use strict";r.d(t,{D:()=>i});var n=r(29407);function i(e,t){const r=(0,n.a)(e,t?.in);return r.setHours(23,59,59,999),r}},11580(e,t,r){"use strict";r.d(t,{p:()=>i});var n=r(29407);function i(e,t){const r=(0,n.a)(e,t?.in),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r}},54352(e,t,r){"use strict";r.d(t,{$:()=>o});var n=r(92516),i=r(29407);function o(e,t){const r=(0,n.q)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,i.a)(e,t?.in),s=a.getDay(),u=6+(s<o?-7:0)-(s-o);return a.setDate(a.getDate()+u),a.setHours(23,59,59,999),a}},64169(e,t,r){"use strict";r.d(t,{Q:()=>i});var n=r(29407);function i(e,t){const r=(0,n.a)(e,t?.in),i=r.getFullYear();return r.setFullYear(i+1,0,0),r.setHours(23,59,59,999),r}},16798(e,t,r){"use strict";r.d(t,{B:()=>o});var n=r(52365),i=r(84287);function o(e,t){return(0,i.k)(e,(0,n.A)(e),t)}},55378(e,t,r){"use strict";r.d(t,{F:()=>h});var n=r(59007),i=r(42539),o=r(18373),a=r(98163),s=r(49785),u=r(10911),l=r(91349),c=r(26382);function h(e,t){const{start:r,end:h}=(0,n.P)(t?.in,e),p={},d=(0,c.V)(h,r);d&&(p.years=d);const f=(0,i.W)(r,{years:p.years}),m=(0,u.W)(h,f);m&&(p.months=m);const g=(0,i.W)(f,{months:p.months}),v=(0,o.c)(h,g);v&&(p.days=v);const y=(0,i.W)(g,{days:p.days}),b=(0,a.M)(h,y);b&&(p.hours=b);const D=(0,i.W)(y,{hours:p.hours}),w=(0,s.o)(h,D);w&&(p.minutes=w);const k=(0,i.W)(D,{minutes:p.minutes}),_=(0,l.O)(h,k);return _&&(p.seconds=_),p}},48497(e,t,r){"use strict";r.d(t,{Y:()=>i});var n=r(29407);function i(e,t){return+(0,n.a)(e)<+(0,n.a)(t)}},45710(e,t,r){"use strict";r.d(t,{R:()=>i});var n=r(29407);function i(e){return+(0,n.a)(e)<Date.now()}},88652(e,t,r){"use strict";r.d(t,{r:()=>o});var n=r(5305),i=r(6463);function o(e,t,r){const[o,a]=(0,n.x)(r?.in,e,t);return+(0,i.o)(o)===+(0,i.o)(a)}},91868(e,t,r){"use strict";r.d(t,{t:()=>i});var n=r(5305);function i(e,t,r){const[i,o]=(0,n.x)(r?.in,e,t);return i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth()}},73604(e,t,r){"use strict";r.d(t,{v:()=>i});var n=r(29407);function i(e,t,r){const i=+(0,n.a)(e,r?.in),[o,a]=[+(0,n.a)(t.start,r?.in),+(0,n.a)(t.end,r?.in)].sort(((e,t)=>e-t));return i>=o&&i<=a}},41394(e,t,r){"use strict";r.d(t,{H:()=>a});var n=r(61501),i=r(43329),o=r(29407);function a(e,t){const r=()=>(0,i.w)(t?.in,NaN),a=t?.additionalDigits??2,m=function(e){const t={},r=e.split(s.dateTimeDelimiter);let n;if(r.length>2)return t;/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],s.timeZoneDelimiter.test(t.date)&&(t.date=e.split(s.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length)));if(n){const e=s.timezone.exec(n);e?(t.time=n.replace(e[1],""),t.timezone=e[1]):t.time=n}return t}(e);let g;if(m.date){const e=function(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((n[1]||n[2]).length)}}(m.date,a);g=function(e,t){if(null===t)return new Date(NaN);const r=e.match(u);if(!r)return new Date(NaN);const n=!!r[4],i=h(r[1]),o=h(r[2])-1,a=h(r[3]),s=h(r[4]),l=h(r[5])-1;if(n)return function(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}(0,s,l)?function(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,o=7*(t-1)+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}(t,s,l):new Date(NaN);{const e=new Date(0);return function(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(d[t]||(f(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(f(e)?366:365)}(t,i)?(e.setUTCFullYear(t,o,Math.max(i,a)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!g||isNaN(+g))return r();const v=+g;let y,b=0;if(m.time&&(b=function(e){const t=e.match(l);if(!t)return NaN;const r=p(t[1]),i=p(t[2]),o=p(t[3]);if(!function(e,t,r){if(24===e)return 0===t&&0===r;return r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}(r,i,o))return NaN;return r*n.s0+i*n.Cg+1e3*o}(m.time),isNaN(b)))return r();if(!m.timezone){const e=new Date(v+b),r=(0,o.a)(0,t?.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return y=function(e){if("Z"===e)return 0;const t=e.match(c);if(!t)return 0;const r="+"===t[1]?-1:1,i=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,o))return NaN;return r*(i*n.s0+o*n.Cg)}(m.timezone),isNaN(y)?r():(0,o.a)(v+b+y,t?.in)}const s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},u=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,l=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function h(e){return e?parseInt(e):1}function p(e){return e&&parseFloat(e.replace(",","."))||0}const d=[31,null,31,30,31,30,31,31,30,31,30,31];function f(e){return e%400===0||e%4===0&&e%100!==0}},99574(e,t,r){"use strict";r.d(t,{c:()=>i});var n=r(29407);function i(e,t){const r=(0,n.a)(e,t?.in);return r.setSeconds(0,0),r}},27763(e,t,r){"use strict";r.d(t,{w:()=>i});var n=r(29407);function i(e,t){const r=(0,n.a)(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}},4501(e,t,r){"use strict";r.d(t,{a:()=>i});var n=r(29407);function i(e,t){const r=(0,n.a)(e,t?.in),i=r.getMonth(),o=i-i%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}},80696(e,t,r){"use strict";r.d(t,{R:()=>i});var n=r(6463);function i(e){return(0,n.o)(Date.now(),e)}},9618(e,t,r){"use strict";r.d(t,{R:()=>o});var n=r(43329),i=r(52365);function o(e){const t=(0,i.A)(e?.in),r=t.getFullYear(),o=t.getMonth(),a=t.getDate(),s=(0,n.w)(e?.in,0);return s.setFullYear(r,o,a+1),s.setHours(0,0,0,0),s}},69821(e,t,r){"use strict";r.d(t,{e:()=>i});var n=r(16172);function i(e,t,r){return(0,n.f)(e,-t,r)}},60125(e,t,r){"use strict";r.d(t,{a:()=>i});var n=r(66304);function i(e,t,r){return(0,n.P)(e,-t,r)}},90631(e,t,r){"use strict";r.d(t,{A:()=>n});const n=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g},25708(e,t,r){"use strict";function n(e,t,r,n,i){n=n||{};var o=i.internal.scaleFactor,a=i.internal.getFontSize()/o,s=a*(i.getLineHeightFactor?i.getLineHeightFactor():1.15),u="",l=1;if("middle"!==n.valign&&"bottom"!==n.valign&&"center"!==n.halign&&"right"!==n.halign||(l=(u="string"===typeof e?e.split(/\r\n|\r|\n/g):e).length||1),r+=a*(2-1.15),"middle"===n.valign?r-=l/2*s:"bottom"===n.valign&&(r-=l*s),"center"===n.halign||"right"===n.halign){var c=a;if("center"===n.halign&&(c*=.5),u&&l>=1){for(var h=0;h<u.length;h++)i.text(u[h],t-i.getStringUnitWidth(u[h])*c,r),r+=s;return i}t-=i.getStringUnitWidth(e)*c}return"justify"===n.halign?i.text(e,t,r,{maxWidth:n.maxWidth||100,align:"justify"}):i.text(e,t,r),i}r.d(t,{cs:()=>G});var i={},o=function(){function e(e){this.jsPDFDocument=e,this.userStyles={textColor:e.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:e.internal.getFontSize(),fontStyle:e.internal.getFont().fontStyle,font:e.internal.getFont().fontName,lineWidth:e.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:e.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(e,t){void 0===t&&(t=null),t?t.__autoTableDocumentDefaults=e:i=e},e.unifyColor=function(e){return Array.isArray(e)?e:"number"===typeof e?[e,e,e]:"string"===typeof e?[e]:null},e.prototype.applyStyles=function(t,r){var n,i,o;void 0===r&&(r=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var a=this.jsPDFDocument.internal.getFont(),s=a.fontStyle,u=a.fontName;if(t.font&&(u=t.font),t.fontStyle){s=t.fontStyle;var l=this.getFontList()[u];l&&-1===l.indexOf(s)&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(l[0]),s=l[0])}if(this.jsPDFDocument.setFont(u,s),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!r){var c=e.unifyColor(t.fillColor);c&&(n=this.jsPDFDocument).setFillColor.apply(n,c),(c=e.unifyColor(t.textColor))&&(i=this.jsPDFDocument).setTextColor.apply(i,c),(c=e.unifyColor(t.lineColor))&&(o=this.jsPDFDocument).setDrawColor.apply(o,c),"number"===typeof t.lineWidth&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(e,t,r){return this.jsPDFDocument.splitTextToSize(e,t,r)},e.prototype.rect=function(e,t,r,n,i){return this.jsPDFDocument.rect(e,t,r,n,i)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(e){return this.jsPDFDocument.getTextWidth(e)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(e){this.jsPDFDocument.setPage(e)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},e.prototype.getGlobalOptions=function(){return i||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var e=this.jsPDFDocument.internal.pageSize;return null==e.width&&(e={width:e.getWidth(),height:e.getHeight()}),e},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var e=this.jsPDFDocument;return e.getLineHeightFactor?e.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(e){return e/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var e=this.jsPDFDocument.internal.getCurrentPageInfo();return e?e.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e}(),a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function s(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}"function"===typeof SuppressedError&&SuppressedError;var u=function(e){function t(t){var r=e.call(this)||this;return r._element=t,r}return s(t,e),t}(Array);function l(e,t,r){return r.applyStyles(t,!0),(Array.isArray(e)?e:[e]).map((function(e){return r.getTextWidth(e)})).reduce((function(e,t){return Math.max(e,t)}),0)}function c(e,t,r,n){var i=t.settings.tableLineWidth,o=t.settings.tableLineColor;e.applyStyles({lineWidth:i,lineColor:o});var a=h(i,!1);a&&e.rect(r.x,r.y,t.getWidth(e.pageSize().width),n.y-r.y,a)}function h(e,t){var r=e>0,n=t||0===t;return r&&n?"DF":r?"S":n?"F":null}function p(e,t){var r,n,i,o;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(3===e.length)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(2===e.length)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e=1===e.length?e[0]:t}return"object"===typeof e?("number"===typeof e.vertical&&(e.top=e.vertical,e.bottom=e.vertical),"number"===typeof e.horizontal&&(e.right=e.horizontal,e.left=e.horizontal),{left:null!==(r=e.left)&&void 0!==r?r:t,top:null!==(n=e.top)&&void 0!==n?n:t,right:null!==(i=e.right)&&void 0!==i?i:t,bottom:null!==(o=e.bottom)&&void 0!==o?o:t}):("number"!==typeof e&&(e=t),{top:e,right:e,bottom:e,left:e})}function d(e,t){var r=p(t.settings.margin,0);return e.pageSize().width-(r.left+r.right)}function f(e,t,r,n,i){var o={},a=96/72,s=m(t,(function(e){return i.getComputedStyle(e).backgroundColor}));null!=s&&(o.fillColor=s);var u=m(t,(function(e){return i.getComputedStyle(e).color}));null!=u&&(o.textColor=u);var l=function(e,t){var r=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],n=96/(72/t),i=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,o=r.map((function(e){return parseInt(e||"0")/n})),a=p(o,0);i>a.top&&(a.top=i);i>a.bottom&&(a.bottom=i);return a}(n,r);l&&(o.cellPadding=l);var c="borderTopColor",h=a*r,d=n.borderTopWidth;if(n.borderBottomWidth===d&&n.borderRightWidth===d&&n.borderLeftWidth===d){var f=(parseFloat(d)||0)/h;f&&(o.lineWidth=f)}else o.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/h,right:(parseFloat(n.borderRightWidth)||0)/h,bottom:(parseFloat(n.borderBottomWidth)||0)/h,left:(parseFloat(n.borderLeftWidth)||0)/h},o.lineWidth.top||(o.lineWidth.right?c="borderRightColor":o.lineWidth.bottom?c="borderBottomColor":o.lineWidth.left&&(c="borderLeftColor"));var g=m(t,(function(e){return i.getComputedStyle(e)[c]}));null!=g&&(o.lineColor=g);var v=["left","right","center","justify"];-1!==v.indexOf(n.textAlign)&&(o.halign=n.textAlign),-1!==(v=["middle","bottom","top"]).indexOf(n.verticalAlign)&&(o.valign=n.verticalAlign);var y=parseInt(n.fontSize||"");isNaN(y)||(o.fontSize=y/a);var b=function(e){var t="";("bold"===e.fontWeight||"bolder"===e.fontWeight||parseInt(e.fontWeight)>=700)&&(t="bold");"italic"!==e.fontStyle&&"oblique"!==e.fontStyle||(t+="italic");return t}(n);b&&(o.fontStyle=b);var D=(n.fontFamily||"").toLowerCase();return-1!==e.indexOf(D)&&(o.font=D),o}function m(e,t){var r=g(e,t);if(!r)return null;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!n||!Array.isArray(n))return null;var i=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])];return 0===parseInt(n[4])||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function g(e,t){var r=t(e);return"rgba(0, 0, 0, 0)"===r||"transparent"===r||"initial"===r||"inherit"===r?null==e.parentElement?null:g(e.parentElement,t):r}function v(e,t,r,n,i){var o,a,s;void 0===n&&(n=!1),void 0===i&&(i=!1),s="string"===typeof t?r.document.querySelector(t):t;var u=Object.keys(e.getFontList()),l=e.scaleFactor(),c=[],h=[],p=[];if(!s)return console.error("Html table could not be found with input: ",t),{head:c,body:h,foot:p};for(var d=0;d<s.rows.length;d++){var f=s.rows[d],m=null===(a=null===(o=null===f||void 0===f?void 0:f.parentElement)||void 0===o?void 0:o.tagName)||void 0===a?void 0:a.toLowerCase(),g=y(u,l,r,f,n,i);g&&("thead"===m?c.push(g):"tfoot"===m?p.push(g):h.push(g))}return{head:c,body:h,foot:p}}function y(e,t,r,n,i,o){for(var a=new u(n),s=0;s<n.cells.length;s++){var l=n.cells[s],c=r.getComputedStyle(l);if(i||"none"!==c.display){var h=void 0;o&&(h=f(e,l,t,c,r)),a.push({rowSpan:l.rowSpan,colSpan:l.colSpan,styles:h,_element:l,content:b(l)})}}var p=r.getComputedStyle(n);if(a.length>0&&(i||"none"!==p.display))return a}function b(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map((function(e){return e.trim()})).join("\n"),t.innerText||t.textContent||""}function D(e,t,r,n,i){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),a=1;a<arguments.length;a++){var s=arguments[a];if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(o[u]=s[u])}return o}function w(e,t){var r=new o(e),n=r.getDocumentOptions(),i=r.getGlobalOptions();!function(e,t,r){for(var n=0,i=[e,t,r];n<i.length;n++){var o=i[n];o&&"object"!==typeof o&&console.error("The options parameter should be of type object, is: "+typeof o),o.startY&&"number"!==typeof o.startY&&(console.error("Invalid value for startY option",o.startY),delete o.startY)}}(i,n,t);var a,s=D({},i,n,t);"undefined"!==typeof window&&(a=window);var u=function(e,t,r){for(var n={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},i=function(i){if("columnStyles"===i){var o=e[i],a=t[i],s=r[i];n.columnStyles=D({},o,a,s)}else{var u=[e,t,r].map((function(e){return e[i]||{}}));n[i]=D({},u[0],u[1],u[2])}},o=0,a=Object.keys(n);o<a.length;o++){i(a[o])}return n}(i,n,t),l=function(e,t,r){for(var n={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,o=[e,t,r];i<o.length;i++){var a=o[i];a.didParseCell&&n.didParseCell.push(a.didParseCell),a.willDrawCell&&n.willDrawCell.push(a.willDrawCell),a.didDrawCell&&n.didDrawCell.push(a.didDrawCell),a.willDrawPage&&n.willDrawPage.push(a.willDrawPage),a.didDrawPage&&n.didDrawPage.push(a.didDrawPage)}return n}(i,n,t),c=function(e,t){var r,n,i,o,a,s,u,l,c,h,d,f,m,g,v=p(t.margin,40/e.scaleFactor()),y=null!==(r=function(e,t){var r=e.getLastAutoTable(),n=e.scaleFactor(),i=e.pageNumber(),o=!1;if(r&&r.startPageNumber){o=r.startPageNumber+r.pageNumber-1===i}if("number"===typeof t)return t;if((null==t||!1===t)&&o&&null!=(null===r||void 0===r?void 0:r.finalY))return r.finalY+20/n;return null}(e,t.startY))&&void 0!==r?r:v.top;m=!0===t.showFoot?"everyPage":!1===t.showFoot?"never":null!==(n=t.showFoot)&&void 0!==n?n:"everyPage";g=!0===t.showHead?"everyPage":!1===t.showHead?"never":null!==(i=t.showHead)&&void 0!==i?i:"everyPage";var b=null!==(o=t.useCss)&&void 0!==o&&o,D=t.theme||(b?"plain":"striped"),w=!!t.horizontalPageBreak,k=null!==(a=t.horizontalPageBreakRepeat)&&void 0!==a?a:null;return{includeHiddenHtml:null!==(s=t.includeHiddenHtml)&&void 0!==s&&s,useCss:b,theme:D,startY:y,margin:v,pageBreak:null!==(u=t.pageBreak)&&void 0!==u?u:"auto",rowPageBreak:null!==(l=t.rowPageBreak)&&void 0!==l?l:"auto",tableWidth:null!==(c=t.tableWidth)&&void 0!==c?c:"auto",showHead:g,showFoot:m,tableLineWidth:null!==(h=t.tableLineWidth)&&void 0!==h?h:0,tableLineColor:null!==(d=t.tableLineColor)&&void 0!==d?d:200,horizontalPageBreak:w,horizontalPageBreakRepeat:k,horizontalPageBreakBehaviour:null!==(f=t.horizontalPageBreakBehaviour)&&void 0!==f?f:"afterAllRows"}}(r,s),h=function(e,t,r){var n=t.head||[],i=t.body||[],o=t.foot||[];if(t.html){var a=t.includeHiddenHtml;if(r){var s=v(e,t.html,r,a,t.useCss)||{};n=s.head||n,i=s.body||n,o=s.foot||n}else console.error("Cannot parse html in non browser environment")}var u=t.columns||function(e,t,r){var n=e[0]||t[0]||r[0]||[],i=[];return Object.keys(n).filter((function(e){return"_element"!==e})).forEach((function(e){var t,r=1;"object"!==typeof(t=Array.isArray(n)?n[parseInt(e)]:n[e])||Array.isArray(t)||(r=(null===t||void 0===t?void 0:t.colSpan)||1);for(var o=0;o<r;o++){var a={dataKey:Array.isArray(n)?i.length:e+(o>0?"_".concat(o):"")};i.push(a)}})),i}(n,i,o);return{columns:u,head:n,body:i,foot:o}}(r,s,a);return{id:t.tableId,content:h,hooks:l,styles:u,settings:c}}var k,_=function(e,t,r){this.table=t,this.pageNumber=t.pageNumber,this.settings=t.settings,this.cursor=r,this.doc=e.getDocument()},x=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,a)||this;return s.cell=n,s.row=i,s.column=o,s.section=i.section,s}return s(t,e),t}(_),F=function(){function e(e,t){this.pageNumber=1,this.id=e.id,this.settings=e.settings,this.styles=e.styles,this.hooks=e.hooks,this.columns=t.columns,this.head=t.head,this.body=t.body,this.foot=t.foot}return e.prototype.getHeadHeight=function(e){return this.head.reduce((function(t,r){return t+r.getMaxCellHeight(e)}),0)},e.prototype.getFootHeight=function(e){return this.foot.reduce((function(t,r){return t+r.getMaxCellHeight(e)}),0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(e,t,r,n,i,o){for(var a=0,s=t;a<s.length;a++){var u=!1===(0,s[a])(new x(e,this,r,n,i,o));if(r.text=Array.isArray(r.text)?r.text:[r.text],u)return!1}return!0},e.prototype.callEndPageHooks=function(e,t){e.applyStyles(e.userStyles);for(var r=0,n=this.hooks.didDrawPage;r<n.length;r++){(0,n[r])(new _(e,this,t))}},e.prototype.callWillDrawPageHooks=function(e,t){for(var r=0,n=this.hooks.willDrawPage;r<n.length;r++){(0,n[r])(new _(e,this,t))}},e.prototype.getWidth=function(e){if("number"===typeof this.settings.tableWidth)return this.settings.tableWidth;if("wrap"===this.settings.tableWidth)return this.columns.reduce((function(e,t){return e+t.wrappedWidth}),0);var t=this.settings.margin;return e-t.left-t.right},e}(),C=function(){function e(e,t,r,n,i){void 0===i&&(i=!1),this.height=0,this.raw=e,e instanceof u&&(this.raw=e._element,this.element=e._element),this.index=t,this.section=r,this.cells=n,this.spansMultiplePages=i}return e.prototype.getMaxCellHeight=function(e){var t=this;return e.reduce((function(e,r){var n;return Math.max(e,(null===(n=t.cells[r.index])||void 0===n?void 0:n.height)||0)}),0)},e.prototype.hasRowSpan=function(e){var t=this;return e.filter((function(e){var r=t.cells[e.index];return!!r&&r.rowSpan>1})).length>0},e.prototype.canEntireRowFit=function(e,t){return this.getMaxCellHeight(t)<=e},e.prototype.getMinimumRowHeight=function(e,t){var r=this;return e.reduce((function(e,n){var i=r.cells[n.index];if(!i)return 0;var o=t.getLineHeight(i.styles.fontSize),a=i.padding("vertical")+o;return a>e?a:e}),0)},e}(),S=function(){function e(e,t,r){var n;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=t,this.section=r,this.raw=e;var i=e;null==e||"object"!==typeof e||Array.isArray(e)?(this.rowSpan=1,this.colSpan=1):(this.rowSpan=e.rowSpan||1,this.colSpan=e.colSpan||1,i=null!==(n=e.content)&&void 0!==n?n:e,e._element&&(this.raw=e._element));var o=null!=i?""+i:"";this.text=o.split(/\r\n|\r|\n/g)}return e.prototype.getTextPos=function(){var e,t;if("top"===this.styles.valign)e=this.y+this.padding("top");else if("bottom"===this.styles.valign)e=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");e=this.y+r/2+this.padding("top")}if("right"===this.styles.halign)t=this.x+this.width-this.padding("right");else if("center"===this.styles.halign){var n=this.width-this.padding("horizontal");t=this.x+n/2+this.padding("left")}else t=this.x+this.padding("left");return{x:t,y:e}},e.prototype.getContentHeight=function(e,t){void 0===t&&(t=1.15);var r=(Array.isArray(this.text)?this.text.length:1)*(this.styles.fontSize/e*t)+this.padding("vertical");return Math.max(r,this.styles.minCellHeight)},e.prototype.padding=function(e){var t=p(this.styles.cellPadding,0);return"vertical"===e?t.top+t.bottom:"horizontal"===e?t.left+t.right:t[e]},e}(),A=function(){function e(e,t,r){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=e,this.raw=t,this.index=r}return e.prototype.getMaxCustomCellWidth=function(e){for(var t=0,r=0,n=e.allRows();r<n.length;r++){var i=n[r].cells[this.index];i&&"number"===typeof i.styles.cellWidth&&(t=Math.max(t,i.styles.cellWidth))}return t},e}();function E(e,t){!function(e,t){var r=e.scaleFactor(),n=t.settings.horizontalPageBreak,i=d(e,t);t.allRows().forEach((function(o){for(var a=0,s=t.columns;a<s.length;a++){var u=s[a],c=o.cells[u.index];if(c){var h=t.hooks.didParseCell;t.callCellHooks(e,h,c,o,u,null);var p=c.padding("horizontal");c.contentWidth=l(c.text,c.styles,e)+p;var d=l(c.text.join(" ").split(/[^\S\u00A0]+/),c.styles,e);if(c.minReadableWidth=d+c.padding("horizontal"),"number"===typeof c.styles.cellWidth)c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if("wrap"===c.styles.cellWidth||!0===n)c.contentWidth>i?(c.minWidth=i,c.wrappedWidth=i):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var f=10/r;c.minWidth=c.styles.minCellWidth||f,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}})),t.allRows().forEach((function(e){for(var r=0,n=t.columns;r<n.length;r++){var i=n[r],o=e.cells[i.index];if(o&&1===o.colSpan)i.wrappedWidth=Math.max(i.wrappedWidth,o.wrappedWidth),i.minWidth=Math.max(i.minWidth,o.minWidth),i.minReadableWidth=Math.max(i.minReadableWidth,o.minReadableWidth);else{var a=t.styles.columnStyles[i.dataKey]||t.styles.columnStyles[i.index]||{},s=a.cellWidth||a.minCellWidth;s&&"number"===typeof s&&(i.minWidth=s,i.wrappedWidth=s)}o&&(o.colSpan>1&&!i.minWidth&&(i.minWidth=o.minWidth),o.colSpan>1&&!i.wrappedWidth&&(i.wrappedWidth=o.minWidth))}}))}(e,t);var r=[],n=0;t.columns.forEach((function(e){var i=e.getMaxCustomCellWidth(t);i?e.width=i:(e.width=e.wrappedWidth,r.push(e)),n+=e.width}));var i=t.getWidth(e.pageSize().width)-n;i&&(i=N(r,i,(function(e){return Math.max(e.minReadableWidth,e.minWidth)}))),i&&(i=N(r,i,(function(e){return e.minWidth}))),i=Math.abs(i),!t.settings.horizontalPageBreak&&i>.1/e.scaleFactor()&&(i=i<1?i:Math.round(i),console.log("Of the table content, ".concat(i," units width could not fit page"))),function(e){for(var t=e.allRows(),r=0;r<t.length;r++)for(var n=t[r],i=null,o=0,a=0,s=0;s<e.columns.length;s++){var u=e.columns[s];if((a-=1)>1&&e.columns[s+1])o+=u.width,delete n.cells[u.index];else if(i){var l=i;delete n.cells[u.index],i=null,l.width=u.width+o}else{if(!(l=n.cells[u.index]))continue;if(a=l.colSpan,o=0,l.colSpan>1){i=l,o+=u.width;continue}l.width=u.width+o}}}(t),function(e,t){for(var r={count:0,height:0},n=0,i=e.allRows();n<i.length;n++){for(var o=i[n],a=0,s=e.columns;a<s.length;a++){var u=s[a],l=o.cells[u.index];if(l){t.applyStyles(l.styles,!0);var c=l.width-l.padding("horizontal");if("linebreak"===l.styles.overflow)l.text=t.splitTextToSize(l.text,c+1/t.scaleFactor(),{fontSize:l.styles.fontSize});else if("ellipsize"===l.styles.overflow)l.text=L(l.text,c,l.styles,t,"...");else if("hidden"===l.styles.overflow)l.text=L(l.text,c,l.styles,t,"");else if("function"===typeof l.styles.overflow){var h=l.styles.overflow(l.text,c);l.text="string"===typeof h?[h]:h}l.contentHeight=l.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var p=l.contentHeight/l.rowSpan;l.rowSpan>1&&r.count*r.height<p*l.rowSpan?r={height:p,count:l.rowSpan}:r&&r.count>0&&r.height>p&&(p=r.height),p>o.height&&(o.height=p)}}r.count--}}(t,e),function(e){for(var t={},r=1,n=e.allRows(),i=0;i<n.length;i++)for(var o=n[i],a=0,s=e.columns;a<s.length;a++){var u=s[a],l=t[u.index];if(r>1)r--,delete o.cells[u.index];else if(l)l.cell.height+=o.height,r=l.cell.colSpan,delete o.cells[u.index],l.left--,l.left<=1&&delete t[u.index];else{var c=o.cells[u.index];if(!c)continue;if(c.height=o.height,c.rowSpan>1){var h=n.length-i,p=c.rowSpan>h?h:c.rowSpan;t[u.index]={cell:c,left:p,row:o}}}}}(t)}function N(e,t,r){for(var n=t,i=e.reduce((function(e,t){return e+t.wrappedWidth}),0),o=0;o<e.length;o++){var a=e[o],s=n*(a.wrappedWidth/i),u=a.width+s,l=r(a),c=u<l?l:u;t-=c-a.width,a.width=c}if(t=Math.round(1e10*t)/1e10){var h=e.filter((function(e){return!(t<0)||e.width>r(e)}));h.length&&(t=N(h,t,r))}return t}function L(e,t,r,n,i){return e.map((function(e){return function(e,t,r,n,i){var o=1e4*n.scaleFactor();if(t=Math.ceil(t*o)/o,t>=l(e,r,n))return e;for(;t<l(e+i,r,n)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+i}(e,t,r,n,i)}))}function P(e,t){var r=new o(e),n=function(e,t){var r=e.content,n=function(e){return e.map((function(e,t){var r,n;return n="object"===typeof e&&null!==(r=e.dataKey)&&void 0!==r?r:t,new A(n,e,t)}))}(r.columns);if(0===r.head.length){(i=I(n,"head"))&&r.head.push(i)}if(0===r.foot.length){var i;(i=I(n,"foot"))&&r.foot.push(i)}var o=e.settings.theme,a=e.styles;return{columns:n,head:M("head",r.head,n,a,o,t),body:M("body",r.body,n,a,o,t),foot:M("foot",r.foot,n,a,o,t)}}(t,r.scaleFactor()),i=new F(t,n);return E(r,i),r.applyStyles(r.userStyles),i}function M(e,t,r,n,i,o){var a={};return t.map((function(t,s){for(var u=0,l={},c=0,h=0,p=0,d=r;p<d.length;p++){var f=d[p];if(null==a[f.index]||0===a[f.index].left)if(0===h){var m=void 0,g={};"object"!==typeof(m=Array.isArray(t)?t[f.index-c-u]:t[f.dataKey])||Array.isArray(m)||(g=(null===m||void 0===m?void 0:m.styles)||{});var v=T(e,f,s,i,n,o,g),y=new S(m,v,e);l[f.dataKey]=y,l[f.index]=y,h=y.colSpan-1,a[f.index]={left:y.rowSpan-1,times:h}}else h--,c++;else a[f.index].left--,h=a[f.index].times,u++}return new C(t,s,e,l)}))}function I(e,t){var r={};return e.forEach((function(e){if(null!=e.raw){var n=function(e,t){if("head"===e){if("object"===typeof t)return t.header||null;if("string"===typeof t||"number"===typeof t)return t}else if("foot"===e&&"object"===typeof t)return t.footer;return null}(t,e.raw);null!=n&&(r[e.dataKey]=n)}})),Object.keys(r).length>0?r:null}function T(e,t,r,n,i,o,a){var s,u={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}}[n];"head"===e?s=i.headStyles:"body"===e?s=i.bodyStyles:"foot"===e&&(s=i.footStyles);var l=D({},u.table,u[e],i.styles,s),c=i.columnStyles[t.dataKey]||i.columnStyles[t.index]||{},h="body"===e?c:{},p="body"===e&&r%2===0?D({},u.alternateRow,i.alternateRowStyles):{},d=function(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}(o),f=D({},d,l,p,h);return D(f,a)}function O(e,t,r){var n;void 0===r&&(r={});var i=d(e,t),o=new Map,a=[],s=[],u=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?u=t.settings.horizontalPageBreakRepeat:"string"!==typeof t.settings.horizontalPageBreakRepeat&&"number"!==typeof t.settings.horizontalPageBreakRepeat||(u=[t.settings.horizontalPageBreakRepeat]),u.forEach((function(e){var r=t.columns.find((function(t){return t.dataKey===e||t.index===e}));r&&!o.has(r.index)&&(o.set(r.index,!0),a.push(r.index),s.push(t.columns[r.index]),i-=r.wrappedWidth)}));for(var l=!0,c=null!==(n=null===r||void 0===r?void 0:r.start)&&void 0!==n?n:0;c<t.columns.length;)if(o.has(c))c++;else{var h=t.columns[c].wrappedWidth;if(!(l||i>=h))break;l=!1,a.push(c),s.push(t.columns[c]),i-=h,c++}return{colIndexes:a,columns:s,lastIndex:c-1}}function B(e,t){var r=t.settings,n=r.startY,i=r.margin,a={x:i.left,y:n},s=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),u=n+i.bottom+s;"avoid"===r.pageBreak&&(u+=t.body.reduce((function(e,t){return e+t.height}),0));var l=new o(e);("always"===r.pageBreak||null!=r.startY&&u>l.pageSize().height)&&($(l),a.y=i.top),t.callWillDrawPageHooks(l,a);var h=D({},a);t.startPageNumber=l.pageNumber(),r.horizontalPageBreak?function(e,t,r,n){var i=function(e,t){for(var r=[],n=0;n<t.columns.length;n++){var i=O(e,t,{start:n});i.columns.length&&(r.push(i),n=i.lastIndex)}return r}(e,t),o=t.settings;if("afterAllRows"===o.horizontalPageBreakBehaviour)i.forEach((function(i,o){e.applyStyles(e.userStyles),o>0?V(e,t,r,n,i.columns,!0):j(e,t,n,i.columns),function(e,t,r,n,i){e.applyStyles(e.userStyles),t.body.forEach((function(o,a){var s=a===t.body.length-1;U(e,t,o,s,r,n,i)}))}(e,t,r,n,i.columns),q(e,t,n,i.columns)}));else for(var a=-1,s=i[0],u=function(){var o=a;if(s){e.applyStyles(e.userStyles);var u=s.columns;a>=0?V(e,t,r,n,u,!0):j(e,t,n,u),o=R(e,t,a+1,n,u),q(e,t,n,u)}var l=o-a;i.slice(1).forEach((function(i){e.applyStyles(e.userStyles),V(e,t,r,n,i.columns,!0),R(e,t,a+1,n,i.columns,l),q(e,t,n,i.columns)})),a=o};a<t.body.length-1;)u()}(l,t,h,a):(l.applyStyles(l.userStyles),"firstPage"!==r.showHead&&"everyPage"!==r.showHead||t.head.forEach((function(e){return H(l,t,e,a,t.columns)})),l.applyStyles(l.userStyles),t.body.forEach((function(e,r){var n=r===t.body.length-1;U(l,t,e,n,h,a,t.columns)})),l.applyStyles(l.userStyles),"lastPage"!==r.showFoot&&"everyPage"!==r.showFoot||t.foot.forEach((function(e){return H(l,t,e,a,t.columns)}))),c(l,t,h,a),t.callEndPageHooks(l,a),t.finalY=a.y,e.lastAutoTable=t,l.applyStyles(l.userStyles)}function j(e,t,r,n){var i=t.settings;e.applyStyles(e.userStyles),"firstPage"!==i.showHead&&"everyPage"!==i.showHead||t.head.forEach((function(i){return H(e,t,i,r,n)}))}function R(e,t,r,n,i,o){e.applyStyles(e.userStyles),o=null!==o&&void 0!==o?o:t.body.length;var a=Math.min(r+o,t.body.length),s=-1;return t.body.slice(r,a).forEach((function(o,a){var u=r+a===t.body.length-1,l=Y(e,t,u,n);o.canEntireRowFit(l,i)&&(H(e,t,o,n,i),s=r+a)})),s}function q(e,t,r,n){var i=t.settings;e.applyStyles(e.userStyles),"lastPage"!==i.showFoot&&"everyPage"!==i.showFoot||t.foot.forEach((function(i){return H(e,t,i,r,n)}))}function z(e,t,r){var n=r.getLineHeight(e.styles.fontSize),i=e.padding("vertical"),o=Math.floor((t-i)/n);return Math.max(0,o)}function U(e,t,r,n,i,o,a){var s=Y(e,t,n,o);if(r.canEntireRowFit(s,a))H(e,t,r,o,a);else if(function(e,t,r,n){var i=e.pageSize().height,o=n.settings.margin,a=i-(o.top+o.bottom);"body"===t.section&&(a-=n.getHeadHeight(n.columns)+n.getFootHeight(n.columns));var s=t.getMinimumRowHeight(n.columns,e),u=s<r;if(s>a)return console.log("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!u)return!1;var l=t.hasRowSpan(n.columns);return t.getMaxCellHeight(n.columns)>a?(l&&console.log("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!l&&"avoid"!==n.settings.rowPageBreak}(e,r,s,t)){var u=function(e,t,r,n){var i={};e.spansMultiplePages=!0,e.height=0;for(var o=0,a=0,s=r.columns;a<s.length;a++){var u=s[a];if(g=e.cells[u.index]){Array.isArray(g.text)||(g.text=[g.text]),(m=D(m=new S(g.raw,g.styles,g.section),g)).text=[];var l=z(g,t,n);g.text.length>l&&(m.text=g.text.splice(l,g.text.length));var c=n.scaleFactor(),h=n.getLineHeightFactor();g.contentHeight=g.getContentHeight(c,h),g.contentHeight>=t&&(g.contentHeight=t,m.styles.minCellHeight-=t),g.contentHeight>e.height&&(e.height=g.contentHeight),m.contentHeight=m.getContentHeight(c,h),m.contentHeight>o&&(o=m.contentHeight),i[u.index]=m}}var p=new C(e.raw,-1,e.section,i,!0);p.height=o;for(var d=0,f=r.columns;d<f.length;d++){var m,g;u=f[d],(m=p.cells[u.index])&&(m.height=p.height),(g=e.cells[u.index])&&(g.height=e.height)}return p}(r,s,t,e);H(e,t,r,o,a),V(e,t,i,o,a),U(e,t,u,n,i,o,a)}else V(e,t,i,o,a),U(e,t,r,n,i,o,a)}function H(e,t,r,i,o){i.x=t.settings.margin.left;for(var a=0,s=o;a<s.length;a++){var u=s[a],l=r.cells[u.index];if(l)if(e.applyStyles(l.styles),l.x=i.x,l.y=i.y,!1!==t.callCellHooks(e,t.hooks.willDrawCell,l,r,u,i)){W(e,l,i);var c=l.getTextPos();n(l.text,c.x,c.y,{halign:l.styles.halign,valign:l.styles.valign,maxWidth:Math.ceil(l.width-l.padding("left")-l.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,l,r,u,i),i.x+=u.width}else i.x+=u.width;else i.x+=u.width}i.y+=r.height}function W(e,t,r){var n=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),"number"===typeof n.lineWidth){var i=h(n.lineWidth,n.fillColor);i&&e.rect(t.x,r.y,t.width,t.height,i)}else"object"===typeof n.lineWidth&&(n.fillColor&&e.rect(t.x,r.y,t.width,t.height,"F"),function(e,t,r,n){var i,o,a,s;n.top&&(i=r.x,o=r.y,a=r.x+t.width,s=r.y,n.right&&(a+=.5*n.right),n.left&&(i-=.5*n.left),u(n.top,i,o,a,s));n.bottom&&(i=r.x,o=r.y+t.height,a=r.x+t.width,s=r.y+t.height,n.right&&(a+=.5*n.right),n.left&&(i-=.5*n.left),u(n.bottom,i,o,a,s));n.left&&(i=r.x,o=r.y,a=r.x,s=r.y+t.height,n.top&&(o-=.5*n.top),n.bottom&&(s+=.5*n.bottom),u(n.left,i,o,a,s));n.right&&(i=r.x+t.width,o=r.y,a=r.x+t.width,s=r.y+t.height,n.top&&(o-=.5*n.top),n.bottom&&(s+=.5*n.bottom),u(n.right,i,o,a,s));function u(t,r,n,i,o){e.getDocument().setLineWidth(t),e.getDocument().line(r,n,i,o,"S")}}(e,t,r,n.lineWidth))}function Y(e,t,r,n){var i=t.settings.margin.bottom,o=t.settings.showFoot;return("everyPage"===o||"lastPage"===o&&r)&&(i+=t.getFootHeight(t.columns)),e.pageSize().height-n.y-i}function V(e,t,r,n,i,o){void 0===i&&(i=[]),void 0===o&&(o=!1),e.applyStyles(e.userStyles),"everyPage"!==t.settings.showFoot||o||t.foot.forEach((function(r){return H(e,t,r,n,i)})),t.callEndPageHooks(e,n);var a=t.settings.margin;c(e,t,r,n),$(e),t.pageNumber++,n.x=a.left,n.y=a.top,r.y=a.top,t.callWillDrawPageHooks(e,n),"everyPage"===t.settings.showHead&&(t.head.forEach((function(r){return H(e,t,r,n,i)})),e.applyStyles(e.userStyles))}function $(e){var t=e.pageNumber();return e.setPage(t+1),e.pageNumber()===t&&(e.addPage(),!0)}function G(e,t){B(e,P(e,w(e,t)))}try{if("undefined"!==typeof window&&window){var K=window,J=K.jsPDF||(null===(k=K.jspdf)||void 0===k?void 0:k.jsPDF);J&&function(e){e.API.autoTable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return B(this,P(this,w(this,e[0]))),this},e.API.lastAutoTable=!1,e.API.autoTableText=function(e,t,r,i){n(e,t,r,i,this)},e.API.autoTableSetDefaults=function(e){return o.setDefaults(e,this),this},e.autoTableSetDefaults=function(e,t){o.setDefaults(e,t)},e.API.autoTableHtmlToJson=function(e,t){var r;if(void 0===t&&(t=!1),"undefined"===typeof window)return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var n=v(new o(this),e,window,t,!1),i=n.head,a=n.body;return{columns:(null===(r=i[0])||void 0===r?void 0:r.map((function(e){return e.content})))||[],rows:a,data:a}}}(J)}}catch(Z){console.error("Could not apply autoTable plugin",Z)}}}]);