MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/orgchart.imenso.co/build/static/js/3.30e2c0c6.chunk.js
/*! For license information please see 3.30e2c0c6.chunk.js.LICENSE.txt */
(this.webpackJsonporgchart=this.webpackJsonporgchart||[]).push([[3],[function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return a}));var r=n(3),i=n.n(r),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=i.a.createContext&&i.a.createContext(o),s=function(){return(s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function c(t){return t&&t.map((function(t,e){return i.a.createElement(t.tag,s({key:e},t.attr),c(t.child))}))}function l(t){return function(e){return i.a.createElement(A,s({attr:s({},t.attr)},e),c(t.child))}}function A(t){var e=function(e){var n,r=t.attr,o=t.size,a=t.title,c=u(t,["attr","size","title"]),l=o||e.size||"1em";return e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className),i.a.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,r,c,{className:n,style:s(s({color:t.color||e.color},e.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&i.a.createElement("title",null,a),t.children)};return void 0!==a?i.a.createElement(a.Consumer,null,(function(t){return e(t)})):e(o)}},function(t,e,n){t.exports=n(70)()},function(t,e,n){"use strict";t.exports=n(69)},function(t,e,n){"use strict";t.exports=n(64)},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return F})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return x})),n.d(e,"g",(function(){return U}));var r=n(10),i=n(3),o=n.n(i),a=(n(1),n(11)),s=n(31),u=n(9),c=n(4),l=n(32),A=n.n(l),f=(n(35),n(7)),h=(n(49),function(t){var e=Object(s.a)();return e.displayName=t,e}("Router-History")),p=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router"),d=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(h.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.a.Component);o.a.Component;var g=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(o.a.Component);var m={},v=0;function w(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(m[t])return m[t];var e=A.a.compile(t);return v<1e4&&(m[t]=e,v++),e}(t)(e,{pretty:!0})}function y(t){var e=t.computedMatch,n=t.to,r=t.push,i=void 0!==r&&r;return o.a.createElement(p.Consumer,null,(function(t){t||Object(u.a)(!1);var r=t.history,s=t.staticContext,l=i?r.push:r.replace,A=Object(a.c)(e?"string"===typeof n?w(n,e.params):Object(c.a)({},n,{pathname:w(n.pathname,e.params)}):n);return s?(l(A),null):o.a.createElement(g,{onMount:function(){l(A)},onUpdate:function(t,e){var n=Object(a.c)(e.to);Object(a.f)(n,Object(c.a)({},A,{key:n.key}))||l(A)},to:n})}))}var b={},B=0;function x(t,e){void 0===e&&(e={}),("string"===typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=b[n]||(b[n]={});if(r[t])return r[t];var i=[],o={regexp:A()(t,i,e),keys:i};return B<1e4&&(r[t]=o,B++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(t);if(!u)return null;var l=u[0],f=u.slice(1),h=t===l;return o&&!h?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:h,params:a.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var N=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(p.Consumer,null,(function(e){e||Object(u.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?x(n.pathname,t.props):e.match,i=Object(c.a)({},e,{location:n,match:r}),a=t.props,s=a.children,l=a.component,A=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(p.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:l?o.a.createElement(l,i):A?A(i):null:"function"===typeof s?s(i):null)}))},e}(o.a.Component);function _(t){return"/"===t.charAt(0)?t:"/"+t}function C(t,e){if(!t)return e;var n=_(t);return 0!==e.pathname.indexOf(n)?e:Object(c.a)({},e,{pathname:e.pathname.substr(n.length)})}function S(t){return"string"===typeof t?t:Object(a.e)(t)}function E(t){return function(){Object(u.a)(!1)}}function L(){}o.a.Component;var F=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(p.Consumer,null,(function(e){e||Object(u.a)(!1);var n,r,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==r&&o.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?x(i.pathname,Object(c.a)({},t.props,{path:a})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);var k=o.a.useContext;function U(){return k(h)}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(36),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&"object"===typeof t}function u(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function c(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!==typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"===typeof t},isNumber:function(t){return"number"===typeof t},isObject:s,isPlainObject:u,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:c,isStream:function(t){return s(t)&&c(t.pipe)},isURLSearchParams:function(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){u(e[r])&&u(n)?e[r]=t(e[r],n):u(n)?e[r]=t({},n):o(n)?e[r]=n.slice():e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){"use strict";var r="Invariant failed";e.a=function(t,e){if(!t)throw new Error(r)}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return L})),n.d(e,"d",(function(){return k})),n.d(e,"c",(function(){return d})),n.d(e,"f",(function(){return g})),n.d(e,"e",(function(){return p}));var r=n(4);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}var a=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&i(t),u=e&&i(e),c=s||u;if(t&&i(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var A=0,f=a.length;f>=0;f--){var h=a[f];"."===h?o(a,f):".."===h?(o(a,f),A++):A&&(o(a,f),A--)}if(!c)for(;A--;A)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(9);function l(t){return"/"===t.charAt(0)?t:"/"+t}function A(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function h(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function d(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}var v=!("undefined"===typeof window||!window.document||!window.document.createElement);function w(t,e){e(window.confirm(t))}var y="popstate",b="hashchange";function B(){try{return window.history.state||{}}catch(t){return{}}}function x(t){void 0===t&&(t={}),v||Object(c.a)(!1);var e=window.history,n=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,A=void 0===u?w:u,g=o.keyLength,x=void 0===g?6:g,N=t.basename?h(l(t.basename)):"";function _(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return N&&(o=f(o,N)),d(o,r,n)}function C(){return Math.random().toString(36).substr(2,x)}var S=m();function E(t){Object(r.a)(R,t),R.length=e.length,S.notifyListeners(R.location,R.action)}function L(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||U(_(t.state))}function F(){U(_(B()))}var k=!1;function U(t){if(k)k=!1,E();else{S.confirmTransitionTo(t,"POP",A,(function(e){e?E({action:"POP",location:t}):function(t){var e=R.location,n=I.indexOf(e.key);-1===n&&(n=0);var r=I.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(k=!0,O(i))}(t)}))}}var Q=_(B()),I=[Q.key];function P(t){return N+p(t)}function O(t){e.go(t)}var T=0;function M(t){1===(T+=t)&&1===t?(window.addEventListener(y,L),i&&window.addEventListener(b,F)):0===T&&(window.removeEventListener(y,L),i&&window.removeEventListener(b,F))}var H=!1;var R={length:e.length,action:"POP",location:Q,createHref:P,push:function(t,r){var i="PUSH",o=d(t,r,C(),R.location);S.confirmTransitionTo(o,i,A,(function(t){if(t){var r=P(o),a=o.key,u=o.state;if(n)if(e.pushState({key:a,state:u},null,r),s)window.location.href=r;else{var c=I.indexOf(R.location.key),l=I.slice(0,c+1);l.push(o.key),I=l,E({action:i,location:o})}else window.location.href=r}}))},replace:function(t,r){var i="REPLACE",o=d(t,r,C(),R.location);S.confirmTransitionTo(o,i,A,(function(t){if(t){var r=P(o),a=o.key,u=o.state;if(n)if(e.replaceState({key:a,state:u},null,r),s)window.location.replace(r);else{var c=I.indexOf(R.location.key);-1!==c&&(I[c]=o.key),E({action:i,location:o})}else window.location.replace(r)}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return H||(M(1),H=!0),function(){return H&&(H=!1,M(-1)),e()}},listen:function(t){var e=S.appendListener(t);return M(1),function(){M(-1),e()}}};return R}var N="hashchange",_={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+A(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:A,decodePath:l},slash:{encodePath:l,decodePath:l}};function C(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function S(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function E(t){window.location.replace(C(window.location.href)+"#"+t)}function L(t){void 0===t&&(t={}),v||Object(c.a)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),i=n.getUserConfirmation,o=void 0===i?w:i,a=n.hashType,s=void 0===a?"slash":a,u=t.basename?h(l(t.basename)):"",A=_[s],g=A.encodePath,y=A.decodePath;function b(){var t=y(S());return u&&(t=f(t,u)),d(t)}var B=m();function x(t){Object(r.a)(R,t),R.length=e.length,B.notifyListeners(R.location,R.action)}var L=!1,F=null;function k(){var t,e,n=S(),r=g(n);if(n!==r)E(r);else{var i=b(),a=R.location;if(!L&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(F===p(i))return;F=null,function(t){if(L)L=!1,x();else{var e="POP";B.confirmTransitionTo(t,e,o,(function(n){n?x({action:e,location:t}):function(t){var e=R.location,n=P.lastIndexOf(p(e));-1===n&&(n=0);var r=P.lastIndexOf(p(t));-1===r&&(r=0);var i=n-r;i&&(L=!0,O(i))}(t)}))}}(i)}}var U=S(),Q=g(U);U!==Q&&E(Q);var I=b(),P=[p(I)];function O(t){e.go(t)}var T=0;function M(t){1===(T+=t)&&1===t?window.addEventListener(N,k):0===T&&window.removeEventListener(N,k)}var H=!1;var R={length:e.length,action:"POP",location:I,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(u+p(t))},push:function(t,e){var n="PUSH",r=d(t,void 0,void 0,R.location);B.confirmTransitionTo(r,n,o,(function(t){if(t){var e=p(r),i=g(u+e);if(S()!==i){F=e,function(t){window.location.hash=t}(i);var o=P.lastIndexOf(p(R.location)),a=P.slice(0,o+1);a.push(e),P=a,x({action:n,location:r})}else x()}}))},replace:function(t,e){var n="REPLACE",r=d(t,void 0,void 0,R.location);B.confirmTransitionTo(r,n,o,(function(t){if(t){var e=p(r),i=g(u+e);S()!==i&&(F=e,E(i));var o=P.indexOf(p(R.location));-1!==o&&(P[o]=e),x({action:n,location:r})}}))},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var e=B.setPrompt(t);return H||(M(1),H=!0),function(){return H&&(H=!1,M(-1)),e()}},listen:function(t){var e=B.appendListener(t);return M(1),function(){M(-1),e()}}};return R}function F(t,e,n){return Math.min(Math.max(t,e),n)}function k(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,a=e.initialIndex,s=void 0===a?0:a,u=e.keyLength,c=void 0===u?6:u,l=m();function A(t){Object(r.a)(y,t),y.length=y.entries.length,l.notifyListeners(y.location,y.action)}function f(){return Math.random().toString(36).substr(2,c)}var h=F(s,0,o.length-1),g=o.map((function(t){return d(t,void 0,"string"===typeof t?f():t.key||f())})),v=p;function w(t){var e=F(y.index+t,0,y.entries.length-1),r=y.entries[e];l.confirmTransitionTo(r,"POP",n,(function(t){t?A({action:"POP",location:r,index:e}):A()}))}var y={length:g.length,action:"POP",location:g[h],index:h,entries:g,createHref:v,push:function(t,e){var r="PUSH",i=d(t,e,f(),y.location);l.confirmTransitionTo(i,r,n,(function(t){if(t){var e=y.index+1,n=y.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),A({action:r,location:i,index:e,entries:n})}}))},replace:function(t,e){var r="REPLACE",i=d(t,e,f(),y.location);l.confirmTransitionTo(i,r,n,(function(t){t&&(y.entries[y.index]=i,A({action:r,location:i}))}))},go:w,goBack:function(){w(-1)},goForward:function(){w(1)},canGo:function(t){var e=y.index+t;return e>=0&&e<y.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return y}},function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return m}));var r=n(6),i=n(10),o=n(3),a=n.n(o),s=n(11),u=(n(1),n(4)),c=n(7),l=n(9),A=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).history=Object(s.a)(e.props),e}return Object(i.a)(e,t),e.prototype.render=function(){return a.a.createElement(r.c,{history:this.history,children:this.props.children})},e}(a.a.Component);a.a.Component;var f=function(t,e){return"function"===typeof t?t(e):t},h=function(t,e){return"string"===typeof t?Object(s.c)(t,null,null,e):t},p=function(t){return t},d=a.a.forwardRef;"undefined"===typeof d&&(d=p);var g=d((function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,o=Object(c.a)(t,["innerRef","navigate","onClick"]),s=o.target,l=Object(u.a)({},o,{onClick:function(t){try{i&&i(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||s&&"_self"!==s||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return l.ref=p!==d&&e||n,a.a.createElement("a",l)}));var m=d((function(t,e){var n=t.component,i=void 0===n?g:n,o=t.replace,s=t.to,A=t.innerRef,m=Object(c.a)(t,["component","replace","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(t){t||Object(l.a)(!1);var n=t.history,r=h(f(s,t.location),t.location),c=r?n.createHref(r):"",g=Object(u.a)({},m,{href:c,navigate:function(){var e=f(s,t.location);(o?n.replace:n.push)(e)}});return p!==d?g.ref=e||A:g.innerRef=A,a.a.createElement(i,g)}))})),v=function(t){return t},w=a.a.forwardRef;"undefined"===typeof w&&(w=v);w((function(t,e){var n=t["aria-current"],i=void 0===n?"page":n,o=t.activeClassName,s=void 0===o?"active":o,A=t.activeStyle,p=t.className,d=t.exact,g=t.isActive,y=t.location,b=t.sensitive,B=t.strict,x=t.style,N=t.to,_=t.innerRef,C=Object(c.a)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(t){t||Object(l.a)(!1);var n=y||t.location,o=h(f(N,n),n),c=o.pathname,S=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=S?Object(r.f)(n.pathname,{path:S,exact:d,sensitive:b,strict:B}):null,L=!!(g?g(E,n):E),F=L?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(p,s):p,k=L?Object(u.a)({},x,{},A):x,U=Object(u.a)({"aria-current":L&&i||null,className:F,style:k,to:o},C);return v!==w?U.ref=e||_:U.innerRef=_,a.a.createElement(m,U)}))}))},,function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}(),t.exports=n(65)},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&t.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&t.push(s);else t.push(r.toString())}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){t.exports=n(59)},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||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.")}()}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(16);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},function(t,e,n){"use strict";n.d(e,"b",(function(){return W})),n.d(e,"a",(function(){return X}));var r=Uint8Array,i=Uint16Array,o=Uint32Array,a=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(t,e){for(var n=new i(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var a=new o(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)a[s]=s-n[r]<<5|r;return[n,a]},l=c(a,2),A=l[0],f=l[1];A[28]=258,f[258]=28;for(var h=c(s,0),p=h[0],d=h[1],g=new i(32768),m=0;m<32768;++m){var v=(43690&m)>>>1|(21845&m)<<1;v=(61680&(v=(52428&v)>>>2|(13107&v)<<2))>>>4|(3855&v)<<4,g[m]=((65280&v)>>>8|(255&v)<<8)>>>1}var w=function(t,e,n){for(var r=t.length,o=0,a=new i(e);o<r;++o)++a[t[o]-1];var s,u=new i(e);for(o=0;o<e;++o)u[o]=u[o-1]+a[o-1]<<1;if(n){s=new i(1<<e);var c=15-e;for(o=0;o<r;++o)if(t[o])for(var l=o<<4|t[o],A=e-t[o],f=u[t[o]-1]++<<A,h=f|(1<<A)-1;f<=h;++f)s[g[f]>>>c]=l}else for(s=new i(r),o=0;o<r;++o)s[o]=g[u[t[o]-1]++]>>>15-t[o];return s},y=new r(288);for(m=0;m<144;++m)y[m]=8;for(m=144;m<256;++m)y[m]=9;for(m=256;m<280;++m)y[m]=7;for(m=280;m<288;++m)y[m]=8;var b=new r(32);for(m=0;m<32;++m)b[m]=5;var B=w(y,9,0),x=w(y,9,1),N=w(b,5,0),_=w(b,5,1),C=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},S=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},E=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},L=function(t){return(t/8>>0)+(7&t&&1)},F=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var a=new(t instanceof i?i:t instanceof o?o:r)(n-e);return a.set(t.subarray(e,n)),a},k=function(t,e,n){var i=t.length,o=!e||n,c=!n||n.i;n||(n={}),e||(e=new r(3*i));var l=function(t){var n=e.length;if(t>n){var i=new r(Math.max(2*n,t));i.set(e),e=i}},f=n.f||0,h=n.p||0,d=n.b||0,g=n.l,m=n.d,v=n.m,y=n.n,b=8*i;do{if(!g){n.f=f=S(t,h,1);var B=S(t,h+1,3);if(h+=3,!B){var N=t[(D=L(h)+4)-4]|t[D-3]<<8,k=D+N;if(k>i){if(c)throw"unexpected EOF";break}o&&l(d+N),e.set(t.subarray(D,k),d),n.b=d+=N,n.p=h=8*k;continue}if(1==B)g=x,m=_,v=9,y=5;else{if(2!=B)throw"invalid block type";var U=S(t,h,31)+257,Q=S(t,h+10,15)+4,I=U+S(t,h+5,31)+1;h+=14;for(var P=new r(I),O=new r(19),T=0;T<Q;++T)O[u[T]]=S(t,h+3*T,7);h+=3*Q;var M=C(O),H=(1<<M)-1;if(!c&&h+I*(M+7)>b)break;var R=w(O,M,1);for(T=0;T<I;){var D,j=R[S(t,h,H)];if(h+=15&j,(D=j>>>4)<16)P[T++]=D;else{var z=0,K=0;for(16==D?(K=3+S(t,h,3),h+=2,z=P[T-1]):17==D?(K=3+S(t,h,7),h+=3):18==D&&(K=11+S(t,h,127),h+=7);K--;)P[T++]=z}}var q=P.subarray(0,U),V=P.subarray(U);v=C(q),y=C(V),g=w(q,v,1),m=w(V,y,1)}if(h>b)throw"unexpected EOF"}o&&l(d+131072);for(var G=(1<<v)-1,W=(1<<y)-1,X=v+y+18;c||h+X<b;){var J=(z=g[E(t,h)&G])>>>4;if((h+=15&z)>b)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(J<256)e[d++]=J;else{if(256==J){g=null;break}var Y=J-254;if(J>264){var $=a[T=J-257];Y=S(t,h,(1<<$)-1)+A[T],h+=$}var Z=m[E(t,h)&W],tt=Z>>>4;if(!Z)throw"invalid distance";h+=15&Z;V=p[tt];if(tt>3){$=s[tt];V+=E(t,h)&(1<<$)-1,h+=$}if(h>b)throw"unexpected EOF";o&&l(d+131072);for(var et=d+Y;d<et;d+=4)e[d]=e[d-V],e[d+1]=e[d+1-V],e[d+2]=e[d+2-V],e[d+3]=e[d+3-V];d=et}}n.l=g,n.p=h,n.b=d,g&&(f=1,n.m=v,n.d=m,n.n=y)}while(!f);return d==e.length?e:F(e,0,d)},U=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},Q=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},I=function(t,e){for(var n=[],o=0;o<t.length;++o)t[o]&&n.push({s:o,f:t[o]});var a=n.length,s=n.slice();if(!a)return[new r(0),0];if(1==a){var u=new r(n[0].s+1);return u[n[0].s]=1,[u,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var c=n[0],l=n[1],A=0,f=1,h=2;for(n[0]={s:-1,f:c.f+l.f,l:c,r:l};f!=a-1;)c=n[n[A].f<n[h].f?A++:h++],l=n[A!=f&&n[A].f<n[h].f?A++:h++],n[f++]={s:-1,f:c.f+l.f,l:c,r:l};var p=s[0].s;for(o=1;o<a;++o)s[o].s>p&&(p=s[o].s);var d=new i(p+1),g=P(n[f-1],d,0);if(g>e){o=0;var m=0,v=g-e,w=1<<v;for(s.sort((function(t,e){return d[e.s]-d[t.s]||t.f-e.f}));o<a;++o){var y=s[o].s;if(!(d[y]>e))break;m+=w-(1<<g-d[y]),d[y]=e}for(m>>>=v;m>0;){var b=s[o].s;d[b]<e?m-=1<<e-d[b]++-1:++o}for(;o>=0&&m;--o){var B=s[o].s;d[B]==e&&(--d[B],++m)}g=e}return[new r(d),g]},P=function t(e,n,r){return-1==e.s?Math.max(t(e.l,n,r+1),t(e.r,n,r+1)):n[e.s]=r},O=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new i(++e),r=0,o=t[0],a=1,s=function(t){n[r++]=t},u=1;u<=e;++u)if(t[u]==o&&u!=e)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(o);a=1,o=t[u]}return[n.subarray(0,r),e]},T=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},M=function(t,e,n){var r=n.length,i=L(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<r;++o)t[i+o+4]=n[o];return 8*(i+4+r)},H=function(t,e,n,r,o,c,l,A,f,h,p){U(e,p++,n),++o[256];for(var d=I(o,15),g=d[0],m=d[1],v=I(c,15),x=v[0],_=v[1],C=O(g),S=C[0],E=C[1],L=O(x),F=L[0],k=L[1],P=new i(19),H=0;H<S.length;++H)P[31&S[H]]++;for(H=0;H<F.length;++H)P[31&F[H]]++;for(var R=I(P,7),D=R[0],j=R[1],z=19;z>4&&!D[u[z-1]];--z);var K,q,V,G,W=h+5<<3,X=T(o,y)+T(c,b)+l,J=T(o,g)+T(c,x)+l+14+3*z+T(P,D)+(2*P[16]+3*P[17]+7*P[18]);if(W<=X&&W<=J)return M(e,p,t.subarray(f,f+h));if(U(e,p,1+(J<X)),p+=2,J<X){K=w(g,m,0),q=g,V=w(x,_,0),G=x;var Y=w(D,j,0);U(e,p,E-257),U(e,p+5,k-1),U(e,p+10,z-4),p+=14;for(H=0;H<z;++H)U(e,p+3*H,D[u[H]]);p+=3*z;for(var $=[S,F],Z=0;Z<2;++Z){var tt=$[Z];for(H=0;H<tt.length;++H){var et=31&tt[H];U(e,p,Y[et]),p+=D[et],et>15&&(U(e,p,tt[H]>>>5&127),p+=tt[H]>>>12)}}}else K=B,q=y,V=N,G=b;for(H=0;H<A;++H)if(r[H]>255){et=r[H]>>>18&31;Q(e,p,K[et+257]),p+=q[et+257],et>7&&(U(e,p,r[H]>>>23&31),p+=a[et]);var nt=31&r[H];Q(e,p,V[nt]),p+=G[nt],nt>3&&(Q(e,p,r[H]>>>5&8191),p+=s[nt])}else Q(e,p,K[r[H]]),p+=q[r[H]];return Q(e,p,K[256]),p+q[256]},R=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),D=new r(0),j=function(t,e,n,u,c,l){var A=t.length,h=new r(u+A+5*(1+Math.floor(A/7e3))+c),p=h.subarray(u,h.length-c),g=0;if(!e||A<8)for(var m=0;m<=A;m+=65535){var v=m+65535;v<A?g=M(p,g,t.subarray(m,v)):(p[m]=l,g=M(p,g,t.subarray(m,A)))}else{for(var w=R[e-1],y=w>>>13,b=8191&w,B=(1<<n)-1,x=new i(32768),N=new i(B+1),_=Math.ceil(n/3),C=2*_,S=function(e){return(t[e]^t[e+1]<<_^t[e+2]<<C)&B},E=new o(25e3),k=new i(288),U=new i(32),Q=0,I=0,P=(m=0,0),O=0,T=0;m<A;++m){var j=S(m),z=32767&m,K=N[j];if(x[z]=K,N[j]=z,O<=m){var q=A-m;if((Q>7e3||P>24576)&&q>423){g=H(t,p,0,E,k,U,I,P,T,m-T,g),P=Q=I=0,T=m;for(var V=0;V<286;++V)k[V]=0;for(V=0;V<30;++V)U[V]=0}var G=2,W=0,X=b,J=z-K&32767;if(q>2&&j==S(m-J))for(var Y=Math.min(y,q)-1,$=Math.min(32767,m),Z=Math.min(258,q);J<=$&&--X&&z!=K;){if(t[m+G]==t[m+G-J]){for(var tt=0;tt<Z&&t[m+tt]==t[m+tt-J];++tt);if(tt>G){if(G=tt,W=J,tt>Y)break;var et=Math.min(J,tt-2),nt=0;for(V=0;V<et;++V){var rt=m-J+V+32768&32767,it=rt-x[rt]+32768&32767;it>nt&&(nt=it,K=rt)}}}J+=(z=K)-(K=x[z])+32768&32767}if(W){E[P++]=268435456|f[G]<<18|d[W];var ot=31&f[G],at=31&d[W];I+=a[ot]+s[at],++k[257+ot],++U[at],O=m+G,++Q}else E[P++]=t[m],++k[t[m]]}}g=H(t,p,l,E,k,U,I,P,T,m-T,g),l||(g=M(p,g,D))}return F(h,0,u+L(g)+c)},z=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a<s;++a)i+=r+=n[a];r%=65521,i%=65521}t=r,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},K=function(t,e,n,r,i){return j(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},q=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},V=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},G=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function W(t,e){void 0===e&&(e={});var n=z();n.p(t);var r=K(t,e,2,4);return V(r,e),q(r,r.length-4,n.d()),r}function X(t,e){return k((G(t),t.subarray(2,-4)),e)}},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var A=0;A<s.length;A++)o.call(n,s[A])&&(u[s[A]]=n[s[A]])}}return u}},function(t,e,n){t.exports=function(){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};function e(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function r(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(Fe){o(Fe)}}function s(t){try{u(r.throw(t))}catch(Fe){o(Fe)}}function u(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(Fe){o=[6,Fe],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}for(var o=function(){function t(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(e,n,r,i){return new t(this.left+e,this.top+n,this.width+r,this.height+i)},t.fromClientRect=function(e){return new t(e.left,e.top,e.width,e.height)},t}(),a=function(t){return o.fromClientRect(t.getBoundingClientRect())},s=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),i=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new o(0,0,r,i)},u=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320===(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e},c=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var a=t[i];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A="undefined"===typeof Uint8Array?[]:new Uint8Array(256),f=0;f<l.length;f++)A[l.charCodeAt(f)]=f;var h,p=function(t){var e,n,r,i,o,a=.75*t.length,s=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var c="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),l=Array.isArray(c)?c:new Uint8Array(c);for(e=0;e<s;e+=4)n=A[t.charCodeAt(e)],r=A[t.charCodeAt(e+1)],i=A[t.charCodeAt(e+2)],o=A[t.charCodeAt(e+3)],l[u++]=n<<2|r>>4,l[u++]=(15&r)<<4|i>>2,l[u++]=(3&i)<<6|63&o;return c},d=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},g=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},m=5,v=11,w=2,y=65536>>m,b=(1<<m)-1,B=y+(1024>>m)+32,x=65536>>v,N=(1<<v-m)-1,_=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},C=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},S=function(t){var e=p(t),n=Array.isArray(e)?g(e):new Uint32Array(e),r=Array.isArray(e)?d(e):new Uint16Array(e),i=24,o=_(r,i/2,n[4]/2),a=2===n[5]?_(r,(i+n[4])/2):C(n,Math.ceil((i+n[4])/4));return new E(n[0],n[1],n[2],n[3],o,a)},E=function(){function t(t,e,n,r,i,o){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>m])<<w)+(t&b),this.data[e];if(t<=65535)return e=((e=this.index[y+(t-55296>>m)])<<w)+(t&b),this.data[e];if(t<this.highStart)return e=B-x+(t>>v),e=this.index[e],e+=t>>m&N,e=((e=this.index[e])<<w)+(t&b),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),L=50,F=1,k=2,U=3,Q=4,I=5,P=7,O=8,T=9,M=10,H=11,R=12,D=13,j=14,z=15,K=16,q=17,V=18,G=19,W=20,X=21,J=22,Y=23,$=24,Z=25,tt=26,et=27,nt=28,rt=29,it=30,ot=31,at=32,st=33,ut=34,ct=35,lt=36,At=37,ft=38,ht=39,pt=40,dt=41,gt=42,mt=43,vt="!",wt="\xd7",yt="\xf7",bt=S("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),Bt=[it,lt],xt=[F,k,U,I],Nt=[M,O],_t=[et,tt],Ct=xt.concat(Nt),St=[ft,ht,pt,ut,ct],Et=[z,D],Lt=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach((function(t,o){var a=bt.get(t);if(a>L?(i.push(!0),a-=L):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(o),n.push(K);if(a===Q||a===H){if(0===o)return r.push(o),n.push(it);var s=n[o-1];return-1===Ct.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(it))}return r.push(o),a===ot?n.push("strict"===e?X:At):a===gt||a===rt?n.push(it):a===mt?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(At):n.push(it):void n.push(a)})),[r,n,i]},Ft=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var o=n;o<=r.length;){if((u=r[++o])===e)return!0;if(u!==M)break}if(i===M)for(o=n;o>0;){var a=r[--o];if(Array.isArray(t)?-1!==t.indexOf(a):t===a)for(var s=n;s<=r.length;){var u;if((u=r[++s])===e)return!0;if(u!==M)break}if(a!==M)break}return!1},kt=function(t,e){for(var n=t;n>=0;){var r=e[n];if(r!==M)return r;n--}return 0},Ut=function(t,e,n,r,i){if(0===n[r])return wt;var o=r-1;if(Array.isArray(i)&&!0===i[o])return wt;var a=o-1,s=o+1,u=e[o],c=a>=0?e[a]:0,l=e[s];if(u===k&&l===U)return wt;if(-1!==xt.indexOf(u))return vt;if(-1!==xt.indexOf(l))return wt;if(-1!==Nt.indexOf(l))return wt;if(kt(o,e)===O)return yt;if(bt.get(t[o])===H&&(l===At||l===at||l===st))return wt;if(u===P||l===P)return wt;if(u===T)return wt;if(-1===[M,D,z].indexOf(u)&&l===T)return wt;if(-1!==[q,V,G,$,nt].indexOf(l))return wt;if(kt(o,e)===J)return wt;if(Ft(Y,J,o,e))return wt;if(Ft([q,V],X,o,e))return wt;if(Ft(R,R,o,e))return wt;if(u===M)return yt;if(u===Y||l===Y)return wt;if(l===K||u===K)return yt;if(-1!==[D,z,X].indexOf(l)||u===j)return wt;if(c===lt&&-1!==Et.indexOf(u))return wt;if(u===nt&&l===lt)return wt;if(l===W&&-1!==Bt.concat(W,G,Z,At,at,st).indexOf(u))return wt;if(-1!==Bt.indexOf(l)&&u===Z||-1!==Bt.indexOf(u)&&l===Z)return wt;if(u===et&&-1!==[At,at,st].indexOf(l)||-1!==[At,at,st].indexOf(u)&&l===tt)return wt;if(-1!==Bt.indexOf(u)&&-1!==_t.indexOf(l)||-1!==_t.indexOf(u)&&-1!==Bt.indexOf(l))return wt;if(-1!==[et,tt].indexOf(u)&&(l===Z||-1!==[J,z].indexOf(l)&&e[s+1]===Z)||-1!==[J,z].indexOf(u)&&l===Z||u===Z&&-1!==[Z,nt,$].indexOf(l))return wt;if(-1!==[Z,nt,$,q,V].indexOf(l))for(var A=o;A>=0;){if((f=e[A])===Z)return wt;if(-1===[nt,$].indexOf(f))break;A--}if(-1!==[et,tt].indexOf(l))for(A=-1!==[q,V].indexOf(u)?a:o;A>=0;){var f;if((f=e[A])===Z)return wt;if(-1===[nt,$].indexOf(f))break;A--}if(ft===u&&-1!==[ft,ht,ut,ct].indexOf(l)||-1!==[ht,ut].indexOf(u)&&-1!==[ht,pt].indexOf(l)||-1!==[pt,ct].indexOf(u)&&l===pt)return wt;if(-1!==St.indexOf(u)&&-1!==[W,tt].indexOf(l)||-1!==St.indexOf(l)&&u===et)return wt;if(-1!==Bt.indexOf(u)&&-1!==Bt.indexOf(l))return wt;if(u===$&&-1!==Bt.indexOf(l))return wt;if(-1!==Bt.concat(Z).indexOf(u)&&l===J||-1!==Bt.concat(Z).indexOf(l)&&u===V)return wt;if(u===dt&&l===dt){for(var h=n[o],p=1;h>0&&e[--h]===dt;)p++;if(p%2!==0)return wt}return u===at&&l===st?wt:yt},Qt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=Lt(t,e.lineBreak),r=n[0],i=n[1],o=n[2];return"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[Z,it,gt].indexOf(t)?At:t}))),[r,i,"keep-all"===e.wordBreak?o.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0]},It=function(){function t(t,e,n,r){this.codePoints=t,this.required=e===vt,this.start=n,this.end=r}return t.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),Pt=function(t,e){var n=u(t),r=Qt(n,e),i=r[0],o=r[1],a=r[2],s=n.length,c=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var t=wt;l<s&&(t=Ut(n,o,i,++l,a))===wt;);if(t!==wt||l===s){var e=new It(n,t,c,l);return c=l,{value:e,done:!1}}return{done:!0,value:null}}}};!function(t){t[t.STRING_TOKEN=0]="STRING_TOKEN",t[t.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",t[t.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",t[t.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",t[t.COMMA_TOKEN=4]="COMMA_TOKEN",t[t.HASH_TOKEN=5]="HASH_TOKEN",t[t.DELIM_TOKEN=6]="DELIM_TOKEN",t[t.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",t[t.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",t[t.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",t[t.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",t[t.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",t[t.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",t[t.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",t[t.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",t[t.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",t[t.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",t[t.NUMBER_TOKEN=17]="NUMBER_TOKEN",t[t.FUNCTION=18]="FUNCTION",t[t.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",t[t.IDENT_TOKEN=20]="IDENT_TOKEN",t[t.COLUMN_TOKEN=21]="COLUMN_TOKEN",t[t.URL_TOKEN=22]="URL_TOKEN",t[t.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",t[t.CDC_TOKEN=24]="CDC_TOKEN",t[t.CDO_TOKEN=25]="CDO_TOKEN",t[t.COLON_TOKEN=26]="COLON_TOKEN",t[t.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",t[t.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",t[t.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",t[t.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",t[t.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",t[t.EOF_TOKEN=32]="EOF_TOKEN"}(h||(h={}));var Ot=1,Tt=2,Mt=4,Ht=8,Rt=10,Dt=47,jt=92,zt=9,Kt=32,qt=34,Vt=61,Gt=35,Wt=36,Xt=37,Jt=39,Yt=40,$t=41,Zt=95,te=45,ee=33,ne=60,re=62,ie=64,oe=91,ae=93,se=61,ue=123,ce=63,le=125,Ae=124,fe=126,he=128,pe=65533,de=42,ge=43,me=44,ve=58,we=59,ye=46,be=0,Be=8,xe=11,Ne=14,_e=31,Ce=127,Se=-1,Ee=48,Le=97,Fe=101,ke=102,Ue=117,Qe=122,Ie=65,Pe=69,Oe=70,Te=85,Me=90,He=function(t){return t>=Ee&&t<=57},Re=function(t){return t>=55296&&t<=57343},De=function(t){return He(t)||t>=Ie&&t<=Oe||t>=Le&&t<=ke},je=function(t){return t>=Le&&t<=Qe},ze=function(t){return t>=Ie&&t<=Me},Ke=function(t){return je(t)||ze(t)},qe=function(t){return t>=he},Ve=function(t){return t===Rt||t===zt||t===Kt},Ge=function(t){return Ke(t)||qe(t)||t===Zt},We=function(t){return Ge(t)||He(t)||t===te},Xe=function(t){return t>=be&&t<=Be||t===xe||t>=Ne&&t<=_e||t===Ce},Je=function(t,e){return t===jt&&e!==Rt},Ye=function(t,e,n){return t===te?Ge(e)||Je(e,n):!!Ge(t)||!(t!==jt||!Je(t,e))},$e=function(t,e,n){return t===ge||t===te?!!He(e)||e===ye&&He(n):He(t===ye?e:t)},Ze=function(t){var e=0,n=1;t[e]!==ge&&t[e]!==te||(t[e]===te&&(n=-1),e++);for(var r=[];He(t[e]);)r.push(t[e++]);var i=r.length?parseInt(c.apply(void 0,r),10):0;t[e]===ye&&e++;for(var o=[];He(t[e]);)o.push(t[e++]);var a=o.length,s=a?parseInt(c.apply(void 0,o),10):0;t[e]!==Pe&&t[e]!==Fe||e++;var u=1;t[e]!==ge&&t[e]!==te||(t[e]===te&&(u=-1),e++);for(var l=[];He(t[e]);)l.push(t[e++]);var A=l.length?parseInt(c.apply(void 0,l),10):0;return n*(i+s*Math.pow(10,-a))*Math.pow(10,u*A)},tn={type:h.LEFT_PARENTHESIS_TOKEN},en={type:h.RIGHT_PARENTHESIS_TOKEN},nn={type:h.COMMA_TOKEN},rn={type:h.SUFFIX_MATCH_TOKEN},on={type:h.PREFIX_MATCH_TOKEN},an={type:h.COLUMN_TOKEN},sn={type:h.DASH_MATCH_TOKEN},un={type:h.INCLUDE_MATCH_TOKEN},cn={type:h.LEFT_CURLY_BRACKET_TOKEN},ln={type:h.RIGHT_CURLY_BRACKET_TOKEN},An={type:h.SUBSTRING_MATCH_TOKEN},fn={type:h.BAD_URL_TOKEN},hn={type:h.BAD_STRING_TOKEN},pn={type:h.CDO_TOKEN},dn={type:h.CDC_TOKEN},gn={type:h.COLON_TOKEN},mn={type:h.SEMICOLON_TOKEN},vn={type:h.LEFT_SQUARE_BRACKET_TOKEN},wn={type:h.RIGHT_SQUARE_BRACKET_TOKEN},yn={type:h.WHITESPACE_TOKEN},bn={type:h.EOF_TOKEN},Bn=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(u(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==bn;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case qt:return this.consumeStringToken(qt);case Gt:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(We(e)||Je(n,r)){var i=Ye(e,n,r)?Tt:Ot,o=this.consumeName();return{type:h.HASH_TOKEN,value:o,flags:i}}break;case Wt:if(this.peekCodePoint(0)===Vt)return this.consumeCodePoint(),rn;break;case Jt:return this.consumeStringToken(Jt);case Yt:return tn;case $t:return en;case de:if(this.peekCodePoint(0)===Vt)return this.consumeCodePoint(),An;break;case ge:if($e(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case me:return nn;case te:var a=t,s=this.peekCodePoint(0),u=this.peekCodePoint(1);if($e(a,s,u))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Ye(a,s,u))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===te&&u===re)return this.consumeCodePoint(),this.consumeCodePoint(),dn;break;case ye:if($e(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Dt:if(this.peekCodePoint(0)===de)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===de&&(l=this.consumeCodePoint())===Dt)return this.consumeToken();if(l===Se)return this.consumeToken()}break;case ve:return gn;case we:return mn;case ne:if(this.peekCodePoint(0)===ee&&this.peekCodePoint(1)===te&&this.peekCodePoint(2)===te)return this.consumeCodePoint(),this.consumeCodePoint(),pn;break;case ie:var A=this.peekCodePoint(0),f=this.peekCodePoint(1),p=this.peekCodePoint(2);if(Ye(A,f,p))return o=this.consumeName(),{type:h.AT_KEYWORD_TOKEN,value:o};break;case oe:return vn;case jt:if(Je(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case ae:return wn;case se:if(this.peekCodePoint(0)===Vt)return this.consumeCodePoint(),on;break;case ue:return cn;case le:return ln;case Ue:case Te:var d=this.peekCodePoint(0),g=this.peekCodePoint(1);return d!==ge||!De(g)&&g!==ce||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Ae:if(this.peekCodePoint(0)===Vt)return this.consumeCodePoint(),sn;if(this.peekCodePoint(0)===Ae)return this.consumeCodePoint(),an;break;case fe:if(this.peekCodePoint(0)===Vt)return this.consumeCodePoint(),un;break;case Se:return bn}return Ve(t)?(this.consumeWhiteSpace(),yn):He(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Ge(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:h.DELIM_TOKEN,value:c(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return"undefined"===typeof t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();De(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;e===ce&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(c.apply(void 0,t.map((function(t){return t===ce?Ee:t}))),16),i=parseInt(c.apply(void 0,t.map((function(t){return t===ce?Oe:t}))),16);return{type:h.UNICODE_RANGE_TOKEN,start:r,end:i}}var o=parseInt(c.apply(void 0,t),16);if(this.peekCodePoint(0)===te&&De(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var a=[];De(e)&&a.length<6;)a.push(e),e=this.consumeCodePoint();return i=parseInt(c.apply(void 0,a),16),{type:h.UNICODE_RANGE_TOKEN,start:o,end:i}}return{type:h.UNICODE_RANGE_TOKEN,start:o,end:o}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===Yt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Yt?(this.consumeCodePoint(),{type:h.FUNCTION_TOKEN,value:t}):{type:h.IDENT_TOKEN,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Se)return{type:h.URL_TOKEN,value:""};var e=this.peekCodePoint(0);if(e===Jt||e===qt){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===h.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Se||this.peekCodePoint(0)===$t)?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),fn)}for(;;){var r=this.consumeCodePoint();if(r===Se||r===$t)return{type:h.URL_TOKEN,value:c.apply(void 0,t)};if(Ve(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Se||this.peekCodePoint(0)===$t?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:c.apply(void 0,t)}):(this.consumeBadUrlRemnants(),fn);if(r===qt||r===Jt||r===Yt||Xe(r))return this.consumeBadUrlRemnants(),fn;if(r===jt){if(!Je(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),fn;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){for(;Ve(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===$t||t===Se)return;Je(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e=6e4,n="";t>0;){var r=Math.min(e,t);n+=c.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(r===Se||void 0===r||r===t)return e+=this.consumeStringSlice(n),{type:h.STRING_TOKEN,value:e};if(r===Rt)return this._value.splice(0,n),hn;if(r===jt){var i=this._value[n+1];i!==Se&&void 0!==i&&(i===Rt?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):Je(r,i)&&(e+=this.consumeStringSlice(n),e+=c(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=Mt,n=this.peekCodePoint(0);for(n!==ge&&n!==te||t.push(this.consumeCodePoint());He(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===ye&&He(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Ht;He(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Pe||n===Fe)&&((r===ge||r===te)&&He(i)||He(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=Ht;He(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[Ze(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);if(Ye(r,i,o)){var a=this.consumeName();return{type:h.DIMENSION_TOKEN,number:e,flags:n,unit:a}}return r===Xt?(this.consumeCodePoint(),{type:h.PERCENTAGE_TOKEN,number:e,flags:n}):{type:h.NUMBER_TOKEN,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(De(t)){for(var e=c(t);De(this.peekCodePoint(0))&&e.length<6;)e+=c(this.consumeCodePoint());Ve(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||Re(n)||n>1114111?pe:n}return t===Se?pe:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(We(e))t+=c(e);else{if(!Je(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=c(this.consumeEscapedCodePoint())}}},t}(),xn=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Bn;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===h.WHITESPACE_TOKEN;)t=this.consumeToken();if(t.type===h.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(t.type===h.WHITESPACE_TOKEN);if(t.type===h.EOF_TOKEN)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===h.EOF_TOKEN)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case h.LEFT_CURLY_BRACKET_TOKEN:case h.LEFT_SQUARE_BRACKET_TOKEN:case h.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(t.type);case h.FUNCTION_TOKEN:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(n.type===h.EOF_TOKEN||Un(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:h.FUNCTION};;){var n=this.consumeToken();if(n.type===h.EOF_TOKEN||n.type===h.RIGHT_PARENTHESIS_TOKEN)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return"undefined"===typeof t?bn:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Nn=function(t){return t.type===h.DIMENSION_TOKEN},_n=function(t){return t.type===h.NUMBER_TOKEN},Cn=function(t){return t.type===h.IDENT_TOKEN},Sn=function(t){return t.type===h.STRING_TOKEN},En=function(t,e){return Cn(t)&&t.value===e},Ln=function(t){return t.type!==h.WHITESPACE_TOKEN},Fn=function(t){return t.type!==h.WHITESPACE_TOKEN&&t.type!==h.COMMA_TOKEN},kn=function(t){var e=[],n=[];return t.forEach((function(t){if(t.type===h.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}t.type!==h.WHITESPACE_TOKEN&&n.push(t)})),n.length&&e.push(n),e},Un=function(t,e){return e===h.LEFT_CURLY_BRACKET_TOKEN&&t.type===h.RIGHT_CURLY_BRACKET_TOKEN||e===h.LEFT_SQUARE_BRACKET_TOKEN&&t.type===h.RIGHT_SQUARE_BRACKET_TOKEN||e===h.LEFT_PARENTHESIS_TOKEN&&t.type===h.RIGHT_PARENTHESIS_TOKEN},Qn=function(t){return t.type===h.NUMBER_TOKEN||t.type===h.DIMENSION_TOKEN},In=function(t){return t.type===h.PERCENTAGE_TOKEN||Qn(t)},Pn=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},On={type:h.NUMBER_TOKEN,number:0,flags:Mt},Tn={type:h.PERCENTAGE_TOKEN,number:50,flags:Mt},Mn={type:h.PERCENTAGE_TOKEN,number:100,flags:Mt},Hn=function(t,e,n){var r=t[0],i=t[1];return[Rn(r,e),Rn("undefined"!==typeof i?i:r,n)]},Rn=function(t,e){if(t.type===h.PERCENTAGE_TOKEN)return t.number/100*e;if(Nn(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},Dn="deg",jn="grad",zn="rad",Kn="turn",qn={name:"angle",parse:function(t){if(t.type===h.DIMENSION_TOKEN)switch(t.unit){case Dn:return Math.PI*t.number/180;case jn:return Math.PI/200*t.number;case zn:return t.number;case Kn:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Vn=function(t){return t.type===h.DIMENSION_TOKEN&&(t.unit===Dn||t.unit===jn||t.unit===zn||t.unit===Kn)},Gn=function(t){switch(t.filter(Cn).map((function(t){return t.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[On,On];case"to top":case"bottom":return Wn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[On,Mn];case"to right":case"left":return Wn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Mn,Mn];case"to bottom":case"top":return Wn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Mn,On];case"to left":case"right":return Wn(270)}return 0},Wn=function(t){return Math.PI*t/180},Xn={name:"color",parse:function(t){if(t.type===h.FUNCTION){var e=or[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(t.values)}if(t.type===h.HASH_TOKEN){if(3===t.value.length){var n=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3);return $n(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===t.value.length){n=t.value.substring(0,1),r=t.value.substring(1,2),i=t.value.substring(2,3);var o=t.value.substring(3,4);return $n(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16)/255)}if(6===t.value.length)return n=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6),$n(parseInt(n,16),parseInt(r,16),parseInt(i,16),1);if(8===t.value.length)return n=t.value.substring(0,2),r=t.value.substring(2,4),i=t.value.substring(4,6),o=t.value.substring(6,8),$n(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(o,16)/255)}if(t.type===h.IDENT_TOKEN){var a=ar[t.value.toUpperCase()];if("undefined"!==typeof a)return a}return ar.TRANSPARENT}},Jn=function(t){return 0===(255&t)},Yn=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},$n=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r)<<0)>>>0},Zn=function(t,e){if(t.type===h.NUMBER_TOKEN)return t.number;if(t.type===h.PERCENTAGE_TOKEN){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},tr=function(t){var e=t.filter(Fn);if(3===e.length){var n=e.map(Zn),r=n[0],i=n[1],o=n[2];return $n(r,i,o,1)}if(4===e.length){var a=e.map(Zn),s=(r=a[0],i=a[1],o=a[2],a[3]);return $n(r,i,o,s)}return 0};function er(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var nr,rr,ir=function(t){var e=t.filter(Fn),n=e[0],r=e[1],i=e[2],o=e[3],a=(n.type===h.NUMBER_TOKEN?Wn(n.number):qn.parse(n))/(2*Math.PI),s=In(r)?r.number/100:0,u=In(i)?i.number/100:0,c="undefined"!==typeof o&&In(o)?Rn(o,1):1;if(0===s)return $n(255*u,255*u,255*u,1);var l=u<=.5?u*(s+1):u+s-u*s,A=2*u-l,f=er(A,l,a+1/3),p=er(A,l,a),d=er(A,l,a-1/3);return $n(255*f,255*p,255*d,c)},or={hsl:ir,hsla:ir,rgb:tr,rgba:tr},ar={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(t){t[t.VALUE=0]="VALUE",t[t.LIST=1]="LIST",t[t.IDENT_VALUE=2]="IDENT_VALUE",t[t.TYPE_VALUE=3]="TYPE_VALUE",t[t.TOKEN_VALUE=4]="TOKEN_VALUE"})(nr||(nr={})),function(t){t[t.BORDER_BOX=0]="BORDER_BOX",t[t.PADDING_BOX=1]="PADDING_BOX",t[t.CONTENT_BOX=2]="CONTENT_BOX"}(rr||(rr={}));var sr,ur={name:"background-clip",initialValue:"border-box",prefix:!1,type:nr.LIST,parse:function(t){return t.map((function(t){if(Cn(t))switch(t.value){case"padding-box":return rr.PADDING_BOX;case"content-box":return rr.CONTENT_BOX}return rr.BORDER_BOX}))}},cr={name:"background-color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"},lr=function(t){var e=Xn.parse(t[0]),n=t[1];return n&&In(n)?{color:e,stop:n}:{color:e,stop:null}},Ar=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=On),null===r.stop&&(r.stop=Mn);for(var i=[],o=0,a=0;a<t.length;a++){var s=t[a].stop;if(null!==s){var u=Rn(s,e);u>o?i.push(u):i.push(o),o=u}else i.push(null)}var c=null;for(a=0;a<i.length;a++){var l=i[a];if(null===l)null===c&&(c=a);else if(null!==c){for(var A=a-c,f=(l-i[c-1])/(A+1),h=1;h<=A;h++)i[c+h-1]=f*h;c=null}}return t.map((function(t,n){return{color:t.color,stop:Math.max(Math.min(1,i[n]/e),0)}}))},fr=function(t,e,n){var r=e/2,i=n/2,o=Rn(t[0],e)-r,a=i-Rn(t[1],n);return(Math.atan2(a,o)+2*Math.PI)%(2*Math.PI)},hr=function(t,e,n){var r="number"===typeof t?t:fr(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),o=e/2,a=n/2,s=i/2,u=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[i,o-c,o+c,a-u,a+u]},pr=function(t,e){return Math.sqrt(t*t+e*e)},dr=function(t,e,n,r,i){return[[0,0],[0,e],[t,0],[t,e]].reduce((function(t,e){var o=e[0],a=e[1],s=pr(n-o,r-a);return(i?s<t.optimumDistance:s>t.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},gr=function(t,e,n,r,i){var o=0,a=0;switch(t.size){case Yr.CLOSEST_SIDE:t.shape===Jr.CIRCLE?o=a=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):t.shape===Jr.ELLIPSE&&(o=Math.min(Math.abs(e),Math.abs(e-r)),a=Math.min(Math.abs(n),Math.abs(n-i)));break;case Yr.CLOSEST_CORNER:if(t.shape===Jr.CIRCLE)o=a=Math.min(pr(e,n),pr(e,n-i),pr(e-r,n),pr(e-r,n-i));else if(t.shape===Jr.ELLIPSE){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),u=dr(r,i,e,n,!0),c=u[0],l=u[1];a=s*(o=pr(c-e,(l-n)/s))}break;case Yr.FARTHEST_SIDE:t.shape===Jr.CIRCLE?o=a=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):t.shape===Jr.ELLIPSE&&(o=Math.max(Math.abs(e),Math.abs(e-r)),a=Math.max(Math.abs(n),Math.abs(n-i)));break;case Yr.FARTHEST_CORNER:if(t.shape===Jr.CIRCLE)o=a=Math.max(pr(e,n),pr(e,n-i),pr(e-r,n),pr(e-r,n-i));else if(t.shape===Jr.ELLIPSE){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var A=dr(r,i,e,n,!1);c=A[0],l=A[1],a=s*(o=pr(c-e,(l-n)/s))}}return Array.isArray(t.size)&&(o=Rn(t.size[0],r),a=2===t.size.length?Rn(t.size[1],i):o),[o,a]},mr=function(t){var e=Wn(180),n=[];return kn(t).forEach((function(t,r){if(0===r){var i=t[0];if(i.type===h.IDENT_TOKEN&&"to"===i.value)return void(e=Gn(t));if(Vn(i))return void(e=qn.parse(i))}var o=lr(t);n.push(o)})),{angle:e,stops:n,type:sr.LINEAR_GRADIENT}},vr=function(t){var e=Wn(180),n=[];return kn(t).forEach((function(t,r){if(0===r){var i=t[0];if(i.type===h.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(e=Gn(t));if(Vn(i))return void(e=(qn.parse(i)+Wn(270))%Wn(360))}var o=lr(t);n.push(o)})),{angle:e,stops:n,type:sr.LINEAR_GRADIENT}},wr=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),o=Math.round(i.height);if(t.body.removeChild(r),o===e)return!0}}return!1},yr=function(){return"undefined"!==typeof(new Image).crossOrigin},br=function(){return"string"===typeof(new XMLHttpRequest).responseType},Br=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch(Fe){return!1}return!0},xr=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},Nr=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=e.toDataURL();i.src=o;var a=_r(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Cr(a).then((function(e){r.drawImage(e,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=t.createElement("div");return a.style.backgroundImage="url("+o+")",a.style.height=n+"px",xr(i)?Cr(_r(n,n,0,0,a)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),xr(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},_r=function(t,e,n,r,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",t.toString()),a.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(i),a},Cr=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Sr={get SUPPORT_RANGE_BOUNDS(){var t=wr(document);return Object.defineProperty(Sr,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Br(document);return Object.defineProperty(Sr,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"===typeof Array.from&&"function"===typeof window.fetch?Nr(document):Promise.resolve(!1);return Object.defineProperty(Sr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=yr();return Object.defineProperty(Sr,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=br();return Object.defineProperty(Sr,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Sr,"SUPPORT_CORS_XHR",{value:t}),t}},Er=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.create=function(e){t.instances[e.id]=new t(e)},t.destroy=function(e){delete t.instances[e]},t.getInstance=function(e){var n=t.instances[e];if("undefined"===typeof n)throw new Error("No logger instance found with id "+e);return n},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(t)):this.info.apply(this,t))},t.instances={},t}(),Lr=function(){function t(){}return t.create=function(e,n){return t._caches[e]=new Fr(e,n)},t.destroy=function(e){delete t._caches[e]},t.open=function(e){var n=t._caches[e];if("undefined"!==typeof n)return n;throw new Error('Cache with key "'+e+'" not found')},t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t.getInstance=function(){var e=t._current;if(null===e)throw new Error("No cache instance attached");return e},t.attachInstance=function(e){t._current=e},t.detachInstance=function(){t._current=null},t._caches={},t._origin="about:blank",t._current=null,t}(),Fr=function(){function t(t,e){this.id=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Tr(t)||Ir(t)?(this._cache[t]=this.loadImage(t),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,o,a=this;return i(this,(function(i){switch(i.label){case 0:return e=Lr.isSameOrigin(t),n=!Pr(t)&&!0===this._options.useCORS&&Sr.SUPPORT_CORS_IMAGES&&!e,r=!Pr(t)&&!e&&"string"===typeof this._options.proxy&&Sr.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||Pr(t)||r||n?(o=t,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return Er.getInstance(this.id).debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(Or(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout((function(){return t(r)}),500),a._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+a._options.imageTimeout+"ms) loading image")}),a._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return"undefined"!==typeof this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,o){var a=Sr.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===a)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return o(t)}),!1),t.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o,s.open("GET",n+"?url="+encodeURIComponent(t)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),e._options.imageTimeout){var u=e._options.imageTimeout;s.timeout=u,s.ontimeout=function(){return o("Timed out ("+u+"ms) proxying "+r)}}s.send()}))},t}(),kr=/^data:image\/svg\+xml/i,Ur=/^data:image\/.*;base64,/i,Qr=/^data:image\/.*/i,Ir=function(t){return Sr.SUPPORT_SVG_DRAWING||!Mr(t)},Pr=function(t){return Qr.test(t)},Or=function(t){return Ur.test(t)},Tr=function(t){return"blob"===t.substr(0,4)},Mr=function(t){return"svg"===t.substr(-3).toLowerCase()||kr.test(t)},Hr=function(t){var e=Wn(180),n=[],r=sr.LINEAR_GRADIENT,i=Jr.CIRCLE,o=Yr.FARTHEST_CORNER,a=[];return kn(t).forEach((function(t,e){var i=t[0];if(0===e){if(Cn(i)&&"linear"===i.value)return void(r=sr.LINEAR_GRADIENT);if(Cn(i)&&"radial"===i.value)return void(r=sr.RADIAL_GRADIENT)}if(i.type===h.FUNCTION)if("from"===i.name){var o=Xn.parse(i.values[0]);n.push({stop:On,color:o})}else if("to"===i.name)o=Xn.parse(i.values[0]),n.push({stop:Mn,color:o});else if("color-stop"===i.name){var a=i.values.filter(Fn);if(2===a.length){o=Xn.parse(a[1]);var s=a[0];_n(s)&&n.push({stop:{type:h.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}})),r===sr.LINEAR_GRADIENT?{angle:(e+Wn(180))%Wn(360),stops:n,type:r}:{size:o,shape:i,stops:n,position:a,type:r}},Rr="closest-side",Dr="farthest-side",jr="closest-corner",zr="farthest-corner",Kr="circle",qr="ellipse",Vr="cover",Gr="contain",Wr=function(t){var e=Jr.CIRCLE,n=Yr.FARTHEST_CORNER,r=[],i=[];return kn(t).forEach((function(t,o){var a=!0;if(0===o){var s=!1;a=t.reduce((function(t,r){if(s)if(Cn(r))switch(r.value){case"center":return i.push(Tn),t;case"top":case"left":return i.push(On),t;case"right":case"bottom":return i.push(Mn),t}else(In(r)||Qn(r))&&i.push(r);else if(Cn(r))switch(r.value){case Kr:return e=Jr.CIRCLE,!1;case qr:return e=Jr.ELLIPSE,!1;case"at":return s=!0,!1;case Rr:return n=Yr.CLOSEST_SIDE,!1;case Vr:case Dr:return n=Yr.FARTHEST_SIDE,!1;case Gr:case jr:return n=Yr.CLOSEST_CORNER,!1;case zr:return n=Yr.FARTHEST_CORNER,!1}else if(Qn(r)||In(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return t}),a)}if(a){var u=lr(t);r.push(u)}})),{size:n,shape:e,stops:r,position:i,type:sr.RADIAL_GRADIENT}},Xr=function(t){var e=Jr.CIRCLE,n=Yr.FARTHEST_CORNER,r=[],i=[];return kn(t).forEach((function(t,o){var a=!0;if(0===o?a=t.reduce((function(t,e){if(Cn(e))switch(e.value){case"center":return i.push(Tn),!1;case"top":case"left":return i.push(On),!1;case"right":case"bottom":return i.push(Mn),!1}else if(In(e)||Qn(e))return i.push(e),!1;return t}),a):1===o&&(a=t.reduce((function(t,r){if(Cn(r))switch(r.value){case Kr:return e=Jr.CIRCLE,!1;case qr:return e=Jr.ELLIPSE,!1;case Gr:case Rr:return n=Yr.CLOSEST_SIDE,!1;case Dr:return n=Yr.FARTHEST_SIDE,!1;case jr:return n=Yr.CLOSEST_CORNER,!1;case Vr:case zr:return n=Yr.FARTHEST_CORNER,!1}else if(Qn(r)||In(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return t}),a)),a){var s=lr(t);r.push(s)}})),{size:n,shape:e,stops:r,position:i,type:sr.RADIAL_GRADIENT}};!function(t){t[t.URL=0]="URL",t[t.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",t[t.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(sr||(sr={}));var Jr,Yr,$r=function(t){return t.type===sr.LINEAR_GRADIENT},Zr=function(t){return t.type===sr.RADIAL_GRADIENT};(function(t){t[t.CIRCLE=0]="CIRCLE",t[t.ELLIPSE=1]="ELLIPSE"})(Jr||(Jr={})),function(t){t[t.CLOSEST_SIDE=0]="CLOSEST_SIDE",t[t.FARTHEST_SIDE=1]="FARTHEST_SIDE",t[t.CLOSEST_CORNER=2]="CLOSEST_CORNER",t[t.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Yr||(Yr={}));var ti={name:"image",parse:function(t){if(t.type===h.URL_TOKEN){var e={url:t.value,type:sr.URL};return Lr.getInstance().addImage(t.value),e}if(t.type===h.FUNCTION){var n=ri[t.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(t.values)}throw new Error("Unsupported image type")}};function ei(t){return t.type!==h.FUNCTION||ri[t.name]}var ni,ri={"linear-gradient":mr,"-moz-linear-gradient":vr,"-ms-linear-gradient":vr,"-o-linear-gradient":vr,"-webkit-linear-gradient":vr,"radial-gradient":Wr,"-moz-radial-gradient":Xr,"-ms-radial-gradient":Xr,"-o-radial-gradient":Xr,"-webkit-radial-gradient":Xr,"-webkit-gradient":Hr},ii={name:"background-image",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===h.IDENT_TOKEN&&"none"===e.value?[]:t.filter((function(t){return Fn(t)&&ei(t)})).map(ti.parse)}},oi={name:"background-origin",initialValue:"border-box",prefix:!1,type:nr.LIST,parse:function(t){return t.map((function(t){if(Cn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},ai={name:"background-position",initialValue:"0% 0%",type:nr.LIST,prefix:!1,parse:function(t){return kn(t).map((function(t){return t.filter(In)})).map(Pn)}};!function(t){t[t.REPEAT=0]="REPEAT",t[t.NO_REPEAT=1]="NO_REPEAT",t[t.REPEAT_X=2]="REPEAT_X",t[t.REPEAT_Y=3]="REPEAT_Y"}(ni||(ni={}));var si,ui={name:"background-repeat",initialValue:"repeat",prefix:!1,type:nr.LIST,parse:function(t){return kn(t).map((function(t){return t.filter(Cn).map((function(t){return t.value})).join(" ")})).map(ci)}},ci=function(t){switch(t){case"no-repeat":return ni.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return ni.REPEAT_X;case"repeat-y":case"no-repeat repeat":return ni.REPEAT_Y;case"repeat":default:return ni.REPEAT}};!function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"}(si||(si={}));var li,Ai={name:"background-size",initialValue:"0",prefix:!1,type:nr.LIST,parse:function(t){return kn(t).map((function(t){return t.filter(fi)}))}},fi=function(t){return Cn(t)||In(t)},hi=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"}},pi=hi("top"),di=hi("right"),gi=hi("bottom"),mi=hi("left"),vi=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:nr.LIST,parse:function(t){return Pn(t.filter(In))}}},wi=vi("top-left"),yi=vi("top-right"),bi=vi("bottom-right"),Bi=vi("bottom-left");!function(t){t[t.NONE=0]="NONE",t[t.SOLID=1]="SOLID"}(li||(li={}));var xi,Ni=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"none":return li.NONE}return li.SOLID}}},_i=Ni("top"),Ci=Ni("right"),Si=Ni("bottom"),Ei=Ni("left"),Li=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:nr.VALUE,prefix:!1,parse:function(t){return Nn(t)?t.number:0}}},Fi=Li("top"),ki=Li("right"),Ui=Li("bottom"),Qi=Li("left"),Ii={name:"color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"},Pi={name:"display",initialValue:"inline-block",prefix:!1,type:nr.LIST,parse:function(t){return t.filter(Cn).reduce((function(t,e){return t|Oi(e.value)}),0)}},Oi=function(t){switch(t){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(t){t[t.NONE=0]="NONE",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.INLINE_START=3]="INLINE_START",t[t.INLINE_END=4]="INLINE_END"}(xi||(xi={}));var Ti,Mi={name:"float",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"left":return xi.LEFT;case"right":return xi.RIGHT;case"inline-start":return xi.INLINE_START;case"inline-end":return xi.INLINE_END}return xi.NONE}},Hi={name:"letter-spacing",initialValue:"0",prefix:!1,type:nr.VALUE,parse:function(t){return t.type===h.IDENT_TOKEN&&"normal"===t.value?0:t.type===h.NUMBER_TOKEN||t.type===h.DIMENSION_TOKEN?t.number:0}};!function(t){t.NORMAL="normal",t.STRICT="strict"}(Ti||(Ti={}));var Ri,Di={name:"line-break",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"strict":return Ti.STRICT;case"normal":default:return Ti.NORMAL}}},ji={name:"line-height",initialValue:"normal",prefix:!1,type:nr.TOKEN_VALUE},zi=function(t,e){return Cn(t)&&"normal"===t.value?1.2*e:t.type===h.NUMBER_TOKEN?e*t.number:In(t)?Rn(t,e):e},Ki={name:"list-style-image",initialValue:"none",type:nr.VALUE,prefix:!1,parse:function(t){return t.type===h.IDENT_TOKEN&&"none"===t.value?null:ti.parse(t)}};!function(t){t[t.INSIDE=0]="INSIDE",t[t.OUTSIDE=1]="OUTSIDE"}(Ri||(Ri={}));var qi,Vi={name:"list-style-position",initialValue:"outside",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"inside":return Ri.INSIDE;case"outside":default:return Ri.OUTSIDE}}};!function(t){t[t.NONE=-1]="NONE",t[t.DISC=0]="DISC",t[t.CIRCLE=1]="CIRCLE",t[t.SQUARE=2]="SQUARE",t[t.DECIMAL=3]="DECIMAL",t[t.CJK_DECIMAL=4]="CJK_DECIMAL",t[t.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",t[t.LOWER_ROMAN=6]="LOWER_ROMAN",t[t.UPPER_ROMAN=7]="UPPER_ROMAN",t[t.LOWER_GREEK=8]="LOWER_GREEK",t[t.LOWER_ALPHA=9]="LOWER_ALPHA",t[t.UPPER_ALPHA=10]="UPPER_ALPHA",t[t.ARABIC_INDIC=11]="ARABIC_INDIC",t[t.ARMENIAN=12]="ARMENIAN",t[t.BENGALI=13]="BENGALI",t[t.CAMBODIAN=14]="CAMBODIAN",t[t.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",t[t.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",t[t.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",t[t.DEVANAGARI=18]="DEVANAGARI",t[t.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",t[t.GEORGIAN=20]="GEORGIAN",t[t.GUJARATI=21]="GUJARATI",t[t.GURMUKHI=22]="GURMUKHI",t[t.HEBREW=22]="HEBREW",t[t.HIRAGANA=23]="HIRAGANA",t[t.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",t[t.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",t[t.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",t[t.KANNADA=27]="KANNADA",t[t.KATAKANA=28]="KATAKANA",t[t.KATAKANA_IROHA=29]="KATAKANA_IROHA",t[t.KHMER=30]="KHMER",t[t.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",t[t.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",t[t.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",t[t.LAO=34]="LAO",t[t.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",t[t.MALAYALAM=36]="MALAYALAM",t[t.MONGOLIAN=37]="MONGOLIAN",t[t.MYANMAR=38]="MYANMAR",t[t.ORIYA=39]="ORIYA",t[t.PERSIAN=40]="PERSIAN",t[t.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",t[t.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",t[t.TAMIL=43]="TAMIL",t[t.TELUGU=44]="TELUGU",t[t.THAI=45]="THAI",t[t.TIBETAN=46]="TIBETAN",t[t.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",t[t.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",t[t.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",t[t.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",t[t.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(qi||(qi={}));var Gi,Wi={name:"list-style-type",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"disc":return qi.DISC;case"circle":return qi.CIRCLE;case"square":return qi.SQUARE;case"decimal":return qi.DECIMAL;case"cjk-decimal":return qi.CJK_DECIMAL;case"decimal-leading-zero":return qi.DECIMAL_LEADING_ZERO;case"lower-roman":return qi.LOWER_ROMAN;case"upper-roman":return qi.UPPER_ROMAN;case"lower-greek":return qi.LOWER_GREEK;case"lower-alpha":return qi.LOWER_ALPHA;case"upper-alpha":return qi.UPPER_ALPHA;case"arabic-indic":return qi.ARABIC_INDIC;case"armenian":return qi.ARMENIAN;case"bengali":return qi.BENGALI;case"cambodian":return qi.CAMBODIAN;case"cjk-earthly-branch":return qi.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return qi.CJK_HEAVENLY_STEM;case"cjk-ideographic":return qi.CJK_IDEOGRAPHIC;case"devanagari":return qi.DEVANAGARI;case"ethiopic-numeric":return qi.ETHIOPIC_NUMERIC;case"georgian":return qi.GEORGIAN;case"gujarati":return qi.GUJARATI;case"gurmukhi":return qi.GURMUKHI;case"hebrew":return qi.HEBREW;case"hiragana":return qi.HIRAGANA;case"hiragana-iroha":return qi.HIRAGANA_IROHA;case"japanese-formal":return qi.JAPANESE_FORMAL;case"japanese-informal":return qi.JAPANESE_INFORMAL;case"kannada":return qi.KANNADA;case"katakana":return qi.KATAKANA;case"katakana-iroha":return qi.KATAKANA_IROHA;case"khmer":return qi.KHMER;case"korean-hangul-formal":return qi.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return qi.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return qi.KOREAN_HANJA_INFORMAL;case"lao":return qi.LAO;case"lower-armenian":return qi.LOWER_ARMENIAN;case"malayalam":return qi.MALAYALAM;case"mongolian":return qi.MONGOLIAN;case"myanmar":return qi.MYANMAR;case"oriya":return qi.ORIYA;case"persian":return qi.PERSIAN;case"simp-chinese-formal":return qi.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return qi.SIMP_CHINESE_INFORMAL;case"tamil":return qi.TAMIL;case"telugu":return qi.TELUGU;case"thai":return qi.THAI;case"tibetan":return qi.TIBETAN;case"trad-chinese-formal":return qi.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return qi.TRAD_CHINESE_INFORMAL;case"upper-armenian":return qi.UPPER_ARMENIAN;case"disclosure-open":return qi.DISCLOSURE_OPEN;case"disclosure-closed":return qi.DISCLOSURE_CLOSED;case"none":default:return qi.NONE}}},Xi=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:nr.TOKEN_VALUE}},Ji=Xi("top"),Yi=Xi("right"),$i=Xi("bottom"),Zi=Xi("left");!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.SCROLL=2]="SCROLL",t[t.AUTO=3]="AUTO"}(Gi||(Gi={}));var to,eo={name:"overflow",initialValue:"visible",prefix:!1,type:nr.LIST,parse:function(t){return t.filter(Cn).map((function(t){switch(t.value){case"hidden":return Gi.HIDDEN;case"scroll":return Gi.SCROLL;case"auto":return Gi.AUTO;case"visible":default:return Gi.VISIBLE}}))}};!function(t){t.NORMAL="normal",t.BREAK_WORD="break-word"}(to||(to={}));var no,ro={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"break-word":return to.BREAK_WORD;case"normal":default:return to.NORMAL}}},io=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:nr.TYPE_VALUE,format:"length-percentage"}},oo=io("top"),ao=io("right"),so=io("bottom"),uo=io("left");!function(t){t[t.LEFT=0]="LEFT",t[t.CENTER=1]="CENTER",t[t.RIGHT=2]="RIGHT"}(no||(no={}));var co,lo={name:"text-align",initialValue:"left",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"right":return no.RIGHT;case"center":case"justify":return no.CENTER;case"left":default:return no.LEFT}}};!function(t){t[t.STATIC=0]="STATIC",t[t.RELATIVE=1]="RELATIVE",t[t.ABSOLUTE=2]="ABSOLUTE",t[t.FIXED=3]="FIXED",t[t.STICKY=4]="STICKY"}(co||(co={}));var Ao,fo={name:"position",initialValue:"static",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"relative":return co.RELATIVE;case"absolute":return co.ABSOLUTE;case"fixed":return co.FIXED;case"sticky":return co.STICKY}return co.STATIC}},ho={name:"text-shadow",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(t){return 1===t.length&&En(t[0],"none")?[]:kn(t).map((function(t){for(var e={color:ar.TRANSPARENT,offsetX:On,offsetY:On,blur:On},n=0,r=0;r<t.length;r++){var i=t[r];Qn(i)?(0===n?e.offsetX=i:1===n?e.offsetY=i:e.blur=i,n++):e.color=Xn.parse(i)}return e}))}};!function(t){t[t.NONE=0]="NONE",t[t.LOWERCASE=1]="LOWERCASE",t[t.UPPERCASE=2]="UPPERCASE",t[t.CAPITALIZE=3]="CAPITALIZE"}(Ao||(Ao={}));var po,go={name:"text-transform",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"uppercase":return Ao.UPPERCASE;case"lowercase":return Ao.LOWERCASE;case"capitalize":return Ao.CAPITALIZE}return Ao.NONE}},mo={name:"transform",initialValue:"none",prefix:!0,type:nr.VALUE,parse:function(t){if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;if(t.type===h.FUNCTION){var e=vo[t.name];if("undefined"===typeof e)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},vo={matrix:function(t){var e=t.filter((function(t){return t.type===h.NUMBER_TOKEN})).map((function(t){return t.number}));return 6===e.length?e:null},matrix3d:function(t){var e=t.filter((function(t){return t.type===h.NUMBER_TOKEN})).map((function(t){return t.number})),n=e[0],r=e[1],i=(e[2],e[3],e[4]),o=e[5],a=(e[6],e[7],e[8],e[9],e[10],e[11],e[12]),s=e[13];return e[14],e[15],16===e.length?[n,r,i,o,a,s]:null}},wo={type:h.PERCENTAGE_TOKEN,number:50,flags:Mt},yo=[wo,wo],bo={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:nr.LIST,parse:function(t){var e=t.filter(In);return 2!==e.length?yo:[e[0],e[1]]}};!function(t){t[t.VISIBLE=0]="VISIBLE",t[t.HIDDEN=1]="HIDDEN",t[t.COLLAPSE=2]="COLLAPSE"}(po||(po={}));var Bo,xo={name:"visible",initialValue:"none",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"hidden":return po.HIDDEN;case"collapse":return po.COLLAPSE;case"visible":default:return po.VISIBLE}}};!function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"}(Bo||(Bo={}));var No,_o={name:"word-break",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"break-all":return Bo.BREAK_ALL;case"keep-all":return Bo.KEEP_ALL;case"normal":default:return Bo.NORMAL}}},Co={name:"z-index",initialValue:"auto",prefix:!1,type:nr.VALUE,parse:function(t){if(t.type===h.IDENT_TOKEN)return{auto:!0,order:0};if(_n(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},So={name:"opacity",initialValue:"1",type:nr.VALUE,prefix:!1,parse:function(t){return _n(t)?t.number:1}},Eo={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:nr.TYPE_VALUE,format:"color"},Lo={name:"text-decoration-line",initialValue:"none",prefix:!1,type:nr.LIST,parse:function(t){return t.filter(Cn).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},Fo={name:"font-family",initialValue:"",prefix:!1,type:nr.LIST,parse:function(t){var e=[],n=[];return t.forEach((function(t){switch(t.type){case h.IDENT_TOKEN:case h.STRING_TOKEN:e.push(t.value);break;case h.NUMBER_TOKEN:e.push(t.number.toString());break;case h.COMMA_TOKEN:n.push(e.join(" ")),e.length=0}})),e.length&&n.push(e.join(" ")),n.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},ko={name:"font-size",initialValue:"0",prefix:!1,type:nr.TYPE_VALUE,format:"length"},Uo={name:"font-weight",initialValue:"normal",type:nr.VALUE,prefix:!1,parse:function(t){if(_n(t))return t.number;if(Cn(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Qo={name:"font-variant",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(t){return t.filter(Cn).map((function(t){return t.value}))}};!function(t){t.NORMAL="normal",t.ITALIC="italic",t.OBLIQUE="oblique"}(No||(No={}));var Io,Po={name:"font-style",initialValue:"normal",prefix:!1,type:nr.IDENT_VALUE,parse:function(t){switch(t){case"oblique":return No.OBLIQUE;case"italic":return No.ITALIC;case"normal":default:return No.NORMAL}}},Oo=function(t,e){return 0!==(t&e)},To={name:"content",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(t){if(0===t.length)return[];var e=t[0];return e.type===h.IDENT_TOKEN&&"none"===e.value?[]:t}},Mo={name:"counter-increment",initialValue:"none",prefix:!0,type:nr.LIST,parse:function(t){if(0===t.length)return null;var e=t[0];if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;for(var n=[],r=t.filter(Ln),i=0;i<r.length;i++){var o=r[i],a=r[i+1];if(o.type===h.IDENT_TOKEN){var s=a&&_n(a)?a.number:1;n.push({counter:o.value,increment:s})}}return n}},Ho={name:"counter-reset",initialValue:"none",prefix:!0,type:nr.LIST,parse:function(t){if(0===t.length)return[];for(var e=[],n=t.filter(Ln),r=0;r<n.length;r++){var i=n[r],o=n[r+1];if(Cn(i)&&"none"!==i.value){var a=o&&_n(o)?o.number:0;e.push({counter:i.value,reset:a})}}return e}},Ro={name:"quotes",initialValue:"none",prefix:!0,type:nr.LIST,parse:function(t){if(0===t.length)return null;var e=t[0];if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;var n=[],r=t.filter(Sn);if(r.length%2!==0)return null;for(var i=0;i<r.length;i+=2){var o=r[i].value,a=r[i+1].value;n.push({open:o,close:a})}return n}},Do=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},jo={name:"box-shadow",initialValue:"none",type:nr.LIST,prefix:!1,parse:function(t){return 1===t.length&&En(t[0],"none")?[]:kn(t).map((function(t){for(var e={color:255,offsetX:On,offsetY:On,blur:On,spread:On,inset:!1},n=0,r=0;r<t.length;r++){var i=t[r];En(i,"inset")?e.inset=!0:Qn(i)?(0===n?e.offsetX=i:1===n?e.offsetY=i:2===n?e.blur=i:e.spread=i,n++):e.color=Xn.parse(i)}return e}))}},zo=function(){function t(t){this.backgroundClip=Vo(ur,t.backgroundClip),this.backgroundColor=Vo(cr,t.backgroundColor),this.backgroundImage=Vo(ii,t.backgroundImage),this.backgroundOrigin=Vo(oi,t.backgroundOrigin),this.backgroundPosition=Vo(ai,t.backgroundPosition),this.backgroundRepeat=Vo(ui,t.backgroundRepeat),this.backgroundSize=Vo(Ai,t.backgroundSize),this.borderTopColor=Vo(pi,t.borderTopColor),this.borderRightColor=Vo(di,t.borderRightColor),this.borderBottomColor=Vo(gi,t.borderBottomColor),this.borderLeftColor=Vo(mi,t.borderLeftColor),this.borderTopLeftRadius=Vo(wi,t.borderTopLeftRadius),this.borderTopRightRadius=Vo(yi,t.borderTopRightRadius),this.borderBottomRightRadius=Vo(bi,t.borderBottomRightRadius),this.borderBottomLeftRadius=Vo(Bi,t.borderBottomLeftRadius),this.borderTopStyle=Vo(_i,t.borderTopStyle),this.borderRightStyle=Vo(Ci,t.borderRightStyle),this.borderBottomStyle=Vo(Si,t.borderBottomStyle),this.borderLeftStyle=Vo(Ei,t.borderLeftStyle),this.borderTopWidth=Vo(Fi,t.borderTopWidth),this.borderRightWidth=Vo(ki,t.borderRightWidth),this.borderBottomWidth=Vo(Ui,t.borderBottomWidth),this.borderLeftWidth=Vo(Qi,t.borderLeftWidth),this.boxShadow=Vo(jo,t.boxShadow),this.color=Vo(Ii,t.color),this.display=Vo(Pi,t.display),this.float=Vo(Mi,t.cssFloat),this.fontFamily=Vo(Fo,t.fontFamily),this.fontSize=Vo(ko,t.fontSize),this.fontStyle=Vo(Po,t.fontStyle),this.fontVariant=Vo(Qo,t.fontVariant),this.fontWeight=Vo(Uo,t.fontWeight),this.letterSpacing=Vo(Hi,t.letterSpacing),this.lineBreak=Vo(Di,t.lineBreak),this.lineHeight=Vo(ji,t.lineHeight),this.listStyleImage=Vo(Ki,t.listStyleImage),this.listStylePosition=Vo(Vi,t.listStylePosition),this.listStyleType=Vo(Wi,t.listStyleType),this.marginTop=Vo(Ji,t.marginTop),this.marginRight=Vo(Yi,t.marginRight),this.marginBottom=Vo($i,t.marginBottom),this.marginLeft=Vo(Zi,t.marginLeft),this.opacity=Vo(So,t.opacity);var e=Vo(eo,t.overflow);this.overflowX=e[0],this.overflowY=e[e.length>1?1:0],this.overflowWrap=Vo(ro,t.overflowWrap),this.paddingTop=Vo(oo,t.paddingTop),this.paddingRight=Vo(ao,t.paddingRight),this.paddingBottom=Vo(so,t.paddingBottom),this.paddingLeft=Vo(uo,t.paddingLeft),this.position=Vo(fo,t.position),this.textAlign=Vo(lo,t.textAlign),this.textDecorationColor=Vo(Eo,t.textDecorationColor||t.color),this.textDecorationLine=Vo(Lo,t.textDecorationLine),this.textShadow=Vo(ho,t.textShadow),this.textTransform=Vo(go,t.textTransform),this.transform=Vo(mo,t.transform),this.transformOrigin=Vo(bo,t.transformOrigin),this.visibility=Vo(xo,t.visibility),this.wordBreak=Vo(_o,t.wordBreak),this.zIndex=Vo(Co,t.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===po.VISIBLE},t.prototype.isTransparent=function(){return Jn(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return this.position!==co.STATIC},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==xi.NONE},t.prototype.isInlineLevel=function(){return Oo(this.display,4)||Oo(this.display,33554432)||Oo(this.display,268435456)||Oo(this.display,536870912)||Oo(this.display,67108864)||Oo(this.display,134217728)},t}(),Ko=function(){function t(t){this.content=Vo(To,t.content),this.quotes=Vo(Ro,t.quotes)}return t}(),qo=function(){function t(t){this.counterIncrement=Vo(Mo,t.counterIncrement),this.counterReset=Vo(Ho,t.counterReset)}return t}(),Vo=function(t,e){var n=new Bn,r=null!==e&&"undefined"!==typeof e?e.toString():t.initialValue;n.write(r);var i=new xn(n.read());switch(t.type){case nr.IDENT_VALUE:var o=i.parseComponentValue();return t.parse(Cn(o)?o.value:t.initialValue);case nr.VALUE:return t.parse(i.parseComponentValue());case nr.LIST:return t.parse(i.parseComponentValues());case nr.TOKEN_VALUE:return i.parseComponentValue();case nr.TYPE_VALUE:switch(t.format){case"angle":return qn.parse(i.parseComponentValue());case"color":return Xn.parse(i.parseComponentValue());case"image":return ti.parse(i.parseComponentValue());case"length":var a=i.parseComponentValue();return Qn(a)?a:On;case"length-percentage":var s=i.parseComponentValue();return In(s)?s:On}}throw new Error("Attempting to parse unsupported css format type "+t.format)},Go=function(){function t(t){this.styles=new zo(window.getComputedStyle(t,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Fa(t)&&(t.style.transform="none"),this.bounds=a(t),this.flags=0}return t}(),Wo=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),Xo=function(t,e,n){var r=$o(t,e),i=[],o=0;return r.forEach((function(t){if(e.textDecorationLine.length||t.trim().length>0)if(Sr.SUPPORT_RANGE_BOUNDS)i.push(new Wo(t,Yo(n,o,t.length)));else{var r=n.splitText(t.length);i.push(new Wo(t,Jo(n))),n=r}else Sr.SUPPORT_RANGE_BOUNDS||(n=n.splitText(t.length));o+=t.length})),i},Jo=function(t){var e=t.ownerDocument;if(e){var n=e.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var r=t.parentNode;if(r){r.replaceChild(n,t);var i=a(n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return new o(0,0,0,0)},Yo=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),o.fromClientRect(i.getBoundingClientRect())},$o=function(t,e){return 0!==e.letterSpacing?u(t).map((function(t){return c(t)})):Zo(t,e)},Zo=function(t,e){for(var n,r=Pt(t,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap===to.BREAK_WORD?"break-word":e.wordBreak}),i=[];!(n=r.next()).done;)n.value&&i.push(n.value.slice());return i},ta=function(){function t(t,e){this.text=ea(t.data,e.textTransform),this.textBounds=Xo(this.text,e,t)}return t}(),ea=function(t,e){switch(e){case Ao.LOWERCASE:return t.toLowerCase();case Ao.CAPITALIZE:return t.replace(na,ra);case Ao.UPPERCASE:return t.toUpperCase();default:return t}},na=/(^|\s|:|-|\(|\))([a-z])/g,ra=function(t,e,n){return t.length>0?e+n.toUpperCase():t},ia=function(t){function n(e){var n=t.call(this,e)||this;return n.src=e.currentSrc||e.src,n.intrinsicWidth=e.naturalWidth,n.intrinsicHeight=e.naturalHeight,Lr.getInstance().addImage(n.src),n}return e(n,t),n}(Go),oa=function(t){function n(e){var n=t.call(this,e)||this;return n.canvas=e,n.intrinsicWidth=e.width,n.intrinsicHeight=e.height,n}return e(n,t),n}(Go),aa=function(t){function n(e){var n=t.call(this,e)||this,r=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(e)),n.intrinsicWidth=e.width.baseVal.value,n.intrinsicHeight=e.height.baseVal.value,Lr.getInstance().addImage(n.svg),n}return e(n,t),n}(Go),sa=function(t){function n(e){var n=t.call(this,e)||this;return n.value=e.value,n}return e(n,t),n}(Go),ua=function(t){function n(e){var n=t.call(this,e)||this;return n.start=e.start,n.reversed="boolean"===typeof e.reversed&&!0===e.reversed,n}return e(n,t),n}(Go),ca=[{type:h.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],la=[{type:h.PERCENTAGE_TOKEN,flags:0,number:50}],Aa=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new o(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},fa=function(t){var e=t.type===da?new Array(t.value.length+1).join("\u2022"):t.value;return 0===e.length?t.placeholder||"":e},ha="checkbox",pa="radio",da="password",ga=707406591,ma=function(t){function n(e){var n=t.call(this,e)||this;switch(n.type=e.type.toLowerCase(),n.checked=e.checked,n.value=fa(e),n.type!==ha&&n.type!==pa||(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=li.SOLID,n.styles.backgroundClip=[rr.BORDER_BOX],n.styles.backgroundOrigin=[0],n.bounds=Aa(n.bounds)),n.type){case ha:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=ca;break;case pa:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=la}return n}return e(n,t),n}(Go),va=function(t){function n(e){var n=t.call(this,e)||this,r=e.options[e.selectedIndex||0];return n.value=r&&r.text||"",n}return e(n,t),n}(Go),wa=function(t){function n(e){var n=t.call(this,e)||this;return n.value=e.value,n}return e(n,t),n}(Go),ya=function(t){return Xn.parse(xn.create(t).parseComponentValue())},ba=function(t){function n(e){var n=t.call(this,e)||this;n.src=e.src,n.width=parseInt(e.width,10)||0,n.height=parseInt(e.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(e.contentWindow&&e.contentWindow.document&&e.contentWindow.document.documentElement){n.tree=_a(e.contentWindow.document.documentElement);var r=e.contentWindow.document.documentElement?ya(getComputedStyle(e.contentWindow.document.documentElement).backgroundColor):ar.TRANSPARENT,i=e.contentWindow.document.body?ya(getComputedStyle(e.contentWindow.document.body).backgroundColor):ar.TRANSPARENT;n.backgroundColor=Jn(r)?Jn(i)?n.styles.backgroundColor:i:r}}catch(Fe){}return n}return e(n,t),n}(Go),Ba=["OL","UL","MENU"],xa=function t(e,n,r){for(var i=e.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,Ea(i)&&i.data.trim().length>0)n.textNodes.push(new ta(i,n.styles));else if(La(i)){var a=Na(i);a.styles.isVisible()&&(Ca(i,a,r)?a.flags|=4:Sa(a.styles)&&(a.flags|=2),-1!==Ba.indexOf(i.tagName)&&(a.flags|=8),n.elements.push(a),za(i)||Oa(i)||Ka(i)||t(i,a,r))}},Na=function(t){return Ha(t)?new ia(t):Ma(t)?new oa(t):Oa(t)?new aa(t):Ua(t)?new sa(t):Qa(t)?new ua(t):Ia(t)?new ma(t):Ka(t)?new va(t):za(t)?new wa(t):Ra(t)?new ba(t):new Go(t)},_a=function(t){var e=Na(t);return e.flags|=4,xa(t,e,e),e},Ca=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ta(t)&&n.styles.isTransparent()},Sa=function(t){return t.isPositioned()||t.isFloating()},Ea=function(t){return t.nodeType===Node.TEXT_NODE},La=function(t){return t.nodeType===Node.ELEMENT_NODE},Fa=function(t){return La(t)&&"undefined"!==typeof t.style&&!ka(t)},ka=function(t){return"object"===typeof t.className},Ua=function(t){return"LI"===t.tagName},Qa=function(t){return"OL"===t.tagName},Ia=function(t){return"INPUT"===t.tagName},Pa=function(t){return"HTML"===t.tagName},Oa=function(t){return"svg"===t.tagName},Ta=function(t){return"BODY"===t.tagName},Ma=function(t){return"CANVAS"===t.tagName},Ha=function(t){return"IMG"===t.tagName},Ra=function(t){return"IFRAME"===t.tagName},Da=function(t){return"STYLE"===t.tagName},ja=function(t){return"SCRIPT"===t.tagName},za=function(t){return"TEXTAREA"===t.tagName},Ka=function(t){return"SELECT"===t.tagName},qa=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n[Math.max(0,n.length-1)]+=t.increment)}));var o=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];o.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),o},t}(),Va={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ga={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Wa={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Xa={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Ja=function(t,e,n,r,i,o){return t<e||t>n?cs(t,i,o.length>0):r.integers.reduce((function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e}),"")+o},Ya=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},$a=function(t,e,n,r,i){var o=n-e+1;return(t<0?"-":"")+(Ya(Math.abs(t),o,r,(function(t){return c(Math.floor(t%o)+e)}))+i)},Za=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return Ya(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},ts=1,es=2,ns=4,rs=8,is=function(t,e,n,r,i,o){if(t<-9999||t>9999)return cs(t,qi.CJK_DECIMAL,i.length>0);var a=Math.abs(t),s=i;if(0===a)return e[0]+s;for(var u=0;a>0&&u<=4;u++){var c=a%10;0===c&&Oo(o,ts)&&""!==s?s=e[c]+s:c>1||1===c&&0===u||1===c&&1===u&&Oo(o,es)||1===c&&1===u&&Oo(o,ns)&&t>100||1===c&&u>1&&Oo(o,rs)?s=e[c]+(u>0?n[u-1]:"")+s:1===c&&u>0&&(s=n[u-1]+s),a=Math.floor(a/10)}return(t<0?r:"")+s},os="\u5341\u767e\u5343\u842c",as="\u62fe\u4f70\u4edf\u842c",ss="\u30de\u30a4\u30ca\u30b9",us="\ub9c8\uc774\ub108\uc2a4",cs=function(t,e,n){var r=n?". ":"",i=n?"\u3001":"",o=n?", ":"",a=n?" ":"";switch(e){case qi.DISC:return"\u2022"+a;case qi.CIRCLE:return"\u25e6"+a;case qi.SQUARE:return"\u25fe"+a;case qi.DECIMAL_LEADING_ZERO:var s=$a(t,48,57,!0,r);return s.length<4?"0"+s:s;case qi.CJK_DECIMAL:return Za(t,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",i);case qi.LOWER_ROMAN:return Ja(t,1,3999,Va,qi.DECIMAL,r).toLowerCase();case qi.UPPER_ROMAN:return Ja(t,1,3999,Va,qi.DECIMAL,r);case qi.LOWER_GREEK:return $a(t,945,969,!1,r);case qi.LOWER_ALPHA:return $a(t,97,122,!1,r);case qi.UPPER_ALPHA:return $a(t,65,90,!1,r);case qi.ARABIC_INDIC:return $a(t,1632,1641,!0,r);case qi.ARMENIAN:case qi.UPPER_ARMENIAN:return Ja(t,1,9999,Ga,qi.DECIMAL,r);case qi.LOWER_ARMENIAN:return Ja(t,1,9999,Ga,qi.DECIMAL,r).toLowerCase();case qi.BENGALI:return $a(t,2534,2543,!0,r);case qi.CAMBODIAN:case qi.KHMER:return $a(t,6112,6121,!0,r);case qi.CJK_EARTHLY_BRANCH:return Za(t,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",i);case qi.CJK_HEAVENLY_STEM:return Za(t,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",i);case qi.CJK_IDEOGRAPHIC:case qi.TRAD_CHINESE_INFORMAL:return is(t,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",os,"\u8ca0",i,es|ns|rs);case qi.TRAD_CHINESE_FORMAL:return is(t,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396",as,"\u8ca0",i,ts|es|ns|rs);case qi.SIMP_CHINESE_INFORMAL:return is(t,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",os,"\u8d1f",i,es|ns|rs);case qi.SIMP_CHINESE_FORMAL:return is(t,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396",as,"\u8d1f",i,ts|es|ns|rs);case qi.JAPANESE_INFORMAL:return is(t,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07",ss,i,0);case qi.JAPANESE_FORMAL:return is(t,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07",ss,i,ts|es|ns);case qi.KOREAN_HANGUL_FORMAL:return is(t,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc",us,o,ts|es|ns);case qi.KOREAN_HANJA_INFORMAL:return is(t,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c",us,o,0);case qi.KOREAN_HANJA_FORMAL:return is(t,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343",us,o,ts|es|ns);case qi.DEVANAGARI:return $a(t,2406,2415,!0,r);case qi.GEORGIAN:return Ja(t,1,19999,Xa,qi.DECIMAL,r);case qi.GUJARATI:return $a(t,2790,2799,!0,r);case qi.GURMUKHI:return $a(t,2662,2671,!0,r);case qi.HEBREW:return Ja(t,1,10999,Wa,qi.DECIMAL,r);case qi.HIRAGANA:return Za(t,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case qi.HIRAGANA_IROHA:return Za(t,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case qi.KANNADA:return $a(t,3302,3311,!0,r);case qi.KATAKANA:return Za(t,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",i);case qi.KATAKANA_IROHA:return Za(t,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",i);case qi.LAO:return $a(t,3792,3801,!0,r);case qi.MONGOLIAN:return $a(t,6160,6169,!0,r);case qi.MYANMAR:return $a(t,4160,4169,!0,r);case qi.ORIYA:return $a(t,2918,2927,!0,r);case qi.PERSIAN:return $a(t,1776,1785,!0,r);case qi.TAMIL:return $a(t,3046,3055,!0,r);case qi.TELUGU:return $a(t,3174,3183,!0,r);case qi.THAI:return $a(t,3664,3673,!0,r);case qi.TIBETAN:return $a(t,3872,3881,!0,r);case qi.DECIMAL:default:return $a(t,48,57,!0,r)}},ls="data-html2canvas-ignore",As=function(){function t(t,e){if(this.options=e,this.scrolledElements=[],this.referenceElement=t,this.counters=new qa,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement)}return t.prototype.toIFrame=function(t,e){var n=this,o=hs(t,e);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,u=o.contentWindow,c=u.document,l=ps(o).then((function(){return r(n,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(vs),u&&(u.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||u.scrollY===e.top&&u.scrollX===e.left||(c.documentElement.style.top=-e.top+"px",c.documentElement.style.left=-e.left+"px",c.documentElement.style.position="absolute")),t=this.options.onclone,"undefined"===typeof this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"===typeof t?[2,Promise.resolve().then((function(){return t(c)})).then((function(){return o}))]:[2,o]}}))}))}));return c.open(),c.write(gs(document.doctype)+"<html></html>"),ms(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},t.prototype.createElementClone=function(t){if(Ma(t))return this.createCanvasClone(t);if(Da(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Ha(e)&&"lazy"===e.loading&&(e.loading="eager"),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"===typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(Fe){if(Er.getInstance(this.options.id).error("Unable to access cssRules property",Fe),"SecurityError"!==Fe.name)throw Fe}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){if(this.options.inlineImages&&t.ownerDocument){var e=t.ownerDocument.createElement("img");try{return e.src=t.toDataURL(),e}catch(Fe){Er.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var r=t.getContext("2d"),i=n.getContext("2d");return i&&(r?i.putImageData(r.getImageData(0,0,t.width,t.height),0,0):i.drawImage(t,0,0)),n}catch(Fe){}return n},t.prototype.cloneNode=function(t){if(Ea(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var e=t.ownerDocument.defaultView;if(e&&La(t)&&(Fa(t)||ka(t))){var n=this.createElementClone(t),r=e.getComputedStyle(t),i=e.getComputedStyle(t,":before"),o=e.getComputedStyle(t,":after");this.referenceElement===t&&Fa(n)&&(this.clonedReferenceElement=n),Ta(n)&&Ns(n);for(var a=this.counters.parse(new qo(r)),s=this.resolvePseudoContent(t,n,i,Io.BEFORE),u=t.firstChild;u;u=u.nextSibling)La(u)&&(ja(u)||u.hasAttribute(ls)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(u))||this.options.copyStyles&&La(u)&&Da(u)||n.appendChild(this.cloneNode(u));s&&n.insertBefore(s,n.firstChild);var c=this.resolvePseudoContent(t,n,o,Io.AFTER);return c&&n.appendChild(c),this.counters.pop(a),r&&(this.options.copyStyles||ka(t))&&!Ra(t)&&ds(r,n),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(za(t)||Ka(t))&&(za(n)||Ka(n))&&(n.value=t.value),n}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var o=n.content,a=e.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new qo(n));var s=new Ko(n),u=a.createElement("html2canvaspseudoelement");ds(n,u),s.content.forEach((function(e){if(e.type===h.STRING_TOKEN)u.appendChild(a.createTextNode(e.value));else if(e.type===h.URL_TOKEN){var n=a.createElement("img");n.src=e.value,n.style.opacity="1",u.appendChild(n)}else if(e.type===h.FUNCTION){if("attr"===e.name){var r=e.values.filter(Cn);r.length&&u.appendChild(a.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(Fn),c=o[0],l=o[1];if(c&&Cn(c)){var A=i.counters.getCounterValue(c.value),f=l&&Cn(l)?Wi.parse(l.value):qi.DECIMAL;u.appendChild(a.createTextNode(cs(A,f,!1)))}}else if("counters"===e.name){var p=e.values.filter(Fn),d=(c=p[0],p[1]);if(l=p[2],c&&Cn(c)){var g=i.counters.getCounterValues(c.value),m=l&&Cn(l)?Wi.parse(l.value):qi.DECIMAL,v=d&&d.type===h.STRING_TOKEN?d.value:"",w=g.map((function(t){return cs(t,m,!1)})).join(v);u.appendChild(a.createTextNode(w))}}}else if(e.type===h.IDENT_TOKEN)switch(e.value){case"open-quote":u.appendChild(a.createTextNode(Do(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":u.appendChild(a.createTextNode(Do(s.quotes,--i.quoteDepth,!1)));break;default:u.appendChild(a.createTextNode(e.value))}})),u.className=bs+" "+Bs;var c=r===Io.BEFORE?" "+bs:" "+Bs;return ka(e)?e.className.baseValue+=c:e.className+=c,u}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();!function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"}(Io||(Io={}));var fs,hs=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(ls,"true"),t.body.appendChild(n),n},ps=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=i.onreadystatechange=function(){r.onload=t.onload=i.onreadystatechange=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},ds=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);"content"!==r&&e.style.setProperty(r,t.getPropertyValue(r))}return e},gs=function(t){var e="";return t&&(e+="<!DOCTYPE ",t.name&&(e+=t.name),t.internalSubset&&(e+=t.internalSubset),t.publicId&&(e+='"'+t.publicId+'"'),t.systemId&&(e+='"'+t.systemId+'"'),e+=">"),e},ms=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},vs=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},ws=":before",ys=":after",bs="___html2canvas___pseudoelement_before",Bs="___html2canvas___pseudoelement_after",xs='{\n    content: "" !important;\n    display: none !important;\n}',Ns=function(t){_s(t,"."+bs+ws+xs+"\n         ."+Bs+ys+xs)},_s=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}};!function(t){t[t.VECTOR=0]="VECTOR",t[t.BEZIER_CURVE=1]="BEZIER_CURVE"}(fs||(fs={}));var Cs,Ss=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},Es=function(t,e,n,r,i){return t.map((function(t,o){switch(o){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))},Ls=function(){function t(t,e){this.type=fs.VECTOR,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),Fs=function(t,e,n){return new Ls(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},ks=function(){function t(t,e,n,r){this.type=fs.BEZIER_CURVE,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=Fs(this.start,this.startControl,e),i=Fs(this.startControl,this.endControl,e),o=Fs(this.endControl,this.end,e),a=Fs(r,i,e),s=Fs(i,o,e),u=Fs(a,s,e);return n?new t(this.start,r,a,u):new t(u,s,o,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Us=function(t){return t.type===fs.BEZIER_CURVE},Qs=function(){function t(t){var e=t.styles,n=t.bounds,r=Hn(e.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],a=Hn(e.borderTopRightRadius,n.width,n.height),s=a[0],u=a[1],c=Hn(e.borderBottomRightRadius,n.width,n.height),l=c[0],A=c[1],f=Hn(e.borderBottomLeftRadius,n.width,n.height),h=f[0],p=f[1],d=[];d.push((i+s)/n.width),d.push((h+l)/n.width),d.push((o+p)/n.height),d.push((u+A)/n.height);var g=Math.max.apply(Math,d);g>1&&(i/=g,o/=g,s/=g,u/=g,l/=g,A/=g,h/=g,p/=g);var m=n.width-s,v=n.height-A,w=n.width-l,y=n.height-p,b=e.borderTopWidth,B=e.borderRightWidth,x=e.borderBottomWidth,N=e.borderLeftWidth,_=Rn(e.paddingTop,t.bounds.width),C=Rn(e.paddingRight,t.bounds.width),S=Rn(e.paddingBottom,t.bounds.width),E=Rn(e.paddingLeft,t.bounds.width);this.topLeftBorderBox=i>0||o>0?Is(n.left,n.top,i,o,Cs.TOP_LEFT):new Ls(n.left,n.top),this.topRightBorderBox=s>0||u>0?Is(n.left+m,n.top,s,u,Cs.TOP_RIGHT):new Ls(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||A>0?Is(n.left+w,n.top+v,l,A,Cs.BOTTOM_RIGHT):new Ls(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=h>0||p>0?Is(n.left,n.top+y,h,p,Cs.BOTTOM_LEFT):new Ls(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Is(n.left+N,n.top+b,Math.max(0,i-N),Math.max(0,o-b),Cs.TOP_LEFT):new Ls(n.left+N,n.top+b),this.topRightPaddingBox=s>0||u>0?Is(n.left+Math.min(m,n.width+N),n.top+b,m>n.width+N?0:s-N,u-b,Cs.TOP_RIGHT):new Ls(n.left+n.width-B,n.top+b),this.bottomRightPaddingBox=l>0||A>0?Is(n.left+Math.min(w,n.width-N),n.top+Math.min(v,n.height+b),Math.max(0,l-B),A-x,Cs.BOTTOM_RIGHT):new Ls(n.left+n.width-B,n.top+n.height-x),this.bottomLeftPaddingBox=h>0||p>0?Is(n.left+N,n.top+y,Math.max(0,h-N),p-x,Cs.BOTTOM_LEFT):new Ls(n.left+N,n.top+n.height-x),this.topLeftContentBox=i>0||o>0?Is(n.left+N+E,n.top+b+_,Math.max(0,i-(N+E)),Math.max(0,o-(b+_)),Cs.TOP_LEFT):new Ls(n.left+N+E,n.top+b+_),this.topRightContentBox=s>0||u>0?Is(n.left+Math.min(m,n.width+N+E),n.top+b+_,m>n.width+N+E?0:s-N+E,u-(b+_),Cs.TOP_RIGHT):new Ls(n.left+n.width-(B+C),n.top+b+_),this.bottomRightContentBox=l>0||A>0?Is(n.left+Math.min(w,n.width-(N+E)),n.top+Math.min(v,n.height+b+_),Math.max(0,l-(B+C)),A-(x+S),Cs.BOTTOM_RIGHT):new Ls(n.left+n.width-(B+C),n.top+n.height-(x+S)),this.bottomLeftContentBox=h>0||p>0?Is(n.left+N+E,n.top+y,Math.max(0,h-(N+E)),p-(x+S),Cs.BOTTOM_LEFT):new Ls(n.left+N+E,n.top+n.height-(x+S))}return t}();!function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Cs||(Cs={}));var Is=function(t,e,n,r,i){var o=(Math.sqrt(2)-1)/3*4,a=n*o,s=r*o,u=t+n,c=e+r;switch(i){case Cs.TOP_LEFT:return new ks(new Ls(t,c),new Ls(t,c-s),new Ls(u-a,e),new Ls(u,e));case Cs.TOP_RIGHT:return new ks(new Ls(t,e),new Ls(t+a,e),new Ls(u,c-s),new Ls(u,c));case Cs.BOTTOM_RIGHT:return new ks(new Ls(u,e),new Ls(u,e+s),new Ls(t+a,c),new Ls(t,c));case Cs.BOTTOM_LEFT:default:return new ks(new Ls(u,c),new Ls(u-a,c),new Ls(t,e+s),new Ls(t,e))}},Ps=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Os=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Ts=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Ms=function(){function t(t,e,n){this.type=0,this.offsetX=t,this.offsetY=e,this.matrix=n,this.target=6}return t}(),Hs=function(){function t(t,e){this.type=1,this.target=e,this.path=t}return t}(),Rs=function(t){return 0===t.type},Ds=function(t){return 1===t.type},js=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),zs=function(){function t(t,e){if(this.container=t,this.effects=e.slice(0),this.curves=new Qs(t),null!==t.styles.transform){var n=t.bounds.left+t.styles.transformOrigin[0].number,r=t.bounds.top+t.styles.transformOrigin[1].number,i=t.styles.transform;this.effects.push(new Ms(n,r,i))}if(t.styles.overflowX!==Gi.VISIBLE){var o=Ps(this.curves),a=Ts(this.curves);Ss(o,a)?this.effects.push(new Hs(o,6)):(this.effects.push(new Hs(o,2)),this.effects.push(new Hs(a,4)))}}return t.prototype.getParentEffects=function(){var t=this.effects.slice(0);if(this.container.styles.overflowX!==Gi.VISIBLE){var e=Ps(this.curves),n=Ts(this.curves);Ss(e,n)||t.push(new Hs(n,6))}return t},t}(),Ks=function t(e,n,r,i){e.container.elements.forEach((function(o){var a=Oo(o.flags,4),s=Oo(o.flags,2),u=new zs(o,e.getParentEffects());Oo(o.styles.display,2048)&&i.push(u);var c=Oo(o.flags,8)?[]:i;if(a||s){var l=a||o.styles.isPositioned()?r:n,A=new js(u);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var f=o.styles.zIndex.order;if(f<0){var h=0;l.negativeZIndex.some((function(t,e){return f>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),l.negativeZIndex.splice(h,0,A)}else if(f>0){var p=0;l.positiveZIndex.some((function(t,e){return f>=t.element.container.styles.zIndex.order?(p=e+1,!1):p>0})),l.positiveZIndex.splice(p,0,A)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(A)}else o.styles.isFloating()?l.nonPositionedFloats.push(A):l.nonPositionedInlineLevel.push(A);t(u,A,a?A:r,c)}else o.styles.isInlineLevel()?n.inlineLevel.push(u):n.nonInlineLevel.push(u),t(u,n,r,c);Oo(o.flags,8)&&qs(o,c)}))},qs=function(t,e){for(var n=t instanceof ua?t.start:1,r=t instanceof ua&&t.reversed,i=0;i<e.length;i++){var o=e[i];o.container instanceof sa&&"number"===typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=cs(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},Vs=function(t){var e=new zs(t,[]),n=new js(e),r=[];return Ks(e,n,n,r),qs(e.container,r),n},Gs=function(t,e){switch(e){case 0:return Ws(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Ws(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Ws(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Ws(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},Ws=function(t,e,n,r){var i=[];return Us(t)?i.push(t.subdivide(.5,!1)):i.push(t),Us(n)?i.push(n.subdivide(.5,!0)):i.push(n),Us(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Us(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},Xs=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Js=function(t){var e=t.styles,n=t.bounds,r=Rn(e.paddingLeft,n.width),i=Rn(e.paddingRight,n.width),o=Rn(e.paddingTop,n.width),a=Rn(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,o+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+o+a))},Ys=function(t,e){return 0===t?e.bounds:2===t?Js(e):Xs(e)},$s=function(t,e){return t===rr.BORDER_BOX?e.bounds:t===rr.CONTENT_BOX?Js(e):Xs(e)},Zs=function(t,e,n){var r=Ys(ru(t.styles.backgroundOrigin,e),t),i=$s(ru(t.styles.backgroundClip,e),t),o=nu(ru(t.styles.backgroundSize,e),n,r),a=o[0],s=o[1],u=Hn(ru(t.styles.backgroundPosition,e),r.width-a,r.height-s);return[iu(ru(t.styles.backgroundRepeat,e),u,o,r,i),Math.round(r.left+u[0]),Math.round(r.top+u[1]),a,s]},tu=function(t){return Cn(t)&&t.value===si.AUTO},eu=function(t){return"number"===typeof t},nu=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=t[0],s=t[1];if(In(a)&&s&&In(s))return[Rn(a,n.width),Rn(s,n.height)];var u=eu(o);if(Cn(a)&&(a.value===si.CONTAIN||a.value===si.COVER))return eu(o)?n.width/n.height<o!==(a.value===si.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=eu(r),l=eu(i),A=c||l;if(tu(a)&&(!s||tu(s)))return c&&l?[r,i]:u||A?A&&u?[c?r:i*o,l?i:r/o]:[c?r:n.width,l?i:n.height]:[n.width,n.height];if(u){var f=0,h=0;return In(a)?f=Rn(a,n.width):In(s)&&(h=Rn(s,n.height)),tu(a)?f=h*o:s&&!tu(s)||(h=f/o),[f,h]}var p=null,d=null;if(In(a)?p=Rn(a,n.width):s&&In(s)&&(d=Rn(s,n.height)),null===p||s&&!tu(s)||(d=c&&l?p/r*i:n.height),null!==d&&tu(a)&&(p=c&&l?d/i*r:n.width),null!==p&&null!==d)return[p,d];throw new Error("Unable to calculate background-size for element")},ru=function(t,e){var n=t[e];return"undefined"===typeof n?t[0]:n},iu=function(t,e,n,r,i){var o=e[0],a=e[1],s=n[0],u=n[1];switch(t){case ni.REPEAT_X:return[new Ls(Math.round(r.left),Math.round(r.top+a)),new Ls(Math.round(r.left+r.width),Math.round(r.top+a)),new Ls(Math.round(r.left+r.width),Math.round(u+r.top+a)),new Ls(Math.round(r.left),Math.round(u+r.top+a))];case ni.REPEAT_Y:return[new Ls(Math.round(r.left+o),Math.round(r.top)),new Ls(Math.round(r.left+o+s),Math.round(r.top)),new Ls(Math.round(r.left+o+s),Math.round(r.height+r.top)),new Ls(Math.round(r.left+o),Math.round(r.height+r.top))];case ni.NO_REPEAT:return[new Ls(Math.round(r.left+o),Math.round(r.top+a)),new Ls(Math.round(r.left+o+s),Math.round(r.top+a)),new Ls(Math.round(r.left+o+s),Math.round(r.top+a+u)),new Ls(Math.round(r.left+o),Math.round(r.top+a+u))];default:return[new Ls(Math.round(i.left),Math.round(i.top)),new Ls(Math.round(i.left+i.width),Math.round(i.top)),new Ls(Math.round(i.left+i.width),Math.round(i.height+i.top)),new Ls(Math.round(i.left),Math.round(i.height+i.top))]}},ou="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",au="Hidden Text",su=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",o.appendChild(n),r.src=ou,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(au)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(au)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:a,middle:s}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return"undefined"===typeof this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),uu=1e4,cu=function(){function t(t){this._activeEffects=[],this.canvas=t.canvas?t.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=t,t.canvas||(this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=t.width+"px",this.canvas.style.height=t.height+"px"),this.fontMetrics=new su(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x+t.scrollX,-t.y+t.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Er.getInstance(t.id).debug("Canvas renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale)}return t.prototype.applyEffects=function(t,e){for(var n=this;this._activeEffects.length;)this.popEffect();t.filter((function(t){return Oo(t.target,e)})).forEach((function(t){return n.applyEffect(t)}))},t.prototype.applyEffect=function(t){this.ctx.save(),Rs(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Ds(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return(e=t.element.container.styles).isVisible()?(this.ctx.globalAlpha=e.opacity,[4,this.renderStackContent(t)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.renderNode=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},t.prototype.renderTextWithLetterSpacing=function(t,e){var n=this;0===e?this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height):u(t.text).map((function(t){return c(t)})).reduce((function(e,r){return n.ctx.fillText(r,e,t.bounds.top+t.bounds.height),e+n.ctx.measureText(r).width}),t.bounds.left)},t.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),n=t.fontFamily.join(", "),r=Nn(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]},t.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,(function(){var n,r,o,a,s=this;return i(this,(function(i){return n=this.createFontStyle(e),r=n[0],o=n[1],a=n[2],this.ctx.font=r,t.textBounds.forEach((function(t){s.ctx.fillStyle=Yn(e.color),s.renderTextWithLetterSpacing(t,e.letterSpacing);var n=e.textShadow;n.length&&t.text.trim().length&&(n.slice(0).reverse().forEach((function(e){s.ctx.shadowColor=Yn(e.color),s.ctx.shadowOffsetX=e.offsetX.number*s.options.scale,s.ctx.shadowOffsetY=e.offsetY.number*s.options.scale,s.ctx.shadowBlur=e.blur.number,s.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height)})),s.ctx.shadowColor="",s.ctx.shadowOffsetX=0,s.ctx.shadowOffsetY=0,s.ctx.shadowBlur=0),e.textDecorationLine.length&&(s.ctx.fillStyle=Yn(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:var n=s.fontMetrics.getMetrics(o,a).baseline;s.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+n),t.bounds.width,1);break;case 2:s.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:var r=s.fontMetrics.getMetrics(o,a).middle;s.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+r),t.bounds.width,1)}})))})),[2]}))}))},t.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=Js(t),i=Ts(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,(function(){var n,r,a,s,u,c,l,A,f,h,p,d,g,m;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(e.effects,4),n=e.container,r=e.curves,a=n.styles,s=0,u=n.textNodes,i.label=1;case 1:return s<u.length?(c=u[s],[4,this.renderTextNode(c,a)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof ia))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return d=i.sent(),this.renderReplacedElement(n,r,d),[3,8];case 7:return i.sent(),Er.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof oa&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof aa))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return d=i.sent(),this.renderReplacedElement(n,r,d),[3,12];case 11:return i.sent(),Er.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof ba&&n.tree?[4,new t({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:l=i.sent(),n.width&&n.height&&this.ctx.drawImage(l,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),i.label=14;case 14:if(n instanceof ma&&(A=Math.min(n.bounds.width,n.bounds.height),n.type===ha?n.checked&&(this.ctx.save(),this.path([new Ls(n.bounds.left+.39363*A,n.bounds.top+.79*A),new Ls(n.bounds.left+.16*A,n.bounds.top+.5549*A),new Ls(n.bounds.left+.27347*A,n.bounds.top+.44071*A),new Ls(n.bounds.left+.39694*A,n.bounds.top+.5649*A),new Ls(n.bounds.left+.72983*A,n.bounds.top+.23*A),new Ls(n.bounds.left+.84*A,n.bounds.top+.34085*A),new Ls(n.bounds.left+.39363*A,n.bounds.top+.79*A)]),this.ctx.fillStyle=Yn(ga),this.ctx.fill(),this.ctx.restore()):n.type===pa&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+A/2,n.bounds.top+A/2,A/4,0,2*Math.PI,!0),this.ctx.fillStyle=Yn(ga),this.ctx.fill(),this.ctx.restore())),lu(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(a)[0],this.ctx.fillStyle=Yn(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign=fu(n.styles.textAlign),m=Js(n),f=0,n.styles.textAlign){case no.CENTER:f+=m.width/2;break;case no.RIGHT:f+=m.width}h=m.add(f,0,0,-m.height/2+1),this.ctx.save(),this.path([new Ls(m.left,m.top),new Ls(m.left+m.width,m.top),new Ls(m.left+m.width,m.top+m.height),new Ls(m.left,m.top+m.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Wo(n.value,h),a.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Oo(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((p=n.styles.listStyleImage).type!==sr.URL)return[3,18];d=void 0,g=p.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return d=i.sent(),this.ctx.drawImage(d,n.bounds.left-(d.width+10),n.bounds.top),[3,18];case 17:return i.sent(),Er.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==qi.NONE&&(this.ctx.font=this.createFontStyle(a)[0],this.ctx.fillStyle=Yn(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",m=new o(n.bounds.left,n.bounds.top+Rn(n.styles.paddingTop,n.bounds.width),n.bounds.width,zi(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Wo(e.listValue,m),a.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},t.prototype.renderStackContent=function(t){return r(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,c,l,A,f,h,p,d,g;return i(this,(function(i){switch(i.label){case 0:return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,n=t.negativeZIndex,i.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),r=0,o=t.nonInlineLevel,i.label=7;case 7:return r<o.length?(g=o[r],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:a=0,s=t.nonPositionedFloats,i.label=11;case 11:return a<s.length?(g=s[a],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return a++,[3,11];case 14:u=0,c=t.nonPositionedInlineLevel,i.label=15;case 15:return u<c.length?(g=c[u],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return u++,[3,15];case 18:l=0,A=t.inlineLevel,i.label=19;case 19:return l<A.length?(g=A[l],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return l++,[3,19];case 22:f=0,h=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return f<h.length?(g=h[f],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return f++,[3,23];case 26:p=0,d=t.positiveZIndex,i.label=27;case 27:return p<d.length?(g=d[p],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}}))}))},t.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},t.prototype.formatPath=function(t){var e=this;t.forEach((function(t,n){var r=Us(t)?t.start:t;0===n?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),Us(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},t.prototype.renderRepeat=function(t,e,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},t.prototype.resizeImage=function(t,e,n){if(t.width===e&&t.height===n)return t;var r=this.canvas.ownerDocument.createElement("canvas");return r.width=e,r.height=n,r.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,n),r},t.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,o,a,s;return i(this,(function(u){switch(u.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var o,a,s,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F,k,U,Q,I,P;return i(this,(function(i){switch(i.label){case 0:if(n.type!==sr.URL)return[3,5];o=void 0,a=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.options.cache.match(a)];case 2:return o=i.sent(),[3,4];case 3:return i.sent(),Er.getInstance(r.options.id).error("Error loading background-image "+a),[3,4];case 4:return o&&(s=Zs(t,e,[o.width,o.height,o.width/o.height]),y=s[0],C=s[1],S=s[2],x=s[3],N=s[4],v=r.ctx.createPattern(r.resizeImage(o,x,N),"repeat"),r.renderRepeat(y,v,C,S)),[3,6];case 5:$r(n)?(u=Zs(t,e,[null,null,null]),y=u[0],C=u[1],S=u[2],x=u[3],N=u[4],c=hr(n.angle,x,N),l=c[0],A=c[1],f=c[2],h=c[3],p=c[4],(d=document.createElement("canvas")).width=x,d.height=N,g=d.getContext("2d"),m=g.createLinearGradient(A,h,f,p),Ar(n.stops,l).forEach((function(t){return m.addColorStop(t.stop,Yn(t.color))})),g.fillStyle=m,g.fillRect(0,0,x,N),x>0&&N>0&&(v=r.ctx.createPattern(d,"repeat"),r.renderRepeat(y,v,C,S))):Zr(n)&&(w=Zs(t,e,[null,null,null]),y=w[0],b=w[1],B=w[2],x=w[3],N=w[4],_=0===n.position.length?[Tn]:n.position,C=Rn(_[0],x),S=Rn(_[_.length-1],N),E=gr(n,C,S,x,N),L=E[0],F=E[1],L>0&&L>0&&(k=r.ctx.createRadialGradient(b+C,B+S,0,b+C,B+S,L),Ar(n.stops,2*L).forEach((function(t){return k.addColorStop(t.stop,Yn(t.color))})),r.path(y),r.ctx.fillStyle=k,L!==F?(U=t.bounds.left+.5*t.bounds.width,Q=t.bounds.top+.5*t.bounds.height,P=1/(I=F/L),r.ctx.save(),r.ctx.translate(U,Q),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-U,-Q),r.ctx.fillRect(b,P*(B-Q)+Q,x,N*P),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,o=0,a=t.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return o<a.length?(s=a[o],[5,n(s)]):[3,4];case 2:u.sent(),u.label=3;case 3:return o++,[3,1];case 4:return[2]}}))}))},t.prototype.renderBorder=function(t,e,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return this.path(Gs(n,e)),this.ctx.fillStyle=Yn(t),this.ctx.fill(),[2]}))}))},t.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,c,l=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(t.effects,2),e=t.container.styles,n=!Jn(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor},{style:e.borderRightStyle,color:e.borderRightColor},{style:e.borderBottomStyle,color:e.borderBottomColor},{style:e.borderLeftStyle,color:e.borderLeftColor}],o=Au(ru(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Jn(e.backgroundColor)||(this.ctx.fillStyle=Yn(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){l.ctx.save();var n=Ps(t.curves),r=e.inset?0:uu,i=Es(n,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(l.path(n),l.ctx.clip(),l.mask(i)):(l.mask(n),l.ctx.clip(),l.path(i)),l.ctx.shadowOffsetX=e.offsetX.number+r,l.ctx.shadowOffsetY=e.offsetY.number,l.ctx.shadowColor=Yn(e.color),l.ctx.shadowBlur=e.blur.number,l.ctx.fillStyle=e.inset?Yn(e.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()})),i.label=2;case 2:a=0,s=0,u=r,i.label=3;case 3:return s<u.length?(c=u[s]).style===li.NONE||Jn(c.color)?[3,5]:[4,this.renderBorder(c.color,a,t.curves)]:[3,7];case 4:i.sent(),i.label=5;case 5:a++,i.label=6;case 6:return s++,[3,3];case 7:return[2]}}))}))},t.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Yn(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),e=Vs(t),[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},t}(),lu=function(t){return t instanceof wa||t instanceof va||t instanceof ma&&t.type!==pa&&t.type!==ha},Au=function(t,e){switch(t){case rr.BORDER_BOX:return Ps(e);case rr.CONTENT_BOX:return Os(e);case rr.PADDING_BOX:default:return Ts(e)}},fu=function(t){switch(t){case no.CENTER:return"center";case no.RIGHT:return"right";case no.LEFT:default:return"left"}},hu=function(){function t(t){this.canvas=t.canvas?t.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=t,this.canvas.width=Math.floor(t.width*t.scale),this.canvas.height=Math.floor(t.height*t.scale),this.canvas.style.width=t.width+"px",this.canvas.style.height=t.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-t.x+t.scrollX,-t.y+t.scrollY),Er.getInstance(t.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale)}return t.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=_r(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,t),[4,pu(e)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Yn(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},t}(),pu=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},du=void 0,gu=function(t){return Xn.parse(xn.create(t).parseComponentValue())},mu=function(t,e){return void 0===e&&(e={}),vu(t,e)};"undefined"!==typeof window&&Lr.setContext(window);var vu=function(t,e){return r(du,void 0,void 0,(function(){var r,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L;return i(this,(function(i){switch(i.label){case 0:if(!(r=t.ownerDocument))throw new Error("Element is not attached to a Document");if(!(u=r.defaultView))throw new Error("Document is not attached to a Window");return c=(Math.round(1e3*Math.random())+Date.now()).toString(16),l=Ta(t)||Pa(t)?s(r):a(t),A=l.width,f=l.height,h=l.left,p=l.top,d=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},e),g={backgroundColor:"#ffffff",cache:e.cache?e.cache:Lr.create(c,d),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:u.devicePixelRatio||1,windowWidth:u.innerWidth,windowHeight:u.innerHeight,scrollX:u.pageXOffset,scrollY:u.pageYOffset,x:h,y:p,width:Math.ceil(A),height:Math.ceil(f),id:c},m=n({},g,d,e),v=new o(m.scrollX,m.scrollY,m.windowWidth,m.windowHeight),Er.create({id:c,enabled:m.logging}),Er.getInstance(c).debug("Starting document clone"),w=new As(t,{id:c,onclone:m.onclone,ignoreElements:m.ignoreElements,inlineImages:m.foreignObjectRendering,copyStyles:m.foreignObjectRendering}),(y=w.clonedReferenceElement)?[4,w.toIFrame(r,v)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return b=i.sent(),B=r.documentElement?gu(getComputedStyle(r.documentElement).backgroundColor):ar.TRANSPARENT,x=r.body?gu(getComputedStyle(r.body).backgroundColor):ar.TRANSPARENT,N=e.backgroundColor,_="string"===typeof N?gu(N):null===N?ar.TRANSPARENT:4294967295,C=t===r.documentElement?Jn(B)?Jn(x)?_:x:B:_,S={id:c,cache:m.cache,canvas:m.canvas,backgroundColor:C,scale:m.scale,x:m.x,y:m.y,scrollX:m.scrollX,scrollY:m.scrollY,width:m.width,height:m.height,windowWidth:m.windowWidth,windowHeight:m.windowHeight},m.foreignObjectRendering?(Er.getInstance(c).debug("Document cloned, using foreign object rendering"),[4,new hu(S).render(y)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return Er.getInstance(c).debug("Document cloned, using computed rendering"),Lr.attachInstance(m.cache),Er.getInstance(c).debug("Starting DOM parsing"),L=_a(y),Lr.detachInstance(),C===L.styles.backgroundColor&&(L.styles.backgroundColor=ar.TRANSPARENT),Er.getInstance(c).debug("Starting renderer"),[4,new cu(S).render(L)];case 4:E=i.sent(),i.label=5;case 5:return!0===m.removeContainer&&(As.destroy(b)||Er.getInstance(c).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Er.getInstance(c).debug("Finished rendering"),Er.destroy(c),Lr.destroy(c),[2,E]}}))}))};return mu}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));n(4);var r=n(3),i=n.n(r),o=i.a.createContext({});o.Consumer,o.Provider;function a(t,e){var n=Object(r.useContext)(o);return t||n[e]||e}},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return s}));var o=n(15);function a(t,e){return!e||"object"!==i(e)&&"function"!==typeof e?Object(o.a)(t):e}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=r(t);if(e){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",(function(){return i}))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},,function(t,e,n){"use strict";(function(t){var r=n(3),i=n.n(r),o=n(10),a=n(1),s=n.n(a),u=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{};function l(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var A=i.a.createContext||function(t,e){var n,i,a="__create-react-context-"+function(){var t="__global_unique_id__";return c[t]=(c[t]||0)+1}()+"__",A=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=l(e.props.value),e}Object(o.a)(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof e?e(r,i):u,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);A.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}Object(o.a)(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?u:e},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?u:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:A,Consumer:f}};e.a=A}).call(this,n(29))},function(t,e,n){var r=n(72);t.exports=h,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var A=n[0],f=n[1],h=n.index;if(s+=t.slice(a,h),a=h+A.length,f)s+=f[1];else{var p=t[a],d=n[2],g=n[3],m=n[4],v=n[5],w=n[6],y=n[7];s&&(r.push(s),s="");var b=null!=d&&null!=p&&p!==d,B="+"===w||"*"===w,x="?"===w||"*"===w,N=n[2]||l,_=m||v;r.push({name:g||o++,prefix:d||"",delimiter:N,optional:x,repeat:B,partial:b,asterisk:!!y,pattern:_?c(_):y?".*":"[^"+u(N)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&r.push(s),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function s(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"===typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",A(e)));return function(e,i){for(var o="",s=e||{},u=(i||{}).pretty?a:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!==typeof l){var A,f=s[l.name];if(null==f){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(f)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<f.length;h++){if(A=u(f[h]),!n[c].test(A))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(A)+"`");o+=(0===h?l.prefix:l.delimiter)+A}}else{if(A=l.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(f),!n[c].test(A))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+A+'"');o+=l.prefix+A}}else o+=l}return o}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,e){return t.keys=e,t}function A(t){return t&&t.sensitive?"":"i"}function f(t,e,n){r(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<t.length;s++){var c=t[s];if("string"===typeof c)a+=u(c);else{var f=u(c.prefix),h="(?:"+c.pattern+")";e.push(c),c.repeat&&(h+="(?:"+f+h+")*"),a+=h=c.optional?c.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var p=u(n.delimiter||"/"),d=a.slice(-p.length)===p;return i||(a=(d?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&d?"":"(?="+p+"|$)",l(new RegExp("^"+a,A(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(h(t[i],e,n).source);return l(new RegExp("(?:"+r.join("|")+")",A(n)),e)}(t,e,n):function(t,e,n){return f(o(t,n),e,n)}(t,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n(0);function i(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z"}}]})(t)}function o(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]})(t)}},,function(t,e,n){"use strict";t.exports=n(73)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(8);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(8),i=n(79),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s={adapter:function(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n(40)),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){s.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){s.headers[t]=r.merge(o)})),t.exports=s}).call(this,n(58))},function(t,e,n){"use strict";var r=n(8),i=n(80),o=n(82),a=n(37),s=n(83),u=n(86),c=n(87),l=n(41);t.exports=function(t){return new Promise((function(e,n){var A=t.data,f=t.headers;r.isFormData(A)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(p+":"+d)}var g=s(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),a(g,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:t,request:h};i(e,n,o),h=null}},h.onabort=function(){h&&(n(l("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var m=(t.withCredentials||c(g))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;m&&(f[t.xsrfHeaderName]=m)}if("setRequestHeader"in h&&r.forEach(f,(function(t,e){"undefined"===typeof A&&"content-type"===e.toLowerCase()?delete f[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(v){if("json"!==t.responseType)throw v}"function"===typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),n(t),h=null)})),A||(A=null),h.send(A)}))}},function(t,e,n){"use strict";var r=n(81);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function c(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,c),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var l=i.concat(o).concat(a).concat(s),A=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===l.indexOf(t)}));return r.forEach(A,c),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.selectNodeService=e.dragNodeService=void 0;var r=n(107),i=new r.Subject,o=new r.Subject,a={sendDragInfo:function(t){return i.next({draggedNodeId:t})},clearDragInfo:function(){return i.next()},getDragInfo:function(){return i.asObservable()}};e.dragNodeService=a;var s={sendSelectedNodeInfo:function(t){return o.next({selectedNodeId:t})},clearSelectedNodeInfo:function(){return o.next()},getSelectedNodeInfo:function(){return o.asObservable()}};e.selectNodeService=s},function(t,e,n){var r=n(48);t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}},function(t,e,n){"use strict";var r=n(35),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&t(e,i,r)}var a=l(n);A&&(a=a.concat(A(n)));for(var s=u(e),d=u(n),g=0;g<a.length;++g){var m=a[g];if(!o[m]&&(!r||!r[m])&&(!d||!d[m])&&(!s||!s[m])){var v=f(n,m);try{c(e,m,v)}catch(w){}}}}return e}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.d(e,"a",(function(){return i}))},function(t,e,n){t.exports=n(74)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"}},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"}}]})(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t){return Object(r.a)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M124 80v322c0 7.7-6.3 14-14 14s-14-6.3-14-14V112H80c-17.7 0-32 14.3-32 32v288c0 17.7 14.3 32 32 32h353.1c17 0 30.9-13.8 30.9-30.9V80c0-17.7-14.3-32-32-32l-278 2c-17.7 0-30 12.3-30 30zm66 32h84c7.7 0 14 6.3 14 14s-6.3 14-14 14h-84c-7.7 0-14-6.3-14-14s6.3-14 14-14zm0 160h148c7.7 0 14 6.3 14 14s-6.3 14-14 14H190c-7.7 0-14-6.3-14-14s6.3-14 14-14zm196 108H190c-7.7 0-14-6.3-14-14s6.3-14 14-14h196c7.7 0 14 6.3 14 14s-6.3 14-14 14zm0-160H190c-7.7 0-14-6.3-14-14s6.3-14 14-14h196c7.7 0 14 6.3 14 14s-6.3 14-14 14z"}}]})(t)}},function(t,e,n){"use strict";var r=n(18);function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=h();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=r?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}n.default=t,e&&e.set(t,n);return n}(n(3)),a=f(n(1)),s=n(46),u=f(n(92)),c=f(n(23)),l=f(n(101)),A=f(n(102));function f(t){return t&&t.__esModule?t:{default:t}}function h(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return h=function(){return t},t}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n(104);var w={datasource:a.default.object.isRequired,pan:a.default.bool,zoom:a.default.bool,zoomoutLimit:a.default.number,zoominLimit:a.default.number,containerClass:a.default.string,chartClass:a.default.string,NodeTemplate:a.default.elementType,draggable:a.default.bool,collapsible:a.default.bool,multipleSelect:a.default.bool,onClickNode:a.default.func,onClickChart:a.default.func},y=(0,o.forwardRef)((function(t,e){var n=t.datasource,i=t.pan,a=t.zoom,f=t.zoomoutLimit,h=t.zoominLimit,p=t.containerClass,g=t.chartClass,w=t.NodeTemplate,y=t.draggable,b=t.collapsible,B=t.multipleSelect,x=t.onClickNode,N=t.onClickChart,_=(0,o.useRef)(),C=(0,o.useRef)(),S=(0,o.useRef)(),E=v((0,o.useState)(0),2),L=E[0],F=E[1],k=v((0,o.useState)(0),2),U=k[0],Q=k[1],I=v((0,o.useState)(""),2),P=I[0],O=I[1],T=v((0,o.useState)(!1),2),M=T[0],H=T[1],R=v((0,o.useState)("default"),2),D=R[0],j=R[1],z=v((0,o.useState)(!1),2),K=z[0],q=z[1],V=v((0,o.useState)(""),2),G=V[0],W=V[1],X=v((0,o.useState)(""),2),J=X[0],Y=X[1],$=v((0,o.useState)(n),2),Z=$[0],tt=$[1];(0,o.useEffect)((function(){tt(n)}),[n]);var et=new u.default(n,"id","children"),nt=function(){var t,e=(t=r.mark((function t(e,n){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et.removeNode(e.id);case 2:return t.next=4,et.addChildren(n,e);case 4:tt(d({},et.ds));case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){m(o,r,i,a,s,"next",t)}function s(t){m(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(t,n){return e.apply(this,arguments)}}();return(0,o.useImperativeHandle)(e,(function(){return{exportTo:function(t,e){t=t||"OrgChart",e=e||"png",q(!0);var n=_.current.scrollLeft;_.current.scrollLeft=0;var r=_.current.scrollTop;_.current.scrollTop=0,(0,c.default)(C.current,{width:C.current.clientWidth,height:C.current.clientHeight,onclone:function(t){t.querySelector(".orgchart").style.background="none",t.querySelector(".orgchart").style.transform=""}}).then((function(i){"pdf"===e.toLowerCase()?function(t,e){var n=Math.floor(t.width),r=Math.floor(t.height),i=n>r?new l.default({orientation:"landscape",unit:"px",format:[n,r]}):new l.default({orientation:"portrait",unit:"px",format:[r,n]});i.addImage(t.toDataURL("image/jpeg",1),"JPEG",0,0),i.save(e+".pdf")}(i,t):function(t,e){var n="WebkitAppearance"in document.documentElement.style,r=!!window.sidebar,i="Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&navigator.appVersion.indexOf("Edge")>-1;!n&&!r||i?window.navigator.msSaveBlob(t.msToBlob(),e+".png"):(W(t.toDataURL()),Y(e+".png"),S.current.click())}(i,t),q(!1),_.current.scrollLeft=n,_.current.scrollTop=r}),(function(){q(!1),_.current.scrollLeft=n,_.current.scrollTop=r}))},expandAllNodes:function(){C.current.querySelectorAll(".oc-node.hidden, .oc-hierarchy.hidden, .isSiblingsCollapsed, .isAncestorsCollapsed").forEach((function(t){t.classList.remove("hidden","isSiblingsCollapsed","isAncestorsCollapsed")}))}}})),o.default.createElement("div",{ref:_,className:"orgchart-container "+p,onWheel:a?function(t){!function(t){var e=[],n=1;""===P?O("matrix("+t+", 0, 0, "+t+", 0, 0)"):(e=P.split(","),-1===P.indexOf("3d")?(n=Math.abs(window.parseFloat(e[3])*t))>f&&n<h&&(e[0]="matrix("+n,e[3]=n,O(e.join(","))):(n=Math.abs(window.parseFloat(e[5])*t))>f&&n<h&&(e[0]="matrix3d("+n,e[5]=n,O(e.join(","))))}(1+(t.deltaY>0?-.2:.2))}:void 0,onMouseUp:i&&M?function(){H(!1),j("default")}:void 0},o.default.createElement("div",{ref:C,className:"orgchart "+g,style:{transform:P,cursor:D},onClick:function(t){t.target.closest(".oc-node")||(N&&N(),s.selectNodeService.clearSelectedNodeInfo())},onMouseDown:i?function(t){if(t.target.closest(".oc-node"))H(!1);else{H(!0),j("move");var e=0,n=0;if(""!==P){var r=P.split(",");-1===P.indexOf("3d")?(e=parseInt(r[4]),n=parseInt(r[5])):(e=parseInt(r[12]),n=parseInt(r[13]))}if(t.targetTouches){if(1===t.targetTouches.length)F(t.targetTouches[0].pageX-e),Q(t.targetTouches[0].pageY-n);else if(t.targetTouches.length>1)return}else F(t.pageX-e),Q(t.pageY-n)}}:void 0,onMouseMove:i&&M?function(t){var e=0,n=0;if(t.targetTouches){if(1===t.targetTouches.length)e=t.targetTouches[0].pageX-L,n=t.targetTouches[0].pageY-U;else if(t.targetTouches.length>1)return}else e=t.pageX-L,n=t.pageY-U;if(""===P)-1===P.indexOf("3d")?O("matrix(1,0,0,1,"+e+","+n+")"):O("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+e+", "+n+",0,1)");else{var r=P.split(",");-1===P.indexOf("3d")?(r[4]=e,r[5]=n+")"):(r[12]=e,r[13]=n),O(r.join(","))}}:void 0},o.default.createElement("ul",null,o.default.createElement(A.default,{datasource:function t(e,n){return e.relationship=n+(e.children&&e.children.length>0?1:0),e.children&&e.children.forEach((function(n){t(n,"1"+(e.children.length>1?1:0))})),e}(Z,"00"),NodeTemplate:w,draggable:y,collapsible:b,multipleSelect:B,changeHierarchy:nt,onClickNode:x}))),o.default.createElement("a",{className:"oc-download-btn hidden",ref:S,href:G,download:J},"\xa0"),o.default.createElement("div",{className:"oc-mask ".concat(K?"":"hidden")},o.default.createElement("i",{className:"oci oci-spinner spinner"})))}));y.propTypes=w,y.defaultProps={pan:!1,zoom:!1,zoomoutLimit:.5,zoominLimit:7,containerClass:"",chartClass:"",draggable:!1,collapsible:!0,multipleSelect:!1};var b=y;e.default=b},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return P}));var r=n(21),i=function(){return"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this}();function o(){i.console&&"function"==typeof i.console.log&&i.console.log.apply(i.console,arguments)}var a={log:o,warn:function(t){i.console&&("function"==typeof i.console.warn?i.console.warn.apply(i.console,arguments):o.call(null,arguments))},error:function(t){i.console&&("function"==typeof i.console.error?i.console.error.apply(i.console,arguments):o(t))}};function s(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){f(r.response,e,n)},r.onerror=function(){a.error("could not download file")},r.send()}function u(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function c(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var l,A,f=i.saveAs||("object"!=typeof window||window!==i?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=i.URL||i.webkitURL,o=document.createElement("a");e=e||t.name||"download",o.download=e,o.rel="noopener","string"==typeof t?(o.href=t,o.origin!==location.origin?u(o.href)?s(t,e,n):c(o,o.target="_blank"):c(o)):(o.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(o.href)}),4e4),setTimeout((function(){c(o)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(u(t))s(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){c(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(a.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return s(t,e,n);var o="application/octet-stream"===t.type,a=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&a)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var l=i.URL||i.webkitURL,A=l.createObjectURL(t);r?r.location=A:location.href=A,r=null,setTimeout((function(){l.revokeObjectURL(A)}),4e4)}});function h(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,o=n[r].process,a=i.exec(t);a&&(e=o(a),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function p(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=g(n,r,i,o,e[0],7,-680876936),o=g(o,n,r,i,e[1],12,-389564586),i=g(i,o,n,r,e[2],17,606105819),r=g(r,i,o,n,e[3],22,-1044525330),n=g(n,r,i,o,e[4],7,-176418897),o=g(o,n,r,i,e[5],12,1200080426),i=g(i,o,n,r,e[6],17,-1473231341),r=g(r,i,o,n,e[7],22,-45705983),n=g(n,r,i,o,e[8],7,1770035416),o=g(o,n,r,i,e[9],12,-1958414417),i=g(i,o,n,r,e[10],17,-42063),r=g(r,i,o,n,e[11],22,-1990404162),n=g(n,r,i,o,e[12],7,1804603682),o=g(o,n,r,i,e[13],12,-40341101),i=g(i,o,n,r,e[14],17,-1502002290),n=m(n,r=g(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=m(o,n,r,i,e[6],9,-1069501632),i=m(i,o,n,r,e[11],14,643717713),r=m(r,i,o,n,e[0],20,-373897302),n=m(n,r,i,o,e[5],5,-701558691),o=m(o,n,r,i,e[10],9,38016083),i=m(i,o,n,r,e[15],14,-660478335),r=m(r,i,o,n,e[4],20,-405537848),n=m(n,r,i,o,e[9],5,568446438),o=m(o,n,r,i,e[14],9,-1019803690),i=m(i,o,n,r,e[3],14,-187363961),r=m(r,i,o,n,e[8],20,1163531501),n=m(n,r,i,o,e[13],5,-1444681467),o=m(o,n,r,i,e[2],9,-51403784),i=m(i,o,n,r,e[7],14,1735328473),n=v(n,r=m(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=v(o,n,r,i,e[8],11,-2022574463),i=v(i,o,n,r,e[11],16,1839030562),r=v(r,i,o,n,e[14],23,-35309556),n=v(n,r,i,o,e[1],4,-1530992060),o=v(o,n,r,i,e[4],11,1272893353),i=v(i,o,n,r,e[7],16,-155497632),r=v(r,i,o,n,e[10],23,-1094730640),n=v(n,r,i,o,e[13],4,681279174),o=v(o,n,r,i,e[0],11,-358537222),i=v(i,o,n,r,e[3],16,-722521979),r=v(r,i,o,n,e[6],23,76029189),n=v(n,r,i,o,e[9],4,-640364487),o=v(o,n,r,i,e[12],11,-421815835),i=v(i,o,n,r,e[15],16,530742520),n=w(n,r=v(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=w(o,n,r,i,e[7],10,1126891415),i=w(i,o,n,r,e[14],15,-1416354905),r=w(r,i,o,n,e[5],21,-57434055),n=w(n,r,i,o,e[12],6,1700485571),o=w(o,n,r,i,e[3],10,-1894986606),i=w(i,o,n,r,e[10],15,-1051523),r=w(r,i,o,n,e[1],21,-2054922799),n=w(n,r,i,o,e[8],6,1873313359),o=w(o,n,r,i,e[15],10,-30611744),i=w(i,o,n,r,e[6],15,-1560198380),r=w(r,i,o,n,e[13],21,1309151649),n=w(n,r,i,o,e[4],6,-145523070),o=w(o,n,r,i,e[11],10,-1120210379),i=w(i,o,n,r,e[2],15,718787259),r=w(r,i,o,n,e[9],21,-343485551),t[0]=C(n,t[0]),t[1]=C(r,t[1]),t[2]=C(i,t[2]),t[3]=C(o,t[3])}function d(t,e,n,r,i,o){return e=C(C(e,t),C(r,o)),C(e<<i|e>>>32-i,n)}function g(t,e,n,r,i,o,a){return d(e&n|~e&r,t,e,i,o,a)}function m(t,e,n,r,i,o,a){return d(e&r|n&~r,t,e,i,o,a)}function v(t,e,n,r,i,o,a){return d(e^n^r,t,e,i,o,a)}function w(t,e,n,r,i,o,a){return d(n^(e|~r),t,e,i,o,a)}function y(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)p(r,b(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(p(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,p(r,i),r}function b(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}l=i.atob.bind(i),A=i.btoa.bind(i);var B="0123456789abcdef".split("");function x(t){for(var e="",n=0;n<4;n++)e+=B[t>>8*n+4&15]+B[t>>8*n&15];return e}function N(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function _(t){return y(t).map(N).join("")}function C(t,e){return t+e&4294967295}if("5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=x(t[e]);return t.join("")}(y("hello")));function S(t,e){var n,r,i,o;if(t!==n){for(var a=(i=t,o=1+(256/t.length>>0),new Array(o+1).join(i)),s=[],u=0;u<256;u++)s[u]=u;var c=0;for(u=0;u<256;u++){var l=s[u];c=(c+l+a.charCodeAt(u))%256,s[u]=s[c],s[c]=l}n=t,r=s}else s=r;var A=e.length,f=0,h=0,p="";for(u=0;u<A;u++)h=(h+(l=s[f=(f+1)%256]))%256,s[f]=s[h],s[h]=l,a=s[(s[f]+s[h])%256],p+=String.fromCharCode(e.charCodeAt(u)^a);return p}var E={print:4,modify:8,copy:16,"annot-forms":32};function L(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==E.perm)throw new Error("Invalid permission: "+t);i+=E[t]})),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var o=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,a),this.P=-(1+(255^i)),this.encryptionKey=_(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=S(this.encryptionKey,this.padding)}function F(t){if("object"!=typeof t)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),o=[];for(var s in e[n]){var u=e[n][s];try{u[0].apply(t,r)}catch(t){i.console&&a.error("jsPDF PubSub Error",t.message,t)}u[1]&&o.push(s)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function k(t){if(!(this instanceof k))return new k(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function U(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function Q(t,e,n,r,i){if(!(this instanceof Q))return new Q(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,U.call(this,r,i)}function I(t,e,n,r,i){if(!(this instanceof I))return new I(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,U.call(this,r,i)}function P(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],o=arguments[2],s=arguments[3],u=[],c=1,l=16,p="S",d=null;"object"==typeof(t=t||{})&&(n=t.orientation,r=t.unit||r,o=t.format||o,s=t.compress||t.compressPdf||s,null!==(d=t.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),c="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(l=t.floatPrecision),p=t.defaultPathOperation||"S"),u=t.filters||(!0===s?["FlateEncode"]:u),r=r||"mm",n=(""+(n||"P")).toLowerCase();var g=t.putOnlyUsedFonts||!1,m={},v={internal:{},__private__:{}};v.__private__.PubSub=F;var w="1.3",y=v.__private__.getPdfVersion=function(){return w};v.__private__.setPdfVersion=function(t){w=t};var b={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};v.__private__.getPageFormats=function(){return b};var B=v.__private__.getPageFormat=function(t){return b[t]};o=o||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},N=x.COMPAT;function _(){this.saveGraphicsState(),ct(new zt(Nt,0,0,-Nt,0,Tn()*Nt).toString()+" cm"),this.setFontSize(this.getFontSize()/Nt),p="n",N=x.ADVANCED}function C(){this.restoreGraphicsState(),p="S",N=x.COMPAT}var S=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&t!==e&&(t=400==e?"italic"==t?"italic":"normal":700==e&&"italic"!==t?"bold":t+""+e),t};v.advancedAPI=function(t){var e=N===x.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&C.call(this)),this},v.compatAPI=function(t){var e=N===x.ADVANCED;return e&&C.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},v.isAdvancedAPI=function(){return N===x.ADVANCED};var E,U=function(t){if(N!==x.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},O=v.roundToPrecision=v.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};E=v.hpf=v.__private__.hpf="number"==typeof l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return O(t,l)}:"smart"===l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return O(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return O(t,16)};var T=v.f2=v.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return O(t,2)},M=v.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return O(t,3)},H=v.scale=v.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return N===x.COMPAT?t*Nt:N===x.ADVANCED?t:void 0},R=function(t){return N===x.COMPAT?Tn()-t:N===x.ADVANCED?t:void 0},D=function(t){return H(R(t))};v.__private__.setPrecision=v.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var j,z="00000000000000000000000000000000",K=v.__private__.getFileId=function(){return z},q=v.__private__.setFileId=function(t){return z=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():z.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==d&&(qe=new L(d.userPermissions,d.userPassword,d.ownerPassword,z)),z};v.setFileId=function(t){return q(t),this},v.getFileId=function(){return K()};var V=v.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,Y(r),"'",Y(i),"'"].join("");return["D:",t.getFullYear(),Y(t.getMonth()+1),Y(t.getDate()),Y(t.getHours()),Y(t.getMinutes()),Y(t.getSeconds()),o].join("")},G=v.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,o,a,0)},W=v.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=V(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return j=e},X=v.__private__.getCreationDate=function(t){var e=j;return"jsDate"===t&&(e=G(j)),e};v.setCreationDate=function(t){return W(t),this},v.getCreationDate=function(t){return X(t)};var J,Y=v.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},$=v.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},Z=0,tt=[],et=[],nt=0,rt=[],it=[],ot=!1,at=et,st=function(){Z=0,nt=0,et=[],tt=[],rt=[],Yt=Wt(),$t=Wt()};v.__private__.setCustomOutputDestination=function(t){ot=!0,at=t};var ut=function(t){ot||(at=t)};v.__private__.resetCustomOutputDestination=function(){ot=!1,at=et};var ct=v.__private__.out=function(t){return t=t.toString(),nt+=t.length+1,at.push(t),at},lt=v.__private__.write=function(t){return ct(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},At=v.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},ft=[["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]];v.__private__.getStandardFonts=function(){return ft};var ht=t.fontSize||16;v.__private__.setFontSize=v.setFontSize=function(t){return ht=N===x.ADVANCED?t/Nt:t,this};var pt,dt=v.__private__.getFontSize=v.getFontSize=function(){return N===x.COMPAT?ht:ht*Nt},gt=t.R2L||!1;v.__private__.setR2L=v.setR2L=function(t){return gt=t,this},v.__private__.getR2L=v.getR2L=function(){return gt};var mt,vt=v.__private__.setZoomMode=function(t){if(/^\d*\.?\d*%$/.test(t))pt=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');pt=t}else pt=parseInt(t,10)};v.__private__.getZoomMode=function(){return pt};var wt,yt=v.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');mt=t};v.__private__.getPageMode=function(){return mt};var bt=v.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');wt=t};v.__private__.getLayoutMode=function(){return wt},v.__private__.setDisplayMode=v.setDisplayMode=function(t,e,n){return vt(t),bt(e),yt(n),this};var Bt={title:"",subject:"",author:"",keywords:"",creator:""};v.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Bt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Bt[t]},v.__private__.getDocumentProperties=function(){return Bt},v.__private__.setDocumentProperties=v.setProperties=v.setDocumentProperties=function(t){for(var e in Bt)Bt.hasOwnProperty(e)&&t[e]&&(Bt[e]=t[e]);return this},v.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Bt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Bt[t]=e};var xt,Nt,_t,Ct,St,Et={},Lt={},Ft=[],kt={},Ut={},Qt={},It={},Pt=null,Ot=0,Tt=[],Mt=new F(v),Ht=t.hotfixes||[],Rt={},Dt={},jt=[],zt=function t(e,n,r,i,o,a){if(!(this instanceof t))return new t(e,n,r,i,o,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(a)&&(a=0),this._matrix=[e,n,r,i,o,a]};Object.defineProperty(zt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(zt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(zt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(zt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(zt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(zt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(zt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(zt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(zt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(zt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(zt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(zt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(zt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),zt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(E).join(t)},zt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new zt(e,n,r,i,o,a)},zt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var u=Math.sqrt(n*n+r*r);return s/=u,t*(r/=u)<e*(n/=u)&&(t=-t,e=-e,s=-s,a=-a),{scale:new zt(a,0,0,u,0,0),translate:new zt(1,0,0,1,i,o),rotate:new zt(t,e,-e,t,0,0),skew:new zt(1,0,s,1,0,0)}},zt.prototype.toString=function(t){return this.join(" ")},zt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=1/(t*r-e*n),s=r*a,u=-e*a,c=-n*a,l=t*a;return new zt(s,u,c,l,-s*i-c*o,-u*i-l*o)},zt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new Ln(e,n)},zt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new Ln(t.x+t.w,t.y+t.h));return new Fn(e.x,e.y,n.x-e.x,n.y-e.y)},zt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new zt(t,e,n,r,i,o)},v.Matrix=zt;var Kt=v.matrixMult=function(t,e){return e.multiply(t)},qt=new zt(1,0,0,1,0,0);v.unitMatrix=v.identityMatrix=qt;var Vt=function(t,e){if(!Ut[t]){var n=(e instanceof Q?"Sh":"P")+(Object.keys(kt).length+1).toString(10);e.id=n,Ut[t]=n,kt[n]=e,Mt.publish("addPattern",e)}};v.ShadingPattern=Q,v.TilingPattern=I,v.addShadingPattern=function(t,e){return U("addShadingPattern()"),Vt(t,e),this},v.beginTilingPattern=function(t){U("beginTilingPattern()"),Un(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},v.endTilingPattern=function(t,e){U("endTilingPattern()"),e.stream=it[J].join("\n"),Vt(t,e),Mt.publish("endTilingPattern",e),jt.pop().restore()};var Gt=v.__private__.newObject=function(){var t=Wt();return Xt(t,!0),t},Wt=v.__private__.newObjectDeferred=function(){return Z++,tt[Z]=function(){return nt},Z},Xt=function(t,e){return e="boolean"==typeof e&&e,tt[t]=nt,e&&ct(t+" 0 obj"),t},Jt=v.__private__.newAdditionalObject=function(){var t={objId:Wt(),content:""};return rt.push(t),t},Yt=Wt(),$t=Wt(),Zt=v.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},te=v.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,i=t.ch3,o=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new h(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var u=parseInt(n.substr(1),16);n=u>>16&255,r=u>>8&255,i=255&u}if(void 0===r||void 0===o&&n===r&&r===i)if("string"==typeof n)e=n+" "+a[0];else switch(t.precision){case 2:e=T(n/255)+" "+a[0];break;case 3:default:e=M(n/255)+" "+a[0]}else if(void 0===o||"object"==typeof o){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof n)e=[n,r,i,a[1]].join(" ");else switch(t.precision){case 2:e=[T(n/255),T(r/255),T(i/255),a[1]].join(" ");break;default:case 3:e=[M(n/255),M(r/255),M(i/255),a[1]].join(" ")}}else if("string"==typeof n)e=[n,r,i,o,a[2]].join(" ");else switch(t.precision){case 2:e=[T(n),T(r),T(i),T(o),a[2]].join(" ");break;case 3:default:e=[M(n),M(r),M(i),M(o),a[2]].join(" ")}return e},ee=v.__private__.getFilters=function(){return u},ne=v.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||ee(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a=t.objectId,s=function(t){return t};if(null!==d&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(s=qe.encryptor(a,0));var u={};!0===n&&(n=["FlateEncode"]);var c=t.additionalKeyValues||[],l=(u=void 0!==P.API.processDataByFilters?P.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==u.data.length&&(c.push({key:"Length",value:u.data.length}),!0===i&&c.push({key:"Length1",value:o})),0!=l.length)if(l.split("/").length-1==1)c.push({key:"Filter",value:l});else{c.push({key:"Filter",value:"["+l+"]"});for(var A=0;A<c.length;A+=1)if("DecodeParms"===c[A].key){for(var f=[],h=0;h<u.reverseChain.split("/").length-1;h+=1)f.push("null");f.push(c[A].value),c[A].value="["+f.join(" ")+"]"}}ct("<<");for(var p=0;p<c.length;p++)ct("/"+c[p].key+" "+c[p].value);ct(">>"),0!==u.data.length&&(ct("stream"),ct(s(u.data)),ct("endstream"))},re=v.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Xt(r,!0),ct("<</Type /Page"),ct("/Parent "+t.rootDictionaryObjId+" 0 R"),ct("/Resources "+t.resourceDictionaryObjId+" 0 R"),ct("/MediaBox ["+parseFloat(E(t.mediaBox.bottomLeftX))+" "+parseFloat(E(t.mediaBox.bottomLeftY))+" "+E(t.mediaBox.topRightX)+" "+E(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ct("/CropBox ["+E(t.cropBox.bottomLeftX)+" "+E(t.cropBox.bottomLeftY)+" "+E(t.cropBox.topRightX)+" "+E(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ct("/BleedBox ["+E(t.bleedBox.bottomLeftX)+" "+E(t.bleedBox.bottomLeftY)+" "+E(t.bleedBox.topRightX)+" "+E(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ct("/TrimBox ["+E(t.trimBox.bottomLeftX)+" "+E(t.trimBox.bottomLeftY)+" "+E(t.trimBox.topRightX)+" "+E(t.trimBox.topRightY)+"]"),null!==t.artBox&&ct("/ArtBox ["+E(t.artBox.bottomLeftX)+" "+E(t.artBox.bottomLeftY)+" "+E(t.artBox.topRightX)+" "+E(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ct("/UserUnit "+t.userUnit),Mt.publish("putPage",{objId:r,pageContext:Tt[e],pageNumber:e,page:n}),ct("/Contents "+i+" 0 R"),ct(">>"),ct("endobj");var o=n.join("\n");return N===x.ADVANCED&&(o+="\nQ"),Xt(i,!0),ne({data:o,filters:ee(),objectId:i}),ct("endobj"),r},ie=v.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Ot;t++)Tt[t].objId=Wt(),Tt[t].contentsObjId=Wt();for(t=1;t<=Ot;t++)n.push(re({number:t,data:it[t],objId:Tt[t].objId,contentsObjId:Tt[t].contentsObjId,mediaBox:Tt[t].mediaBox,cropBox:Tt[t].cropBox,bleedBox:Tt[t].bleedBox,trimBox:Tt[t].trimBox,artBox:Tt[t].artBox,userUnit:Tt[t].userUnit,rootDictionaryObjId:Yt,resourceDictionaryObjId:$t}));Xt(Yt,!0),ct("<</Type /Pages");var r="/Kids [";for(e=0;e<Ot;e++)r+=n[e]+" 0 R ";ct(r+"]"),ct("/Count "+Ot),ct(">>"),ct("endobj"),Mt.publish("postPutPages")},oe=function(t){var e=function(t,e){return-1!==t.indexOf(" ")?"("+Le(t,e)+")":Le(t,e)};Mt.publish("putFont",{font:t,out:ct,newObject:Gt,putStream:ne,pdfEscapeWithNeededParanthesis:e}),!0!==t.isAlreadyPutted&&(t.objectNumber=Gt(),ct("<<"),ct("/Type /Font"),ct("/BaseFont /"+e(t.postScriptName)),ct("/Subtype /Type1"),"string"==typeof t.encoding&&ct("/Encoding /"+t.encoding),ct("/FirstChar 32"),ct("/LastChar 255"),ct(">>"),ct("endobj"))},ae=function(){for(var t in Et)Et.hasOwnProperty(t)&&(!1===g||!0===g&&m.hasOwnProperty(t))&&oe(Et[t])},se=function(t){t.objectNumber=Gt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[E(t.x),E(t.y),E(t.x+t.width),E(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ne({data:n,additionalKeyValues:e,objectId:t.objectNumber}),ct("endobj")},ue=function(){for(var t in Rt)Rt.hasOwnProperty(t)&&se(Rt[t])},ce=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var s="",u=0,c=0;c<r.length;c++){for(n=r[c];n>t[u+1].offset;)u++;var l=t[u].offset,A=(n-l)/(t[u+1].offset-l),f=t[u].color,h=t[u+1].color;s+=$(Math.round((1-A)*f[0]+A*h[0]).toString(16))+$(Math.round((1-A)*f[1]+A*h[1]).toString(16))+$(Math.round((1-A)*f[2]+A*h[2]).toString(16))}return s.trim()},le=function(t,e){e||(e=21);var n=Gt(),r=ce(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ne({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),ct("endobj"),t.objectNumber=Gt(),ct("<< /ShadingType "+t.type),ct("/ColorSpace /DeviceRGB");var o="/Coords ["+E(parseFloat(t.coords[0]))+" "+E(parseFloat(t.coords[1]))+" ";2===t.type?o+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3])):o+=E(parseFloat(t.coords[2]))+" "+E(parseFloat(t.coords[3]))+" "+E(parseFloat(t.coords[4]))+" "+E(parseFloat(t.coords[5])),ct(o+="]"),t.matrix&&ct("/Matrix ["+t.matrix.toString()+"]"),ct("/Function "+n+" 0 R"),ct("/Extend [true true]"),ct(">>"),ct("endobj")},Ae=function(t,e){var n=Wt(),r=Gt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(E).join(" ")+"]"}),i.push({key:"XStep",value:E(t.xStep)}),i.push({key:"YStep",value:E(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ne({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),ct("endobj")},fe=function(t){var e;for(e in kt)kt.hasOwnProperty(e)&&(kt[e]instanceof Q?le(kt[e]):kt[e]instanceof I&&Ae(kt[e],t))},he=function(t){for(var e in t.objectNumber=Gt(),ct("<<"),t)switch(e){case"opacity":ct("/ca "+T(t[e]));break;case"stroke-opacity":ct("/CA "+T(t[e]))}ct(">>"),ct("endobj")},pe=function(){var t;for(t in Qt)Qt.hasOwnProperty(t)&&he(Qt[t])},de=function(){for(var t in ct("/XObject <<"),Rt)Rt.hasOwnProperty(t)&&Rt[t].objectNumber>=0&&ct("/"+t+" "+Rt[t].objectNumber+" 0 R");Mt.publish("putXobjectDict"),ct(">>")},ge=function(){qe.oid=Gt(),ct("<<"),ct("/Filter /Standard"),ct("/V "+qe.v),ct("/R "+qe.r),ct("/U <"+qe.toHexString(qe.U)+">"),ct("/O <"+qe.toHexString(qe.O)+">"),ct("/P "+qe.P),ct(">>"),ct("endobj")},me=function(){for(var t in ct("/Font <<"),Et)Et.hasOwnProperty(t)&&(!1===g||!0===g&&m.hasOwnProperty(t))&&ct("/"+t+" "+Et[t].objectNumber+" 0 R");ct(">>")},ve=function(){if(Object.keys(kt).length>0){for(var t in ct("/Shading <<"),kt)kt.hasOwnProperty(t)&&kt[t]instanceof Q&&kt[t].objectNumber>=0&&ct("/"+t+" "+kt[t].objectNumber+" 0 R");Mt.publish("putShadingPatternDict"),ct(">>")}},we=function(t){if(Object.keys(kt).length>0){for(var e in ct("/Pattern <<"),kt)kt.hasOwnProperty(e)&&kt[e]instanceof v.TilingPattern&&kt[e].objectNumber>=0&&kt[e].objectNumber<t&&ct("/"+e+" "+kt[e].objectNumber+" 0 R");Mt.publish("putTilingPatternDict"),ct(">>")}},ye=function(){if(Object.keys(Qt).length>0){var t;for(t in ct("/ExtGState <<"),Qt)Qt.hasOwnProperty(t)&&Qt[t].objectNumber>=0&&ct("/"+t+" "+Qt[t].objectNumber+" 0 R");Mt.publish("putGStateDict"),ct(">>")}},be=function(t){Xt(t.resourcesOid,!0),ct("<<"),ct("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),me(),ve(),we(t.objectOid),ye(),de(),ct(">>"),ct("endobj")},Be=function(){var t=[];ae(),pe(),ue(),fe(t),Mt.publish("putResources"),t.forEach(be),be({resourcesOid:$t,objectOid:Number.MAX_SAFE_INTEGER}),Mt.publish("postPutResources")},xe=function(){Mt.publish("putAdditionalObjects");for(var t=0;t<rt.length;t++){var e=rt[t];Xt(e.objId,!0),ct(e.content),ct("endobj")}Mt.publish("postPutAdditionalObjects")},Ne=function(t){Lt[t.fontName]=Lt[t.fontName]||{},Lt[t.fontName][t.fontStyle]=t.id},_e=function(t,e,n,r,i){var o={id:"F"+(Object.keys(Et).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Mt.publish("addFont",{font:o,instance:this}),Et[o.id]=o,Ne(o),o.id},Ce=function(t){for(var e=0,n=ft.length;e<n;e++){var r=_e.call(this,t[e][0],t[e][1],t[e][2],ft[e][3],!0);!1===g&&(m[r]=!0);var i=t[e][0].split("-");Ne({id:r,fontName:i[0],fontStyle:i[1]||""})}Mt.publish("addFonts",{fonts:Et,dictionary:Lt})},Se=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!i.console)throw new Error(n);i.console.error(n,t),i.alert&&alert(n)}},t.foo.bar=t,t.foo},Ee=function(t,e){var n,r,i,o,a,s,u,c,l;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&Et[xt].metadata&&Et[xt].metadata[i]&&Et[xt].metadata[i].encoding&&(o=Et[xt].metadata[i].encoding,!a&&Et[xt].encoding&&(a=Et[xt].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(u=!1,s=[],n=0,r=t.length;n<r;n++)(c=a[t.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(u=!0);t=s.join("")}for(n=t.length;void 0===u&&0!==n;)t.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((l=(c=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(c-(l<<8))}return String.fromCharCode.apply(void 0,s)},Le=v.__private__.pdfEscape=v.pdfEscape=function(t,e){return Ee(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Fe=v.__private__.beginPage=function(t){it[++Ot]=[],Tt[Ot]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Qe(Ot),ut(it[J])},ke=function(t,e){var r,i,s;switch(n=e||n,"string"==typeof t&&(r=B(t.toLowerCase()),Array.isArray(r)&&(i=r[0],s=r[1])),Array.isArray(t)&&(i=t[0]*Nt,s=t[1]*Nt),isNaN(i)&&(i=o[0],s=o[1]),(i>14400||s>14400)&&(a.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),s=Math.min(14400,s)),o=[i,s],n.substr(0,1)){case"l":s>i&&(o=[s,i]);break;case"p":i>s&&(o=[s,i])}Fe(o),fn(An),ct(yn),0!==Cn&&ct(Cn+" J"),0!==Sn&&ct(Sn+" j"),Mt.publish("addPage",{pageNumber:Ot})},Ue=function(t){t>0&&t<=Ot&&(it.splice(t,1),Tt.splice(t,1),Ot--,J>Ot&&(J=Ot),this.setPage(J))},Qe=function(t){t>0&&t<=Ot&&(J=t)},Ie=v.__private__.getNumberOfPages=v.getNumberOfPages=function(){return it.length-1},Pe=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:Et[xt].fontName,e=void 0!==e?e:Et[xt].fontStyle,r=t.toLowerCase(),void 0!==Lt[r]&&void 0!==Lt[r][e]?i=Lt[r][e]:void 0!==Lt[t]&&void 0!==Lt[t][e]?i=Lt[t][e]:!1===n.disableWarning&&a.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Lt.times[e])&&(i=Lt.times.normal),i},Oe=v.__private__.putInfo=function(){var t=Gt(),e=function(t){return t};for(var n in null!==d&&(e=qe.encryptor(t,0)),ct("<<"),ct("/Producer ("+Le(e("jsPDF "+P.version))+")"),Bt)Bt.hasOwnProperty(n)&&Bt[n]&&ct("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Le(e(Bt[n]))+")");ct("/CreationDate ("+Le(e(j))+")"),ct(">>"),ct("endobj")},Te=v.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Yt;switch(Gt(),ct("<<"),ct("/Type /Catalog"),ct("/Pages "+e+" 0 R"),pt||(pt="fullwidth"),pt){case"fullwidth":ct("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ct("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ct("/OpenAction [3 0 R /Fit]");break;case"original":ct("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+pt;"%"===n.substr(n.length-1)&&(pt=parseInt(pt)/100),"number"==typeof pt&&ct("/OpenAction [3 0 R /XYZ null null "+T(pt)+"]")}switch(wt||(wt="continuous"),wt){case"continuous":ct("/PageLayout /OneColumn");break;case"single":ct("/PageLayout /SinglePage");break;case"two":case"twoleft":ct("/PageLayout /TwoColumnLeft");break;case"tworight":ct("/PageLayout /TwoColumnRight")}mt&&ct("/PageMode /"+mt),Mt.publish("putCatalog"),ct(">>"),ct("endobj")},Me=v.__private__.putTrailer=function(){ct("trailer"),ct("<<"),ct("/Size "+(Z+1)),ct("/Root "+Z+" 0 R"),ct("/Info "+(Z-1)+" 0 R"),null!==d&&ct("/Encrypt "+qe.oid+" 0 R"),ct("/ID [ <"+z+"> <"+z+"> ]"),ct(">>")},He=v.__private__.putHeader=function(){ct("%PDF-"+w),ct("%\xba\xdf\xac\xe0")},Re=v.__private__.putXRef=function(){var t="0000000000";ct("xref"),ct("0 "+(Z+1)),ct("0000000000 65535 f ");for(var e=1;e<=Z;e++)"function"==typeof tt[e]?ct((t+tt[e]()).slice(-10)+" 00000 n "):void 0!==tt[e]?ct((t+tt[e]).slice(-10)+" 00000 n "):ct("0000000000 00000 n ")},De=v.__private__.buildDocument=function(){st(),ut(et),Mt.publish("buildDocument"),He(),ie(),xe(),Be(),null!==d&&ge(),Oe(),Te();var t=nt;return Re(),Me(),ct("startxref"),ct(""+t),ct("%%EOF"),ut(it[J]),et.join("\n")},je=v.__private__.getBlob=function(t){return new Blob([At(t)],{type:"application/pdf"})},ze=v.output=v.__private__.output=Se((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return De();case"save":v.save(e.filename);break;case"arraybuffer":return At(De());case"blob":return je(De());case"bloburi":case"bloburl":if(void 0!==i.URL&&"function"==typeof i.URL.createObjectURL)return i.URL&&i.URL.createObjectURL(je(De()))||void 0;a.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=De();try{n=A(r)}catch(t){n=A(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(i)){var o='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+(e.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",s=i.open();return null!==s&&s.document.write(o),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(i)){var u='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',c=i.open();if(null!==c){c.document.write(u);var l=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=e.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(l.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(i))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',h=i.open();if(null!==h&&(h.document.write(f),h.document.title=e.filename),h||"undefined"==typeof safari)return h;break;case"datauri":case"dataurl":return i.document.location.href=this.output("datauristring",e);default:return null}})),Ke=function(t){return!0===Array.isArray(Ht)&&Ht.indexOf(t)>-1};switch(r){case"pt":Nt=1;break;case"mm":Nt=72/25.4;break;case"cm":Nt=72/2.54;break;case"in":Nt=72;break;case"px":Nt=1==Ke("px_scaling")?.75:96/72;break;case"pc":case"em":Nt=12;break;case"ex":Nt=6;break;default:throw new Error("Invalid unit: "+r)}var qe=null;W(),q();var Ve=function(t){return null!==d?qe.encryptor(t,0):function(t){return t}},Ge=v.__private__.getPageInfo=v.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Tt[t].objId,pageNumber:t,pageContext:Tt[t]}},We=v.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Tt)if(Tt[e].objId===t)break;return Ge(e)},Xe=v.__private__.getCurrentPageInfo=v.getCurrentPageInfo=function(){return{objId:Tt[J].objId,pageNumber:J,pageContext:Tt[J]}};v.addPage=function(){return ke.apply(this,arguments),this},v.setPage=function(){return Qe.apply(this,arguments),ut.call(this,it[J]),this},v.insertPage=function(t){return this.addPage(),this.movePage(J,t),this},v.movePage=function(t,e){var n,r;if(t>e){n=it[t],r=Tt[t];for(var i=t;i>e;i--)it[i]=it[i-1],Tt[i]=Tt[i-1];it[e]=n,Tt[e]=r,this.setPage(e)}else if(t<e){n=it[t],r=Tt[t];for(var o=t;o<e;o++)it[o]=it[o+1],Tt[o]=Tt[o+1];it[e]=n,Tt[e]=r,this.setPage(e)}return this},v.deletePage=function(){return Ue.apply(this,arguments),this},v.__private__.text=v.text=function(t,e,n,r,i){var o,a,s,u,c,l,A,f,h=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var p=n;n=e,e=t,t=p}if(arguments[3]instanceof zt==0?(s=arguments[4],u=arguments[5],"object"==typeof(A=arguments[3])&&null!==A||("string"==typeof s&&(u=s,s=null),"string"==typeof A&&(u=A,A=null),"number"==typeof A&&(s=A,A=null),r={flags:A,angle:s,align:u})):(U("The transform parameter of text() with a Matrix value"),f=i),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return h;var d="",g=!1,v="number"==typeof r.lineHeightFactor?r.lineHeightFactor:ln,w=h.internal.scaleFactor;function y(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),Le(t,A)}function b(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function B(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var _=!1,C=!0;if("string"==typeof t)_=!0;else if(Array.isArray(t)){var S=t.concat();a=[];for(var L,F=S.length;F--;)("string"!=typeof(L=S.shift())||Array.isArray(L)&&"string"!=typeof L[0])&&(C=!1);_=C}if(!1===_)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var k=ht/h.internal.scaleFactor,Q=k*(ln-1);switch(r.baseline){case"bottom":n-=Q;break;case"top":n+=k-Q;break;case"hanging":n+=k-2*Q;break;case"middle":n+=k/2-Q}if((l=r.maxWidth||0)>0&&("string"==typeof t?t=h.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(h.splitTextToSize(e,l))}),[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Le,activeFontKey:xt,fonts:Et,activeFontSize:ht}},Mt.publish("preProcessText",o),t=o.text,s=(r=o.options).angle,f instanceof zt==0&&s&&"number"==typeof s){s*=Math.PI/180,0===r.rotationDirection&&(s=-s),N===x.ADVANCED&&(s=-s);var I=Math.cos(s),P=Math.sin(s);f=new zt(I,P,-P,I,0,0)}else s&&s instanceof zt&&(f=s);N!==x.ADVANCED||f||(f=qt),void 0!==(c=r.charSpace||Nn)&&(d+=E(H(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),r.lang;var O=-1,T=void 0!==r.renderingMode?r.renderingMode:r.stroke,M=h.internal.getCurrentPageInfo().pageContext;switch(T){case 0:case!1:case"fill":O=0;break;case 1:case!0:case"stroke":O=1;break;case 2:case"fillThenStroke":O=2;break;case 3:case"invisible":O=3;break;case 4:case"fillAndAddForClipping":O=4;break;case 5:case"strokeAndAddPathForClipping":O=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":O=6;break;case 7:case"addToPathForClipping":O=7}var R=void 0!==M.usedRenderingMode?M.usedRenderingMode:-1;-1!==O?d+=O+" Tr\n":-1!==R&&(d+="0 Tr\n"),-1!==O&&(M.usedRenderingMode=O),u=r.align||"left";var D,j=ht*v,z=h.internal.pageSize.getWidth(),K=Et[xt];c=r.charSpace||Nn,l=r.maxWidth||0,A=Object.assign({autoencode:!0,noBOM:!0},r.flags);var q=[];if("[object Array]"===Object.prototype.toString.call(t)){var V;a=b(t),"left"!==u&&(D=a.map((function(t){return h.getStringUnitWidth(t,{font:K,charSpace:c,fontSize:ht,doKerning:!1})*ht/w})));var G,W=0;if("right"===u){e-=D[0],t=[],F=a.length;for(var X=0;X<F;X++)0===X?(G=gn(e),V=mn(n)):(G=H(W-D[X]),V=-j),t.push([a[X],G,V]),W=D[X]}else if("center"===u){e-=D[0]/2,t=[],F=a.length;for(var J=0;J<F;J++)0===J?(G=gn(e),V=mn(n)):(G=H((W-D[J])/2),V=-j),t.push([a[J],G,V]),W=D[J]}else if("left"===u){t=[],F=a.length;for(var Y=0;Y<F;Y++)t.push(a[Y])}else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],F=a.length,l=0!==l?l:z;for(var $=0;$<F;$++)V=0===$?mn(n):-j,G=0===$?gn(e):0,$<F-1&&q.push(E(H((l-D[$])/(a[$].split(" ").length-1)))),t.push([a[$],G,V])}}var Z="boolean"==typeof r.R2L?r.R2L:gt;!0===Z&&(t=B(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Le,activeFontKey:xt,fonts:Et,activeFontSize:ht}},Mt.publish("postProcessText",o),t=o.text,g=o.mutex.isHex||!1;var tt=Et[xt].encoding;"WinAnsiEncoding"!==tt&&"StandardEncoding"!==tt||(t=B(t,(function(t,e,n){return[y(t),e,n]}))),a=b(t),t=[];for(var et,nt,rt,it=0,ot=1,at=Array.isArray(a[0])?ot:it,st="",ut=function(t,e,n){var i="";return n instanceof zt?(n="number"==typeof r.angle?Kt(n,new zt(1,0,0,1,t,e)):Kt(new zt(1,0,0,1,t,e),n),N===x.ADVANCED&&(n=Kt(new zt(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=E(t)+" "+E(e)+" Td\n",i},lt=0;lt<a.length;lt++){switch(st="",at){case ot:rt=(g?"<":"(")+a[lt][0]+(g?">":")"),et=parseFloat(a[lt][1]),nt=parseFloat(a[lt][2]);break;case it:rt=(g?"<":"(")+a[lt]+(g?">":")"),et=gn(e),nt=mn(n)}void 0!==q&&void 0!==q[lt]&&(st=q[lt]+" Tw\n"),0===lt?t.push(st+ut(et,nt,f)+rt):at===it?t.push(st+rt):at===ot&&t.push(st+ut(et,nt,f)+rt)}t=at===it?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var At="BT\n/";return At+=xt+" "+ht+" Tf\n",At+=E(ht*v)+" TL\n",At+=Bn+"\n",At+=d,At+=t,ct(At+="ET"),m[xt]=!0,h};var Je=v.__private__.clip=v.clip=function(t){return ct("evenodd"===t?"W*":"W"),this};v.clipEvenOdd=function(){return Je("evenodd")},v.__private__.discardPath=v.discardPath=function(){return ct("n"),this};var Ye=v.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};v.__private__.setDefaultPathOperation=v.setDefaultPathOperation=function(t){return Ye(t)&&(p=t),this};var $e=v.__private__.getStyle=v.getStyle=function(t){var e=p;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},Ze=v.close=function(){return ct("h"),this};v.stroke=function(){return ct("S"),this},v.fill=function(t){return tn("f",t),this},v.fillEvenOdd=function(t){return tn("f*",t),this},v.fillStroke=function(t){return tn("B",t),this},v.fillStrokeEvenOdd=function(t){return tn("B*",t),this};var tn=function(t,e){"object"==typeof e?rn(e,t):ct(t)},en=function(t){null===t||N===x.ADVANCED&&void 0===t||(t=$e(t),ct(t))};function nn(t,e,n,r,i){var o=new I(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var a=t+"$$"+this.cloneIndex+++"$$";return Vt(a,o),o}var rn=function(t,e){var n=Ut[t.key],r=kt[n];if(r instanceof Q)ct("q"),ct(on(e)),r.gState&&v.setGState(r.gState),ct(t.matrix.toString()+" cm"),ct("/"+n+" sh"),ct("Q");else if(r instanceof I){var i=new zt(1,0,0,-1,0,Tn());t.matrix&&(i=i.multiply(t.matrix||qt),n=nn.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),ct("q"),ct("/Pattern cs"),ct("/"+n+" scn"),r.gState&&v.setGState(r.gState),ct(e),ct("Q")}},on=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},an=v.moveTo=function(t,e){return ct(E(H(t))+" "+E(D(e))+" m"),this},sn=v.lineTo=function(t,e){return ct(E(H(t))+" "+E(D(e))+" l"),this},un=v.curveTo=function(t,e,n,r,i,o){return ct([E(H(t)),E(D(e)),E(H(n)),E(D(r)),E(H(i)),E(D(o)),"c"].join(" ")),this};v.__private__.line=v.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ye(i))throw new Error("Invalid arguments passed to jsPDF.line");return N===x.COMPAT?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},v.__private__.lines=v.lines=function(t,e,n,r,i,o){var a,s,u,c,l,A,f,h,p,d,g,m;if("number"==typeof t&&(m=n,n=e,e=t,t=m),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Ye(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(an(e,n),a=r[0],s=r[1],c=t.length,d=e,g=n,u=0;u<c;u++)2===(l=t[u]).length?(d=l[0]*a+d,g=l[1]*s+g,sn(d,g)):(A=l[0]*a+d,f=l[1]*s+g,h=l[2]*a+d,p=l[3]*s+g,d=l[4]*a+d,g=l[5]*s+g,un(A,f,h,p,d,g));return o&&Ze(),en(i),this},v.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":an(r[0],r[1]);break;case"l":sn(r[0],r[1]);break;case"c":un.apply(this,r);break;case"h":Ze()}}return this},v.__private__.rect=v.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ye(i))throw new Error("Invalid arguments passed to jsPDF.rect");return N===x.COMPAT&&(r=-r),ct([E(H(t)),E(D(e)),E(H(n)),E(H(r)),"re"].join(" ")),en(i),this},v.__private__.triangle=v.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ye(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},v.__private__.roundedRect=v.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Ye(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*r),this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a,!0),this},v.__private__.ellipse=v.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Ye(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return an(t+n,e),un(t+n,e-a,t+o,e-r,t,e-r),un(t-o,e-r,t-n,e-a,t-n,e),un(t-n,e+a,t-o,e+r,t,e+r),un(t+o,e+r,t+n,e+a,t+n,e),en(i),this},v.__private__.circle=v.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Ye(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},v.setFont=function(t,e,n){return n&&(e=S(e,n)),xt=Pe(t,e,{disableWarning:!1}),this};var cn=v.__private__.getFont=v.getFont=function(){return Et[Pe.apply(v,arguments)]};v.__private__.getFontList=v.getFontList=function(){var t,e,n={};for(t in Lt)if(Lt.hasOwnProperty(t))for(e in n[t]=[],Lt[t])Lt[t].hasOwnProperty(e)&&n[t].push(e);return n},v.addFont=function(t,e,n,r,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])&&(n=S(n,r)),i=i||"Identity-H",_e.call(this,t,e,n,i)};var ln,An=t.lineWidth||.200025,fn=v.__private__.setLineWidth=v.setLineWidth=function(t){return ct(E(H(t))+" w"),this};v.__private__.setLineDash=P.API.setLineDash=P.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return E(H(t))})).join(" "),e=E(H(e)),ct("["+t+"] "+e+" d"),this};var hn=v.__private__.getLineHeight=v.getLineHeight=function(){return ht*ln};v.__private__.getLineHeight=v.getLineHeight=function(){return ht*ln};var pn=v.__private__.setLineHeightFactor=v.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(ln=t),this},dn=v.__private__.getLineHeightFactor=v.getLineHeightFactor=function(){return ln};pn(t.lineHeight);var gn=v.__private__.getHorizontalCoordinate=function(t){return H(t)},mn=v.__private__.getVerticalCoordinate=function(t){return N===x.ADVANCED?t:Tt[J].mediaBox.topRightY-Tt[J].mediaBox.bottomLeftY-H(t)},vn=v.__private__.getHorizontalCoordinateString=v.getHorizontalCoordinateString=function(t){return E(gn(t))},wn=v.__private__.getVerticalCoordinateString=v.getVerticalCoordinateString=function(t){return E(mn(t))},yn=t.strokeColor||"0 G";v.__private__.getStrokeColor=v.getDrawColor=function(){return Zt(yn)},v.__private__.setStrokeColor=v.setDrawColor=function(t,e,n,r){return yn=te({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),ct(yn),this};var bn=t.fillColor||"0 g";v.__private__.getFillColor=v.getFillColor=function(){return Zt(bn)},v.__private__.setFillColor=v.setFillColor=function(t,e,n,r){return bn=te({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),ct(bn),this};var Bn=t.textColor||"0 g",xn=v.__private__.getTextColor=v.getTextColor=function(){return Zt(Bn)};v.__private__.setTextColor=v.setTextColor=function(t,e,n,r){return Bn=te({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var Nn=t.charSpace,_n=v.__private__.getCharSpace=v.getCharSpace=function(){return parseFloat(Nn||0)};v.__private__.setCharSpace=v.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Nn=t,this};var Cn=0;v.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},v.__private__.setLineCap=v.setLineCap=function(t){var e=v.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Cn=e,ct(e+" J"),this};var Sn=0;v.__private__.setLineJoin=v.setLineJoin=function(t){var e=v.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Sn=e,ct(e+" j"),this},v.__private__.setLineMiterLimit=v.__private__.setMiterLimit=v.setLineMiterLimit=v.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ct(E(H(t))+" M"),this},v.GState=k,v.setGState=function(t){(t="string"==typeof t?Qt[It[t]]:En(null,t)).equals(Pt)||(ct("/"+t.id+" gs"),Pt=t)};var En=function(t,e){if(!t||!It[t]){var n=!1;for(var r in Qt)if(Qt.hasOwnProperty(r)&&Qt[r].equals(e)){n=!0;break}if(n)e=Qt[r];else{var i="GS"+(Object.keys(Qt).length+1).toString(10);Qt[i]=e,e.id=i}return t&&(It[t]=e.id),Mt.publish("addGState",e),e}};v.addGState=function(t,e){return En(t,e),this},v.saveGraphicsState=function(){return ct("q"),Ft.push({key:xt,size:ht,color:Bn}),this},v.restoreGraphicsState=function(){ct("Q");var t=Ft.pop();return xt=t.key,ht=t.size,Bn=t.color,Pt=null,this},v.setCurrentTransformationMatrix=function(t){return ct(t.toString()+" cm"),this},v.comment=function(t){return ct("#"+t),this};var Ln=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Fn=function(t,e,n,r){Ln.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},kn=function(){this.page=Ot,this.currentPage=J,this.pages=it.slice(0),this.pagesContext=Tt.slice(0),this.x=_t,this.y=Ct,this.matrix=St,this.width=Pn(J),this.height=Tn(J),this.outputDestination=at,this.id="",this.objectNumber=-1};kn.prototype.restore=function(){Ot=this.page,J=this.currentPage,Tt=this.pagesContext,it=this.pages,_t=this.x,Ct=this.y,St=this.matrix,On(J,this.width),Mn(J,this.height),at=this.outputDestination};var Un=function(t,e,n,r,i){jt.push(new kn),Ot=J=0,it=[],_t=t,Ct=e,St=i,Fe([n,r])},Qn=function(t){if(!Dt[t]){var e=new kn,n="Xo"+(Object.keys(Rt).length+1).toString(10);e.id=n,Dt[t]=n,Rt[n]=e,Mt.publish("addFormObject",e),jt.pop().restore()}};for(var In in v.beginFormObject=function(t,e,n,r,i){return Un(t,e,n,r,i),this},v.endFormObject=function(t){return Qn(t),this},v.doFormObject=function(t,e){var n=Rt[Dt[t]];return ct("q"),ct(e.toString()+" cm"),ct("/"+n.id+" Do"),ct("Q"),this},v.getFormObject=function(t){var e=Rt[Dt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},v.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(f(je(De()),t),"function"==typeof f.unload&&i.setTimeout&&setTimeout(f.unload,911),this):new Promise((function(e,n){try{var r=f(je(De()),t);"function"==typeof f.unload&&i.setTimeout&&setTimeout(f.unload,911),e(r)}catch(t){n(t.message)}}))},P.API)P.API.hasOwnProperty(In)&&("events"===In&&P.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(Mt,P.API.events):v[In]=P.API[In]);var Pn=v.getPageWidth=function(t){return(Tt[t=t||J].mediaBox.topRightX-Tt[t].mediaBox.bottomLeftX)/Nt},On=v.setPageWidth=function(t,e){Tt[t].mediaBox.topRightX=e*Nt+Tt[t].mediaBox.bottomLeftX},Tn=v.getPageHeight=function(t){return(Tt[t=t||J].mediaBox.topRightY-Tt[t].mediaBox.bottomLeftY)/Nt},Mn=v.setPageHeight=function(t,e){Tt[t].mediaBox.topRightY=e*Nt+Tt[t].mediaBox.bottomLeftY};return v.internal={pdfEscape:Le,getStyle:$e,getFont:cn,getFontSize:dt,getCharSpace:_n,getTextColor:xn,getLineHeight:hn,getLineHeightFactor:dn,write:lt,getHorizontalCoordinate:gn,getVerticalCoordinate:mn,getCoordinateString:vn,getVerticalCoordinateString:wn,collections:{},newObject:Gt,newAdditionalObject:Jt,newObjectDeferred:Wt,newObjectDeferredBegin:Xt,getFilters:ee,putStream:ne,events:Mt,scaleFactor:Nt,pageSize:{getWidth:function(){return Pn(J)},setWidth:function(t){On(J,t)},getHeight:function(){return Tn(J)},setHeight:function(t){Mn(J,t)}},encryptionOptions:d,encryption:qe,getEncryptor:Ve,output:ze,getNumberOfPages:Ie,pages:it,out:ct,f2:T,f3:M,getPageInfo:Ge,getPageInfoByObjId:We,getCurrentPageInfo:Xe,getPDFVersion:y,Point:Ln,Rectangle:Fn,Matrix:zt,hasHotfix:Ke},Object.defineProperty(v.internal.pageSize,"width",{get:function(){return Pn(J)},set:function(t){On(J,t)},enumerable:!0,configurable:!0}),Object.defineProperty(v.internal.pageSize,"height",{get:function(){return Tn(J)},set:function(t){Mn(J,t)},enumerable:!0,configurable:!0}),Ce.call(v,ft),xt="F1",ke(o,n),Mt.publish("initialized"),v}L.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},L.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},L.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},L.prototype.processOwnerPassword=function(t,e){return S(_(e).substr(0,5),t)},L.prototype.encryptor=function(t,e){var n=_(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return S(n,t)}},k.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||typeof t!=typeof this)return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},P.API={events:[]},P.version="2.3.1";var O=P.API,T=1,M=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},H=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},R=function(t){return t.toFixed(2)},D=function(t){return t.toFixed(5)};O.__acroform__={};var j=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},z=function(t){return t*T},K=function(t){var e=new at,n=yt.internal.getHeight(t)||0,r=yt.internal.getWidth(t)||0;return e.BBox=[0,0,Number(R(r)),Number(R(n))],e},q=O.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},V=O.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},G=O.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},W=O.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return G(t,e-1)},X=O.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return q(t,e-1)},J=O.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return V(t,e-1)},Y=O.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],o=t[1],a=t[2],s=t[3],u={};return u.lowerLeft_X=n(i)||0,u.lowerLeft_Y=r(o+s)||0,u.upperRight_X=n(i+a)||0,u.upperRight_Y=r(o)||0,[Number(R(u.lowerLeft_X)),Number(R(u.lowerLeft_Y)),Number(R(u.upperRight_X)),Number(R(u.upperRight_Y))]},$=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=Z(t,n),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+R(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var o=K(t);return o.scope=t.scope,o.stream=e.join("\n"),o}},Z=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),o=n,a=yt.internal.getHeight(t)||0;a=a<0?-a:a;var s=yt.internal.getWidth(t)||0;s=s<0?-s:s;var u=function(e,n,r){if(e+1<i.length){var o=n+" "+i[e+1];return tt(o,t,r).width<=s-4}return!1};o++;t:for(;o>0;){e="",o--;var c,l,A=tt("3",t,o).height,f=t.multiline?a-o:(a-A)/2,h=f+=2,p=0,d=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+tt(e,t,o=12).width+", FieldWidth:"+s+"\n";break}var g="",m=0;for(var v in i)if(i.hasOwnProperty(v)){g=" "==(g+=i[v]+" ").substr(g.length-1)?g.substr(0,g.length-1):g;var w=parseInt(v),y=u(w,g,o),b=v>=i.length-1;if(y&&!b){g+=" ";continue}if(y||b){if(b)d=w;else if(t.multiline&&(A+2)*(m+2)+2>a)continue t}else{if(!t.multiline)continue t;if((A+2)*(m+2)+2>a)continue t;d=w}for(var B="",x=p;x<=d;x++)B+=i[x]+" ";switch(B=" "==B.substr(B.length-1)?B.substr(0,B.length-1):B,l=tt(B,t,o).width,t.textAlign){case"right":c=s-l-2;break;case"center":c=(s-l)/2;break;case"left":default:c=2}e+=R(c)+" "+R(h)+" Td\n",e+="("+M(B)+") Tj\n",e+=-R(c)+" 0 Td\n",h=-(o+2),l=0,p=d+1,m++,g=""}break}return r.text=e,r.fontSize=o,r},tt=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},et={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},nt=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},rt=O.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var i="[",o=0;o<t.length;o++)switch(0!==o&&(i+=" "),typeof t[o]){case"boolean":case"number":case"object":i+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),i+="("+M(r(t[o].toString()))+")"):i+=t[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},it=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+M(r(t))+")"},ot=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ot.prototype.toString=function(){return this.objId+" 0 R"},ot.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ot.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:rt(i,this.objId,this.scope)}):i instanceof ot?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var at=function(){ot.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};j(at,ot);var st=function(){ot.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+M(e(t))+")"}},set:function(e){t=e}})};j(st,ot);var ut=function t(){ot.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(e,3))},set:function(t){!0===Boolean(t)?this.F=X(e,3):this.F=J(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof gt)return;o="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+M(e(o))+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var u=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/T:c},set:function(t){c=t}});var l="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var A="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!A||this instanceof gt||this instanceof vt))return it(A,this.objId,this.scope)},set:function(t){t=t.toString(),A=t}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof ht==0?it(f,this.objId,this.scope):f},set:function(t){t=t.toString(),f=this instanceof ht==0?"("===t.substr(0,1)?H(t.substr(1,t.length-2)):H(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ht==1?H(f.substr(1,f.length-1)):f},set:function(t){t=t.toString(),f=this instanceof ht==1?"/"+t:t}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ht==0?it(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof ht==0?"("===t.substr(0,1)?H(t.substr(1,t.length-2)):H(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ht==1?H(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof ht==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var p,d=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return d},set:function(t){t=Boolean(t),d=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(p)return p},set:function(t){p=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,1):this.Ff=J(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,2):this.Ff=J(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,3):this.Ff=J(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};j(ut,ot);var ct=function(){ut.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return rt(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,18):this.Ff=J(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=X(this.Ff,19):this.Ff=J(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=X(this.Ff,20),e.sort()):this.Ff=J(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,22):this.Ff=J(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=J(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,27):this.Ff=J(this.Ff,27)}}),this.hasAppearanceStream=!1};j(ct,ut);var lt=function(){ct.call(this),this.fontName="helvetica",this.combo=!1};j(lt,ct);var At=function(){lt.call(this),this.combo=!0};j(At,lt);var ft=function(){At.call(this),this.edit=!0};j(ft,At);var ht=function(){ut.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,15):this.Ff=J(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,16):this.Ff=J(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,17):this.Ff=J(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=J(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+M(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"==typeof t&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};j(ht,ut);var pt=function(){ht.call(this),this.pushButton=!0};j(pt,ht);var dt=function(){ht.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};j(dt,ht);var gt=function(){var t,e;ut.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+M(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"==typeof t&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=yt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};j(gt,ut),dt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},dt.prototype.createOption=function(t){var e=new gt;return e.Parent=this,e.optionName=t,this.Kids.push(e),bt.call(this.scope,e),e};var mt=function(){ht.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=yt.CheckBox.createAppearanceStream()};j(mt,ht);var vt=function(){ut.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,13):this.Ff=J(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,21):this.Ff=J(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,23):this.Ff=J(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,24):this.Ff=J(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,25):this.Ff=J(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,26):this.Ff=J(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};j(vt,ut);var wt=function(){vt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(W(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=X(this.Ff,14):this.Ff=J(this.Ff,14)}}),this.password=!0};j(wt,vt);var yt={CheckBox:{createAppearanceStream:function(){return{N:{On:yt.CheckBox.YesNormal},D:{On:yt.CheckBox.YesPushDown,Off:yt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=K(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=Z(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+R(yt.internal.getWidth(t))+" "+R(yt.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+R(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=K(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=yt.internal.getHeight(t),a=yt.internal.getWidth(t),s=Z(t,t.caption);return i.push("1 g"),i.push("0 0 "+R(a)+" "+R(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+R(a-1)+" "+R(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+R(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=K(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+R(yt.internal.getWidth(t))+" "+R(yt.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:yt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=yt.RadioButton.Circle.YesNormal,e.D[t]=yt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=K(t);e.scope=t.scope;var n=[],r=yt.internal.getWidth(t)<=yt.internal.getHeight(t)?yt.internal.getWidth(t)/4:yt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=yt.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+D(yt.internal.getWidth(t)/2)+" "+D(yt.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=K(t);e.scope=t.scope;var n=[],r=yt.internal.getWidth(t)<=yt.internal.getHeight(t)?yt.internal.getWidth(t)/4:yt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*yt.internal.Bezier_C).toFixed(5)),a=Number((r*yt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+D(yt.internal.getWidth(t)/2)+" "+D(yt.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+D(yt.internal.getWidth(t)/2)+" "+D(yt.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=K(t);e.scope=t.scope;var n=[],r=yt.internal.getWidth(t)<=yt.internal.getHeight(t)?yt.internal.getWidth(t)/4:yt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),o=Number((i*yt.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+D(yt.internal.getWidth(t)/2)+" "+D(yt.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:yt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=yt.RadioButton.Cross.YesNormal,e.D[t]=yt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=K(t);e.scope=t.scope;var n=[],r=yt.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+R(yt.internal.getWidth(t)-2)+" "+R(yt.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(R(r.x1.x)+" "+R(r.x1.y)+" m"),n.push(R(r.x2.x)+" "+R(r.x2.y)+" l"),n.push(R(r.x4.x)+" "+R(r.x4.y)+" m"),n.push(R(r.x3.x)+" "+R(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=K(t);e.scope=t.scope;var n=yt.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+R(yt.internal.getWidth(t))+" "+R(yt.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+R(yt.internal.getWidth(t)-2)+" "+R(yt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(R(n.x1.x)+" "+R(n.x1.y)+" m"),r.push(R(n.x2.x)+" "+R(n.x2.y)+" l"),r.push(R(n.x4.x)+" "+R(n.x4.y)+" m"),r.push(R(n.x3.x)+" "+R(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=K(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+R(yt.internal.getWidth(t))+" "+R(yt.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};yt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=yt.internal.getWidth(t),n=yt.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},yt.internal.getWidth=function(t){var e=0;return"object"==typeof t&&(e=z(t.Rect[2])),e},yt.internal.getHeight=function(t){var e=0;return"object"==typeof t&&(e=z(t.Rect[3])),e};var bt=O.addField=function(t){if(function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(ut.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(et)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");T=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new st,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&nt(r,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var i=t[r],o=[],a=i.Rect;if(i.Rect&&(i.Rect=Y(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=yt.createDefaultAppearanceStream(i),"object"==typeof i&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=a,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=$(i);o.push({key:"AP",value:"<</N "+s+">>"}),e.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var u="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var l=i.appearanceStreamContent[c];if(u+="/"+c+" ",u+="<<",Object.keys(l).length>=1||Array.isArray(l)){for(var r in l)if(l.hasOwnProperty(r)){var A=l[r];"function"==typeof A&&(A=A.call(e,i)),u+="/"+r+" "+A+" ",e.internal.acroformPlugin.xForms.indexOf(A)>=0||e.internal.acroformPlugin.xForms.push(A)}}else"function"==typeof(A=l)&&(A=A.call(e,i)),u+="/"+r+" "+A,e.internal.acroformPlugin.xForms.indexOf(A)>=0||e.internal.acroformPlugin.xForms.push(A);u+=">>"}o.push({key:"AP",value:"<<\n"+u+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:i.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,i=t[n];e.internal.newObjectDeferredBegin(i.objId,!0),"object"==typeof i&&"function"==typeof i.putStream&&i.putStream(),delete t[r]}}(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}}(this,t),!(t instanceof ut))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};O.AcroFormChoiceField=ct,O.AcroFormListBox=lt,O.AcroFormComboBox=At,O.AcroFormEditBox=ft,O.AcroFormButton=ht,O.AcroFormPushButton=pt,O.AcroFormRadioButton=dt,O.AcroFormCheckBox=mt,O.AcroFormTextField=vt,O.AcroFormPasswordField=wt,O.AcroFormAppearance=yt,O.AcroForm={ChoiceField:ct,ListBox:lt,ComboBox:At,EditBox:ft,Button:ht,PushButton:pt,RadioButton:dt,CheckBox:mt,TextField:vt,PasswordField:wt,Appearance:yt},P.AcroForm={ChoiceField:ct,ListBox:lt,ComboBox:At,EditBox:ft,Button:ht,PushButton:pt,RadioButton:dt,CheckBox:mt,TextField:vt,PasswordField:wt,Appearance:yt};P.AcroForm;function Bt(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var i,o;r=r||e;var a,s,u,c=e;if(N(t))for(u in n)for(a=n[u],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t[o]){s=!1;break}if(!0===s){c=u;break}}else for(u in n)for(a=n[u],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){c=u;break}}return c===e&&r!==e&&(c=r),c},i=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:e.width}),o.push({key:"Height",value:e.height}),e.colorSpace===v.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===v.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var a="",s=0,u=e.transparency.length;s<u;s++)a+=e.transparency[s]+" "+e.transparency[s]+" ";o.push({key:"Mask",value:"["+a+"]"})}void 0!==e.sMask&&o.push({key:"SMask",value:e.objectId+1+" 0 R"});var c=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:o,alreadyAppliedFilters:c,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var l="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,A={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:l,data:e.sMask};"filter"in e&&(A.filter=e.filter),t.call(this,A)}if(e.colorSpace===v.INDEXED){var f=this.internal.newObject();r({data:C(new Uint8Array(e.palette)),objectId:f}),n("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)i.call(this,t[e])},a=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).index,t.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",a))},u=function(){var t=this.internal.collections.addImage_images;return s.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},f=function(e){return"function"==typeof t["process"+e.toUpperCase()]},h=function(t){return"object"==typeof t&&1===t.nodeType},p=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return l(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;case"JPEG":case"JPG":default:o="image/jpeg"}return l(e.toDataURL(o,1).split("base64,").pop())}},d=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},g=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},m=function(t,e,n,r,i,o){var a=g.call(this,n,r,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,l=u.call(this);if(n=a[0],r=a[1],l[i.index]=i,o){o*=Math.PI/180;var A=Math.cos(o),f=Math.sin(o),h=function(t){return t.toFixed(4)},p=[h(A),h(f),h(-1*f),h(A),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(t),c(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),c(e+r),"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")},v=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var w=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(N(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},b=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},B=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},x=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return x()&&t instanceof ArrayBuffer};var N=t.__addimage__.isArrayBufferView=function(t){return x()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},_=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},C=t.__addimage__.arrayBufferToBinaryString=function(t){try{return l(A(String.fromCharCode.apply(null,t)))}catch(e){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(t).reduce((function(t,e){return t.push(String.fromCharCode(e)),t}),[]).join("")}};t.addImage=function(){var t,n,r,i,o,a,u,c,l;if("number"==typeof arguments[1]?(n=e,r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4],u=arguments[5],c=arguments[6],l=arguments[7]):(n=arguments[1],r=arguments[2],i=arguments[3],o=arguments[4],a=arguments[5],u=arguments[6],c=arguments[7],l=arguments[8]),"object"==typeof(t=arguments[0])&&!h(t)&&"imageData"in t){var A=t;t=A.imageData,n=A.format||n||e,r=A.x||r||0,i=A.y||i||0,o=A.w||A.width||o,a=A.h||A.height||a,u=A.alias||u,c=A.compression||c,l=A.rotation||A.angle||l}var f=this.internal.getFilters();if(void 0===c&&-1!==f.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var p=S.call(this,t,n,u,c);return m.call(this,r,i,o,a,p,l),this};var S=function(n,i,o,a){var s,u,l;if("string"==typeof n&&r(n)===e){n=unescape(n);var A=E(n,!1);(""!==A||void 0!==(A=t.loadFile(n,!0)))&&(n=A)}if(h(n)&&(n=p(n,i)),i=r(n,i),!f(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(l=o)||0===l.length)&&(o=function(t){return"string"==typeof t||N(t)?y(t):null}(n)),(s=d.call(this,o))||(x()&&(n instanceof Uint8Array||(u=n,n=_(n))),s=this["process"+i.toUpperCase()](n,c.call(this),o,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:w.NONE}(a),u)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},E=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){r=null!==(n=B(t))?n.data:t;try{i=l(r)}catch(t){if(e)throw b(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(n){var i,o,a="";if(h(n)&&(n=p(n)),"string"==typeof n&&r(n)===e&&(""===(a=E(n,!1))&&(a=t.loadFile(n)||""),n=a),o=r(n),!f(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(!x()||n instanceof Uint8Array||(n=_(n)),!(i=this["process"+o.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=o,i}}(P.API),function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};P.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var n,r,i,o=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),u=t.pageContext.annotations,c=!1,l=0;l<u.length&&!c;l++)switch((n=u[l]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var A=0;A<u.length;A++){n=u[A];var f=this.internal.pdfEscape,h=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),d=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(p.objId),m=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(n.bounds.x)+" "+a(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y)+"] ")+"/Contents ("+f(g(n.contents))+")",i+=" /Popup "+d.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+f(g(m))+") >>",p.content=i;var v=p.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(n.bounds.x+30)+" "+a(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+a(n.bounds.y)+"] ")+" /Parent "+v,n.open&&(i+=" /Open true"),i+=" >>",d.content=i,this.internal.write(p.objId,"0 R",d.objId,"0 R");break;case"freetext":r="/Rect ["+o(n.bounds.x)+" "+a(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+a(n.bounds.y+n.bounds.h)+"] ";var w=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+f(h(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+w+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var y=this.annotations._nameMap[n.options.name];n.options.pageNumber=y.page,n.options.top=y.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+f(h(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var b=a(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+b+" "+n.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,n,r,i){var o=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:a(t),y:s(e),w:a(t+n),h:s(e+r)},options:i,type:"link"})},t.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n,r),n+=.2*o,"center"===r.align&&(e-=i/2),"right"===r.align&&(e-=i),this.link(e,n-o,i,o,r),i},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(P.API),function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},u=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var l=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length},A=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",o=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(o++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,o=0),e===t.length-1&&(r=n,i+=t.charAt(e-(o-1)),e-=o-1,o=0)):(r=n,i+=t.charAt(e-o),e-=o,o=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var f=t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!c(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&u(e)||s(t)&&s(e)?0:l(t)&&a(e)&&!s(e)&&a(n)&&c(n)?3:s(t)||!a(n)?1:2:-1},h=function(t){var n=0,r=0,i=0,o="",s="",u="",c=(t=t||"").split("\\s+"),l=[];for(n=0;n<c.length;n+=1){for(l.push(""),r=0;r<c[n].length;r+=1)o=c[n][r],s=c[n][r-1],u=c[n][r+1],a(o)?(i=f(o,s,u),l[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):l[n]+=o;l[n]=A(l[n])}return l.join(" ")},p=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([h(e[r][0]),e[r][1],e[r][2]]):n.push([h(e[r])]);t=n}else t=h(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",p])}(P.API),P.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(P.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(t){a=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),i=e.font||this.getFont(),o=e.scaleFactor||this.internal.scaleFactor,a=0,s=0,u=0,c=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var l=e.maxWidth;l>0?"string"==typeof t?t=this.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(c.splitTextToSize(e,l))}),[])):t=Array.isArray(t)?t:[t];for(var A=0;A<t.length;A++)a<(u=this.getStringUnitWidth(t[A],{font:i})*n)&&(a=u);return 0!==a&&(s=t.length),{w:a/=o,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var i=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,u=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===t.lineNumber?(t.x=(i.x||0)+(i.width||0),t.y=i.y||0):i.y+i.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,c&&u&&(this.printHeaderRow(t.lineNumber,!0),t.y+=u[0].height)):t.y=i.y+i.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,u,c,l){if(r.call(this),!u)throw new Error("No data for PDF table.");var A,f,h,p,d=[],g=[],m=[],v={},w={},y=[],b=[],B=(l=l||{}).autoSize||!1,x=!1!==l.printHeaders,N=l.css&&void 0!==l.css["font-size"]?16*l.css["font-size"]:l.fontSize||12,_=l.margins||Object.assign({width:this.getPageWidth()},e),C="number"==typeof l.padding?l.padding:3,S=l.headerBackgroundColor||"#c8c8c8";if(i.call(this),this.internal.__cell__.printHeaders=x,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=C,this.internal.__cell__.headerBackgroundColor=S,this.setFontSize(N),null==c)g=d=Object.keys(u[0]),m=d.map((function(){return"left"}));else if(Array.isArray(c)&&"object"==typeof c[0])for(d=c.map((function(t){return t.name})),g=c.map((function(t){return t.prompt||t.name||""})),m=c.map((function(t){return t.align||"left"})),A=0;A<c.length;A+=1)w[c[A].name]=c[A].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(g=d=c,m=d.map((function(){return"left"})));if(B||Array.isArray(c)&&"string"==typeof c[0])for(A=0;A<d.length;A+=1){for(v[p=d[A]]=u.map((function(t){return t[p]})),this.setFont(void 0,"bold"),y.push(this.getTextDimensions(g[A],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),f=v[p],this.setFont(void 0,"normal"),h=0;h<f.length;h+=1)y.push(this.getTextDimensions(f[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);w[p]=Math.max.apply(null,y)+C+C,y=[]}if(x){var E={};for(A=0;A<d.length;A+=1)E[d[A]]={},E[d[A]].text=g[A],E[d[A]].align=m[A];var L=s.call(this,E,w);b=d.map((function(e){return new o(t,n,w[e],L,E[e].text,void 0,E[e].align)})),this.setTableHeaderRow(b),this.printHeaderRow(1,!1)}var F=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(A=0;A<u.length;A+=1){var k=s.call(this,u[A],w);for(h=0;h<d.length;h+=1)a.call(this,new o(t,n,w[d[h]],k,u[A][d[h]],A+2,F[d[h]]))}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var s=function(t,e){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/i+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var u=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1)i=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(i.y=this.internal.__cell__.margins.top||0,u.push(i)),i.lineNumber=t,this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,i);u.length>0&&this.setTableHeaderRow(u),this.setFont(void 0,"normal"),n=!1}}(P.API);var xt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Nt=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],_t=Bt(Nt),Ct=[100,200,300,400,500,600,700,800,900],St=Bt(Ct);function Et(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return xt[t=t||"normal"]?t:"normal"}(t.style),r=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(t){return"number"==typeof _t[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function Lt(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Ft={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},kt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ut(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Qt(t){return t.trimLeft()}function It(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function Pt(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var Ot,Tt,Mt,Ht,Rt=["times"];!function(t){var e,n,r,i,o,s,u,c,l,A=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new f(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,u=this.internal.Rectangle,c=this.internal.Matrix,l=new A}]);var f=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(t){isNaN(t)||(o=t)}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=Boolean(t)}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var u=[];Object.defineProperty(this,"pageBreaks",{get:function(){return u},set:function(t){u=t}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(t){t instanceof A&&(l=t)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(t){l.path=t}});var c=[];Object.defineProperty(this,"ctxStack",{get:function(){return c},set:function(t){c=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=p(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=p(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var f=null;function h(t,e){if(null===f){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))}))})),e}(t.getFontList());f=function(t){for(var e={},n=0;n<t.length;++n){var r=Et(t[n]),i=r.family,o=r.stretch,a=r.style,s=r.weight;e[i]=e[i]||{},e[i][o]=e[i][o]||{},e[i][o][a]=e[i][o][a]||{},e[i][o][a][s]=r}return e}(n.concat(e))}return f}var d=null;Object.defineProperty(this,"fontFaces",{get:function(){return d},set:function(t){f=null,d=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=(e[5],e[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===a?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,n,r=[],i=t.trim();if(""===i)return Rt;if(i in kt)return[kt[i]];for(;""!==i;){switch(n=null,e=(i=Qt(i)).charAt(0)){case'"':case"'":n=It(i.substring(1),e);break;default:n=Pt(i)}if(null===n)return Rt;if(r.push(n[0]),""!==(i=Qt(n[1]))&&","!==i.charAt(0))return Rt;i=i.replace(/^,/,"")}return r}(o);if(this.fontFaces){var u=function(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Ft,n.genericFontFamilies||{}),o=null,a=null,s=0;s<e.length;++s)if(i[(o=Et(e[s])).family]&&(o.family=i[o.family]),t.hasOwnProperty(o.family)){a=t[o.family];break}if(!(a=a||t[r]))throw new Error("Could not find a font-family for the rule '"+Ut(o)+"' and default family '"+r+"'.");if(a=function(t,e){if(e[t])return e[t];var n=_t[t],r=n<=_t.normal?-1:1,i=Lt(e,Nt,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(o.stretch,a),a=function(t,e){if(e[t])return e[t];for(var n=xt[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(o.style,a),!(a=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=St[t],r=Lt(e,Ct,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(o.weight,a)))throw new Error("Failed to resolve a font for the rule '"+Ut(o)+"'.");return a}(h(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(u.ref.name,u.ref.style)}else{var c="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var l="",A={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"},f=0;f<s.length;f++){if(void 0!==this.pdf.internal.getFont(s[f],c,{noFallback:!0,disableWarning:!0})){l=s[f];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(s[f],"bold",{noFallback:!0,disableWarning:!0}))l=s[f],c="bold";else if(void 0!==this.pdf.internal.getFont(s[f],"normal",{noFallback:!0,disableWarning:!0})){l=s[f],c="normal";break}}if(""===l)for(var p=0;p<s.length;p++)if(A[s[p]]){l=A[s[p]];break}l=""===l?"Times":l,this.pdf.setFont(l,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};f.prototype.fill=function(){b.call(this,"fill",!1)},f.prototype.stroke=function(){b.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},f.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"==typeof this.path[e+1]&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"==typeof this.path[e+2]&&"number"==typeof this.path[e+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[e+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},f.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},f.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),o=this.ctx.transform.applyToPoint(new s(t,e));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)},f.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var u=this.ctx.transform.applyToPoint(new s(i,o)),c=this.ctx.transform.applyToPoint(new s(t,e)),l=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:c.x,y1:c.y,x2:l.x,y2:l.y,x:u.x,y:u.y}),this.ctx.lastPoint=new s(u.x,u.y)},f.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw a.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 u=this.ctx.transform.applyToPoint(new s(t,e));t=u.x,e=u.y;var c=this.ctx.transform.applyToPoint(new s(0,n)),l=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(c.x-l.x,2)+Math.pow(c.y-l.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},f.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},f.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},f.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},f.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},f.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},f.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},f.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,r=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new h(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},d=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},g=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};f.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw a.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!d.call(this)){n=x.call(this,n);var i=I(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;E.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw a.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){r=isNaN(r)?void 0:r,n=x.call(this,n);var i=I(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;E.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},f.prototype.measureText=function(t){if("string"!=typeof t)throw a.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor,o=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new o({width:i*=Math.round(96*n/72*1e4)/1e4})},f.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.rotate=function(t){if(isNaN(t))throw a.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},f.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},f.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw a.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var s=new c(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(s)},f.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new c(t,e,n,r,i,o)},f.prototype.drawImage=function(t,e,n,r,i,o,a,s,l){var A=this.pdf.getImageProperties(t),f=1,h=1,p=1,d=1;void 0!==r&&void 0!==s&&(p=s/r,d=l/i,f=A.width/r*s/r,h=A.height/i*l/i),void 0===o&&(o=e,a=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,l=i),void 0===r&&void 0===s&&(s=A.width,l=A.height);for(var g,v=this.ctx.transform.decompose(),b=I(v.rotate.shx),x=new c,N=(x=(x=(x=x.multiply(v.translate)).multiply(v.skew)).multiply(v.scale)).applyToRectangle(new u(o-e*p,a-n*d,r*f,i*h)),_=m.call(this,N),C=[],S=0;S<_.length;S+=1)-1===C.indexOf(_[S])&&C.push(_[S]);if(y(C),this.autoPaging)for(var E=C[0],L=C[C.length-1],F=E;F<L+1;F++){if(this.pdf.setPage(F),0!==this.ctx.clip_path.length){var k=this.path;g=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(g,this.posX,-1*this.pdf.internal.pageSize.height*(F-1)+this.posY),B.call(this,"fill",!0),this.path=k}var U=JSON.parse(JSON.stringify(N));U=w([U],this.posX,-1*this.pdf.internal.pageSize.height*(F-1)+this.posY)[0],this.pdf.addImage(t,"JPEG",U.x,U.y,U.w,U.h,null,null,b)}else this.pdf.addImage(t,"JPEG",N.x,N.y,N.w,N.h,null,null,b)};var m=function(t,e,n){var r=[];switch(e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/n)+1),r.push(Math.floor((t.y+this.posY+t.radius)/n)+1);break;case"qct":var i=P(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(i.y/n)+1),r.push(Math.floor((i.y+i.h)/n)+1);break;case"bct":var o=O(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/n)+1),r.push(Math.floor((t.y+t.h+this.posY)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)v.call(this);return r},v=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},w=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},y=function(t){return t.sort((function(t,e){return t-e}))},b=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=this.lineCap,s=this.lineWidth,u=s*this.ctx.transform.scaleX,c=this.lineJoin,l=JSON.parse(JSON.stringify(this.path)),A=JSON.parse(JSON.stringify(this.path)),f=[],h=0;h<A.length;h++)if(void 0!==A[h].x)for(var p=m.call(this,A[h]),d=0;d<p.length;d+=1)-1===f.indexOf(p[d])&&f.push(p[d]);for(var g=0;g<f.length;g++)for(;this.pdf.internal.getNumberOfPages()<f[g];)v.call(this);if(y(f),this.autoPaging)for(var b=f[0],x=f[f.length-1],N=b;N<x+1;N++){if(this.pdf.setPage(N),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=u,this.lineJoin=c,0!==this.ctx.clip_path.length){var _=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(n,this.posX,-1*this.pdf.internal.pageSize.height*(N-1)+this.posY),B.call(this,t,!0),this.path=_}r=JSON.parse(JSON.stringify(l)),this.path=w(r,this.posX,-1*this.pdf.internal.pageSize.height*(N-1)+this.posY),!1!==e&&0!==N||B.call(this,t,e),this.lineWidth=s}else this.lineWidth=u,B.call(this,t,e),this.lineWidth=s;this.path=l},B=function(t,e){if(("stroke"!==t||e||!g.call(this))&&("stroke"===t||e||!d.call(this))){for(var n,r,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(!isNaN(o[a-1].x)&&(n=[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(n),i[u-1].abs.push(s);break}break;case"bct":n=[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(n);break;case"qct":var c=o[a-1].x+2/3*(s.x1-o[a-1].x),l=o[a-1].y+2/3*(s.y1-o[a-1].y),A=s.x+2/3*(s.x1-s.x),f=s.y+2/3*(s.y1-s.y),h=s.x,p=s.y;n=[c-o[a-1].x,l-o[a-1].y,A-o[a-1].x,f-o[a-1].y,h-o[a-1].x,p-o[a-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var m=0;m<i.length;m++){if(i[m].arc){for(var v=i[m].abs,w=0;w<v.length;w++){var y=v[w];"arc"===y.type?N.call(this,y.x,y.y,y.radius,y.startAngle,y.endAngle,y.counterclockwise,void 0,e):L.call(this,y.x,y.y)}_.call(this,r),this.pdf.internal.out("h")}if(!i[m].arc&&!0!==i[m].close&&!0!==i[m].begin){var b=i[m].start.x,B=i[m].start.y;F.call(this,i[m].deltas,b,B)}}r&&_.call(this,r),e&&C.call(this)}},x=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}};f.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(t,e,n,r,i,o,a,s){for(var u=U.call(this,n,r,i,o),c=0;c<u.length;c++){var l=u[c];0===c&&S.call(this,l.x1+t,l.y1+e),k.call(this,t,e,l.x2,l.y2,l.x3,l.y3,l.x4,l.y4)}s?C.call(this):_.call(this,a)},_=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},C=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},E=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.ctx.transform.applyToPoint(new s(t.x,t.y)),r=this.ctx.transform.decompose(),i=new c;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a,l,A=this.pdf.getTextDimensions(t.text),f=this.ctx.transform.applyToRectangle(new u(t.x,t.y,A.w,A.h)),h=i.applyToRectangle(new u(t.x,t.y-A.h,A.w,A.h)),p=m.call(this,h),d=[],g=0;g<p.length;g+=1)-1===d.indexOf(p[g])&&d.push(p[g]);if(y(d),!0===this.autoPaging)for(var v=d[0],b=d[d.length-1],x=v;x<b+1;x++){if(this.pdf.setPage(x),0!==this.ctx.clip_path.length){var N=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=w(o,this.posX,-1*this.pdf.internal.pageSize.height*(x-1)+this.posY),B.call(this,"fill",!0),this.path=N}var _=JSON.parse(JSON.stringify(f));_=w([_],this.posX,-1*this.pdf.internal.pageSize.height*(x-1)+this.posY)[0],t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),l=this.lineWidth,this.lineWidth=l*t.scale),this.pdf.text(t.text,_.x,_.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=l)}else t.scale>=.01&&(a=this.pdf.internal.getFontSize(),this.pdf.setFontSize(a*t.scale),l=this.lineWidth,this.lineWidth=l*t.scale),this.pdf.text(t.text,n.x+this.posX,n.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(a),this.lineWidth=l)},L=function(t,e,i,o){i=i||0,o=o||0,this.pdf.internal.out(n(t+i)+" "+r(e+o)+" l")},F=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},k=function(t,n,r,a,s,u,c,l){this.pdf.internal.out([e(i(r+t)),e(o(a+n)),e(i(s+t)),e(o(u+n)),e(i(c+t)),e(o(l+n)),"c"].join(" "))},U=function(t,e,n,r){for(var i=2*Math.PI,o=Math.PI/2;e>n;)e-=i;var a=Math.abs(n-e);a<i&&r&&(a=i-a);for(var s=[],u=r?-1:1,c=e;a>1e-5;){var l=c+u*Math.min(a,o);s.push(Q.call(this,t,c,l)),a-=Math.abs(l-c),c=l}return s},Q=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,u=a*a+s*s,c=u+a*i+s*o,l=4/3*(Math.sqrt(2*u*c)-c)/(a*o-s*i),A=a-l*s,f=s+l*a,h=A,p=-f,d=r+e,g=Math.cos(d),m=Math.sin(d);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:A*g-f*m,y2:A*m+f*g,x3:h*g-p*m,y3:h*m+p*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},I=function(t){return 180*t/Math.PI},P=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),c=i+.5*(n-i),l=o+.5*(r-o),A=Math.min(t,i,a,c),f=Math.max(t,i,a,c),h=Math.min(e,o,s,l),p=Math.max(e,o,s,l);return new u(A,h,f-A,p-h)},O=function(t,e,n,r,i,o,a,s){var c,l,A,f,h,p,d,g,m,v,w,y,b,B,x=n-t,N=r-e,_=i-n,C=o-r,S=a-i,E=s-o;for(l=0;l<41;l++)m=(d=(A=t+(c=l/40)*x)+c*((h=n+c*_)-A))+c*(h+c*(i+c*S-h)-d),v=(g=(f=e+c*N)+c*((p=r+c*C)-f))+c*(p+c*(o+c*E-p)-g),0==l?(w=m,y=v,b=m,B=v):(w=Math.min(w,m),y=Math.min(y,v),b=Math.max(b,m),B=Math.max(B,v));return new u(Math.round(w),Math.round(y),Math.round(b-w),Math.round(B-y))}}(P.API),function(t){var e=function(t){var e,n,r,i,o,a,s,u,c,l;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(l=o%85))/85)-(c=o%85))/85)-(u=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,u+33,c+33,l+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,r,i,o,a=String,s="length",u=255,c="charCodeAt",l="slice",A="replace";for(t[l](-2),t=t[l](0,-2)[A](/\s/g,"")[A]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[l](t[s]%5||5))[s];o>i;i+=5)n=52200625*(t[c](i)-33)+614125*(t[c](i+1)-33)+7225*(t[c](i+2)-33)+85*(t[c](i+3)-33)+(t[c](i+4)-33),r.push(u&n>>24,u&n>>16,u&n>>8,u&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[s]),a.fromCharCode.apply(a,r)},i=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},o=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=Object(r.b)(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,r){var a=0,s=t||"",u=[];for("string"==typeof(r=r||[])&&(r=[r]),a=0;a<r.length;a+=1)switch(r[a]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=i(s),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=o(s),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+r[a]+'" is not implemented')}return{data:s,reverseChain:u.reverse().join(" ")}}}(P.API),(Ht=P.API).loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,o=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(o(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return o(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},Ht.loadImageFile=Ht.loadFile,function(t){function e(){return(i.html2canvas?Promise.resolve(i.html2canvas):Promise.resolve().then(n.t.bind(null,23,7))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(i.DOMPurify?Promise.resolve(i.DOMPurify):n.e(4).then(n.t.bind(null,110,7))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var o=function(t){var e=typeof t;return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},a=function(t,e){var n=document.createElement(t);for(var r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},s=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r},u=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(u.prototype=Object.create(Promise.prototype)).constructor=u,u.convert=function(t,e){return t.__proto__=e||u.prototype,t},u.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"}},u.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(o(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(r).then((function(e){return this.set({src:a("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},u.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},u.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=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:t}),this.prop.container.appendChild(e),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"}))},u.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},u.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,r=Object.assign({async:!0,allowTaint:!0,scale:1,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete r.onrendered,e.context2d.autoPaging=!0,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.fontFaces=n,n)for(var i=0;i<n.length;++i){var o=n[i],a=o.src.find((function(t){return"truetype"===t.format}));a&&e.addFont(a.url,o.ref.name,o.ref.style)}return r.windowHeight=r.windowHeight||0,r.windowHeight=0==r.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):r.windowHeight,t(this.prop.container,r)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},u.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},u.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},u.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},u.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},u.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},u.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},u.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},u.prototype.set=function(t){if("object"!==o(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in u.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},u.prototype.get=function(t,e){return this.then((function(){var n=t in u.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},u.prototype.setMargin=function(t){return this.then((function(){switch(o(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},u.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||P.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},u.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},u.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},u.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},u.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:u.convert(Object.assign({},this),Promise.prototype),i=n.call(r,t,e);return u.convert(i,this.__proto__)},u.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},u.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},u.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return u.convert(e,this)},u.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},u.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},u.prototype.using=u.prototype.set,u.prototype.saveAs=u.prototype.save,u.prototype.export=u.prototype.output,u.prototype.run=u.prototype.then,P.getPageSize=function(t,e,n){if("object"==typeof t){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+e}var s,u=0,c=0;if(a.hasOwnProperty(o))u=a[o][1]/i,c=a[o][0]/i;else try{u=n[1],c=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>u&&(s=c,c=u,u=s);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",u>c&&(s=c,c=u,u=s)}return{width:c,height:u,unit:e,k:i,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(Et):null;var n=new u(e);return e.worker?n:n.from(t).doCallback()}}(P.API),P.API.addJS=function(t){return Mt=t,this.internal.events.subscribe("postPutResources",(function(){Ot=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ot+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Tt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Mt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Ot&&void 0!==Tt&&this.internal.out("/Names <</JavaScript "+Ot+" 0 R>>")})),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var o=r[i],a=n.exec(o);if(null!=a){var s=a[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(o)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,c=[];for(i=0;i<u;i++){var l=t.internal.newObject();c.push(l);var A=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+A.objId+" 0 R /XYZ null null null]>> endobj")}var f=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<c.length;i++)t.internal.write("(page_"+(i+1)+")"+c[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+f+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(P.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,o,a){var s,u=this.decode.DCT_DECODE,c=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=o||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,o={width:0,height:0,numcomponents:1},a=4;a<i;a+=2){if(a+=r,-1!==e.indexOf(t.charCodeAt(a+1))){n=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),o={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:n,numcomponents:t.charCodeAt(a+9)};break}r=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return o}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}c={data:t,width:s.width,height:s.height,colorSpace:a,bitsPerComponent:8,filter:u,index:n,alias:r}}return c}}(P.API);var Dt,jt,zt,Kt,qt,Vt=function(){var t,e,n;function o(t){var e,n,r,i,o,a,s,u,c,l,A,f,h,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),c=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,f=0;0<=e?f<e:f>e;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((l=r-this.transparency.indexed.length)>0)for(h=0;0<=l?h<l:h>l;0<=l?++h:--h)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(A=this.read(e)).indexOf(0),u=String.fromCharCode.apply(String,A.slice(0,s)),this.text[u]=String.fromCharCode.apply(String,A.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}o.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},o.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},o.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),i=0,o=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function a(r,a,s,u){var c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F=Math.ceil((o.width-r)/s),k=Math.ceil((o.height-a)/u),U=o.width==F&&o.height==k;for(B=e*F,y=U?n:new Uint8Array(B*k),p=t.length,b=0,l=0;b<k&&i<p;){switch(t[i++]){case 0:for(f=_=0;_<B;f=_+=1)y[l++]=t[i++];break;case 1:for(f=C=0;C<B;f=C+=1)c=t[i++],h=f<e?0:y[l-e],y[l++]=(c+h)%256;break;case 2:for(f=S=0;S<B;f=S+=1)c=t[i++],A=(f-f%e)/e,x=b&&y[(b-1)*B+A*e+f%e],y[l++]=(x+c)%256;break;case 3:for(f=E=0;E<B;f=E+=1)c=t[i++],A=(f-f%e)/e,h=f<e?0:y[l-e],x=b&&y[(b-1)*B+A*e+f%e],y[l++]=(c+Math.floor((h+x)/2))%256;break;case 4:for(f=L=0;L<B;f=L+=1)c=t[i++],A=(f-f%e)/e,h=f<e?0:y[l-e],0===b?x=N=0:(x=y[(b-1)*B+A*e+f%e],N=A&&y[(b-1)*B+(A-1)*e+f%e]),d=h+x-N,g=Math.abs(d-h),v=Math.abs(d-x),w=Math.abs(d-N),m=g<=v&&g<=w?h:v<=w?x:N,y[l++]=(c+m)%256;break;default:throw new Error("Invalid filter algorithm: "+t[i-1])}if(!U){var Q=((a+b*u)*o.width+r)*e,I=b*B;for(f=0;f<F;f+=1){for(var P=0;P<e;P+=1)n[Q++]=y[I++];Q+=(s-1)*e}}b++}}return t=Object(r.a)(t),1==o.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),n},o.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,u;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,t=0,e=a=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(u=o[t++])?u:255;return i},o.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,u,c,l,A,f;if(r=this.colors,l=null,n=this.hasAlphaChannel,this.palette.length&&(l=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),c=(i=t.data||t).length,a=l||e,o=s=0,1===r)for(;o<c;)u=l?4*e[o/4]:s,A=a[u++],i[o++]=A,i[o++]=A,i[o++]=A,i[o++]=n?a[u++]:255,s=u;else for(;o<c;)u=l?4*e[o/4]:s,i[o++]=a[u++],i[o++]=a[u++],i[o++]=a[u++],i[o++]=n?a[u++]:255,s=u},o.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var a=function(){if("[object Window]"===Object.prototype.toString.call(i)){try{e=i.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return a(),t=function(t){var r;if(!0===a())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},o.prototype.decodeFrames=function(e){var n,r,i,o,a,s,u,c;if(this.animation){for(c=[],r=a=0,s=(u=this.animation.frames).length;a<s;r=++a)n=u[r],i=e.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,c.push(n.image=t(i));return c}},o.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},o.prototype.animate=function(t){var e,n,r,i,o,a,s=this;return n=0,a=this.animation,i=a.numFrames,r=a.frames,o=a.numPlays,(e=function(){var a,u;if(a=n++%i,u=r[a],s.renderFrame(t,a),i>1&&n/i<o)return s.animation._timeout=setTimeout(e,u.delay)})()},o.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},o.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},o}();function Gt(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null,u=null;o&&(s=e,u=a,e+=3*a);var c=!0,l=[],A=0,f=null,h=0,p=null;for(this.width=n,this.height=r;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,p=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((S=t[e++])>=0))throw Error("Invalid block size");if(0===S)break;e+=S}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var d=t[e++];A=t[e++]|t[e++]<<8,f=t[e++],0==(1&d)&&(f=null),h=d>>2&7,e++;break;case 254:for(;;){if(!((S=t[e++])>=0))throw Error("Invalid block size");if(0===S)break;e+=S}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,y=t[e++],b=y>>6&1,B=1<<1+(7&y),x=s,N=u,_=!1;y>>7&&(_=!0,x=e,N=B,e+=3*B);var C=e;for(e++;;){var S;if(!((S=t[e++])>=0))throw Error("Invalid block size");if(0===S)break;e+=S}l.push({x:g,y:m,width:v,height:w,has_local_palette:_,palette_offset:x,palette_size:N,data_offset:C,data_length:e-C,transparent_index:f,interlaced:!!b,delay:A,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return p},this.frameInfo=function(t){if(t<0||t>=l.length)throw new Error("Frame index out of range.");return l[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Wt(t,i.data_offset,a,o);var s=i.palette_offset,u=i.transparent_index;null===u&&(u=256);var c=i.width,l=n-c,A=c,f=4*(i.y*n+i.x),h=4*((i.y+i.height)*n+i.x),p=f,d=4*l;!0===i.interlaced&&(d+=4*n*7);for(var g=8,m=0,v=a.length;m<v;++m){var w=a[m];if(0===A&&(A=c,(p+=d)>=h&&(d=4*l+4*n*(g-1),p=f+(c+l)*(g<<1),g>>=1)),w===u)p+=4;else{var y=t[s+3*w],b=t[s+3*w+1],B=t[s+3*w+2];r[p++]=B,r[p++]=b,r[p++]=y,r[p++]=255}--A}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Wt(t,i.data_offset,a,o);var s=i.palette_offset,u=i.transparent_index;null===u&&(u=256);var c=i.width,l=n-c,A=c,f=4*(i.y*n+i.x),h=4*((i.y+i.height)*n+i.x),p=f,d=4*l;!0===i.interlaced&&(d+=4*n*7);for(var g=8,m=0,v=a.length;m<v;++m){var w=a[m];if(0===A&&(A=c,(p+=d)>=h&&(d=4*l+4*n*(g-1),p=f+(c+l)*(g<<1),g>>=1)),w===u)p+=4;else{var y=t[s+3*w],b=t[s+3*w+1],B=t[s+3*w+2];r[p++]=y,r[p++]=b,r[p++]=B,r[p++]=255}--A}}}function Wt(t,e,n,r){for(var i=t[e++],o=1<<i,s=o+1,u=s+1,c=i+1,l=(1<<c)-1,A=0,f=0,h=0,p=t[e++],d=new Int32Array(4096),g=null;;){for(;A<16&&0!==p;)f|=t[e++]<<A,A+=8,1===p?p=t[e++]:--p;if(A<c)break;var m=f&l;if(f>>=c,A-=c,m!==o){if(m===s)break;for(var v=m<u?m:g,w=0,y=v;y>o;)y=d[y]>>8,++w;var b=y;if(h+w+(v!==m?1:0)>r)return void a.log("Warning, gif stream longer than expected.");n[h++]=b;var B=h+=w;for(v!==m&&(n[h++]=b),y=v;w--;)y=d[y],n[--B]=255&y,y>>=8;null!==g&&u<4096&&(d[u++]=g<<8|b,u>=l+1&&c<12&&(++c,l=l<<1|1)),g=m}else u=s+1,l=(1<<(c=i+1))-1,g=null}return h!==r&&a.log("Warning, gif stream shorter than expected."),n}function Xt(t){var e,n,r,i,o,a=Math.floor,s=new Array(64),u=new Array(64),c=new Array(64),l=new Array(64),A=new Array(65535),f=new Array(65535),h=new Array(64),p=new Array(64),d=[],g=0,m=7,v=new Array(64),w=new Array(64),y=new Array(64),b=new Array(256),B=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[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 U(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function Q(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(I(255),I(0)):I(g),m=7,g=0)}function I(t){d.push(t)}function P(t){I(t>>8&255),I(255&t)}function O(t,e,n,r,i){for(var o,a=i[0],s=i[240],u=function(t,e){var n,r,i,o,a,s,u,c,l,A,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],u=t[f+6];var p=n+(c=t[f+7]),d=n-c,g=r+u,m=r-u,v=i+s,w=i-s,y=o+a,b=o-a,B=p+y,x=p-y,N=g+v,_=g-v;t[f]=B+N,t[f+4]=B-N;var C=.707106781*(_+x);t[f+2]=x+C,t[f+6]=x-C;var S=.382683433*((B=b+w)-(_=m+d)),E=.5411961*B+S,L=1.306562965*_+S,F=.707106781*(N=w+m),k=d+F,U=d-F;t[f+5]=U+E,t[f+3]=U-E,t[f+1]=k+L,t[f+7]=k-L,f+=8}for(f=0,l=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],u=t[f+48];var Q=n+(c=t[f+56]),I=n-c,P=r+u,O=r-u,T=i+s,M=i-s,H=o+a,R=o-a,D=Q+H,j=Q-H,z=P+T,K=P-T;t[f]=D+z,t[f+32]=D-z;var q=.707106781*(K+j);t[f+16]=j+q,t[f+48]=j-q;var V=.382683433*((D=R+M)-(K=O+I)),G=.5411961*D+V,W=1.306562965*K+V,X=.707106781*(z=M+O),J=I+X,Y=I-X;t[f+40]=Y+G,t[f+24]=Y-G,t[f+8]=J+W,t[f+56]=J-W,f++}for(l=0;l<64;++l)A=t[l]*e[l],h[l]=A>0?A+.5|0:A-.5|0;return h}(t,e),c=0;c<64;++c)p[x[c]]=u[c];var l=p[0]-n;n=p[0],0==l?Q(r[0]):(Q(r[f[o=32767+l]]),Q(A[o]));for(var d=63;d>0&&0==p[d];)d--;if(0==d)return Q(a),n;for(var g,m=1;m<=d;){for(var v=m;0==p[m]&&m<=d;)++m;var w=m-v;if(w>=16){g=w>>4;for(var y=1;y<=g;++y)Q(s);w&=15}o=32767+p[m],Q(i[(w<<4)+f[o]]),Q(A[o]),m++}return 63!=d&&Q(a),n}function T(t){t=Math.min(Math.max(t,1),100),o!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[x[n]]=r}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 A=a((i[o]*t+50)/100);A=Math.min(Math.max(A,1),255),u[x[o]]=A}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var d=0;d<8;d++)c[h]=1/(s[x[h]]*f[p]*f[d]*8),l[h]=1/(u[x[h]]*f[p]*f[d]*8),h++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&T(o),d=new Array,g=0,m=7,P(65496),P(65504),P(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),P(1),P(1),I(0),I(0),function(){P(65499),P(132),I(0);for(var t=0;t<64;t++)I(s[t]);I(1);for(var e=0;e<64;e++)I(u[e])}(),function(t,e){P(65472),P(17),I(8),P(e),P(t),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(t.width,t.height),function(){P(65476),P(418),I(0);for(var t=0;t<16;t++)I(N[t+1]);for(var e=0;e<=11;e++)I(_[e]);I(16);for(var n=0;n<16;n++)I(C[n+1]);for(var r=0;r<=161;r++)I(S[r]);I(1);for(var i=0;i<16;i++)I(E[i+1]);for(var o=0;o<=11;o++)I(L[o]);I(17);for(var a=0;a<16;a++)I(F[a+1]);for(var s=0;s<=161;s++)I(k[s])}(),P(65498),P(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var a=0,A=0,f=0;g=0,m=7,this.encode.displayName="_encode_";for(var h,p,b,x,U,M,H,R,D,j=t.data,z=t.width,K=t.height,q=4*z,V=0;V<K;){for(h=0;h<q;){for(U=q*V+h,H=-1,R=0,D=0;D<64;D++)M=U+(R=D>>3)*q+(H=4*(7&D)),V+R>=K&&(M-=q*(V+1+R-K)),h+H>=q&&(M-=h+H-q+4),p=j[M++],b=j[M++],x=j[M++],v[D]=(B[p]+B[b+256>>0]+B[x+512>>0]>>16)-128,w[D]=(B[p+768>>0]+B[b+1024>>0]+B[x+1280>>0]>>16)-128,y[D]=(B[p+1280>>0]+B[b+1536>>0]+B[x+1792>>0]>>16)-128;a=O(v,c,a,e,r),A=O(w,l,A,n,i),f=O(y,l,f,n,i),h+=32}V+=8}if(m>=0){var G=[];G[1]=m+1,G[0]=(1<<m+1)-1,Q(G)}return P(65497),new Uint8Array(d)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)b[e]=t(e)}(),e=U(N,_),n=U(E,L),r=U(C,S),i=U(F,k),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,A[32767+r]=[],A[32767+r][1]=n,A[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,A[32767+i]=[],A[32767+i][1]=n,A[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256>>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[t+1792>>0]=-5329*t}(),T(t)}function Jt(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Yt(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var o=0;o<i;o++)t[e+o]=n[r+o]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function o(t){return new Int32Array(t)}function a(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var o=i[r],a=0;a<o&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));a++)t(n[a],r+1,i)}(n,0,t),n}function u(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function c(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new(Yt=function(){var t=this;function u(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function c(t,n,r,i,o){e(!(i%r));do{t[n+(i-=r)]=o}while(0<i)}function l(t,n,r,i,a){if(e(2328>=a),512>=a)var s=o(512);else if(null==(s=o(a)))return 0;return function(t,n,r,i,a,s){var l,f,h=n,p=1<<r,d=o(16),g=o(16);for(e(0!=a),e(null!=i),e(null!=t),e(0<r),f=0;f<a;++f){if(15<i[f])return 0;++d[i[f]]}if(d[0]==a)return 0;for(g[1]=0,l=1;15>l;++l){if(d[l]>1<<l)return 0;g[l+1]=g[l]+d[l]}for(f=0;f<a;++f)l=i[f],0<i[f]&&(s[g[l]++]=f);if(1==g[15])return(i=new A).g=0,i.value=s[0],c(t,h,1,p,i),p;var m,v=-1,w=p-1,y=0,b=1,B=1,x=1<<r;for(f=0,l=1,a=2;l<=r;++l,a<<=1){if(b+=B<<=1,0>(B-=d[l]))return 0;for(;0<d[l];--d[l])(i=new A).g=l,i.value=s[f++],c(t,h+y,a,x,i),y=u(y,l)}for(l=r+1,a=2;15>=l;++l,a<<=1){if(b+=B<<=1,0>(B-=d[l]))return 0;for(;0<d[l];--d[l]){if(i=new A,(y&w)!=v){for(h+=x,m=1<<(v=l)-r;15>v&&!(0>=(m-=d[v]));)++v,m<<=1;p+=x=1<<(m=v-r),t[n+(v=y&w)].g=m+r,t[n+v].value=h-n-v}i.g=l-r,i.value=s[f++],c(t,h+(y>>r),a,x,i),y=u(y,l)}}return b!=2*g[15]-1?0:p}(t,n,r,i,a,s)}function A(){this.value=this.g=0}function f(){this.value=this.g=0}function h(){this.G=a(5,A),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Hn,f)}function p(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,C(t)}function d(t,e){for(var n=0;0<e--;)n|=E(t,128)<<e;return n}function g(t,e){var n=d(t,e);return S(t)?-n:n}function m(t,n,r,i){var o,a=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),o=0;o<i;++o)a+=n[r+o]<<8*o;t.Ra=a,t.bb=i,t.oa=n,t.pa=r}function v(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<jn-8>>>0,++t.bb,t.u-=8;x(t)&&(t.h=1,t.u=0)}function w(t,n){if(e(0<=n),!t.h&&n<=Dn){var r=B(t)&Rn[n];return t.u+=n,v(t),r}return t.h=1,t.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(t){return t.Ra>>>(t.u&jn-1)>>>0}function x(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>jn}function N(t,e){t.u=e,t.h=x(t)}function _(t){t.u>=zn&&(e(t.u>=zn),v(t))}function C(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function S(t){return d(t,1)}function E(t,e){var n=t.Ca;0>t.b&&C(t);var r=t.b,i=n*e>>>8,o=(t.I>>>r>i)+0;for(o?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+Kn[r],t.b-=r,t.Ca=(n<<r)-1,o}function L(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function F(t,e){return t[e+0]<<0|t[e+1]<<8}function k(t,e){return F(t,e)|t[e+2]<<16}function U(t,e){return F(t,e)|F(t,e+2)<<16}function Q(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=o(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function I(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function P(){this.X=[],this.Xa=this.Mb=0}function O(t,n,r,i){e(null!=r),e(null!=i);var o=r[0],a=i[0];return 0==o&&(o=(t*a+n/2)/n),0==a&&(a=(n*o+t/2)/t),0>=o||0>=a?0:(r[0]=o,i[0]=a,1)}function T(t,e){return t+(1<<e)-1>>>e}function M(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function H(e,n){t[n]=function(n,r,i,o,a,s,u){var c;for(c=0;c<a;++c){var l=t[e](s[u+c-1],i,o+c);s[u+c]=M(n[r+c],l)}}}function R(){this.ud=this.hd=this.jd=0}function D(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function j(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function z(t,e){return j(t+(t-e+.5>>1))}function K(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function q(t,e,n,r,i,o,a){for(r=o[a-1],n=0;n<i;++n)o[a+n]=r=M(t[e+n],r)}function V(t,e,n,r,i){var o;for(o=0;o<n;++o){var a=t[e+o],s=a>>8&255,u=16711935&(u=(u=16711935&a)+((s<<16)+s));r[i+o]=(4278255360&a)+u>>>0}}function G(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function W(t,e,n,r,i,o){var a;for(a=0;a<r;++a){var s=e[n+a],u=s>>>8,c=s,l=255&(l=(l=s>>>16)+((t.jd<<24>>24)*(u<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(u<<24>>24)>>>5)+((t.ud<<24>>24)*(l<<24>>24)>>>5)),i[o+a]=(4278255360&s)+(l<<16)+c}}function X(e,n,r,i,o){t[n]=function(t,e,n,r,a,s,u,c,l){for(r=u;r<c;++r)for(u=0;u<l;++u)a[s++]=o(n[i(t[e++])])},t[e]=function(e,n,a,s,u,c,l){var A=8>>e.b,f=e.Ea,h=e.K[0],p=e.w;if(8>A)for(e=(1<<e.b)-1,p=(1<<A)-1;n<a;++n){var d,g=0;for(d=0;d<f;++d)d&e||(g=i(s[u++])),c[l++]=o(h[g&p]),g>>=A}else t["VP8LMapColor"+r](s,u,h,p,c,l,n,a,f)}}function J(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255}}function Y(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255,r[i++]=o>>24&255}}function $(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;r[i++]=o,r[i++]=a}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var o=(a=t[e++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;r[i++]=o,r[i++]=a}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var o=t[e++];r[i++]=o>>0&255,r[i++]=o>>8&255,r[i++]=o>>16&255}}function et(t,e,n,i,o,a){if(0==a)for(n=e+n;e<n;)L(i,((a=t[e++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),o+=32;else r(i,o,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function rt(t){return t==zr||t==Kr||t==qr||t==Vr}function it(){this.eb=[],this.size=this.A=this.fb=0}function ot(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function at(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new ot,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ut(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function lt(t,e){var n=t.T,i=e.ba.f.RGBA,o=i.eb,a=i.fb+t.ka*i.A,s=mi[e.ba.S],u=t.y,c=t.O,l=t.f,A=t.N,f=t.ea,h=t.W,p=e.cc,d=e.dc,g=e.Mc,m=e.Nc,v=t.ka,w=t.ka+t.T,y=t.U,b=y+1>>1;for(0==v?s(u,c,null,null,l,A,f,h,l,A,f,h,o,a,null,null,y):(s(e.ec,e.fc,u,c,p,d,g,m,l,A,f,h,o,a-i.A,o,a,y),++n);v+2<w;v+=2)p=l,d=A,g=f,m=h,A+=t.Rc,h+=t.Rc,a+=2*i.A,s(u,(c+=2*t.fa)-t.fa,u,c,p,d,g,m,l,A,f,h,o,a-i.A,o,a,y);return c+=t.fa,t.j+w<t.o?(r(e.ec,e.fc,u,c,y),r(e.cc,e.dc,l,A,b),r(e.Mc,e.Nc,f,h,b),n--):1&w||s(u,c,null,null,l,A,f,h,l,A,f,h,o,a+i.A,null,null,y),n}function At(t,n,r){var i=t.F,o=[t.J];if(null!=i){var a=t.U,s=n.ba.S,u=s==Rr||s==qr;n=n.ba.f.RGBA;var c=[0],l=t.ka;c[0]=t.T,t.Kb&&(0==l?--c[0]:(--l,o[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-l));var A=n.eb;l=n.fb+l*n.A,t=_r(i,o[0],t.width,a,c,A,l+(u?0:3),n.A),e(r==c),t&&rt(s)&&xr(A,l,u,a,c,n.A)}return 0}function ft(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Tr||n==Hr||n==Rr||n==Dr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!On(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&wn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=ct,t.Kb){if(n=t.U+1>>1,e.memory=o(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=lt,wn()}}else alert("todo:EmitYUV");i&&(e.Jb=At,r&&mn())}if(r&&!ki){for(t=0;256>t;++t)Ui[t]=89858*(t-128)+Ci>>_i,Pi[t]=-22014*(t-128)+Ci,Ii[t]=-45773*(t-128),Qi[t]=113618*(t-128)+Ci>>_i;for(t=Si;t<Ei;++t)e=76283*(t-16)+Ci>>_i,Oi[t-Si]=qt(e,255),Ti[t-Si]=qt(e+8>>4,15);ki=1}return 1}function ht(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function pt(t){t.ma.memory=null}function dt(t,e,n,r){return 47!=w(t,8)?0:(e[0]=w(t,14)+1,n[0]=w(t,14)+1,r[0]=w(t,1),0!=w(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+w(e,n)+1}function mt(t,e){return 120<e?e-120:1<=(n=((n=$r[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function vt(t,e,n){var r=B(n),i=t[e+=255&r].g-8;return 0<i&&(N(n,n.u+8),r=B(n),e+=t[e].value,e+=r&(1<<i)-1),N(n,n.u+t[e].g),t[e].value}function wt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function yt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function bt(t,n,i,o){var a=t.ab,s=t.c*n,u=t.C;n=u+n;var c=i,l=o;for(o=t.Ta,i=t.Ua;0<a--;){var A=t.gc[a],f=u,h=n,p=c,d=l,g=(l=o,c=i,A.Ea);switch(e(f<h),e(h<=A.nc),A.hc){case 2:Gn(p,d,(h-f)*g,l,c);break;case 0:var m=f,v=h,w=l,y=c,b=(C=A).Ea;0==m&&(qn(p,d,null,null,1,w,y),q(p,d+1,0,0,b-1,w,y+1),d+=b,y+=b,++m);for(var B=1<<C.b,x=B-1,N=T(b,C.b),_=C.K,C=C.w+(m>>C.b)*N;m<v;){var S=_,E=C,L=1;for(Vn(p,d,w,y-b,1,w,y);L<b;){var F=(L&~x)+B;F>b&&(F=b),(0,$n[S[E++]>>8&15])(p,d+ +L,w,y+L-b,F-L,w,y+L),L=F}d+=b,y+=b,++m&x||(C+=N)}h!=A.nc&&r(l,c-g,l,c+(h-f-1)*g,g);break;case 1:for(g=p,v=d,b=(p=A.Ea)-(y=p&~(w=(d=1<<A.b)-1)),m=T(p,A.b),B=A.K,A=A.w+(f>>A.b)*m;f<h;){for(x=B,N=A,_=new R,C=v+y,S=v+p;v<C;)G(x[N++],_),Zn(_,g,v,d,l,c),v+=d,c+=d;v<S&&(G(x[N++],_),Zn(_,g,v,b,l,c),v+=b,c+=b),++f&w||(A+=m)}break;case 3:if(p==l&&d==c&&0<A.b){for(v=l,p=g=c+(h-f)*g-(y=(h-f)*T(A.Ea,A.b)),d=l,w=c,m=[],y=(b=y)-1;0<=y;--y)m[y]=d[w+y];for(y=b-1;0<=y;--y)v[p+y]=m[y];Wn(A,f,h,l,g,l,c)}else Wn(A,f,h,p,d,l,c)}c=o,l=i}l!=i&&r(o,i,c,l,s)}function Bt(t,n){var r=t.V,i=t.Ba+t.c*t.C,o=n-t.C;if(e(n<=t.l.o),e(16>=o),0<o){var a=t.l,s=t.Ta,u=t.Ua,c=a.width;if(bt(t,o,r,i),o=u=[u],e((r=t.C)<(i=n)),e(a.v<a.va),i>a.o&&(i=a.o),r<a.j){var l=a.j-r;r=a.j,o[0]+=l*c}if(r>=i?r=0:(o[0]+=4*a.v,a.ka=r-a.j,a.U=a.va-a.v,a.T=i-r,r=1),r){if(u=u[0],11>(r=t.ca).S){var A=r.f.RGBA,f=(i=r.S,o=a.U,a=a.T,l=A.eb,A.A),h=a;for(A=A.fb+t.Ma*A.A;0<h--;){var p=s,d=u,g=o,m=l,v=A;switch(i){case Or:tr(p,d,g,m,v);break;case Tr:er(p,d,g,m,v);break;case zr:er(p,d,g,m,v),xr(m,v,0,g,1,0);break;case Mr:ir(p,d,g,m,v);break;case Hr:et(p,d,g,m,v,1);break;case Kr:et(p,d,g,m,v,1),xr(m,v,0,g,1,0);break;case Rr:et(p,d,g,m,v,0);break;case qr:et(p,d,g,m,v,0),xr(m,v,1,g,1,0);break;case Dr:nr(p,d,g,m,v);break;case Vr:nr(p,d,g,m,v),Nr(m,v,g,1,0);break;case jr:rr(p,d,g,m,v);break;default:e(0)}u+=c,A+=f}t.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function xt(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function Nt(t,n,r,i,o,a){if(0!=t.Z){var s=t.qd,u=t.rd;for(e(null!=gi[t.Z]);n<r;++n)gi[t.Z](s,u,i,o,i,o,a),s=i,u=o,o+=a;t.qd=s,t.rd=u}}function _t(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var o=t.l.width,a=r.ca,s=r.tb+o*i,u=t.V,c=t.Ba+t.c*i,l=t.gc;e(1==t.ab),e(3==l[0].hc),Jn(l[0],i,n,u,c,a,s),Nt(r,i,n,a,s,o)}t.C=t.Ma=n}function Ct(t,n,r,i,o,a,s){var u=t.$/i,c=t.$%i,l=t.m,A=t.s,f=r+t.$,h=f;o=r+i*o;var p=r+i*a,d=280+A.ua,g=t.Pb?u:16777216,m=0<A.ua?A.Wa:null,v=A.wc,w=f<p?yt(A,c,u):null;e(t.C<a),e(p<=o);var y=!1;t:for(;;){for(;y||f<p;){var b=0;if(u>=g){var C=f-r;e((g=t).Pb),g.wd=g.m,g.xd=C,0<g.s.ua&&I(g.s.Wa,g.s.vb),g=u+ti}if(c&v||(w=yt(A,c,u)),e(null!=w),w.Qb&&(n[f]=w.qb,y=!0),!y)if(_(l),w.jc){b=l,C=n;var S=f,E=w.pd[B(b)&Hn-1];e(w.jc),256>E.g?(N(b,b.u+E.g),C[S]=E.value,b=0):(N(b,b.u+E.g-256),e(256<=E.value),b=E.value),0==b&&(y=!0)}else b=vt(w.G[0],w.H[0],l);if(l.h)break;if(y||256>b){if(!y)if(w.nd)n[f]=(w.qb|b<<8)>>>0;else{if(_(l),y=vt(w.G[1],w.H[1],l),_(l),C=vt(w.G[2],w.H[2],l),S=vt(w.G[3],w.H[3],l),l.h)break;n[f]=(S<<24|y<<16|b<<8|C)>>>0}if(y=!1,++f,++c>=i&&(c=0,++u,null!=s&&u<=a&&!(u%16)&&s(t,u),null!=m))for(;h<f;)b=n[h++],m.X[(506832829*b&4294967295)>>>m.Mb]=b}else if(280>b){if(b=gt(b-256,l),C=vt(w.G[4],w.H[4],l),_(l),C=mt(i,C=gt(C,l)),l.h)break;if(f-r<C||o-f<b)break t;for(S=0;S<b;++S)n[f+S]=n[f+S-C];for(f+=b,c+=b;c>=i;)c-=i,++u,null!=s&&u<=a&&!(u%16)&&s(t,u);if(e(f<=o),c&v&&(w=yt(A,c,u)),null!=m)for(;h<f;)b=n[h++],m.X[(506832829*b&4294967295)>>>m.Mb]=b}else{if(!(b<d))break t;for(y=b-280,e(null!=m);h<f;)b=n[h++],m.X[(506832829*b&4294967295)>>>m.Mb]=b;b=f,e(!(y>>>(C=m).Xa)),n[b]=C.X[y],y=!0}y||e(l.h==x(l))}if(t.Pb&&l.h&&f<o)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&I(t.s.vb,t.s.Wa);else{if(l.h)break t;null!=s&&s(t,u>a?a:u),t.a=0,t.$=f-r}return 1}return t.a=3,0}function St(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Et(){var e=new sn;return null==e?null:(e.a=0,e.xb=di,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Gn=V,Zn=W,tr=J,er=Y,nr=$,rr=Z,ir=tt,t.VP8LMapColor32b=Xn,t.VP8LMapColor8b=Yn,e)}function Lt(t,n,r,s,u){var c=1,f=[t],p=[n],d=s.m,g=s.s,m=null,v=0;t:for(;;){if(r)for(;c&&w(d,1);){var y=f,b=p,x=s,C=1,S=x.m,E=x.gc[x.ab],L=w(S,2);if(x.Oc&1<<L)c=0;else{switch(x.Oc|=1<<L,E.hc=L,E.Ea=y[0],E.nc=b[0],E.K=[null],++x.ab,e(4>=x.ab),L){case 0:case 1:E.b=w(S,3)+2,C=Lt(T(E.Ea,E.b),T(E.nc,E.b),0,x,E.K),E.K=E.K[0];break;case 3:var F,k=w(S,8)+1,U=16<k?0:4<k?1:2<k?2:3;if(y[0]=T(E.Ea,U),E.b=U,F=C=Lt(k,1,0,x,E.K)){var I,P=k,O=E,H=1<<(8>>O.b),R=o(H);if(null==R)F=0;else{var D=O.K[0],j=O.w;for(R[0]=O.K[0][0],I=1;I<1*P;++I)R[I]=M(D[j+I],R[I-1]);for(;I<4*H;++I)R[I]=0;O.K[0]=null,O.K[0]=R,F=1}}C=F;break;case 2:break;default:e(0)}c=C}}if(f=f[0],p=p[0],c&&w(d,1)&&!(c=1<=(v=w(d,4))&&11>=v)){s.a=3;break t}var z;if(z=c)e:{var K,q,V,G=s,W=f,X=p,J=v,Y=r,$=G.m,Z=G.s,tt=[null],et=1,nt=0,rt=Zr[J];n:for(;;){if(Y&&w($,1)){var it=w($,3)+2,ot=T(W,it),at=T(X,it),st=ot*at;if(!Lt(ot,at,0,G,tt))break n;for(tt=tt[0],Z.xc=it,K=0;K<st;++K){var ut=tt[K]>>8&65535;tt[K]=ut,ut>=et&&(et=ut+1)}}if($.h)break n;for(q=0;5>q;++q){var ct=Xr[q];!q&&0<J&&(ct+=1<<J),nt<ct&&(nt=ct)}var lt=a(et*rt,A),At=et,ft=a(At,h);if(null==ft)var ht=null;else e(65536>=At),ht=ft;var pt=o(nt);if(null==ht||null==pt||null==lt){G.a=1;break n}var dt=lt;for(K=V=0;K<et;++K){var gt=ht[K],mt=gt.G,vt=gt.H,yt=0,bt=1,Bt=0;for(q=0;5>q;++q){ct=Xr[q],mt[q]=dt,vt[q]=V,!q&&0<J&&(ct+=1<<J);r:{var xt,Nt=ct,_t=G,Et=pt,Ft=dt,kt=V,Ut=0,Qt=_t.m,It=w(Qt,1);if(i(Et,0,0,Nt),It){var Pt=w(Qt,1)+1,Ot=w(Qt,1),Tt=w(Qt,0==Ot?1:8);Et[Tt]=1,2==Pt&&(Et[Tt=w(Qt,8)]=1);var Mt=1}else{var Ht=o(19),Rt=w(Qt,4)+4;if(19<Rt){_t.a=3;var Dt=0;break r}for(xt=0;xt<Rt;++xt)Ht[Yr[xt]]=w(Qt,3);var jt=void 0,zt=void 0,Kt=_t,qt=Ht,Vt=Nt,Gt=Et,Wt=0,Xt=Kt.m,Jt=8,Yt=a(128,A);i:for(;l(Yt,0,7,qt,19);){if(w(Xt,1)){var $t=2+2*w(Xt,3);if((jt=2+w(Xt,$t))>Vt)break i}else jt=Vt;for(zt=0;zt<Vt&&jt--;){_(Xt);var Zt=Yt[0+(127&B(Xt))];N(Xt,Xt.u+Zt.g);var te=Zt.value;if(16>te)Gt[zt++]=te,0!=te&&(Jt=te);else{var ee=16==te,ne=te-16,re=Wr[ne],ie=w(Xt,Gr[ne])+re;if(zt+ie>Vt)break i;for(var oe=ee?Jt:0;0<ie--;)Gt[zt++]=oe}}Wt=1;break i}Wt||(Kt.a=3),Mt=Wt}(Mt=Mt&&!Qt.h)&&(Ut=l(Ft,kt,8,Et,Nt)),Mt&&0!=Ut?Dt=Ut:(_t.a=3,Dt=0)}if(0==Dt)break n;if(bt&&1==Jr[q]&&(bt=0==dt[V].g),yt+=dt[V].g,V+=Dt,3>=q){var ae,se=pt[0];for(ae=1;ae<ct;++ae)pt[ae]>se&&(se=pt[ae]);Bt+=se}}if(gt.nd=bt,gt.Qb=0,bt&&(gt.qb=(mt[3][vt[3]+0].value<<24|mt[1][vt[1]+0].value<<16|mt[2][vt[2]+0].value)>>>0,0==yt&&256>mt[0][vt[0]+0].value&&(gt.Qb=1,gt.qb+=mt[0][vt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>Bt,gt.jc){var ue,ce=gt;for(ue=0;ue<Hn;++ue){var le=ue,Ae=ce.pd[le],fe=ce.G[0][ce.H[0]+le];256<=fe.value?(Ae.g=fe.g+256,Ae.value=fe.value):(Ae.g=0,Ae.value=0,le>>=wt(fe,8,Ae),le>>=wt(ce.G[1][ce.H[1]+le],16,Ae),le>>=wt(ce.G[2][ce.H[2]+le],0,Ae),wt(ce.G[3][ce.H[3]+le],24,Ae))}}}Z.vc=tt,Z.Wb=et,Z.Ya=ht,Z.yc=lt,z=1;break e}z=0}if(!(c=z)){s.a=3;break t}if(0<v){if(g.ua=1<<v,!Q(g.Wa,v)){s.a=1,c=0;break t}}else g.ua=0;var he=s,pe=f,de=p,ge=he.s,me=ge.xc;if(he.c=pe,he.i=de,ge.md=T(pe,me),ge.wc=0==me?-1:(1<<me)-1,r){s.xb=pi;break t}if(null==(m=o(f*p))){s.a=1,c=0;break t}c=(c=Ct(s,m,0,f,p,p,null))&&!d.h;break t}return c?(null!=u?u[0]=m:(e(null==m),e(r)),s.$=0,r||St(g)):St(g),c}function Ft(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=o(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function kt(t,n){var r=t.C,i=n-r,o=t.V,a=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,u=t.l.ma,c=t.l.width,l=c*s,A=u.ca,f=u.tb+c*r,h=t.Ta,p=t.Ua;bt(t,s,o,a),Cr(h,p,A,f,l),Nt(u,r,r+s,A,f,c),i-=s,o+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function Ut(){this.ub=this.yd=this.td=this.Rb=0}function Qt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function It(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function Pt(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],o=0;o<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));o++)t(e[o],n+1,r)}(t,0,[3,11]),t}()}function Ot(){this.jb=o(3),this.Wc=s([4,8],Pt),this.Xc=s([4,17],Pt)}function Tt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Mt(){this.ld=this.La=this.dd=this.tc=0}function Ht(){this.Na=this.la=0}function Rt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Dt(){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 jt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Mt),this.Y=0,this.ya=Array(new Dt),this.aa=0,this.l=new Vt}function zt(){this.y=o(16),this.f=o(8),this.ea=o(8)}function Kt(){this.cb=this.a=0,this.sc="",this.m=new y,this.Od=new Ut,this.Kc=new Qt,this.ed=new Tt,this.Qa=new It,this.Ic=this.$c=this.Aa=0,this.D=new jt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,y),this.ia=0,this.pb=a(4,Rt),this.Pa=new Ot,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new zt),this.Hd=0,this.rb=Array(new Ht),this.sb=0,this.wa=Array(new Mt),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 Dt),this.L=this.aa=0,this.gd=s([4,2],Mt),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 qt(t,e){return 0>t?0:t>e?e:t}function Vt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Gt(){var t=new Kt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ri||(ri=Yt)),t}function Wt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Xt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Jt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Wt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,a=n.ha;if(4>a)return Wt(t,7,"Truncated header.");var s=r[o+0]|r[o+1]<<8|r[o+2]<<16,u=t.Od;if(u.Rb=!(1&s),u.td=s>>1&7,u.yd=s>>4&1,u.ub=s>>5,3<u.td)return Wt(t,3,"Incorrect keyframe parameters.");if(!u.yd)return Wt(t,4,"Frame not displayable.");o+=3,a-=3;var c=t.Kc;if(u.Rb){if(7>a)return Wt(t,7,"cannot parse picture header");if(!Xt(r,o,a))return Wt(t,3,"Bad code word");c.c=16383&(r[o+4]<<8|r[o+3]),c.Td=r[o+4]>>6,c.i=16383&(r[o+6]<<8|r[o+5]),c.Ud=r[o+6]>>6,o+=7,a-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(u.ub>a)return Wt(t,7,"bad partition length");p(s=t.m,r,o,u.ub),o+=u.ub,a-=u.ub,u.Rb&&(c.Ld=S(s),c.Kd=S(s)),c=t.Qa;var l,A=t.Pa;if(e(null!=s),e(null!=c),c.Cb=S(s),c.Cb){if(c.Bb=S(s),S(s)){for(c.Fb=S(s),l=0;4>l;++l)c.Zb[l]=S(s)?g(s,7):0;for(l=0;4>l;++l)c.Lb[l]=S(s)?g(s,6):0}if(c.Bb)for(l=0;3>l;++l)A.jb[l]=S(s)?d(s,8):255}else c.Bb=0;if(s.Ka)return Wt(t,3,"cannot parse segment header");if((c=t.ed).zd=S(s),c.Tb=d(s,6),c.wb=d(s,3),c.Pc=S(s),c.Pc&&S(s)){for(A=0;4>A;++A)S(s)&&(c.vd[A]=g(s,6));for(A=0;4>A;++A)S(s)&&(c.od[A]=g(s,6))}if(t.L=0==c.Tb?0:c.zd?1:2,s.Ka)return Wt(t,3,"cannot parse filter header");var f=a;if(a=l=o,o=l+f,c=f,t.Xb=(1<<d(t.m,2))-1,f<3*(A=t.Xb))r=7;else{for(l+=3*A,c-=3*A,f=0;f<A;++f){var h=r[a+0]|r[a+1]<<8|r[a+2]<<16;h>c&&(h=c),p(t.Jc[+f],r,l,h),l+=h,c-=h,a+=3}p(t.Jc[+A],r,l,c),r=l<o?0:5}if(0!=r)return Wt(t,r,"cannot parse partitions");for(r=d(l=t.m,7),a=S(l)?g(l,4):0,o=S(l)?g(l,4):0,c=S(l)?g(l,4):0,A=S(l)?g(l,4):0,l=S(l)?g(l,4):0,f=t.Qa,h=0;4>h;++h){if(f.Cb){var m=f.Zb[h];f.Fb||(m+=r)}else{if(0<h){t.pb[h]=t.pb[0];continue}m=r}var v=t.pb[h];v.Sc[0]=ei[qt(m+a,127)],v.Sc[1]=ni[qt(m+0,127)],v.Eb[0]=2*ei[qt(m+o,127)],v.Eb[1]=101581*ni[qt(m+c,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=ei[qt(m+A,117)],v.Qc[1]=ni[qt(m+l,127)],v.lc=m+l}if(!u.Rb)return Wt(t,4,"Not a key frame.");for(S(s),u=t.Pa,r=0;4>r;++r){for(a=0;8>a;++a)for(o=0;3>o;++o)for(c=0;11>c;++c)A=E(s,ci[r][a][o][c])?d(s,8):si[r][a][o][c],u.Wc[r][a].Yb[o][c]=A;for(a=0;17>a;++a)u.Xc[r][a]=u.Wc[r][li[a]]}return t.kc=S(s),t.kc&&(t.Bd=d(s,8)),t.cb=1}function Yt(t,e,n,r,i,o,a){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!E(t,s[n+0]))return i;for(;!E(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var u=e[i+1].Yb;if(E(t,s[n+2])){var c=t,l=0;if(E(c,(f=s)[(A=n)+3]))if(E(c,f[A+6])){for(s=0,A=2*(l=E(c,f[A+8]))+(f=E(c,f[A+9+l])),l=0,f=ii[A];f[s];++s)l+=l+E(c,f[s]);l+=3+(8<<A)}else E(c,f[A+7])?(l=7+2*E(c,165),l+=E(c,145)):l=5+E(c,159);else l=E(c,f[A+4])?3+E(c,f[A+5]):2;s=u[2]}else l=1,s=u[1];u=a+oi[i],0>(c=t).b&&C(c);var A,f=c.b,h=(A=c.Ca>>1)-(c.I>>f)>>31;--c.b,c.Ca+=h,c.Ca|=1,c.I-=(A+1&h)<<f,o[u]=((l^h)-h)*r[(0<i)+0]}return 16}function $t(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function Zt(t,n){if(null==t)return 0;if(null==n)return Wt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Jt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=Hi[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var u=t.ed;for(s=0;4>s;++s){var c;if(t.Qa.Cb){var l=t.Qa.Lb[s];t.Qa.Fb||(l+=u.Tb)}else l=u.Tb;for(c=0;1>=c;++c){var A=t.gd[s][c],f=l;if(u.Pc&&(f+=u.vd[0],c&&(f+=u.od[0])),0<(f=0>f?0:63<f?63:f)){var h=f;0<u.wb&&(h=4<u.wb?h>>2:h>>1)>9-u.wb&&(h=9-u.wb),1>h&&(h=1),A.dd=h,A.tc=2*f+h,A.ld=40<=f?2:15<=f?1:0}else A.tc=0;A.La=c}}}s=0}else Wt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Di);t:{s=t.Ic,u=4*(h=t.za);var p=32*h,d=h+1,g=0<t.L?h*(0<t.Aa?2:1):0,m=(2==t.Aa?2:1)*h;if((A=u+832+(c=3*(16*s+Hi[t.L])/2*p)+(l=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=A)s=0;else{if(A>t.Vb){if(t.Vb=0,t.Ec=o(A),t.Fc=0,null==t.Ec){s=Wt(t,1,"no memory during frame initialization.");break t}t.Vb=A}A=t.Ec,f=t.Fc,t.Ac=A,t.Bc=f,f+=u,t.Gd=a(p,zt),t.Hd=0,t.rb=a(d+1,Ht),t.sb=1,t.wa=g?a(g,Mt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=h),e(!0),t.oc=A,t.pc=f,f+=832,t.ya=a(m,Dt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=h),t.R=16*h,t.B=8*h,h=(p=Hi[t.L])*t.R,p=p/2*t.B,t.sa=A,t.ta=f+h,t.qa=t.sa,t.ra=t.ta+16*s*t.R+p,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+p,t.$c=0,f+=c,t.mb=l?A:null,t.nb=l?f:null,e(f+l<=t.Fc+t.Vb),$t(t),i(t.Ac,t.Bc,0,u),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!kr){for(s=-255;255>=s;++s)Sr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Er[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Lr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Fr[255+s]=0>s?0:255<s?255:s;kr=1}or=ce,ar=oe,ur=ae,cr=se,lr=ue,sr=ie,Ar=We,fr=Xe,hr=$e,pr=Ze,dr=Je,gr=Ye,mr=tn,vr=en,wr=je,yr=ze,br=Ke,Br=qe,fi[0]=Ne,fi[1]=Ae,fi[2]=Be,fi[3]=xe,fi[4]=_e,fi[5]=Se,fi[6]=Ce,fi[7]=Ee,fi[8]=Fe,fi[9]=Le,Ai[0]=me,Ai[1]=he,Ai[2]=pe,Ai[3]=de,Ai[4]=ve,Ai[5]=we,Ai[6]=ye,hi[0]=Ie,hi[1]=fe,hi[2]=ke,hi[3]=Ue,hi[4]=Oe,hi[5]=Pe,hi[6]=Te,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var a,s=t.Jc[t.M&t.Xb],u=t.m,c=t;for(a=0;a<c.za;++a){var l=u,A=c,f=A.Ac,h=A.Bc+4*a,p=A.zc,d=A.ya[A.aa+a];if(A.Qa.Bb?d.$b=E(l,A.Pa.jb[0])?2+E(l,A.Pa.jb[2]):E(l,A.Pa.jb[1]):d.$b=0,A.kc&&(d.Ad=E(l,A.Bd)),d.Za=!E(l,145)+0,d.Za){var g=d.Ob,m=0;for(A=0;4>A;++A){var v,w=p[0+A];for(v=0;4>v;++v){w=ui[f[h+v]][w];for(var y=ai[E(l,w[0])];0<y;)y=ai[2*y+E(l,w[y])];w=-y,f[h+v]=w}r(g,m,f,h,4),m+=4,p[0+A]=w}}else w=E(l,156)?E(l,128)?1:3:E(l,163)?2:0,d.Ob[0]=w,i(f,h,w,4),i(p,0,w,4);d.Dd=E(l,142)?E(l,114)?E(l,183)?1:3:2:0}if(c.m.Ka)return Wt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(c=s,l=(u=t).rb[u.sb-1],f=u.rb[u.sb+u.ja],a=u.ya[u.aa+u.ja],h=u.kc?a.Ad:0)l.la=f.la=0,a.Za||(l.Na=f.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var b,B;if(l=f,f=c,h=u.Pa.Xc,p=u.ya[u.aa+u.ja],d=u.pb[p.$b],A=p.ad,g=0,m=u.rb[u.sb-1],w=v=0,i(A,g,0,384),p.Za)var x=0,N=h[3];else{y=o(16);var _=l.Na+m.Na;if(_=ri(f,h[1],_,d.Eb,0,y,0),l.Na=m.Na=(0<_)+0,1<_)or(y,0,A,g);else{var C=y[0]+3>>3;for(y=0;256>y;y+=16)A[g+y]=C}x=1,N=h[0]}var S=15&l.la,L=15&m.la;for(y=0;4>y;++y){var F=1&L;for(C=B=0;4>C;++C)S=S>>1|(F=(_=ri(f,N,_=F+(1&S),d.Sc,x,A,g))>x)<<7,B=B<<2|(3<_?3:1<_?2:0!=A[g+0]),g+=16;S>>=4,L=L>>1|F<<7,v=(v<<8|B)>>>0}for(N=S,x=L>>4,b=0;4>b;b+=2){for(B=0,S=l.la>>4+b,L=m.la>>4+b,y=0;2>y;++y){for(F=1&L,C=0;2>C;++C)_=F+(1&S),S=S>>1|(F=0<(_=ri(f,h[2],_,d.Qc,0,A,g)))<<3,B=B<<2|(3<_?3:1<_?2:0!=A[g+0]),g+=16;S>>=2,L=L>>1|F<<5}w|=B<<4*b,N|=S<<4<<b,x|=(240&L)<<b}l.la=N,m.la=x,p.Hc=v,p.Gc=w,p.ia=43690&w?0:d.ia,h=!(v|w)}if(0<u.L&&(u.wa[u.Y+u.ja]=u.gd[a.$b][a.Za],u.wa[u.Y+u.ja].La|=!h),c.Ka)return Wt(t,7,"Premature end-of-file encountered.")}if($t(t),u=n,c=1,a=(s=t).D,l=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(a.M=s.M,a.uc=l,In(s,a),c=1,a=(B=s.D).Nb,l=(w=Hi[s.L])*s.R,f=w/2*s.B,y=16*a*s.R,C=8*a*s.B,h=s.sa,p=s.ta-l+y,d=s.qa,A=s.ra-f+C,g=s.Ha,m=s.Ia-f+C,L=0==(S=B.M),v=S>=s.Va-1,2==s.Aa&&In(s,B),B.uc)for(F=(_=s).D.M,e(_.D.uc),B=_.yb;B<_.Hb;++B){x=B,N=F;var k=(U=(D=_).D).Nb;b=D.R;var U=U.wa[U.Y+x],Q=D.sa,I=D.ta+16*k*b+16*x,P=U.dd,O=U.tc;if(0!=O)if(e(3<=O),1==D.L)0<x&&yr(Q,I,b,O+4),U.La&&Br(Q,I,b,O),0<N&&wr(Q,I,b,O+4),U.La&&br(Q,I,b,O);else{var T=D.B,M=D.qa,H=D.ra+8*k*T+8*x,R=D.Ha,D=D.Ia+8*k*T+8*x;k=U.ld,0<x&&(fr(Q,I,b,O+4,P,k),pr(M,H,R,D,T,O+4,P,k)),U.La&&(gr(Q,I,b,O,P,k),vr(M,H,R,D,T,O,P,k)),0<N&&(Ar(Q,I,b,O+4,P,k),hr(M,H,R,D,T,O+4,P,k)),U.La&&(dr(Q,I,b,O,P,k),mr(M,H,R,D,T,O,P,k))}}if(s.ia&&alert("todo:DitherRow"),null!=u.put){if(B=16*S,S=16*(S+1),L?(u.y=s.sa,u.O=s.ta+y,u.f=s.qa,u.N=s.ra+C,u.ea=s.Ha,u.W=s.Ia+C):(B-=w,u.y=h,u.O=p,u.f=d,u.N=A,u.ea=g,u.W=m),v||(S-=w),S>u.o&&(S=u.o),u.F=null,u.J=null,null!=s.Fa&&0<s.Fa.length&&B<S&&(u.J=fn(s,u,B,S-B),u.F=s.mb,null==u.F&&0==u.F.length)){c=Wt(s,3,"Could not decode alpha data.");break t}B<u.j&&(w=u.j-B,B=u.j,e(!(1&w)),u.O+=s.R*w,u.N+=s.B*(w>>1),u.W+=s.B*(w>>1),null!=u.F&&(u.J+=u.width*w)),B<S&&(u.O+=u.v,u.N+=u.v>>1,u.W+=u.v>>1,null!=u.F&&(u.J+=u.v),u.ka=B-u.j,u.U=u.va-u.v,u.T=S-B,c=u.put(u))}a+1!=s.Ic||v||(r(s.sa,s.ta-l,h,p+16*s.R,l),r(s.qa,s.ra-f,d,A+8*s.B,f),r(s.Ha,s.Ia-f,g,m+8*s.B,f))}if(!c)return Wt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function ee(t,e,n,r,i,o){te(t,e,0,n,r+i),te(t,e,1,n,r+o),te(t,e,2,n,r-o),te(t,e,3,n,r-i)}function ne(t){return(20091*t>>16)+t}function re(t,e,n,r){var i,a=0,s=o(16);for(i=0;4>i;++i){var u=t[e+0]+t[e+8],c=t[e+0]-t[e+8],l=(35468*t[e+4]>>16)-ne(t[e+12]),A=ne(t[e+4])+(35468*t[e+12]>>16);s[a+0]=u+A,s[a+1]=c+l,s[a+2]=c-l,s[a+3]=u-A,a+=4,e++}for(i=a=0;4>i;++i)u=(t=s[a+0]+4)+s[a+8],c=t-s[a+8],l=(35468*s[a+4]>>16)-ne(s[a+12]),te(n,r,0,0,u+(A=ne(s[a+4])+(35468*s[a+12]>>16))),te(n,r,1,0,c+l),te(n,r,2,0,c-l),te(n,r,3,0,u-A),a++,r+=32}function ie(t,e,n,r){var i=t[e+0]+4,o=35468*t[e+4]>>16,a=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,r,0,i+a,t=ne(t[e+1]),s),ee(n,r,1,i+o,t,s),ee(n,r,2,i-o,t,s),ee(n,r,3,i-a,t,s)}function oe(t,e,n,r,i){re(t,e,n,r),i&&re(t,e+16,n,r+4)}function ae(t,e,n,r){ar(t,e+0,n,r,1),ar(t,e+32,n,r+128,1)}function se(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(n,r,e,i,t)}function ue(t,e,n,r){t[e+0]&&cr(t,e+0,n,r),t[e+16]&&cr(t,e+16,n,r+4),t[e+32]&&cr(t,e+32,n,r+128),t[e+48]&&cr(t,e+48,n,r+128+4)}function ce(t,e,n,r){var i,a=o(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],u=t[e+4+i]+t[e+8+i],c=t[e+4+i]-t[e+8+i],l=t[e+0+i]-t[e+12+i];a[0+i]=s+u,a[8+i]=s-u,a[4+i]=l+c,a[12+i]=l-c}for(i=0;4>i;++i)s=(t=a[0+4*i]+3)+a[3+4*i],u=a[1+4*i]+a[2+4*i],c=a[1+4*i]-a[2+4*i],l=t-a[3+4*i],n[r+0]=s+u>>3,n[r+16]=l+c>>3,n[r+32]=s-u>>3,n[r+48]=l-c>>3,r+=64}function le(t,e,n){var r,i=e-32,o=Ir,a=255-t[i-1];for(r=0;r<n;++r){var s,u=o,c=a+t[e-1];for(s=0;s<n;++s)t[e+s]=u[c+t[i+s]];e+=32}}function Ae(t,e){le(t,e,4)}function fe(t,e){le(t,e,8)}function he(t,e){le(t,e,16)}function pe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function de(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function ge(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function me(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];ge(r>>5,t,e)}function ve(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];ge(r>>4,t,e)}function we(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];ge(r>>4,t,e)}function ye(t,e){ge(128,t,e)}function be(t,e,n){return t+2*e+n+2>>2}function Be(t,e){var n,i=e-32;for(i=new Uint8Array([be(t[i-1],t[i+0],t[i+1]),be(t[i+0],t[i+1],t[i+2]),be(t[i+1],t[i+2],t[i+3]),be(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function xe(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];L(t,e+0,16843009*be(t[e-1-32],n,r)),L(t,e+32,16843009*be(n,r,i)),L(t,e+64,16843009*be(r,i,o)),L(t,e+96,16843009*be(i,o,o))}function Ne(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function _e(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],u=t[e+2-32],c=t[e+3-32];t[e+0+96]=be(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=be(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=be(o,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=be(a,o,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=be(s,a,o),t[e+3+32]=t[e+2+0]=be(u,s,a),t[e+3+0]=be(c,u,s)}function Ce(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],a=t[e+5-32],s=t[e+6-32],u=t[e+7-32];t[e+0+0]=be(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=be(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=be(r,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=be(i,o,a),t[e+3+32]=t[e+2+64]=t[e+1+96]=be(o,a,s),t[e+3+64]=t[e+2+96]=be(a,s,u),t[e+3+96]=be(s,u,u)}function Se(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],a=t[e+0-32],s=t[e+1-32],u=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=o+a+1>>1,t[e+1+0]=t[e+2+64]=a+s+1>>1,t[e+2+0]=t[e+3+64]=s+u+1>>1,t[e+3+0]=u+c+1>>1,t[e+0+96]=be(i,r,n),t[e+0+64]=be(r,n,o),t[e+0+32]=t[e+1+96]=be(n,o,a),t[e+1+32]=t[e+2+96]=be(o,a,s),t[e+2+32]=t[e+3+96]=be(a,s,u),t[e+3+32]=be(s,u,c)}function Ee(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],o=t[e+3-32],a=t[e+4-32],s=t[e+5-32],u=t[e+6-32],c=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+a+1>>1,t[e+0+32]=be(n,r,i),t[e+1+32]=t[e+0+96]=be(r,i,o),t[e+2+32]=t[e+1+96]=be(i,o,a),t[e+3+32]=t[e+2+96]=be(o,a,s),t[e+3+64]=be(a,s,u),t[e+3+96]=be(s,u,c)}function Le(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=be(n,r,i),t[e+3+0]=t[e+1+32]=be(r,i,o),t[e+3+32]=t[e+1+64]=be(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function Fe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96],a=t[e-1-32],s=t[e+0-32],u=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=n+a+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=be(s,u,c),t[e+2+0]=be(a,s,u),t[e+1+0]=t[e+3+32]=be(n,a,s),t[e+1+32]=t[e+3+64]=be(r,n,a),t[e+1+64]=t[e+3+96]=be(i,r,n),t[e+1+96]=be(o,i,r)}function ke(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function Ue(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function Qe(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Ie(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];Qe(r>>4,t,e)}function Pe(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];Qe(r>>3,t,e)}function Oe(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];Qe(r>>3,t,e)}function Te(t,e){Qe(128,t,e)}function Me(t,e,n){var r=t[e-n],i=t[e+0],o=3*(i-r)+Ur[1020+t[e-2*n]-t[e+n]],a=Qr[112+(o+4>>3)];t[e-n]=Ir[255+r+Qr[112+(o+3>>3)]],t[e+0]=Ir[255+i-a]}function He(t,e,n,r){var i=t[e+0],o=t[e+n];return Pr[255+t[e-2*n]-t[e-n]]>r||Pr[255+o-i]>r}function Re(t,e,n,r){return 4*Pr[255+t[e-n]-t[e+0]]+Pr[255+t[e-2*n]-t[e+n]]<=r}function De(t,e,n,r,i){var o=t[e-3*n],a=t[e-2*n],s=t[e-n],u=t[e+0],c=t[e+n],l=t[e+2*n],A=t[e+3*n];return 4*Pr[255+s-u]+Pr[255+a-c]>r?0:Pr[255+t[e-4*n]-o]<=i&&Pr[255+o-a]<=i&&Pr[255+a-s]<=i&&Pr[255+A-l]<=i&&Pr[255+l-c]<=i&&Pr[255+c-u]<=i}function je(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Re(t,e+r,n,i)&&Me(t,e+r,n)}function ze(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)Re(t,e+r*n,1,i)&&Me(t,e+r*n,1)}function Ke(t,e,n,r){var i;for(i=3;0<i;--i)je(t,e+=4*n,n,r)}function qe(t,e,n,r){var i;for(i=3;0<i;--i)ze(t,e+=4,n,r)}function Ve(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(De(t,e,n,o,a))if(He(t,e,n,s))Me(t,e,n);else{var u=t,c=e,l=n,A=u[c-2*l],f=u[c-l],h=u[c+0],p=u[c+l],d=u[c+2*l],g=27*(v=Ur[1020+3*(h-f)+Ur[1020+A-p]])+63>>7,m=18*v+63>>7,v=9*v+63>>7;u[c-3*l]=Ir[255+u[c-3*l]+v],u[c-2*l]=Ir[255+A+m],u[c-l]=Ir[255+f+g],u[c+0]=Ir[255+h-g],u[c+l]=Ir[255+p-m],u[c+2*l]=Ir[255+d-v]}e+=r}}function Ge(t,e,n,r,i,o,a,s){for(o=2*o+1;0<i--;){if(De(t,e,n,o,a))if(He(t,e,n,s))Me(t,e,n);else{var u=t,c=e,l=n,A=u[c-l],f=u[c+0],h=u[c+l],p=Qr[112+(4+(d=3*(f-A))>>3)],d=Qr[112+(d+3>>3)],g=p+1>>1;u[c-2*l]=Ir[255+u[c-2*l]+g],u[c-l]=Ir[255+A+d],u[c+0]=Ir[255+f-p],u[c+l]=Ir[255+h-g]}e+=r}}function We(t,e,n,r,i,o){Ve(t,e,n,1,16,r,i,o)}function Xe(t,e,n,r,i,o){Ve(t,e,1,n,16,r,i,o)}function Je(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Ge(t,e+=4*n,n,1,16,r,i,o)}function Ye(t,e,n,r,i,o){var a;for(a=3;0<a;--a)Ge(t,e+=4,1,n,16,r,i,o)}function $e(t,e,n,r,i,o,a,s){Ve(t,e,i,1,8,o,a,s),Ve(n,r,i,1,8,o,a,s)}function Ze(t,e,n,r,i,o,a,s){Ve(t,e,1,i,8,o,a,s),Ve(n,r,1,i,8,o,a,s)}function tn(t,e,n,r,i,o,a,s){Ge(t,e+4*i,i,1,8,o,a,s),Ge(n,r+4*i,i,1,8,o,a,s)}function en(t,e,n,r,i,o,a,s){Ge(t,e+4,1,i,8,o,a,s),Ge(n,r+4,1,i,8,o,a,s)}function nn(){this.ba=new at,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ut,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){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 on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new P,this.vb=new P,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new h,this.yc=new A}function sn(){this.xb=this.a=0,this.l=new Vt,this.ca=new at,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=a(4,on),this.Oc=0}function un(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Vt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(t,e,n,r,i,o,a){for(t=null==t?0:t[e+0],e=0;e<a;++e)i[o+e]=t+n[r+e]&255,t=i[o+e]}function ln(t,e,n,r,i,o,a){var s;if(null==t)cn(null,null,n,r,i,o,a);else for(s=0;s<a;++s)i[o+s]=t[e+s]+n[r+s]&255}function An(t,e,n,r,i,o,a){if(null==t)cn(null,null,n,r,i,o,a);else{var s,u=t[e+0],c=u,l=u;for(s=0;s<a;++s)c=l+(u=t[e+s])-c,l=n[r+s]+(-256&c?0>c?0:255:c)&255,c=u,i[o+s]=l}}function fn(t,n,i,a){var s=n.width,u=n.o;if(e(null!=t&&null!=n),0>i||0>=a||i+a>u)return null;if(!t.Cc){if(null==t.ga){var c;if(t.ga=new un,(c=null==t.ga)||(c=n.width*n.o,e(0==t.Gb.length),t.Gb=o(c),t.Uc=0,null==t.Gb?c=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,c=1),c=!c),!c){c=t.ga;var l=t.Fa,A=t.P,f=t.qc,h=t.mb,p=t.nb,d=A+1,g=f-1,v=c.l;if(e(null!=l&&null!=h&&null!=n),gi[0]=null,gi[1]=cn,gi[2]=ln,gi[3]=An,c.ca=h,c.tb=p,c.c=n.width,c.i=n.height,e(0<c.c&&0<c.i),1>=f)n=0;else if(c.$a=l[A+0]>>0&3,c.Z=l[A+0]>>2&3,c.Lc=l[A+0]>>4&3,A=l[A+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||A)n=0;else if(v.put=ht,v.ac=ft,v.bc=pt,v.ma=c,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,c.$a)t:{e(1==c.$a),n=Et();e:for(;;){if(null==n){n=0;break t}if(e(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,m(n.m,l,d,g),!Lt(c.c,c.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&xt(n.s)?(c.ic=1,l=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(l),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Ft(n,c.c)),!n)break e;n=1;break t}c.mc=null,n=0}else n=g>=c.c*c.i;c=!n}if(c)return null;1!=t.ga.Lc?t.Ga=0:a=u-i}e(null!=t.ga),e(i+a<=u);t:{if(n=(l=t.ga).c,u=l.l.o,0==l.$a){if(d=t.rc,g=t.Vc,v=t.Fa,A=t.P+1+i*n,f=t.mb,h=t.nb+i*n,e(A<=t.P+t.qc),0!=l.Z)for(e(null!=gi[l.Z]),c=0;c<a;++c)gi[l.Z](d,g,v,A,f,h,n),d=f,g=h,h+=n,A+=n;else for(c=0;c<a;++c)r(f,h,v,A,n),d=f,g=h,h+=n,A+=n;t.rc=d,t.Vc=g}else{if(e(null!=l.mc),n=i+a,e(null!=(c=l.mc)),e(n<=c.i),c.C>=n)n=1;else if(l.ic||mn(),l.ic){l=c.V,d=c.Ba,g=c.c;var w=c.i,y=(v=1,A=c.$/g,f=c.$%g,h=c.m,p=c.s,c.$),b=g*w,B=g*n,N=p.wc,C=y<B?yt(p,f,A):null;e(y<=b),e(n<=w),e(xt(p));e:for(;;){for(;!h.h&&y<B;){if(f&N||(C=yt(p,f,A)),e(null!=C),_(h),256>(w=vt(C.G[0],C.H[0],h)))l[d+y]=w,++y,++f>=g&&(f=0,++A<=n&&!(A%16)&&_t(c,A));else{if(!(280>w)){v=0;break e}w=gt(w-256,h);var S,E=vt(C.G[4],C.H[4],h);if(_(h),!(y>=(E=mt(g,E=gt(E,h)))&&b-y>=w)){v=0;break e}for(S=0;S<w;++S)l[d+y+S]=l[d+y+S-E];for(y+=w,f+=w;f>=g;)f-=g,++A<=n&&!(A%16)&&_t(c,A);y<B&&f&N&&(C=yt(p,f,A))}e(h.h==x(h))}_t(c,A>n?n:A);break e}!v||h.h&&y<b?(v=0,c.a=h.h?5:3):c.$=y,n=v}else n=Ct(c,c.V,c.Ba,c.c,c.i,n,kt);if(!n){a=0;break t}}i+a>=u&&(t.Cc=1),a=1}if(!a)return null;if(t.Cc&&(null!=(a=t.ga)&&(a.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function hn(t,e,n,r,i,o){for(;0<i--;){var a,s=t,u=e+(n?1:0),c=t,l=e+(n?0:3);for(a=0;a<r;++a){var A=c[l+4*a];255!=A&&(A*=32897,s[u+4*a+0]=s[u+4*a+0]*A>>23,s[u+4*a+1]=s[u+4*a+1]*A>>23,s[u+4*a+2]=s[u+4*a+2]*A>>23)}e+=o}}function pn(t,e,n,r,i){for(;0<r--;){var o;for(o=0;o<n;++o){var a=t[e+2*o+0],s=15&(c=t[e+2*o+1]),u=4369*s,c=(240&c|c>>4)*u>>16;t[e+2*o+0]=(240&a|a>>4)*u>>16&240|(15&a|a<<4)*u>>16>>4&15,t[e+2*o+1]=240&c|s}e+=i}}function dn(t,e,n,r,i,o,a,s){var u,c,l=255;for(c=0;c<i;++c){for(u=0;u<r;++u){var A=t[e+u];o[a+4*u]=A,l&=A}e+=n,a+=s}return 255!=l}function gn(t,e,n,r,i){var o;for(o=0;o<i;++o)n[r+o]=t[e+o]>>8}function mn(){xr=hn,Nr=pn,_r=dn,Cr=gn}function vn(n,r,i){t[n]=function(t,n,o,a,s,u,c,l,A,f,h,p,d,g,m,v,w){var y,b=w-1>>1,B=s[u+0]|c[l+0]<<16,x=A[f+0]|h[p+0]<<16;e(null!=t);var N=3*B+x+131074>>2;for(r(t[n+0],255&N,N>>16,d,g),null!=o&&(N=3*x+B+131074>>2,r(o[a+0],255&N,N>>16,m,v)),y=1;y<=b;++y){var _=s[u+y]|c[l+y]<<16,C=A[f+y]|h[p+y]<<16,S=B+_+x+C+524296,E=S+2*(_+x)>>3;N=E+B>>1,B=(S=S+2*(B+C)>>3)+_>>1,r(t[n+2*y-1],255&N,N>>16,d,g+(2*y-1)*i),r(t[n+2*y-0],255&B,B>>16,d,g+(2*y-0)*i),null!=o&&(N=S+x>>1,B=E+C>>1,r(o[a+2*y-1],255&N,N>>16,m,v+(2*y-1)*i),r(o[a+2*y+0],255&B,B>>16,m,v+(2*y+0)*i)),B=_,x=C}1&w||(N=3*B+x+131074>>2,r(t[n+w-1],255&N,N>>16,d,g+(w-1)*i),null!=o&&(N=3*x+B+131074>>2,r(o[a+w-1],255&N,N>>16,m,v+(w-1)*i)))}}function wn(){mi[Or]=vi,mi[Tr]=yi,mi[Mr]=wi,mi[Hr]=bi,mi[Rr]=Bi,mi[Dr]=xi,mi[jr]=Ni,mi[zr]=yi,mi[Kr]=bi,mi[qr]=Bi,mi[Vr]=xi}function yn(t){return t&~Fi?0>t?0:255:t>>Li}function bn(t,e){return yn((19077*t>>8)+(26149*e>>8)-14234)}function Bn(t,e,n){return yn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function xn(t,e){return yn((19077*t>>8)+(33050*e>>8)-17685)}function Nn(t,e,n,r,i){r[i+0]=bn(t,n),r[i+1]=Bn(t,e,n),r[i+2]=xn(t,e)}function _n(t,e,n,r,i){r[i+0]=xn(t,e),r[i+1]=Bn(t,e,n),r[i+2]=bn(t,n)}function Cn(t,e,n,r,i){var o=Bn(t,e,n);e=o<<3&224|xn(t,e)>>3,r[i+0]=248&bn(t,n)|o>>5,r[i+1]=e}function Sn(t,e,n,r,i){var o=240&xn(t,e)|15;r[i+0]=240&bn(t,n)|Bn(t,e,n)>>4,r[i+1]=o}function En(t,e,n,r,i){r[i+0]=255,Nn(t,e,n,r,i+1)}function Ln(t,e,n,r,i){_n(t,e,n,r,i),r[i+3]=255}function Fn(t,e,n,r,i){Nn(t,e,n,r,i),r[i+3]=255}function qt(t,e){return 0>t?0:t>e?e:t}function kn(e,n,r){t[e]=function(t,e,i,o,a,s,u,c,l){for(var A=c+(-2&l)*r;c!=A;)n(t[e+0],i[o+0],a[s+0],u,c),n(t[e+1],i[o+0],a[s+0],u,c+r),e+=2,++o,++s,c+=2*r;1&l&&n(t[e+0],i[o+0],a[s+0],u,c)}}function Un(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Qn(t,e,n,r,i){switch(t>>>30){case 3:ar(e,n,r,i,0);break;case 2:sr(e,n,r,i);break;case 1:cr(e,n,r,i)}}function In(t,e){var n,o,a=e.M,s=e.Nb,u=t.oc,c=t.pc+40,l=t.oc,A=t.pc+584,f=t.oc,h=t.pc+600;for(n=0;16>n;++n)u[c+32*n-1]=129;for(n=0;8>n;++n)l[A+32*n-1]=129,f[h+32*n-1]=129;for(0<a?u[c-1-32]=l[A-1-32]=f[h-1-32]=129:(i(u,c-32-1,127,21),i(l,A-32-1,127,9),i(f,h-32-1,127,9)),o=0;o<t.za;++o){var p=e.ya[e.aa+o];if(0<o){for(n=-1;16>n;++n)r(u,c+32*n-4,u,c+32*n+12,4);for(n=-1;8>n;++n)r(l,A+32*n-4,l,A+32*n+4,4),r(f,h+32*n-4,f,h+32*n+4,4)}var d=t.Gd,g=t.Hd+o,m=p.ad,v=p.Hc;if(0<a&&(r(u,c-32,d[g].y,0,16),r(l,A-32,d[g].f,0,8),r(f,h-32,d[g].ea,0,8)),p.Za){var w=u,y=c-32+16;for(0<a&&(o>=t.za-1?i(w,y,d[g].y[15],4):r(w,y,d[g+1].y,0,4)),n=0;4>n;n++)w[y+128+n]=w[y+256+n]=w[y+384+n]=w[y+0+n];for(n=0;16>n;++n,v<<=2)w=u,y=c+Mi[n],fi[p.Ob[n]](w,y),Qn(v,m,16*+n,w,y)}else if(w=Un(o,a,p.Ob[0]),Ai[w](u,c),0!=v)for(n=0;16>n;++n,v<<=2)Qn(v,m,16*+n,u,c+Mi[n]);for(n=p.Gc,w=Un(o,a,p.Dd),hi[w](l,A),hi[w](f,h),v=m,w=l,y=A,255&(p=n>>0)&&(170&p?ur(v,256,w,y):lr(v,256,w,y)),p=f,v=h,255&(n>>=8)&&(170&n?ur(m,320,p,v):lr(m,320,p,v)),a<t.Ub-1&&(r(d[g].y,0,u,c+480,16),r(d[g].f,0,l,A+224,8),r(d[g].ea,0,f,h+224,8)),n=8*s*t.B,d=t.sa,g=t.ta+16*o+16*s*t.R,m=t.qa,p=t.ra+8*o+n,v=t.Ha,w=t.Ia+8*o+n,n=0;16>n;++n)r(d,g+n*t.R,u,c+32*n,16);for(n=0;8>n;++n)r(m,p+n*t.B,l,A+32*n,8),r(v,w+n*t.B,f,h+32*n,8)}}function Pn(t,r,i,o,a,s,u,c,l){var A=[0],f=[0],h=0,p=null!=l?l.kd:0,d=null!=l?l:new rn;if(null==t||12>i)return 7;d.data=t,d.w=r,d.ha=i,r=[r],i=[i],d.gb=[d.gb];t:{var g=r,v=i,w=d.gb;if(e(null!=t),e(null!=v),e(null!=w),w[0]=0,12<=v[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){w=3;break t}var y=U(t,g[0]+4);if(12>y||4294967286<y){w=3;break t}if(p&&y>v[0]-8){w=7;break t}w[0]=y,g[0]+=12,v[0]-=12}w=0}if(0!=w)return w;for(y=0<d.gb[0],i=i[0];;){t:{var B=t;v=r,w=i;var x=A,N=f,_=g=[0];if((E=h=[h])[0]=0,8>w[0])w=7;else{if(!n(B,v[0],"VP8X")){if(10!=U(B,v[0]+4)){w=3;break t}if(18>w[0]){w=7;break t}var C=U(B,v[0]+8),S=1+k(B,v[0]+12);if(2147483648<=S*(B=1+k(B,v[0]+15))){w=3;break t}null!=_&&(_[0]=C),null!=x&&(x[0]=S),null!=N&&(N[0]=B),v[0]+=18,w[0]-=18,E[0]=1}w=0}}if(h=h[0],g=g[0],0!=w)return w;if(v=!!(2&g),!y&&h)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=u&&(u[0]=v),null!=c&&(c[0]=0),u=A[0],g=f[0],h&&v&&null==l){w=0;break}if(4>i){w=7;break}if(y&&h||!y&&!h&&!n(t,r[0],"ALPH")){i=[i],d.na=[d.na],d.P=[d.P],d.Sa=[d.Sa];t:{C=t,w=r,y=i;var E=d.gb;x=d.na,N=d.P,_=d.Sa,S=22,e(null!=C),e(null!=y),B=w[0];var L=y[0];for(e(null!=x),e(null!=_),x[0]=null,N[0]=null,_[0]=0;;){if(w[0]=B,y[0]=L,8>L){w=7;break t}var F=U(C,B+4);if(4294967286<F){w=3;break t}var Q=8+F+1&-2;if(S+=Q,0<E&&S>E){w=3;break t}if(!n(C,B,"VP8 ")||!n(C,B,"VP8L")){w=0;break t}if(L[0]<Q){w=7;break t}n(C,B,"ALPH")||(x[0]=C,N[0]=B+8,_[0]=F),B+=Q,L-=Q}}if(i=i[0],d.na=d.na[0],d.P=d.P[0],d.Sa=d.Sa[0],0!=w)break}i=[i],d.Ja=[d.Ja],d.xa=[d.xa];t:if(E=t,w=r,y=i,x=d.gb[0],N=d.Ja,_=d.xa,C=w[0],B=!n(E,C,"VP8 "),S=!n(E,C,"VP8L"),e(null!=E),e(null!=y),e(null!=N),e(null!=_),8>y[0])w=7;else{if(B||S){if(E=U(E,C+4),12<=x&&E>x-12){w=3;break t}if(p&&E>y[0]-8){w=7;break t}N[0]=E,w[0]+=8,y[0]-=8,_[0]=S}else _[0]=5<=y[0]&&47==E[C+0]&&!(E[C+4]>>5),N[0]=y[0];w=0}if(i=i[0],d.Ja=d.Ja[0],d.xa=d.xa[0],r=r[0],0!=w)break;if(4294967286<d.Ja)return 3;if(null==c||v||(c[0]=d.xa?2:1),u=[u],g=[g],d.xa){if(5>i){w=7;break}c=u,p=g,v=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(y=[0],E=[0],x=[0],m(N=new b,t,r,i),dt(N,y,E,x)?(null!=c&&(c[0]=y[0]),null!=p&&(p[0]=E[0]),null!=v&&(v[0]=x[0]),t=1):t=0):t=0}else{if(10>i){w=7;break}c=g,null==t||10>i||!Xt(t,r+3,i-3)?t=0:(p=t[r+0]|t[r+1]<<8|t[r+2]<<16,v=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&p||3<(p>>1&7)||!(p>>4&1)||p>>5>=d.Ja||!v||!t?t=0:(u&&(u[0]=v),c&&(c[0]=t),t=1))}if(!t)return 3;if(u=u[0],g=g[0],h&&(A[0]!=u||f[0]!=g))return 3;null!=l&&(l[0]=d,l.offset=r-l.w,e(4294967286>r-l.w),e(l.offset==l.ha-i));break}return 0==w||7==w&&h&&null==l?(null!=s&&(s[0]|=null!=d.na&&0<d.na.length),null!=o&&(o[0]=u),null!=a&&(a[0]=g),0):w}function On(t,e,n){var r=e.width,i=e.height,o=0,a=0,s=r,u=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,u=t.bd,o=t.v,a=t.j,11>n||(o&=-2,a&=-2),0>o||0>a||0>=s||0>=u||o+s>r||a+u>i))return 0;if(e.v=o,e.j=a,e.va=o+s,e.o=a+u,e.U=s,e.T=u,e.da=null!=t&&0<t.da,e.da){if(!O(s,u,n=[t.ib],o=[t.hb]))return 0;e.ib=n[0],e.hb=o[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function Tn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Mn(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,a=n.bd,s=-2&n.v,u=-2&n.j;if(0>s||0>u||0>=i||0>=a||s+i>t||u+a>e)return 2;t=i,e=a}if(n.da){if(!O(t,e,i=[n.ib],a=[n.hb]))return 2;t=i[0],e=a[0]}}r.width=t,r.height=e;t:{var c=r.width,l=r.height;if(t=r.S,0>=c||0>=l||!(t>=Or&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=a=i=e=0;var A=(u=c*ji[t])*l;if(11>t||(a=(l+1)/2*(e=(c+1)/2),12==t&&(s=(i=c)*l)),null==(l=o(A+2*a+s))){t=1;break t}r.sd=l,11>t?((c=r.f.RGBA).eb=l,c.fb=0,c.A=u,c.size=A):((c=r.f.kb).y=l,c.O=0,c.fa=u,c.Fd=A,c.f=l,c.N=0+A,c.Ab=e,c.Cd=a,c.ea=l,c.W=0+A+a,c.Db=e,c.Ed=a,12==t&&(c.F=l,c.J=0+A+2*a),c.Tc=s,c.lb=i)}if(e=1,i=r.S,a=r.width,s=r.height,i>=Or&&13>i)if(11>i)t=r.f.RGBA,e&=(u=Math.abs(t.A))*(s-1)+a<=t.size,e&=u>=a*ji[i],e&=null!=t.eb;else{t=r.f.kb,u=(a+1)/2,A=(s+1)/2,c=Math.abs(t.fa),l=Math.abs(t.Ab);var f=Math.abs(t.Db),h=Math.abs(t.lb),p=h*(s-1)+a;e&=c*(s-1)+a<=t.Fd,e&=l*(A-1)+u<=t.Cd,e=(e&=f*(A-1)+u<=t.Ed)&c>=a&l>=u&f>=u,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=h>=a,e&=p<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Tn(r)),t}var Hn=64,Rn=[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],Dn=24,jn=32,zn=8,Kn=[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];H("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return D(D(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return D(t,e[n-1])},t.Predictor7=function(t,e,n){return D(t,e[n+0])},t.Predictor8=function(t,e,n){return D(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return D(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return D(D(t,e[n-1]),D(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=K(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+K(r>>16&255,t>>16&255,e>>16&255)+K(r>>8&255,t>>8&255,e>>8&255)+K(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(j((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|j((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|j((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|j((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(z((t=D(t,e[n+0]))>>24&255,r>>24&255)<<24|z(t>>16&255,r>>16&255)<<16|z(t>>8&255,r>>8&255)<<8|z(t>>0&255,r>>0&255))>>>0};var qn=t.PredictorAdd0;t.PredictorAdd1=q,H("Predictor2","PredictorAdd2"),H("Predictor3","PredictorAdd3"),H("Predictor4","PredictorAdd4"),H("Predictor5","PredictorAdd5"),H("Predictor6","PredictorAdd6"),H("Predictor7","PredictorAdd7"),H("Predictor8","PredictorAdd8"),H("Predictor9","PredictorAdd9"),H("Predictor10","PredictorAdd10"),H("Predictor11","PredictorAdd11"),H("Predictor12","PredictorAdd12"),H("Predictor13","PredictorAdd13");var Vn=t.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Gn,Wn=t.ColorIndexInverseTransform,Xn=t.MapARGB,Jn=t.VP8LColorIndexInverseTransformAlpha,Yn=t.MapAlpha,$n=t.VP8LPredictorsAdd=[];$n.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Zn,tr,er,nr,rr,ir,or,ar,sr,ur,cr,lr,Ar,fr,hr,pr,dr,gr,mr,vr,wr,yr,br,Br,xr,Nr,_r,Cr,Sr=o(511),Er=o(2041),Lr=o(225),Fr=o(767),kr=0,Ur=Er,Qr=Lr,Ir=Fr,Pr=Sr,Or=0,Tr=1,Mr=2,Hr=3,Rr=4,Dr=5,jr=6,zr=7,Kr=8,qr=9,Vr=10,Gr=[2,3,7],Wr=[3,3,11],Xr=[280,256,256,256,40],Jr=[0,1,1,1,0],Yr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],$r=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Zr=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[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,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ai=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ui=[[[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]]],ci=[[[[255,255,255,255,255,255,255,255,255,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],Ai=[],fi=[],hi=[],pi=1,di=2,gi=[],mi=[];vn("UpsampleRgbLinePair",Nn,3),vn("UpsampleBgrLinePair",_n,3),vn("UpsampleRgbaLinePair",Fn,4),vn("UpsampleBgraLinePair",Ln,4),vn("UpsampleArgbLinePair",En,4),vn("UpsampleRgba4444LinePair",Sn,2),vn("UpsampleRgb565LinePair",Cn,2);var vi=t.UpsampleRgbLinePair,wi=t.UpsampleBgrLinePair,yi=t.UpsampleRgbaLinePair,bi=t.UpsampleBgraLinePair,Bi=t.UpsampleArgbLinePair,xi=t.UpsampleRgba4444LinePair,Ni=t.UpsampleRgb565LinePair,_i=16,Ci=1<<_i-1,Si=-227,Ei=482,Li=6,Fi=(256<<Li)-1,ki=0,Ui=o(256),Qi=o(256),Ii=o(256),Pi=o(256),Oi=o(Ei-Si),Ti=o(Ei-Si);kn("YuvToRgbRow",Nn,3),kn("YuvToBgrRow",_n,3),kn("YuvToRgbaRow",Fn,4),kn("YuvToBgraRow",Ln,4),kn("YuvToArgbRow",En,4),kn("YuvToRgba4444Row",Sn,2),kn("YuvToRgb565Row",Cn,2);var Mi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Hi=[0,2,8],Ri=[8,7,6,4,4,2,2,2,1,1,1,1],Di=1;this.WebPDecodeRGBA=function(t,n,r,i,o){var a=Tr,s=new nn,u=new at;s.ba=u,u.S=a,u.width=[u.width],u.height=[u.height];var c=u.width,l=u.height,A=new st;if(null==A||null==t)var f=2;else e(null!=A),f=Pn(t,n,r,A.width,A.height,A.Pd,A.Qd,A.format,null);if(0!=f?c=0:(null!=c&&(c[0]=A.width[0]),null!=l&&(l[0]=A.height[0]),c=1),c){u.width=u.width[0],u.height=u.height[0],null!=i&&(i[0]=u.width),null!=o&&(o[0]=u.height);t:{if(i=new Vt,(o=new rn).data=t,o.w=n,o.ha=r,o.kd=1,n=[0],e(null!=o),(0==(t=Pn(o.data,o.w,o.ha,null,null,null,n,null,o))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),i.data=o.data,i.w=o.w+o.offset,i.ha=o.ha-o.offset,i.put=ht,i.ac=ft,i.bc=pt,i.ma=s,o.xa){if(null==(t=Et())){s=1;break t}if(function(t,n){var r=[0],i=[0],o=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,m(t.m,n.data,n.w,n.ha),!dt(t.m,r,i,o)){t.a=3;break e}if(t.xb=di,n.width=r[0],n.height=i[0],!Lt(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(n=Mn(i.width,i.height,s.Oa,s.ba))){e:{i=t;n:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(r=i.l)),e(null!=(o=r.ma)),0!=i.xb){if(i.ca=o.ba,i.tb=o.tb,e(null!=i.ca),!On(o.Oa,r,Hr)){i.a=2;break n}if(!Ft(i,r.width))break n;if(r.da)break n;if((r.da||rt(i.ca.S))&&mn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&mn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!Q(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!Ct(i,i.V,i.Ba,i.c,i.i,r.o,Bt))break n;o.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(n=t.a)}else n=t.a}else{if(null==(t=new Gt)){s=1;break t}if(t.Fa=o.na,t.P=o.P,t.qc=o.Sa,Jt(t,i)){if(0==(n=Mn(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,r=s.Oa,e(null!=(o=t)),null!=r){if(0<(c=0>(c=r.Md)?0:100<c?255:255*c/100)){for(l=A=0;4>l;++l)12>(f=o.pb[l]).lc&&(f.ia=c*Ri[0>f.lc?0:f.lc]>>3),A|=f.ia;A&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=r.Id,100<o.Ga?o.Ga=100:0>o.Ga&&(o.Ga=0)}Zt(t,i)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Tn(s.ba))}s=n}a=0!=s?null:11>a?u.f.RGBA.eb:u.f.kb.y}else a=null;return a};var ji=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var A=[0],f=[0],h=[],p=new Yt,d=t,g=function(t,e){var n={},r=0,i=!1,o=0,a=0;if(n.frames=[],!function(t,e,n,r){for(var i=0;i<4;i++)if(t[e+i]!="RIFF".charCodeAt(i))return!0;return!1}(t,e)){var s,A;for(l(t,e+=4),e+=8;e<t.length;){var f=u(t,e),h=l(t,e+=4);e+=4;var p=h+(1&h);switch(f){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(m=n.frames[r]).src_off=i?a:e-8,m.src_size=o+h+8,r++,i&&(i=!1,o=0,a=0);break;case"VP8X":(m=n.header={}).feature_flags=t[e];var d=e+4;m.canvas_width=1+c(t,d),d+=3,m.canvas_height=1+c(t,d),d+=3;break;case"ALPH":i=!0,o=p+8,a=e-8;break;case"ANIM":(m=n.header).bgcolor=l(t,e),d=e+4,m.loop_count=(s=t)[(A=d)+0]<<0|s[A+1]<<8,d+=2;break;case"ANMF":var g,m;(m=n.frames[r]={}).offset_x=2*c(t,e),e+=3,m.offset_y=2*c(t,e),e+=3,m.width=1+c(t,e),e+=3,m.height=1+c(t,e),e+=3,m.duration=c(t,e),e+=3,g=t[e++],m.dispose=1&g,m.blend=g>>1&1}"ANMF"!=f&&(e+=p)}return n}}(d,0);g.response=d,g.rgbaoutput=!0,g.dataurl=!1;var m=g.header?g.header:null,v=g.frames?g.frames:null;if(m){m.loop_counter=m.loop_count,A=[m.canvas_height],f=[m.canvas_width];for(var w=0;w<v.length&&0!=v[w].blend;w++);}var y=v[0],b=p.WebPDecodeRGBA(d,y.src_off,y.src_size,f,A);y.rgba=b,y.imgwidth=f[0],y.imgheight=A[0];for(var B=0;B<f[0]*A[0]*4;B++)h[B]=b[B];return this.width=f,this.height=A,this.data=h,this}!function(t){var e=function(e,i,c,l){var A=4,f=a;switch(l){case t.image_compression.FAST:A=1,f=o;break;case t.image_compression.MEDIUM:A=6,f=s;break;case t.image_compression.SLOW:A=9,f=u}e=n(e,i,c,f);var h=Object(r.b)(e,{level:A});return t.__addimage__.arrayBufferToBinaryString(h)},n=function(t,e,n,r){for(var i,o,a,s=t.length/e,u=new Uint8Array(t.length+s),c=l(),f=0;f<s;f+=1){if(a=f*e,i=t.subarray(a,a+e),r)u.set(r(i,n,o),a+f);else{for(var h,p=c.length,d=[];h<p;h+=1)d[h]=c[h](i,n,o);var g=A(d.concat());u.set(d[g],a+f)}o=i}return u},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},o=function(t,e){var n,r=[],i=t.length;r[0]=1;for(var o=0;o<i;o+=1)n=t[o-e]||0,r[o+1]=t[o]-n+256&255;return r},a=function(t,e,n){var r,i=[],o=t.length;i[0]=2;for(var a=0;a<o;a+=1)r=n&&n[a]||0,i[a+1]=t[a]-r+256&255;return i},s=function(t,e,n){var r,i,o=[],a=t.length;o[0]=3;for(var s=0;s<a;s+=1)r=t[s-e]||0,i=n&&n[s]||0,o[s+1]=t[s]+256-(r+i>>>1)&255;return o},u=function(t,e,n){var r,i,o,a,s=[],u=t.length;s[0]=4;for(var l=0;l<u;l+=1)r=t[l-e]||0,i=n&&n[l]||0,o=n&&n[l-e]||0,a=c(r,i,o),s[l+1]=t[l]-a+256&255;return s},c=function(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),o=Math.abs(t+e-n-n);return r<=i&&r<=o?t:i<=o?e:n},l=function(){return[i,o,a,s,u]},A=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,i,o,a){var s,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B=this.decode.FLATE_DECODE,x="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(c=new Vt(n)).imgData,u=c.bits,s=c.colorSpace,A=c.colors,-1!==[4,6].indexOf(c.colorType)){if(8===c.bits){d=(p=32==c.pixelBitlength?new Uint32Array(c.decodePixels().buffer):16==c.pixelBitlength?new Uint16Array(c.decodePixels().buffer):new Uint8Array(c.decodePixels().buffer)).length,m=new Uint8Array(d*c.colors),g=new Uint8Array(d);var N,_=c.pixelBitlength-c.bits;for(y=0,b=0;y<d;y++){for(w=p[y],N=0;N<_;)m[b++]=w>>>N&255,N+=c.bits;g[y]=w>>>N&255}}if(16===c.bits){d=(p=new Uint32Array(c.decodePixels().buffer)).length,m=new Uint8Array(d*(32/c.pixelBitlength)*c.colors),g=new Uint8Array(d*(32/c.pixelBitlength)),v=c.colors>1,y=0,b=0;for(var C=0;y<d;)w=p[y++],m[b++]=w>>>0&255,v&&(m[b++]=w>>>16&255,w=p[y++],m[b++]=w>>>0&255),g[C++]=w>>>16&255;u=8}a!==t.image_compression.NONE&&"function"==typeof r.b?(n=e(m,c.width*c.colors,c.colors,a),h=e(g,c.width,1,a)):(n=m,h=g,B=void 0)}if(3===c.colorType&&(s=this.color_spaces.INDEXED,f=c.palette,c.transparency.indexed)){var S=c.transparency.indexed,E=0;for(y=0,d=S.length;y<d;++y)E+=S[y];if((E/=255)===d-1&&-1!==S.indexOf(0))l=[S.indexOf(0)];else if(E!==d){for(p=c.decodePixels(),g=new Uint8Array(p.length),y=0,d=p.length;y<d;y++)g[y]=S[p[y]];h=e(g,c.width,1)}}var L=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(a);return B===this.decode.FLATE_DECODE&&(x="/Predictor "+L+" "),x+="/Colors "+A+" /BitsPerComponent "+u+" /Columns "+c.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:o,data:n,index:i,filter:B,decodeParameters:x,transparency:l,palette:f,sMask:h,predictor:L,width:c.width,height:c.height,bitsPerComponent:u,colorSpace:s}}}}(P.API),function(t){t.processGIF89A=function(e,n,r,i){var o=new Gt(e),a=o.width,s=o.height,u=[];o.decodeAndBlitFrameRGBA(0,u);var c={data:u,width:a,height:s},l=new Xt(100).encode(c,100);return t.processJPEG.call(this,l,n,r,i)},t.processGIF87A=t.processGIF89A}(P.API),Jt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Jt.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){a.log("bit decode error:"+t)}},Jt.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*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!==n&&(this.pos+=4-n)}},Jt.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,u=15&o,c=this.palette[s];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*i+1>=this.width)break;c=this.palette[u],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}0!==e&&(this.pos+=4-e)}},Jt.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==t&&(this.pos+=4-t)}},Jt.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,u=(o>>10&e)/e*255|0,c=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=u,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=c}this.pos+=t}},Jt.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,u=(a>>5&n)/n*255|0,c=(a>>11)/e*255|0,l=i*this.width*4+4*o;this.data[l]=c,this.data[l+1]=u,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},Jt.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Jt.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},Jt.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,r,i){var o=new Jt(e,!1),a=o.width,s=o.height,u={data:o.getData(),width:a,height:s},c=new Xt(100).encode(u,100);return t.processJPEG.call(this,c,n,r,i)}}(P.API),Yt.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,r,i){var o=new Yt(e,!1),a=o.width,s=o.height,u={data:o.getData(),width:a,height:s},c=new Xt(100).encode(u,100);return t.processJPEG.call(this,c,n,r,i)}}(P.API),P.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Dt=P.API,jt=Dt.getCharWidthsArray=function(t,e){var n,r,i=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),s=e.widths?e.widths:i.metadata.Unicode.widths,u=s.fof?s.fof:1,c=e.kerning?e.kerning:i.metadata.Unicode.kerning,l=c.fof?c.fof:1,A=!1!==e.doKerning,f=0,h=t.length,p=0,d=s[0]||u,g=[];for(n=0;n<h;n++)r=t.charCodeAt(n),"function"==typeof i.metadata.widthOfString?g.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+a*(1e3/o)||0)/1e3):(f=A&&"object"==typeof c[r]&&!isNaN(parseInt(c[r][p],10))?c[r][p]/l:0,g.push((s[r]||d)/u+f)),p=r;return g},zt=Dt.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Dt.processArabic&&(t=Dt.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:jt.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Kt=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var u=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(u,o)),s=0,u=o),s+=e[o],o++;return u!==o&&i.push(t.slice(u,o)),i},qt=function(t,e,n){n||(n={});var r,i,o,a,s,u,c,l=[],A=[l],f=n.textIndent||0,h=0,p=0,d=t.split(" "),g=jt.apply(this,[" ",n])[0];if(u=-1===n.lineIndent?d[0].length+2:n.lineIndent||0){var m=Array(u).join(" "),v=[];d.map((function(t){(t=t.split(/\s*\n/)).length>1?v=v.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):v.push(t[0])})),d=v,u=zt.apply(this,[m,n])}for(o=0,a=d.length;o<a;o++){var w=0;if(r=d[o],u&&"\n"==r[0]&&(r=r.substr(1),w=1),f+h+(p=(i=jt.apply(this,[r,n])).reduce((function(t,e){return t+e}),0))>e||w){if(p>e){for(s=Kt.apply(this,[r,i,e-(f+h),e]),l.push(s.shift()),l=[s.pop()];s.length;)A.push([s.shift()]);p=i.slice(r.length-(l[0]?l[0].length:0)).reduce((function(t,e){return t+e}),0)}else l=[r];A.push(l),f=p+u,h=g}else l.push(r),f+=h+p,h=g}return c=u?function(t,e){return(e?m:"")+t.join(" ")}:function(t){return t.join(" ")},A.map(c)},Dt.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,u,c=[];for(s=0,u=r.length;s<u;s++)c=c.concat(qt.apply(this,[r[s],a,o]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},i=0;i<e.length;i++)n[e[i]]="0123456789abcdef"[i],r["0123456789abcdef"[i]]=e[i];var o=function(t){return"0x"+parseInt(t,10).toString(16)},a=t.__fontmetrics__.compress=function(t){var e,n,i,s,u=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=o(c).slice(2)).slice(0,-1)+r[n.slice(-1)]),"number"==typeof e)e<0?(i=o(e).slice(3),s="-"):(i=o(e).slice(2),s=""),i=s+i.slice(0,-1)+r[i.slice(-1)];else{if("object"!=typeof e)throw new Error("Don't know what to do with value type "+typeof e+".");i=a(e)}u.push(n+i)}return u.push("}"),u.join("")},s=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,o,a={},s=1,u=a,c=[],l="",A="",f=t.length-1,h=1;h<f;h+=1)"'"==(o=t[h])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(o):"{"==o?(c.push([u,i]),u={},i=void 0):"}"==o?((r=c.pop())[0][r[1]]=u,i=void 0,u=r[0]):"-"==o?s=-1:void 0===i?n.hasOwnProperty(o)?(l+=n[o],i=parseInt(l,16)*s,s=1,l=""):l+=o:n.hasOwnProperty(o)?(A+=n[o],u[i]=parseInt(A,16)*s,s=1,i=void 0,A=""):A+=o;return a},u={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:u,"Courier-Bold":u,"Courier-BoldOblique":u,"Courier-Oblique":u,Helvetica:u,"Helvetica-Bold":u,"Helvetica-BoldOblique":u,"Helvetica-Oblique":u,"Times-Roman":u,"Times-Bold":u,"Times-BoldItalic":u,"Times-Italic":u}},l={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'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":s("{'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:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'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:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'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":s("{'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:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'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":s("{'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":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=l.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var r=c.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(P.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,o=n.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(r=!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(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(l(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(P),function(t){function e(){return(i.canvg?Promise.resolve(i.canvg):n.e(2).then(n.bind(null,111))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}P.API.addSvgAsImage=function(t,n,r,i,o,s,u,c){if(isNaN(n)||isNaN(r))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw a.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=i,l.height=o;var A=l.getContext("2d");A.fillStyle="#fff",A.fillRect(0,0,l.width,l.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return e().then((function(e){return e.fromString(A,t,f)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(f)})).then((function(){h.addImage(l.toDataURL("image/jpeg",1),n,r,i,o,u,c)}))}}(),P.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},P.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,i,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),u=[],c=0,l=0,A=0;function f(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var h=s.length;for(A=0;A<h;A+=1)n[s[A]].value=n[s[A]].defaultValue,n[s[A]].explicitSet=!1}if("object"==typeof t)for(i in t)if(o=t[i],f(s,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&f(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(c=0;c<o.length;c+=1)if(r=!0,1===o[c].length&&"number"==typeof o[c][0])u.push(String(o[c]-1));else if(o[c].length>1){for(l=0;l<o[c].length;l+=1)"number"!=typeof o[c][l]&&(r=!1);!0===r&&u.push([o[c][0]-1,o[c][1]-1].join(" "))}n[i].value="["+u.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(P.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},r=function(t){var e,n,r,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",r=[],a=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;a<s;a++)e=n[a],r.length>=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream,s=e.pdfEscapeWithNeededParanthesis;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var u=n.metadata.Unicode.widths,c=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),l="",A=0;A<c.length;A++)l+=String.fromCharCode(c[A]);var f=o();a({data:l,addLength1:!0,objectId:f}),i("endobj");var h=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var p=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+s(n.fontName)),i("/FontFile2 "+f+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var d=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+s(n.fontName)),i("/FontDescriptor "+p+" 0 R"),i("/W "+t.API.PDFObject.convert(u)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+h+" 0 R"),i("/BaseFont /"+s(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+d+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,o=e.newObject,a=e.putStream,s=e.pdfEscapeWithNeededParanthesis;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var u=n.metadata.rawData,c="",l=0;l<u.length;l++)c+=String.fromCharCode(u[l]);var A=o();a({data:c,addLength1:!0,objectId:A}),i("endobj");var f=o();a({data:r(n.metadata.toUnicode),addLength1:!0,objectId:f}),i("endobj");var h=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+A+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+s(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+f+" 0 R/BaseFont/"+s(n.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},u=s.pdfEscape,c=s.activeFontKey,l=s.fonts,A=c,f="",h=0,p="",d=l[A].encoding;if("Identity-H"!==l[A].encoding)return{text:r,x:i,y:o,options:a,mutex:s};for(p=r,A=c,Array.isArray(r)&&(p=r[0]),h=0;h<p.length;h+=1)l[A].metadata.hasOwnProperty("cmap")&&(e=l[A].metadata.cmap.unicode.codeMap[p[h].charCodeAt(0)]),e||p[h].charCodeAt(0)<256&&l[A].metadata.hasOwnProperty("Unicode")?f+=p[h]:f+="";var g="";return parseInt(A.slice(1))<14||"WinAnsiEncoding"===d?g=u(f,A).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===d&&(g=n(f,l[A])),s.isHex=!0,{text:g,x:i,y:o,options:a,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var o=0;for(o=0;o<e.length;o+=1)Array.isArray(e[o])&&3===e[o].length?n.push([i(Object.assign({},r,{text:e[o][0]})).text,e[o][1],e[o][2]]):n.push(i(Object.assign({},r,{text:e[o]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(P),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(P.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,u,c=e,l=[[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]],A=[[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]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},h={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],d=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,m=0;this.__bidiEngine__={};var v=function(t){var e=t.charCodeAt(),n=e>>8,r=h[n];return void 0!==r?c[256*r+(255&e)]:252===n||253===n?"AL":d.test(n)?"L":8===n?"R":"N"},w=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=v(t.charAt(n))))return!1;if("R"===e)return!0}return!1},y=function(t,e,a,s){var u,c,l,A,f=e[s];switch(f){case"L":case"R":g=!1;break;case"N":case"AN":break;case"EN":g&&(f="AN");break;case"AL":g=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(u=a[s-1])&&"AN"!==u||"EN"!==(c=e[s+1])&&"AN"!==c?f="N":g&&(c="AN"),f=c===u?c:"N";break;case"ES":f="EN"===(u=s>0?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===a[s-1]){f="EN";break}if(g){f="N";break}for(l=s+1,A=e.length;l<A&&"ET"===e[l];)l++;f=l<A&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!o){for(A=e.length,l=s+1;l<A&&"NSM"===e[l];)l++;if(l<A){var h=t[s],p=h>=1425&&h<=2303||64286===h;if(u=e[l],p&&("R"===u||"AL"===u)){f="R";break}}}f=s<1||"B"===(u=e[s-1])?"N":a[s-1];break;case"B":g=!1,n=!0,f=m;break;case"S":r=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"BN":f="N"}return f},b=function(t,e,n){var r=t.split("");return n&&B(r,n,{hiLevel:m}),r.reverse(),e&&e.reverse(),r.join("")},B=function(t,e,i){var o,a,s,u,c,h=-1,p=t.length,d=0,w=[],b=m?A:l,B=[];for(g=!1,n=!1,r=!1,a=0;a<p;a++)B[a]=v(t[a]);for(s=0;s<p;s++){if(c=d,w[s]=y(t,B,w,s),o=240&(d=b[c][f[w[s]]]),d&=15,e[s]=u=b[d][5],o>0)if(16===o){for(a=h;a<s;a++)e[a]=1;h=-1}else h=-1;if(b[d][6])-1===h&&(h=s);else if(h>-1){for(a=h;a<s;a++)e[a]=u;h=-1}"B"===B[s]&&(e[s]=0),i.hiLevel|=u}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=m;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=m}}(B,e,p)},x=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===m&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,u,c,l=e.length,A=0;A<l;){if(i[A]>=t){for(u=A+1;u<l&&i[u]>=t;)u++;for(c=A,s=u-1;c<s;c++,s--)a=e[c],e[c]=e[s],e[s]=a,r&&(a=r[c],r[c]=r[s],r[s]=a);A=u}A++}}},N=function(t,e,n){var r=t.split(""),i={hiLevel:m};return n||(n=[]),B(r,n,i),function(t,e,n){if(0!==n.hiLevel&&u)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=p.indexOf(t[i]))>=0&&(t[i]=p[r+1])}(r,n,i),x(2,r,e,n,i),x(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=w(t)),void 0===s&&(s=w(t))}(t,e),i||!a||s)if(i&&a&&o^s)m=o?1:0,t=b(t,e,n);else if(!i&&a&&s)m=o?1:0,t=N(t,e,n),t=b(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=b(t,e),o?(m=0,t=N(t,e,n)):(m=1,t=N(t,e,n),t=b(t,e));else if(i&&o&&!a&&s)m=1,t=N(t,e,n),t=b(t,e);else if(!i&&!a&&o^s){var r=u;o?(m=1,t=N(t,e,n),m=0,u=!1,t=N(t,e,n),u=r):(m=0,t=N(t,e,n),t=b(t,e),m=1,u=!1,t=N(t,e,n),u=r,t=b(t,e))}}else m=0,t=N(t,e,n);else m=o?1:0,t=N(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,u=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([n.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([n.doBidiReorder(e[o])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(P),P.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Zt(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new ve(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new te(this.contents),this.head=new re(this),this.name=new le(this),this.cmap=new oe(this),this.toUnicode={},this.hhea=new ae(this),this.maxp=new Ae(this),this.hmtx=new fe(this),this.post=new ue(this),this.os2=new se(this),this.loca=new me(this),this.glyf=new pe(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(e=r>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,a;for(o=0,i=0,a=(t=""+t).length;0<=a?i<a:i>a;i=0<=a?++i:--i)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var $t,Zt=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),te=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,o,a,s,u,c,l,A,f,h,p;for(p in f=Object.keys(e).length,s=Math.log(2),l=16*Math.floor(Math.log(f)/s),o=Math.floor(l/s),c=16*f-l,(r=new Zt).writeInt(this.scalarType),r.writeShort(f),r.writeShort(l),r.writeShort(o),r.writeShort(c),i=16*f,u=r.pos+i,a=null,h=[],e)for(A=e[p],r.writeString(p),r.writeInt(t(A)),r.writeInt(u),r.writeInt(A.length),h=h.concat(A),"head"===p&&(a=u),u+=A.length;u%4;)h.push(0),u++;return r.write(h),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=he.call(t);t.length%4;)t.push(0);for(r=new Zt(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),ee={}.hasOwnProperty,ne=function(t,e){for(var n in e)ee.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};$t=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var re=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new Zt).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),ie=function(){function t(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,g,m,v;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),A=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:e>A;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:e>A;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:e>A;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:e>A;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=g=0,v=i.length;g<v;s=++g)for(d=i[s],n=m=h=p[s];h<=d?m<=d:m>=d;n=h<=d?++m:--m)0===c[s]?o=n+u[s]:0!==(o=a[c[s]/2+(n-h)-(A-s)]||0)&&(o+=u[s]),this.codeMap[n]=65535&o}t.pos=l}return t.encode=function(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F,k,U,Q,I,P,O,T,M,H,R,D,j,z,K,q,V,G;switch(L=new Zt,o=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(p=0,d=function(){var t=[];for(h=0;h<256;++h)t.push(0);return t}(),m={0:0},i={},F=0,I=o.length;F<I;F++)null==m[K=t[r=o[F]]]&&(m[K]=++p),i[r]={old:t[r],new:m[t[r]]},d[r]=m[t[r]];return L.writeUInt16(1),L.writeUInt16(0),L.writeUInt32(12),L.writeUInt16(0),L.writeUInt16(262),L.writeUInt16(0),L.write(d),{charMap:i,subtable:L.data,maxGlyphID:p+1};case"unicode":for(S=[],l=[],v=0,m={},n={},g=u=null,k=0,P=o.length;k<P;k++)null==m[y=t[r=o[k]]]&&(m[y]=++v),n[r]={old:y,new:m[y]},a=m[y]-r,null!=g&&a===u||(g&&l.push(g),S.push(r),u=a),g=r;for(g&&l.push(g),l.push(65535),S.push(65535),_=2*(N=S.length),x=2*Math.pow(Math.log(N)/Math.LN2,2),A=Math.log(x/2)/Math.LN2,B=2*N-x,s=[],b=[],f=[],h=U=0,O=S.length;U<O;h=++U){if(C=S[h],c=l[h],65535===C){s.push(0),b.push(0);break}if(C-(E=n[C].new)>=32768)for(s.push(0),b.push(2*(f.length+N-h)),r=Q=C;C<=c?Q<=c:Q>=c;r=C<=c?++Q:--Q)f.push(n[r].new);else s.push(E-C),b.push(0)}for(L.writeUInt16(3),L.writeUInt16(1),L.writeUInt32(12),L.writeUInt16(4),L.writeUInt16(16+8*N+2*f.length),L.writeUInt16(0),L.writeUInt16(_),L.writeUInt16(x),L.writeUInt16(A),L.writeUInt16(B),j=0,T=l.length;j<T;j++)r=l[j],L.writeUInt16(r);for(L.writeUInt16(0),z=0,M=S.length;z<M;z++)r=S[z],L.writeUInt16(r);for(q=0,H=s.length;q<H;q++)a=s[q],L.writeUInt16(a);for(V=0,R=b.length;V<R;V++)w=b[V],L.writeUInt16(w);for(G=0,D=f.length;G<D;G++)p=f[G],L.writeUInt16(p);return{charMap:n,subtable:L.data,maxGlyphID:v+1}}},t}(),oe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new ie(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=ie.encode(t,e),(r=new Zt).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),ae=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),se=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),ue=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),ce=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},le=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,u,c,l,A;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=c=0,l=n.length;c<l;i=++c)r=n[i],t.pos=r.offset,u=t.readString(r.length),o=new ce(u,r),null==s[A=r.nameID]&&(s[A]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),Ae=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),fe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=o=0;0<=r?o<r:o>r;e=0<=r?++o:--o)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),he=[].slice,pe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,u,c,l;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new Zt(e.read(r))).readShort(),u=a.readShort(),l=a.readShort(),s=a.readShort(),c=a.readShort(),this.cache[t]=-1===o?new ge(a,u,l,s,c):new de(a,o,u,l,s,c),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),de=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),ge=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;a=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new Zt(he.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),me=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ne(e,$t),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;s>0&&(r+=s)}for(var u=new Array(4*n.length),c=0;c<n.length;++c)u[4*c+3]=255&n[c],u[4*c+2]=(65280&n[c])>>8,u[4*c+1]=(16711680&n[c])>>16,u[4*c]=(4278190080&n[c])>>24;return u},e}(),ve=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,g;for(r in n=oe.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},g=n.charMap)f[(s=g[r]).old]=s.new;for(h in A=n.maxGlyphID,o)h in f||(f[h]=A++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),l=Object.keys(c).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=l.length;t<e;t++)a=l[t],n.push(c[a]);return n}(),i=this.font.glyf.encode(o,p,f),u=this.font.loca.encode(i.offsets,p),d={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(e)},this.font.os2.exists&&(d["OS/2"]=this.font.os2.raw()),this.font.directory.encode(d)},t}();P.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var t,i,o;for(o=[],t=0,i=n.length;t<i;t++)r=n[t],o.push(e.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")}return""+n},e}()}).call(this,n(29))},function(t,e,n){"use strict";t.exports=n(106)},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,A=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):A=-1,c.length&&h())}function h(){if(!l){var t=s(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++A<e;)u&&u[A].run();A=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new p(t,e)),1!==c.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=d,i.addListener=d,i.once=d,i.off=d,i.removeListener=d,i.removeAllListeners=d,i.emit=d,i.prependListener=d,i.prependOnceListener=d,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(k){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(t,e,n){var r=A;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return F()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===A)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?p:f,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(k){return{type:"throw",arg:k}}}t.wrap=c;var A="suspendedStart",f="suspendedYield",h="executing",p="completed",d={};function g(){}function m(){}function v(){}var w={};w[o]=function(){return this};var y=Object.getPrototypeOf,b=y&&y(y(L([])));b&&b!==n&&r.call(b,o)&&(w=b);var B=v.prototype=g.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,A=c.value;return A&&"object"===typeof A&&r.call(A,"__await")?e.resolve(A.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(A).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function _(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,_(t,n),"throw"===n.method))return d;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,d;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,d):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t){var n=t[o];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:F}}function F(){return{value:e,done:!0}}return m.prototype=B.constructor=v,v.constructor=m,m.displayName=u(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,s,"GeneratorFunction")),t.prototype=Object.create(B),t},t.awrap=function(t){return{__await:t}},x(N.prototype),N.prototype[a]=function(){return this},t.AsyncIterator=N,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new N(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(B),u(B,s,"Generator"),B[o]=function(){return this},B.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=L,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},,,,,function(t,e,n){"use strict";var r=n(22),i=60103,o=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var a=60109,s=60110,u=60112;e.Suspense=60113;var c=60115,l=60116;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;i=A("react.element"),o=A("react.portal"),e.Fragment=A("react.fragment"),e.StrictMode=A("react.strict_mode"),e.Profiler=A("react.profiler"),a=A("react.provider"),s=A("react.context"),u=A("react.forward_ref"),e.Suspense=A("react.suspense"),c=A("react.memo"),l=A("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function h(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},d={};function g(t,e,n){this.props=t,this.context=e,this.refs=d,this.updater=n||p}function m(){}function v(t,e,n){this.props=t,this.context=e,this.refs=d,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(h(85));this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var w=v.prototype=new m;w.constructor=v,r(w,g.prototype),w.isPureReactComponent=!0;var y={current:null},b=Object.prototype.hasOwnProperty,B={key:!0,ref:!0,__self:!0,__source:!0};function x(t,e,n){var r,o={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)b.call(e,r)&&!B.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:t,key:a,ref:s,props:o,_owner:y.current}}function N(t){return"object"===typeof t&&null!==t&&t.$$typeof===i}var _=/\/+/g;function C(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function S(t,e,n,r,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=t),t=""===r?"."+C(u,0):r,Array.isArray(a)?(n="",null!=t&&(n=t.replace(_,"$&/")+"/"),S(a,e,n,"",(function(t){return t}))):null!=a&&(N(a)&&(a=function(t,e){return{$$typeof:i,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+t)),e.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c<t.length;c++){var l=r+C(s=t[c],c);u+=S(s,e,n,l,a)}else if("function"===typeof(l=function(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=f&&t[f]||t["@@iterator"])?t:null}(t)))for(t=l.call(t),c=0;!(s=t.next()).done;)u+=S(s=s.value,e,n,l=r+C(s,c++),a);else if("object"===s)throw e=""+t,Error(h(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e));return u}function E(t,e,n){if(null==t)return t;var r=[],i=0;return S(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function L(t){if(-1===t._status){var e=t._result;e=e(),t._status=0,t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}if(1===t._status)return t._result;throw t._result}var F={current:null};function k(){var t=F.current;if(null===t)throw Error(h(321));return t}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:E,forEach:function(t,e,n){E(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return E(t,(function(){e++})),e},toArray:function(t){return E(t,(function(t){return t}))||[]},only:function(t){if(!N(t))throw Error(h(143));return t}},e.Component=g,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(h(267,t));var o=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=y.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(l in e)b.call(e,l)&&!B.hasOwnProperty(l)&&(o[l]=void 0===e[l]&&void 0!==c?c[l]:e[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){c=Array(l);for(var A=0;A<l;A++)c[A]=arguments[A+2];o.children=c}return{$$typeof:i,type:t.type,key:a,ref:s,props:o,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:s,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:t},t.Consumer=t},e.createElement=x,e.createFactory=function(t){var e=x.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:u,render:t}},e.isValidElement=N,e.lazy=function(t){return{$$typeof:l,_payload:{_status:-1,_result:t},_init:L}},e.memo=function(t,e){return{$$typeof:c,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return k().useCallback(t,e)},e.useContext=function(t,e){return k().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return k().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return k().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return k().useLayoutEffect(t,e)},e.useMemo=function(t,e){return k().useMemo(t,e)},e.useReducer=function(t,e,n){return k().useReducer(t,e,n)},e.useRef=function(t){return k().useRef(t)},e.useState=function(t){return k().useState(t)},e.version="17.0.2"},function(t,e,n){"use strict";var r=n(3),i=n(22),o=n(66);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,u={};function c(t,e){l(t,e),l(t+"Capture",e)}function l(t,e){for(u[t]=e,t=0;t<e.length;t++)s.add(e[t])}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},d={};function g(t,e,n,r,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){m[t]=new g(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];m[e]=new g(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){m[t]=new g(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){m[t]=new g(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){m[t]=new g(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){m[t]=new g(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){m[t]=new g(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){m[t]=new g(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){m[t]=new g(t,5,!1,t.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function w(t){return t[1].toUpperCase()}function y(t,e,n,r){var i=m.hasOwnProperty(e)?m[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null===e||"undefined"===typeof e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(d,t)||!h.call(p,t)&&(f.test(t)?d[t]=!0:(p[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(v,w);m[e]=new g(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(v,w);m[e]=new g(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(v,w);m[e]=new g(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){m[t]=new g(t,1,!1,t.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){m[t]=new g(t,1,!1,t.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=60103,x=60106,N=60107,_=60108,C=60114,S=60109,E=60110,L=60112,F=60113,k=60120,U=60115,Q=60116,I=60121,P=60128,O=60129,T=60130,M=60131;if("function"===typeof Symbol&&Symbol.for){var H=Symbol.for;B=H("react.element"),x=H("react.portal"),N=H("react.fragment"),_=H("react.strict_mode"),C=H("react.profiler"),S=H("react.provider"),E=H("react.context"),L=H("react.forward_ref"),F=H("react.suspense"),k=H("react.suspense_list"),U=H("react.memo"),Q=H("react.lazy"),I=H("react.block"),H("react.scope"),P=H("react.opaque.id"),O=H("react.debug_trace_mode"),T=H("react.offscreen"),M=H("react.legacy_hidden")}var R,D="function"===typeof Symbol&&Symbol.iterator;function j(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=D&&t[D]||t["@@iterator"])?t:null}function z(t){if(void 0===R)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);R=e&&e[1]||""}return"\n"+R+t}var K=!1;function q(t,e){if(!t||K)return"";K=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{K=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?z(t):""}function V(t){switch(t.tag){case 5:return z(t.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return t=q(t.type,!1);case 11:return t=q(t.type.render,!1);case 22:return t=q(t.type._render,!1);case 1:return t=q(t.type,!0);default:return""}}function G(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case N:return"Fragment";case x:return"Portal";case C:return"Profiler";case _:return"StrictMode";case F:return"Suspense";case k:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case E:return(t.displayName||"Context")+".Consumer";case S:return(t._context.displayName||"Context")+".Provider";case L:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case U:return G(t.type);case I:return G(t._render);case Q:e=t._payload,t=t._init;try{return G(t(e))}catch(n){}}return null}function W(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function X(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function J(t){t._valueTracker||(t._valueTracker=function(t){var e=X(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Y(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=X(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function $(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Z(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function tt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=W(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function et(t,e){null!=(e=e.checked)&&y(t,"checked",e,!1)}function nt(t,e){et(t,e);var n=W(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?it(t,e.type,n):e.hasOwnProperty("defaultValue")&&it(t,e.type,W(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function rt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function it(t,e,n){"number"===e&&$(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function ot(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function at(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+W(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function st(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function ut(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:W(n)}}function ct(t,e){var n=W(e.value),r=W(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function lt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var At="http://www.w3.org/1999/xhtml",ft="http://www.w3.org/2000/svg";function ht(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?ht(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var dt,gt,mt=(gt=function(t,e){if(t.namespaceURI!==ft||"innerHTML"in t)t.innerHTML=e;else{for((dt=dt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=dt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return gt(t,e)}))}:gt);function vt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var wt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},yt=["Webkit","ms","Moz","O"];function bt(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||wt.hasOwnProperty(t)&&wt[t]?(""+e).trim():e+"px"}function Bt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=bt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(wt).forEach((function(t){yt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),wt[e]=wt[t]}))}));var xt=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nt(t,e){if(e){if(xt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(a(62))}}function _t(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ct(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var St=null,Et=null,Lt=null;function Ft(t){if(t=ti(t)){if("function"!==typeof St)throw Error(a(280));var e=t.stateNode;e&&(e=ni(e),St(t.stateNode,t.type,e))}}function kt(t){Et?Lt?Lt.push(t):Lt=[t]:Et=t}function Ut(){if(Et){var t=Et,e=Lt;if(Lt=Et=null,Ft(t),e)for(t=0;t<e.length;t++)Ft(e[t])}}function Qt(t,e){return t(e)}function It(t,e,n,r,i){return t(e,n,r,i)}function Pt(){}var Ot=Qt,Tt=!1,Mt=!1;function Ht(){null===Et&&null===Lt||(Pt(),Ut())}function Rt(t,e){var n=t.stateNode;if(null===n)return null;var r=ni(n);if(null===r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(a(231,e,typeof n));return n}var Dt=!1;if(A)try{var jt={};Object.defineProperty(jt,"passive",{get:function(){Dt=!0}}),window.addEventListener("test",jt,jt),window.removeEventListener("test",jt,jt)}catch(gt){Dt=!1}function zt(t,e,n,r,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(l){this.onError(l)}}var Kt=!1,qt=null,Vt=!1,Gt=null,Wt={onError:function(t){Kt=!0,qt=t}};function Xt(t,e,n,r,i,o,a,s,u){Kt=!1,qt=null,zt.apply(Wt,arguments)}function Jt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Yt(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function $t(t){if(Jt(t)!==t)throw Error(a(188))}function Zt(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Jt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return $t(i),t;if(o===r)return $t(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function te(t,e){for(var n=t.alternate;null!==e;){if(e===t||e===n)return!0;e=e.return}return!1}var ee,ne,re,ie,oe=!1,ae=[],se=null,ue=null,ce=null,le=new Map,Ae=new Map,fe=[],he="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pe(t,e,n,r,i){return{blockedOn:t,domEventName:e,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function de(t,e){switch(t){case"focusin":case"focusout":se=null;break;case"dragenter":case"dragleave":ue=null;break;case"mouseover":case"mouseout":ce=null;break;case"pointerover":case"pointerout":le.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ae.delete(e.pointerId)}}function ge(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=pe(e,n,r,i,o),null!==e&&(null!==(e=ti(e))&&ne(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,null!==i&&-1===e.indexOf(i)&&e.push(i),t)}function me(t){var e=Zr(t.target);if(null!==e){var n=Jt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=Yt(n)))return t.blockedOn=e,void ie(t.lanePriority,(function(){o.unstable_runWithPriority(t.priority,(function(){re(n)}))}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function ve(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ze(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=ti(n))&&ne(e),t.blockedOn=n,!1;e.shift()}return!0}function we(t,e,n){ve(t)&&n.delete(e)}function ye(){for(oe=!1;0<ae.length;){var t=ae[0];if(null!==t.blockedOn){null!==(t=ti(t.blockedOn))&&ee(t);break}for(var e=t.targetContainers;0<e.length;){var n=Ze(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n){t.blockedOn=n;break}e.shift()}null===t.blockedOn&&ae.shift()}null!==se&&ve(se)&&(se=null),null!==ue&&ve(ue)&&(ue=null),null!==ce&&ve(ce)&&(ce=null),le.forEach(we),Ae.forEach(we)}function be(t,e){t.blockedOn===e&&(t.blockedOn=null,oe||(oe=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,ye)))}function Be(t){function e(e){return be(e,t)}if(0<ae.length){be(ae[0],t);for(var n=1;n<ae.length;n++){var r=ae[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==se&&be(se,t),null!==ue&&be(ue,t),null!==ce&&be(ce,t),le.forEach(e),Ae.forEach(e),n=0;n<fe.length;n++)(r=fe[n]).blockedOn===t&&(r.blockedOn=null);for(;0<fe.length&&null===(n=fe[0]).blockedOn;)me(n),null===n.blockedOn&&fe.shift()}function xe(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ne={animationend:xe("Animation","AnimationEnd"),animationiteration:xe("Animation","AnimationIteration"),animationstart:xe("Animation","AnimationStart"),transitionend:xe("Transition","TransitionEnd")},_e={},Ce={};function Se(t){if(_e[t])return _e[t];if(!Ne[t])return t;var e,n=Ne[t];for(e in n)if(n.hasOwnProperty(e)&&e in Ce)return _e[t]=n[e];return t}A&&(Ce=document.createElement("div").style,"AnimationEvent"in window||(delete Ne.animationend.animation,delete Ne.animationiteration.animation,delete Ne.animationstart.animation),"TransitionEvent"in window||delete Ne.transitionend.transition);var Ee=Se("animationend"),Le=Se("animationiteration"),Fe=Se("animationstart"),ke=Se("transitionend"),Ue=new Map,Qe=new Map,Ie=["abort","abort",Ee,"animationEnd",Le,"animationIteration",Fe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",ke,"transitionEnd","waiting","waiting"];function Pe(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Qe.set(r,e),Ue.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Oe=8;function Te(t){if(0!==(1&t))return Oe=15,1;if(0!==(2&t))return Oe=14,2;if(0!==(4&t))return Oe=13,4;var e=24&t;return 0!==e?(Oe=12,e):0!==(32&t)?(Oe=11,32):0!==(e=192&t)?(Oe=10,e):0!==(256&t)?(Oe=9,256):0!==(e=3584&t)?(Oe=8,e):0!==(4096&t)?(Oe=7,4096):0!==(e=4186112&t)?(Oe=6,e):0!==(e=62914560&t)?(Oe=5,e):67108864&t?(Oe=4,67108864):0!==(134217728&t)?(Oe=3,134217728):0!==(e=805306368&t)?(Oe=2,e):0!==(1073741824&t)?(Oe=1,1073741824):(Oe=8,t)}function Me(t,e){var n=t.pendingLanes;if(0===n)return Oe=0;var r=0,i=0,o=t.expiredLanes,a=t.suspendedLanes,s=t.pingedLanes;if(0!==o)r=o,i=Oe=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Te(u),i=Oe):0!==(s&=o)&&(r=Te(s),i=Oe)}else 0!==(o=n&~a)?(r=Te(o),i=Oe):0!==s&&(r=Te(s),i=Oe);if(0===r)return 0;if(r=n&((0>(r=31-Ke(r))?0:1<<r)<<1)-1,0!==e&&e!==r&&0===(e&a)){if(Te(e),i<=Oe)return e;Oe=i}if(0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0<e;)i=1<<(n=31-Ke(e)),r|=t[n],e&=~i;return r}function He(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function Re(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return 0===(t=De(24&~e))?Re(10,e):t;case 10:return 0===(t=De(192&~e))?Re(8,e):t;case 8:return 0===(t=De(3584&~e))&&(0===(t=De(4186112&~e))&&(t=512)),t;case 2:return 0===(e=De(805306368&~e))&&(e=268435456),e}throw Error(a(358,t))}function De(t){return t&-t}function je(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ze(t,e,n){t.pendingLanes|=e;var r=e-1;t.suspendedLanes&=r,t.pingedLanes&=r,(t=t.eventTimes)[e=31-Ke(e)]=n}var Ke=Math.clz32?Math.clz32:function(t){return 0===t?32:31-(qe(t)/Ve|0)|0},qe=Math.log,Ve=Math.LN2;var Ge=o.unstable_UserBlockingPriority,We=o.unstable_runWithPriority,Xe=!0;function Je(t,e,n,r){Tt||Pt();var i=$e,o=Tt;Tt=!0;try{It(i,t,e,n,r)}finally{(Tt=o)||Ht()}}function Ye(t,e,n,r){We(Ge,$e.bind(null,t,e,n,r))}function $e(t,e,n,r){var i;if(Xe)if((i=0===(4&e))&&0<ae.length&&-1<he.indexOf(t))t=pe(null,t,e,n,r),ae.push(t);else{var o=Ze(t,e,n,r);if(null===o)i&&de(t,r);else{if(i){if(-1<he.indexOf(t))return t=pe(o,t,e,n,r),void ae.push(t);if(function(t,e,n,r,i){switch(e){case"focusin":return se=ge(se,t,e,n,r,i),!0;case"dragenter":return ue=ge(ue,t,e,n,r,i),!0;case"mouseover":return ce=ge(ce,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return le.set(o,ge(le.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ae.set(o,ge(Ae.get(o)||null,t,e,n,r,i)),!0}return!1}(o,t,e,n,r))return;de(t,r)}Ur(t,e,r,null,n)}}}function Ze(t,e,n,r){var i=Ct(r);if(null!==(i=Zr(i))){var o=Jt(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Yt(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Ur(t,e,r,i,n),null}var tn=null,en=null,nn=null;function rn(){if(nn)return nn;var t,e,n=en,r=n.length,i="value"in tn?tn.value:tn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return nn=i.slice(t,1<e?1-e:void 0)}function on(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function an(){return!0}function sn(){return!1}function un(t){function e(e,n,r,i,o){for(var a in this._reactName=e,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,t)t.hasOwnProperty(a)&&(e=t[a],this[a]=e?e(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:sn,this.isPropagationStopped=sn,this}return i(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),e}var cn,ln,An,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=un(fn),pn=i({},fn,{view:0,detail:0}),dn=un(pn),gn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==An&&(An&&"mousemove"===t.type?(cn=t.screenX-An.screenX,ln=t.screenY-An.screenY):ln=cn=0,An=t),cn)},movementY:function(t){return"movementY"in t?t.movementY:ln}}),mn=un(gn),vn=un(i({},gn,{dataTransfer:0})),wn=un(i({},pn,{relatedTarget:0})),yn=un(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=un(i({},fn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}})),Bn=un(i({},fn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=_n[t])&&!!e[t]}function Sn(){return Cn}var En=un(i({},pn,{key:function(t){if(t.key){var e=xn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=on(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Nn[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(t){return"keypress"===t.type?on(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?on(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}})),Ln=un(i({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fn=un(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),kn=un(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=un(i({},gn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0})),Qn=[9,13,27,32],In=A&&"CompositionEvent"in window,Pn=null;A&&"documentMode"in document&&(Pn=document.documentMode);var On=A&&"TextEvent"in window&&!Pn,Tn=A&&(!In||Pn&&8<Pn&&11>=Pn),Mn=String.fromCharCode(32),Hn=!1;function Rn(t,e){switch(t){case"keyup":return-1!==Qn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dn(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var jn=!1;var zn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!zn[t.type]:"textarea"===e}function qn(t,e,n,r){kt(r),0<(e=Ir(e,"onChange")).length&&(n=new hn("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Vn=null,Gn=null;function Wn(t){Cr(t,0)}function Xn(t){if(Y(ei(t)))return t}function Jn(t,e){if("change"===t)return e}var Yn=!1;if(A){var $n;if(A){var Zn="oninput"in document;if(!Zn){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),Zn="function"===typeof tr.oninput}$n=Zn}else $n=!1;Yn=$n&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(t){if("value"===t.propertyName&&Xn(Gn)){var e=[];if(qn(e,Gn,t,Ct(t)),t=Wn,Tt)t(e);else{Tt=!0;try{Qt(t,e)}finally{Tt=!1,Ht()}}}}function rr(t,e,n){"focusin"===t?(er(),Gn=n,(Vn=e).attachEvent("onpropertychange",nr)):"focusout"===t&&er()}function ir(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Xn(Gn)}function or(t,e){if("click"===t)return Xn(e)}function ar(t,e){if("input"===t||"change"===t)return Xn(e)}var sr="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},ur=Object.prototype.hasOwnProperty;function cr(t,e){if(sr(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ur.call(e,n[r])||!sr(t[n[r]],e[n[r]]))return!1;return!0}function lr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ar(t,e){var n,r=lr(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=lr(r)}}function fr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?fr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function hr(){for(var t=window,e=$();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=$((t=e.contentWindow).document)}return e}function pr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var dr=A&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=null,wr=!1;function yr(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==gr||gr!==$(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&cr(vr,r)||(vr=r,0<(r=Ir(mr,"onSelect")).length&&(e=new hn("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=gr)))}Pe("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Pe("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Pe(Ie,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Br=0;Br<br.length;Br++)Qe.set(br[Br],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function _r(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,r,i,o,s,u,c){if(Xt.apply(this,arguments),Kt){if(!Kt)throw Error(a(198));var l=qt;Kt=!1,qt=null,Vt||(Vt=!0,Gt=l)}}(r,e,void 0,t),t.currentTarget=null}function Cr(t,e){e=0!==(4&e);for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;t:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break t;_r(i,s,c),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break t;_r(i,s,c),o=u}}}if(Vt)throw t=Gt,Vt=!1,Gt=null,t}function Sr(t,e){var n=ri(e),r=t+"__bubble";n.has(r)||(kr(e,t,2,!1),n.add(r))}var Er="_reactListening"+Math.random().toString(36).slice(2);function Lr(t){t[Er]||(t[Er]=!0,s.forEach((function(e){Nr.has(e)||Fr(e,!1,t,null),Fr(e,!0,t,null)})))}function Fr(t,e,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===t&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!e&&Nr.has(t)){if("scroll"!==t)return;i|=2,o=r}var a=ri(o),s=t+"__"+(e?"capture":"bubble");a.has(s)||(e&&(i|=4),kr(o,t,i,e),a.add(s))}function kr(t,e,n,r){var i=Qe.get(e);switch(void 0===i?2:i){case 0:i=Je;break;case 1:i=Ye;break;default:i=$e}n=i.bind(null,e,n,t),i=void 0,!Dt||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(i=!0),r?void 0!==i?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):void 0!==i?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Ur(t,e,n,r,i){var o=r;if(0===(1&e)&&0===(2&e)&&null!==r)t:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Zr(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue t}s=s.parentNode}}r=r.return}!function(t,e,n){if(Mt)return t(e,n);Mt=!0;try{Ot(t,e,n)}finally{Mt=!1,Ht()}}((function(){var r=o,i=Ct(n),a=[];t:{var s=Ue.get(t);if(void 0!==s){var u=hn,c=t;switch(t){case"keypress":if(0===on(n))break t;case"keydown":case"keyup":u=En;break;case"focusin":c="focus",u=wn;break;case"focusout":c="blur",u=wn;break;case"beforeblur":case"afterblur":u=wn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Fn;break;case Ee:case Le:case Fe:u=yn;break;case ke:u=kn;break;case"scroll":u=dn;break;case"wheel":u=Un;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Ln}var l=0!==(4&e),A=!l&&"scroll"===t,f=l?null!==s?s+"Capture":null:s;l=[];for(var h,p=r;null!==p;){var d=(h=p).stateNode;if(5===h.tag&&null!==d&&(h=d,null!==f&&(null!=(d=Rt(p,f))&&l.push(Qr(p,d,h)))),A)break;p=p.return}0<l.length&&(s=new u(s,c,null,n,i),a.push({event:s,listeners:l}))}}if(0===(7&e)){if(u="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||0!==(16&e)||!(c=n.relatedTarget||n.fromElement)||!Zr(c)&&!c[Yr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Zr(c):null)&&(c!==(A=Jt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=mn,d="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(l=Ln,d="onPointerLeave",f="onPointerEnter",p="pointer"),A=null==u?s:ei(u),h=null==c?s:ei(c),(s=new l(d,p+"leave",u,n,i)).target=A,s.relatedTarget=h,d=null,Zr(i)===r&&((l=new l(f,p+"enter",c,n,i)).target=h,l.relatedTarget=A,d=l),A=d,u&&c)t:{for(f=c,p=0,h=l=u;h;h=Pr(h))p++;for(h=0,d=f;d;d=Pr(d))h++;for(;0<p-h;)l=Pr(l),p--;for(;0<h-p;)f=Pr(f),h--;for(;p--;){if(l===f||null!==f&&l===f.alternate)break t;l=Pr(l),f=Pr(f)}l=null}else l=null;null!==u&&Or(a,s,u,l,!1),null!==c&&null!==A&&Or(a,A,c,l,!0)}if("select"===(u=(s=r?ei(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=Jn;else if(Kn(s))if(Yn)g=ar;else{g=ir;var m=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(t,r))?qn(a,g,n,i):(m&&m(t,s,r),"focusout"===t&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&it(s,"number",s.value)),m=r?ei(r):window,t){case"focusin":(Kn(m)||"true"===m.contentEditable)&&(gr=m,mr=r,vr=null);break;case"focusout":vr=mr=gr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,yr(a,n,i);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":yr(a,n,i)}var v;if(In)t:{switch(t){case"compositionstart":var w="onCompositionStart";break t;case"compositionend":w="onCompositionEnd";break t;case"compositionupdate":w="onCompositionUpdate";break t}w=void 0}else jn?Rn(t,n)&&(w="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(w="onCompositionStart");w&&(Tn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==w?"onCompositionEnd"===w&&jn&&(v=rn()):(en="value"in(tn=i)?tn.value:tn.textContent,jn=!0)),0<(m=Ir(r,w)).length&&(w=new Bn(w,t,null,n,i),a.push({event:w,listeners:m}),v?w.data=v:null!==(v=Dn(n))&&(w.data=v))),(v=On?function(t,e){switch(t){case"compositionend":return Dn(e);case"keypress":return 32!==e.which?null:(Hn=!0,Mn);case"textInput":return(t=e.data)===Mn&&Hn?null:t;default:return null}}(t,n):function(t,e){if(jn)return"compositionend"===t||!In&&Rn(t,e)?(t=rn(),nn=en=tn=null,jn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Tn&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))&&(0<(r=Ir(r,"onBeforeInput")).length&&(i=new Bn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}Cr(a,e)}))}function Qr(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ir(t,e){for(var n=e+"Capture",r=[];null!==t;){var i=t,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Rt(t,n))&&r.unshift(Qr(t,o,i)),null!=(o=Rt(t,e))&&r.push(Qr(t,o,i))),t=t.return}return r}function Pr(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Or(t,e,n,r,i){for(var o=e._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Rt(n,o))&&a.unshift(Qr(n,u,s)):i||null!=(u=Rt(n,o))&&a.push(Qr(n,u,s))),n=n.return}0!==a.length&&t.push({event:e,listeners:a})}function Tr(){}var Mr=null,Hr=null;function Rr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Dr(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var jr="function"===typeof setTimeout?setTimeout:void 0,zr="function"===typeof clearTimeout?clearTimeout:void 0;function Kr(t){1===t.nodeType?t.textContent="":9===t.nodeType&&(null!=(t=t.body)&&(t.textContent=""))}function qr(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Vr(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var Gr=0;var Wr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Wr,Jr="__reactProps$"+Wr,Yr="__reactContainer$"+Wr,$r="__reactEvents$"+Wr;function Zr(t){var e=t[Xr];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Yr]||n[Xr]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Vr(t);null!==t;){if(n=t[Xr])return n;t=Vr(t)}return e}n=(t=n).parentNode}return null}function ti(t){return!(t=t[Xr]||t[Yr])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function ei(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function ni(t){return t[Jr]||null}function ri(t){var e=t[$r];return void 0===e&&(e=t[$r]=new Set),e}var ii=[],oi=-1;function ai(t){return{current:t}}function si(t){0>oi||(t.current=ii[oi],ii[oi]=null,oi--)}function ui(t,e){oi++,ii[oi]=t.current,t.current=e}var ci={},li=ai(ci),Ai=ai(!1),fi=ci;function hi(t,e){var n=t.type.contextTypes;if(!n)return ci;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function pi(t){return null!==(t=t.childContextTypes)&&void 0!==t}function di(){si(Ai),si(li)}function gi(t,e,n){if(li.current!==ci)throw Error(a(168));ui(li,e),ui(Ai,n)}function mi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,G(e)||"Unknown",o));return i({},n,r)}function vi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ci,fi=li.current,ui(li,t),ui(Ai,Ai.current),!0}function wi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=mi(t,e,fi),r.__reactInternalMemoizedMergedChildContext=t,si(Ai),si(li),ui(li,t)):si(Ai),ui(Ai,n)}var yi=null,bi=null,Bi=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,Ni=o.unstable_cancelCallback,_i=o.unstable_shouldYield,Ci=o.unstable_requestPaint,Si=o.unstable_now,Ei=o.unstable_getCurrentPriorityLevel,Li=o.unstable_ImmediatePriority,Fi=o.unstable_UserBlockingPriority,ki=o.unstable_NormalPriority,Ui=o.unstable_LowPriority,Qi=o.unstable_IdlePriority,Ii={},Pi=void 0!==Ci?Ci:function(){},Oi=null,Ti=null,Mi=!1,Hi=Si(),Ri=1e4>Hi?Si:function(){return Si()-Hi};function Di(){switch(Ei()){case Li:return 99;case Fi:return 98;case ki:return 97;case Ui:return 96;case Qi:return 95;default:throw Error(a(332))}}function ji(t){switch(t){case 99:return Li;case 98:return Fi;case 97:return ki;case 96:return Ui;case 95:return Qi;default:throw Error(a(332))}}function zi(t,e){return t=ji(t),Bi(t,e)}function Ki(t,e,n){return t=ji(t),xi(t,e,n)}function qi(){if(null!==Ti){var t=Ti;Ti=null,Ni(t)}Vi()}function Vi(){if(!Mi&&null!==Oi){Mi=!0;var t=0;try{var e=Oi;zi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Oi=null}catch(n){throw null!==Oi&&(Oi=Oi.slice(t+1)),xi(Li,qi),n}finally{Mi=!1}}}var Gi=b.ReactCurrentBatchConfig;function Wi(t,e){if(t&&t.defaultProps){for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}var Xi=ai(null),Ji=null,Yi=null,$i=null;function Zi(){$i=Yi=Ji=null}function to(t){var e=Xi.current;si(Xi),t.type._context._currentValue=e}function eo(t,e){for(;null!==t;){var n=t.alternate;if((t.childLanes&e)===e){if(null===n||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,null!==n&&(n.childLanes|=e);t=t.return}}function no(t,e){Ji=t,$i=Yi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(0!==(t.lanes&e)&&(Ia=!0),t.firstContext=null)}function ro(t,e){if($i!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||($i=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Yi){if(null===Ji)throw Error(a(308));Yi=e,Ji.dependencies={lanes:0,firstContext:e,responders:null}}else Yi=Yi.next=e;return t._currentValue}var io=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ao(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function so(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function uo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function co(t,e){var n=t.updateQueue,r=t.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=e:o=o.next=e}else i=o=e;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function lo(t,e,n,r){var o=t.updateQueue;io=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var c=u,l=c.next;c.next=null,null===s?a=l:s.next=l,s=c;var A=t.alternate;if(null!==A){var f=(A=A.updateQueue).lastBaseUpdate;f!==s&&(null===f?A.firstBaseUpdate=l:f.next=l,A.lastBaseUpdate=c)}}if(null!==a){for(f=o.baseState,s=0,A=l=c=null;;){u=a.lane;var h=a.eventTime;if((r&u)===u){null!==A&&(A=A.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var p=t,d=a;switch(u=e,h=n,d.tag){case 1:if("function"===typeof(p=d.payload)){f=p.call(h,f,u);break t}f=p;break t;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(u="function"===typeof(p=d.payload)?p.call(h,f,u):p)||void 0===u)break t;f=i({},f,u);break t;case 2:io=!0}}null!==a.callback&&(t.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else h={eventTime:h,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===A?(l=A=h,c=f):A=A.next=h,s|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===A&&(c=f),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=A,Ms|=s,t.lanes=s,t.memoizedState=f}}function Ao(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var fo=(new r.Component).refs;function ho(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:i({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var po={isMounted:function(t){return!!(t=t._reactInternals)&&Jt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=cu(),i=lu(t),o=so(r,i);o.payload=e,void 0!==n&&null!==n&&(o.callback=n),uo(t,o),Au(t,i,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=cu(),i=lu(t),o=so(r,i);o.tag=1,o.payload=e,void 0!==n&&null!==n&&(o.callback=n),uo(t,o),Au(t,i,r)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=cu(),r=lu(t),i=so(n,r);i.tag=2,void 0!==e&&null!==e&&(i.callback=e),uo(t,i),Au(t,r,n)}};function go(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!cr(n,r)||!cr(i,o))}function mo(t,e,n){var r=!1,i=ci,o=e.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=pi(e)?fi:li.current,o=(r=null!==(r=e.contextTypes)&&void 0!==r)?hi(t,i):ci),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=po,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function vo(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&po.enqueueReplaceState(e,e.state,null)}function wo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=fo,oo(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=pi(e)?fi:li.current,i.context=hi(t,o)),lo(t,n,i,r),i.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(ho(t,e,o,n),i.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(e=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&po.enqueueReplaceState(i,i.state,null),lo(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4)}var yo=Array.isArray;function bo(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===fo&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!==typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Bo(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function xo(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=zu(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.flags=2,n):r:(e.flags=2,n):n}function s(e){return t&&null===e.alternate&&(e.flags=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Gu(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function c(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=bo(t,e,n),r.return=t,r):((r=Ku(n.type,n.key,n.props,null,t.mode,r)).ref=bo(t,e,n),r.return=t,r)}function l(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Wu(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function A(t,e,n,r,o){return null===e||7!==e.tag?((e=qu(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function f(t,e,n){if("string"===typeof e||"number"===typeof e)return(e=Gu(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case B:return(n=Ku(e.type,e.key,e.props,null,t.mode,n)).ref=bo(t,null,e),n.return=t,n;case x:return(e=Wu(e,t.mode,n)).return=t,e}if(yo(e)||j(e))return(e=qu(e,t.mode,n,null)).return=t,e;Bo(t,e)}return null}function h(t,e,n,r){var i=null!==e?e.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(t,e,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case B:return n.key===i?n.type===N?A(t,e,n.props.children,r,i):c(t,e,n,r):null;case x:return n.key===i?l(t,e,n,r):null}if(yo(n)||j(n))return null!==i?null:A(t,e,n,r,null);Bo(t,n)}return null}function p(t,e,n,r,i){if("string"===typeof r||"number"===typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case B:return t=t.get(null===r.key?n:r.key)||null,r.type===N?A(e,t,r.props.children,i,r.key):c(e,t,r,i);case x:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(yo(r)||j(r))return A(e,t=t.get(n)||null,r,i,null);Bo(e,r)}return null}function d(i,a,s,u){for(var c=null,l=null,A=a,d=a=0,g=null;null!==A&&d<s.length;d++){A.index>d?(g=A,A=null):g=A.sibling;var m=h(i,A,s[d],u);if(null===m){null===A&&(A=g);break}t&&A&&null===m.alternate&&e(i,A),a=o(m,a,d),null===l?c=m:l.sibling=m,l=m,A=g}if(d===s.length)return n(i,A),c;if(null===A){for(;d<s.length;d++)null!==(A=f(i,s[d],u))&&(a=o(A,a,d),null===l?c=A:l.sibling=A,l=A);return c}for(A=r(i,A);d<s.length;d++)null!==(g=p(A,i,d,s[d],u))&&(t&&null!==g.alternate&&A.delete(null===g.key?d:g.key),a=o(g,a,d),null===l?c=g:l.sibling=g,l=g);return t&&A.forEach((function(t){return e(i,t)})),c}function g(i,s,u,c){var l=j(u);if("function"!==typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var A=l=null,d=s,g=s=0,m=null,v=u.next();null!==d&&!v.done;g++,v=u.next()){d.index>g?(m=d,d=null):m=d.sibling;var w=h(i,d,v.value,c);if(null===w){null===d&&(d=m);break}t&&d&&null===w.alternate&&e(i,d),s=o(w,s,g),null===A?l=w:A.sibling=w,A=w,d=m}if(v.done)return n(i,d),l;if(null===d){for(;!v.done;g++,v=u.next())null!==(v=f(i,v.value,c))&&(s=o(v,s,g),null===A?l=v:A.sibling=v,A=v);return l}for(d=r(i,d);!v.done;g++,v=u.next())null!==(v=p(d,i,g,v.value,c))&&(t&&null!==v.alternate&&d.delete(null===v.key?g:v.key),s=o(v,s,g),null===A?l=v:A.sibling=v,A=v);return t&&d.forEach((function(t){return e(i,t)})),l}return function(t,r,o,u){var c="object"===typeof o&&null!==o&&o.type===N&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case B:t:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===N){n(t,c.sibling),(r=i(c,o.props.children)).return=t,t=r;break t}break;default:if(c.elementType===o.type){n(t,c.sibling),(r=i(c,o.props)).ref=bo(t,c,o),r.return=t,t=r;break t}}n(t,c);break}e(t,c),c=c.sibling}o.type===N?((r=qu(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Ku(o.type,o.key,o.props,null,t.mode,u)).ref=bo(t,r,o),u.return=t,t=u)}return s(t);case x:t:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Wu(o,t.mode,u)).return=t,t=r}return s(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Gu(o,t.mode,u)).return=t,t=r),s(t);if(yo(o))return d(t,r,o,u);if(j(o))return g(t,r,o,u);if(l&&Bo(t,o),"undefined"===typeof o&&!c)switch(t.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(t.type)||"Component"))}return n(t,r)}}var No=xo(!0),_o=xo(!1),Co={},So=ai(Co),Eo=ai(Co),Lo=ai(Co);function Fo(t){if(t===Co)throw Error(a(174));return t}function ko(t,e){switch(ui(Lo,e),ui(Eo,t),ui(So,Co),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:pt(null,"");break;default:e=pt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}si(So),ui(So,e)}function Uo(){si(So),si(Eo),si(Lo)}function Qo(t){Fo(Lo.current);var e=Fo(So.current),n=pt(e,t.type);e!==n&&(ui(Eo,t),ui(So,n))}function Io(t){Eo.current===t&&(si(So),si(Eo))}var Po=ai(0);function Oo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.flags))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var To=null,Mo=null,Ho=!1;function Ro(t,e){var n=Du(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Do(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function jo(t){if(Ho){var e=Mo;if(e){var n=e;if(!Do(t,e)){if(!(e=qr(n.nextSibling))||!Do(t,e))return t.flags=-1025&t.flags|2,Ho=!1,void(To=t);Ro(To,n)}To=t,Mo=qr(e.firstChild)}else t.flags=-1025&t.flags|2,Ho=!1,To=t}}function zo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;To=t}function Ko(t){if(t!==To)return!1;if(!Ho)return zo(t),Ho=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Dr(e,t.memoizedProps))for(e=Mo;e;)Ro(t,e),e=qr(e.nextSibling);if(zo(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){Mo=qr(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}Mo=null}}else Mo=To?qr(t.stateNode.nextSibling):null;return!0}function qo(){Mo=To=null,Ho=!1}var Vo=[];function Go(){for(var t=0;t<Vo.length;t++)Vo[t]._workInProgressVersionPrimary=null;Vo.length=0}var Wo=b.ReactCurrentDispatcher,Xo=b.ReactCurrentBatchConfig,Jo=0,Yo=null,$o=null,Zo=null,ta=!1,ea=!1;function na(){throw Error(a(321))}function ra(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!sr(t[n],e[n]))return!1;return!0}function ia(t,e,n,r,i,o){if(Jo=o,Yo=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Wo.current=null===t||null===t.memoizedState?Fa:ka,t=n(r,i),ea){o=0;do{if(ea=!1,!(25>o))throw Error(a(301));o+=1,Zo=$o=null,e.updateQueue=null,Wo.current=Ua,t=n(r,i)}while(ea)}if(Wo.current=La,e=null!==$o&&null!==$o.next,Jo=0,Zo=$o=Yo=null,ta=!1,e)throw Error(a(300));return t}function oa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zo?Yo.memoizedState=Zo=t:Zo=Zo.next=t,Zo}function aa(){if(null===$o){var t=Yo.alternate;t=null!==t?t.memoizedState:null}else t=$o.next;var e=null===Zo?Yo.memoizedState:Zo.next;if(null!==e)Zo=e,$o=t;else{if(null===t)throw Error(a(310));t={memoizedState:($o=t).memoizedState,baseState:$o.baseState,baseQueue:$o.baseQueue,queue:$o.queue,next:null},null===Zo?Yo.memoizedState=Zo=t:Zo=Zo.next=t}return Zo}function sa(t,e){return"function"===typeof e?e(t):e}function ua(t){var e=aa(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=$o,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,c=i;do{var l=c.lane;if((Jo&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===t?c.eagerState:t(r,c.action);else{var A={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=A,o=r):u=u.next=A,Yo.lanes|=l,Ms|=l}c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,sr(r,e.memoizedState)||(Ia=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function ca(t){var e=aa(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);sr(o,e.memoizedState)||(Ia=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function la(t,e,n){var r=e._getVersion;r=r(e._source);var i=e._workInProgressVersionPrimary;if(null!==i?t=i===r:(t=t.mutableReadLanes,(t=(Jo&t)===t)&&(e._workInProgressVersionPrimary=r,Vo.push(e))),t)return n(e._source);throw Vo.push(e),Error(a(350))}function Aa(t,e,n,r){var i=Fs;if(null===i)throw Error(a(349));var o=e._getVersion,s=o(e._source),u=Wo.current,c=u.useState((function(){return la(i,e,n)})),l=c[1],A=c[0];c=Zo;var f=t.memoizedState,h=f.refs,p=h.getSnapshot,d=f.source;f=f.subscribe;var g=Yo;return t.memoizedState={refs:h,source:e,subscribe:r},u.useEffect((function(){h.getSnapshot=n,h.setSnapshot=l;var t=o(e._source);if(!sr(s,t)){t=n(e._source),sr(A,t)||(l(t),t=lu(g),i.mutableReadLanes|=t&i.pendingLanes),t=i.mutableReadLanes,i.entangledLanes|=t;for(var r=i.entanglements,a=t;0<a;){var u=31-Ke(a),c=1<<u;r[u]|=t,a&=~c}}}),[n,e,r]),u.useEffect((function(){return r(e._source,(function(){var t=h.getSnapshot,n=h.setSnapshot;try{n(t(e._source));var r=lu(g);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[e,r]),sr(p,n)&&sr(d,e)&&sr(f,r)||((t={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:A}).dispatch=l=Ea.bind(null,Yo,t),c.queue=t,c.baseQueue=null,A=la(i,e,n),c.memoizedState=c.baseState=A),A}function fa(t,e,n){return Aa(aa(),t,e,n)}function ha(t){var e=oa();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:t}).dispatch=Ea.bind(null,Yo,t),[e.memoizedState,t]}function pa(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Yo.updateQueue)?(e={lastEffect:null},Yo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function da(t){return t={current:t},oa().memoizedState=t}function ga(){return aa().memoizedState}function ma(t,e,n,r){var i=oa();Yo.flags|=t,i.memoizedState=pa(1|e,n,void 0,void 0===r?null:r)}function va(t,e,n,r){var i=aa();r=void 0===r?null:r;var o=void 0;if(null!==$o){var a=$o.memoizedState;if(o=a.destroy,null!==r&&ra(r,a.deps))return void pa(e,n,o,r)}Yo.flags|=t,i.memoizedState=pa(1|e,n,o,r)}function wa(t,e){return ma(516,4,t,e)}function ya(t,e){return va(516,4,t,e)}function ba(t,e){return va(4,2,t,e)}function Ba(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function xa(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,va(4,2,Ba.bind(null,e,t),n)}function Na(){}function _a(t,e){var n=aa();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&ra(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Ca(t,e){var n=aa();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&ra(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Sa(t,e){var n=Di();zi(98>n?98:n,(function(){t(!0)})),zi(97<n?97:n,(function(){var n=Xo.transition;Xo.transition=1;try{t(!1),e()}finally{Xo.transition=n}}))}function Ea(t,e,n){var r=cu(),i=lu(t),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=e.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),e.pending=o,a=t.alternate,t===Yo||null!==a&&a===Yo)ea=ta=!0;else{if(0===t.lanes&&(null===a||0===a.lanes)&&null!==(a=e.lastRenderedReducer))try{var s=e.lastRenderedState,u=a(s,n);if(o.eagerReducer=a,o.eagerState=u,sr(u,s))return}catch(c){}Au(t,i,r)}}var La={readContext:ro,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Fa={readContext:ro,useCallback:function(t,e){return oa().memoizedState=[t,void 0===e?null:e],t},useContext:ro,useEffect:wa,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ma(4,2,Ba.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ma(4,2,t,e)},useMemo:function(t,e){var n=oa();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=oa();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=Ea.bind(null,Yo,t),[r.memoizedState,t]},useRef:da,useState:ha,useDebugValue:Na,useDeferredValue:function(t){var e=ha(t),n=e[0],r=e[1];return wa((function(){var e=Xo.transition;Xo.transition=1;try{r(t)}finally{Xo.transition=e}}),[t]),n},useTransition:function(){var t=ha(!1),e=t[0];return da(t=Sa.bind(null,t[1])),[t,e]},useMutableSource:function(t,e,n){var r=oa();return r.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},Aa(r,t,e,n)},useOpaqueIdentifier:function(){if(Ho){var t=!1,e=function(t){return{$$typeof:P,toString:t,valueOf:t}}((function(){throw t||(t=!0,n("r:"+(Gr++).toString(36))),Error(a(355))})),n=ha(e)[1];return 0===(2&Yo.mode)&&(Yo.flags|=516,pa(5,(function(){n("r:"+(Gr++).toString(36))}),void 0,null)),e}return ha(e="r:"+(Gr++).toString(36)),e},unstable_isNewReconciler:!1},ka={readContext:ro,useCallback:_a,useContext:ro,useEffect:ya,useImperativeHandle:xa,useLayoutEffect:ba,useMemo:Ca,useReducer:ua,useRef:ga,useState:function(){return ua(sa)},useDebugValue:Na,useDeferredValue:function(t){var e=ua(sa),n=e[0],r=e[1];return ya((function(){var e=Xo.transition;Xo.transition=1;try{r(t)}finally{Xo.transition=e}}),[t]),n},useTransition:function(){var t=ua(sa)[0];return[ga().current,t]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(sa)[0]},unstable_isNewReconciler:!1},Ua={readContext:ro,useCallback:_a,useContext:ro,useEffect:ya,useImperativeHandle:xa,useLayoutEffect:ba,useMemo:Ca,useReducer:ca,useRef:ga,useState:function(){return ca(sa)},useDebugValue:Na,useDeferredValue:function(t){var e=ca(sa),n=e[0],r=e[1];return ya((function(){var e=Xo.transition;Xo.transition=1;try{r(t)}finally{Xo.transition=e}}),[t]),n},useTransition:function(){var t=ca(sa)[0];return[ga().current,t]},useMutableSource:fa,useOpaqueIdentifier:function(){return ca(sa)[0]},unstable_isNewReconciler:!1},Qa=b.ReactCurrentOwner,Ia=!1;function Pa(t,e,n,r){e.child=null===t?_o(e,null,n,r):No(e,t.child,n,r)}function Oa(t,e,n,r,i){n=n.render;var o=e.ref;return no(e,i),r=ia(t,e,n,r,o,i),null===t||Ia?(e.flags|=1,Pa(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,ns(t,e,i))}function Ta(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!==typeof a||ju(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Ku(n.type,null,r,e,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Ma(t,e,a,r,i,o))}return a=t.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&t.ref===e.ref)?ns(t,e,o):(e.flags|=1,(t=zu(a,r)).ref=e.ref,t.return=e,e.child=t)}function Ma(t,e,n,r,i,o){if(null!==t&&cr(t.memoizedProps,r)&&t.ref===e.ref){if(Ia=!1,0===(o&i))return e.lanes=t.lanes,ns(t,e,o);0!==(16384&t.flags)&&(Ia=!0)}return Da(t,e,n,r,o)}function Ha(t,e,n){var r=e.pendingProps,i=r.children,o=null!==t?t.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&e.mode))e.memoizedState={baseLanes:0},wu(e,n);else{if(0===(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},wu(e,t),null;e.memoizedState={baseLanes:0},wu(e,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,e.memoizedState=null):r=n,wu(e,r);return Pa(t,e,i,n),e.child}function Ra(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=128)}function Da(t,e,n,r,i){var o=pi(n)?fi:li.current;return o=hi(e,o),no(e,i),n=ia(t,e,n,r,o,i),null===t||Ia?(e.flags|=1,Pa(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~i,ns(t,e,i))}function ja(t,e,n,r,i){if(pi(n)){var o=!0;vi(e)}else o=!1;if(no(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),mo(e,n,r),wo(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=ro(c):c=hi(e,c=pi(n)?fi:li.current);var l=n.getDerivedStateFromProps,A="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;A||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==c)&&vo(e,a,r,c),io=!1;var f=e.memoizedState;a.state=f,lo(e,r,a,i),u=e.memoizedState,s!==r||f!==u||Ai.current||io?("function"===typeof l&&(ho(e,n,l,r),u=e.memoizedState),(s=io||go(e,n,s,r,f,u,c))?(A||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.flags|=4)):("function"===typeof a.componentDidMount&&(e.flags|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"===typeof a.componentDidMount&&(e.flags|=4),r=!1)}else{a=e.stateNode,ao(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:Wi(e.type,s),a.props=c,A=e.pendingProps,f=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=ro(u):u=hi(e,u=pi(n)?fi:li.current);var h=n.getDerivedStateFromProps;(l="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==A||f!==u)&&vo(e,a,r,u),io=!1,f=e.memoizedState,a.state=f,lo(e,r,a,i);var p=e.memoizedState;s!==A||f!==p||Ai.current||io?("function"===typeof h&&(ho(e,n,h,r),p=e.memoizedState),(c=io||go(e,n,c,r,f,p,u))?(l||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof a.componentDidUpdate&&(e.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.flags|=256)):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=256),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=256),r=!1)}return za(t,e,n,r,o,i)}function za(t,e,n,r,i,o){Ra(t,e);var a=0!==(64&e.flags);if(!r&&!a)return i&&wi(e,n,!1),ns(t,e,o);r=e.stateNode,Qa.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&a?(e.child=No(e,t.child,null,o),e.child=No(e,null,s,o)):Pa(t,e,s,o),e.memoizedState=r.state,i&&wi(e,n,!0),e.child}function Ka(t){var e=t.stateNode;e.pendingContext?gi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&gi(0,e.context,!1),ko(t,e.containerInfo)}var qa,Va,Ga,Wa={dehydrated:null,retryLane:0};function Xa(t,e,n){var r,i=e.pendingProps,o=Po.current,a=!1;return(r=0!==(64&e.flags))||(r=(null===t||null!==t.memoizedState)&&0!==(2&o)),r?(a=!0,e.flags&=-65):null!==t&&null===t.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(Po,1&o),null===t?(void 0!==i.fallback&&jo(e),t=i.children,o=i.fallback,a?(t=Ja(e,t,o,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Wa,t):"number"===typeof i.unstable_expectedLoadTime?(t=Ja(e,t,o,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Wa,e.lanes=33554432,t):((n=Vu({mode:"visible",children:t},e.mode,n,null)).return=e,e.child=n)):(t.memoizedState,a?(i=$a(t,e,i.children,i.fallback,n),a=e.child,o=t.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=t.childLanes&~n,e.memoizedState=Wa,i):(n=Ya(t,e,i.children,n),e.memoizedState=null,n))}function Ja(t,e,n,r){var i=t.mode,o=t.child;return e={mode:"hidden",children:e},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=e):o=Vu(e,i,0,null),n=qu(n,i,r,null),o.return=t,n.return=t,o.sibling=n,t.child=o,n}function Ya(t,e,n,r){var i=t.child;return t=i.sibling,n=zu(i,{mode:"visible",children:n}),0===(2&e.mode)&&(n.lanes=r),n.return=e,n.sibling=null,null!==t&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function $a(t,e,n,r,i){var o=e.mode,a=t.child;t=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&e.child!==a?((n=e.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(e.firstEffect=n.firstEffect,e.lastEffect=a,a.nextEffect=null):e.firstEffect=e.lastEffect=null):n=zu(a,s),null!==t?r=zu(t,r):(r=qu(r,o,i,null)).flags|=2,r.return=e,n.return=e,n.sibling=r,e.child=n,r}function Za(t,e){t.lanes|=e;var n=t.alternate;null!==n&&(n.lanes|=e),eo(t.return,e)}function ts(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function es(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(t,e,r.children,n),0!==(2&(r=Po.current)))r=1&r|2,e.flags|=64;else{if(null!==t&&0!==(64&t.flags))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Za(t,n);else if(19===t.tag)Za(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ui(Po,r),0===(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Oo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),ts(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Oo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}ts(e,!0,n,null,o,e.lastEffect);break;case"together":ts(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function ns(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Ms|=e.lanes,0!==(n&e.childLanes)){if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=zu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=zu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}return null}function rs(t,e){if(!Ho)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function is(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pi(e.type)&&di(),null;case 3:return Uo(),si(Ai),si(li),Go(),(r=e.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(Ko(e)?e.flags|=4:r.hydrate||(e.flags|=256)),null;case 5:Io(e);var o=Fo(Lo.current);if(n=e.type,null!==t&&null!=e.stateNode)Va(t,e,n,r),t.ref!==e.ref&&(e.flags|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Fo(So.current),Ko(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Xr]=e,r[Jr]=s,n){case"dialog":Sr("cancel",r),Sr("close",r);break;case"iframe":case"object":case"embed":Sr("load",r);break;case"video":case"audio":for(t=0;t<xr.length;t++)Sr(xr[t],r);break;case"source":Sr("error",r);break;case"img":case"image":case"link":Sr("error",r),Sr("load",r);break;case"details":Sr("toggle",r);break;case"input":tt(r,s),Sr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Sr("invalid",r);break;case"textarea":ut(r,s),Sr("invalid",r)}for(var c in Nt(n,s),t=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"===typeof o?r.textContent!==o&&(t=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(t=["children",""+o]):u.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Sr("scroll",r));switch(n){case"input":J(r),rt(r,s,!0);break;case"textarea":J(r),lt(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Tr)}r=t,e.updateQueue=r,null!==r&&(e.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,t===At&&(t=ht(n)),t===At?"script"===n?((t=c.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=c.createElement(n,{is:r.is}):(t=c.createElement(n),"select"===n&&(c=t,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):t=c.createElementNS(t,n),t[Xr]=e,t[Jr]=r,qa(t,e),e.stateNode=t,c=_t(n,r),n){case"dialog":Sr("cancel",t),Sr("close",t),o=r;break;case"iframe":case"object":case"embed":Sr("load",t),o=r;break;case"video":case"audio":for(o=0;o<xr.length;o++)Sr(xr[o],t);o=r;break;case"source":Sr("error",t),o=r;break;case"img":case"image":case"link":Sr("error",t),Sr("load",t),o=r;break;case"details":Sr("toggle",t),o=r;break;case"input":tt(t,r),o=Z(t,r),Sr("invalid",t);break;case"option":o=ot(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Sr("invalid",t);break;case"textarea":ut(t,r),o=st(t,r),Sr("invalid",t);break;default:o=r}Nt(n,o);var l=o;for(s in l)if(l.hasOwnProperty(s)){var A=l[s];"style"===s?Bt(t,A):"dangerouslySetInnerHTML"===s?null!=(A=A?A.__html:void 0)&&mt(t,A):"children"===s?"string"===typeof A?("textarea"!==n||""!==A)&&vt(t,A):"number"===typeof A&&vt(t,""+A):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=A&&"onScroll"===s&&Sr("scroll",t):null!=A&&y(t,s,A,c))}switch(n){case"input":J(t),rt(t,r,!1);break;case"textarea":J(t),lt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+W(r.value));break;case"select":t.multiple=!!r.multiple,null!=(s=r.value)?at(t,!!r.multiple,s,!1):null!=r.defaultValue&&at(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(t.onclick=Tr)}Rr(n,r)&&(e.flags|=4)}null!==e.ref&&(e.flags|=128)}return null;case 6:if(t&&null!=e.stateNode)Ga(0,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(a(166));n=Fo(Lo.current),Fo(So.current),Ko(e)?(r=e.stateNode,n=e.memoizedProps,r[Xr]=e,r.nodeValue!==n&&(e.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=e,e.stateNode=r)}return null;case 13:return si(Po),r=e.memoizedState,0!==(64&e.flags)?(e.lanes=n,e):(r=null!==r,n=!1,null===t?void 0!==e.memoizedProps.fallback&&Ko(e):n=null!==t.memoizedState,r&&!n&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Po.current)?0===Ps&&(Ps=3):(0!==Ps&&3!==Ps||(Ps=4),null===Fs||0===(134217727&Ms)&&0===(134217727&Hs)||du(Fs,Us))),(r||n)&&(e.flags|=4),null);case 4:return Uo(),null===t&&Lr(e.stateNode.containerInfo),null;case 10:return to(e),null;case 17:return pi(e.type)&&di(),null;case 19:if(si(Po),null===(r=e.memoizedState))return null;if(s=0!==(64&e.flags),null===(c=r.rendering))if(s)rs(r,!1);else{if(0!==Ps||null!==t&&0!==(64&t.flags))for(t=e.child;null!==t;){if(null!==(c=Oo(t))){for(e.flags|=64,rs(r,!1),null!==(s=c.updateQueue)&&(e.updateQueue=s,e.flags|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=n,n=e.child;null!==n;)t=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=t,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,t=c.dependencies,s.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ui(Po,1&Po.current|2),e.child}t=t.sibling}null!==r.tail&&Ri()>zs&&(e.flags|=64,s=!0,rs(r,!1),e.lanes=33554432)}else{if(!s)if(null!==(t=Oo(c))){if(e.flags|=64,s=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ho)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Ri()-r.renderingStartTime>zs&&1073741824!==n&&(e.flags|=64,s=!0,rs(r,!1),e.lanes=33554432);r.isBackwards?(c.sibling=e.child,e.child=c):(null!==(n=r.last)?n.sibling=c:e.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Ri(),n.sibling=null,e=Po.current,ui(Po,s?1&e|2:1&e),n):null;case 23:case 24:return yu(),null!==t&&null!==t.memoizedState!==(null!==e.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(e.flags|=4),null}throw Error(a(156,e.tag))}function os(t){switch(t.tag){case 1:pi(t.type)&&di();var e=t.flags;return 4096&e?(t.flags=-4097&e|64,t):null;case 3:if(Uo(),si(Ai),si(li),Go(),0!==(64&(e=t.flags)))throw Error(a(285));return t.flags=-4097&e|64,t;case 5:return Io(t),null;case 13:return si(Po),4096&(e=t.flags)?(t.flags=-4097&e|64,t):null;case 19:return si(Po),null;case 4:return Uo(),null;case 10:return to(t),null;case 23:case 24:return yu(),null;default:return null}}function as(t,e){try{var n="",r=e;do{n+=V(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:t,source:e,stack:i}}function ss(t,e){try{console.error(e.value)}catch(n){setTimeout((function(){throw n}))}}qa=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(t,e,n,r){var o=t.memoizedProps;if(o!==r){t=e.stateNode,Fo(So.current);var a,s=null;switch(n){case"input":o=Z(t,o),r=Z(t,r),s=[];break;case"option":o=ot(t,o),r=ot(t,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=st(t,o),r=st(t,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(t.onclick=Tr)}for(A in Nt(n,r),n=null,o)if(!r.hasOwnProperty(A)&&o.hasOwnProperty(A)&&null!=o[A])if("style"===A){var c=o[A];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==A&&"children"!==A&&"suppressContentEditableWarning"!==A&&"suppressHydrationWarning"!==A&&"autoFocus"!==A&&(u.hasOwnProperty(A)?s||(s=[]):(s=s||[]).push(A,null));for(A in r){var l=r[A];if(c=null!=o?o[A]:void 0,r.hasOwnProperty(A)&&l!==c&&(null!=l||null!=c))if("style"===A)if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(A,n)),n=l;else"dangerouslySetInnerHTML"===A?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(A,l)):"children"===A?"string"!==typeof l&&"number"!==typeof l||(s=s||[]).push(A,""+l):"suppressContentEditableWarning"!==A&&"suppressHydrationWarning"!==A&&(u.hasOwnProperty(A)?(null!=l&&"onScroll"===A&&Sr("scroll",t),s||c===l||(s=[])):"object"===typeof l&&null!==l&&l.$$typeof===P?l.toString():(s=s||[]).push(A,l))}n&&(s=s||[]).push("style",n);var A=s;(e.updateQueue=A)&&(e.flags|=4)}},Ga=function(t,e,n,r){n!==r&&(e.flags|=4)};var us="function"===typeof WeakMap?WeakMap:Map;function cs(t,e,n){(n=so(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Gs||(Gs=!0,Ws=r),ss(0,e)},n}function ls(t,e,n){(n=so(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return ss(0,e),r(i)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),ss(0,e));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}var As="function"===typeof WeakSet?WeakSet:Set;function fs(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){Tu(t,n)}else e.current=null}function hs(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.flags&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Wi(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:return void(256&e.flags&&Kr(e.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ps(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(e=null!==(e=n.updateQueue)?e.lastEffect:null)){t=e=e.next;do{if(3===(3&t.tag)){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}if(null!==(e=null!==(e=n.updateQueue)?e.lastEffect:null)){t=e=e.next;do{var i=t;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Iu(n,t),Qu(n,t)),t=r}while(t!==e)}return;case 1:return t=n.stateNode,4&n.flags&&(null===e?t.componentDidMount():(r=n.elementType===n.type?e.memoizedProps:Wi(n.type,e.memoizedProps),t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),void(null!==(e=n.updateQueue)&&Ao(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}Ao(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.flags&&Rr(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Be(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ds(t,e){for(var n=t;;){if(5===n.tag){var r=n.stateNode;if(e)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=bt("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===t)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gs(t,e){if(bi&&"function"===typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,e)}catch(o){}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Iu(e,n);else{r=e;try{i()}catch(o){Tu(r,o)}}n=n.next}while(n!==t)}break;case 1:if(fs(e),"function"===typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(o){Tu(e,o)}break;case 5:fs(e);break;case 4:Bs(t,e)}}function ms(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function vs(t){return 5===t.tag||3===t.tag||4===t.tag}function ws(t){t:{for(var e=t.return;null!==e;){if(vs(e))break t;e=e.return}throw Error(a(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(vt(e,""),n.flags&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||vs(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break t}}r?ys(t,n,e):bs(t,n,e)}function ys(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!==(n=n._reactRootContainer)&&void 0!==n||null!==e.onclick||(e.onclick=Tr));else if(4!==r&&null!==(t=t.child))for(ys(t,e,n),t=t.sibling;null!==t;)ys(t,e,n),t=t.sibling}function bs(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(bs(t,e,n),t=t.sibling;null!==t;)bs(t,e,n),t=t.sibling}function Bs(t,e){for(var n,r,i=e,o=!1;;){if(!o){o=i.return;t:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break t;case 3:case 4:n=n.containerInfo,r=!0;break t}o=o.return}o=!0}if(5===i.tag||6===i.tag){t:for(var s=t,u=i,c=u;;)if(gs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break t;for(;null===c.sibling;){if(null===c.return||c.return===u)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(gs(t,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(t=r.destroy,r.destroy=void 0,void 0!==t&&t()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=e.stateNode)){r=e.memoizedProps;var i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Jr]=r,"input"===t&&"radio"===r.type&&null!=r.name&&et(n,r),_t(t,i),e=_t(t,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?Bt(n,u):"dangerouslySetInnerHTML"===s?mt(n,u):"children"===s?vt(n,u):y(n,s,u,e)}switch(t){case"input":nt(n,r);break;case"textarea":ct(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?at(n,!!r.multiple,o,!1):t!==!!r.multiple&&(null!=r.defaultValue?at(n,!!r.multiple,r.defaultValue,!0):at(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((n=e.stateNode).hydrate&&(n.hydrate=!1,Be(n.containerInfo)));case 12:return;case 13:return null!==e.memoizedState&&(js=Ri(),ds(e.child,!0)),void Ns(e);case 19:return void Ns(e);case 17:return;case 23:case 24:return void ds(e,null!==e.memoizedState)}throw Error(a(163))}function Ns(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new As),e.forEach((function(e){var r=Hu.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function _s(t,e){return null!==t&&(null===(t=t.memoizedState)||null!==t.dehydrated)&&(null!==(e=e.memoizedState)&&null===e.dehydrated)}var Cs=Math.ceil,Ss=b.ReactCurrentDispatcher,Es=b.ReactCurrentOwner,Ls=0,Fs=null,ks=null,Us=0,Qs=0,Is=ai(0),Ps=0,Os=null,Ts=0,Ms=0,Hs=0,Rs=0,Ds=null,js=0,zs=1/0;function Ks(){zs=Ri()+500}var qs,Vs=null,Gs=!1,Ws=null,Xs=null,Js=!1,Ys=null,$s=90,Zs=[],tu=[],eu=null,nu=0,ru=null,iu=-1,ou=0,au=0,su=null,uu=!1;function cu(){return 0!==(48&Ls)?Ri():-1!==iu?iu:iu=Ri()}function lu(t){if(0===(2&(t=t.mode)))return 1;if(0===(4&t))return 99===Di()?1:2;if(0===ou&&(ou=Ts),0!==Gi.transition){0!==au&&(au=null!==Ds?Ds.pendingLanes:0),t=ou;var e=4186112&~au;return 0===(e&=-e)&&(0===(e=(t=4186112&~t)&-t)&&(e=8192)),e}return t=Di(),0!==(4&Ls)&&98===t?t=Re(12,ou):t=Re(t=function(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(t),ou),t}function Au(t,e,n){if(50<nu)throw nu=0,ru=null,Error(a(185));if(null===(t=fu(t,e)))return null;ze(t,e,n),t===Fs&&(Hs|=e,4===Ps&&du(t,Us));var r=Di();1===e?0!==(8&Ls)&&0===(48&Ls)?gu(t):(hu(t,n),0===Ls&&(Ks(),qi())):(0===(4&Ls)||98!==r&&99!==r||(null===eu?eu=new Set([t]):eu.add(t)),hu(t,n)),Ds=t}function fu(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}function hu(t,e){for(var n=t.callbackNode,r=t.suspendedLanes,i=t.pingedLanes,o=t.expirationTimes,s=t.pendingLanes;0<s;){var u=31-Ke(s),c=1<<u,l=o[u];if(-1===l){if(0===(c&r)||0!==(c&i)){l=e,Te(c);var A=Oe;o[u]=10<=A?l+250:6<=A?l+5e3:-1}}else l<=e&&(t.expiredLanes|=c);s&=~c}if(r=Me(t,t===Fs?Us:0),e=Oe,0===r)null!==n&&(n!==Ii&&Ni(n),t.callbackNode=null,t.callbackPriority=0);else{if(null!==n){if(t.callbackPriority===e)return;n!==Ii&&Ni(n)}15===e?(n=gu.bind(null,t),null===Oi?(Oi=[n],Ti=xi(Li,Vi)):Oi.push(n),n=Ii):14===e?n=Ki(99,gu.bind(null,t)):n=Ki(n=function(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,t))}}(e),pu.bind(null,t)),t.callbackPriority=e,t.callbackNode=n}}function pu(t){if(iu=-1,au=ou=0,0!==(48&Ls))throw Error(a(327));var e=t.callbackNode;if(Uu()&&t.callbackNode!==e)return null;var n=Me(t,t===Fs?Us:0);if(0===n)return null;var r=n,i=Ls;Ls|=16;var o=xu();for(Fs===t&&Us===r||(Ks(),bu(t,r));;)try{Cu();break}catch(u){Bu(t,u)}if(Zi(),Ss.current=o,Ls=i,null!==ks?r=0:(Fs=null,Us=0,r=Ps),0!==(Ts&Hs))bu(t,0);else if(0!==r){if(2===r&&(Ls|=64,t.hydrate&&(t.hydrate=!1,Kr(t.containerInfo)),0!==(n=He(t))&&(r=Nu(t,n))),1===r)throw e=Os,bu(t,0),du(t,n),hu(t,Ri()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:Lu(t);break;case 3:if(du(t,n),(62914560&n)===n&&10<(r=js+500-Ri())){if(0!==Me(t,0))break;if(((i=t.suspendedLanes)&n)!==n){cu(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=jr(Lu.bind(null,t),r);break}Lu(t);break;case 4:if(du(t,n),(4186112&n)===n)break;for(r=t.eventTimes,i=-1;0<n;){var s=31-Ke(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Ri()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){t.timeoutHandle=jr(Lu.bind(null,t),n);break}Lu(t);break;case 5:Lu(t);break;default:throw Error(a(329))}}return hu(t,Ri()),t.callbackNode===e?pu.bind(null,t):null}function du(t,e){for(e&=~Rs,e&=~Hs,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Ke(e),r=1<<n;t[n]=-1,e&=~r}}function gu(t){if(0!==(48&Ls))throw Error(a(327));if(Uu(),t===Fs&&0!==(t.expiredLanes&Us)){var e=Us,n=Nu(t,e);0!==(Ts&Hs)&&(n=Nu(t,e=Me(t,e)))}else n=Nu(t,e=Me(t,0));if(0!==t.tag&&2===n&&(Ls|=64,t.hydrate&&(t.hydrate=!1,Kr(t.containerInfo)),0!==(e=He(t))&&(n=Nu(t,e))),1===n)throw n=Os,bu(t,0),du(t,e),hu(t,Ri()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,Lu(t),hu(t,Ri()),null}function mu(t,e){var n=Ls;Ls|=1;try{return t(e)}finally{0===(Ls=n)&&(Ks(),qi())}}function vu(t,e){var n=Ls;Ls&=-2,Ls|=8;try{return t(e)}finally{0===(Ls=n)&&(Ks(),qi())}}function wu(t,e){ui(Is,Qs),Qs|=e,Ts|=e}function yu(){Qs=Is.current,si(Is)}function bu(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,zr(n)),null!==ks)for(n=ks.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&di();break;case 3:Uo(),si(Ai),si(li),Go();break;case 5:Io(r);break;case 4:Uo();break;case 13:case 19:si(Po);break;case 10:to(r);break;case 23:case 24:yu()}n=n.return}Fs=t,ks=zu(t.current,null),Us=Qs=Ts=e,Ps=0,Os=null,Rs=Hs=Ms=0}function Bu(t,e){for(;;){var n=ks;try{if(Zi(),Wo.current=La,ta){for(var r=Yo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ta=!1}if(Jo=0,Zo=$o=Yo=null,ea=!1,Es.current=null,null===n||null===n.return){Ps=1,Os=e,ks=null;break}t:{var o=t,a=n.return,s=n,u=e;if(e=Us,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u;if(0===(2&s.mode)){var l=s.alternate;l?(s.updateQueue=l.updateQueue,s.memoizedState=l.memoizedState,s.lanes=l.lanes):(s.updateQueue=null,s.memoizedState=null)}var A=0!==(1&Po.current),f=a;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var d=f.memoizedProps;h=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!A)}}if(h){var g=f.updateQueue;if(null===g){var m=new Set;m.add(c),f.updateQueue=m}else g.add(c);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=so(-1,1);v.tag=2,uo(s,v)}s.lanes|=1;break t}u=void 0,s=e;var w=o.pingCache;if(null===w?(w=o.pingCache=new us,u=new Set,w.set(c,u)):void 0===(u=w.get(c))&&(u=new Set,w.set(c,u)),!u.has(s)){u.add(s);var y=Mu.bind(null,o,c,s);c.then(y,y)}f.flags|=4096,f.lanes=e;break t}f=f.return}while(null!==f);u=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ps&&(Ps=2),u=as(u,s),f=a;do{switch(f.tag){case 3:o=u,f.flags|=4096,e&=-e,f.lanes|=e,co(f,cs(0,o,e));break t;case 1:o=u;var b=f.type,B=f.stateNode;if(0===(64&f.flags)&&("function"===typeof b.getDerivedStateFromError||null!==B&&"function"===typeof B.componentDidCatch&&(null===Xs||!Xs.has(B)))){f.flags|=4096,e&=-e,f.lanes|=e,co(f,ls(f,o,e));break t}}f=f.return}while(null!==f)}Eu(n)}catch(x){e=x,ks===n&&null!==n&&(ks=n=n.return);continue}break}}function xu(){var t=Ss.current;return Ss.current=La,null===t?La:t}function Nu(t,e){var n=Ls;Ls|=16;var r=xu();for(Fs===t&&Us===e||bu(t,e);;)try{_u();break}catch(i){Bu(t,i)}if(Zi(),Ls=n,Ss.current=r,null!==ks)throw Error(a(261));return Fs=null,Us=0,Ps}function _u(){for(;null!==ks;)Su(ks)}function Cu(){for(;null!==ks&&!_i();)Su(ks)}function Su(t){var e=qs(t.alternate,t,Qs);t.memoizedProps=t.pendingProps,null===e?Eu(t):ks=e,Es.current=null}function Eu(t){var e=t;do{var n=e.alternate;if(t=e.return,0===(2048&e.flags)){if(null!==(n=is(n,e,Qs)))return void(ks=n);if(24!==(n=e).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Qs)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==t&&0===(2048&t.flags)&&(null===t.firstEffect&&(t.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(null!==t.lastEffect?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}else{if(null!==(n=os(e)))return n.flags&=2047,void(ks=n);null!==t&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}if(null!==(e=e.sibling))return void(ks=e);ks=e=t}while(null!==e);0===Ps&&(Ps=5)}function Lu(t){var e=Di();return zi(99,Fu.bind(null,t,e)),null}function Fu(t,e){do{Uu()}while(null!==Ys);if(0!==(48&Ls))throw Error(a(327));var n=t.finishedWork;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(a(177));t.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;for(var s=t.eventTimes,u=t.expirationTimes;0<o;){var c=31-Ke(o),l=1<<c;i[c]=0,s[c]=-1,u[c]=-1,o&=~l}if(null!==eu&&0===(24&r)&&eu.has(t)&&eu.delete(t),t===Fs&&(ks=Fs=null,Us=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ls,Ls|=32,Es.current=null,Mr=Xe,pr(s=hr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else t:if(u=(u=s.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,o=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(C){u=null;break t}var A=0,f=-1,h=-1,p=0,d=0,g=s,m=null;e:for(;;){for(var v;g!==u||0!==o&&3!==g.nodeType||(f=A+o),g!==c||0!==l&&3!==g.nodeType||(h=A+l),3===g.nodeType&&(A+=g.nodeValue.length),null!==(v=g.firstChild);)m=g,g=v;for(;;){if(g===s)break e;if(m===u&&++p===o&&(f=A),m===c&&++d===l&&(h=A),null!==(v=g.nextSibling))break;m=(g=m).parentNode}g=v}u=-1===f||-1===h?null:{start:f,end:h}}else u=null;u=u||{start:0,end:0}}else u=null;Hr={focusedElem:s,selectionRange:u},Xe=!1,su=null,uu=!1,Vs=r;do{try{ku()}catch(C){if(null===Vs)throw Error(a(330));Tu(Vs,C),Vs=Vs.nextEffect}}while(null!==Vs);su=null,Vs=r;do{try{for(s=t;null!==Vs;){var w=Vs.flags;if(16&w&&vt(Vs.stateNode,""),128&w){var y=Vs.alternate;if(null!==y){var b=y.ref;null!==b&&("function"===typeof b?b(null):b.current=null)}}switch(1038&w){case 2:ws(Vs),Vs.flags&=-3;break;case 6:ws(Vs),Vs.flags&=-3,xs(Vs.alternate,Vs);break;case 1024:Vs.flags&=-1025;break;case 1028:Vs.flags&=-1025,xs(Vs.alternate,Vs);break;case 4:xs(Vs.alternate,Vs);break;case 8:Bs(s,u=Vs);var B=u.alternate;ms(u),null!==B&&ms(B)}Vs=Vs.nextEffect}}catch(C){if(null===Vs)throw Error(a(330));Tu(Vs,C),Vs=Vs.nextEffect}}while(null!==Vs);if(b=Hr,y=hr(),w=b.focusedElem,s=b.selectionRange,y!==w&&w&&w.ownerDocument&&fr(w.ownerDocument.documentElement,w)){null!==s&&pr(w)&&(y=s.start,void 0===(b=s.end)&&(b=y),"selectionStart"in w?(w.selectionStart=y,w.selectionEnd=Math.min(b,w.value.length)):(b=(y=w.ownerDocument||document)&&y.defaultView||window).getSelection&&(b=b.getSelection(),u=w.textContent.length,B=Math.min(s.start,u),s=void 0===s.end?B:Math.min(s.end,u),!b.extend&&B>s&&(u=s,s=B,B=u),u=Ar(w,B),o=Ar(w,s),u&&o&&(1!==b.rangeCount||b.anchorNode!==u.node||b.anchorOffset!==u.offset||b.focusNode!==o.node||b.focusOffset!==o.offset)&&((y=y.createRange()).setStart(u.node,u.offset),b.removeAllRanges(),B>s?(b.addRange(y),b.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),b.addRange(y))))),y=[];for(b=w;b=b.parentNode;)1===b.nodeType&&y.push({element:b,left:b.scrollLeft,top:b.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<y.length;w++)(b=y[w]).element.scrollLeft=b.left,b.element.scrollTop=b.top}Xe=!!Mr,Hr=Mr=null,t.current=n,Vs=r;do{try{for(w=t;null!==Vs;){var x=Vs.flags;if(36&x&&ps(w,Vs.alternate,Vs),128&x){y=void 0;var N=Vs.ref;if(null!==N){var _=Vs.stateNode;switch(Vs.tag){case 5:y=_;break;default:y=_}"function"===typeof N?N(y):N.current=y}}Vs=Vs.nextEffect}}catch(C){if(null===Vs)throw Error(a(330));Tu(Vs,C),Vs=Vs.nextEffect}}while(null!==Vs);Vs=null,Pi(),Ls=i}else t.current=n;if(Js)Js=!1,Ys=t,$s=e;else for(Vs=r;null!==Vs;)e=Vs.nextEffect,Vs.nextEffect=null,8&Vs.flags&&((x=Vs).sibling=null,x.stateNode=null),Vs=e;if(0===(r=t.pendingLanes)&&(Xs=null),1===r?t===ru?nu++:(nu=0,ru=t):nu=0,n=n.stateNode,bi&&"function"===typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64===(64&n.current.flags))}catch(C){}if(hu(t,Ri()),Gs)throw Gs=!1,t=Ws,Ws=null,t;return 0!==(8&Ls)||qi(),null}function ku(){for(;null!==Vs;){var t=Vs.alternate;uu||null===su||(0!==(8&Vs.flags)?te(Vs,su)&&(uu=!0):13===Vs.tag&&_s(t,Vs)&&te(Vs,su)&&(uu=!0));var e=Vs.flags;0!==(256&e)&&hs(t,Vs),0===(512&e)||Js||(Js=!0,Ki(97,(function(){return Uu(),null}))),Vs=Vs.nextEffect}}function Uu(){if(90!==$s){var t=97<$s?97:$s;return $s=90,zi(t,Pu)}return!1}function Qu(t,e){Zs.push(e,t),Js||(Js=!0,Ki(97,(function(){return Uu(),null})))}function Iu(t,e){tu.push(e,t),Js||(Js=!0,Ki(97,(function(){return Uu(),null})))}function Pu(){if(null===Ys)return!1;var t=Ys;if(Ys=null,0!==(48&Ls))throw Error(a(331));var e=Ls;Ls|=32;var n=tu;tu=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===o)throw Error(a(330));Tu(o,c)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var u=i.create;i.destroy=u()}catch(c){if(null===o)throw Error(a(330));Tu(o,c)}}for(u=t.current.firstEffect;null!==u;)t=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=t;return Ls=e,qi(),!0}function Ou(t,e,n){uo(t,e=cs(0,e=as(n,e),1)),e=cu(),null!==(t=fu(t,1))&&(ze(t,1,e),hu(t,e))}function Tu(t,e){if(3===t.tag)Ou(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Ou(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var i=ls(n,t=as(e,t),1);if(uo(n,i),i=cu(),null!==(n=fu(n,1)))ze(n,1,i),hu(n,i);else if("function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(e,t)}catch(o){}break}}n=n.return}}function Mu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),e=cu(),t.pingedLanes|=t.suspendedLanes&n,Fs===t&&(Us&n)===n&&(4===Ps||3===Ps&&(62914560&Us)===Us&&500>Ri()-js?bu(t,0):Rs|=n),hu(t,e)}function Hu(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(0===(2&(e=t.mode))?e=1:0===(4&e)?e=99===Di()?1:2:(0===ou&&(ou=Ts),0===(e=De(62914560&~ou))&&(e=4194304))),n=cu(),null!==(t=fu(t,e))&&(ze(t,e,n),hu(t,n))}function Ru(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Du(t,e,n,r){return new Ru(t,e,n,r)}function ju(t){return!(!(t=t.prototype)||!t.isReactComponent)}function zu(t,e){var n=t.alternate;return null===n?((n=Du(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ku(t,e,n,r,i,o){var s=2;if(r=t,"function"===typeof t)ju(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case N:return qu(n.children,i,o,e);case O:s=8,i|=16;break;case _:s=8,i|=1;break;case C:return(t=Du(12,n,e,8|i)).elementType=C,t.type=C,t.lanes=o,t;case F:return(t=Du(13,n,e,i)).type=F,t.elementType=F,t.lanes=o,t;case k:return(t=Du(19,n,e,i)).elementType=k,t.lanes=o,t;case T:return Vu(n,i,o,e);case M:return(t=Du(24,n,e,i)).elementType=M,t.lanes=o,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case S:s=10;break t;case E:s=9;break t;case L:s=11;break t;case U:s=14;break t;case Q:s=16,r=null;break t;case I:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Du(s,n,e,i)).elementType=t,e.type=r,e.lanes=o,e}function qu(t,e,n,r){return(t=Du(7,t,r,e)).lanes=n,t}function Vu(t,e,n,r){return(t=Du(23,t,r,e)).elementType=T,t.lanes=n,t}function Gu(t,e,n){return(t=Du(6,t,null,e)).lanes=n,t}function Wu(t,e,n){return(e=Du(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xu(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=je(0),this.expirationTimes=je(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.mutableSourceEagerHydrationData=null}function Ju(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Yu(t,e,n,r){var i=e.current,o=cu(),s=lu(i);t:if(n){e:{if(Jt(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(pi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(pi(c)){n=mi(n,c,u);break t}}n=u}else n=ci;return null===e.context?e.context=n:e.pendingContext=n,(e=so(o,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),uo(i,e),Au(i,s,o),s}function $u(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Zu(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function tc(t,e){Zu(t,e),(t=t.alternate)&&Zu(t,e)}function ec(t,e,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xu(t,e,null!=n&&!0===n.hydrate),e=Du(3,null,null,2===e?7:1===e?3:0),n.current=e,e.stateNode=n,oo(e),t[Yr]=n.current,Lr(8===t.nodeType?t.parentNode:t),r)for(t=0;t<r.length;t++){var i=(e=r[t])._getVersion;i=i(e._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[e,i]:n.mutableSourceEagerHydrationData.push(e,i)}this._internalRoot=n}function nc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function rc(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var t=$u(a);s.call(t)}}Yu(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new ec(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var t=$u(a);u.call(t)}}vu((function(){Yu(e,a,t,i)}))}return $u(a)}function ic(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(e))throw Error(a(200));return Ju(t,e,null,n)}qs=function(t,e,n){var r=e.lanes;if(null!==t)if(t.memoizedProps!==e.pendingProps||Ai.current)Ia=!0;else{if(0===(n&r)){switch(Ia=!1,e.tag){case 3:Ka(e),qo();break;case 5:Qo(e);break;case 1:pi(e.type)&&vi(e);break;case 4:ko(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value;var i=e.type._context;ui(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(n&e.child.childLanes)?Xa(t,e,n):(ui(Po,1&Po.current),null!==(e=ns(t,e,n))?e.sibling:null);ui(Po,1&Po.current);break;case 19:if(r=0!==(n&e.childLanes),0!==(64&t.flags)){if(r)return es(t,e,n);e.flags|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Po,Po.current),r)break;return null;case 23:case 24:return e.lanes=0,Ha(t,e,n)}return ns(t,e,n)}Ia=0!==(16384&t.flags)}else Ia=!1;switch(e.lanes=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=hi(e,li.current),no(e,n),i=ia(null,e,r,t,i,n),e.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,pi(r)){var o=!0;vi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(e);var s=r.getDerivedStateFromProps;"function"===typeof s&&ho(e,r,s,t),i.updater=po,e.stateNode=i,i._reactInternals=e,wo(e,r,t,n),e=za(null,e,r,!0,o,n)}else e.tag=0,Pa(null,e,i,n),e=e.child;return e;case 16:i=e.elementType;t:{switch(null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=(o=i._init)(i._payload),e.type=i,o=e.tag=function(t){if("function"===typeof t)return ju(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===L)return 11;if(t===U)return 14}return 2}(i),t=Wi(i,t),o){case 0:e=Da(null,e,i,t,n);break t;case 1:e=ja(null,e,i,t,n);break t;case 11:e=Oa(null,e,i,t,n);break t;case 14:e=Ta(null,e,i,Wi(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Da(t,e,r,i=e.elementType===r?i:Wi(r,i),n);case 1:return r=e.type,i=e.pendingProps,ja(t,e,r,i=e.elementType===r?i:Wi(r,i),n);case 3:if(Ka(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ao(t,e),lo(e,r,null,n),(r=e.memoizedState.element)===i)qo(),e=ns(t,e,n);else{if((o=(i=e.stateNode).hydrate)&&(Mo=qr(e.stateNode.containerInfo.firstChild),To=e,o=Ho=!0),o){if(null!=(t=i.mutableSourceEagerHydrationData))for(i=0;i<t.length;i+=2)(o=t[i])._workInProgressVersionPrimary=t[i+1],Vo.push(o);for(n=_o(e,null,r,n),e.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Pa(t,e,r,n),qo();e=e.child}return e;case 5:return Qo(e),null===t&&jo(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,Dr(r,i)?s=null:null!==o&&Dr(r,o)&&(e.flags|=16),Ra(t,e),Pa(t,e,s,n),e.child;case 6:return null===t&&jo(e),null;case 13:return Xa(t,e,n);case 4:return ko(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=No(e,null,r,n):Pa(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Oa(t,e,r,i=e.elementType===r?i:Wi(r,i),n);case 7:return Pa(t,e,e.pendingProps,n),e.child;case 8:case 12:return Pa(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var u=e.type._context;if(ui(Xi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=sr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!Ai.current){e=ns(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===u.tag&&((l=so(-1,n&-n)).tag=2,uo(u,l)),u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),eo(u.return,n),c.lanes|=n;break}l=l.next}}else s=10===u.tag&&u.type===e.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===e){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Pa(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,no(e,n),r=r(i=ro(i,o.unstable_observedBits)),e.flags|=1,Pa(t,e,r,n),e.child;case 14:return o=Wi(i=e.type,e.pendingProps),Ta(t,e,i,o=Wi(i.type,o),r,n);case 15:return Ma(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Wi(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,pi(r)?(t=!0,vi(e)):t=!1,no(e,n),mo(e,r,i),wo(e,r,i,n),za(null,e,r,!0,t,n);case 19:return es(t,e,n);case 23:case 24:return Ha(t,e,n)}throw Error(a(156,e.tag))},ec.prototype.render=function(t){Yu(t,this._internalRoot,null,null)},ec.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Yu(null,t,null,(function(){e[Yr]=null}))},ee=function(t){13===t.tag&&(Au(t,4,cu()),tc(t,4))},ne=function(t){13===t.tag&&(Au(t,67108864,cu()),tc(t,67108864))},re=function(t){if(13===t.tag){var e=cu(),n=lu(t);Au(t,n,e),tc(t,n)}},ie=function(t,e){return e()},St=function(t,e,n){switch(e){case"input":if(nt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=ni(r);if(!i)throw Error(a(90));Y(r),nt(r,i)}}}break;case"textarea":ct(t,n);break;case"select":null!=(e=n.value)&&at(t,!!n.multiple,e,!1)}},Qt=mu,It=function(t,e,n,r,i){var o=Ls;Ls|=4;try{return zi(98,t.bind(null,e,n,r,i))}finally{0===(Ls=o)&&(Ks(),qi())}},Pt=function(){0===(49&Ls)&&(function(){if(null!==eu){var t=eu;eu=null,t.forEach((function(t){t.expiredLanes|=24&t.pendingLanes,hu(t,Ri())}))}qi()}(),Uu())},Ot=function(t,e){var n=Ls;Ls|=2;try{return t(e)}finally{0===(Ls=n)&&(Ks(),qi())}};var oc={Events:[ti,ei,ni,kt,Ut,Uu,{current:!1}]},ac={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=Zt(t))?null:t.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{yi=uc.inject(sc),bi=uc}catch(gt){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,e.createPortal=ic,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"===typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=Zt(e))?null:t.stateNode},e.flushSync=function(t,e){var n=Ls;if(0!==(48&n))return t(e);Ls|=1;try{if(t)return zi(99,t.bind(null,e))}finally{Ls=n,qi()}},e.hydrate=function(t,e,n){if(!nc(e))throw Error(a(200));return rc(null,t,e,!0,n)},e.render=function(t,e,n){if(!nc(e))throw Error(a(200));return rc(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!nc(t))throw Error(a(40));return!!t._reactRootContainer&&(vu((function(){rc(null,null,t,!1,(function(){t._reactRootContainer=null,t[Yr]=null}))})),!0)},e.unstable_batchedUpdates=mu,e.unstable_createPortal=function(t,e){return ic(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!nc(n))throw Error(a(200));if(null==t||void 0===t._reactInternals)throw Error(a(38));return rc(t,e,n,!1,r)},e.version="17.0.2"},function(t,e,n){"use strict";t.exports=n(67)},function(t,e,n){"use strict";var r,i,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,A=null,f=function t(){if(null!==l)try{var n=e.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(t,0),r}};r=function(t){null!==l?setTimeout(r,0,t):(l=t,setTimeout(f,0))},i=function(t,e){A=setTimeout(t,e)},o=function(){clearTimeout(A)},e.unstable_shouldYield=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var d=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,w=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<t?Math.floor(1e3/t):5};var b=new MessageChannel,B=b.port2;b.port1.onmessage=function(){if(null!==m){var t=e.unstable_now();y=t+w;try{m(!0,t)?B.postMessage(null):(g=!1,m=null)}catch(n){throw B.postMessage(null),n}}else g=!1},r=function(t){m=t,g||(g=!0,B.postMessage(null))},i=function(t,n){v=h((function(){t(e.unstable_now())}),n)},o=function(){p(v),v=-1}}function x(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<C(i,e)))break t;t[r]=e,t[n]=i,n=r}}function N(t){return void 0===(t=t[0])?null:t}function _(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>C(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var S=[],E=[],L=1,F=null,k=3,U=!1,Q=!1,I=!1;function P(t){for(var e=N(E);null!==e;){if(null===e.callback)_(E);else{if(!(e.startTime<=t))break;_(E),e.sortIndex=e.expirationTime,x(S,e)}e=N(E)}}function O(t){if(I=!1,P(t),!Q)if(null!==N(S))Q=!0,r(T);else{var e=N(E);null!==e&&i(O,e.startTime-t)}}function T(t,n){Q=!1,I&&(I=!1,o()),U=!0;var r=k;try{for(P(n),F=N(S);null!==F&&(!(F.expirationTime>n)||t&&!e.unstable_shouldYield());){var a=F.callback;if("function"===typeof a){F.callback=null,k=F.priorityLevel;var s=a(F.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?F.callback=s:F===N(S)&&_(S),P(n)}else _(S);F=N(S)}if(null!==F)var u=!0;else{var c=N(E);null!==c&&i(O,c.startTime-n),u=!1}return u}finally{F=null,k=r,U=!1}}var M=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){Q||U||(Q=!0,r(T))},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return N(S)},e.unstable_next=function(t){switch(k){case 1:case 2:case 3:var e=3;break;default:e=k}var n=k;k=e;try{return t()}finally{k=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=M,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=k;k=t;try{return e()}finally{k=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,t){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return t={id:L++,callback:n,priorityLevel:t,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>s?(t.sortIndex=a,x(E,t),null===N(S)&&t===N(E)&&(I?o():I=!0,i(O,a-s))):(t.sortIndex=u,x(S,t),Q||U||(Q=!0,r(T))),t},e.unstable_wrapCallback=function(t){var e=k;return function(){var n=k;k=e;try{return t.apply(this,arguments)}finally{k=n}}}},,function(t,e,n){"use strict";n(22);var r=n(3),i=60103;if(e.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),e.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)s.call(e,r)&&!u.hasOwnProperty(r)&&(o[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===o[r]&&(o[r]=e[r]);return{$$typeof:i,type:t,key:c,ref:l,props:o,_owner:a.current}}e.jsx=c,e.jsxs=c},function(t,e,n){"use strict";var r=n(71);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,w=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function B(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case A:case f:case a:case u:case s:case p:return t;default:switch(t=t&&t.$$typeof){case l:case h:case m:case g:case c:return t;default:return e}}case o:return e}}}function x(t){return B(t)===f}e.AsyncMode=A,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=h,e.Fragment=a,e.Lazy=m,e.Memo=g,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return x(t)||B(t)===A},e.isConcurrentMode=x,e.isContextConsumer=function(t){return B(t)===l},e.isContextProvider=function(t){return B(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return B(t)===h},e.isFragment=function(t){return B(t)===a},e.isLazy=function(t){return B(t)===m},e.isMemo=function(t){return B(t)===g},e.isPortal=function(t){return B(t)===o},e.isProfiler=function(t){return B(t)===u},e.isStrictMode=function(t){return B(t)===s},e.isSuspense=function(t){return B(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===a||t===f||t===u||t===s||t===p||t===d||"object"===typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===g||t.$$typeof===c||t.$$typeof===l||t.$$typeof===h||t.$$typeof===w||t.$$typeof===y||t.$$typeof===b||t.$$typeof===v)},e.typeOf=B},function(t,e,n){"use strict";var r=n(8),i=n(36),o=n(75),a=n(42);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(39));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(43),u.CancelToken=n(88),u.isCancel=n(38),u.all=function(t){return Promise.all(t)},u.spread=n(89),u.isAxiosError=n(90),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(8),i=n(37),o=n(76),a=n(77),s=n(42);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(8);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(8),i=n(78),o=n(38),a=n(39);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(8);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(41);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(8);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(84),i=n(85);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(8),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(8);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(43);function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},,function(t,e,n){"use strict";var r=n(93),i=n(94),o=n(18),a=n(98),s=n(99),u=n(100);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=function(){function t(e,n,r){s(this,t),this.ds=e,this.id=n,this.children=r,this.count=0}return u(t,[{key:"countNodes",value:function(t){var e=this;if(this.count++,!t||!Object.keys(t).length)return!1;t[this.children]&&t[this.children].forEach((function(t){e.countNodes(t)}))}},{key:"findNodeById",value:function(t){var e=this,n=this;return this.countNodes(this.ds),new Promise((function(r,i){if(!t)return i(new Error("Parameter id is invalid."));!function t(e,r,i){n.count&&(e[n.id]===r?(n.count=0,i(null,e)):(1===n.count&&(n.count=0,i("The node doesn't exist.",null)),n.count--,e[n.children]&&e[n.children].forEach((function(e){t(e,r,i)}))))}(e.ds,t,(function(t,e){t?i(new Error(t)):r(e)}))}))}},{key:"matchConditions",value:function(t,e){var n=!0;return Object.keys(e).some((function(r){if("string"===typeof e[r]||"number"===typeof e[r]||"boolean"===typeof e[r]){if(t[r]!==e[r])return n=!1,!0}else if(e[r]instanceof RegExp){if(!e[r].test(t[r]))return n=!1,!0}else if("object"===typeof e[r]&&(Object.keys(e[r]).some((function(i){switch(i){case">":if(!(t[r]>e[r][i]))return n=!1,!0;break;case"<":if(!(t[r]<e[r][i]))return n=!1,!0;break;case">=":if(!(t[r]>=e[r][i]))return n=!1,!0;break;case"<=":if(!(t[r]<=e[r][i]))return n=!1,!0;break;case"!==":if(t[r]===e[r][i])return n=!1,!0}})),!n))return!1})),n}},{key:"findChildren",value:function(){var t=a(o.mark((function t(e){var n;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this,e){t.next=3;break}throw new Error("Parameter id is invalid.");case 3:return t.prev=3,t.next=6,this.findParent(e);case 6:return n=t.sent,t.abrupt("return",n[this.children]);case 10:throw t.prev=10,t.t0=t.catch(3),new Error("The child nodes don't exist.");case 13:case"end":return t.stop()}}),t,this,[[3,10]])})));return function(e){return t.apply(this,arguments)}}()},{key:"findNodes",value:function(t){var e=this,n=this;return this.countNodes(this.ds),new Promise(function(){var r=a(o.mark((function r(i,a){var s,u;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(u=function(t,e,r){n.count&&(n.matchConditions(t,e)?(s.push(t),1===n.count&&(n.count=0,r(s.length?null:"The nodes don't exist.",s.slice(0)))):1===n.count&&(n.count=0,r(s.length?null:"The nodes don't exist.",s.slice(0))),n.count--,t[n.children]&&t[n.children].forEach((function(t){u(t,e,r)})))},t&&Object.keys(t).length){r.next=3;break}return r.abrupt("return",a(new Error("Parameter conditions are invalid.")));case 3:s=[],u(e.ds,t,(function(t,e){t?a(new Error(t)):i(e)}));case 5:case"end":return r.stop()}}),r)})));return function(t,e){return r.apply(this,arguments)}}())}},{key:"findParent",value:function(t){var e=this,n=this;return this.countNodes(this.ds),new Promise((function(r,i){if(!t)return i(new Error("Parameter id is invalid."));!function t(e,r,i){1===n.count?(n.count=0,i("The parent node doesn't exist.",null)):(n.count--,"undefined"!==typeof e[n.children]&&(e[n.children].forEach((function(t){t[n.id]===r&&(n.count=0,i(null,e))})),e[n.children].forEach((function(e){t(e,r,i)}))))}(e.ds,t,(function(t,e){t?i(new Error(t)):r(e)}))}))}},{key:"findSiblings",value:function(){var t=a(o.mark((function t(e){var n,r;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,e){t.next=3;break}throw new Error("Parameter id is invalid.");case 3:return t.prev=3,t.next=6,this.findParent(e);case 6:return r=t.sent,t.abrupt("return",r[this.children].filter((function(t){return t[n.id]!==e})));case 10:throw t.prev=10,t.t0=t.catch(3),new Error("The sibling nodes don't exist.");case 13:case"end":return t.stop()}}),t,this,[[3,10]])})));return function(e){return t.apply(this,arguments)}}()},{key:"findAncestors",value:function(t){var e=this;return new Promise(function(){var n=a(o.mark((function n(r,i){var s,u,c,l;return o.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(c=function(){return(c=a(o.mark((function t(n){var r;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n!==e.ds[e.id]){t.next=7;break}if(s.length){t.next=4;break}throw new Error("The ancestor nodes don't exist.");case 4:return t.abrupt("return",s.slice(0));case 7:return t.next=9,e.findParent(n);case 9:return r=t.sent,s.push(r),t.abrupt("return",u(r[e.id]));case 12:t.next=17;break;case 14:throw t.prev=14,t.t0=t.catch(0),new Error("The ancestor nodes don't exist.");case 17:case"end":return t.stop()}}),t,null,[[0,14]])})))).apply(this,arguments)},u=function(t){return c.apply(this,arguments)},t){n.next=4;break}return n.abrupt("return",i(new Error("Parameter id is invalid.")));case 4:return s=[],n.prev=5,n.next=8,u(t);case 8:l=n.sent,r(l),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),i(n.t0);case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(t,e){return n.apply(this,arguments)}}())}},{key:"validateParams",value:function(t,e){if(!t)throw new Error("Parameter id is invalid.");if(!e||e.constructor!==Object&&e.constructor!==Array||e.constructor===Object&&!Object.keys(e).length||e.constructor===Array&&!e.length||e.constructor===Array&&e.length&&!e.every((function(t){return t&&t.constructor===Object&&Object.keys(t).length})))throw new Error("Parameter data is invalid.")}},{key:"addChildren",value:function(){var t=a(o.mark((function t(e,n){var r,a;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.validateParams(e,n),t.prev=1,t.next=4,this.findNodeById(e);case 4:r=t.sent,n.constructor===Object?r[this.children]?r[this.children].push(n):r[this.children]=[n]:r[this.children]?(a=r[this.children]).push.apply(a,i(n)):r[this.children]=n,t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(1),new Error("Failed to add child nodes.");case 11:case"end":return t.stop()}}),t,this,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}()},{key:"addSiblings",value:function(){var t=a(o.mark((function t(e,n){var r,a;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.validateParams(e,n),t.prev=1,t.next=4,this.findParent(e);case 4:r=t.sent,n.constructor===Object?r[this.children].push(n):(a=r[this.children]).push.apply(a,i(n)),t.next=11;break;case 8:throw t.prev=8,t.t0=t.catch(1),new Error("Failed to add sibling nodes.");case 11:case"end":return t.stop()}}),t,this,[[1,8]])})));return function(e,n){return t.apply(this,arguments)}}()},{key:"addRoot",value:function(t){var e=this;if(!t||t.constructor!==Object||t.constructor===Object&&!Object.keys(t).length)throw new Error("Parameter data is invalid.");try{this.ds[this.children]=[Object.assign({},this.ds)],delete t[this.children],Object.keys(this.ds).filter((function(t){return t!==e.children})).forEach((function(n){t[n]||delete e.ds[n]})),Object.assign(this.ds,t)}catch(n){throw new Error("Failed to add root node.")}}},{key:"updateNode",value:function(){var t=a(o.mark((function t(e){var n;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&e.constructor===Object&&(e.constructor!==Object||Object.keys(e).length)&&(e.constructor!==Object||!Object.keys(e).length||e[this.id])){t.next=2;break}throw new Error("Parameter data is invalid.");case 2:return t.prev=2,t.next=5,this.findNodeById(e[this.id]);case 5:n=t.sent,Object.assign(n,e),t.next=12;break;case 9:throw t.prev=9,t.t0=t.catch(2),new Error("Failed to update node.");case 12:case"end":return t.stop()}}),t,this,[[2,9]])})));return function(e){return t.apply(this,arguments)}}()},{key:"updateNodes",value:function(){var t=a(o.mark((function t(e,n){var i,a,s,u;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this,e&&(e.constructor!==Array||e.length)&&n){t.next=3;break}throw new Error("Input parameter is invalid.");case 3:t.prev=3,a=r(e),t.prev=5,a.s();case 7:if((s=a.n()).done){t.next=14;break}return u=s.value,n[i.id]=u,t.next=12,this.updateNode(n);case 12:t.next=7;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(5),a.e(t.t0);case 19:return t.prev=19,a.f(),t.finish(19);case 22:t.next=27;break;case 24:throw t.prev=24,t.t1=t.catch(3),t.t1;case 27:case"end":return t.stop()}}),t,this,[[3,24],[5,16,19,22]])})));return function(e,n){return t.apply(this,arguments)}}()},{key:"removeNode",value:function(){var t=a(o.mark((function t(e){var n,r,i;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,e!==this.ds[this.id]){t.next=3;break}throw new Error("Input parameter is invalid.");case 3:return t.next=5,this.findParent(e);case 5:r=t.sent,i=r[this.children].map((function(t){return t[n.id]})).indexOf(e),r[this.children].splice(i,1),this.count=0;case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"removeNodes",value:function(){var t=a(o.mark((function t(e){var n,i,a,s,u,c,l,A,f;return o.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this,e&&(e.constructor!==Array||e.length)&&(e.constructor!==Object||Object.keys(e).length)){t.next=3;break}throw new Error("Input parameter is invalid.");case 3:if(t.prev=3,e.constructor!==String&&e.constructor!==Number){t.next=9;break}return t.next=7,this.removeNode(e);case 7:t.next=50;break;case 9:if(e.constructor!==Array){t.next=29;break}i=r(e),t.prev=11,i.s();case 13:if((a=i.n()).done){t.next=19;break}return s=a.value,t.next=17,this.removeNode(s);case 17:t.next=13;break;case 19:t.next=24;break;case 21:t.prev=21,t.t0=t.catch(11),i.e(t.t0);case 24:return t.prev=24,i.f(),t.finish(24);case 27:t.next=50;break;case 29:return t.next=31,this.findNodes(e);case 31:u=t.sent,c=u.map((function(t){return t[n.id]})),l=r(c),t.prev=34,l.s();case 36:if((A=l.n()).done){t.next=42;break}return f=A.value,t.next=40,this.removeNode(f);case 40:t.next=36;break;case 42:t.next=47;break;case 44:t.prev=44,t.t1=t.catch(34),l.e(t.t1);case 47:return t.prev=47,l.f(),t.finish(47);case 50:t.next=55;break;case 52:throw t.prev=52,t.t2=t.catch(3),new Error("Failed to remove nodes.");case 55:case"end":return t.stop()}}),t,this,[[3,52],[11,21,24,27],[34,44,47,50]])})));return function(e){return t.apply(this,arguments)}}()}]),t}();e.default=c},function(t,e,n){var r=n(47);t.exports=function(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},function(t,e,n){var r=n(95),i=n(96),o=n(47),a=n(97);t.exports=function(t){return r(t)||i(t)||o(t)||a()}},function(t,e,n){var r=n(48);t.exports=function(t){if(Array.isArray(t))return r(t)}},function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)}))}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}},function(t,e,n){(function(r){var i,o;i=function(){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){if("object"!==i(t.console)){t.console={};for(var e,n,r=t.console,o=function(){},a=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");e=a.pop();)r[e]||(r[e]={});for(;n=s.pop();)r[n]||(r[n]=o)}var u,c,l,A,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var e,n,r,i,o,a=0,s=0,u="",c=[];if(!t)return t;for(;e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,c[s++]=f.charAt(e)+f.charAt(n)+f.charAt(r)+f.charAt(i),a<t.length;);u=c.join("");var l=t.length%3;return(l?u.slice(0,l-3):u)+"===".slice(l||3)}),void 0===t.atob&&(t.atob=function(t){var e,n,r,i,o,a,s=0,u=0,c=[];if(!t)return t;for(t+="";e=(a=f.indexOf(t.charAt(s++))<<18|f.indexOf(t.charAt(s++))<<12|(i=f.indexOf(t.charAt(s++)))<<6|(o=f.indexOf(t.charAt(s++))))>>16&255,n=a>>8&255,r=255&a,c[u++]=64==i?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,r),s<t.length;);return c.join("")}),Array.prototype.map||(Array.prototype.map=function(t){if(null==this||"function"!=typeof t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=new Array(n),i=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in e&&(r[o]=t.call(i,e[o],o,e));return r}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(null==this||"function"!=typeof t)throw new TypeError;for(var n=Object(this),r=n.length>>>0,i=0;i<r;i++)i in n&&t.call(e,n[i],i,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError('"this" is null or not defined');var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=e[i];if(t.call(r,o,i,e))return o;i++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(u=Object.prototype.hasOwnProperty,c=!{toString:null}.propertyIsEnumerable("toString"),A=(l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!==i(t)&&("function"!=typeof t||null===t))throw new TypeError;var e,n,r=[];for(e in t)u.call(t,e)&&r.push(e);if(c)for(n=0;n<A;n++)u.call(t,l[n])&&r.push(l[n]);return r})),"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var n=arguments[e];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());var a,s,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F,k,U,Q,I,P,O,T,M,H,R,D,j,z,K,q,V,G,W,X,J,Y,$,Z,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,At,ft,ht,pt=function(r){function a(t){if("object"!==i(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),o=[];for(var a in e[n]){var s=e[n][a];try{s[0].apply(t,i)}catch(n){r.console&&console.error("jsPDF PubSub Error",n.message,n)}s[1]&&o.push(a)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function s(t,e,n,o){var u={},c=[],l=1;"object"===i(t)&&(t=(u=t).orientation,e=u.unit||e,n=u.format||n,o=u.compress||u.compressPdf||o,c=u.filters||(!0===o?["FlateEncode"]:c),l="number"==typeof u.userUnit?Math.abs(u.userUnit):1),e=e||"mm",t=(""+(t||"P")).toLowerCase();var A=u.putOnlyUsedFonts||!0,f={},h={internal:{},__private__:{}};h.__private__.PubSub=a;var p="1.3",d=h.__private__.getPdfVersion=function(){return p},g=(h.__private__.setPdfVersion=function(t){p=t},{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]}),m=(h.__private__.getPageFormats=function(){return g},h.__private__.getPageFormat=function(t){return g[t]});"string"==typeof n&&(n=m(n)),n=n||m("a4");var v,w=h.f2=h.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},y=h.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return t.toFixed(3)},b="00000000000000000000000000000000",B=h.__private__.getFileId=function(){return b},x=h.__private__.setFileId=function(t){return t=t||"12345678901234567890123456789012".split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),b=t};h.setFileId=function(t){return x(t),this},h.getFileId=function(){return B()};var N=h.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),o=[n,O(r),"'",O(i),"'"].join("");return["D:",t.getFullYear(),O(t.getMonth()+1),O(t.getDate()),O(t.getHours()),O(t.getMinutes()),O(t.getSeconds()),o].join("")},_=h.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),o=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10),new Date(e,n,r,i,o,a,0)},C=h.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),"object"===i(t)&&"[object Date]"===Object.prototype.toString.call(t))e=N(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|\-0[0-9]|\-1[0-1])\'(0[0-9]|[1-5][0-9])\'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return v=e},S=h.__private__.getCreationDate=function(t){var e=v;return"jsDate"===t&&(e=_(v)),e};h.setCreationDate=function(t){return C(t),this},h.getCreationDate=function(t){return S(t)};var E,L,F,k,U,Q,I,P,O=h.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},T=!1,M=[],H=[],R=0,D=(h.__private__.setCustomOutputDestination=function(t){L=t},h.__private__.resetCustomOutputDestination=function(t){L=void 0},h.__private__.out=function(t){var e;return t="string"==typeof t?t:t.toString(),(e=void 0===L?T?M[E]:H:L).push(t),T||(R+=t.length+1),e}),j=h.__private__.write=function(t){return D(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},z=h.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},K=[["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]],q=(h.__private__.getStandardFonts=function(t){return K},u.fontSize||16),V=(h.__private__.setFontSize=h.setFontSize=function(t){return q=t,this},h.__private__.getFontSize=h.getFontSize=function(){return q}),G=u.R2L||!1,W=(h.__private__.setR2L=h.setR2L=function(t){return G=t,this},h.__private__.getR2L=h.getR2L=function(t){return G},h.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^\d*\.?\d*\%$/.test(t))F=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');F=t}else F=parseInt(t,10)}),X=(h.__private__.getZoomMode=function(){return F},h.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');k=t}),J=(h.__private__.getPageMode=function(){return k},h.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');U=t}),Y=(h.__private__.getLayoutMode=function(){return U},h.__private__.setDisplayMode=h.setDisplayMode=function(t,e,n){return W(t),J(e),X(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),$=(h.__private__.getDocumentProperty=function(t){if(-1===Object.keys(Y).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Y[t]},h.__private__.getDocumentProperties=function(t){return Y},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(t){for(var e in Y)Y.hasOwnProperty(e)&&t[e]&&(Y[e]=t[e]);return this},h.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(Y).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Y[t]=e},0),Z=[],tt={},et={},nt=0,rt=[],it=[],ot=new a(h),at=u.hotfixes||[],st=h.__private__.newObject=function(){var t=ut();return ct(t,!0),t},ut=h.__private__.newObjectDeferred=function(){return Z[++$]=function(){return R},$},ct=function(t,e){return e="boolean"==typeof e&&e,Z[t]=R,e&&D(t+" 0 obj"),t},lt=h.__private__.newAdditionalObject=function(){var t={objId:ut(),content:""};return it.push(t),t},At=ut(),ft=ut(),ht=h.__private__.decodeColorString=function(t){var e=t.split(" ");if(2===e.length&&("g"===e[1]||"G"===e[1])){var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},pt=h.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,o=t.ch3,a=t.ch4,s=(t.precision,"draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof n&&"#"!==n.charAt(0)){var u=new RGBColor(n);if(u.ok)n=u.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,o=255&c}if(void 0===r||void 0===a&&n===r&&r===o)if("string"==typeof n)e=n+" "+s[0];else switch(t.precision){case 2:e=w(n/255)+" "+s[0];break;case 3:default:e=y(n/255)+" "+s[0]}else if(void 0===a||"object"===i(a)){if(a&&!isNaN(a.a)&&0===a.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof n)e=[n,r,o,s[1]].join(" ");else switch(t.precision){case 2:e=[w(n/255),w(r/255),w(o/255),s[1]].join(" ");break;default:case 3:e=[y(n/255),y(r/255),y(o/255),s[1]].join(" ")}}else if("string"==typeof n)e=[n,r,o,a,s[2]].join(" ");else switch(t.precision){case 2:e=[w(n/255),w(r/255),w(o/255),w(a/255),s[2]].join(" ");break;case 3:default:e=[y(n/255),y(r/255),y(o/255),y(a/255),s[2]].join(" ")}return e},dt=h.__private__.getFilters=function(){return c},gt=h.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||dt(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,a={};!0===n&&(n=["FlateEncode"]);var u=t.additionalKeyValues||[],c=(a=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());0!==a.data.length&&(u.push({key:"Length",value:a.data.length}),!0===i&&u.push({key:"Length1",value:o})),0!=c.length&&(c.split("/").length-1==1?u.push({key:"Filter",value:c}):u.push({key:"Filter",value:"["+c+"]"})),D("<<");for(var l=0;l<u.length;l++)D("/"+u[l].key+" "+u[l].value);D(">>"),0!==a.data.length&&(D("stream"),D(a.data),D("endstream"))},mt=h.__private__.putPage=function(t){t.mediaBox;var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;ct(r,!0),rt[E].mediaBox.topRightX,rt[E].mediaBox.bottomLeftX,rt[E].mediaBox.topRightY,rt[E].mediaBox.bottomLeftY,D("<</Type /Page"),D("/Parent "+t.rootDictionaryObjId+" 0 R"),D("/Resources "+t.resourceDictionaryObjId+" 0 R"),D("/MediaBox ["+parseFloat(w(t.mediaBox.bottomLeftX))+" "+parseFloat(w(t.mediaBox.bottomLeftY))+" "+w(t.mediaBox.topRightX)+" "+w(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&D("/CropBox ["+w(t.cropBox.bottomLeftX)+" "+w(t.cropBox.bottomLeftY)+" "+w(t.cropBox.topRightX)+" "+w(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&D("/BleedBox ["+w(t.bleedBox.bottomLeftX)+" "+w(t.bleedBox.bottomLeftY)+" "+w(t.bleedBox.topRightX)+" "+w(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&D("/TrimBox ["+w(t.trimBox.bottomLeftX)+" "+w(t.trimBox.bottomLeftY)+" "+w(t.trimBox.topRightX)+" "+w(t.trimBox.topRightY)+"]"),null!==t.artBox&&D("/ArtBox ["+w(t.artBox.bottomLeftX)+" "+w(t.artBox.bottomLeftY)+" "+w(t.artBox.topRightX)+" "+w(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&D("/UserUnit "+t.userUnit),ot.publish("putPage",{objId:r,pageContext:rt[e],pageNumber:e,page:n}),D("/Contents "+i+" 0 R"),D(">>"),D("endobj");var o=n.join("\n");return ct(i,!0),gt({data:o,filters:dt()}),D("endobj"),r},vt=h.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=nt;t++)rt[t].objId=ut(),rt[t].contentsObjId=ut();for(t=1;t<=nt;t++)n.push(mt({number:t,data:M[t],objId:rt[t].objId,contentsObjId:rt[t].contentsObjId,mediaBox:rt[t].mediaBox,cropBox:rt[t].cropBox,bleedBox:rt[t].bleedBox,trimBox:rt[t].trimBox,artBox:rt[t].artBox,userUnit:rt[t].userUnit,rootDictionaryObjId:At,resourceDictionaryObjId:ft}));ct(At,!0),D("<</Type /Pages");var r="/Kids [";for(e=0;e<nt;e++)r+=n[e]+" 0 R ";D(r+"]"),D("/Count "+nt),D(">>"),D("endobj"),ot.publish("postPutPages")},wt=function(){!function(){for(var t in tt)tt.hasOwnProperty(t)&&(!1===A||!0===A&&f.hasOwnProperty(t))&&(e=tt[t],ot.publish("putFont",{font:e,out:D,newObject:st,putStream:gt}),!0!==e.isAlreadyPutted&&(e.objectNumber=st(),D("<<"),D("/Type /Font"),D("/BaseFont /"+e.postScriptName),D("/Subtype /Type1"),"string"==typeof e.encoding&&D("/Encoding /"+e.encoding),D("/FirstChar 32"),D("/LastChar 255"),D(">>"),D("endobj")));var e}(),ot.publish("putResources"),ct(ft,!0),D("<<"),function(){for(var t in D("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),D("/Font <<"),tt)tt.hasOwnProperty(t)&&(!1===A||!0===A&&f.hasOwnProperty(t))&&D("/"+t+" "+tt[t].objectNumber+" 0 R");D(">>"),D("/XObject <<"),ot.publish("putXobjectDict"),D(">>")}(),D(">>"),D("endobj"),ot.publish("postPutResources")},yt=function(t,e,n){et.hasOwnProperty(e)||(et[e]={}),et[e][n]=t},bt=function(t,e,n,r,i){i=i||!1;var o="F"+(Object.keys(tt).length+1).toString(10),a={id:o,postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i,metadata:{}};return ot.publish("addFont",{font:a,instance:this}),void 0!==o&&(tt[o]=a,yt(o,e,n)),o},Bt=h.__private__.pdfEscape=h.pdfEscape=function(t,e){return function(t,e){var n,r,i,o,a,s,u,c,l;if(i=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&tt[Q].metadata&&tt[Q].metadata[i]&&tt[Q].metadata[i].encoding&&(o=tt[Q].metadata[i].encoding,!a&&tt[Q].encoding&&(a=tt[Q].encoding),!a&&o.codePages&&(a=o.codePages[0]),"string"==typeof a&&(a=o[a]),a)){for(u=!1,s=[],n=0,r=t.length;n<r;n++)(c=a[t.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(u=!0);t=s.join("")}for(n=t.length;void 0===u&&0!==n;)t.charCodeAt(n-1)>>8&&(u=!0),n--;if(!u)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((l=(c=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(c-(l<<8))}return String.fromCharCode.apply(void 0,s)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xt=h.__private__.beginPage=function(t,e){var r,i="string"==typeof e&&e.toLowerCase();if("string"==typeof t&&(r=m(t.toLowerCase()))&&(t=r[0],e=r[1]),Array.isArray(t)&&(e=t[1],t=t[0]),(isNaN(t)||isNaN(e))&&(t=n[0],e=n[1]),i){switch(i.substr(0,1)){case"l":t<e&&(i="s");break;case"p":e<t&&(i="s")}"s"===i&&(r=t,t=e,e=r)}(14400<t||14400<e)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),t=Math.min(14400,t),e=Math.min(14400,e)),n=[t,e],T=!0,M[++nt]=[],rt[nt]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t),topRightY:Number(e)}},_t(nt)},Nt=function(){xt.apply(this,arguments),qt(Kt),D(Zt),0!==oe&&D(oe+" J"),0!==se&&D(se+" j"),ot.publish("addPage",{pageNumber:nt})},_t=function(t){0<t&&t<=nt&&(E=t)},Ct=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return M.length-1},St=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:tt[Q].fontName,e=void 0!==e?e:tt[Q].fontStyle,r=t.toLowerCase(),void 0!==et[r]&&void 0!==et[r][e]?i=et[r][e]:void 0!==et[t]&&void 0!==et[t][e]?i=et[t][e]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=et.times[e])&&(i=et.times.normal),i},Et=h.__private__.putInfo=function(){for(var t in st(),D("<<"),D("/Producer (jsPDF "+s.version+")"),Y)Y.hasOwnProperty(t)&&Y[t]&&D("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+Bt(Y[t])+")");D("/CreationDate ("+v+")"),D(">>"),D("endobj")},Lt=h.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||At;switch(st(),D("<<"),D("/Type /Catalog"),D("/Pages "+e+" 0 R"),F||(F="fullwidth"),F){case"fullwidth":D("/OpenAction [3 0 R /FitH null]");break;case"fullheight":D("/OpenAction [3 0 R /FitV null]");break;case"fullpage":D("/OpenAction [3 0 R /Fit]");break;case"original":D("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+F;"%"===n.substr(n.length-1)&&(F=parseInt(F)/100),"number"==typeof F&&D("/OpenAction [3 0 R /XYZ null null "+w(F)+"]")}switch(U||(U="continuous"),U){case"continuous":D("/PageLayout /OneColumn");break;case"single":D("/PageLayout /SinglePage");break;case"two":case"twoleft":D("/PageLayout /TwoColumnLeft");break;case"tworight":D("/PageLayout /TwoColumnRight")}k&&D("/PageMode /"+k),ot.publish("putCatalog"),D(">>"),D("endobj")},kt=h.__private__.putTrailer=function(){D("trailer"),D("<<"),D("/Size "+($+1)),D("/Root "+$+" 0 R"),D("/Info "+($-1)+" 0 R"),D("/ID [ <"+b+"> <"+b+"> ]"),D(">>")},Ut=h.__private__.putHeader=function(){D("%PDF-"+p),D("%\xba\xdf\xac\xe0")},Qt=h.__private__.putXRef=function(){var t=1,e="0000000000";for(D("xref"),D("0 "+($+1)),D("0000000000 65535 f "),t=1;t<=$;t++)"function"==typeof Z[t]?D((e+Z[t]()).slice(-10)+" 00000 n "):void 0!==Z[t]?D((e+Z[t]).slice(-10)+" 00000 n "):D("0000000000 00000 n ")},It=h.__private__.buildDocument=function(){T=!1,R=$=0,H=[],Z=[],it=[],At=ut(),ft=ut(),ot.publish("buildDocument"),Ut(),vt(),function(){ot.publish("putAdditionalObjects");for(var t=0;t<it.length;t++){var e=it[t];ct(e.objId,!0),D(e.content),D("endobj")}ot.publish("postPutAdditionalObjects")}(),wt(),Et(),Lt();var t=R;return Qt(),kt(),D("startxref"),D(""+t),D("%%EOF"),T=!0,H.join("\n")},Pt=h.__private__.getBlob=function(t){return new Blob([z(t)],{type:"application/pdf"})},Ot=h.output=h.__private__.output=((P=function(t,e){e=e||{};var n=It();switch("string"==typeof e?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return n;case"save":h.save(e.filename);break;case"arraybuffer":return z(n);case"blob":return Pt(n);case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(Pt(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+e.filename+";base64,"+btoa(n);case"dataurlnewwindow":var i='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',o=r.open();if(null!==o&&o.document.write(i),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return r.document.location.href="data:application/pdf;filename="+e.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return P.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!r.console)throw new Error(n);r.console.error(n,t),r.alert&&alert(n)}},(P.foo.bar=P).foo),Tt=function(t){return!0===Array.isArray(at)&&-1<at.indexOf(t)};switch(e){case"pt":I=1;break;case"mm":I=72/25.4;break;case"cm":I=72/2.54;break;case"in":I=72;break;case"px":I=1==Tt("px_scaling")?.75:96/72;break;case"pc":case"em":I=12;break;case"ex":I=6;break;default:throw new Error("Invalid unit: "+e)}C(),x();var Mt=h.__private__.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:rt[t].objId,pageNumber:t,pageContext:rt[t]}},Ht=h.__private__.getPageInfoByObjId=function(t){for(var e in rt)if(rt[e].objId===t)break;if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return Mt(e)},Rt=h.__private__.getCurrentPageInfo=function(){return{objId:rt[E].objId,pageNumber:E,pageContext:rt[E]}};h.addPage=function(){return Nt.apply(this,arguments),this},h.setPage=function(){return _t.apply(this,arguments),this},h.insertPage=function(t){return this.addPage(),this.movePage(E,t),this},h.movePage=function(t,e){if(e<t){for(var n=M[t],r=rt[t],i=t;e<i;i--)M[i]=M[i-1],rt[i]=rt[i-1];M[e]=n,rt[e]=r,this.setPage(e)}else if(t<e){for(n=M[t],r=rt[t],i=t;i<e;i++)M[i]=M[i+1],rt[i]=rt[i+1];M[e]=n,rt[e]=r,this.setPage(e)}return this},h.deletePage=function(){return function(t){0<t&&t<=nt&&(M.splice(t,1),--nt<E&&(E=nt),this.setPage(E))}.apply(this,arguments),this},h.__private__.text=h.text=function(t,e,n,r){var o;"number"!=typeof t||"number"!=typeof e||"string"!=typeof n&&!Array.isArray(n)||(o=n,n=e,e=t,t=o);var a=arguments[3],s=arguments[4],u=arguments[5];if("object"===i(a)&&null!==a||("string"==typeof s&&(u=s,s=null),"string"==typeof a&&(u=a,a=null),"number"==typeof a&&(s=a,a=null),r={flags:a,angle:s,align:u}),(a=a||{}).noBOM=a.noBOM||!0,a.autoencode=a.autoencode||!0,isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return h;var c,l="",A="number"==typeof r.lineHeightFactor?r.lineHeightFactor:zt,h=r.scope||this;function p(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&1===e.length?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function d(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,o=t.concat(),a=[],s=o.length;s--;)"string"==typeof(r=o.shift())?a.push(e(r)[0]):Array.isArray(r)&&"string"===r[0]&&(i=e(r[0],r[1],r[2]),a.push([i[0],i[1],i[2]]));n=a}return n}var g=!1,m=!0;if("string"==typeof t)g=!0;else if(Array.isArray(t)){for(var v,b=t.concat(),B=[],x=b.length;x--;)("string"!=typeof(v=b.shift())||Array.isArray(v)&&"string"!=typeof v[0])&&(m=!1);g=m}if(!1===g)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');var N=tt[Q].encoding;"WinAnsiEncoding"!==N&&"StandardEncoding"!==N||(t=d(t,(function(t,e,n){return[(i=t,i=i.split("\t").join(Array(r.TabLen||9).join(" ")),Bt(i,a)),e,n];var i}))),"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var _=q/h.internal.scaleFactor,C=_*(zt-1);switch(r.baseline){case"bottom":n-=C;break;case"top":n+=_-C;break;case"hanging":n+=_-2*C;break;case"middle":n+=_/2-C}0<(j=r.maxWidth||0)&&("string"==typeof t?t=h.splitTextToSize(t,j):"[object Array]"===Object.prototype.toString.call(t)&&(t=h.splitTextToSize(t.join(" "),j)));var S={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Bt,activeFontKey:Q,fonts:tt,activeFontSize:q}};ot.publish("preProcessText",S),t=S.text,s=(r=S.options).angle;var E=h.internal.scaleFactor,L=[];if(s){s*=Math.PI/180;var F=Math.cos(s),k=Math.sin(s);L=[w(F),w(k),w(-1*k),w(F)]}void 0!==(R=r.charSpace)&&(l+=y(R*E)+" Tc\n"),r.lang;var U=-1,I=void 0!==r.renderingMode?r.renderingMode:r.stroke,P=h.internal.getCurrentPageInfo().pageContext;switch(I){case 0:case!1:case"fill":U=0;break;case 1:case!0:case"stroke":U=1;break;case 2:case"fillThenStroke":U=2;break;case 3:case"invisible":U=3;break;case 4:case"fillAndAddForClipping":U=4;break;case 5:case"strokeAndAddPathForClipping":U=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":U=6;break;case 7:case"addToPathForClipping":U=7}var O=void 0!==P.usedRenderingMode?P.usedRenderingMode:-1;-1!==U?l+=U+" Tr\n":-1!==O&&(l+="0 Tr\n"),-1!==U&&(P.usedRenderingMode=U),u=r.align||"left";var T=q*A,M=h.internal.pageSize.getWidth(),H=(E=h.internal.scaleFactor,tt[Q]),R=r.charSpace||re,j=r.maxWidth||0,z=(a={},[]);if("[object Array]"===Object.prototype.toString.call(t)){var K,V;B=p(t),"left"!==u&&(V=B.map((function(t){return h.getStringUnitWidth(t,{font:H,charSpace:R,fontSize:q})*q/E}))),Math.max.apply(Math,V);var W,X=0;if("right"===u){e-=V[0],t=[];var J=0;for(x=B.length;J<x;J++)V[J],K=0===J?(W=Xt(e),Jt(n)):(W=(X-V[J])*E,-T),t.push([B[J],W,K]),X=V[J]}else if("center"===u)for(e-=V[0]/2,t=[],J=0,x=B.length;J<x;J++)V[J],K=0===J?(W=Xt(e),Jt(n)):(W=(X-V[J])/2*E,-T),t.push([B[J],W,K]),X=V[J];else if("left"===u)for(t=[],J=0,x=B.length;J<x;J++)K=0===J?Jt(n):-T,W=0===J?Xt(e):0,t.push(B[J]);else{if("justify"!==u)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],j=0!==j?j:M,J=0,x=B.length;J<x;J++)K=0===J?Jt(n):-T,W=0===J?Xt(e):0,J<x-1&&z.push(((j-V[J])/(B[J].split(" ").length-1)*E).toFixed(2)),t.push([B[J],W,K])}}!0===("boolean"==typeof r.R2L?r.R2L:G)&&(t=d(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),S={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Bt,activeFontKey:Q,fonts:tt,activeFontSize:q}},ot.publish("postProcessText",S),t=S.text,c=S.mutex.isHex,B=p(t),t=[];var Y,$,Z,et=0,nt=(x=B.length,"");for(J=0;J<x;J++)nt="",Array.isArray(B[J])?(Y=parseFloat(B[J][1]),$=parseFloat(B[J][2]),Z=(c?"<":"(")+B[J][0]+(c?">":")"),et=1):(Y=Xt(e),$=Jt(n),Z=(c?"<":"(")+B[J]+(c?">":")")),void 0!==z&&void 0!==z[J]&&(nt=z[J]+" Tw\n"),0!==L.length&&0===J?t.push(nt+L.join(" ")+" "+Y.toFixed(2)+" "+$.toFixed(2)+" Tm\n"+Z):1===et||0===et&&0===J?t.push(nt+Y.toFixed(2)+" "+$.toFixed(2)+" Td\n"+Z):t.push(nt+Z);t=0===et?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var rt="BT\n/"+Q+" "+q+" Tf\n"+(q*A).toFixed(2)+" TL\n"+ee+"\n";return rt+=l,rt+=t,D(rt+="ET"),f[Q]=!0,h},h.__private__.lstext=h.lstext=function(t,e,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(t,e,n,{charSpace:r})},h.__private__.clip=h.clip=function(t){D("evenodd"===t?"W*":"W"),D("n")},h.__private__.clip_fixed=h.clip_fixed=function(t){console.log("clip_fixed is deprecated"),h.clip(t)};var Dt=h.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(t)&&(e=!0),e},jt=h.__private__.getStyle=function(t){var e="S";return"F"===t?e="f":"FD"===t||"DF"===t?e="B":"f"!==t&&"f*"!==t&&"B"!==t&&"B*"!==t||(e=t),e};h.__private__.line=h.line=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-t,r-e]],t,e)},h.__private__.lines=h.lines=function(t,e,n,r,i,o){var a,s,u,c,l,A,f,h,p,d,g,m;if("number"==typeof t&&(m=n,n=e,e=t,t=m),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!Dt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(D(y(Xt(e))+" "+y(Jt(n))+" m "),a=r[0],s=r[1],c=t.length,d=e,g=n,u=0;u<c;u++)2===(l=t[u]).length?(d=l[0]*a+d,g=l[1]*s+g,D(y(Xt(d))+" "+y(Jt(g))+" l")):(A=l[0]*a+d,f=l[1]*s+g,h=l[2]*a+d,p=l[3]*s+g,d=l[4]*a+d,g=l[5]*s+g,D(y(Xt(A))+" "+y(Jt(f))+" "+y(Xt(h))+" "+y(Jt(p))+" "+y(Xt(d))+" "+y(Jt(g))+" c"));return o&&D(" h"),null!==i&&D(jt(i)),this},h.__private__.rect=h.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Dt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return D([w(Xt(t)),w(Jt(e)),w(n*I),w(-r*I),"re"].join(" ")),null!==i&&D(jt(i)),this},h.__private__.triangle=h.triangle=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Dt(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,o-r],[t-i,e-o]],t,e,[1,1],a,!0),this},h.__private__.roundedRect=h.roundedRect=function(t,e,n,r,i,o,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o)||!Dt(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,r-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-r],[0,-o*s,i*s,-o,i,-o]],t+i,e,[1,1],a),this},h.__private__.ellipse=h.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!Dt(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*r;return D([w(Xt(t+n)),w(Jt(e)),"m",w(Xt(t+n)),w(Jt(e-a)),w(Xt(t+o)),w(Jt(e-r)),w(Xt(t)),w(Jt(e-r)),"c"].join(" ")),D([w(Xt(t-o)),w(Jt(e-r)),w(Xt(t-n)),w(Jt(e-a)),w(Xt(t-n)),w(Jt(e)),"c"].join(" ")),D([w(Xt(t-n)),w(Jt(e+a)),w(Xt(t-o)),w(Jt(e+r)),w(Xt(t)),w(Jt(e+r)),"c"].join(" ")),D([w(Xt(t+o)),w(Jt(e+r)),w(Xt(t+n)),w(Jt(e+a)),w(Xt(t+n)),w(Jt(e)),"c"].join(" ")),null!==i&&D(jt(i)),this},h.__private__.circle=h.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!Dt(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},h.setFont=function(t,e){return Q=St(t,e,{disableWarning:!1}),this},h.setFontStyle=h.setFontType=function(t){return Q=St(void 0,t),this},h.__private__.getFontList=h.getFontList=function(){var t,e,n,r={};for(t in et)if(et.hasOwnProperty(t))for(e in r[t]=n=[],et[t])et[t].hasOwnProperty(e)&&n.push(e);return r},h.addFont=function(t,e,n,r){bt.call(this,t,e,n,r=r||"Identity-H")};var zt,Kt=u.lineWidth||.200025,qt=h.__private__.setLineWidth=h.setLineWidth=function(t){return D((t*I).toFixed(2)+" w"),this},Vt=(h.__private__.setLineDash=s.API.setLineDash=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return(t*I).toFixed(3)})).join(" "),e=parseFloat((e*I).toFixed(3)),D("["+t+"] "+e+" d"),this},h.__private__.getLineHeight=h.getLineHeight=function(){return q*zt}),Gt=(Vt=h.__private__.getLineHeight=h.getLineHeight=function(){return q*zt},h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(zt=t),this}),Wt=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return zt};Gt(u.lineHeight);var Xt=h.__private__.getHorizontalCoordinate=function(t){return t*I},Jt=h.__private__.getVerticalCoordinate=function(t){return rt[E].mediaBox.topRightY-rt[E].mediaBox.bottomLeftY-t*I},Yt=h.__private__.getHorizontalCoordinateString=function(t){return w(t*I)},$t=h.__private__.getVerticalCoordinateString=function(t){return w(rt[E].mediaBox.topRightY-rt[E].mediaBox.bottomLeftY-t*I)},Zt=u.strokeColor||"0 G",te=(h.__private__.getStrokeColor=h.getDrawColor=function(){return ht(Zt)},h.__private__.setStrokeColor=h.setDrawColor=function(t,e,n,r){return Zt=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),D(Zt),this},u.fillColor||"0 g"),ee=(h.__private__.getFillColor=h.getFillColor=function(){return ht(te)},h.__private__.setFillColor=h.setFillColor=function(t,e,n,r){return te=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),D(te),this},u.textColor||"0 g"),ne=h.__private__.getTextColor=h.getTextColor=function(){return ht(ee)},re=(h.__private__.setTextColor=h.setTextColor=function(t,e,n,r){return ee=pt({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this},u.charSpace||0),ie=h.__private__.getCharSpace=h.getCharSpace=function(){return re},oe=(h.__private__.setCharSpace=h.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return re=t,this},0);h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(t){var e=h.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return D((oe=e)+" J"),this};var ae,se=0;for(var ue in h.__private__.setLineJoin=h.setLineJoin=function(t){var e=h.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return D((se=e)+" j"),this},h.__private__.setMiterLimit=h.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return ae=parseFloat(w(t*I)),D(ae+" M"),this},h.save=function(t,e){if(t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1!==e.returnPromise)return new Promise((function(e,n){try{var i=Ft(Pt(It()),t);"function"==typeof Ft.unload&&r.setTimeout&&setTimeout(Ft.unload,911),e(i)}catch(e){n(e.message)}}));Ft(Pt(It()),t),"function"==typeof Ft.unload&&r.setTimeout&&setTimeout(Ft.unload,911)},s.API)s.API.hasOwnProperty(ue)&&("events"===ue&&s.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(ot,s.API.events):h[ue]=s.API[ue]);return h.internal={pdfEscape:Bt,getStyle:jt,getFont:function(){return tt[St.apply(h,arguments)]},getFontSize:V,getCharSpace:ie,getTextColor:ne,getLineHeight:Vt,getLineHeightFactor:Wt,write:j,getHorizontalCoordinate:Xt,getVerticalCoordinate:Jt,getCoordinateString:Yt,getVerticalCoordinateString:$t,collections:{},newObject:st,newAdditionalObject:lt,newObjectDeferred:ut,newObjectDeferredBegin:ct,getFilters:dt,putStream:gt,events:ot,scaleFactor:I,pageSize:{getWidth:function(){return(rt[E].mediaBox.topRightX-rt[E].mediaBox.bottomLeftX)/I},setWidth:function(t){rt[E].mediaBox.topRightX=t*I+rt[E].mediaBox.bottomLeftX},getHeight:function(){return(rt[E].mediaBox.topRightY-rt[E].mediaBox.bottomLeftY)/I},setHeight:function(t){rt[E].mediaBox.topRightY=t*I+rt[E].mediaBox.bottomLeftY}},output:Ot,getNumberOfPages:Ct,pages:M,out:D,f2:w,f3:y,getPageInfo:Mt,getPageInfoByObjId:Ht,getCurrentPageInfo:Rt,getPDFVersion:d,hasHotfix:Tt},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return(rt[E].mediaBox.topRightX-rt[E].mediaBox.bottomLeftX)/I},set:function(t){rt[E].mediaBox.topRightX=t*I+rt[E].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return(rt[E].mediaBox.topRightY-rt[E].mediaBox.bottomLeftY)/I},set:function(t){rt[E].mediaBox.topRightY=t*I+rt[E].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(t){for(var e=0,n=K.length;e<n;e++){var r=bt(t[e][0],t[e][1],t[e][2],K[e][3],!0);f[r]=!0;var i=t[e][0].split("-");yt(r,i[0],i[1]||"")}ot.publish("addFonts",{fonts:tt,dictionary:et})}(K),Q="F1",Nt(n,t),ot.publish("initialized"),h}return s.API={events:[]},s.version="1.5.3",void 0!==(o=function(){return s}.call(e,n,e,t))&&(t.exports=o),s}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(t,e){var n,r=1,o=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},a=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},s=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(2)},u=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return t.toFixed(5)};t.__acroform__={};var c=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},l=function(t){return t*r},A=function(t){return t/r},f=function(t){var e=new I,n=W.internal.getHeight(t)||0,r=W.internal.getWidth(t)||0;return e.BBox=[0,0,Number(s(r)),Number(s(n))],e},h=t.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},p=t.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},d=t.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},g=t.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return d(t,e-1)},m=t.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return h(t,e-1)},v=t.__acroform__.clearBitForPdf=function(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p(t,e-1)},w=t.__acroform__.calculateCoordinates=function(t){var e=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=t[0],i=t[1],o=t[2],a=t[3],u={};return u.lowerLeft_X=e(r)||0,u.lowerLeft_Y=n(i+a)||0,u.upperRight_X=e(r+o)||0,u.upperRight_Y=n(i)||0,[Number(s(u.lowerLeft_X)),Number(s(u.lowerLeft_Y)),Number(s(u.upperRight_X)),Number(s(u.upperRight_Y))]},y=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],r=t.V||t.DV,i=b(t,r),o=n.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.__private__.encodeColorString(t.color)),e.push("/"+o+" "+s(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var a=new f(t);return a.stream=e.join("\n"),a}},b=function(t,e){var r=t.maxFontSize||12,i=(t.fontName,{text:"",fontSize:""}),a=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),u=(n.__private__.encodeColorString(t.color),r),c=W.internal.getHeight(t)||0;c=c<0?-c:c;var l=W.internal.getWidth(t)||0;l=l<0?-l:l;var A=function(e,n,r){if(e+1<a.length){var i=n+" "+a[e+1];return B(i,t,r).width<=l-4}return!1};u++;t:for(;;){e="";var f=B("3",t,--u).height,h=t.multiline?c-u:(c-f)/2,p=-2,d=h+=2,g=0,m=0,v=0;if(u<=0){e="(...) Tj\n",e+="% Width of Text: "+B(e,t,u=12).width+", FieldWidth:"+l+"\n";break}v=B(a[0]+" ",t,u).width;var w="",y=0;for(var b in a)if(a.hasOwnProperty(b)){w=" "==(w+=a[b]+" ").substr(w.length-1)?w.substr(0,w.length-1):w;var x=parseInt(b);v=B(w+" ",t,u).width;var N=A(x,w,u),_=b>=a.length-1;if(N&&!_){w+=" ";continue}if(N||_){if(_)m=x;else if(t.multiline&&c<(f+2)*(y+2)+2)continue t}else{if(!t.multiline)continue t;if(c<(f+2)*(y+2)+2)continue t;m=x}for(var C="",S=g;S<=m;S++)C+=a[S]+" ";switch(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,v=B(C,t,u).width,t.textAlign){case"right":p=l-v-2;break;case"center":p=(l-v)/2;break;case"left":default:p=2}e+=s(p)+" "+s(d)+" Td\n",e+="("+o(C)+") Tj\n",e+=-s(p)+" 0 Td\n",d=-(u+2),v=0,g=m+1,y++,w=""}break}return i.text=e,i.fontSize=u,i},B=function(t,e,r){var i=n.internal.getFont(e.fontName,e.fontStyle),o=n.getStringUnitWidth(t,{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:n.getStringUnitWidth("3",{font:i,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},x={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},N=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];r.objId=void 0,r.hasAnnotation&&_.call(n,r)}},_=function(t){var e={type:"reference",object:t};void 0===n.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===e.type&&t.object===e.object}))&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},C=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},S=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},E=function(t){var e=!t;for(var r in t||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var o=t[r],a=[],s=o.Rect;if(o.Rect&&(o.Rect=w.call(this,o.Rect)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=W.createDefaultAppearanceStream(o),"object"===i(o)&&"function"==typeof o.getKeyValueListForStream&&(a=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=y.call(this,o);a.push({key:"AP",value:"<</N "+u+">>"}),n.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var c="";for(var l in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(l)){var A=o.appearanceStreamContent[l];if(c+="/"+l+" ",c+="<<",1<=Object.keys(A).length||Array.isArray(A))for(var r in A){var f;A.hasOwnProperty(r)&&("function"==typeof(f=A[r])&&(f=f.call(this,o)),c+="/"+r+" "+f+" ",0<=n.internal.acroformPlugin.xForms.indexOf(f)||n.internal.acroformPlugin.xForms.push(f))}else"function"==typeof(f=A)&&(f=f.call(this,o)),c+="/"+r+" "+f,0<=n.internal.acroformPlugin.xForms.indexOf(f)||n.internal.acroformPlugin.xForms.push(f);c+=">>"}a.push({key:"AP",value:"<<\n"+c+">>"})}n.internal.putStream({additionalKeyValues:a}),n.internal.out("endobj")}e&&L.call(this,n.internal.acroformPlugin.xForms)},L=function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=e,o=t[e];n.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===i(o)&&"function"==typeof o.putStream&&o.putStream(),delete t[r]}},F=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,O.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(x)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new P,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",S),n.internal.events.subscribe("buildDocument",N),n.internal.events.subscribe("putCatalog",C),n.internal.events.subscribe("postPutPages",E),n.internal.acroformPlugin.isInitialized=!0}},k=t.__acroform__.arrayToPdfArray=function(t){if(Array.isArray(t)){for(var e="[",n=0;n<t.length;n++)switch(0!==n&&(e+=" "),i(t[n])){case"boolean":case"number":case"object":e+=t[n].toString();break;case"string":"/"!==t[n].substr(0,1)?e+="("+o(t[n].toString())+")":e+=t[n].toString()}return e+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},U=function(t){return(t=t||"").toString(),"("+o(t)+")"},Q=function(){var t;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(t||(t=n.internal.newObjectDeferred()),!t)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return t},set:function(e){t=e}})};Q.prototype.toString=function(){return this.objId+" 0 R"},Q.prototype.putStream=function(){var t=this.getKeyValueListForStream();n.internal.putStream({data:this.stream,additionalKeyValues:t}),n.internal.out("endobj")},Q.prototype.getKeyValueListForStream=function(){return function(t){var e=[],n=Object.getOwnPropertyNames(t).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)}));for(var r in n)if(!1===Object.getOwnPropertyDescriptor(t,n[r]).configurable){var i=n[r],o=t[i];o&&(Array.isArray(o)?e.push({key:i,value:k(o)}):o instanceof Q?e.push({key:i,value:o.objId+" 0 R"}):"function"!=typeof o&&e.push({key:i,value:o}))}return e}(this)};var I=function(){Q.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};c(I,Q);var P=function(){Q.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<e.length?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t)return"("+t+")"},set:function(e){t=e}})};c(P,Q);var O=function t(){Q.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(e,3))},set:function(t){!0===Boolean(t)?this.F=m(e,3):this.F=v(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:A(r[0])},set:function(t){r[0]=l(t)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:A(r[1])},set:function(t){r[1]=l(t)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:A(r[2])},set:function(t){r[2]=l(t)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:A(r[3])},set:function(t){r[3]=l(t)}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof K)return;s="FieldObject"+t.FieldNum++}return"("+o(s)+")"},set:function(t){s=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(t){s=t}});var u="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return u},set:function(t){u=t}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var f=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A(f)},set:function(t){f=l(t)}});var h=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return A(h)},set:function(t){h=l(t)}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(t){p=t}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof K||this instanceof V))return U(d)},set:function(t){t=t.toString(),d=t}});var w=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(w)return this instanceof D==0?U(w):w},set:function(t){t=t.toString(),w=this instanceof D==0?"("===t.substr(0,1)?a(t.substr(1,t.length-2)):a(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof D==1?a(w.substr(1,w.length-1)):w},set:function(t){t=t.toString(),w=this instanceof D==1?"/"+t:t}});var y=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(y)return this instanceof D==0?U(y):y},set:function(t){t=t.toString(),y=this instanceof D==0?"("===t.substr(0,1)?a(t.substr(1,t.length-2)):a(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof D==1?a(y.substr(1,y.length-1)):y},set:function(t){t=t.toString(),y=this instanceof D==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var b,B=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return B},set:function(t){t=Boolean(t),B=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(b)return b},set:function(t){b=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,1):this.Ff=v(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,2):this.Ff=v(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,3):this.Ff=v(this.Ff,3)}});var x=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==x)return x},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');x=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t="left";switch(x){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:x=2;break;case"center":case 1:x=1;break;case"left":case 0:default:x=0}}})};c(O,Q);var T=function(){O.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return k(e)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,18):this.Ff=v(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=m(this.Ff,19):this.Ff=v(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=m(this.Ff,20),e.sort()):this.Ff=v(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,22):this.Ff=v(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,27):this.Ff=v(this.Ff,27)}}),this.hasAppearanceStream=!1};c(T,O);var M=function(){T.call(this),this.fontName="helvetica",this.combo=!1};c(M,T);var H=function(){M.call(this),this.combo=!0};c(H,M);var R=function(){H.call(this),this.edit=!0};c(R,H);var D=function(){O.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,15):this.Ff=v(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,16):this.Ff=v(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,17):this.Ff=v(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,26):this.Ff=v(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(e).length){var t,n=[];for(t in n.push("<<"),e)n.push("/"+t+" ("+e[t]+")");return n.push(">>"),n.join("\n")}},set:function(t){"object"===i(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};c(D,O);var j=function(){D.call(this),this.pushButton=!0};c(j,D);var z=function(){D.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};c(z,D);var K=function(){var t,e;O.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t,e=[];for(t in e.push("<<"),r)e.push("/"+t+" ("+r[t]+")");return e.push(">>"),e.join("\n")},set:function(t){"object"===i(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=W.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};c(K,O),z.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},z.prototype.createOption=function(t){this.Kids.length;var e=new K;return e.Parent=this,e.optionName=t,this.Kids.push(e),X.call(this,e),e};var q=function(){D.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=W.CheckBox.createAppearanceStream()};c(q,D);var V=function(){O.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,13):this.Ff=v(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,21):this.Ff=v(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,23):this.Ff=v(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,24):this.Ff=v(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,25):this.Ff=v(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,26):this.Ff=v(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};c(V,O);var G=function(){V.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(g(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=m(this.Ff,14):this.Ff=v(this.Ff,14)}}),this.password=!0};c(G,V);var W={CheckBox:{createAppearanceStream:function(){return{N:{On:W.CheckBox.YesNormal},D:{On:W.CheckBox.YesPushDown,Off:W.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=f(t),r=[],i=n.internal.getFont(t.fontName,t.fontStyle).id,o=n.__private__.encodeColorString(t.color),a=b(t,t.caption);return r.push("0.749023 g"),r.push("0 0 "+s(W.internal.getWidth(t))+" "+s(W.internal.getHeight(t))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+i+" "+s(a.fontSize)+" Tf "+o),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=f(t),r=n.internal.getFont(t.fontName,t.fontStyle).id,i=n.__private__.encodeColorString(t.color),o=[],a=W.internal.getHeight(t),u=W.internal.getWidth(t),c=b(t,t.caption);return o.push("1 g"),o.push("0 0 "+s(u)+" "+s(a)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(u-1)+" "+s(a-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+s(c.fontSize)+" Tf "+i),o.push(c.text),o.push("ET"),o.push("Q"),e.stream=o.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(W.internal.getWidth(t))+" "+s(W.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:W.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=W.RadioButton.Circle.YesNormal,e.D[t]=W.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=f(t),n=[],r=W.internal.getWidth(t)<=W.internal.getHeight(t)?W.internal.getWidth(t)/4:W.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=W.internal.Bezier_C,o=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+u(W.internal.getWidth(t)/2)+" "+u(W.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=f(t),n=[],r=W.internal.getWidth(t)<=W.internal.getHeight(t)?W.internal.getWidth(t)/4:W.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*W.internal.Bezier_C).toFixed(5)),a=Number((r*W.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+u(W.internal.getWidth(t)/2)+" "+u(W.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+u(W.internal.getWidth(t)/2)+" "+u(W.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),n.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),n.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),n.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[],r=W.internal.getWidth(t)<=W.internal.getHeight(t)?W.internal.getWidth(t)/4:W.internal.getHeight(t)/4,i=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((i*W.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+u(W.internal.getWidth(t)/2)+" "+u(W.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:W.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=W.RadioButton.Cross.YesNormal,e.D[t]=W.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=f(t),n=[],r=W.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+s(W.internal.getWidth(t)-2)+" "+s(W.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=f(t),n=W.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(W.internal.getWidth(t))+" "+s(W.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(W.internal.getWidth(t)-2)+" "+s(W.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=f(t),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(W.internal.getWidth(t))+" "+s(W.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=n.internal.getFont(t.fontName,t.fontStyle).id,r=n.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+r}};W.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=W.internal.getWidth(t),n=W.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},W.internal.getWidth=function(t){var e=0;return"object"===i(t)&&(e=l(t.Rect[2])),e},W.internal.getHeight=function(t){var e=0;return"object"===i(t)&&(e=l(t.Rect[3])),e};var X=t.addField=function(t){if(F.call(this),!(t instanceof O))throw new Error("Invalid argument passed to jsPDF.addField.");return function(t){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||F.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)}.call(this,t),t.page=n.internal.getCurrentPageInfo().pageNumber,this};t.addButton=function(t){if(t instanceof D==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return X.call(this,t)},t.addTextField=function(t){if(t instanceof V==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return X.call(this,t)},t.addChoiceField=function(t){if(t instanceof T==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return X.call(this,t)},"object"==i(e)&&void 0===e.ChoiceField&&void 0===e.ListBox&&void 0===e.ComboBox&&void 0===e.EditBox&&void 0===e.Button&&void 0===e.PushButton&&void 0===e.RadioButton&&void 0===e.CheckBox&&void 0===e.TextField&&void 0===e.PasswordField?(e.ChoiceField=T,e.ListBox=M,e.ComboBox=H,e.EditBox=R,e.Button=D,e.PushButton=j,e.RadioButton=z,e.CheckBox=q,e.TextField=V,e.PasswordField=G,e.AcroForm={Appearance:W}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),t.AcroFormChoiceField=T,t.AcroFormListBox=M,t.AcroFormComboBox=H,t.AcroFormEditBox=R,t.AcroFormButton=D,t.AcroFormPushButton=j,t.AcroFormRadioButton=z,t.AcroFormCheckBox=q,t.AcroFormTextField=V,t.AcroFormPasswordField=G,t.AcroFormAppearance=W,t.AcroForm={ChoiceField:T,ListBox:M,ComboBox:H,EditBox:R,Button:D,PushButton:j,RadioButton:z,CheckBox:q,TextField:V,PasswordField:G,Appearance:W}})((window.tmp=pt).API,"undefined"!=typeof window&&window||"undefined"!=typeof r&&r),function(t){var e="addImage_",n={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]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.getImageFileTypeByImageData=function(e,r){var i,o;r=r||"UNKNOWN";var a,s,u,c="UNKNOWN";for(u in t.isArrayBufferView(e)&&(e=t.arrayBufferToBinaryString(e)),n)for(a=n[u],i=0;i<a.length;i+=1){for(s=!0,o=0;o<a[i].length;o+=1)if(void 0!==a[i][o]&&a[i][o]!==e.charCodeAt(o)){s=!1;break}if(!0===s){c=u;break}}return"UNKNOWN"===c&&"UNKNOWN"!==r&&(console.warn('FileType of Image not recognized. Processing image as "'+r+'".'),c=r),c},o=function t(e){for(var n=this.internal.newObject(),r=this.internal.write,i=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);e.n=n;var a=[];if(a.push({key:"Type",value:"/XObject"}),a.push({key:"Subtype",value:"/Image"}),a.push({key:"Width",value:e.w}),a.push({key:"Height",value:e.h}),e.cs===this.color_spaces.INDEXED?a.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?n+2:n+1)+" 0 R]"}):(a.push({key:"ColorSpace",value:"/"+e.cs}),e.cs===this.color_spaces.DEVICE_CMYK&&a.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),a.push({key:"BitsPerComponent",value:e.bpc}),"dp"in e&&a.push({key:"DecodeParms",value:"<<"+e.dp+">>"}),"trns"in e&&e.trns.constructor==Array){for(var s="",u=0,c=e.trns.length;u<c;u++)s+=e.trns[u]+" "+e.trns[u]+" ";a.push({key:"Mask",value:"["+s+"]"})}"smask"in e&&a.push({key:"SMask",value:n+1+" 0 R"});var l=void 0!==e.f?["/"+e.f]:void 0;if(i({data:e.data,additionalKeyValues:a,alreadyAppliedFilters:l}),r("endobj"),"smask"in e){var A="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,f={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:A,data:e.smask};"f"in e&&(f.f=e.f),t.call(this,f)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),i({data:this.arrayBufferToBinaryString(new Uint8Array(e.pal))}),r("endobj"))},a=function(){var t=this.internal.collections[e+"images"];for(var n in t)o.call(this,t[n])},s=function(){var t,n=this.internal.collections[e+"images"],r=this.internal.write;for(var i in n)r("/I"+(t=n[i]).i,t.n,"0","R")},u=function(e){return"function"==typeof t["process"+e.toUpperCase()]},c=function(t){return"object"===i(t)&&1===t.nodeType},l=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return unescape(r);var i=t.loadFile(r);if(void 0!==i)return btoa(i)}if("CANVAS"===e.nodeName){var o=e;return e.toDataURL("image/jpeg",1)}(o=document.createElement("canvas")).width=e.clientWidth||e.width,o.height=e.clientHeight||e.height;var a=o.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";return a.drawImage(e,0,0,o.width,o.height),o.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},A=function(t,e){var n;if(e)for(var r in e)if(t===e[r].alias){n=e[r];break}return n};t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},t.sHashCode=function(t){var e,n=0;if(0===(t=t||"").length)return n;for(e=0;e<t.length;e++)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},t.isString=function(t){return"string"==typeof t},t.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+\/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(t.substr(-2))&&(e=!1),e},t.extractInfoFromBase64DataURI=function(t){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(t)},t.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},t.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},t.isArrayBuffer=function(t){return!!this.supportsArrayBuffer()&&t instanceof ArrayBuffer},t.isArrayBufferView=function(t){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},t.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},t.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t))},t.arrayBufferToBase64=function(t){for(var e,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(t),o=i.byteLength,a=o%3,s=o-a,u=0;u<s;u+=3)n+=r[(16515072&(e=i[u]<<16|i[u+1]<<8|i[u+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==a?n+=r[(252&(e=i[s]))>>2]+r[(3&e)<<4]+"==":2==a&&(n+=r[(64512&(e=i[s]<<8|i[s+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),n},t.createImageInfo=function(t,e,n,r,i,o,a,s,u,c,l,A,f){var h={alias:s,w:e,h:n,cs:r,bpc:i,i:a,data:t};return o&&(h.f=o),u&&(h.dp=u),c&&(h.trns=c),l&&(h.pal=l),A&&(h.smask=A),f&&(h.p=f),h},t.addImage=function(n,r,o,f,h,p,d,g,m){var v="";if("string"!=typeof r){var w=p;p=h,h=f,f=o,o=r,r=w}if("object"===i(n)&&!c(n)&&"imageData"in n){var y=n;n=y.imageData,r=y.format||r||"UNKNOWN",o=y.x||o||0,f=y.y||f||0,h=y.w||h,p=y.h||p,d=y.alias||d,g=y.compression||g,m=y.rotation||y.angle||m}var b=this.internal.getFilters();if(void 0===g&&-1!==b.indexOf("FlateEncode")&&(g="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(o)||isNaN(f))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var B,x,N,_,C,S,E,L=function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",s)),t}.call(this);if(!((B=A(n,L))||(c(n)&&(n=l(n,r)),(null==(E=d)||0===E.length)&&(d="string"==typeof(S=n)?t.sHashCode(S):t.isArrayBufferView(S)?t.sHashCode(t.arrayBufferToBinaryString(S)):null),B=A(d,L)))){if(this.isString(n)&&(""!==(v=this.convertStringToImageData(n))||void 0!==(v=t.loadFile(n)))&&(n=v),r=this.getImageFileTypeByImageData(n,r),!u(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(x=n,n=this.binaryStringToUint8Array(n))),!(B=this["process"+r.toUpperCase()](n,(C=0,(_=L)&&(C=Object.keys?Object.keys(_).length:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}(_)),C),d,((N=g)&&"string"==typeof N&&(N=N.toUpperCase()),N in t.image_compression?N:t.image_compression.NONE),x)))throw new Error("An unknown error occurred whilst processing the image")}return function(t,e,n,r,i,o,a,s){var u=function(t,e,n){return t||e||(e=t=-96),t<0&&(t=-1*n.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.h*72/e/this.internal.scaleFactor),0===t&&(t=e*n.w/n.h),0===e&&(e=t*n.h/n.w),[t,e]}.call(this,n,r,i),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(n=u[0],r=u[1],a[o]=i,s){s*=Math.PI/180;var A=Math.cos(s),f=Math.sin(s),h=function(t){return t.toFixed(4)},p=[h(A),h(f),h(-1*f),h(A),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(t),l(e+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([c(n),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(n),"0","0",c(r),c(t),l(e+r),"cm"].join(" ")),this.internal.write("/I"+i.i+" Do"),this.internal.write("Q")}.call(this,o,f,h,p,B,B.i,L,m),this},t.convertStringToImageData=function(e){var n,r="";if(this.isString(e)){var i;n=null!==(i=this.extractImageFromDataUrl(e))?i.data:e;try{r=atob(n)}catch(e){throw t.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var f=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,n,i,o,a){var s,u=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(s=function(t){var e;if("JPEG"!==r(t))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*t.charCodeAt(4)+t.charCodeAt(5),i=4,o=t.length;i<o;){if(i+=n,255!==t.charCodeAt(i))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(i+1)||193===t.charCodeAt(i+1)||194===t.charCodeAt(i+1)||195===t.charCodeAt(i+1)||196===t.charCodeAt(i+1)||197===t.charCodeAt(i+1)||198===t.charCodeAt(i+1)||199===t.charCodeAt(i+1))return e=256*t.charCodeAt(i+5)+t.charCodeAt(i+6),[256*t.charCodeAt(i+7)+t.charCodeAt(i+8),e,t.charCodeAt(i+9)];i+=2,n=256*t.charCodeAt(i)+t.charCodeAt(i+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(s=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,n=t.length,r=(t[4]<<8)+t[5],i=4;i<n;){if(r=((e=f(t,i+=r))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<r)return{width:((e=f(t,i+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};i+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=o||this.arrayBufferToBinaryString(t)),void 0===a)switch(s.numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;default:case 3:a=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,s.width,s.height,a,8,u,e,n)},t.processJPG=function(){return this.processJPEG.apply(this,arguments)},t.getImageProperties=function(e){var n,r,i="";if(c(e)&&(e=l(e)),this.isString(e)&&(""!==(i=this.convertStringToImageData(e))||void 0!==(i=t.loadFile(e)))&&(e=i),r=this.getImageFileTypeByImageData(e),!u(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(e instanceof Uint8Array||(e=this.binaryStringToUint8Array(e))),!(n=this["process"+r.toUpperCase()](e)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:r,width:n.w,height:n.h,colorSpace:n.cs,compressionMode:n.f,bitsPerComponent:n.bpc}}}(pt.API),a=pt.API,pt.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),a.events.push(["putPage",function(t){for(var e=this.internal.getPageInfoByObjId(t.objId),n=t.pageContext.annotations,r=function(t){if(void 0!==t&&""!=t)return!0},i=!1,o=0;o<n.length&&!i;o++)switch((u=n[o]).type){case"link":if(r(u.options.url)||r(u.options.pageNumber)){i=!0;break}case"reference":case"text":case"freetext":i=!0}if(0!=i){this.internal.write("/Annots ["),this.internal.pageSize.height;var a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var u;switch((u=n[o]).type){case"reference":this.internal.write(" "+u.object.objId+" 0 R ");break;case"text":var c=this.internal.newAdditionalObject(),l=this.internal.newAdditionalObject(),A=u.title||"Note";g="<</Type /Annot /Subtype /Text "+(h="/Rect ["+a(u.bounds.x)+" "+s(u.bounds.y+u.bounds.h)+" "+a(u.bounds.x+u.bounds.w)+" "+s(u.bounds.y)+"] ")+"/Contents ("+u.contents+")",g+=" /Popup "+l.objId+" 0 R",g+=" /P "+e.objId+" 0 R",g+=" /T ("+A+") >>",c.content=g;var f=c.objId+" 0 R";g="<</Type /Annot /Subtype /Popup "+(h="/Rect ["+a(u.bounds.x+30)+" "+s(u.bounds.y+u.bounds.h)+" "+a(u.bounds.x+u.bounds.w+30)+" "+s(u.bounds.y)+"] ")+" /Parent "+f,u.open&&(g+=" /Open true"),g+=" >>",l.content=g,this.internal.write(c.objId,"0 R",l.objId,"0 R");break;case"freetext":var h="/Rect ["+a(u.bounds.x)+" "+s(u.bounds.y)+" "+a(u.bounds.x+u.bounds.w)+" "+s(u.bounds.y+u.bounds.h)+"] ",p=u.color||"#000000";g="<</Type /Annot /Subtype /FreeText "+h+"/Contents ("+u.contents+")",g+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")",g+=" /Border [0 0 0]",g+=" >>",this.internal.write(g);break;case"link":if(u.options.name){var d=this.annotations._nameMap[u.options.name];u.options.pageNumber=d.page,u.options.top=d.y}else u.options.top||(u.options.top=0);h="/Rect ["+a(u.x)+" "+s(u.y)+" "+a(u.x+u.w)+" "+s(u.y+u.h)+"] ";var g="";if(u.options.url)g="<</Type /Annot /Subtype /Link "+h+"/Border [0 0 0] /A <</S /URI /URI ("+u.options.url+") >>";else if(u.options.pageNumber)switch(g="<</Type /Annot /Subtype /Link "+h+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(u.options.pageNumber).objId+" 0 R",u.options.magFactor=u.options.magFactor||"XYZ",u.options.magFactor){case"Fit":g+=" /Fit]";break;case"FitH":g+=" /FitH "+u.options.top+"]";break;case"FitV":u.options.left=u.options.left||0,g+=" /FitV "+u.options.left+"]";break;case"XYZ":default:var m=s(u.options.top);u.options.left=u.options.left||0,void 0===u.options.zoom&&(u.options.zoom=0),g+=" /XYZ "+u.options.left+" "+m+" "+u.options.zoom+"]"}""!=g&&(g+=" >>",this.internal.write(g))}}this.internal.write("]")}}]),a.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},a.link=function(t,e,n,r,i){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:t,y:e,w:n,h:r,options:i,type:"link"})},a.textWithLink=function(t,e,n,r){var i=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,n),n+=.2*o,this.link(e,n-o,i,o,r),i},a.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},u=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&0<=i.indexOf(t.charCodeAt(0))},c=(t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&o(t)&&1<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&o(t)&&2<=e[t.charCodeAt(0)].length}),l=(t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&o(t)&&3<=e[t.charCodeAt(0)].length},t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&o(t)&&4==e[t.charCodeAt(0)].length}),A=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i=0,o="",a=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(a++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i=-1!==(i=f(t.charAt(e),t.charAt(e-a),t.charAt(e+1)))?i:0,o+=String.fromCharCode(r),r=n,a=0),e===t.length-1&&(r=n,o+=t.charAt(e-(a-1)),e-=a-1,a=0)):(r=n,o+=t.charAt(e-a),e-=a,a=0);return o},f=(t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]},t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===o(t)?-1:!c(t)||!a(e)&&!a(n)||!a(n)&&s(e)||s(t)&&!a(e)||s(t)&&u(e)||s(t)&&s(e)?0:l(t)&&a(e)&&!s(e)&&a(n)&&c(n)?3:s(t)||!a(n)?1:2:-1}),h=t.__arabicParser__.processArabic=t.processArabic=function(t){var n=0,r=0,i=0,o="",s="",u="",c=(t=t||"").split("\\s+"),l=[];for(n=0;n<c.length;n+=1){for(l.push(""),r=0;r<c[n].length;r+=1)o=c[n][r],s=c[n][r-1],u=c[n][r+1],a(o)?(i=f(o,s,u),l[n]+=-1!==i?String.fromCharCode(e[o.charCodeAt(0)][i]):o):l[n]+=o;l[n]=A(l[n])}return l.join(" ")};t.events.push(["preProcessText",function(t){var e=t.text,n=(t.x,t.y,t.options||{}),r=(t.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(r=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?r.push([h(e[i][0]),e[i][1],e[i][2]]):r.push([h(e[i])]);t.text=r}else t.text=h(e)}])}(pt.API),pt.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this},s=pt.API,(u=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},u.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new u,this.canvas.pdf=this}]),c=pt.API,A={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,h=function(t,e,n,r,i){A={x:t,y:e,w:n,h:r,ln:i}},p=function(){return A},d={left:0,top:0,bottom:0},c.setHeaderFunction=function(t){l=t},c.getTextDimensions=function(t,e){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(e=e||{}).scaleFactor||this.internal.scaleFactor),i=0,o=0,a=0;if("string"==typeof t)0!=(i=this.getStringUnitWidth(t)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(t))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s<t.length;s++)i<(a=this.getStringUnitWidth(t[s])*n)&&(i=a);0!==i&&(o=t.length)}return{w:i/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},c.cellAddPage=function(){var t=this.margins||d;this.addPage(),h(t.left,t.top,void 0,void 0),f+=1},c.cellInitialize=function(){A={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1},c.cell=function(t,e,n,r,i,o,a){var s=p(),u=!1;if(void 0!==s.ln)if(s.ln===o)t=s.x+s.w,e=s.y;else{var c=this.margins||d;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),u=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),e=p().y+p().h,u&&(e=23)}if(void 0!==i[0])if(this.printingHeaderRow?this.rect(t,e,n,r,"FD"):this.rect(t,e,n,r),"right"===a){i instanceof Array||(i=[i]);for(var l=0;l<i.length;l++){var A=i[l],f=this.getStringUnitWidth(A)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(A,t+n-f-3,e+this.internal.getLineHeight()*(l+1))}}else this.text(i,t+3,e+this.internal.getLineHeight());return h(t,e,n,r,o),this},c.arrayMax=function(t,e){var n,r,i,o=t[0];for(n=0,r=t.length;n<r;n+=1)i=t[n],e?-1===e(o,i)&&(o=i):o<i&&(o=i);return o},c.table=function(t,e,n,r,i){if(!n)throw"No data for PDF table";var o,a,s,u,l,h,p,g,m,v,w=[],y=[],b={},B={},x=[],N=[],_=!1,C=!0,S=12,E=d;if(E.width=this.internal.pageSize.getWidth(),i&&(!0===i.autoSize&&(_=!0),!1===i.printHeaders&&(C=!1),i.fontSize&&(S=i.fontSize),i.css&&void 0!==i.css["font-size"]&&(S=16*i.css["font-size"]),i.margins&&(E=i.margins)),this.lnMod=0,A={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},f=1,this.printHeaders=C,this.margins=E,this.setFontSize(S),this.table_font_size=S,null==r)w=Object.keys(n[0]);else if(r[0]&&"string"!=typeof r[0])for(a=0,s=r.length;a<s;a+=1)o=r[a],w.push(o.name),y.push(o.prompt),B[o.name]=o.width*(19.049976/25.4);else w=r;if(_)for(v=function(t){return t[o]},a=0,s=w.length;a<s;a+=1){for(b[o=w[a]]=n.map(v),x.push(this.getTextDimensions(y[a]||o,{scaleFactor:1}).w),p=0,u=(h=b[o]).length;p<u;p+=1)l=h[p],x.push(this.getTextDimensions(l,{scaleFactor:1}).w);B[o]=c.arrayMax(x),x=[]}if(C){var L=this.calculateLineHeight(w,B,y.length?y:w);for(a=0,s=w.length;a<s;a+=1)o=w[a],N.push([t,e,B[o],L,String(y.length?y[a]:o)]);this.setTableHeaderRow(N),this.printHeaderRow(1,!1)}for(a=0,s=n.length;a<s;a+=1)for(g=n[a],L=this.calculateLineHeight(w,B,g),p=0,m=w.length;p<m;p+=1)o=w[p],this.cell(t,e,B[o],L,g[o],a+2,o.align);return this.lastCellPos=A,this.table_x=t,this.table_y=e,this},c.calculateLineHeight=function(t,e,n){for(var r,i=0,o=0;o<t.length;o++){n[r=t[o]]=this.splitTextToSize(String(n[r]),e[r]-3);var a=this.internal.getLineHeight()*n[r].length+3;i<a&&(i=a)}return i},c.setTableHeaderRow=function(t){this.tableHeaderRow=t},c.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,i,o;if(this.printingHeaderRow=!0,void 0!==l){var a=l(this,f);h(a[0],a[1],a[2],a[3],-1)}this.setFontStyle("bold");var s=[];for(i=0,o=this.tableHeaderRow.length;i<o;i+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[i],e&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,s.push(n)),r=[].concat(n),this.cell.apply(this,r.concat(t));0<s.length&&this.setTableHeaderRow(s),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(t,e){var n,r,o,a,s,u=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new P,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new Q,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new Q,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new c(this),n=this.internal.f2,this.internal.f3,r=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate}]);var c=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return t}});var e=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return e},set:function(t){e=Boolean(t)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}});var i=0;Object.defineProperty(this,"posY",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=Boolean(t)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(t){a=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}});var c=new u;Object.defineProperty(this,"ctx",{get:function(){return c},set:function(t){t instanceof u&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var A=[];Object.defineProperty(this,"ctxStack",{get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=l(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=l(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=e[5],a=e[6];i="px"===o?Math.floor(parseFloat(i)):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)),this.pdf.setFontSize(i);var s="";("bold"===r||700<=parseInt(r,10)||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var u="",c=a.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),l={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},A=0;A<c.length;A++){if(void 0!==this.pdf.internal.getFont(c[A],s,{noFallback:!0,disableWarning:!0})){u=c[A];break}if("bolditalic"===s&&void 0!==this.pdf.internal.getFont(c[A],"bold",{noFallback:!0,disableWarning:!0}))u=c[A],s="bold";else if(void 0!==this.pdf.internal.getFont(c[A],"normal",{noFallback:!0,disableWarning:!0})){u=c[A],s="normal";break}}if(""===u)for(A=0;A<c.length;A++)if(l[c[A]]){u=l[c[A]];break}u=""===u?"Times":u,this.pdf.setFont(u,s)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};c.prototype.fill=function(){g.call(this,"fill",!1)},c.prototype.stroke=function(){g.call(this,"stroke",!1)},c.prototype.beginPath=function(){this.path=[{type:"begin"}]},c.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new Q(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new Q(t,e)},c.prototype.closePath=function(){var t=new Q(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===i(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new Q(this.path[e+1].x,this.path[e+1].y),this.path.push({type:"lt",x:t.x,y:t.y});break}"object"===i(this.path[e+2])&&"number"==typeof this.path[e+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[e+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new Q(t.x,t.y)},c.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new Q(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new Q(n.x,n.y)},c.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),g.call(this,null,!0)},c.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new Q(n,r)),o=this.ctx.transform.applyToPoint(new Q(t,e));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new Q(i.x,i.y)},c.prototype.bezierCurveTo=function(t,e,n,r,i,o){if(isNaN(i)||isNaN(o)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var a=this.ctx.transform.applyToPoint(new Q(i,o)),s=this.ctx.transform.applyToPoint(new Q(t,e)),u=this.ctx.transform.applyToPoint(new Q(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:u.x,y2:u.y,x:a.x,y:a.y}),this.ctx.lastPoint=new Q(a.x,a.y)},c.prototype.arc=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw console.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 Q(t,e));t=a.x,e=a.y;var s=this.ctx.transform.applyToPoint(new Q(0,n)),u=this.ctx.transform.applyToPoint(new Q(0,0));n=Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},c.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},c.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},c.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!A.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},c.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},c.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},c.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},c.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},c.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var l=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))i=r=n=e=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==o)e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(t)))e=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new RGBColor(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},A=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};c.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!A.call(this)){n=v.call(this,n);var i=L(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;x.call(this,{text:t,x:e,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:r})}},c.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!f.call(this)){r=isNaN(r)?void 0:r,n=v.call(this,n);var i=L(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;x.call(this,{text:t,x:e,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},c.prototype.measureText=function(t){if("string"!=typeof t)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor;return new function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},c.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new P(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},c.prototype.rotate=function(t){if(isNaN(t))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new P(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},c.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new P(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},c.prototype.transform=function(t,e,n,r,i,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new P(t,e,n,r,i,o);this.ctx.transform=this.ctx.transform.multiply(a)},c.prototype.setTransform=function(t,e,n,r,i,o){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new P(t,e,n,r,i,o)},c.prototype.drawImage=function(t,e,n,r,i,o,a,s,u){var c=this.pdf.getImageProperties(t),l=1,A=1,f=1,p=1;void 0!==r&&void 0!==s&&(f=s/r,p=u/i,l=c.width/r*s/r,A=c.height/i*u/i),void 0===o&&(o=e,a=n,n=e=0),void 0!==r&&void 0===s&&(s=r,u=i),void 0===r&&void 0===s&&(s=c.width,u=c.height);var g=this.ctx.transform.decompose(),v=L(g.rotate.shx);g.scale.sx,g.scale.sy;for(var w,y=new P,b=((y=(y=(y=y.multiply(g.translate)).multiply(g.skew)).multiply(g.scale)).applyToPoint(new Q(s,u)),y.applyToRectangle(new I(o-e*f,a-n*p,r*l,i*A))),B=h.call(this,b),x=[],N=0;N<B.length;N+=1)-1===x.indexOf(B[N])&&x.push(B[N]);if(x.sort(),this.autoPaging)for(var _=x[0],C=x[x.length-1],S=_;S<C+1;S++){if(this.pdf.setPage(S),0!==this.ctx.clip_path.length){var E=this.path;w=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=d(w,this.posX,-1*this.pdf.internal.pageSize.height*(S-1)+this.posY),m.call(this,"fill",!0),this.path=E}var F=JSON.parse(JSON.stringify(b));F=d([F],this.posX,-1*this.pdf.internal.pageSize.height*(S-1)+this.posY)[0],this.pdf.addImage(t,"jpg",F.x,F.y,F.w,F.h,null,null,v)}else this.pdf.addImage(t,"jpg",b.x,b.y,b.w,b.h,null,null,v)};var h=function(t,e,n){var r=[];switch(e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((t.y+this.posY-t.radius)/n)+1),r.push(Math.floor((t.y+this.posY+t.radius)/n)+1);break;case"qct":var i=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor(i.y/n)+1),r.push(Math.floor((i.y+i.h)/n)+1);break;case"bct":var o=U(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((t.y+this.posY)/n)+1),r.push(Math.floor((t.y+t.h+this.posY)/n)+1)}for(var a=0;a<r.length;a+=1)for(;this.pdf.internal.getNumberOfPages()<r[a];)p.call(this);return r},p=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=o},d=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},g=function(t,e){for(var n,r,i=this.fillStyle,o=this.strokeStyle,a=(this.font,this.lineCap),s=this.lineWidth,u=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),A=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var g=h.call(this,l[f]),v=0;v<g.length;v+=1)-1===A.indexOf(g[v])&&A.push(g[v]);for(f=0;f<A.length;f++)for(;this.pdf.internal.getNumberOfPages()<A[f];)p.call(this);if(A.sort(),this.autoPaging){var w=A[0],y=A[A.length-1];for(f=w;f<y+1;f++){if(this.pdf.setPage(f),this.fillStyle=i,this.strokeStyle=o,this.lineCap=a,this.lineWidth=s,this.lineJoin=u,0!==this.ctx.clip_path.length){var b=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=d(n,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),m.call(this,t,!0),this.path=b}r=JSON.parse(JSON.stringify(c)),this.path=d(r,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),!1!==e&&0!==f||m.call(this,t,e)}}else m.call(this,t,e);this.path=c},m=function(t,e){if(("stroke"!==t||e||!f.call(this))&&("stroke"===t||e||!A.call(this))){var n=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var r,i=this.path,o=0;o<i.length;o++){var a=i[o];switch(a.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:a,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(i[o-1].x)){var u=[a.x-i[o-1].x,a.y-i[o-1].y];if(0<s)for(;0<=s;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(u),n[s-1].abs.push(a);break}}break;case"bct":u=[a.x1-i[o-1].x,a.y1-i[o-1].y,a.x2-i[o-1].x,a.y2-i[o-1].y,a.x-i[o-1].x,a.y-i[o-1].y],n[n.length-1].deltas.push(u);break;case"qct":var c=i[o-1].x+2/3*(a.x1-i[o-1].x),l=i[o-1].y+2/3*(a.y1-i[o-1].y),h=a.x+2/3*(a.x1-a.x),p=a.y+2/3*(a.y1-a.y),d=a.x,g=a.y;u=[c-i[o-1].x,l-i[o-1].y,h-i[o-1].x,p-i[o-1].y,d-i[o-1].x,g-i[o-1].y],n[n.length-1].deltas.push(u);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(a)}}for(r=e?null:"stroke"===t?"stroke":"fill",o=0;o<n.length;o++){if(n[o].arc)for(var m=n[o].abs,v=0;v<m.length;v++){var B=m[v];if(void 0!==B.startAngle){var x=L(B.startAngle),C=L(B.endAngle),S=B.x,E=B.y;w.call(this,S,E,B.radius,x,C,B.counterclockwise,r,e)}else N.call(this,B.x,B.y)}n[o].arc||!0===n[o].close||!0===n[o].begin||(S=n[o].start.x,E=n[o].start.y,_.call(this,n[o].deltas,S,E,null,null))}r&&y.call(this,r),e&&b.call(this)}},v=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}};c.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},c.prototype.createPattern=function(){return this.createLinearGradient()},c.prototype.createRadialGradient=function(){return this.createLinearGradient()};var w=function(t,e,n,r,i,o,a,s){this.pdf.internal.scaleFactor;for(var u=F(r),c=F(i),l=S.call(this,n,u,c,o),A=0;A<l.length;A++){var f=l[A];0===A&&B.call(this,f.x1+t,f.y1+e),C.call(this,t,e,f.x2,f.y2,f.x3,f.y3,f.x4,f.y4)}s?b.call(this):y.call(this,a)},y=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},b=function(){this.pdf.clip()},B=function(t,e){this.pdf.internal.out(r(t)+" "+o(e)+" m")},x=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.ctx.transform.applyToPoint(new Q(t.x,t.y)),r=this.ctx.transform.decompose(),i=new P;i=(i=(i=i.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,a=this.pdf.getTextDimensions(t.text),s=this.ctx.transform.applyToRectangle(new I(t.x,t.y,a.w,a.h)),u=i.applyToRectangle(new I(t.x,t.y-a.h,a.w,a.h)),c=h.call(this,u),l=[],A=0;A<c.length;A+=1)-1===l.indexOf(c[A])&&l.push(c[A]);if(l.sort(),!0===this.autoPaging)for(var f=l[0],p=l[l.length-1],g=f;g<p+1;g++){if(this.pdf.setPage(g),0!==this.ctx.clip_path.length){var v=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=d(o,this.posX,-1*this.pdf.internal.pageSize.height*(g-1)+this.posY),m.call(this,"fill",!0),this.path=v}var w=JSON.parse(JSON.stringify(s));if(w=d([w],this.posX,-1*this.pdf.internal.pageSize.height*(g-1)+this.posY)[0],.01<=t.scale){var y=this.pdf.internal.getFontSize();this.pdf.setFontSize(y*t.scale)}this.pdf.text(t.text,w.x,w.y,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(y)}else.01<=t.scale&&(y=this.pdf.internal.getFontSize(),this.pdf.setFontSize(y*t.scale)),this.pdf.text(t.text,n.x+this.posX,n.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),.01<=t.scale&&this.pdf.setFontSize(y)},N=function(t,e,n,i){n=n||0,i=i||0,this.pdf.internal.out(r(t+n)+" "+o(e+i)+" l")},_=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},C=function(t,e,r,i,o,u,c,l){this.pdf.internal.out([n(a(r+t)),n(s(i+e)),n(a(o+t)),n(s(u+e)),n(a(c+t)),n(s(l+e)),"c"].join(" "))},S=function(t,e,n,r){var i=2*Math.PI,o=e;(o<i||i<o)&&(o%=i);var a=n;(a<i||i<a)&&(a%=i);for(var s=[],u=Math.PI/2,c=r?-1:1,l=e,A=Math.min(i,Math.abs(a-o));1e-5<A;){var f=l+c*Math.min(A,u);s.push(E.call(this,t,l,f)),A-=Math.abs(f-l),l=f}return s},E=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),a=i,s=-o,u=a*a+s*s,c=u+a*i+s*o,l=4/3*(Math.sqrt(2*u*c)-c)/(a*o-s*i),A=a-l*s,f=s+l*a,h=A,p=-f,d=r+e,g=Math.cos(d),m=Math.sin(d);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:A*g-f*m,y2:A*m+f*g,x3:h*g-p*m,y3:h*m+p*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},L=function(t){return 180*t/Math.PI},F=function(t){return t*Math.PI/180},k=function(t,e,n,r,i,o){var a=t+.5*(n-t),s=e+.5*(r-e),u=i+.5*(n-i),c=o+.5*(r-o),l=Math.min(t,i,a,u),A=Math.max(t,i,a,u),f=Math.min(e,o,s,c),h=Math.max(e,o,s,c);return new I(l,f,A-l,h-f)},U=function(t,e,n,r,i,o,a,s){for(var u,c,l,A,f,h,p,d,g,m,v,w,y,b=n-t,B=r-e,x=i-n,N=o-r,_=a-i,C=s-o,S=0;S<41;S++)d=(h=(c=t+(u=S/40)*b)+u*((A=n+u*x)-c))+u*(A+u*(i+u*_-A)-h),g=(p=(l=e+u*B)+u*((f=r+u*N)-l))+u*(f+u*(o+u*C-f)-p),y=0==S?(w=m=d,v=g):(m=Math.min(m,d),v=Math.min(v,g),w=Math.max(w,d),Math.max(y,g));return new I(Math.round(m),Math.round(v),Math.round(w-m),Math.round(y-v))},Q=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},I=function(t,e,n,r){Q.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(t){isNaN(t)||(o=parseFloat(t))}}),this},P=function(t,e,n,r,i,o){var a=[];return Object.defineProperty(this,"sx",{get:function(){return a[0]},set:function(t){a[0]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return a[1]},set:function(t){a[1]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return a[2]},set:function(t){a[2]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return a[3]},set:function(t){a[3]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return a[4]},set:function(t){a[4]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return a[5]},set:function(t){a[5]=Math.round(1e5*t)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(t)?1:t,this.shy=isNaN(e)?0:e,this.shx=isNaN(n)?0:n,this.sy=isNaN(r)?1:r,this.tx=isNaN(i)?0:i,this.ty=isNaN(o)?0:o,this};P.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,o=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new P(e,n,r,i,o,a)},P.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,a=Math.sqrt(t*t+e*e),s=(t/=a)*n+(e/=a)*r;n-=t*s,r-=e*s;var u=Math.sqrt(n*n+r*r);return s/=u,t*(r/=u)<e*(n/=u)&&(t=-t,e=-e,s=-s,a=-a),{scale:new P(a,0,0,u,0,0),translate:new P(1,0,0,1,i,o),rotate:new P(t,e,-e,t,0,0),skew:new P(1,0,s,1,0,0)}},P.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new Q(e,n)},P.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new Q(t.x+t.w,t.y+t.h));return new I(e.x,e.y,n.x-e.x,n.y-e.y)},P.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty;return new P(t,e,n,r,i,o)}}(pt.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),g=pt.API,m=function(t){var e,n,r,i,o,a,s,u,c,l;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;r<i;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(a=(o=((o=((o=((o=(o-(l=o%85))/85)-(c=o%85))/85)-(u=o%85))/85)-(s=o%85))/85)%85,n.push(a+33,s+33,u+33,c+33,l+33)):n.push(122);return function(t,n){for(var r=e.length;0<r;r--)t.pop()}(n),String.fromCharCode.apply(String,n)+"~>"},v=function(t){var e,n,r,i,o,a=String,s="length",u="charCodeAt",c="slice",l="replace";for(t[c](-2),t=t[c](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[c](t[s]%5||5))[s];i<o;i+=5)n=52200625*(t[u](i)-33)+614125*(t[u](i+1)-33)+7225*(t[u](i+2)-33)+85*(t[u](i+3)-33)+(t[u](i+4)-33),r.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(t,n){for(var r=e[s];0<r;r--)t.pop()}(r),a.fromCharCode.apply(a,r)},w=function(t){for(var e="",n=0;n<t.length;n+=1)e+=("0"+t.charCodeAt(n).toString(16)).slice(-2);return e+">"},y=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},b=function(t,e){e=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},e);for(var n,r,i=[],o=t.length;o--;)i[o]=t.charCodeAt(o);return n=g.adler32cs.from(t),(r=new Deflater(6)).append(new Uint8Array(i)),t=r.flush(),(i=new Uint8Array(t.length+6)).set(new Uint8Array([120,156])),i.set(t,2),i.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),t.length+2),String.fromCharCode.apply(null,i)},g.processDataByFilters=function(t,e){var n=0,r=t||"",i=[];for("string"==typeof(e=e||[])&&(e=[e]),n=0;n<e.length;n+=1)switch(e[n]){case"ASCII85Decode":case"/ASCII85Decode":r=v(r),i.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":r=m(r),i.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":r=y(r),i.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":r=w(r),i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=b(r),i.push("/FlateDecode");break;default:throw'The filter: "'+e[n]+'" is not implemented'}return{data:r,reverseChain:i.reverse().join(" ")}},(B=pt.API).loadFile=function(t,e,n){var r;e=e||!0,n=n||function(){};try{r=function(t,e,n){var r=new XMLHttpRequest,i=[],o=0,a=function(t){var e=t.length,n=String.fromCharCode;for(o=0;o<e;o+=1)i.push(n(255&t.charCodeAt(o)));return i.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){return a(this.responseText)}),r.send(null),200===r.status)return e?a(r.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)}catch(t){r=void 0}return r},B.loadImageFile=B.loadFile,x=pt.API,N="undefined"!=typeof window&&window||"undefined"!=typeof r&&r,_=function(t){var e=i(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},C=function(t,e){var n=document.createElement(t);if(e.className&&(n.className=e.className),e.innerHTML){n.innerHTML=e.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;0<i--;null)r[i].parentNode.removeChild(r[i])}for(var o in e.style)n.style[o]=e.style[o];return n},(((S=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)}).prototype=Object.create(Promise.prototype)).constructor=S).convert=function(t,e){return t.__proto__=e||S.prototype,t},S.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{}}},S.prototype.from=function(t,e){return this.then((function(){switch(e=e||function(t){switch(_(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:C("div",{innerHTML:t})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},S.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},S.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var t={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=C("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=C("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(C("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},S.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then((function(){var t=Object.assign({},this.opt.html2canvas);if(delete t.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},S.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then((function(){var t=this.opt.jsPDF,e=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete e.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,e.windowHeight=e.windowHeight||0,e.windowHeight=0==e.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):e.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},S.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t}))},S.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},S.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},S.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},S.prototype.outputImg=function(t,e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},S.prototype.isHtml2CanvasLoaded=function(){var t=void 0!==N.html2canvas;return t||console.error("html2canvas not loaded."),t},S.prototype.save=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},S.prototype.doCallback=function(t){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},S.prototype.set=function(t){if("object"!==_(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in S.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}}),this);return this.then((function(){return this.thenList(e)}))},S.prototype.get=function(t,e){return this.then((function(){var n=t in S.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},S.prototype.setMargin=function(t){return this.then((function(){switch(_(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t})).then(this.setPageSize)},S.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||pt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},S.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},S.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},S.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},S.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then;var r=this;t&&(t=t.bind(r)),e&&(e=e.bind(r));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:S.convert(Object.assign({},r),Promise.prototype),o=n.call(i,t,e);return S.convert(o,r.__proto__)},S.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},S.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},S.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return S.convert(e,this)},S.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},S.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},S.prototype.using=S.prototype.set,S.prototype.saveAs=S.prototype.save,S.prototype.export=S.prototype.output,S.prototype.run=S.prototype.then,pt.getPageSize=function(t,e,n){if("object"===i(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var o=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":var s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+e}if(a.hasOwnProperty(o))var u=a[o][1]/s,c=a[o][0]/s;else try{u=n[1],c=n[0]}catch(t){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t){if(t="p",u<c){var l=c;c=u,u=l}}else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",c<u&&(l=c,c=u,u=l)}return{width:c,height:u,unit:e,k:s}},x.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.jsPDF;var n=new S(e);return e.worker?n:n.from(t).doCallback()},pt.API.addJS=function(t){return F=t,this.internal.events.subscribe("postPutResources",(function(t){E=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(E+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),L=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+F+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==E&&void 0!==L&&this.internal.out("/Names <</JavaScript "+E+" 0 R>>")})),this},(k=pt.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=t.outline.render().split(/\r\n/),r=0;r<n.length;r++){var i=n[r],o=e.exec(i);if(null!=o){var a=o[1];t.internal.newObjectDeferredBegin(a,!1)}t.internal.write(i)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,u=[];for(r=0;r<s;r++){var c=t.internal.newObject();u.push(c);var l=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var A=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<u.length;r++)t.internal.write("(page_"+(r+1)+")"+u[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+A+" 0 R"),t.internal.write(">>","endobj")}}]),k.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),k.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),0<t.children.length&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){this.ctx.pdf.internal.getCoordinateString;for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),0<r&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),0<i.children.length&&(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(0<o&&this.line("/Count "+o),i.options&&i.options.pageNumber){var a=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(r=0;r<e.children.length;r++)i=e.children[r],this.renderItems(i)},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(t){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}]),U=pt.API,Q=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},I=function(t,e,n,r){var i=5,o=R;switch(r){case U.image_compression.FAST:i=3,o=H;break;case U.image_compression.MEDIUM:i=6,o=D;break;case U.image_compression.SLOW:i=9,o=j}t=T(t,e,n,o);var a=new Uint8Array(P(i)),s=O(t),u=new Deflater(i),c=u.append(t),l=u.flush(),A=a.length+c.length+l.length,f=new Uint8Array(A+4);return f.set(a),f.set(c,a.length),f.set(l,a.length+c.length),f[A++]=s>>>24&255,f[A++]=s>>>16&255,f[A++]=s>>>8&255,f[A++]=255&s,U.arrayBufferToBinaryString(f)},P=function(t,e){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[n,255&(r+=31-r%31)]},O=function(t,e){for(var n,r=1,i=0,o=t.length,a=0;0<o;){for(o-=n=e<o?e:o;i+=r+=t[a++],--n;);r%=65521,i%=65521}return(i<<16|r)>>>0},T=function(t,e,n,r){for(var i,o,a,s=t.length/e,u=new Uint8Array(t.length+s),c=K(),l=0;l<s;l++){if(a=l*e,i=t.subarray(a,a+e),r)u.set(r(i,n,o),a+l);else{for(var A=0,f=c.length,h=[];A<f;A++)h[A]=c[A](i,n,o);var p=q(h.concat());u.set(h[p],a+l)}o=i}return u},M=function(t,e,n){var r=Array.apply([],t);return r.unshift(0),r},H=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=1;o<a;o++)r=t[o-e]||0,i[o+1]=t[o]-r+256&255;return i},R=function(t,e,n){var r,i=[],o=0,a=t.length;for(i[0]=2;o<a;o++)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},D=function(t,e,n){var r,i,o=[],a=0,s=t.length;for(o[0]=3;a<s;a++)r=t[a-e]||0,i=n&&n[a]||0,o[a+1]=t[a]+256-(r+i>>>1)&255;return o},j=function(t,e,n){var r,i,o,a,s=[],u=0,c=t.length;for(s[0]=4;u<c;u++)r=t[u-e]||0,i=n&&n[u]||0,o=n&&n[u-e]||0,a=z(r,i,o),s[u+1]=t[u]-a+256&255;return s},z=function(t,e,n){var r=t+e-n,i=Math.abs(r-t),o=Math.abs(r-e),a=Math.abs(r-n);return i<=o&&i<=a?t:o<=a?e:n},K=function(){return[M,H,R,D,j]},q=function(t){for(var e,n,r,i=0,o=t.length;i<o;)((e=V(t[i].slice(1)))<n||!n)&&(n=e,r=i),i++;return r},V=function(t){for(var e=0,n=t.length,r=0;e<n;)r+=Math.abs(t[e++]);return r},U.processPNG=function(t,e,n,r,i){var o,a,s,u,c,l,A=this.color_spaces.DEVICE_RGB,f=this.decode.FLATE_DECODE,h=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof Ot)throw new Error("PNG support requires png.js and zlib.js");if(t=(o=new PNG(t)).imgData,h=o.bits,A=o.colorSpace,u=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var p,d=(C=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,g=new Uint8Array(d*o.colors),m=new Uint8Array(d),v=o.pixelBitlength-o.bits,w=0,y=0;w<d;w++){for(b=C[w],p=0;p<v;)g[y++]=b>>>p&255,p+=o.bits;m[w]=b>>>p&255}if(16===o.bits){d=(C=new Uint32Array(o.decodePixels().buffer)).length,g=new Uint8Array(d*(32/o.pixelBitlength)*o.colors),m=new Uint8Array(d*(32/o.pixelBitlength));for(var b,B=1<o.colors,x=y=w=0;w<d;)b=C[w++],g[y++]=b>>>0&255,B&&(g[y++]=b>>>16&255,b=C[w++],g[y++]=b>>>0&255),m[x++]=b>>>16&255;h=8}r!==U.image_compression.NONE&&Q()?(t=I(g,o.width*o.colors,o.colors,r),l=I(m,o.width,1,r)):(t=g,l=m,f=null)}if(3===o.colorType&&(A=this.color_spaces.INDEXED,c=o.palette,o.transparency.indexed)){var N=o.transparency.indexed,_=0;for(w=0,d=N.length;w<d;++w)_+=N[w];if((_/=255)==d-1&&-1!==N.indexOf(0))s=[N.indexOf(0)];else if(_!==d){var C=o.decodePixels();for(m=new Uint8Array(C.length),w=0,d=C.length;w<d;w++)m[w]=N[C[w]];l=I(m,o.width,1)}}var S=function(t){var e;switch(t){case U.image_compression.FAST:e=11;break;case U.image_compression.MEDIUM:e=13;break;case U.image_compression.SLOW:e=14;break;default:e=12}return e}(r);return a=f===this.decode.FLATE_DECODE?"/Predictor "+S+" /Colors "+u+" /BitsPerComponent "+h+" /Columns "+o.width:"/Colors "+u+" /BitsPerComponent "+h+" /Columns "+o.width,(this.isArrayBuffer(t)||this.isArrayBufferView(t))&&(t=this.arrayBufferToBinaryString(t)),(l&&this.isArrayBuffer(l)||this.isArrayBufferView(l))&&(l=this.arrayBufferToBinaryString(l)),this.createImageInfo(t,o.width,o.height,A,h,f,e,n,a,s,c,l,S)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(G=pt.API).processGIF89A=function(t,e,n,r,i){var o=new kt(t),a=o.width,s=o.height,u=[];o.decodeAndBlitFrameRGBA(0,u);var c={data:u,width:a,height:s},l=new Qt(100).encode(c,100);return G.processJPEG.call(this,l,e,n,r)},G.processGIF87A=G.processGIF89A,(W=pt.API).processBMP=function(t,e,n,r,i){var o=new It(t,!1),a=o.width,s=o.height,u={data:o.getData(),width:a,height:s},c=new Qt(100).encode(u,100);return W.processJPEG.call(this,c,e,n,r)},pt.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},X=pt.API,J=X.getCharWidthsArray=function(t,e){var n,r,i,o=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),u=e.widths?e.widths:o.metadata.Unicode.widths,c=u.fof?u.fof:1,l=e.kerning?e.kerning:o.metadata.Unicode.kerning,A=l.fof?l.fof:1,f=0,h=u[0]||c,p=[];for(n=0,r=t.length;n<r;n++)i=t.charCodeAt(n),"function"==typeof o.metadata.widthOfString?p.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(i))+s*(1e3/a)||0)/1e3):p.push((u[i]||h)/c+(l[i]&&l[i][f]||0)/A),f=i;return p},Y=X.getArraySum=function(t){for(var e=t.length,n=0;e;)n+=t[--e];return n},$=X.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Y(J.apply(this,arguments))},Z=function(t,e,n,r){for(var i=[],o=0,a=t.length,s=0;o!==a&&s+e[o]<n;)s+=e[o],o++;i.push(t.slice(0,o));var u=o;for(s=0;o!==a;)s+e[o]>r&&(i.push(t.slice(u,o)),s=0,u=o),s+=e[o],o++;return u!==o&&i.push(t.slice(u,o)),i},tt=function(t,e,n){n||(n={});var r,i,o,a,s,u,c=[],l=[c],A=n.textIndent||0,f=0,h=0,p=t.split(" "),d=J.apply(this,[" ",n])[0];if(u=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var g=Array(u).join(" "),m=[];p.map((function(t){1<(t=t.split(/\s*\n/)).length?m=m.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):m.push(t[0])})),p=m,u=$.apply(this,[g,n])}for(o=0,a=p.length;o<a;o++){var v=0;if(r=p[o],u&&"\n"==r[0]&&(r=r.substr(1),v=1),i=J.apply(this,[r,n]),e<A+f+(h=Y(i))||v){if(e<h){for(s=Z.apply(this,[r,i,e-(A+f),e]),c.push(s.shift()),c=[s.pop()];s.length;)l.push([s.shift()]);h=Y(i.slice(r.length-(c[0]?c[0].length:0)))}else c=[r];l.push(c),A=h+u,f=d}else c.push(r),A+=f+h,f=d}if(u)var w=function(t,e){return(e?g:"")+t.join(" ")};else w=function(t){return t.join(" ")};return l.map(w)},X.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(t){var e={0:1},n={};if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var r=this.internal.getFont(t.fontName,t.fontStyle),i="Unicode";return r.metadata[i]?{widths:r.metadata[i].widths||e,kerning:r.metadata[i].kerning||n}:{font:r.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:t.split(/\r?\n/);var a=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,u,c=[];for(s=0,u=r.length;s<u;s++)c=c.concat(tt.apply(this,[r[s],a,o]));return c},et=pt.API,rt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(nt=function(t){for(var e="klmnopqrstuvwxyz",n={},r=0;r<e.length;r++)n[e[r]]="0123456789abcdef"[r];var i,o,a,s,u,c={},l=1,A=c,f=[],h="",p="",d=t.length-1;for(r=1;r!=d;)u=t[r],r+=1,"'"==u?o=o?(s=o.join(""),i):[]:o?o.push(u):"{"==u?(f.push([A,s]),A={},s=i):"}"==u?((a=f.pop())[0][a[1]]=A,s=i,A=a[0]):"-"==u?l=-1:s===i?n.hasOwnProperty(u)?(h+=n[u],s=parseInt(h,16)*l,l=1,h=""):h+=u:n.hasOwnProperty(u)?(p+=n[u],A[s]=parseInt(p,16)*l,l=1,s=i,p=""):p+=u;return c})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},it={Unicode:{Courier:rt,"Courier-Bold":rt,"Courier-BoldOblique":rt,"Courier-Oblique":rt,Helvetica:rt,"Helvetica-Bold":rt,"Helvetica-BoldOblique":rt,"Helvetica-Oblique":rt,"Times-Roman":rt,"Times-Bold":rt,"Times-BoldItalic":rt,"Times-Italic":rt}},ot={Unicode:{"Courier-Oblique":nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":nt("{'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":nt("{'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:nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":nt("{'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:nt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:nt("{'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":nt("{'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:nt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":nt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":nt("{'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":nt("{'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":nt("{'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}}}")}},et.events.push(["addFont",function(t){var e,n,r,i=t.font,o="Unicode";(e=ot[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).widths=e.widths,n.kerning=e.kerning),(r=it[o][i.postScriptName])&&((n=i.metadata[o]?i.metadata[o]:i.metadata[o]={}).encoding=r).codePages&&r.codePages.length&&(i.encoding=r.codePages[0])}]),at=pt,"undefined"!=typeof self&&self||"undefined"!=typeof r&&r||"undefined"!=typeof window&&window||Function("return this")(),at.API.events.push(["addFont",function(t){var e=t.font,n=t.instance;if(void 0!==n&&n.existsFileInVFS(e.postScriptName)){var r=n.getFileFromVFS(e.postScriptName);if("string"!=typeof r)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').");e.metadata=at.API.TTFFont.open(e.postScriptName,e.fontName,r,e.encoding),e.metadata.Unicode=e.metadata.Unicode||{encoding:{},kerning:{},widths:[]},e.metadata.glyIdsUsed=[0]}else if(!1===e.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+e.postScriptName+"').")}]),(st=pt.API).addSvg=function(t,e,n,r,i){if(void 0===e||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");function o(t){for(var e=parseFloat(t[1]),n=parseFloat(t[2]),r=[],i=3,o=t.length;i<o;)"c"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2]),parseFloat(t[i+3]),parseFloat(t[i+4]),parseFloat(t[i+5]),parseFloat(t[i+6])]),i+=7):"l"===t[i]?(r.push([parseFloat(t[i+1]),parseFloat(t[i+2])]),i+=3):i+=1;return[e,n,r]}var a,s,u,c,l,A,f,h,p=(a=t,(u=((h=(c=document).createElement("iframe"),l=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(f=(A=c).createElement("style")).type="text/css",f.styleSheet?f.styleSheet.cssText=l:f.appendChild(A.createTextNode(l)),A.getElementsByTagName("head")[0].appendChild(f),h.name="childframe",h.setAttribute("width",0),h.setAttribute("height",0),h.setAttribute("frameborder","0"),h.setAttribute("scrolling","no"),h.setAttribute("seamless","seamless"),h.setAttribute("class","jsPDF_sillysvg_iframe"),c.body.appendChild(h),s=h).contentWindow||s.contentDocument).document).write(a),u.close(),u.getElementsByTagName("svg")[0]),d=[1,1],g=parseFloat(p.getAttribute("width")),m=parseFloat(p.getAttribute("height"));g&&m&&(r&&i?d=[r/g,i/m]:r?d=[r/g,r/g]:i&&(d=[i/m,i/m]));var v,w,y,b,B=p.childNodes;for(v=0,w=B.length;v<w;v++)(y=B[v]).tagName&&"PATH"===y.tagName.toUpperCase()&&((b=o(y.getAttribute("d").split(" ")))[0]=b[0]*d[0]+e,b[1]=b[1]*d[1]+n,this.lines.call(this,b[2],b[0],b[1],d));return this},st.addSVG=st.addSvg,st.addSvgAsImage=function(t,e,n,r,i,o,a,s){if(isNaN(e)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=r,u.height=i;var c=u.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,u.width,u.height),canvg(u,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(u.toDataURL("image/jpeg",1),e,n,r,i,a,s),this},pt.API.putTotalPages=function(t){var e,n=0;n=parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},pt.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,o,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),u=[],c=0,l=0,A=0,f=!0;function h(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var p=s.length;for(A=0;A<p;A+=1)n[s[A]].value=n[s[A]].defaultValue,n[s[A]].explicitSet=!1}if("object"===i(t))for(r in t)if(o=t[r],h(s,r)&&void 0!==o){if("boolean"===n[r].type&&"boolean"==typeof o)n[r].value=o;else if("name"===n[r].type&&h(n[r].valueSet,o))n[r].value=o;else if("integer"===n[r].type&&Number.isInteger(o))n[r].value=o;else if("array"===n[r].type){for(c=0;c<o.length;c+=1)if(f=!0,1===o[c].length&&"number"==typeof o[c][0])u.push(String(o[c]-1));else if(1<o[c].length){for(l=0;l<o[c].length;l+=1)"number"!=typeof o[c][l]&&(f=!1);!0===f&&u.push([o[c][0]-1,o[c][1]-1].join(" "))}n[r].value="["+u.join(" ")+"]"}else n[r].value=n[r].defaultValue;n[r].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},ut=pt.API,At=lt=ct="",ut.addMetadata=function(t,e){return lt=e||"http://jspdf.default.namespaceuri/",ct=t,this.internal.events.subscribe("postPutResources",(function(){if(ct){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+lt+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(ct)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+r.length+i.length+e.length+o.length;At=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")}else At=""})),this.internal.events.subscribe("putCatalog",(function(){At&&this.internal.write("/Metadata "+At+" 0 R")})),this},function(t,e){var n=t.API,r=n.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},i=function(t){var e,n,r,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",r=[],a=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;a<s;a++)e=n[a],100<=r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var a=e.metadata.Unicode.widths,s=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),u="",c=0;c<s.length;c++)u+=String.fromCharCode(s[c]);var l=r();o({data:u,addLength1:!0}),n("endobj");var A=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var f=r();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+e.fontName),n("/FontFile2 "+l+" 0 R"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/Flags "+e.metadata.flags),n("/StemV "+e.metadata.stemV),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n(">>"),n("endobj");var h=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+e.fontName),n("/FontDescriptor "+f+" 0 R"),n("/W "+t.API.PDFObject.convert(a)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+A+" 0 R"),n("/BaseFont /"+e.fontName),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+h+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]),n.events.push(["putFont",function(e){!function(e,n,r,o){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var a=e.metadata.rawData,s="",u=0;u<a.length;u++)s+=String.fromCharCode(a[u]);var c=r();o({data:s,addLength1:!0}),n("endobj");var l=r();o({data:i(e.metadata.toUnicode),addLength1:!0}),n("endobj");var A=r();for(n("<<"),n("/Descent "+e.metadata.decender),n("/CapHeight "+e.metadata.capHeight),n("/StemV "+e.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+c+" 0 R"),n("/Flags 96"),n("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),n("/FontName /"+e.fontName),n("/ItalicAngle "+e.metadata.italicAngle),n("/Ascent "+e.metadata.ascender),n(">>"),n("endobj"),e.objectNumber=r(),u=0;u<e.metadata.hmtx.widths.length;u++)e.metadata.hmtx.widths[u]=parseInt(e.metadata.hmtx.widths[u]*(1e3/e.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+l+" 0 R/BaseFont/"+e.fontName+"/FontDescriptor "+A+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),n("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject,e.putStream)}]);var o=function(t){var e,n,i=t.text||"",o=t.x,a=t.y,s=t.options||{},u=t.mutex||{},c=u.pdfEscape,l=u.activeFontKey,A=u.fonts,f=(u.activeFontSize,""),h=0,p="",d=A[n=l].encoding;if("Identity-H"!==A[n].encoding)return{text:i,x:o,y:a,options:s,mutex:u};for(p=i,n=l,"[object Array]"===Object.prototype.toString.call(i)&&(p=i[0]),h=0;h<p.length;h+=1)A[n].metadata.hasOwnProperty("cmap")&&(e=A[n].metadata.cmap.unicode.codeMap[p[h].charCodeAt(0)]),e||p[h].charCodeAt(0)<256&&A[n].metadata.hasOwnProperty("Unicode")?f+=p[h]:f+="";var g="";return parseInt(n.slice(1))<14||"WinAnsiEncoding"===d?g=function(t){for(var e="",n=0;n<t.length;n++)e+=""+t.charCodeAt(n).toString(16);return e}(c(f,n)):"Identity-H"===d&&(g=r(f,A[n])),u.isHex=!0,{text:g,x:o,y:a,options:s,mutex:u}};n.events.push(["postProcessText",function(t){var e=t.text||"",n=t.x,r=t.y,i=t.options,a=t.mutex,s=(i.lang,[]),u={text:e,x:n,y:r,options:i,mutex:a};if("[object Array]"===Object.prototype.toString.call(e)){var c=0;for(c=0;c<e.length;c+=1)"[object Array]"===Object.prototype.toString.call(e[c])&&3===e[c].length?s.push([o(Object.assign({},u,{text:e[c][0]})).text,e[c][1],e[c][2]]):s.push(o(Object.assign({},u,{text:e[c]})).text);t.text=s}else t.text=o(Object.assign({},u,{text:e})).text}])}(pt,"undefined"!=typeof self&&self||"undefined"!=typeof r&&r||"undefined"!=typeof window&&window||Function("return this")()),ft=pt.API,ht=function(t){return void 0!==t&&(void 0===t.vFS&&(t.vFS={}),!0)},ft.existsFileInVFS=function(t){return!!ht(this.internal)&&void 0!==this.internal.vFS[t]},ft.addFileToVFS=function(t,e){return ht(this.internal),this.internal.vFS[t]=e,this},ft.getFileFromVFS=function(t){return ht(this.internal),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null},pt.API.addHTML=function(t,e,n,r,i){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof e&&(r=e,i=n),"function"==typeof r&&(i=r,r=null),"function"!=typeof i&&(i=function(){});var o=this.internal,a=o.scaleFactor,s=o.pageSize.getWidth(),u=o.pageSize.getHeight();if((r=r||{}).onrendered=function(t){e=parseInt(e)||0,n=parseInt(n)||0;var o=r.dim||{},c=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),l=o.h||Math.min(u,t.height/a),A=o.w||Math.min(s,t.width/a)-e,f=r.format||"JPEG",h=r.imageCompression||"SLOW";if(t.height>u-c.top-c.bottom&&r.pagesplit){var p=function(t,e,n,i,o){var a=document.createElement("canvas");a.height=o,a.width=i;var s=a.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,i,o),s.drawImage(t,e,n,i,o,0,0,i,o),a},d=function(){for(var r,o,l=0,d=0,g={},m=!1;;){var v;if(d=0,g.top=0!==l?c.top:n,g.left=0!==l?c.left:e,m=(s-c.left-c.right)*a<t.width,"content"===c.useFor?0===l?(r=Math.min((s-c.left)*a,t.width),o=Math.min((u-c.top)*a,t.height-l)):(r=Math.min(s*a,t.width),o=Math.min(u*a,t.height-l),g.top=0):(r=Math.min((s-c.left-c.right)*a,t.width),o=Math.min((u-c.bottom-c.top)*a,t.height-l)),m)for(;;){"content"===c.useFor&&(0===d?r=Math.min((s-c.left)*a,t.width):(r=Math.min(s*a,t.width-d),g.left=0));var w=[v=p(t,d,l,r,o),g.left,g.top,v.width/a,v.height/a,f,null,h];if(this.addImage.apply(this,w),(d+=r)>=t.width)break;this.addPage()}else w=[v=p(t,0,l,r,o),g.left,g.top,v.width/a,v.height/a,f,null,h],this.addImage.apply(this,w);if((l+=o)>=t.height)break;this.addPage()}i(A,l,null,w)}.bind(this);if("CANVAS"===t.nodeName){var g=new Image;g.onload=d,g.src=t.toDataURL("image/png"),t=g}else d()}else{var m=Math.random().toString(35),v=[t,e,n,A,l,f,m,h];this.addImage.apply(this,v),i(A,l,m,v)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"==typeof rasterizeHTML)return null;var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||s*a,rasterizeHTML[c](t,void 0,r).then((function(t){r.onrendered(t.image)}),(function(t){i(null,t)}))},function(t){var e,n,r,o,a,s,u,c,l,A,f,h,p,d,g,m,v,w,y,b;e=function(){return function(e){return t.prototype=e,new t};function t(){}}(),A=function(t){var e,n,r,i,o,a,s;for(n=0,r=t.length,e=void 0,a=i=!1;!i&&n!==r;)(e=t[n]=t[n].trimLeft())&&(i=!0),n++;for(n=r-1;r&&!a&&-1!==n;)(e=t[n]=t[n].trimRight())&&(a=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=t[n]&&(e=t[n].replace(/\s+/g," "),s&&(e=e.trimLeft()),e&&(s=o.test(e)),t[n]=e),n++;return t},h=function(t){var e,n,i;for(e=void 0,n=(i=t.split(",")).shift();!e&&n;)e=r[n.trim().toLowerCase()],n=i.shift();return e},p=function(t){var e;return-1<(t="auto"===t?"0px":t).indexOf("em")&&!isNaN(Number(t.replace("em","")))&&(t=18.719*Number(t.replace("em",""))+"px"),-1<t.indexOf("pt")&&!isNaN(Number(t.replace("pt","")))&&(t=1.333*Number(t.replace("pt",""))+"px"),(e=d[t])?e:void 0!==(e={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[t])||(e=parseFloat(t))?d[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?d[t]=parseFloat(e[1])/16:d[t]=1)},l=function(t){var e,n,r,i,l;return l=t,i=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(l,null):l.currentStyle?l.currentStyle:l.style,n=void 0,(e={})["font-family"]=h((r=function(t){return t=t.replace(/-\D/g,(function(t){return t.charAt(1).toUpperCase()})),i[t]})("font-family"))||"times",e["font-style"]=o[r("font-style")]||"normal",e["text-align"]=a[r("text-align")]||"left","bold"===(n=s[r("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=n:e["font-style"]=n+e["font-style"]),e["font-size"]=p(r("font-size"))||1,e["line-height"]=p(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",n="block"===e.display,e["margin-top"]=n&&p(r("margin-top"))||0,e["margin-bottom"]=n&&p(r("margin-bottom"))||0,e["padding-top"]=n&&p(r("padding-top"))||0,e["padding-bottom"]=n&&p(r("padding-bottom"))||0,e["margin-left"]=n&&p(r("margin-left"))||0,e["margin-right"]=n&&p(r("margin-right"))||0,e["padding-left"]=n&&p(r("padding-left"))||0,e["padding-right"]=n&&p(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=u[r("cssFloat")]||"none",e.clear=c[r("clear")]||"none",e.color=r("color"),e},g=function(t,e,n){var r,i,o,a,s;if(o=!1,a=i=void 0,r=n["#"+t.id])if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;if(r=n[t.nodeName],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;for(s="string"==typeof t.className?t.className.split(" "):[],i=0;i<s.length;i++)if(r=n["."+s[i]],!o&&r)if("function"==typeof r)o=r(t,e);else for(i=0,a=r.length;!o&&i!==a;)o=r[i](t,e),i++;return o},b=function(t,e){var n,r,i,o,a,s,u,c,l;for(n=[],r=[],i=0,l=t.rows[0].cells.length,u=t.clientWidth;i<l;)c=t.rows[0].cells[i],r[i]={name:c.textContent.toLowerCase().replace(/\s+/g,""),prompt:c.textContent.replace(/\r?\n/g,""),width:c.clientWidth/u*e.pdf.internal.pageSize.getWidth()},i++;for(i=1;i<t.rows.length;){for(s=t.rows[i],a={},o=0;o<s.cells.length;)a[r[o].name]=s.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(a),i++}return{rows:n,headers:r}};var B={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},x=1;n=function(t,r,o){var a,s,u,c,A,f,h,p;for(s=t.childNodes,a=void 0,(A="block"===(u=l(t)).display)&&(r.setBlockBoundary(),r.setBlockStyle(u)),c=0,f=s.length;c<f;){if("object"===i(a=s[c])){if(r.executeWatchFunctions(a),1===a.nodeType&&"HEADER"===a.nodeName){var d=a,v=r.pdf.margins_doc.top;r.pdf.internal.events.subscribe("addPage",(function(t){r.y=v,n(d,r,o),r.pdf.margins_doc.top=r.y+10,r.y+=10}),!1)}if(8===a.nodeType&&"#comment"===a.nodeName)~a.textContent.indexOf("ADD_PAGE")&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top);else if(1!==a.nodeType||B[a.nodeName])if(3===a.nodeType){var w=a.nodeValue;if(a.nodeValue&&"LI"===a.parentNode.nodeName)if("OL"===a.parentNode.parentNode.nodeName)w=x+++". "+w;else{var y=u["font-size"],N=(3-.75*y)*r.pdf.internal.scaleFactor,_=.75*y*r.pdf.internal.scaleFactor,C=1.74*y/r.pdf.internal.scaleFactor;p=function(t,e){this.pdf.circle(t+N,e+_,C,"FD")}}16&a.ownerDocument.body.compareDocumentPosition(a)&&r.addText(w,u)}else"string"==typeof a&&r.addText(a,u);else{var S;if("IMG"===a.nodeName){var E=a.getAttribute("src");S=m[r.pdf.sHashCode(E)||E]}if(S){r.pdf.internal.pageSize.getHeight()-r.pdf.margins_doc.bottom<r.y+a.height&&r.y>r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(a));var L=l(a),F=r.x,k=12/r.pdf.internal.scaleFactor,U=(L["margin-left"]+L["padding-left"])*k,Q=(L["margin-right"]+L["padding-right"])*k,I=(L["margin-top"]+L["padding-top"])*k,P=(L["margin-bottom"]+L["padding-bottom"])*k;void 0!==L.float&&"right"===L.float?F+=r.settings.width-a.width-Q:F+=U,r.pdf.addImage(S,F,r.y+I,a.width,a.height),S=void 0,"right"===L.float||"left"===L.float?(r.watchFunctions.push(function(t,e,n,i){return r.y>=e?(r.x+=t,r.settings.width+=n,!0):!!(i&&1===i.nodeType&&!B[i.nodeName]&&r.x+i.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=t,r.y=e,r.settings.width+=n,!0)}.bind(this,"left"===L.float?-a.width-U-Q:0,r.y+a.height+I+P,a.width)),r.watchFunctions.push(function(t,e,n){return!(r.y<t&&e===r.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===l(n).clear&&(r.y=t,!0)}.bind(this,r.y+a.height,r.pdf.internal.getNumberOfPages())),r.settings.width-=a.width+U+Q,"left"===L.float&&(r.x+=a.width+U+Q)):r.y+=a.height+I+P}else if("TABLE"===a.nodeName)h=b(a,r),r.y+=10,r.pdf.table(r.x,r.y,h.rows,h.headers,{autoSize:!1,printHeaders:o.printHeaders,margins:r.pdf.margins_doc,css:l(a)}),r.y=r.pdf.lastCellPos.y+r.pdf.lastCellPos.h+20;else if("OL"===a.nodeName||"UL"===a.nodeName)x=1,g(a,r,o)||n(a,r,o),r.y+=10;else if("LI"===a.nodeName){var O=r.x;r.x+=20/r.pdf.internal.scaleFactor,r.y+=3,g(a,r,o)||n(a,r,o),r.x=O}else"BR"===a.nodeName?(r.y+=u["font-size"]*r.pdf.internal.scaleFactor,r.addText("\u2028",e(u))):g(a,r,o)||n(a,r,o)}}c++}if(o.outY=r.y,A)return r.setBlockBoundary(p)},m={},v=function(t,e,n,r){var i,o=t.getElementsByTagName("img"),a=o.length,s=0;function u(){e.pdf.internal.events.publish("imagesLoaded"),r(i)}function c(t,n,r){if(t){var o=new Image;i=++s,o.crossOrigin="",o.onerror=o.onload=function(){if(o.complete&&(0===o.src.indexOf("data:image/")&&(o.width=n||o.width||0,o.height=r||o.height||0),o.width+o.height)){var i=e.pdf.sHashCode(t)||t;m[i]=m[i]||o}--s||u()},o.src=t}}for(;a--;)c(o[a].getAttribute("src"),o[a].width,o[a].height);return s||u()},w=function(t,e,r){var i=t.getElementsByTagName("footer");if(0<i.length){i=i[0];var o=e.pdf.internal.write,a=e.y;e.pdf.internal.write=function(){},n(i,e,r);var s=Math.ceil(e.y-a)+5;e.y=a,e.pdf.internal.write=o,e.pdf.margins_doc.bottom+=s;for(var u=function(t){var o=void 0!==t?t.pageNumber:1,a=e.y;e.y=e.pdf.internal.pageSize.getHeight()-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=s;for(var u=i.getElementsByTagName("span"),c=0;c<u.length;++c)-1<(" "+u[c].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(u[c].innerHTML=o),-1<(" "+u[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(u[c].innerHTML="###jsPDFVarTotalPages###");n(i,e,r),e.pdf.margins_doc.bottom+=s,e.y=a},c=i.getElementsByTagName("span"),l=0;l<c.length;++l)-1<(" "+c[l].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&e.pdf.internal.events.subscribe("htmlRenderingFinished",e.pdf.putTotalPages.bind(e.pdf,"###jsPDFVarTotalPages###"),!0);e.pdf.internal.events.subscribe("addPage",u,!1),u(),B.FOOTER=1}},y=function(t,e,r,i,o,a){if(!e)return!1;var s,u,c,l;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(s=e.replace(/<\/?script[^>]*?>/gi,""),l="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='<iframe style="height:1px;width:1px" name="'+l+'" />',document.body.appendChild(c),(u=window.frames[l]).document.open(),u.document.writeln(s),u.document.close(),e=u.document.body);var A,h=new f(t,r,i,o);return v.call(this,e,h,o.elementHandlers,(function(t){w(e,h,o.elementHandlers),n(e,h,o.elementHandlers),h.pdf.internal.events.publish("htmlRenderingFinished"),A=h.dispose(),"function"==typeof a?a(A):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")})),A||{x:h.x,y:h.y}},(f=function(t,e,n,r){return this.pdf=t,this.x=e,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},f.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},f.prototype.executeWatchFunctions=function(t){var e=!1,n=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return e},f.prototype.splitFragmentsIntoLines=function(t,n){var r,i,o,a,s,u,c,l,A,f,h,p,d,g;for(f=this.pdf.internal.scaleFactor,a={},u=c=l=g=s=o=A=i=void 0,p=[h=[]],r=0,d=this.settings.width;t.length;)if(s=t.shift(),g=n.shift(),s)if((o=a[(i=g["font-family"])+(A=g["font-style"])])||(o=this.pdf.internal.getFont(i,A).metadata.Unicode,a[i+A]=o),l={widths:o.widths,kerning:o.kerning,fontSize:12*g["font-size"],textIndent:r},c=this.pdf.getStringUnitWidth(s,l)*l.fontSize/f,"\u2028"==s)h=[],p.push(h);else if(d<r+c){for(u=this.pdf.splitTextToSize(s,d,l),h.push([u.shift(),g]);u.length;)h=[[u.shift(),g]],p.push(h);r=this.pdf.getStringUnitWidth(h[0][0],l)*l.fontSize/f}else h.push([s,g]),r+=c;if(void 0!==g["text-align"]&&("center"===g["text-align"]||"right"===g["text-align"]||"justify"===g["text-align"]))for(var m=0;m<p.length;++m){var v=this.pdf.getStringUnitWidth(p[m][0][0],l)*l.fontSize/f;0<m&&(p[m][0][1]=e(p[m][0][1]));var w=d-v;if("right"===g["text-align"])p[m][0][1]["margin-left"]=w;else if("center"===g["text-align"])p[m][0][1]["margin-left"]=w/2;else if("justify"===g["text-align"]){var y=p[m][0][0].split(" ").length-1;p[m][0][1]["word-spacing"]=w/y,m===p.length-1&&(p[m][0][1]["word-spacing"]=0)}}return p},f.prototype.RenderTextFragment=function(t,e){var n,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(e.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,e["line-height"],e["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),n=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var i=this.getPdfColor(e.color);i!==this.lastTextColor&&(this.pdf.internal.write(i),this.lastTextColor=i),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*e["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(t)+") Tj"),void 0!==e["word-spacing"]&&this.pdf.internal.write(0,"Tw")},f.prototype.getPdfColor=function(t){var e,n,r,i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i)e=parseInt(i[1]),n=parseInt(i[2]),r=parseInt(i[3]);else{if("string"==typeof t&&"#"!=t.charAt(0)){var o=new RGBColor(t);t=o.ok?o.toHex():"#000000"}e=t.substring(1,3),e=parseInt(e,16),n=t.substring(3,5),n=parseInt(n,16),r=t.substring(5,7),r=parseInt(r,16)}if("string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var a=parseInt(e.substr(1),16);e=a>>16&255,n=a>>8&255,r=255&a}var s=this.f3;return 0===e&&0===n&&0===r||void 0===n?s(e/255)+" g":[s(e/255),s(n/255),s(r/255),"rg"].join(" ")},f.prototype.f3=function(t){return t.toFixed(3)},f.prototype.renderParagraph=function(t){var e,n,r,i,o,a,s,u,c,l,f,h,p;if(r=A(this.paragraph.text),h=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},r.join("").trim()){s=this.splitFragmentsIntoLines(r,h),u=a=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,f=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*n,l=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*n,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,f=((e["margin-top"]||0)+(e["padding-top"]||0))*n),c=this.pdf.internal.write,o=i=void 0,this.y+=f,c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var d=0;s.length;){for(i=u=0,o=(a=s.shift()).length;i!==o;)a[i][0].trim()&&(u=Math.max(u,a[i][1]["line-height"],a[i][1]["font-size"]),p=7*a[i][1]["font-size"]),i++;var g=0,m=0;for(void 0!==a[0][1]["margin-left"]&&0<a[0][1]["margin-left"]&&(g=(m=this.pdf.internal.getCoordinateString(a[0][1]["margin-left"]))-d,d=m),c(g+Math.max(e["margin-left"]||0,0)*n,(-12*u).toFixed(2),"Td"),i=0,o=a.length;i!==o;)a[i][0]&&this.RenderTextFragment(a[i][0],a[i][1]),i++;if(this.y+=u*n,this.executeWatchFunctions(a[0][1])&&0<s.length){var v=[],w=[];s.forEach((function(t){for(var e=0,n=t.length;e!==n;)t[e][0]&&(v.push(t[e][0]+" "),w.push(t[e][1])),++e})),s=this.splitFragmentsIntoLines(A(v),w),c("ET","Q"),c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return t&&"function"==typeof t&&t.call(this,this.x-9,this.y-p/2),c("ET","Q"),this.y+=l}},f.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},f.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},f.prototype.addText=function(t,e){return this.paragraph.text.push(t),this.paragraph.style.push(e)},r={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},s={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},o={normal:"normal",italic:"italic",oblique:"italic"},a={left:"left",right:"right",center:"center",justify:"justify"},u={none:"none",right:"right",left:"left"},c={none:"none",both:"both"},d={normal:1},t.fromHTML=function(t,e,n,r,i,o){return this.margins_doc=o||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),y(this,t,isNaN(e)?4:e,isNaN(n)?4:n,r,i)}}(pt.API),pt.API,("undefined"!=typeof window&&window||"undefined"!=typeof r&&r).html2pdf=function(t,e,n){var r=e.canvas;if(r){var i,o;if((r.pdf=e).annotations={_nameMap:[],createAnnotation:function(t,n){var r,i=e.context2d._wrapX(n.left),o=e.context2d._wrapY(n.top),a=(e.context2d._page(n.top),t.indexOf("#"));r=0<=a?{name:t.substring(a+1)}:{url:t},e.link(i,o,n.right-n.left,n.bottom-n.top,r)},setName:function(t,n){var r=e.context2d._wrapX(n.left),i=e.context2d._wrapY(n.top),o=e.context2d._page(n.top);this._nameMap[t]={page:o,x:r,y:i}}},r.annotations=e.annotations,e.context2d._pageBreakAt=function(t){this.pageBreaks.push(t)},e.context2d._gotoPage=function(t){for(;e.internal.getNumberOfPages()<t;)e.addPage();e.setPage(t)},"string"==typeof t){t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var a,s,u=document.createElement("iframe");document.body.appendChild(u),null!=(a=u.contentDocument)&&null!=a||(a=u.contentWindow.document),a.open(),a.write(t),a.close(),i=a.body,s=a.body||{},t=a.documentElement||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}else s=(i=t).body||{},o=Math.max(s.scrollHeight,s.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);var c={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:r,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:o=e.internal.pageSize.getHeight(),scrollY:o};e.context2d.pageWrapYEnabled=!0,e.context2d.pageWrapY=e.internal.pageSize.getHeight(),html2canvas(i,c).then((function(t){n&&(u&&u.parentElement.removeChild(u),n(e))}))}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(t){var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder;t.URL=t.URL||t.webkitURL||function(t,e){return(e=document.createElement("a")).href=t,e};var n=t.Blob,r=URL.createObjectURL,i=URL.revokeObjectURL,o=t.Symbol&&t.Symbol.toStringTag,a=!1,s=!1,u=!!t.ArrayBuffer,c=e&&e.prototype.append&&e.prototype.getBlob;try{a=2===new Blob(["\xe4"]).size,s=2===new Blob([new Uint8Array([1,2])]).size}catch(a){}function l(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function A(t,n){n=n||{};var r=new e;return l(t).forEach((function(t){r.append(t)})),n.type?r.getBlob(n.type):r.getBlob()}function f(t,e){return new n(l(t),e||{})}if(t.Blob&&(A.prototype=Blob.prototype,f.prototype=Blob.prototype),o)try{File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader"}catch(a){}function h(){var e=!!t.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,n=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;e&&n&&(XMLHttpRequest.prototype.send=function(t){t instanceof Blob&&this.setRequestHeader("Content-Type",t.type),n.call(this,t)});try{new File([],"")}catch(e){try{var r=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();t.File=r}catch(e){r=function(t,e,n){var r=new Blob(t,n),i=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return r.name=e,r.lastModifiedDate=i,r.lastModified=+i,r.toString=function(){return"[object File]"},o&&(r[o]="File"),r},t.File=r}}}a?(h(),t.Blob=s?t.Blob:f):c?(h(),t.Blob=A):function(){function e(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e.push(r):r<2048?e.push(192|r>>6,128|63&r):r<55296||57344<=r?e.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&t.charCodeAt(n)),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return e}function n(t){var e,n,r,i,o,a;for(e="",r=t.length,n=0;n<r;)switch((i=t[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e+=String.fromCharCode(i);break;case 12:case 13:o=t[n++],e+=String.fromCharCode((31&i)<<6|63&o);break;case 14:o=t[n++],a=t[n++],e+=String.fromCharCode((15&i)<<12|(63&o)<<6|(63&a)<<0)}return e}function o(t){for(var e=new Array(t.byteLength),n=new Uint8Array(t),r=e.length;r--;)e[r]=n[r];return e}function a(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<t.length;r+=3){var i=t[r],o=r+1<t.length,a=o?t[r+1]:0,s=r+2<t.length,u=s?t[r+2]:0,c=i>>2,l=(3&i)<<4|a>>4,A=(15&a)<<2|u>>6,f=63&u;s||(f=64,o||(A=64)),n.push(e[c],e[l],e[A],e[f])}return n.join("")}var s=Object.create||function(t){function e(){}return e.prototype=t,new e};if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(t){return t&&-1<c.indexOf(Object.prototype.toString.call(t))};function A(t,n){for(var r=0,i=(t=t||[]).length;r<i;r++){var a=t[r];a instanceof A?t[r]=a._buffer:"string"==typeof a?t[r]=e(a):u&&(ArrayBuffer.prototype.isPrototypeOf(a)||l(a))?t[r]=o(a):u&&(s=a)&&DataView.prototype.isPrototypeOf(s)?t[r]=o(a.buffer):t[r]=e(String(a))}var s;this._buffer=[].concat.apply([],t),this.size=this._buffer.length,this.type=n&&n.type||""}function f(t,e,n){var r=A.call(this,t,n=n||{})||this;return r.name=e,r.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,r.lastModified=+r.lastModifiedDate,r}if(A.prototype.slice=function(t,e,n){return new A([this._buffer.slice(t||0,e||this._buffer.length)],{type:n})},A.prototype.toString=function(){return"[object Blob]"},(f.prototype=s(A.prototype)).constructor=f,Object.setPrototypeOf)Object.setPrototypeOf(f,A);else try{f.__proto__=A}catch(s){}function h(){if(!(this instanceof h))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var t=document.createDocumentFragment();this.addEventListener=t.addEventListener,this.dispatchEvent=function(e){var n=this["on"+e.type];"function"==typeof n&&n(e),t.dispatchEvent(e)},this.removeEventListener=t.removeEventListener}function p(t,e,n){if(!(e instanceof A))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");t.result="",setTimeout((function(){this.readyState=h.LOADING,t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("loadend"))}))}f.prototype.toString=function(){return"[object File]"},h.EMPTY=0,h.LOADING=1,h.DONE=2,h.prototype.error=null,h.prototype.onabort=null,h.prototype.onerror=null,h.prototype.onload=null,h.prototype.onloadend=null,h.prototype.onloadstart=null,h.prototype.onprogress=null,h.prototype.readAsDataURL=function(t){p(this,t,"readAsDataURL"),this.result="data:"+t.type+";base64,"+a(t._buffer)},h.prototype.readAsText=function(t){p(this,t,"readAsText"),this.result=n(t._buffer)},h.prototype.readAsArrayBuffer=function(t){p(this,t,"readAsText"),this.result=t._buffer.slice()},h.prototype.abort=function(){},URL.createObjectURL=function(t){return t instanceof A?"data:"+t.type+";base64,"+a(t._buffer):r.call(URL,t)},URL.revokeObjectURL=function(t){i&&i.call(URL,t)};var d=t.XMLHttpRequest&&t.XMLHttpRequest.prototype.send;d&&(XMLHttpRequest.prototype.send=function(t){t instanceof A?(this.setRequestHeader("Content-Type",t.type),d.call(this,n(t._buffer))):d.call(this,t)}),t.FileReader=h,t.File=f,t.Blob=A}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());var dt,gt,mt,vt,wt,yt,bt,Bt,xt,Nt,_t,Ct,St,Et,Lt,Ft=Ft||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=/constructor/i.test(t.HTMLElement)||t.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),s=t.setImmediate||t.setTimeout,u=function(t){s((function(){throw t}),0)},c=function(t){setTimeout((function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()}),4e4)},l=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},A=function(e,A,f){f||(e=l(e));var h,p=this,d="application/octet-stream"===e.type,g=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"==typeof i)try{i.call(t,n||t)}catch(t){u(t)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return h=n().createObjectURL(e),void s((function(){var t,e;r.href=h,r.download=A,t=r,e=new MouseEvent("click"),t.dispatchEvent(e),g(),c(h),p.readyState=p.DONE}),0);!function(){if((a||d&&o)&&t.FileReader){var r=new FileReader;return r.onloadend=function(){var e=a?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,p.readyState=p.DONE,g()},r.readAsDataURL(e),p.readyState=p.INIT}h||(h=n().createObjectURL(e)),d?t.location.href=h:t.open(h,"_blank")||(t.location.href=h),p.readyState=p.DONE,g(),c(h)}()},f=A.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=l(t)),navigator.msSaveOrOpenBlob(t,e)}:(f.abort=function(){},f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,function(t,e,n){return new A(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function kt(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw"Invalid GIF 87a/89a header.";var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=i>>7,a=1<<1+(7&i);t[e++],t[e++];var s=null;o&&(s=e,e+=3*a);var u=!0,c=[],l=0,A=null,f=0,h=null;for(this.width=n,this.height=r;u&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,h=t[e++]|t[e++]<<8,e++;else for(e+=12;0!==(N=t[e++]);)e+=N;break;case 249:if(4!==t[e++]||0!==t[e+4])throw"Invalid graphics extension block.";var p=t[e++];l=t[e++]|t[e++]<<8,A=t[e++],0==(1&p)&&(A=null),f=p>>2&7,e++;break;case 254:for(;0!==(N=t[e++]);)e+=N;break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var d=t[e++]|t[e++]<<8,g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,w=t[e++],y=w>>6&1,b=s,B=!1;w>>7&&(B=!0,b=e,e+=3*(1<<1+(7&w)));var x=e;for(e++;;){var N;if(0===(N=t[e++]))break;e+=N}c.push({x:d,y:g,width:m,height:v,has_local_palette:B,palette_offset:b,data_offset:x,data_length:e-x,transparent_index:A,interlaced:!!y,delay:l,disposal:f});break;case 59:u=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return c.length},this.loopCount=function(){return h},this.frameInfo=function(t){if(t<0||t>=c.length)throw"Frame index out of range.";return c[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Ut(t,i.data_offset,a,o);var s=i.palette_offset,u=i.transparent_index;null===u&&(u=256);var c=i.width,l=n-c,A=c,f=4*(i.y*n+i.x),h=4*((i.y+i.height)*n+i.x),p=f,d=4*l;!0===i.interlaced&&(d+=4*(c+l)*7);for(var g=8,m=0,v=a.length;m<v;++m){var w=a[m];if(0===A&&(A=c,h<=(p+=d)&&(d=l+4*(c+l)*(g-1),p=f+(c+l)*(g<<1),g>>=1)),w===u)p+=4;else{var y=t[s+3*w],b=t[s+3*w+1],B=t[s+3*w+2];r[p++]=B,r[p++]=b,r[p++]=y,r[p++]=255}--A}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,a=new Uint8Array(o);Ut(t,i.data_offset,a,o);var s=i.palette_offset,u=i.transparent_index;null===u&&(u=256);var c=i.width,l=n-c,A=c,f=4*(i.y*n+i.x),h=4*((i.y+i.height)*n+i.x),p=f,d=4*l;!0===i.interlaced&&(d+=4*(c+l)*7);for(var g=8,m=0,v=a.length;m<v;++m){var w=a[m];if(0===A&&(A=c,h<=(p+=d)&&(d=l+4*(c+l)*(g-1),p=f+(c+l)*(g<<1),g>>=1)),w===u)p+=4;else{var y=t[s+3*w],b=t[s+3*w+1],B=t[s+3*w+2];r[p++]=y,r[p++]=b,r[p++]=B,r[p++]=255}--A}}}function Ut(t,e,n,r){for(var i=t[e++],o=1<<i,a=o+1,s=a+1,u=i+1,c=(1<<u)-1,l=0,A=0,f=0,h=t[e++],p=new Int32Array(4096),d=null;;){for(;l<16&&0!==h;)A|=t[e++]<<l,l+=8,1===h?h=t[e++]:--h;if(l<u)break;var g=A&c;if(A>>=u,l-=u,g!==o){if(g===a)break;for(var m=g<s?g:d,v=0,w=m;o<w;)w=p[w]>>8,++v;var y=w;if(r<f+v+(m!==g?1:0))return void console.log("Warning, gif stream longer than expected.");n[f++]=y;var b=f+=v;for(m!==g&&(n[f++]=y),w=m;v--;)w=p[w],n[--b]=255&w,w>>=8;null!==d&&s<4096&&(p[s++]=d<<8|y,c+1<=s&&u<12&&(++u,c=c<<1|1)),d=g}else s=a+1,c=(1<<(u=i+1))-1,d=null}return f!==r&&console.log("Warning, gif stream shorter than expected."),n}try{e.GifWriter=function(t,e,n,r){var i=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,a=void 0===r.palette?null:r.palette;if(e<=0||n<=0||65535<e||65535<n)throw"Width/Height invalid.";function s(t){var e=t.length;if(e<2||256<e||e&e-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return e}t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var u=0,c=0;if(null!==a){for(var l=s(a);l>>=1;)++u;if(l=1<<u,--u,void 0!==r.background){if(l<=(c=r.background))throw"Background index out of range.";if(0===c)throw"Background index explicitly passed as 0."}}if(t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=(null!==a?128:0)|u,t[i++]=c,t[i++]=0,null!==a)for(var A=0,f=a.length;A<f;++A){var h=a[A];t[i++]=h>>16&255,t[i++]=h>>8&255,t[i++]=255&h}if(null!==o){if(o<0||65535<o)throw"Loop count invalid.";t[i++]=33,t[i++]=255,t[i++]=11,t[i++]=78,t[i++]=69,t[i++]=84,t[i++]=83,t[i++]=67,t[i++]=65,t[i++]=80,t[i++]=69,t[i++]=50,t[i++]=46,t[i++]=48,t[i++]=3,t[i++]=1,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=0}var p=!1;this.addFrame=function(e,n,r,o,u,c){if(!0===p&&(--i,p=!1),c=void 0===c?{}:c,e<0||n<0||65535<e||65535<n)throw"x/y invalid.";if(r<=0||o<=0||65535<r||65535<o)throw"Width/Height invalid.";if(u.length<r*o)throw"Not enough pixels for the frame size.";var l=!0,A=c.palette;if(null==A&&(l=!1,A=a),null==A)throw"Must supply either a local or global palette.";for(var f=s(A),h=0;f>>=1;)++h;f=1<<h;var d=void 0===c.delay?0:c.delay,g=void 0===c.disposal?0:c.disposal;if(g<0||3<g)throw"Disposal out of range.";var m=!1,v=0;if(void 0!==c.transparent&&null!==c.transparent&&(m=!0,(v=c.transparent)<0||f<=v))throw"Transparent color index.";if((0!==g||m||0!==d)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=g<<2|(!0===m?1:0),t[i++]=255&d,t[i++]=d>>8&255,t[i++]=v,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&n,t[i++]=n>>8&255,t[i++]=255&r,t[i++]=r>>8&255,t[i++]=255&o,t[i++]=o>>8&255,t[i++]=!0===l?128|h-1:0,!0===l)for(var w=0,y=A.length;w<y;++w){var b=A[w];t[i++]=b>>16&255,t[i++]=b>>8&255,t[i++]=255&b}i=function(t,e,n,r){t[e++]=n;var i=e++,o=1<<n,a=o-1,s=o+1,u=s+1,c=n+1,l=0,A=0;function f(n){for(;n<=l;)t[e++]=255&A,A>>=8,l-=8,e===i+256&&(t[i]=255,i=e++)}function h(t){A|=t<<l,l+=c,f(8)}var p=r[0]&a,d={};h(o);for(var g=1,m=r.length;g<m;++g){var v=r[g]&a,w=p<<8|v,y=d[w];if(void 0===y){for(A|=p<<l,l+=c;8<=l;)t[e++]=255&A,A>>=8,l-=8,e===i+256&&(t[i]=255,i=e++);4096===u?(h(o),u=s+1,c=n+1,d={}):(1<<c<=u&&++c,d[w]=u++),p=v}else p=y}return h(p),h(s),f(1),i+1===e?t[i]=0:(t[i]=e-i-1,t[e++]=0),e}(t,i,h<2?2:h,u)},this.end=function(){return!1===p&&(t[i++]=59,p=!0),i}},e.GifReader=kt}catch(a){}function Qt(t){var e,n,r,i,o,a=Math.floor,s=new Array(64),u=new Array(64),c=new Array(64),l=new Array(64),A=new Array(65535),f=new Array(65535),h=new Array(64),p=new Array(64),d=[],g=0,m=7,v=new Array(64),w=new Array(64),y=new Array(64),b=new Array(256),B=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[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],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],F=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[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 U(t,e){for(var n=0,r=0,i=new Array,o=1;o<=16;o++){for(var a=1;a<=t[o];a++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function Q(t){for(var e=t[0],n=t[1]-1;0<=n;)e&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(I(255),I(0)):I(g),m=7,g=0)}function I(t){d.push(t)}function P(t){I(t>>8&255),I(255&t)}function O(t,e,n,r,i){for(var o,a=i[0],s=i[240],u=function(t,e){var n,r,i,o,a,s,u,c,l,A,f=0;for(l=0;l<8;++l){n=t[f],r=t[f+1],i=t[f+2],o=t[f+3],a=t[f+4],s=t[f+5],u=t[f+6];var p=n+(c=t[f+7]),d=n-c,g=r+u,m=r-u,v=i+s,w=i-s,y=o+a,b=o-a,B=p+y,x=p-y,N=g+v,_=g-v;t[f]=B+N,t[f+4]=B-N;var C=.707106781*(_+x);t[f+2]=x+C,t[f+6]=x-C;var S=.382683433*((B=b+w)-(_=m+d)),E=.5411961*B+S,L=1.306562965*_+S,F=.707106781*(N=w+m),k=d+F,U=d-F;t[f+5]=U+E,t[f+3]=U-E,t[f+1]=k+L,t[f+7]=k-L,f+=8}for(l=f=0;l<8;++l){n=t[f],r=t[f+8],i=t[f+16],o=t[f+24],a=t[f+32],s=t[f+40],u=t[f+48];var Q=n+(c=t[f+56]),I=n-c,P=r+u,O=r-u,T=i+s,M=i-s,H=o+a,R=o-a,D=Q+H,j=Q-H,z=P+T,K=P-T;t[f]=D+z,t[f+32]=D-z;var q=.707106781*(K+j);t[f+16]=j+q,t[f+48]=j-q;var V=.382683433*((D=R+M)-(K=O+I)),G=.5411961*D+V,W=1.306562965*K+V,X=.707106781*(z=M+O),J=I+X,Y=I-X;t[f+40]=Y+G,t[f+24]=Y-G,t[f+8]=J+W,t[f+56]=J-W,f++}for(l=0;l<64;++l)A=t[l]*e[l],h[l]=0<A?A+.5|0:A-.5|0;return h}(t,e),c=0;c<64;++c)p[x[c]]=u[c];var l=p[0]-n;n=p[0],0==l?Q(r[0]):(Q(r[f[o=32767+l]]),Q(A[o]));for(var d=63;0<d&&0==p[d];d--);if(0==d)return Q(a),n;for(var g,m=1;m<=d;){for(var v=m;0==p[m]&&m<=d;++m);var w=m-v;if(16<=w){g=w>>4;for(var y=1;y<=g;++y)Q(s);w&=15}o=32767+p[m],Q(i[(w<<4)+f[o]]),Q(A[o]),m++}return 63!=d&&Q(a),n}function T(t){t<=0&&(t=1),100<t&&(t=100),o!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=a((e[n]*t+50)/100);r<1?r=1:255<r&&(r=255),s[x[n]]=r}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 A=a((i[o]*t+50)/100);A<1?A=1:255<A&&(A=255),u[x[o]]=A}for(var f=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,p=0;p<8;p++)for(var d=0;d<8;d++)c[h]=1/(s[x[h]]*f[p]*f[d]*8),l[h]=1/(u[x[h]]*f[p]*f[d]*8),h++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){var a,A;(new Date).getTime(),o&&T(o),d=new Array,g=0,m=7,P(65496),P(65504),P(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),P(1),P(1),I(0),I(0),function(){P(65499),P(132),I(0);for(var t=0;t<64;t++)I(s[t]);I(1);for(var e=0;e<64;e++)I(u[e])}(),a=t.width,A=t.height,P(65472),P(17),I(8),P(A),P(a),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1),function(){P(65476),P(418),I(0);for(var t=0;t<16;t++)I(N[t+1]);for(var e=0;e<=11;e++)I(_[e]);I(16);for(var n=0;n<16;n++)I(C[n+1]);for(var r=0;r<=161;r++)I(S[r]);I(1);for(var i=0;i<16;i++)I(E[i+1]);for(var o=0;o<=11;o++)I(L[o]);I(17);for(var a=0;a<16;a++)I(F[a+1]);for(var s=0;s<=161;s++)I(k[s])}(),P(65498),P(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var f=0,h=0,p=0;g=0,m=7,this.encode.displayName="_encode_";for(var b,x,U,M,H,R,D,j,z,K=t.data,q=t.width,V=t.height,G=4*q,W=0;W<V;){for(b=0;b<G;){for(R=H=G*W+b,D=-1,z=j=0;z<64;z++)R=H+(j=z>>3)*G+(D=4*(7&z)),V<=W+j&&(R-=G*(W+1+j-V)),G<=b+D&&(R-=b+D-G+4),x=K[R++],U=K[R++],M=K[R++],v[z]=(B[x]+B[U+256>>0]+B[M+512>>0]>>16)-128,w[z]=(B[x+768>>0]+B[U+1024>>0]+B[M+1280>>0]>>16)-128,y[z]=(B[x+1280>>0]+B[U+1536>>0]+B[M+1792>>0]>>16)-128;f=O(v,c,f,e,r),h=O(w,l,h,n,i),p=O(y,l,p,n,i),b+=32}W+=8}if(0<=m){var X=[];X[1]=m+1,X[0]=(1<<m+1)-1,Q(X)}return P(65497),new Uint8Array(d)},(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)b[e]=t(e)}(),e=U(N,_),n=U(E,L),r=U(C,S),i=U(F,k),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)f[32767+r]=n,A[32767+r]=[],A[32767+r][1]=n,A[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)f[32767+i]=n,A[32767+i]=[],A[32767+i][1]=n,A[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256>>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[t+1792>>0]=-5329*t}(),T(t),(new Date).getTime()}function It(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=kt,pt.API.adler32cs=(yt="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,bt=null,Bt=function(){if(!yt)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(bt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==bt&&t instanceof bt}}(),xt=null!==bt?function(t){return new bt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},Nt=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)r=(r+(n=(n+(255&e.charCodeAt(i)))%65521))%65521;return(r<<16|n)>>>0},_t=function(t,e){for(var n=65535&t,r=t>>>16,i=0,o=e.length;i<o;i++)r=(r+(n=(n+e[i])%65521))%65521;return(r<<16|n)>>>0},St=(Ct={}).Adler32=(((wt=(vt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(t=null==t?1:+t))throw new Error("First arguments needs to be a finite number.");this.checksum=t>>>0}).prototype={}).constructor=vt).from=((dt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");this.checksum=Nt(1,t.toString())}).prototype=wt,dt),vt.fromUtf8=((gt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(null==t)throw new Error("First argument needs to be a string.");var e=xt(t.toString());this.checksum=Nt(1,e)}).prototype=wt,gt),yt&&(vt.fromBuffer=((mt=function(t){if(!(this instanceof vt))throw new TypeError("Constructor cannot called be as a function.");if(!Bt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=_t(1,e)}).prototype=wt,mt)),wt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=Nt(this.checksum,t)},wt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=xt(t.toString());return this.checksum=Nt(this.checksum,e)},yt&&(wt.updateBuffer=function(t){if(!Bt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=_t(this.checksum,e)}),wt.clone=function(){return new St(this.checksum)},vt),Ct.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return Nt(1,t.toString())},Ct.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=xt(t.toString());return Nt(1,e)},yt&&(Ct.fromBuffer=function(t){if(!Bt(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return _t(1,e)}),Ct),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,o,a,s,u,c=e,l=[[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]],A=[[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]],f={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},h={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],d=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,m=0;this.__bidiEngine__={};var v=function(t){var e=t.charCodeAt(),n=e>>8,r=h[n];return void 0!==r?c[256*r+(255&e)]:252===n||253===n?"AL":d.test(n)?"L":8===n?"R":"N"},w=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=v(t.charAt(n))))return!1;if("R"===e)return!0}return!1},y=function(t,e,a,s){var u,c,l,A,f=e[s];switch(f){case"L":case"R":g=!1;break;case"N":case"AN":break;case"EN":g&&(f="AN");break;case"AL":g=!0,f="R";break;case"WS":f="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(u=a[s-1])&&"AN"!==u||"EN"!==(c=e[s+1])&&"AN"!==c?f="N":g&&(c="AN"),f=c===u?c:"N";break;case"ES":f="EN"===(u=0<s?a[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(0<s&&"EN"===a[s-1]){f="EN";break}if(g){f="N";break}for(l=s+1,A=e.length;l<A&&"ET"===e[l];)l++;f=l<A&&"EN"===e[l]?"EN":"N";break;case"NSM":if(i&&!o){for(A=e.length,l=s+1;l<A&&"NSM"===e[l];)l++;if(l<A){var h=t[s],p=1425<=h&&h<=2303||64286===h;if(u=e[l],p&&("R"===u||"AL"===u)){f="R";break}}}f=s<1||"B"===(u=e[s-1])?"N":a[s-1];break;case"B":n=!(g=!1),f=m;break;case"S":r=!0,f="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"BN":f="N"}return f},b=function(t,e,n){var r=t.split("");return n&&B(r,n,{hiLevel:m}),r.reverse(),e&&e.reverse(),r.join("")},B=function(t,e,i){var o,a,s,u,c,h=-1,p=t.length,d=0,w=[],b=m?A:l,B=[];for(r=n=g=!1,a=0;a<p;a++)B[a]=v(t[a]);for(s=0;s<p;s++){if(c=d,w[s]=y(t,B,w,s),o=240&(d=b[c][f[w[s]]]),d&=15,e[s]=u=b[d][5],0<o)if(16===o){for(a=h;a<s;a++)e[a]=1;h=-1}else h=-1;if(b[d][6])-1===h&&(h=s);else if(-1<h){for(a=h;a<s;a++)e[a]=u;h=-1}"B"===B[s]&&(e[s]=0),i.hiLevel|=u}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=m;for(var i=r-1;0<=i&&"WS"===t[i];i--)e[i]=m}}(B,e,p)},x=function(t,e,r,i,o){if(!(o.hiLevel<t)){if(1===t&&1===m&&!n)return e.reverse(),void(r&&r.reverse());for(var a,s,u,c,l=e.length,A=0;A<l;){if(i[A]>=t){for(u=A+1;u<l&&i[u]>=t;)u++;for(c=A,s=u-1;c<s;c++,s--)a=e[c],e[c]=e[s],e[s]=a,r&&(a=r[c],r[c]=r[s],r[s]=a);A=u}A++}}},N=function(t,e,n){var r=t.split(""),i={hiLevel:m};return n||(n=[]),B(r,n,i),function(t,e,n){if(0!==n.hiLevel&&u)for(var r,i=0;i<t.length;i++)1===e[i]&&0<=(r=p.indexOf(t[i]))&&(t[i]=p[r+1])}(r,n,i),x(2,r,e,n,i),x(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===o&&(o=w(t)),void 0===s&&(s=w(t))}(t,e),i||!a||s)if(i&&a&&o^s)m=o?1:0,t=b(t,e,n);else if(!i&&a&&s)m=o?1:0,t=N(t,e,n),t=b(t,e);else if(!i||o||a||s){if(i&&!a&&o^s)t=b(t,e),t=o?(m=0,N(t,e,n)):(m=1,t=N(t,e,n),b(t,e));else if(i&&o&&!a&&s)m=1,t=N(t,e,n),t=b(t,e);else if(!i&&!a&&o^s){var r=u;o?(m=1,t=N(t,e,n),m=0,u=!1,t=N(t,e,n),u=r):(m=0,t=N(t,e,n),t=b(t,e),u=!(m=1),t=N(t,e,n),u=r,t=b(t,e))}}else m=0,t=N(t,e,n);else m=o?1:0,t=N(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,a=t.isOutputVisual,o=t.isInputRtl,s=t.isOutputRtl,u=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if("[object Array]"===Object.prototype.toString.call(e)){var o=0;for(i=[],o=0;o<e.length;o+=1)"[object Array]"===Object.prototype.toString.call(e[o])?i.push([n.doBidiReorder(e[o][0]),e[o][1],e[o][2]]):i.push([n.doBidiReorder(e[o])]);t.text=i}else t.text=n.doBidiReorder(e)}])}(pt),window.tmp=Qt,It.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},It.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){console.log("bit decode error:"+t)}},It.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),a=r*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!=e&&(this.pos+=4-e)}},It.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var o=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*i*4,s=o>>4,u=15&o,c=this.palette[s];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*i+1>=this.width)break;c=this.palette[u],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}0!=e&&(this.pos+=4-e)}},It.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(i<this.palette.length){var a=this.palette[i];this.data[o]=a.red,this.data[o+1]=a.green,this.data[o+2]=a.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!=t&&(this.pos+=4-t)}},It.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&e)/e*255|0,u=(o>>10&e)/e*255|0,c=o>>15?255:0,l=r*this.width*4+4*i;this.data[l]=u,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=c}this.pos+=t}},It.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,u=(a>>5&n)/n*255|0,c=(a>>11)/e*255|0,l=i*this.width*4+4*o;this.data[l]=c,this.data[l+1]=u,this.data[l+2]=s,this.data[l+3]=255}this.pos+=t}},It.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=o,this.data[a+1]=i,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},It.prototype.bit32=function(){for(var t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=a}},It.prototype.getData=function(){return this.data},window.tmp=It,function(t){var e=15,n=573,r=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function i(){var t=this;function r(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}t.build_tree=function(i){var o,a,s,u=t.dyn_tree,c=t.stat_desc.static_tree,l=t.stat_desc.elems,A=-1;for(i.heap_len=0,i.heap_max=n,o=0;o<l;o++)0!==u[2*o]?(i.heap[++i.heap_len]=A=o,i.depth[o]=0):u[2*o+1]=0;for(;i.heap_len<2;)u[2*(s=i.heap[++i.heap_len]=A<2?++A:0)]=1,i.depth[s]=0,i.opt_len--,c&&(i.static_len-=c[2*s+1]);for(t.max_code=A,o=Math.floor(i.heap_len/2);1<=o;o--)i.pqdownheap(u,o);for(s=l;o=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(u,1),a=i.heap[1],i.heap[--i.heap_max]=o,i.heap[--i.heap_max]=a,u[2*s]=u[2*o]+u[2*a],i.depth[s]=Math.max(i.depth[o],i.depth[a])+1,u[2*o+1]=u[2*a+1]=s,i.heap[1]=s++,i.pqdownheap(u,1),2<=i.heap_len;);i.heap[--i.heap_max]=i.heap[1],function(r){var i,o,a,s,u,c,l=t.dyn_tree,A=t.stat_desc.static_tree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,d=0;for(s=0;s<=e;s++)r.bl_count[s]=0;for(l[2*r.heap[r.heap_max]+1]=0,i=r.heap_max+1;i<n;i++)p<(s=l[2*l[2*(o=r.heap[i])+1]+1]+1)&&(s=p,d++),l[2*o+1]=s,o>t.max_code||(r.bl_count[s]++,u=0,h<=o&&(u=f[o-h]),c=l[2*o],r.opt_len+=c*(s+u),A&&(r.static_len+=c*(A[2*o+1]+u)));if(0!==d){do{for(s=p-1;0===r.bl_count[s];)s--;r.bl_count[s]--,r.bl_count[s+1]+=2,r.bl_count[p]--,d-=2}while(0<d);for(s=p;0!==s;s--)for(o=r.bl_count[s];0!==o;)(a=r.heap[--i])>t.max_code||(l[2*a+1]!=s&&(r.opt_len+=(s-l[2*a+1])*l[2*a],l[2*a+1]=s),o--)}}(i),function(t,n,i){var o,a,s,u=[],c=0;for(o=1;o<=e;o++)u[o]=c=c+i[o-1]<<1;for(a=0;a<=n;a++)0!==(s=t[2*a+1])&&(t[2*a]=r(u[s]++,s))}(u,t.max_code,i.bl_count)}}function o(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i}function a(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}i._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],i.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],i.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],i.d_code=function(t){return t<256?r[t]:r[256+(t>>>7)]},i.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],i.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],i.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],i.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],o.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],o.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],o.static_l_desc=new o(o.static_ltree,i.extra_lbits,257,286,e),o.static_d_desc=new o(o.static_dtree,i.extra_dbits,0,30,e),o.static_bl_desc=new o(null,i.extra_blbits,0,19,7);var s=[new a(0,0,0,0,0),new a(4,4,8,4,1),new a(4,5,16,8,1),new a(4,6,32,32,1),new a(4,4,16,16,2),new a(8,16,32,32,2),new a(8,16,128,128,2),new a(8,32,128,256,2),new a(32,128,258,1024,2),new a(32,258,258,4096,2)],u=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function c(t,e,n,r){var i=t[2*e],o=t[2*n];return i<o||i==o&&r[e]<=r[n]}function l(){var t,e,n,r,a,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F,k,U,Q,I,P,O,T,M,H,R,D,j,z,K,q,V=this,G=new i,W=new i,X=new i;function J(){var t;for(t=0;t<286;t++)P[2*t]=0;for(t=0;t<30;t++)O[2*t]=0;for(t=0;t<19;t++)T[2*t]=0;P[512]=1,V.opt_len=V.static_len=0,R=j=0}function Y(t,e){var n,r,i=-1,o=t[1],a=0,s=7,u=4;for(0===o&&(s=138,u=3),t[2*(e+1)+1]=65535,n=0;n<=e;n++)r=o,o=t[2*(n+1)+1],++a<s&&r==o||(a<u?T[2*r]+=a:0!==r?(r!=i&&T[2*r]++,T[32]++):a<=10?T[34]++:T[36]++,i=r,u=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4))}function $(t){V.pending_buf[V.pending++]=t}function Z(t){$(255&t),$(t>>>8&255)}function tt(t,e){var n,r=e;16-r<q?(Z(K|=(n=t)<<q&65535),K=n>>>16-q,q+=r-16):(K|=t<<q&65535,q+=r)}function et(t,e){var n=2*t;tt(65535&e[n],65535&e[n+1])}function nt(t,e){var n,r,i=-1,o=t[1],a=0,s=7,u=4;for(0===o&&(s=138,u=3),n=0;n<=e;n++)if(r=o,o=t[2*(n+1)+1],!(++a<s&&r==o)){if(a<u)for(;et(r,T),0!=--a;);else 0!==r?(r!=i&&(et(r,T),a--),et(16,T),tt(a-3,2)):a<=10?(et(17,T),tt(a-3,3)):(et(18,T),tt(a-11,7));i=r,u=(a=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4)}}function rt(){16==q?(Z(K),q=K=0):8<=q&&($(255&K),K>>>=8,q-=8)}function it(t,e){var n,r,o;if(V.pending_buf[D+2*R]=t>>>8&255,V.pending_buf[D+2*R+1]=255&t,V.pending_buf[M+R]=255&e,R++,0===t?P[2*e]++:(j++,t--,P[2*(i._length_code[e]+256+1)]++,O[2*i.d_code(t)]++),0==(8191&R)&&2<k){for(n=8*R,r=_-b,o=0;o<30;o++)n+=O[2*o]*(5+i.extra_dbits[o]);if(n>>>=3,j<Math.floor(R/2)&&n<Math.floor(r/2))return!0}return R==H-1}function ot(t,e){var n,r,o,a,s=0;if(0!==R)for(;n=V.pending_buf[D+2*s]<<8&65280|255&V.pending_buf[D+2*s+1],r=255&V.pending_buf[M+s],s++,0===n?et(r,t):(et((o=i._length_code[r])+256+1,t),0!==(a=i.extra_lbits[o])&&tt(r-=i.base_length[o],a),et(o=i.d_code(--n),e),0!==(a=i.extra_dbits[o])&&tt(n-=i.base_dist[o],a)),s<R;);et(256,t),z=t[513]}function at(){8<q?Z(K):0<q&&$(255&K),q=K=0}function st(t,e,n){var r,i,o;tt(0+(n?1:0),3),r=t,i=e,o=!0,at(),z=8,o&&(Z(i),Z(~i)),V.pending_buf.set(f.subarray(r,r+i),V.pending),V.pending+=i}function ut(t,e,n){var r,a,s=0;0<k?(G.build_tree(V),W.build_tree(V),s=function(){var t;for(Y(P,G.max_code),Y(O,W.max_code),X.build_tree(V),t=18;3<=t&&0===T[2*i.bl_order[t]+1];t--);return V.opt_len+=3*(t+1)+5+5+4,t}(),r=V.opt_len+3+7>>>3,(a=V.static_len+3+7>>>3)<=r&&(r=a)):r=a=e+5,e+4<=r&&-1!=t?st(t,e,n):a==r?(tt(2+(n?1:0),3),ot(o.static_ltree,o.static_dtree)):(tt(4+(n?1:0),3),function(t,e,n){var r;for(tt(t-257,5),tt(e-1,5),tt(n-4,4),r=0;r<n;r++)tt(T[2*i.bl_order[r]+1],3);nt(P,t-1),nt(O,e-1)}(G.max_code+1,W.max_code+1,s+1),ot(P,O)),J(),n&&at()}function ct(e){ut(0<=b?b:-1,_-b,e),b=_,t.flush_pending()}function lt(){var e,n,r,i;do{if(0===(i=h-S-_)&&0===_&&0===S)i=a;else if(-1==i)i--;else if(a+a-262<=_){for(f.set(f.subarray(a,a+a),0),C-=a,_-=a,b-=a,r=e=m;n=65535&d[--r],d[r]=a<=n?n-a:0,0!=--e;);for(r=e=a;n=65535&p[--r],p[r]=a<=n?n-a:0,0!=--e;);i+=a}if(0===t.avail_in)return;e=t.read_buf(f,_+S,i),3<=(S+=e)&&(g=((g=255&f[_])<<y^255&f[_+1])&w)}while(S<262&&0!==t.avail_in)}function At(t){var e,n,r=L,i=_,o=E,s=a-262<_?_-(a-262):0,u=I,c=A,l=_+258,h=f[i+o-1],d=f[i+o];Q<=E&&(r>>=2),S<u&&(u=S);do{if(f[(e=t)+o]==d&&f[e+o-1]==h&&f[e]==f[i]&&f[++e]==f[i+1]){i+=2,e++;do{}while(f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&f[++i]==f[++e]&&i<l);if(n=258-(l-i),i=l-258,o<n){if(C=t,u<=(o=n))break;h=f[i+o-1],d=f[i+o]}}}while((t=65535&p[t&c])>s&&0!=--r);return o<=S?o:S}function ft(t){return t.total_in=t.total_out=0,t.msg=null,V.pending=0,V.pending_out=0,e=113,r=0,G.dyn_tree=P,G.stat_desc=o.static_l_desc,W.dyn_tree=O,W.stat_desc=o.static_d_desc,X.dyn_tree=T,X.stat_desc=o.static_bl_desc,q=K=0,z=8,J(),function(){var t;for(h=2*a,t=d[m-1]=0;t<m-1;t++)d[t]=0;F=s[k].max_lazy,Q=s[k].good_length,I=s[k].nice_length,L=s[k].max_chain,B=E=2,g=N=S=b=_=0}(),0}V.depth=[],V.bl_count=[],V.heap=[],P=[],O=[],T=[],V.pqdownheap=function(t,e){for(var n=V.heap,r=n[e],i=e<<1;i<=V.heap_len&&(i<V.heap_len&&c(t,n[i+1],n[i],V.depth)&&i++,!c(t,r,n[i],V.depth));)n[e]=n[i],e=i,i<<=1;n[e]=r},V.deflateInit=function(t,e,r,i,o,s){return i||(i=8),o||(o=8),s||(s=0),t.msg=null,-1==e&&(e=6),o<1||9<o||8!=i||r<9||15<r||e<0||9<e||s<0||2<s?-2:(t.dstate=V,A=(a=1<<(l=r))-1,w=(m=1<<(v=o+7))-1,y=Math.floor((v+3-1)/3),f=new Uint8Array(2*a),p=[],d=[],H=1<<o+6,V.pending_buf=new Uint8Array(4*H),n=4*H,D=Math.floor(H/2),M=3*H,k=e,U=s,ft(t))},V.deflateEnd=function(){return 42!=e&&113!=e&&666!=e?-2:(V.pending_buf=null,f=p=d=null,V.dstate=null,113==e?-3:0)},V.deflateParams=function(t,e,n){var r=0;return-1==e&&(e=6),e<0||9<e||n<0||2<n?-2:(s[k].func!=s[e].func&&0!==t.total_in&&(r=t.deflate(1)),k!=e&&(F=s[k=e].max_lazy,Q=s[k].good_length,I=s[k].nice_length,L=s[k].max_chain),U=n,r)},V.deflateSetDictionary=function(t,n,r){var i,o=r,s=0;if(!n||42!=e)return-2;if(o<3)return 0;for(a-262<o&&(s=r-(o=a-262)),f.set(n.subarray(s,s+o),0),b=_=o,g=((g=255&f[0])<<y^255&f[1])&w,i=0;i<=o-3;i++)g=(g<<y^255&f[i+2])&w,p[i&A]=d[g],d[g]=i;return 0},V.deflate=function(i,c){var h,v,L,Q,I,P;if(4<c||c<0)return-2;if(!i.next_out||!i.next_in&&0!==i.avail_in||666==e&&4!=c)return i.msg=u[4],-2;if(0===i.avail_out)return i.msg=u[7],-5;if(t=i,Q=r,r=c,42==e&&(v=8+(l-8<<4)<<8,3<(L=(k-1&255)>>1)&&(L=3),v|=L<<6,0!==_&&(v|=32),e=113,$((P=v+=31-v%31)>>8&255),$(255&P)),0!==V.pending){if(t.flush_pending(),0===t.avail_out)return r=-1,0}else if(0===t.avail_in&&c<=Q&&4!=c)return t.msg=u[7],-5;if(666==e&&0!==t.avail_in)return i.msg=u[7],-5;if(0!==t.avail_in||0!==S||0!=c&&666!=e){switch(I=-1,s[k].func){case 0:I=function(e){var r,i=65535;for(n-5<i&&(i=n-5);;){if(S<=1){if(lt(),0===S&&0==e)return 0;if(0===S)break}if(_+=S,r=b+i,((S=0)===_||r<=_)&&(S=_-r,_=r,ct(!1),0===t.avail_out))return 0;if(a-262<=_-b&&(ct(!1),0===t.avail_out))return 0}return ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(c);break;case 1:I=function(e){for(var n,r=0;;){if(S<262){if(lt(),S<262&&0==e)return 0;if(0===S)break}if(3<=S&&(g=(g<<y^255&f[_+2])&w,r=65535&d[g],p[_&A]=d[g],d[g]=_),0!==r&&(_-r&65535)<=a-262&&2!=U&&(B=At(r)),3<=B)if(n=it(_-C,B-3),S-=B,B<=F&&3<=S){for(B--;g=(g<<y^255&f[2+ ++_])&w,r=65535&d[g],p[_&A]=d[g],d[g]=_,0!=--B;);_++}else _+=B,B=0,g=((g=255&f[_])<<y^255&f[_+1])&w;else n=it(0,255&f[_]),S--,_++;if(n&&(ct(!1),0===t.avail_out))return 0}return ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(c);break;case 2:I=function(e){for(var n,r,i=0;;){if(S<262){if(lt(),S<262&&0==e)return 0;if(0===S)break}if(3<=S&&(g=(g<<y^255&f[_+2])&w,i=65535&d[g],p[_&A]=d[g],d[g]=_),E=B,x=C,B=2,0!==i&&E<F&&(_-i&65535)<=a-262&&(2!=U&&(B=At(i)),B<=5&&(1==U||3==B&&4096<_-C)&&(B=2)),3<=E&&B<=E){for(r=_+S-3,n=it(_-1-x,E-3),S-=E-1,E-=2;++_<=r&&(g=(g<<y^255&f[_+2])&w,i=65535&d[g],p[_&A]=d[g],d[g]=_),0!=--E;);if(N=0,B=2,_++,n&&(ct(!1),0===t.avail_out))return 0}else if(0!==N){if((n=it(0,255&f[_-1]))&&ct(!1),_++,S--,0===t.avail_out)return 0}else N=1,_++,S--}return 0!==N&&(n=it(0,255&f[_-1]),N=0),ct(4==e),0===t.avail_out?4==e?2:0:4==e?3:1}(c)}if(2!=I&&3!=I||(e=666),0==I||2==I)return 0===t.avail_out&&(r=-1),0;if(1==I){if(1==c)tt(2,3),et(256,o.static_ltree),rt(),1+z+10-q<9&&(tt(2,3),et(256,o.static_ltree),rt()),z=7;else if(st(0,0,!1),3==c)for(h=0;h<m;h++)d[h]=0;if(t.flush_pending(),0===t.avail_out)return r=-1,0}}return 4!=c?0:1}}function A(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}A.prototype={deflateInit:function(t,n){return this.dstate=new l,n||(n=e),this.dstate.deflateInit(this,t,n)},deflate:function(t){return this.dstate?this.dstate.deflate(this,t):-2},deflateEnd:function(){if(!this.dstate)return-2;var t=this.dstate.deflateEnd();return this.dstate=null,t},deflateParams:function(t,e){return this.dstate?this.dstate.deflateParams(this,t,e):-2},deflateSetDictionary:function(t,e){return this.dstate?this.dstate.deflateSetDictionary(this,t,e):-2},read_buf:function(t,e,n){var r=this.avail_in;return n<r&&(r=n),0===r?0:(this.avail_in-=r,t.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),e),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var t=this,e=t.dstate.pending;e>t.avail_out&&(e=t.avail_out),0!==e&&(t.next_out.set(t.dstate.pending_buf.subarray(t.dstate.pending_out,t.dstate.pending_out+e),t.next_out_index),t.next_out_index+=e,t.dstate.pending_out+=e,t.total_out+=e,t.avail_out-=e,t.dstate.pending-=e,0===t.dstate.pending&&(t.dstate.pending_out=0))}};var f=t.zip||t;f.Deflater=f._jzlib_Deflater=function(t){var e=new A,n=new Uint8Array(512),r=t?t.level:-1;void 0===r&&(r=-1),e.deflateInit(r),e.next_out=n,this.append=function(t,r){var i,o=[],a=0,s=0,u=0;if(t.length){e.next_in_index=0,e.next_in=t,e.avail_in=t.length;do{if(e.next_out_index=0,e.avail_out=512,0!=e.deflate(0))throw new Error("deflating: "+e.msg);e.next_out_index&&(512==e.next_out_index?o.push(new Uint8Array(n)):o.push(new Uint8Array(n.subarray(0,e.next_out_index)))),u+=e.next_out_index,r&&0<e.next_in_index&&e.next_in_index!=a&&(r(e.next_in_index),a=e.next_in_index)}while(0<e.avail_in||0===e.avail_out);return i=new Uint8Array(u),o.forEach((function(t){i.set(t,s),s+=t.length})),i}},this.flush=function(){var t,r,i=[],o=0,a=0;do{if(e.next_out_index=0,e.avail_out=512,1!=(t=e.deflate(4))&&0!=t)throw new Error("deflating: "+e.msg);0<512-e.avail_out&&i.push(new Uint8Array(n.subarray(0,e.next_out_index))),a+=e.next_out_index}while(0<e.avail_in||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(a),i.forEach((function(t){r.set(t,o),o+=t.length})),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var n={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"};for(var r in n)t==r&&(t=n[r]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],o=0;o<i.length;o++){var a=i[o].re,s=i[o].process,u=a.exec(t);u&&(e=s(u),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}},function(t){var e="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),i="a".charCodeAt(0),o="A".charCodeAt(0),a="-".charCodeAt(0),s="_".charCodeAt(0),u=function(t){var u=t.charCodeAt(0);return u===e||u===a?62:u===n||u===s?63:u<r?-1:u<r+10?u-r+26+26:u<o+26?u-o:u<i+26?u-i+26:void 0};t.API.TTFFont=function(){function t(t,e,n){var r;if(this.rawData=t,r=this.contents=new l(t),this.contents.pos=4,"ttcf"===r.readString(4)){if(!e)throw new Error("Must specify a font name for TTC files.");throw new Error("Font "+e+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new L(this),this.registerTTF()}return t.open=function(e,n,r,i){if("string"!=typeof r)throw new Error("Invalid argument supplied in TTFFont.open");return new t(function(t){var e,n,r,i,o,a;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=t.length;o="="===t.charAt(s-2)?2:"="===t.charAt(s-1)?1:0,a=new Uint8Array(3*t.length/4-o),r=0<o?t.length-4:t.length;var c=0;function l(t){a[c++]=t}for(n=e=0;e<r;e+=4,n+=3)l((16711680&(i=u(t.charAt(e))<<18|u(t.charAt(e+1))<<12|u(t.charAt(e+2))<<6|u(t.charAt(e+3))))>>16),l((65280&i)>>8),l(255&i);return 2===o?l(255&(i=u(t.charAt(e))<<2|u(t.charAt(e+1))>>4)):1===o&&(l((i=u(t.charAt(e))<<10|u(t.charAt(e+1))<<4|u(t.charAt(e+2))>>2)>>8&255),l(255&i)),a}(r),n,i)},t.prototype.parse=function(){return this.directory=new A(this.contents),this.head=new p(this),this.name=new b(this),this.cmap=new g(this),this.toUnicode=new Map,this.hhea=new m(this),this.maxp=new B(this),this.hmtx=new x(this),this.post=new w(this),this.os2=new v(this),this.loca=new E(this),this.glyf=new _(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),!0&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,a,s;for(i=a=o=0,s=(t=""+t).length;0<=s?a<s:s<a;i=0<=s?++a:--a)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var c,l=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return 2147483648<=(t=this.readUInt32())?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return 32768<=(t=this.readUInt16())?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n,r;for(n=[],e=r=0;0<=t?r<t:t<r;e=0<=t?++r:--r)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r,i;for(i=[],e=n=0,r=t.length;0<=r?n<r:r<n;e=0<=r?++n:--n)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,a,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^a)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*a+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:t<n;0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),A=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:r<n;0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,o,a,s,u,c,A,f,h,p,d;for(d in h=Object.keys(e).length,s=Math.log(2),A=16*Math.floor(Math.log(h)/s),o=Math.floor(A/s),c=16*h-A,(r=new l).writeInt(this.scalarType),r.writeShort(h),r.writeShort(A),r.writeShort(o),r.writeShort(c),i=16*h,u=r.pos+i,a=null,p=[],e)for(f=e[d],r.writeString(d),r.writeInt(t(f)),r.writeInt(u),r.writeInt(f.length),p=p.concat(f),"head"===d&&(a=u),u+=f.length;u%4;)p.push(0),u++;return r.write(p),n=2981146554-t(r.data),r.pos=a+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=N.call(t);t.length%4;)t.push(0);for(n=new l(t),r=e=0,i=t.length;r<i;r+=4)e+=n.readUInt32();return 4294967295&e},e}(),f={}.hasOwnProperty,h=function(t,e){for(var n in e)f.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};c=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var p=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new l).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),d=function(){function t(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,g,m,v,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),l=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=g=0;g<256;s=++g)this.codeMap[s]=t.readByte();break;case 4:for(f=t.readUInt16(),A=f/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:A<e;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,p=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:A<e;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),u=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:A<e;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],s=e=0;0<=A?e<A:A<e;s=0<=A?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:r<e;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=m=0,w=i.length;m<w;s=++m)for(d=i[s],n=v=h=p[s];h<=d?v<=d:d<=v;n=h<=d?++v:--v)0===c[s]?o=n+u[s]:0!==(o=a[c[s]/2+(n-h)-(A-s)]||0)&&(o+=u[s]),this.codeMap[n]=65535&o}t.pos=l}return t.encode=function(t,e){var n,r,i,o,a,s,u,c,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F,k,U,Q,I,P,O,T,M,H,R,D,j,z,K,q,V,G,W;switch(F=new l,o=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(d=0,g=function(){var t,e;for(e=[],p=t=0;t<256;p=++t)e.push(0);return e}(),v={0:0},i={},k=0,P=o.length;k<P;k++)null==v[q=t[r=o[k]]]&&(v[q]=++d),i[r]={old:t[r],new:v[t[r]]},g[r]=v[t[r]];return F.writeUInt16(1),F.writeUInt16(0),F.writeUInt32(12),F.writeUInt16(0),F.writeUInt16(262),F.writeUInt16(0),F.write(g),{charMap:i,subtable:F.data,maxGlyphID:d+1};case"unicode":for(E=[],A=[],v={},n={},m=u=null,U=w=0,O=o.length;U<O;U++)null==v[b=t[r=o[U]]]&&(v[b]=++w),n[r]={old:b,new:v[b]},a=v[b]-r,null!=m&&a===u||(m&&A.push(m),E.push(r),u=a),m=r;for(m&&A.push(m),A.push(65535),E.push(65535),C=2*(_=E.length),N=2*Math.pow(Math.log(_)/Math.LN2,2),f=Math.log(N/2)/Math.LN2,x=2*_-N,s=[],B=[],h=[],p=Q=0,T=E.length;Q<T;p=++Q){if(S=E[p],c=A[p],65535===S){s.push(0),B.push(0);break}if(32768<=S-(L=n[S].new))for(s.push(0),B.push(2*(h.length+_-p)),r=I=S;S<=c?I<=c:c<=I;r=S<=c?++I:--I)h.push(n[r].new);else s.push(L-S),B.push(0)}for(F.writeUInt16(3),F.writeUInt16(1),F.writeUInt32(12),F.writeUInt16(4),F.writeUInt16(16+8*_+2*h.length),F.writeUInt16(0),F.writeUInt16(C),F.writeUInt16(N),F.writeUInt16(f),F.writeUInt16(x),z=0,M=A.length;z<M;z++)r=A[z],F.writeUInt16(r);for(F.writeUInt16(0),K=0,H=E.length;K<H;K++)r=E[K],F.writeUInt16(r);for(V=0,R=s.length;V<R;V++)a=s[V],F.writeUInt16(a);for(G=0,D=B.length;G<D;G++)y=B[G],F.writeUInt16(y);for(W=0,j=h.length;W<j;W++)d=h[W],F.writeUInt16(d);return{charMap:n,subtable:F.data,maxGlyphID:w+1}}},t}(),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:n<r;0<=n?++r:--r)e=new d(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=d.encode(t,e),(r=new l).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),0<this.version&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;++e)n.push(t.readInt());return n}(),1<this.version))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:for(n=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:n<r;0<=n?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var e,n,r;for(r=[],e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),y=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,a,s,u,c,l,A,f;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],i=c=0;0<=e?c<e:e<c;i=0<=e?++c:--c)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(s={},i=l=0,A=n.length;l<A;i=++l)r=n[i],t.pos=r.offset,u=t.readString(r.length),o=new y(u,r),null==s[f=r.nameID]&&(s[f]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),B=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,o,a,s;for(t.pos=this.offset,this.metrics=[],i=0,a=this.file.hhea.numberOfMetrics;0<=a?i<a:a<i;0<=a?++i:--i)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,r;for(r=[],e=0;0<=n?e<n:n<e;0<=n?++e:--e)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.metrics).length;t<e;t++)r=n[t],i.push(r.advance);return i}.call(this),e=this.widths[this.widths.length-1],s=[],o=0;0<=n?o<n:n<o;0<=n?++o:--o)s.push(this.widths.push(e));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),N=[].slice,_=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,a,s,u,c,A;return(t=t)in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(a=new l(e.read(r))).readShort(),u=a.readShort(),A=a.readShort(),s=a.readShort(),c=a.readShort(),this.cache[t]=-1===o?new S(a,u,A,s,c):new C(a,o,u,A,s,c),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,a,s;for(o=[],i=[],a=0,s=e.length;a<s;a++)r=t[e[a]],i.push(o.length),r&&(o=o.concat(r.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),C=function(){function t(t,e,n,r,i,o){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),S=function(){function t(t,e,n,r,i){var o,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,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.readShort()),32&a;)o.pos+=1&a?4:2,128&a?o.pos+=8:64&a?o.pos+=4:8&a&&(o.pos+=2)}return t.prototype.encode=function(t){var e,n,r,i,o;for(n=new l(N.call(this.raw.data)),e=r=0,i=(o=this.glyphIDs).length;r<i;e=++r)o[e],n.pos=this.glyphOffsets[e];return n.data},t}(),E=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return h(e,c),e.prototype.tag="loca",e.prototype.parse=function(t){var e;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,n,r;for(r=[],e=0,n=this.length;e<n;e+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,o=0;o<n.length;++o)if(n[o]=r,i<e.length&&e[i]==o){++i,n[o]=r;var a=this.offsets[o],s=this.offsets[o+1]-a;0<s&&(r+=s)}for(var u=new Array(4*n.length),c=0;c<n.length;++c)u[4*c+3]=255&n[c],u[4*c+2]=(65280&n[c])>>8,u[4*c+1]=(16711680&n[c])>>16,u[4*c]=(4278190080&n[c])>>24;return u},e}(),L=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,a,s;for(r={},o=0,a=t.length;o<a;o++)r[i=t[o]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(0<e.length)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,m;for(r in n=g.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},m=n.charMap)f[(s=m[r]).old]=s.new;for(h in A=n.maxGlyphID,o)h in f||(f[h]=A++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(f),l=Object.keys(c).sort((function(t,e){return t-e})),p=function(){var t,e,n;for(n=[],t=0,e=l.length;t<e;t++)a=l[t],n.push(c[a]);return n}(),i=this.font.glyf.encode(o,p,f),u=this.font.loca.encode(i.offsets,p),d={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(e)},this.font.os2.exists&&(d["OS/2"]=this.font.os2.raw()),this.font.directory.encode(d)},t}();t.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,o,a;if(Array.isArray(n))return"["+function(){var t,i,o;for(o=[],t=0,i=n.length;t<i;t++)r=n[t],o.push(e.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(n))return""+n;for(i in o=["<<"],n)a=n[i],o.push("/"+i+" "+e.convert(a));return o.push(">>"),o.join("\n")},e}()}(pt),Et="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||"undefined"!=typeof r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")(),Lt=function(){var t,e,n;function r(t){var e,n,r,i,o,a,s,u,c,l,A,f,h,p;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),c=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,a.delay=1e3*o/i,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,f=0;0<=e?f<e:e<f;0<=e?++f:--f)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if(0<(l=r-this.transparency.indexed.length))for(h=0;0<=l?h<l:l<h;0<=l?++h:--h)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(A=this.read(e)).indexOf(0),u=String.fromCharCode.apply(String,A.slice(0,s)),this.text[u]=String.fromCharCode.apply(String,A.slice(s+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.load=function(t,e,n){var i;return"function"==typeof e&&(n=e),(i=new XMLHttpRequest).open("GET",t,!0),i.responseType="arraybuffer",i.onload=function(){var t;return t=new r(new Uint8Array(i.response||i.mozResponseArrayBuffer)),"function"==typeof(null!=e?e.getContext:void 0)&&t.render(e),"function"==typeof n?n(t):void 0},i.send(null)},r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(o,a,s,u){var c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C,S,E,L,F=Math.ceil((i.width-o)/s),k=Math.ceil((i.height-a)/u),U=i.width==F&&i.height==k;for(B=e*F,y=U?n:new Uint8Array(B*k),p=t.length,l=b=0;b<k&&r<p;){switch(t[r++]){case 0:for(f=_=0;_<B;f=_+=1)y[l++]=t[r++];break;case 1:for(f=C=0;C<B;f=C+=1)c=t[r++],h=f<e?0:y[l-e],y[l++]=(c+h)%256;break;case 2:for(f=S=0;S<B;f=S+=1)c=t[r++],A=(f-f%e)/e,x=b&&y[(b-1)*B+A*e+f%e],y[l++]=(x+c)%256;break;case 3:for(f=E=0;E<B;f=E+=1)c=t[r++],A=(f-f%e)/e,h=f<e?0:y[l-e],x=b&&y[(b-1)*B+A*e+f%e],y[l++]=(c+Math.floor((h+x)/2))%256;break;case 4:for(f=L=0;L<B;f=L+=1)c=t[r++],A=(f-f%e)/e,h=f<e?0:y[l-e],0===b?x=N=0:(x=y[(b-1)*B+A*e+f%e],N=A&&y[(b-1)*B+(A-1)*e+f%e]),d=h+x-N,g=Math.abs(d-h),v=Math.abs(d-x),w=Math.abs(d-N),m=g<=v&&g<=w?h:v<=w?x:N,y[l++]=(c+m)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!U){var Q=((a+b*u)*i.width+o)*e,I=b*B;for(f=0;f<F;f+=1){for(var P=0;P<e;P+=1)n[Q++]=y[I++];Q+=(s-1)*e}}b++}}return t=(t=new Ot(t)).getBytes(),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},r.prototype.decodePalette=function(){var t,e,n,r,i,o,a,s,u;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),r=0,n.length,e=a=t=0,s=n.length;a<s;e=a+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(u=o[t++])?u:255;return i},r.prototype.copyToImageData=function(t,e){var n,r,i,o,a,s,u,c,l,A,f;if(r=this.colors,l=null,n=this.hasAlphaChannel,this.palette.length&&(l=null!=(f=this._decodedPalette)?f:this._decodedPalette=this.decodePalette(),r=4,n=!0),c=(i=t.data||t).length,a=l||e,o=s=0,1===r)for(;o<c;)u=l?4*e[o/4]:s,A=a[u++],i[o++]=A,i[o++]=A,i[o++]=A,i[o++]=n?a[u++]:255,s=u;else for(;o<c;)u=l?4*e[o/4]:s,i[o++]=a[u++],i[o++]=a[u++],i[o++]=a[u++],i[o++]=n?a[u++]:255,s=u},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{e=Et.document.createElement("canvas"),n=e.getContext("2d")}catch(a){return-1}return t=function(t){var r;return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r},r.prototype.decodeFrames=function(e){var n,r,i,o,a,s,u,c;if(this.animation){for(c=[],r=a=0,s=(u=this.animation.frames).length;a<s;r=++a)n=u[r],i=e.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,c.push(n.image=t(i));return c}},r.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(t){var e,n,r,i,o,a,s=this;return n=0,a=this.animation,i=a.numFrames,r=a.frames,o=a.numPlays,(e=function(){var a,u;if(a=n++%i,u=r[a],s.renderFrame(t,a),1<i&&n/i<o)return s.animation._timeout=setTimeout(e,u.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},r}(),Et.PNG=Lt;var Pt=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function(t){var e=this.buffer,n=e?e.byteLength:0;if(t<n)return e;for(var r=512;r<t;)r<<=1;for(var i=new Uint8Array(r),o=0;o<n;++o)i[o]=e[o];return this.buffer=i},getByte:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(t){var e=this.pos;if(t){this.ensureBuffer(e+t);for(var n=e+t;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;r<n&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(e,n)},lookChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var t=this.pos;this.bufferLength<=t;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(t,e,n){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,n)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),Ot=function(){if("undefined"!=typeof Uint32Array){var t=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),e=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),r=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],i=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(a.prototype=Object.create(Pt.prototype)).getBits=function(t){for(var e,n=this.codeSize,r=this.codeBuf,i=this.bytes,a=this.bytesPos;n<t;)void 0===(e=i[a++])&&o("Bad encoding in flate stream"),r|=e<<n,n+=8;return e=r&(1<<t)-1,this.codeBuf=r>>t,this.codeSize=n-=t,this.bytesPos=a,e},a.prototype.getCode=function(t){for(var e=t[0],n=t[1],r=this.codeSize,i=this.codeBuf,a=this.bytes,s=this.bytesPos;r<n;){var u;void 0===(u=a[s++])&&o("Bad encoding in flate stream"),i|=u<<r,r+=8}var c=e[i&(1<<n)-1],l=c>>16,A=65535&c;return(0==r||r<l||0==l)&&o("Bad encoding in flate stream"),this.codeBuf=i>>l,this.codeSize=r-l,this.bytesPos=s,A},a.prototype.generateHuffmanTable=function(t){for(var e=t.length,n=0,r=0;r<e;++r)t[r]>n&&(n=t[r]);for(var i=1<<n,o=new Uint32Array(i),a=1,s=0,u=2;a<=n;++a,s<<=1,u<<=1)for(var c=0;c<e;++c)if(t[c]==a){var l=0,A=s;for(r=0;r<a;++r)l=l<<1|1&A,A>>=1;for(r=l;r<i;r+=u)o[r]=a<<16|c;++s}return[o,n]},a.prototype.readBlock=function(){function a(t,e,n,r,i){for(var o=t.getBits(n)+r;0<o--;)e[p++]=i}var s=this.getBits(3);if(1&s&&(this.eof=!0),0!=(s>>=1)){var u,c;if(1==s)u=r,c=i;else if(2==s){for(var l=this.getBits(5)+257,A=this.getBits(5)+1,f=this.getBits(4)+4,h=Array(t.length),p=0;p<f;)h[t[p++]]=this.getBits(3);for(var d=this.generateHuffmanTable(h),g=0,m=(p=0,l+A),v=new Array(m);p<m;){var w=this.getCode(d);16==w?a(this,v,2,3,g):17==w?a(this,v,3,3,g=0):18==w?a(this,v,7,11,g=0):v[p++]=g=w}u=this.generateHuffmanTable(v.slice(0,l)),c=this.generateHuffmanTable(v.slice(l,m))}else o("Unknown block type in flate stream");for(var y=(U=this.buffer)?U.length:0,b=this.bufferLength;;){var B=this.getCode(u);if(B<256)y<=b+1&&(y=(U=this.ensureBuffer(b+1)).length),U[b++]=B;else{if(256==B)return void(this.bufferLength=b);var x=(B=e[B-=257])>>16;0<x&&(x=this.getBits(x)),g=(65535&B)+x,B=this.getCode(c),0<(x=(B=n[B])>>16)&&(x=this.getBits(x));var N=(65535&B)+x;y<=b+g&&(y=(U=this.ensureBuffer(b+g)).length);for(var _=0;_<g;++_,++b)U[b]=U[b-N]}}}else{var C,S=this.bytes,E=this.bytesPos;void 0===(C=S[E++])&&o("Bad block header in flate stream");var L=C;void 0===(C=S[E++])&&o("Bad block header in flate stream"),L|=C<<8,void 0===(C=S[E++])&&o("Bad block header in flate stream");var F=C;void 0===(C=S[E++])&&o("Bad block header in flate stream"),(F|=C<<8)!=(65535&~L)&&o("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var k=this.bufferLength,U=this.ensureBuffer(k+L),Q=k+L;this.bufferLength=Q;for(var I=k;I<Q;++I){if(void 0===(C=S[E++])){this.eof=!0;break}U[I]=C}this.bytesPos=E}},a}function o(t){throw new Error(t)}function a(t){var e=0,n=t[e++],r=t[e++];-1!=n&&-1!=r||o("Invalid header in flate stream"),8!=(15&n)&&o("Unknown compression method in flate stream"),((n<<8)+r)%31!=0&&o("Bad FCHECK in flate stream"),32&r&&o("FDICT bit set in flate stream"),this.bytes=t,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Pt.call(this)}}();window.tmp=Ot},void 0===(o="function"===typeof i?i.call(e,n,e,t):i)||(t.exports=o);try{t.exports=jsPDF}catch(a){}}).call(this,n(29))},function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!==typeof t)return{default:t};var e=u();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=t[o]}n.default=t,e&&e.set(t,n);return n}(n(3)),a=(i=n(1))&&i.__esModule?i:{default:i},s=n(46);function u(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n(103);var h={datasource:a.default.object,NodeTemplate:a.default.elementType,draggable:a.default.bool,collapsible:a.default.bool,multipleSelect:a.default.bool,changeHierarchy:a.default.func,onClickNode:a.default.func},p=function t(e){var n=e.datasource,r=e.NodeTemplate,i=e.draggable,a=e.collapsible,u=e.multipleSelect,h=e.changeHierarchy,p=e.onClickNode,d=(0,o.useRef)(),g=f((0,o.useState)(!1),2),m=g[0],v=g[1],w=f((0,o.useState)(),2),y=w[0],b=w[1],B=f((0,o.useState)(),2),x=B[0],N=B[1],_=f((0,o.useState)(),2),C=_[0],S=_[1],E=f((0,o.useState)(),2),L=E[0],F=E[1],k=f((0,o.useState)(!1),2),U=k[0],Q=k[1],I=f((0,o.useState)(!1),2),P=I[0],O=I[1],T=["oc-node",m?"isChildrenCollapsed":"",U?"allowedDrop":"",P?"selected":""].filter((function(t){return t})).join(" ");(0,o.useEffect)((function(){var t=s.dragNodeService.getDragInfo().subscribe((function(t){Q(!!t&&!document.querySelector("#"+t.draggedNodeId).closest("li").querySelector("#"+d.current.id))})),e=s.selectNodeService.getSelectedNodeInfo().subscribe((function(t){t?u?t.selectedNodeId===n.id&&O(!0):O(t.selectedNodeId===n.id):O(!1)}));return function(){t.unsubscribe(),e.unsubscribe()}}),[u,n]);var M=function t(e){var n=e.parentNode.closest("li");if(n)if(n.firstChild.classList.contains("hidden"))e.classList.remove("isAncestorsCollapsed"),n.firstChild.classList.remove("hidden");else{var r,i=Array.from(e.parentNode.children).some((function(t){return t.classList.contains("hidden")}));i||H(e),(r=e.classList).add.apply(r,A(("isAncestorsCollapsed"+(i?"":" isSiblingsCollapsed")).split(" "))),n.firstChild.classList.add("hidden"),n.parentNode.closest("li")&&!n.parentNode.closest("li").firstChild.classList.contains("hidden")&&t(n)}},H=function(t){var e=t.previousSibling,n=Array.from(t.parentNode.children).some((function(t){return t.classList.contains("hidden")}));for(t.classList.toggle("isSiblingsCollapsed",!n);e;)n?e.classList.remove("hidden"):e.classList.add("hidden"),e=e.previousSibling;for(e=t.nextSibling;e;)n?e.classList.remove("hidden"):e.classList.add("hidden"),e=e.nextSibling;t.parentNode.closest("li").firstChild.classList.contains("hidden")&&M(t)},R=function(t){t.stopPropagation(),F(!L),N(!x),H(t.target.closest("li"))};return o.default.createElement("li",{className:"oc-hierarchy"},o.default.createElement("div",{ref:d,id:n.id,className:T,draggable:i?"true":void 0,onClick:function(t){p&&p(n),s.selectNodeService.sendSelectedNodeInfo(n.id)},onDragStart:function(t){var e,r=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},n);delete r.relationship,t.dataTransfer.setData("text/plain",JSON.stringify(r)),e=d.current.id,s.dragNodeService.sendDragInfo(e)},onDragOver:function(t){t.preventDefault()},onDragEnd:function(){s.dragNodeService.clearDragInfo()},onDrop:function(t){t.currentTarget.classList.contains("allowedDrop")&&(s.dragNodeService.clearDragInfo(),h(JSON.parse(t.dataTransfer.getData("text/plain")),t.currentTarget.id))},onMouseEnter:function(t){var e=t.target.closest("li"),n=e.parentNode.closest("li"),r=e&&n?n.firstChild.classList.contains("hidden"):void 0,i=Array.from(e.parentNode.children).some((function(t){return t.classList.contains("hidden")}));b(!r),N(!i),F(!i),S(!m)},onMouseLeave:function(){b(void 0),N(void 0),S(void 0),F(void 0)}},r?o.default.createElement(r,{nodeData:n}):o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"oc-heading"},n.relationship&&"1"===n.relationship.charAt(2)&&o.default.createElement("i",{className:"oci oci-leader oc-symbol"}),n.name),o.default.createElement("div",{className:"oc-content"},n.title)),a&&n.relationship&&"1"===n.relationship.charAt(0)&&o.default.createElement("i",{className:"oc-edge verticalEdge topEdge oci ".concat(void 0===y?"":y?"oci-chevron-down":"oci-chevron-up"),onClick:function(t){t.stopPropagation(),b(!y),M(t.target.closest("li"))}}),a&&n.relationship&&"1"===n.relationship.charAt(1)&&o.default.createElement(o.default.Fragment,null,o.default.createElement("i",{className:"oc-edge horizontalEdge rightEdge oci ".concat(void 0===x?"":x?"oci-chevron-left":"oci-chevron-right"),onClick:R}),o.default.createElement("i",{className:"oc-edge horizontalEdge leftEdge oci ".concat(void 0===L?"":L?"oci-chevron-right":"oci-chevron-left"),onClick:R})),a&&n.relationship&&"1"===n.relationship.charAt(2)&&o.default.createElement("i",{className:"oc-edge verticalEdge bottomEdge oci ".concat(void 0===C?"":C?"oci-chevron-up":"oci-chevron-down"),onClick:function(t){t.stopPropagation(),v(!m),S(!C)}})),n.children&&n.children.length>0&&o.default.createElement("ul",{className:m?"hidden":""},n.children.map((function(e){return o.default.createElement(t,{datasource:e,NodeTemplate:r,id:e.id,key:e.id,draggable:i,collapsible:a,multipleSelect:u,changeHierarchy:h,onClickNode:p})}))))};p.propTypes=h,p.defaultProps={draggable:!1,collapsible:!0,multipleSelect:!1};var d=p;e.default=d},function(t,e,n){},function(t,e,n){},,function(t,e,n){"use strict";var r=n(22),i=n(3);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=60106,s=60107,u=60108,c=60114,l=60109,A=60110,f=60112,h=60113,p=60120,d=60115,g=60116,m=60121,v=60117,w=60119,y=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var B=Symbol.for;a=B("react.portal"),s=B("react.fragment"),u=B("react.strict_mode"),c=B("react.profiler"),l=B("react.provider"),A=B("react.context"),f=B("react.forward_ref"),h=B("react.suspense"),p=B("react.suspense_list"),d=B("react.memo"),g=B("react.lazy"),m=B("react.block"),v=B("react.fundamental"),w=B("react.scope"),y=B("react.debug_trace_mode"),b=B("react.legacy_hidden")}function x(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case s:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case A:return(t.displayName||"Context")+".Consumer";case l:return(t._context.displayName||"Context")+".Provider";case f:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case d:return x(t.type);case m:return x(t._render);case g:e=t._payload,t=t._init;try{return x(t(e))}catch(n){}}return null}var N=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_={};function C(t,e){for(var n=0|t._threadCount;n<=e;n++)t[n]=t._currentValue2,t._threadCount=n+1}for(var S=new Uint16Array(16),E=0;15>E;E++)S[E]=E+1;S[15]=0;var L=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,F=Object.prototype.hasOwnProperty,k={},U={};function Q(t){return!!F.call(U,t)||!F.call(k,t)&&(L.test(t)?U[t]=!0:(k[t]=!0,!1))}function I(t,e,n,r,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){P[t]=new I(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];P[e]=new I(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){P[t]=new I(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){P[t]=new I(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){P[t]=new I(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){P[t]=new I(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){P[t]=new I(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){P[t]=new I(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){P[t]=new I(t,5,!1,t.toLowerCase(),null,!1,!1)}));var O=/[\-:]([a-z])/g;function T(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(O,T);P[e]=new I(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(O,T);P[e]=new I(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(O,T);P[e]=new I(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){P[t]=new I(t,1,!1,t.toLowerCase(),null,!1,!1)})),P.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){P[t]=new I(t,1,!1,t.toLowerCase(),null,!0,!0)}));var M=/["'&<>]/;function H(t){if("boolean"===typeof t||"number"===typeof t)return""+t;t=""+t;var e=M.exec(t);if(e){var n,r="",i=0;for(n=e.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#x27;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}i!==n&&(r+=t.substring(i,n)),i=n+1,r+=e}t=i!==n?r+t.substring(i,n):r}return t}function R(t,e){var n,r=P.hasOwnProperty(t)?P[t]:null;return(n="style"!==t)&&(n=null!==r?0===r.type:2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])),n||function(t,e,n,r){if(null===e||"undefined"===typeof e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(t,e,r,!1)?"":null!==r?(t=r.attributeName,3===(n=r.type)||4===n&&!0===e?t+'=""':(r.sanitizeURL&&(e=""+e),t+'="'+H(e)+'"')):Q(t)?t+'="'+H(e)+'"':""}var D="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},j=null,z=null,K=null,q=!1,V=!1,G=null,W=0;function X(){if(null===j)throw Error(o(321));return j}function J(){if(0<W)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function Y(){return null===K?null===z?(q=!1,z=K=J()):(q=!0,K=z):null===K.next?(q=!1,K=K.next=J()):(q=!0,K=K.next),K}function $(t,e,n,r){for(;V;)V=!1,W+=1,K=null,n=t(e,r);return Z(),n}function Z(){j=null,V=!1,z=null,W=0,K=G=null}function tt(t,e){return"function"===typeof e?e(t):e}function et(t,e,n){if(j=X(),K=Y(),q){var r=K.queue;if(e=r.dispatch,null!==G&&void 0!==(n=G.get(r))){G.delete(r),r=K.memoizedState;do{r=t(r,n.action),n=n.next}while(null!==n);return K.memoizedState=r,[r,e]}return[K.memoizedState,e]}return t=t===tt?"function"===typeof e?e():e:void 0!==n?n(e):e,K.memoizedState=t,t=(t=K.queue={last:null,dispatch:null}).dispatch=rt.bind(null,j,t),[K.memoizedState,t]}function nt(t,e){if(j=X(),e=void 0===e?null:e,null!==(K=Y())){var n=K.memoizedState;if(null!==n&&null!==e){var r=n[1];t:if(null===r)r=!1;else{for(var i=0;i<r.length&&i<e.length;i++)if(!D(e[i],r[i])){r=!1;break t}r=!0}if(r)return n[0]}}return t=t(),K.memoizedState=[t,e],t}function rt(t,e,n){if(!(25>W))throw Error(o(301));if(t===j)if(V=!0,t={action:n,next:null},null===G&&(G=new Map),void 0===(n=G.get(e)))G.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function it(){}var ot=null,at={readContext:function(t){var e=ot.threadID;return C(t,e),t[e]},useContext:function(t){X();var e=ot.threadID;return C(t,e),t[e]},useMemo:nt,useReducer:et,useRef:function(t){j=X();var e=(K=Y()).memoizedState;return null===e?(t={current:t},K.memoizedState=t):e},useState:function(t){return et(tt,t)},useLayoutEffect:function(){},useCallback:function(t,e){return nt((function(){return t}),e)},useImperativeHandle:it,useEffect:it,useDebugValue:it,useDeferredValue:function(t){return X(),t},useTransition:function(){return X(),[function(t){t()},!1]},useOpaqueIdentifier:function(){return(ot.identifierPrefix||"")+"R:"+(ot.uniqueID++).toString(36)},useMutableSource:function(t,e){return X(),e(t._source)}},st="http://www.w3.org/1999/xhtml";function ut(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ct={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},lt=r({menuitem:!0},ct),At={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ft=["Webkit","ms","Moz","O"];Object.keys(At).forEach((function(t){ft.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),At[e]=At[t]}))}));var ht=/([A-Z])/g,pt=/^ms-/,dt=i.Children.toArray,gt=N.ReactCurrentDispatcher,mt={listing:!0,pre:!0,textarea:!0},vt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt={},yt={};var bt=Object.prototype.hasOwnProperty,Bt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function xt(t,e){if(void 0===t)throw Error(o(152,x(e)||"Component"))}function Nt(t,e,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,u=function(t,e,n,r){if(r&&"object"===typeof(r=t.contextType)&&null!==r)return C(r,n),r[n];if(t=t.contextTypes){for(var i in n={},t)n[i]=e[i];e=n}else e=_;return e}(a,e,n,s),c=[],l=!1,A={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(t,e){l=!0,c=[e]},enqueueSetState:function(t,e){if(null===c)return null;c.push(e)}};if(s){if(s=new a(i.props,u,A),"function"===typeof a.getDerivedStateFromProps){var f=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=f&&(s.state=r({},s.state,f))}}else if(j={},s=a(i.props,u,A),null==(s=$(a,i.props,s,u))||null==s.render)return void xt(t=s,a);if(s.props=i.props,s.context=u,s.updater=A,void 0===(A=s.state)&&(s.state=A=null),"function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),c.length){A=c;var h=l;if(c=null,l=!1,h&&1===A.length)s.state=A[0];else{f=h?A[0]:s.state;var p=!0;for(h=h?1:0;h<A.length;h++){var d=A[h];null!=(d="function"===typeof d?d.call(s,f,i.props,u):d)&&(p?(p=!1,f=r({},f,d)):r(f,d))}s.state=f}}else c=null;if(xt(t=s.render(),a),"function"===typeof s.getChildContext&&"object"===typeof(i=a.childContextTypes)){var g=s.getChildContext();for(var m in g)if(!(m in i))throw Error(o(108,x(a)||"Unknown",m))}g&&(e=r({},e,g))}for(;i.isValidElement(t);){var s=t,u=s.type;if("function"!==typeof u)break;a(s,u)}return{child:t,context:e}}var _t=function(){function t(t,e,n){i.isValidElement(t)?t.type!==s?t=[t]:(t=t.props.children,t=i.isValidElement(t)?[t]:dt(t)):t=dt(t),t={type:null,domNamespace:st,children:t,childIndex:0,context:_,footer:""};var r=S[0];if(0===r){var a=S,u=2*(r=a.length);if(!(65536>=u))throw Error(o(304));var c=new Uint16Array(u);for(c.set(a),(S=c)[0]=r+1,a=r;a<u-1;a++)S[a]=a+1;S[u-1]=0}else S[0]=S[r];this.threadID=r,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=e,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[],this.uniqueID=0,this.identifierPrefix=n&&n.identifierPrefix||""}var e=t.prototype;return e.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var t=this.threadID;S[t]=S[0],S[0]=t}},e.pushProvider=function(t){var e=++this.contextIndex,n=t.type._context,r=this.threadID;C(n,r);var i=n[r];this.contextStack[e]=n,this.contextValueStack[e]=i,n[r]=t.props.value},e.popProvider=function(){var t=this.contextIndex,e=this.contextStack[t],n=this.contextValueStack[t];this.contextStack[t]=null,this.contextValueStack[t]=null,this.contextIndex--,e[this.threadID]=n},e.clearProviders=function(){for(var t=this.contextIndex;0<=t;t--)this.contextStack[t][this.threadID]=this.contextValueStack[t]},e.read=function(t){if(this.exhausted)return null;var e=ot;ot=this;var n=gt.current;gt.current=at;try{for(var r=[""],i=!1;r[0].length<t;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;S[a]=S[0],S[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var u=s.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===l)this.popProvider(s.type);else if(s.type===h){this.suspenseDepth--;var c=r.pop();if(i){i=!1;var A=s.fallbackFrame;if(!A)throw Error(o(303));this.stack.push(A),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=u}else{var f=s.children[s.childIndex++],p="";try{p+=this.render(f,s.context,s.domNamespace)}catch(d){if(null!=d&&"function"===typeof d.then)throw Error(o(294));throw d}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{gt.current=n,ot=e,Z()}},e.render=function(t,e,n){if("string"===typeof t||"number"===typeof t)return""===(n=""+t)?"":this.makeStaticMarkup?H(n):this.previousWasTextNode?"\x3c!-- --\x3e"+H(n):(this.previousWasTextNode=!0,H(n));if(t=(e=Nt(t,e,this.threadID)).child,e=e.context,null===t||!1===t)return"";if(!i.isValidElement(t)){if(null!=t&&null!=t.$$typeof){if((n=t.$$typeof)===a)throw Error(o(257));throw Error(o(258,n.toString()))}return t=dt(t),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),""}var m=t.type;if("string"===typeof m)return this.renderDOM(t,e,n);switch(m){case b:case y:case u:case c:case p:case s:return t=dt(t.props.children),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case h:throw Error(o(294));case w:throw Error(o(343))}if("object"===typeof m&&null!==m)switch(m.$$typeof){case f:j={};var B=m.render(t.props,t.ref);return B=$(m.render,t.props,B,t.ref),B=dt(B),this.stack.push({type:null,domNamespace:n,children:B,childIndex:0,context:e,footer:""}),"";case d:return t=[i.createElement(m.type,r({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case l:return n={type:t,domNamespace:n,children:m=dt(t.props.children),childIndex:0,context:e,footer:""},this.pushProvider(t),this.stack.push(n),"";case A:m=t.type,B=t.props;var x=this.threadID;return C(m,x),m=dt(B.children(m[x])),this.stack.push({type:t,domNamespace:n,children:m,childIndex:0,context:e,footer:""}),"";case v:throw Error(o(338));case g:return m=(B=(m=t.type)._init)(m._payload),t=[i.createElement(m,r({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),""}throw Error(o(130,null==m?m:typeof m,""))},e.renderDOM=function(t,e,n){var a=t.type.toLowerCase();if(n===st&&ut(a),!wt.hasOwnProperty(a)){if(!vt.test(a))throw Error(o(65,a));wt[a]=!0}var s=t.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var u=s.value;if(null==u){u=s.defaultValue;var c=s.children;if(null!=c){if(null!=u)throw Error(o(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(o(93));c=c[0]}u=""+c}null==u&&(u="")}s=r({},s,{value:void 0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){c=this.currentSelectValue;var l=function(t){if(void 0===t||null===t)return t;var e="";return i.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(s.children);if(null!=c){var A=null!=s.value?s.value+"":l;if(u=!1,Array.isArray(c)){for(var f=0;f<c.length;f++)if(""+c[f]===A){u=!0;break}}else u=""+c===A;s=r({selected:void 0,children:void 0},s,{selected:u,children:l})}}if(u=s){if(lt[a]&&(null!=u.children||null!=u.dangerouslySetInnerHTML))throw Error(o(137,a));if(null!=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(o(60));if("object"!==typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=u.style&&"object"!==typeof u.style)throw Error(o(62))}u=s,c=this.makeStaticMarkup,l=1===this.stack.length,A="<"+t.type;t:if(-1===a.indexOf("-"))f="string"===typeof u.is;else switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":f=!1;break t;default:f=!0}for(b in u)if(bt.call(u,b)){var h=u[b];if(null!=h){if("style"===b){var p=void 0,d="",g="";for(p in h)if(h.hasOwnProperty(p)){var m=0===p.indexOf("--"),v=h[p];if(null!=v){if(m)var w=p;else if(w=p,yt.hasOwnProperty(w))w=yt[w];else{var y=w.replace(ht,"-$1").toLowerCase().replace(pt,"-ms-");w=yt[w]=y}d+=g+w+":",g=p,d+=m=null==v||"boolean"===typeof v||""===v?"":m||"number"!==typeof v||0===v||At.hasOwnProperty(g)&&At[g]?(""+v).trim():v+"px",g=";"}}h=d||null}p=null,f?Bt.hasOwnProperty(b)||(p=Q(p=b)&&null!=h?p+'="'+H(h)+'"':""):p=R(b,h),p&&(A+=" "+p)}}c||l&&(A+=' data-reactroot=""');var b=A;u="",ct.hasOwnProperty(a)?b+="/>":(b+=">",u="</"+t.type+">");t:{if(null!=(c=s.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break t}}else if("string"===typeof(c=s.children)||"number"===typeof c){c=H(c);break t}c=null}return null!=c?(s=[],mt.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(b+="\n"),b+=c):s=dt(s.children),t=t.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ut(t):"http://www.w3.org/2000/svg"===n&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:e,footer:u}),this.previousWasTextNode=!1,b},t}();e.renderToNodeStream=function(){throw Error(o(207))},e.renderToStaticMarkup=function(t,e){t=new _t(t,!0,e);try{return t.read(1/0)}finally{t.destroy()}},e.renderToStaticNodeStream=function(){throw Error(o(208))},e.renderToString=function(t,e){t=new _t(t,!1,e);try{return t.read(1/0)}finally{t.destroy()}},e.version="17.0.2"},function(t,e,n){"use strict";n.r(e),n.d(e,"Observable",(function(){return x})),n.d(e,"ConnectableObservable",(function(){return U})),n.d(e,"GroupedObservable",(function(){return I})),n.d(e,"observable",(function(){return w})),n.d(e,"Subject",(function(){return E})),n.d(e,"BehaviorSubject",(function(){return O})),n.d(e,"ReplaySubject",(function(){return nt})),n.d(e,"AsyncSubject",(function(){return it})),n.d(e,"asap",(function(){return ht})),n.d(e,"asapScheduler",(function(){return ft})),n.d(e,"async",(function(){return dt})),n.d(e,"asyncScheduler",(function(){return pt})),n.d(e,"queue",(function(){return j})),n.d(e,"queueScheduler",(function(){return D})),n.d(e,"animationFrame",(function(){return vt})),n.d(e,"animationFrameScheduler",(function(){return mt})),n.d(e,"VirtualTimeScheduler",(function(){return wt})),n.d(e,"VirtualAction",(function(){return yt})),n.d(e,"Scheduler",(function(){return H})),n.d(e,"Subscription",(function(){return h})),n.d(e,"Subscriber",(function(){return g})),n.d(e,"Notification",(function(){return Z})),n.d(e,"NotificationKind",(function(){return V})),n.d(e,"pipe",(function(){return b})),n.d(e,"noop",(function(){return bt})),n.d(e,"identity",(function(){return y})),n.d(e,"isObservable",(function(){return Bt})),n.d(e,"ArgumentOutOfRangeError",(function(){return xt})),n.d(e,"EmptyError",(function(){return Nt})),n.d(e,"ObjectUnsubscribedError",(function(){return _})),n.d(e,"UnsubscriptionError",(function(){return f})),n.d(e,"TimeoutError",(function(){return _t})),n.d(e,"bindCallback",(function(){return Lt})),n.d(e,"bindNodeCallback",(function(){return Ut})),n.d(e,"combineLatest",(function(){return qt})),n.d(e,"concat",(function(){return ie})),n.d(e,"defer",(function(){return oe})),n.d(e,"empty",(function(){return K})),n.d(e,"forkJoin",(function(){return ae})),n.d(e,"from",(function(){return Xt})),n.d(e,"fromEvent",(function(){return ue})),n.d(e,"fromEventPattern",(function(){return le})),n.d(e,"generate",(function(){return Ae})),n.d(e,"iif",(function(){return he})),n.d(e,"interval",(function(){return de})),n.d(e,"merge",(function(){return me})),n.d(e,"never",(function(){return we})),n.d(e,"of",(function(){return J})),n.d(e,"onErrorResumeNext",(function(){return ye})),n.d(e,"pairs",(function(){return be})),n.d(e,"partition",(function(){return Se})),n.d(e,"race",(function(){return Ee})),n.d(e,"range",(function(){return ke})),n.d(e,"throwError",(function(){return Y})),n.d(e,"timer",(function(){return Qe})),n.d(e,"using",(function(){return Pe})),n.d(e,"zip",(function(){return Oe})),n.d(e,"scheduled",(function(){return Wt})),n.d(e,"EMPTY",(function(){return z})),n.d(e,"NEVER",(function(){return ve})),n.d(e,"config",(function(){return s}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){return"function"===typeof t}var a=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;a=t},get useDeprecatedSynchronousErrorHandling(){return a}};function u(t){setTimeout((function(){throw t}),0)}var c={closed:!0,next:function(t){},error:function(t){if(s.useDeprecatedSynchronousErrorHandling)throw t;u(t)},complete:function(){}},l=function(){return Array.isArray||function(t){return t&&"number"===typeof t.length}}();function A(t){return null!==t&&"object"===typeof t}var f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),h=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,r=n._parentOrParents,i=n._ctorUnsubscribe,a=n._unsubscribe,s=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var u=0;u<r.length;++u){r[u].remove(this)}if(o(a)){i&&(this._unsubscribe=void 0);try{a.call(this)}catch(d){e=d instanceof f?p(d.errors):[d]}}if(l(s)){u=-1;for(var c=s.length;++u<c;){var h=s[u];if(A(h))try{h.unsubscribe()}catch(d){e=e||[],d instanceof f?e=e.concat(p(d.errors)):e.push(d)}}}if(e)throw new f(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function p(t){return t.reduce((function(t,e){return t.concat(e instanceof f?e.errors:e)}),[])}var d=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),g=function(t){function e(n,r,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=c;break;case 1:if(!n){o.destination=c;break}if("object"===typeof n){n instanceof e?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new m(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new m(o,n,r,i)}return o}return i(e,t),e.prototype[d]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(h),m=function(t){function e(e,n,r,i){var a,s=t.call(this)||this;s._parentSubscriber=e;var u=s;return o(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==c&&(o((u=Object.create(n)).unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=a,s._error=r,s._complete=i,s}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):u(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;u(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;u(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(u(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(g);function v(t){for(;t;){var e=t,n=e.closed,r=e.destination,i=e.isStopped;if(n||i)return!1;t=r&&r instanceof g?r:null}return!0}var w=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}();function y(t){return t}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return B(t)}function B(t){return 0===t.length?y:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var x=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=function(t,e,n){if(t){if(t instanceof g)return t;if(t[d])return t[d]()}return t||e||n?new g(t,e,n):new g(c)}(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){s.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),v(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=N(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[w]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:B(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=N(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function N(t){if(t||(t=s.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var _=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),C=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(h),S=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(g),E=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[d]=function(){return new S(this)},e.prototype.lift=function(t){var e=new L(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new _;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new _;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new _;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new _;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new _;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new C(this,t))},e.prototype.asObservable=function(){var t=new x;return t.source=this,t},e.create=function(t,e){return new L(t,e)},e}(x),L=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):h.EMPTY},e}(E);var F=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new k(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),k=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(g),U=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new h).add(this.source.subscribe(new Q(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t},e.prototype.refCount=function(){return(t=this).lift(new F(t));var t},e}(x),Q=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(S);var I=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return i(e,t),e.prototype._subscribe=function(t){var e=new h,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new P(n)),e.add(r.subscribe(t)),e},e}(x),P=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(h),O=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(E),T=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(h)),M=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(T),H=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),R=function(t){function e(n,r){void 0===r&&(r=H.now);var i=t.call(this,n,(function(){return e.delegate&&e.delegate!==i?e.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(H),D=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(R))(M),j=D,z=new x((function(t){return t.complete()}));function K(t){return t?function(t){return new x((function(e){return t.schedule((function(){return e.complete()}))}))}(t):z}function q(t){return t&&"function"===typeof t.schedule}var V,G=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}};function W(t,e){return new x((function(n){var r=new h,i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function X(t,e){return e?W(t,e):new x(G(t))}function J(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return q(n)?(t.pop(),W(t,n)):X(t)}function Y(t,e){return new x(e?function(n){return e.schedule($,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function $(t){var e=t.error;t.subscriber.error(e)}V||(V={});var Z=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"===typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return J(this.value);case"E":return Y(this.error);case"C":return K()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!==typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();var tt=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new et(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Z.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Z.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Z.createComplete()),this.unsubscribe()},e}(g),et=function(){return function(t,e){this.notification=t,this.destination=e}}(),nt=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new rt(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new _;if(this.isStopped||this.hasError?e=h.EMPTY:(this.observers.push(t),e=new C(this,t)),i&&t.add(t=new tt(t,i)),n)for(var a=0;a<o&&!t.closed;a++)t.next(r[a]);else for(a=0;a<o&&!t.closed;a++)t.next(r[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||j).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(E),rt=function(){return function(t,e){this.time=t,this.value=e}}(),it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),h.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),h.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(E),ot=1,at=function(){return Promise.resolve()}(),st={};function ut(t){return t in st&&(delete st[t],!0)}var ct=function(t){var e=ot++;return st[e]=!0,at.then((function(){return ut(e)&&t()})),e},lt=function(t){ut(t)},At=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=ct(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(lt(n),e.scheduled=void 0)},e}(T),ft=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(R))(At),ht=ft,pt=new R(T),dt=pt,gt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return i(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(T),mt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(R))(gt),vt=mt,wt=function(t){function e(e,n){void 0===e&&(e=yt),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(R),yt=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return i(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(T);function bt(){}function Bt(t){return!!t&&(t instanceof x||"function"===typeof t.lift&&"function"===typeof t.subscribe)}var xt=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),Nt=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),_t=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function Ct(t,e){return function(n){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new St(t,e))}}var St=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Et(t,this.project,this.thisArg))},t}(),Et=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(g);function Lt(t,e,n){if(e){if(!q(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Lt(t,n).apply(void 0,r).pipe(Ct((function(t){return l(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i,o=this,a={context:o,subject:i,callbackFunc:t,scheduler:n};return new x((function(r){if(n){var s={args:e,subscriber:r,params:a};return n.schedule(Ft,0,s)}if(!i){i=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.next(t.length<=1?t[0]:t),i.complete()}]))}catch(u){v(i)?i.error(u):console.warn(u)}}return i.subscribe(r)}))}}function Ft(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,a=i.context,s=i.scheduler,u=i.subject;if(!u){u=i.subject=new it;try{o.apply(a,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(s.schedule(kt,0,{value:r,subject:u}))}]))}catch(c){u.error(c)}}this.add(u.subscribe(r))}function kt(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function Ut(t,e,n){if(e){if(!q(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Ut(t,n).apply(void 0,r).pipe(Ct((function(t){return l(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var i={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new x((function(r){var o=i.context,a=i.subject;if(n)return n.schedule(Qt,0,{params:i,subscriber:r,context:o});if(!a){a=i.subject=new it;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?a.error(n):(a.next(t.length<=1?t[0]:t),a.complete())}]))}catch(s){v(a)?a.error(s):console.warn(s)}}return a.subscribe(r)}))}}function Qt(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,a=n.args,s=n.scheduler,u=n.subject;if(!u){u=n.subject=new it;try{o.apply(i,a.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(s.schedule(Pt,0,{err:r,subject:u}));else{var i=t.length<=1?t[0]:t;e.add(s.schedule(It,0,{value:i,subject:u}))}}]))}catch(c){this.add(s.schedule(Pt,0,{err:c,subject:u}))}}this.add(u.subscribe(r))}function It(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function Pt(t){var e=t.err;t.subject.error(e)}var Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(g),Tt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(g);function Mt(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Ht=Mt(),Rt=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t};function Dt(t){return!!t&&"function"!==typeof t.subscribe&&"function"===typeof t.then}var jt=function(t){if(t&&"function"===typeof t[w])return r=t,function(t){var e=r[w]();if("function"!==typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Rt(t))return G(t);if(Dt(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,u),t};if(t&&"function"===typeof t[Ht])return e=t,function(t){for(var n=e[Ht]();;){var r=void 0;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"===typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,r,i=A(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function zt(t,e,n,r,i){if(void 0===i&&(i=new Tt(t,n,r)),!i.closed)return e instanceof x?e.subscribe(i):jt(e)(i)}var Kt={};function qt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return q(t[t.length-1])&&(r=t.pop()),"function"===typeof t[t.length-1]&&(n=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),X(t,r).lift(new Vt(n))}var Vt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Gt(t,this.resultSelector))},t}(),Gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return i(e,t),e.prototype._next=function(t){this.values.push(Kt),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(zt(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0===(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===Kt?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(Ot);function Wt(t,e){if(null!=t){if(function(t){return t&&"function"===typeof t[w]}(t))return function(t,e){return new x((function(n){var r=new h;return r.add(e.schedule((function(){var i=t[w]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(Dt(t))return function(t,e){return new x((function(n){var r=new h;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(Rt(t))return W(t,e);if(function(t){return t&&"function"===typeof t[Ht]}(t)||"string"===typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new x((function(n){var r,i=new h;return i.add((function(){r&&"function"===typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[Ht](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Xt(t,e){return e?Wt(t,e):t instanceof x?t:new x(jt(t))}var Jt=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(g),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(g);function $t(t,e){if(!e.closed){if(t instanceof x)return t.subscribe(e);var n;try{n=jt(t)(e)}catch(r){e.error(r)}return n}}function Zt(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(Zt((function(n,r){return Xt(t(n,r)).pipe(Ct((function(t,i){return e(n,t,r,i)})))}),n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new te(t,n))})}var te=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new ee(t,this.project,this.concurrent))},t}(),ee=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new Jt(this),n=this.destination;n.add(e);var r=$t(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Yt);function ne(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Zt(y,t)}function re(){return ne(1)}function ie(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return re()(J.apply(void 0,t))}function oe(t){return new x((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?Xt(n):K()).subscribe(e)}))}function ae(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(l(n))return se(n,null);if(A(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return se(r.map((function(t){return n[t]})),r)}}if("function"===typeof t[t.length-1]){var i=t.pop();return se(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(Ct((function(t){return i.apply(void 0,t)})))}return se(t,null)}function se(t,e){return new x((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,a=0,s=function(s){var u=Xt(t[s]),c=!1;n.add(u.subscribe({next:function(t){c||(c=!0,a++),i[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&c||(a===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},u=0;u<r;u++)s(u);else n.complete()}))}function ue(t,e,n,r){return o(n)&&(r=n,n=void 0),r?ue(t,e,n).pipe(Ct((function(t){return l(t)?r.apply(void 0,t):r(t)}))):new x((function(r){ce(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function ce(t,e,n,r,i){var o;if(function(t){return t&&"function"===typeof t.addEventListener&&"function"===typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"===typeof t.on&&"function"===typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"===typeof t.addListener&&"function"===typeof t.removeListener}(t)){var u=t;t.addListener(e,n),o=function(){return u.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,l=t.length;c<l;c++)ce(t[c],e,n,r,i)}r.add(o)}function le(t,e,n){return n?le(t,e).pipe(Ct((function(t){return l(t)?n.apply(void 0,t):n(t)}))):new x((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(a){return void n.error(a)}if(o(e))return function(){return e(i,r)}}))}function Ae(t,e,n,r,i){var o,a;if(1==arguments.length){var s=t;a=s.initialState,e=s.condition,n=s.iterate,o=s.resultSelector||y,i=s.scheduler}else void 0===r||q(r)?(a=t,o=y,i=r):(a=t,o=r);return new x((function(t){var r=a;if(i)return i.schedule(fe,0,{subscriber:t,iterate:n,condition:e,resultSelector:o,state:r});for(;;){if(e){var s=void 0;try{s=e(r)}catch(c){return void t.error(c)}if(!s){t.complete();break}}var u=void 0;try{u=o(r)}catch(c){return void t.error(c)}if(t.next(u),t.closed)break;try{r=n(r)}catch(c){return void t.error(c)}}}))}function fe(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(o){return void e.error(o)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(o){return void e.error(o)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(o){return void e.error(o)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function he(t,e,n){return void 0===e&&(e=z),void 0===n&&(n=z),oe((function(){return t()?e:n}))}function pe(t){return!l(t)&&t-parseFloat(t)+1>=0}function de(t,e){return void 0===t&&(t=0),void 0===e&&(e=dt),(!pe(t)||t<0)&&(t=0),e&&"function"===typeof e.schedule||(e=dt),new x((function(n){return n.add(e.schedule(ge,t,{subscriber:n,counter:0,period:t})),n}))}function ge(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}function me(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return q(i)?(r=t.pop(),t.length>1&&"number"===typeof t[t.length-1]&&(n=t.pop())):"number"===typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof x?t[0]:ne(n)(X(t,r))}var ve=new x(bt);function we(){return ve}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return z;var n=t[0],r=t.slice(1);return 1===t.length&&l(n)?ye.apply(void 0,n):new x((function(t){var e=function(){return t.add(ye.apply(void 0,r).subscribe(t))};return Xt(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function be(t,e){return new x(e?function(n){var r=Object.keys(t),i=new h;return i.add(e.schedule(Be,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i}:function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function Be(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var a=e[n];r.next([a,o[a]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}function xe(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}function Ne(t,e){return function(n){return n.lift(new _e(t,e))}}var _e=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ce(t,this.predicate,this.thisArg))},t}(),Ce=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(g);function Se(t,e,n){return[Ne(e,n)(new x(jt(t))),Ne(xe(e,n))(new x(jt(t)))]}function Ee(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return X(t,void 0).lift(new Le)}var Le=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Fe(t))},t}(),Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=zt(this,t[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(Ot);function ke(t,e,n){return void 0===t&&(t=0),new x((function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(Ue,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function Ue(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}function Qe(t,e,n){void 0===t&&(t=0);var r=-1;return pe(e)?r=Number(e)<1?1:Number(e):q(e)&&(n=e),q(n)||(n=dt),new x((function(e){var i=pe(t)?t:+t-n.now();return n.schedule(Ie,i,{index:0,period:r,subscriber:e})}))}function Ie(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Pe(t,e){return new x((function(n){var r,i;try{r=t()}catch(a){return void n.error(a)}try{i=e(r)}catch(a){return void n.error(a)}var o=(i?Xt(i):z).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}function Oe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"===typeof n&&t.pop(),X(t,void 0).lift(new Te(n))}var Te=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.resultSelector))},t}(),Me=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"===typeof n?n:void 0,i}return i(e,t),e.prototype._next=function(t){var e=this.iterators;l(t)?e.push(new Re(t)):"function"===typeof t[Ht]?e.push(new He(t[Ht]())):e.push(new De(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe());else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"===typeof(a=t[r]).hasValue&&!a.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var a,s=(a=t[r]).next();if(a.hasCompleted()&&(i=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(g),He=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),Re=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Ht]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),De=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(e,t),e.prototype[Ht]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return $t(this.observable,new Jt(this))},e}(Yt)},function(t,e,n){"use strict";var r=n(3),i=n(1),o=function(){};function a(t){return"undefined"!==typeof t}var s=Math.PI/180,u=Number.MAX_VALUE,c=-Number.MAX_VALUE;function l(t){return t*s}function A(t,e){var n,r=(n=e)?Math.pow(10,n):1;return Math.round(t*r)/r}var f=function(t){function e(e,n,r,i,o,a){void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===a&&(a=0),t.call(this),this.a=e,this.b=n,this.c=r,this.d=i,this.e=o,this.f=a}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.multiplyCopy=function(t){return new e(this.a*t.a+this.c*t.b,this.b*t.a+this.d*t.b,this.a*t.c+this.c*t.d,this.b*t.c+this.d*t.d,this.a*t.e+this.c*t.f+this.e,this.b*t.e+this.d*t.f+this.f)},e.prototype.invert=function(){var t=this,n=t.a,r=t.b,i=t.c,o=t.d,a=t.e,s=t.f,u=n*o-r*i;return 0===u?null:new e(o/u,-r/u,-i/u,n/u,(i*s-o*a)/u,(r*a-n*s)/u)},e.prototype.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},e.prototype.equals=function(t){return!!t&&(this.a===t.a&&this.b===t.b&&this.c===t.c&&this.d===t.d&&this.e===t.e&&this.f===t.f)},e.prototype.round=function(t){return this.a=A(this.a,t),this.b=A(this.b,t),this.c=A(this.c,t),this.d=A(this.d,t),this.e=A(this.e,t),this.f=A(this.f,t),this},e.prototype.toArray=function(t){var e=[this.a,this.b,this.c,this.d,this.e,this.f];if(a(t))for(var n=0;n<e.length;n++)e[n]=A(e[n],t);return e},e.prototype.toString=function(t,e){return void 0===e&&(e=","),this.toArray(t).join(e)},e.translate=function(t,n){return new e(1,0,0,1,t,n)},e.unit=function(){return new e(1,0,0,1,0,0)},e.rotate=function(t,n,r){var i=new e;return i.a=Math.cos(l(t)),i.b=Math.sin(l(t)),i.c=-i.b,i.d=i.a,i.e=n-n*i.a+r*i.b||0,i.f=r-r*i.a-n*i.b||0,i},e.scale=function(t,n){return new e(t,0,0,n,0,0)},e}(o);f.IDENTITY=f.unit();var h=f,p=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.observers=function(){return this._observers=this._observers||[],this._observers},e.prototype.addObserver=function(t){return this._observers?this._observers.push(t):this._observers=[t],this},e.prototype.removeObserver=function(t){var e=this.observers(),n=e.indexOf(t);return-1!==n&&e.splice(n,1),this},e.prototype.trigger=function(t,e){var n=this._observers;if(n&&!this._suspended)for(var r=0;r<n.length;r++){var i=n[r];i[t]&&i[t](e)}return this},e.prototype.optionsChange=function(t){void 0===t&&(t={}),t.element=this,this.trigger("optionsChange",t)},e.prototype.geometryChange=function(){this.trigger("geometryChange",{element:this})},e.prototype.suspend=function(){return this._suspended=(this._suspended||0)+1,this},e.prototype.resume=function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},e.prototype._observerField=function(t,e){this[t]&&this[t].removeObserver(this),this[t]=e,e.addObserver(this)},e}(o);function d(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function g(t){return function(){return this[t]}}var m=function(t,e){var n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.charAt(0).toUpperCase()+r.substring(1,r.length);t["set"+i]=d(r),t["get"+i]=g(r)}}(n.prototype,e),n};function v(t){return t&&"function"===typeof t.matrix?t.matrix():t}var w=function(t){function e(e,n){t.call(this),this.x=e||0,this.y=n||0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.x===this.x&&t.y===this.y},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.rotate=function(t,n){var r=e.create(n)||e.ZERO;return this.transform(h.rotate(t,r.x,r.y))},e.prototype.translate=function(t,e){return this.x+=t,this.y+=e,this.geometryChange(),this},e.prototype.translateWith=function(t){return this.translate(t.x,t.y)},e.prototype.move=function(t,e){return this.x=this.y=0,this.translate(t,e)},e.prototype.scale=function(t,e){return void 0===e&&(e=t),this.x*=t,this.y*=e,this.geometryChange(),this},e.prototype.scaleCopy=function(t,e){return this.clone().scale(t,e)},e.prototype.transform=function(t){var e=v(t),n=this.x,r=this.y;return this.x=e.a*n+e.c*r+e.e,this.y=e.b*n+e.d*r+e.f,this.geometryChange(),this},e.prototype.transformCopy=function(t){var e=this.clone();return t&&e.transform(t),e},e.prototype.distanceTo=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},e.prototype.round=function(t){return this.x=A(this.x,t),this.y=A(this.y,t),this.geometryChange(),this},e.prototype.toArray=function(t){var e=a(t);return[e?A(this.x,t):this.x,e?A(this.y,t):this.y]},e.prototype.toString=function(t,e){void 0===e&&(e=" ");var n=this.x,r=this.y;return a(t)&&(n=A(n,t),r=A(r,t)),n+e+r},e.create=function(t,n){if(a(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,n)},e.min=function(){for(var t=arguments,n=u,r=u,i=0;i<arguments.length;i++){var o=t[i];n=Math.min(o.x,n),r=Math.min(o.y,r)}return new e(n,r)},e.max=function(){for(var t=arguments,n=c,r=c,i=0;i<arguments.length;i++){var o=t[i];n=Math.max(o.x,n),r=Math.max(o.y,r)}return new e(n,r)},e.minPoint=function(){return new e(c,c)},e.maxPoint=function(){return new e(u,u)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(m(p,["x","y"])),y=function(t){function e(e,n){t.call(this),this.width=e||0,this.height=n||0}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={ZERO:{configurable:!0}};return e.prototype.equals=function(t){return t&&t.width===this.width&&t.height===this.height},e.prototype.clone=function(){return new e(this.width,this.height)},e.prototype.toArray=function(t){var e=a(t);return[e?A(this.width,t):this.width,e?A(this.height,t):this.height]},e.create=function(t,n){if(a(t))return t instanceof e?t:1===arguments.length&&2===t.length?new e(t[0],t[1]):new e(t,n)},n.ZERO.get=function(){return new e(0,0)},Object.defineProperties(e,n),e}(m(p,["width","height"])),b=function(t){function e(e,n){void 0===e&&(e=new w),void 0===n&&(n=new y),t.call(this),this.setOrigin(e),this.setSize(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.origin.clone(),this.size.clone())},e.prototype.equals=function(t){return t&&t.origin.equals(this.origin)&&t.size.equals(this.size)},e.prototype.setOrigin=function(t){return this._observerField("origin",w.create(t)),this.geometryChange(),this},e.prototype.getOrigin=function(){return this.origin},e.prototype.setSize=function(t){return this._observerField("size",y.create(t)),this.geometryChange(),this},e.prototype.getSize=function(){return this.size},e.prototype.width=function(){return this.size.width},e.prototype.height=function(){return this.size.height},e.prototype.topLeft=function(){return this.origin.clone()},e.prototype.bottomRight=function(){return this.origin.clone().translate(this.width(),this.height())},e.prototype.topRight=function(){return this.origin.clone().translate(this.width(),0)},e.prototype.bottomLeft=function(){return this.origin.clone().translate(0,this.height())},e.prototype.center=function(){return this.origin.clone().translate(this.width()/2,this.height()/2)},e.prototype.bbox=function(t){var n=this.topLeft().transformCopy(t),r=this.topRight().transformCopy(t),i=this.bottomRight().transformCopy(t),o=this.bottomLeft().transformCopy(t);return e.fromPoints(n,r,i,o)},e.prototype.transformCopy=function(t){return e.fromPoints(this.topLeft().transform(t),this.bottomRight().transform(t))},e.prototype.expand=function(t,e){return void 0===e&&(e=t),this.size.width+=2*t,this.size.height+=2*e,this.origin.translate(-t,-e),this},e.prototype.expandCopy=function(t,e){return this.clone().expand(t,e)},e.prototype.containsPoint=function(t){var e=this.origin,n=this.bottomRight();return!(t.x<e.x||t.y<e.y||n.x<t.x||n.y<t.y)},e.prototype._isOnPath=function(t,e){var n=this.expandCopy(e,e),r=this.expandCopy(-e,-e);return n.containsPoint(t)&&!r.containsPoint(t)},e.fromPoints=function(){var t=w.min.apply(null,arguments),n=w.max.apply(null,arguments),r=new y(n.x-t.x,n.y-t.y);return new e(t,r)},e.union=function(t,n){return e.fromPoints(w.min(t.topLeft(),n.topLeft()),w.max(t.bottomRight(),n.bottomRight()))},e.intersect=function(t,n){var r={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y},i={left:n.topLeft().x,top:n.topLeft().y,right:n.bottomRight().x,bottom:n.bottomRight().y};if(r.left<=i.right&&i.left<=r.right&&r.top<=i.bottom&&i.top<=r.bottom)return e.fromPoints(new w(Math.max(r.left,i.left),Math.max(r.top,i.top)),new w(Math.min(r.right,i.right),Math.min(r.bottom,i.bottom)))},e}(p);function B(t){return t/s}var x=10;function N(t,e,n){return void 0===n&&(n=x),0===A(Math.abs(t-e),n)}function _(t,e,n){return t<e||N(t,e,n)}function C(t,e,n,r){var i=0,o=0;return r&&(i=Math.atan2(r.c*n,r.a*e),0!==r.b&&(o=Math.atan2(r.d*n,r.b*e))),{x:i,y:o}}var S=function(t){function e(e){void 0===e&&(e=h.unit()),t.call(this),this._matrix=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this._matrix.clone())},e.prototype.equals=function(t){return t&&t._matrix.equals(this._matrix)},e.prototype.translate=function(t,e){return this._matrix=this._matrix.multiplyCopy(h.translate(t,e)),this._optionsChange(),this},e.prototype.scale=function(t,e,n){void 0===e&&(e=t),void 0===n&&(n=null);var r=n;return r&&(r=w.create(r),this._matrix=this._matrix.multiplyCopy(h.translate(r.x,r.y))),this._matrix=this._matrix.multiplyCopy(h.scale(t,e)),r&&(this._matrix=this._matrix.multiplyCopy(h.translate(-r.x,-r.y))),this._optionsChange(),this},e.prototype.rotate=function(t,e){var n=w.create(e)||w.ZERO;return this._matrix=this._matrix.multiplyCopy(h.rotate(t,n.x,n.y)),this._optionsChange(),this},e.prototype.multiply=function(t){var e=v(t);return this._matrix=this._matrix.multiplyCopy(e),this._optionsChange(),this},e.prototype.matrix=function(t){return t?(this._matrix=t,this._optionsChange(),this):this._matrix},e.prototype._optionsChange=function(){this.optionsChange({field:"transform",value:this})},e}(p);function E(t){return null===t?null:t instanceof S?t:new S(t)}var L=Math.pow;function F(t,e,n,r,i,o){var a=A((i-t)/n,3),s=A((o-e)/r,3);return A(B(Math.atan2(s,a)))}function k(t,e){for(var n=t;n<e;)n+=90;return n}var U=function(t){function e(e,n){void 0===e&&(e=new w),void 0===n&&(n={}),t.call(this),this.setCenter(e),this.radiusX=n.radiusX,this.radiusY=n.radiusY||n.radiusX,this.startAngle=n.startAngle,this.endAngle=n.endAngle,this.anticlockwise=n.anticlockwise||!1,this.xRotation=n.xRotation}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})},e.prototype.setCenter=function(t){return this._observerField("center",w.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.pointAt=function(t){var e=this.center,n=l(t);return new w(e.x+this.radiusX*Math.cos(n),e.y+this.radiusY*Math.sin(n))},e.prototype.curvePoints=function(){var t,e=this.startAngle,n=this.anticlockwise?-1:1,r=[this.pointAt(e)],i=this._arcInterval(),o=i.endAngle-i.startAngle,a=Math.ceil(o/45),s=o/a,u=e;this.xRotation&&(t=E().rotate(this.xRotation,this.center));for(var c=1;c<=a;c++){var l=u+n*s,A=this._intervalCurvePoints(u,l,t);r.push(A.cp1,A.cp2,A.p2),u=l}return r},e.prototype.bbox=function(t){for(var e=this._arcInterval(),n=e.startAngle,r=e.endAngle,i=C(this.center,this.radiusX,this.radiusY,t),o=B(i.x),a=B(i.y),s=this.pointAt(r).transformCopy(t),u=k(o,n),c=k(a,n),l=this.pointAt(n).transformCopy(t),A=w.min(l,s),f=w.max(l,s);u<r||c<r;){var h=void 0;u<r&&(h=this.pointAt(u).transformCopy(t),u+=90);var p=void 0;c<r&&(p=this.pointAt(c).transformCopy(t),c+=90),l=new w(h.x,p.y),A=w.min(A,l),f=w.max(f,l)}return b.fromPoints(A,f)},e.prototype._arcInterval=function(){var t=this,e=t.startAngle,n=t.endAngle,r=t.anticlockwise;if(r){var i=e;e=n,n=i}return(e>n||r&&e===n)&&(n+=360),{startAngle:e,endAngle:n}},e.prototype._intervalCurvePoints=function(t,e,n){var r=this.pointAt(t),i=this.pointAt(e),o=this._derivativeAt(t),a=this._derivativeAt(e),s=(l(e)-l(t))/3,u=new w(r.x+s*o.x,r.y+s*o.y),c=new w(i.x-s*a.x,i.y-s*a.y);return n&&(r.transform(n),i.transform(n),u.transform(n),c.transform(n)),{p1:r,cp1:u,cp2:c,p2:i}},e.prototype._derivativeAt=function(t){var e=l(t);return new w(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function(t){var e,n=this._arcInterval(),r=n.endAngle-n.startAngle,i=this,o=i.center,a=i.radiusX,s=i.radiusY,u=o.distanceTo(t),c=Math.atan2(t.y-o.y,t.x-o.x),l=a*s/Math.sqrt(L(a,2)*L(Math.sin(c),2)+L(s,2)*L(Math.cos(c),2)),A=this.pointAt(this.startAngle).round(x),f=this.pointAt(this.endAngle).round(x),h=function(t,e,n,r){var i=e.x-t.x,o=r.x-n.x,a=e.y-t.y,s=r.y-n.y,u=t.x-n.x,c=t.y-n.y,l=i*s-o*a,A=(i*c-a*u)/l,f=(o*c-s*u)/l;if(A>=0&&A<=1&&f>=0&&f<=1)return new w(t.x+f*i,t.y+f*a)}(o,t.round(x),A,f);if(r<180)e=h&&_(o.distanceTo(h),u)&&_(u,l);else{var p=F(o.x,o.y,a,s,t.x,t.y);360!==p&&(p=(360+p)%360);var d=n.startAngle<=p&&p<=n.endAngle;e=d&&_(u,l)||!d&&(!h||h.equals(t))}return e},e.prototype._isOnPath=function(t,e){var n=this._arcInterval(),r=this.center,i=F(r.x,r.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==i&&(i=(360+i)%360),n.startAngle<=i&&i<=n.endAngle&&this.pointAt(i).distanceTo(t)<=e},e.fromPoints=function(t,n,r,i,o,a,s){var u=function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.rx,a=t.ry,s=t.largeArc,u=t.swipe,c=t.rotation;void 0===c&&(c=0);var f=l(c),h=Math.cos(f),p=Math.sin(f),d=h*(e-r)/2+p*(n-i)/2,g=-p*(e-r)/2+h*(n-i)/2,m=s!==u?1:-1,v=Math.pow(d,2),y=Math.pow(g,2),b=Math.pow(o,2),x=Math.pow(a,2),N=v/b+y/x;N>1&&(o*=N=Math.sqrt(v/b+y/x),b=Math.pow(o,2),a*=N,x=Math.pow(a,2));var _=m*Math.sqrt((b*x-b*y-x*v)/(b*y+x*v));isNaN(_)&&(_=0);var C=_*(o*g)/a,S=a*d*-_/o,E=h*C-p*S+(e+r)/2,L=p*C+h*S+(n+i)/2,F=(d-C)/o,k=(g-S)/a,U=-(d+C)/o,Q=-(g+S)/a,I=(k>=0?1:-1)*B(Math.acos(F/Math.sqrt(F*F+k*k))),P=A((F*U+k*Q)/(Math.sqrt(F*F+k*k)*Math.sqrt(U*U+Q*Q)),10),O=(F*Q-k*U>=0?1:-1)*B(Math.acos(P));!u&&O>0&&(O-=360);u&&O<0&&(O+=360);var T=I+O,M=T>=0?1:-1;return T=Math.abs(T)%360*M,{center:new w(E,L),startAngle:I,endAngle:T,radiusX:o,radiusY:a,xRotation:c}}({x1:t.x,y1:t.y,x2:n.x,y2:n.y,rx:r,ry:i,largeArc:o,swipe:a,rotation:s});return new e(u.center,{startAngle:u.startAngle,endAngle:u.endAngle,radiusX:u.radiusX,radiusY:u.radiusY,xRotation:u.xRotation,anticlockwise:0===a})},e}(m(p,["radiusX","radiusY","startAngle","endAngle","anticlockwise"])),Q=Math.PI/2,I=function(t){function e(e,n){void 0===e&&(e=new w),void 0===n&&(n=0),t.call(this),this.setCenter(e),this.setRadius(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setCenter=function(t){return this._observerField("center",w.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.equals=function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},e.prototype.clone=function(){return new e(this.center.clone(),this.radius)},e.prototype.pointAt=function(t){return this._pointAt(l(t))},e.prototype.bbox=function(t){for(var e=C(this.center,this.radius,this.radius,t),n=w.maxPoint(),r=w.minPoint(),i=0;i<4;i++){var o=this._pointAt(e.x+i*Q).transformCopy(t),a=this._pointAt(e.y+i*Q).transformCopy(t),s=new w(o.x,a.y);n=w.min(n,s),r=w.max(r,s)}return b.fromPoints(n,r)},e.prototype._pointAt=function(t){var e=this.center,n=this.radius;return new w(e.x+n*Math.cos(t),e.y+n*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this.center,n=this.radius;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n,2)},e.prototype._isOnPath=function(t,e){var n=this.center,r=this.radius,i=n.distanceTo(t);return r-e<=i&&i<=r+e},e}(m(p,["radius"]));var P={},O={get browser(){return"undefined"===typeof window||P?P:P=function(t){var e,n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in n)if(n.hasOwnProperty(r)){var i=t.match(n[r]);if(i){(e={})[r]=!0,e[i[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||i[2],10);break}}return e}(window.navigator.userAgent)}},T="undefined"!==typeof Uint8Array&&O.browser&&(!O.browser.msie||O.browser.version>9),M=function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(e){for(var n=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=0,i=n.length,o=[];r<i;){var a=t.indexOf(n.charAt(r++)),s=t.indexOf(n.charAt(r++)),u=t.indexOf(n.charAt(r++)),c=t.indexOf(n.charAt(r++)),l=a<<2|s>>>4,A=(15&s)<<4|u>>>2,f=(3&u)<<6|c;o.push(l),64!=u&&o.push(A),64!=c&&o.push(f)}return o},encode:function(e){for(var n=0,r=e.length,i="";n<r;){var o=e[n++],a=e[n++],s=e[n++],u=(3&o)<<4|a>>>4,c=(15&a)<<2|s>>>6,l=63&s;n-r==2?c=l=64:n-r==1&&(l=64),i+=t.charAt(o>>>2)+t.charAt(u)+t.charAt(c)+t.charAt(l)}return i}}}();function H(t){var e=0,n=0;null==t?t=T?new Uint8Array(256):[]:n=t.length;var r=T?function(e){if(e>=t.length){var n=new Uint8Array(Math.max(e+256,2*t.length));n.set(t,0),t=n}}:function(){},i=T?function(){return new Uint8Array(t.buffer,0,n)}:function(){return t},o=T?function(i){if("string"==typeof i)return d(i);var o=i.length;r(e+o),t.set(i,e),(e+=o)>n&&(n=e)}:function(t){if("string"==typeof t)return d(t);for(var e=0;e<t.length;++e)s(t[e])};function a(){return e<n?t[e++]:0}function s(i){r(e),t[e++]=255&i,e>n&&(n=e)}function u(){return a()<<8|a()}function c(t){s(t>>8),s(t)}function l(){return 65536*u()+u()}function A(t){c(t>>>16&65535),c(65535&t)}function f(){var t=l();return t>=2147483648?t-4294967296:t}function h(t){A(t<0?t+4294967296:t)}function p(t){return g(t,a)}function d(t){for(var e=0;e<t.length;++e)s(t.charCodeAt(e))}function g(t,e){for(var n=new Array(t),r=0;r<t;++r)n[r]=e();return n}var m={eof:function(){return e>=n},readByte:a,writeByte:s,readShort:u,writeShort:c,readLong:l,writeLong:A,readFixed:function(){return l()/65536},writeFixed:function(t){A(Math.round(65536*t))},readShort_:function(){var t=u();return t>=32768?t-65536:t},writeShort_:function(t){c(t<0?t+65536:t)},readLong_:f,writeLong_:h,readFixed_:function(){return f()/65536},writeFixed_:function(t){h(Math.round(65536*t))},read:p,write:o,readString:function(t){return String.fromCharCode.apply(String,p(t))},writeString:d,times:g,get:i,slice:T?function(e,n){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+n));var r=new Uint8Array(n);return r.set(new Uint8Array(t.buffer,e,n)),r}:function(e,n){return t.slice(e,e+n)},offset:function(t){return null!=t?(e=t,m):e},skip:function(t){e+=t},toString:function(){throw new Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return n},saveExcursion:function(t){var n=e;try{return t()}finally{e=n}},writeBase64:function(t){window.atob?d(window.atob(t)):o(M.decode(t))},base64:function(){return M.encode(i())}};return m}function R(t){return window.atob?function(t){for(var e=window.atob(t),n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}(t):function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t[n];return e}(M.decode(t))}function D(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function j(t){return Object.keys(t).sort((function(t,e){return t-e})).map(parseFloat)}var z=function(t){this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort();for(var e=this.tables={},n=0;n<this.tableCount;++n){var r={tag:t.readString(4),checksum:t.readLong(),offset:t.readLong(),length:t.readLong()};e[r.tag]=r}};z.prototype.readTable=function(t,e){var n=this.tables[t];if(!n)throw new Error("Table "+t+" not found in directory");return this[t]=n.table=new e(this,n)},z.prototype.render=function(t){var e=Object.keys(t).length,n=Math.pow(2,Math.floor(Math.log(e)/Math.LN2)),r=16*n,i=Math.floor(Math.log(n)/Math.LN2),o=16*e-r,a=H();a.writeLong(this.scalerType),a.writeShort(e),a.writeShort(r),a.writeShort(i),a.writeShort(o);var s=16*e,u=a.offset()+s,c=null,l=H();for(var A in t)if(D(t,A)){var f=t[A];for(a.writeString(A),a.writeLong(this.checksum(f)),a.writeLong(u),a.writeLong(f.length),l.write(f),"head"==A&&(c=u),u+=f.length;u%4;)l.writeByte(0),u++}a.write(l.get());var h=2981146554-this.checksum(a.get());return a.offset(c+8),a.writeLong(h),a.get()},z.prototype.checksum=function(t){t=H(t);for(var e=0;!t.eof();)e+=t.readLong();return 4294967295&e};var K=function(t,e){this.definition=e,this.length=e.length,this.offset=e.offset,this.file=t,this.rawData=t.raw,this.parse(t.raw)};K.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},K.prototype.parse=function(){};var q=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.revision=t.readLong(),this.checkSumAdjustment=t.readLong(),this.magicNumber=t.readLong(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.read(8),this.modified=t.read(8),this.xMin=t.readShort_(),this.yMin=t.readShort_(),this.xMax=t.readShort_(),this.yMax=t.readShort_(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort_(),this.indexToLocFormat=t.readShort_(),this.glyphDataFormat=t.readShort_()},e.prototype.render=function(t){var e=H();return e.writeLong(this.version),e.writeLong(this.revision),e.writeLong(0),e.writeLong(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.write(this.created),e.write(this.modified),e.writeShort_(this.xMin),e.writeShort_(this.yMin),e.writeShort_(this.xMax),e.writeShort_(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort_(this.fontDirectionHint),e.writeShort_(t),e.writeShort_(this.glyphDataFormat),e.get()},e}(K),V=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset);var e=this.file.head.indexToLocFormat;this.offsets=0===e?t.times(this.length/2,(function(){return 2*t.readShort()})):t.times(this.length/4,t.readLong)},e.prototype.offsetOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.render=function(t){for(var e=H(),n=t[t.length-1]>65535,r=0;r<t.length;++r)n?e.writeLong(t[r]):e.writeShort(t[r]/2);return{format:n?1:0,table:e.get()}},e}(K),G=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort_(),this.minRightSideBearing=t.readShort_(),this.xMaxExtent=t.readShort_(),this.caretSlopeRise=t.readShort_(),this.caretSlopeRun=t.readShort_(),this.caretOffset=t.readShort_(),t.skip(8),this.metricDataFormat=t.readShort_(),this.numOfLongHorMetrics=t.readShort()},e.prototype.render=function(t){var e=H();return e.writeLong(this.version),e.writeShort_(this.ascent),e.writeShort_(this.descent),e.writeShort_(this.lineGap),e.writeShort(this.advanceWidthMax),e.writeShort_(this.minLeftSideBearing),e.writeShort_(this.minRightSideBearing),e.writeShort_(this.xMaxExtent),e.writeShort_(this.caretSlopeRise),e.writeShort_(this.caretSlopeRun),e.writeShort_(this.caretOffset),e.write([0,0,0,0,0,0,0,0]),e.writeShort_(this.metricDataFormat),e.writeShort(t.length),e.get()},e}(K),W=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readLong(),this.numGlyphs=t.readShort(),this.maxPoints=t.readShort(),this.maxContours=t.readShort(),this.maxComponentPoints=t.readShort(),this.maxComponentContours=t.readShort(),this.maxZones=t.readShort(),this.maxTwilightPoints=t.readShort(),this.maxStorage=t.readShort(),this.maxFunctionDefs=t.readShort(),this.maxInstructionDefs=t.readShort(),this.maxStackElements=t.readShort(),this.maxSizeOfInstructions=t.readShort(),this.maxComponentElements=t.readShort(),this.maxComponentDepth=t.readShort()},e.prototype.render=function(t){var e=H();return e.writeLong(this.version),e.writeShort(t.length),e.writeShort(this.maxPoints),e.writeShort(this.maxContours),e.writeShort(this.maxComponentPoints),e.writeShort(this.maxComponentContours),e.writeShort(this.maxZones),e.writeShort(this.maxTwilightPoints),e.writeShort(this.maxStorage),e.writeShort(this.maxFunctionDefs),e.writeShort(this.maxInstructionDefs),e.writeShort(this.maxStackElements),e.writeShort(this.maxSizeOfInstructions),e.writeShort(this.maxComponentElements),e.writeShort(this.maxComponentDepth),e.get()},e}(K),X=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset);var e=this.file,n=e.hhea;this.metrics=t.times(n.numOfLongHorMetrics,(function(){return{advance:t.readShort(),lsb:t.readShort_()}}));var r=e.maxp.numGlyphs-e.hhea.numOfLongHorMetrics;this.leftSideBearings=t.times(r,t.readShort_)},e.prototype.forGlyph=function(t){var e=this.metrics,n=e.length;return t<n?e[t]:{advance:e[n-1].advance,lsb:this.leftSideBearings[t-n]}},e.prototype.render=function(t){for(var e=H(),n=0;n<t.length;++n){var r=this.forGlyph(t[n]);e.writeShort(r.advance),e.writeShort_(r.lsb)}return e.get()},e}(K),J=function(){var t=function(t){this.raw=t},e={compound:{configurable:!0}};e.compound.get=function(){return!1},t.prototype.render=function(){return this.raw.get()},Object.defineProperties(t.prototype,e);var n=function(t){this.raw=t;for(var e=this.glyphIds=[],n=this.idOffsets=[];;){var r=t.readShort();if(n.push(t.offset()),e.push(t.readShort()),!(32&r))break;t.skip(1&r?4:2),128&r?t.skip(8):64&r?t.skip(4):8&r&&t.skip(2)}},r={compound:{configurable:!0}};return r.compound.get=function(){return!0},n.prototype.render=function(t){for(var e=H(this.raw.get()),n=0;n<this.glyphIds.length;++n){var r=this.glyphIds[n];e.offset(this.idOffsets[n]),e.writeShort(t[r])}return e.get()},Object.defineProperties(n.prototype,r),function(e){function r(){e.apply(this,arguments)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.parse=function(){this.cache={}},r.prototype.glyphFor=function(e){var r=this.cache;if(D(r,e))return r[e];var i=this.file.loca,o=i.lengthOf(e);if(0===o)return r[e]=null;var a=this.rawData,s=this.offset+i.offsetOf(e),u=H(a.slice(s,o)),c=u.readShort_(),l=u.readShort_(),A=u.readShort_(),f=u.readShort_(),h=u.readShort_(),p=r[e]=c<0?new n(u):new t(u);return p.numberOfContours=c,p.xMin=l,p.yMin=A,p.xMax=f,p.yMax=h,p},r.prototype.render=function(t,e,n){for(var r=H(),i=[],o=0;o<e.length;++o){var a=t[e[o]];r.offset()%2&&r.writeByte(0),i.push(r.offset()),a&&r.write(a.render(n))}return r.offset()%2&&r.writeByte(0),i.push(r.offset()),{table:r.get(),offsets:i}},r}(K)}(),Y=function(){var t=function(t,e){this.text=t,this.length=t.length,this.platformID=e.platformID,this.platformSpecificID=e.platformSpecificID,this.languageID=e.languageID,this.nameID=e.nameID};return function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.parse=function(e){e.offset(this.offset),e.readShort();for(var n=e.readShort(),r=this.offset+e.readShort(),i=e.times(n,(function(){return{platformID:e.readShort(),platformSpecificID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:e.readShort()+r}})),o=this.strings={},a=0;a<i.length;++a){var s=i[a];e.offset(s.offset);var u=e.readString(s.length);o[s.nameID]||(o[s.nameID]=[]),o[s.nameID].push(new t(u,s))}this.postscriptEntry=o[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},n.prototype.render=function(e){var n=this.strings,r=0;for(var i in n)D(n,i)&&(r+=n[i].length);var o=H(),a=H();for(i in o.writeShort(0),o.writeShort(r),o.writeShort(6+12*r),n)if(D(n,i))for(var s=6==i?[new t(e,this.postscriptEntry)]:n[i],u=0;u<s.length;++u){var c=s[u];o.writeShort(c.platformID),o.writeShort(c.platformSpecificID),o.writeShort(c.languageID),o.writeShort(c.nameID),o.writeShort(c.length),o.writeShort(a.offset()),a.writeString(c.text)}return o.write(a.get()),o.get()},n}(K)}(),$=function(){var t=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.parse=function(t){var e;switch(t.offset(this.offset),this.format=t.readLong(),this.italicAngle=t.readFixed_(),this.underlinePosition=t.readShort_(),this.underlineThickness=t.readShort_(),this.isFixedPitch=t.readLong(),this.minMemType42=t.readLong(),this.maxMemType42=t.readLong(),this.minMemType1=t.readLong(),this.maxMemType1=t.readLong(),this.format){case 65536:case 196608:break;case 131072:e=t.readShort(),this.glyphNameIndex=t.times(e,t.readShort),this.names=[];for(var n=this.offset+this.length;t.offset()<n;)this.names.push(t.readString(t.readByte()));break;case 151552:e=t.readShort(),this.offsets=t.read(e);break;case 262144:this.map=t.times(this.file.maxp.numGlyphs,t.readShort)}},n.prototype.glyphFor=function(e){switch(this.format){case 65536:return t[e]||".notdef";case 131072:var n=this.glyphNameIndex[e];return n<t.length?t[n]:this.names[n-t.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[e]||65535}},n.prototype.render=function(e){if(196608==this.format)return this.raw();var n=H(this.rawData.slice(this.offset,32));n.writeLong(131072),n.offset(32);for(var r=[],i=[],o=0;o<e.length;++o){var a=e[o],s=this.glyphFor(a),u=t.indexOf(s);u>=0?r.push(u):(r.push(t.length+i.length),i.push(s))}for(n.writeShort(e.length),o=0;o<r.length;++o)n.writeShort(r[o]);for(o=0;o<i.length;++o)n.writeByte(i[o].length),n.writeString(i[o]);return n.get()},n}(K)}(),Z=function(){var t=function(t,e,n){var r=this;r.platformID=t.readShort(),r.platformSpecificID=t.readShort(),r.offset=e+t.readLong(),t.saveExcursion((function(){var e;switch(t.offset(r.offset),r.format=t.readShort(),r.format){case 0:r.length=t.readShort(),r.language=t.readShort();for(var i=0;i<256;++i)n[i]=t.readByte();break;case 4:r.length=t.readShort(),r.language=t.readShort();var o=t.readShort()/2;t.skip(6);var a=t.times(o,t.readShort);t.skip(2);var s=t.times(o,t.readShort),u=t.times(o,t.readShort_),c=t.times(o,t.readShort),l=(r.length+r.offset-t.offset())/2,A=t.times(l,t.readShort);for(i=0;i<o;++i){var f=s[i],h=a[i];for(e=f;e<=h;++e){var p;if(0===c[i])p=e+u[i];else 0!==(p=A[c[i]/2-(o-i)+(e-f)]||0)&&(p+=u[i]);n[e]=65535&p}}break;case 6:r.length=t.readShort(),r.language=t.readShort(),e=t.readShort();for(var d=t.readShort();d-- >0;)n[e++]=t.readShort();break;case 12:t.readShort(),r.length=t.readLong(),r.language=t.readLong();for(var g=t.readLong();g-- >0;){e=t.readLong();for(var m=t.readLong(),v=t.readLong();e<=m;)n[e++]=v++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+r.format)}}))};return function(e){function n(){e.apply(this,arguments)}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.parse=function(e){var n=this,r=n.offset;e.offset(r),n.codeMap={},n.version=e.readShort();var i=e.readShort();n.tables=e.times(i,(function(){return new t(e,r,n.codeMap)}))},n.render=function(t,e){var n=H();return n.writeShort(0),n.writeShort(1),n.write(function(t,e){var n=j(t),r=[],i=[],o=null,a=null;function s(n){return e[t[n]]}for(var u=0;u<n.length;++u){var c=n[u],l=s(c)-c;null!=o&&l===a||(o&&i.push(o),r.push(c),a=l),o=c}o&&i.push(o),i.push(65535),r.push(65535);var A=r.length,f=2*A,h=2*Math.pow(2,Math.floor(Math.log(A)/Math.LN2)),p=Math.log(h/2)/Math.LN2,d=f-h,g=[],m=[],v=[];for(u=0;u<A;++u){var w=r[u],y=i[u];if(65535==w){g.push(0),m.push(0);break}var b=s(w);if(w-b>=32768){g.push(0),m.push(2*(v.length+A-u));for(var B=w;B<=y;++B)v.push(s(B))}else g.push(b-w),m.push(0)}var x=H();return x.writeShort(3),x.writeShort(1),x.writeLong(12),x.writeShort(4),x.writeShort(16+8*A+2*v.length),x.writeShort(0),x.writeShort(f),x.writeShort(h),x.writeShort(p),x.writeShort(d),i.forEach(x.writeShort),x.writeShort(0),r.forEach(x.writeShort),g.forEach(x.writeShort_),m.forEach(x.writeShort),v.forEach(x.writeShort),x.get()}(t,e)),n.get()},n}(K)}(),tt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parse=function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort_(),this.ySubscriptYSize=t.readShort_(),this.ySubscriptXOffset=t.readShort_(),this.ySubscriptYOffset=t.readShort_(),this.ySuperscriptXSize=t.readShort_(),this.ySuperscriptYSize=t.readShort_(),this.ySuperscriptXOffset=t.readShort_(),this.ySuperscriptYOffset=t.readShort_(),this.yStrikeoutSize=t.readShort_(),this.yStrikeoutPosition=t.readShort_(),this.familyClass=t.readShort_(),this.panose=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},e.prototype.render=function(){return this.raw()},e}(K),et=1e5;var nt=function(t){this.font=t,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function(){for(var t="",e=String(et),n=0;n<e.length;++n)t+=String.fromCharCode(e.charCodeAt(n)-48+65);return++et,t}()+"+"+this.font.psName};nt.prototype.use=function(t){var e=this;if("string"==typeof t)return function(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}(t).reduce((function(t,n){return t+String.fromCharCode(e.use(n))}),"");var n=e.unicodes[t];if(!n){n=e.next++,e.subset[n]=t,e.unicodes[t]=n;var r=e.font.cmap.codeMap[t];if(r&&(e.ncid2ogid[n]=r,null==e.ogid2ngid[r])){var i=e.nextGid++;e.ogid2ngid[r]=i,e.ngid2ogid[i]=r}}return n},nt.prototype.encodeText=function(t){return this.use(t)},nt.prototype.glyphIds=function(){return j(this.ogid2ngid)},nt.prototype.glyphsFor=function(t,e){e||(e={});for(var n=0;n<t.length;++n){var r=t[n];if(!e[r]){var i=e[r]=this.font.glyf.glyphFor(r);i&&i.compound&&this.glyphsFor(i.glyphIds,e)}}return e},nt.prototype.render=function(){var t=this,e=this.glyphsFor(this.glyphIds());for(var n in e)if(D(e,n)&&(n=parseInt(n,10),null==t.ogid2ngid[n])){var r=t.nextGid++;t.ogid2ngid[n]=r,t.ngid2ogid[r]=n}var i=j(this.ngid2ogid).map((function(t){return this.ngid2ogid[t]}),this),o=this.font,a=o.glyf.render(e,i,this.ogid2ngid),s=o.loca.render(a.offsets);this.lastChar=this.next-1;var u={cmap:Z.render(this.ncid2ogid,this.ogid2ngid),glyf:a.table,loca:s.table,hmtx:o.hmtx.render(i),hhea:o.hhea.render(i),maxp:o.maxp.render(i),post:o.post.render(i),name:o.name.render(this.psName),head:o.head.render(s.format),"OS/2":o.os2.render()};return this.font.directory.render(u)},nt.prototype.cidToGidMap=function(){for(var t=H(),e=0,n=this.firstChar;n<this.next;++n){for(;e<n;)t.writeShort(0),e++;var r=this.ncid2ogid[n];if(r){var i=this.ogid2ngid[r];t.writeShort(i)}else t.writeShort(0);e++}return t.get()};var rt=function(t,e){var n=this,r=n.contents=H(t);if("ttcf"==r.readString(4)){var i,o=function(){r.offset(i),n.parse()};if(!e)throw new Error("Must specify a name for TTC files");r.readLong();for(var a=r.readLong(),s=0;s<a;++s)if(i=r.readLong(),r.saveExcursion(o),n.psName==e)return;throw new Error("Font "+e+" not found in collection")}r.offset(0),n.parse()};rt.prototype.parse=function(){var t=this.directory=new z(this.contents);this.head=t.readTable("head",q),this.loca=t.readTable("loca",V),this.hhea=t.readTable("hhea",G),this.maxp=t.readTable("maxp",W),this.hmtx=t.readTable("hmtx",X),this.glyf=t.readTable("glyf",J),this.name=t.readTable("name",Y),this.post=t.readTable("post",$),this.cmap=t.readTable("cmap",Z),this.os2=t.readTable("OS/2",tt),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},rt.prototype.widthOfGlyph=function(t){return this.hmtx.forGlyph(t).advance*this.scale},rt.prototype.makeSubset=function(){return new nt(this)};var it=-2;function ot(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function at(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)ot(n,r)&&(t[r]=n[r])}}return t}function st(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var ut={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,a;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(a=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],a.set(o,i),i+=o.length;return a},Buf8:function(t){return new Uint8Array(t)},Buf16:function(t){return new Uint16Array(t)},Buf32:function(t){return new Int32Array(t)}},ct={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)},Buf8:function(t){return new Array(t)},Buf16:function(t){return new Array(t)},Buf32:function(t){return new Array(t)}},lt=function(){var t="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;return lt=function(){return t},t},At=function(t,e,n,r,i){return(At=lt()?ut.arraySet:ct.arraySet)(t,e,n,r,i)},ft=function(t){return(ft=lt()?ut.flattenChunks:ct.flattenChunks)(t)},ht=function(t){return(ht=lt()?ut.Buf8:ct.Buf8)(t)},pt=function(t){return(pt=lt()?ut.Buf16:ct.Buf16)(t)},dt=function(t){return(dt=lt()?ut.Buf32:ct.Buf32)(t)},gt=function(){var t=!0;try{String.fromCharCode.apply(null,[0])}catch(jn){t=!1}return gt=function(){return t},t},mt=function(){var t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(jn){t=!1}return mt=function(){return t},t},vt=function(t){for(var e=ht(256),n=0;n<256;n++)e[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;return e[254]=e[254]=1,vt=function(t){return e[t]},e[t]};function wt(t){var e,n,r,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296===(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320===(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),s+=n<128?1:n<2048?2:n<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296===(64512&(n=t.charCodeAt(i)))&&i+1<a&&56320===(64512&(r=t.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?e[o++]=n:n<2048?(e[o++]=192|n>>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e}function yt(t,e){if(e<65534&&(t.subarray&&mt()||!t.subarray&&gt()))return String.fromCharCode.apply(null,st(t,e));for(var n="",r=0;r<e;r++)n+=String.fromCharCode(t[r]);return n}function bt(t,e){var n,r,i,o,a=e||t.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((i=t[n++])<128)s[r++]=i;else if((o=vt(i))>4)s[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<a;)i=i<<6|63&t[n++],o--;o>1?s[r++]=65533:i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|1023&i)}return yt(s,r)}function Bt(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128===(192&t[n]);)n--;return n<0||0===n?e:n+vt(t[n])>e?n:e}function xt(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var Nt=function(){var t=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();return Nt=function(){return t},t};function _t(t,e,n,r){var i=Nt(),o=r+n;t^=-1;for(var a=r;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}function Ct(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C;n=t.state,r=t.next_in,_=t.input,i=r+(t.avail_in-5),o=t.next_out,C=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,A=n.wnext,f=n.window,h=n.hold,p=n.bits,d=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),w=d[h&m];e:for(;;){if(h>>>=y=w>>>24,p-=y,0===(y=w>>>16&255))C[o++]=65535&w;else{if(!(16&y)){if(0===(64&y)){w=d[(65535&w)+(h&(1<<y)-1)];continue e}if(32&y){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}b=65535&w,(y&=15)&&(p<y&&(h+=_[r++]<<p,p+=8),b+=h&(1<<y)-1,h>>>=y,p-=y),p<15&&(h+=_[r++]<<p,p+=8,h+=_[r++]<<p,p+=8),w=g[h&v];n:for(;;){if(h>>>=y=w>>>24,p-=y,!(16&(y=w>>>16&255))){if(0===(64&y)){w=g[(65535&w)+(h&(1<<y)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(B=65535&w,p<(y&=15)&&(h+=_[r++]<<p,(p+=8)<y&&(h+=_[r++]<<p,p+=8)),(B+=h&(1<<y)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(h>>>=y,p-=y,B>(y=o-a)){if((y=B-y)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=0,N=f,0===A){if(x+=c-y,y<b){b-=y;do{C[o++]=f[x++]}while(--y);x=o-B,N=C}}else if(A<y){if(x+=c+A-y,(y-=A)<b){b-=y;do{C[o++]=f[x++]}while(--y);if(x=0,A<b){b-=y=A;do{C[o++]=f[x++]}while(--y);x=o-B,N=C}}}else if(x+=A-y,y<b){b-=y;do{C[o++]=f[x++]}while(--y);x=o-B,N=C}for(;b>2;)C[o++]=N[x++],C[o++]=N[x++],C[o++]=N[x++],b-=3;b&&(C[o++]=N[x++],b>1&&(C[o++]=N[x++]))}else{x=o-B;do{C[o++]=C[x++],C[o++]=C[x++],C[o++]=C[x++],b-=3}while(b>2);b&&(C[o++]=C[x++],b>1&&(C[o++]=C[x++]))}break}}break}}while(r<i&&o<s);r-=b=p>>3,h&=(1<<(p-=b<<3))-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<s?s-o+257:257-(o-s),n.hold=h,n.bits=p}var St=15,Et=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Lt=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Ft=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],kt=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function Ut(t,e,n,r,i,o,a,s){var u,c,l,A,f,h,p,d,g,m=s.bits,v=0,w=0,y=0,b=0,B=0,x=0,N=0,_=0,C=0,S=0,E=null,L=0,F=pt(16),k=pt(16),U=null,Q=0;for(v=0;v<=St;v++)F[v]=0;for(w=0;w<r;w++)F[e[n+w]]++;for(B=m,b=St;b>=1&&0===F[b];b--);if(B>b&&(B=b),0===b)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(y=1;y<b&&0===F[y];y++);for(B<y&&(B=y),_=1,v=1;v<=St;v++)if(_<<=1,(_-=F[v])<0)return-1;if(_>0&&(0===t||1!==b))return-1;for(k[1]=0,v=1;v<St;v++)k[v+1]=k[v]+F[v];for(w=0;w<r;w++)0!==e[n+w]&&(a[k[e[n+w]]++]=w);if(0===t?(E=U=a,h=19):1===t?(E=Et,L-=257,U=Lt,Q-=257,h=256):(E=Ft,U=kt,h=-1),S=0,w=0,v=y,f=o,x=B,N=0,l=-1,A=(C=1<<B)-1,1===t&&C>852||2===t&&C>592)return 1;for(;;){p=v-N,a[w]<h?(d=0,g=a[w]):a[w]>h?(d=U[Q+a[w]],g=E[L+a[w]]):(d=96,g=0),u=1<<v-N,y=c=1<<x;do{i[f+(S>>N)+(c-=u)]=p<<24|d<<16|g|0}while(0!==c);for(u=1<<v-1;S&u;)u>>=1;if(0!==u?(S&=u-1,S+=u):S=0,w++,0===--F[v]){if(v===b)break;v=e[n+a[w]]}if(v>B&&(S&A)!==l){for(0===N&&(N=B),f+=y,_=1<<(x=v-N);x+N<b&&!((_-=F[x+N])<=0);)x++,_<<=1;if(C+=1<<x,1===t&&C>852||2===t&&C>592)return 1;i[l=S&A]=B<<24|x<<16|f-o|0}}return 0!==S&&(i[f+S]=v-N<<24|64<<16|0),s.bits=B,0}var Qt=-2,It=12,Pt=30;function Ot(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Tt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=pt(320),this.work=pt(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Mt(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=dt(852),e.distcode=e.distdyn=dt(592),e.sane=1,e.back=-1,0):Qt}(t)):Qt}function Ht(t,e){var n,r;return t?(r=new Tt,t.state=r,r.window=null,0!==(n=function(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?Qt:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,Mt(t))):Qt}(t,e))&&(t.state=null),n):Qt}var Rt,Dt,jt=!0;function zt(t){if(jt){var e;for(Rt=dt(512),Dt=dt(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Ut(1,t.lens,0,288,Rt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Ut(2,t.lens,0,32,Dt,0,t.work,{bits:5}),jt=!1}t.lencode=Rt,t.lenbits=9,t.distcode=Dt,t.distbits=5}function Kt(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=ht(o.wsize)),r>=o.wsize?(At(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>r&&(i=r),At(o.window,e,n-r,i,o.wnext),(r-=i)?(At(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function qt(t,e){var n,r,i,o,a,s,u,c,l,A,f,h,p,d,g,m,v,w,y,b,B,x,N,_,C=0,S=ht(4),E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return Qt;(n=t.state).mode===It&&(n.mode=13),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,A=s,f=u,x=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(2&n.wrap&&35615===c){n.check=0,S[0]=255&c,S[1]=c>>>8&255,n.check=_t(n.check,S,2,0),c=0,l=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){t.msg="incorrect header check",n.mode=Pt;break}if(8!==(15&c)){t.msg="unknown compression method",n.mode=Pt;break}if(l-=4,B=8+(15&(c>>>=4)),0===n.wbits)n.wbits=B;else if(B>n.wbits){t.msg="invalid window size",n.mode=Pt;break}n.dmax=1<<B,t.adler=n.check=1,n.mode=512&c?10:It,c=0,l=0;break;case 2:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.flags=c,8!==(255&n.flags)){t.msg="unknown compression method",n.mode=Pt;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=Pt;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(S[0]=255&c,S[1]=c>>>8&255,n.check=_t(n.check,S,2,0)),c=0,l=0,n.mode=3;case 3:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.time=c),512&n.flags&&(S[0]=255&c,S[1]=c>>>8&255,S[2]=c>>>16&255,S[3]=c>>>24&255,n.check=_t(n.check,S,4,0)),c=0,l=0,n.mode=4;case 4:for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(S[0]=255&c,S[1]=c>>>8&255,n.check=_t(n.check,S,2,0)),c=0,l=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(S[0]=255&c,S[1]=c>>>8&255,n.check=_t(n.check,S,2,0)),c=0,l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=n.length)>s&&(h=s),h&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),At(n.head.extra,r,o,h,B)),512&n.flags&&(n.check=_t(n.check,r,h,o)),s-=h,o+=h,n.length-=h),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break t;h=0;do{B=r[o+h++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B))}while(B&&h<s);if(512&n.flags&&(n.check=_t(n.check,r,h,o)),s-=h,o+=h,B)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break t;h=0;do{B=r[o+h++],n.head&&B&&n.length<65536&&(n.head.comment+=String.fromCharCode(B))}while(B&&h<s);if(512&n.flags&&(n.check=_t(n.check,r,h,o)),s-=h,o+=h,B)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;l<16;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(65535&n.check)){t.msg="header crc mismatch",n.mode=Pt;break}c=0,l=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=It;break;case 10:for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}t.adler=n.check=Ot(c),c=0,l=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,2;t.adler=n.check=1,n.mode=It;case It:if(5===e||6===e)break t;case 13:if(n.last){c>>>=7&l,l-=7&l,n.mode=27;break}for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}switch(n.last=1&c,l-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(zt(n),n.mode=20,6===e){c>>>=2,l-=2;break t}break;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=Pt}c>>>=2,l-=2;break;case 14:for(c>>>=7&l,l-=7&l;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if((65535&c)!==(c>>>16^65535)){t.msg="invalid stored block lengths",n.mode=Pt;break}if(n.length=65535&c,c=0,l=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(h=n.length){if(h>s&&(h=s),h>u&&(h=u),0===h)break t;At(i,r,o,h,a),s-=h,o+=h,u-=h,a+=h,n.length-=h;break}n.mode=It;break;case 17:for(;l<14;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(n.nlen=257+(31&c),c>>>=5,l-=5,n.ndist=1+(31&c),c>>>=5,l-=5,n.ncode=4+(15&c),c>>>=4,l-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=Pt;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;l<3;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.lens[E[n.have++]]=7&c,c>>>=3,l-=3}for(;n.have<19;)n.lens[E[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},x=Ut(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,x){t.msg="invalid code lengths set",n.mode=Pt;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;m=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,v=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(v<16)c>>>=g,l-=g,n.lens[n.have++]=v;else{if(16===v){for(_=g+2;l<_;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c>>>=g,l-=g,0===n.have){t.msg="invalid bit length repeat",n.mode=Pt;break}B=n.lens[n.have-1],h=3+(3&c),c>>>=2,l-=2}else if(17===v){for(_=g+3;l<_;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,B=0,h=3+(7&(c>>>=g)),c>>>=3,l-=3}else{for(_=g+7;l<_;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}l-=g,B=0,h=11+(127&(c>>>=g)),c>>>=7,l-=7}if(n.have+h>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=Pt;break}for(;h--;)n.lens[n.have++]=B}}if(n.mode===Pt)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=Pt;break}if(n.lenbits=9,N={bits:n.lenbits},x=Ut(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,x){t.msg="invalid literal/lengths set",n.mode=Pt;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},x=Ut(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,x){t.msg="invalid distances set",n.mode=Pt;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(s>=6&&u>=258){t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,Ct(t,f),a=t.next_out,i=t.output,u=t.avail_out,o=t.next_in,r=t.input,s=t.avail_in,c=n.hold,l=n.bits,n.mode===It&&(n.back=-1);break}for(n.back=0;m=(C=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,v=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(m&&0===(240&m)){for(w=g,y=m,b=v;m=(C=n.lencode[b+((c&(1<<w+y)-1)>>w)])>>>16&255,v=65535&C,!(w+(g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=w,l-=w,n.back+=w}if(c>>>=g,l-=g,n.back+=g,n.length=v,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=It;break}if(64&m){t.msg="invalid literal/length code",n.mode=Pt;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(_=n.extra;l<_;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(C=n.distcode[c&(1<<n.distbits)-1])>>>16&255,v=65535&C,!((g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(0===(240&m)){for(w=g,y=m,b=v;m=(C=n.distcode[b+((c&(1<<w+y)-1)>>w)])>>>16&255,v=65535&C,!(w+(g=C>>>24)<=l);){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}c>>>=w,l-=w,n.back+=w}if(c>>>=g,l-=g,n.back+=g,64&m){t.msg="invalid distance code",n.mode=Pt;break}n.offset=v,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(_=n.extra;l<_;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=Pt;break}n.mode=25;case 25:if(0===u)break t;if(h=f-u,n.offset>h){if((h=n.offset-h)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=Pt;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),d=n.window}else d=i,p=a-n.offset,h=n.length;h>u&&(h=u),u-=h,n.length-=h;do{i[a++]=d[p++]}while(--h);0===n.length&&(n.mode=21);break;case 26:if(0===u)break t;i[a++]=n.length,u--,n.mode=21;break;case 27:if(n.wrap){for(;l<32;){if(0===s)break t;s--,c|=r[o++]<<l,l+=8}if(f-=u,t.total_out+=f,n.total+=f,f&&(t.adler=n.check=n.flags?_t(n.check,i,f,a-f):xt(n.check,i,f,a-f)),f=u,(n.flags?c:Ot(c))!==n.check){t.msg="incorrect data check",n.mode=Pt;break}c=0,l=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;l<32;){if(0===s)break t;s--,c+=r[o++]<<l,l+=8}if(c!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=Pt;break}c=0,l=0}n.mode=29;case 29:x=1;break t;case Pt:x=-3;break t;case 31:return-4;case 32:default:return Qt}return t.next_out=a,t.avail_out=u,t.next_in=o,t.avail_in=s,n.hold=c,n.bits=l,(n.wsize||f!==t.avail_out&&n.mode<Pt&&(n.mode<27||4!==e))&&Kt(t,t.output,t.next_out,f-t.avail_out),A-=t.avail_in,f-=t.avail_out,t.total_in+=A,t.total_out+=f,n.total+=f,n.wrap&&f&&(t.adler=n.check=n.flags?_t(n.check,i,f,t.next_out-f):xt(n.check,i,f,t.next_out-f)),t.data_type=n.bits+(n.last?64:0)+(n.mode===It?128:0)+(20===n.mode||15===n.mode?256:0),(0===A&&0===f||4===e)&&0===x&&(x=-5),x}function Vt(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?Qt:11===n.mode&&xt(1,e,r,0)!==n.check?-3:Kt(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,0):Qt}var Gt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Wt(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Xt(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Jt=Object.prototype.toString,Yt=function t(e){if(!(this instanceof t))return new t(e);this.options=at({chunkSize:16384,windowBits:0,to:""},e||{});var n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,0===n.windowBits&&(n.windowBits=-15)),!(n.windowBits>=0&&n.windowBits<16)||e&&e.windowBits||(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&0===(15&n.windowBits)&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wt,this.strm.avail_out=0;var r=Ht(this.strm,n.windowBits);if(0!==r)throw new Error(Gt[r]);if(this.header=new Xt,function(t,e){var n;t&&t.state&&(0===(2&(n=t.state).wrap)||(n.head=e,e.done=!1))}(this.strm,this.header),n.dictionary&&("string"===typeof n.dictionary?n.dictionary=wt(n.dictionary):"[object ArrayBuffer]"===Jt.call(n.dictionary)&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&0!==(r=Vt(this.strm,n.dictionary))))throw new Error(Gt[r])};Yt.prototype.push=function(t,e){var n,r,i,o,a,s,u=this.strm,c=this.options.chunkSize,l=this.options.dictionary,A=!1;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,"string"===typeof t?u.input=function(t){for(var e=new Uint8Array(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e}(t):"[object ArrayBuffer]"===Jt.call(t)?u.input=new Uint8Array(t):u.input=t,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=ht(c),u.next_out=0,u.avail_out=c),2===(n=qt(u,0))&&l&&(s="string"===typeof l?wt(l):"[object ArrayBuffer]"===Jt.call(l)?new Uint8Array(l):l,n=Vt(this.strm,s)),-5===n&&!0===A&&(n=0,A=!1),1!==n&&0!==n)return this.onEnd(n),this.ended=!0,!1;u.next_out&&(0!==u.avail_out&&1!==n&&(0!==u.avail_in||4!==r&&2!==r)||("string"===this.options.to?(i=Bt(u.output,u.next_out),o=u.next_out-i,a=bt(u.output,i),u.next_out=o,u.avail_out=c-o,o&&At(u.output,u.output,i,o,0),this.onData(a)):this.onData(st(u.output,u.next_out)))),0===u.avail_in&&0===u.avail_out&&(A=!0)}while((u.avail_in>0||0===u.avail_out)&&1!==n);return 1===n&&(r=4),4===r?(n=function(t){if(!t||!t.state)return Qt;var e=t.state;return e.window&&(e.window=null),t.state=null,0}(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),u.avail_out=0,!0)},Yt.prototype.onData=function(t){this.chunks.push(t)},Yt.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ft(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $t(t){for(var e=t.length;--e>=0;)t[e]=0}var Zt,te,ee,ne,re,ie,oe,ae,se,ue=256,ce=286,le=30,Ae=15,fe=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],pe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function ge(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function me(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function ve(t){return t<256?ee[t]:ee[256+(t>>>7)]}function we(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function ye(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,we(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function be(t,e,n){ye(t,n[2*e],n[2*e+1])}function Be(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function xe(t,e,n){var r,i,o=new Array(16),a=0;for(r=1;r<=Ae;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=Be(o[s]++,s))}}function Ne(t){var e;for(e=0;e<ce;e++)t.dyn_ltree[2*e]=0;for(e=0;e<le;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function _e(t){t.bi_valid>8?we(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function Ce(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function Se(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&Ce(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Ce(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function Ee(t,e,n){var r,i,o,a,s=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?be(t,i,e):(be(t,(o=ne[i])+ue+1,e),0!==(a=fe[o])&&ye(t,i-=re[o],a),be(t,o=ve(--r),n),0!==(a=he[o])&&ye(t,r-=ie[o],a))}while(s<t.last_lit);be(t,256,e)}function Le(t,e){var n,r,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)Se(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Se(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,Se(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,A=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,h=e.stat_desc.extra_base,p=e.stat_desc.max_length,d=0;for(o=0;o<=Ae;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(o=u[2*u[2*(r=t.heap[n])+1]+1]+1)>p&&(o=p,d++),u[2*r+1]=o,r>c||(t.bl_count[o]++,a=0,r>=h&&(a=f[r-h]),s=u[2*r],t.opt_len+=s*(o+a),A&&(t.static_len+=s*(l[2*r+1]+a)));if(0!==d){do{for(o=p-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[p]--,d-=2}while(d>0);for(o=p;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),xe(o,c,t.bl_count)}function Fe(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s<u&&i===a||(s<c?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4))}function ke(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,c=4;for(0===a&&(u=138,c=3),r=0;r<=n;r++)if(i=a,a=e[2*(r+1)+1],!(++s<u&&i===a)){if(s<c)do{be(t,i,t.bl_tree)}while(0!==--s);else 0!==i?(i!==o&&(be(t,i,t.bl_tree),s--),be(t,16,t.bl_tree),ye(t,s-3,2)):s<=10?(be(t,17,t.bl_tree),ye(t,s-3,3)):(be(t,18,t.bl_tree),ye(t,s-11,7));s=0,o=i,0===a?(u=138,c=3):i===a?(u=6,c=3):(u=7,c=4)}}var Ue=!1;function Qe(t){Ue||(!function(){var t,e,n,r,i,o=new Array(16);for($t(Zt=new Array(576)),$t(te=new Array(60)),$t(ee=new Array(512)),$t(ne=new Array(256)),$t(re=new Array(29)),$t(ie=new Array(le)),n=0,r=0;r<28;r++)for(re[r]=n,t=0;t<1<<fe[r];t++)ne[n++]=r;for(ne[n-1]=r,i=0,r=0;r<16;r++)for(ie[r]=i,t=0;t<1<<he[r];t++)ee[i++]=r;for(i>>=7;r<le;r++)for(ie[r]=i<<7,t=0;t<1<<he[r]-7;t++)ee[256+i++]=r;for(e=0;e<=Ae;e++)o[e]=0;for(t=0;t<=143;)Zt[2*t+1]=8,t++,o[8]++;for(;t<=255;)Zt[2*t+1]=9,t++,o[9]++;for(;t<=279;)Zt[2*t+1]=7,t++,o[7]++;for(;t<=287;)Zt[2*t+1]=8,t++,o[8]++;for(xe(Zt,287,o),t=0;t<le;t++)te[2*t+1]=5,te[2*t]=Be(t,5);oe=new ge(Zt,fe,257,ce,Ae),ae=new ge(te,he,0,le,Ae),se=new ge(new Array(0),pe,0,19,7)}(),Ue=!0),t.l_desc=new me(t.dyn_ltree,oe),t.d_desc=new me(t.dyn_dtree,ae),t.bl_desc=new me(t.bl_tree,se),t.bi_buf=0,t.bi_valid=0,Ne(t)}function Ie(t,e,n,r){ye(t,0+(r?1:0),3),function(t,e,n,r){_e(t),r&&(we(t,n),we(t,~n)),At(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}function Pe(t){ye(t,2,3),be(t,256,Zt),function(t){16===t.bi_valid?(we(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}function Oe(t,e,n,r){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<ue;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),Le(t,t.l_desc),Le(t,t.d_desc),a=function(t){var e;for(Fe(t,t.dyn_ltree,t.l_desc.max_code),Fe(t,t.dyn_dtree,t.d_desc.max_code),Le(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*de[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?Ie(t,e,n,r):4===t.strategy||o===i?(ye(t,2+(r?1:0),3),Ee(t,Zt,te)):(ye(t,4+(r?1:0),3),function(t,e,n,r){var i;for(ye(t,e-257,5),ye(t,n-1,5),ye(t,r-4,4),i=0;i<r;i++)ye(t,t.bl_tree[2*de[i]+1],3);ke(t,t.dyn_ltree,e-1),ke(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Ee(t,t.dyn_ltree,t.dyn_dtree)),Ne(t),r&&_e(t)}function Te(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(ne[n]+ue+1)]++,t.dyn_dtree[2*ve(e)]++),t.last_lit===t.lit_bufsize-1}var Me=258,He=262,Re=103,De=113,je=666;function ze(t,e){return t.msg=Gt[e],e}function Ke(t){return(t<<1)-(t>4?9:0)}function qe(t){for(var e=t.length;--e>=0;)t[e]=0}function Ve(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(At(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function Ge(t,e){Oe(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Ve(t.strm)}function We(t,e){t.pending_buf[t.pending++]=e}function Xe(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Je(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,At(e,t.input,t.next_in,i,n),1===t.state.wrap?t.adler=xt(t.adler,e,i,n):2===t.state.wrap&&(t.adler=_t(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)}function Ye(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-He?t.strstart-(t.w_size-He):0,c=t.window,l=t.w_mask,A=t.prev,f=t.strstart+Me,h=c[o+a-1],p=c[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(c[(n=e)+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=Me-(f-o),o=f-Me,r>a){if(t.match_start=e,a=r,r>=s)break;h=c[o+a-1],p=c[o+a]}}}while((e=A[e&l])>u&&0!==--i);return a<=t.lookahead?a:t.lookahead}function $e(t){var e,n,r,i,o,a=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-He)){At(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=a?r-a:0}while(--n);e=n=a;do{r=t.prev[--e],t.prev[e]=r>=a?r-a:0}while(--n);i+=a}if(0===t.strm.avail_in)break;if(n=Je(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=3)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+3-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<He&&0!==t.strm.avail_in)}function Ze(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if($e(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,Ge(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-He&&(Ge(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ge(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Ge(t,!1),t.strm.avail_out),1)}function tn(t,e){for(var n,r;;){if(t.lookahead<He){if($e(t),t.lookahead<He&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-He&&(t.match_length=Ye(t,n)),t.match_length>=3)if(r=Te(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=Te(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Ge(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Ge(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ge(t,!1),0===t.strm.avail_out)?1:2}function en(t,e){for(var n,r,i;;){if(t.lookahead<He){if($e(t),t.lookahead<He&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-He&&(t.match_length=Ye(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,r=Te(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,r&&(Ge(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((r=Te(t,0,t.window[t.strstart-1]))&&Ge(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=Te(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Ge(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ge(t,!1),0===t.strm.avail_out)?1:2}function nn(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}var rn=function(){var t=[new nn(0,0,0,0,Ze),new nn(4,4,8,4,tn),new nn(4,5,16,8,tn),new nn(4,6,32,32,tn),new nn(4,4,16,16,en),new nn(8,16,32,32,en),new nn(8,16,128,128,en),new nn(8,32,128,256,en),new nn(32,128,258,1024,en),new nn(32,258,258,4096,en)];return rn=function(){return t},t};function on(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=pt(1146),this.dyn_dtree=pt(122),this.bl_tree=pt(78),qe(this.dyn_ltree),qe(this.dyn_dtree),qe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=pt(16),this.heap=pt(573),qe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=pt(573),qe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function an(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:De,t.adler=2===e.wrap?0:1,e.last_flush=0,Qe(e),0):ze(t,it)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,qe(t.head);var e=rn();t.max_lazy_match=e[t.level].max_lazy,t.good_match=e[t.level].good_length,t.nice_match=e[t.level].nice_length,t.max_chain_length=e[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function sn(t,e){var n,r,i,o;if(!t||!t.state||e>5||e<0)return t?ze(t,it):it;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||r.status===je&&4!==e)return ze(t,0===t.avail_out?-5:it);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,We(r,31),We(r,139),We(r,8),r.gzhead?(We(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),We(r,255&r.gzhead.time),We(r,r.gzhead.time>>8&255),We(r,r.gzhead.time>>16&255),We(r,r.gzhead.time>>24&255),We(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),We(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(We(r,255&r.gzhead.extra.length),We(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=_t(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(We(r,0),We(r,0),We(r,0),We(r,0),We(r,0),We(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),We(r,3),r.status=De);else{var a=8+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=De,Xe(r,a),0!==r.strstart&&(Xe(r,t.adler>>>16),Xe(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(t.adler=_t(t.adler,r.pending_buf,r.pending-i,i)),Ve(t),i=r.pending,r.pending!==r.pending_buf_size));)We(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(t.adler=_t(t.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=_t(t.adler,r.pending_buf,r.pending-i,i)),Ve(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,We(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=_t(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(t.adler=_t(t.adler,r.pending_buf,r.pending-i,i)),Ve(t),i=r.pending,r.pending===r.pending_buf_size)){o=1;break}o=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,We(r,o)}while(0!==o);r.gzhead.hcrc&&r.pending>i&&(t.adler=_t(t.adler,r.pending_buf,r.pending-i,i)),0===o&&(r.status=Re)}else r.status=Re;if(r.status===Re&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Ve(t),r.pending+2<=r.pending_buf_size&&(We(r,255&t.adler),We(r,t.adler>>8&255),t.adler=0,r.status=De)):r.status=De),0!==r.pending){if(Ve(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&Ke(e)<=Ke(n)&&4!==e)return ze(t,-5);if(r.status===je&&0!==t.avail_in)return ze(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==je){var s=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&($e(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=Te(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(Ge(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ge(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ge(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,r,i,o,a=t.window;;){if(t.lookahead<=Me){if($e(t),t.lookahead<=Me&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(r=a[i=t.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){o=t.strstart+Me;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);t.match_length=Me-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=Te(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=Te(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(Ge(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Ge(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Ge(t,!1),0===t.strm.avail_out)?1:2}(r,e):rn()[r.level].func(r,e);if(3!==s&&4!==s||(r.status=je),1===s||3===s)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===e?Pe(r):5!==e&&(Ie(r,0,0,!1),3===e&&(qe(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ve(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(We(r,255&t.adler),We(r,t.adler>>8&255),We(r,t.adler>>16&255),We(r,t.adler>>24&255),We(r,255&t.total_in),We(r,t.total_in>>8&255),We(r,t.total_in>>16&255),We(r,t.total_in>>24&255)):(Xe(r,t.adler>>>16),Xe(r,65535&t.adler)),Ve(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)}var un=Object.prototype.toString,cn=function(t){this.options=at({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Wt,this.strm.avail_out=0;var n,r,i=function(t,e,n,r,i,o){if(!t)return it;var a=1;if(-1===e&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||8!==n||r<8||r>15||e<0||e>9||o<0||o>4)return ze(t,it);8===r&&(r=9);var s=new on;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=ht(2*s.w_size),s.head=pt(s.hash_size),s.prev=pt(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=ht(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=n,an(t)}(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(Gt[i]);if(e.header&&(n=this.strm,r=e.header,n&&n.state&&(2!==n.state.wrap||(n.state.gzhead=r))),e.dictionary){var o;if(o="string"===typeof e.dictionary?wt(e.dictionary):"[object ArrayBuffer]"===un.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(i=function(t,e){var n,r,i,o,a,s,u,c,l=e.length;if(!t||!t.state)return it;if(2===(o=(n=t.state).wrap)||1===o&&42!==n.status||n.lookahead)return it;for(1===o&&(t.adler=xt(t.adler,e,l,0)),n.wrap=0,l>=n.w_size&&(0===o&&(qe(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=ht(n.w_size),At(c,e,l-n.w_size,n.w_size,0),e=c,l=n.w_size),a=t.avail_in,s=t.next_in,u=t.input,t.avail_in=l,t.next_in=0,t.input=e,$e(n);n.lookahead>=3;){r=n.strstart,i=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=2,$e(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=s,t.input=u,t.avail_in=a,n.wrap=o,0}(this.strm,o)))throw new Error(Gt[i]);this._dict_set=!0}};function ln(t,e){var n=new cn(e);if(n.push(t,!0),n.err)throw n.msg||Gt[n.err];return n.result}cn.prototype.push=function(t,e){var n,r,i,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,"string"===typeof t?o.input=wt(t):"[object ArrayBuffer]"===un.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=ht(a),o.next_out=0,o.avail_out=a),1!==(n=sn(o,r))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(yt(i=st(o.output,o.next_out),i.length)):this.onData(st(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==n);return 4===r?(n=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Re&&e!==De&&e!==je?ze(t,it):(t.state=null,e===De?ze(t,-3):0):it}(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==r||(this.onEnd(0),o.avail_out=0,!0)},cn.prototype.onData=function(t){this.chunks.push(t)},cn.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ft(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var An=ln;var fn=String.fromCharCode;function hn(t){return fn(t>>8)+fn(255&t)}var pn=O.browser,dn="\n",gn=0,mn={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],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};function vn(){var t=0,e=H();function n(){for(var t=arguments,r=0;r<arguments.length;++r){var i=t[r];if(void 0===i)throw new Error("Cannot output undefined to PDF");if(i instanceof Tn)i.beforeRender(n),i.render(n);else if(Ln(i))kn(i,n);else if(Fn(i))Un(i,n);else if("number"==typeof i){if(isNaN(i))throw new Error("Cannot output NaN to PDF");var o=i.toFixed(7);o.indexOf(".")>=0&&(o=o.replace(/\.?0+$/,"")),"-0"==o&&(o="0"),e.writeString(o)}else/string|boolean/.test(typeof i)?e.writeString(String(i)):"function"==typeof i.get?e.write(i.get()):"object"==typeof i&&(i?n(new zn(i)):e.writeString("null"))}}return n.writeData=function(t){e.write(t)},n.withIndent=function(e){++t,e(n),--t},n.indent=function(){n(dn,Cn("",2*t,"  ")),n.apply(null,arguments)},n.offset=function(){return e.offset()},n.toString=function(){throw new Error("FIX CALLER")},n.get=function(){return e.get()},n.stream=function(){return e},n}function wn(t){if("function"!=typeof t){var e=t;t=function(t,n){return t in e?e[t]:n}}var n=t("paperSize",mn.a4);if(!n)return{};if("string"==typeof n&&null==(n=mn[n.toLowerCase()]))throw new Error("Unknown paper size");n[0]=On(n[0]),n[1]=On(n[1]),t("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]);var r=t("margin");return r&&(r="string"==typeof r||"number"==typeof r?{left:r=On(r,0),top:r,right:r,bottom:r}:{left:On(r.left,0),top:On(r.top,0),right:On(r.right,0),bottom:On(r.bottom,0)},t("addMargin")&&(n[0]+=r.left+r.right,n[1]+=r.top+r.bottom)),{paperSize:n,margin:r}}var yn={"Times-Roman":!0,"Times-Bold":!0,"Times-Italic":!0,"Times-BoldItalic":!0,Helvetica:!0,"Helvetica-Bold":!0,"Helvetica-Oblique":!0,"Helvetica-BoldOblique":!0,Courier:!0,"Courier-Bold":!0,"Courier-Oblique":!0,"Courier-BoldOblique":!0,Symbol:!0,ZapfDingbats:!0};var bn={};var Bn,xn=(Bn=function(t,e){var n=yn[t];n?e(n):function(t,e){var n;if(pn.msie&&(n=/^data:.*?;base64,/i.exec(t)))e(R(t.substr(n[0].length)));else{var r=new XMLHttpRequest;r.open("GET",t,!0),T&&(r.responseType="arraybuffer"),r.onload=function(){200==r.status||304==r.status?e(T?new Uint8Array(r.response):new window.VBArray(r.responseBody).toArray()):i()},r.onerror=i,r.send(null)}function i(){window.console&&(window.console.error?window.console.error("Cannot load URL: %s",t):window.console.log("Cannot load URL: %s",t)),e(null)}}(t,(function(n){if(null==n)throw new Error("Cannot load font from "+t);var r=new rt(n);yn[t]=r,e(r)}))},function(t,e){var n=t.length,r=n;if(0===n)return e();function i(){0===--n&&e()}for(;r-- >0;)Bn(t[r],i)}),Nn=function(t,e,n){n=Object.assign({jpegQuality:.92,keepPNG:!1},n);var r=Object.keys(t),i=r.length;if(0===i)return e();function o(){0===--i&&e()}r.forEach((function(e){!function(t,e,n,r){var i,o,a=bn[t];if(a)n(a);else if(a=new Image,/^data:/i.test(t)||(a.crossOrigin="Anonymous"),T&&!/^data:/i.test(t)){var s=new XMLHttpRequest;s.onload=function(){o=s.response,u(i=URL.createObjectURL(o))},s.onerror=l,s.open("GET",t,!0),s.responseType="blob",s.send()}else u(t);function u(t){a.src=t,a.complete&&!pn.msie?A.call(a):(a.onload=A,a.onerror=l)}function c(){e||(e={width:a.width,height:a.height});var o=document.createElement("canvas");o.width=e.width,o.height=e.height;var s,u=o.getContext("2d");u.drawImage(a,0,0,e.width,e.height);try{s=u.getImageData(0,0,e.width,e.height)}catch(v){return void l()}finally{i&&URL.revokeObjectURL(i)}for(var c=!1,A=H(),f=H(),h=s.data,p=0;p<h.length;){A.writeByte(h[p++]),A.writeByte(h[p++]),A.writeByte(h[p++]);var d=h[p++];d<255&&(c=!0),f.writeByte(d)}if(c||r.keepPNG)a=new Xn(e.width,e.height,A,f);else{var g=o.toDataURL("image/jpeg",r.jpegQuality);g=g.substr(g.indexOf(";base64,")+8);var m=H();m.writeBase64(g),a=new Wn(m)}n(bn[t]=a)}function l(){n(bn[t]="ERROR")}function A(){if(e){var r=o&&"image/svg+xml"===o.type||/^data:image\/svg\+xml;/i.test(this.src.substring(0,19)),s=e.width>=a.width||e.height>=a.height;!r&&s&&(e=null)}if(!e&&o&&/^image\/jpe?g$/i.test(o.type)){var u=new FileReader;u.onload=function(){try{var e=new Wn(H(new Uint8Array(this.result)));URL.revokeObjectURL(i),n(bn[t]=e)}catch(r){c()}},u.readAsArrayBuffer(o)}else c()}}(e,t[e],o,n)}))},_n=function(t){var e=this,n=vn(),r=0,i=[];function o(e,n){return t&&null!=t[e]?t[e]:n}e.getOption=o,e.attach=function(t){return i.indexOf(t)<0&&(!function(t,e){var n=t.beforeRender,r=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(i){t._offset=i.offset(),i(e," 0 obj "),n.call(t,i),r.call(t,i),i(" endobj")}}(t,++r),i.push(t)),t},e.pages=[],e.FONTS={},e.IMAGES={},e.GRAD_COL_FUNCTIONS={},e.GRAD_OPC_FUNCTIONS={},e.GRAD_COL={},e.GRAD_OPC={};var a=e.attach(new qn),s=e.attach(new Vn);if(o("autoPrint")){var u={};u.JavaScript=new zn({Names:[new Mn("JS"),e.attach(new zn({S:jn("JavaScript"),JS:new Mn("print(true);")}))]}),a.props.Names=new zn(u)}a.setPages(s);var c=e.attach(new zn({Producer:new Mn(o("producer","Kendo UI PDF Generator"),!0),Title:new Mn(o("title",""),!0),Author:new Mn(o("author",""),!0),Subject:new Mn(o("subject",""),!0),Keywords:new Mn(o("keywords",""),!0),Creator:new Mn(o("creator","Kendo UI PDF Generator"),!0),CreationDate:o("date",new Date)}));e.addPage=function(t){var n=wn((function(e,n){return t&&null!=t[e]?t[e]:n})),r=n.paperSize,i=n.margin,o=r[0],a=r[1];i&&(o-=i.left+i.right,a-=i.top+i.bottom);var u=new Kn(vn(),null,!0),c={Contents:e.attach(u),Parent:s,MediaBox:[0,0,r[0],r[1]]},l=new rr(e,c);return l._content=u,s.addPage(e.attach(l)),l.transform(1,0,0,-1,0,r[1]),i&&(l.translate(i.left,i.top),l.rect(0,0,o,a),l.clip()),e.pages.push(l),l},e.render=function(){var t;for(n("%PDF-1.4",dn,"%\xc2\xc1\xda\xcf\xce",dn,dn),t=0;t<i.length;++t)i[t].renderFull(n),n(dn,dn);var e=n.offset();for(n("xref",dn,0," ",i.length+1,dn),n("0000000000 65535 f ",dn),t=0;t<i.length;++t)n(Sn(i[t]._offset,10)," 00000 n ",dn);return n(dn),n("trailer",dn),n(new zn({Size:i.length+1,Root:a,Info:c}),dn,dn),n("startxref",dn,e,dn),n("%%EOF",dn),n.stream().offset(0)},e.loadFonts=xn,e.loadImages=Nn};function Cn(t,e,n){for(;t.length<e;)t=n+t;return t}function Sn(t,e){return Cn(String(t),e,"0")}function En(t,e){return Object.prototype.hasOwnProperty.call(t,e)}_n.prototype.getFont=function(t){var e=this.FONTS[t];if(!e){if(!(e=yn[t]))throw new Error("Font "+t+" has not been loaded");e=!0===e?this.attach(new Jn(t)):this.attach(new Yn(this,e)),this.FONTS[t]=e}return e},_n.prototype.getImage=function(t){var e=this.IMAGES[t];if(!e){if(!(e=bn[t]))throw new Error("Image "+t+" has not been loaded");if("ERROR"===e)return null;e=this.IMAGES[t]=this.attach(e.asStream(this))}return e},_n.prototype.getOpacityGS=function(t,e){var n=parseFloat(t).toFixed(3);t=parseFloat(n),n+=e?"S":"F";var r=this._opacityGSCache||(this._opacityGSCache={}),i=r[n];if(!i){var o={Type:jn("ExtGState")};e?o.CA=t:o.ca=t,(i=this.attach(new zn(o)))._resourceName=jn("GS"+ ++gn),r[n]=i}return i},_n.prototype.dict=function(t){return new zn(t)},_n.prototype.name=function(t){return jn(t)},_n.prototype.stream=function(t,e){return new Kn(e,t)};var Ln=Array.isArray||function(t){return t instanceof Array};function Fn(t){return t instanceof Date}function kn(t,e){e("["),t.length>0&&e.withIndent((function(){for(var n=0;n<t.length;++n)n>0&&n%8===0?e.indent(t[n]):e(" ",t[n])})),e(" ]")}function Un(t,e){e("(D:",Sn(t.getUTCFullYear(),4),Sn(t.getUTCMonth()+1,2),Sn(t.getUTCDate(),2),Sn(t.getUTCHours(),2),Sn(t.getUTCMinutes(),2),Sn(t.getUTCSeconds(),2),"Z)")}function Qn(t){return t*(72/25.4)}function In(t){return Qn(10*t)}function Pn(t){return 72*t}function On(t,e){if("number"==typeof t)return t;var n;if("string"==typeof t&&(n=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t))){var r=parseFloat(n[1]);if(!isNaN(r))return"pt"==n[2]?r:{mm:Qn,cm:In,in:Pn}[n[2]](r)}if(null!=e)return e;throw new Error("Can't parse unit: "+t)}var Tn=function(){};Tn.prototype.beforeRender=function(){};var Mn=function(t){function e(e,n){t.call(this),this.value=e,this.utf16be=Boolean(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.value;if(this.utf16be)t("(",e=(e="\xfe\xff"+function(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<65535)e+=hn(r);else{var i=56320+(r-65536&1023);e+=hn(55296+(r-65536>>10)),e+=hn(i)}}return e}(e)).replace(/([\(\)\\])/g,"\\$1"),")");else{for(var n=[40],r=0;r<e.length;++r){var i=255&e.charCodeAt(r);40!=i&&41!=i&&92!=i||n.push(92),n.push(i)}n.push(41),t.writeData(n)}},e.prototype.toString=function(){return this.value},e}(Tn),Hn=function(t){function e(e){t.call(this,e),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){t("<");for(var e=0;e<this.value.length;++e)t(Sn(this.value.charCodeAt(e).toString(16),4));t(">")},e}(Mn),Rn=function(t){function e(e){t.call(this),this.name=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.get=function(t){return jn(t)},e.prototype.render=function(t){t("/"+this.escape())},e.prototype.escape=function(){return this.name.replace(/[^\x21-\x7E]/g,(function(t){return"#"+Sn(t.charCodeAt(0).toString(16),2)}))},e.prototype.toString=function(){return this.name},e}(Tn),Dn={};function jn(t){return En(Dn,t)?Dn[t]:Dn[t]=new Rn(t)}var zn=function(t){function e(e){t.call(this),this.props=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.props,n=!0;t("<<"),t.withIndent((function(){for(var r in e)En(e,r)&&!/^_/.test(r)&&(n=!1,t.indent(jn(r)," ",e[r]))})),n||t.indent(),t(">>")},e}(Tn),Kn=function(t){function e(e,n,r){if(t.call(this),"string"==typeof e){var i=H();i.write(e),e=i}this.data=e,this.props=n||{},this.compress=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){var e=this.data.get(),n=this.props;this.compress&&(n.Filter?n.Filter instanceof Array||(n.Filter=[n.Filter]):n.Filter=[],n.Filter.unshift(jn("FlateDecode")),e=An(e)),n.Length=e.length,t(new zn(n)," stream",dn),t.writeData(e),t(dn,"endstream")},e}(Tn),qn=function(t){function e(){t.call(this,{Type:jn("Catalog")})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setPages=function(t){this.props.Pages=t},e}(zn),Vn=function(t){function e(){t.call(this,{Type:jn("Pages"),Kids:[],Count:0})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addPage=function(t){this.props.Kids.push(t),this.props.Count++},e}(zn),Gn=[192,193,194,195,197,198,199,201,202,203,205,206,207],Wn=function(t){var e,n,r,i;if(t.offset(0),65496!=t.readShort())throw new Error("Invalid JPEG image");for(;!t.eof();){if(255!=t.readByte())throw new Error("Invalid JPEG image");var o=t.readByte(),a=t.readShort();if(Gn.indexOf(o)>=0){i=t.readByte(),n=t.readShort(),e=t.readShort(),r=t.readByte();break}t.skip(a-2)}if(null==r)throw new Error("Invalid JPEG image");var s={Type:jn("XObject"),Subtype:jn("Image"),Width:e,Height:n,BitsPerComponent:i,Filter:jn("DCTDecode")};switch(r){case 1:s.ColorSpace=jn("DeviceGray");break;case 3:s.ColorSpace=jn("DeviceRGB");break;case 4:s.ColorSpace=jn("DeviceCMYK"),s.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new Kn(t,s);return e._resourceName=jn("I"+ ++gn),e}},Xn=function(t,e,n,r){this.asStream=function(i){var o=new Kn(r,{Type:jn("XObject"),Subtype:jn("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:jn("DeviceGray")},!0),a=new Kn(n,{Type:jn("XObject"),Subtype:jn("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:jn("DeviceRGB"),SMask:i.attach(o)},!0);return a._resourceName=jn("I"+ ++gn),a}},Jn=function(t){function e(e){t.call(this,{Type:jn("Font"),Subtype:jn("Type1"),BaseFont:jn(e)}),this._resourceName=jn("F"+ ++gn)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.encodeText=function(t){return new Mn(String(t))},e}(zn),Yn=function(t){function e(e,n,r){t.call(this,{}),(r=this.props).Type=jn("Font"),r.Subtype=jn("Type0"),r.Encoding=jn("Identity-H"),this._pdf=e,this._font=n,this._sub=n.makeSubset(),this._resourceName=jn("F"+ ++gn);var i=n.head;this.name=n.psName;var o=this.scale=n.scale;this.bbox=[i.xMin*o,i.yMin*o,i.xMax*o,i.yMax*o],this.italicAngle=n.post.italicAngle,this.ascent=n.ascent*o,this.descent=n.descent*o,this.lineGap=n.lineGap*o,this.capHeight=n.os2.capHeight||this.ascent,this.xHeight=n.os2.xHeight||0,this.stemV=0,this.familyClass=(n.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(n.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.encodeText=function(t){return new Hn(this._sub.encodeText(String(t)))},e.prototype.getTextWidth=function(t,e){for(var n=0,r=this._font.cmap.codeMap,i=0;i<e.length;++i){var o=r[e.charCodeAt(i)];n+=this._font.widthOfGlyph(o||0)}return n*t/1e3},e.prototype.beforeRender=function(){var e=this,n=e._sub,r=n.render(),i=new Kn(H(r),{Length1:r.length},!0),o=e._pdf.attach(new t({Type:jn("FontDescriptor"),FontName:jn(e._sub.psName),FontBBox:e.bbox,Flags:e.flags,StemV:e.stemV,ItalicAngle:e.italicAngle,Ascent:e.ascent,Descent:e.descent,CapHeight:e.capHeight,XHeight:e.xHeight,FontFile2:e._pdf.attach(i)})),a=n.ncid2ogid,s=n.firstChar,u=n.lastChar,c=[];!function t(n,r){if(n<=u){var i=a[n];null==i?t(n+1):(r||c.push(n,r=[]),r.push(e._font.widthOfGlyph(i)),t(n+1,r))}}(s);var l=new t({Type:jn("Font"),Subtype:jn("CIDFontType2"),BaseFont:jn(e._sub.psName),CIDSystemInfo:new t({Registry:new Mn("Adobe"),Ordering:new Mn("Identity"),Supplement:0}),FontDescriptor:o,FirstChar:s,LastChar:u,DW:Math.round(e._font.widthOfGlyph(0)),W:c,CIDToGIDMap:e._pdf.attach(e._makeCidToGidMap())}),A=e.props;A.BaseFont=jn(e._sub.psName),A.DescendantFonts=[e._pdf.attach(l)];var f=new $n(s,u,n.subset),h=new Kn(vn(),null,!0);h.data(f),A.ToUnicode=e._pdf.attach(h)},e.prototype._makeCidToGidMap=function(){return new Kn(H(this._sub.cidToGidMap()),null,!0)},e}(zn),$n=function(t){function e(e,n,r){t.call(this),this.firstChar=e,this.lastChar=n,this.map=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(t){t.indent("/CIDInit /ProcSet findresource begin"),t.indent("12 dict begin"),t.indent("begincmap"),t.indent("/CIDSystemInfo <<"),t.indent("  /Registry (Adobe)"),t.indent("  /Ordering (UCS)"),t.indent("  /Supplement 0"),t.indent(">> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent("  <0000><ffff>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent((function(){for(var n=e.firstChar;n<=e.lastChar;++n){var r=e.map[n],i=[r].map((function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)})).join("");t.indent("<",Sn(n.toString(16),4),">","<");for(var o=0;o<i.length;++o)t(Sn(i.charCodeAt(o).toString(16),4));t(">")}})),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")},e}(Tn);function Zn(t){return t.map((function(t){return Ln(t)?Zn(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t})).join(" ")}function tr(t,e,n,r,i,o,a){var s=Zn([e,n,r,i,o,a]),u=t.GRAD_COL_FUNCTIONS[s];return u||(u=t.GRAD_COL_FUNCTIONS[s]=t.attach(new zn({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,n,r],C1:[i,o,a]}))),u}function er(t,e,n){var r=Zn([e,n]),i=t.GRAD_OPC_FUNCTIONS[r];return i||(i=t.GRAD_OPC_FUNCTIONS[r]=t.attach(new zn({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[n]}))),i}function nr(t,e,n){var r="radial"==e.type,i=function(t,e){var n,r,i,o,a,s=!1,u=[],c=[],l=[],A=[];for(n=1;n<e.length;++n)r=e[n-1],i=e[n],o=r.color,a=i.color,c.push(tr(t,o.r,o.g,o.b,a.r,a.g,a.b)),(o.a<1||a.a<1)&&(s=!0),l.push(i.offset),A.push(0,1);if(s)for(n=1;n<e.length;++n)r=e[n-1],i=e[n],o=r.color,a=i.color,u.push(er(t,o.a,a.a));return l.pop(),{hasAlpha:s,colors:f(c),opacities:s?f(u):null};function f(t){return 1==t.length?t[0]:{FunctionType:3,Functions:t,Domain:[0,1],Bounds:l,Encode:A}}}(t,e.stops),o=r?[e.start.x,e.start.y,e.start.r,e.end.x,e.end.y,e.end.r]:[e.start.x,e.start.y,e.end.x,e.end.y],a=function(t,e,n,r,i,o){var a,s;if(!o){var u=[e].concat(r);n.forEach((function(t){u.push(t.offset,t.color.r,t.color.g,t.color.b)})),s=Zn(u),a=t.GRAD_COL[s]}return a||(a=new zn({Type:jn("Shading"),ShadingType:e?3:2,ColorSpace:jn("DeviceRGB"),Coords:r,Domain:[0,1],Function:i,Extend:[!0,!0]}),t.attach(a),a._resourceName="S"+ ++gn,s&&(t.GRAD_COL[s]=a)),a}(t,r,e.stops,o,i.colors,e.userSpace&&n),s=i.hasAlpha?function(t,e,n,r,i,o){var a,s;if(!o){var u=[e].concat(r);n.forEach((function(t){u.push(t.offset,t.color.a)})),s=Zn(u),a=t.GRAD_OPC[s]}return a||(a=new zn({Type:jn("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:jn("Mask"),S:jn("Luminosity"),G:t.attach(new Kn("/a0 gs /s0 sh",{Type:jn("XObject"),Subtype:jn("Form"),FormType:1,BBox:o?[o.left,o.top+o.height,o.left+o.width,o.top]:[0,1,1,0],Group:{Type:jn("Group"),S:jn("Transparency"),CS:jn("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:jn("DeviceGray"),Coords:r,Domain:[0,1],ShadingType:e?3:2,Function:i,Extend:[!0,!0]}}}}))}}),t.attach(a),a._resourceName="O"+ ++gn,s&&(t.GRAD_OPC[s]=a)),a}(t,r,e.stops,o,i.opacities,e.userSpace&&n):null;return{hasAlpha:i.hasAlpha,shading:a,opacity:s}}var rr=function(t){function e(e,n){t.call(this,n),this._pdf=e,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(n=this.props).Type=jn("Page"),n.ProcSet=[jn("PDF"),jn("Text"),jn("ImageB"),jn("ImageC"),jn("ImageI")],n.Resources=new t({Font:new t(this._fontResources),ExtGState:new t(this._gsResources),XObject:new t(this._xResources),Pattern:new t(this._patResources),Shading:new t(this._shResources)}),n.Annots=this._annotations}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._out=function(){this._content.data.apply(null,arguments)},e.prototype.transform=function(t,e,n,r,i,o){Ar(arguments)||(this._matrix=lr(arguments,this._matrix),this._out(t," ",e," ",n," ",r," ",i," ",o," cm"),this._out(dn))},e.prototype.translate=function(t,e){this.transform(1,0,0,1,t,e)},e.prototype.scale=function(t,e){this.transform(t,0,0,e,0,0)},e.prototype.rotate=function(t){var e=Math.cos(t),n=Math.sin(t);this.transform(e,n,-n,e,0,0)},e.prototype.beginText=function(){this._textMode=!0,this._out("BT",dn)},e.prototype.endText=function(){this._textMode=!1,this._out("ET",dn)},e.prototype._requireTextMode=function(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")},e.prototype._requireFont=function(){if(!this._font)throw new Error("No font selected; call page.setFont() first")},e.prototype.setFont=function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof Yn||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",dn)},e.prototype.setTextLeading=function(t){this._requireTextMode(),this._out(t," TL",dn)},e.prototype.setTextRenderingMode=function(t){this._requireTextMode(),this._out(t," Tr",dn)},e.prototype.showText=function(t,e){if(this._requireFont(),t.length>1&&e&&this._font instanceof Yn){var n=e/this._font.getTextWidth(this._fontSize,t)*100;this._out(n," Tz ")}this._out(this._font.encodeText(t)," Tj",dn)},e.prototype.showTextNL=function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",dn)},e.prototype.addLink=function(e,n){var r=this._toPage({x:n.left,y:n.bottom}),i=this._toPage({x:n.right,y:n.top});this._annotations.push(new t({Type:jn("Annot"),Subtype:jn("Link"),Rect:[r.x,r.y,i.x,i.y],Border:[0,0,0],A:new t({Type:jn("Action"),S:jn("URI"),URI:new Mn(e)})}))},e.prototype.setStrokeColor=function(t,e,n){this._out(t," ",e," ",n," RG",dn)},e.prototype.setOpacity=function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},e.prototype.setStrokeOpacity=function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",dn)}},e.prototype.setFillColor=function(t,e,n){this._out(t," ",e," ",n," rg",dn)},e.prototype.setFillOpacity=function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",dn)}},e.prototype.gradient=function(t,e){this.save(),this.rect(e.left,e.top,e.width,e.height),this.clip(),t.userSpace||this.transform(e.width,0,0,e.height,e.left,e.top);var n,r=nr(this._pdf,t,e),i=r.shading._resourceName;this._shResources[i]=r.shading,r.hasAlpha&&(n=r.opacity._resourceName,this._gsResources[n]=r.opacity,this._out("/"+n+" gs ")),this._out("/"+i+" sh",dn),this.restore()},e.prototype.setDashPattern=function(t,e){this._out(t," ",e," d",dn)},e.prototype.setLineWidth=function(t){this._out(t," w",dn)},e.prototype.setLineCap=function(t){this._out(t," J",dn)},e.prototype.setLineJoin=function(t){this._out(t," j",dn)},e.prototype.setMitterLimit=function(t){this._out(t," M",dn)},e.prototype.save=function(){this._contextStack.push(this._context()),this._out("q",dn)},e.prototype.restore=function(){this._out("Q",dn),this._context(this._contextStack.pop())},e.prototype.moveTo=function(t,e){this._out(t," ",e," m",dn)},e.prototype.lineTo=function(t,e){this._out(t," ",e," l",dn)},e.prototype.bezier=function(t,e,n,r,i,o){this._out(t," ",e," ",n," ",r," ",i," ",o," c",dn)},e.prototype.bezier1=function(t,e,n,r){this._out(t," ",e," ",n," ",r," y",dn)},e.prototype.bezier2=function(t,e,n,r){this._out(t," ",e," ",n," ",r," v",dn)},e.prototype.close=function(){this._out("h",dn)},e.prototype.rect=function(t,e,n,r){this._out(t," ",e," ",n," ",r," re",dn)},e.prototype.ellipse=function(t,e,n,r){function i(e){return t+e}function o(t){return e+t}var a=.5522847498307936;this.moveTo(i(0),o(r)),this.bezier(i(n*a),o(r),i(n),o(r*a),i(n),o(0)),this.bezier(i(n),o(-r*a),i(n*a),o(-r),i(0),o(-r)),this.bezier(i(-n*a),o(-r),i(-n),o(-r*a),i(-n),o(0)),this.bezier(i(-n),o(r*a),i(-n*a),o(r),i(0),o(r))},e.prototype.circle=function(t,e,n){this.ellipse(t,e,n,n)},e.prototype.stroke=function(){this._out("S",dn)},e.prototype.nop=function(){this._out("n",dn)},e.prototype.clip=function(){this._out("W n",dn)},e.prototype.clipStroke=function(){this._out("W S",dn)},e.prototype.closeStroke=function(){this._out("s",dn)},e.prototype.fill=function(){this._out("f",dn)},e.prototype.fillStroke=function(){this._out("B",dn)},e.prototype.drawImage=function(t){var e=this._pdf.getImage(t);e&&(this._xResources[e._resourceName]=e,this._out(e._resourceName," Do",dn))},e.prototype.comment=function(t){var e=this;t.split(/\r?\n/g).forEach((function(t){e._out("% ",t,dn)}))},e.prototype._context=function(t){if(null==t)return{opacity:this._opacity,matrix:this._matrix};this._opacity=t.opacity,this._matrix=t.matrix},e.prototype._toPage=function(t){var e=this._matrix,n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5];return{x:n*t.x+i*t.y+a,y:r*t.x+o*t.y+s}},e}(zn);function ir(t){return t.replace(/^\s*(['"])(.*)\1\s*$/,"$2")}function or(t){var e=/^\s*((normal|italic)\s+)?((normal|small-caps)\s+)?((normal|bold|\d+)\s+)?(([0-9.]+)(px|pt))(\/(([0-9.]+)(px|pt)|normal))?\s+(.*?)\s*$/i.exec(t);if(!e)return{fontSize:12,fontFamily:"sans-serif"};var n=e[8]?parseInt(e[8],10):12;return{italic:e[2]&&"italic"==e[2].toLowerCase(),variant:e[4],bold:e[6]&&/bold|700/i.test(e[6]),fontSize:n,lineHeight:e[12]?"normal"==e[12]?n:parseInt(e[12],10):null,fontFamily:e[14].split(/\s*,\s*/g).map(ir)}}function ar(t){function e(e){return t.bold&&(e+="|bold"),t.italic&&(e+="|italic"),e.toLowerCase()}var n,r,i=t.fontFamily;if(i instanceof Array)for(var o=0;o<i.length&&(n=e(i[o]),!(r=sr[n]));++o);else r=sr[i.toLowerCase()];for(;"function"==typeof r;)r=r();return r||(r="Times-Roman"),r}var sr={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function ur(t,e){t=t.toLowerCase(),sr[t]=function(){return sr[e]},sr[t+"|bold"]=function(){return sr[e+"|bold"]},sr[t+"|italic"]=function(){return sr[e+"|italic"]},sr[t+"|bold|italic"]=function(){return sr[e+"|bold|italic"]}}function cr(t,e){if(1==arguments.length)for(var n in t)En(t,n)&&cr(n,t[n]);else switch(t=t.toLowerCase(),sr[t]=e,t){case"dejavu sans":sr["sans-serif"]=e;break;case"dejavu sans|bold":sr["sans-serif|bold"]=e;break;case"dejavu sans|italic":sr["sans-serif|italic"]=e;break;case"dejavu sans|bold|italic":sr["sans-serif|bold|italic"]=e;break;case"dejavu serif":sr.serif=e;break;case"dejavu serif|bold":sr["serif|bold"]=e;break;case"dejavu serif|italic":sr["serif|italic"]=e;break;case"dejavu serif|bold|italic":sr["serif|bold|italic"]=e;break;case"dejavu mono":sr.monospace=e;break;case"dejavu mono|bold":sr["monospace|bold"]=e;break;case"dejavu mono|italic":sr["monospace|italic"]=e;break;case"dejavu mono|bold|italic":sr["monospace|bold|italic"]=e}}function lr(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=e[0],c=e[1],l=e[2],A=e[3];return[n*u+r*l,n*c+r*A,i*u+o*l,i*c+o*A,a*u+s*l+e[4],a*c+s*A+e[5]]}function Ar(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}ur("Times New Roman","serif"),ur("Courier New","monospace"),ur("Arial","sans-serif"),ur("Helvetica","sans-serif"),ur("Verdana","sans-serif"),ur("Tahoma","sans-serif"),ur("Georgia","sans-serif"),ur("Monaco","monospace"),ur("Andale Mono","monospace");function fr(){var t,e,n=new Promise((function(r,i){t=function(t){return n._state="resolved",r(t),n},e=function(t){return n._state="rejected",i(t),n}}));return n._state="pending",n.resolve=t,n.reject=e,n.state=function(){return n._state},n}var hr=function(t){function e(e){t.call(this),this._size=e,this._length=0,this._map={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.put=function(t,e){var n=this._map,r={key:t,value:e};n[t]=r,this._head?(this._tail.newer=r,r.older=this._tail,this._tail=r):this._head=this._tail=r,this._length>=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},e.prototype.get=function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value},e}(o),pr=/\r?\n|\r|\t/g;var dr,gr={baselineMarkerSize:1};"undefined"!==typeof document&&((dr=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var mr=function(t){function e(e){t.call(this),this._cache=new hr(1e3),this.options=Object.assign({},gr,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.measure=function(t,e,n){if(void 0===n&&(n={}),"undefined"===typeof t||null===t)return{width:0,height:0,baseline:0};var r=function(t){for(var e=2166136261,n=0;n<t.length;++n)e+=(e<<1)+(e<<4)+(e<<7)+(e<<8)+(e<<24),e^=t.charCodeAt(n);return e>>>0}(t+function(t){var e=[];for(var n in t)e.push(n+t[n]);return e.sort().join("")}(e)),i=this._cache.get(r);if(i)return i;var o={width:0,height:0,baseline:0},a=n.box||dr,s=this._baselineMarker().cloneNode(!1);for(var u in e){var c=e[u];"undefined"!==typeof c&&(a.style[u]=c)}var l=!1!==n.normalizeText?function(t){return String(t).replace(pr," ")}(t):String(t);return a.textContent=l,a.appendChild(s),document.body.appendChild(a),l.length&&(o.width=a.offsetWidth-this.options.baselineMarkerSize,o.height=a.offsetHeight,o.baseline=s.offsetTop+this.options.baselineMarkerSize),o.width>0&&o.height>0&&this._cache.put(r,o),a.parentNode.removeChild(a),o},e.prototype._baselineMarker=function(){var t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t},e}(o);mr.current=new mr;var vr=mr;function wr(t,e,n){return vr.current.measure(t,e,n)}var yr={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function br(t){for(var e=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],n="";t>0;)t<e[0]?e.shift():(n+=yr[e[0]],t-=e[0]);return n}function Br(t,e){if(t.length<2)return t.slice();return function t(n){if(n.length<=1)return n;var r=Math.floor(n.length/2),i=n.slice(0,r),o=n.slice(r);return function(t,n){for(var r=[],i=0,o=0,a=0;i<t.length&&o<n.length;)e(t[i],n[o])<=0?r[a++]=t[i++]:r[a++]=n[o++];return i<t.length&&r.push.apply(r,t.slice(i)),o<n.length&&r.push.apply(r,n.slice(o)),r}(i=t(i),o=t(o))}(t)}var xr={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",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"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",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"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",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},Nr=O.browser,_r=function(t){var e=Object.keys(xr);e.push("transparent");var n=new RegExp("^("+e.join("|")+")(\\W|$)","i");return _r=function(t){return n.exec(t)},n.exec(t)},Cr=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){return this},e.prototype.toRGB=function(){return this},e.prototype.toHex=function(){return this.toBytes().toHex()},e.prototype.toBytes=function(){return this},e.prototype.toCss=function(){return"#"+this.toHex()},e.prototype.toCssRgba=function(){var t=this.toBytes();return"rgba("+t.r+", "+t.g+", "+t.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},e.prototype.toDisplay=function(){return Nr.msie&&Nr.version<9?this.toCss():this.toCssRgba()},e.prototype.equals=function(t){return t===this||null!==t&&this.toCssRgba()===Qr(t).toCssRgba()},e.prototype.diff=function(t){if(null===t)return NaN;var e=this.toBytes(),n=t.toBytes();return Math.sqrt(Math.pow(.3*(e.r-n.r),2)+Math.pow(.59*(e.g-n.g),2)+Math.pow(.11*(e.b-n.b),2))},e.prototype.clone=function(){var t=this.toBytes();return t===this&&(t=new Er(t.r,t.g,t.b,t.a)),t},e}(o),Sr=function(t){function e(e,n,r,i){t.call(this),this.r=e,this.g=n,this.b=r,this.a=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toHSV=function(){var t,e,n=this,r=n.r,i=n.g,o=n.b,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a,c=s;return 0===u?new Fr(0,0,c,this.a):(0!==s?(e=u/s,t=r===s?(i-o)/u:i===s?2+(o-r)/u:4+(r-i)/u,(t*=60)<0&&(t+=360)):(e=0,t=-1),new Fr(t,e,c,this.a))},e.prototype.toHSL=function(){var t,e,n=this,r=n.r,i=n.g,o=n.b,a=Math.max(r,i,o),s=Math.min(r,i,o),u=(a+s)/2;if(a===s)t=e=0;else{var c=a-s;switch(e=u>.5?c/(2-a-s):c/(a+s),a){case r:t=(i-o)/c+(i<o?6:0);break;case i:t=(o-r)/c+2;break;case o:t=(r-i)/c+4}}return new kr(60*t,100*e,100*u,this.a)},e.prototype.toBytes=function(){return new Er(255*this.r,255*this.g,255*this.b,this.a)},e}(Cr),Er=function(t){function e(e,n,r,i){t.call(this,Math.round(e),Math.round(n),Math.round(r),i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){return new t(this.r/255,this.g/255,this.b/255,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toHex=function(){return Lr(this.r,2)+Lr(this.g,2)+Lr(this.b,2)},e.prototype.toBytes=function(){return this},e}(Sr);function Lr(t,e,n){void 0===n&&(n="0");for(var r=t.toString(16);e>r.length;)r=n+r;return r}var Fr=function(t){function e(e,n,r,i){t.call(this),this.h=e,this.s=n,this.v=r,this.a=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,n,r=this,i=r.h,o=r.s,a=r.v;if(0===o)t=e=n=a;else{i/=60;var s=Math.floor(i),u=i-s,c=a*(1-o),l=a*(1-o*u),A=a*(1-o*(1-u));switch(s){case 0:t=a,e=A,n=c;break;case 1:t=l,e=a,n=c;break;case 2:t=c,e=a,n=A;break;case 3:t=c,e=l,n=a;break;case 4:t=A,e=c,n=a;break;default:t=a,e=c,n=l}}return new Sr(t,e,n,this.a)},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(Cr),kr=function(t){function e(e,n,r,i){t.call(this),this.h=e,this.s=n,this.l=r,this.a=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toRGB=function(){var t,e,n,r=this.h/360,i=this.s/100,o=this.l/100;if(0===i)t=e=n=o;else{var a=o<.5?o*(1+i):o+i-o*i,s=2*o-a;t=Ur(s,a,r+1/3),e=Ur(s,a,r),n=Ur(s,a,r-1/3)}return new Sr(t,e,n,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(Cr);function Ur(t,e,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function Qr(t,e){var n,r;if(null==t||"none"===t)return null;if(t instanceof Cr)return t;var i=t.toLowerCase();if(n=_r(i))return(i="transparent"===n[1]?new Sr(1,1,1,0):Qr(xr[n[1]],e)).match=[n[1]],i;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?r=new Er(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?r=new Er(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(i))?r=new Er(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(i))?r=new Er(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(i))?r=new Sr(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(i))&&(r=new Sr(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),r)r.match=n;else if(!e)throw new Error("Cannot parse color: "+i);return r}var Ir={}.toString,Pr=function(t){function e(e,n){for(var r in void 0===n&&(n=""),t.call(this),this.prefix=n,e){var i=e[r];i=this._wrap(i,r),this[r]=i}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){for(var e=t.split("."),n=this;e.length&&n;){n=n[e.shift()]}return n},e.prototype.set=function(t,e){this.get(t)!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,n){var r=t.indexOf(".")>=0,i=this,o=t;if(r){for(var a=o.split("."),s=this.prefix;a.length>1;){s+=(o=a.shift())+".";var u=i[o];u||((u=new e({},s)).addObserver(this),i[o]=u),i=u}o=a[0]}i._clear(o),i[o]=n},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(t,n){var r=Ir.call(t),i=t;return null!==i&&a(i)&&"[object Object]"===r&&(t instanceof e||t instanceof o||(i=new e(i,this.prefix+n+".")),i.addObserver(this)),i},e}(p),Or=1;function Tr(){return"kdef"+Or++}function Mr(t){return""===t||null===t||"none"===t||"transparent"===t||!a(t)}var Hr=function(t){function e(e){t.call(this),this._initOptions(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return n.nodeType.get=function(){return"Rect"},e.prototype._initOptions=function(t){void 0===t&&(t={});var e=t.clip,n=t.transform;n&&(t.transform=E(n)),e&&!e.id&&(e.id=Tr()),this.options=new Pr(t),this.options.addObserver(this)},e.prototype.transform=function(t){if(!a(t))return this.options.get("transform");this.options.set("transform",E(t))},e.prototype.parentTransform=function(){for(var t,e=this;e.parent;){var n=(e=e.parent).transform();n&&(t=n.matrix().multiplyCopy(t||h.unit()))}if(t)return E(t)},e.prototype.currentTransform=function(t){void 0===t&&(t=this.parentTransform());var e,n=v(this.transform()),r=v(t);if(e=n&&r?r.multiplyCopy(n):n||r)return E(e)},e.prototype.visible=function(t){return a(t)?(this.options.set("visible",t),this):!1!==this.options.get("visible")},e.prototype.clip=function(t){var e=this.options;return a(t)?(t&&!t.id&&(t.id=Tr()),e.set("clip",t),this):e.get("clip")},e.prototype.opacity=function(t){return a(t)?(this.options.set("opacity",t),this):function(t,e){return a(t)?t:e}(this.options.get("opacity"),1)},e.prototype.clippedBBox=function(t){var e=this._clippedBBox(t);if(e){var n=this.clip();return n?b.intersect(e,n.bbox(t)):e}},e.prototype.containsPoint=function(t,e){if(this.visible()){var n=this.currentTransform(e),r=t;return n&&(r=t.transformCopy(n.matrix().invert())),this._hasFill()&&this._containsPoint(r)||this._isOnPath&&this._hasStroke()&&this._isOnPath(r)}return!1},e.prototype._hasFill=function(){var t=this.options.fill;return t&&!Mr(t.color)},e.prototype._hasStroke=function(){var t=this.options.stroke;return t&&t.width>0&&!Mr(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},Object.defineProperties(e.prototype,n),e}(p),Rr=function(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fill=function(t,e){var n=this.options;if(a(t)){if(t&&"Gradient"!==t.nodeType){var r={color:t};a(e)&&(r.opacity=e),n.set("fill",r)}else n.set("fill",t);return this}return n.get("fill")},e.prototype.stroke=function(t,e,n){return a(t)?(this.options.set("stroke.color",t),a(e)&&this.options.set("stroke.width",e),a(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")},e}(t)};function Dr(t){var e="_"+t;return function(t){return a(t)?(this._observerField(e,w.create(t)),this.geometryChange(),this):this[e]}}var jr=function(t,e){var n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var n=0;n<e.length;n++)t[e[n]]=Dr(e[n])}(n.prototype,e),n},zr=function(t){function e(e,n,r){void 0===n&&(n=new w),void 0===r&&(r={}),t.call(this,r),this.content(e),this.position(n),this.options.font||(this.options.font="12px sans-serif"),a(this.options.fill)||this.fill("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return n.nodeType.get=function(){return"Text"},e.prototype.content=function(t){return a(t)?(this.options.set("content",t),this):this.options.get("content")},e.prototype.measure=function(){return wr(this.content(),{font:this.options.get("font")})},e.prototype.rect=function(){var t=this.measure(),e=this.position().clone();return new b(e,[t.width,t.height])},e.prototype.bbox=function(t){var e=v(this.currentTransform(t));return this.rect().bbox(e)},e.prototype.rawBBox=function(){return this.rect().bbox()},e.prototype._containsPoint=function(t){return this.rect().containsPoint(t)},Object.defineProperties(e.prototype,n),e}(Rr(jr(Hr,["position"])));function Kr(t,e){return t.push.apply(t,e),t}function qr(t,e,n){for(var r,i=0;i<t.length;i++){var o=t[i];if(o.visible()){var a=e?o.bbox(n):o.rawBBox();a&&(r=r?b.union(r,a):a)}}return r}function Vr(t,e){for(var n,r=0;r<t.length;r++){var i=t[r];if(i.visible()){var o=i.clippedBBox(e);o&&(n=n?b.union(n,o):o)}}return n}var Gr=function(t){function e(e){t.call(this,e),this.children=[]}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return n.nodeType.get=function(){return"Group"},e.prototype.childrenChange=function(t,e,n){this.trigger("childrenChange",{action:t,items:e,index:n})},e.prototype.append=function(){return Kr(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this},e.prototype.insert=function(t,e){return this.children.splice(t,0,e),e.parent=this,this.childrenChange("add",[e],t),this},e.prototype.insertAt=function(t,e){return this.insert(e,t)},e.prototype.remove=function(t){var e=this.children.indexOf(t);return e>=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},e.prototype.removeAt=function(t){if(0<=t&&t<this.children.length){var e=this.children[t];this.children.splice(t,1),e.parent=null,this.childrenChange("remove",[e],t)}return this},e.prototype.clear=function(){var t=this.children;return this.children=[],this._reparent(t,null),this.childrenChange("remove",t,0),this},e.prototype.bbox=function(t){return qr(this.children,!0,this.currentTransform(t))},e.prototype.rawBBox=function(){return qr(this.children,!1)},e.prototype._clippedBBox=function(t){return Vr(this.children,this.currentTransform(t))},e.prototype.currentTransform=function(t){return Hr.prototype.currentTransform.call(this,t)||null},e.prototype.containsPoint=function(t,e){if(this.visible())for(var n=this.children,r=this.currentTransform(e),i=0;i<n.length;i++)if(n[i].containsPoint(t,r))return!0;return!1},e.prototype._reparent=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=r.parent;i&&i!==this&&i.remove&&i.remove(r),r.parent=e}},Object.defineProperties(e.prototype,n),e}(function(t,e){return function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n,n.prototype.traverse=function(t){for(var n=this[e],r=0;r<n.length;r++){var i=n[r];i.traverse?i.traverse(t):t(i)}return this},n}(t)}(Hr,"children")),Wr=[].push,Xr=[].pop,Jr=[].splice,Yr=[].shift,$r=[].slice,Zr=[].unshift,ti=function(t){function e(e){void 0===e&&(e=[]),t.call(this),this.length=0,this._splice(0,e.length,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.elements=function(t){return t?(this._splice(0,this.length,t),this._change(),this):this.slice(0)},e.prototype.push=function(){var t=arguments,e=Wr.apply(this,t);return this._add(t),e},e.prototype.slice=function(){return $r.call(this)},e.prototype.pop=function(){var t=this.length,e=Xr.apply(this);return t&&this._remove([e]),e},e.prototype.splice=function(t,e){var n=$r.call(arguments,2),r=this._splice(t,e,n);return this._change(),r},e.prototype.shift=function(){var t=this.length,e=Yr.apply(this);return t&&this._remove([e]),e},e.prototype.unshift=function(){var t=arguments,e=Zr.apply(this,t);return this._add(t),e},e.prototype.indexOf=function(t){for(var e=this.length,n=0;n<e;n++)if(this[n]===t)return n;return-1},e.prototype._splice=function(t,e,n){var r=Jr.apply(this,[t,e].concat(n));return this._clearObserver(r),this._setObserver(n),r},e.prototype._add=function(t){this._setObserver(t),this._change()},e.prototype._remove=function(t){this._clearObserver(t),this._change()},e.prototype._setObserver=function(t){for(var e=0;e<t.length;e++)t[e].addObserver(this)},e.prototype._clearObserver=function(t){for(var e=0;e<t.length;e++)t[e].removeObserver(this)},e.prototype._change=function(){},e}(p),ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.geometryChange()},e}(ti),ni=h.IDENTITY.toString(),ri=function(t){return function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bbox=function(t){var e,n=v(this.currentTransform(t)),r=n?n.toString():ni;this._bboxCache&&this._matrixHash===r?e=this._bboxCache.clone():(e=this._bbox(n),this._bboxCache=e?e.clone():null,this._matrixHash=r);var i=this.options.get("stroke.width");return i&&e&&e.expand(i/2),e},e.prototype.geometryChange=function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})},e}(t)};function ii(t,e,n){var r=B(Math.atan2(e.y-t.y,e.x-t.x));return n.transformCopy(E().rotate(-r,t)).x<t.x}function oi(t,e,n){var r=1-t;return Math.pow(r,3)*n[0][e]+3*Math.pow(r,2)*t*n[1][e]+3*Math.pow(t,2)*r*n[2][e]+Math.pow(t,3)*n[3][e]}function ai(t,e){return[-t[0][e]+3*t[1][e]-3*t[2][e]+t[3][e],3*(t[0][e]-2*t[1][e]+t[2][e]),3*(-t[0][e]+t[1][e]),t[0][e]]}var si=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=0),t.call(this),this.real=e,this.img=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.add=function(t){return new e(A(this.real+t.real,x),A(this.img+t.img,x))},e.prototype.addConstant=function(t){return new e(this.real+t,this.img)},e.prototype.negate=function(){return new e(-this.real,-this.img)},e.prototype.multiply=function(t){return new e(this.real*t.real-this.img*t.img,this.real*t.img+this.img*t.real)},e.prototype.multiplyConstant=function(t){return new e(this.real*t,this.img*t)},e.prototype.nthRoot=function(t){var n=Math.atan2(this.img,this.real),r=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),i=Math.pow(r,1/t);return new e(i*Math.cos(n/t),i*Math.sin(n/t))},e.prototype.equals=function(t){return this.real===t.real&&this.img===t.img},e.prototype.isReal=function(){return 0===this.img},e}(o);function ui(t){return t<0?-1:1}function ci(t,e,n,r){if(0===t)return function(t,e,n){var r=Math.sqrt(Math.pow(e,2)-4*t*n);return[(-e+r)/(2*t),(-e-r)/(2*t)]}(e,n,r);var i,o,a,s,u,c,l,f=(3*t*n-Math.pow(e,2))/(3*Math.pow(t,2)),h=(2*Math.pow(e,3)-9*t*e*n+27*Math.pow(t,2)*r)/(27*Math.pow(t,3)),p=Math.pow(f/3,3)+Math.pow(h/2,2),d=new si(0,1),g=-e/(3*t);p<0?(i=new si(-h/2,Math.sqrt(-p)).nthRoot(3),o=new si(-h/2,-Math.sqrt(-p)).nthRoot(3)):(i=-h/2+Math.sqrt(p),i=new si(ui(i)*Math.pow(Math.abs(i),1/3)),o=-h/2-Math.sqrt(p),o=new si(ui(o)*Math.pow(Math.abs(o),1/3))),a=i.add(o),c=i.add(o).multiplyConstant(-.5),l=i.add(o.negate()).multiplyConstant(Math.sqrt(3)/2),s=c.add(d.multiply(l)),u=c.add(d.negate().multiply(l));var m=[];return a.isReal()&&m.push(A(a.real+g,x)),s.isReal()&&m.push(A(s.real+g,x)),u.isReal()&&m.push(A(u.real+g,x)),m}function li(t,e,n,r,i){for(var o,a=ai(t,r),s=ci(a[0],a[1],a[2],a[3]-e[r]),u=0;u<s.length;u++)if(0<=s[u]&&s[u]<=1&&(o=oi(s[u],n,t),Math.abs(o-e[n])<=i))return!0}function Ai(t,e,n){var r;if(t.x!==e.x){var i=Math.min(t.x,e.x),o=Math.max(t.x,e.x),a=Math.min(t.y,e.y),s=Math.max(t.y,e.y),u=i<=n.x&&n.x<o;r=a===s?n.y<=a&&u:u&&(s-a)*((t.x-e.x)*(t.y-e.y)>0?n.x-i:o-n.x)/(o-i)+a-n.y>=0}return r?1:0}function fi(t){for(var e=t.length,n=u,r=c,i=0;i<e;i++)r=Math.max(r,t[i]),n=Math.min(n,t[i]);return{min:n,max:r}}var hi=function(t){function e(e,n,r){t.call(this),this.anchor(e||new w),this.controlIn(n),this.controlOut(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bboxTo=function(t,e){var n=this.anchor().transformCopy(e),r=t.anchor().transformCopy(e);return this.controlOut()&&t.controlIn()?this._curveBoundingBox(n,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),r):this._lineBoundingBox(n,r)},e.prototype._lineBoundingBox=function(t,e){return b.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,n,r){var i=[t,e,n,r],o=this._curveExtremesFor(i,"x"),a=this._curveExtremesFor(i,"y"),s=fi([o.min,o.max,t.x,r.x]),u=fi([a.min,a.max,t.y,r.y]);return b.fromPoints(new w(s.min,u.min),new w(s.max,u.max))},e.prototype._curveExtremesFor=function(t,e){var n=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:oi(n.min,e,t),max:oi(n.max,e,t)}},e.prototype._curveExtremes=function(t,e,n,r){var i=t-3*e+3*n-r,o=-2*(t-2*e+n),a=t-e,s=Math.sqrt(o*o-4*i*a),u=0,c=1;0===i?0!==o&&(u=c=-a/o):isNaN(s)||(u=(-o+s)/(2*i),c=(-o-s)/(2*i));var l=Math.max(Math.min(u,c),0);(l<0||l>1)&&(l=0);var A=Math.min(Math.max(u,c),1);return(A>1||A<0)&&(A=1),{min:l,max:A}},e.prototype._intersectionsTo=function(t,e){return this.controlOut()&&t.controlIn()?function(t,e,n){for(var r,i=ai(t,"x"),o=ci(i[0],i[1],i[2],i[3]-e.x),a=0,s=0;s<o.length;s++)(N(r=oi(o[s],"y",t),e.y)||r>e.y)&&((0===o[s]||1===o[s])&&n.bottomRight().x>e.x||0<o[s]&&o[s]<1)&&a++;return a}([this.anchor(),this.controlOut(),t.controlIn(),t.anchor()],e,this.bboxTo(t)):Ai(this.anchor(),t.anchor(),e)},e.prototype._isOnCurveTo=function(t,e,n,r){if(this.bboxTo(t).expand(n,n).containsPoint(e)){var i=this.anchor(),o=this.controlOut(),a=t.controlIn(),s=t.anchor();if("start"===r&&i.distanceTo(e)<=n)return!ii(i,o,e);if("end"===r&&s.distanceTo(e)<=n)return!ii(s,a,e);var u=[i,o,a,s];if(li(u,e,"x","y",n)||li(u,e,"y","x",n))return!0;var c=E().rotate(45,e),l=[i.transformCopy(c),o.transformCopy(c),a.transformCopy(c),s.transformCopy(c)];return li(l,e,"x","y",n)||li(l,e,"y","x",n)}},e.prototype._isOnLineTo=function(t,e,n){var r=this.anchor(),i=t.anchor(),o=B(Math.atan2(i.y-r.y,i.x-r.x));return new b([r.x,r.y-n/2],[r.distanceTo(i),n]).containsPoint(e.transformCopy(E().rotate(-o,r)))},e.prototype._isOnPathTo=function(t,e,n,r){return this.controlOut()&&t.controlIn()?this._isOnCurveTo(t,e,n/2,r):this._isOnLineTo(t,e,n)},e}(jr(p,["anchor","controlIn","controlOut"]));function pi(t){if(t)return t[t.length-1]}function di(t,e,n){for(var r=e?0:1,i=0;i<t.length;i+=2)t.splice(i+r,0,n)}function gi(t,e){if(t&&e)return e.scaleCopy(2).translate(-t.x,-t.y)}var mi=1/3;function vi(t,e,n){var r=e.clone().scale(2/3);return{controlOut:r.clone().translateWith(t.scaleCopy(mi)),controlIn:r.translateWith(n.scaleCopy(mi))}}var wi={l:function(t,e){for(var n=e.parameters,r=e.position,i=0;i<n.length;i+=2){var o=new w(n[i],n[i+1]);e.isRelative&&o.translateWith(r),t.lineTo(o.x,o.y),r.x=o.x,r.y=o.y}},c:function(t,e){for(var n=e.parameters,r=e.position,i=0;i<n.length;i+=6){var o=new w(n[i],n[i+1]),a=new w(n[i+2],n[i+3]),s=new w(n[i+4],n[i+5]);e.isRelative&&(a.translateWith(r),o.translateWith(r),s.translateWith(r)),t.curveTo(o,a,s),r.x=s.x,r.y=s.y}},v:function(t,e){var n=e.isRelative?0:e.position.x;di(e.parameters,!0,n),this.l(t,e)},h:function(t,e){var n=e.isRelative?0:e.position.y;di(e.parameters,!1,n),this.l(t,e)},a:function(t,e){for(var n=e.parameters,r=e.position,i=0;i<n.length;i+=7){var o=n[i],a=n[i+1],s=n[i+2],u=n[i+3],c=n[i+4],l=new w(n[i+5],n[i+6]);e.isRelative&&l.translateWith(r),r.x===l.x&&r.y===l.y||(t.arcTo(l,o,a,u,c,s),r.x=l.x,r.y=l.y)}},s:function(t,e){var n,r=e.parameters,i=e.position,o=e.previousCommand;"s"!==o&&"c"!==o||(n=pi(pi(t.paths).segments).controlIn());for(var a=0;a<r.length;a+=4){var s=new w(r[a],r[a+1]),u=new w(r[a+2],r[a+3]),c=void 0;e.isRelative&&(s.translateWith(i),u.translateWith(i)),c=n?gi(n,i):i.clone(),n=s,t.curveTo(c,s,u),i.x=u.x,i.y=u.y}},q:function(t,e){for(var n=e.parameters,r=e.position,i=0;i<n.length;i+=4){var o=new w(n[i],n[i+1]),a=new w(n[i+2],n[i+3]);e.isRelative&&(o.translateWith(r),a.translateWith(r));var s=vi(r,o,a);t.curveTo(s.controlOut,s.controlIn,a),r.x=a.x,r.y=a.y}},t:function(t,e){var n,r=e.parameters,i=e.position,o=e.previousCommand;"q"!==o&&"t"!==o||(n=pi(pi(t.paths).segments).controlIn().clone().translateWith(i.scaleCopy(-1/3)).scale(1.5));for(var a=0;a<r.length;a+=2){var s=new w(r[a],r[a+1]);e.isRelative&&s.translateWith(i),n=n?gi(n,i):i.clone();var u=vi(i,n,s);t.curveTo(u.controlOut,u.controlIn,s),i.x=s.x,i.y=s.y}}},yi=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,bi=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g;var Bi=function(t,e){var n,r=new w;return e.replace(yi,(function(e,i,o,a){var s=i.toLowerCase(),u=s===i,c=function(t){var e=[];return t.replace(bi,(function(t,n){e.push(parseFloat(n))})),e}(o.trim());if("m"===s&&(u?(r.x+=c[0],r.y+=c[1]):(r.x=c[0],r.y=c[1]),t.moveTo(r.x,r.y),c.length>2&&(s="l",c.splice(0,2))),wi[s])wi[s](t,{parameters:c,position:r,isRelative:u,previousCommand:n}),a&&"z"===a.toLowerCase()&&t.close();else if("m"!==s)throw new Error("Error while parsing SVG path. Unsupported command: "+s);n=s})),t},xi=function(t){function e(e){t.call(this,e),this.segments=new ei,this.segments.addObserver(this),a(this.options.stroke)||(this.stroke("#000"),a(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return e.parse=function(t,e){return Ni.parse(t,e)},n.nodeType.get=function(){return"Path"},e.prototype.moveTo=function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},e.prototype.lineTo=function(t,e){var n=a(e)?new w(t,e):t,r=new hi(n);return this.segments.push(r),this},e.prototype.curveTo=function(t,e,n){if(this.segments.length>0){var r=pi(this.segments),i=new hi(n,e);this.suspend(),r.controlOut(t),this.resume(),this.segments.push(i)}return this},e.prototype.arc=function(t,e,n,r,i){if(this.segments.length>0){var o=pi(this.segments).anchor(),a=l(t),s=new w(o.x-n*Math.cos(a),o.y-r*Math.sin(a)),u=new U(s,{startAngle:t,endAngle:e,radiusX:n,radiusY:r,anticlockwise:i});this._addArcSegments(u)}return this},e.prototype.arcTo=function(t,e,n,r,i,o){if(this.segments.length>0){var a=pi(this.segments).anchor(),s=U.fromPoints(a,t,e,n,r,i,o);this._addArcSegments(s)}return this},e.prototype._addArcSegments=function(t){this.suspend();for(var e=t.curvePoints(),n=1;n<e.length;n+=3)this.curveTo(e[n],e[n+1],e[n+2]);this.resume(),this.geometryChange()},e.prototype.close=function(){return this.options.closed=!0,this.geometryChange(),this},e.prototype.rawBBox=function(){return this._bbox()},e.prototype._containsPoint=function(t){for(var e,n,r=this.segments,i=r.length,o=0,a=1;a<i;a++)e=r[a-1],n=r[a],o+=e._intersectionsTo(n,t);return!this.options.closed&&r[0].anchor().equals(r[i-1].anchor())||(o+=Ai(r[0].anchor(),r[i-1].anchor(),t)),o%2!==0},e.prototype._isOnPath=function(t,e){var n=this.segments,r=n.length,i=e||this.options.stroke.width;if(r>1){if(n[0]._isOnPathTo(n[1],t,i,"start"))return!0;for(var o=2;o<=r-2;o++)if(n[o-1]._isOnPathTo(n[o],t,i))return!0;if(n[r-2]._isOnPathTo(n[r-1],t,i,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,n=this.segments,r=n.length;if(1===r){var i=n[0].anchor().transformCopy(t);e=new b(i,y.ZERO)}else if(r>0)for(var o=1;o<r;o++){var a=n[o-1].bboxTo(n[o],t);e=e?b.union(e,a):a}return e},e.fromRect=function(t,n){return new e(n).moveTo(t.topLeft()).lineTo(t.topRight()).lineTo(t.bottomRight()).lineTo(t.bottomLeft()).close()},e.fromPoints=function(t,n){if(t){for(var r=new e(n),i=0;i<t.length;i++){var o=w.create(t[i]);o&&(0===i?r.moveTo(o):r.lineTo(o))}return r}},e.fromArc=function(t,n){var r=new e(n),i=t.startAngle,o=t.pointAt(i);return r.moveTo(o.x,o.y),r.arc(i,t.endAngle,t.radiusX,t.radiusY,t.anticlockwise),r},Object.defineProperties(e.prototype,n),e}(Rr(ri(Hr))),Ni=function(t){function e(e){t.call(this,e),this.paths=new ei,this.paths.addObserver(this),a(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return e.parse=function(t,n){var r=new e(n);return Bi(r,t)},n.nodeType.get=function(){return"MultiPath"},e.prototype.moveTo=function(t,e){var n=new xi;return n.moveTo(t,e),this.paths.push(n),this},e.prototype.lineTo=function(t,e){return this.paths.length>0&&pi(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,n){return this.paths.length>0&&pi(this.paths).curveTo(t,e,n),this},e.prototype.arc=function(t,e,n,r,i){return this.paths.length>0&&pi(this.paths).arc(t,e,n,r,i),this},e.prototype.arcTo=function(t,e,n,r,i,o){return this.paths.length>0&&pi(this.paths).arcTo(t,e,n,r,i,o),this},e.prototype.close=function(){return this.paths.length>0&&pi(this.paths).close(),this},e.prototype._bbox=function(t){return qr(this.paths,!0,t)},e.prototype.rawBBox=function(){return qr(this.paths,!1)},e.prototype._containsPoint=function(t){for(var e=this.paths,n=0;n<e.length;n++)if(e[n]._containsPoint(t))return!0;return!1},e.prototype._isOnPath=function(t){for(var e=this.paths,n=this.options.stroke.width,r=0;r<e.length;r++)if(e[r]._isOnPath(t,n))return!0;return!1},e.prototype._clippedBBox=function(t){return Vr(this.paths,this.currentTransform(t))},Object.defineProperties(e.prototype,n),e}(Rr(ri(Hr)));function _i(t){var e="_"+t;return function(t){return a(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}var Ci=function(t,e){void 0===e&&(e=["geometry"]);var n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var n=0;n<e.length;n++)t[e[n]]=_i(e[n])}(n.prototype,e),n},Si=function(t){function e(e,n,r){void 0===n&&(n=new b),void 0===r&&(r={}),t.call(this,r),this.src(e),this.rect(n)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return n.nodeType.get=function(){return"Image"},e.prototype.src=function(t){return a(t)?(this.options.set("src",t),this):this.options.get("src")},e.prototype.bbox=function(t){var e=v(this.currentTransform(t));return this._rect.bbox(e)},e.prototype.rawBBox=function(){return this._rect.bbox()},e.prototype._containsPoint=function(t){return this._rect.containsPoint(t)},e.prototype._hasFill=function(){return this.src()},Object.defineProperties(e.prototype,n),e}(Ci(Hr,["rect"])),Ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}(ti);function Li(t){return function(e){return a(e)?(this.options.set(t,e),this):this.options.get(t)}}var Fi=function(t){function e(e,n,r){t.call(this),this.options=new Pr({offset:e,color:n,opacity:a(r)?r:1}),this.options.addObserver(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(t){if(a(t))return t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)},e}(function(t,e){var n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(t);return function(t,e){for(var n=0;n<e.length;n++)t[e[n]]=Li(e[n])}(n.prototype,e),n}(p,["offset","color","opacity"])),ki=function(t){function e(e){void 0===e&&(e={}),t.call(this),this.stops=new Ei(this._createStops(e.stops)),this.stops.addObserver(this),this._userSpace=e.userSpace,this.id=Tr()}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return n.nodeType.get=function(){return"Gradient"},e.prototype.userSpace=function(t){return a(t)?(this._userSpace=t,this.optionsChange(),this):this._userSpace},e.prototype._createStops=function(t){void 0===t&&(t=[]);for(var e=[],n=0;n<t.length;n++)e.push(Fi.create(t[n]));return e},e.prototype.addStop=function(t,e,n){this.stops.push(new Fi(t,e,n))},e.prototype.removeStop=function(t){var e=this.stops.indexOf(t);e>=0&&this.stops.splice(e,1)},e.prototype.optionsChange=function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},e.prototype.geometryChange=function(){this.optionsChange()},Object.defineProperties(e.prototype,n),e}(p),Ui=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new w),this.end(e.end||new w(1,0))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(jr(ki,["start","end"])),Qi=function(t){function e(e,n){void 0===e&&(e=new I),void 0===n&&(n={}),t.call(this,n),this.geometry(e),a(this.options.stroke)||this.stroke("#000")}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={nodeType:{configurable:!0}};return n.nodeType.get=function(){return"Circle"},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype._containsPoint=function(t){return this.geometry().containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},Object.defineProperties(e.prototype,n),e}(Rr(ri(Ci(Hr)))),Ii="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Pi(t){for(var e="",n=0,r=function(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(55296<=r&&r<=56319){var i=r,o=t.charCodeAt(++n);isNaN(o)||(r=1024*(i-55296)+(o-56320)+65536)}r<128?e+=fn(r):r<2048?(e+=fn(192|r>>>6),e+=fn(128|63&r)):r<65536?(e+=fn(224|r>>>12),e+=fn(128|r>>>6&63),e+=fn(128|63&r)):r<1114111&&(e+=fn(240|r>>>18),e+=fn(128|r>>>12&63),e+=fn(128|r>>>6&63),e+=fn(128|63&r))}return e}(t);n<r.length;){var i=r.charCodeAt(n++),o=r.charCodeAt(n++),a=r.charCodeAt(n++),s=i>>2,u=(3&i)<<4|o>>4,c=(15&o)<<2|a>>6,l=63&a;isNaN(o)?c=l=64:isNaN(a)&&(l=64),e=e+Ii.charAt(s)+Ii.charAt(u)+Ii.charAt(c)+Ii.charAt(l)}return e}var Oi=O.browser||{};function Ti(t){return Array.prototype.slice.call(t)}var Mi="KENDO-PSEUDO-ELEMENT",Hi={},Ri={};Ri._root=Ri;var Di=!!("undefined"!==typeof window)&&(Oi.msie||Oi.edge),ji=function(t){function e(e,n,r){t.call(this,e,n.getOrigin(),r),this._pdfRect=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(zr);function zi(t,e){Object.keys(e).forEach((function(n){t.style[n]=e[n]}))}var Ki,qi="undefined"!==typeof Element&&Element.prototype&&((Ki=Element.prototype).matches?function(t,e){return t.matches(e)}:Ki.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:Ki.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:Ki.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)});function Vi(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(String(t));){if(1==t.nodeType&&qi(t,e))return t;t=t.parentNode}}var Gi,Wi=(Gi="undefined"!==typeof window&&window.kendo&&window.kendo.jQuery)?function t(e){var n=e.cloneNode(!1);if(1==e.nodeType){var r,i=Gi(e),o=Gi(n),a=i.data();for(r in a)o.data(r,a[r]);for(/^canvas$/i.test(e.tagName)?n.getContext("2d").drawImage(e,0,0):/^(?:input|select|textarea|option)$/i.test(e.tagName)&&(n.removeAttribute("id"),n.removeAttribute("name"),/^textarea$/i.test(e.tagName)||(n.value=e.value),n.checked=e.checked,n.selected=e.selected),r=e.firstChild;r;r=r.nextSibling)n.appendChild(t(r))}return n}:function(t){var e=function t(e){var n=e.cloneNode(!1);e._kendoExportVisual&&(n._kendoExportVisual=e._kendoExportVisual);for(var r=e.firstChild;r;r=r.nextSibling)n.appendChild(t(r));return n}(t),n=t.querySelectorAll("canvas");n.length&&Ti(e.querySelectorAll("canvas")).forEach((function(t,e){t.getContext("2d").drawImage(n[e],0,0)}));var r=t.querySelectorAll("input, select, textarea, option");return Ti(e.querySelectorAll("input, select, textarea, option")).forEach((function(t,e){t.removeAttribute("id"),t.removeAttribute("name"),/^textarea$/i.test(t.tagName)||(t.value=r[e].value),t.checked=r[e].checked,t.selected=r[e].selected})),e};function Xi(t,e){e||(e={});var n=fr();if(!t)return n.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");cr(function(t){null==t&&(t=document);for(var e={},n=0;n<t.styleSheets.length;++n)r(t.styleSheets[n]);return e;function r(t){if(t){var e=null;try{e=t.cssRules}catch(n){}e&&o(t,e)}}function i(t){var e=po(t.style,"src");if(e)return $i(e).reduce((function(t,e){var n=Zi(e);return n&&t.push(n),t}),[]);var n=Zi(t.cssText);return n?[n]:[]}function o(t,e){for(var n=0;n<e.length;++n){var o=e[n];switch(o.type){case 3:r(o.styleSheet);break;case 5:var s=o.style,u=$i(po(s,"font-family")),c=/^([56789]00|bold)$/i.test(po(s,"font-weight")),l="italic"==po(s,"font-style"),A=i(o);A.length>0&&a(t,u,c,l,A[0])}}}function a(t,n,r,i,o){/^data:/i.test(o)||/^[^\/:]+:\/\//.test(o)||/^\//.test(o)||(o=String(t.href).replace(/[^\/]*$/,"")+o),n.forEach((function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),r&&(t+="|bold"),i&&(t+="|italic"),e[t]=o}))}}(t.ownerDocument));var r,i="number"==typeof(r=e.scale||1)?{x:r,y:r}:Array.isArray(r)?{x:r[0],y:r[1]}:{x:r.x,y:r.y};function o(t){var n,r,o=new Gr,a=t.getBoundingClientRect();return Bo(o,[i.x,0,0,i.y,-a.left*i.x,-a.top*i.y]),Ri._clipbox=!1,Ri._matrix=h.unit(),Ri._stackingContext={element:t,group:o},!0===e.avoidLinks?Ri._avoidLinks="a":Ri._avoidLinks=e.avoidLinks,r="k-pdf-export",(n=t).classList?n.classList.add(r):n.className+=" "+r,Ho(t,o),function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/\s+/).reduce((function(t,n){return n!=e&&t.push(n),t}),[]).join(" ")}(t,"k-pdf-export"),o}return uo([t],(function(){var r=e&&e.forcePageBreak,a=e&&e.paperSize&&"auto"!=e.paperSize,s=wn((function(t,n){return"paperSize"==t?a?e[t]:"A4":t in e?e[t]:n})),u=a&&s.paperSize[0],c=a&&s.paperSize[1],l=e.margin&&s.margin,A=Boolean(l);if(r||c){l||(l={left:0,top:0,right:0,bottom:0}),u&&(u/=i.x),c&&(c/=i.y),l.left/=i.x,l.right/=i.x,l.top/=i.y,l.bottom/=i.y;var f=new Gr({pdf:{multiPage:!0,paperSize:a?s.paperSize:"auto",_ignoreMargin:A}});!function(t,e,n,r,i,o,a){var s=function(t){if(null!=t)return"string"==typeof t&&(t=function(){throw new Error("Template implementation missing.")}(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var n=t(e);if(n&&"string"==typeof n){var r=document.createElement("div");r.innerHTML=n,n=r.firstElementChild}return n}:function(){return t.cloneNode(!0)}}(a.template),u=e.ownerDocument,c=[],l=a._destructive?e:Wi(e),A=u.createElement("KENDO-PDF-DOCUMENT"),f=0;Ti(l.querySelectorAll("tfoot")).forEach((function(t){t.parentNode.appendChild(t)})),Ti(l.querySelectorAll("ol")).forEach((function(t){Ti(t.children).forEach((function(t,e){t.setAttribute("kendo-split-index",e)}))})),zi(A,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),r&&(zi(A,{width:r+"px",paddingLeft:o.left+"px",paddingRight:o.right+"px"}),zi(l,{overflow:"hidden"}));e.parentNode.insertBefore(A,e),A.appendChild(l),a.beforePageBreak?so([A],(function(){a.beforePageBreak(A,h)})):so([A],h);function h(){("-"!=n||i)&&d(l);var e=v();l.parentNode.insertBefore(e,l),e.appendChild(l),s&&c.forEach((function(t,e){var n=s({element:t,pageNum:e+1,totalPages:c.length});n&&t.appendChild(n)})),uo(c,t.bind(null,{pages:c,container:A}))}function p(t){if(a.keepTogether&&qi(t,a.keepTogether)&&t.offsetHeight<=i-f)return!0;var e=t.tagName;return!(/^h[1-6]$/i.test(e)&&t.offsetHeight>=i-f)&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function d(t){if("TABLE"==t.tagName&&zi(t,{tableLayout:"fixed"}),!p(t)){var e=ho(t),r=parseFloat(po(e,"padding-bottom")),o=parseFloat(po(e,"border-bottom-width")),a=f;f+=r+o;for(var s=!0,u=t.firstChild;u;u=u.nextSibling)if(1==u.nodeType){if(s=!1,qi(u,n)){m(u);continue}if(!i){d(u);continue}if(!/^(?:static|relative)$/.test(po(ho(u),"position")))continue;var c=w(u);1==c||c&&p(u)?m(u):d(u)}else 3==u.nodeType&&i&&(y(u,s),s=!1);f=a}}function g(t){var e=t.parentNode,n=e.firstChild;if(t===n)return!0;if(t===e.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}function m(t){if(1==t.nodeType&&t!==l&&g(t))return m(t.parentNode);var e,n,r,i,o;n=(e=Vi(t,"table"))&&e.querySelector("colgroup"),a.repeatHeaders&&(r=e&&e.querySelector("thead"),(i=Vi(t,".k-grid.k-widget"))&&i.querySelector(".k-auto-scrollable")&&(o=i.querySelector(".k-grid-header")));var s=v(),c=u.createRange();c.setStartBefore(l),c.setEndBefore(t),s.appendChild(c.extractContents()),l.parentNode.insertBefore(s,l),b(t.parentNode),e&&(e=Vi(t,"table"),a.repeatHeaders&&r&&e.insertBefore(r.cloneNode(!0),e.firstChild),n&&e.insertBefore(n.cloneNode(!0),e.firstChild)),a.repeatHeaders&&o&&(i=Vi(t,".k-grid.k-widget")).insertBefore(o.cloneNode(!0),i.firstChild)}function v(){var t=u.createElement("KENDO-PDF-PAGE");return zi(t,{display:"block",boxSizing:"content-box",width:r?r+"px":"auto",padding:o.top+"px "+o.right+"px "+o.bottom+"px "+o.left+"px",position:"relative",height:i?i+"px":"auto",overflow:i||r?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),c.push(t),t}function w(t){var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return 0;var n=l.getBoundingClientRect().top,r=i-f;return e.height>r?3:e.top-n>r?1:e.bottom-n>r?2:0}function y(t,e){if(/\S/.test(t.data)){var n=t.data.length,r=u.createRange();r.selectNodeContents(t);var i=w(r);if(i){var o=t;if(1==i)m(e?t.parentNode:t);else if(function e(n,i,o){return r.setEnd(t,i),n==i||i==o?i:w(r)?e(n,n+i>>1,i):e(i,i+o>>1,o)}(0,n>>1,n),!/\S/.test(r.toString())&&e)m(t.parentNode);else{o=t.splitText(r.endOffset);var a=v();r.setStartBefore(l),a.appendChild(r.extractContents()),l.parentNode.insertBefore(a,l),b(o.parentNode)}y(o)}}}function b(t){var e=Vi(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),b(e.parentNode))}}((function(t){if(e.progress){var r=!1,i=0;!function a(){if(i<t.pages.length){var s=o(t.pages[i]);f.append(s),e.progress({page:s,pageNum:++i,totalPages:t.pages.length,cancel:function(){r=!0}}),r?t.container.parentNode.removeChild(t.container):setTimeout(a)}else t.container.parentNode.removeChild(t.container),n.resolve(f)}()}else t.pages.forEach((function(t){f.append(o(t))})),t.container.parentNode.removeChild(t.container),n.resolve(f)}),t,r,u?u-l.left-l.right:null,c?c-l.top-l.bottom:null,l,e)}else n.resolve(o(t))})),n}var Ji,Yi=function(){var t=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,e=/^([-0-9.]+%)/,n=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\W/,i=/^([-0-9.]+(deg|grad|rad|turn)|0)/,o=/^(\s+)/,a=/^(\()/,s=/^(\))/,u=/^(,)/,c=/^(url)\(/,l=/^(.*?)\)/,A={},f={};function h(f){var h,p=f;if(eo(A,p))return A[p];function d(t){!function(){var t=o.exec(f);t&&(f=f.substr(t[1].length))}();var e=t.exec(f);if(e)return f=f.substr(e[1].length),e[1]}function g(){var t,r,i=Qr(f,!0);if(i){var o=/^#[0-9a-f]+/i.exec(f)||/^rgba?\(.*?\)/i.exec(f)||/^..*?\b/.exec(f);return f=f.substr(o[0].length),i=i.toRGB(),(t=d(n))||(r=d(e)),{color:i,length:t,percent:r}}}return(h=d(t))?h=function(t){var n,o,c,l=[],A=!1;if(d(a)){if("0"==(n=d(i))&&(n="0deg"),n?(n=function(t){var e=parseFloat(t);return/grad$/.test(t)?Math.PI*e/200:/rad$/.test(t)?e:/turn$/.test(t)?Math.PI*e*2:/deg$/.test(t)?Math.PI*e/180:void 0}(n),d(u)):("to"==(o=d(r))?o=d(r):o&&/^-/.test(t)&&(A=!0),c=d(r),d(u)),/-moz-/.test(t)&&null==n&&null==o){var h=d(e),p=d(e);A=!0,"0%"==h?o="left":"100%"==h&&(o="right"),"0%"==p?c="top":"100%"==p&&(c="bottom"),d(u)}for(;f&&!d(s);){var m=g();if(!m)break;l.push(m),d(u)}return{type:"linear",angle:n,to:o&&c?o+" "+c:o||c||null,stops:l,reverse:A}}}(h):(h=d(c))&&(h=function(){if(d(a)){var t=d(l);return t=t.replace(/^['"]+|["']+$/g,""),d(s),{type:"url",url:t}}}()),A[p]=h||{type:"none"}}return function(t){return eo(f,t)?f[t]:f[t]=$i(t).map(h)}}(),$i=function(){var t={};return function(e,n){n||(n=/^\s*,\s*/);var r=e+n;if(eo(t,r))return t[r];var i,o=[],a=0,s=0,u=0,c=!1;function l(t){return i=t.exec(e.substr(s))}function A(t){return t.replace(/^\s+|\s+$/g,"")}for(;s<e.length;)!c&&l(/^[\(\[\{]/)?(u++,s++):!c&&l(/^[\)\]\}]/)?(u--,s++):!c&&l(/^[\"\']/)?(c=i[0],s++):"'"==c&&l(/^\\\'/)||'"'==c&&l(/^\\\"/)?s+=2:"'"==c&&l(/^\'/)||'"'==c&&l(/^\"/)?(c=!1,s++):l(n)?(!c&&!u&&s>a&&(o.push(A(e.substring(a,s))),a=s+i[0].length),s+=i[0].length):s++;return a<s&&o.push(A(e.substring(a,s))),t[r]=o}}(),Zi=(Ji=Object.create(null),function(t){var e,n=Ji[t];return n||((e=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(t))||(e=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(t)))&&(n=Ji[t]=e[2]),n}),to=function(t){return function(e){var n=t[e];return null==n&&(n=t[e]=wr("Mapq",{font:e}).height),n}}(Object.create(null));function eo(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function no(t,e){var n=Ri;for(t="_counter_"+t;n&&!eo(n,t);)n=Object.getPrototypeOf(n);n||(n=Ri._root),n[t]=(n[t]||0)+(null==e?1:e)}function ro(t,e){Ri[t="_counter_"+t]=null==e?0:e}function io(t,e,n){for(var r=0;r<t.length;){var i=t[r++],o=parseFloat(t[r]);isNaN(o)?e(i,n):(e(i,o),++r)}}function oo(t){var e=po(t,"counter-reset");e&&io($i(e,/^\s+/),ro,0);var n=po(t,"counter-increment");n&&io($i(n,/^\s+/),no,1)}function ao(t,e){var n=Qr(t,!0);return n&&(n=n.toRGB(),e?n=n.toCssRgba():0===n.a&&(n=null)),n}function so(t,e){var n=0;function r(){--n<=0&&e()}t.forEach((function(t){for(var e=t.querySelectorAll("img"),i=0;i<e.length;++i){var o=e[i];o.complete||(n++,o.onload=o.onerror=r)}})),n||r()}function uo(t,e){var n=[];function r(t){Hi[t]||(Hi[t]=!0,n.push(t))}t.forEach((function t(e){/^img$/i.test(e.tagName)&&r(e.src),Yi(po(ho(e),"background-image")).forEach((function(t){"url"==t.type&&r(t.url)})),e.children&&Ti(e.children).forEach(t)}));var i=n.length;function o(){--i<=0&&so(t,e)}0===i&&o(),n.forEach((function(t){var e=Hi[t]=new window.Image;/^data:/i.test(t)||(e.crossOrigin="Anonymous"),e.src=t,e.complete?o():(e.onload=o,e.onerror=function(){Hi[t]=null,o()})}))}function co(t){var e="";do{var n=t%26;e=String.fromCharCode(97+n)+e,t=Math.floor(t/26)}while(t>0);return e}function lo(t,e,n){(Ri=Object.create(Ri))[t.tagName.toLowerCase()]={element:t,style:e};var r=po(e,"text-decoration");if(r&&"none"!=r){var i=po(e,"color");r.split(/\s+/g).forEach((function(t){Ri[t]||(Ri[t]=i)}))}(function(t){function e(e){return po(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0})(e)&&(Ri._stackingContext={element:t,group:n})}function Ao(){Ri=Object.getPrototypeOf(Ri)}function fo(t){if(null!=Ri._clipbox){var e=t.bbox(Ri._matrix);Ri._clipbox?Ri._clipbox=b.intersect(Ri._clipbox,e):Ri._clipbox=e}}function ho(t,e){return window.getComputedStyle(t,e||null)}function po(t,e,n){var r=t.getPropertyValue(e);return null!=r&&""!==r||(Oi.webkit?r=t.getPropertyValue("-webkit-"+e):Oi.mozilla?r=t.getPropertyValue("-moz-"+e):Oi.opera?r=t.getPropertyValue("-o-"+e):Di&&(r=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==r||""===r)?n:r}function go(t,e,n,r){t.setProperty(e,n,r),Oi.webkit?t.setProperty("-webkit-"+e,n,r):Oi.mozilla?t.setProperty("-moz-"+e,n,r):Oi.opera?t.setProperty("-o-"+e,n,r):Di&&(t.setProperty("-ms-"+e,n,r),t[e="ms"+e.replace(/(^|-)([a-z])/g,(function(t,e,n){return e+n.toUpperCase()}))]=n)}function mo(t,e){return e="border-"+e,{width:parseFloat(po(t,e+"-width")),style:po(t,e+"-style"),color:ao(po(t,e+"-color"),!0)}}function vo(t,e){var n=t.style.cssText,r=e();return t.style.cssText=n,r}function wo(t,e){var n=po(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),_o({x:n[0],y:n[1]})}function yo(t,e,n){var r,i,o,a,s;return"string"==typeof e?(r=ho(n),i=parseFloat(po(r,e.replace("*","top"))),o=parseFloat(po(r,e.replace("*","right"))),a=parseFloat(po(r,e.replace("*","bottom"))),s=parseFloat(po(r,e.replace("*","left")))):"number"==typeof e&&(i=o=a=s=e),{top:t.top+i,right:t.right-o,bottom:t.bottom-a,left:t.left+s,width:t.right-t.left-o-s,height:t.bottom-t.top-a-i}}function bo(t){return 180*t/Math.PI%360}function Bo(t,e){return e=new h(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function xo(t,e){t.clip(e)}function No(t,e,n,r){for(var i=new U([e,n],r).curvePoints(),o=1;o<i.length;)t.curveTo(i[o++],i[o++],i[o++])}function _o(t){return(t.x<=0||t.y<=0)&&(t.x=t.y=0),t}function Co(t,e,n,r,i){var o=Math.max(0,e.x),a=Math.max(0,e.y),s=Math.max(0,n.x),u=Math.max(0,n.y),c=Math.max(0,r.x),l=Math.max(0,r.y),A=Math.max(0,i.x),f=Math.max(0,i.y),h=Math.min(t.width/(o+s),t.height/(u+l),t.width/(c+A),t.height/(f+a));return h<1&&(o*=h,a*=h,s*=h,u*=h,c*=h,l*=h,A*=h,f*=h),{tl:{x:o,y:a},tr:{x:s,y:u},br:{x:c,y:l},bl:{x:A,y:f}}}function So(t,e,n){var r=ho(t),i=wo(r,"top-left"),o=wo(r,"top-right"),a=wo(r,"bottom-left"),s=wo(r,"bottom-right");if("padding"==n||"content"==n){var u=mo(r,"top"),c=mo(r,"right"),l=mo(r,"bottom"),A=mo(r,"left");if(i.x-=A.width,i.y-=u.width,o.x-=c.width,o.y-=u.width,s.x-=c.width,s.y-=l.width,a.x-=A.width,a.y-=l.width,"content"==n){var f=parseFloat(po(r,"padding-top")),h=parseFloat(po(r,"padding-right")),p=parseFloat(po(r,"padding-bottom")),d=parseFloat(po(r,"padding-left"));i.x-=d,i.y-=f,o.x-=h,o.y-=f,s.x-=h,s.y-=p,a.x-=d,a.y-=p}}return"number"==typeof n&&(i.x-=n,i.y-=n,o.x-=n,o.y-=n,s.x-=n,s.y-=n,a.x-=n,a.y-=n),Eo(e,i,o,s,a)}function Eo(t,e,n,r,i){var o=Co(t,e,n,r,i),a=o.tl,s=o.tr,u=o.br,c=o.bl,l=new xi({fill:null,stroke:null});return l.moveTo(t.left,t.top+a.y),a.x&&No(l,t.left+a.x,t.top+a.y,{startAngle:-180,endAngle:-90,radiusX:a.x,radiusY:a.y}),l.lineTo(t.right-s.x,t.top),s.x&&No(l,t.right-s.x,t.top+s.y,{startAngle:-90,endAngle:0,radiusX:s.x,radiusY:s.y}),l.lineTo(t.right,t.bottom-u.y),u.x&&No(l,t.right-u.x,t.bottom-u.y,{startAngle:0,endAngle:90,radiusX:u.x,radiusY:u.y}),l.lineTo(t.left+c.x,t.bottom),c.x&&No(l,t.left+c.x,t.bottom-c.y,{startAngle:90,endAngle:180,radiusX:c.x,radiusY:c.y}),l.close()}function Lo(t,e){var n=String(parseFloat(t));switch(e){case"decimal-leading-zero":return n.length<2&&(n="0"+n),n;case"lower-roman":return br(t).toLowerCase();case"upper-roman":return br(t).toUpperCase();case"lower-latin":case"lower-alpha":return co(t-1);case"upper-latin":case"upper-alpha":return co(t-1).toUpperCase();default:return n}}function Fo(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function(t){var e=[],n=Ri;for(t="_counter_"+t;n;)eo(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}(t).map((function(t){return Lo(t,e)})).join(n)):Lo(function(t){return Ri[t="_counter_"+t]}(t)||0,e)}var r,i=$i(e,/^\s+/),o=[];return i.forEach((function(e){var i;(r=/^\s*(["'])(.*)\1\s*$/.exec(e))?o.push(r[2].replace(/\\([0-9a-f]{4})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))):(r=/^\s*counter\((.*?)\)\s*$/.exec(e))?(i=$i(r[1]),o.push(n(i[0],i[1]))):(r=/^\s*counters\((.*?)\)\s*$/.exec(e))?(i=$i(r[1]),o.push(n(i[0],i[2],i[1]))):(r=/^\s*attr\((.*?)\)\s*$/.exec(e))?o.push(t.getAttribute(r[1])||""):o.push(e)})),o.join("")}function ko(t){if(t.cssText)return t.cssText;for(var e=[],n=0;n<t.length;++n)e.push(t[n]+": "+po(t,t[n]));return e.join(";\n")}function Uo(t,e){if(t.tagName!=Mi){var n=[];if(i(":before",t.firstChild),i(":after",null),n.length>0){var r=t.className;t.className+=" kendo-pdf-hide-pseudo-elements",Qo(t,e),t.className=r,n.forEach((function(e){t.removeChild(e)}))}else Qo(t,e)}else Qo(t,e);function i(e,r){var i=ho(t,e),o=i.content;if(oo(i),o&&"normal"!=o&&"none"!=o&&"0px"!=i.width){var a=t.ownerDocument.createElement(Mi);a.style.cssText=ko(i),a.textContent=Fo(t,o),t.insertBefore(a,r),n.push(a)}}}function Qo(t,e){var n=ho(t),r=mo(n,"top"),i=mo(n,"right"),o=mo(n,"bottom"),a=mo(n,"left"),s=wo(n,"top-left"),u=wo(n,"top-right"),c=wo(n,"bottom-left"),l=wo(n,"bottom-right"),A=po(n,"direction"),f=po(n,"background-color");f=ao(f);var h,p,d=Yi(po(n,"background-image")),g=$i(po(n,"background-repeat")),m=$i(po(n,"background-position")),v=$i(po(n,"background-origin")),w=$i(po(n,"background-size"));Di&&"ellipsis"==(h=n.textOverflow)&&(p=t.style.textOverflow,t.style.textOverflow="clip"),Oi.msie&&Oi.version<10&&(m=$i(t.currentStyle.backgroundPosition));var y,B,x,N=yo(t.getBoundingClientRect(),"border-*-width",t);!function(){var t=po(n,"clip"),r=/^\s*rect\((.*)\)\s*$/.exec(t);if(r){var i=r[1].split(/[ ,]+/g),o="auto"==i[0]?N.top:parseFloat(i[0])+N.top,a="auto"==i[1]?N.right:parseFloat(i[1])+N.left,s="auto"==i[2]?N.bottom:parseFloat(i[2])+N.top,u="auto"==i[3]?N.left:parseFloat(i[3])+N.left,c=new Gr,l=(new xi).moveTo(u,o).lineTo(a,o).lineTo(a,s).lineTo(u,s).close();xo(c,l),e.append(c),e=c,fo(l)}}();var _=po(n,"display");if("table-row"==_)for(y=[],B=0,x=t.children;B<x.length;++B)y.push(x[B].getBoundingClientRect());else 1==(y=t.getClientRects()).length&&(y=[t.getBoundingClientRect()]);for(y=function(e){if(/^td$/i.test(t.tagName)){var n=Ri.table;if(n&&"collapse"==po(n.style,"border-collapse")){var r=mo(n.style,"left").width,i=mo(n.style,"top").width;if(0===r&&0===i)return e;var o=n.element.getBoundingClientRect(),a=n.element.rows[0].cells[0].getBoundingClientRect();if(a.top==o.top||a.left==o.left)return Ti(e).map((function(t){return{left:t.left+r,top:t.top+i,right:t.right+r,bottom:t.bottom+i,height:t.height,width:t.width}}))}}return e}(y),B=0;B<y.length;++B)F(y[B],0===B,B==y.length-1);if("A"==t.tagName&&t.href&&!/^#?$/.test(t.getAttribute("href"))&&(!Ri._avoidLinks||!qi(t,Ri._avoidLinks))){var C=document.createRange();C.selectNodeContents(t),Ti(C.getClientRects()).forEach((function(n){var r=new Gr;r._pdfLink={url:t.href,top:n.top,right:n.right,bottom:n.bottom,left:n.left},e.append(r)}))}return y.length>0&&"list-item"==_&&!t.getAttribute("kendo-no-bullet")&&function(){var r=po(n,"list-style-type");if("none"==r)return;var i=po(n,"list-style-position");function o(n){vo(t,(function(){t.style.position="relative";var r=t.ownerDocument.createElement(Mi);r.style.position="absolute",r.style.boxSizing="border-box","outside"==i?(r.style.width="6em",r.style.left="-6.8em",r.style.textAlign="right"):r.style.left="0px",n(r),t.insertBefore(r,t.firstChild),Ho(r,e),t.removeChild(r)}))}function a(e){var n=t.parentNode.children,r=t.getAttribute("kendo-split-index");if(null!=r)return e(0|r,n.length);for(var i=0;i<n.length;++i)if(n[i]===t)return e(i,n.length)}switch(r){case"circle":case"disc":case"square":o((function(t){t.style.fontSize="60%",t.style.lineHeight="200%",t.style.paddingRight="0.5em",t.style.fontFamily="DejaVu Serif",t.innerHTML={disc:"\u25cf",circle:"\u25ef",square:"\u25a0"}[r]}));break;case"decimal":case"decimal-leading-zero":o((function(t){a((function(e){++e,"decimal-leading-zero"==r&&e<10&&(e="0"+e),t.innerHTML=e+"."}))}));break;case"lower-roman":case"upper-roman":o((function(t){a((function(e){e=br(e+1),"upper-roman"==r&&(e=e.toUpperCase()),t.innerHTML=e+"."}))}));break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":o((function(t){a((function(e){e=co(e),/^upper/i.test(r)&&(e=e.toUpperCase()),t.innerHTML=e+"."}))}))}}(y[0]),function(){function r(){var n=So(t,N,"padding"),r=new Gr;xo(r,n),e.append(r),e=r,fo(n)}!function(t){return/^(?:textarea|select|input)$/i.test(t.tagName)}(t)?(/^(hidden|auto|scroll)/.test(po(n,"overflow"))||/^(hidden|auto|scroll)/.test(po(n,"overflow-x"))||/^(hidden|auto|scroll)/.test(po(n,"overflow-y")))&&r():r()}(),function(t,e){var n;if(t._kendoExportVisual)n=t._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&t.getAttribute(window.kendo.attr("role"))){var r=window.kendo.widgetInstance(window.kendo.jQuery(t));r&&(r.exportDOMVisual||r.exportVisual)&&(n=r.exportDOMVisual?r.exportDOMVisual():r.exportVisual())}if(!n)return!1;var i=new Gr;i.children.push(n);var o=t.getBoundingClientRect();return i.transform(E().translate(o.left,o.top)),e.append(i),!0}(t,e)||To(t,e),Di&&"ellipsis"==h&&(t.style.textOverflow=p),e;function S(t,n,r,i,o,a,s,u){if(!(r<=0)){var c,l=new Gr;Bo(l,u),e.append(l),_o(a),_o(s),c=new xi({fill:{color:t},stroke:null}),l.append(c),c.moveTo(a.x?Math.max(a.x,i):0,0).lineTo(n-(s.x?Math.max(s.x,o):0),0).lineTo(n-Math.max(s.x,o),r).lineTo(Math.max(a.x,i),r).close(),a.x&&A(i,a,[-1,0,0,1,a.x,0]),s.x&&A(o,s,[1,0,0,1,n-s.x,0])}function A(e,n,i){var o=Math.PI/2*e/(e+r),a={x:n.x-e,y:n.y-r},s=new xi({fill:{color:t},stroke:null}).moveTo(0,0);Bo(s,i),No(s,0,n.y,{startAngle:-90,endAngle:-bo(o),radiusX:n.x,radiusY:n.y}),a.x>0&&a.y>0?(s.lineTo(a.x*Math.cos(o),n.y-a.y*Math.sin(o)),No(s,0,n.y,{startAngle:-bo(o),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?s.lineTo(a.x,r).lineTo(0,r):s.lineTo(a.x,r).lineTo(a.x,0),l.append(s.close())}}function L(e,n,r,i,o,a,s){var u;if(r&&"none"!=r)if("url"==r.type){var c=Hi[r.url];c&&c.width>0&&c.height>0&&l(e,n,c.width,c.height,(function(t,e){t.append(new Si(r.url,e))}))}else{if("linear"!=r.type)return;l(e,n,n.width,n.height,(u=r,function(t,e){var n=e.width(),r=e.height();switch(u.type){case"linear":var i=null!=u.angle?u.angle:Math.PI;switch(u.to){case"top":i=0;break;case"left":i=-Math.PI/2;break;case"bottom":i=Math.PI;break;case"right":i=Math.PI/2;break;case"top left":case"left top":i=-Math.atan2(r,n);break;case"top right":case"right top":i=Math.atan2(r,n);break;case"bottom left":case"left bottom":i=Math.PI+Math.atan2(r,n);break;case"bottom right":case"right bottom":i=Math.PI-Math.atan2(r,n)}u.reverse&&(i-=Math.PI),(i%=2*Math.PI)<0&&(i+=2*Math.PI);var o=Math.abs(n*Math.sin(i))+Math.abs(r*Math.cos(i)),a=Math.atan(n*Math.tan(i)/r),s=Math.sin(a),c=Math.cos(a),l=Math.abs(s)+Math.abs(c),A=l/2*s,f=l/2*c;i>Math.PI/2&&i<=3*Math.PI/2&&(A=-A,f=-f);var h=[],p=0,d=u.stops.map((function(t,e){var n=t.percent;n?n=parseFloat(n)/100:t.length?n=parseFloat(t.length)/o:0===e?n=0:e==u.stops.length-1&&(n=1);var r={color:t.color.toCssRgba(),offset:n};return null!=n?(p=n,h.forEach((function(t,e){t.stop.offset=t.left+(p-t.left)*(e+1)/(h.length+1)})),h=[]):h.push({left:p,stop:r}),r})),g=[.5-A,.5+f],m=[.5+A,.5-f];t.append(xi.fromRect(e).stroke(null).fill(new Ui({start:g,end:m,stops:d,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}))}function l(e,n,r,u,c){var l,A=r/u,f=n;if("content-box"==a?(f=yo(f,"border-*-width",t),f=yo(f,"padding-*",t)):"padding-box"==a&&(f=yo(f,"border-*-width",t)),!/^\s*auto(\s+auto)?\s*$/.test(s))if("contain"==s)l=Math.min(f.width/r,f.height/u),r*=l,u*=l;else if("cover"==s)l=Math.max(f.width/r,f.height/u),r*=l,u*=l;else{var h=s.split(/\s+/g);r=/%$/.test(h[0])?f.width*parseFloat(h[0])/100:parseFloat(h[0]),u=1==h.length||"auto"==h[1]?r/A:/%$/.test(h[1])?f.height*parseFloat(h[1])/100:parseFloat(h[1])}var p=String(o);switch(p){case"bottom":p="50% 100%";break;case"top":p="50% 0";break;case"left":p="0 50%";break;case"right":p="100% 50%";break;case"center":p="50% 50%"}1==(p=p.split(/\s+/)).length&&(p[1]="50%"),/%$/.test(p[0])?p[0]=parseFloat(p[0])/100*(f.width-r):p[0]=parseFloat(p[0]),/%$/.test(p[1])?p[1]=parseFloat(p[1])/100*(f.height-u):p[1]=parseFloat(p[1]);var d=new b([f.left+p[0],f.top+p[1]],[r,u]);function g(){for(;d.origin.x>n.left;)d.origin.x-=r}function m(){for(;d.origin.y>n.top;)d.origin.y-=u}function v(){for(;d.origin.x<n.right;)c(e,d.clone()),d.origin.x+=r}if("no-repeat"==i)c(e,d);else if("repeat-x"==i)g(),v();else if("repeat-y"==i)for(m();d.origin.y<n.bottom;)c(e,d.clone()),d.origin.y+=u;else if("repeat"==i){g(),m();for(var w=d.origin.clone();d.origin.y<n.bottom;)d.origin.x=w.x,v(),d.origin.y+=u}}}function F(n,h,p){if(0!==n.width&&0!==n.height){!function(t){var n=new Gr;if(xo(n,Eo(t,s,u,l,c)),e.append(n),f){var r=new xi({fill:{color:f.toCssRgba()},stroke:null});r.moveTo(t.left,t.top).lineTo(t.right,t.top).lineTo(t.right,t.bottom).lineTo(t.left,t.bottom).close(),n.append(r)}for(var i=d.length;--i>=0;)L(n,t,d[i],g[i%g.length],m[i%m.length],v[i%v.length],w[i%w.length])}(n);var y=a.width>0&&(h&&"ltr"==A||p&&"rtl"==A),b=i.width>0&&(p&&"ltr"==A||h&&"rtl"==A);if(0!==r.width||0!==a.width||0!==i.width||0!==o.width){if(r.color==i.color&&r.color==o.color&&r.color==a.color&&r.width==i.width&&r.width==o.width&&r.width==a.width&&y&&b){n=yo(n,r.width/2);var B=So(t,n,r.width/2);return B.options.stroke={color:r.color,width:r.width},void e.append(B)}if(0===s.x&&0===u.x&&0===l.x&&0===c.x&&r.width<2&&a.width<2&&i.width<2&&o.width<2)return r.width>0&&e.append(new xi({stroke:{width:r.width,color:r.color}}).moveTo(n.left,n.top+r.width/2).lineTo(n.right,n.top+r.width/2)),o.width>0&&e.append(new xi({stroke:{width:o.width,color:o.color}}).moveTo(n.left,n.bottom-o.width/2).lineTo(n.right,n.bottom-o.width/2)),y&&e.append(new xi({stroke:{width:a.width,color:a.color}}).moveTo(n.left+a.width/2,n.top).lineTo(n.left+a.width/2,n.bottom)),void(b&&e.append(new xi({stroke:{width:i.width,color:i.color}}).moveTo(n.right-i.width/2,n.top).lineTo(n.right-i.width/2,n.bottom)));var x=Co(n,s,u,l,c),N=x.tl,_=x.tr,C=x.br,E=x.bl;S(r.color,n.width,r.width,a.width,i.width,N,_,[1,0,0,1,n.left,n.top]),S(o.color,n.width,o.width,i.width,a.width,C,E,[-1,0,0,-1,n.right,n.bottom]),S(a.color,n.height,a.width,o.width,r.width,F(E),F(N),[0,-1,1,0,n.left,n.bottom]),S(i.color,n.height,i.width,r.width,o.width,F(_),F(C),[0,1,-1,0,n.right,n.top])}}function F(t){return{x:t.y,y:t.x}}}}function Io(t,e,n){var r=function(t){var e=t.getBoundingClientRect();return e=yo(e,"border-*-width",t),yo(e,"padding-*",t)}(t),i=new b([r.left,r.top],[r.width,r.height]),o=new Si(e,i);xo(o,So(t,r,"content")),n.append(o)}function Po(t,e){var n=ho(t),r=ho(e),i=parseFloat(po(n,"z-index")),o=parseFloat(po(r,"z-index")),a=po(n,"position"),s=po(r,"position");return isNaN(i)&&isNaN(o)?/static|absolute/.test(a)&&/static|absolute/.test(s)?0:"static"==a?-1:"static"==s?1:0:isNaN(i)?0===o?0:o>0?-1:1:isNaN(o)?0===i?0:i>0?1:-1:parseFloat(i)-parseFloat(o)}function Oo(t,e){var n=t.tagName.toLowerCase();if("input"==n&&("checkbox"==t.type||"radio"==t.type))return function(t,e){var n=po(ho(t),"color"),r=t.getBoundingClientRect();"checkbox"==t.type?(e.append(xi.fromRect(new b([r.left+1,r.top+1],[r.width-2,r.height-2])).stroke(n,1)),t.checked&&e.append((new xi).stroke(n,1.2).moveTo(r.left+.22*r.width,r.top+.55*r.height).lineTo(r.left+.45*r.width,r.top+.75*r.height).lineTo(r.left+.78*r.width,r.top+.22*r.width))):(e.append(new Qi(new I([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-2,r.height-2)/2)).stroke(n,1)),t.checked&&e.append(new Qi(new I([(r.left+r.right)/2,(r.top+r.bottom)/2],Math.min(r.width-8,r.height-8)/2)).fill(n).stroke(null)))}(t,e);var r,i=t.parentNode,o=t.ownerDocument,a=o.createElement(Mi);if(a.style.cssText=ko(ho(t)),"input"==n&&(a.style.whiteSpace="pre"),"select"!=n&&"textarea"!=n||(a.style.overflow="auto"),"select"==n)if(t.multiple)for(var s=0;s<t.options.length;++s)(r=o.createElement(Mi)).style.cssText=ko(ho(t.options[s])),r.style.display="block",r.textContent=t.options[s].textContent,a.appendChild(r);else(r=function(t){return t.selectedOptions&&t.selectedOptions.length>0?t.selectedOptions[0]:t.options[t.selectedIndex]}(t))&&(a.textContent=r.textContent);else a.textContent=t.value;i.insertBefore(a,t),a.scrollLeft=t.scrollLeft,a.scrollTop=t.scrollTop,t.style.display="none",To(a,e),t.style.display="",i.removeChild(a)}function To(t,e){switch(Ri._stackingContext.element===t&&(Ri._stackingContext.group=e),t.tagName.toLowerCase()){case"img":Io(t,t.src,e);break;case"svg":Io(t,"data:image/svg+xml;base64,"+Pi((new window.XMLSerializer).serializeToString(t)),e);break;case"canvas":try{Io(t,t.toDataURL("image/png"),e)}catch(u){}break;case"textarea":case"input":case"select":Oo(t,e);break;default:for(var n=[],r=[],i=[],o=t.firstChild;o;o=o.nextSibling)switch(o.nodeType){case 3:/\S/.test(o.data)&&Mo(t,o,e);break;case 1:var a=ho(o),s=po(a,"float");"static"!=po(a,"position")?i.push(o):"none"!=s?r.push(o):n.push(o)}Br(n,Po).forEach((function(t){Ho(t,e)})),Br(r,Po).forEach((function(t){Ho(t,e)})),Br(i,Po).forEach((function(t){Ho(t,e)}))}}function Mo(t,e,n){if(!function(){var t=Ri._clipbox;return null==t||(t?0===t.width()||0===t.height():void 0)}()){var r=ho(t);if(!(parseFloat(po(r,"text-indent"))<-500)){var i=e.data,o=0,a=i.search(/\S\s*$/)+1;if(a){var s=po(r,"font-size"),u=po(r,"line-height"),c=[po(r,"font-style"),po(r,"font-variant"),po(r,"font-weight"),s,po(r,"font-family")].join(" ");if(s=parseFloat(s),u=parseFloat(u),0!==s){var l=po(r,"color"),A=t.ownerDocument.createRange(),f="justify"==po(r,"text-align"),h=po(r,"column-count",1),p=po(r,"white-space"),d=po(r,"text-transform"),g=t.getBoundingClientRect().width/s*5;0===g&&(g=500);for(var m=null,v=Ri.underline,w=Ri["line-through"],y=Ri.overline,B=v||w||y;!N(););return void(B&&(A.selectNode(e),Ti(A.getClientRects()).forEach((function(t){function e(e,r){if(e){var i=s/12,o=new xi({stroke:{width:i,color:e}});r-=i,o.moveTo(t.left,r).lineTo(t.right,r),n.append(o)}}e(v,t.bottom),e(w,t.bottom-t.height/2.7),e(y,t.top)}))))}}}}function x(t){if(Di||Oi.chrome){for(var e=t.getClientRects(),n={top:1/0,right:-1/0,bottom:-1/0,left:1/0},r=!1,i=0;i<e.length;++i){var o=e[i];o.width<=1||o.bottom===m||(n.left=Math.min(o.left,n.left),n.top=Math.min(o.top,n.top),n.right=Math.max(o.right,n.right),n.bottom=Math.max(o.bottom,n.bottom),r=!0)}return r?(n.width=n.right-n.left,n.height=n.bottom-n.top,n):t.getBoundingClientRect()}return t.getBoundingClientRect()}function N(){var t,r=o,s=i.substr(o).search(/\S/);if(o+=s,s<0||o>=a)return!0;A.setStart(e,o),A.setEnd(e,o+1),t=x(A);var v=!1;if((f||h>1)&&(s=i.substr(o).search(/\s/))>=0){A.setEnd(e,o+s);var w=x(A);w.bottom==t.bottom&&(t=w,v=!0,o+=s)}if(!v){if((s=function n(r,i,o){A.setEnd(e,i);var a=x(A);return a.bottom!=t.bottom&&r<i?n(r,r+i>>1,i):a.right!=t.right?(t=a,i<o?n(i,i+o>>1,o):i):i}(o,Math.min(a,o+g),a))==o)return!0;if(o=s,0===(s=A.toString().search(/\s+$/)))return!1;s>0&&(A.setEnd(e,A.startOffset+s),t=x(A))}Di&&(t=A.getClientRects()[0]);var y=A.toString();if(/^(?:pre|pre-wrap)$/i.test(p)){if(/\t/.test(y)){var B=0;for(s=r;s<A.startOffset;++s){var N=i.charCodeAt(s);9==N?B+=8-B%8:10==N||13==N?B=0:B++}for(;(s=y.search("\t"))>=0;){var _="        ".substr(0,8-(B+s)%8);y=y.substr(0,s)+_+y.substr(s+1)}}}else y=y.replace(/\s+/g," ");v||(m=t.bottom),function(t,e){if(Di&&!isNaN(u)){var r=to(c),i=(e.top+e.bottom-r)/2;e={top:i,right:e.right,bottom:i+r,left:e.left,height:r,width:e.right-e.left}}switch(d){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,(function(t){return t.toUpperCase()}))}var o=new ji(t,new b([e.left,e.top],[e.width,e.height]),{font:c,fill:{color:l}});n.append(o)}(y,t)}}function Ho(t,e){var n=ho(t);if(oo(n),!/^(style|script|link|meta|iframe|col|colgroup)$/i.test(t.tagName)&&null!=Ri._clipbox){var r=parseFloat(po(n,"opacity")),i=po(n,"visibility"),o=po(n,"display");if(0!==r&&"hidden"!=i&&"none"!=o){var a,s=function(t){var e=po(t,"transform");if("none"==e)return null;var n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(e);if(n){var r=po(t,"transform-origin");return{matrix:n=n[1].split(/\s*,\s*/g).map(parseFloat),origin:r=r.split(/\s+/g).map(parseFloat)}}}(n),u=po(n,"z-index");(s||r<1)&&"auto"==u&&(u=0),a=function(t,e,n){var r;"auto"!=n?(r=Ri._stackingContext.group,n=parseFloat(n)):(r=e,n=0);for(var i=r.children,o=0;o<i.length&&!(null!=i[o]._dom_zIndex&&i[o]._dom_zIndex>n);++o);var a=new Gr;if(r.insert(o,a),a._dom_zIndex=n,r!==e&&Ri._clipbox){var s=Ri._matrix.invert(),u=Ri._clipbox.transformCopy(s);xo(a,xi.fromRect(u))}return a}(0,e,u),r<1&&a.opacity(r*a.opacity()),lo(t,n,a),s?vo(t,(function(){go(t.style,"transform","none","important"),go(t.style,"transition","none","important"),"static"==po(n,"position")&&go(t.style,"position","relative","important");var e=t.getBoundingClientRect(),r=e.left+s.origin[0],i=e.top+s.origin[1],o=[1,0,0,1,-r,-i];o=Ro(o,s.matrix),o=Ro(o,[1,0,0,1,r,i]),o=Bo(a,o),Ri._matrix=Ri._matrix.multiplyCopy(o),Uo(t,a)})):Uo(t,a),Ao()}}}function Ro(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=e[0],c=e[1],l=e[2],A=e[3];return[n*u+r*l,n*c+r*A,i*u+o*l,i*c+o*A,a*u+s*l+e[4],a*c+s*A+e[5]]}var Do=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new w),this._radius=a(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radius=function(t){return a(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return a(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(jr(ki,["center"])),jo={fill:0,stroke:1,fillAndStroke:2,invisible:3,fillAndClip:4,strokeAndClip:5,fillStrokeClip:6,clip:7},zo={dash:[4],dashDot:[4,2,1,2],dot:[1,2],longDash:[8,2],longDashDot:[8,2,1,2],longDashDotDot:[8,2,1,2,1,2],solid:[]},Ko={butt:0,round:1,square:2},qo={miter:0,round:1,bevel:2};function Vo(t,e){var n=[],r={},i=t.options;function o(t,e,n){return n||(n=i),n.pdf&&null!=n.pdf[t]?n.pdf[t]:e}var a=o("multiPage"),s=o("imgDPI");function u(){if(!(--c>0)){var n=new _n({producer:o("producer"),title:o("title"),author:o("author"),subject:o("subject"),keywords:o("keywords"),creator:o("creator"),date:o("date"),autoPrint:o("autoPrint")});a?t.children.forEach(r):r(t),e(n.render(),n)}function r(t){var e=t.options,r=function(t){var e,n=!1,r=h.unit(),i=null;do{e=!1,t=l(t)}while(t&&e);return{root:t,bbox:i};function o(t){return e=!0,t}function a(t){return t.visible()&&t.opacity()>0&&(Jo(t.fill())||Jo(t.stroke()))}function s(t){for(var e=[],n=0;n<t.length;++n){var r=l(t[n]);null!=r&&e.push(r)}return e}function u(t,e){var i=n,o=r;t.transform()&&(r=r.multiplyCopy(t.transform().matrix()));var a=t.clip();a&&(a=a.bbox())&&(a=a.bbox(r),n=n?b.intersect(n,a):a);try{return e()}finally{n=i,r=o}}function c(t){if(null==n)return!1;var e=t.rawBBox().bbox(r);return n&&e&&(e=b.intersect(e,n)),e}function l(e){return u(e,(function(){if(!(e instanceof Gr||e instanceof Ni)){var n=c(e);if(!n)return o(null);i=i?b.union(i,n):n}return Wo({Path:function(t){return 0!==t.segments.length&&a(t)?t:o(null)},MultiPath:function(t){if(!a(t))return o(null);var e=new Ni(t.options);return e.paths=s(t.paths),0===e.paths.length?o(null):e},Circle:function(t){return a(t)?t:o(null)},Arc:function(t){return a(t)?t:o(null)},Text:function(t){return/\S/.test(t.content())&&a(t)?t:o(null)},Image:function(t){return t.visible()&&t.opacity()>0?t:o(null)},Group:function(e){if(!(e.visible()&&e.opacity()>0))return o(null);var n=new Gr(e.options);return n.children=s(e.children),n._pdfLink=e._pdfLink,e===t||0!==n.children.length||e._pdfLink?n:o(null)},Rect:function(t){return a(t)?t:o(null)}},e)}))}}(t),i=r.bbox;t=r.root;var a=o("paperSize",o("paperSize","auto"),e),s=!1;if("auto"==a)if(i){var u=i.getSize();a=[u.width,u.height],s=!0;var c=i.getOrigin();(r=new Gr).transform(new h(1,0,0,1,-c.x,-c.y)),r.append(t),t=r}else a="A4";Xo(t,n.addPage({paperSize:a,margin:o("margin",o("margin"),e),addMargin:s,landscape:o("landscape",o("landscape",!1),e)}),n)}}bn={},t.traverse((function(t){Wo({Image:function(t){var e=t.src();if(s){var n=t.bbox().size,i=r[e];n={width:Math.ceil(n.width*s/72),height:Math.ceil(n.height*s/72)},i&&(n.width=Math.max(i.width,n.width),n.height=Math.max(i.height,n.height)),r[e]=n}else r[e]=null},Text:function(t){var e=ar(or(t.options.font));n.indexOf(e)<0&&n.push(e)}},t)}));var c=2;xn(n,u),Nn(r,u,{jpegQuality:o("jpegQuality",.92),keepPNG:o("keepPNG",!1)})}function Go(t,e){Vo(t,(function(t){e("data:application/pdf;base64,"+t.base64())}))}function Wo(t,e){var n=t[e.nodeType];return n?n.call.apply(n,arguments):e}function Xo(t,e,n){t.options._pdfDebug&&e.comment("BEGIN: "+t.options._pdfDebug);var r=t.transform(),i=t.opacity();if(e.save(),null!=i&&i<1&&e.setOpacity(i),function(t,e){var n=t.stroke&&t.stroke();if(!n)return;var r=n.color;if(r){if(null==(r=ua(r)))return;e.setStrokeColor(r.r,r.g,r.b),1!=r.a&&e.setStrokeOpacity(r.a)}var i=n.width;if(null!=i){if(0===i)return;e.setLineWidth(i)}var o=n.dashType;o&&e.setDashPattern(zo[o],0);var a=n.lineCap;a&&e.setLineCap(Ko[a]);var s=n.lineJoin;s&&e.setLineJoin(qo[s]);var u=n.opacity;null!=u&&e.setStrokeOpacity(u)}(t,e),function(t,e){var n=t.fill&&t.fill();if(!n)return;if(n instanceof ki)return;var r=n.color;if(r){if(null==(r=ua(r)))return;e.setFillColor(r.r,r.g,r.b),1!=r.a&&e.setFillOpacity(r.a)}var i=n.opacity;null!=i&&e.setFillOpacity(i)}(t,e),r){var o=r.matrix();e.transform(o.a,o.b,o.c,o.d,o.e,o.f)}!function(t,e,n){var r=t.clip();r&&(Zo(r,e,n),e.clip())}(t,e,n),Wo({Path:ta,MultiPath:ea,Circle:na,Arc:ra,Text:ia,Image:aa,Group:oa,Rect:sa},t,e,n),e.restore(),t.options._pdfDebug&&e.comment("END: "+t.options._pdfDebug)}function Jo(t){return t&&(t instanceof ki||t.color&&!/^(none|transparent)$/i.test(t.color)&&(null==t.width||t.width>0)&&(null==t.opacity||t.opacity>0))}function Yo(t,e,n,r){var i=t.fill();if(i instanceof ki){r?e.clipStroke():e.clip();var o,a,s=i instanceof Do;s?(o={x:i.center().x,y:i.center().y,r:0},a={x:i.center().x,y:i.center().y,r:i.radius()}):(o={x:i.start().x,y:i.start().y},a={x:i.end().x,y:i.end().y});var u=i.stops.elements().map((function(t){var e=t.offset();e=/%$/.test(e)?parseFloat(e)/100:parseFloat(e);var n=ua(t.color());return n.a*=t.opacity(),{offset:e,color:n}}));u.unshift(u[0]),u.push(u[u.length-1]);var c={userSpace:i.userSpace(),type:s?"radial":"linear",start:o,end:a,stops:u},l=t.rawBBox(),A=l.topLeft(),f=l.getSize();return l={left:A.x,top:A.y,width:f.width,height:f.height},e.gradient(c,l),!0}}function $o(t,e,n){Jo(t.fill())&&Jo(t.stroke())?Yo(t,e,0,!0)||e.fillStroke():Jo(t.fill())?Yo(t,e,0,!1)||e.fill():Jo(t.stroke())?e.stroke():e.nop()}function Zo(t,e,n){var r=t.segments;if(0!==r.length&&!function(t,e){var n=t.segments;if(4==n.length&&t.options.closed){for(var r=[],i=0;i<n.length;++i){if(n[i].controlIn())return!1;r[i]=n[i].anchor()}if(r[0].y==r[1].y&&r[1].x==r[2].x&&r[2].y==r[3].y&&r[3].x==r[0].x||r[0].x==r[1].x&&r[1].y==r[2].y&&r[2].x==r[3].x&&r[3].y==r[0].y)return e.rect(r[0].x,r[0].y,r[2].x-r[0].x,r[2].y-r[0].y),!0}}(t,e)){for(var i,o=0;o<r.length;++o){var a=r[o],s=a.anchor();if(i){var u=i.controlOut(),c=a.controlIn();u&&c?e.bezier(u.x,u.y,c.x,c.y,s.x,s.y):e.lineTo(s.x,s.y)}else e.moveTo(s.x,s.y);i=a}t.options.closed&&e.close()}}function ta(t,e,n){Zo(t,e),$o(t,e)}function ea(t,e,n){for(var r=t.paths,i=0;i<r.length;++i)Zo(r[i],e);$o(t,e)}function na(t,e,n){var r=t.geometry();e.circle(r.center.x,r.center.y,r.radius),$o(t,e)}function ra(t,e,n){var r=t.geometry().curvePoints();e.moveTo(r[0].x,r[0].y);for(var i=1;i<r.length;)e.bezier(r[i].x,r[i++].y,r[i].x,r[i++].y,r[i].x,r[i++].y);$o(t,e)}function ia(t,e){var n,r=or(t.options.font),i=t._position;t.fill()&&t.stroke()?n=jo.fillAndStroke:t.fill()?n=jo.fill:t.stroke()&&(n=jo.stroke),e.transform(1,0,0,-1,i.x,i.y+r.fontSize),e.beginText(),e.setFont(ar(r),r.fontSize),e.setTextRenderingMode(n),e.showText(t.content(),t._pdfRect?t._pdfRect.width():null),e.endText()}function oa(t,e,n){t._pdfLink&&e.addLink(t._pdfLink.url,t._pdfLink);for(var r=t.children,i=0;i<r.length;++i)Xo(r[i],e,n)}function aa(t,e){var n=t.src();if(n){var r=t.rect(),i=r.getOrigin(),o=r.getSize();e.transform(o.width,0,0,-o.height,i.x,i.y+o.height),e.drawImage(n)}}function sa(t,e,n){var r=t.geometry();e.rect(r.origin.x,r.origin.y,r.size.width,r.size.height),$o(t,e)}function ua(t){var e=Qr(t,!0);return e?e.toRGB():null}function ca(t,e){var n=fr();for(var r in e)"margin"==r&&t.options.pdf&&t.options.pdf._ignoreMargin||t.options.set("pdf."+r,e[r]);return Go(t,n.resolve),n}function la(t,e,n){void 0===n&&(n={});var r=da;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(fa()&&(r=pa),navigator.msSaveBlob&&(r=ha)),r(t,e,n)}var Aa=function(){return document.createElement("a")},fa=function(){return"download"in Aa()};function ha(t,e){var n=t;if("string"===typeof t){for(var r=t.split(";base64,"),i=r[0],o=atob(r[1]),a=new Uint8Array(o.length),s=0;s<o.length;s++)a[s]=o.charCodeAt(s);n=new Blob([a.buffer],{type:i})}navigator.msSaveBlob(n,e)}function pa(t,e){var n=t;window.Blob&&t instanceof Blob&&(n=URL.createObjectURL(t));var r=Aa();r.download=e,r.href=n;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(i),setTimeout((function(){return URL.revokeObjectURL(n)}))}function da(t,e,n){if(n.proxyURL){var r=document.createElement("form");r.setAttribute("action",n.proxyURL),r.setAttribute("method","POST"),r.setAttribute("target",n.proxyTarget||"_self");var i=n.proxyData||{};i.fileName=e;var o=t.split(";base64,");for(var a in i.contentType=o[0].replace("data:",""),i.base64=o[1],i)if(i.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",i[a]),r.appendChild(s)}document.body.appendChild(r),r.submit(),document.body.removeChild(r)}}String.fromCharCode;var ga=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ga(e,t),e.prototype.render=function(){return null},e.propTypes={left:i.oneOfType([i.number,i.string]),top:i.oneOfType([i.number,i.string]),right:i.oneOfType([i.number,i.string]),bottom:i.oneOfType([i.number,i.string])},e}(r.Component),va=["bottom","left","right","top"];function wa(t){var e=r.Children.toArray(t.children).find((function(t){return t&&t.type===ma}));return e?function(t){for(var e={},n=0;n<va.length;n++){var r=va[n],i=t.props[r];void 0!==i&&(e[r]=i)}return e}(e):t.margin}var ya,ba,Ba=n(57),xa=function(){function t(t,e,n,i,o){void 0===o&&(o={});var a=this;this.drawDOM=t,this.exportPDF=e,this.saveAs=n,this.domElement=i,this.options=o,this.convertPageTemplateToHtml=function(t){return"<span>"+Ba.renderToStaticMarkup(r.createElement(a.options.pageTemplate,{pageNum:t.pageNum,totalPages:t.totalPages}))+"</span>"}}return t.prototype.savePDF=function(t){var e=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(t){return e.exportPDF(t,e.getPDFOptions())})).then((function(t){return e.saveAs(t,e.options.fileName||"export.pdf",e.getSaveOptions())}));t&&n.then(t,t)},t.prototype.getDrawOptions=function(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}},t.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"KendoReact PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}},t.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},t}(),Na=["DhrPzK8=","CgfYC2u=","u2vLia==","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","q2X1D1y=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","zg9JC1vYBa==","zxHWAxj5rgf0zq==","rMrNr2W=","z3jVDxa=","wwPKqvC=","Dg9mB2nHBgvtDhjPBMC=","BMfTzq==","Cwzus0e=","tM8GBgLJzw5ZzsbMB3vUzc4k","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","veTjqvO=","swXxDwm=","D09PC2e=","re5rCfy=","AgfZ","DhLWzq==","D1vfwvu=","sKPkD2e=","A0XWz3i=","DMvYC2LVBG==","y2vzBKi=","C2v0","BgvUz3rO","Eu5Yt2y=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zwfwqLi=","z3jVDxbfBMq=","ChjVzhvJDhm=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","BMnyuLm=","BK1VugS=","zNvUy3rPB24=","s1LMuNe=","zgf0yq==","yK9pqNy=","BfbuEg0=","DgLTzxn0yw1W","D2fYBG==","r1zxqLq=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","B2jQzwn0","uNHkrKi=","CgfJA2fNzu5HBwu=","y29Kzq==","C3z3CMm=","D29NvNG=","uhjVz3jLC3mG","BgLJzw5ZAw5Nrg9JC1vYBa==","v0nkq0q=","ChvIBgLZAerHDgu=","ChjVzhvJDenVzgvZ","z2v0","zMLUza==","wvLpyMG=","A3fbB0C=","ChjVzhvJDe5HBwu="];ya=Na,ba=334,function(t){for(;--t;)ya.push(ya.shift())}(++ba);var _a=function t(e,n){var r=Na[e-=0];if(void 0===t.QMJAKQ){t.PnYrIu=function(t){for(var e=function(t){for(var e,n,r=String(t).replace(/=+$/,""),i="",o=0,a=0;n=r.charAt(a++);~n&&(e=o%4?64*e+n:n,o++%4)?i+=String.fromCharCode(255&e>>(-2*o&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(t),n=[],r=0,i=e.length;r<i;r++)n+="%"+("00"+e.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},t.TLHuwf={},t.QMJAKQ=!0}var i=t.TLHuwf[e];return void 0===i?(r=t.PnYrIu(r),t.TLHuwf[e]=r):r=i,r},Ca={data:"  {}  "},Sa=new Map;function Ea(t){if(Sa[_a("0x3a")](t[_a("0x32")])){if(_a("0x11")===_a("0x11"))return Sa[_a("0x21")](t[_a("0x32")])}var e,n=t[_a("0x1")]?" v"+t[_a("0x1")]:"",r=t[_a("0x32")]+n,i=JSON[_a("0x27")](Ca[_a("0xf")]),o=!i[_a("0x12")],a=function(t,e){var n=t[_a("0x9")];if(!n||!n[_a("0x4")]){if(_a("0x1b")===_a("0x1b"))return null}var r=new Set(e);return n[_a("0x22")]((function(t){if(_a("0x2a")!==_a("0x1a"))return r[_a("0x3a")](t[_a("0x19")])}))}(i,t[_a("0x20")]);if(o)if(_a("0x2")!==_a("0xe"))e={type:0,packageName:r,docsUrl:t[_a("0x1d")]};else;else if(_a("0x10")===_a("0x23"));else if(a){if(_a("0x2e")===_a("0xb"));else if(a[_a("0x29")]<t[_a("0x1f")])if(_a("0x24")!==_a("0x24"));else e={type:2,packageName:r,publishDate:Fa(t[_a("0x1f")]),expiryDate:Fa(a[_a("0x29")]),docsUrl:t[_a("0x1d")]}}else if(_a("0x39")===_a("0x5"));else e={type:1,packageName:r,docsUrl:t[_a("0x1d")]};if(e&&typeof console===_a("0x16"))if(_a("0x7")===_a("0x3d"));else{var s=_a("0x1c")+t[_a("0x25")],u=typeof console[_a("0x2f")]===_a("0xd");if(u)if(_a("0x3c")!==_a("0x37"))console[_a("0x2f")](s);else;else if(_a("0x33")===_a("0x26"));else console[_a("0x13")](s);if(console[_a("0x13")](La(e)),u)if(_a("0x30")!==_a("0x1e"))console[_a("0x8")]();else;}var c=!e;return Sa[_a("0x3")](t[_a("0x32")],c),c}function La(t){var e=_a("0x2b")+t[_a("0x18")]+"\n";if(2===t[_a("0x3b")])if(_a("0x0")===_a("0x36"));else e+=_a("0x6")+t[_a("0x2d")][_a("0x31")]()+_a("0xa")+t[_a("0x1f")][_a("0x31")]()+".\n";else if(0===t[_a("0x3b")])if(_a("0x14")!==_a("0x38"))e+=_a("0x34");else;else if(1===t[_a("0x3b")])if(_a("0x17")===_a("0xc"));else e+=_a("0x15");return e+=_a("0x28")+t[_a("0x2c")]+_a("0x35")}function Fa(t){return new Date(1e3*t)}var ka={name:"@progress/kendo-react-pdf",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1620728372,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},Ua=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e){var n=t.call(this,e)||this;return Ea(ka),n}Ua(e,t),e.prototype.render=function(){var t=this;return r.createElement("div",{ref:function(e){t.rootElForPDF=e}},this.props.children)},e.prototype.save=function(t){new xa(Xi,ca,la,this.rootElForPDF,this.getOptions()).savePDF(t)},e.prototype.getOptions=function(){return Object.assign({},this.props,{margin:wa(this.props)})},e.propTypes={author:i.string,avoidLinks:i.oneOfType([i.bool,i.string]),forcePageBreak:i.string,keepTogether:i.string,creator:i.string,date:i.instanceOf(Date),imageResolution:i.number,fileName:i.string,forceProxy:i.bool,keywords:i.string,landscape:i.bool,margin:i.oneOfType([i.string,i.number,i.shape({left:i.oneOfType([i.number,i.string]),top:i.oneOfType([i.number,i.string]),right:i.oneOfType([i.number,i.string]),bottom:i.oneOfType([i.number,i.string])})]),pageTemplate:i.any,paperSize:i.any,repeatHeaders:i.bool,scale:i.number,proxyData:i.any,proxyURL:i.string,proxyTarget:i.string,producer:i.string,subject:i.string,title:i.string}}(r.Component);function Qa(t,e,n){void 0===e&&(e={}),new xa(Xi,ca,la,t,e).savePDF(n)}var Ia=n(14),Pa={},Oa=function(t){return String(t).trim().split(" ")},Ta=function(t){return function(e){return function(t,e){var n=Oa(e);return Boolean(Oa(t.className).find((function(t){return n.indexOf(t)>=0})))}(e,t)}},Ma=function(t){return Pa[t]||(Pa[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),Pa[t]},Ha=function t(e,n,r){if(void 0===r&&(r=!0),e){if(r&&n(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=t(e,n);if(i)return i}e=e.nextSibling}}},Ra="k-grid-header",Da="k-grid-footer",ja=Ma("TABLE"),za=function(t){return t?"locked":"wrap"},Ka=function(){function t(t){this.element=t,this.list=Ha(t,Ta("k-grid-container"))}return t.prototype.content=function(t){return Ha(this.list,Ta("k-grid-content"+(t?"-locked":"")))},t.prototype.header=function(t){return this.headerWrap=this.headerWrap||Ha(this.element,Ta(Ra)),Ha(this.headerWrap,Ta("k-grid-header-"+za(t)))},t.prototype.footer=function(t){return this.footerWrap=this.footerWrap||Ha(this.element,Ta(Da)),Ha(this.footerWrap,Ta("k-grid-footer-"+za(t)))},t.prototype.table=function(){return Ha(this.element,ja)},t}(),qa="k-first",Va=function(t,e){for(var n=e.length,r=0;r<n;r++)t.appendChild(e[r].cloneNode(!0))},Ga=function(t){var e=document.createElement("div");return e.className="k-widget k-grid",e.appendChild(t),e},Wa=function(t){var e=t.length,n=t[0].cloneNode(!0),r=n.rows.length;if(e>1)for(var i=0;i<r;i++)for(var o=1;o<e;o++)Va(n.rows[i],t[o].rows[i].cells);return n},Xa=function(t,e,n,r){for(var i=document.createElement("table"),o=t[0].cloneNode(!0),a=1;a<t.length;a++)Va(o,t[a].querySelectorAll("col"));var s=Wa(e),u=Wa(n);if(s.className="k-grid-header",function(t,e){if(e.length>1&&t.rows.length>1)for(var n=1;n<t.rows.length;n++){var r=e[0].rows[n].cells.length,i=t.rows[n].cells[r];-1===String(i.className).indexOf(qa)&&(i.className+=" k-first")}}(s,e),i.appendChild(o),i.appendChild(s),i.appendChild(u),r.length){var c=Wa(r);c.className="k-grid-footer",i.appendChild(c)}return Ga(i)};function Ja(t){return function(e,n,i,o,a){return void 0===n&&(n={}),function(t,e,n,i,o,a){void 0===n&&(n={});var s,u,c;function l(){(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),u=document.createElement("div"),s.appendChild(u),document.body.appendChild(s),Ia.render(p(),u,A)}function A(){t(h(),n,f)}function f(){document.body.removeChild(s),document.body.removeChild(c),s=c=void 0,i&&i()}function h(){(c=document.createElement("div")).className="k-grid-pdf-export-element";var t=function(t){var e,n=new Ka(t),r=n.content();if(r){var i=[r.querySelector("colgroup")],o=[n.header().querySelector("thead")],a=[r.querySelector("tbody")],s=n.footer(),u=s?[s.querySelector("tfoot")]:[];e=Xa(i,o,a,u)}else e=Ga(n.table().cloneNode(!0));return e}(u);return c.appendChild(t),document.body.appendChild(c),t}function p(){var t=o&&{data:o,total:o.length,pageSize:o.length,skip:0},n={style:Object.assign({},e.props.style,{width:"1000px"})},i=Object.assign({},t,n);if(a&&a.length>0){var s=function(t){return r.Children.toArray(t.props.children).filter((function(t){return t&&"KendoReactGridColumn"!==t.type.displayName}))}(e);return r.cloneElement(e,i,a.concat(s))}return r.cloneElement(e,i)}l()}(t,e,n,i,o,a)}}var Ya=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$a=(function(t){function e(e){var n=t.call(this,e)||this;return n.saveGridPDF=Ja(n.getSavePDF()),n}Ya(e,t),e.prototype.render=function(){return null},e.prototype.save=function(t,e){this.saveGridPDF(this.getGrid(),Object.assign({},this.props,{margin:wa(this.props)}),e,t,this.getCustomColumns())},e.prototype.getSavePDF=function(){return Qa},e.prototype.getGrid=function(){return r.Children.toArray(this.props.children).find((function(t){return t&&"KendoReactGrid"===t.type.displayName}))},e.prototype.getCustomColumns=function(){return r.Children.toArray(this.props.children).filter((function(t){return t&&"KendoReactGridColumn"===t.type.displayName}))},e.propTypes={author:i.string,avoidLinks:i.oneOfType([i.bool,i.string]),forcePageBreak:i.string,keepTogether:i.string,creator:i.string,date:i.instanceOf(Date),imageResolution:i.number,fileName:i.string,forceProxy:i.bool,keywords:i.string,landscape:i.bool,margin:i.oneOfType([i.string,i.number,i.shape({left:i.oneOfType([i.number,i.string]),top:i.oneOfType([i.number,i.string]),right:i.oneOfType([i.number,i.string]),bottom:i.oneOfType([i.number,i.string])})]),pageTemplate:i.any,paperSize:i.any,repeatHeaders:i.bool,scale:i.number,proxyData:i.any,proxyURL:i.string,proxyTarget:i.string,producer:i.string,subject:i.string,title:i.string}}(r.Component),"k-grid-header"),Za="k-grid-footer",ts=Ma("TABLE"),es=function(){function t(t){this.element=t,this.list=Ha(t,Ta("k-grid"))}return t.prototype.content=function(){return Ha(this.list,Ta("k-grid"))},t.prototype.header=function(){return this.headerWrap=this.headerWrap||Ha(this.element,Ta($a)),Ha(this.headerWrap,Ta("k-grid-header"))},t.prototype.footer=function(){return this.footerWrap=this.footerWrap||Ha(this.element,Ta(Za)),Ha(this.footerWrap,Ta("k-grid-footer"))},t.prototype.table=function(){return Ha(this.element,ts)},t}();function ns(t){return function(e,n,i,o,a){return void 0===n&&(n={}),function(t,e,n,i,o,a){void 0===n&&(n={});var s,u,c;function l(){(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),u=document.createElement("div"),s.appendChild(u),document.body.appendChild(s),Ia.render(p(),u,A)}function A(){t(h(),n,f)}function f(){document.body.removeChild(s),document.body.removeChild(c),s=c=void 0,i&&i()}function h(){(c=document.createElement("div")).className="k-treelist-pdf-export-element";var t=function(t){var e,n=new es(t),r=n.content(),i=n.header();if(i.childNodes.length>1&&i.removeChild(i.childNodes[1]),i.childNodes[0].childNodes.forEach((function(t){return t.style.top=0})),r){var o=[r.querySelector("colgroup")],a=[i],s=[r.querySelector("tbody")],u=n.footer(),c=u?[u.querySelector("tfoot")]:[];e=Xa(o,a,s,c)}else e=Ga(n.table().cloneNode(!0));return e}(u);return c.appendChild(t),document.body.appendChild(c),c}function p(){var t=n.allPages&&o?{data:o,take:Number.MAX_VALUE,skip:0}:{},i={style:Object.assign({},e.props.style,{width:"1000px"})},s=Object.assign({},t,i);return a&&a.length>0?r.cloneElement(e,Object.assign({},s,{columns:a})):r.cloneElement(e,s)}l()}(t,e,n,i,o,a)}}var rs=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){function e(e){var n=t.call(this,e)||this;return n.saveTreeListPDF=ns(n.getSavePDF()),n}rs(e,t),e.prototype.render=function(){return null},e.prototype.save=function(t,e,n){this.saveTreeListPDF(this.getTreeList(),Object.assign({},this.props,{margin:wa(this.props)}),n,t,e||[])},e.prototype.getSavePDF=function(){return Qa},e.prototype.getTreeList=function(){var t=this.props.children;if(t&&t.props.data&&t.props.columns)return this.props.children},e.propTypes={author:i.string,avoidLinks:i.oneOfType([i.bool,i.string]),forcePageBreak:i.string,keepTogether:i.string,creator:i.string,date:i.instanceOf(Date),imageResolution:i.number,fileName:i.string,forceProxy:i.bool,keywords:i.string,landscape:i.bool,margin:i.oneOfType([i.string,i.number,i.shape({left:i.oneOfType([i.number,i.string]),top:i.oneOfType([i.number,i.string]),right:i.oneOfType([i.number,i.string]),bottom:i.oneOfType([i.number,i.string])})]),pageTemplate:i.any,paperSize:i.any,repeatHeaders:i.bool,scale:i.number,proxyData:i.any,proxyURL:i.string,proxyTarget:i.string,producer:i.string,subject:i.string,title:i.string,allPages:i.bool}}(r.Component)},,,,,function(t,e,n){"use strict";var r=n(4),i=n(7),o=n(17),a=n.n(o),s=n(3),u=n.n(s),c=n(26);var l=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return null!=t})).reduce((function(t,e){if("function"!==typeof e)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r),e.apply(this,r)}}),null)};function A(t){return!t||"#"===t.trim()}var f=u.a.forwardRef((function(t,e){var n=t.as,o=void 0===n?"a":n,a=t.disabled,s=t.onKeyDown,c=Object(i.a)(t,["as","disabled","onKeyDown"]),f=function(t){var e=c.href,n=c.onClick;(a||A(e))&&t.preventDefault(),a?t.stopPropagation():n&&n(t)};return A(c.href)&&(c.role=c.role||"button",c.href=c.href||"#"),a&&(c.tabIndex=-1,c["aria-disabled"]=!0),u.a.createElement(o,Object(r.a)({ref:e},c,{onClick:f,onKeyDown:l((function(t){" "===t.key&&(t.preventDefault(),f(t))}),s)}))}));f.displayName="SafeAnchor";var h=f,p=u.a.forwardRef((function(t,e){var n=t.bsPrefix,o=t.variant,s=t.size,l=t.active,A=t.className,f=t.block,p=t.type,d=t.as,g=Object(i.a)(t,["bsPrefix","variant","size","active","className","block","type","as"]),m=Object(c.a)(n,"btn"),v=a()(A,m,l&&"active",o&&m+"-"+o,f&&m+"-block",s&&m+"-"+s);if(g.href)return u.a.createElement(h,Object(r.a)({},g,{as:d,ref:e,className:a()(v,g.disabled&&"disabled")}));e&&(g.ref=e),p?g.type=p:d||(g.type="button");var w=d||"button";return u.a.createElement(w,Object(r.a)({},g,{className:v}))}));p.displayName="Button",p.defaultProps={variant:"primary",active:!1,disabled:!1};e.a=p},function(t,e,n){"use strict";var r=n(4),i=n(7),o=n(17),a=n.n(o),s=n(3),u=n.n(s),c=n(26);function l(t,e,n){var r=(t-e)/(n-e)*100;return Math.round(1e3*r)/1e3}function A(t,e){var n,o=t.min,s=t.now,c=t.max,A=t.label,f=t.srOnly,h=t.striped,p=t.animated,d=t.className,g=t.style,m=t.variant,v=t.bsPrefix,w=Object(i.a)(t,["min","now","max","label","srOnly","striped","animated","className","style","variant","bsPrefix"]);return u.a.createElement("div",Object(r.a)({ref:e},w,{role:"progressbar",className:a()(d,v+"-bar",(n={},n["bg-"+m]=m,n[v+"-bar-animated"]=p,n[v+"-bar-striped"]=p||h,n)),style:Object(r.a)({width:l(s,o,c)+"%"},g),"aria-valuenow":s,"aria-valuemin":o,"aria-valuemax":c}),f?u.a.createElement("span",{className:"sr-only"},A):A)}var f=u.a.forwardRef((function(t,e){var n=t.isChild,o=Object(i.a)(t,["isChild"]);if(o.bsPrefix=Object(c.a)(o.bsPrefix,"progress"),n)return A(o,e);var l=o.min,f=o.now,h=o.max,p=o.label,d=o.srOnly,g=o.striped,m=o.animated,v=o.bsPrefix,w=o.variant,y=o.className,b=o.children,B=Object(i.a)(o,["min","now","max","label","srOnly","striped","animated","bsPrefix","variant","className","children"]);return u.a.createElement("div",Object(r.a)({ref:e},B,{className:a()(y,v)}),b?function(t,e){var n=0;return u.a.Children.map(t,(function(t){return u.a.isValidElement(t)?e(t,n++):t}))}(b,(function(t){return Object(s.cloneElement)(t,{isChild:!0})})):A({min:l,now:f,max:h,label:p,srOnly:d,striped:g,animated:m,bsPrefix:v,variant:w},e))}));f.displayName="ProgressBar",f.defaultProps={min:0,max:100,animated:!1,isChild:!1,srOnly:!1,striped:!1};e.a=f}]]);
//# sourceMappingURL=3.30e2c0c6.chunk.js.map