]> _ Git - fluidbook-html5.git/commitdiff
wip #6800 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Mar 2024 11:29:43 +0000 (12:29 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 15 Mar 2024 11:29:43 +0000 (12:29 +0100)
js/libs/canvg/canvg.min.js [deleted file]
js/libs/fluidbook/fluidbook.loader.js
js/libs/fluidbook/fluidbook.support.js
js/libs/html2pdf/html2pdf.min.js

diff --git a/js/libs/canvg/canvg.min.js b/js/libs/canvg/canvg.min.js
deleted file mode 100644 (file)
index b411300..0000000
+++ /dev/null
@@ -1 +0,0 @@
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).canvg={})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){var e={exports:{}};return t(e,e.exports),e.exports}function c(t){try{return!!t()}catch(t){return!0}}function n(t){return a?o.createElement(t):{}}function g(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function l(e,r){try{x(d,e,r)}catch(t){d[e]=r}return r}function u(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++T+E).toString(36)}function h(t){return A(C,t)||(P&&A(M,t)?C[t]=M[t]:C[t]=N("Symbol."+t)),C[t]}var i=function(t){return t&&t.Math==Math&&t},d=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),f=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=function(t){return"object"==typeof t?null!==t:"function"==typeof t},o=d.document,a=p(o)&&p(o.createElement),s=!f&&!c(function(){return 7!=Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}),R=function(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t},y=function(t,e){if(!p(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!p(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!p(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!p(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},v=Object.defineProperty,m={f:f?v:function(t,e,r){if(R(t),e=y(e,!0),R(r),s)try{return v(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},x=f?function(t,e,r){return m.f(t,e,g(1,r))}:function(t,e,r){return t[e]=r,t},b="__core-js_shared__",S=d[b]||l(b,{}),w=r(function(t){(t.exports=function(t,e){return S[t]||(S[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),k={}.hasOwnProperty,A=function(t,e){return k.call(t,e)},T=0,E=Math.random(),P=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())}),O=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,C=w("wks"),M=d.Symbol,N=O?M:M&&M.withoutSetter||u,_={};_[h("toStringTag")]="z";var D="[object z]"===String(_),V=Function.toString;"function"!=typeof S.inspectSource&&(S.inspectSource=function(t){return V.call(t)});var I,L,j,F,z,B,U,H,X=S.inspectSource,Y=d.WeakMap,W="function"==typeof Y&&/native code/.test(X(Y)),G=w("keys"),q=function(t){return G[t]||(G[t]=u(t))},Q={},$=d.WeakMap;U=W?(I=S.state||(S.state=new $),L=I.get,j=I.has,F=I.set,z=function(t,e){return e.facade=t,F.call(I,t,e),e},B=function(t){return L.call(I,t)||{}},function(t){return j.call(I,t)}):(H=q("state"),Q[H]=!0,z=function(t,e){return e.facade=t,x(t,H,e),e},B=function(t){return A(t,H)?t[H]:{}},function(t){return A(t,H)});var Z={set:z,get:B,has:U,enforce:function(t){return U(t)?B(t):z(t,{})},getterFor:function(r){return function(t){var e;if(!p(t)||(e=B(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}},K=r(function(t){var e=Z.get,u=Z.enforce,s=String(String).split("String");(t.exports=function(t,e,r,n){var i=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||A(r,"name")||x(r,"name",e),(n=u(r)).source||(n.source=s.join("string"==typeof e?e:""))),t!==d?(i?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=r:x(t,e,r)):o?t[e]=r:l(e,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||X(this)})}),J={}.toString,tt=function(t){return J.call(t).slice(8,-1)},et=h("toStringTag"),rt="Arguments"==tt(function(){return arguments}()),nt=D?tt:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),et))?t:rt?tt(e):"Object"==(t=tt(e))&&"function"==typeof e.callee?"Arguments":t};D||K(Object.prototype,"toString",D?{}.toString:function(){return"[object "+nt(this)+"]"},{unsafe:!0});function it(t){return Tt(Et(t))}function ot(t){return"function"==typeof t?t:void 0}function at(t,e){return arguments.length<2?ot(Ct[t])||ot(d[t]):Ct[t]&&Ct[t][e]||d[t]&&d[t][e]}function ut(t){return 0<t?Dt(_t(t),9007199254740991):0}function st(t,e){return(t=_t(t))<0?Vt(t+e,0):It(t,e)}function ct(t,e){var r,n=it(t),i=0,o=[];for(r in n)!A(Q,r)&&A(n,r)&&o.push(r);for(;e.length>i;)A(n,r=e[i++])&&(~Ft(o,r)||o.push(r));return o}function lt(t,e){var r,n,i,o,a=t.target,u=t.global,s=t.stat;if(r=u?d:s?d[a]||l(a,{}):(d[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(o=Kt(r,n))&&o.value:r[n],!Zt(u?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;!function(t,e){for(var r=Xt(e),n=m.f,i=Ot.f,o=0;o<r.length;o++){var a=r[o];A(t,a)||n(t,a,i(e,a))}}(i,o)}(t.sham||o&&o.sham)&&x(i,"sham",!0),K(r,n,i,t)}}function ht(t,e,r){for(var n in e)K(t,n,e[n],r);return t}function ft(t,e,r){t&&!A(t=r?t:t.prototype,ee)&&te(t,ee,{configurable:!0,value:e})}function pt(t){var e=at(t),t=m.f;f&&e&&!e[re]&&t(e,re,{configurable:!0,get:function(){return this}})}function yt(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function gt(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}function dt(t){return void 0!==t&&(ne.Array===t||oe[ie]===t)}function vt(n,i,t){if(yt(n),void 0===i)return n;switch(t){case 0:return function(){return n.call(i)};case 1:return function(t){return n.call(i,t)};case 2:return function(t,e){return n.call(i,t,e)};case 3:return function(t,e,r){return n.call(i,t,e,r)}}return function(){return n.apply(i,arguments)}}function mt(t){if(null!=t)return t[ae]||t["@@iterator"]||ne[nt(t)]}function xt(t){var e=t.return;return void 0!==e&&R(e.call(t)).value}function bt(t,e){this.stopped=t,this.result=e}function St(t,e,r){function n(t){return o&&xt(o),new bt(!0,t)}function i(t){return f?(R(t),y?g(t[0],t[1],n):g(t[0],t[1])):y?g(t,n):g(t)}var o,a,u,s,c,l,h=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),g=vt(e,h,1+f+y);if(p)o=t;else{if("function"!=typeof(p=mt(t)))throw TypeError("Target is not iterable");if(dt(p)){for(a=0,u=ut(t.length);a<u;a++)if((s=i(t[a]))&&s instanceof bt)return s;return new bt(!1)}o=p.call(t)}for(c=o.next;!(l=c.call(o)).done;){try{s=i(l.value)}catch(t){throw xt(o),t}if("object"==typeof s&&s&&s instanceof bt)return s}return new bt(!1)}var wt={}.propertyIsEnumerable,kt=Object.getOwnPropertyDescriptor,At={f:kt&&!wt.call({1:2},1)?function(t){t=kt(this,t);return!!t&&t.enumerable}:wt},Rt="".split,Tt=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==tt(t)?Rt.call(t,""):Object(t)}:Object,Et=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},Pt=Object.getOwnPropertyDescriptor,Ot={f:f?Pt:function(t,e){if(t=it(t),e=y(e,!0),s)try{return Pt(t,e)}catch(t){}if(A(t,e))return g(!At.f.call(t,e),t[e])}},Ct=d,Mt=Math.ceil,Nt=Math.floor,_t=function(t){return isNaN(t=+t)?0:(0<t?Nt:Mt)(t)},Dt=Math.min,Vt=Math.max,It=Math.min,Lt=function(u){return function(t,e,r){var n,i=it(t),o=ut(i.length),a=st(r,o);if(u&&e!=e){for(;a<o;)if((n=i[a++])!=n)return!0}else for(;a<o;a++)if((u||a in i)&&i[a]===e)return u||a||0;return!u&&-1}},jt={includes:Lt(!0),indexOf:Lt(!1)},Ft=jt.indexOf,zt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=zt.concat("length","prototype"),Ut={f:Object.getOwnPropertyNames||function(t){return ct(t,Bt)}},Ht={f:Object.getOwnPropertySymbols},Xt=at("Reflect","ownKeys")||function(t){var e=Ut.f(R(t)),r=Ht.f;return r?e.concat(r(t)):e},Yt=/#|\.prototype\./,Wt=function(t,e){t=qt[Gt(t)];return t==$t||t!=Qt&&("function"==typeof e?c(e):!!e)},Gt=Wt.normalize=function(t){return String(t).replace(Yt,".").toLowerCase()},qt=Wt.data={},Qt=Wt.NATIVE="N",$t=Wt.POLYFILL="P",Zt=Wt,Kt=Ot.f,Jt=d.Promise,te=m.f,ee=h("toStringTag"),re=h("species"),ne={},ie=h("iterator"),oe=Array.prototype,ae=h("iterator"),ue=h("iterator"),se=!1;try{var ce=0,le={next:function(){return{done:!!ce++}},return:function(){se=!0}};le[ue]=function(){return this},Array.from(le,function(){throw 2})}catch(t){}function he(t,e){var r;return void 0===(t=R(t).constructor)||null==(r=R(t)[ge])?e:yt(r)}function fe(t){return function(){Pe(t)}}var pe,ye=function(t,e){if(!e&&!se)return!1;var r=!1;try{var n={};n[ue]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},ge=h("species"),de=at("document","documentElement"),ve=at("navigator","userAgent")||"",me=/(iphone|ipod|ipad).*applewebkit/i.test(ve),xe="process"==tt(d.process),be=d.location,Se=d.setImmediate,we=d.clearImmediate,ke=d.process,Ae=d.MessageChannel,Re=d.Dispatch,Te=0,Ee={},Pe=function(t){var e;Ee.hasOwnProperty(t)&&(e=Ee[t],delete Ee[t],e())},Oe=function(t){Pe(t.data)},Ce=function(t){d.postMessage(t+"",be.protocol+"//"+be.host)};Se&&we||(Se=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return Ee[++Te]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},pe(Te),Te},we=function(t){delete Ee[t]},xe?pe=function(t){ke.nextTick(fe(t))}:Re&&Re.now?pe=function(t){Re.now(fe(t))}:Ae&&!me?(Ir=(_r=new Ae).port2,_r.port1.onmessage=Oe,pe=vt(Ir.postMessage,Ir,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts&&be&&"file:"!==be.protocol&&!c(Ce)?(pe=Ce,d.addEventListener("message",Oe,!1)):pe="onreadystatechange"in n("script")?function(t){de.appendChild(n("script")).onreadystatechange=function(){de.removeChild(this),Pe(t)}}:function(t){setTimeout(fe(t),0)});var Me,Ne,_e,De,Ve,Ie,Le,je,Fe={set:Se,clear:we},ze=/web0s(?!.*chrome)/i.test(ve),i=Ot.f,Be=Fe.set,b=d.MutationObserver||d.WebKitMutationObserver,O=d.document,Ue=d.process,_=d.Promise,Y=i(d,"queueMicrotask"),w=Y&&Y.value;w||(Me=function(){var t,e;for(xe&&(t=Ue.domain)&&t.exit();Ne;){e=Ne.fn,Ne=Ne.next;try{e()}catch(t){throw Ne?De():_e=void 0,t}}_e=void 0,t&&t.enter()},De=me||xe||ze||!b||!O?_&&_.resolve?(Le=_.resolve(void 0),je=Le.then,function(){je.call(Le,Me)}):xe?function(){Ue.nextTick(Me)}:function(){Be.call(d,Me)}:(Ve=!0,Ie=O.createTextNode(""),new b(Me).observe(Ie,{characterData:!0}),function(){Ie.data=Ve=!Ve}));function He(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=yt(r),this.reject=yt(n)}function Xe(t,e){return R(t),p(e)&&e.constructor===t?e:((0,(t=We.f(t)).resolve)(e),t.promise)}var Ye=w||function(t){t={fn:t,next:void 0};_e&&(_e.next=t),Ne||(Ne=t,De()),_e=t},We={f:function(t){return new He(t)}},Ge=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},W=d.process,$=W&&W.versions,D=$&&$.v8;D?xn=(dn=D.split("."))[0]+dn[1]:ve&&(!(dn=ve.match(/Edge\/(\d+)/))||74<=dn[1])&&(dn=ve.match(/Chrome\/(\d+)/))&&(xn=dn[1]);var qe,Qe,$e,Ze,Ke=xn&&+xn,Je=Fe.set,tr=h("species"),er="Promise",rr=Z.get,nr=Z.set,ir=Z.getterFor(er),or=Jt,ar=d.TypeError,ur=d.document,sr=d.process,cr=at("fetch"),lr=We.f,hr=lr,fr=!!(ur&&ur.createEvent&&d.dispatchEvent),pr="function"==typeof PromiseRejectionEvent,yr="unhandledrejection",wt=Zt(er,function(){if(X(or)===String(or)){if(66===Ke)return!0;if(!xe&&!pr)return!0}if(51<=Ke&&/native code/.test(or))return!1;function t(t){t(function(){},function(){})}var e=or.resolve(1);return(e.constructor={})[tr]=t,!(e.then(function(){})instanceof t)}),Lt=wt||!ye(function(t){or.all(t).catch(function(){})}),gr=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},dr=function(f,p){var y;f.notified||(f.notified=!0,y=f.reactions,Ye(function(){for(var n,t=f.value,e=1==f.state,r=0;y.length>r;){var i,o,a,u=y[r++],s=e?u.ok:u.fail,c=u.resolve,l=u.reject,h=u.domain;try{s?(e||(2===f.rejection&&function(e){Je.call(d,function(){var t=e.facade;xe?sr.emit("rejectionHandled",t):vr("rejectionhandled",t,e.value)})}(f),f.rejection=1),!0===s?i=t:(h&&h.enter(),i=s(t),h&&(h.exit(),a=!0)),i===u.promise?l(ar("Promise-chain cycle")):(o=gr(i))?o.call(i,c,l):c(i)):l(t)}catch(t){h&&!a&&h.exit(),l(t)}}f.reactions=[],f.notified=!1,p&&!f.rejection&&(n=f,Je.call(d,function(){var t,e=n.facade,r=n.value;if(mr(n)&&(t=Ge(function(){xe?sr.emit("unhandledRejection",r,e):vr(yr,e,r)}),n.rejection=xe||mr(n)?2:1,t.error))throw t.value}))}))},vr=function(t,e,r){var n,i;fr?((n=ur.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),d.dispatchEvent(n)):n={promise:e,reason:r},!pr&&(i=d["on"+t])?i(n):t===yr&&function(t,e){var r=d.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},mr=function(t){return 1!==t.rejection&&!t.parent},xr=function(e,r,n){return function(t){e(r,t,n)}},br=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=2,dr(t,!0))},Sr=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw ar("Promise can't be resolved itself");var n=gr(t);n?Ye(function(){var e={done:!1};try{n.call(t,xr(Sr,e,r),xr(br,e,r))}catch(t){br(e,t,r)}}):(r.value=t,r.state=1,dr(r,!1))}catch(t){br({done:!1},t,r)}}};wt&&(or=function(t){gt(this,or,er),yt(t),qe.call(this);var e=rr(this);try{t(xr(Sr,e),xr(br,e))}catch(t){br(e,t)}},(qe=function(t){nr(this,{type:er,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ht(or.prototype,{then:function(t,e){var r=ir(this),n=lr(he(this,or));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=xe?sr.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&dr(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Qe=function(){var t=new qe,e=rr(t);this.promise=t,this.resolve=xr(Sr,e),this.reject=xr(br,e)},We.f=lr=function(t){return t===or||t===$e?new Qe:hr(t)},"function"==typeof Jt&&(Ze=Jt.prototype.then,K(Jt.prototype,"then",function(t,e){var r=this;return new or(function(t,e){Ze.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof cr&&lt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Xe(or,cr.apply(d,arguments))}}))),lt({global:!0,wrap:!0,forced:wt},{Promise:or}),ft(or,er,!1),pt(er),$e=at(er),lt({target:er,stat:!0,forced:wt},{reject:function(t){var e=lr(this);return e.reject.call(void 0,t),e.promise}}),lt({target:er,stat:!0,forced:wt},{resolve:function(t){return Xe(this,t)}}),lt({target:er,stat:!0,forced:Lt},{all:function(t){var u=this,e=lr(u),s=e.resolve,c=e.reject,r=Ge(function(){var n=yt(u.resolve),i=[],o=0,a=1;St(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(u,t).then(function(t){r||(r=!0,i[e]=t,--a||s(i))},c)}),--a||s(i)});return r.error&&c(r.value),e.promise},race:function(t){var r=this,n=lr(r),i=n.reject,e=Ge(function(){var e=yt(r.resolve);St(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}});var wr=Ot.f;lt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=wr(R(t),e);return!(r&&!r.configurable)&&delete t[e]}});var kr=r(function(t){var e=function(a){var s,t=Object.prototype,c=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(a){o=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i,o,a,u,e=e&&e.prototype instanceof d?e:d,e=Object.create(e.prototype),n=new R(n||[]);return e._invoke=(i=t,o=r,a=n,u=h,function(t,e){if(u===p)throw new Error("Generator is already running");if(u===y){if("throw"===t)throw e;return E()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){var n=function t(e,r){var n=e.iterator[r.method];if(n===s){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=s,t(e,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var n=l(n,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;n=n.arg;return n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=s),r.delegate=null,g):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}(r,a);if(n){if(n===g)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===h)throw u=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=p;n=l(i,o,a);if("normal"===n.type){if(u=a.done?y:f,n.arg===g)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(u=y,a.method="throw",a.arg=n.arg)}}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",y="completed",g={};function d(){}function v(){}function m(){}var x={};x[n]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(T([])));e&&e!==t&&c.call(e,n)&&(x=e);var b=m.prototype=d.prototype=Object.create(x);function S(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function w(a,u){var e;this._invoke=function(r,n){function t(){return new u(function(t,e){!function e(t,r,n,i){t=l(a[t],a,r);if("throw"!==t.type){var o=t.arg;return(r=o.value)&&"object"==typeof r&&c.call(r,"__await")?u.resolve(r.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):u.resolve(r).then(function(t){o.value=t,n(o)},function(t){return e("throw",t,n,i)})}i(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}}function k(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,t=function t(){for(;++r<e.length;)if(c.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=s,t.done=!0,t};return t.next=t}}return{next:E}}function E(){return{value:s,done:!0}}return((v.prototype=b.constructor=m).constructor=v).displayName=o(m,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,o(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},a.awrap=function(t){return{__await:t}},S(w.prototype),w.prototype[r]=function(){return this},a.AsyncIterator=w,a.async=function(t,e,r,n,i){void 0===i&&(i=Promise);var o=new w(u(t,e,r,n),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},S(b),o(b,i,"Generator"),b[n]=function(){return this},b.toString=function(){return"[object Generator]"},a.keys=function(r){var t,n=[];for(t in r)n.push(t);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=T,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=s)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return o.type="throw",o.arg=r,n.next=t,e&&(n.method="next",n.arg=s),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),u=c.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n,i=r.completion;return"throw"===i.type&&(n=i.arg,A(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=s),g}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function Ar(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return r(t),0}u.done?e(s):Promise.resolve(s).then(n,i)}function Rr(u){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=u.apply(t,a);function i(t){Ar(n,e,r,i,o,"next",t)}function o(t){Ar(n,e,r,i,o,"throw",t)}i(void 0)})}}function Tr(t){return Object(Et(t))}function Er(t,e){var r;return new(void 0===(r=Or(t)&&("function"==typeof(r=t.constructor)&&(r===Array||Or(r.prototype))||p(r)&&null===(r=r[Cr]))?void 0:r)?Array:r)(0===e?0:e)}function Pr(t){throw t}var Wt=Object.freeze({__proto__:null,offscreen:function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).DOMParser,e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(n){return Rr(kr.mark(function t(){var e,r;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(n);case 2:return e=t.sent,t.next=5,e.blob();case 5:return r=t.sent,t.next=8,createImageBitmap(r);case 8:return r=t.sent,t.abrupt("return",r);case 10:case"end":return t.stop()}},t)}))()}};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}}),Or=Array.isArray||function(t){return"Array"==tt(t)},Cr=h("species"),Mr=[].push,le=function(f){var p=1==f,y=2==f,g=3==f,d=4==f,v=6==f,m=7==f,x=5==f||v;return function(t,e,r,n){for(var i,o,a=Tr(t),u=Tt(a),s=vt(e,r,3),c=ut(u.length),l=0,n=n||Er,h=p?n(t,c):y||m?n(t,0):void 0;l<c;l++)if((x||l in u)&&(o=s(i=u[l],l,a),f))if(p)h[l]=o;else if(o)switch(f){case 3:return!0;case 5:return i;case 6:return l;case 2:Mr.call(h,i)}else switch(f){case 4:return!1;case 7:Mr.call(h,i)}return v?-1:g||d?d:h}},Ae={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le(6),filterOut:le(7)},Nr=h("species"),_r=function(e){return 51<=Ke||!c(function(){var t=[];return(t.constructor={})[Nr]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Dr=Object.defineProperty,Vr={},Ir=function(t,e){if(A(Vr,t))return Vr[t];var r=[][t],n=!!A(e=e||{},"ACCESSORS")&&e.ACCESSORS,i=A(e,0)?e[0]:Pr,o=A(e,1)?e[1]:void 0;return Vr[t]=!!r&&!c(function(){if(n&&!f)return 1;var t={length:-1};n?Dr(t,1,{enumerable:!0,get:Pr}):t[1]=1,r.call(t,i,o)})},Lr=Ae.map,Ce=_r("map"),Oe=Ir("map");lt({target:"Array",proto:!0,forced:!Ce||!Oe},{map:function(t){return Lr(this,t,1<arguments.length?arguments[1]:void 0)}});var jr="\t\n\v\f\r                 \u2028\u2029\ufeff",Se="["+jr+"]",Fr=RegExp("^"+Se+Se+"*"),zr=RegExp(Se+Se+"*$"),we=function(e){return function(t){t=String(Et(t));return 1&e&&(t=t.replace(Fr,"")),t=2&e?t.replace(zr,""):t}},i={start:we(1),end:we(2),trim:we(3)},Br=i.trim,Ur=d.parseFloat,Y=1/Ur(jr+"-0")!=-1/0?function(t){var e=Br(String(t)),t=Ur(e);return 0===t&&"-"==e.charAt(0)?-0:t}:Ur;lt({global:!0,forced:parseFloat!=Y},{parseFloat:Y});function Hr(){var t=R(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function Xr(t,e){return RegExp(t,e)}var me={UNSUPPORTED_Y:c(function(){var t=Xr("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:c(function(){var t=Xr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},Yr=RegExp.prototype.exec,Wr=String.prototype.replace,ze=Yr,Gr=(_=/b*/g,Yr.call(O=/a/,"a"),Yr.call(_,"a"),0!==O.lastIndex||0!==_.lastIndex),qr=me.UNSUPPORTED_Y||me.BROKEN_CARET,Qr=void 0!==/()??/.exec("")[1],$r=ze=Gr||Qr||qr?function(t){var e,r,n,i,o=this,a=qr&&o.sticky,u=Hr.call(o),s=o.source,c=0,l=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(t).slice(o.lastIndex),0<o.lastIndex&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(s="(?: "+s+")",l=" "+l,c++),r=new RegExp("^(?:"+s+")",u)),Qr&&(r=new RegExp("^"+s+"$(?!\\s)",u)),Gr&&(e=o.lastIndex),n=Yr.call(a?r:o,l),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:Gr&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),Qr&&n&&1<n.length&&Wr.call(n[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)}),n}:ze;lt({target:"RegExp",proto:!0,forced:/./.exec!==$r},{exec:$r});function Zr(t,e,r){return e+(r?on(t,e).length:1)}function Kr(t,e){var r=t.exec;if("function"==typeof r){r=r.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==tt(t))throw TypeError("RegExp#exec called on incompatible receiver");return $r.call(t,e)}var Jr=h("species"),tn=!c(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),en="$0"==="a".replace(/./,"$0"),b=h("replace"),rn=!!/./[b]&&""===/./[b]("a","$0"),nn=!c(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};t="ab".split(t);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),w=function(r,t,e,n){var o,i,a=h(r),u=!c(function(){var t={};return t[a]=function(){return 7},7!=""[r](t)}),s=u&&!c(function(){var t=!1,e=/a/;return"split"===r&&((e={}).constructor={},e.constructor[Jr]=function(){return e},e.flags="",e[a]=/./[a]),e.exec=function(){return t=!0,null},e[a](""),!t});u&&s&&("replace"!==r||tn&&en&&!rn)&&("split"!==r||nn)||(o=/./[a],e=(s=e(a,""[r],function(t,e,r,n,i){return e.exec===$r?u&&!i?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:en,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:rn}))[0],i=s[1],K(String.prototype,r,e),K(RegExp.prototype,a,2==t?function(t,e){return i.call(t,this,e)}:function(t){return i.call(t,this)})),n&&x(RegExp.prototype[a],"sham",!0)},W=function(o){return function(t,e){var r,n=String(Et(t)),i=_t(e),t=n.length;return i<0||t<=i?o?"":void 0:(e=n.charCodeAt(i))<55296||56319<e||i+1===t||(r=n.charCodeAt(i+1))<56320||57343<r?o?n.charAt(i):e:o?n.slice(i,i+2):r-56320+(e-55296<<10)+65536}},$={codeAt:W(!1),charAt:W(!0)},on=$.charAt;w("match",1,function(n,s,c){return[function(t){var e=Et(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,e):new RegExp(t)[n](String(e))},function(t){var e=c(s,t,this);if(e.done)return e.value;var r=R(t),n=String(this);if(!r.global)return Kr(r,n);for(var i=r.unicode,o=[],a=r.lastIndex=0;null!==(u=Kr(r,n));){var u=String(u[0]);""===(o[a]=u)&&(r.lastIndex=Zr(n,ut(r.lastIndex),i)),a++}return 0===a?null:o}]});var an=Math.floor,un="".replace,sn=/\$([$&'`]|\d\d?|<[^>]*>)/g,cn=/\$([$&'`]|\d\d?)/g,ln=Math.max,hn=Math.min;w("replace",2,function(i,b,S,t){var w=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=t.REPLACE_KEEPS_$0,A=w?"$":"$0";return[function(t,e){var r=Et(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){if(!w&&k||"string"==typeof e&&-1===e.indexOf(A)){var r=S(b,t,this,e);if(r.done)return r.value}var n=R(t),i=String(this),o="function"==typeof e;o||(e=String(e));var a,u=n.global;u&&(a=n.unicode,n.lastIndex=0);for(var s=[];;){var c=Kr(n,i);if(null===c)break;if(s.push(c),!u)break;""===String(c[0])&&(n.lastIndex=Zr(i,ut(n.lastIndex),a))}for(var l,h="",f=0,p=0;p<s.length;p++){for(var c=s[p],y=String(c[0]),g=ln(hn(_t(c.index),i.length),0),d=[],v=1;v<c.length;v++)d.push(void 0===(l=c[v])?l:String(l));var m,x=c.groups,x=o?(m=[y].concat(d,g,i),void 0!==x&&m.push(x),String(e.apply(void 0,m))):function(o,a,u,s,c,t){var l=u+o.length,h=s.length,e=cn;return void 0!==c&&(c=Tr(c),e=sn),un.call(t,e,function(t,e){var r;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,u);case"'":return a.slice(l);case"<":r=c[e.slice(1,-1)];break;default:var n=+e;if(0==n)return t;if(h<n){var i=an(n/10);return 0!==i&&i<=h?void 0===s[i-1]?e.charAt(1):s[i-1]+e.charAt(1):t}r=s[n-1]}return void 0===r?"":r})}(y,i,g,d,x,e);f<=g&&(h+=i.slice(f,g)+x,f=g+y.length)}return h+i.slice(f)}]});function fn(t){var e;return p(t)&&(void 0!==(e=t[yn])?!!e:"RegExp"==tt(t))}function pn(t){if(fn(t))throw TypeError("The method doesn't accept regular expressions");return t}var yn=h("match"),gn=h("match"),D=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[gn]=!1,"/./"[e](r)}catch(e){}}return!1},dn=Ot.f,vn="".startsWith,mn=Math.min,ve=D("startsWith"),xn=!(ve||(!(Ci=dn(String.prototype,"startsWith"))||Ci.writable));function bn(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Sn(t){return t.replace(/^[\n \t]+/,"")}function wn(t){return t.replace(/[\n \t]+$/,"")}function kn(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}lt({target:"String",proto:!0,forced:!xn&&!ve},{startsWith:function(t){var e=String(Et(this));pn(t);var r=ut(mn(1<arguments.length?arguments[1]:void 0,e.length)),t=String(t);return vn?vn.call(e,t,r):e.slice(r,r+t.length)===t}});var An=/^[A-Z-]+$/;function Rn(t){return An.test(t)?t.toLowerCase():t}function Tn(t){t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return t[2]||t[3]||t[4]}function En(t){if(!t.startsWith("rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,function(t,e){return r--&&e?String(Math.round(parseFloat(t))):t})}var Fe=function(t,e){var r=[][t];return!!r&&c(function(){r.call(null,e||function(){throw 1},1)})},Pn=[].join,Jt=Tt!=Object,wt=Fe("join",",");lt({target:"Array",proto:!0,forced:Jt||!wt},{join:function(t){return Pn.call(it(this),void 0===t?",":t)}});function On(t,e){if(t){if("string"==typeof t)return Cn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Cn(t,e):void 0}}var Cn=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},Mn=function(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 r=[],n=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}}(t,e)||On(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.")}()},Nn=/(\[[^\]]+\])/g,_n=/(#[^\s+>~.[:]+)/g,Dn=/(\.[^\s+>~.[:]+)/g,Vn=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,In=/(:[\w-]+\([^)]*\))/gi,Ln=/(:[^\s+>~.[:]+)/g,jn=/([^\s+>~.[:]+)/g;function Fn(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function zn(t){var e=[0,0,0],t=Fn(r=t.replace(/:not\(([^)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),Nn),t=Mn(t,2),r=t[0],n=t[1];e[1]+=n;t=Fn(r,_n),t=Mn(t,2);r=t[0],n=t[1],e[0]+=n;t=Fn(r,Dn),t=Mn(t,2);r=t[0],n=t[1],e[1]+=n;t=Fn(r,Vn),t=Mn(t,2);r=t[0],n=t[1],e[2]+=n;t=Fn(r,In),t=Mn(t,2);r=t[0],n=t[1],e[1]+=n;t=Fn(r,Ln),t=Mn(t,2);r=t[0],n=t[1],e[1]+=n;t=Fn(r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),jn),t=Mn(t,2);return r=t[0],n=t[1],e[2]+=n,e.join("")}var Bn=1e-8;function Un(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Hn(t,e){return(t[0]*e[0]+t[1]*e[1])/(Un(t)*Un(e))}function Xn(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Hn(t,e))}function Yn(t){return t*t*t}function Wn(t){return 3*t*t*(1-t)}function Gn(t){return 3*t*(1-t)*(1-t)}function qn(t){return(1-t)*(1-t)*(1-t)}function Qn(t){return t*t}function $n(t){return 2*t*(1-t)}function Zn(t){return(1-t)*(1-t)}function Kn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ti(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ei(t,e,r){return e&&ti(t.prototype,e),r&&ti(t,r),t}function ri(t,e,r){(e=y(e))in t?m.f(t,e,g(0,r)):t[e]=r}var ni=h("isConcatSpreadable"),ii=9007199254740991,oi="Maximum allowed index exceeded",Lt=51<=Ke||!c(function(){var t=[];return t[ni]=!1,t.concat()[0]!==t}),le=_r("concat");lt({target:"Array",proto:!0,forced:!Lt||!le},{concat:function(t){for(var e,r,n,i=Tr(this),o=Er(i,0),a=0,u=-1,s=arguments.length;u<s;u++)if(function(t){if(!p(t))return!1;var e=t[ni];return void 0!==e?!!e:Or(t)}(n=-1===u?i:arguments[u])){if(a+(r=ut(n.length))>ii)throw TypeError(oi);for(e=0;e<r;e++,a++)e in n&&ri(o,a,n[e])}else{if(ii<=a)throw TypeError(oi);ri(o,a++,n)}return o.length=a,o}});var ai=Ae.every,Ce=Fe("every"),Oe=Ir("every");lt({target:"Array",proto:!0,forced:!Ce||!Oe},{every:function(t){return ai(this,t,1<arguments.length?arguments[1]:void 0)}});var Se=function(c){return function(t,e,r,n){yt(e);var i=Tr(t),o=Tt(i),a=ut(i.length),u=c?a-1:0,s=c?-1:1;if(r<2)for(;;){if(u in o){n=o[u],u+=s;break}if(u+=s,c?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=u:u<a;u+=s)u in o&&(n=e(n,o[u],u,i));return n}},ui=[Se(!1),Se(!0)][0],we=Fe("reduce"),Y=Ir("reduce",{1:0});lt({target:"Array",proto:!0,forced:!we||!Y||!xe&&79<Ke&&Ke<83},{reduce:function(t){return ui(this,t,arguments.length,1<arguments.length?arguments[1]:void 0)}});var O=Ot.f,si="".endsWith,ci=Math.min,_=D("endsWith"),me=!(_||(!(Bo=O(String.prototype,"endsWith"))||Bo.writable));lt({target:"String",proto:!0,forced:!me&&!_},{endsWith:function(t){var e=String(Et(this));pn(t);var r=1<arguments.length?arguments[1]:void 0,n=ut(e.length),n=void 0===r?n:ci(ut(r),n),t=String(t);return si?si.call(e,t,n):e.slice(n-t.length,n)===t}});var li=[].push,hi=Math.min,fi=4294967295,pi=!c(function(){return!RegExp(fi,"y")});w("split",2,function(i,y,g){var d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=String(Et(this)),n=void 0===e?fi:e>>>0;if(0==n)return[];if(void 0===t)return[r];if(!fn(t))return y.call(r,t,n);for(var i,o,a,u=[],e=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,c=new RegExp(t.source,e+"g");(i=$r.call(c,r))&&!((o=c.lastIndex)>s&&(u.push(r.slice(s,i.index)),1<i.length&&i.index<r.length&&li.apply(u,i.slice(1)),a=i[0].length,s=o,u.length>=n));)c.lastIndex===i.index&&c.lastIndex++;return s===r.length?!a&&c.test("")||u.push(""):u.push(r.slice(s)),u.length>n?u.slice(0,n):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y;return[function(t,e){var r=Et(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):d.call(String(r),t,e)},function(t,e){var r=g(d,t,this,e,d!==y);if(r.done)return r.value;var n=R(t),i=String(this),r=he(n,RegExp),o=n.unicode,t=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(pi?"y":"g"),a=new r(pi?n:"^(?:"+n.source+")",t),u=void 0===e?fi:e>>>0;if(0==u)return[];if(0===i.length)return null===Kr(a,i)?[i]:[];for(var s=0,c=0,l=[];c<i.length;){a.lastIndex=pi?c:0;var h,f=Kr(a,pi?i:i.slice(c));if(null===f||(h=hi(ut(a.lastIndex+(pi?0:c)),i.length))===s)c=Zr(i,c,o);else{if(l.push(i.slice(s,c)),l.length===u)return l;for(var p=1;p<=f.length-1;p++)if(l.push(f[p]),l.length===u)return l;c=s=h}}return l.push(i.slice(s)),l}]},!pi);ze="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function yi(){throw new Error("setTimeout has not been defined")}function gi(){throw new Error("clearTimeout has not been defined")}var di=yi,vi=gi;function mi(e){if(di===setTimeout)return setTimeout(e,0);if((di===yi||!di)&&setTimeout)return di=setTimeout,setTimeout(e,0);try{return di(e,0)}catch(t){try{return di.call(null,e,0)}catch(t){return di.call(this,e,0)}}}"function"==typeof ze.setTimeout&&(di=setTimeout),"function"==typeof ze.clearTimeout&&(vi=clearTimeout);var xi,bi=[],Si=!1,wi=-1;function ki(){Si&&xi&&(Si=!1,xi.length?bi=xi.concat(bi):wi=-1,bi.length&&Ai())}function Ai(){if(!Si){var t=mi(ki);Si=!0;for(var e=bi.length;e;){for(xi=bi,bi=[];++wi<e;)xi&&xi[wi].run();wi=-1,e=bi.length}xi=null,Si=!1,function(e){if(vi===clearTimeout)return clearTimeout(e);if((vi===gi||!vi)&&clearTimeout)return vi=clearTimeout,clearTimeout(e);try{vi(e)}catch(t){try{return vi.call(null,e)}catch(t){return vi.call(this,e)}}}(t)}}function Ri(t,e){this.fun=t,this.array=e}function Ti(){}Ri.prototype.run=function(){this.fun.apply(null,this.array)};for(var Ei,Pi,Oi,b=Ti,W=Ti,dn=Ti,Ci=Ti,xn=Ti,ve=Ti,Jt=Ti,Mi=ze.performance||{},Ni=Mi.now||Mi.mozNow||Mi.msNow||Mi.oNow||Mi.webkitNow||function(){return(new Date).getTime()},_i=new Date,Di={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];bi.push(new Ri(t,e)),1!==bi.length||Si||mi(Ai)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:b,addListener:W,once:dn,off:Ci,removeListener:xn,removeAllListeners:ve,emit:Jt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Ni.call(Mi),r=Math.floor(e),e=Math.floor(e%1*1e9);return t&&(r-=t[0],(e-=t[1])<0&&(r--,e+=1e9)),[r,e]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-_i)/1e3}},Vi=r(function(a){!function(){var t,e,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:null!=Di&&Di.hrtime?(a.exports=function(){return(t()-i)/1e6},e=Di.hrtime,n=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),o=1e9*Di.uptime(),i=n-o):r=Date.now?(a.exports=function(){return Date.now()-r},Date.now()):(a.exports=function(){return(new Date).getTime()-r},(new Date).getTime())}.call(e)}),Ii="undefined"==typeof window?e:window,Li=["moz","webkit"],ji="AnimationFrame",Fi=Ii["request"+ji],zi=Ii["cancel"+ji]||Ii["cancelRequest"+ji],Bi=0;!Fi&&Bi<Li.length;Bi++)Fi=Ii[Li[Bi]+"Request"+ji],zi=Ii[Li[Bi]+"Cancel"+ji]||Ii[Li[Bi]+"CancelRequest"+ji];Fi&&zi||(Pi=Ei=0,Oi=[],Fi=function(t){var e,r;return 0===Oi.length&&(e=Vi(),r=Math.max(0,16.666666666666668-(e-Ei)),Ei=r+e,setTimeout(function(){for(var t=Oi.slice(0),e=Oi.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(Ei)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),Oi.push({handle:++Pi,callback:t,cancelled:!1}),Pi},zi=function(t){for(var e=0;e<Oi.length;e++)Oi[e].handle===t&&(Oi[e].cancelled=!0)});function Ui(t){return Fi.call(Ii,t)}Ui.cancel=function(){zi.apply(Ii,arguments)},Ui.polyfill=function(t){(t=t||Ii).requestAnimationFrame=Fi,t.cancelAnimationFrame=zi};var wt=m.f,_r=Function.prototype,Hi=_r.toString,Xi=/^\s*function ([^ (]*)/;!f||"name"in _r||wt(_r,"name",{configurable:!0,get:function(){try{return Hi.call(this).match(Xi)[1]}catch(t){return""}}});var Yi,Wi=i.trim;lt({target:"String",proto:!0,forced:(Yi="trim",c(function(){return jr[Yi]()||"​\85᠎"!="​\85᠎"[Yi]()||jr[Yi].name!==Yi}))},{trim:function(){return Wi(this)}});function Gi(t){this.ok=!1,this.alpha=1,t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase();var l={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",rebeccapurple:"663399",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=l[t]||t;for(var h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{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:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{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)]}}],e=0;e<h.length;e++){var r=h[e].re,n=h[e].process,r=r.exec(t);r&&(r=n(r),this.r=r[0],this.g=r[1],this.b=r[2],3<r.length&&(this.alpha=r[3]),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.alpha=this.alpha<0?0:1<this.alpha||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return"#"+(t=1==t.length?"0"+t:t)+(e=1==e.length?"0"+e:e)+(r=1==r.length?"0"+r:r)},this.getHelpXML=function(){for(var t,e=new Array,r=0;r<h.length;r++)for(var n=h[r].example,i=0;i<n.length;i++)e[e.length]=n[i];for(t in l)e[e.length]=t;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),r=0;r<e.length;r++)try{var a=document.createElement("li"),u=new RGBColor(e[r]),s=document.createElement("div");s.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),s.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex());a.appendChild(s),a.appendChild(c),o.appendChild(a)}catch(e){}return o}}var qi=(ei(Qi,[{key:"split",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ",e=this.document,r=this.name;return bn(this.getString()).trim().split(t).map(function(t){return new Qi(e,r,t)})}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}},{key:"isString",value:function(t){var e=this.value,r="string"==typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);t=this.value,t=parseFloat(t);return this.isString(/%$/)&&(t/=100),t}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){t=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=En(t),this.value=t),t}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var t=Mn("boolean"==typeof t?[void 0,t]:[t],2),r=t[0],t=t[1],n=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&t:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var i=this.getNumber();return e&&i<1?i*n.computeSize(r):i}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=(e=/#([^)'"]+)/.exec(t))&&e[1];return this.document.definitions[e=e||t]}},{key:"getFillStyleDefinition",value:function(t,e){var r,n=this.getDefinition();return n?"function"==typeof n.createGradient?n.createGradient(this.document.ctx,t,e):"function"!=typeof n.createPattern?null:(n.getHrefAttribute().hasValue()&&(r=n.getAttribute("patternTransform"),n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)),n.createPattern(this.document.ctx,t,e)):null}},{key:"getTextBaseline",value:function(){return this.hasValue()?Qi.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(t){for(var e,r=this.getColor(),n=r.length,i=0,o=0;o<n&&(","===r[o]&&i++,3!==i);o++);return t.hasValue()&&this.isString()&&3!==i&&((e=new Gi(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new Qi(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new Qi(t,"EMPTY","")}}]),Qi);function Qi(t,e,r){Jn(this,Qi),this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}qi.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var $i=(ei(Ji,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),Ji),Zi=Ae.forEach,Lt=Fe("forEach"),le=Ir("forEach"),Ki=Lt&&le?[].forEach:function(t){return Zi(this,t,1<arguments.length?arguments[1]:void 0)};function Ji(){Jn(this,Ji),this.viewPorts=[]}lt({target:"Array",proto:!0,forced:[].forEach!=Ki},{forEach:Ki});var to,eo={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(to in eo){var ro=d[to],ro=ro&&ro.prototype;if(ro&&ro.forEach!==Ki)try{x(ro,"forEach",Ki)}catch(t){ro.forEach=Ki}}var no=(ei(lo,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],t=e*t[1]+r*t[3]+t[5];this.x=n,this.y=t}}],[{key:"parse",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=kn(t),t=Mn(r,2),r=t[0],t=t[1];return new lo(void 0===r?e:r,void 0===t?e:t)}},{key:"parseScale",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=kn(t),t=Mn(r,2),r=t[0],r=void 0===r?e:r,t=t[1];return new lo(r,void 0===t?r:t)}},{key:"parsePath",value:function(t){for(var e=kn(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new lo(e[i],e[i+1]));return n}}]),lo),io=(ei(co,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){var t,e,r;this.working||(r=this.screen,t=this.onClick,e=this.onMouseMove,(r=r.ctx.canvas).onclick=t,r.onmousemove=e,this.working=!0)}},{key:"stop",value:function(){var t;this.working&&(t=this.screen.ctx.canvas,this.working=!1,t.onclick=null,t.onmousemove=null)}},{key:"hasEvents",value:function(){return this.working&&0<this.events.length}},{key:"runEvents",value:function(){var t,i,e;this.working&&(e=this.screen,t=this.events,i=this.eventElements,(e=e.ctx.canvas.style)&&(e.cursor=""),t.forEach(function(t,e){for(var r=t.run,n=i[e];n;)r(n),n=n.parent}),this.events=[],this.eventElements=[])}},{key:"checkPath",value:function(n,i){var t,o;this.working&&i&&(t=this.events,o=this.eventElements,t.forEach(function(t,e){var r=t.x,t=t.y;!o[e]&&i.isPointInPath&&i.isPointInPath(r,t)&&(o[e]=n)}))}},{key:"checkBoundingBox",value:function(n,i){var t,o;this.working&&i&&(t=this.events,o=this.eventElements,t.forEach(function(t,e){var r=t.x,t=t.y;!o[e]&&i.isPointInBox(r,t)&&(o[e]=n)}))}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,r=r.ctx,i=new no(t,e),o=r.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}},{key:"onClick",value:function(t){var e=this.mapXY(t.clientX,t.clientY),t=e.x,e=e.y;this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY(t.clientX,t.clientY),t=e.x,e=e.y;this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),co),oo="undefined"!=typeof window?window:null,ao="undefined"!=typeof fetch?fetch.bind(void 0):null,uo=(ei(so,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise||Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every(function(t){return t()});return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,i=t.width,o=t.desiredWidth,a=t.height,u=t.desiredHeight,s=t.minX,c=void 0===s?0:s,l=t.minY,h=void 0===l?0:l,f=t.refX,p=t.refY,y=t.clip,s=void 0!==y&&y,l=t.clipX,y=void 0===l?0:l,l=t.clipY,t=void 0===l?0:l,l=bn(n).replace(/^defer\s/,"").split(" "),n=Mn(l,2),l=n[0]||"xMidYMid",n=n[1]||"meet",g=i/o,d=a/u,v=Math.min(g,d),m=Math.max(g,d),o=o,u=u;"meet"===n&&(o*=v,u*=v),"slice"===n&&(o*=m,u*=m);var x,b,f=new qi(e,"refX",f),e=new qi(e,"refY",p),p=f.hasValue()&&e.hasValue();switch(p&&r.translate(-v*f.getPixels("x"),-v*e.getPixels("y")),s&&(b=v*y,x=v*t,r.beginPath(),r.moveTo(b,x),r.lineTo(i,x),r.lineTo(i,a),r.lineTo(b,a),r.closePath(),r.clip()),p||(t="meet"===n&&v===d,x="slice"===n&&m===d,b="meet"===n&&v===g,p="slice"===n&&m===g,l.startsWith("xMid")&&(t||x)&&r.translate(i/2-o/2,0),l.endsWith("YMid")&&(b||p)&&r.translate(0,a/2-u/2),l.startsWith("xMax")&&(t||x)&&r.translate(i-o,0),l.endsWith("YMax")&&(b||p)&&r.translate(0,a-u)),!0){case"none"===l:r.scale(g,d);break;case"meet"===n:r.scale(v,v);break;case"slice"===n:r.scale(m,m)}r.translate(-c,-h)}},{key:"start",value:function(e){var r,n,i,o=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=t.enableRedraw,u=void 0!==a&&a,s=t.ignoreMouse,a=void 0!==s&&s,s=t.ignoreAnimation,c=void 0!==s&&s,s=t.ignoreDimensions,l=void 0!==s&&s,s=t.ignoreClear,h=void 0!==s&&s,f=t.forceRedraw,p=t.scaleWidth,y=t.scaleHeight,g=t.offsetX,d=t.offsetY,t=this.FRAMERATE,v=this.mouse,m=1e3/t;this.frameDuration=m,this.readyPromise=new Promise(function(t){o.resolveReady=t}),this.isReady()&&this.render(e,l,h,p,y,g,d),u&&(r=Date.now(),n=r,i=0,u=function t(){r=Date.now(),(i=r-n)>=m&&(n=r-i%m,o.shouldUpdate(c,f)&&(o.render(e,l,h,p,y,g,d),v.runEvents())),o.intervalId=Ui(t)},a||v.start(),this.intervalId=Ui(u))}},{key:"stop",value:function(){this.intervalId&&(Ui.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration;if(this.animations.reduce(function(t,e){return e.update(r)||t},!1))return!0}return!("function"!=typeof e||!e())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}},{key:"render",value:function(t,e,r,n,i,o,a){var u=this.CLIENT_WIDTH,s=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,h=this.isFirstRender,f=l.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(u,s);var p=t.getStyle("width"),u=t.getStyle("height");!e&&(h||"number"!=typeof n&&"number"!=typeof i)&&(p.hasValue()&&(f.width=p.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),u.hasValue()&&(f.height=u.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var y,s=f.clientWidth||f.width,f=f.clientHeight||f.height;e&&p.hasValue()&&u.hasValue()&&(s=p.getPixels("x"),f=u.getPixels("y")),c.setCurrent(s,f),"number"==typeof o&&t.getAttribute("x",!0).setValue(o),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"!=typeof n&&"number"!=typeof i||(c=kn(t.getAttribute("viewBox").getString()),a=o=0,"number"==typeof n&&((y=t.getStyle("width")).hasValue()?o=y.getPixels("x")/n:isNaN(c[2])||(o=c[2]/n)),"number"==typeof i&&((y=t.getStyle("height")).hasValue()?a=y.getPixels("y")/i:isNaN(c[3])||(a=c[3]/i)),o=o||a,a=a||o,t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i),(i=t.getStyle("transform",!0,!0)).setValue("".concat(i.getString()," scale(").concat(1/o,", ").concat(1/a,")"))),r||l.clearRect(0,0,s,f),t.render(l),h&&(this.isFirstRender=!1)}}]),so);function so(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.fetch,r=void 0===r?ao:r,e=e.window,e=void 0===e?oo:e;Jn(this,so),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new $i,this.mouse=new io(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=r}function co(t){Jn(this,co),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}function lo(t,e){Jn(this,lo),this.x=t,this.y=e}uo.defaultWindow=oo,uo.defaultFetch=ao;var ho,fo,po=uo.defaultFetch,yo="undefined"!=typeof DOMParser?DOMParser:null,go=(ei(mo,[{key:"parse",value:(fo=Rr(kr.mark(function t(e){return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.startsWith("<"))return t.abrupt("return",this.parseFromString(e));t.next=2;break;case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}},t,this)})),function(t){return fo.apply(this,arguments)})},{key:"parseFromString",value:function(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch(t){return this.checkDocument(r.parseFromString(e,"text/xml"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:(ho=Rr(kr.mark(function t(e){var r;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return r=t.sent,t.abrupt("return",this.parseFromString(r));case 7:case"end":return t.stop()}},t,this)})),function(t){return ho.apply(this,arguments)})}]),mo),vo=r(function(r){function n(t,e){return r.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,e)}r.exports=n});function mo(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.fetch,e=void 0===e?po:e,t=t.DOMParser,t=void 0===t?yo:t;Jn(this,mo),this.fetch=e,this.DOMParser=t}function xo(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&&vo(t,e)}function bo(t,e){return!e||"object"!==So(e)&&"function"!=typeof e?wo(t):e}var So=r(function(e){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(t){return typeof t}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}e.exports=r}),wo=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},ko=r(function(e){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}e.exports=r}),Ce=!ye(function(t){Array.from(t)});lt({target:"Array",stat:!0,forced:Ce},{from:function(t){var e,r,n,i,o,a,u=Tr(t),s="function"==typeof this?this:Array,c=arguments.length,l=1<c?arguments[1]:void 0,h=void 0!==l,t=mt(u),f=0;if(h&&(l=vt(l,2<c?arguments[2]:void 0,2)),null==t||s==Array&&dt(t))for(r=new s(e=ut(u.length));f<e;f++)a=h?l(u[f],f):u[f],ri(r,f,a);else for(o=(i=t.call(u)).next,r=new s;!(n=o.call(i)).done;f++)a=h?function(t,e,r,n){try{return n?e(R(r)[0],r[1]):e(r)}catch(e){throw xt(t),e}}(i,l,[n.value,f],!0):n.value,ri(r,f,a);return r.length=f,r}});function Ao(){}function Ro(t){return"<script>"+t+"<\/script>"}var To,Eo=Object.keys||function(t){return ct(t,zt)},Po=f?Object.defineProperties:function(t,e){R(t);for(var r,n=Eo(e),i=n.length,o=0;o<i;)m.f(t,r=n[o++],e[r]);return t},Oo=q("IE_PROTO"),Co=function(){try{To=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Co=To?function(t){t.write(Ro("")),t.close();var e=t.parentWindow.Object;return t=null,e}(To):((e=n("iframe")).style.display="none",de.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ro("document.F=Object")),t.close(),t.F);for(var r=zt.length;r--;)delete Co.prototype[zt[r]];return Co()};Q[Oo]=!0;var Mo=Object.create||function(t,e){var r;return null!==t?(Ao.prototype=R(t),r=new Ao,Ao.prototype=null,r[Oo]=t):r=Co(),void 0===e?r:Po(r,e)},No=h("unscopables"),_o=Array.prototype;null==_o[No]&&m.f(_o,No,{configurable:!0,value:Mo(null)});var Oe=function(t){_o[No][t]=!0},Do=jt.includes,Se=Ir("indexOf",{ACCESSORS:!0,1:0});lt({target:"Array",proto:!0,forced:!Se},{includes:function(t){return Do(this,t,1<arguments.length?arguments[1]:void 0)}}),Oe("includes");var Vo=Ae.some,we=Fe("some"),Y=Ir("some");lt({target:"Array",proto:!0,forced:!we||!Y},{some:function(t){return Vo(this,t,1<arguments.length?arguments[1]:void 0)}}),lt({target:"String",proto:!0,forced:!D("includes")},{includes:function(t){return!!~String(Et(this)).indexOf(pn(t),1<arguments.length?arguments[1]:void 0)}});var Io,O=!c(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Lo=q("IE_PROTO"),jo=Object.prototype,Fo=O?Object.getPrototypeOf:function(t){return t=Tr(t),A(t,Lo)?t[Lo]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?jo:null},zo=h("iterator"),Bo=!1;[].keys&&("next"in(wu=[].keys())?(Ru=Fo(Fo(wu)))!==Object.prototype&&(Io=Ru):Bo=!0),null!=Io&&!c(function(){var t={};return Io[zo].call(t)!==t})||(Io={}),A(Io,zo)||x(Io,zo,function(){return this});function Uo(){return this}function Ho(){return this}function Xo(t,e,r,n,i,o,a){y=e+" Iterator",(c=r).prototype=Mo(Yo,{next:g(1,n)}),ft(c,y,!1),ne[y]=Uo;var u,s,n=function(t){if(t===i&&p)return p;if(!qo&&t in h)return h[t];switch(t){case"keys":case $o:case Zo:return function(){return new r(this,t)}}return function(){return new r(this)}},c=e+" Iterator",l=!1,h=t.prototype,f=h[Qo]||h["@@iterator"]||i&&h[i],p=!qo&&f||n(i),y="Array"==e&&h.entries||f;if(y&&(t=Fo(y.call(new t)),Go!==Object.prototype&&t.next&&(Fo(t)!==Go&&(Wo?Wo(t,Go):"function"!=typeof t[Qo]&&x(t,Qo,Ho)),ft(t,c,!0))),i==$o&&f&&f.name!==$o&&(l=!0,p=function(){return f.call(this)}),h[Qo]!==p&&x(h,Qo,p),ne[e]=p,i)if(u={values:n($o),keys:o?p:n("keys"),entries:n(Zo)},a)for(s in u)!qo&&!l&&s in h||K(h,s,u[s]);else lt({target:e,proto:!0,forced:qo||l},u);return u}var me={IteratorPrototype:Io,BUGGY_SAFARI_ITERATORS:Bo},Yo=me.IteratorPrototype,Wo=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(r){}return function(t,e){return R(t),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),n?r.call(t,e):t.__proto__=e,t}}():void 0),Go=me.IteratorPrototype,qo=me.BUGGY_SAFARI_ITERATORS,Qo=h("iterator"),$o="values",Zo="entries",Ko=$.charAt,Jo="String Iterator",ta=Z.set,ea=Z.getterFor(Jo);Xo(String,"String",function(t){ta(this,{type:Jo,string:String(t),index:0})},function(){var t=ea(this),e=t.string,r=t.index;return r>=e.length?{value:void 0,done:!0}:(r=Ko(e,r),t.index+=r.length,{value:r,done:!1})});function ra(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||On(t)||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.")}()}var _=(ei(ua,[{key:"apply",value:function(t){var e=this.point,r=e.x,e=e.y;t.translate(r||0,e||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,e=e.y;t.translate(-1*r||0,-1*e||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,e=e.y;t.applyTransform([1,0,0,1,r||0,e||0])}}]),ua),w=(ei(aa,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,o=this.angle,n=e+n.getPixels("x"),i=r+i.getPixels("y");t.translate(n,i),t.rotate(o.getRadians()),t.translate(-n,-i)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,o=this.angle,n=e+n.getPixels("x"),i=r+i.getPixels("y");t.translate(n,i),t.rotate(-1*o.getRadians()),t.translate(-n,-i)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),aa),ze=(ei(oa,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,e=this.originY,i=i.getPixels("x"),e=e.getPixels("y");t.translate(i,e),t.scale(r,n||r),t.translate(-i,-e)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,e=this.originY,i=i.getPixels("x"),e=e.getPixels("y");t.translate(i,e),t.scale(1/r,1/n||r),t.translate(-i,-e)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,e=e.y;t.applyTransform([r||0,0,0,e||0,0,0])}}]),oa),na=(ei(ia,[{key:"apply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=n[0],o=n[2],a=n[4],u=n[1],s=n[3],c=n[5],n=1/(i*(+s-0*c)-o*(+u-0*c)+a*(0*u-0*s)),e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(n*(+s-0*c),n*(0*c-+u),n*(0*a-+o),n*(+i-0*a),n*(o*c-a*s),n*(a*u-i*c)),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),ia);function ia(t,e,r){Jn(this,ia),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=kn(e),this.originX=r[0],this.originY=r[1]}function oa(t,e,r){Jn(this,oa),this.type="scale",this.scale=null,this.originX=null,this.originY=null;e=no.parseScale(e);0!==e.x&&0!==e.y||(e.x=Bn,e.y=Bn),this.scale=e,this.originX=r[0],this.originY=r[1]}function aa(t,e,r){Jn(this,aa),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;e=kn(e);this.angle=new qi(t,"angle",e[0]),this.originX=r[0],this.originY=r[1],this.cx=e[1]||0,this.cy=e[2]||0}function ua(t,e){Jn(this,ua),this.type="translate",this.point=null,this.point=no.parse(e)}var sa=function(){xo(o,na);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="skew",r.angle=null,r.angle=new qi(t,"angle",e),r}return o}();b=function(){xo(o,sa);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return o}();var W=function(){xo(o,sa);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return o}(),ca=(ei(la,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;0<=r;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(t,e){var r=e.getStyle("transform",!1,!0),n=e.getStyle("transform-origin",!1,!0).split(),e=Mn(n,2),n=e[0],e=e[1],e=[n,void 0===e?n:e];return r.hasValue()?new la(t,r.getString(),e):null}}]),la);function la(t,e,r){var n=this;Jn(this,la),this.document=t,this.transforms=[],bn(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/).forEach(function(t){var e;"none"!==t&&(e=t.split("("),t=Mn(e,2),e=t[0],t=t[1],e=[e.trim(),t.trim().replace(")","")],e=(t=Mn(e,2))[0],t=t[1],void 0!==(e=la.transformTypes[e])&&n.transforms.push(new e(n.document,t,r)))})}ca.transformTypes={translate:_,rotate:w,scale:ze,matrix:na,skewX:b,skewY:W};var ha=(ei(fa,[{key:"getAttribute",value:function(t){var e=this.attributes[t];if(e||!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))return e||qi.empty(this.document);e=new qi(this.document,t,"");return this.attributes[t]=e}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return qi.empty(this.document)}},{key:"getStyle",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(null!=i&&i.hasValue())return this.styles[t]=i;if(!r){r=this.parent;if(r){r=r.getStyle(t);if(null!=r&&r.hasValue())return r}}if(e){e=new qi(this.document,t,"");return this.styles[t]=e}return n||qi.empty(this.document)}},{key:"render",value:function(t){var e;"none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()&&(t.save(),this.getStyle("mask").hasValue()?(e=this.getStyle("mask").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):"none"!==this.getStyle("filter").getValue("none")?(e=this.getStyle("filter").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):(this.setContext(t),this.renderChildren(t),this.clearContext(t)),t.restore())}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=ca.fromElement(this.document,this);e&&e.apply(t);e=this.getStyle("clip-path",!1,!0);!e.hasValue()||(e=e.getDefinition())&&e.apply(t)}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(e){this.children.forEach(function(t){t.render(e)})}},{key:"addChild",value:function(t){t=t instanceof fa?t:this.document.createElement(t);t.parent=this,fa.ignoreChildTypes.includes(t.type)||this.children.push(t)}},{key:"matchesSelector",value:function(e){var t=this.node;if("function"==typeof t.matches)return t.matches(e);t=t.getAttribute("class");return!(!t||""===t)&&t.split(" ").some(function(t){return".".concat(t)===e})}},{key:"addStylesFromStyleDefinition",value:function(){var t,e=this.document,r=e.styles,n=e.stylesSpecificity;for(t in r)if(!t.startsWith("@")&&this.matchesSelector(t)){var i=r[t],o=n[t];if(i)for(var a in i){var u=this.stylesSpecificity[a];(u=void 0===u?"000":u)<=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(i,t){return t.reduce(function(t,e){var r=i.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),[].concat(ra(t),[[e,n]])},[])}},{key:"restoreStyles",value:function(r,t){t.forEach(function(t){var e=Mn(t,2),t=e[0],e=e[1];r.getStyle(t,!0).setValue(e)})}}]),fa);function fa(r,t){var e,n,i=this,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];Jn(this,fa),this.document=r,this.node=t,this.captureTextNodes=o,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType&&(Array.from(t.attributes).forEach(function(t){var e=Rn(t.nodeName);i.attributes[e]=new qi(r,e,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(function(t){return t.trim()}).forEach(function(t){var e;t&&(e=t.split(":").map(function(t){return t.trim()}),e=(t=Mn(e,2))[0],t=t[1],i.styles[e]=new qi(r,e,t))}),e=r.definitions,(n=this.getAttribute("id")).hasValue()&&(e[n.getString()]||(e[n.getString()]=this)),Array.from(t.childNodes).forEach(function(t){1===t.nodeType?i.addChild(t):!o||3!==t.nodeType&&4!==t.nodeType||0<(t=r.createTextNode(t)).getText().length&&i.addChild(t)}))}ha.ignoreChildTypes=["title"];var pa=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),i.call(this,t,e,r)}return o}(),ya=jt.indexOf,ga=[].indexOf,da=!!ga&&1/[1].indexOf(1,-0)<0,dn=Fe("indexOf"),Ci=Ir("indexOf",{ACCESSORS:!0,1:0});lt({target:"Array",proto:!0,forced:da||!dn||!Ci},{indexOf:function(t){return da?ga.apply(this,arguments)||0:ya(this,t,1<arguments.length?arguments[1]:void 0)}});var va=[].reverse,xn=[1,2];lt({target:"Array",proto:!0,forced:String(xn)===String(xn.reverse())},{reverse:function(){return Or(this)&&(this.length=this.length),va.call(this)}});var ma=r(function(n){function i(t,e,r){return"undefined"!=typeof Reflect&&Reflect.get?n.exports=i=Reflect.get:n.exports=i=function(t,e,r){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ko(t)););return t}(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(r):e.value}},i(t,e,r||t)}n.exports=i});function xa(t){t=t.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}var ba=(ei(Sa,[{key:"toString",value:function(){return[function(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}(this.fontStyle),this.fontVariant,function(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(xa).join(","))].join(" ").trim();var t}}],[{key:"parse",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,r="",n="",i="",o="",a="",t=bn(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return t.forEach(function(t){switch(!0){case!u.fontStyle&&Sa.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&Sa.variants.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&Sa.weights.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:var e;"inherit"!==t&&(e=t.split("/"),e=Mn(e,1),o=e[0]),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new Sa(r,n,i,o,a,e)}}]),Sa);function Sa(t,e,r,n,i,o){Jn(this,Sa);o=o?"string"==typeof o?Sa.parse(o):o:{};this.fontFamily=i||o.fontFamily,this.fontSize=n||o.fontSize,this.fontStyle=t||o.fontStyle,this.fontWeight=r||o.fontWeight,this.fontVariant=e||o.fontVariant}ba.styles="normal|italic|oblique|inherit",ba.variants="normal|small-caps|inherit",ba.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";function wa(t,e,r){var n,i;return Wo&&"function"==typeof(n=e.constructor)&&n!==r&&p(i=n.prototype)&&i!==r.prototype&&Wo(t,i),t}function ka(t){var e,r,n,i,o,a,u,s=y(t,!1);if("string"==typeof s&&2<s.length)if(43===(e=(s=Ta(s)).charCodeAt(0))||45===e){if(88===(t=s.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+s}for(o=(i=s.slice(2)).length,a=0;a<o;a++)if((u=i.charCodeAt(a))<48||n<u)return NaN;return parseInt(i,r)}return+s}var ve=Ut.f,Aa=Ot.f,Ra=m.f,Ta=i.trim,Ea="Number",Pa=d.Number,Oa=Pa.prototype,Ca=tt(Mo(Oa))==Ea;if(Zt(Ea,!Pa(" 0o1")||!Pa("0b1")||Pa("+0x1"))){for(var Ma,Na=function(t){var t=arguments.length<1?0:t,e=this;return e instanceof Na&&(Ca?c(function(){Oa.valueOf.call(e)}):tt(e)!=Ea)?wa(new Pa(ka(t)),e,Na):ka(t)},_a=f?ve(Pa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Da=0;_a.length>Da;Da++)A(Pa,Ma=_a[Da])&&!A(Na,Ma)&&Ra(Na,Ma,Aa(Pa,Ma));(Na.prototype=Oa).constructor=Na,K(d,Ea,Na)}var Va=(ei(Ia,[{key:"addPoint",value:function(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){var e,r,n;t&&(e=t.x1,r=t.y1,n=t.x2,t=t.y2,this.addPoint(e,r),this.addPoint(n,t))}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var o,a,u=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,c=3*r-3*e;0!=s?(o=Math.pow(u,2)-4*c*s)<0||(0<(a=(-u+Math.sqrt(o))/(2*s))&&a<1&&(t?this.addX(this.sumCubic(a,e,r,n,i)):this.addY(this.sumCubic(a,e,r,n,i))),0<(s=(-u-Math.sqrt(o))/(2*s))&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i)))):0==u||0<(u=-c/u)&&u<1&&(t?this.addX(this.sumCubic(u,e,r,n,i)):this.addY(this.sumCubic(u,e,r,n,i)))}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,u){this.addPoint(t,e),this.addPoint(a,u),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,u)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,o){r=t+2/3*(r-t),n=e+2/3*(n-e);this.addBezierCurve(t,e,r,r+1/3*(i-t),n,n+1/3*(o-e),i,o)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,o=this.y2;return r<=t&&t<=i&&n<=e&&e<=o}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),Ia);function Ia(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:Number.NaN;Jn(this,Ia),this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}lt({target:"Array",proto:!0},{fill:function(t){for(var e=Tr(this),r=ut(e.length),n=arguments.length,i=st(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:st(n,r);i<o;)e[i++]=t;return e}}),Oe("fill");var La=function(t,e){return(La=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function ja(t,e){function r(){this.constructor=t}La(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Fa(t,e){var r=t[0],t=t[1];return[r*Math.cos(e)-t*Math.sin(e),r*Math.sin(e)+t*Math.cos(e)]}function za(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return 1}var Ba=Math.PI;function Ua(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,o=t.x,a=t.y,n=Math.abs(t.rX),i=Math.abs(t.rY),u=Fa([(e-o)/2,(r-a)/2],-t.xRot/180*Ba),s=u[0],c=u[1],l=Math.pow(s,2)/Math.pow(n,2)+Math.pow(c,2)/Math.pow(i,2);1<l&&(n*=Math.sqrt(l),i*=Math.sqrt(l)),t.rX=n,t.rY=i;var h=Math.pow(n,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(s,2),u=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-h)/h)),l=n*c/i*u,h=-i*s/n*u,u=Fa([l,h],t.xRot/180*Ba);t.cX=u[0]+(e+o)/2,t.cY=u[1]+(r+a)/2,t.phi1=Math.atan2((c-h)/i,(s-l)/n),t.phi2=Math.atan2((-c-h)/i,(-s-l)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Ba),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Ba),t.phi1*=180/Ba,t.phi2*=180/Ba}function Ha(t,e,r){za(t,e,r);var n=t*t+e*e-r*r;if(n<0)return[];if(0==n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];n=Math.sqrt(n);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var Xa,Ya=Math.PI/180;function Wa(t,e,r){return(1-r)*t+r*e}function Ga(t,e,r,n){return t+Math.cos(n/180*Ba)*e+Math.sin(n/180*Ba)*r}function qa(t,e,r,n){var t=e-t,e=r-e,i=3*t+3*(n-r)-6*e,e=6*(e-t),o=3*t;return Math.abs(i)<1e-6?[-o/e]:function(t,e){var r=t*t/4-o/i;if(r<-(e=void 0===e?1e-6:e))return[];if(r<=e)return[-t/2];r=Math.sqrt(r);return[-t/2-r,-t/2+r]}(e/i,1e-6)}function Qa(t,e,r,n,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}function $a(){return Ja(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function Za(){var n=NaN,i=NaN,o=NaN,a=NaN;return Ja(function(t,e,r){return t.type&ou.SMOOTH_CURVE_TO&&(t.type=ou.CURVE_TO,n=isNaN(n)?e:n,i=isNaN(i)?r:i,t.x1=t.relative?e-n:2*e-n,t.y1=t.relative?r-i:2*r-i),i=t.type&ou.CURVE_TO?(n=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):n=NaN,t.type&ou.SMOOTH_QUAD_TO&&(t.type=ou.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?r:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?r-a:2*r-a),a=t.type&ou.QUAD_TO?(o=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y1):o=NaN,t})}function Ka(){var o=NaN,a=NaN;return Ja(function(t,e,r){var n,i;return t.type&ou.SMOOTH_QUAD_TO&&(t.type=ou.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?r:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?r-a:2*r-a),t.type&ou.QUAD_TO?(o=t.relative?e+t.x1:t.x1,a=t.relative?r+t.y1:t.y1,n=t.x1,i=t.y1,t.type=ou.CURVE_TO,t.x1=((t.relative?0:e)+2*n)/3,t.y1=((t.relative?0:r)+2*i)/3,t.x2=(t.x+2*n)/3,t.y2=(t.y+2*i)/3):a=o=NaN,t})}function Ja(r){var n=0,i=0,o=NaN,a=NaN;return function(t){if(isNaN(o)&&!(t.type&ou.MOVE_TO))throw new Error("path must start with moveto");var e=r(t,n,i,o,a);return t.type&ou.CLOSE_PATH&&(n=o,i=a),void 0!==t.x&&(n=t.relative?n+t.x:t.x),void 0!==t.y&&(i=t.relative?i+t.y:t.y),t.type&ou.MOVE_TO&&(o=n,a=i),e}}function tu(c,l,h,f,p,y){return za(c,l,h,f,p,y),Ja(function(t,e,r,n){var i=t.x1,o=t.x2,a=t.relative&&!isNaN(n),u=void 0!==t.x?t.x:a?0:e,n=void 0!==t.y?t.y:a?0:r;function s(t){return t*t}t.type&ou.HORIZ_LINE_TO&&0!==l&&(t.type=ou.LINE_TO,t.y=t.relative?0:r),t.type&ou.VERT_LINE_TO&&0!==h&&(t.type=ou.LINE_TO,t.x=t.relative?0:e),void 0!==t.x&&(t.x=t.x*c+n*h+(a?0:p)),void 0!==t.y&&(t.y=u*l+t.y*f+(a?0:y)),void 0!==t.x1&&(t.x1=t.x1*c+t.y1*h+(a?0:p)),void 0!==t.y1&&(t.y1=i*l+t.y1*f+(a?0:y)),void 0!==t.x2&&(t.x2=t.x2*c+t.y2*h+(a?0:p)),void 0!==t.y2&&(t.y2=o*l+t.y2*f+(a?0:y));r=c*f-l*h;return void 0===t.xRot||1===c&&0===l&&0===h&&1===f||(0==r?(delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag,t.type=ou.LINE_TO):(e=t.xRot*Math.PI/180,n=Math.sin(e),u=Math.cos(e),i=1/s(t.rX),o=1/s(t.rY),a=s(u)*i+s(n)*o,e=s(n)*i+s(u)*o,u=a*f*f-(n=2*n*u*(i-o))*l*f+e*l*l,i=n*(c*f+l*h)-2*(a*h*f+e*c*l),o=a*h*h-n*c*h+e*c*c,a=(Math.atan2(i,u-o)+Math.PI)%Math.PI/2,n=Math.sin(a),e=Math.cos(a),t.rX=Math.abs(r)/Math.sqrt(u*s(e)+i*n*e+o*s(n)),t.rY=Math.abs(r)/Math.sqrt(u*s(n)-i*n*e+o*s(e)),t.xRot=180*a/Math.PI)),void 0!==t.sweepFlag&&r<0&&(t.sweepFlag=+!t.sweepFlag),t})}(Jt=Xa=Xa||{}).ROUND=function(e){function r(t){return Math.round(t*e)/e}return za(e=void 0===e?1e13:e),function(t){return void 0!==t.x1&&(t.x1=r(t.x1)),void 0!==t.y1&&(t.y1=r(t.y1)),void 0!==t.x2&&(t.x2=r(t.x2)),void 0!==t.y2&&(t.y2=r(t.y2)),void 0!==t.x&&(t.x=r(t.x)),void 0!==t.y&&(t.y=r(t.y)),void 0!==t.rX&&(t.rX=r(t.rX)),void 0!==t.rY&&(t.rY=r(t.rY)),t}},Jt.TO_ABS=$a,Jt.TO_REL=function(){return Ja(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},Jt.NORMALIZE_HVZ=function(o,a,u){return void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===u&&(u=!0),Ja(function(t,e,r,n,i){if(isNaN(n)&&!(t.type&ou.MOVE_TO))throw new Error("path must start with moveto");return a&&t.type&ou.HORIZ_LINE_TO&&(t.type=ou.LINE_TO,t.y=t.relative?0:r),u&&t.type&ou.VERT_LINE_TO&&(t.type=ou.LINE_TO,t.x=t.relative?0:e),o&&t.type&ou.CLOSE_PATH&&(t.type=ou.LINE_TO,t.x=t.relative?n-e:n,t.y=t.relative?i-r:i),t.type&ou.ARC&&(0===t.rX||0===t.rY)&&(t.type=ou.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t})},Jt.NORMALIZE_ST=Za,Jt.QT_TO_C=Ka,Jt.INFO=Ja,Jt.SANITIZE=function(p){za(p=void 0===p?0:p);var y=NaN,g=NaN,d=NaN,v=NaN;return Ja(function(t,e,r,n,i){var o,a,u,s,c=Math.abs,l=!1,h=0,f=0;return t.type&ou.SMOOTH_CURVE_TO&&(h=isNaN(y)?0:e-y,f=isNaN(g)?0:r-g),g=t.type&(ou.CURVE_TO|ou.SMOOTH_CURVE_TO)?(y=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):y=NaN,v=t.type&ou.SMOOTH_QUAD_TO?(d=isNaN(d)?e:2*e-d,isNaN(v)?r:2*r-v):t.type&ou.QUAD_TO?(d=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y2):d=NaN,(t.type&ou.LINE_COMMANDS||t.type&ou.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&ou.CURVE_TO||t.type&ou.SMOOTH_CURVE_TO||t.type&ou.QUAD_TO||t.type&ou.SMOOTH_QUAD_TO)&&(o=void 0===t.x?0:t.relative?t.x:t.x-e,a=void 0===t.y?0:t.relative?t.y:t.y-r,h=isNaN(d)?void 0===t.x1?h:t.relative?t.x:t.x1-e:d-e,f=isNaN(v)?void 0===t.y1?f:t.relative?t.y:t.y1-r:v-r,u=void 0===t.x2?0:t.relative?t.x:t.x2-e,s=void 0===t.y2?0:t.relative?t.y:t.y2-r,c(o)<=p&&c(a)<=p&&c(h)<=p&&c(f)<=p&&c(u)<=p&&c(s)<=p&&(l=!0)),(l=t.type&ou.CLOSE_PATH&&c(e-n)<=p&&c(r-i)<=p?!0:l)?[]:t})},Jt.MATRIX=tu,Jt.ROTATE=function(t,e,r){za(t,e=void 0===e?0:e,r=void 0===r?0:r);var n=Math.sin(t),t=Math.cos(t);return tu(t,n,-n,t,e-e*t+r*n,r-e*n-r*t)},Jt.TRANSLATE=function(t,e){return za(t,e=void 0===e?0:e),tu(1,0,0,1,t,e)},Jt.SCALE=function(t,e){return za(t,e=void 0===e?t:e),tu(t,0,0,e,0,0)},Jt.SKEW_X=function(t){return za(t),tu(1,0,Math.atan(t),1,0,0)},Jt.SKEW_Y=function(t){return za(t),tu(1,Math.atan(t),0,1,0,0)},Jt.X_AXIS_SYMMETRY=function(t){return za(t=void 0===t?0:t),tu(-1,0,0,1,t,0)},Jt.Y_AXIS_SYMMETRY=function(t){return za(t=void 0===t?0:t),tu(1,0,0,-1,0,t)},Jt.A_TO_C=function(){return Ja(function(t,e,r){return ou.ARC===t.type?function(r,t,e){r.cX||Ua(r,t,e);for(var n=Math.min(r.phi1,r.phi2),n=Math.max(r.phi1,r.phi2)-n,i=Math.ceil(n/90),o=new Array(i),a=t,u=e,s=0;s<i;s++){var c=Wa(r.phi1,r.phi2,s/i),l=Wa(r.phi1,r.phi2,(s+1)/i),h=4/3*Math.tan((l-c)*Ya/4),f=[Math.cos(c*Ya)-h*Math.sin(c*Ya),Math.sin(c*Ya)+h*Math.cos(c*Ya)],p=f[0],y=f[1],g=[Math.cos(l*Ya),Math.sin(l*Ya)],c=g[0],f=g[1],g=[c+h*Math.sin(l*Ya),f-h*Math.cos(l*Ya)],h=g[0],l=g[1];o[s]={relative:r.relative,type:ou.CURVE_TO};g=function(t,e){t=Fa([t*r.rX,e*r.rY],r.xRot),e=t[0],t=t[1];return[r.cX+e,r.cY+t]},y=g(p,y);o[s].x1=y[0],o[s].y1=y[1],l=g(h,l),o[s].x2=l[0],o[s].y2=l[1],f=g(c,f),o[s].x=f[0],o[s].y=f[1],r.relative&&(o[s].x1-=a,o[s].y1-=u,o[s].x2-=a,o[s].y2-=u,o[s].x-=a,o[s].y-=u),a=(f=[o[s].x,o[s].y])[0],u=f[1]}return o}(t,t.relative?0:e,t.relative?0:r):t})},Jt.ANNOTATE_ARCS=function(){return Ja(function(t,e,r){return t.relative&&(r=e=0),ou.ARC===t.type&&Ua(t,e,r),t})},Jt.CLONE=function(){return function(t){var e,r={};for(e in t)r[e]=t[e];return r}},Jt.CALCULATE_BOUNDS=function(){var w=$a(),k=Ka(),A=Za(),R=Ja(function(t,e,r){var n=A(k(w(function(t){var e,r={};for(e in t)r[e]=t[e];return r}(t))));function i(t){t>R.maxX&&(R.maxX=t),t<R.minX&&(R.minX=t)}function o(t){t>R.maxY&&(R.maxY=t),t<R.minY&&(R.minY=t)}if(n.type&ou.DRAWING_COMMANDS&&(i(e),o(r)),n.type&ou.HORIZ_LINE_TO&&i(n.x),n.type&ou.VERT_LINE_TO&&o(n.y),n.type&ou.LINE_TO&&(i(n.x),o(n.y)),n.type&ou.CURVE_TO){i(n.x),o(n.y);for(var a=0,u=qa(e,n.x1,n.x2,n.x);a<u.length;a++)0<(x=u[a])&&x<1&&i(Qa(e,n.x1,n.x2,n.x,x));for(var s=0,c=qa(r,n.y1,n.y2,n.y);s<c.length;s++)0<(x=c[s])&&x<1&&o(Qa(r,n.y1,n.y2,n.y,x))}if(n.type&ou.ARC){i(n.x),o(n.y),Ua(n,e,r);for(var l=n.xRot/180*Math.PI,h=Math.cos(l)*n.rX,f=Math.sin(l)*n.rX,p=-Math.sin(l)*n.rY,y=Math.cos(l)*n.rY,l=n.phi1<n.phi2?[n.phi1,n.phi2]:n.phi2<-180?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],g=l[0],d=l[1],l=function(t){var e=t[0],t=t[1],e=180*Math.atan2(t,e)/Math.PI;return e<g?360+e:e},v=0,m=Ha(p,-h,0).map(l);v<m.length;v++)(x=m[v])>g&&x<d&&i(Ga(n.cX,h,p,x));for(var x,b=0,S=Ha(y,-f,0).map(l);b<S.length;b++)(x=S[b])>g&&x<d&&o(Ga(n.cY,f,y,x))}return t});return R.minX=1/0,R.maxX=-1/0,R.minY=1/0,R.maxY=-1/0,R};function eu(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}var ru,nu,wt=(cu.prototype.round=function(t){return this.transform(Xa.ROUND(t))},cu.prototype.toAbs=function(){return this.transform(Xa.TO_ABS())},cu.prototype.toRel=function(){return this.transform(Xa.TO_REL())},cu.prototype.normalizeHVZ=function(t,e,r){return this.transform(Xa.NORMALIZE_HVZ(t,e,r))},cu.prototype.normalizeST=function(){return this.transform(Xa.NORMALIZE_ST())},cu.prototype.qtToC=function(){return this.transform(Xa.QT_TO_C())},cu.prototype.aToC=function(){return this.transform(Xa.A_TO_C())},cu.prototype.sanitize=function(t){return this.transform(Xa.SANITIZE(t))},cu.prototype.translate=function(t,e){return this.transform(Xa.TRANSLATE(t,e))},cu.prototype.scale=function(t,e){return this.transform(Xa.SCALE(t,e))},cu.prototype.rotate=function(t,e,r){return this.transform(Xa.ROTATE(t,e,r))},cu.prototype.matrix=function(t,e,r,n,i,o){return this.transform(Xa.MATRIX(t,e,r,n,i,o))},cu.prototype.skewX=function(t){return this.transform(Xa.SKEW_X(t))},cu.prototype.skewY=function(t){return this.transform(Xa.SKEW_Y(t))},cu.prototype.xSymmetry=function(t){return this.transform(Xa.X_AXIS_SYMMETRY(t))},cu.prototype.ySymmetry=function(t){return this.transform(Xa.Y_AXIS_SYMMETRY(t))},cu.prototype.annotateArcs=function(){return this.transform(Xa.ANNOTATE_ARCS())},cu),iu=(ja(su,nu=wt),su.prototype.finish=function(t){if(this.parse(" ",t=void 0===t?[]:t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},su.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==ou.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),u=eu(o)&&("0"===this.curNumber&&"0"===o||a);if(!eu(o)||u)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===ou.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(s<0)throw new SyntaxError('Expected positive number, got "'+s+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(s),this.curArgs.length===au[this.curCommandType]&&(ou.HORIZ_LINE_TO===this.curCommandType?n({type:ou.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):ou.VERT_LINE_TO===this.curCommandType?n({type:ou.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===ou.MOVE_TO||this.curCommandType===ou.LINE_TO||this.curCommandType===ou.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ou.MOVE_TO===this.curCommandType&&(this.curCommandType=ou.LINE_TO)):this.curCommandType===ou.CURVE_TO?n({type:ou.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===ou.SMOOTH_CURVE_TO?n({type:ou.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ou.QUAD_TO?n({type:ou.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ou.ARC&&n({type:ou.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(" "!==(s=o)&&"\t"!==s&&"\r"!==s&&"\n"!==s)if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(u)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=ou.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=ou.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=ou.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=ou.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=ou.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=ou.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=ou.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=ou.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=ou.ARC,this.curCommandRelative="a"===o}else e.push({type:ou.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},su.prototype.transform=function(o){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var r=0,n=Object.getPrototypeOf(this).parse.call(this,t);r<n.length;r++){var i=n[r],i=o(i);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return e}}})},su),ou=(ja(uu,ru=wt),uu.prototype.encode=function(){return uu.encode(this.commands)},uu.prototype.getBounds=function(){var t=Xa.CALCULATE_BOUNDS();return this.transform(t),t},uu.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},uu.encode=function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===ou.CLOSE_PATH)e+="z";else if(n.type===ou.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===ou.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===ou.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===ou.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===ou.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===ou.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===ou.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===ou.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==ou.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e},uu.parse=function(t){var e=new iu,r=[];return e.parse(t,r),e.finish(r),r},uu.CLOSE_PATH=1,uu.MOVE_TO=2,uu.HORIZ_LINE_TO=4,uu.VERT_LINE_TO=8,uu.LINE_TO=16,uu.CURVE_TO=32,uu.SMOOTH_CURVE_TO=64,uu.QUAD_TO=128,uu.SMOOTH_QUAD_TO=256,uu.ARC=512,uu.LINE_COMMANDS=uu.LINE_TO|uu.HORIZ_LINE_TO|uu.VERT_LINE_TO,uu.DRAWING_COMMANDS=uu.HORIZ_LINE_TO|uu.VERT_LINE_TO|uu.LINE_TO|uu.CURVE_TO|uu.SMOOTH_CURVE_TO|uu.QUAD_TO|uu.SMOOTH_QUAD_TO|uu.ARC,uu),au=((_r={})[ou.MOVE_TO]=2,_r[ou.LINE_TO]=2,_r[ou.HORIZ_LINE_TO]=1,_r[ou.VERT_LINE_TO]=1,_r[ou.CLOSE_PATH]=0,_r[ou.QUAD_TO]=4,_r[ou.SMOOTH_QUAD_TO]=2,_r[ou.CURVE_TO]=6,_r[ou.SMOOTH_CURVE_TO]=4,_r[ou.ARC]=7,_r);function uu(t){var e=ru.call(this)||this;return e.commands="string"==typeof t?uu.parse(t):t,e}function su(){var t=nu.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}function cu(){}var lu=function(){xo(i,ou);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(t){return Jn(this,i),(t=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,t.start=null,t.current=null,t.command=null,t.commands=t.commands,t.i=-1,t.previousCommand=null,t.points=[],t.angles=[],t}return ei(i,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new no(0,0),this.control=new no(0,0),this.current=new no(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t}},{key:"getPoint",value:function(){var t=new no(this.command[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"x"],this.command[1<arguments.length&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(t,e){e=this.getPoint(t,e);return this.control=e}},{key:"getAsCurrentPoint",value:function(t,e){e=this.getPoint(t,e);return this.current=e}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==ou.CURVE_TO&&t!==ou.SMOOTH_CURVE_TO&&t!==ou.QUAD_TO&&t!==ou.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,t=this.control,e=t.x,t=t.y;return new no(2*r-e,2*n-t)}},{key:"makeAbsolute",value:function(t){var e,r;return this.command.relative&&(e=(r=this.current).x,r=r.y,t.x+=e,t.y+=r),t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&0<i.length&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),i}(),Lt="toString",hu=RegExp.prototype,fu=hu.toString,le=c(function(){return"/a/b"!=fu.call({source:"a",flags:"b"})}),Ce=fu.name!=Lt;(le||Ce)&&K(RegExp.prototype,Lt,function(){var t=R(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in hu)?Hr.call(t):r)},{unsafe:!0});var pu=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return ei(i,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e,r,n,i,o,a,u,s,c,l,h,f=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f||(n=this.getStyle("fill"),e=this.getStyle("fill-opacity"),u=this.getStyle("stroke"),h=this.getStyle("stroke-opacity"),n.isUrlDefinition()?(r=n.getFillStyleDefinition(this,e))&&(t.fillStyle=r):n.hasValue()&&("currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor()),"inherit"!==(n=n.getColor())&&(t.fillStyle="none"===n?"rgba(0,0,0,0)":n)),e.hasValue()&&(i=new qi(this.document,"fill",t.fillStyle).addOpacity(e).getColor(),t.fillStyle=i),u.isUrlDefinition()?(i=u.getFillStyleDefinition(this,h))&&(t.strokeStyle=i):u.hasValue()&&("currentColor"===u.getString()&&u.setValue(this.getStyle("color").getColor()),"inherit"!==(o=u.getString())&&(t.strokeStyle="none"===o?"rgba(0,0,0,0)":o)),h.hasValue()&&(a=new qi(this.document,"stroke",t.strokeStyle).addOpacity(h).getString(),t.strokeStyle=a),(u=this.getStyle("stroke-width")).hasValue()&&(c=u.getPixels(),t.lineWidth=c||Bn),o=this.getStyle("stroke-linecap"),h=this.getStyle("stroke-linejoin"),a=this.getStyle("stroke-miterlimit"),u=this.getStyle("stroke-dasharray"),c=this.getStyle("stroke-dashoffset"),o.hasValue()&&(t.lineCap=o.getString()),h.hasValue()&&(t.lineJoin=h.getString()),a.hasValue()&&(t.miterLimit=a.getNumber()),u.hasValue()&&"none"!==u.getString()&&(s=kn(u.getString()),void 0!==t.setLineDash?t.setLineDash(s):void 0!==t.webkitLineDash?t.webkitLineDash=s:void 0===t.mozDash||1===s.length&&0===s[0]||(t.mozDash=s),l=c.getPixels(),void 0!==t.lineDashOffset?t.lineDashOffset=l:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=l:void 0!==t.mozDashOffset&&(t.mozDashOffset=l))),this.modifiedEmSizeStack=!1,void 0!==t.font&&(h=this.getStyle("font"),a=this.getStyle("font-style"),u=this.getStyle("font-variant"),s=this.getStyle("font-weight"),c=this.getStyle("font-size"),l=this.getStyle("font-family"),h=new ba(a.getString(),u.getString(),s.getString(),c.hasValue()?"".concat(c.getPixels(!0),"px"):"",l.getString(),ba.parse(h.getString(),t.font)),a.setValue(h.fontStyle),u.setValue(h.fontVariant),s.setValue(h.fontWeight),c.setValue(h.fontSize),l.setValue(h.fontFamily),t.font=h.toString(),c.isPixels()&&(this.document.emSize=c.getPixels(),this.modifiedEmSizeStack=!0)),f||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){ma(ko(i.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),i}();var yu=function(){xo(y,pu);var r,n,i=(r=y,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function y(t,e,r){return Jn(this,y),(r=i.call(this,t,e,r)).type="path",r.pathParser=null,r.pathParser=new lu(r.getAttribute("d").getString()),r}return ei(y,[{key:"path",value:function(t){var e=this.pathParser,r=new Va;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case lu.MOVE_TO:this.pathM(t,r);break;case lu.LINE_TO:this.pathL(t,r);break;case lu.HORIZ_LINE_TO:this.pathH(t,r);break;case lu.VERT_LINE_TO:this.pathV(t,r);break;case lu.CURVE_TO:this.pathC(t,r);break;case lu.SMOOTH_CURVE_TO:this.pathS(t,r);break;case lu.QUAD_TO:this.pathQ(t,r);break;case lu.SMOOTH_QUAD_TO:this.pathT(t,r);break;case lu.ARC:this.pathA(t,r);break;case lu.CLOSE_PATH:this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map(function(t,e){return[t,r[e]]})}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n,i=r.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),u=this.getStyle("marker-end");if(o.isUrlDefinition()&&(e=o.getDefinition(),o=(n=Mn(r[0],2))[0],n=n[1],e.render(t,o,n)),a.isUrlDefinition())for(var s=a.getDefinition(),c=1;c<i;c++){var l=Mn(r[c],2),h=l[0],l=l[1];s.render(t,h,l)}u.isUrlDefinition()&&(n=u.getDefinition(),u=(a=Mn(r[i],2))[0],a=a[1],n.render(t,u,a))}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=y.pathM(r).point,i=n.x,o=n.y;r.addMarker(n),e.addPoint(i,o),t&&t.moveTo(i,o)}},{key:"pathL",value:function(t,e){var r=this.pathParser,n=y.pathL(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathH",value:function(t,e){var r=this.pathParser,n=y.pathH(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathV",value:function(t,e){var r=this.pathParser,n=y.pathV(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathC",value:function(t,e){var r=this.pathParser,n=y.pathC(r),i=n.current,o=n.point,a=n.controlPoint,n=n.currentPoint;r.addMarker(n,a,o),e.addBezierCurve(i.x,i.y,o.x,o.y,a.x,a.y,n.x,n.y),t&&t.bezierCurveTo(o.x,o.y,a.x,a.y,n.x,n.y)}},{key:"pathS",value:function(t,e){var r=this.pathParser,n=y.pathS(r),i=n.current,o=n.point,a=n.controlPoint,n=n.currentPoint;r.addMarker(n,a,o),e.addBezierCurve(i.x,i.y,o.x,o.y,a.x,a.y,n.x,n.y),t&&t.bezierCurveTo(o.x,o.y,a.x,a.y,n.x,n.y)}},{key:"pathQ",value:function(t,e){var r=this.pathParser,n=y.pathQ(r),i=n.current,o=n.controlPoint,n=n.currentPoint;r.addMarker(n,o,o),e.addQuadraticCurve(i.x,i.y,o.x,o.y,n.x,n.y),t&&t.quadraticCurveTo(o.x,o.y,n.x,n.y)}},{key:"pathT",value:function(t,e){var r=this.pathParser,n=y.pathT(r),i=n.current,o=n.controlPoint,n=n.currentPoint;r.addMarker(n,o,o),e.addQuadraticCurve(i.x,i.y,o.x,o.y,n.x,n.y),t&&t.quadraticCurveTo(o.x,o.y,n.x,n.y)}},{key:"pathA",value:function(t,e){var r=this.pathParser,n=y.pathA(r),i=n.currentPoint,o=n.rX,a=n.rY,u=n.sweepFlag,s=n.xAxisRotation,c=n.centp,l=n.a1,h=n.ad,f=1-u?1:-1,p=l+h/2*f,n=new no(c.x+o*Math.cos(p),c.y+a*Math.sin(p));r.addMarkerAngle(n,p-f*Math.PI/2),r.addMarkerAngle(i,p-f*Math.PI),e.addPoint(i.x,i.y),!t||isNaN(l)||isNaN(h)||(e=a<o?o:a,i=a<o?1:o/a,o=a<o?a/o:1,t.translate(c.x,c.y),t.rotate(s),t.scale(i,o),t.arc(0,0,e,l,l+h,Boolean(1-u)),t.scale(1/i,1/o),t.rotate(-s),t.translate(-c.x,-c.y))}},{key:"pathZ",value:function(t,e){y.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,r=new no((r.relative?e.x:0)+r.x,e.y);return{current:e,point:t.current=r}}},{key:"pathV",value:function(t){var e=t.current,r=t.command,r=new no(e.x,(r.relative?e.y:0)+r.y);return{current:e,point:t.current=r}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();return{current:e,controlPoint:t.control=r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,o=r.xRot,a=r.lArcFlag,u=r.sweepFlag,s=o*(Math.PI/180),c=t.getAsCurrentPoint(),r=new no(Math.cos(s)*(e.x-c.x)/2+Math.sin(s)*(e.y-c.y)/2,-Math.sin(s)*(e.x-c.x)/2+Math.cos(s)*(e.y-c.y)/2),o=Math.pow(r.x,2)/Math.pow(n,2)+Math.pow(r.y,2)/Math.pow(i,2);1<o&&(n*=Math.sqrt(o),i*=Math.sqrt(o));t=(a===u?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(r.y,2)-Math.pow(i,2)*Math.pow(r.x,2))/(Math.pow(n,2)*Math.pow(r.y,2)+Math.pow(i,2)*Math.pow(r.x,2)));isNaN(t)&&(t=0);o=new no(t*n*r.y/i,t*-i*r.x/n),a=new no((e.x+c.x)/2+Math.cos(s)*o.x-Math.sin(s)*o.y,(e.y+c.y)/2+Math.sin(s)*o.x+Math.cos(s)*o.y),t=Xn([1,0],[(r.x-o.x)/n,(r.y-o.y)/i]),e=[(r.x-o.x)/n,(r.y-o.y)/i],r=[(-r.x-o.x)/n,(-r.y-o.y)/i],o=Xn(e,r);return Hn(e,r)<=-1&&(o=Math.PI),{currentPoint:c,rX:n,rY:i,sweepFlag:u,xAxisRotation:s,centp:a,a1:t,ad:o=1<=Hn(e,r)?0:o}}},{key:"pathZ",value:function(t){t.current=t.start}}]),y}();var gu=function(){xo(o,yu);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return o}();var du=function(){xo(o,pu);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,(this instanceof o?this.constructor:void 0)===o||r)).type="text",r.x=0,r.y=0,r.measureCache=-1,r}return ei(o,[{key:"setContext",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];ma(ko(o.prototype),"setContext",this).call(this,t,e);e=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();e&&(t.textBaseline=e)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(r){var n=this;if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(r);var i=null;return this.children.forEach(function(t,e){e=n.getChildBoundingBox(r,n,n,e);i?i.addBoundingBox(e):i=e}),i}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,t=ba.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Va(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n,i,o,a=e[r],u=null;return t.isArabic?(n=e.length,i=e[r-1],o=e[r+1],void 0!==t.glyphs[a]&&(u=(e=t.glyphs[a])instanceof gu?e:e[0<r&&" "!==i&&(r===n-1||" "===o)?"initial":0<r&&" "!==i&&r<n-2&&" "!==o?"medial":(0===r||" "===i)&&r<n-2&&" "!==o?"terminal":"isolated"])):u=t.glyphs[a],u=u||t.missingGlyph}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),t=r.indexOf(e),r=r.length-1,e=bn(e.textContent||"");return 0===t&&(e=Sn(e)),e=t===r?wn(e):e}},{key:"renderChildren",value:function(r){var t,n=this;"text"===this.type?(this.initializeCoordinates(r),this.children.forEach(function(t,e){n.renderChild(r,n,n,e)}),(t=this.document.screen.mouse).isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(r))):this.renderTElementChildren(r)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var o=i.fontFace.unitsPerEm,a=ba.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(a.fontSize),s=r.getStyle("font-style").getString(a.fontStyle),c=u/o,l=i.isRTL?n.split("").reverse().join(""):n,h=kn(r.getAttribute("dx").getString()),f=l.length,p=0;p<f;p++){var y=this.getGlyph(i,l,p);t.translate(this.x,this.y),t.scale(c,-c);var g=t.lineWidth;t.lineWidth=t.lineWidth*o/u,"italic"===s&&t.transform(1,0,.4,1,0,0),y.render(t),"italic"===s&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=u*(y.horizAdvX||i.horizAdvX)/o,void 0===h[p]||isNaN(h[p])||(this.x+=h[p])}else{a=this.x,r=this.y;t.fillStyle&&t.fillText(n,a,r),t.strokeStyle&&t.strokeText(n,a,r)}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"===n)return 0;for(var i=e.children,o=i.length,a=null,u=0,s=r;s<o&&(a=i[s],!(r<s&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));s++)u+=a.measureTextRecursive(t);return-1*("end"===n?u:u/2)}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o,a=i.getAttribute("x"),u=i.getAttribute("y"),s=i.getAttribute("dx"),c=i.getAttribute("dy"),l=i.getAttribute("text-anchor").getString("start");return 0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("y").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dx").getValue("0")),c.hasValue()||c.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()?(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==l&&(o=i.measureTextRecursive(t),i.x+=-1*("end"===l?o:o/2)),s.hasValue()&&(i.x+=s.getPixels("x"))):("start"!==l&&(o=i.measureTextRecursive(t),e.x+=-1*("end"===l?o:o/2)),s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),u.hasValue()?(i.y=u.getPixels("y"),c.hasValue()&&(i.y+=c.getPixels("y"))):(c.hasValue()&&(e.y+=c.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(r,n,t,e){var i=this.adjustChildCoordinates(r,n,t,e);if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(r);return o?(i.children.forEach(function(t,e){e=n.getChildBoundingBox(r,n,i,e);o.addBoundingBox(e)}),o):null}},{key:"renderChild",value:function(r,n,t,e){var i=this.adjustChildCoordinates(r,n,t,e);i.render(r),i.children.forEach(function(t,e){n.renderChild(r,n,i,e)})}},{key:"measureTextRecursive",value:function(r){return this.children.reduce(function(t,e){return t+e.measureTextRecursive(r)},this.measureText(r))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;e=this.getText(),e=this.measureTargetText(t,e);return this.measureCache=e}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),o=n.isRTL?e.split("").reverse().join(""):e,a=kn(r.getAttribute("dx").getString()),u=o.length,s=0,c=0;c<u;c++)s+=(this.getGlyph(n,o,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===a[c]||isNaN(a[c])||(s+=a[c]);return s}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);e=t.measureText(e).width;return this.clearContext(t),t.restore(),e}}]),o}();var vu=function(){xo(o,du);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,(this instanceof o?this.constructor:void 0)===o||r)).type="tspan",r.text=0<r.children.length?"":r.getTextFromNode(),r}return ei(o,[{key:"getText",value:function(){return this.text}}]),o}();var mu=function(){xo(i,vu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="textNode",t}return i}();var xu=function(){xo(y,pu);var r,n,e=(r=y,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function y(){var t;return Jn(this,y),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return ei(y,[{key:"setContext",value:function(t){var e=this.document,r=e.screen,n=e.window,i=t.canvas;r.setDefaults(t),i.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle&&(t.font=n.getComputedStyle(i).getPropertyValue("font"),(p=new qi(e,"fontSize",ba.parse(t.font).fontSize)).hasValue()&&(e.rootEmSize=p.getPixels("y"),e.emSize=e.rootEmSize)),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var o=r.viewPort,a=o.width,u=o.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var s=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),h=l.hasValue()?kn(l.getString()):null,f=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),n=0,i=0,p=0,o=0;h&&(n=h[0],i=h[1]),this.root||(a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(p=n,o=i,i=n=0)),r.viewPort.setCurrent(a,u),!this.node||this.parent&&"foreignObject"!==(null===(l=this.node.parentNode)||void 0===l?void 0:l.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),ma(ko(y.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(a=h[2],u=h[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:u,minX:n,minY:i,refX:s.getValue(),refY:c.getValue(),clip:f,clipX:p,clipY:o}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,u))}},{key:"clearContext",value:function(t){ma(ko(y.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),u=n.getNumber(0),s=i.getNumber(0);r&&("string"==typeof r?this.getAttribute("preserveAspectRatio",!0).setValue(r):(r=this.getAttribute("preserveAspectRatio")).hasValue()&&r.setValue(r.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))),n.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(s||e)),a.hasValue()&&(s=this.getStyle("width"),a=this.getStyle("height"),s.hasValue()&&s.setValue("".concat(t,"px")),a.hasValue()&&a.setValue("".concat(e,"px")))}}]),y}();var bu=function(){xo(i,yu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="rect",t}return ei(i,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),u=o.getPixels("x"),s=a.getPixels("y");return o.hasValue()&&!a.hasValue()&&(s=u),a.hasValue()&&!o.hasValue()&&(u=s),u=Math.min(u,n/2),s=Math.min(s,i/2),t&&(o=(Math.sqrt(2)-1)/3*4,t.beginPath(),0<i&&0<n&&(t.moveTo(e+u,r),t.lineTo(e+n-u,r),t.bezierCurveTo(e+n-u+o*u,r,e+n,r+s-o*s,e+n,r+s),t.lineTo(e+n,r+i-s),t.bezierCurveTo(e+n,r+i-s+o*s,e+n-u+o*u,r+i,e+n-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-o*u,r+i,e,r+i-s+o*s,e,r+i-s),t.lineTo(e,r+s),t.bezierCurveTo(e,r+s-o*s,e+u-o*u,r,e+u,r),t.closePath())),new Va(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),i}();Se=function(){xo(i,yu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="circle",t}return ei(i,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&0<n&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Va(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),i}();Ae=function(){xo(i,yu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="ellipse",t}return ei(i,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&0<r&&0<n&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*n,i+e*r,o+n,i,o+n),t.bezierCurveTo(i-e*r,o+n,i-r,o+e*n,i-r,o),t.bezierCurveTo(i-r,o-e*n,i-e*r,o-n,i,o-n),t.bezierCurveTo(i+e*r,o-n,i+r,o-e*n,i+r,o),t.closePath()),new Va(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),i}();we=function(){xo(i,yu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="line",t}return ei(i,[{key:"getPoints",value:function(){return[new no(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new no(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=Mn(e,2),n=r[0],i=n.x,e=n.y,n=r[1],r=n.x,n=n.y;return t&&(t.beginPath(),t.moveTo(i,e),t.lineTo(r,n)),new Va(i,e,r,n)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=Mn(t,2),r=e[0],t=e[1],e=r.angleTo(t);return[[r,e],[t,e]]}}]),i}();var Su=function(){xo(o,yu);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="polyline",r.points=[],r.points=no.parsePath(r.getAttribute("points").getString()),r}return ei(o,[{key:"path",value:function(r){var t=this.points,e=Mn(t,1)[0],n=e.x,e=e.y,i=new Va(n,e);return r&&(r.beginPath(),r.moveTo(n,e)),t.forEach(function(t){var e=t.x,t=t.y;i.addPoint(e,t),r&&r.lineTo(e,t)}),i}},{key:"getMarkers",value:function(){var r=this.points,n=r.length-1,i=[];return r.forEach(function(t,e){e!==n&&i.push([t,t.angleTo(r[e+1])])}),0<i.length&&i.push([r[r.length-1],i[i.length-1][1]]),i}}]),o}();Y=function(){xo(i,Su);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="polygon",t}return ei(i,[{key:"path",value:function(t){var e=ma(ko(i.prototype),"path",this).call(this,t),r=Mn(this.points,1)[0],n=r.x,r=r.y;return t&&(t.lineTo(n,r),t.closePath()),e}}]),i}();D=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="pattern",t}return ei(i,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new xu(this.document,null);o.attributes.viewBox=new qi(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new qi(this.document,"width","".concat(n,"px")),o.attributes.height=new qi(this.document,"height","".concat(i,"px")),o.attributes.transform=new qi(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),u=a.getContext("2d"),n=this.getAttribute("x"),i=this.getAttribute("y");n.hasValue()&&i.hasValue()&&u.translate(n.getPixels("x",!0),i.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var s=-1;s<=1;s++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new qi(this.document,"x",s*a.width),o.attributes.y=new qi(this.document,"y",c*a.height),o.render(u),u.restore();return t.createPattern(a,"repeat")}}]),i}();q=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="marker",t}return ei(i,[{key:"render",value:function(t,e,r){var n,i,o,a;e&&(n=e.x,i=e.y,o=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth"),t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save(),(e=new xu(this.document,null)).type=this.type,e.attributes.viewBox=new qi(this.document,"viewBox",this.getAttribute("viewBox").getValue()),e.attributes.refX=new qi(this.document,"refX",this.getAttribute("refX").getValue()),e.attributes.refY=new qi(this.document,"refY",this.getAttribute("refY").getValue()),e.attributes.width=new qi(this.document,"width",this.getAttribute("markerWidth").getValue()),e.attributes.height=new qi(this.document,"height",this.getAttribute("markerHeight").getValue()),e.attributes.overflow=new qi(this.document,"overflow",this.getAttribute("overflow").getValue()),e.attributes.fill=new qi(this.document,"fill",this.getAttribute("fill").getColor("black")),e.attributes.stroke=new qi(this.document,"stroke",this.getAttribute("stroke").getValue("none")),e.children=this.children,e.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i))}}]),i}();var wu=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="defs",t}return ei(i,[{key:"render",value:function(){}}]),i}();var ku=function(){xo(i,pu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="g",t}return ei(i,[{key:"getBoundingBox",value:function(e){var r=new Va;return this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),r}}]),i}();var Au=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(e=i.call(this,t,e,r)).attributesToInherit=["gradientUnits"],e.stops=[];var r=wo(e),n=r.stops;return r.children.forEach(function(t){"stop"===t.type&&n.push(t)}),e}return ei(o,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var o=i.stops,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,o[o.length-1].color);if(o.forEach(function(t){a.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){i=this.document,t=i.screen,e=t.MAX_VIRTUAL_PIXELS,o=t.viewPort,t=Mn(o.viewPorts,1)[0],o=new bu(i,null);o.attributes.x=new qi(i,"x",-e/3),o.attributes.y=new qi(i,"y",-e/3),o.attributes.width=new qi(i,"width",e),o.attributes.height=new qi(i,"height",e);e=new ku(i,null);e.attributes.transform=new qi(i,"transform",this.getAttribute("gradientTransform").getValue()),e.children=[o];o=new xu(i,null);o.attributes.x=new qi(i,"x",0),o.attributes.y=new qi(i,"y",0),o.attributes.width=new qi(i,"width",t.width),o.attributes.height=new qi(i,"height",t.height),o.children=[e];i=i.createCanvas(t.width,t.height),t=i.getContext("2d");return t.fillStyle=a,o.render(t),t.createPattern(i,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(e){var r=this;this.attributesToInherit.forEach(function(t){!r.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&r.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new qi(this.document,"color",e).addOpacity(t).getColor():e}}]),o}();var Ru=function(){xo(o,Au);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return ei(o,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),e=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),n=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===e&&o===n?null:t.createLinearGradient(i,o,e,n)}}]),o}();Bo=function(){xo(o,Au);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return ei(o,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,e=o;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(e=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));r=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),n=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,e,n,i,o,r)}}]),o}();var me=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){var n;Jn(this,o),(n=i.call(this,t,e,r)).type="stop";t=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),e=n.getStyle("stop-opacity"),r=n.getStyle("stop-color",!0);return""===r.getString()&&r.setValue("#000"),e.hasValue()&&(r=r.addOpacity(e)),n.offset=t,n.color=r.getColor(),n}return o}(),Tu="Array Iterator",Eu=Z.set,Pu=Z.getterFor(Tu),Ou=Xo(Array,"Array",function(t,e){Eu(this,{type:Tu,target:it(t),index:0,kind:e})},function(){var t=Pu(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");ne.Arguments=ne.Array,Oe("keys"),Oe("values"),Oe("entries");var Cu,Mu=h("iterator"),Nu=h("toStringTag"),_u=Ou.values;for(Cu in eo){var Du=d[Cu],Vu=Du&&Du.prototype;if(Vu){if(Vu[Mu]!==_u)try{x(Vu,Mu,_u)}catch(t){Vu[Mu]=_u}if(Vu[Nu]||x(Vu,Nu,Cu),eo[Cu])for(var Iu in Ou)if(Vu[Iu]!==Ou[Iu])try{x(Vu,Iu,Ou[Iu])}catch(t){Vu[Iu]=Ou[Iu]}}}var Lu=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(r=i.call(this,t,e,r)).type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,t.screen.animations.push(wo(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new qi(t,"values",null);t=r.getAttribute("values");return t.hasValue()&&r.values.setValue(t.getString().split(";")),r}return ei(o,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,e=e.to,r=n.getNumber()+(e.getNumber()-n.getNumber())*r;return"%"===t&&(r*=100),"".concat(r).concat(t)}},{key:"update",value:function(t){var e=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;n=!1;return this.begin<this.duration&&(e=this.calcValue(),(t=this.getAttribute("type")).hasValue()&&(t=t.getString(),e="".concat(t,"(").concat(e,")")),r.setValue(e),n=!0),n}},{key:"getProgress",value:function(){var t,e,r,n=this.document,i=this.values,o={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};return i.hasValue()?(t=o.progress*(i.getValue().length-1),e=Math.floor(t),r=Math.ceil(t),o.from=new qi(n,"from",parseFloat(i.getValue()[e])),o.to=new qi(n,"to",parseFloat(i.getValue()[r])),o.progress=(t-e)/(r-e)):(o.from=this.from,o.to=this.to),o}}]),o}();$=function(){xo(i,Lu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="animateColor",t}return ei(i,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new Gi(r.getColor()),t=new Gi(n.getColor());if(i.ok&&t.ok){r=i.r+(t.r-i.r)*e,n=i.g+(t.g-i.g)*e,e=i.b+(t.b-i.b)*e;return"rgb(".concat(Math.floor(r),", ").concat(Math.floor(n),", ").concat(Math.floor(e),")")}return this.getAttribute("from").getColor()}}]),i}();jt=function(){xo(i,Lu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="animateTransform",t}return ei(i,[{key:"calcValue",value:function(){var t=this.getProgress(),r=t.progress,e=t.from,t=t.to,e=kn(e.getString()),n=kn(t.getString());return e.map(function(t,e){return t+(n[e]-t)*r}).join(" ")}}]),i}();function ju(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Fe=function(){xo(h,ha);var r,n,l=(r=h,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function h(t,e,r){var n;Jn(this,h),(n=l.call(this,t,e,r)).type="font",n.glyphs={},n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber();var i,o=t.definitions,a=function(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return ju(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ju(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}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 i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(wo(n).children);try{for(a.s();!(i=a.n()).done;){var u=i.value;switch(u.type){case"font-face":var s=(n.fontFace=u).getStyle("font-family");s.hasValue()&&(o[s.getString()]=wo(n));break;case"missing-glyph":n.missingGlyph=u;break;case"glyph":var c=u;c.arabicForm?(n.isRTL=!0,n.isArabic=!0,void 0===n.glyphs[c.unicode]&&(n.glyphs[c.unicode]={}),n.glyphs[c.unicode][c.arabicForm]=c):n.glyphs[c.unicode]=c}}}catch(t){a.e(t)}finally{a.f()}return n}return ei(h,[{key:"render",value:function(){}}]),h}();Ir=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="font-face",r.ascent=r.getAttribute("ascent").getNumber(),r.descent=r.getAttribute("descent").getNumber(),r.unitsPerEm=r.getAttribute("units-per-em").getNumber(),r}return o}();dn=function(){xo(i,yu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return i}();Ci=function(){xo(i,du);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="tref",t}return ei(i,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}]),i}();var Fu,zu,Bu,Uu,Hu,Xu,Yu,Wu,xn=function(){xo(o,du);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(t=i.call(this,t,e,r)).type="a";r=e.childNodes,e=r[0],r=0<r.length&&Array.from(r).every(function(t){return 3===t.nodeType});return t.hasText=r,t.text=r?t.getTextFromNode(e):"",t}return ei(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){var e,r,n,i;this.hasText?(ma(ko(o.prototype),"renderChildren",this).call(this,t),n=this.document,e=this.x,i=this.y,r=n.screen.mouse,n=new qi(n,"fontSize",ba.parse(n.ctx.font).fontSize),r.isWorking()&&r.checkBoundingBox(this,new Va(e,i-n.getPixels("y"),e+this.measureText(t),i))):0<this.children.length&&((i=new ku(this.document,null)).children=this.children,i.parent=this,i.render(t))}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),o}(),Gu=!c(function(){return Object.isExtensible(Object.preventExtensions({}))}),i=r(function(t){function r(t){e(t,n,{value:{objectID:"O"+ ++i,weakData:{}}})}var e=m.f,n=u("meta"),i=0,o=Object.isExtensible||function(){return!0},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!p(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!A(t,n)){if(!o(t))return"F";if(!e)return"E";r(t)}return t[n].objectID},getWeakData:function(t,e){if(!A(t,n)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[n].weakData},onFreeze:function(t){return Gu&&a.REQUIRED&&o(t)&&!A(t,n)&&r(t),t}};Q[n]=!0}),qu=m.f,Qu=i.fastKey,$u=Z.set,Zu=Z.getterFor;function Ku(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ju(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function ts(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ju(Object(r),!0).forEach(function(t){Kn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ju(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function es(t){var r=Yu[t];K(Yu,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(Uu&&!p(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return Uu&&!p(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(Uu&&!p(t))&&r.call(this,0===t?0:t)}:function(t,e){return r.call(this,0===t?0:t,e),this})}ve=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Jt={getConstructor:function(t,r,n,i){function o(t,e,r){var n,i=s(t),o=a(t,e);return o?o.value=r:(i.last=o={index:n=Qu(e,!0),key:e,value:r,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=o),r&&(r.next=o),f?i.size++:t.size++,"F"!==n&&(i.index[n]=o)),t}function a(t,e){var r,n=s(t);if("F"!==(t=Qu(e)))return n.index[t];for(r=n.first;r;r=r.next)if(r.key==e)return r}var u=t(function(t,e){gt(t,u,r),$u(t,{type:r,index:Mo(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=e&&St(e,t[i],{that:t,AS_ENTRIES:n})}),s=Zu(r);return ht(u.prototype,{clear:function(){for(var t=s(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e,r=s(this),n=a(this,t);return n&&(e=n.next,t=n.previous,delete r.index[n.index],n.removed=!0,t&&(t.next=e),e&&(e.previous=t),r.first==n&&(r.first=e),r.last==n&&(r.last=t),f?r.size--:this.size--),!!n},forEach:function(t){for(var e,r=s(this),n=vt(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),ht(u.prototype,n?{get:function(t){t=a(this,t);return t&&t.value},set:function(t,e){return o(this,0===t?0:t,e)}}:{add:function(t){return o(this,t=0===t?0:t,t)}}),f&&qu(u.prototype,"size",{get:function(){return s(this).size}}),u},setStrong:function(t,e,r){var n=e+" Iterator",i=Zu(e),o=Zu(n);Xo(t,e,function(t,e){$u(this,{type:n,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:t.target=void 0,done:!0}},r?"entries":"values",!r,!0),pt(e)}},Bu=-1!==(Fu="Map").indexOf("Map"),Uu=-1!==Fu.indexOf("Weak"),Hu=Bu?"set":"add",Xu=d.Map,Yu=Xu&&Xu.prototype,wt={},Zt(Fu,"function"!=typeof(Wu=Xu)||!(Uu||Yu.forEach&&!c(function(){(new Xu).entries().next()})))?(Wu=Jt.getConstructor(ve,Fu,Bu,Hu),i.REQUIRED=!0):Zt(Fu,!0)&&(vs=(zu=new Wu)[Hu](Uu?{}:-0,1)!=zu,gs=c(function(){zu.has(1)}),ys=ye(function(t){new Xu(t)}),ds=!Uu&&c(function(){for(var t=new Xu,e=5;e--;)t[Hu](e,e);return!t.has(-0)}),ys||(((Wu=ve(function(t,e){gt(t,Wu,Fu);t=wa(new Xu,t,Wu);return null!=e&&St(e,t[Hu],{that:t,AS_ENTRIES:Bu}),t})).prototype=Yu).constructor=Wu),(gs||ds)&&(es("delete"),es("has"),Bu&&es("get")),(ds||vs)&&es(Hu),Uu&&Yu.clear&&delete Yu.clear),wt.Map=Wu,lt({global:!0,forced:Wu!=Xu},wt),ft(Wu,Fu),Uu||Jt.setStrong(Wu,Fu,Bu);_r=function(){xo(o,du);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){Jn(this,o),(e=i.call(this,t,e,r)).type="textPath",e.textWidth=0,e.textHeight=0,e.pathLength=-1,e.glyphInfo=null,e.letterSpacingCache=[],e.measuresCache=new Map([["",0]]);r=e.getHrefAttribute().getDefinition();return e.text=e.getTextFromNode(),e.dataArray=e.parsePathData(r),e}return ei(o,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(p){var t=this.dataArray;p&&p.beginPath(),t.forEach(function(t){var e=t.type,r=t.points;switch(e){case lu.LINE_TO:p&&p.lineTo(r[0],r[1]);break;case lu.MOVE_TO:p&&p.moveTo(r[0],r[1]);break;case lu.CURVE_TO:p&&p.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case lu.QUAD_TO:p&&p.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case lu.ARC:var n=Mn(r,8),i=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],l=n[6],h=n[7],f=u<a?a:u,n=u<a?1:a/u,a=u<a?u/a:1;p&&(p.translate(i,o),p.rotate(l),p.scale(n,a),p.arc(0,0,f,s,s+c,Boolean(1-h)),p.scale(1/n,1/a),p.rotate(-l),p.translate(-i,-o));break;case lu.CLOSE_PATH:p&&p.closePath()}})}},{key:"renderChildren",value:function(o){this.setTextData(o),o.save();var a=this.parent.getStyle("text-decoration").getString(),u=this.getFontSize(),t=this.glyphInfo,e=o.fillStyle;"underline"===a&&o.beginPath(),t.forEach(function(t,e){var r=t.p0,n=t.p1,i=t.rotation,t=t.text;o.save(),o.translate(r.x,r.y),o.rotate(i),o.fillStyle&&o.fillText(t,0,0),o.strokeStyle&&o.strokeText(t,0,0),o.restore(),"underline"===a&&(0===e&&o.moveTo(r.x,r.y+u/8),o.lineTo(n.x,n.y+u/5))}),"underline"===a&&(o.lineWidth=u/20,o.strokeStyle=e,o.stroke(),o.closePath()),o.restore()}},{key:"getLetterSpacingAt",value:function(){return this.letterSpacingCache[0<arguments.length&&void 0!==arguments[0]?arguments[0]:0]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,o,a,u,s){t=this.measureText(t,u);" "===u&&"justify"===e&&r<n&&(t+=(n-r)/i),-1<s&&(o+=this.getLetterSpacingAt(s));e=this.textHeight/20,n=this.getEquidistantPointOnPath(o,e,0),r=this.getEquidistantPointOnPath(o+t,e,0),i={p0:n,p1:r},s=n&&r?Math.atan2(r.y-n.y,r.x-n.x):0;return a&&(e=Math.cos(Math.PI/2+s)*a,a=Math.cos(-s)*a,i.p0=ts(ts({},n),{},{x:n.x+e,y:n.y+a}),i.p1=ts(ts({},r),{},{x:r.x+e,y:r.y+a})),{offset:o+=t,segment:i,rotation:s}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,e=e||this.getText();if(r.has(e))return r.get(e);t=this.measureTargetText(t,e);return r.set(e,t),t}},{key:"setTextData",value:function(i){var o=this;if(!this.glyphInfo){var t=this.getText(),a=t.split(""),u=t.split(" ").length-1,e=this.parent.getAttribute("dx").split().map(function(t){return t.getPixels("x")}),s=this.parent.getAttribute("dy").getPixels("y"),c=this.parent.getStyle("text-anchor").getString("start"),r=this.getStyle("letter-spacing"),n=this.parent.getStyle("letter-spacing"),l=0;r.hasValue()&&"inherit"!==r.getValue()?r.hasValue()&&"initial"!==r.getValue()&&"unset"!==r.getValue()&&(l=r.getPixels()):l=n.getPixels();var h=[],f=t.length;this.letterSpacingCache=h;for(var p=0;p<f;p++)h.push(void 0!==e[p]?e[p]:l);var n=h.reduce(function(t,e,r){return 0!==r&&t+e||0},0),t=this.measureText(i),y=Math.max(t+n,0);this.textWidth=t,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),t=this.getStyle("startOffset").getNumber(0)*g,d="end"!==c&&"right"!==c?"middle"!==c&&"center"!==c?0:-y/2:-y;d+=t,a.forEach(function(t,e){var r=o.findSegmentToFitChar(i,c,y,g,u,d,s,t,e),n=r.offset,t=r.segment,r=r.rotation;d=n,t.p0&&t.p1&&o.glyphInfo.push({text:a[e],p0:t.p0,p1:t.p1,rotation:r})})}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,o=n?n.y:0,n=r.next(),a=n.type,u=[];switch(n.type){case lu.MOVE_TO:this.pathM(r,u);break;case lu.LINE_TO:a=this.pathL(r,u);break;case lu.HORIZ_LINE_TO:a=this.pathH(r,u);break;case lu.VERT_LINE_TO:a=this.pathV(r,u);break;case lu.CURVE_TO:this.pathC(r,u);break;case lu.SMOOTH_CURVE_TO:a=this.pathS(r,u);break;case lu.QUAD_TO:this.pathQ(r,u);break;case lu.SMOOTH_QUAD_TO:a=this.pathT(r,u);break;case lu.ARC:u=this.pathA(r);break;case lu.CLOSE_PATH:yu.pathZ(r)}n.type!==lu.CLOSE_PATH?e.push({type:a,points:u,start:{x:i,y:o},pathLength:this.calcLength(i,o,a,u)}):e.push({type:lu.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=yu.pathM(t).point,t=r.x,r=r.y;e.push(t,r)}},{key:"pathL",value:function(t,e){var r=yu.pathL(t).point,t=r.x,r=r.y;return e.push(t,r),lu.LINE_TO}},{key:"pathH",value:function(t,e){var r=yu.pathH(t).point,t=r.x,r=r.y;return e.push(t,r),lu.LINE_TO}},{key:"pathV",value:function(t,e){var r=yu.pathV(t).point,t=r.x,r=r.y;return e.push(t,r),lu.LINE_TO}},{key:"pathC",value:function(t,e){var r=yu.pathC(t),n=r.point,t=r.controlPoint,r=r.currentPoint;e.push(n.x,n.y,t.x,t.y,r.x,r.y)}},{key:"pathS",value:function(t,e){var r=yu.pathS(t),n=r.point,t=r.controlPoint,r=r.currentPoint;return e.push(n.x,n.y,t.x,t.y,r.x,r.y),lu.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=yu.pathQ(t),t=r.controlPoint,r=r.currentPoint;e.push(t.x,t.y,r.x,r.y)}},{key:"pathT",value:function(t,e){var r=yu.pathT(t),t=r.controlPoint,r=r.currentPoint;return e.push(t.x,t.y,r.x,r.y),lu.QUAD_TO}},{key:"pathA",value:function(t){var e=yu.pathA(t),r=e.rX,n=e.rY,i=e.sweepFlag,o=e.xAxisRotation,a=e.centp,t=e.a1,e=e.ad;return 0===i&&0<e&&(e-=2*Math.PI),1===i&&e<0&&(e+=2*Math.PI),[a.x,a.y,r,n,t,e,o,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,u=0;switch(r){case lu.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case lu.CURVE_TO:for(o=this.getPointOnCubicBezier(i=0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),u=.01;u<=1;u+=.01)a=this.getPointOnCubicBezier(u,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case lu.QUAD_TO:for(o=this.getPointOnQuadraticBezier(i=0,t,e,n[0],n[1],n[2],n[3]),u=.01;u<=1;u+=.01)a=this.getPointOnQuadraticBezier(u,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case lu.ARC:var i=0,s=n[4],c=n[5],l=n[4]+c,h=Math.PI/180;if(Math.abs(s-l)<h&&(h=Math.abs(s-l)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),c<0)for(u=s-h;l<u;u-=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(u=s+h;u<l;u+=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+this.getLineLength(o.x,o.y,a.x,a.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:e,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:r,u=(i-r)/(n-e+Bn),s=Math.sqrt(t*t/(1+u*u));n<e&&(s*=-1);var c=u*s,l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+Bn)==u)l={x:o+s,y:a+c};else{var h=0,f=this.getLineLength(e,r,n,i);if(f<Bn)return null;var p=(o-e)*(n-e)+(a-r)*(i-r),y=e+(p/=f*f)*(n-e),r=this.getLineLength(o,a,y,h=r+p*(i-r)),r=Math.sqrt(t*t-r*r),s=Math.sqrt(r*r/(1+u*u));n<e&&(s*=-1),l={x:y+s,y:h+(c=u*s)}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||e<t-5e-5)return null;var i,o=function(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return Ku(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ku(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}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 i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(this.dataArray);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var u=t-r,s=0;switch(a.type){case lu.LINE_TO:n=this.getPointOnLine(u,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case lu.ARC:var c=a.points[4],l=a.points[5],h=a.points[4]+l,s=c+u/a.pathLength*l;if(l<0&&s<h||0<=l&&h<s)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case lu.CURVE_TO:1<(s=u/a.pathLength)&&(s=1),n=this.getPointOnCubicBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case lu.QUAD_TO:1<(s=u/a.pathLength)&&(s=1),n=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}r+=a.pathLength}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(function(t,e){return 0<e.pathLength?t+e.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,o,a,u,s){return{x:u*Yn(t)+o*Wn(t)+n*Gn(t)+e*qn(t),y:s*Yn(t)+a*Wn(t)+i*Gn(t)+r*qn(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*Qn(t)+n*$n(t)+e*Zn(t),y:a*Qn(t)+i*$n(t)+r*Zn(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,o){var a=Math.cos(o),o=Math.sin(o),r=r*Math.cos(i),i=n*Math.sin(i);return{x:t+(r*a-i*o),y:e+(r*o+i*a)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var o=0,a=0;a<=r;a+=n){var u=this.getPointOnPath(a),s=this.getPointOnPath(a+n);u&&s&&(o+=this.getLineLength(u.x,u.y,s.x,s.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:a}),o-=i)}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||5e-5<t-this.getPathLength())return null;t=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[t]||null}}]),o}();var rs=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,le=function(){xo(a,pu);var e,r,n,i,o=(n=a,i=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}}(),function(){var t,e=ko(n);return e=i?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function a(t,e,r){var n;Jn(this,a),(n=o.call(this,t,e,r)).type="image",n.loaded=!1;e=n.getHrefAttribute().getString();if(!e)return bo(n);r=e.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(e);return t.images.push(wo(n)),r?n.loadSvg(e):n.loadImage(e),n.isSvg=r,n}return ei(a,[{key:"loadImage",value:(r=Rr(kr.mark(function t(e){var r;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])})),function(t){return r.apply(this,arguments)})},{key:"loadSvg",value:(e=Rr(kr.mark(function t(e){var r,n,i;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=rs.exec(e))){t.next=6;break}n=r[5],"base64"===r[4]?this.image=atob(n):this.image=decodeURIComponent(n),t.next=19;break;case 6:return t.prev=6,t.next=9,this.document.fetch(e);case 9:return i=t.sent,t.next=12,i.text();case 12:i=t.sent,this.image=i,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 19:this.loaded=!0;case 20:case"end":return t.stop()}},t,this,[[6,16]])})),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e,r=this.document,n=this.image,i=this.loaded,o=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),u=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");i&&n&&u&&s&&(t.save(),t.translate(o,a),this.isSvg?((e=r.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:u,scaleHeight:s})).document.documentElement.parent=this,e.render()):(e=this.image,r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:u,desiredWidth:e.width,height:s,desiredHeight:e.height}),this.loaded&&(void 0===e.complete||e.complete)&&t.drawImage(e,0,0)),t.restore())}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Va(t,e,t+r,e+n)}}]),a}();var ns,Ce=function(){xo(i,pu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="symbol",t}return ei(i,[{key:"render",value:function(t){}}]),i}(),is=(ei(os,[{key:"load",value:(ns=Rr(kr.mark(function t(e,r){var n,i;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=this.document,t.next=4,n.canvg.parser.load(r);case 4:i=t.sent,i=i.getElementsByTagName("font"),Array.from(i).forEach(function(t){t=n.createElement(t);n.definitions[e]=t}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,e){return ns.apply(this,arguments)})}]),os);function os(t){Jn(this,os),this.document=t,this.loaded=!1,t.fonts.push(this)}Lt=function(){xo(a,ha);var r,n,o=(r=a,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function a(i,t,e){return Jn(this,a),(e=o.call(this,i,t,e)).type="style",bn(Array.from(t.childNodes).map(function(t){return t.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(function(t){var r,e=t.trim();e&&(e=(t=e.split("{"))[0].split(","),r=t[1].split(";"),e.forEach(function(t){var n,e,t=t.trim();t&&(n=i.styles[t]||{},r.forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),e=t.substr(e+1,t.length-e).trim();r&&e&&(n[r]=new qi(i,r,e))}),i.styles[t]=n,i.stylesSpecificity[t]=zn(t),"@font-face"===t&&(e=n["font-family"].getString().replace(/"|'/g,""),n.src.getString().split(",").forEach(function(t){0<t.indexOf('format("svg")')&&((t=Tn(t))&&new is(i).load(e,t))})))}))}),e}return a}();Lt.parseExternalUrl=Tn;Oe=function(){xo(i,pu);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="use",t}return ei(i,[{key:"setContext",value:function(t){ma(ko(i.prototype),"setContext",this).call(this,t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e,r,n=this.document,i=this.element;i&&("symbol"===(e=i).type&&((e=new xu(n,null)).attributes.viewBox=new qi(n,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new qi(n,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new qi(n,"overflow",i.getAttribute("overflow").getString()),e.children=i.children,i.styles.opacity=new qi(n,"opacity",this.calculateOpacity())),"svg"===e.type&&(i=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0),i.hasValue()&&(e.attributes.width=new qi(n,"width",i.getString())),r.hasValue()&&(e.attributes.height=new qi(n,"height",r.getString()))),r=e.parent,e.parent=this,e.render(t),e.parent=r)}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return ca.fromElement(t,e)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),i}();function as(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function us(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function ss(t,e,r){return t[e]*r}function cs(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var ls=function(){xo(a,ha);var r,n,o=(r=a,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function a(t,e,r){Jn(this,a),(r=o.call(this,t,e,r)).type="feColorMatrix";var n=kn(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":var i=n[0],n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":i=n[0]*Math.PI/180;n=[cs(i,.213,.787,-.213),cs(i,.715,-.715,-.715),cs(i,.072,-.072,.928),0,0,cs(i,.213,-.213,.143),cs(i,.715,.285,.14),cs(i,.072,-.072,-.283),0,0,cs(i,.213,-.213,-.787),cs(i,.715,-.715,.715),cs(i,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return r.matrix=n,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return ei(a,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,u=t.getImageData(0,0,n,i),s=0;s<i;s++)for(var c=0;c<n;c++){var l=as(u.data,c,s,n,0,0),h=as(u.data,c,s,n,0,1),f=as(u.data,c,s,n,0,2),p=as(u.data,c,s,n,0,3),y=ss(a,0,l)+ss(a,1,h)+ss(a,2,f)+ss(a,3,p)+ss(a,4,1),g=ss(a,5,l)+ss(a,6,h)+ss(a,7,f)+ss(a,8,p)+ss(a,9,1),d=ss(a,10,l)+ss(a,11,h)+ss(a,12,f)+ss(a,13,p)+ss(a,14,1),f=ss(a,15,l)+ss(a,16,h)+ss(a,17,f)+ss(a,18,p)+ss(a,19,1);o&&(d=g=y=0,f*=p/255),us(u.data,c,s,n,0,0,y),us(u.data,c,s,n,0,1,g),us(u.data,c,s,n,0,2,d),us(u.data,c,s,n,0,3,f)}t.clearRect(0,0,n,i),t.putImageData(u,0,0)}}]),a}();i=function(){xo(p,ha);var r,n,e=(r=p,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function p(){var t;return Jn(this,p),(t=e.apply(this,arguments)).type="mask",t}return ei(p,[{key:"apply",value:function(e,t){var r,n=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");a||u||(r=new Va,this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),i=Math.floor(r.x1),o=Math.floor(r.y1),a=Math.floor(r.width),u=Math.floor(r.height));var s=this.removeStyles(t,p.ignoreStyles),c=n.createCanvas(i+a,o+u),l=c.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new ls(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,o+u);var h=n.createCanvas(i+a,o+u),f=h.getContext("2d");n.screen.setDefaults(f),t.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=l.createPattern(c,"no-repeat"),f.fillRect(0,0,i+a,o+u),e.fillStyle=f.createPattern(h,"no-repeat"),e.fillRect(0,0,i+a,o+u),this.restoreStyles(t,s)}},{key:"render",value:function(t){}}]),p}();i.ignoreStyles=["mask","transform","clip-path"];var hs=at("Reflect","apply"),fs=Function.apply,ye=!c(function(){hs(function(){})});lt({target:"Reflect",stat:!0,forced:ye},{apply:function(t,e,r){return yt(t),R(r),hs?hs(t,e,r):fs.call(t,e,r)}}),lt({target:"Reflect",stat:!0,sham:!O},{getPrototypeOf:function(t){return Fo(R(t))}});function ps(){}var ys=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="clipPath",t}return ei(i,[{key:"apply",value:function(r){var n=this.document,i=Reflect.getPrototypeOf(r),t=r.beginPath,o=r.closePath;i&&(i.beginPath=ps,i.closePath=ps),Reflect.apply(t,r,[]),this.children.forEach(function(t){var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||ca.fromElement(n,t))&&e.apply(r),t.path(r),i&&(i.closePath=o),e&&e.unapply(r))}),Reflect.apply(o,r,[]),r.clip(),i&&(i.beginPath=t,i.closePath=o)}},{key:"render",value:function(t){}}]),i}();ve=function(){xo(p,ha);var r,n,e=(r=p,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function p(){var t;return Jn(this,p),(t=e.apply(this,arguments)).type="filter",t}return ei(p,[{key:"apply",value:function(t,e){var r,n,i,o,a,u,s,c,l=this.document,h=this.children,f=e.getBoundingBox(t);f&&(n=r=0,h.forEach(function(t){t=t.extraFilterDistance||0;r=Math.max(r,t),n=Math.max(n,t)}),s=Math.floor(f.width),u=Math.floor(f.height),o=u+2*n,(i=s+2*r)<1||o<1||(a=Math.floor(f.x),u=Math.floor(f.y),s=this.removeStyles(e,p.ignoreStyles),f=l.createCanvas(i,o),c=f.getContext("2d"),l.screen.setDefaults(c),c.translate(-a+r,-u+n),e.render(c),h.forEach(function(t){"function"==typeof t.apply&&t.apply(c,0,0,i,o)}),t.drawImage(f,0,0,i,o,a-r,u-n,i,o),this.restoreStyles(e,s)))}},{key:"render",value:function(t){}}]),p}();ve.ignoreStyles=["filter","transform","clip-path"];var gs=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="feDropShadow",r.addStylesFromStyleDefinition(),r}return ei(o,[{key:"apply",value:function(t,e,r,n,i){}}]),o}();var ds=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="feMorphology",t}return ei(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}();var vs=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="feComposite",t}return ei(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}();function ms(t){return(ms="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)}var xs=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],bs=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,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,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,22,22,22,22,22,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,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,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,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,24,24,24,24,24,24,24,24,24,24];function Ss(){!function(t){if(!(t instanceof Ss))throw new TypeError("Cannot call a class as a function")}(this),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}wt=function(){xo(o,ha);var r,n,i=(r=o,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function o(t,e,r){return Jn(this,o),(r=i.call(this,t,e,r)).type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return ei(o,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,u=o.window?o.window.document.body:null,s=t.canvas;s.id=o.getUniqueId(),u&&(s.style.display="none",u.appendChild(s)),t=s,o=e,e=r,r=n,n=i,i=a,isNaN(i)||i<1||(i|=0,a=function(t,e,r,n){for(var i,o=t.data,a=2*n+1,u=e-1,s=r-1,c=n+1,l=c*(c+1)/2,h=new Ss,f=h,p=1;p<a;p++)f=f.next=new Ss,p===c&&(i=f);f.next=h;for(var y=null,g=null,d=0,v=0,m=xs[n],x=bs[n],b=0;b<r;b++){for(var f=h,S=o[v],w=o[v+1],k=o[v+2],A=o[v+3],R=0;R<c;R++)f.r=S,f.g=w,f.b=k,f.a=A,f=f.next;for(var T=0,E=0,P=0,O=0,C=c*S,M=c*w,N=c*k,_=c*A,D=l*S,V=l*w,I=l*k,L=l*A,j=1;j<c;j++){var F=v+((u<j?u:j)<<2),z=o[F],B=o[F+1],U=o[F+2],H=o[F+3],F=c-j;D+=(f.r=z)*F,V+=(f.g=B)*F,I+=(f.b=U)*F,L+=(f.a=H)*F,T+=z,E+=B,P+=U,O+=H,f=f.next}y=h;for(var g=i,X=0;X<e;X++){var Y=L*m>>x;0!=(o[v+3]=Y)?(o[v]=(D*m>>x)*(q=255/Y),o[v+1]=(V*m>>x)*q,o[v+2]=(I*m>>x)*q):o[v]=o[v+1]=o[v+2]=0,D-=C,V-=M,I-=N,L-=_,C-=y.r,M-=y.g,N-=y.b,_-=y.a;var W=d+((W=X+n+1)<u?W:u)<<2;D+=T+=y.r=o[W],V+=E+=y.g=o[W+1],I+=P+=y.b=o[W+2],L+=O+=y.a=o[W+3];var y=y.next,G=g,Y=G.r,q=G.g,W=G.b,G=G.a;C+=Y,M+=q,N+=W,_+=G,T-=Y,E-=q,P-=W,O-=G,g=g.next,v+=4}d+=e}for(var Q=0;Q<e;Q++){var $=o[v=Q<<2],Z=o[v+1],K=o[v+2],J=o[v+3],tt=c*$,et=c*Z,rt=c*K,nt=c*J,it=l*$,ot=l*Z,at=l*K,ut=l*J;f=h;for(var st=0;st<c;st++)f.r=$,f.g=Z,f.b=K,f.a=J,f=f.next;for(var ct=e,lt=0,ht=0,ft=0,pt=0,yt=1;yt<=n;yt++){var v=ct+Q<<2,gt=c-yt;it+=(f.r=$=o[v])*gt,ot+=(f.g=Z=o[v+1])*gt,at+=(f.b=K=o[v+2])*gt,ut+=(f.a=J=o[v+3])*gt,pt+=$,lt+=Z,ht+=K,ft+=J,f=f.next,yt<s&&(ct+=e)}v=Q,y=h,g=i;for(var dt=0;dt<r;dt++){var vt=v<<2;o[vt+3]=J=ut*m>>x,0<J?(o[vt]=(it*m>>x)*(J=255/J),o[vt+1]=(ot*m>>x)*J,o[vt+2]=(at*m>>x)*J):o[vt]=o[vt+1]=o[vt+2]=0,it-=tt,ot-=et,at-=rt,ut-=nt,tt-=y.r,et-=y.g,rt-=y.b,nt-=y.a,vt=Q+((vt=dt+c)<s?vt:s)*e<<2,it+=pt+=y.r=o[vt],ot+=lt+=y.g=o[vt+1],at+=ht+=y.b=o[vt+2],ut+=ft+=y.a=o[vt+3],y=y.next,tt+=$=g.r,et+=Z=g.g,rt+=K=g.b,nt+=J=g.a,pt-=$,lt-=Z,ht-=K,ft-=J,g=g.next,v+=e}}return t}(a=function(t,e,r,n,i){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===ms(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}(t,o,e,r,n),r,n,i),t.getContext("2d").putImageData(a,o,e)),u&&u.removeChild(s)}}]),o}();Jt=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="title",t}return i}();ye=function(){xo(i,ha);var r,n,e=(r=i,n=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}}(),function(){var t,e=ko(r);return e=n?(t=ko(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),bo(this,e)});function i(){var t;return Jn(this,i),(t=e.apply(this,arguments)).type="desc",t}return i}(),O={svg:xu,rect:bu,circle:Se,ellipse:Ae,line:we,polyline:Su,polygon:Y,path:yu,pattern:D,marker:q,defs:wu,linearGradient:Ru,radialGradient:Bo,stop:me,animate:Lu,animateColor:$,animateTransform:jt,font:Fe,"font-face":Ir,"missing-glyph":dn,glyph:gu,text:du,tspan:vu,tref:Ci,a:xn,textPath:_r,image:le,g:ku,symbol:Ce,style:Lt,use:Oe,mask:i,clipPath:ys,filter:ve,feDropShadow:gs,feMorphology:ds,feComposite:vs,feColorMatrix:ls,feGaussianBlur:wt,title:Jt,desc:ye};function ws(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function ks(){return(ks=Rr(kr.mark(function t(e){var r,n,i=arguments;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=1<i.length&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise(function(t,o){n.onload=function(){t(n)},n.onerror=function(t,e,r,n,i){o(i)},n.src=e}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var As=(ei(Rs,[{key:"bindCreateImage",value:function(r,n){return"boolean"==typeof n?function(t,e){return r(t,"boolean"==typeof e?e:n)}:r}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(t){return t.loaded})}},{key:"createDocumentElement",value:function(t){t=this.createElement(t.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t}},{key:"createElement",value:function(t){var e=t.nodeName.replace(/^[^:]+:/,""),e=Rs.elementTypes[e];return new(void 0!==e?e:pa)(this,t)}},{key:"createTextNode",value:function(t){return new mu(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach(function(t){Kn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),Rs);function Rs(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.rootEmSize,n=void 0===r?12:r,i=e.emSize,o=void 0===i?12:i,r=e.createCanvas,i=void 0===r?Rs.createCanvas:r,r=e.createImage,r=void 0===r?Rs.createImage:r,e=e.anonymousCrossOrigin;Jn(this,Rs),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=n,this.emSize=o,this.createCanvas=i,this.createImage=this.bindCreateImage(r,e),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}function Ts(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(r),!0).forEach(function(t){Kn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}As.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},As.createImage=function(t){return ks.apply(this,arguments)},As.elementTypes=O;var Ps,Os,O=(ei(Cs,[{key:"fork",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Cs.from(t,e,Es(Es({},this.options),r))}},{key:"forkString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return Cs.fromString(t,e,Es(Es({},this.options),r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(Os=Rr(kr.mark(function t(){var e,r=arguments;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},this.start(Es({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}},t,this)})),function(){return Os.apply(this,arguments)})},{key:"start",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,Es(Es({enableRedraw:!0},n),t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){this.documentElement.resize(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,2<arguments.length&&void 0!==arguments[2]&&arguments[2])}}],[{key:"from",value:(Ps=Rr(kr.mark(function t(e,r){var n,i,o=arguments;return kr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=new go(n=2<o.length&&void 0!==o[2]?o[2]:{}),t.next=4,i.parse(r);case 4:return i=t.sent,t.abrupt("return",new Cs(e,i,n));case 6:case"end":return t.stop()}},t)})),function(t,e){return Ps.apply(this,arguments)})},{key:"fromString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return new Cs(t,new go(r).parseFromString(e),r)}}]),Cs);function Cs(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Jn(this,Cs),this.parser=new go(r),this.screen=new uo(t,r),this.options=r;r=new As(this,r),e=r.createDocumentElement(e);this.document=r,this.documentElement=e}t.AElement=xn,t.AnimateColorElement=$,t.AnimateElement=Lu,t.AnimateTransformElement=jt,t.BoundingBox=Va,t.CB1=Yn,t.CB2=Wn,t.CB3=Gn,t.CB4=qn,t.Canvg=O,t.CircleElement=Se,t.ClipPathElement=ys,t.DefsElement=wu,t.DescElement=ye,t.Document=As,t.Element=ha,t.EllipseElement=Ae,t.FeColorMatrixElement=ls,t.FeCompositeElement=vs,t.FeDropShadowElement=gs,t.FeGaussianBlurElement=wt,t.FeMorphologyElement=ds,t.FilterElement=ve,t.Font=ba,t.FontElement=Fe,t.FontFaceElement=Ir,t.GElement=ku,t.GlyphElement=gu,t.GradientElement=Au,t.ImageElement=le,t.LineElement=we,t.LinearGradientElement=Ru,t.MarkerElement=q,t.MaskElement=i,t.Matrix=na,t.MissingGlyphElement=dn,t.Mouse=io,t.PSEUDO_ZERO=Bn,t.Parser=go,t.PathElement=yu,t.PathParser=lu,t.PatternElement=D,t.Point=no,t.PolygonElement=Y,t.PolylineElement=Su,t.Property=qi,t.QB1=Qn,t.QB2=$n,t.QB3=Zn,t.RadialGradientElement=Bo,t.RectElement=bu,t.RenderedElement=pu,t.Rotate=w,t.SVGElement=xu,t.SVGFontLoader=is,t.Scale=ze,t.Screen=uo,t.Skew=sa,t.SkewX=b,t.SkewY=W,t.StopElement=me,t.StyleElement=Lt,t.SymbolElement=Ce,t.TRefElement=Ci,t.TSpanElement=vu,t.TextElement=du,t.TextPathElement=_r,t.TitleElement=Jt,t.Transform=ca,t.Translate=_,t.UnknownElement=pa,t.UseElement=Oe,t.ViewPort=$i,t.compressSpaces=bn,t.default=O,t.getSelectorSpecificity=zn,t.normalizeAttributeName=Rn,t.normalizeColor=En,t.parseExternalUrl=Tn,t.presets=Wt,t.toNumbers=kn,t.trimLeft=Sn,t.trimRight=wn,t.vectorMagnitude=Un,t.vectorsAngle=Xn,t.vectorsRatio=Hn,Object.defineProperty(t,"__esModule",{value:!0})});
\ No newline at end of file
index 3c9cb27e40c729980cff42dd17f5a479beeea3d5..78001acdb9d605e845c062adaf4d89690cbeb698 100644 (file)
@@ -878,7 +878,7 @@ FluidbookLoader.prototype = {
 
         var $this = this;
 
-        if (this.texts[pageNr] !== undefined && (!this.fluidbook.support.svgtocanvg && $(this.texts[pageNr]).get(0).width > 0)) {
+        if (this.texts[pageNr] !== undefined && $(this.texts[pageNr]).get(0).width > 0) {
             this.addTextContents(pageNr, callback)
         } else {
             this._loadTexts(pageNr, function () {
@@ -951,39 +951,21 @@ FluidbookLoader.prototype = {
             }
 
             var ctx = canvas.getContext("2d");
-            if ($this.fluidbook.support.svgtocanvg) {
-                try {
-                    var dim = $this.getPageDimensions(page);
-                    var c = canvg.Canvg.fromString(ctx, $this.texts[page], {
-                        enableRedraw: false,
-                        ignoreAnimation: true,
-                        ignoreMouse: true,
-                        ignoreDimensions: true,
-                        scaleWidth: cw,
-                        scaleHeight: ch,
-                        offsetX: cw - (dim.width / 2),
-                        offsetY: ch - (dim.height / 2),
+
+            var img = $this.texts[page];
+            if (img !== undefined && img !== null) {
+                img = img.get(0);
+                if (img.width === 0) {
+                    $this.deletePage(page);
+                    $this._preloadPage(page, function () {
+
                     });
-                    c.render();
-                } catch (e) {
-                    console.warn(e);
-                    console.info($this.texts[page]);
-                }
-            } else {
-                var img = $this.texts[page];
-                if (img !== undefined && img !== null) {
-                    img = img.get(0);
-                    if (img.width === 0) {
-                        $this.deletePage(page);
-                        $this._preloadPage(page, function () {
-
-                        });
-                        return;
-                    }
-                    ctx.drawImage(img, 0, 0, img.width - 2, img.height - 2, 0, 0, cw, ch);
+                    return;
                 }
-
+                ctx.drawImage(img, 0, 0, img.width - 2, img.height - 2, 0, 0, cw, ch);
             }
+
+
             $(this).data('w', cw).data('h', ch);
 
             let textThickness = parseFloat($this.fluidbook.settings.textsThickness);
@@ -1039,16 +1021,8 @@ FluidbookLoader.prototype = {
         }
         var $this = this;
         var url = this.getTextsURL(pageNr);
-        if (this.fluidbook.support.svgtocanvg) {
-            $.ajax({
-                url: url, dataType: 'text',
-            }).done(function (data) {
-                $this.texts[pageNr] = data;
-                callback();
-            });
-        } else {
-            this.texts[pageNr] = this.loadImage(this.getURL(url), null, null, 'image/svg+xml', pageNr, callback);
-        }
+
+        this.texts[pageNr] = this.loadImage(this.getURL(url), null, null, 'image/svg+xml', pageNr, callback);
     },
 
     loadDatas: function (pageNr, callback) {
index 5e323ef7676cba30eee614c065fae4740d743a84..e3aadd3e2303f01fadf00d1709c35b4830a52158 100644 (file)
@@ -15,8 +15,7 @@ function FluidbookSupport(fluidbook) {
     this.edge = Modernizr.edge;
     this.chromeBased = Modernizr.chrome || this.edge;
     this.gpuInfos = this.getGPUInfos();
-    this.svgtocanvas = this.fluidbook.settings.svgToCanvas && this.IE === 0 && !(this.safari && this.macOs) && this.getGPUInfos().vendor.indexOf('intel') === -1 && this.getGPUInfos().vendor.indexOf('renderer') === -1;
-    this.svgtocanvg = false;// && this.svgtocanvas;
+    this.svgtocanvas = this.fluidbook.settings.svgToCanvas==1 && this.IE === 0 && !(this.safari && this.macOs) && this.getGPUInfos().vendor.indexOf('intel') === -1 && this.getGPUInfos().vendor.indexOf('renderer') === -1;
 
     // If in node-webkit or if the index.html fluidbook is locally open in a browser
     this.offline = (typeof process !== "undefined" && process.versions['node-webkit']) || window.location.toString().indexOf("file://") == 0;
index 92e2e1795c95338aa6e900f5a2412be67fbdbf18..9538d6ce7b58988580a046350c52f26537e720f3 100644 (file)
@@ -1,6 +1,3 @@
-/**
- * html2pdf.js v0.9.2
- * Copyright (c) 2020 Erik Koopmans
- * Released under the MIT License.
- */
-!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.html2pdf=e()}(this,function(){"use strict";function t(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function A(t,e){return e={exports:{}},t(e,e.exports),e.exports}var r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=A(function(e,A){e.exports=function(){function n(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 A=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,n=t[e++],o=n>>7,a=1<<1+(7&n);t[e++],t[e++];var s=null;o&&(s=e,e+=3*a);var c=!0,l=[],u=0,h=null,d=0,f=null;for(this.width=A,this.height=r;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,f=t[e++]|t[e++]<<8,e++;else for(e+=12;0!==(b=t[e++]);)e+=b;break;case 249:if(4!==t[e++]||0!==t[e+4])throw"Invalid graphics extension block.";var p=t[e++];u=t[e++]|t[e++]<<8,h=t[e++],0==(1&p)&&(h=null),d=p>>2&7,e++;break;case 254:for(;0!==(b=t[e++]);)e+=b;break;default:throw"Unknown graphic control label: 0x"+t[e-1].toString(16)}break;case 44:var g=t[e++]|t[e++]<<8,B=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,y=t[e++],v=y>>6&1,Q=s,C=!1;y>>7&&(C=!0,Q=e,e+=3*(1<<1+(7&y)));var U=e;for(e++;;){var b;if(0===(b=t[e++]))break;e+=b}l.push({x:g,y:B,width:w,height:m,has_local_palette:C,palette_offset:Q,data_offset:U,data_length:e-U,transparent_index:h,interlaced:!!v,delay:u,disposal:d});break;case 59:c=!1;break;default:throw"Unknown gif block: 0x"+t[e-1].toString(16)}this.numFrames=function(){return l.length},this.loopCount=function(){return f},this.frameInfo=function(t){if(t<0||t>=l.length)throw"Frame index out of range.";return l[t]},this.decodeAndBlitFrameBGRA=function(e,r){var n=this.frameInfo(e),o=n.width*n.height,a=new Uint8Array(o);i(t,n.data_offset,a,o);var s=n.palette_offset,c=n.transparent_index;null===c&&(c=256);var l=n.width,u=A-l,h=l,d=4*(n.y*A+n.x),f=4*((n.y+n.height)*A+n.x),p=d,g=4*u;!0===n.interlaced&&(g+=4*(l+u)*7);for(var B=8,w=0,m=a.length;w<m;++w){var y=a[w];if(0===h&&(h=l,f<=(p+=g)&&(g=u+4*(l+u)*(B-1),p=d+(l+u)*(B<<1),B>>=1)),y===c)p+=4;else{var v=t[s+3*y],Q=t[s+3*y+1],C=t[s+3*y+2];r[p++]=C,r[p++]=Q,r[p++]=v,r[p++]=255}--h}},this.decodeAndBlitFrameRGBA=function(e,r){var n=this.frameInfo(e),o=n.width*n.height,a=new Uint8Array(o);i(t,n.data_offset,a,o);var s=n.palette_offset,c=n.transparent_index;null===c&&(c=256);var l=n.width,u=A-l,h=l,d=4*(n.y*A+n.x),f=4*((n.y+n.height)*A+n.x),p=d,g=4*u;!0===n.interlaced&&(g+=4*(l+u)*7);for(var B=8,w=0,m=a.length;w<m;++w){var y=a[w];if(0===h&&(h=l,f<=(p+=g)&&(g=u+4*(l+u)*(B-1),p=d+(l+u)*(B<<1),B>>=1)),y===c)p+=4;else{var v=t[s+3*y],Q=t[s+3*y+1],C=t[s+3*y+2];r[p++]=v,r[p++]=Q,r[p++]=C,r[p++]=255}--h}}}function i(t,e,A,r){for(var n=t[e++],i=1<<n,o=i+1,a=o+1,s=n+1,c=(1<<s)-1,l=0,u=0,h=0,d=t[e++],f=new Int32Array(4096),p=null;;){for(;l<16&&0!==d;)u|=t[e++]<<l,l+=8,1===d?d=t[e++]:--d;if(l<s)break;var g=u&c;if(u>>=s,l-=s,g!==i){if(g===o)break;for(var B=g<a?g:p,w=0,m=B;i<m;)m=f[m]>>8,++w;var y=m;if(r<h+w+(B!==g?1:0))return void console.log("Warning, gif stream longer than expected.");A[h++]=y;var v=h+=w;for(B!==g&&(A[h++]=y),m=B;w--;)m=f[m],A[--v]=255&m,m>>=8;null!==p&&a<4096&&(f[a++]=p<<8|y,c+1<=a&&s<12&&(++s,c=c<<1|1)),p=g}else a=o+1,c=(1<<(s=n+1))-1,p=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),A}function o(t){function e(t,e){for(var A=0,r=0,n=new Array,i=1;i<=16;i++){for(var o=1;o<=t[i];o++)n[e[r]]=[],n[e[r]][0]=A,n[e[r]][1]=i,r++,A++;A*=2}return n}function A(t){for(var e=t[0],A=t[1]-1;0<=A;)e&1<<A&&(Q|=1<<C),A--,--C<0&&(255==Q?(r(255),r(0)):r(Q),C=7,Q=0)}function r(t){v.push(t)}function n(t){r(t>>8&255),r(255&t)}function i(t,e,r,n,i){for(var o,a=i[0],s=i[240],c=function(t,e){var A,r,n,i,o,a,s,c,l,u,h=0;for(l=0;l<8;++l){A=t[h],r=t[h+1],n=t[h+2],i=t[h+3],o=t[h+4],a=t[h+5],s=t[h+6];var d=A+(c=t[h+7]),f=A-c,p=r+s,g=r-s,B=n+a,w=n-a,y=i+o,v=i-o,Q=d+y,C=d-y,U=p+B,b=p-B;t[h]=Q+U,t[h+4]=Q-U;var F=.707106781*(b+C);t[h+2]=C+F,t[h+6]=C-F;var E=.382683433*((Q=v+w)-(b=g+f)),x=.5411961*Q+E,H=1.306562965*b+E,I=.707106781*(U=w+g),S=f+I,_=f-I;t[h+5]=_+x,t[h+3]=_-x,t[h+1]=S+H,t[h+7]=S-H,h+=8}for(l=h=0;l<8;++l){A=t[h],r=t[h+8],n=t[h+16],i=t[h+24],o=t[h+32],a=t[h+40],s=t[h+48];var T=A+(c=t[h+56]),N=A-c,k=r+s,O=r-s,P=n+a,D=n-a,L=i+o,R=i-o,M=T+L,K=T-L,z=k+P,q=k-P;t[h]=M+z,t[h+32]=M-z;var j=.707106781*(q+K);t[h+16]=K+j,t[h+48]=K-j;var X=.382683433*((M=R+D)-(q=O+N)),V=.5411961*M+X,G=1.306562965*q+X,W=.707106781*(z=D+O),Y=N+W,J=N-W;t[h+40]=J+V,t[h+24]=J-V,t[h+8]=Y+G,t[h+56]=Y-G,h++}for(l=0;l<64;++l)u=t[l]*e[l],m[l]=0<u?u+.5|0:u-.5|0;return m}(t,e),l=0;l<64;++l)y[H[l]]=c[l];var u=y[0]-r;r=y[0],0==u?A(n[0]):(A(n[w[o=32767+u]]),A(B[o]));for(var h=63;0<h&&0==y[h];h--);if(0==h)return A(a),r;for(var d,f=1;f<=h;){for(var p=f;0==y[f]&&f<=h;++f);var g=f-p;if(16<=g){d=g>>4;for(var v=1;v<=d;++v)A(s);g&=15}o=32767+y[f],A(i[(g<<4)+w[o]]),A(B[o]),f++}return 63!=h&&A(a),r}function o(t){t<=0&&(t=1),100<t&&(t=100),u!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],A=0;A<64;A++){var r=h((e[A]*t+50)/100);r<1?r=1:255<r&&(r=255),d[H[A]]=r}for(var n=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],i=0;i<64;i++){var o=h((n[i]*t+50)/100);o<1?o=1:255<o&&(o=255),f[H[i]]=o}for(var a=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],s=0,c=0;c<8;c++)for(var l=0;l<8;l++)p[s]=1/(d[H[s]]*a[c]*a[l]*8),g[s]=1/(f[H[s]]*a[c]*a[l]*8),s++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),u=t)}var a,s,c,l,u,h=Math.floor,d=new Array(64),f=new Array(64),p=new Array(64),g=new Array(64),B=new Array(65535),w=new Array(65535),m=new Array(64),y=new Array(64),v=[],Q=0,C=7,U=new Array(64),b=new Array(64),F=new Array(64),E=new Array(256),x=new Array(2048),H=[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],I=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],_=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[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],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],P=[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];this.encode=function(t,e){var u,h;(new Date).getTime(),e&&o(e),v=new Array,Q=0,C=7,n(65496),n(65504),n(16),r(74),r(70),r(73),r(70),r(0),r(1),r(1),r(0),n(1),n(1),r(0),r(0),function(){n(65499),n(132),r(0);for(var t=0;t<64;t++)r(d[t]);r(1);for(var e=0;e<64;e++)r(f[e])}(),u=t.width,h=t.height,n(65472),n(17),r(8),n(h),n(u),r(3),r(1),r(17),r(0),r(2),r(17),r(1),r(3),r(17),r(1),function(){n(65476),n(418),r(0);for(var t=0;t<16;t++)r(I[t+1]);for(var e=0;e<=11;e++)r(S[e]);r(16);for(var A=0;A<16;A++)r(_[A+1]);for(var i=0;i<=161;i++)r(T[i]);r(1);for(var o=0;o<16;o++)r(N[o+1]);for(var a=0;a<=11;a++)r(k[a]);r(17);for(var s=0;s<16;s++)r(O[s+1]);for(var c=0;c<=161;c++)r(P[c])}(),n(65498),n(12),r(3),r(1),r(0),r(2),r(17),r(3),r(17),r(0),r(63),r(0);var B=0,w=0,m=0;Q=0,C=7,this.encode.displayName="_encode_";for(var y,E,H,D,L,R,M,K,z,q=t.data,j=t.width,X=t.height,V=4*j,G=0;G<X;){for(y=0;y<V;){for(R=L=V*G+y,M=-1,z=K=0;z<64;z++)R=L+(K=z>>3)*V+(M=4*(7&z)),X<=G+K&&(R-=V*(G+1+K-X)),V<=y+M&&(R-=y+M-V+4),E=q[R++],H=q[R++],D=q[R++],U[z]=(x[E]+x[H+256>>0]+x[D+512>>0]>>16)-128,b[z]=(x[E+768>>0]+x[H+1024>>0]+x[D+1280>>0]>>16)-128,F[z]=(x[E+1280>>0]+x[H+1536>>0]+x[D+1792>>0]>>16)-128;B=i(U,p,B,a,c),w=i(b,g,w,s,l),m=i(F,g,m,s,l),y+=32}G+=8}if(0<=C){var W=[];W[1]=C+1,W[0]=(1<<C+1)-1,A(W)}return n(65497),new Uint8Array(v)},(new Date).getTime(),t||(t=50),function(){for(var t=String.fromCharCode,e=0;e<256;e++)E[e]=t(e)}(),a=e(I,S),s=e(N,k),c=e(_,T),l=e(O,P),function(){for(var t=1,e=2,A=1;A<=15;A++){for(var r=t;r<e;r++)w[32767+r]=A,B[32767+r]=[],B[32767+r][1]=A,B[32767+r][0]=r;for(var n=-(e-1);n<=-t;n++)w[32767+n]=A,B[32767+n]=[],B[32767+n][1]=A,B[32767+n][0]=e-1+n;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)x[t]=19595*t,x[t+256>>0]=38470*t,x[t+512>>0]=7471*t+32768,x[t+768>>0]=-11059*t,x[t+1024>>0]=-21709*t,x[t+1280>>0]=32768*t+8421375,x[t+1536>>0]=-27439*t,x[t+1792>>0]=-5329*t}(),o(t),(new Date).getTime()}function a(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()}var s,c,l,u,h,d,f,p,g,B,w,m,y,v,Q,C,U,b,F,E,x,H,I,S,_,T,N,k,O,P,D,L,R,M,K,z,q,j,X,V,G,W,Y,J,Z,$,tt,et,At,rt,nt,it,ot,at="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},st=function(t){function A(e,i,o,a){var s={};"object"===(void 0===e?"undefined":at(e))&&(e=(s=e).orientation,i=s.unit||i,o=s.format||o,a=s.compress||s.compressPdf||a),i=i||"mm",o=o||"a4",e=(""+(e||"P")).toLowerCase(),(""+o).toLowerCase();var c,l,u,h,d,f,p,g,B,w,m,y=!!a&&"function"==typeof Uint8Array,v=s.textColor||"0 g",Q=s.drawColor||"0 G",C=s.fontSize||16,U=s.charSpace||0,b=s.R2L||!1,F=s.lineHeight||1.15,E=s.lineWidth||.200025,x="00000000000000000000000000000000",H=2,I=!1,S=[],_={},T={},N=0,k=[],O=[],P=[],D=[],L=[],R=0,M=0,K=0,z={title:"",subject:"",author:"",keywords:"",creator:""},q={},j=new function(e){var A={};this.subscribe=function(t,e,r){if("function"!=typeof e)return!1;A.hasOwnProperty(t)||(A[t]={});var n=Math.random().toString(35);return A[t][n]=[e,!!r],n},this.unsubscribe=function(t){for(var e in A)if(A[e][t])return delete A[e][t],!0;return!1},this.publish=function(r){if(A.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var o in A[r]){var a=A[r][o];try{a[0].apply(e,n)}catch(r){t.console&&console.error("jsPDF PubSub Error",r.message,r)}a[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}}}(q),X=s.hotfixes||[],V=function(t){var e,A=t.ch1,r=t.ch2,n=t.ch3,i=t.ch4,o=(t.precision,"draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof A&&"#"!==A.charAt(0)){var a=new RGBColor(A);a.ok&&(A=a.toHex())}if("string"==typeof A&&/^#[0-9A-Fa-f]{3}$/.test(A)&&(A="#"+A[1]+A[1]+A[2]+A[2]+A[3]+A[3]),"string"==typeof A&&/^#[0-9A-Fa-f]{6}$/.test(A)){var s=parseInt(A.substr(1),16);A=s>>16&255,r=s>>8&255,n=255&s}if(void 0===r||void 0===i&&A===r&&r===n)if("string"==typeof A)e=A+" "+o[0];else switch(t.precision){case 2:e=J(A/255)+" "+o[0];break;case 3:default:e=Z(A/255)+" "+o[0]}else if(void 0===i||"object"===(void 0===i?"undefined":at(i))){if("string"==typeof A)e=[A,r,n,o[1]].join(" ");else switch(t.precision){case 2:e=[J(A/255),J(r/255),J(n/255),o[1]].join(" ");break;default:case 3:e=[Z(A/255),Z(r/255),Z(n/255),o[1]].join(" ")}i&&0===i.a&&(e=["255","255","255",o[1]].join(" "))}else if("string"==typeof A)e=[A,r,n,i,o[2]].join(" ");else switch(t.precision){case 2:e=[J(A),J(r),J(n),J(i),o[2]].join(" ");break;case 3:default:e=[Z(A),Z(r),Z(n),Z(i),o[2]].join(" ")}return e},G=function(t){var e=function(t){return("0"+parseInt(t)).slice(-2)},A=t.getTimezoneOffset(),r=A<0?"+":"-",n=Math.floor(Math.abs(A/60)),i=Math.abs(A%60),o=[r,e(n),"'",e(i),"'"].join("");return["D:",t.getFullYear(),e(t.getMonth()+1),e(t.getDate()),e(t.getHours()),e(t.getMinutes()),e(t.getSeconds()),o].join("")},W=function(t){var e;return void 0===(void 0===t?"undefined":at(t))&&(t=new Date),e="object"===(void 0===t?"undefined":at(t))&&"[object Date]"===Object.prototype.toString.call(t)?G(t):/^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)?t:G(new Date),w=e},Y=function(t){return t=t||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),x=t},J=function(t){return t.toFixed(2)},Z=function(t){return t.toFixed(3)},$=function(t){t="string"==typeof t?t:t.toString(),I?k[h].push(t):(K+=t.length+1,D.push(t))},tt=function(){return S[++H]=K,$(H+" 0 obj"),H},et=function(t){$("stream"),$(t),$("endstream")},At=function(){!function(){for(var t in _)_.hasOwnProperty(t)&&(e=_[t],j.publish("putFont",{font:e,out:$,newObject:tt}),!0!==e.isAlreadyPutted&&(e.objectNumber=tt(),$("<<"),$("/Type /Font"),$("/BaseFont /"+e.postScriptName),$("/Subtype /Type1"),"string"==typeof e.encoding&&$("/Encoding /"+e.encoding),$("/FirstChar 32"),$("/LastChar 255"),$(">>"),$("endobj")));var e}(),j.publish("putResources"),S[2]=K,$("2 0 obj"),$("<<"),function(){for(var t in $("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),$("/Font <<"),_)_.hasOwnProperty(t)&&$("/"+t+" "+_[t].objectNumber+" 0 R");$(">>"),$("/XObject <<"),j.publish("putXobjectDict"),$(">>")}(),$(">>"),$("endobj"),j.publish("postPutResources")},rt=function(t,e,A){T.hasOwnProperty(e)||(T[e]={}),T[e][A]=t},nt=function(t,e,A,r){var n="F"+(Object.keys(_).length+1).toString(10),i=_[n]={id:n,postScriptName:t,fontName:e,fontStyle:A,encoding:r,metadata:{}};return rt(n,e,A),j.publish("addFont",i),n},it=function(t,e){return function(t,e){var A,r,n,i,o,a,s,l,u;if(n=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&_[c].metadata&&_[c].metadata[n]&&_[c].metadata[n].encoding&&(i=_[c].metadata[n].encoding,!o&&_[c].encoding&&(o=_[c].encoding),!o&&i.codePages&&(o=i.codePages[0]),"string"==typeof o&&(o=i[o]),o)){for(s=!1,a=[],A=0,r=t.length;A<r;A++)(l=o[t.charCodeAt(A)])?a.push(String.fromCharCode(l)):a.push(t[A]),a[A].charCodeAt(0)>>8&&(s=!0);t=a.join("")}for(A=t.length;void 0===s&&0!==A;)t.charCodeAt(A-1)>>8&&(s=!0),A--;if(!s)return t;for(a=e.noBOM?[]:[254,255],A=0,r=t.length;A<r;A++){if((u=(l=t.charCodeAt(A))>>8)>>8)throw new Error("Character at position "+A+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(u),a.push(l-(u<<8))}return String.fromCharCode.apply(void 0,a)}(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ot=function(){(function(t,e){var A="string"==typeof e&&e.toLowerCase();if("string"==typeof t){var r=t.toLowerCase();n.hasOwnProperty(r)&&(t=n[r][0]/l,e=n[r][1]/l)}if(Array.isArray(t)&&(e=t[1],t=t[0]),A){switch(A.substr(0,1)){case"l":t<e&&(A="s");break;case"p":e<t&&(A="s")}"s"===A&&(u=t,t=e,e=u)}I=!0,k[++N]=[],P[N]={width:Number(t)||d,height:Number(e)||f},O[N]={},st(N)}).apply(this,arguments),$(J(E*l)+" w"),$(Q),0!==R&&$(R+" J"),0!==M&&$(M+" j"),j.publish("addPage",{pageNumber:N})},st=function(t){0<t&&t<=N&&(d=P[h=t].width,f=P[t].height)},ct=function(t,e,A){var r,n=void 0;return A=A||{},t=void 0!==t?t:_[c].fontName,e=void 0!==e?e:_[c].fontStyle,r=t.toLowerCase(),void 0!==T[r]&&void 0!==T[r][e]?n=T[r][e]:void 0!==T[t]&&void 0!==T[t][e]?n=T[t][e]:!1===A.disableWarning&&console.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),n||A.noFallback||null==(n=T.times[e])&&(n=T.times.normal),n},lt=function(){I=!1,H=2,K=0,D=[],S=[],L=[],j.publish("buildDocument"),$("%PDF-"+r),$("%ºß¬à"),function(){var e,r,n,i,o,a,s,c,u,h=[];for(s=t.adler32cs||A.API.adler32cs,y&&void 0===s&&(y=!1),e=1;e<=N;e++){if(h.push(tt()),c=(d=P[e].width)*l,u=(f=P[e].height)*l,$("<</Type /Page"),$("/Parent 1 0 R"),$("/Resources 2 0 R"),$("/MediaBox [0 0 "+J(c)+" "+J(u)+"]"),j.publish("putPage",{pageNumber:e,page:k[e]}),$("/Contents "+(H+1)+" 0 R"),$(">>"),$("endobj"),r=k[e].join("\n"),tt(),y){for(n=[],i=r.length;i--;)n[i]=r.charCodeAt(i);a=s.from(r),(o=new Deflater(6)).append(new Uint8Array(n)),r=o.flush(),(n=new Uint8Array(r.length+6)).set(new Uint8Array([120,156])),n.set(r,2),n.set(new Uint8Array([255&a,a>>8&255,a>>16&255,a>>24&255]),r.length+2),r=String.fromCharCode.apply(null,n),$("<</Length "+r.length+" /Filter [/FlateDecode]>>")}else $("<</Length "+r.length+">>");et(r),$("endobj")}S[1]=K,$("1 0 obj"),$("<</Type /Pages");var p="/Kids [";for(i=0;i<N;i++)p+=h[i]+" 0 R ";$(p+"]"),$("/Count "+N),$(">>"),$("endobj"),j.publish("postPutPages")}(),function(){j.publish("putAdditionalObjects");for(var t=0;t<L.length;t++){var e=L[t];S[e.objId]=K,$(e.objId+" 0 obj"),$(e.content),$("endobj")}H+=L.length,j.publish("postPutAdditionalObjects")}(),At(),tt(),$("<<"),function(){for(var t in $("/Producer (jsPDF "+A.version+")"),z)z.hasOwnProperty(t)&&z[t]&&$("/"+t.substr(0,1).toUpperCase()+t.substr(1)+" ("+it(z[t])+")");$("/CreationDate ("+w+")")}(),$(">>"),$("endobj"),tt(),$("<<"),function(){switch($("/Type /Catalog"),$("/Pages 1 0 R"),g||(g="fullwidth"),g){case"fullwidth":$("/OpenAction [3 0 R /FitH null]");break;case"fullheight":$("/OpenAction [3 0 R /FitV null]");break;case"fullpage":$("/OpenAction [3 0 R /Fit]");break;case"original":$("/OpenAction [3 0 R /XYZ null null 1]");break;default:var t=""+g;"%"===t.substr(t.length-1)&&(g=parseInt(g)/100),"number"==typeof g&&$("/OpenAction [3 0 R /XYZ null null "+J(g)+"]")}switch(B||(B="continuous"),B){case"continuous":$("/PageLayout /OneColumn");break;case"single":$("/PageLayout /SinglePage");break;case"two":case"twoleft":$("/PageLayout /TwoColumnLeft");break;case"tworight":$("/PageLayout /TwoColumnRight")}p&&$("/PageMode /"+p),j.publish("putCatalog")}(),$(">>"),$("endobj");var e,n=K,i="0000000000";for($("xref"),$("0 "+(H+1)),$(i+" 65535 f "),e=1;e<=H;e++){var o=S[e];$("function"==typeof o?(i+S[e]()).slice(-10)+" 00000 n ":(i+S[e]).slice(-10)+" 00000 n ")}return $("trailer"),$("<<"),$("/Size "+(H+1)),$("/Root "+H+" 0 R"),$("/Info "+(H-1)+" 0 R"),$("/ID [ <"+x+"> <"+x+"> ]"),$(">>"),$("startxref"),$(""+n),$("%%EOF"),I=!0,D.join("\n")},ut=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},ht=function(){for(var t=lt(),e=t.length,A=new ArrayBuffer(e),r=new Uint8Array(A);e--;)r[e]=t.charCodeAt(e);return A},dt=function(){return new Blob([ht()],{type:"application/pdf"})},ft=((m=function(e,A){var r="dataur"===(""+e).substr(0,6)?"data:application/pdf;base64,"+btoa(lt()):0;switch(e){case void 0:return lt();case"save":if("object"===("undefined"==typeof navigator?"undefined":at(navigator))&&navigator.getUserMedia&&(void 0===t.URL||void 0===t.URL.createObjectURL))return q.output("dataurlnewwindow");bt(dt(),A),"function"==typeof bt.unload&&t.setTimeout&&setTimeout(bt.unload,911);break;case"arraybuffer":return ht();case"blob":return dt();case"bloburi":case"bloburl":return t.URL&&t.URL.createObjectURL(dt())||void 0;case"datauristring":case"dataurlstring":return r;case"dataurlnewwindow":var n=t.open(r);if(n||"undefined"==typeof safari)return n;case"datauri":case"dataurl":return t.document.location.href=r;default:throw new Error('Output type "'+e+'" is not supported.')}}).foo=function(){try{return m.apply(this,arguments)}catch(r){var e=r.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var A="Error in function "+e.split("\n")[0].split("<")[0]+": "+r.message;if(!t.console)throw new Error(A);t.console.error(A,r),t.alert&&alert(A)}},(m.foo.bar=m).foo),pt=function(t){return!0===Array.isArray(X)&&-1<X.indexOf(t)};switch(i){case"pt":l=1;break;case"mm":l=72/25.4;break;case"cm":l=72/2.54;break;case"in":l=72;break;case"px":l=1==pt("px_scaling")?.75:96/72;break;case"pc":case"em":l=12;break;case"ex":l=6;break;default:throw"Invalid unit: "+i}for(var gt in W(),Y(),q.internal={pdfEscape:it,getStyle:ut,getFont:function(){return _[ct.apply(q,arguments)]},getFontSize:function(){return C},getCharSpace:function(){return U},getTextColor:function(){var t=v.split(" ");if(2===t.length&&"g"===t[1]){var e=parseFloat(t[0]);t=[e,e,e,"r"]}for(var A="#",r=0;r<3;r++)A+=("0"+Math.floor(255*parseFloat(t[r])).toString(16)).slice(-2);return A},getLineHeight:function(){return C*F},write:function(t){$(1===arguments.length?t:Array.prototype.join.call(arguments," "))},getCoordinateString:function(t){return J(t*l)},getVerticalCoordinateString:function(t){return J((f-t)*l)},collections:{},newObject:tt,newAdditionalObject:function(){var t=2*k.length+1,e={objId:t+=L.length,content:""};return L.push(e),e},newObjectDeferred:function(){return S[++H]=function(){return K},H},newObjectDeferredBegin:function(t){S[t]=K},putStream:et,events:j,scaleFactor:l,pageSize:{getWidth:function(){return d},getHeight:function(){return f}},output:function(t,e){return ft(t,e)},getNumberOfPages:function(){return k.length-1},pages:k,out:$,f2:J,getPageInfo:function(t){return{objId:2*(t-1)+3,pageNumber:t,pageContext:O[t]}},getCurrentPageInfo:function(){return{objId:2*(h-1)+3,pageNumber:h,pageContext:O[h]}},getPDFVersion:function(){return r},hasHotfix:pt},q.addPage=function(){return ot.apply(this,arguments),this},q.setPage=function(){return st.apply(this,arguments),this},q.insertPage=function(t){return this.addPage(),this.movePage(h,t),this},q.movePage=function(t,e){if(e<t){for(var A=k[t],r=P[t],n=O[t],i=t;e<i;i--)k[i]=k[i-1],P[i]=P[i-1],O[i]=O[i-1];k[e]=A,P[e]=r,O[e]=n,this.setPage(e)}else if(t<e){for(A=k[t],r=P[t],n=O[t],i=t;i<e;i++)k[i]=k[i+1],P[i]=P[i+1],O[i]=O[i+1];k[e]=A,P[e]=r,O[e]=n,this.setPage(e)}return this},q.deletePage=function(){return function(t){0<t&&t<=N&&(k.splice(t,1),P.splice(t,1),--N<h&&(h=N),this.setPage(h))}.apply(this,arguments),this},q.setCreationDate=function(t){return W(t),this},q.getCreationDate=function(t){return function(t){var e=w;return"jsDate"===t&&(e=function(t){var e=parseInt(t.substr(2,4),10),A=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),n=parseInt(t.substr(10,2),10),i=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return parseInt(t.substr(16,2),10),parseInt(t.substr(20,2),10),new Date(e,A,r,n,i,o,0)}(w)),e}(t)},q.setFileId=function(t){return Y(t),this},q.getFileId=function(){return x},q.setDisplayMode=function(t,e,A){if(g=t,B=e,-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(p=A))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+A+'" is not recognized.');return this},q.text=function(t,e,A,r){function n(t){for(var e,A=t.concat(),r=[],n=A.length;n--;)"string"==typeof(e=A.shift())?r.push(e):"[object Array]"===Object.prototype.toString.call(t)&&1===e.length?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function i(t,e){var A;if("string"==typeof t)A=e(t)[0];else if("[object Array]"===Object.prototype.toString.call(t)){for(var r,n,i=t.concat(),o=[],a=i.length;a--;)"string"==typeof(r=i.shift())?o.push(e(r)[0]):"[object Array]"===Object.prototype.toString.call(r)&&"string"===r[0]&&(n=e(r[0],r[1],r[2]),o.push([n[0],n[1],n[2]]));A=o}return A}var o,a,s="",l=F,u=this;"number"==typeof t&&(a=A,A=e,e=t,t=a);var h=r,d=arguments[4],f=arguments[5];"object"===(void 0===h?"undefined":at(h))&&null!==h||("string"==typeof d&&(f=d,d=null),"string"==typeof h&&(f=h,h=null),"number"==typeof h&&(d=h,h=null),r={flags:h,angle:d,align:f});var p=!1,g=!0;if("string"==typeof t)p=!0;else if("[object Array]"===Object.prototype.toString.call(t)){for(var B,w=t.concat(),m=[],y=w.length;y--;)("string"!=typeof(B=w.shift())||"[object Array]"===Object.prototype.toString.call(B)&&"string"!=typeof B[0])&&(g=!1);p=g}if(!1===p)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');var Q=_[c].encoding;"WinAnsiEncoding"!==Q&&"StandardEncoding"!==Q||(t=i(t,function(t,e,A){return[(n=t,n=n.split("\t").join(Array(r.TabLen||9).join(" ")),it(n,h)),e,A];var n})),"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]),0<(z=r.maxWidth||0)&&("string"==typeof t?t=u.splitTextToSize(t,z):"[object Array]"===Object.prototype.toString.call(t)&&(t=u.splitTextToSize(t.join(" "),z)));var E={text:t,x:e,y:A,options:r,mutex:{pdfEscape:it,activeFontKey:c,fonts:_,activeFontSize:C}};j.publish("preProcessText",E),t=E.text,d=(r=E.options).angle;var x=u.internal.scaleFactor,H=(u.internal.pageSize.getHeight(),[]);if(d){d*=Math.PI/180;var I=Math.cos(d),S=Math.sin(d),T=function(t){return t.toFixed(2)};H=[T(I),T(S),T(-1*S),T(I)]}void 0!==(K=r.charSpace)&&(s+=K+" Tc\n"),r.lang;var N=-1,k=r.renderingMode||r.stroke,O=u.internal.getCurrentPageInfo().pageContext;switch(k){case 0:case!1:case"fill":N=0;break;case 1:case!0:case"stroke":N=1;break;case 2:case"fillThenStroke":N=2;break;case 3:case"invisible":N=3;break;case 4:case"fillAndAddForClipping":N=4;break;case 5:case"strokeAndAddPathForClipping":N=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":N=6;break;case 7:case"addToPathForClipping":N=7}var P=O.usedRenderingMode||-1;-1!==N?s+=N+" Tr\n":-1!==P&&(s+="0 Tr\n"),-1!==N&&(O.usedRenderingMode=N),f=r.align||"left";var D=C*l,L=u.internal.pageSize.getHeight(),R=u.internal.pageSize.getWidth(),M=(x=u.internal.scaleFactor,_[c]),K=r.charSpace||U,z=r.maxWidth||0,q=(h={},[]);if("[object Array]"===Object.prototype.toString.call(t)){var X,V;m=n(t),"left"!==f&&(V=m.map(function(t){return u.getStringUnitWidth(t,{font:M,charSpace:K,fontSize:C})*C/x}));Math.max.apply(Math,V);var G,W=0;if("right"===f){e-=V[0],t=[];var Y=0;for(y=m.length;Y<y;Y++)V[Y],0===Y?(G=e*x,X=(L-A)*x):(G=(W-V[Y])*x,X=-D),t.push([m[Y],G,X]),W=V[Y]}else if("center"===f)for(e-=V[0]/2,t=[],Y=0,y=m.length;Y<y;Y++)V[Y],0===Y?(G=e*x,X=(L-A)*x):(G=(W-V[Y])/2*x,X=-D),t.push([m[Y],G,X]),W=V[Y];else if("left"===f)for(t=[],Y=0,y=m.length;Y<y;Y++)X=0===Y?(L-A)*x:-D,G=0===Y?e*x:0,t.push(m[Y]);else{if("justify"!==f)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(t=[],z=0!==z?z:R,Y=0,y=m.length;Y<y;Y++)X=0===Y?(L-A)*x:-D,G=0===Y?e*x:0,Y<y-1&&q.push(((z-V[Y])/(m[Y].split(" ").length-1)*x).toFixed(2)),t.push([m[Y],G,X])}}!0===("boolean"==typeof r.R2L?r.R2L:b)&&(t=i(t,function(t,e,A){return[t.split("").reverse().join(""),e,A]})),E={text:t,x:e,y:A,options:r,mutex:{pdfEscape:it,activeFontKey:c,fonts:_,activeFontSize:C}},j.publish("postProcessText",E),t=E.text,o=E.mutex.isHex,m=n(t),t=[];var J,Z,tt,et=0,At=(y=m.length,"");for(Y=0;Y<y;Y++)At="","[object Array]"!==Object.prototype.toString.call(m[Y])?(J=parseFloat(e*x).toFixed(2),Z=parseFloat((L-A)*x).toFixed(2),tt=(o?"<":"(")+m[Y]+(o?">":")")):"[object Array]"===Object.prototype.toString.call(m[Y])&&(J=parseFloat(m[Y][1]).toFixed(2),Z=parseFloat(m[Y][2]).toFixed(2),tt=(o?"<":"(")+m[Y][0]+(o?">":")"),et=1),void 0!==q&&void 0!==q[Y]&&(At=q[Y]+" Tw\n"),0!==H.length&&0===Y?t.push(At+H.join(" ")+" "+J+" "+Z+" Tm\n"+tt):1===et||0===et&&0===Y?t.push(At+J+" "+Z+" Td\n"+tt):t.push(At+tt);t=0===et?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var rt="BT\n/"+c+" "+C+" Tf\n"+(C*l).toFixed(2)+" TL\n"+v+"\n";return rt+=s,rt+=t,$(rt+="ET"),u},q.lstext=function(t,e,A,r){console.warn("jsPDF.lstext is deprecated");for(var n=0,i=t.length;n<i;n++,e+=r)this.text(t[n],e,A);return this},q.line=function(t,e,A,r){return this.lines([[A-t,r-e]],t,e)},q.clip=function(){$("W"),$("S")},q.clip_fixed=function(t){$("evenodd"===t?"W*":"W"),$("n")},q.lines=function(t,e,A,r,n,i){var o,a,s,c,h,d,p,g,B,w,m;for("number"==typeof t&&(u=A,A=e,e=t,t=u),r=r||[1,1],$(Z(e*l)+" "+Z((f-A)*l)+" m "),o=r[0],a=r[1],c=t.length,w=e,m=A,s=0;s<c;s++)2===(h=t[s]).length?(w=h[0]*o+w,m=h[1]*a+m,$(Z(w*l)+" "+Z((f-m)*l)+" l")):(d=h[0]*o+w,p=h[1]*a+m,g=h[2]*o+w,B=h[3]*a+m,w=h[4]*o+w,m=h[5]*a+m,$(Z(d*l)+" "+Z((f-p)*l)+" "+Z(g*l)+" "+Z((f-B)*l)+" "+Z(w*l)+" "+Z((f-m)*l)+" c"));return i&&$(" h"),null!==n&&$(ut(n)),this},q.rect=function(t,e,A,r,n){return ut(n),$([J(t*l),J((f-e)*l),J(A*l),J(-r*l),"re"].join(" ")),null!==n&&$(ut(n)),this},q.triangle=function(t,e,A,r,n,i,o){return this.lines([[A-t,r-e],[n-A,i-r],[t-n,e-i]],t,e,[1,1],o,!0),this},q.roundedRect=function(t,e,A,r,n,i,o){var a=4/3*(Math.SQRT2-1);return this.lines([[A-2*n,0],[n*a,0,n,i-i*a,n,i],[0,r-2*i],[0,i*a,-n*a,i,-n,i],[2*n-A,0],[-n*a,0,-n,-i*a,-n,-i],[0,2*i-r],[0,-i*a,n*a,-i,n,-i]],t+n,e,[1,1],o),this},q.ellipse=function(t,e,A,r,n){var i=4/3*(Math.SQRT2-1)*A,o=4/3*(Math.SQRT2-1)*r;return $([J((t+A)*l),J((f-e)*l),"m",J((t+A)*l),J((f-(e-o))*l),J((t+i)*l),J((f-(e-r))*l),J(t*l),J((f-(e-r))*l),"c"].join(" ")),$([J((t-i)*l),J((f-(e-r))*l),J((t-A)*l),J((f-(e-o))*l),J((t-A)*l),J((f-e)*l),"c"].join(" ")),$([J((t-A)*l),J((f-(e+o))*l),J((t-i)*l),J((f-(e+r))*l),J(t*l),J((f-(e+r))*l),"c"].join(" ")),$([J((t+i)*l),J((f-(e+r))*l),J((t+A)*l),J((f-(e+o))*l),J((t+A)*l),J((f-e)*l),"c"].join(" ")),null!==n&&$(ut(n)),this},q.circle=function(t,e,A,r){return this.ellipse(t,e,A,A,r)},q.setProperties=function(t){for(var e in z)z.hasOwnProperty(e)&&t[e]&&(z[e]=t[e]);return this},q.setFontSize=function(t){return C=t,this},q.setFont=function(t,e){return c=ct(t,e),this},q.setFontStyle=q.setFontType=function(t){return c=ct(void 0,t),this},q.getFontList=function(){var t,e,A,r={};for(t in T)if(T.hasOwnProperty(t))for(e in r[t]=A=[],T[t])T[t].hasOwnProperty(e)&&A.push(e);return r},q.addFont=function(t,e,A,r){nt(t,e,A,r=r||"Identity-H")},q.setLineWidth=function(t){return $((t*l).toFixed(2)+" w"),this},q.setDrawColor=function(t,e,A,r){return $(V({ch1:t,ch2:e,ch3:A,ch4:r,pdfColorType:"draw",precision:2})),this},q.setFillColor=function(t,e,A,r){return $(V({ch1:t,ch2:e,ch3:A,ch4:r,pdfColorType:"fill",precision:2})),this},q.setTextColor=function(t,e,A,r){return v=V({ch1:t,ch2:e,ch3:A,ch4:r,pdfColorType:"text",precision:3}),this},q.setCharSpace=function(t){return U=t,this},q.setR2L=function(t){return b=t,this},q.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},q.setLineCap=function(t){var e=this.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 $((R=e)+" J"),this},q.setLineJoin=function(t){var e=this.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 $((M=e)+" j"),this},q.output=ft,q.save=function(t){q.output("save",t)},A.API)A.API.hasOwnProperty(gt)&&("events"===gt&&A.API.events.length?function(t,e){var A,r,n;for(n=e.length-1;-1!==n;n--)A=e[n][0],r=e[n][1],t.subscribe.apply(t,[A].concat("function"==typeof r?[r]:r))}(j,A.API.events):q[gt]=A.API[gt]);return function(){for(var t="helvetica",e="times",A="courier",r="normal",n="bold",i="italic",o="bolditalic",a=[["Helvetica",t,r,"WinAnsiEncoding"],["Helvetica-Bold",t,n,"WinAnsiEncoding"],["Helvetica-Oblique",t,i,"WinAnsiEncoding"],["Helvetica-BoldOblique",t,o,"WinAnsiEncoding"],["Courier",A,r,"WinAnsiEncoding"],["Courier-Bold",A,n,"WinAnsiEncoding"],["Courier-Oblique",A,i,"WinAnsiEncoding"],["Courier-BoldOblique",A,o,"WinAnsiEncoding"],["Times-Roman",e,r,"WinAnsiEncoding"],["Times-Bold",e,n,"WinAnsiEncoding"],["Times-Italic",e,i,"WinAnsiEncoding"],["Times-BoldItalic",e,o,"WinAnsiEncoding"],["ZapfDingbats","zapfdingbats",r,null],["Symbol","symbol",r,null]],s=0,c=a.length;s<c;s++){var l=nt(a[s][0],a[s][1],a[s][2],a[s][3]),u=a[s][0].split("-");rt(l,u[0],u[1]||"")}j.publish("addFonts",{fonts:_,dictionary:T})}(),c="F1",ot(o,e),j.publish("initialized"),q}var r="1.3",n={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]};return A.API={events:[]},A.version="0.0.0",e.exports?(e.exports=A,e.exports.jsPDF=A):t.jsPDF=A,A}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());!function(t,e){var A,r,n=1,i=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},o=function(t){return t*(n/1)},a=function(t){var e=new F,A=R.internal.getHeight(t)||0,r=R.internal.getWidth(t)||0;return e.BBox=[0,0,r.toFixed(2),A.toFixed(2)],e},s=function(t,e,A){t=t||0;var r=1;return r<<=e-1,1==(A=A||1)?t|=r:t&=~r,t},c=function(t,e,A){return A=A||1.3,t=t||0,1==e.readOnly&&(t=s(t,1)),1==e.required&&(t=s(t,2)),1==e.noExport&&(t=s(t,3)),1==e.multiline&&(t=s(t,13)),e.password&&(t=s(t,14)),e.noToggleToOff&&(t=s(t,15)),e.radio&&(t=s(t,16)),e.pushbutton&&(t=s(t,17)),e.combo&&(t=s(t,18)),e.edit&&(t=s(t,19)),e.sort&&(t=s(t,20)),e.fileSelect&&1.4<=A&&(t=s(t,21)),e.multiSelect&&1.4<=A&&(t=s(t,22)),e.doNotSpellCheck&&1.4<=A&&(t=s(t,23)),1==e.doNotScroll&&1.4<=A&&(t=s(t,24)),e.richText&&1.4<=A&&(t=s(t,25)),t},l=function(t){var e=t[0],A=t[1],n=t[2],i=t[3],a={};return Array.isArray(e)?(e[0]=o(e[0]),e[1]=o(e[1]),e[2]=o(e[2]),e[3]=o(e[3])):(e=o(e),A=o(A),n=o(n),i=o(i)),a.lowerLeft_X=e||0,a.lowerLeft_Y=o(r)-A-i||0,a.upperRight_X=e+n||0,a.upperRight_Y=o(r)-A||0,[a.lowerLeft_X.toFixed(2),a.lowerLeft_Y.toFixed(2),a.upperRight_X.toFixed(2),a.upperRight_Y.toFixed(2)]},u=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],A=t.V||t.DV,r=h(t,A);e.push("/Tx BMC"),e.push("q"),e.push("/F1 "+r.fontSize.toFixed(2)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push("BT"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var n=new a(t);return n.stream=e.join("\n"),n}},h=function(t,e,A,r){r=r||12,A=A||"helvetica";var n={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" "),o=r,a=R.internal.getHeight(t)||0;a=a<0?-a:a;var s=R.internal.getWidth(t)||0;s=s<0?-s:s;var c=function(t,e,r){if(t+1<i.length){var n=e+" "+i[t+1];return d(n,r+"px",A).width<=s-4}return!1};o++;t:for(;;){e="";var l=d("3",--o+"px",A).height,u=t.multiline?a-o:(a-l)/2,h=-2,f=u+=2,p=0,g=0,B=0;if(o<=0){o=12,e="(...) Tj\n",e+="% Width of Text: "+d(e,"1px").width+", FieldWidth:"+s+"\n";break}B=d(i[0]+" ",o+"px",A).width;var w="",m=0;for(var y in i){w=" "==(w+=i[y]+" ").substr(w.length-1)?w.substr(0,w.length-1):w;var v=parseInt(y);B=d(w+" ",o+"px",A).width;var Q=c(v,w,o),C=y>=i.length-1;if(!Q||C){if(Q||C){if(C)g=v;else if(t.multiline&&a<(l+2)*(m+2)+2)continue t}else{if(!t.multiline)continue t;if(a<(l+2)*(m+2)+2)continue t;g=v}for(var U="",b=p;b<=g;b++)U+=i[b]+" ";switch(U=" "==U.substr(U.length-1)?U.substr(0,U.length-1):U,B=d(U,o+"px",A).width,t.Q){case 2:h=s-B-2;break;case 1:h=(s-B)/2;break;case 0:default:h=2}e+=h.toFixed(2)+" "+f.toFixed(2)+" Td\n",e+="("+U+") Tj\n",e+=-h.toFixed(2)+" 0 Td\n",f=-(o+2),B=0,p=g+1,m++,w=""}else w+=" "}break}return n.text=e,n.fontSize=o,n},d=function(t,e,r){r=r||"helvetica";var n=A.internal.getFont(r),i=A.getStringUnitWidth(t,{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:A.getStringUnitWidth("3",{font:n,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:i}},f={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},p=function(){for(var t in A.internal.acroformPlugin.acroFormDictionaryRoot.Fields){var e=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields[t];e.hasAnnotation&&B.call(A,e)}},g=function(t){A.internal.acroformPlugin.printedOut&&(A.internal.acroformPlugin.printedOut=!1,A.internal.acroformPlugin.acroFormDictionaryRoot=null),A.internal.acroformPlugin.acroFormDictionaryRoot||Q.call(A),A.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t)},B=function(t){var e={type:"reference",object:t};A.annotationPlugin.annotations[A.internal.getPageInfo(t.page).pageNumber].push(e)},w=function(){void 0!==A.internal.acroformPlugin.acroFormDictionaryRoot?A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R"):console.log("Root missing...")},m=function(){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0},y=function(t){var e=!t;t||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId),A.internal.out(A.internal.acroformPlugin.acroFormDictionaryRoot.getString())),t=t||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids;for(var r in t){var n=t[r],i=n.Rect;n.Rect&&(n.Rect=l.call(this,n.Rect)),A.internal.newObjectDeferredBegin(n.objId);var o=n.objId+" 0 obj\n<<\n";if("object"===(void 0===n?"undefined":at(n))&&"function"==typeof n.getContent&&(o+=n.getContent()),n.Rect=i,n.hasAppearanceStream&&!n.appearanceStreamContent){var a=u.call(this,n);o+="/AP << /N "+a+" >>\n",A.internal.acroformPlugin.xForms.push(a)}if(n.appearanceStreamContent){for(var s in o+="/AP << ",n.appearanceStreamContent){var c=n.appearanceStreamContent[s];if(o+="/"+s+" ",o+="<< ",1<=Object.keys(c).length||Array.isArray(c))for(var r in c){var h;"function"==typeof(h=c[r])&&(h=h.call(this,n)),o+="/"+r+" "+h+" ",0<=A.internal.acroformPlugin.xForms.indexOf(h)||A.internal.acroformPlugin.xForms.push(h)}else"function"==typeof(h=c)&&(h=h.call(this,n)),o+="/"+r+" "+h+" \n",0<=A.internal.acroformPlugin.xForms.indexOf(h)||A.internal.acroformPlugin.xForms.push(h);o+=" >>\n"}o+=">>\n"}o+=">>\nendobj\n",A.internal.out(o)}e&&v.call(this,A.internal.acroformPlugin.xForms)},v=function(t){for(var e in t){var r=e,n=t[e];A.internal.newObjectDeferredBegin(n&&n.objId);var i="";"object"===(void 0===n?"undefined":at(n))&&"function"==typeof n.getString&&(i=n.getString()),A.internal.out(i),delete t[r]}},Q=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(A=this,x.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(f)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");n=A.internal.scaleFactor,r=A.internal.pageSize.getHeight(),A.internal.acroformPlugin.acroFormDictionaryRoot=new E,A.internal.acroformPlugin.acroFormDictionaryRoot._eventID=A.internal.events.subscribe("postPutResources",m),A.internal.events.subscribe("buildDocument",p),A.internal.events.subscribe("putCatalog",w),A.internal.events.subscribe("postPutPages",y),A.internal.acroformPlugin.isInitialized=!0}},C=function(t){if(Array.isArray(t)){var e=" [";for(var A in t)e+=t[A].toString(),e+=A<t.length-1?" ":"";return e+="]"}},U=function(t){return 0!==(t=t||"").indexOf("(")&&(t="("+t),")"!=t.substring(t.length-1)&&(t+=")"),t},b=function(){var t;Object.defineProperty(this,"objId",{get:function(){return t||(t=A.internal.newObjectDeferred()),t||console.log("Couldn't create Object ID"),t},configurable:!1})};b.prototype.toString=function(){return this.objId+" 0 R"},b.prototype.getString=function(){var t=this.objId+" 0 obj\n<<";return t+=this.getContent()+">>\n",this.stream&&(t+="stream\n",t+=this.stream,t+="\nendstream\n"),t+="endobj\n"},b.prototype.getContent=function(){var t="";return t+=function(t){var e="",A=Object.keys(t).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"_"!=t.substring(0,1)});for(var r in A){var n=A[r],i=t[n];i&&(Array.isArray(i)?e+="/"+n+" "+C(i)+"\n":e+=i instanceof b?"/"+n+" "+i.objId+" 0 R\n":"/"+n+" "+i+"\n")}return e}(this)};var F=function(){var t;b.call(this),this.Type="/XObject",this.Subtype="/Form",this.FormType=1,this.BBox,this.Matrix,this.Resources="2 0 R",this.PieceInfo,Object.defineProperty(this,"Length",{enumerable:!0,get:function(){return void 0!==t?t.length:0}}),Object.defineProperty(this,"stream",{enumerable:!1,set:function(e){t=e.trim()},get:function(){return t||null}})};i(F,b);var E=function(){b.call(this);var t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<t.length?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!0,configurable:!0,get:function(){return t}}),this.DA};i(E,b);var x=function t(){var e;b.call(this),Object.defineProperty(this,"Rect",{enumerable:!0,configurable:!1,get:function(){if(e)return e},set:function(t){e=t}});var A,r,n,i,o="";Object.defineProperty(this,"FT",{enumerable:!0,set:function(t){o=t},get:function(){return o}}),Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,set:function(t){A=t},get:function(){if(!A||A.length<1){if(this instanceof O)return;return"(FieldObject"+t.FieldNum+++")"}return"("==A.substring(0,1)&&A.substring(A.length-1)?A:"("+A+")"}}),Object.defineProperty(this,"DA",{enumerable:!0,get:function(){if(r)return"("+r+")"},set:function(t){r=t}}),Object.defineProperty(this,"DV",{enumerable:!0,configurable:!0,get:function(){if(n)return n},set:function(t){n=t}}),Object.defineProperty(this,"V",{enumerable:!0,configurable:!0,get:function(){if(i)return i},set:function(t){i=t}}),Object.defineProperty(this,"Type",{enumerable:!0,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,get:function(){return this.hasAnnotation?"/Widget":null}}),this.BG,Object.defineProperty(this,"hasAnnotation",{enumerable:!1,get:function(){return!!(this.Rect||this.BC||this.BG)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(this,"page",{enumerable:!1,configurable:!0,writable:!0})};i(x,b);var H=function(){x.call(this),this.FT="/Ch",this.Opt=[],this.V="()",this.TI=0;var t=!1;Object.defineProperty(this,"combo",{enumerable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"edit",{enumerable:!0,set:function(t){1==t?(this._edit=!0,this.combo=!0):this._edit=!1},get:function(){return!!this._edit&&this._edit},configurable:!1}),this.hasAppearanceStream=!0};i(H,x);var I=function(){H.call(this),this.combo=!1};i(I,H);var S=function(){I.call(this),this.combo=!0};i(S,I);var _=function(){S.call(this),this.edit=!0};i(_,S);var T=function(){x.call(this),this.FT="/Btn"};i(T,x);var N=function(){T.call(this);var t=!0;Object.defineProperty(this,"pushbutton",{enumerable:!1,get:function(){return t},set:function(e){t=e}})};i(N,T);var k=function(){T.call(this);var t=!0;Object.defineProperty(this,"radio",{enumerable:!1,get:function(){return t},set:function(e){t=e}});var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!0,get:function(){if(0<A.length)return A}}),Object.defineProperty(this,"__Kids",{get:function(){return A}}),Object.defineProperty(this,"noToggleToOff",{enumerable:!1,get:function(){return e},set:function(t){e=t}})};i(k,T);var O=function(t,e){x.call(this),this.Parent=t,this._AppearanceType=R.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(e),this.F=s(this.F,3,1),this.MK=this._AppearanceType.createMK(),this.AS="/Off",this._Name=e};i(O,x),k.prototype.setAppearance=function(t){if("createAppearanceStream"in t&&"createMK"in t)for(var e in this.__Kids){var A=this.__Kids[e];A.appearanceStreamContent=t.createAppearanceStream(A._Name),A.MK=t.createMK()}else console.log("Couldn't assign Appearance to RadioButton. Appearance was Invalid!")},k.prototype.createOption=function(e){this.__Kids.length;var A=new O(this,e);return this.__Kids.push(A),t.addField(A),A};var P=function(){T.call(this),this.appearanceStreamContent=R.CheckBox.createAppearanceStream(),this.MK=R.CheckBox.createMK(),this.AS="/On",this.V="/On"};i(P,T);var D=function(){var t,e;x.call(this),this.DA=R.createDefaultAppearanceStream(),this.F=4,Object.defineProperty(this,"V",{get:function(){return t?U(t):t},enumerable:!0,set:function(e){t=e}}),Object.defineProperty(this,"DV",{get:function(){return e?U(e):e},enumerable:!0,set:function(t){e=t}});var A=!1;Object.defineProperty(this,"multiline",{enumerable:!1,get:function(){return A},set:function(t){A=t}});var r=!1;Object.defineProperty(this,"fileSelect",{enumerable:!1,get:function(){return r},set:function(t){r=t}});var n=!1;Object.defineProperty(this,"doNotSpellCheck",{enumerable:!1,get:function(){return n},set:function(t){n=t}});var i=!1;Object.defineProperty(this,"doNotScroll",{enumerable:!1,get:function(){return i},set:function(t){i=t}});var o=!1;Object.defineProperty(this,"MaxLen",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!1,get:function(){return this.V||this.DV}})};i(D,x);var L=function(){D.call(this);var t=!0;Object.defineProperty(this,"password",{enumerable:!1,get:function(){return t},set:function(e){t=e}})};i(L,D);var R={CheckBox:{createAppearanceStream:function(){return{N:{On:R.CheckBox.YesNormal},D:{On:R.CheckBox.YesPushDown,Off:R.CheckBox.OffPushDown}}},createMK:function(){return"<< /CA (3)>>"},YesPushDown:function(t){var e=a(t),r=[],n=A.internal.getFont("zapfdingbats","normal").id;t.Q=1;var i=h(t,"3","ZapfDingbats",50);return r.push("0.749023 g"),r.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+i.fontSize.toFixed(2)+" Tf 0 g"),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),e.stream=r.join("\n"),e},YesNormal:function(t){var e=a(t),r=A.internal.getFont("zapfdingbats","normal").id,n=[];t.Q=1;var i=R.internal.getHeight(t),o=R.internal.getWidth(t),s=h(t,"3","ZapfDingbats",.9*i);return n.push("1 g"),n.push("0 0 "+o.toFixed(2)+" "+i.toFixed(2)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+(o-1).toFixed(2)+" "+(i-1).toFixed(2)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+r+" "+s.fontSize.toFixed(2)+" Tf 0 g"),n.push(s.text),n.push("ET"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),A.push("f"),e.stream=A.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Circle.YesNormal,e.D[t]=R.RadioButton.Circle.YesPushDown,e},createMK:function(){return"<< /CA (l)>>"},YesNormal:function(t){var e=a(t),A=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4;r*=.9;var n=R.internal.Bezier_C;return A.push("q"),A.push("1 0 0 1 "+R.internal.getWidth(t)/2+" "+R.internal.getHeight(t)/2+" cm"),A.push(r+" 0 m"),A.push(r+" "+r*n+" "+r*n+" "+r+" 0 "+r+" c"),A.push("-"+r*n+" "+r+" -"+r+" "+r*n+" -"+r+" 0 c"),A.push("-"+r+" -"+r*n+" -"+r*n+" -"+r+" 0 -"+r+" c"),A.push(r*n+" -"+r+" "+r+" -"+r*n+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=a(t),A=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,n=2*(r*=.9),i=n*R.internal.Bezier_C,o=r*R.internal.Bezier_C;return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),A.push("0 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),A.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),A.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),A.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[],r=R.internal.getWidth(t)<=R.internal.getHeight(t)?R.internal.getWidth(t)/4:R.internal.getHeight(t)/4,n=2*(r*=.9),i=n*R.internal.Bezier_C;return A.push("0.749023 g"),A.push("q"),A.push("1 0 0 1 "+(R.internal.getWidth(t)/2).toFixed(2)+" "+(R.internal.getHeight(t)/2).toFixed(2)+" cm"),A.push(n+" 0 m"),A.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),A.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),A.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),A.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:R.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=R.RadioButton.Cross.YesNormal,e.D[t]=R.RadioButton.Cross.YesPushDown,e},createMK:function(){return"<< /CA (8)>>"},YesNormal:function(t){var e=a(t),A=[],r=R.internal.calculateCross(t);return A.push("q"),A.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),A.push("W"),A.push("n"),A.push(r.x1.x.toFixed(2)+" "+r.x1.y.toFixed(2)+" m"),A.push(r.x2.x.toFixed(2)+" "+r.x2.y.toFixed(2)+" l"),A.push(r.x4.x.toFixed(2)+" "+r.x4.y.toFixed(2)+" m"),A.push(r.x3.x.toFixed(2)+" "+r.x3.y.toFixed(2)+" l"),A.push("s"),A.push("Q"),e.stream=A.join("\n"),e},YesPushDown:function(t){var e=a(t),A=R.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),r.push("f"),r.push("q"),r.push("1 1 "+(R.internal.getWidth(t)-2).toFixed(2)+" "+(R.internal.getHeight(t)-2).toFixed(2)+" re"),r.push("W"),r.push("n"),r.push(A.x1.x.toFixed(2)+" "+A.x1.y.toFixed(2)+" m"),r.push(A.x2.x.toFixed(2)+" "+A.x2.y.toFixed(2)+" l"),r.push(A.x4.x.toFixed(2)+" "+A.x4.y.toFixed(2)+" m"),r.push(A.x3.x.toFixed(2)+" "+A.x3.y.toFixed(2)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=a(t),A=[];return A.push("0.749023 g"),A.push("0 0 "+R.internal.getWidth(t).toFixed(2)+" "+R.internal.getHeight(t).toFixed(2)+" re"),A.push("f"),e.stream=A.join("\n"),e}}},createDefaultAppearanceStream:function(t){return"/F1 0 Tf 0 g"}};R.internal={Bezier_C:.551915024494,calculateCross:function(t){var e,A,r=R.internal.getWidth(t),n=R.internal.getHeight(t),i=(A=n)<(e=r)?A:e;return{x1:{x:(r-i)/2,y:(n-i)/2+i},x2:{x:(r-i)/2+i,y:(n-i)/2},x3:{x:(r-i)/2,y:(n-i)/2},x4:{x:(r-i)/2+i,y:(n-i)/2+i}}}},R.internal.getWidth=function(t){var e=0;return"object"===(void 0===t?"undefined":at(t))&&(e=o(t.Rect[2])),e},R.internal.getHeight=function(t){var e=0;return"object"===(void 0===t?"undefined":at(t))&&(e=o(t.Rect[3])),e},t.addField=function(t){return Q.call(this),t instanceof D?this.addTextField.call(this,t):t instanceof H?this.addChoiceField.call(this,t):t instanceof T?this.addButton.call(this,t):t instanceof O?g.call(this,t):t&&g.call(this,t),t.page=A.internal.getCurrentPageInfo().pageNumber,this},t.addButton=function(t){Q.call(this);var e=t||new x;e.FT="/Btn",e.Ff=c(e.Ff,t,A.internal.getPDFVersion()),g.call(this,e)},t.addTextField=function(t){Q.call(this);var e=t||new x;e.FT="/Tx",e.Ff=c(e.Ff,t,A.internal.getPDFVersion()),g.call(this,e)},t.addChoiceField=function(t){Q.call(this);var e=t||new x;e.FT="/Ch",e.Ff=c(e.Ff,t,A.internal.getPDFVersion()),g.call(this,e)},"object"==(void 0===e?"undefined":at(e))&&(e.ChoiceField=H,e.ListBox=I,e.ComboBox=S,e.EditBox=_,e.Button=T,e.PushButton=N,e.RadioButton=k,e.CheckBox=P,e.TextField=D,e.PasswordField=L,e.AcroForm={Appearance:R}),t.AcroFormChoiceField=H,t.AcroFormListBox=I,t.AcroFormComboBox=S,t.AcroFormEditBox=_,t.AcroFormButton=T,t.AcroFormPushButton=N,t.AcroFormRadioButton=k,t.AcroFormCheckBox=P,t.AcroFormTextField=D,t.AcroFormPasswordField=L,t.AcroForm={ChoiceField:H,ListBox:I,ComboBox:S,EditBox:_,Button:T,PushButton:N,RadioButton:k,CheckBox:P,TextField:D,PasswordField:L}}(st.API,"undefined"!=typeof window&&window||void 0!==r&&r),st.API.addHTML=function(t,e,A,r,n){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,n=A),"function"==typeof r&&(n=r,r=null),"function"!=typeof n&&(n=function(){});var i=this.internal,o=i.scaleFactor,a=i.pageSize.getWidth(),s=i.pageSize.getHeight();if((r=r||{}).onrendered=function(t){e=parseInt(e)||0,A=parseInt(A)||0;var i=r.dim||{},c=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),l=i.h||Math.min(s,t.height/o),u=i.w||Math.min(a,t.width/o)-e,h=r.format||"JPEG",d=r.imageCompression||"SLOW";if(t.height>s-c.top-c.bottom&&r.pagesplit){var f=function(t,e,A,n,i){var o=document.createElement("canvas");o.height=i,o.width=n;var a=o.getContext("2d");return a.mozImageSmoothingEnabled=!1,a.webkitImageSmoothingEnabled=!1,a.msImageSmoothingEnabled=!1,a.imageSmoothingEnabled=!1,a.fillStyle=r.backgroundColor||"#ffffff",a.fillRect(0,0,n,i),a.drawImage(t,e,A,n,i,0,0,n,i),o},p=function(){for(var r,i,l=0,p=0,g={},B=!1;;){var w;if(p=0,g.top=0!==l?c.top:A,g.left=0!==l?c.left:e,B=(a-c.left-c.right)*o<t.width,"content"===c.useFor?0===l?(r=Math.min((a-c.left)*o,t.width),i=Math.min((s-c.top)*o,t.height-l)):(r=Math.min(a*o,t.width),i=Math.min(s*o,t.height-l),g.top=0):(r=Math.min((a-c.left-c.right)*o,t.width),i=Math.min((s-c.bottom-c.top)*o,t.height-l)),B)for(;;){"content"===c.useFor&&(0===p?r=Math.min((a-c.left)*o,t.width):(r=Math.min(a*o,t.width-p),g.left=0));var m=[w=f(t,p,l,r,i),g.left,g.top,w.width/o,w.height/o,h,null,d];if(this.addImage.apply(this,m),(p+=r)>=t.width)break;this.addPage()}else m=[w=f(t,0,l,r,i),g.left,g.top,w.width/o,w.height/o,h,null,d],this.addImage.apply(this,m);if((l+=i)>=t.height)break;this.addPage()}n(u,l,null,m)}.bind(this);if("CANVAS"===t.nodeName){var g=new Image;g.onload=p,g.src=t.toDataURL("image/png"),t=g}else p()}else{var B=Math.random().toString(35),w=[t,e,A,u,l,h,B,d];this.addImage.apply(this,w),n(u,l,B,w)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(t,r);if("undefined"!=typeof rasterizeHTML){var c="drawDocument";return"string"==typeof t&&(c=/^http/.test(t)?"drawURL":"drawHTML"),r.width=r.width||a*o,rasterizeHTML[c](t,void 0,r).then(function(t){r.onrendered(t.image)},function(t){n(null,t)})}return null},function(t){var e="addImage_",A={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0]],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]]};t.getImageFileTypeByImageData=function(t,e){var r,n;e=e||"UNKNOWN";var i,o,a,s="UNKNOWN";for(a in A)for(i=A[a],r=0;r<i.length;r+=1){for(o=!0,n=0;n<i[r].length;n+=1)if(void 0!==i[r][n]&&i[r][n]!==t.charCodeAt(n)){o=!1;break}if(!0===o){s=a;break}}return"UNKOWN"===s&&"UNKNOWN"!==e&&(console.warn('FileType of Image not recognized. Processing image as "'+e+'".'),s=e),s};var r=function t(e){var A=this.internal.newObject(),r=this.internal.write,n=this.internal.putStream;if(e.n=A,r("<</Type /XObject"),r("/Subtype /Image"),r("/Width "+e.w),r("/Height "+e.h),e.cs===this.color_spaces.INDEXED?r("/ColorSpace [/Indexed /DeviceRGB "+(e.pal.length/3-1)+" "+("smask"in e?A+2:A+1)+" 0 R]"):(r("/ColorSpace /"+e.cs),e.cs===this.color_spaces.DEVICE_CMYK&&r("/Decode [1 0 1 0 1 0 1 0]")),r("/BitsPerComponent "+e.bpc),"f"in e&&r("/Filter /"+e.f),"dp"in e&&r("/DecodeParms <<"+e.dp+">>"),"trns"in e&&e.trns.constructor==Array){for(var i="",o=0,a=e.trns.length;o<a;o++)i+=e.trns[o]+" "+e.trns[o]+" ";r("/Mask ["+i+"]")}if("smask"in e&&r("/SMask "+(A+1)+" 0 R"),r("/Length "+e.data.length+">>"),n(e.data),r("endobj"),"smask"in e){var s="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,c={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:s,data:e.smask};"f"in e&&(c.f=e.f),t.call(this,c)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),r("<< /Length "+e.pal.length+">>"),n(this.arrayBufferToBinaryString(new Uint8Array(e.pal))),r("endobj"))},n=function(){var t=this.internal.collections[e+"images"];for(var A in t)r.call(this,t[A])},i=function(){var t,A=this.internal.collections[e+"images"],r=this.internal.write;for(var n in A)r("/I"+(t=A[n]).i,t.n,"0","R")},o=function(e){return"function"==typeof t["process"+e.toUpperCase()]},a=function(t){return"object"===(void 0===t?"undefined":at(t))&&1===t.nodeType},s=function(t,e){if("IMG"===t.nodeName&&t.hasAttribute("src")){var A=""+t.getAttribute("src");if(0===A.indexOf("data:image/"))return A;!e&&/\.png(?:[?#].*)?$/i.test(A)&&(e="png")}if("CANVAS"===t.nodeName)var r=t;else{(r=document.createElement("canvas")).width=t.clientWidth||t.width,r.height=t.clientHeight||t.height;var n=r.getContext("2d");if(!n)throw"addImage requires canvas to be supported by browser.";n.drawImage(t,0,0,r.width,r.height)}return r.toDataURL("png"==(""+e).toLowerCase()?"image/png":"image/jpeg")},c=function(t,e){var A;if(e)for(var r in e)if(t===e[r].alias){A=e[r];break}return A};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){return t=t||"",Array.prototype.reduce&&t.split("").reduce(function(t,e){return(t=(t<<5)-t+e.charCodeAt(0))&t},0)},t.isString=function(t){return"string"==typeof t},t.validateStringAsBase64=function(t){var e=!0;return(t=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]+?));base64,(.+)$/g.exec(t)},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,A=new Uint8Array(e),r=0;r<e;r++)A[r]=t.charCodeAt(r);return A},t.arrayBufferToBinaryString=function(t){if("function"==typeof atob)return atob(this.arrayBufferToBase64(t));if("function"==typeof TextDecoder){var e=new TextDecoder("ascii");if("ascii"===e.encoding)return e.decode(t)}for(var A=this.isArrayBuffer(t)?t:new Uint8Array(t),r=20480,n="",i=Math.ceil(A.byteLength/r),o=0;o<i;o++)n+=String.fromCharCode.apply(null,A.slice(o*r,o*r+r));return n},t.arrayBufferToBase64=function(t){for(var e,A="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(t),i=n.byteLength,o=i%3,a=i-o,s=0;s<a;s+=3)A+=r[(16515072&(e=n[s]<<16|n[s+1]<<8|n[s+2]))>>18]+r[(258048&e)>>12]+r[(4032&e)>>6]+r[63&e];return 1==o?A+=r[(252&(e=n[a]))>>2]+r[(3&e)<<4]+"==":2==o&&(A+=r[(64512&(e=n[a]<<8|n[a+1]))>>10]+r[(1008&e)>>4]+r[(15&e)<<2]+"="),A},t.createImageInfo=function(t,e,A,r,n,i,o,a,s,c,l,u,h){var d={alias:a,w:e,h:A,cs:r,bpc:n,i:o,data:t};return i&&(d.f=i),s&&(d.dp=s),c&&(d.trns=c),l&&(d.pal=l),u&&(d.smask=u),h&&(d.p=h),d},t.addImage=function(A,r,l,u,h,d,f,p,g){var B="";if("string"!=typeof r){var w=d;d=h,h=u,u=l,l=r,r=w}if("object"===(void 0===A?"undefined":at(A))&&!a(A)&&"imageData"in A){var m=A;A=m.imageData,r=m.format||r,l=m.x||l||0,u=m.y||u||0,h=m.w||h,d=m.h||d,f=m.alias||f,p=m.compression||p,g=m.rotation||m.angle||g}if(isNaN(l)||isNaN(u))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var y,v,Q,C,U,b,F,E=function(){var t=this.internal.collections[e+"images"];return t||(this.internal.collections[e+"images"]=t={},this.internal.events.subscribe("putResources",n),this.internal.events.subscribe("putXobjectDict",i)),t}.call(this);if(!((y=c(A,E))||(a(A)&&(A=s(A,r)),(null==(F=f)||0===F.length)&&(f="string"==typeof(b=A)&&t.sHashCode(b)),y=c(f,E)))){if(this.isString(A)&&(""!==(B=this.convertStringToImageData(A))?A=B:void 0!==(B=this.loadImageFile(A))&&(A=B)),r=this.getImageFileTypeByImageData(A,r),!o(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()&&(A instanceof Uint8Array||(v=A,A=this.binaryStringToUint8Array(A))),!(y=this["process"+r.toUpperCase()](A,(U=0,(C=E)&&(U=Object.keys?Object.keys(C).length:function(t){var e=0;for(var A in t)t.hasOwnProperty(A)&&e++;return e}(C)),U),f,((Q=p)&&"string"==typeof Q&&(Q=Q.toUpperCase()),Q in t.image_compression?Q:t.image_compression.NONE),v)))throw new Error("An unkwown error occurred whilst processing the image")}return function(t,e,A,r,n,i,o,a){var s=function(t,e,A){return t||e||(e=t=-96),t<0&&(t=-1*A.w*72/t/this.internal.scaleFactor),e<0&&(e=-1*A.h*72/e/this.internal.scaleFactor),0===t&&(t=e*A.w/A.h),0===e&&(e=t*A.h/A.w),[t,e]}.call(this,A,r,n),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;if(A=s[0],r=s[1],o[i]=n,a){a*=Math.PI/180;var u=Math.cos(a),h=Math.sin(a),d=function(t){return t.toFixed(4)},f=[d(u),d(h),d(-1*h),d(u),0,0,"cm"]}this.internal.write("q"),a?(this.internal.write([1,"0","0",1,c(t),l(e+r),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([c(A),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(A),"0","0",c(r),c(t),l(e+r),"cm"].join(" ")),this.internal.write("/I"+n.i+" Do"),this.internal.write("Q")}.call(this,l,u,h,d,y,y.i,E,g),this},t.convertStringToImageData=function(e){var A,r="";return this.isString(e)&&(null!==(A=this.extractInfoFromBase64DataURI(e))?t.validateStringAsBase64(A[3])&&(r=atob(A[3])):t.validateStringAsBase64(e)&&(r=atob(e))),r};var l=function(t,e){return t.subarray(e,e+5)};t.processJPEG=function(t,e,A,r,n,i){var o,a=this.decode.DCT_DECODE;if(!this.isString(t)&&!this.isArrayBuffer(t)&&!this.isArrayBufferView(t))return null;if(this.isString(t)&&(o=function(t){var e;if(255===!t.charCodeAt(0)||216===!t.charCodeAt(1)||255===!t.charCodeAt(2)||224===!t.charCodeAt(3)||!t.charCodeAt(6)==="J".charCodeAt(0)||!t.charCodeAt(7)==="F".charCodeAt(0)||!t.charCodeAt(8)==="I".charCodeAt(0)||!t.charCodeAt(9)==="F".charCodeAt(0)||0===!t.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var A=256*t.charCodeAt(4)+t.charCodeAt(5),r=4,n=t.length;r<n;){if(r+=A,255!==t.charCodeAt(r))throw new Error("getJpegSize could not find the size of the image");if(192===t.charCodeAt(r+1)||193===t.charCodeAt(r+1)||194===t.charCodeAt(r+1)||195===t.charCodeAt(r+1)||196===t.charCodeAt(r+1)||197===t.charCodeAt(r+1)||198===t.charCodeAt(r+1)||199===t.charCodeAt(r+1))return e=256*t.charCodeAt(r+5)+t.charCodeAt(r+6),[256*t.charCodeAt(r+7)+t.charCodeAt(r+8),e,t.charCodeAt(r+9)];r+=2,A=256*t.charCodeAt(r)+t.charCodeAt(r+1)}}(t)),this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)&&(o=function(t){if(65496!=(t[0]<<8|t[1]))throw new Error("Supplied data is not a JPEG");for(var e,A=t.length,r=(t[4]<<8)+t[5],n=4;n<A;){if(r=((e=l(t,n+=r))[2]<<8)+e[3],(192===e[1]||194===e[1])&&255===e[0]&&7<r)return{width:((e=l(t,n+5))[2]<<8)+e[3],height:(e[0]<<8)+e[1],numcomponents:e[4]};n+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(t),t=n||this.arrayBufferToBinaryString(t)),void 0===i)switch(o.numcomponents){case 1:i=this.color_spaces.DEVICE_GRAY;break;case 4:i=this.color_spaces.DEVICE_CMYK;break;default:case 3:i=this.color_spaces.DEVICE_RGB}return this.createImageInfo(t,o.width,o.height,i,8,a,e,A)},t.processJPG=function(){return this.processJPEG.apply(this,arguments)},t.loadImageFile=function(t,e,A){if(e=e||!0,A=A||function(){},Object.prototype.toString.call("undefined"!=typeof process?process:0),void 0!==("undefined"==typeof window?"undefined":at(window))&&"object"===("undefined"==typeof location?"undefined":at(location))&&"http"===location.protocol.substr(0,4))return function(t,e,A){var r=new XMLHttpRequest,n=[],i=0,o=function(t){var e=t.length,A=String.fromCharCode;for(i=0;i<e;i+=1)n.push(A(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(){return o(this.responseText)}),r.send(null),200===r.status)return e?o(r.responseText):void 0;console.warn('Unable to load file "'+t+'"')}(t,e)},t.getImageProperties=function(t){var e,A,r="";if(a(t)&&(t=s(t)),this.isString(t)&&(""!==(r=this.convertStringToImageData(t))?t=r:void 0!==(r=this.loadImageFile(t))&&(t=r)),A=this.getImageFileTypeByImageData(t),!o(A))throw new Error("addImage does not support files of type '"+A+"', please ensure that a plugin for '"+A+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(e=this["process"+A.toUpperCase()](t)))throw new Error("An unkwown error occurred whilst processing the image");return{fileType:A,width:e.w,height:e.h,colorSpace:e.cs,compressionMode:e.f,bitsPerComponent:e.bpc}}}(st.API),s=st.API,c={annotations:[],f2:function(t){return t.toFixed(2)},notEmpty:function(t){if(void 0!==t&&""!=t)return!0}},st.API.annotationPlugin=c,st.API.events.push(["addPage",function(t){this.annotationPlugin.annotations[t.pageNumber]=[]}]),s.events.push(["putPage",function(t){for(var e=this.annotationPlugin.annotations[t.pageNumber],A=!1,r=0;r<e.length&&!A;r++)switch((s=e[r]).type){case"link":if(c.notEmpty(s.options.url)||c.notEmpty(s.options.pageNumber)){A=!0;break}case"reference":case"text":case"freetext":A=!0}if(0!=A){this.internal.write("/Annots [");var n=this.annotationPlugin.f2,i=this.internal.scaleFactor,o=this.internal.pageSize.getHeight(),a=this.internal.getPageInfo(t.pageNumber);for(r=0;r<e.length;r++){var s;switch((s=e[r]).type){case"reference":this.internal.write(" "+s.object.objId+" 0 R ");break;case"text":var l=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),h=s.title||"Note";B="<</Type /Annot /Subtype /Text "+(f="/Rect ["+n(s.bounds.x*i)+" "+n(o-(s.bounds.y+s.bounds.h)*i)+" "+n((s.bounds.x+s.bounds.w)*i)+" "+n((o-s.bounds.y)*i)+"] ")+"/Contents ("+s.contents+")",B+=" /Popup "+u.objId+" 0 R",B+=" /P "+a.objId+" 0 R",B+=" /T ("+h+") >>",l.content=B;var d=l.objId+" 0 R";B="<</Type /Annot /Subtype /Popup "+(f="/Rect ["+n((s.bounds.x+30)*i)+" "+n(o-(s.bounds.y+s.bounds.h)*i)+" "+n((s.bounds.x+s.bounds.w+30)*i)+" "+n((o-s.bounds.y)*i)+"] ")+" /Parent "+d,s.open&&(B+=" /Open true"),B+=" >>",u.content=B,this.internal.write(l.objId,"0 R",u.objId,"0 R");break;case"freetext":var f="/Rect ["+n(s.bounds.x*i)+" "+n((o-s.bounds.y)*i)+" "+n(s.bounds.x+s.bounds.w*i)+" "+n(o-(s.bounds.y+s.bounds.h)*i)+"] ",p=s.color||"#000000";B="<</Type /Annot /Subtype /FreeText "+f+"/Contents ("+s.contents+")",B+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")",B+=" /Border [0 0 0]",B+=" >>",this.internal.write(B);break;case"link":if(s.options.name){var g=this.annotations._nameMap[s.options.name];s.options.pageNumber=g.page,s.options.top=g.y}else s.options.top||(s.options.top=0);f="/Rect ["+n(s.x*i)+" "+n((o-s.y)*i)+" "+n((s.x+s.w)*i)+" "+n((o-(s.y+s.h))*i)+"] ";var B="";if(s.options.url)B="<</Type /Annot /Subtype /Link "+f+"/Border [0 0 0] /A <</S /URI /URI ("+s.options.url+") >>";else if(s.options.pageNumber)switch(B="<</Type /Annot /Subtype /Link "+f+"/Border [0 0 0] /Dest ["+(t=this.internal.getPageInfo(s.options.pageNumber)).objId+" 0 R",s.options.magFactor=s.options.magFactor||"XYZ",s.options.magFactor){case"Fit":B+=" /Fit]";break;case"FitH":B+=" /FitH "+s.options.top+"]";break;case"FitV":s.options.left=s.options.left||0,B+=" /FitV "+s.options.left+"]";break;case"XYZ":default:var w=n((o-s.options.top)*i);s.options.left=s.options.left||0,void 0===s.options.zoom&&(s.options.zoom=0),B+=" /XYZ "+s.options.left+" "+w+" "+s.options.zoom+"]"}""!=B&&(B+=" >>",this.internal.write(B))}}this.internal.write("]")}}]),s.createAnnotation=function(t){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":this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push(t)}},s.link=function(t,e,A,r,n){this.annotationPlugin.annotations[this.internal.getCurrentPageInfo().pageNumber].push({x:t,y:e,w:A,h:r,options:n,type:"link"})},s.textWithLink=function(t,e,A,r){var n=this.getTextWidth(t),i=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(t,e,A),A+=.2*i,this.link(e,A-i,n,i,r),n},s.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},s.getLineHeight=function(){return this.internal.getLineHeight()},function(t){function e(t){return void 0!==t&&void 0!==a[t.charCodeAt(0)]}function A(t){return void 0!==t&&0<=h.indexOf(t.charCodeAt(0))}function r(t){return void 0!==t&&0<=u.indexOf(t.charCodeAt(0))}function n(t){return e(t)&&2<=a[t.charCodeAt(0)].length}function i(t,i,o,s){return e(t)?(s=s||{},a=Object.assign(a,s),!n(t)||!e(i)&&!e(o)||!e(o)&&A(i)||A(t)&&!e(i)||A(t)&&r(i)||A(t)&&A(i)?(a=Object.assign(a,c),d):e(l=t)&&4==a[l.charCodeAt(0)].length&&e(i)&&!A(i)&&e(o)&&n(o)?(a=Object.assign(a,c),g):A(t)||!e(o)?(a=Object.assign(a,c),f):(a=Object.assign(a,c),p)):-1;var l}var o=Object.keys({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)",fa:"Persian","fa-IR":"Persian/Iran",ur:"Urdu"}),a={1569:[65152],1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1572:[65157,65158],1573:[65159,65160,65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166,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,65193],1584:[65195,65196,65195],1585:[65197,65198,65197],1586:[65199,65200,65199],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,65261],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,64394],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]},s={1570:[65269,65270,65269,65270],1571:[65271,65272,65271,65272],1573:[65273,65274,65273,65274],1575:[65275,65276,65275,65276]},c={1570:[65153,65154,65153,65154],1571:[65155,65156,65155,65156],1573:[65159,65160,65159,65160],1575:[65165,65166,65165,65166]},l={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},u=[1570,1571,1573,1575],h=[1569,1570,1571,1572,1573,1575,1577,1583,1584,1585,1586,1608,1688],d=0,f=1,p=2,g=3,B=t.processArabic=function(t,A){t=t||"",A=A||!1;var n,o,u,h="",d=0,f=0,p="",g="",B="";for(d=0;d<t.length;d+=1)p=t[d],g=t[d-1],B=t[d+1],e(p)?void 0!==g&&1604===g.charCodeAt(0)&&r(p)?(f=i(p,t[d-2],t[d+1],s),n=String.fromCharCode(s[p.charCodeAt(0)][f]),h=h.substr(0,h.length-1)+n):void 0!==g&&1617===g.charCodeAt(0)&&void 0!==(o=p)&&void 0!==l[o.charCodeAt(0)]?(f=i(p,t[d-2],t[d+1],c),n=String.fromCharCode(l[p.charCodeAt(0)][f]),h=h.substr(0,h.length-1)+n):(f=i(p,g,B,c),h+=String.fromCharCode(a[p.charCodeAt(0)][f])):h+=A?{"(":")",")":"("}[u=p]||u:p;return A?h.split("").reverse().join(""):h};t.events.push(["preProcessText",function(t){var e=t.text,A=(t.x,t.y,t.options||{}),r=(t.mutex,A.lang),n=[];if(0<=o.indexOf(r)){if("[object Array]"===Object.prototype.toString.call(e)){var i=0;for(n=[],i=0;i<e.length;i+=1)"[object Array]"===Object.prototype.toString.call(e[i])?n.push([B(e[i][0],!0),e[i][1],e[i][2]]):n.push([B(e[i],!0)]);t.text=n}else t.text=B(e,!0);void 0===A.charSpace&&(t.options.charSpace=0),!0===A.R2L&&(t.options.R2L=!1)}}])}(st.API),st.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},(l=st.API).events.push(["initialized",function(){this.canvas.pdf=this}]),l.canvas={getContext:function(t){return(this.pdf.context2d._canvas=this).pdf.context2d},childNodes:[]},Object.defineProperty(l.canvas,"width",{get:function(){return this._width},set:function(t){this._width=t,this.getContext("2d").pageWrapX=t+1}}),Object.defineProperty(l.canvas,"height",{get:function(){return this._height},set:function(t){this._height=t,this.getContext("2d").pageWrapY=t+1}}),u=st.API,g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},B=1,w=function(t,e,A,r,n){g={x:t,y:e,w:A,h:r,ln:n}},m=function(){return g},y={left:0,top:0,bottom:0},u.setHeaderFunction=function(t){p=t},u.getTextDimensions=function(t){h=this.internal.getFont().fontName,d=this.table_font_size||this.internal.getFontSize(),f=this.internal.getFont().fontStyle;var e,A,r=19.049976/25.4;(A=document.createElement("font")).id="jsPDFCell";try{A.style.fontStyle=f}catch(e){A.style.fontWeight=f}A.style.fontSize=d+"pt",A.style.fontFamily=h;try{A.textContent=t}catch(e){A.innerText=t}return document.body.appendChild(A),e={w:(A.offsetWidth+1)*r,h:(A.offsetHeight+1)*r},document.body.removeChild(A),e},u.cellAddPage=function(){var t=this.margins||y;this.addPage(),w(t.left,t.top,void 0,void 0),B+=1},u.cellInitialize=function(){g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},B=1},u.cell=function(t,e,A,r,n,i,o){var a=m(),s=!1;if(void 0!==a.ln)if(a.ln===i)t=a.x+a.w,e=a.y;else{var c=this.margins||y;a.y+a.h+r+13>=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),s=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(i,!0)),e=m().y+m().h,s&&(e=23)}if(void 0!==n[0])if(this.printingHeaderRow?this.rect(t,e,A,r,"FD"):this.rect(t,e,A,r),"right"===o){n instanceof Array||(n=[n]);for(var l=0;l<n.length;l++){var u=n[l],h=this.getStringUnitWidth(u)*this.internal.getFontSize();this.text(u,t+A-h-3,e+this.internal.getLineHeight()*(l+1))}}else this.text(n,t+3,e+this.internal.getLineHeight());return w(t,e,A,r,i),this},u.arrayMax=function(t,e){var A,r,n,i=t[0];for(A=0,r=t.length;A<r;A+=1)n=t[A],e?-1===e(i,n)&&(i=n):i<n&&(i=n);return i},u.table=function(t,e,A,r,n){if(!A)throw"No data for PDF table";var i,o,a,s,c,l,h,d,f,p,w=[],m=[],v={},Q={},C=[],U=[],b=!1,F=!0,E=12,x=y;if(x.width=this.internal.pageSize.getWidth(),n&&(!0===n.autoSize&&(b=!0),!1===n.printHeaders&&(F=!1),n.fontSize&&(E=n.fontSize),n.css&&void 0!==n.css["font-size"]&&(E=16*n.css["font-size"]),n.margins&&(x=n.margins)),this.lnMod=0,g={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},B=1,this.printHeaders=F,this.margins=x,this.setFontSize(E),this.table_font_size=E,null==r)w=Object.keys(A[0]);else if(r[0]&&"string"!=typeof r[0])for(o=0,a=r.length;o<a;o+=1)i=r[o],w.push(i.name),m.push(i.prompt),Q[i.name]=i.width*(19.049976/25.4);else w=r;if(b)for(p=function(t){return t[i]},o=0,a=w.length;o<a;o+=1){for(v[i=w[o]]=A.map(p),C.push(this.getTextDimensions(m[o]||i).w),h=0,s=(l=v[i]).length;h<s;h+=1)c=l[h],C.push(this.getTextDimensions(c).w);Q[i]=u.arrayMax(C),C=[]}if(F){var H=this.calculateLineHeight(w,Q,m.length?m:w);for(o=0,a=w.length;o<a;o+=1)i=w[o],U.push([t,e,Q[i],H,String(m.length?m[o]:i)]);this.setTableHeaderRow(U),this.printHeaderRow(1,!1)}for(o=0,a=A.length;o<a;o+=1)for(d=A[o],H=this.calculateLineHeight(w,Q,d),h=0,f=w.length;h<f;h+=1)i=w[h],this.cell(t,e,Q[i],H,d[i],o+2,i.align);return this.lastCellPos=g,this.table_x=t,this.table_y=e,this},u.calculateLineHeight=function(t,e,A){for(var r,n=0,i=0;i<t.length;i++){A[r=t[i]]=this.splitTextToSize(String(A[r]),e[r]-3);var o=this.internal.getLineHeight()*A[r].length+3;n<o&&(n=o)}return n},u.setTableHeaderRow=function(t){this.tableHeaderRow=t},u.printHeaderRow=function(t,e){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var A,r,n,i;if(this.printingHeaderRow=!0,void 0!==p){var o=p(this,B);w(o[0],o[1],o[2],o[3],-1)}this.setFontStyle("bold");var a=[];for(n=0,i=this.tableHeaderRow.length;n<i;n+=1)this.setFillColor(200,200,200),A=this.tableHeaderRow[n],e&&(this.margins.top=13,A[1]=this.margins&&this.margins.top||0,a.push(A)),r=[].concat(A),this.cell.apply(this,r.concat(t));0<a.length&&this.setTableHeaderRow(a),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(t){function e(){this._isStrokeTransparent=!1,this._strokeOpacity=1,this.strokeStyle="#000000",this.fillStyle="#000000",this._isFillTransparent=!1,this._fillOpacity=1,this.font="12pt times",this.textBaseline="alphabetic",this.textAlign="start",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this._transform=[1,0,0,1,0,0],this.globalCompositeOperation="normal",this.globalAlpha=1,this._clip_path=[],this.ignoreClearRect=!1,this.copy=function(t){this._isStrokeTransparent=t._isStrokeTransparent,this._strokeOpacity=t._strokeOpacity,this.strokeStyle=t.strokeStyle,this._isFillTransparent=t._isFillTransparent,this._fillOpacity=t._fillOpacity,this.fillStyle=t.fillStyle,this.font=t.font,this.lineWidth=t.lineWidth,this.lineJoin=t.lineJoin,this.lineCap=t.lineCap,this.textBaseline=t.textBaseline,this.textAlign=t.textAlign,this._fontSize=t._fontSize,this._transform=t._transform.slice(0),this.globalCompositeOperation=t.globalCompositeOperation,this.globalAlpha=t.globalAlpha,this._clip_path=t._clip_path.slice(0),this.ignoreClearRect=t.ignoreClearRect}}t.events.push(["initialized",function(){((this.context2d.pdf=this).context2d.internal.pdf=this).context2d.ctx=new e,this.context2d.ctxStack=[],this.context2d.path=[]}]),t.context2d={pageWrapXEnabled:!1,pageWrapYEnabled:!1,pageWrapX:9999999,pageWrapY:9999999,ctx:new e,f2:function(t){return t.toFixed(2)},fillRect:function(t,e,A,r){if(!this._isFillTransparent()){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:A,h:r});this.pdf.rect(n.x,n.y,n.w,n.h,"f")}},strokeRect:function(t,e,A,r){if(!this._isStrokeTransparent()){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:A,h:r});this.pdf.rect(n.x,n.y,n.w,n.h,"s")}},clearRect:function(t,e,A,r){if(!this.ctx.ignoreClearRect){t=this._wrapX(t),e=this._wrapY(e);var n=this._matrix_map_rect(this.ctx._transform,{x:t,y:e,w:A,h:r});this.save(),this.setFillStyle("#ffffff"),this.pdf.rect(n.x,n.y,n.w,n.h,"f"),this.restore()}},save:function(){this.ctx._fontSize=this.pdf.internal.getFontSize();var t=new e;t.copy(this.ctx),this.ctxStack.push(this.ctx),this.ctx=t},restore:function(){this.ctx=this.ctxStack.pop(),this.setFillStyle(this.ctx.fillStyle),this.setStrokeStyle(this.ctx.strokeStyle),this.setFont(this.ctx.font),this.pdf.setFontSize(this.ctx._fontSize),this.setLineCap(this.ctx.lineCap),this.setLineWidth(this.ctx.lineWidth),this.setLineJoin(this.ctx.lineJoin)},rect:function(t,e,A,r){this.moveTo(t,e),this.lineTo(t+A,e),this.lineTo(t+A,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()},beginPath:function(){this.path=[]},closePath:function(){this.path.push({type:"close"})},_getRGBA:function(t){var e,A,r,n,i=new RGBColor(t);if(!t)return{r:0,g:0,b:0,a:0,style:t};if(this.internal.rxTransparent.test(t))n=r=A=e=0;else{var o=this.internal.rxRgb.exec(t);null!=o?(e=parseInt(o[1]),A=parseInt(o[2]),r=parseInt(o[3]),n=1):null!=(o=this.internal.rxRgba.exec(t))?(e=parseInt(o[1]),A=parseInt(o[2]),r=parseInt(o[3]),n=parseFloat(o[4])):(n=1,"#"!=t.charAt(0)&&(t=i.ok?i.toHex():"#000000"),4===t.length?(e=t.substring(1,2),e+=e,A=t.substring(2,3),A+=A,r=t.substring(3,4),r+=r):(e=t.substring(1,3),A=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),A=parseInt(A,16),r=parseInt(r,16))}return{r:e,g:A,b:r,a:n,style:t}},setFillStyle:function(t){var e=this._getRGBA(t);this.ctx.fillStyle=t,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})},setStrokeStyle:function(t){var e=this._getRGBA(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))},fillText:function(t,e,A,r){if(!this._isFillTransparent()){e=this._wrapX(e),A=this._wrapY(A);var n=this._matrix_map_point(this.ctx._transform,[e,A]);e=n[0],A=n[1];var i=57.2958*this._matrix_rotation(this.ctx._transform);if(0<this.ctx._clip_path.length){var o;(o=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var a=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=a}var s=1;try{s=this._matrix_decompose(this._getTransform()).scale[0]}catch(t){console.warn(t)}if(s<.01)this.pdf.text(t,e,this._getBaseline(A),null,i);else{var c=this.pdf.internal.getFontSize();this.pdf.setFontSize(c*s),this.pdf.text(t,e,this._getBaseline(A),null,i),this.pdf.setFontSize(c)}0<this.ctx._clip_path.length&&o.push("Q")}},strokeText:function(t,e,A,r){if(!this._isStrokeTransparent()){e=this._wrapX(e),A=this._wrapY(A);var n=this._matrix_map_point(this.ctx._transform,[e,A]);e=n[0],A=n[1];var i=57.2958*this._matrix_rotation(this.ctx._transform);if(0<this.ctx._clip_path.length){var o;(o=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var a=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(null,!0),this.ctx._clip_path=this.path,this.path=a}var s=1;try{s=this._matrix_decompose(this._getTransform()).scale[0]}catch(t){console.warn(t)}if(1===s)this.pdf.text(t,e,this._getBaseline(A),{stroke:!0},i);else{var c=this.pdf.internal.getFontSize();this.pdf.setFontSize(c*s),this.pdf.text(t,e,this._getBaseline(A),{stroke:!0},i),this.pdf.setFontSize(c)}0<this.ctx._clip_path.length&&o.push("Q")}},setFont:function(t){if(this.ctx.font=t,null!=(c=/\s*(\w+)\s+(\w+)\s+(\w+)\s+([\d\.]+)(px|pt|em)\s+(.*)?/.exec(t))){var e=c[1],A=(c[2],c[3]),r=c[4],n=c[5],i=c[6];r="px"===n?Math.floor(parseFloat(r)):"em"===n?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(r)),this.pdf.setFontSize(r),"bold"===A||"700"===A?this.pdf.setFontStyle("bold"):"italic"===e?this.pdf.setFontStyle("italic"):this.pdf.setFontStyle("normal"),l="bold"===A||"700"===A?"italic"===e?"bolditalic":"bold":"italic"===e?"italic":"normal";for(var o=i.toLowerCase().split(/\s*,\s*/),a="Times",s=0;s<o.length;s++){if(void 0!==this.pdf.internal.getFont(o[s],l,{noFallback:!0,disableWarning:!0})){a=o[s];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(o[s],"bold",{noFallback:!0,disableWarning:!0}))a=o[s],l="bold";else if(void 0!==this.pdf.internal.getFont(o[s],"normal",{noFallback:!0,disableWarning:!0})){a=o[s],l="normal";break}}this.pdf.setFont(a,l)}else{var c=/\s*(\d+)(pt|px|em)\s+([\w "]+)\s*([\w "]+)?/.exec(t);if(null!=c){var l,u=c[1],h=(c[2],c[3]);(l=c[4])||(l="normal"),u="em"===n?Math.floor(parseFloat(r)*this.pdf.getFontSize()):Math.floor(parseFloat(u)),this.pdf.setFontSize(u),this.pdf.setFont(h,l)}}},setTextBaseline:function(t){this.ctx.textBaseline=t},getTextBaseline:function(){return this.ctx.textBaseline},setTextAlign:function(t){this.ctx.textAlign=t},getTextAlign:function(){return this.ctx.textAlign},setLineWidth:function(t){this.ctx.lineWidth=t,this.pdf.setLineWidth(t)},setLineCap:function(t){this.ctx.lineCap=t,this.pdf.setLineCap(t)},setLineJoin:function(t){this.ctx.lineJoin=t,this.pdf.setLineJoin(t)},moveTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var A=this._matrix_map_point(this.ctx._transform,[t,e]),r={type:"mt",x:t=A[0],y:e=A[1]};this.path.push(r)},_wrapX:function(t){return this.pageWrapXEnabled?t%this.pageWrapX:t},_wrapY:function(t){return this.pageWrapYEnabled?(this._gotoPage(this._page(t)),(t-this.lastBreak)%this.pageWrapY):t},transform:function(t,e,A,r,n,i){this.ctx._transform=this._matrix_multiply(this.ctx._transform,[t,e,A,r,n,i])},setTransform:function(t,e,A,r,n,i){this.ctx._transform=[t,e,A,r,n,i]},_getTransform:function(){return this.ctx._transform},lastBreak:0,pageBreaks:[],_page:function(t){if(this.pageWrapYEnabled){for(var e=this.lastBreak=0,A=0,r=0;r<this.pageBreaks.length;r++)if(t>=this.pageBreaks[r]){e++,0===this.lastBreak&&A++;var n=this.pageBreaks[r]-this.lastBreak;this.lastBreak=this.pageBreaks[r],A+=Math.floor(n/this.pageWrapY)}return 0===this.lastBreak&&(A+=Math.floor(t/this.pageWrapY)+1),A+e}return this.pdf.internal.getCurrentPageInfo().pageNumber},_gotoPage:function(t){},lineTo:function(t,e){t=this._wrapX(t),e=this._wrapY(e);var A=this._matrix_map_point(this.ctx._transform,[t,e]),r={type:"lt",x:t=A[0],y:e=A[1]};this.path.push(r)},bezierCurveTo:function(t,e,A,r,n,i){var o;t=this._wrapX(t),e=this._wrapY(e),A=this._wrapX(A),r=this._wrapY(r),n=this._wrapX(n),i=this._wrapY(i),n=(o=this._matrix_map_point(this.ctx._transform,[n,i]))[0],i=o[1];var a={type:"bct",x1:t=(o=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=o[1],x2:A=(o=this._matrix_map_point(this.ctx._transform,[A,r]))[0],y2:r=o[1],x:n,y:i};this.path.push(a)},quadraticCurveTo:function(t,e,A,r){var n;t=this._wrapX(t),e=this._wrapY(e),A=this._wrapX(A),r=this._wrapY(r),A=(n=this._matrix_map_point(this.ctx._transform,[A,r]))[0],r=n[1];var i={type:"qct",x1:t=(n=this._matrix_map_point(this.ctx._transform,[t,e]))[0],y1:e=n[1],x:A,y:r};this.path.push(i)},arc:function(t,e,A,r,n,i){if(t=this._wrapX(t),e=this._wrapY(e),!this._matrix_is_identity(this.ctx._transform)){var o=this._matrix_map_point(this.ctx._transform,[t,e]);t=o[0],e=o[1];var a=this._matrix_map_point(this.ctx._transform,[0,0]),s=this._matrix_map_point(this.ctx._transform,[0,A]);A=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2))}var c={type:"arc",x:t,y:e,radius:A,startAngle:r,endAngle:n,anticlockwise:i};this.path.push(c)},drawImage:function(t,e,A,r,n,i,o,a,s){void 0!==i&&(e=i,A=o,r=a,n=s),e=this._wrapX(e),A=this._wrapY(A);var c,l=this._matrix_map_rect(this.ctx._transform,{x:e,y:A,w:r,h:n}),u=(this._matrix_map_rect(this.ctx._transform,{x:i,y:o,w:a,h:s}),/data:image\/(\w+).*/i.exec(t));c=null!=u?u[1]:"png",this.pdf.addImage(t,c,l.x,l.y,l.w,l.h)},_matrix_multiply:function(t,e){var A=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=A*t[0]+r*t[2],c=n*t[0]+i*t[2],l=o*t[0]+a*t[2]+t[4];return r=A*t[1]+r*t[3],i=n*t[1]+i*t[3],a=o*t[1]+a*t[3]+t[5],[A=s,r,n=c,i,o=l,a]},_matrix_rotation:function(t){return Math.atan2(t[2],t[0])},_matrix_decompose:function(t){var e=t[0],A=t[1],r=t[2],n=t[3],i=Math.sqrt(e*e+A*A),o=(e/=i)*r+(A/=i)*n;r-=e*o,n-=A*o;var a=Math.sqrt(r*r+n*n);return o/=a,e*(n/=a)<A*(r/=a)&&(e=-e,A=-A,o=-o,i=-i),{scale:[i,0,0,a,0,0],translate:[1,0,0,1,t[4],t[5]],rotate:[e,A,-A,e,0,0],skew:[1,0,o,1,0,0]}},_matrix_map_point:function(t,e){var A=t[0],r=t[1],n=t[2],i=t[3],o=t[4],a=t[5],s=e[0],c=e[1];return[s*A+c*n+o,s*r+c*i+a]},_matrix_map_point_obj:function(t,e){var A=this._matrix_map_point(t,[e.x,e.y]);return{x:A[0],y:A[1]}},_matrix_map_rect:function(t,e){var A=this._matrix_map_point(t,[e.x,e.y]),r=this._matrix_map_point(t,[e.x+e.w,e.y+e.h]);return{x:A[0],y:A[1],w:r[0]-A[0],h:r[1]-A[1]}},_matrix_is_identity:function(t){return 1==t[0]&&0==t[1]&&0==t[2]&&1==t[3]&&0==t[4]&&0==t[5]},rotate:function(t){var e=[Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,e)},scale:function(t,e){var A=[t,0,0,e,0,0];this.ctx._transform=this._matrix_multiply(this.ctx._transform,A)},translate:function(t,e){var A=[1,0,0,1,t,e];this.ctx._transform=this._matrix_multiply(this.ctx._transform,A)},stroke:function(){if(0<this.ctx._clip_path.length){var t;(t=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var e=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._stroke(!0),this.ctx._clip_path=this.path,this.path=e,this._stroke(!1),t.push("Q")}else this._stroke(!1)},_stroke:function(t){if(t||!this._isStrokeTransparent()){for(var e=[],A=this.path,r=0;r<A.length;r++){var n=A[r];switch(n.type){case"mt":e.push({start:n,deltas:[],abs:[]});break;case"lt":var i=[n.x-A[r-1].x,n.y-A[r-1].y];e[e.length-1].deltas.push(i),e[e.length-1].abs.push(n);break;case"bct":i=[n.x1-A[r-1].x,n.y1-A[r-1].y,n.x2-A[r-1].x,n.y2-A[r-1].y,n.x-A[r-1].x,n.y-A[r-1].y],e[e.length-1].deltas.push(i);break;case"qct":var o=A[r-1].x+2/3*(n.x1-A[r-1].x),a=A[r-1].y+2/3*(n.y1-A[r-1].y),s=n.x+2/3*(n.x1-n.x),c=n.y+2/3*(n.y1-n.y),l=n.x,u=n.y;i=[o-A[r-1].x,a-A[r-1].y,s-A[r-1].x,c-A[r-1].y,l-A[r-1].x,u-A[r-1].y],e[e.length-1].deltas.push(i);break;case"arc":0==e.length&&e.push({start:{x:0,y:0},deltas:[],abs:[]}),e[e.length-1].arc=!0,Array.isArray(e[e.length-1].abs)&&e[e.length-1].abs.push(n)}}for(r=0;r<e.length;r++){var h;if(h=r==e.length-1?"s":null,e[r].arc)for(var d=e[r].abs,f=0;f<d.length;f++){var p=d[f],g=360*p.startAngle/(2*Math.PI),B=360*p.endAngle/(2*Math.PI),w=p.x,m=p.y;this.internal.arc2(this,w,m,p.radius,g,B,p.anticlockwise,h,t)}else w=e[r].start.x,m=e[r].start.y,t?(this.pdf.lines(e[r].deltas,w,m,null,null),this.pdf.clip_fixed()):this.pdf.lines(e[r].deltas,w,m,null,h)}}},_isFillTransparent:function(){return this.ctx._isFillTransparent||0==this.globalAlpha},_isStrokeTransparent:function(){return this.ctx._isStrokeTransparent||0==this.globalAlpha},fill:function(t){if(0<this.ctx._clip_path.length){var e;(e=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage()).push("q");var A=this.path;this.path=this.ctx._clip_path,this.ctx._clip_path=[],this._fill(t,!0),this.ctx._clip_path=this.path,this.path=A,this._fill(t,!1),e.push("Q")}else this._fill(t,!1)},_fill:function(t,e){if(!this._isFillTransparent()){var r,n="function"==typeof this.pdf.internal.newObject2;r=window.outIntercept?"group"===window.outIntercept.type?window.outIntercept.stream:window.outIntercept:this.internal.getCurrentPage();var i=[],o=window.outIntercept;if(n)switch(this.ctx.globalCompositeOperation){case"normal":case"source-over":break;case"destination-in":case"destination-out":var a=this.pdf.internal.newStreamObject(),s=this.pdf.internal.newObject2();s.push("<</Type /ExtGState"),s.push("/SMask <</S /Alpha /G "+a.objId+" 0 R>>"),s.push(">>");var c="MASK"+s.objId;this.pdf.internal.addGraphicsState(c,s.objId);var l="/"+c+" gs";r.splice(0,0,"q"),r.splice(1,0,l),r.push("Q"),window.outIntercept=a;break;default:var u="/"+this.pdf.internal.blendModeMap[this.ctx.globalCompositeOperation.toUpperCase()];u&&this.pdf.internal.out(u+" gs")}var h=this.ctx.globalAlpha;if(this.ctx._fillOpacity<1&&(h=this.ctx._fillOpacity),n){var d=this.pdf.internal.newObject2();d.push("<</Type /ExtGState"),d.push("/CA "+h),d.push("/ca "+h),d.push(">>"),c="GS_O_"+d.objId,this.pdf.internal.addGraphicsState(c,d.objId),this.pdf.internal.out("/"+c+" gs")}for(var f=this.path,p=0;p<f.length;p++){var g=f[p];switch(g.type){case"mt":i.push({start:g,deltas:[],abs:[]});break;case"lt":var B=[g.x-f[p-1].x,g.y-f[p-1].y];i[i.length-1].deltas.push(B),i[i.length-1].abs.push(g);break;case"bct":B=[g.x1-f[p-1].x,g.y1-f[p-1].y,g.x2-f[p-1].x,g.y2-f[p-1].y,g.x-f[p-1].x,g.y-f[p-1].y],i[i.length-1].deltas.push(B);break;case"qct":var w=f[p-1].x+2/3*(g.x1-f[p-1].x),m=f[p-1].y+2/3*(g.y1-f[p-1].y),y=g.x+2/3*(g.x1-g.x),v=g.y+2/3*(g.y1-g.y),Q=g.x,C=g.y;B=[w-f[p-1].x,m-f[p-1].y,y-f[p-1].x,v-f[p-1].y,Q-f[p-1].x,C-f[p-1].y],i[i.length-1].deltas.push(B);break;case"arc":0===i.length&&i.push({deltas:[],abs:[]}),i[i.length-1].arc=!0,Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(g);break;case"close":i.push({close:!0})}}for(p=0;p<i.length;p++){var U;if(p==i.length-1?(U="f","evenodd"===t&&(U+="*")):U=null,i[p].close)this.pdf.internal.out("h"),U&&this.pdf.internal.out(U);else if(i[p].arc){i[p].start&&this.internal.move2(this,i[p].start.x,i[p].start.y);for(var b=i[p].abs,F=0;F<b.length;F++){var E=b[F];if(void 0!==E.startAngle){var x=360*E.startAngle/(2*Math.PI),H=360*E.endAngle/(2*Math.PI),I=E.x,S=E.y;0===F&&this.internal.move2(this,I,S),this.internal.arc2(this,I,S,E.radius,x,H,E.anticlockwise,null,e),F===b.length-1&&i[p].start&&(I=i[p].start.x,S=i[p].start.y,this.internal.line2(A,I,S))}else this.internal.line2(A,E.x,E.y)}}else I=i[p].start.x,S=i[p].start.y,e?(this.pdf.lines(i[p].deltas,I,S,null,null),this.pdf.clip_fixed()):this.pdf.lines(i[p].deltas,I,S,null,U)}window.outIntercept=o}},pushMask:function(){if("function"==typeof this.pdf.internal.newObject2){var t=this.pdf.internal.newStreamObject(),e=this.pdf.internal.newObject2();e.push("<</Type /ExtGState"),e.push("/SMask <</S /Alpha /G "+t.objId+" 0 R>>"),e.push(">>");var A="MASK"+e.objId;this.pdf.internal.addGraphicsState(A,e.objId);var r="/"+A+" gs";this.pdf.internal.out(r)}else console.log("jsPDF v2 not enabled")},clip:function(){if(0<this.ctx._clip_path.length)for(var t=0;t<this.path.length;t++)this.ctx._clip_path.push(this.path[t]);else this.ctx._clip_path=this.path;this.path=[]},measureText:function(t){var e=this.pdf;return{getWidth:function(){var A=e.internal.getFontSize(),r=e.getStringUnitWidth(t)*A/e.internal.scaleFactor;return r*=1.3333},get width(){return this.getWidth(t)}}},_getBaseline:function(t){var e=parseInt(this.pdf.internal.getFontSize()),A=.25*e;switch(this.ctx.textBaseline){case"bottom":return t-A;case"top":return t+e;case"hanging":return t+e-A;case"middle":return t+e/2-A;case"ideographic":return t;case"alphabetic":default:return t}}};var A=t.context2d;Object.defineProperty(A,"fillStyle",{set:function(t){this.setFillStyle(t)},get:function(){return this.ctx.fillStyle}}),Object.defineProperty(A,"strokeStyle",{set:function(t){this.setStrokeStyle(t)},get:function(){return this.ctx.strokeStyle}}),Object.defineProperty(A,"lineWidth",{set:function(t){this.setLineWidth(t)},get:function(){return this.ctx.lineWidth}}),Object.defineProperty(A,"lineCap",{set:function(t){this.setLineCap(t)},get:function(){return this.ctx.lineCap}}),Object.defineProperty(A,"lineJoin",{set:function(t){this.setLineJoin(t)},get:function(){return this.ctx.lineJoin}}),Object.defineProperty(A,"miterLimit",{set:function(t){this.ctx.miterLimit=t},get:function(){return this.ctx.miterLimit}}),Object.defineProperty(A,"textBaseline",{set:function(t){this.setTextBaseline(t)},get:function(){return this.getTextBaseline()}}),Object.defineProperty(A,"textAlign",{set:function(t){this.setTextAlign(t)},get:function(){return this.getTextAlign()}}),Object.defineProperty(A,"font",{set:function(t){this.setFont(t)},get:function(){return this.ctx.font}}),Object.defineProperty(A,"globalCompositeOperation",{set:function(t){this.ctx.globalCompositeOperation=t},get:function(){return this.ctx.globalCompositeOperation}}),Object.defineProperty(A,"globalAlpha",{set:function(t){this.ctx.globalAlpha=t},get:function(){return this.ctx.globalAlpha}}),Object.defineProperty(A,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(A,"ignoreClearRect",{set:function(t){this.ctx.ignoreClearRect=t},get:function(){return this.ctx.ignoreClearRect}}),A.internal={},A.internal.rxRgb=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/,A.internal.rxRgba=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/,A.internal.rxTransparent=/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/,A.internal.arc=function(t,e,A,r,n,i,o,a){for(var s=this.pdf.internal.scaleFactor,c=this.pdf.internal.pageSize.getHeight(),l=this.pdf.internal.f2,u=n*(Math.PI/180),h=i*(Math.PI/180),d=this.createArc(r,u,h,o),f=0;f<d.length;f++){var p=d[f];0===f?this.pdf.internal.out([l((p.x1+e)*s),l((c-(p.y1+A))*s),"m",l((p.x2+e)*s),l((c-(p.y2+A))*s),l((p.x3+e)*s),l((c-(p.y3+A))*s),l((p.x4+e)*s),l((c-(p.y4+A))*s),"c"].join(" ")):this.pdf.internal.out([l((p.x2+e)*s),l((c-(p.y2+A))*s),l((p.x3+e)*s),l((c-(p.y3+A))*s),l((p.x4+e)*s),l((c-(p.y4+A))*s),"c"].join(" ")),t._lastPoint={x:e,y:A}}null!==a&&this.pdf.internal.out(this.pdf.internal.getStyle(a))},A.internal.arc2=function(t,e,A,r,n,i,o,a,s){var c=e,l=A;s?(this.arc(t,c,l,r,n,i,o,null),this.pdf.clip_fixed()):this.arc(t,c,l,r,n,i,o,a)},A.internal.move2=function(t,e,A){var r=this.pdf.internal.scaleFactor,n=this.pdf.internal.pageSize.getHeight(),i=this.pdf.internal.f2;this.pdf.internal.out([i(e*r),i((n-A)*r),"m"].join(" ")),t._lastPoint={x:e,y:A}},A.internal.line2=function(t,e,A){var r=this.pdf.internal.scaleFactor,n=this.pdf.internal.pageSize.getHeight(),i=this.pdf.internal.f2,o={x:e,y:A};this.pdf.internal.out([i(o.x*r),i((n-o.y)*r),"l"].join(" ")),t._lastPoint=o},A.internal.createArc=function(t,e,A,r){var n=2*Math.PI,i=Math.PI/2,o=e;for((o<n||n<o)&&(o%=n),o<0&&(o=n+o);A<e;)e-=n;var a=Math.abs(A-e);a<n&&r&&(a=n-a);for(var s=[],c=r?-1:1,l=o;1e-5<a;){var u=l+c*Math.min(a,i);s.push(this.createSmallArc(t,l,u)),a-=Math.abs(u-l),l=u}return s},A.internal.getCurrentPage=function(){return this.pdf.internal.pages[this.pdf.internal.getCurrentPageInfo().pageNumber]},A.internal.createSmallArc=function(t,e,A){var r=(A-e)/2,n=t*Math.cos(r),i=t*Math.sin(r),o=n,a=-i,s=o*o+a*a,c=s+o*n+a*i,l=4/3*(Math.sqrt(2*s*c)-c)/(o*i-a*n),u=o-l*a,h=a+l*o,d=u,f=-h,p=r+e,g=Math.cos(p),B=Math.sin(p);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:u*g-h*B,y2:u*B+h*g,x3:d*g-f*B,y3:d*B+f*g,x4:t*Math.cos(A),y4:t*Math.sin(A)}}}(st.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),function(t){var e,A,r,n,i,o,a,s,c,l,u,h,d,f,p,g,B,w,m,y;e=function(){function t(){}return function(e){return t.prototype=e,new t}}(),l=function(t){var e,A,r,n,i,o,a;for(A=0,r=t.length,e=void 0,o=n=!1;!n&&A!==r;)(e=t[A]=t[A].trimLeft())&&(n=!0),A++;for(A=r-1;r&&!o&&-1!==A;)(e=t[A]=t[A].trimRight())&&(o=!0),A--;for(i=/\s+$/g,a=!0,A=0;A!==r;)"\u2028"!=t[A]&&(e=t[A].replace(/\s+/g," "),a&&(e=e.trimLeft()),e&&(a=i.test(e)),t[A]=e),A++;return t},h=function(t){var e,A,n;for(e=void 0,A=(n=t.split(",")).shift();!e&&A;)e=r[A.trim().toLowerCase()],A=n.shift();return e},d=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=f[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])?f[t]=e/16:(e=parseFloat(t))?f[t]=e/16:(e=t.match(/([\d\.]+)(px)/),Array.isArray(e)&&3===e.length?f[t]=parseFloat(e[1])/16:f[t]=1)},c=function(t){var e,A,r,c,l;return l=t,c=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(l,null):l.currentStyle?l.currentStyle:l.style,A=void 0,(e={})["font-family"]=h((r=function(t){return t=t.replace(/-\D/g,function(t){return t.charAt(1).toUpperCase()}),c[t]})("font-family"))||"times",e["font-style"]=n[r("font-style")]||"normal",e["text-align"]=i[r("text-align")]||"left","bold"===(A=o[r("font-weight")]||"normal")&&("normal"===e["font-style"]?e["font-style"]=A:e["font-style"]=A+e["font-style"]),e["font-size"]=d(r("font-size"))||1,e["line-height"]=d(r("line-height"))||1,e.display="inline"===r("display")?"inline":"block",A="block"===e.display,e["margin-top"]=A&&d(r("margin-top"))||0,e["margin-bottom"]=A&&d(r("margin-bottom"))||0,e["padding-top"]=A&&d(r("padding-top"))||0,e["padding-bottom"]=A&&d(r("padding-bottom"))||0,e["margin-left"]=A&&d(r("margin-left"))||0,e["margin-right"]=A&&d(r("margin-right"))||0,e["padding-left"]=A&&d(r("padding-left"))||0,e["padding-right"]=A&&d(r("padding-right"))||0,e["page-break-before"]=r("page-break-before")||"auto",e.float=a[r("cssFloat")]||"none",e.clear=s[r("clear")]||"none",e.color=r("color"),e},p=function(t,e,A){var r,n,i,o,a;if(i=!1,o=n=void 0,r=A["#"+t.id])if("function"==typeof r)i=r(t,e);else for(n=0,o=r.length;!i&&n!==o;)i=r[n](t,e),n++;if(r=A[t.nodeName],!i&&r)if("function"==typeof r)i=r(t,e);else for(n=0,o=r.length;!i&&n!==o;)i=r[n](t,e),n++;for(a="string"==typeof t.className?t.className.split(" "):[],n=0;n<a.length;n++)if(r=A["."+a[n]],!i&&r)if("function"==typeof r)i=r(t,e);else for(n=0,o=r.length;!i&&n!==o;)i=r[n](t,e),n++;return i},y=function(t,e){var A,r,n,i,o,a,s,c,l;for(A=[],r=[],n=0,l=t.rows[0].cells.length,s=t.clientWidth;n<l;)c=t.rows[0].cells[n],r[n]={name:c.textContent.toLowerCase().replace(/\s+/g,""),prompt:c.textContent.replace(/\r?\n/g,""),width:c.clientWidth/s*e.pdf.internal.pageSize.getWidth()},n++;for(n=1;n<t.rows.length;){for(a=t.rows[n],o={},i=0;i<a.cells.length;)o[r[i].name]=a.cells[i].textContent.replace(/\r?\n/g,""),i++;A.push(o),n++}return{rows:A,headers:r}};var v={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},Q=1;A=function(t,r,n){var i,o,a,s,l,u,h,d;for(o=t.childNodes,i=void 0,(l="block"===(a=c(t)).display)&&(r.setBlockBoundary(),r.setBlockStyle(a)),s=0,u=o.length;s<u;){if("object"===(void 0===(i=o[s])?"undefined":at(i))){if(r.executeWatchFunctions(i),1===i.nodeType&&"HEADER"===i.nodeName){var f=i,B=r.pdf.margins_doc.top;r.pdf.internal.events.subscribe("addPage",function(t){r.y=B,A(f,r,n),r.pdf.margins_doc.top=r.y+10,r.y+=10},!1)}if(8===i.nodeType&&"#comment"===i.nodeName)~i.textContent.indexOf("ADD_PAGE")&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top);else if(1!==i.nodeType||v[i.nodeName])if(3===i.nodeType){var w=i.nodeValue;if(i.nodeValue&&"LI"===i.parentNode.nodeName)if("OL"===i.parentNode.parentNode.nodeName)w=Q+++". "+w;else{var m=a["font-size"],C=(3-.75*m)*r.pdf.internal.scaleFactor,U=.75*m*r.pdf.internal.scaleFactor,b=1.74*m/r.pdf.internal.scaleFactor;d=function(t,e){this.pdf.circle(t+C,e+U,b,"FD")}}16&i.ownerDocument.body.compareDocumentPosition(i)&&r.addText(w,a)}else"string"==typeof i&&r.addText(i,a);else{var F;if("IMG"===i.nodeName){var E=i.getAttribute("src");F=g[r.pdf.sHashCode(E)||E]}if(F){r.pdf.internal.pageSize.getHeight()-r.pdf.margins_doc.bottom<r.y+i.height&&r.y>r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(i));var x=c(i),H=r.x,I=12/r.pdf.internal.scaleFactor,S=(x["margin-left"]+x["padding-left"])*I,_=(x["margin-right"]+x["padding-right"])*I,T=(x["margin-top"]+x["padding-top"])*I,N=(x["margin-bottom"]+x["padding-bottom"])*I;void 0!==x.float&&"right"===x.float?H+=r.settings.width-i.width-_:H+=S,r.pdf.addImage(F,H,r.y+T,i.width,i.height),F=void 0,"right"===x.float||"left"===x.float?(r.watchFunctions.push(function(t,e,A,n){return r.y>=e?(r.x+=t,r.settings.width+=A,!0):!!(n&&1===n.nodeType&&!v[n.nodeName]&&r.x+n.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=t,r.y=e,r.settings.width+=A,!0)}.bind(this,"left"===x.float?-i.width-S-_:0,r.y+i.height+T+N,i.width)),r.watchFunctions.push(function(t,e,A){return!(r.y<t&&e===r.pdf.internal.getNumberOfPages())||1===A.nodeType&&"both"===c(A).clear&&(r.y=t,!0)}.bind(this,r.y+i.height,r.pdf.internal.getNumberOfPages())),r.settings.width-=i.width+S+_,"left"===x.float&&(r.x+=i.width+S+_)):r.y+=i.height+T+N}else if("TABLE"===i.nodeName)h=y(i,r),r.y+=10,r.pdf.table(r.x,r.y,h.rows,h.headers,{autoSize:!1,printHeaders:n.printHeaders,margins:r.pdf.margins_doc,css:c(i)}),r.y=r.pdf.lastCellPos.y+r.pdf.lastCellPos.h+20;else if("OL"===i.nodeName||"UL"===i.nodeName)Q=1,p(i,r,n)||A(i,r,n),r.y+=10;else if("LI"===i.nodeName){var k=r.x;r.x+=20/r.pdf.internal.scaleFactor,r.y+=3,p(i,r,n)||A(i,r,n),r.x=k}else"BR"===i.nodeName?(r.y+=a["font-size"]*r.pdf.internal.scaleFactor,r.addText("\u2028",e(a))):p(i,r,n)||A(i,r,n)}}s++}if(n.outY=r.y,l)return r.setBlockBoundary(d)},g={},B=function(t,e,A,r){function n(){e.pdf.internal.events.publish("imagesLoaded"),r(o)}function i(t,A,r){if(t){var i=new Image;o=++c,i.crossOrigin="",i.onerror=i.onload=function(){if(i.complete&&(0===i.src.indexOf("data:image/")&&(i.width=A||i.width||0,i.height=r||i.height||0),i.width+i.height)){var o=e.pdf.sHashCode(t)||t;g[o]=g[o]||i}--c||n()},i.src=t}}for(var o,a=t.getElementsByTagName("img"),s=a.length,c=0;s--;)i(a[s].getAttribute("src"),a[s].width,a[s].height);return c||n()},w=function(t,e,r){var n=t.getElementsByTagName("footer");if(0<n.length){n=n[0];var i=e.pdf.internal.write,o=e.y;e.pdf.internal.write=function(){},A(n,e,r);var a=Math.ceil(e.y-o)+5;e.y=o,e.pdf.internal.write=i,e.pdf.margins_doc.bottom+=a;for(var s=function(t){var i=void 0!==t?t.pageNumber:1,o=e.y;e.y=e.pdf.internal.pageSize.getHeight()-e.pdf.margins_doc.bottom,e.pdf.margins_doc.bottom-=a;for(var s=n.getElementsByTagName("span"),c=0;c<s.length;++c)-1<(" "+s[c].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(s[c].innerHTML=i),-1<(" "+s[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(s[c].innerHTML="###jsPDFVarTotalPages###");A(n,e,r),e.pdf.margins_doc.bottom+=a,e.y=o},c=n.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",s,!1),s(),v.FOOTER=1}},m=function(t,e,r,n,i,o){if(!e)return!1;var a,s,c,l;"string"==typeof e||e.parentNode||(e=""+e.innerHTML),"string"==typeof e&&(a=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),(s=window.frames[l]).document.open(),s.document.writeln(a),s.document.close(),e=s.document.body);var h,d=new u(t,r,n,i);return B.call(this,e,d,i.elementHandlers,function(t){w(e,d,i.elementHandlers),A(e,d,i.elementHandlers),d.pdf.internal.events.publish("htmlRenderingFinished"),h=d.dispose(),"function"==typeof o?o(h):t&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),h||{x:d.x,y:d.y}},(u=function(t,e,A,r){return this.pdf=t,this.x=e,this.y=A,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},u.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},u.prototype.executeWatchFunctions=function(t){var e=!1,A=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](t)?e=!0:A.push(this.watchFunctions[r]);this.watchFunctions=A}return e},u.prototype.splitFragmentsIntoLines=function(t,A){var r,n,i,o,a,s,c,l,u,h,d,f,p,g;for(h=this.pdf.internal.scaleFactor,o={},s=c=l=g=a=i=u=n=void 0,f=[d=[]],r=0,p=this.settings.width;t.length;)if(a=t.shift(),g=A.shift(),a)if((i=o[(n=g["font-family"])+(u=g["font-style"])])||(i=this.pdf.internal.getFont(n,u).metadata.Unicode,o[n+u]=i),l={widths:i.widths,kerning:i.kerning,fontSize:12*g["font-size"],textIndent:r},c=this.pdf.getStringUnitWidth(a,l)*l.fontSize/h,"\u2028"==a)d=[],f.push(d);else if(p<r+c){for(s=this.pdf.splitTextToSize(a,p,l),d.push([s.shift(),g]);s.length;)d=[[s.shift(),g]],f.push(d);r=this.pdf.getStringUnitWidth(d[0][0],l)*l.fontSize/h}else d.push([a,g]),r+=c;if(void 0!==g["text-align"]&&("center"===g["text-align"]||"right"===g["text-align"]||"justify"===g["text-align"]))for(var B=0;B<f.length;++B){var w=this.pdf.getStringUnitWidth(f[B][0][0],l)*l.fontSize/h;0<B&&(f[B][0][1]=e(f[B][0][1]));var m=p-w;if("right"===g["text-align"])f[B][0][1]["margin-left"]=m;else if("center"===g["text-align"])f[B][0][1]["margin-left"]=m/2;else if("justify"===g["text-align"]){var y=f[B][0][0].split(" ").length-1;f[B][0][1]["word-spacing"]=m/y,B===f.length-1&&(f[B][0][1]["word-spacing"]=0)}}return f},u.prototype.RenderTextFragment=function(t,e){var A,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")),A=this.pdf.internal.getFont(e["font-family"],e["font-style"]);var n=this.getPdfColor(e.color);n!==this.lastTextColor&&(this.pdf.internal.write(n),this.lastTextColor=n),void 0!==e["word-spacing"]&&0<e["word-spacing"]&&this.pdf.internal.write(e["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+A.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")},u.prototype.getPdfColor=function(t){var e,A,r,n=new RGBColor(t),i=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(t);if(null!=i?(e=parseInt(i[1]),A=parseInt(i[2]),r=parseInt(i[3])):("#"!=t.charAt(0)&&(t=n.ok?n.toHex():"#000000"),e=t.substring(1,3),e=parseInt(e,16),A=t.substring(3,5),A=parseInt(A,16),r=t.substring(5,7),r=parseInt(r,16)),"string"==typeof e&&/^#[0-9A-Fa-f]{6}$/.test(e)){var o=parseInt(e.substr(1),16);e=o>>16&255,A=o>>8&255,r=255&o}var a=this.f3;return 0===e&&0===A&&0===r||void 0===A?a(e/255)+" g":[a(e/255),a(A/255),a(r/255),"rg"].join(" ")},u.prototype.f3=function(t){return t.toFixed(3)},u.prototype.renderParagraph=function(t){var e,A,r,n,i,o,a,s,c,u,h,d,f;if(r=l(this.paragraph.text),d=this.paragraph.style,e=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:e},r.join("").trim()){a=this.splitFragmentsIntoLines(r,d),s=o=void 0,A=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,h=(Math.max((e["margin-top"]||0)-this.priorMarginBottom,0)+(e["padding-top"]||0))*A,u=((e["margin-bottom"]||0)+(e["padding-bottom"]||0))*A,this.priorMarginBottom=e["margin-bottom"]||0,"always"===e["page-break-before"]&&(this.pdf.addPage(),this.y=0,h=((e["margin-top"]||0)+(e["padding-top"]||0))*A),c=this.pdf.internal.write,i=n=void 0,this.y+=h,c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var p=0;a.length;){for(n=s=0,i=(o=a.shift()).length;n!==i;)o[n][0].trim()&&(s=Math.max(s,o[n][1]["line-height"],o[n][1]["font-size"]),f=7*o[n][1]["font-size"]),n++;var g=0,B=0;for(void 0!==o[0][1]["margin-left"]&&0<o[0][1]["margin-left"]&&(g=(B=this.pdf.internal.getCoordinateString(o[0][1]["margin-left"]))-p,p=B),c(g+Math.max(e["margin-left"]||0,0)*A,(-12*s).toFixed(2),"Td"),n=0,i=o.length;n!==i;)o[n][0]&&this.RenderTextFragment(o[n][0],o[n][1]),n++;if(this.y+=s*A,this.executeWatchFunctions(o[0][1])&&0<a.length){var w=[],m=[];a.forEach(function(t){for(var e=0,A=t.length;e!==A;)t[e][0]&&(w.push(t[e][0]+" "),m.push(t[e][1])),++e}),a=this.splitFragmentsIntoLines(l(w),m),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-f/2),c("ET","Q"),this.y+=u}},u.prototype.setBlockBoundary=function(t){return this.renderParagraph(t)},u.prototype.setBlockStyle=function(t){return this.paragraph.blockstyle=t},u.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"},o={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"},n={normal:"normal",italic:"italic",oblique:"italic"},i={left:"left",right:"right",center:"center",justify:"justify"},a={none:"none",right:"right",left:"left"},s={none:"none",both:"both"},f={normal:1},t.fromHTML=function(t,e,A,r,n,i){return this.margins_doc=i||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),m(this,t,isNaN(e)?4:e,isNaN(A)?4:A,r,n)}}(st.API),st.API.addJS=function(t){return C=t,this.internal.events.subscribe("postPutResources",function(t){v=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(v+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Q=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+C+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==v&&void 0!==Q&&this.internal.out("/Names <</JavaScript "+v+" 0 R>>")}),this},(U=st.API).events.push(["postPutResources",function(){var t=this,e=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var A=t.outline.render().split(/\r\n/),r=0;r<A.length;r++){var n=A[r],i=e.exec(n);if(null!=i){var o=i[1];t.internal.newObjectDeferredBegin(o)}t.internal.write(n)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,s=[];for(r=0;r<a;r++){var c=t.internal.newObject();s.push(c);var l=t.internal.getPageInfo(r+1);t.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),r=0;r<s.length;r++)t.internal.write("(page_"+(r+1)+")"+s[r]+" 0 R");t.internal.write(" ] >>","endobj"),t.internal.newObject(),t.internal.write("<< /Dests "+u+" 0 R"),t.internal.write(">>","endobj")}}]),U.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"))}]),U.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,A){var r={title:e,options:A,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var A=0;A<e.children.length;A++)this.genIds_r(e.children[A])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),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){for(var A=0;A<e.children.length;A++){var r=e.children[A];this.objStart(r),this.line("/Title "+this.makeString(r.title)),this.line("/Parent "+this.makeRef(e)),0<A&&this.line("/Prev "+this.makeRef(e.children[A-1])),A<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[A+1])),0<r.children.length&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1])));var n=this.count=this.count_r({count:0},r);if(0<n&&this.line("/Count "+n),r.options&&r.options.pageNumber){var i=t.internal.getPageInfo(r.options.pageNumber);this.line("/Dest ["+i.objId+" 0 R /XYZ 0 "+this.ctx.pdf.internal.pageSize.getHeight()*this.ctx.pdf.internal.scaleFactor+" 0]")}this.objEnd()}for(A=0;A<e.children.length;A++)r=e.children[A],this.renderItems(r)},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 A=0;A<e.children.length;A++)t.count++,this.count_r(t,e.children[A]);return t.count}}]),b=st.API,F=function(){var t="function"==typeof Deflater;if(!t)throw new Error("requires deflate.js for compression");return t},E=function(t,e,A,r){var n=5,i=T;switch(r){case b.image_compression.FAST:n=3,i=_;break;case b.image_compression.MEDIUM:n=6,i=N;break;case b.image_compression.SLOW:n=9,i=k}t=I(t,e,A,i);var o=new Uint8Array(x(n)),a=H(t),s=new Deflater(n),c=s.append(t),l=s.flush(),u=o.length+c.length+l.length,h=new Uint8Array(u+4);return h.set(o),h.set(c,o.length),h.set(l,o.length+c.length),h[u++]=a>>>24&255,h[u++]=a>>>16&255,h[u++]=a>>>8&255,h[u++]=255&a,b.arrayBufferToBinaryString(h)},x=function(t,e){var A=Math.LOG2E*Math.log(32768)-8<<4|8,r=A<<8;return r|=Math.min(3,(e-1&255)>>1)<<6,r|=0,[A,255&(r+=31-r%31)]},H=function(t,e){for(var A,r=1,n=0,i=t.length,o=0;0<i;){for(i-=A=e<i?e:i;n+=r+=t[o++],--A;);r%=65521,n%=65521}return(n<<16|r)>>>0},I=function(t,e,A,r){for(var n,i,o,a=t.length/e,s=new Uint8Array(t.length+a),c=P(),l=0;l<a;l++){if(o=l*e,n=t.subarray(o,o+e),r)s.set(r(n,A,i),o+l);else{for(var u=0,h=c.length,d=[];u<h;u++)d[u]=c[u](n,A,i);var f=D(d.concat());s.set(d[f],o+l)}i=n}return s},S=function(t,e,A){var r=Array.apply([],t);return r.unshift(0),r},_=function(t,e,A){var r,n=[],i=0,o=t.length;for(n[0]=1;i<o;i++)r=t[i-e]||0,n[i+1]=t[i]-r+256&255;return n},T=function(t,e,A){var r,n=[],i=0,o=t.length;for(n[0]=2;i<o;i++)r=A&&A[i]||0,n[i+1]=t[i]-r+256&255;return n},N=function(t,e,A){var r,n,i=[],o=0,a=t.length;for(i[0]=3;o<a;o++)r=t[o-e]||0,n=A&&A[o]||0,i[o+1]=t[o]+256-(r+n>>>1)&255;return i},k=function(t,e,A){var r,n,i,o,a=[],s=0,c=t.length;for(a[0]=4;s<c;s++)r=t[s-e]||0,n=A&&A[s]||0,i=A&&A[s-e]||0,o=O(r,n,i),a[s+1]=t[s]-o+256&255;return a},O=function(t,e,A){var r=t+e-A,n=Math.abs(r-t),i=Math.abs(r-e),o=Math.abs(r-A);return n<=i&&n<=o?t:i<=o?e:A},P=function(){return[S,_,T,N,k]},D=function(t){for(var e,A,r,n=0,i=t.length;n<i;)((e=L(t[n].slice(1)))<A||!A)&&(A=e,r=n),n++;return r},L=function(t){for(var e=0,A=t.length,r=0;e<A;)r+=Math.abs(t[e++]);return r},b.processPNG=function(t,e,A,r,n){var i,o,a,s,c,l,u=this.color_spaces.DEVICE_RGB,h=this.decode.FLATE_DECODE,d=8;if(this.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.isArrayBufferView(t)){if("function"!=typeof PNG||"function"!=typeof Et)throw new Error("PNG support requires png.js and zlib.js");if(t=(i=new PNG(t)).imgData,d=i.bits,u=i.colorSpace,s=i.colors,-1!==[4,6].indexOf(i.colorType)){if(8===i.bits)for(var f,p=(H=32==i.pixelBitlength?new Uint32Array(i.decodePixels().buffer):16==i.pixelBitlength?new Uint16Array(i.decodePixels().buffer):new Uint8Array(i.decodePixels().buffer)).length,g=new Uint8Array(p*i.colors),B=new Uint8Array(p),w=i.pixelBitlength-i.bits,m=0,y=0;m<p;m++){for(v=H[m],f=0;f<w;)g[y++]=v>>>f&255,f+=i.bits;B[m]=v>>>f&255}if(16===i.bits){p=(H=new Uint32Array(i.decodePixels().buffer)).length,g=new Uint8Array(p*(32/i.pixelBitlength)*i.colors),B=new Uint8Array(p*(32/i.pixelBitlength));for(var v,Q=1<i.colors,C=y=m=0;m<p;)v=H[m++],g[y++]=v>>>0&255,Q&&(g[y++]=v>>>16&255,v=H[m++],g[y++]=v>>>0&255),B[C++]=v>>>16&255;d=8}r!==b.image_compression.NONE&&F()?(t=E(g,i.width*i.colors,i.colors,r),l=E(B,i.width,1,r)):(t=g,l=B,h=null)}if(3===i.colorType&&(u=this.color_spaces.INDEXED,c=i.palette,i.transparency.indexed)){var U=i.transparency.indexed,x=0;for(m=0,p=U.length;m<p;++m)x+=U[m];if((x/=255)==p-1&&-1!==U.indexOf(0))a=[U.indexOf(0)];else if(x!==p){var H=i.decodePixels();for(B=new Uint8Array(H.length),m=0,p=H.length;m<p;m++)B[m]=U[H[m]];l=E(B,i.width,1)}}var I=function(t){var e;switch(r){case b.image_compression.FAST:e=11;break;case b.image_compression.MEDIUM:e=13;break;case b.image_compression.SLOW:e=14;break;default:e=12}return e}();return o=h===this.decode.FLATE_DECODE?"/Predictor "+I+" /Colors "+s+" /BitsPerComponent "+d+" /Columns "+i.width:"/Colors "+s+" /BitsPerComponent "+d+" /Columns "+i.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,i.width,i.height,u,d,h,e,A,o,a,c,l,I)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(R=st.API).processGIF89A=function(t,e,A,r,i){var a=new n(t),s=a.width,c=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:s,height:c},h=new o(100).encode(u,100);return R.processJPEG.call(this,h,e,A,r)},R.processGIF87A=R.processGIF89A,(M=st.API).processBMP=function(t,e,A,r,n){var i=new a(t,!1),s=i.width,c=i.height,l={data:i.getData(),width:s,height:c},u=new o(100).encode(l,100);return M.processJPEG.call(this,u,e,A,r)},st.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},K=st.API,z=K.getCharWidthsArray=function(t,e){var A,r,n,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,c=s.fof?s.fof:1,l=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,h=0,d=s[0]||c,f=[];for(A=0,r=t.length;A<r;A++)n=t.charCodeAt(A),"function"==typeof i.metadata.widthOfString?f.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+a*(1e3/o)||0)/1e3):f.push((s[n]||d)/c+(l[n]&&l[n][h]||0)/u),h=n;return f},q=K.getArraySum=function(t){for(var e=t.length,A=0;e;)A+=t[--e];return A},j=K.getStringUnitWidth=function(t,e){var A=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),n=e.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,A,n)/A:q(z.apply(this,arguments))},X=function(t,e,A,r){for(var n=[],i=0,o=t.length,a=0;i!==o&&a+e[i]<A;)a+=e[i],i++;n.push(t.slice(0,i));var s=i;for(a=0;i!==o;)a+e[i]>r&&(n.push(t.slice(s,i)),a=0,s=i),a+=e[i],i++;return s!==i&&n.push(t.slice(s,i)),n},V=function(t,e,A){A||(A={});var r,n,i,o,a,s,c=[],l=[c],u=A.textIndent||0,h=0,d=0,f=t.split(" "),p=z.apply(this,[" ",A])[0];if(s=-1===A.lineIndent?f[0].length+2:A.lineIndent||0){var g=Array(s).join(" "),B=[];f.map(function(t){1<(t=t.split(/\s*\n/)).length?B=B.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):B.push(t[0])}),f=B,s=j.apply(this,[g,A])}for(i=0,o=f.length;i<o;i++){var w=0;if(r=f[i],s&&"\n"==r[0]&&(r=r.substr(1),w=1),n=z.apply(this,[r,A]),e<u+h+(d=q(n))||w){if(e<d){for(a=X.apply(this,[r,n,e-(u+h),e]),c.push(a.shift()),c=[a.pop()];a.length;)l.push([a.shift()]);d=q(n.slice(r.length-(c[0]?c[0].length:0)))}else c=[r];l.push(c),u=d+s,h=p}else c.push(r),u+=h+d,h=p}if(s)var m=function(t,e){return(e?g:"")+t.join(" ")};else m=function(t){return t.join(" ")};return l.map(m)},K.splitTextToSize=function(t,e,A){var r,n=(A=A||{}).fontSize||this.internal.getFontSize(),i=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle),A="Unicode";return e.metadata[A]?{widths:e.metadata[A].widths||{0:1},kerning:e.metadata[A].kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,A);r=Array.isArray(t)?t:t.split(/\r?\n/);var o=1*this.internal.scaleFactor*e/n;i.textIndent=A.textIndent?1*A.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=A.lineIndent;var a,s,c=[];for(a=0,s=r.length;a<s;a++)c=c.concat(V.apply(this,[r[a],o,i]));return c},G=st.API,Y={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(W=function(t){for(var e="klmnopqrstuvwxyz",A={},r=0;r<e.length;r++)A[e[r]]="0123456789abcdef"[r];var n,i,o,a,s,c={},l=1,u=c,h=[],d="",f="",p=t.length-1;for(r=1;r!=p;)s=t[r],r+=1,"'"==s?i?(a=i.join(""),i=n):i=[]:i?i.push(s):"{"==s?(h.push([u,a]),u={},a=n):"}"==s?((o=h.pop())[0][o[1]]=u,a=n,u=o[0]):"-"==s?l=-1:a===n?A.hasOwnProperty(s)?(d+=A[s],a=parseInt(d,16)*l,l=1,d=""):d+=s:A.hasOwnProperty(s)?(f+=A[s],u[a]=parseInt(f,16)*l,l=1,a=n,f=""):f+=s;return c})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},J={Unicode:{Courier:Y,"Courier-Bold":Y,"Courier-BoldOblique":Y,"Courier-Oblique":Y,Helvetica:Y,"Helvetica-Bold":Y,"Helvetica-BoldOblique":Y,"Helvetica-Oblique":Y,"Times-Roman":Y,"Times-Bold":Y,"Times-BoldItalic":Y,"Times-Italic":Y}},Z={Unicode:{"Courier-Oblique":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":W("{'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":W("{'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:W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":W("{'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:W("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:W("{'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":W("{'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:W("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":W("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":W("{'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":W("{'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":W("{'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}}}")}},G.events.push(["addFont",function(t){var e,A,r,n="Unicode";(e=Z[n][t.postScriptName])&&((A=t.metadata[n]?t.metadata[n]:t.metadata[n]={}).widths=e.widths,A.kerning=e.kerning),(r=J[n][t.postScriptName])&&((A=t.metadata[n]?t.metadata[n]:t.metadata[n]={}).encoding=r).codePages&&r.codePages.length&&(t.encoding=r.codePages[0])}]),$=st,"undefined"!=typeof self&&self||void 0!==r&&r||"undefined"!=typeof window&&window||Function("return this")(),$.API.events.push(["addFont",function(t){$.API.existsFileInVFS(t.postScriptName)?(t.metadata=$.API.TTFFont.open(t.postScriptName,t.fontName,$.API.getFileFromVFS(t.postScriptName),t.encoding),t.metadata.Unicode=t.metadata.Unicode||{encoding:{},kerning:{},widths:[]}):14<t.id.slice(1)&&console.error("Font does not exist in FileInVFS, import fonts or remove declaration doc.addFont('"+t.postScriptName+"').")}]),(tt=st.API).addSvg=function(t,e,A,r,n){function i(t){for(var e=parseFloat(t[1]),A=parseFloat(t[2]),r=[],n=3,i=t.length;n<i;)"c"===t[n]?(r.push([parseFloat(t[n+1]),parseFloat(t[n+2]),parseFloat(t[n+3]),parseFloat(t[n+4]),parseFloat(t[n+5]),parseFloat(t[n+6])]),n+=7):"l"===t[n]?(r.push([parseFloat(t[n+1]),parseFloat(t[n+2])]),n+=3):n+=1;return[e,A,r]}if(void 0===e||void 0===A)throw new Error("addSVG needs values for 'x' and 'y'");var o,a,s,c,l,u,h,d,f=(c=document,d=c.createElement("iframe"),l=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(h=(u=c).createElement("style")).type="text/css",h.styleSheet?h.styleSheet.cssText=l:h.appendChild(u.createTextNode(l)),u.getElementsByTagName("head")[0].appendChild(h),d.name="childframe",d.setAttribute("width",0),d.setAttribute("height",0),d.setAttribute("frameborder","0"),d.setAttribute("scrolling","no"),d.setAttribute("seamless","seamless"),d.setAttribute("class","jsPDF_sillysvg_iframe"),c.body.appendChild(d),d),p=(o=t,(s=((a=f).contentWindow||a.contentDocument).document).write(o),s.close(),s.getElementsByTagName("svg")[0]),g=[1,1],B=parseFloat(p.getAttribute("width")),w=parseFloat(p.getAttribute("height"));B&&w&&(r&&n?g=[r/B,n/w]:r?g=[r/B,r/B]:n&&(g=[n/w,n/w]));var m,y,v,Q,C=p.childNodes;for(m=0,y=C.length;m<y;m++)(v=C[m]).tagName&&"PATH"===v.tagName.toUpperCase()&&((Q=i(v.getAttribute("d").split(" ")))[0]=Q[0]*g[0]+e,Q[1]=Q[1]*g[1]+A,this.lines.call(this,Q[2],Q[0],Q[1],g));return this},tt.addSVG=tt.addSvg,tt.addSvgAsImage=function(t,e,A,r,n,i,o,a){if(isNaN(e)||isNaN(A))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var s=document.createElement("canvas");s.width=r,s.height=n;var c=s.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,s.width,s.height),canvg(s,t,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(s.toDataURL("image/jpeg",1),e,A,r,n,o,a),this},st.API.putTotalPages=function(t){for(var e=new RegExp(t,"g"),A=1;A<=this.internal.getNumberOfPages();A++)for(var r=0;r<this.internal.pages[A].length;r++)this.internal.pages[A][r]=this.internal.pages[A][r].replace(e,this.internal.getNumberOfPages());return this},st.API.viewerPreferences=function(t,e){function A(t,e){var A,r=!1;for(A=0;A<t.length;A+=1)t[A]===e&&(r=!0);return r}var r;t=t||{},e=e||!1;var n,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(o),s=[],c=0,l=0,u=0,h=!0;if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var d=a.length;for(u=0;u<d;u+=1)r[a[u]].value=r[a[u]].defaultValue,r[a[u]].explicitSet=!1}if("object"===(void 0===t?"undefined":at(t)))for(n in t)if(i=t[n],A(a,n)&&void 0!==i){if("boolean"===r[n].type&&"boolean"==typeof i)r[n].value=i;else if("name"===r[n].type&&A(r[n].valueSet,i))r[n].value=i;else if("integer"===r[n].type&&Number.isInteger(i))r[n].value=i;else if("array"===r[n].type){for(c=0;c<i.length;c+=1)if(h=!0,1===i[c].length&&"number"==typeof i[c][0])s.push(String(i[c]));else if(1<i[c].length){for(l=0;l<i[c].length;l+=1)"number"!=typeof i[c][l]&&(h=!1);!0===h&&s.push(String(i[c].join("-")))}r[n].value=String(s)}else r[n].value=r[n].defaultValue;r[n].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in r)!0===r[t].explicitSet&&("name"===r[t].type?e.push("/"+t+" /"+r[t].value):e.push("/"+t+" "+r[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},et=st.API,nt=rt=At="",et.addMetadata=function(t,e){return rt=e||"http://jspdf.default.namespaceuri/",At=t,this.internal.events.subscribe("postPutResources",function(){if(At){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+rt+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),A=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(At)),n=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),i=unescape(encodeURIComponent("</x:xmpmeta>")),o=A.length+r.length+n.length+e.length+i.length;nt=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+A+r+n+i),this.internal.write("endstream"),this.internal.write("endobj")}else nt=""}),this.internal.events.subscribe("putCatalog",function(){nt&&this.internal.write("/Metadata "+nt+" 0 R")}),this},function(t,e){var A=t.API,r=[0];A.events.push(["putFont",function(e){!function(e,A,n){if(e.metadata instanceof t.API.TTFFont&&"Identity-H"===e.encoding){for(var i=e.metadata.Unicode.widths,o=e.metadata.subset.encode(r),a="",s=0;s<o.length;s++)a+=String.fromCharCode(o[s]);var c=n();A("<<"),A("/Length "+a.length),A("/Length1 "+a.length),A(">>"),A("stream"),A(a),A("endstream"),A("endobj");var l=n();A("<<"),A("/Type /FontDescriptor"),A("/FontName /"+e.fontName),A("/FontFile2 "+c+" 0 R"),A("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),A("/Flags "+e.metadata.flags),A("/StemV "+e.metadata.stemV),A("/ItalicAngle "+e.metadata.italicAngle),A("/Ascent "+e.metadata.ascender),A("/Descent "+e.metadata.decender),A("/CapHeight "+e.metadata.capHeight),A(">>"),A("endobj");var u=n();A("<<"),A("/Type /Font"),A("/BaseFont /"+e.fontName),A("/FontDescriptor "+l+" 0 R"),A("/W "+t.API.PDFObject.convert(i)),A("/CIDToGIDMap /Identity"),A("/DW 1000"),A("/Subtype /CIDFontType2"),A("/CIDSystemInfo"),A("<<"),A("/Supplement 0"),A("/Registry (Adobe)"),A("/Ordering ("+e.encoding+")"),A(">>"),A(">>"),A("endobj"),e.objectNumber=n(),A("<<"),A("/Type /Font"),A("/Subtype /Type0"),A("/BaseFont /"+e.fontName),A("/Encoding /"+e.encoding),A("/DescendantFonts ["+u+" 0 R]"),A(">>"),A("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject)}]),A.events.push(["putFont",function(e){!function(e,A,r){if(e.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===e.encoding){e.metadata.Unicode.widths;for(var n=e.metadata.rawData,i="",o=0;o<n.length;o++)i+=String.fromCharCode(n[o]);var a=r();A("<<"),A("/Length "+i.length),A("/Length1 "+i.length),A(">>"),A("stream"),A(i),A("endstream"),A("endobj");var s=r();for(A("<<"),A("/Descent "+e.metadata.decender),A("/CapHeight "+e.metadata.capHeight),A("/StemV "+e.metadata.stemV),A("/Type /FontDescriptor"),A("/FontFile2 "+a+" 0 R"),A("/Flags 96"),A("/FontBBox "+t.API.PDFObject.convert(e.metadata.bbox)),A("/FontName /"+e.fontName),A("/ItalicAngle "+e.metadata.italicAngle),A("/Ascent "+e.metadata.ascender),A(">>"),A("endobj"),e.objectNumber=r(),o=0;o<e.metadata.hmtx.widths.length;o++)e.metadata.hmtx.widths[o]=parseInt(e.metadata.hmtx.widths[o]*(1e3/e.metadata.head.unitsPerEm));A("<</Subtype/TrueType/Type/Font/BaseFont/"+e.fontName+"/FontDescriptor "+s+" 0 R/Encoding/"+e.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(e.metadata.hmtx.widths)+">>"),A("endobj"),e.isAlreadyPutted=!0}}(e.font,e.out,e.newObject)}]);var n=function(t){var e,A,n=t.text||"",i=t.x,o=t.y,a=t.options||{},s=t.mutex||{},c=s.pdfEscape,l=s.activeFontKey,u=s.fonts,h=(s.activeFontSize,""),d=0,f="",p=u[A=l].encoding;if("Identity-H"!==u[A].encoding)return{text:n,x:i,y:o,options:a,mutex:s};for(f=n,A=l,"[object Array]"===Object.prototype.toString.call(n)&&(f=n[0]),d=0;d<f.length;d+=1)u[A].metadata.hasOwnProperty("cmap")&&(e=u[A].metadata.cmap.unicode.codeMap[f[d].charCodeAt(0)]),e?h+=f[d]:f[d].charCodeAt(0)<256&&u[A].metadata.hasOwnProperty("Unicode")?h+=f[d]:h+="";var g="";return parseInt(A.slice(1))<14||"WinAnsiEncoding"===p?g=function(t){for(var e="",A=0;A<t.length;A++)e+=""+t.charCodeAt(A).toString(16);return e}(c(h,A)):"Identity-H"===p&&(g=function(t,e){for(var A,n=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],a=0,s=t.length;a<s;++a){if(A=e.metadata.characterToGlyph(t.charCodeAt(a)),r.push(A),-1==n.indexOf(A)&&(n.push(A),n.push([parseInt(e.metadata.widthOfGlyph(A),10)])),"0"==A)return o.join("");A=A.toString(16),o.push(i[4-A.length],A)}return o.join("")}(h,u[A])),s.isHex=!0,{text:g,x:i,y:o,options:a,mutex:s}};A.events.push(["postProcessText",function(t){var e=t.text||"",A=t.x,r=t.y,i=t.options,o=t.mutex,a=(i.lang,[]),s={text:e,x:A,y:r,options:i,mutex:o};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?a.push([n(Object.assign({},s,{text:e[c][0]})).text,e[c][1],e[c][2]]):a.push(n(Object.assign({},s,{text:e[c]})).text);t.text=a}else t.text=n(Object.assign({},s,{text:e})).text}])}(st,"undefined"!=typeof self&&self||void 0!==r&&r||"undefined"!=typeof window&&window||Function("return this")()),it=st.API,ot={},it.existsFileInVFS=function(t){return ot.hasOwnProperty(t)},it.addFileToVFS=function(t,e){return ot[t]=e,this},it.getFileFromVFS=function(t){return ot.hasOwnProperty(t)?ot[t]:null},function(t){if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},A=function(){this.data=[]},r=function(t,e,A){this.data=t,this.size=t.length,this.type=e,this.encoding=A},n=A.prototype,i=r.prototype,o=t.FileReaderSync,a=function(t){this.code=this[this.name=t]},s="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=s.length,l=t.URL||t.webkitURL||t,u=l.createObjectURL,h=l.revokeObjectURL,d=l,f=t.btoa,p=t.atob,g=t.ArrayBuffer,B=t.Uint8Array,w=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=i.fake=!0;c--;)a.prototype[s[c]]=c+1;return l.createObjectURL||(d=t.URL=function(t){var e,A=document.createElementNS("http://www.w3.org/1999/xhtml","a");return A.href=t,"origin"in A||("data:"===A.protocol.toLowerCase()?A.origin=null:(e=t.match(w),A.origin=e&&e[1])),A}),d.createObjectURL=function(t){var e,A=t.type;return null===A&&(A="application/octet-stream"),t instanceof r?(e="data:"+A,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):f?e+";base64,"+f(t.data):e+","+encodeURIComponent(t.data)):u?u.call(l,t):void 0},d.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&h&&h.call(l,t)},n.append=function(t){var A=this.data;if(B&&(t instanceof g||t instanceof B)){for(var n="",i=new B(t),s=0,c=i.length;s<c;s++)n+=String.fromCharCode(i[s]);A.push(n)}else if("Blob"===e(t)||"File"===e(t)){if(!o)throw new a("NOT_READABLE_ERR");var l=new o;A.push(l.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&p?A.push(p(t.data)):"URI"===t.encoding?A.push(decodeURIComponent(t.data)):"raw"===t.encoding&&A.push(t.data):("string"!=typeof t&&(t+=""),A.push(unescape(encodeURIComponent(t))))},n.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},n.toString=function(){return"[object BlobBuilder]"},i.slice=function(t,e,A){var n=arguments.length;return n<3&&(A=null),new r(this.data.slice(t,1<n?e:this.data.length),A,this.encoding)},i.toString=function(){return"[object Blob]"},i.close=function(){this.size=0,delete this.data},A}(t);t.Blob=function(t,A){var r=A&&A.type||"",n=new e;if(t)for(var i=0,o=t.length;i<o;i++)Uint8Array&&t[i]instanceof Uint8Array?n.append(t[i].buffer):n.append(t[i]);var a=n.getBlob(r);return!a.slice&&a.webkitSlice&&(a.slice=a.webkitSlice),a};var A=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=A(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||window.content||window);var ct,lt,ut,ht,dt,ft,pt,gt,Bt,wt,mt,yt,vt,Qt,Ct,Ut,bt=bt||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=function(){return t.URL||t.webkitURL||t},A=t.document.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in A,n=/constructor/i.test(t.HTMLElement)||t.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent),o=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},a=function(t){setTimeout(function(){"string"==typeof t?e().revokeObjectURL(t):t.remove()},4e4)},s=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},c=function(c,l,u){u||(c=s(c));var h,d=this,f="application/octet-stream"===c.type,p=function(){!function(t,e,A){for(var r=(e=[].concat(e)).length;r--;){var n=t["on"+e[r]];if("function"==typeof n)try{n.call(t,t)}catch(t){o(t)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return h=e().createObjectURL(c),void setTimeout(function(){var t,e;A.href=h,A.download=l,t=A,e=new MouseEvent("click"),t.dispatchEvent(e),p(),a(h),d.readyState=d.DONE});!function(){if((i||f&&n)&&t.FileReader){var A=new FileReader;return A.onloadend=function(){var e=i?A.result:A.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,d.readyState=d.DONE,p()},A.readAsDataURL(c),d.readyState=d.INIT}h||(h=e().createObjectURL(c)),f?t.location.href=h:t.open(h,"_blank")||(t.location.href=h),d.readyState=d.DONE,p(),a(h)}()},l=c.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,A){return e=e||t.name||"download",A||(t=s(t)),navigator.msSaveOrOpenBlob(t,e)}:(l.abort=function(){},l.readyState=l.INIT=0,l.WRITING=1,l.DONE=2,l.error=l.onwritestart=l.onprogress=l.onwrite=l.onabort=l.onerror=l.onwriteend=null,function(t,e,A){return new c(t,e||t.name||"download",A)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||window.content);!!e.exports&&(e.exports.saveAs=bt),st.API.adler32cs=(ft="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,pt=null,gt=function(){if(!ft)return function(){return!1};try{var t={};"function"==typeof t.Buffer&&(pt=t.Buffer)}catch(t){}return function(t){return t instanceof ArrayBuffer||null!==pt&&t instanceof pt}}(),Bt=null!==pt?function(t){return new pt(t,"utf8").toString("binary")}:function(t){return unescape(encodeURIComponent(t))},wt=65521,mt=function(t,e){for(var A=65535&t,r=t>>>16,n=0,i=e.length;n<i;n++)A=(A+(255&e.charCodeAt(n)))%wt,r=(r+A)%wt;return(r<<16|A)>>>0},yt=function(t,e){for(var A=65535&t,r=t>>>16,n=0,i=e.length;n<i;n++)A=(A+e[n])%wt,r=(r+A)%wt;return(r<<16|A)>>>0},Qt=(vt={}).Adler32=(((dt=(ht=function(t){if(!(this instanceof ht))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=ht).from=((ct=function(t){if(!(this instanceof ht))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=mt(1,t.toString())}).prototype=dt,ct),ht.fromUtf8=((lt=function(t){if(!(this instanceof ht))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=Bt(t.toString());this.checksum=mt(1,e)}).prototype=dt,lt),ft&&(ht.fromBuffer=((ut=function(t){if(!(this instanceof ht))throw new TypeError("Constructor cannot called be as a function.");if(!gt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=yt(1,e)}).prototype=dt,ut)),dt.update=function(t){if(null==t)throw new Error("First argument needs to be a string.");return t=t.toString(),this.checksum=mt(this.checksum,t)},dt.updateUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=Bt(t.toString());return this.checksum=mt(this.checksum,e)},ft&&(dt.updateBuffer=function(t){if(!gt(t))throw new Error("First argument needs to be ArrayBuffer.");var e=new Uint8Array(t);return this.checksum=yt(this.checksum,e)}),dt.clone=function(){return new Qt(this.checksum)},ht),vt.from=function(t){if(null==t)throw new Error("First argument needs to be a string.");return mt(1,t.toString())},vt.fromUtf8=function(t){if(null==t)throw new Error("First argument needs to be a string.");var e=Bt(t.toString());return mt(1,e)},ft&&(vt.fromBuffer=function(t){if(!gt(t))throw new Error("First argument need to be ArrayBuffer.");var e=new Uint8Array(t);return yt(1,e)}),vt);try{A.GifWriter=function(t,e,A,r){function n(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}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||A<=0||65535<e||65535<A)throw"Width/Height invalid.";t[i++]=71,t[i++]=73,t[i++]=70,t[i++]=56,t[i++]=57,t[i++]=97;var s=0,c=0;if(null!==a){for(var l=n(a);l>>=1;)++s;if(l=1<<s,--s,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&A,t[i++]=A>>8&255,t[i++]=(null!==a?128:0)|s,t[i++]=c,t[i++]=0,null!==a)for(var u=0,h=a.length;u<h;++u){var d=a[u];t[i++]=d>>16&255,t[i++]=d>>8&255,t[i++]=255&d}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 f=!1;this.addFrame=function(e,A,r,o,s,c){if(!0===f&&(--i,f=!1),c=void 0===c?{}:c,e<0||A<0||65535<e||65535<A)throw"x/y invalid.";if(r<=0||o<=0||65535<r||65535<o)throw"Width/Height invalid.";if(s.length<r*o)throw"Not enough pixels for the frame size.";var l=!0,u=c.palette;if(null==u&&(l=!1,u=a),null==u)throw"Must supply either a local or global palette.";for(var h=n(u),d=0;h>>=1;)++d;h=1<<d;var p=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 B=!1,w=0;if(void 0!==c.transparent&&null!==c.transparent&&(B=!0,(w=c.transparent)<0||h<=w))throw"Transparent color index.";if((0!==g||B||0!==p)&&(t[i++]=33,t[i++]=249,t[i++]=4,t[i++]=g<<2|(!0===B?1:0),t[i++]=255&p,t[i++]=p>>8&255,t[i++]=w,t[i++]=0),t[i++]=44,t[i++]=255&e,t[i++]=e>>8&255,t[i++]=255&A,t[i++]=A>>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|d-1:0,!0===l)for(var m=0,y=u.length;m<y;++m){var v=u[m];t[i++]=v>>16&255,t[i++]=v>>8&255,t[i++]=255&v}i=function(t,e,A,r){function n(A){for(;A<=h;)t[e++]=255&d,d>>=8,h-=8,e===o+256&&(t[o]=255,o=e++)}function i(t){d|=t<<h,h+=u,n(8)}t[e++]=A;var o=e++,a=1<<A,s=a-1,c=a+1,l=c+1,u=A+1,h=0,d=0,f=r[0]&s,p={};i(a);for(var g=1,B=r.length;g<B;++g){var w=r[g]&s,m=f<<8|w,y=p[m];if(void 0===y){for(d|=f<<h,h+=u;8<=h;)t[e++]=255&d,d>>=8,h-=8,e===o+256&&(t[o]=255,o=e++);4096===l?(i(a),l=c+1,u=A+1,p={}):(1<<u<=l&&++u,p[m]=l++),f=w}else f=y}return i(f),i(c),n(1),o+1===e?t[o]=0:(t[o]=e-o-1,t[e++]=0),e}(t,i,d<2?2:d,s)},this.end=function(){return!1===f&&(t[i++]=59,f=!0),i}},A.GifReader=n}catch(s){}try{e.exports=o}catch(s){}a.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var A=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:n,green:r,blue:A,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},a.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)}},a.prototype.bit1=function(){var t=Math.ceil(this.width/8),e=t%4,A=0<=this.height?this.height-1:-this.height;for(A=this.height-1;0<=A;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++)for(var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*n*4,a=0;a<8&&8*n+a<this.width;a++){var s=this.palette[i>>7-a&1];this.data[o+4*a]=s.blue,this.data[o+4*a+1]=s.green,this.data[o+4*a+2]=s.red,this.data[o+4*a+3]=255}0!=e&&(this.pos+=4-e)}},a.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,A=this.height-1;0<=A;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<t;n++){var i=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*n*4,a=i>>4,s=15&i,c=this.palette[a];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*n+1>=this.width)break;c=this.palette[s],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}0!=e&&(this.pos+=4-e)}},a.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;0<=e;e--){for(var A=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=A*this.width*4+4*r;if(n<this.palette.length){var o=this.palette[n];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}0!=t&&(this.pos+=4-t)}},a.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),A=this.height-1;0<=A;A--){for(var r=this.bottom_up?A:this.height-1-A,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&e)/e*255|0,a=(i>>5&e)/e*255|0,s=(i>>10&e)/e*255|0,c=i>>15?255:0,l=r*this.width*4+4*n;this.data[l]=s,this.data[l+1]=a,this.data[l+2]=o,this.data[l+3]=c}this.pos+=t}},a.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),A=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(o&e)/e*255|0,s=(o>>5&A)/A*255|0,c=(o>>11)/e*255|0,l=n*this.width*4+4*i;this.data[l]=c,this.data[l+1]=s,this.data[l+2]=a,this.data[l+3]=255}this.pos+=t}},a.prototype.bit24=function(){for(var t=this.height-1;0<=t;t--){for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*A;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},a.prototype.bit32=function(){for(var t=this.height-1;0<=t;t--)for(var e=this.bottom_up?t:this.height-1-t,A=0;A<this.width;A++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*A;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=o}},a.prototype.getData=function(){return this.data};try{e.exports=function(t){var e=new a(t);return{data:e.getData(),width:e.width,height:e.height}}}catch(s){}!function(t){function e(){function t(t,e){for(var A=0;A|=1&t,t>>>=1,A<<=1,0<--e;);return A>>>1}var e=this;e.build_tree=function(A){var r,n,i,o=e.dyn_tree,c=e.stat_desc.static_tree,l=e.stat_desc.elems,u=-1;for(A.heap_len=0,A.heap_max=s,r=0;r<l;r++)0!==o[2*r]?(A.heap[++A.heap_len]=u=r,A.depth[r]=0):o[2*r+1]=0;for(;A.heap_len<2;)o[2*(i=A.heap[++A.heap_len]=u<2?++u:0)]=1,A.depth[i]=0,A.opt_len--,c&&(A.static_len-=c[2*i+1]);for(e.max_code=u,r=Math.floor(A.heap_len/2);1<=r;r--)A.pqdownheap(o,r);for(i=l;r=A.heap[1],A.heap[1]=A.heap[A.heap_len--],A.pqdownheap(o,1),n=A.heap[1],A.heap[--A.heap_max]=r,A.heap[--A.heap_max]=n,o[2*i]=o[2*r]+o[2*n],A.depth[i]=Math.max(A.depth[r],A.depth[n])+1,o[2*r+1]=o[2*n+1]=i,A.heap[1]=i++,A.pqdownheap(o,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(t){var A,r,n,i,o,c,l=e.dyn_tree,u=e.stat_desc.static_tree,h=e.stat_desc.extra_bits,d=e.stat_desc.extra_base,f=e.stat_desc.max_length,p=0;for(i=0;i<=a;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,A=t.heap_max+1;A<s;A++)f<(i=l[2*l[2*(r=t.heap[A])+1]+1]+1)&&(i=f,p++),l[2*r+1]=i,r>e.max_code||(t.bl_count[i]++,o=0,d<=r&&(o=h[r-d]),c=l[2*r],t.opt_len+=c*(i+o),u&&(t.static_len+=c*(u[2*r+1]+o)));if(0!==p){do{for(i=f-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[f]--,p-=2}while(0<p);for(i=f;0!==i;i--)for(r=t.bl_count[i];0!==r;)(n=t.heap[--A])>e.max_code||(l[2*n+1]!=i&&(t.opt_len+=(i-l[2*n+1])*l[2*n],l[2*n+1]=i),r--)}}(A),function(e,A,r){var n,i,o,s=[],c=0;for(n=1;n<=a;n++)s[n]=c=c+r[n-1]<<1;for(i=0;i<=A;i++)0!==(o=e[2*i+1])&&(e[2*i]=t(s[o]++,o))}(o,e.max_code,A.bl_count)}}function A(t,e,A,r,n){var i=this;i.static_tree=t,i.extra_bits=e,i.extra_base=A,i.elems=r,i.max_length=n}function r(t,e,A,r,n){var i=this;i.good_length=t,i.max_lazy=e,i.nice_length=A,i.max_chain=r,i.func=n}function n(t,e,A,r){var n=t[2*e],i=t[2*A];return n<i||n==i&&r[e]<=r[A]}function i(){function t(){var t;for(t=0;t<286;t++)Z[2*t]=0;for(t=0;t<30;t++)$[2*t]=0;for(t=0;t<19;t++)tt[2*t]=0;Z[512]=1,ct.opt_len=ct.static_len=0,rt=it=0}function r(t,e){var A,r,n=-1,i=t[1],o=0,a=7,s=4;for(0===i&&(a=138,s=3),t[2*(e+1)+1]=65535,A=0;A<=e;A++)r=i,i=t[2*(A+1)+1],++o<a&&r==i||(o<s?tt[2*r]+=o:0!==r?(r!=n&&tt[2*r]++,tt[32]++):o<=10?tt[34]++:tt[36]++,n=r,(o=0)===i?(a=138,s=3):r==i?(a=6,s=3):(a=7,s=4))}function i(t){ct.pending_buf[ct.pending++]=t}function o(t){i(255&t),i(t>>>8&255)}function a(t,e){var A,r=e;16-r<st?(o(at|=(A=t)<<st&65535),at=A>>>16-st,st+=r-16):(at|=t<<st&65535,st+=r)}function s(t,e){var A=2*t;a(65535&e[A],65535&e[A+1])}function c(t,e){var A,r,n=-1,i=t[1],o=0,c=7,l=4;for(0===i&&(c=138,l=3),A=0;A<=e;A++)if(r=i,i=t[2*(A+1)+1],!(++o<c&&r==i)){if(o<l)for(;s(r,tt),0!=--o;);else 0!==r?(r!=n&&(s(r,tt),o--),s(16,tt),a(o-3,2)):o<=10?(s(17,tt),a(o-3,3)):(s(18,tt),a(o-11,7));n=r,(o=0)===i?(c=138,l=3):r==i?(c=6,l=3):(c=7,l=4)}}function d(){16==st?(o(at),st=at=0):8<=st&&(i(255&at),at>>>=8,st-=8)}function f(t,A){var r,n,i;if(ct.pending_buf[nt+2*rt]=t>>>8&255,ct.pending_buf[nt+2*rt+1]=255&t,ct.pending_buf[et+rt]=255&A,rt++,0===t?Z[2*A]++:(it++,t--,Z[2*(e._length_code[A]+256+1)]++,$[2*e.d_code(t)]++),0==(8191&rt)&&2<G){for(r=8*rt,n=K-D,i=0;i<30;i++)r+=$[2*i]*(5+e.extra_dbits[i]);if(r>>>=3,it<Math.floor(rt/2)&&r<Math.floor(n/2))return!0}return rt==At-1}function p(t,A){var r,n,i,o,c=0;if(0!==rt)for(;r=ct.pending_buf[nt+2*c]<<8&65280|255&ct.pending_buf[nt+2*c+1],n=255&ct.pending_buf[et+c],c++,0===r?s(n,t):(s((i=e._length_code[n])+256+1,t),0!==(o=e.extra_lbits[i])&&a(n-=e.base_length[i],o),s(i=e.d_code(--r),A),0!==(o=e.extra_dbits[i])&&a(r-=e.base_dist[i],o)),c<rt;);s(256,t),ot=t[513]}function g(){8<st?o(at):0<st&&i(255&at),st=at=0}function B(t,e,A){var r,n;a(0+(A?1:0),3),r=t,n=e,g(),ot=8,o(n),o(~n),ct.pending_buf.set(H.subarray(r,r+n),ct.pending),ct.pending+=n}function w(n){(function(n,i,o){var s,l,u=0;0<G?(lt.build_tree(ct),ut.build_tree(ct),u=function(){var t;for(r(Z,lt.max_code),r($,ut.max_code),ht.build_tree(ct),t=18;3<=t&&0===tt[2*e.bl_order[t]+1];t--);return ct.opt_len+=3*(t+1)+5+5+4,t}(),s=ct.opt_len+3+7>>>3,(l=ct.static_len+3+7>>>3)<=s&&(s=l)):s=l=i+5,i+4<=s&&-1!=n?B(n,i,o):l==s?(a(2+(o?1:0),3),p(A.static_ltree,A.static_dtree)):(a(4+(o?1:0),3),function(t,A,r){var n;for(a(t-257,5),a(A-1,5),a(r-4,4),n=0;n<r;n++)a(tt[2*e.bl_order[n]+1],3);c(Z,t-1),c($,A-1)}(lt.max_code+1,ut.max_code+1,u+1),p(Z,$)),t(),o&&g()})(0<=D?D:-1,K-D,n),D=K,Q.flush_pending()}function m(){var t,e,A,r;do{if(0==(r=I-q-K)&&0===K&&0===q)r=F;else if(-1==r)r--;else if(F+F-h<=K){for(H.set(H.subarray(F,F+F),0),z-=F,K-=F,D-=F,A=t=N;e=65535&_[--A],_[A]=F<=e?e-F:0,0!=--t;);for(A=t=F;e=65535&S[--A],S[A]=F<=e?e-F:0,0!=--t;);r+=F}if(0===Q.avail_in)return;t=Q.read_buf(H,K+q,r),3<=(q+=t)&&(T=((T=255&H[K])<<P^255&H[K+1])&O)}while(q<h&&0!==Q.avail_in)}function y(t){var e,A,r=X,n=K,i=j,o=F-h<K?K-(F-h):0,a=J,s=x,c=K+258,l=H[n+i-1],u=H[n+i];Y<=j&&(r>>=2),q<a&&(a=q);do{if(H[(e=t)+i]==u&&H[e+i-1]==l&&H[e]==H[n]&&H[++e]==H[n+1]){n+=2,e++;do{}while(H[++n]==H[++e]&&H[++n]==H[++e]&&H[++n]==H[++e]&&H[++n]==H[++e]&&H[++n]==H[++e]&&H[++n]==H[++e]&&H[++n]==H[++e]&&H[++n]==H[++e]&&n<c);if(A=258-(c-n),n=c-258,i<A){if(z=t,a<=(i=A))break;l=H[n+i-1],u=H[n+i]}}}while((t=65535&S[t&s])>o&&0!=--r);return i<=q?i:q}function v(e){return e.total_in=e.total_out=0,e.msg=null,ct.pending=0,ct.pending_out=0,C=113,b=0,lt.dyn_tree=Z,lt.stat_desc=A.static_l_desc,ut.dyn_tree=$,ut.stat_desc=A.static_d_desc,ht.dyn_tree=tt,ht.stat_desc=A.static_bl_desc,st=at=0,ot=8,t(),function(){var t;for(I=2*F,t=_[N-1]=0;t<N-1;t++)_[t]=0;V=l[G].max_lazy,Y=l[G].good_length,J=l[G].nice_length,X=l[G].max_chain,L=j=2,T=M=q=D=K=0}(),0}var Q,C,U,b,F,E,x,H,I,S,_,T,N,k,O,P,D,L,R,M,K,z,q,j,X,V,G,W,Y,J,Z,$,tt,et,At,rt,nt,it,ot,at,st,ct=this,lt=new e,ut=new e,ht=new e;ct.depth=[],ct.bl_count=[],ct.heap=[],Z=[],$=[],tt=[],ct.pqdownheap=function(t,e){for(var A=ct.heap,r=A[e],i=e<<1;i<=ct.heap_len&&(i<ct.heap_len&&n(t,A[i+1],A[i],ct.depth)&&i++,!n(t,r,A[i],ct.depth));)A[e]=A[i],e=i,i<<=1;A[e]=r},ct.deflateInit=function(t,e,A,r,n,i){return r||(r=8),n||(n=8),i||(i=0),t.msg=null,-1==e&&(e=6),n<1||9<n||8!=r||A<9||15<A||e<0||9<e||i<0||2<i?-2:(t.dstate=ct,x=(F=1<<(E=A))-1,O=(N=1<<(k=n+7))-1,P=Math.floor((k+3-1)/3),H=new Uint8Array(2*F),S=[],_=[],At=1<<n+6,ct.pending_buf=new Uint8Array(4*At),U=4*At,nt=Math.floor(At/2),et=3*At,G=e,W=i,v(t))},ct.deflateEnd=function(){return 42!=C&&113!=C&&666!=C?-2:(ct.pending_buf=null,H=S=_=null,ct.dstate=null,113==C?-3:0)},ct.deflateParams=function(t,e,A){var r=0;return-1==e&&(e=6),e<0||9<e||A<0||2<A?-2:(l[G].func!=l[e].func&&0!==t.total_in&&(r=t.deflate(1)),G!=e&&(V=l[G=e].max_lazy,Y=l[G].good_length,J=l[G].nice_length,X=l[G].max_chain),W=A,r)},ct.deflateSetDictionary=function(t,e,A){var r,n=A,i=0;if(!e||42!=C)return-2;if(n<3)return 0;for(F-h<n&&(i=A-(n=F-h)),H.set(e.subarray(i,i+n),0),D=K=n,T=((T=255&H[0])<<P^255&H[1])&O,r=0;r<=n-3;r++)T=(T<<P^255&H[r+2])&O,S[r&x]=_[T],_[T]=r;return 0},ct.deflate=function(t,e){var r,n,o,c,p,g;if(4<e||e<0)return-2;if(!t.next_out||!t.next_in&&0!==t.avail_in||666==C&&4!=e)return t.msg=u[4],-2;if(0===t.avail_out)return t.msg=u[7],-5;if(Q=t,c=b,b=e,42==C&&(n=8+(E-8<<4)<<8,3<(o=(G-1&255)>>1)&&(o=3),n|=o<<6,0!==K&&(n|=32),C=113,i((g=n+=31-n%31)>>8&255),i(255&g)),0!==ct.pending){if(Q.flush_pending(),0===Q.avail_out)return b=-1,0}else if(0===Q.avail_in&&e<=c&&4!=e)return Q.msg=u[7],-5;if(666==C&&0!==Q.avail_in)return t.msg=u[7],-5;if(0!==Q.avail_in||0!==q||0!=e&&666!=C){switch(p=-1,l[G].func){case 0:p=function(t){var e,A=65535;for(U-5<A&&(A=U-5);;){if(q<=1){if(m(),0===q&&0==t)return 0;if(0===q)break}if(K+=q,e=D+A,((q=0)===K||e<=K)&&(q=K-e,K=e,w(!1),0===Q.avail_out))return 0;if(F-h<=K-D&&(w(!1),0===Q.avail_out))return 0}return w(4==t),0===Q.avail_out?4==t?2:0:4==t?3:1}(e);break;case 1:p=function(t){for(var e,A=0;;){if(q<h){if(m(),q<h&&0==t)return 0;if(0===q)break}if(3<=q&&(T=(T<<P^255&H[K+2])&O,A=65535&_[T],S[K&x]=_[T],_[T]=K),0!==A&&(K-A&65535)<=F-h&&2!=W&&(L=y(A)),3<=L)if(e=f(K-z,L-3),q-=L,L<=V&&3<=q){for(L--;T=(T<<P^255&H[++K+2])&O,A=65535&_[T],S[K&x]=_[T],_[T]=K,0!=--L;);K++}else K+=L,L=0,T=((T=255&H[K])<<P^255&H[K+1])&O;else e=f(0,255&H[K]),q--,K++;if(e&&(w(!1),0===Q.avail_out))return 0}return w(4==t),0===Q.avail_out?4==t?2:0:4==t?3:1}(e);break;case 2:p=function(t){for(var e,A,r=0;;){if(q<h){if(m(),q<h&&0==t)return 0;if(0===q)break}if(3<=q&&(T=(T<<P^255&H[K+2])&O,r=65535&_[T],S[K&x]=_[T],_[T]=K),j=L,R=z,L=2,0!==r&&j<V&&(K-r&65535)<=F-h&&(2!=W&&(L=y(r)),L<=5&&(1==W||3==L&&4096<K-z)&&(L=2)),3<=j&&L<=j){for(A=K+q-3,e=f(K-1-R,j-3),q-=j-1,j-=2;++K<=A&&(T=(T<<P^255&H[K+2])&O,r=65535&_[T],S[K&x]=_[T],_[T]=K),0!=--j;);if(M=0,L=2,K++,e&&(w(!1),0===Q.avail_out))return 0}else if(0!==M){if((e=f(0,255&H[K-1]))&&w(!1),K++,q--,0===Q.avail_out)return 0}else M=1,K++,q--}return 0!==M&&(e=f(0,255&H[K-1]),M=0),w(4==t),0===Q.avail_out?4==t?2:0:4==t?3:1}(e)}if(2!=p&&3!=p||(C=666),0==p||2==p)return 0===Q.avail_out&&(b=-1),0;if(1==p){if(1==e)a(2,3),s(256,A.static_ltree),d(),1+ot+10-st<9&&(a(2,3),s(256,A.static_ltree),d()),ot=7;else if(B(0,0,!1),3==e)for(r=0;r<N;r++)_[r]=0;if(Q.flush_pending(),0===Q.avail_out)return b=-1,0}}return 4!=e?0:1}}function o(){var t=this;t.next_in_index=0,t.next_out_index=0,t.avail_in=0,t.total_in=0,t.avail_out=0,t.total_out=0}var a=15,s=573,c=[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];e._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],e.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],e.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],e.d_code=function(t){return t<256?c[t]:c[256+(t>>>7)]},e.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],e.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],e.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],e.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A.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],A.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],A.static_l_desc=new A(A.static_ltree,e.extra_lbits,257,286,a),A.static_d_desc=new A(A.static_dtree,e.extra_dbits,0,30,a),A.static_bl_desc=new A(null,e.extra_blbits,0,19,7);var l=[new r(0,0,0,0,0),new r(4,4,8,4,1),new r(4,5,16,8,1),new r(4,6,32,32,1),new r(4,4,16,16,2),new r(8,16,32,32,2),new r(8,16,128,128,2),new r(8,32,128,256,2),new r(32,128,258,1024,2),new r(32,258,258,4096,2)],u=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],h=262;o.prototype={deflateInit:function(t,e){return this.dstate=new i,e||(e=a),this.dstate.deflateInit(this,t,e)},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,A){var r=this,n=r.avail_in;return A<n&&(n=A),0===n?0:(r.avail_in-=n,t.set(r.next_in.subarray(r.next_in_index,r.next_in_index+n),e),r.next_in_index+=n,r.total_in+=n,n)},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 d=t.zip||t;d.Deflater=d._jzlib_Deflater=function(t){var e=new o,A=new Uint8Array(512),r=t?t.level:-1;void 0===r&&(r=-1),e.deflateInit(r),e.next_out=A,this.append=function(t,r){var n,i=[],o=0,a=0,s=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?i.push(new Uint8Array(A)):i.push(new Uint8Array(A.subarray(0,e.next_out_index)))),s+=e.next_out_index,r&&0<e.next_in_index&&e.next_in_index!=o&&(r(e.next_in_index),o=e.next_in_index)}while(0<e.avail_in||0===e.avail_out);return n=new Uint8Array(s),i.forEach(function(t){n.set(t,a),a+=t.length}),n}},this.flush=function(){var t,r,n=[],i=0,o=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&&n.push(new Uint8Array(A.subarray(0,e.next_out_index))),o+=e.next_out_index}while(0<e.avail_in||0===e.avail_out);return e.deflateEnd(),r=new Uint8Array(o),n.forEach(function(t){r.set(t,i),i+=t.length}),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),function(t){function A(t){var e;this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={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 n in r)t==n&&(t=r[n]);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,c=a.exec(t);c&&(e=s(c),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),A=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==A.length&&(A="0"+A),"#"+t+e+A},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,o=0;o<n.length;o++)t[t.length]=n[o];for(var a in r)t[t.length]=a;var s=document.createElement("ul");for(s.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var c=document.createElement("li"),l=new A(t[e]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+l.toHex()+"; color:"+l.toHex(),u.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+t[e]+" -> "+l.toRGB()+" -> "+l.toHex());c.appendChild(u),c.appendChild(h),s.appendChild(c)}catch(t){}return s}}e.exports&&(e.exports=A),t.RGBColor=A}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),e.exports=function e(A,r,n){function i(a,s){if(!r[a]){if(!A[a]){var c="function"==typeof t&&t;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=r[a]={exports:{}};A[a][0].call(u.exports,function(t){return i(A[a][1][t]||t)},u,u.exports,e,A,r,n)}return r[a].exports}for(var o="function"==typeof t&&t,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,A){(function(t){!function(r){function n(t){throw RangeError(I[t])}function i(t,e){for(var A=t.length;A--;)t[A]=e(t[A]);return t}function o(t,e){return i(t.split(H),e).join(".")}function a(t){for(var e,A,r=[],n=0,i=t.length;n<i;)55296<=(e=t.charCodeAt(n++))&&e<=56319&&n<i?56320==(64512&(A=t.charCodeAt(n++)))?r.push(((1023&e)<<10)+(1023&A)+65536):(r.push(e),n--):r.push(e);return r}function s(t){return i(t,function(t){var e="";return 65535<t&&(e+=T((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=T(t)}).join("")}function c(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function l(t,e,A){var r=0;for(t=A?_(t/C):t>>1,t+=_(t/e);S*v>>1<t;r+=m)t=_(t/S);return _(r+(S+1)*t/(t+Q))}function u(t){var e,A,r,i,o,a,c,u,h,d,f,p=[],g=t.length,B=0,Q=b,C=U;for((A=t.lastIndexOf(F))<0&&(A=0),r=0;r<A;++r)128<=t.charCodeAt(r)&&n("not-basic"),p.push(t.charCodeAt(r));for(i=0<A?A+1:0;i<g;){for(o=B,a=1,c=m;g<=i&&n("invalid-input"),f=t.charCodeAt(i++),(m<=(u=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:m)||u>_((w-B)/a))&&n("overflow"),B+=u*a,!(u<(h=c<=C?y:C+v<=c?v:c-C));c+=m)a>_(w/(d=m-h))&&n("overflow"),a*=d;C=l(B-o,e=p.length+1,0==o),_(B/e)>w-Q&&n("overflow"),Q+=_(B/e),B%=e,p.splice(B++,0,Q)}return s(p)}function h(t){var e,A,r,i,o,s,u,h,d,f,p,g,B,Q,C,E=[];for(g=(t=a(t)).length,e=b,o=U,s=A=0;s<g;++s)(p=t[s])<128&&E.push(T(p));for(r=i=E.length,i&&E.push(F);r<g;){for(u=w,s=0;s<g;++s)e<=(p=t[s])&&p<u&&(u=p);for(u-e>_((w-A)/(B=r+1))&&n("overflow"),A+=(u-e)*B,e=u,s=0;s<g;++s)if((p=t[s])<e&&++A>w&&n("overflow"),p==e){for(h=A,d=m;!(h<(f=d<=o?y:o+v<=d?v:d-o));d+=m)C=h-f,Q=m-f,E.push(T(c(f+C%Q,0))),h=_(C/Q);E.push(T(c(h,0))),o=l(A,B,r==i),A=0,++r}++A,++e}return E.join("")}var d="object"==typeof A&&A,f="object"==typeof e&&e&&e.exports==d&&e,p="object"==typeof t&&t;p.global!==p&&p.window!==p||(r=p);var g,B,w=2147483647,m=36,y=1,v=26,Q=38,C=700,U=72,b=128,F="-",E=/^xn--/,x=/[^ -~]/,H=/\x2E|\u3002|\uFF0E|\uFF61/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=m-y,_=Math.floor,T=String.fromCharCode;if(g={version:"1.2.4",ucs2:{decode:a,encode:s},decode:u,encode:h,toASCII:function(t){return o(t,function(t){return x.test(t)?"xn--"+h(t):t})},toUnicode:function(t){return o(t,function(t){return E.test(t)?u(t.slice(4).toLowerCase()):t})}},d&&!d.nodeType)if(f)f.exports=g;else for(B in g)g.hasOwnProperty(B)&&(d[B]=g[B]);else r.punycode=g}(this)}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,A){function r(t,e){for(var A=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;)!0!==e&&1===i.nodeType&&"SCRIPT"===i.nodeName||A.appendChild(r(i,e)),i=i.nextSibling;return 1===t.nodeType&&(A._scrollTop=t.scrollTop,A._scrollLeft=t.scrollLeft,"CANVAS"===t.nodeName?function(t,e){try{e&&(e.width=t.width,e.height=t.height,e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0))}catch(e){n("Unable to copy canvas content from",t,e)}}(t,A):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(A.value=t.value)),A}var n=t("./log");e.exports=function(t,e,A,n,i,o,a){var s=r(t.documentElement,i.javascriptEnabled),c=e.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=A,c.height=n,c.scrolling="no",e.body.appendChild(c),new Promise(function(e){var A,r,n,l=c.contentWindow.document;c.contentWindow.onload=c.onload=function(){var t=setInterval(function(){0<l.body.childNodes.length&&(function t(e){if(1===e.nodeType){e.scrollTop=e._scrollTop,e.scrollLeft=e._scrollLeft;for(var A=e.firstChild;A;)t(A),A=A.nextSibling}}(l.documentElement),clearInterval(t),"view"===i.type&&(c.contentWindow.scrollTo(o,a),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.contentWindow.scrollY===a&&c.contentWindow.scrollX===o||(l.documentElement.style.top=-a+"px",l.documentElement.style.left=-o+"px",l.documentElement.style.position="absolute")),e(c))},50)},l.open(),l.write("<!DOCTYPE html><html></html>"),r=o,n=a,!(A=t).defaultView||r===A.defaultView.pageXOffset&&n===A.defaultView.pageYOffset||A.defaultView.scrollTo(r,n),l.replaceChild(l.adoptNode(s),l.documentElement),l.close()})}},{"./log":13}],3:[function(t,e,A){function r(t){this.r=0,this.g=0,this.b=0,this.a=null,this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}r.prototype.darken=function(t){var e=1-t;return new r([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])},r.prototype.isTransparent=function(){return 0===this.a},r.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},r.prototype.fromArray=function(t){return Array.isArray(t)&&(this.r=Math.min(t[0],255),this.g=Math.min(t[1],255),this.b=Math.min(t[2],255),3<t.length&&(this.a=t[3])),Array.isArray(t)};var n=/^#([a-f0-9]{3})$/i;r.prototype.hex3=function(t){var e;return null!==(e=t.match(n))&&(this.r=parseInt(e[1][0]+e[1][0],16),this.g=parseInt(e[1][1]+e[1][1],16),this.b=parseInt(e[1][2]+e[1][2],16)),null!==e};var i=/^#([a-f0-9]{6})$/i;r.prototype.hex6=function(t){var e=null;return null!==(e=t.match(i))&&(this.r=parseInt(e[1].substring(0,2),16),this.g=parseInt(e[1].substring(2,4),16),this.b=parseInt(e[1].substring(4,6),16)),null!==e};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;r.prototype.rgb=function(t){var e;return null!==(e=t.match(o))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3])),null!==e};var a=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;r.prototype.rgba=function(t){var e;return null!==(e=t.match(a))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3]),this.a=Number(e[4])),null!==e},r.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},r.prototype.namedColor=function(t){t=t.toLowerCase();var e=s[t];if(e)this.r=e[0],this.g=e[1],this.b=e[2];else if("transparent"===t)return this.r=this.g=this.b=this.a=0,!0;return!!e},r.prototype.isColor=!0;var s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=r},{}],4:[function(t,e,A){function r(t,e){var A,r,i=B++;if((e=e||{}).logging&&(u.options.logging=!0,u.options.start=Date.now()),e.async=void 0===e.async||e.async,e.allowTaint=void 0!==e.allowTaint&&e.allowTaint,e.removeContainer=void 0===e.removeContainer||e.removeContainer,e.javascriptEnabled=void 0!==e.javascriptEnabled&&e.javascriptEnabled,e.imageTimeout=void 0===e.imageTimeout?1e4:e.imageTimeout,e.renderer="function"==typeof e.renderer?e.renderer:a,e.strict=!!e.strict,"string"==typeof t){if("string"!=typeof e.proxy)return Promise.reject("Proxy must be used when rendering url");var o=null!=e.width?e.width:window.innerWidth,s=null!=e.height?e.height:window.innerHeight;return f((A=t,r=document.createElement("a"),r.href=A,r.href=r.href,r),e.proxy,document,o,s,e).then(function(t){return n(t.contentWindow.document.documentElement,t,e,o,s)})}var c,l,h,p,w,m=(void 0===t?[document.documentElement]:t.length?t:[t])[0];return m.setAttribute(g+i,i),(c=m.ownerDocument,l=e,h=m.ownerDocument.defaultView.innerWidth,p=m.ownerDocument.defaultView.innerHeight,w=i,d(c,c,h,p,l,c.defaultView.pageXOffset,c.defaultView.pageYOffset).then(function(t){u("Document cloned");var e=g+w,A="["+e+"='"+w+"']";c.querySelector(A).removeAttribute(e);var r=t.contentWindow,i=r.document.querySelector(A);return("function"==typeof l.onclone?Promise.resolve(l.onclone(r.document)):Promise.resolve(!0)).then(function(){return n(i,t,l,h,p)})})).then(function(t){return"function"==typeof e.onrendered&&(u("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),e.onrendered(t)),t})}function n(t,e,A,r,n){var a,l,h=e.contentWindow,d=new o(h.document),f=new s(A,d),g=p(t),B="view"===A.type?r:(a=h.document,Math.max(Math.max(a.body.scrollWidth,a.documentElement.scrollWidth),Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),Math.max(a.body.clientWidth,a.documentElement.clientWidth))),w="view"===A.type?n:(l=h.document,Math.max(Math.max(l.body.scrollHeight,l.documentElement.scrollHeight),Math.max(l.body.offsetHeight,l.documentElement.offsetHeight),Math.max(l.body.clientHeight,l.documentElement.clientHeight))),m=new A.renderer(B,w,f,A,document);return new c(t,m,d,f,A).ready.then(function(){var r,n;return u("Finished rendering"),r="view"===A.type?i(m.canvas,{width:m.canvas.width,height:m.canvas.height,top:0,left:0,x:0,y:0}):t===h.document.body||t===h.document.documentElement||null!=A.canvas?m.canvas:i(m.canvas,{width:null!=A.width?A.width:g.width,height:null!=A.height?A.height:g.height,top:g.top,left:g.left,x:0,y:0}),n=e,A.removeContainer&&(n.parentNode.removeChild(n),u("Cleaned up container")),r})}function i(t,e){var A=document.createElement("canvas"),r=Math.min(t.width-1,Math.max(0,e.left)),n=Math.min(t.width,Math.max(1,e.left+e.width)),i=Math.min(t.height-1,Math.max(0,e.top)),o=Math.min(t.height,Math.max(1,e.top+e.height));A.width=e.width,A.height=e.height;var a=n-r,s=o-i;return u("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",a,"height:",s),u("Resulting crop with width",e.width,"and height",e.height,"with x",r,"and y",i),A.getContext("2d").drawImage(t,r,i,a,s,e.x,e.y,a,s),A}var o=t("./support"),a=t("./renderers/canvas"),s=t("./imageloader"),c=t("./nodeparser"),l=t("./nodecontainer"),u=t("./log"),h=t("./utils"),d=t("./clone"),f=t("./proxy").loadUrlDocument,p=h.getBounds,g="data-html2canvas-node",B=0;r.CanvasRenderer=a,r.NodeContainer=l,r.log=u,r.utils=h;var w="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:r;e.exports=w},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,A){var r=t("./log"),n=t("./utils").smallImage;e.exports=function t(e){if(this.src=e,r("DummyImageContainer for",e),!this.promise||!this.image){r("Initiating DummyImageContainer"),t.prototype.image=new Image;var A=this.image;t.prototype.promise=new Promise(function(t,e){A.onload=t,A.onerror=e,A.src=n(),!0===A.complete&&t(A)})}}},{"./log":13,"./utils":26}],6:[function(t,e,A){var r=t("./utils").smallImage;e.exports=function(t,e){var A,n,i=document.createElement("div"),o=document.createElement("img"),a=document.createElement("span"),s="Hidden Text";i.style.visibility="hidden",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin=0,i.style.padding=0,document.body.appendChild(i),o.src=r(),o.width=1,o.height=1,o.style.margin=0,o.style.padding=0,o.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=e,a.style.margin=0,a.style.padding=0,a.appendChild(document.createTextNode(s)),i.appendChild(a),i.appendChild(o),A=o.offsetTop-a.offsetTop+1,i.removeChild(a),i.appendChild(document.createTextNode(s)),i.style.lineHeight="normal",o.style.verticalAlign="super",n=o.offsetTop-i.offsetTop+1,document.body.removeChild(i),this.baseline=A,this.lineWidth=1,this.middle=n}},{"./utils":26}],7:[function(t,e,A){function r(){this.data={}}var n=t("./font");r.prototype.getMetrics=function(t,e){return void 0===this.data[t+"-"+e]&&(this.data[t+"-"+e]=new n(t,e)),this.data[t+"-"+e]},e.exports=r},{"./font":6}],8:[function(t,e,A){function r(e,A,r){this.image=null,this.src=e;var i=this,o=n(e);this.promise=(A?new Promise(function(t){"about:blank"===e.contentWindow.document.URL||null==e.contentWindow.document.documentElement?e.contentWindow.onload=e.onload=function(){t(e)}:t(e)}):this.proxyLoad(r.proxy,o,r)).then(function(e){return t("./core")(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})}).then(function(t){return i.image=t})}var n=t("./utils").getBounds,i=t("./proxy").loadUrlDocument;r.prototype.proxyLoad=function(t,e,A){var r=this.src;return i(r.src,t,r.ownerDocument,e.width,e.height,A)},e.exports=r},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,A){function r(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}r.TYPES={LINEAR:1,RADIAL:2},r.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,e.exports=r},{}],10:[function(t,e,A){e.exports=function(t,e){this.src=t,this.image=new Image;var A=this;this.tainted=null,this.promise=new Promise(function(r,n){A.image.onload=r,A.image.onerror=n,e&&(A.image.crossOrigin="anonymous"),A.image.src=t,!0===A.image.complete&&r(A.image)})}},{}],11:[function(t,e,A){function r(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href)}var n=t("./log"),i=t("./imagecontainer"),o=t("./dummyimagecontainer"),a=t("./proxyimagecontainer"),s=t("./framecontainer"),c=t("./svgcontainer"),l=t("./svgnodecontainer"),u=t("./lineargradientcontainer"),h=t("./webkitgradientcontainer"),d=t("./utils").bind;r.prototype.findImages=function(t){var e=[];return t.reduce(function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t},[]).forEach(this.addImage(e,this.loadImage),this),e},r.prototype.findBackgroundImage=function(t,e){return e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this),t},r.prototype.addImage=function(t,e){return function(A){A.args.forEach(function(r){this.imageExists(t,r)||(t.splice(0,0,e.call(this,A)),n("Added image #"+t.length,"string"==typeof r?r.substring(0,100):r))},this)}},r.prototype.hasImageBackground=function(t){return"none"!==t.method},r.prototype.loadImage=function(t){if("url"===t.method){var e=t.args[0];return!this.isSVG(e)||this.support.svg||this.options.allowTaint?e.match(/data:image\/.*;base64,/i)?new i(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(e)||!0===this.options.allowTaint||this.isSVG(e)?new i(e,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new i(e,!0):this.options.proxy?new a(e,this.options.proxy):new o(e):new c(e)}return"linear-gradient"===t.method?new u(t):"gradient"===t.method?new h(t):"svg"===t.method?new l(t.args[0],this.support.svg):"IFRAME"===t.method?new s(t.args[0],this.isSameOrigin(t.args[0].src),this.options):new o(t)},r.prototype.isSVG=function(t){return"svg"===t.substring(t.length-3).toLowerCase()||c.prototype.isInline(t)},r.prototype.imageExists=function(t,e){return t.some(function(t){return t.src===e})},r.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin},r.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port},r.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout).catch(function(){return new o(t.src).promise.then(function(e){t.image=e})})},r.prototype.get=function(t){var e=null;return this.images.some(function(A){return(e=A).src===t})?e:null},r.prototype.fetch=function(t){return this.images=t.reduce(d(this.findBackgroundImage,this),this.findImages(t)),this.images.forEach(function(t,e){t.promise.then(function(){n("Succesfully loaded image #"+(e+1),t)},function(A){n("Failed loading image #"+(e+1),t,A)})}),this.ready=Promise.all(this.images.map(this.getPromise,this)),n("Finished searching images"),this},r.prototype.timeout=function(t,e){var A,r=Promise.race([t.promise,new Promise(function(r,i){A=setTimeout(function(){n("Timed out loading image",t),i(t)},e)})]).then(function(t){return clearTimeout(A),t});return r.catch(function(){clearTimeout(A)}),r},e.exports=r},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,A){function r(t){n.apply(this,arguments),this.type=n.TYPES.LINEAR;var e=r.REGEXP_DIRECTION.test(t.args[0])||!n.REGEXP_COLORSTOP.test(t.args[0]);e?t.args[0].split(/\s+/).reverse().forEach(function(t,e){switch(t){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var A=this.y0,r=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=r,this.y1=A;break;case"center":break;default:var n=.01*parseFloat(t,10);if(isNaN(n))break;0===e?(this.y0=n,this.y1=1-this.y0):(this.x0=n,this.x1=1-this.x0)}},this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map(function(t){var e=t.match(n.REGEXP_COLORSTOP),A=+e[2],r=0===A?"%":e[3];return{color:new i(e[1]),stop:"%"===r?A/100:null}}),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach(function(t,e){null===t.stop&&this.colorStops.slice(e).some(function(A,r){return null!==A.stop&&(t.stop=(A.stop-this.colorStops[e-1].stop)/(r+1)+this.colorStops[e-1].stop,!0)},this)},this)}var n=t("./gradientcontainer"),i=t("./color");r.prototype=Object.create(n.prototype),r.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,e.exports=r},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,A){var r=function(){r.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-r.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};r.options={logging:!1},e.exports=r},{}],14:[function(t,e,A){function r(t,e){this.node=t,this.parent=e,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function n(t){return-1!==t.toString().indexOf("%")}function i(t){return t.replace("px","")}function o(t){return parseFloat(t)}var a=t("./color"),s=t("./utils"),c=s.getBounds,l=s.parseBackgrounds,u=s.offsetBounds;r.prototype.cloneTo=function(t){t.visible=this.visible,t.borders=this.borders,t.bounds=this.bounds,t.clip=this.clip,t.backgroundClip=this.backgroundClip,t.computedStyles=this.computedStyles,t.styles=this.styles,t.backgroundImages=this.backgroundImages,t.opacity=this.opacity},r.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},r.prototype.assignStack=function(t){(this.stack=t).children.push(this)},r.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},r.prototype.css=function(t){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[t]||(this.styles[t]=this.computedStyles[t])},r.prototype.prefixedCss=function(t){var e=this.css(t);return void 0===e&&["webkit","moz","ms","o"].some(function(A){return void 0!==(e=this.css(A+t.substr(0,1).toUpperCase()+t.substr(1)))},this),void 0===e?null:e},r.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)},r.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e},r.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new a(this.css(t)))},r.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e},r.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal"}return t},r.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);return t?{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}:null},r.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=l(this.css("backgroundImage")))},r.prototype.cssList=function(t,e){var A=(this.css(t)||"").split(",");return 1===(A=(A=A[e||0]||A[0]||"auto").trim().split(" ")).length&&(A=[A[0],n(A[0])?"auto":A[0]]),A},r.prototype.parseBackgroundSize=function(t,e,A){var r,i,o=this.cssList("backgroundSize",A);if(n(o[0]))r=t.width*parseFloat(o[0])/100;else{if(/contain|cover/.test(o[0])){var a=t.width/t.height,s=e.width/e.height;return a<s^"contain"===o[0]?{width:t.height*s,height:t.height}:{width:t.width,height:t.width/s}}r=parseInt(o[0],10)}return i="auto"===o[0]&&"auto"===o[1]?e.height:"auto"===o[1]?r/e.width*e.height:n(o[1])?t.height*parseFloat(o[1])/100:parseInt(o[1],10),"auto"===o[0]&&(r=i/e.height*e.width),{width:r,height:i}},r.prototype.parseBackgroundPosition=function(t,e,A,r){var i,o,a=this.cssList("backgroundPosition",A);return i=n(a[0])?(t.width-(r||e).width)*(parseFloat(a[0])/100):parseInt(a[0],10),o="auto"===a[1]?i/e.width*e.height:n(a[1])?(t.height-(r||e).height)*parseFloat(a[1])/100:parseInt(a[1],10),"auto"===a[0]&&(i=o/e.height*e.width),{left:i,top:o}},r.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]},r.prototype.parseTextShadows=function(){var t=this.css("textShadow"),e=[];if(t&&"none"!==t)for(var A=t.match(this.TEXT_SHADOW_PROPERTY),r=0;A&&r<A.length;r++){var n=A[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new a(n[0]),offsetX:n[1]?parseFloat(n[1].replace("px","")):0,offsetY:n[2]?parseFloat(n[2].replace("px","")):0,blur:n[3]?n[3].replace("px",""):0})}return e},r.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),e=this.prefixedCss("transformOrigin").split(" ").map(i).map(o);e[0]+=t.left,e[1]+=t.top,this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData},r.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform"),e=t?function(t){if(t&&"matrix"===t[1])return t[2].split(",").map(function(t){return parseFloat(t.trim())});if(t&&"matrix3d"===t[1]){var e=t[2].split(",").map(function(t){return parseFloat(t.trim())});return[e[0],e[1],e[4],e[5],e[12],e[13]]}}(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e||[1,0,0,1,0,0]}return this.transformMatrix},r.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?u(this.node):c(this.node))},r.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},r.prototype.getValue=function(){var t,e,A=this.node.value||"";return"SELECT"===this.node.tagName?(t=this.node,A=(e=t.options[t.selectedIndex||0])&&e.text||""):"password"===this.node.type&&(A=Array(A.length+1).join("•")),0===A.length?this.node.placeholder||"":A},r.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/,r.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,r.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,r.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,e.exports=r},{"./color":3,"./utils":26}],15:[function(t,e,A){function r(t,e,A,r,n){H("Starting NodeParser"),this.renderer=e,this.options=n,this.range=null,this.support=A,this.renderQueue=[],this.stack=new O(!0,1,t.ownerDocument,null);var i=new S(t,null);if(n.background&&e.rectangle(0,0,e.width,e.height,new k(n.background)),t===t.ownerDocument.documentElement){var o=new S(i.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,o.color("backgroundColor"))}i.visibile=i.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=x([i].concat(this.getChildren(i)).filter(function(t){return t.visible=t.isElementVisible()}).map(this.getPseudoElements,this)),this.fontMetrics=new N,H("Fetched nodes, total:",this.nodes.length),H("Calculate overflow clips"),this.calculateOverflowClips(),H("Start fetching images"),this.images=r.fetch(this.nodes.filter(Q)),this.ready=this.images.ready.then(D(function(){return H("Images loaded, starting parsing"),H("Creating stacking contexts"),this.createStackingContexts(),H("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),H("Render queue created with "+this.renderQueue.length+" items"),new Promise(D(function(t){n.async?"function"==typeof n.async?n.async.call(this,this.renderQueue,t):0<this.renderQueue.length?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,t)):t():(this.renderQueue.forEach(this.paint,this),t())},this))},this))}function n(t){return t.parent&&t.parent.clip.length}function i(){}function o(t,e,A,r){return t.map(function(n,i){if(0<n.width){var o=e.left,a=e.top,s=e.width,c=e.height-t[2].width;switch(i){case 0:c=t[0].width,n.args=l({c1:[o,a],c2:[o+s,a],c3:[o+s-t[1].width,a+c],c4:[o+t[3].width,a+c]},r[0],r[1],A.topLeftOuter,A.topLeftInner,A.topRightOuter,A.topRightInner);break;case 1:o=e.left+e.width-t[1].width,s=t[1].width,n.args=l({c1:[o+s,a],c2:[o+s,a+c+t[2].width],c3:[o,a+c],c4:[o,a+t[0].width]},r[1],r[2],A.topRightOuter,A.topRightInner,A.bottomRightOuter,A.bottomRightInner);break;case 2:a=a+e.height-t[2].width,c=t[2].width,n.args=l({c1:[o+s,a+c],c2:[o,a+c],c3:[o+t[3].width,a],c4:[o+s-t[3].width,a]},r[2],r[3],A.bottomRightOuter,A.bottomRightInner,A.bottomLeftOuter,A.bottomLeftInner);break;case 3:s=t[3].width,n.args=l({c1:[o,a+c+t[2].width],c2:[o,a],c3:[o+s,a+t[0].width],c4:[o+s,a+c]},r[3],r[0],A.bottomLeftOuter,A.bottomLeftInner,A.topLeftOuter,A.topLeftInner)}}return n})}function a(t,e,A,r){var n=(Math.sqrt(2)-1)/3*4,i=A*n,o=r*n,a=t+A,s=e+r;return{topLeft:c({x:t,y:s},{x:t,y:s-o},{x:a-i,y:e},{x:a,y:e}),topRight:c({x:t,y:e},{x:t+i,y:e},{x:a,y:s-o},{x:a,y:s}),bottomRight:c({x:a,y:e},{x:a,y:e+o},{x:t+i,y:s},{x:t,y:s}),bottomLeft:c({x:a,y:s},{x:a-i,y:s},{x:t,y:e+o},{x:t,y:e})}}function s(t,e,A){var r=t.left,n=t.top,i=t.width,o=t.height,s=e[0][0]<i/2?e[0][0]:i/2,c=e[0][1]<o/2?e[0][1]:o/2,l=e[1][0]<i/2?e[1][0]:i/2,u=e[1][1]<o/2?e[1][1]:o/2,h=e[2][0]<i/2?e[2][0]:i/2,d=e[2][1]<o/2?e[2][1]:o/2,f=e[3][0]<i/2?e[3][0]:i/2,p=e[3][1]<o/2?e[3][1]:o/2,g=i-l,B=o-d,w=i-h,m=o-p;return{topLeftOuter:a(r,n,s,c).topLeft.subdivide(.5),topLeftInner:a(r+A[3].width,n+A[0].width,Math.max(0,s-A[3].width),Math.max(0,c-A[0].width)).topLeft.subdivide(.5),topRightOuter:a(r+g,n,l,u).topRight.subdivide(.5),topRightInner:a(r+Math.min(g,i+A[3].width),n+A[0].width,g>i+A[3].width?0:l-A[3].width,u-A[0].width).topRight.subdivide(.5),bottomRightOuter:a(r+w,n+B,h,d).bottomRight.subdivide(.5),bottomRightInner:a(r+Math.min(w,i-A[3].width),n+Math.min(B,o+A[0].width),Math.max(0,h-A[1].width),d-A[2].width).bottomRight.subdivide(.5),bottomLeftOuter:a(r,n+m,f,p).bottomLeft.subdivide(.5),bottomLeftInner:a(r+A[3].width,n+m,Math.max(0,f-A[3].width),p-A[2].width).bottomLeft.subdivide(.5)}}function c(t,e,A,r){var n=function(t,e,A){return{x:t.x+(e.x-t.x)*A,y:t.y+(e.y-t.y)*A}};return{start:t,startControl:e,endControl:A,end:r,subdivide:function(i){var o=n(t,e,i),a=n(e,A,i),s=n(A,r,i),l=n(o,a,i),u=n(a,s,i),h=n(l,u,i);return[c(t,o,l,h),c(h,u,s,r)]},curveTo:function(t){t.push(["bezierCurve",e.x,e.y,A.x,A.y,r.x,r.y])},curveToReversed:function(r){r.push(["bezierCurve",A.x,A.y,e.x,e.y,t.x,t.y])}}}function l(t,e,A,r,n,i,o){var a=[];return 0<e[0]||0<e[1]?(a.push(["line",r[1].start.x,r[1].start.y]),r[1].curveTo(a)):a.push(["line",t.c1[0],t.c1[1]]),0<A[0]||0<A[1]?(a.push(["line",i[0].start.x,i[0].start.y]),i[0].curveTo(a),a.push(["line",o[0].end.x,o[0].end.y]),o[0].curveToReversed(a)):(a.push(["line",t.c2[0],t.c2[1]]),a.push(["line",t.c3[0],t.c3[1]])),0<e[0]||0<e[1]?(a.push(["line",n[1].end.x,n[1].end.y]),n[1].curveToReversed(a)):a.push(["line",t.c4[0],t.c4[1]]),a}function u(t,e,A,r,n,i,o){0<e[0]||0<e[1]?(t.push(["line",r[0].start.x,r[0].start.y]),r[0].curveTo(t),r[1].curveTo(t)):t.push(["line",i,o]),(0<A[0]||0<A[1])&&t.push(["line",n[0].start.x,n[0].start.y])}function h(t){return t.cssInt("zIndex")<0}function d(t){return 0<t.cssInt("zIndex")}function f(t){return 0===t.cssInt("zIndex")}function p(t){return-1!==["inline","inline-block","inline-table"].indexOf(t.css("display"))}function g(t){return t instanceof O}function B(t){return 0<t.node.data.trim().length}function w(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function m(t){return"static"!==t.css("position")}function y(t){return"none"!==t.css("float")}function v(t){var e=this;return function(){return!t.apply(e,arguments)}}function Q(t){return t.node.nodeType===Node.ELEMENT_NODE}function C(t){return!0===t.isPseudoElement}function U(t){return t.node.nodeType===Node.TEXT_NODE}function b(t){return parseInt(t,10)}function F(t){return t.width}function E(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)}function x(t){return[].concat.apply([],t)}var H=t("./log"),I=t("punycode"),S=t("./nodecontainer"),_=t("./textcontainer"),T=t("./pseudoelementcontainer"),N=t("./fontmetrics"),k=t("./color"),O=t("./stackingcontext"),P=t("./utils"),D=P.bind,L=P.getBounds,R=P.parseBackgrounds,M=P.offsetBounds;r.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(t){if(Q(t)){C(t)&&t.appendToDOM(),t.borders=this.parseBorders(t);var e="hidden"===t.css("overflow")?[t.borders.clip]:[],A=t.parseClip();A&&-1!==["absolute","fixed"].indexOf(t.css("position"))&&e.push([["rect",t.bounds.left+A.left,t.bounds.top+A.top,A.right-A.left,A.bottom-A.top]]),t.clip=n(t)?t.parent.clip.concat(e):e,t.backgroundClip="hidden"!==t.css("overflow")?t.clip.concat([t.borders.clip]):t.clip,C(t)&&t.cleanDOM()}else U(t)&&(t.clip=n(t)?t.parent.clip:[]);C(t)||(t.bounds=null)},this)},r.prototype.asyncRenderer=function(t,e,A){A=A||Date.now(),this.paint(t[this.renderIndex++]),t.length===this.renderIndex?e():A+20>Date.now()?this.asyncRenderer(t,e,A):setTimeout(D(function(){this.asyncRenderer(t,e)},this),0)},r.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+T.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+T.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},r.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},r.prototype.createStyles=function(t,e){var A=t.createElement("style");A.innerHTML=e,t.body.appendChild(A)},r.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var A=this.getPseudoElement(t,":before"),r=this.getPseudoElement(t,":after");A&&e.push(A),r&&e.push(r)}return x(e)},r.prototype.getPseudoElement=function(t,e){var A=t.computedStyle(e);if(!A||!A.content||"none"===A.content||"-moz-alt-content"===A.content||"none"===A.display)return null;for(var r,n,i=(r=A.content,(n=r.substr(0,1))===r.substr(r.length-1)&&n.match(/'|"/)?r.substr(1,r.length-2):r),o="url"===i.substr(0,3),a=document.createElement(o?"img":"html2canvaspseudoelement"),s=new T(a,t,e),c=A.length-1;0<=c;c--){var l=A.item(c).replace(/(\-[a-z])/g,function(t){return t.toUpperCase().replace("-","")});a.style[l]=A[l]}if(a.className=T.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+T.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,o)return a.src=R(i)[0].args[0],[s];var u=document.createTextNode(i);return a.appendChild(u),[s,new _(u,s)]},r.prototype.getChildren=function(t){return x([].filter.call(t.node.childNodes,w).map(function(e){var A=[e.nodeType===Node.TEXT_NODE?new _(e,t):new S(e,t)].filter(E);return e.nodeType===Node.ELEMENT_NODE&&A.length&&"TEXTAREA"!==e.tagName?A[0].isElementVisible()?A.concat(this.getChildren(A[0])):[]:A},this))},r.prototype.newStackingContext=function(t,e){var A=new O(e,t.getOpacity(),t.node,t.parent);t.cloneTo(A),(e?A.getParentStack(this):A.parent.stack).contexts.push(A),t.stack=A},r.prototype.createStackingContexts=function(){this.nodes.forEach(function(t){var e,A;Q(t)&&(this.isRootElement(t)||t.getOpacity()<1||(A=(e=t).css("position"),"auto"!==(-1!==["absolute","relative","fixed"].indexOf(A)?e.css("zIndex"):"auto"))||this.isBodyWithTransparentRoot(t)||t.hasTransform())?this.newStackingContext(t,!0):Q(t)&&(m(t)&&f(t)||-1!==["inline-block","inline-table"].indexOf(t.css("display"))||y(t))?this.newStackingContext(t,!1):t.assignStack(t.parent.stack)},this)},r.prototype.isBodyWithTransparentRoot=function(t){return"BODY"===t.node.nodeName&&t.parent.color("backgroundColor").isTransparent()},r.prototype.isRootElement=function(t){return null===t.parent},r.prototype.sortStackingContexts=function(t){var e;t.contexts.sort((e=t.contexts.slice(0),function(t,A){return t.cssInt("zIndex")+e.indexOf(t)/e.length-(A.cssInt("zIndex")+e.indexOf(A)/e.length)})),t.contexts.forEach(this.sortStackingContexts,this)},r.prototype.parseTextBounds=function(t){return function(e,A,r){if("none"!==t.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!t.parent.hasTransform()){var n=r.slice(0,A).join("").length;return this.getRangeBounds(t.node,n,e.length)}if(t.node&&"string"==typeof t.node.data){var i=t.node.splitText(e.length),o=this.getWrapperBounds(t.node,t.parent.hasTransform());return t.node=i,o}}else this.support.rangeBounds&&!t.parent.hasTransform()||(t.node=t.node.splitText(e.length));return{}}},r.prototype.getWrapperBounds=function(t,e){var A=t.ownerDocument.createElement("html2canvaswrapper"),r=t.parentNode,n=t.cloneNode(!0);A.appendChild(t.cloneNode(!0)),r.replaceChild(A,t);var i=e?M(A):L(A);return r.replaceChild(n,A),i},r.prototype.getRangeBounds=function(t,e,A){var r=this.range||(this.range=t.ownerDocument.createRange());return r.setStart(t,e),r.setEnd(t,e+A),r.getBoundingClientRect()},r.prototype.parse=function(t){var e=t.contexts.filter(h),A=t.children.filter(Q),r=A.filter(v(y)),n=r.filter(v(m)).filter(v(p)),o=A.filter(v(m)).filter(y),a=r.filter(v(m)).filter(p),s=t.contexts.concat(r.filter(m)).filter(f),c=t.children.filter(U).filter(B),l=t.contexts.filter(d);e.concat(n).concat(o).concat(a).concat(s).concat(c).concat(l).forEach(function(t){this.renderQueue.push(t),g(t)&&(this.parse(t),this.renderQueue.push(new i))},this)},r.prototype.paint=function(t){try{t instanceof i?this.renderer.ctx.restore():U(t)?(C(t.parent)&&t.parent.appendToDOM(),this.paintText(t),C(t.parent)&&t.parent.cleanDOM()):this.paintNode(t)}catch(t){if(H(t),this.options.strict)throw t}},r.prototype.paintNode=function(t){g(t)&&(this.renderer.setOpacity(t.opacity),this.renderer.ctx.save(),t.hasTransform()&&this.renderer.setTransform(t.parseTransform())),"INPUT"===t.node.nodeName&&"checkbox"===t.node.type?this.paintCheckbox(t):"INPUT"===t.node.nodeName&&"radio"===t.node.type?this.paintRadio(t):this.paintElement(t)},r.prototype.paintElement=function(t){var e=t.parseBounds();this.renderer.clip(t.backgroundClip,function(){this.renderer.renderBackground(t,e,t.borders.borders.map(F))},this),this.renderer.clip(t.clip,function(){this.renderer.renderBorders(t.borders.borders)},this),this.renderer.clip(t.backgroundClip,function(){switch(t.node.nodeName){case"svg":case"IFRAME":var A=this.images.get(t.node);A?this.renderer.renderImage(t,e,t.borders,A):H("Error loading <"+t.node.nodeName+">",t.node);break;case"IMG":var r=this.images.get(t.node.src);r?this.renderer.renderImage(t,e,t.borders,r):H("Error loading <img>",t.node.src);break;case"CANVAS":this.renderer.renderImage(t,e,t.borders,{image:t.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(t)}},this)},r.prototype.paintCheckbox=function(t){var e=t.parseBounds(),A=Math.min(e.width,e.height),r={width:A-1,height:A-1,top:e.top,left:e.left},n=[3,3],i=[n,n,n,n],a=[1,1,1,1].map(function(t){return{color:new k("#A5A5A5"),width:t}}),c=s(r,i,a);this.renderer.clip(t.backgroundClip,function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new k("#DEDEDE")),this.renderer.renderBorders(o(a,r,c,i)),t.node.checked&&(this.renderer.font(new k("#424242"),"normal","normal","bold",A-3+"px","arial"),this.renderer.text("✔",r.left+A/6,r.top+A-1))},this)},r.prototype.paintRadio=function(t){var e=t.parseBounds(),A=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,function(){this.renderer.circleStroke(e.left+1,e.top+1,A,new k("#DEDEDE"),1,new k("#A5A5A5")),t.node.checked&&this.renderer.circle(Math.ceil(e.left+A/4)+1,Math.ceil(e.top+A/4)+1,Math.floor(A/2),new k("#424242"))},this)},r.prototype.paintFormValue=function(t){var e=t.getValue();if(0<e.length){var A=t.node.ownerDocument,r=A.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach(function(e){try{r.style[e]=t.css(e)}catch(e){H("html2canvas: Parse: Exception caught in renderFormValue: "+e.message)}});var n=t.parseBounds();r.style.position="fixed",r.style.left=n.left+"px",r.style.top=n.top+"px",r.textContent=e,A.body.appendChild(r),this.paintText(new _(r.firstChild,t)),A.body.removeChild(r)}},r.prototype.paintText=function(t){t.applyTextTransform();var e,A=I.ucs2.decode(t.node.data),r=this.options.letterRendering&&!/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))||(e=t.node.data,/[^\u0000-\u00ff]/.test(e))?A.map(function(t){return I.ucs2.encode([t])}):function(t){for(var e,A=[],r=0,n=!1;t.length;)i=t[r],-1!==[32,13,10,9,45].indexOf(i)===n?((e=t.splice(0,r)).length&&A.push(I.ucs2.encode(e)),n=!n,r=0):r++,r>=t.length&&(e=t.splice(0,r)).length&&A.push(I.ucs2.encode(e));var i;return A}(A),n=t.parent.fontWeight(),i=t.parent.css("fontSize"),o=t.parent.css("fontFamily"),a=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),n,i,o),a.length?this.renderer.fontShadow(a[0].color,a[0].offsetX,a[0].offsetY,a[0].blur):this.renderer.clearShadow(),this.renderer.clip(t.parent.clip,function(){r.map(this.parseTextBounds(t),this).forEach(function(e,A){e&&!1===/^\s*$/.test(r[A])&&(this.renderer.text(r[A],e.left,e.bottom),this.renderTextDecoration(t.parent,e,this.fontMetrics.getMetrics(o,i)))},this)},this)},r.prototype.renderTextDecoration=function(t,e,A){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+A.baseline+A.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+A.middle+A.lineWidth),e.width,1,t.color("color"))}};var K={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};r.prototype.parseBorders=function(t){var e,A=t.parseBounds(),r=(e=t,["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var A=e.css("border"+t+"Radius").split(" ");return A.length<=1&&(A[1]=A[0]),A.map(b)})),n=["Top","Right","Bottom","Left"].map(function(e,A){var r=t.css("border"+e+"Style"),n=t.color("border"+e+"Color");"inset"===r&&n.isBlack()&&(n=new k([255,255,255,n.a]));var i=K[r]?K[r][A]:null;return{width:t.cssInt("border"+e+"Width"),color:i?n[i[0]](i[1]):n,args:null}}),i=s(A,r,n);return{clip:this.parseBackgroundClip(t,i,n,r,A),borders:o(n,A,i,r)}},r.prototype.parseBackgroundClip=function(t,e,A,r,n){var i=[];switch(t.css("backgroundClip")){case"content-box":case"padding-box":u(i,r[0],r[1],e.topLeftInner,e.topRightInner,n.left+A[3].width,n.top+A[0].width),u(i,r[1],r[2],e.topRightInner,e.bottomRightInner,n.left+n.width-A[1].width,n.top+A[0].width),u(i,r[2],r[3],e.bottomRightInner,e.bottomLeftInner,n.left+n.width-A[1].width,n.top+n.height-A[2].width),u(i,r[3],r[0],e.bottomLeftInner,e.topLeftInner,n.left+A[3].width,n.top+n.height-A[2].width);break;default:u(i,r[0],r[1],e.topLeftOuter,e.topRightOuter,n.left,n.top),u(i,r[1],r[2],e.topRightOuter,e.bottomRightOuter,n.left+n.width,n.top),u(i,r[2],r[3],e.bottomRightOuter,e.bottomLeftOuter,n.left+n.width,n.top+n.height),u(i,r[3],r[0],e.bottomLeftOuter,e.topLeftOuter,n.left,n.top+n.height)}return i},e.exports=r},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,A){function r(t,e,A){var r="withCredentials"in new XMLHttpRequest;if(!e)return Promise.reject("No proxy configured");var s=i(r),c=o(e,t,s);return r?a(c):n(A,c,s).then(function(t){return u(t.content)})}function n(t,e,A){return new Promise(function(r,n){var i=t.createElement("script"),o=function(){delete window.html2canvas.proxy[A],t.body.removeChild(i)};window.html2canvas.proxy[A]=function(t){o(),r(t)},i.src=e,i.onerror=function(t){o(),n(t)},t.body.appendChild(i)})}function i(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++h+"_"+Math.round(1e5*Math.random())}function o(t,e,A){return t+"?url="+encodeURIComponent(e)+(A.length?"&callback=html2canvas.proxy."+A:"")}var a=t("./xhr"),s=t("./utils"),c=t("./log"),l=t("./clone"),u=s.decode64,h=0;A.Proxy=r,A.ProxyURL=function(t,e,A){var r="crossOrigin"in new Image,a=i(r),s=o(e,t,a);return r?Promise.resolve(s):n(A,s,a).then(function(t){return"data:"+t.type+";base64,"+t.content})},A.loadUrlDocument=function(t,e,A,n,i,o){return new r(t,e,window.document).then((a=t,function(t){var e,A=new DOMParser;try{e=A.parseFromString(t,"text/html")}catch(A){c("DOMParser not supported, falling back to createHTMLDocument"),e=document.implementation.createHTMLDocument("");try{e.open(),e.write(t),e.close()}catch(A){c("createHTMLDocument write not supported, falling back to document.body.innerHTML"),e.body.innerHTML=t}}var r=e.querySelector("base");if(!r||!r.href.host){var n=e.createElement("base");n.href=a,e.head.insertBefore(n,e.head.firstChild)}return e})).then(function(t){return l(t,A,n,i,o,0,0)});var a}},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,A){var r=t("./proxy").ProxyURL;e.exports=function(t,e){var A=document.createElement("a");A.href=t,t=A.href,this.src=t,this.image=new Image;var n=this;this.promise=new Promise(function(A,i){n.image.crossOrigin="Anonymous",n.image.onload=A,n.image.onerror=i,new r(t,e,document).then(function(t){n.image.src=t}).catch(i)})}},{"./proxy":16}],18:[function(t,e,A){function r(t,e,A){n.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===A}var n=t("./nodecontainer");r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},(r.prototype=Object.create(n.prototype)).appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",e.exports=r},{"./nodecontainer":14}],19:[function(t,e,A){function r(t,e,A,r,n){this.width=t,this.height=e,this.images=A,this.options=r,this.document=n}var n=t("./log");r.prototype.renderImage=function(t,e,A,r){var n=t.cssInt("paddingLeft"),i=t.cssInt("paddingTop"),o=t.cssInt("paddingRight"),a=t.cssInt("paddingBottom"),s=A.borders,c=e.width-(s[1].width+s[3].width+n+o),l=e.height-(s[0].width+s[2].width+i+a);this.drawImage(r,0,0,r.image.width||c,r.image.height||l,e.left+n+s[3].width,e.top+i+s[0].width,c,l)},r.prototype.renderBackground=function(t,e,A){0<e.height&&0<e.width&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,A))},r.prototype.renderBackgroundColor=function(t,e){var A=t.color("backgroundColor");A.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,A)},r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},r.prototype.renderBackgroundImage=function(t,e,A){t.parseBackgroundImages().reverse().forEach(function(r,i,o){switch(r.method){case"url":var a=this.images.get(r.args[0]);a?this.renderBackgroundRepeating(t,e,a,o.length-(i+1),A):n("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var s=this.images.get(r.value);s?this.renderBackgroundGradient(s,e,A):n("Error loading background-image",r.args[0]);break;case"none":break;default:n("Unknown background-image type",r.args[0])}},this)},r.prototype.renderBackgroundRepeating=function(t,e,A,r,n){var i=t.parseBackgroundSize(e,A.image,r),o=t.parseBackgroundPosition(e,A.image,r,i);switch(t.parseBackgroundRepeat(r)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(A,o,i,e,e.left+n[3],e.top+o.top+n[0],99999,i.height,n);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(A,o,i,e,e.left+o.left+n[3],e.top+n[0],i.width,99999,n);break;case"no-repeat":this.backgroundRepeatShape(A,o,i,e,e.left+o.left+n[3],e.top+o.top+n[0],i.width,i.height,n);break;default:this.renderBackgroundRepeat(A,o,i,{top:e.top,left:e.left},n[3],n[0])}},e.exports=r},{"./log":13}],20:[function(t,e,A){function r(t,e){i.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=t,this.canvas.height=e),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},a("Initialized CanvasRenderer with size",t,"x",e)}function n(t){return 0<t.length}var i=t("../renderer"),o=t("../lineargradientcontainer"),a=t("../log");(r.prototype=Object.create(i.prototype)).setFillStyle=function(t){return this.ctx.fillStyle="object"==typeof t&&t.isColor?t.toString():t,this.ctx},r.prototype.rectangle=function(t,e,A,r,n){this.setFillStyle(n).fillRect(t,e,A,r)},r.prototype.circle=function(t,e,A,r){this.setFillStyle(r),this.ctx.beginPath(),this.ctx.arc(t+A/2,e+A/2,A/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},r.prototype.circleStroke=function(t,e,A,r,n,i){this.circle(t,e,A,r),this.ctx.strokeStyle=i.toString(),this.ctx.stroke()},r.prototype.drawShape=function(t,e){this.shape(t),this.setFillStyle(e).fill()},r.prototype.taints=function(t){if(null===t.tainted){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),t.tainted=!1}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d"),t.tainted=!0}}return t.tainted},r.prototype.drawImage=function(t,e,A,r,n,i,o,a,s){this.taints(t)&&!this.options.allowTaint||this.ctx.drawImage(t.image,e,A,r,n,i,o,a,s)},r.prototype.clip=function(t,e,A){this.ctx.save(),t.filter(n).forEach(function(t){this.shape(t).clip()},this),e.call(A),this.ctx.restore()},r.prototype.shape=function(t){return this.ctx.beginPath(),t.forEach(function(t,e){"rect"===t[0]?this.ctx.rect.apply(this.ctx,t.slice(1)):this.ctx[0===e?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))},this),this.ctx.closePath(),this.ctx},r.prototype.font=function(t,e,A,r,n,i){this.setFillStyle(t).font=[e,A,r,n,i].join(" ").split(",")[0]},r.prototype.fontShadow=function(t,e,A,r){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",A).setVariable("shadowBlur",r)},r.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},r.prototype.setOpacity=function(t){this.ctx.globalAlpha=t},r.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]),this.ctx.transform.apply(this.ctx,t.matrix),this.ctx.translate(-t.origin[0],-t.origin[1])},r.prototype.setVariable=function(t,e){return this.variables[t]!==e&&(this.variables[t]=this.ctx[t]=e),this},r.prototype.text=function(t,e,A){this.ctx.fillText(t,e,A)},r.prototype.backgroundRepeatShape=function(t,e,A,r,n,i,o,a,s){var c=[["line",Math.round(n),Math.round(i)],["line",Math.round(n+o),Math.round(i)],["line",Math.round(n+o),Math.round(a+i)],["line",Math.round(n),Math.round(a+i)]];this.clip([c],function(){this.renderBackgroundRepeat(t,e,A,r,s[3],s[0])},this)},r.prototype.renderBackgroundRepeat=function(t,e,A,r,n,i){var o=Math.round(r.left+e.left+n),a=Math.round(r.top+e.top+i);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,A),"repeat")),this.ctx.translate(o,a),this.ctx.fill(),this.ctx.translate(-o,-a)},r.prototype.renderBackgroundGradient=function(t,e){if(t instanceof o){var A=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach(function(t){A.addColorStop(t.stop,t.color.toString())}),this.rectangle(e.left,e.top,e.width,e.height,A)}},r.prototype.resizeImage=function(t,e){var A=t.image;if(A.width===e.width&&A.height===e.height)return A;var r=document.createElement("canvas");return r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(A,0,0,A.width,A.height,0,0,e.width,e.height),r},e.exports=r},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,A){function r(t,e,A,r){n.call(this,A,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e}var n=t("./nodecontainer");(r.prototype=Object.create(n.prototype)).getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack},e.exports=r},{"./nodecontainer":14}],22:[function(t,e,A){function r(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG()}r.prototype.testRangeBounds=function(t){var e,A,r=!1;return t.createRange&&(e=t.createRange()).getBoundingClientRect&&((A=t.createElement("boundtest")).style.height="123px",A.style.display="block",t.body.appendChild(A),e.selectNode(A),123===e.getBoundingClientRect().height&&(r=!0),t.body.removeChild(A)),r},r.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},r.prototype.testSVG=function(){var t=new Image,e=document.createElement("canvas"),A=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{A.drawImage(t,0,0),e.toDataURL()}catch(t){return!1}return!0},e.exports=r},{}],23:[function(t,e,A){function r(t){this.src=t,this.image=null;var e=this;this.promise=this.hasFabric().then(function(){return e.isInline(t)?Promise.resolve(e.inlineFormatting(t)):n(t)}).then(function(t){return new Promise(function(A){window.html2canvas.svg.fabric.loadSVGFromString(t,e.createCanvas.call(e,A))})})}var n=t("./xhr"),i=t("./utils").decode64;r.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},r.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)},r.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")},r.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)},r.prototype.createCanvas=function(t){var e=this;return function(A,r){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");e.image=n.lowerCanvasEl,n.setWidth(r.width).setHeight(r.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(A,r)).renderAll(),t(n.lowerCanvasEl)}},r.prototype.decode64=function(t){return"function"==typeof window.atob?window.atob(t):i(t)},e.exports=r},{"./utils":26,"./xhr":28}],24:[function(t,e,A){function r(t,e){this.src=t,this.image=null;var A=this;this.promise=e?new Promise(function(e,r){A.image=new Image,A.image.onload=e,A.image.onerror=r,A.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(t),!0===A.image.complete&&e(A.image)}):this.hasFabric().then(function(){return new Promise(function(e){window.html2canvas.svg.fabric.parseSVGDocument(t,A.createCanvas.call(A,e))})})}var n=t("./svgcontainer");r.prototype=Object.create(n.prototype),e.exports=r},{"./svgcontainer":23}],25:[function(t,e,A){function r(t,e){i.call(this,t,e)}function n(t,e,A){if(0<t.length)return e+A.toUpperCase()}var i=t("./nodecontainer");(r.prototype=Object.create(i.prototype)).applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},r.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,n);case"uppercase":return e.toUpperCase();default:return e}},e.exports=r},{"./nodecontainer":14}],26:[function(t,e,A){A.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},A.bind=function(t,e){return function(){return t.apply(e,arguments)}},A.decode64=function(t){var e,A,r,n,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=t.length,l="";for(e=0;e<c;e+=4)i=s.indexOf(t[e])<<2|(A=s.indexOf(t[e+1]))>>4,o=(15&A)<<4|(r=s.indexOf(t[e+2]))>>2,a=(3&r)<<6|(n=s.indexOf(t[e+3])),l+=64===r?String.fromCharCode(i):64===n||-1===n?String.fromCharCode(i,o):String.fromCharCode(i,o,a);return l},A.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect(),A=null==t.offsetWidth?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+A,left:e.left,width:A,height:null==t.offsetHeight?e.height:t.offsetHeight}}return{}},A.offsetBounds=function(t){var e=t.offsetParent?A.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}},A.parseBackgrounds=function(t){var e,A,r,n,i,o,a,s=[],c=0,l=0,u=function(){e&&('"'===A.substr(0,1)&&(A=A.substr(1,A.length-2)),A&&a.push(A),"-"===e.substr(0,1)&&0<(n=e.indexOf("-",1)+1)&&(r=e.substr(0,n),e=e.substr(n)),s.push({prefix:r,method:e.toLowerCase(),value:i,args:a,image:null})),a=[],e=r=A=i=""};return a=[],e=r=A=i="",t.split("").forEach(function(t){if(!(0===c&&-1<" \r\n\t".indexOf(t))){switch(t){case'"':o?o===t&&(o=null):o=t;break;case"(":if(o)break;if(0===c)return c=1,void(i+=t);l++;break;case")":if(o)break;if(1===c){if(0===l)return c=0,i+=t,void u();l--}break;case",":if(o)break;if(0===c)return void u();if(1===c&&0===l&&!e.match(/^url$/i))return a.push(A),A="",void(i+=t)}i+=t,0===c?e+=t:A+=t}}),u(),s}},{}],27:[function(t,e,A){function r(t){n.apply(this,arguments),this.type="linear"===t.args[0]?n.TYPES.LINEAR:n.TYPES.RADIAL}var n=t("./gradientcontainer");r.prototype=Object.create(n.prototype),e.exports=r},{"./gradientcontainer":9}],28:[function(t,e,A){e.exports=function(t){return new Promise(function(e,A){var r=new XMLHttpRequest;r.open("GET",t),r.onload=function(){200===r.status?e(r.responseText):A(new Error(r.statusText))},r.onerror=function(){A(new Error("Network Error"))},r.send()})}},{}]},{},[4])(4),function(t){var e="+".charCodeAt(0),A="/".charCodeAt(0),r="0".charCodeAt(0),n="a".charCodeAt(0),i="A".charCodeAt(0),o="-".charCodeAt(0),a="_".charCodeAt(0),s=function(t){var s=t.charCodeAt(0);return s===e||s===o?62:s===A||s===a?63:s<r?-1:s<r+10?s-r+26+26:s<i+26?s-i:s<n+26?s-n+26:void 0};t.API.TTFFont=function(){function t(t,e,A){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 H(this),this.registerTTF()}return t.open=function(e,A,r,n){return new t(function(t){function e(t){a[l++]=t}var A,r,n,i,o,a;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;o="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,a=new Uint8Array(3*t.length/4-o),n=0<o?t.length-4:t.length;var l=0;for(r=A=0;A<n;A+=4,r+=3)e((16711680&(i=s(t.charAt(A))<<18|s(t.charAt(A+1))<<12|s(t.charAt(A+2))<<6|s(t.charAt(A+3))))>>16),e((65280&i)>>8),e(255&i);return 2===o?e(255&(i=s(t.charAt(A))<<2|s(t.charAt(A+1))>>4)):1===o&&(e((i=s(t.charAt(A))<<10|s(t.charAt(A+1))<<4|s(t.charAt(A+2))>>2)>>8&255),e(255&i)),a}(r),A,n)},t.prototype.parse=function(){return this.directory=new u(this.contents),this.head=new f(this),this.name=new v(this),this.cmap=new g(this),this.hhea=new B(this),this.maxp=new Q(this),this.hmtx=new C(this),this.post=new m(this),this.os2=new w(this),this.loca=new x(this),this.glyf=new b(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,A,r,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,A,r,n;for(n=[],e=0,A=(r=this.bbox).length;e<A;e++)t=r[e],n.push(Math.round(t*this.scaleFactor));return n}.call(this),this.stemV=0,this.post.exists?(A=255&(r=this.post.italic_angle),!0&(e=r>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+A)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(n=this.familyClass)||2===n||3===n||4===n||5===n||7===n,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,A){var r,n,i,o,a;for(n=o=i=0,a=(t=""+t).length;0<=a?o<a:a<o;n=0<=a?++o:--o)r=t.charCodeAt(n),i+=this.widthOfGlyph(this.characterToGlyph(r))+A*(1e3/e)||0;return i*(e/1e3)},t.prototype.lineHeight=function(t,e){var A;return null==e&&(e=!1),A=e?this.lineGap:0,(this.ascender+A-this.decender)/1e3*t},t}();var 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,A,r;for(A=[],e=r=0;0<=t?r<t:t<r;e=0<=t?++r:--r)A[e]=String.fromCharCode(this.readByte());return A.join("")},t.prototype.writeString=function(t){var e,A,r,n;for(n=[],e=A=0,r=t.length;0<=r?A<r:r<A;e=0<=r?++A:--A)n.push(this.writeByte(t.charCodeAt(e)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,A,r,n,i,o,a;return t=this.readByte(),e=this.readByte(),A=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),o=this.readByte(),a=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^A)+4294967296*(255^r)+16777216*(255^n)+65536*(255^i)+256*(255^o)+(255^a)+1):72057594037927940*t+281474976710656*e+1099511627776*A+4294967296*r+16777216*n+65536*i+256*o+a},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,A;for(e=[],A=0;0<=t?A<t:t<A;0<=t?++A:--A)e.push(this.readByte());return e},t.prototype.write=function(t){var e,A,r,n;for(n=[],A=0,r=t.length;A<r;A++)e=t[A],n.push(this.writeByte(e));return n},t}(),u=function(){function t(t){var e,A,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},A=0,r=this.tableCount;0<=r?A<r:r<A;0<=r?++A:--A)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}var e;return t.prototype.encode=function(t){var A,r,n,i,o,a,s,c,u,h,d,f,p;for(p in d=Object.keys(t).length,a=Math.log(2),u=16*Math.floor(Math.log(d)/a),i=Math.floor(u/a),c=16*d-u,(r=new l).writeInt(this.scalarType),r.writeShort(d),r.writeShort(u),r.writeShort(i),r.writeShort(c),n=16*d,s=r.pos+n,o=null,f=[],t)for(h=t[p],r.writeString(p),r.writeInt(e(h)),r.writeInt(s),r.writeInt(h.length),f=f.concat(h),"head"===p&&(o=s),s+=h.length;s%4;)f.push(0),s++;return r.write(f),A=2981146554-e(r.data),r.pos=o+8,r.writeUInt32(A),r.data},e=function(t){var e,A,r,n;for(t=U.call(t);t.length%4;)t.push(0);for(A=new l(t),r=e=0,n=t.length;r<n;r+=4)e+=A.readUInt32();return 4294967295&e},t}(),h={}.hasOwnProperty,d=function(t,e){function A(){this.constructor=t}for(var r in e)h.call(e,r)&&(t[r]=e[r]);return A.prototype=e.prototype,t.prototype=new A,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 f=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(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}(),p=function(){function t(t,e){var A,r,n,i,o,a,s,c,l,u,h,d,f,p,g,B,w,m;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(a=g=0;g<256;a=++g)this.codeMap[a]=t.readByte();break;case 4:for(h=t.readUInt16(),u=h/2,t.pos+=6,n=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),t.pos+=2,f=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),s=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),c=function(){var e,A;for(A=[],a=e=0;0<=u?e<u:u<e;a=0<=u?++e:--e)A.push(t.readUInt16());return A}(),r=(this.length-t.pos+this.offset)/2,o=function(){var e,A;for(A=[],a=e=0;0<=r?e<r:r<e;a=0<=r?++e:--e)A.push(t.readUInt16());return A}(),a=B=0,m=n.length;B<m;a=++B)for(p=n[a],A=w=d=f[a];d<=p?w<=p:p<=w;A=d<=p?++w:--w)0===c[a]?i=A+s[a]:0!==(i=o[c[a]/2+(A-d)-(u-a)]||0)&&(i+=s[a]),this.codeMap[A]=65535&i}t.pos=l}return t.encode=function(t,e){var A,r,n,i,o,a,s,c,u,h,d,f,p,g,B,w,m,y,v,Q,C,U,b,F,E,x,H,I,S,_,T,N,k,O,P,D,L,R,M,K,z,q,j,X,V,G;switch(I=new l,i=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(p=0,g=function(){var t,e;for(e=[],f=t=0;t<256;f=++t)e.push(0);return e}(),w={0:0},n={},S=0,k=i.length;S<k;S++)null==w[j=t[r=i[S]]]&&(w[j]=++p),n[r]={old:t[r],new:w[t[r]]},g[r]=w[t[r]];return I.writeUInt16(1),I.writeUInt16(0),I.writeUInt32(12),I.writeUInt16(0),I.writeUInt16(262),I.writeUInt16(0),I.write(g),{charMap:n,subtable:I.data,maxGlyphID:p+1};case"unicode":for(x=[],u=[],w={},A={},B=s=null,_=m=0,O=i.length;_<O;_++)null==w[v=t[r=i[_]]]&&(w[v]=++m),A[r]={old:v,new:w[v]},o=w[v]-r,null!=B&&o===s||(B&&u.push(B),x.push(r),s=o),B=r;for(B&&u.push(B),u.push(65535),x.push(65535),F=2*(b=x.length),U=2*Math.pow(Math.log(b)/Math.LN2,2),h=Math.log(U/2)/Math.LN2,C=2*b-U,a=[],Q=[],d=[],f=T=0,P=x.length;T<P;f=++T){if(E=x[f],c=u[f],65535===E){a.push(0),Q.push(0);break}if(32768<=E-(H=A[E].new))for(a.push(0),Q.push(2*(d.length+b-f)),r=N=E;E<=c?N<=c:c<=N;r=E<=c?++N:--N)d.push(A[r].new);else a.push(H-E),Q.push(0)}for(I.writeUInt16(3),I.writeUInt16(1),I.writeUInt32(12),I.writeUInt16(4),I.writeUInt16(16+8*b+2*d.length),I.writeUInt16(0),I.writeUInt16(F),I.writeUInt16(U),I.writeUInt16(h),I.writeUInt16(C),z=0,D=u.length;z<D;z++)r=u[z],I.writeUInt16(r);for(I.writeUInt16(0),q=0,L=x.length;q<L;q++)r=x[q],I.writeUInt16(r);for(X=0,R=a.length;X<R;X++)o=a[X],I.writeUInt16(o);for(V=0,M=Q.length;V<M;V++)y=Q[V],I.writeUInt16(y);for(G=0,K=d.length;G<K;G++)p=d[G],I.writeUInt16(p);return{charMap:A,subtable:I.data,maxGlyphID:m+1}}},t}(),g=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,A,r;for(t.pos=this.offset,this.version=t.readUInt16(),A=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=A?r<A:A<r;0<=A?++r:--r)e=new p(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var A,r;return null==e&&(e="macroman"),A=p.encode(t,e),(r=new l).writeUInt16(0),r.writeUInt16(1),A.table=r.data.concat(A.subtable),A},e}(),B=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(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}(),w=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(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,A;for(A=[],e=0;e<10;++e)A.push(t.readByte());return A}(),this.charRange=function(){var e,A;for(A=[],e=0;e<4;++e)A.push(t.readInt());return A}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),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,A;for(A=[],e=0;e<2;++e)A.push(t.readInt());return A}(),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}(),m=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="post",e.prototype.parse=function(t){var e,A,r,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:for(A=t.readUInt16(),this.glyphNameIndex=[],r=0;0<=A?r<A:A<r;0<=A?++r:--r)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)e=t.readByte(),n.push(this.names.push(t.readString(e)));return n;case 151552:return A=t.readUInt16(),this.offsets=t.read(A);case 196608:break;case 262144:return this.map=function(){var e,A,r;for(r=[],e=0,A=this.file.maxp.numGlyphs;0<=A?e<A:A<e;0<=A?++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},v=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="name",e.prototype.parse=function(t){var e,A,r,n,i,o,a,s,c,l,u,h;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),A=[],n=c=0;0<=e?c<e:e<c;n=0<=e?++c:--c)A.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(a={},n=l=0,u=A.length;l<u;n=++l)r=A[n],t.pos=r.offset,s=t.readString(r.length),i=new y(s,r),null==a[h=r.nameID]&&(a[h]=[]),a[r.nameID].push(i);return this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5],this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,""),this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},e}(),Q=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(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}(),C=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,A,r,n,i,o,a;for(t.pos=this.offset,this.metrics=[],n=0,o=this.file.hhea.numberOfMetrics;0<=o?n<o:o<n;0<=o?++n:--n)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var e,r;for(r=[],e=0;0<=A?e<A:A<e;0<=A?++e:--e)r.push(t.readInt16());return r}(),this.widths=function(){var t,e,A,n;for(n=[],t=0,e=(A=this.metrics).length;t<e;t++)r=A[t],n.push(r.advance);return n}.call(this),e=this.widths[this.widths.length-1],a=[],i=0;0<=A?i<A:A<i;0<=A?++i:--i)a.push(this.widths.push(e));return a},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),U=[].slice,b=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="glyf",e.prototype.parse=function(t){return this.cache={}},e.prototype.glyphFor=function(t){var e,A,r,n,i,o,a,s,c,u;return(t=t)in this.cache?this.cache[t]:(n=this.file.loca,e=this.file.contents,A=n.indexOf(t),0===(r=n.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+A,i=(o=new l(e.read(r))).readShort(),s=o.readShort(),u=o.readShort(),a=o.readShort(),c=o.readShort(),this.cache[t]=-1===i?new E(o,s,u,a,c):new F(o,i,s,u,a,c),this.cache[t]))},e.prototype.encode=function(t,e,A){var r,n,i,o,a;for(i=[],n=[],o=0,a=e.length;o<a;o++)r=t[e[o]],n.push(i.length),r&&(i=i.concat(r.encode(A)));return n.push(i.length),{table:i,offsets:n}},e}(),F=function(){function t(t,e,A,r,n,i){this.raw=t,this.numberOfContours=e,this.xMin=A,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),E=function(){function t(t,e,A,r,n){var i,o;for(this.raw=t,this.xMin=e,this.yMin=A,this.xMax=r,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],i=this.raw;o=i.readShort(),this.glyphOffsets.push(i.pos),this.glyphIDs.push(i.readShort()),32&o;)i.pos+=1&o?4:2,128&o?i.pos+=8:64&o?i.pos+=4:8&o&&(i.pos+=2)}return t.prototype.encode=function(t){var e,A,r,n,i;for(A=new l(U.call(this.raw.data)),e=r=0,n=(i=this.glyphIDs).length;r<n;e=++r)i[e],A.pos=this.glyphOffsets[e];return A.data},t}(),x=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return d(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,A,r;for(r=[],e=0,A=this.length;e<A;e+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,A,r;for(r=[],e=0,A=this.length;e<A;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 A=new Uint32Array(this.offsets.length),r=0,n=0,i=0;i<A.length;++i)if(A[i]=r,n<e.length&&e[n]==i){++n,A[i]=r;var o=this.offsets[i],a=this.offsets[i+1]-o;0<a&&(r+=a)}for(var s=new Array(4*A.length),c=0;c<A.length;++c)s[4*c+3]=255&A[c],s[4*c+2]=(65280&A[c])>>8,s[4*c+1]=(16711680&A[c])>>16,s[4*c]=(4278190080&A[c])>>24;return s},e}(),H=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,A,r,n;for(e in r=this.font.cmap.tables[0].codeMap,t={},n=this.subset)A=n[e],t[e]=r[A];return t},t.prototype.glyphsFor=function(t){var e,A,r,n,i,o,a;for(r={},i=0,o=t.length;i<o;i++)r[n=t[i]]=this.font.glyf.glyphFor(n);for(n in e=[],r)(null!=(A=r[n])?A.compound:void 0)&&e.push.apply(e,A.glyphIDs);if(0<e.length)for(n in a=this.glyphsFor(e))A=a[n],r[n]=A;return r},t.prototype.encode=function(t){var e,A,r,n,i,o,a,s,c,l,u,h,d,f,p;for(A in e=g.encode(this.generateCmap(),"unicode"),n=this.glyphsFor(t),u={0:0},p=e.charMap)u[(o=p[A]).old]=o.new;for(h in l=e.maxGlyphID,n)h in u||(u[h]=l++);return s=function(t){var e,A;for(e in A={},t)A[t[e]]=e;return A}(u),c=Object.keys(s).sort(function(t,e){return t-e}),d=function(){var t,e,A;for(A=[],t=0,e=c.length;t<e;t++)i=c[t],A.push(s[i]);return A}(),r=this.font.glyf.encode(n,d,u),a=this.font.loca.encode(r.offsets,d),f={cmap:this.font.cmap.raw(),glyf:r.table,loca:a,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.raw()},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},t}();t.API.PDFObject=function(){function t(){}var e;return e=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},t.convert=function(A){var r,n,i,o;if(Array.isArray(A))return"["+function(){var e,n,i;for(i=[],e=0,n=A.length;e<n;e++)r=A[e],i.push(t.convert(r));return i}().join(" ")+"]";if("string"==typeof A)return"/"+A;if(null!=A?A.isString:void 0)return"("+A+")";if(A instanceof Date)return"(D:"+e(A.getUTCFullYear(),4)+e(A.getUTCMonth(),2)+e(A.getUTCDate(),2)+e(A.getUTCHours(),2)+e(A.getUTCMinutes(),2)+e(A.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(A)){for(n in i=["<<"],A)o=A[n],i.push("/"+n+" "+t.convert(o));return i.push(">>"),i.join("\n")}return""+A},t}()}(st),Ct="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")(),Ut=function(){function t(t){var e,A,r,n,i,o,a,s,c,l,u,h,d,f;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},o=null;;){switch(e=this.readUInt32(),c=function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":o&&this.animation.frames.push(o),this.pos+=4,o={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},i=this.readUInt16(),n=this.readUInt16()||100,o.delay=1e3*i/n,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,h=0;0<=e?h<e:e<h;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if(0<(l=r-this.transparency.indexed.length))for(d=0;0<=l?d<l:l<d;0<=l?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":a=(u=this.read(e)).indexOf(0),s=String.fromCharCode.apply(String,u.slice(0,a)),this.text[s]=String.fromCharCode.apply(String,u.slice(a+1));break;case"IEND":return o&&this.animation.frames.push(o),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(f=this.colorType)||6===f,A=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*A,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}var e,A,r;t.load=function(e,A,r){var n;return"function"==typeof A&&(r=A),(n=new XMLHttpRequest).open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){var e;return e=new t(new Uint8Array(n.response||n.mozResponseArrayBuffer)),"function"==typeof(null!=A?A.getContext:void 0)&&e.render(A),"function"==typeof r?r(e):void 0},n.send(null)},t.prototype.read=function(t){var e,A;for(A=[],e=0;0<=t?e<t:t<e;0<=t?++e:--e)A.push(this.data[this.pos++]);return A},t.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.decodePixels=function(t){function e(e,o,a,s){var c,l,u,h,d,f,p,g,B,w,m,y,v,Q,C,U,b,F,E,x,H,I=Math.ceil((i.width-e)/a),S=Math.ceil((i.height-o)/s),_=i.width==I&&i.height==S;for(Q=A*I,y=_?r:new Uint8Array(Q*S),f=t.length,l=v=0;v<S&&n<f;){switch(t[n++]){case 0:for(h=b=0;b<Q;h=b+=1)y[l++]=t[n++];break;case 1:for(h=F=0;F<Q;h=F+=1)c=t[n++],d=h<A?0:y[l-A],y[l++]=(c+d)%256;break;case 2:for(h=E=0;E<Q;h=E+=1)c=t[n++],u=(h-h%A)/A,C=v&&y[(v-1)*Q+u*A+h%A],y[l++]=(C+c)%256;break;case 3:for(h=x=0;x<Q;h=x+=1)c=t[n++],u=(h-h%A)/A,d=h<A?0:y[l-A],C=v&&y[(v-1)*Q+u*A+h%A],y[l++]=(c+Math.floor((d+C)/2))%256;break;case 4:for(h=H=0;H<Q;h=H+=1)c=t[n++],u=(h-h%A)/A,d=h<A?0:y[l-A],0===v?C=U=0:(C=y[(v-1)*Q+u*A+h%A],U=u&&y[(v-1)*Q+(u-1)*A+h%A]),p=d+C-U,g=Math.abs(p-d),w=Math.abs(p-C),m=Math.abs(p-U),B=g<=w&&g<=m?d:w<=m?C:U,y[l++]=(c+B)%256;break;default:throw new Error("Invalid filter algorithm: "+t[n-1])}if(!_){var T=((o+v*s)*i.width+e)*A,N=v*Q;for(h=0;h<I;h+=1){for(var k=0;k<A;k+=1)r[T++]=y[N++];T+=(a-1)*A}}v++}}var A=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*A),n=0,i=this;return null==t&&(t=this.imgData),0===t.length?new Uint8Array(0):(t=(t=new Et(t)).getBytes(),1==i.interlaceMethod?(e(0,0,8,8),e(4,0,8,8),e(0,4,4,8),e(2,0,4,4),e(0,2,2,4),e(1,0,2,2),e(0,1,1,2)):e(0,0,1,1),r)},t.prototype.decodePalette=function(){var t,e,A,r,n,i,o,a,s;for(A=this.palette,i=this.transparency.indexed||[],n=new Uint8Array((i.length||0)+A.length),r=0,A.length,e=o=t=0,a=A.length;o<a;e=o+=3)n[r++]=A[e],n[r++]=A[e+1],n[r++]=A[e+2],n[r++]=null!=(s=i[t++])?s:255;return n},t.prototype.copyToImageData=function(t,e){var A,r,n,i,o,a,s,c,l,u,h;if(r=this.colors,l=null,A=this.hasAlphaChannel,this.palette.length&&(l=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,A=!0),c=(n=t.data||t).length,o=l||e,i=a=0,1===r)for(;i<c;)s=l?4*e[i/4]:a,u=o[s++],n[i++]=u,n[i++]=u,n[i++]=u,n[i++]=A?o[s++]:255,a=s;else for(;i<c;)s=l?4*e[i/4]:a,n[i++]=o[s++],n[i++]=o[s++],n[i++]=o[s++],n[i++]=A?o[s++]:255,a=s},t.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};try{A=Ct.document.createElement("canvas"),r=A.getContext("2d")}catch(t){return-1}return e=function(t){var e;return r.width=t.width,r.height=t.height,r.clearRect(0,0,t.width,t.height),r.putImageData(t,0,0),(e=new Image).src=A.toDataURL(),e},t.prototype.decodeFrames=function(t){var A,r,n,i,o,a,s,c;if(this.animation){for(c=[],r=o=0,a=(s=this.animation.frames).length;o<a;r=++o)A=s[r],n=t.createImageData(A.width,A.height),i=this.decodePixels(new Uint8Array(A.data)),this.copyToImageData(n,i),A.imageData=n,c.push(A.image=e(n));return c}},t.prototype.renderFrame=function(t,e){var A,r,n;return A=(r=this.animation.frames)[e],n=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=n?n.disposeOp:void 0)?t.clearRect(n.xOffset,n.yOffset,n.width,n.height):2===(null!=n?n.disposeOp:void 0)&&t.putImageData(n.imageData,n.xOffset,n.yOffset),0===A.blendOp&&t.clearRect(A.xOffset,A.yOffset,A.width,A.height),t.drawImage(A.image,A.xOffset,A.yOffset)},t.prototype.animate=function(t){var e,A,r,n,i,o,a=this;return A=0,o=this.animation,n=o.numFrames,r=o.frames,i=o.numPlays,(e=function(){var o,s;if(o=A++%n,s=r[o],a.renderFrame(t,o),1<n&&A/n<i)return a.animation._timeout=setTimeout(e,s.delay)})()},t.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},t.prototype.render=function(t){var e,A;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(A=e.createImageData(this.width,this.height),this.copyToImageData(A,this.decodePixels()),e.putImageData(A,0,0))},t}(),Ct.PNG=Ut;var Ft=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,A=e?e.byteLength:0;if(t<A)return e;for(var r=512;r<t;)r<<=1;for(var n=new Uint8Array(r),i=0;i<A;++i)n[i]=e[i];return this.buffer=n},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 A=e+t;!this.eof&&this.bufferLength<A;)this.readBlock();var r=this.bufferLength;r<A&&(A=r)}else{for(;!this.eof;)this.readBlock();A=this.bufferLength}return this.pos=A,this.buffer.subarray(e,A)},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,A){for(var r=t+e;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,t,e,A)},skip:function(t){t||(t=1),this.pos+=t},reset:function(){this.pos=0}},t}(),Et=function(){function t(t){throw new Error(t)}function e(e){var A=0,r=e[A++],n=e[A++];-1!=r&&-1!=n||t("Invalid header in flate stream"),8!=(15&r)&&t("Unknown compression method in flate stream"),((r<<8)+n)%31!=0&&t("Bad FCHECK in flate stream"),32&n&&t("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Ft.call(this)}if("undefined"!=typeof Uint32Array){var A=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),r=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]),i=[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],o=[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(e.prototype=Object.create(Ft.prototype)).getBits=function(e){for(var A,r=this.codeSize,n=this.codeBuf,i=this.bytes,o=this.bytesPos;r<e;)void 0===(A=i[o++])&&t("Bad encoding in flate stream"),n|=A<<r,r+=8;return A=n&(1<<e)-1,this.codeBuf=n>>e,this.codeSize=r-=e,this.bytesPos=o,A},e.prototype.getCode=function(e){for(var A=e[0],r=e[1],n=this.codeSize,i=this.codeBuf,o=this.bytes,a=this.bytesPos;n<r;){var s;void 0===(s=o[a++])&&t("Bad encoding in flate stream"),i|=s<<n,n+=8}var c=A[i&(1<<r)-1],l=c>>16,u=65535&c;return(0==n||n<l||0==l)&&t("Bad encoding in flate stream"),this.codeBuf=i>>l,this.codeSize=n-l,this.bytesPos=a,u},e.prototype.generateHuffmanTable=function(t){for(var e=t.length,A=0,r=0;r<e;++r)t[r]>A&&(A=t[r]);for(var n=1<<A,i=new Uint32Array(n),o=1,a=0,s=2;o<=A;++o,a<<=1,s<<=1)for(var c=0;c<e;++c)if(t[c]==o){var l=0,u=a;for(r=0;r<o;++r)l=l<<1|1&u,u>>=1;for(r=l;r<n;r+=s)i[r]=o<<16|c;++a}return[i,A]},e.prototype.readBlock=function(){function e(t,e,A,r,n){for(var i=t.getBits(A)+r;0<i--;)e[f++]=n}var a=this.getBits(3);if(1&a&&(this.eof=!0),0!=(a>>=1)){var s,c;if(1==a)s=i,c=o;else if(2==a){for(var l=this.getBits(5)+257,u=this.getBits(5)+1,h=this.getBits(4)+4,d=Array(A.length),f=0;f<h;)d[A[f++]]=this.getBits(3);for(var p=this.generateHuffmanTable(d),g=0,B=(f=0,l+u),w=new Array(B);f<B;){var m=this.getCode(p);16==m?e(this,w,2,3,g):17==m?e(this,w,3,3,g=0):18==m?e(this,w,7,11,g=0):w[f++]=g=m}s=this.generateHuffmanTable(w.slice(0,l)),c=this.generateHuffmanTable(w.slice(l,B))}else t("Unknown block type in flate stream");for(var y=(_=this.buffer)?_.length:0,v=this.bufferLength;;){var Q=this.getCode(s);if(Q<256)y<=v+1&&(y=(_=this.ensureBuffer(v+1)).length),_[v++]=Q;else{if(256==Q)return void(this.bufferLength=v);var C=(Q=r[Q-=257])>>16;0<C&&(C=this.getBits(C)),g=(65535&Q)+C,Q=this.getCode(c),0<(C=(Q=n[Q])>>16)&&(C=this.getBits(C));var U=(65535&Q)+C;y<=v+g&&(y=(_=this.ensureBuffer(v+g)).length);for(var b=0;b<g;++b,++v)_[v]=_[v-U]}}}else{var F,E=this.bytes,x=this.bytesPos;void 0===(F=E[x++])&&t("Bad block header in flate stream");var H=F;void 0===(F=E[x++])&&t("Bad block header in flate stream"),H|=F<<8,void 0===(F=E[x++])&&t("Bad block header in flate stream");var I=F;void 0===(F=E[x++])&&t("Bad block header in flate stream"),(I|=F<<8)!=(65535&~H)&&t("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var S=this.bufferLength,_=this.ensureBuffer(S+H),T=S+H;this.bufferLength=T;for(var N=S;N<T;++N){if(void 0===(F=E[x++])){this.eof=!0;break}_[N]=F}this.bytesPos=x}},e}}();return function(t){if("object"!=typeof t.console){t.console={};for(var e,A,r=t.console,n=function(){},i=["memory"],o="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=i.pop();)r[e]||(r[e]={});for(;A=o.pop();)r[A]||(r[A]=n)}var a,s,c,l,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===t.btoa&&(t.btoa=function(t){var e,A,r,n,i,o=0,a=0,s="",c=[];if(!t)return t;for(;e=(i=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,A=i>>12&63,r=i>>6&63,n=63&i,c[a++]=u.charAt(e)+u.charAt(A)+u.charAt(r)+u.charAt(n),o<t.length;);s=c.join("");var l=t.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}),void 0===t.atob&&(t.atob=function(t){var e,A,r,n,i,o,a=0,s=0,c=[];if(!t)return t;for(t+="";e=(o=u.indexOf(t.charAt(a++))<<18|u.indexOf(t.charAt(a++))<<12|(n=u.indexOf(t.charAt(a++)))<<6|(i=u.indexOf(t.charAt(a++))))>>16&255,A=o>>8&255,r=255&o,c[s++]=64==n?String.fromCharCode(e):64==i?String.fromCharCode(e,A):String.fromCharCode(e,A,r),a<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),A=e.length>>>0,r=new Array(A),n=1<arguments.length?arguments[1]:void 0,i=0;i<A;i++)i in e&&(r[i]=t.call(n,e[i],i,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 A=Object(this),r=A.length>>>0,n=0;n<r;n++)n in A&&t.call(e,A[n],n,A)}),Object.keys||(Object.keys=(a=Object.prototype.hasOwnProperty,s=!{toString:null}.propertyIsEnumerable("toString"),l=(c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError;var e,A,r=[];for(e in t)a.call(t,e)&&r.push(e);if(s)for(A=0;A<l;A++)a.call(t,c[A])&&r.push(c[A]);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 A=arguments[e];if(null!=A)for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[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,"")})}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),st}()}),i=(n.jsPDF,n.saveAs,n.GifWriter,n.GifReader,A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.PATH={VECTOR:0,BEZIER_CURVE:1,CIRCLE:2}}));e(i);i.PATH;var o=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),n=/^#([a-f0-9]{3})$/i,i=function(t){var e=t.match(n);return!!e&&[parseInt(e[1][0]+e[1][0],16),parseInt(e[1][1]+e[1][1],16),parseInt(e[1][2]+e[1][2],16),null]},o=/^#([a-f0-9]{6})$/i,a=function(t){var e=t.match(o);return!!e&&[parseInt(e[1].substring(0,2),16),parseInt(e[1].substring(2,4),16),parseInt(e[1].substring(4,6),16),null]},s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,c=function(t){var e=t.match(s);return!!e&&[Number(e[1]),Number(e[2]),Number(e[3]),null]},l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/,u=function(t){var e=t.match(l);return!!(e&&e.length>4)&&[Number(e[1]),Number(e[2]),Number(e[3]),Number(e[4])]},h=function(t){return[Math.min(t[0],255),Math.min(t[1],255),Math.min(t[2],255),t.length>3?t[3]:null]},d=function(t){var e=p[t.toLowerCase()];return e||!1},f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=Array.isArray(e)?h(e):i(e)||c(e)||u(e)||d(e)||a(e)||[0,0,0,null],n=A(r,4),o=n[0],s=n[1],l=n[2],f=n[3];this.r=o,this.g=s,this.b=l,this.a=f}return r(t,[{key:"isTransparent",value:function(){return 0===this.a}},{key:"toString",value:function(){return null!==this.a&&1!==this.a?"rgba("+this.r+","+this.g+","+this.b+","+this.a+")":"rgb("+this.r+","+this.g+","+this.b+")"}}]),t}();e.default=f;var p={transparent:[0,0,0,0],aliceblue:[240,248,255,null],antiquewhite:[250,235,215,null],aqua:[0,255,255,null],aquamarine:[127,255,212,null],azure:[240,255,255,null],beige:[245,245,220,null],bisque:[255,228,196,null],black:[0,0,0,null],blanchedalmond:[255,235,205,null],blue:[0,0,255,null],blueviolet:[138,43,226,null],brown:[165,42,42,null],burlywood:[222,184,135,null],cadetblue:[95,158,160,null],chartreuse:[127,255,0,null],chocolate:[210,105,30,null],coral:[255,127,80,null],cornflowerblue:[100,149,237,null],cornsilk:[255,248,220,null],crimson:[220,20,60,null],cyan:[0,255,255,null],darkblue:[0,0,139,null],darkcyan:[0,139,139,null],darkgoldenrod:[184,134,11,null],darkgray:[169,169,169,null],darkgreen:[0,100,0,null],darkgrey:[169,169,169,null],darkkhaki:[189,183,107,null],darkmagenta:[139,0,139,null],darkolivegreen:[85,107,47,null],darkorange:[255,140,0,null],darkorchid:[153,50,204,null],darkred:[139,0,0,null],darksalmon:[233,150,122,null],darkseagreen:[143,188,143,null],darkslateblue:[72,61,139,null],darkslategray:[47,79,79,null],darkslategrey:[47,79,79,null],darkturquoise:[0,206,209,null],darkviolet:[148,0,211,null],deeppink:[255,20,147,null],deepskyblue:[0,191,255,null],dimgray:[105,105,105,null],dimgrey:[105,105,105,null],dodgerblue:[30,144,255,null],firebrick:[178,34,34,null],floralwhite:[255,250,240,null],forestgreen:[34,139,34,null],fuchsia:[255,0,255,null],gainsboro:[220,220,220,null],ghostwhite:[248,248,255,null],gold:[255,215,0,null],goldenrod:[218,165,32,null],gray:[128,128,128,null],green:[0,128,0,null],greenyellow:[173,255,47,null],grey:[128,128,128,null],honeydew:[240,255,240,null],hotpink:[255,105,180,null],indianred:[205,92,92,null],indigo:[75,0,130,null],ivory:[255,255,240,null],khaki:[240,230,140,null],lavender:[230,230,250,null],lavenderblush:[255,240,245,null],lawngreen:[124,252,0,null],lemonchiffon:[255,250,205,null],lightblue:[173,216,230,null],lightcoral:[240,128,128,null],lightcyan:[224,255,255,null],lightgoldenrodyellow:[250,250,210,null],lightgray:[211,211,211,null],lightgreen:[144,238,144,null],lightgrey:[211,211,211,null],lightpink:[255,182,193,null],lightsalmon:[255,160,122,null],lightseagreen:[32,178,170,null],lightskyblue:[135,206,250,null],lightslategray:[119,136,153,null],lightslategrey:[119,136,153,null],lightsteelblue:[176,196,222,null],lightyellow:[255,255,224,null],lime:[0,255,0,null],limegreen:[50,205,50,null],linen:[250,240,230,null],magenta:[255,0,255,null],maroon:[128,0,0,null],mediumaquamarine:[102,205,170,null],mediumblue:[0,0,205,null],mediumorchid:[186,85,211,null],mediumpurple:[147,112,219,null],mediumseagreen:[60,179,113,null],mediumslateblue:[123,104,238,null],mediumspringgreen:[0,250,154,null],mediumturquoise:[72,209,204,null],mediumvioletred:[199,21,133,null],midnightblue:[25,25,112,null],mintcream:[245,255,250,null],mistyrose:[255,228,225,null],moccasin:[255,228,181,null],navajowhite:[255,222,173,null],navy:[0,0,128,null],oldlace:[253,245,230,null],olive:[128,128,0,null],olivedrab:[107,142,35,null],orange:[255,165,0,null],orangered:[255,69,0,null],orchid:[218,112,214,null],palegoldenrod:[238,232,170,null],palegreen:[152,251,152,null],paleturquoise:[175,238,238,null],palevioletred:[219,112,147,null],papayawhip:[255,239,213,null],peachpuff:[255,218,185,null],peru:[205,133,63,null],pink:[255,192,203,null],plum:[221,160,221,null],powderblue:[176,224,230,null],purple:[128,0,128,null],rebeccapurple:[102,51,153,null],red:[255,0,0,null],rosybrown:[188,143,143,null],royalblue:[65,105,225,null],saddlebrown:[139,69,19,null],salmon:[250,128,114,null],sandybrown:[244,164,96,null],seagreen:[46,139,87,null],seashell:[255,245,238,null],sienna:[160,82,45,null],silver:[192,192,192,null],skyblue:[135,206,235,null],slateblue:[106,90,205,null],slategray:[112,128,144,null],slategrey:[112,128,144,null],snow:[255,250,250,null],springgreen:[0,255,127,null],steelblue:[70,130,180,null],tan:[210,180,140,null],teal:[0,128,128,null],thistle:[216,191,216,null],tomato:[255,99,71,null],turquoise:[64,224,208,null],violet:[238,130,238,null],wheat:[245,222,179,null],white:[255,255,255,null],whitesmoke:[245,245,245,null],yellow:[255,255,0,null],yellowgreen:[154,205,50,null]};e.TRANSPARENT=new f([0,0,0,0])});e(o);o.TRANSPARENT;var a=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseTextDecoration=e.TEXT_DECORATION_LINE=e.TEXT_DECORATION=e.TEXT_DECORATION_STYLE=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(o),r=e.TEXT_DECORATION_STYLE={SOLID:0,DOUBLE:1,DOTTED:2,DASHED:3,WAVY:4},n=e.TEXT_DECORATION={NONE:null},i=e.TEXT_DECORATION_LINE={UNDERLINE:1,OVERLINE:2,LINE_THROUGH:3,BLINK:4},a=function(t){switch(t){case"underline":return i.UNDERLINE;case"overline":return i.OVERLINE;case"line-through":return i.LINE_THROUGH}return i.BLINK};e.parseTextDecoration=function(t){var e=function(t){return"none"===t?null:t.split(" ").map(a)}(t.textDecorationLine?t.textDecorationLine:t.textDecoration);if(null===e)return n.NONE;return{textDecorationLine:e,textDecorationColor:t.textDecorationColor?new A.default(t.textDecorationColor):null,textDecorationStyle:function(t){switch(t){case"double":return r.DOUBLE;case"dotted":return r.DOTTED;case"dashed":return r.DASHED;case"wavy":return r.WAVY}return r.SOLID}(t.textDecorationStyle)}}});e(a);a.parseTextDecoration,a.TEXT_DECORATION_LINE,a.TEXT_DECORATION,a.TEXT_DECORATION_STYLE;var s=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=function(t,e){var A=Math.max.apply(null,t.colorStops.map(function(t){return t.stop})),r=1/Math.max(1,A);t.colorStops.forEach(function(t){e.addColorStop(r*t.stop,t.color.toString())})},n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e||document.createElement("canvas")}return A(t,[{key:"render",value:function(t){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.y),this.ctx.textBaseline="bottom",t.logger.log("Canvas renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+this.options.scale)}},{key:"clip",value:function(t,e){var A=this;t.length&&(this.ctx.save(),t.forEach(function(t){A.path(t),A.ctx.clip()})),e(),t.length&&this.ctx.restore()}},{key:"drawImage",value:function(t,e,A){this.ctx.drawImage(t,e.left,e.top,e.width,e.height,A.left,A.top,A.width,A.height)}},{key:"drawShape",value:function(t,e){this.path(t),this.ctx.fillStyle=e.toString(),this.ctx.fill()}},{key:"fill",value:function(t){this.ctx.fillStyle=t.toString(),this.ctx.fill()}},{key:"getTarget",value:function(){return this.canvas.getContext("2d").setTransform(1,0,0,1,0,0),Promise.resolve(this.canvas)}},{key:"path",value:function(t){var e=this;this.ctx.beginPath(),Array.isArray(t)?t.forEach(function(t,A){var r=t.type===i.PATH.VECTOR?t:t.start;0===A?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),t.type===i.PATH.BEZIER_CURVE&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}):this.ctx.arc(t.x+t.radius,t.y+t.radius,t.radius,0,2*Math.PI,!0),this.ctx.closePath()}},{key:"rectangle",value:function(t,e,A,r,n){this.ctx.fillStyle=n.toString(),this.ctx.fillRect(t,e,A,r)}},{key:"renderLinearGradient",value:function(t,e){var A=this.ctx.createLinearGradient(t.left+e.direction.x1,t.top+e.direction.y1,t.left+e.direction.x0,t.top+e.direction.y0);r(e,A),this.ctx.fillStyle=A,this.ctx.fillRect(t.left,t.top,t.width,t.height)}},{key:"renderRadialGradient",value:function(t,e){var A=this,n=t.left+e.center.x,i=t.top+e.center.y,o=this.ctx.createRadialGradient(n,i,0,n,i,e.radius.x);if(o)if(r(e,o),this.ctx.fillStyle=o,e.radius.x!==e.radius.y){var a=t.left+.5*t.width,s=t.top+.5*t.height,c=e.radius.y/e.radius.x,l=1/c;this.transform(a,s,[1,0,0,c,0,0],function(){return A.ctx.fillRect(t.left,l*(t.top-s)+s,t.width,t.height*l)})}else this.ctx.fillRect(t.left,t.top,t.width,t.height)}},{key:"renderRepeat",value:function(t,e,A,r,n){this.path(t),this.ctx.fillStyle=this.ctx.createPattern(this.resizeImage(e,A),"repeat"),this.ctx.translate(r,n),this.ctx.fill(),this.ctx.translate(-r,-n)}},{key:"renderTextNode",value:function(t,e,A,r,n){var i=this;this.ctx.font=[A.fontStyle,A.fontVariant,A.fontWeight,A.fontSize,A.fontFamily].join(" "),t.forEach(function(t){if(i.ctx.fillStyle=e.toString(),n&&t.text.trim().length?n.slice(0).reverse().forEach(function(e){i.ctx.shadowColor=e.color.toString(),i.ctx.shadowOffsetX=e.offsetX*i.options.scale,i.ctx.shadowOffsetY=e.offsetY*i.options.scale,i.ctx.shadowBlur=e.blur,i.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height)}):i.ctx.fillText(t.text,t.bounds.left,t.bounds.top+t.bounds.height),null!==r){var o=r.textDecorationColor||e;r.textDecorationLine.forEach(function(e){switch(e){case a.TEXT_DECORATION_LINE.UNDERLINE:var r=i.options.fontMetrics.getMetrics(A).baseline;i.rectangle(t.bounds.left,Math.round(t.bounds.top+r),t.bounds.width,1,o);break;case a.TEXT_DECORATION_LINE.OVERLINE:i.rectangle(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1,o);break;case a.TEXT_DECORATION_LINE.LINE_THROUGH:var n=i.options.fontMetrics.getMetrics(A).middle;i.rectangle(t.bounds.left,Math.ceil(t.bounds.top+n),t.bounds.width,1,o)}})}})}},{key:"resizeImage",value:function(t,e){if(t.width===e.width&&t.height===e.height)return t;var A=this.canvas.ownerDocument.createElement("canvas");A.width=e.width,A.height=e.height;return A.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height),A}},{key:"setOpacity",value:function(t){this.ctx.globalAlpha=t}},{key:"transform",value:function(t,e,A,r){this.ctx.save(),this.ctx.translate(t,e),this.ctx.transform(A[0],A[1],A[2],A[3],A[4],A[5]),this.ctx.translate(-t,-e),r(),this.ctx.restore()}}]),t}();e.default=n});e(s);var c=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=function(){function t(e,A,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.enabled="undefined"!=typeof window&&e,this.start=r||Date.now(),this.id=A}return A(t,[{key:"child",value:function(e){return new t(this.enabled,e,this.start)}},{key:"log",value:function(){if(this.enabled&&window.console&&window.console.log){for(var t=arguments.length,e=Array(t),A=0;A<t;A++)e[A]=arguments[A];Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-this.start+"ms",this.id?"html2canvas ("+this.id+"):":"html2canvas:"].concat([].slice.call(e,0)))}}},{key:"error",value:function(){if(this.enabled&&window.console&&window.console.error){for(var t=arguments.length,e=Array(t),A=0;A<t;A++)e[A]=arguments[A];Function.prototype.bind.call(window.console.error,window.console).apply(window.console,[Date.now()-this.start+"ms",this.id?"html2canvas ("+this.id+"):":"html2canvas:"].concat([].slice.call(e,0)))}}}]),t}();e.default=r});e(c);var l=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.contains=function(t,e){return 0!=(t&e)},e.distance=function(t,e){return Math.sqrt(t*t+e*e)},e.copyCSSStyles=function(t,e){for(var A=t.length-1;A>=0;A--){var r=t.item(A);"content"!==r&&e.style.setProperty(r,t.getPropertyValue(r))}return e},e.SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});e(l);l.contains,l.distance,l.copyCSSStyles,l.SMALL_IMAGE;var u=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.calculateLengthFromValueWithUnit=e.LENGTH_TYPE=void 0;var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=(function(t){t&&t.__esModule}(G),e.LENGTH_TYPE={PX:0,PERCENTAGE:1}),n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type="%"===e.substr(e.length-1)?r.PERCENTAGE:r.PX;var A=parseFloat(e);this.value=isNaN(A)?0:A}return A(t,[{key:"isPercentage",value:function(){return this.type===r.PERCENTAGE}},{key:"getAbsoluteValue",value:function(t){return this.isPercentage()?t*(this.value/100):this.value}}],[{key:"create",value:function(e){return new t(e)}}]),t}();e.default=n;e.calculateLengthFromValueWithUnit=function(t,e,A){switch(A){case"px":case"%":return new n(e+A);case"em":case"rem":var r=new n(e);return r.value*="em"===A?parseFloat(t.style.font.fontSize):function t(e){var A=e.parent;return A?t(A):parseFloat(e.style.font.fontSize)}(t),r;default:return new n("0")}}});e(u);u.calculateLengthFromValueWithUnit,u.LENGTH_TYPE;var h=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,A){!function(e,A){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.width=e,this.height=A}});e(h);var d=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,A){!function(e,A){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.type=i.PATH.VECTOR,this.x=e,this.y=A}});e(d);var f=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(d),n=function(t,e,A){return new r.default(t.x+(e.x-t.x)*A,t.y+(e.y-t.y)*A)},o=function(){function t(e,A,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.type=i.PATH.BEZIER_CURVE,this.start=e,this.startControl=A,this.endControl=r,this.end=n}return A(t,[{key:"subdivide",value:function(e,A){var r=n(this.start,this.startControl,e),i=n(this.startControl,this.endControl,e),o=n(this.endControl,this.end,e),a=n(r,i,e),s=n(i,o,e),c=n(a,s,e);return A?new t(this.start,r,a,c):new t(c,s,o,this.end)}},{key:"reverse",value:function(){return new t(this.end,this.endControl,this.startControl,this.start)}}]),t}();e.default=o});e(f);var p=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseBoundCurves=e.calculatePaddingBoxPath=e.calculateBorderBoxPath=e.parsePathForBorder=e.parseDocumentSize=e.calculateContentBox=e.calculatePaddingBox=e.parseBounds=e.Bounds=void 0;var r=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),n=A(d),i=A(f),o=e.Bounds=function(){function t(e,A,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.left=e,this.top=A,this.width=r,this.height=n}return r(t,null,[{key:"fromClientRect",value:function(e,A,r){return new t(e.left+A,e.top+r,e.width,e.height)}}]),t}(),a=(e.parseBounds=function(t,e,A){return o.fromClientRect(t.getBoundingClientRect(),e,A)},e.calculatePaddingBox=function(t,e){return new o(t.left+e[3].borderWidth,t.top+e[0].borderWidth,t.width-(e[1].borderWidth+e[3].borderWidth),t.height-(e[0].borderWidth+e[2].borderWidth))},e.calculateContentBox=function(t,e,A){var r=e[0].value,n=e[1].value,i=e[2].value,a=e[3].value;return new o(t.left+a+A[3].borderWidth,t.top+r+A[0].borderWidth,t.width-(A[1].borderWidth+A[3].borderWidth+a+n),t.height-(A[0].borderWidth+A[2].borderWidth+r+i))},e.parseDocumentSize=function(t){var e=t.body,A=t.documentElement;if(!e||!A)throw new Error("");var r=Math.max(Math.max(e.scrollWidth,A.scrollWidth),Math.max(e.offsetWidth,A.offsetWidth),Math.max(e.clientWidth,A.clientWidth)),n=Math.max(Math.max(e.scrollHeight,A.scrollHeight),Math.max(e.offsetHeight,A.offsetHeight),Math.max(e.clientHeight,A.clientHeight));return new o(0,0,r,n)},e.parsePathForBorder=function(t,e){switch(e){case 0:return a(t.topLeftOuter,t.topLeftInner,t.topRightOuter,t.topRightInner);case 1:return a(t.topRightOuter,t.topRightInner,t.bottomRightOuter,t.bottomRightInner);case 2:return a(t.bottomRightOuter,t.bottomRightInner,t.bottomLeftOuter,t.bottomLeftInner);case 3:default:return a(t.bottomLeftOuter,t.bottomLeftInner,t.topLeftOuter,t.topLeftInner)}},function(t,e,A,r){var n=[];return t instanceof i.default?n.push(t.subdivide(.5,!1)):n.push(t),A instanceof i.default?n.push(A.subdivide(.5,!0)):n.push(A),r instanceof i.default?n.push(r.subdivide(.5,!0).reverse()):n.push(r),e instanceof i.default?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n}),s=(e.calculateBorderBoxPath=function(t){return[t.topLeftOuter,t.topRightOuter,t.bottomRightOuter,t.bottomLeftOuter]},e.calculatePaddingBoxPath=function(t){return[t.topLeftInner,t.topRightInner,t.bottomRightInner,t.bottomLeftInner]},e.parseBoundCurves=function(t,e,A){var r=A[s.TOP_LEFT][0].getAbsoluteValue(t.width),i=A[s.TOP_LEFT][1].getAbsoluteValue(t.height),o=A[s.TOP_RIGHT][0].getAbsoluteValue(t.width),a=A[s.TOP_RIGHT][1].getAbsoluteValue(t.height),l=A[s.BOTTOM_RIGHT][0].getAbsoluteValue(t.width),u=A[s.BOTTOM_RIGHT][1].getAbsoluteValue(t.height),h=A[s.BOTTOM_LEFT][0].getAbsoluteValue(t.width),d=A[s.BOTTOM_LEFT][1].getAbsoluteValue(t.height),f=[];f.push((r+o)/t.width),f.push((h+l)/t.width),f.push((i+d)/t.height),f.push((a+u)/t.height);var p=Math.max.apply(Math,f);p>1&&(r/=p,i/=p,o/=p,a/=p,l/=p,u/=p,h/=p,d/=p);var g=t.width-o,B=t.height-u,w=t.width-l,m=t.height-d;return{topLeftOuter:r>0||i>0?c(t.left,t.top,r,i,s.TOP_LEFT):new n.default(t.left,t.top),topLeftInner:r>0||i>0?c(t.left+e[3].borderWidth,t.top+e[0].borderWidth,Math.max(0,r-e[3].borderWidth),Math.max(0,i-e[0].borderWidth),s.TOP_LEFT):new n.default(t.left+e[3].borderWidth,t.top+e[0].borderWidth),topRightOuter:o>0||a>0?c(t.left+g,t.top,o,a,s.TOP_RIGHT):new n.default(t.left+t.width,t.top),topRightInner:o>0||a>0?c(t.left+Math.min(g,t.width+e[3].borderWidth),t.top+e[0].borderWidth,g>t.width+e[3].borderWidth?0:o-e[3].borderWidth,a-e[0].borderWidth,s.TOP_RIGHT):new n.default(t.left+t.width-e[1].borderWidth,t.top+e[0].borderWidth),bottomRightOuter:l>0||u>0?c(t.left+w,t.top+B,l,u,s.BOTTOM_RIGHT):new n.default(t.left+t.width,t.top+t.height),bottomRightInner:l>0||u>0?c(t.left+Math.min(w,t.width-e[3].borderWidth),t.top+Math.min(B,t.height+e[0].borderWidth),Math.max(0,l-e[1].borderWidth),u-e[2].borderWidth,s.BOTTOM_RIGHT):new n.default(t.left+t.width-e[1].borderWidth,t.top+t.height-e[2].borderWidth),bottomLeftOuter:h>0||d>0?c(t.left,t.top+m,h,d,s.BOTTOM_LEFT):new n.default(t.left,t.top+t.height),bottomLeftInner:h>0||d>0?c(t.left+e[3].borderWidth,t.top+m,Math.max(0,h-e[3].borderWidth),d-e[2].borderWidth,s.BOTTOM_LEFT):new n.default(t.left+e[3].borderWidth,t.top+t.height-e[2].borderWidth)}},{TOP_LEFT:0,TOP_RIGHT:1,BOTTOM_RIGHT:2,BOTTOM_LEFT:3}),c=function(t,e,A,r,o){var a=(Math.sqrt(2)-1)/3*4,c=A*a,l=r*a,u=t+A,h=e+r;switch(o){case s.TOP_LEFT:return new i.default(new n.default(t,h),new n.default(t,h-l),new n.default(u-c,e),new n.default(u,e));case s.TOP_RIGHT:return new i.default(new n.default(t,e),new n.default(t+c,e),new n.default(u,h-l),new n.default(u,h));case s.BOTTOM_RIGHT:return new i.default(new n.default(u,e),new n.default(u,e+l),new n.default(t+c,h),new n.default(t,h));case s.BOTTOM_LEFT:default:return new i.default(new n.default(u,h),new n.default(u-c,h),new n.default(t,e+l),new n.default(t,e))}}});e(p);p.parseBoundCurves,p.calculatePaddingBoxPath,p.calculateBorderBoxPath,p.parsePathForBorder,p.parseDocumentSize,p.calculateContentBox,p.calculatePaddingBox,p.parseBounds,p.Bounds;var g=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.PADDING_SIDES=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(u),r=(e.PADDING_SIDES={TOP:0,RIGHT:1,BOTTOM:2,LEFT:3},["top","right","bottom","left"]);e.parsePadding=function(t){return r.map(function(e){return new A.default(t.getPropertyValue("padding-"+e))})}});e(g);g.parsePadding,g.PADDING_SIDES;var B=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.parseBackgroundImage=e.parseBackground=e.calculateBackgroundRepeatPath=e.calculateBackgroundPosition=e.calculateBackgroungPositioningArea=e.calculateBackgroungPaintingArea=e.calculateGradientBackgroundSize=e.calculateBackgroundSize=e.BACKGROUND_ORIGIN=e.BACKGROUND_CLIP=e.BACKGROUND_SIZE=e.BACKGROUND_REPEAT=void 0;var r=A(o),n=A(u),i=A(h),a=A(d),s=e.BACKGROUND_REPEAT={REPEAT:0,NO_REPEAT:1,REPEAT_X:2,REPEAT_Y:3},c=e.BACKGROUND_SIZE={AUTO:0,CONTAIN:1,COVER:2,LENGTH:3},l=e.BACKGROUND_CLIP={BORDER_BOX:0,PADDING_BOX:1,CONTENT_BOX:2},f=e.BACKGROUND_ORIGIN=l,B=function t(e){switch(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e){case"contain":this.size=c.CONTAIN;break;case"cover":this.size=c.COVER;break;case"auto":this.size=c.AUTO;break;default:this.value=new n.default(e)}},w=(e.calculateBackgroundSize=function(t,e,A){var r=0,n=0,o=t.size;if(o[0].size===c.CONTAIN||o[0].size===c.COVER){var a=A.width/A.height,s=e.width/e.height;return a<s!=(o[0].size===c.COVER)?new i.default(A.width,A.width/s):new i.default(A.height*s,A.height)}return o[0].value&&(r=o[0].value.getAbsoluteValue(A.width)),o[0].size===c.AUTO&&o[1].size===c.AUTO?n=e.height:o[1].size===c.AUTO?n=r/e.width*e.height:o[1].value&&(n=o[1].value.getAbsoluteValue(A.height)),o[0].size===c.AUTO&&(r=n/e.height*e.width),new i.default(r,n)},e.calculateGradientBackgroundSize=function(t,e){var A=t.size,r=A[0].value?A[0].value.getAbsoluteValue(e.width):e.width,n=A[1].value?A[1].value.getAbsoluteValue(e.height):A[0].value?r:e.height;return new i.default(r,n)},new B("auto")),m=(e.calculateBackgroungPaintingArea=function(t,e){switch(e){case l.BORDER_BOX:return(0,p.calculateBorderBoxPath)(t);case l.PADDING_BOX:default:return(0,p.calculatePaddingBoxPath)(t)}},e.calculateBackgroungPositioningArea=function(t,e,A,r){var n=(0,p.calculatePaddingBox)(e,r);switch(t){case f.BORDER_BOX:return e;case f.CONTENT_BOX:var i=A[g.PADDING_SIDES.LEFT].getAbsoluteValue(e.width),o=A[g.PADDING_SIDES.RIGHT].getAbsoluteValue(e.width),a=A[g.PADDING_SIDES.TOP].getAbsoluteValue(e.width),s=A[g.PADDING_SIDES.BOTTOM].getAbsoluteValue(e.width);return new p.Bounds(n.left+i,n.top+a,n.width-i-o,n.height-a-s);case f.PADDING_BOX:default:return n}},e.calculateBackgroundPosition=function(t,e,A){return new a.default(t[0].getAbsoluteValue(A.width-e.width),t[1].getAbsoluteValue(A.height-e.height))},e.calculateBackgroundRepeatPath=function(t,e,A,r,n){switch(t.repeat){case s.REPEAT_X:return[new a.default(Math.round(n.left),Math.round(r.top+e.y)),new a.default(Math.round(n.left+n.width),Math.round(r.top+e.y)),new a.default(Math.round(n.left+n.width),Math.round(A.height+r.top+e.y)),new a.default(Math.round(n.left),Math.round(A.height+r.top+e.y))];case s.REPEAT_Y:return[new a.default(Math.round(r.left+e.x),Math.round(n.top)),new a.default(Math.round(r.left+e.x+A.width),Math.round(n.top)),new a.default(Math.round(r.left+e.x+A.width),Math.round(n.height+n.top)),new a.default(Math.round(r.left+e.x),Math.round(n.height+n.top))];case s.NO_REPEAT:return[new a.default(Math.round(r.left+e.x),Math.round(r.top+e.y)),new a.default(Math.round(r.left+e.x+A.width),Math.round(r.top+e.y)),new a.default(Math.round(r.left+e.x+A.width),Math.round(r.top+e.y+A.height)),new a.default(Math.round(r.left+e.x),Math.round(r.top+e.y+A.height))];default:return[new a.default(Math.round(n.left),Math.round(n.top)),new a.default(Math.round(n.left+n.width),Math.round(n.top)),new a.default(Math.round(n.left+n.width),Math.round(n.height+n.top)),new a.default(Math.round(n.left),Math.round(n.height+n.top))]}},e.parseBackground=function(t,e){return{backgroundColor:new r.default(t.backgroundColor),backgroundImage:v(t,e),backgroundClip:m(t.backgroundClip),backgroundOrigin:y(t.backgroundOrigin)}},function(t){switch(t){case"padding-box":return l.PADDING_BOX;case"content-box":return l.CONTENT_BOX}return l.BORDER_BOX}),y=function(t){switch(t){case"padding-box":return f.PADDING_BOX;case"content-box":return f.CONTENT_BOX}return f.BORDER_BOX},v=function(t,e){var A=U(t.backgroundImage).map(function(t){if("url"===t.method){var A=e.loadImage(t.args[0]);t.args=A?[A]:[]}return t}),r=t.backgroundPosition.split(","),n=t.backgroundRepeat.split(","),i=t.backgroundSize.split(",");return A.map(function(t,e){var A=(i[e]||"auto").trim().split(" ").map(Q),o=(r[e]||"auto").trim().split(" ").map(C);return{source:t,repeat:function(t){switch(t.trim()){case"no-repeat":return s.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return s.REPEAT_X;case"repeat-y":case"no-repeat repeat":return s.REPEAT_Y;case"repeat":return s.REPEAT}return s.REPEAT}("string"==typeof n[e]?n[e]:n[0]),size:A.length<2?[A[0],w]:[A[0],A[1]],position:o.length<2?[o[0],o[0]]:[o[0],o[1]]}})},Q=function(t){return"auto"===t?w:new B(t)},C=function(t){switch(t){case"bottom":case"right":return new n.default("100%");case"left":case"top":return new n.default("0%");case"auto":return new n.default("0")}return new n.default(t)},U=e.parseBackgroundImage=function(t){var e=/^\s$/,A=[],r=[],n="",i=null,o="",a=0,s=0,c=function(){var t="";if(n){'"'===o.substr(0,1)&&(o=o.substr(1,o.length-2)),o&&r.push(o.trim());var e=n.indexOf("-",1)+1;"-"===n.substr(0,1)&&e>0&&(t=n.substr(0,e).toLowerCase(),n=n.substr(e)),"none"!==(n=n.toLowerCase())&&A.push({prefix:t,method:n,args:r})}r=[],n=o=""};return t.split("").forEach(function(t){if(0!==a||!e.test(t)){switch(t){case'"':i?i===t&&(i=null):i=t;break;case"(":if(i)break;if(0===a)return void(a=1);s++;break;case")":if(i)break;if(1===a){if(0===s)return a=0,void c();s--}break;case",":if(i)break;if(0===a)return void c();if(1===a&&0===s&&!n.match(/^url$/i))return r.push(o.trim()),void(o="")}0===a?n+=t:o+=t}}),c(),A}});e(B);B.parseBackgroundImage,B.parseBackground,B.calculateBackgroundRepeatPath,B.calculateBackgroundPosition,B.calculateBackgroungPositioningArea,B.calculateBackgroungPaintingArea,B.calculateGradientBackgroundSize,B.calculateBackgroundSize,B.BACKGROUND_ORIGIN,B.BACKGROUND_CLIP,B.BACKGROUND_SIZE,B.BACKGROUND_REPEAT;var w=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseBorder=e.BORDER_SIDES=e.BORDER_STYLE=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(o),r=e.BORDER_STYLE={NONE:0,SOLID:1},n=e.BORDER_SIDES={TOP:0,RIGHT:1,BOTTOM:2,LEFT:3},i=Object.keys(n).map(function(t){return t.toLowerCase()});e.parseBorder=function(t){return i.map(function(e){var n=new A.default(t.getPropertyValue("border-"+e+"-color")),i=function(t){switch(t){case"none":return r.NONE}return r.SOLID}(t.getPropertyValue("border-"+e+"-style")),o=parseFloat(t.getPropertyValue("border-"+e+"-width"));return{borderColor:n,borderStyle:i,borderWidth:isNaN(o)?0:o}})}});e(w);w.parseBorder,w.BORDER_SIDES,w.BORDER_STYLE;var m=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseBorderRadius=void 0;var A=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(u),n=["top-left","top-right","bottom-right","bottom-left"];e.parseBorderRadius=function(t){return n.map(function(e){var n=t.getPropertyValue("border-"+e+"-radius").split(" ").map(r.default.create),i=A(n,2),o=i[0],a=i[1];return void 0===a?[o,o]:[o,a]})}});e(m);m.parseBorderRadius;var y=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.DISPLAY={NONE:1,BLOCK:2,INLINE:4,RUN_IN:8,FLOW:16,FLOW_ROOT:32,TABLE:64,FLEX:128,GRID:256,RUBY:512,SUBGRID:1024,LIST_ITEM:2048,TABLE_ROW_GROUP:4096,TABLE_HEADER_GROUP:8192,TABLE_FOOTER_GROUP:16384,TABLE_ROW:32768,TABLE_CELL:65536,TABLE_COLUMN_GROUP:1<<17,TABLE_COLUMN:1<<18,TABLE_CAPTION:1<<19,RUBY_BASE:1<<20,RUBY_TEXT:1<<21,RUBY_BASE_CONTAINER:1<<22,RUBY_TEXT_CONTAINER:1<<23,CONTENTS:1<<24,INLINE_BLOCK:1<<25,INLINE_LIST_ITEM:1<<26,INLINE_TABLE:1<<27,INLINE_FLEX:1<<28,INLINE_GRID:1<<29},r=function(t,e){return t|function(t){switch(t){case"block":return A.BLOCK;case"inline":return A.INLINE;case"run-in":return A.RUN_IN;case"flow":return A.FLOW;case"flow-root":return A.FLOW_ROOT;case"table":return A.TABLE;case"flex":return A.FLEX;case"grid":return A.GRID;case"ruby":return A.RUBY;case"subgrid":return A.SUBGRID;case"list-item":return A.LIST_ITEM;case"table-row-group":return A.TABLE_ROW_GROUP;case"table-header-group":return A.TABLE_HEADER_GROUP;case"table-footer-group":return A.TABLE_FOOTER_GROUP;case"table-row":return A.TABLE_ROW;case"table-cell":return A.TABLE_CELL;case"table-column-group":return A.TABLE_COLUMN_GROUP;case"table-column":return A.TABLE_COLUMN;case"table-caption":return A.TABLE_CAPTION;case"ruby-base":return A.RUBY_BASE;case"ruby-text":return A.RUBY_TEXT;case"ruby-base-container":return A.RUBY_BASE_CONTAINER;case"ruby-text-container":return A.RUBY_TEXT_CONTAINER;case"contents":return A.CONTENTS;case"inline-block":return A.INLINE_BLOCK;case"inline-list-item":return A.INLINE_LIST_ITEM;case"inline-table":return A.INLINE_TABLE;case"inline-flex":return A.INLINE_FLEX;case"inline-grid":return A.INLINE_GRID}return A.NONE}(e)};e.parseDisplay=function(t){return t.split(" ").reduce(r,0)}});e(y);y.DISPLAY,y.parseDisplay;var v=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.FLOAT={NONE:0,LEFT:1,RIGHT:2,INLINE_START:3,INLINE_END:4};e.parseCSSFloat=function(t){switch(t){case"left":return A.LEFT;case"right":return A.RIGHT;case"inline-start":return A.INLINE_START;case"inline-end":return A.INLINE_END}return A.NONE}});e(v);v.FLOAT,v.parseCSSFloat;var Q=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.parseFont=function(t){return{fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,fontVariant:t.fontVariant,fontWeight:function(t){switch(t){case"normal":return 400;case"bold":return 700}var e=parseInt(t,10);return isNaN(e)?400:e}(t.fontWeight)}}});e(Q);Q.parseFont;var C=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.parseLetterSpacing=function(t){if("normal"===t)return 0;var e=parseFloat(t);return isNaN(e)?0:e}});e(C);C.parseLetterSpacing;var U=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.LINE_BREAK={NORMAL:"normal",STRICT:"strict"};e.parseLineBreak=function(t){switch(t){case"strict":return A.STRICT;case"normal":default:return A.NORMAL}}});e(U);U.LINE_BREAK,U.parseLineBreak;var b=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseListStyle=e.parseListStyleType=e.LIST_STYLE_TYPE=e.LIST_STYLE_POSITION=void 0;var A=e.LIST_STYLE_POSITION={INSIDE:0,OUTSIDE:1},r=e.LIST_STYLE_TYPE={NONE:-1,DISC:0,CIRCLE:1,SQUARE:2,DECIMAL:3,CJK_DECIMAL:4,DECIMAL_LEADING_ZERO:5,LOWER_ROMAN:6,UPPER_ROMAN:7,LOWER_GREEK:8,LOWER_ALPHA:9,UPPER_ALPHA:10,ARABIC_INDIC:11,ARMENIAN:12,BENGALI:13,CAMBODIAN:14,CJK_EARTHLY_BRANCH:15,CJK_HEAVENLY_STEM:16,CJK_IDEOGRAPHIC:17,DEVANAGARI:18,ETHIOPIC_NUMERIC:19,GEORGIAN:20,GUJARATI:21,GURMUKHI:22,HEBREW:22,HIRAGANA:23,HIRAGANA_IROHA:24,JAPANESE_FORMAL:25,JAPANESE_INFORMAL:26,KANNADA:27,KATAKANA:28,KATAKANA_IROHA:29,KHMER:30,KOREAN_HANGUL_FORMAL:31,KOREAN_HANJA_FORMAL:32,KOREAN_HANJA_INFORMAL:33,LAO:34,LOWER_ARMENIAN:35,MALAYALAM:36,MONGOLIAN:37,MYANMAR:38,ORIYA:39,PERSIAN:40,SIMP_CHINESE_FORMAL:41,SIMP_CHINESE_INFORMAL:42,TAMIL:43,TELUGU:44,THAI:45,TIBETAN:46,TRAD_CHINESE_FORMAL:47,TRAD_CHINESE_INFORMAL:48,UPPER_ARMENIAN:49,DISCLOSURE_OPEN:50,DISCLOSURE_CLOSED:51},n=e.parseListStyleType=function(t){switch(t){case"disc":return r.DISC;case"circle":return r.CIRCLE;case"square":return r.SQUARE;case"decimal":return r.DECIMAL;case"cjk-decimal":return r.CJK_DECIMAL;case"decimal-leading-zero":return r.DECIMAL_LEADING_ZERO;case"lower-roman":return r.LOWER_ROMAN;case"upper-roman":return r.UPPER_ROMAN;case"lower-greek":return r.LOWER_GREEK;case"lower-alpha":return r.LOWER_ALPHA;case"upper-alpha":return r.UPPER_ALPHA;case"arabic-indic":return r.ARABIC_INDIC;case"armenian":return r.ARMENIAN;case"bengali":return r.BENGALI;case"cambodian":return r.CAMBODIAN;case"cjk-earthly-branch":return r.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return r.CJK_HEAVENLY_STEM;case"cjk-ideographic":return r.CJK_IDEOGRAPHIC;case"devanagari":return r.DEVANAGARI;case"ethiopic-numeric":return r.ETHIOPIC_NUMERIC;case"georgian":return r.GEORGIAN;case"gujarati":return r.GUJARATI;case"gurmukhi":return r.GURMUKHI;case"hebrew":return r.HEBREW;case"hiragana":return r.HIRAGANA;case"hiragana-iroha":return r.HIRAGANA_IROHA;case"japanese-formal":return r.JAPANESE_FORMAL;case"japanese-informal":return r.JAPANESE_INFORMAL;case"kannada":return r.KANNADA;case"katakana":return r.KATAKANA;case"katakana-iroha":return r.KATAKANA_IROHA;case"khmer":return r.KHMER;case"korean-hangul-formal":return r.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return r.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return r.KOREAN_HANJA_INFORMAL;case"lao":return r.LAO;case"lower-armenian":return r.LOWER_ARMENIAN;case"malayalam":return r.MALAYALAM;case"mongolian":return r.MONGOLIAN;case"myanmar":return r.MYANMAR;case"oriya":return r.ORIYA;case"persian":return r.PERSIAN;case"simp-chinese-formal":return r.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return r.SIMP_CHINESE_INFORMAL;case"tamil":return r.TAMIL;case"telugu":return r.TELUGU;case"thai":return r.THAI;case"tibetan":return r.TIBETAN;case"trad-chinese-formal":return r.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return r.TRAD_CHINESE_INFORMAL;case"upper-armenian":return r.UPPER_ARMENIAN;case"disclosure-open":return r.DISCLOSURE_OPEN;case"disclosure-closed":return r.DISCLOSURE_CLOSED;case"none":default:return r.NONE}},i=(e.parseListStyle=function(t){var e=(0,B.parseBackgroundImage)(t.getPropertyValue("list-style-image"));return{listStyleType:n(t.getPropertyValue("list-style-type")),listStyleImage:e.length?e[0]:null,listStylePosition:i(t.getPropertyValue("list-style-position"))}},function(t){switch(t){case"inside":return A.INSIDE;case"outside":default:return A.OUTSIDE}})});e(b);b.parseListStyle,b.parseListStyleType,b.LIST_STYLE_TYPE,b.LIST_STYLE_POSITION;var F=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseMargin=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(u),r=["top","right","bottom","left"];e.parseMargin=function(t){return r.map(function(e){return new A.default(t.getPropertyValue("margin-"+e))})}});e(F);F.parseMargin;var E=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.OVERFLOW={VISIBLE:0,HIDDEN:1,SCROLL:2,AUTO:3};e.parseOverflow=function(t){switch(t){case"hidden":return A.HIDDEN;case"scroll":return A.SCROLL;case"auto":return A.AUTO;case"visible":default:return A.VISIBLE}}});e(E);E.OVERFLOW,E.parseOverflow;var x=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.OVERFLOW_WRAP={NORMAL:0,BREAK_WORD:1};e.parseOverflowWrap=function(t){switch(t){case"break-word":return A.BREAK_WORD;case"normal":default:return A.NORMAL}}});e(x);x.OVERFLOW_WRAP,x.parseOverflowWrap;var H=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.POSITION={STATIC:0,RELATIVE:1,ABSOLUTE:2,FIXED:3,STICKY:4};e.parsePosition=function(t){switch(t){case"relative":return A.RELATIVE;case"absolute":return A.ABSOLUTE;case"fixed":return A.FIXED;case"sticky":return A.STICKY}return A.STATIC}});e(H);H.POSITION,H.parsePosition;var I=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseTextShadow=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(o),r=/^([+-]|\d|\.)$/i;e.parseTextShadow=function(t){if("none"===t||"string"!=typeof t)return null;for(var e="",n=!1,i=[],o=[],a=0,s=null,c=function(){e.length&&(n?i.push(parseFloat(e)):s=new A.default(e)),n=!1,e=""},l=function(){i.length&&null!==s&&o.push({color:s,offsetX:i[0]||0,offsetY:i[1]||0,blur:i[2]||0}),i.splice(0,i.length),s=null},u=0;u<t.length;u++){var h=t[u];switch(h){case"(":e+=h,a++;break;case")":e+=h,a--;break;case",":0===a?(c(),l()):e+=h;break;case" ":0===a?c():e+=h;break;default:0===e.length&&r.test(h)&&(n=!0),e+=h}}return c(),l(),0===o.length?null:o}});e(I);I.parseTextShadow;var S=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.TEXT_TRANSFORM={NONE:0,LOWERCASE:1,UPPERCASE:2,CAPITALIZE:3};e.parseTextTransform=function(t){switch(t){case"uppercase":return A.UPPERCASE;case"lowercase":return A.LOWERCASE;case"capitalize":return A.CAPITALIZE}return A.NONE}});e(S);S.TEXT_TRANSFORM,S.parseTextTransform;var _=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseTransform=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(u),r=function(t){return parseFloat(t.trim())},n=/(matrix|matrix3d)\((.+)\)/,i=(e.parseTransform=function(t){var e=o(t.transform||t.webkitTransform||t.mozTransform||t.msTransform||t.oTransform);return null===e?null:{transform:e,transformOrigin:i(t.transformOrigin||t.webkitTransformOrigin||t.mozTransformOrigin||t.msTransformOrigin||t.oTransformOrigin)}},function(t){if("string"!=typeof t){var e=new A.default("0");return[e,e]}var r=t.split(" ").map(A.default.create);return[r[0],r[1]]}),o=function(t){if("none"===t||"string"!=typeof t)return null;var e=t.match(n);if(e){if("matrix"===e[1]){var A=e[2].split(",").map(r);return[A[0],A[1],A[2],A[3],A[4],A[5]]}var i=e[2].split(",").map(r);return[i[0],i[1],i[4],i[5],i[12],i[13]]}return null}});e(_);_.parseTransform;var T=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.VISIBILITY={VISIBLE:0,HIDDEN:1,COLLAPSE:2};e.parseVisibility=function(t){switch(t){case"hidden":return A.HIDDEN;case"collapse":return A.COLLAPSE;case"visible":default:return A.VISIBLE}}});e(T);T.VISIBILITY,T.parseVisibility;var N=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=e.WORD_BREAK={NORMAL:"normal",BREAK_ALL:"break-all",KEEP_ALL:"keep-all"};e.parseWordBreak=function(t){switch(t){case"break-all":return A.BREAK_ALL;case"keep-all":return A.KEEP_ALL;case"normal":default:return A.NORMAL}}});e(N);N.WORD_BREAK,N.parseWordBreak;var k=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.parseZIndex=function(t){var e="auto"===t;return{auto:e,order:e?0:parseInt(t,10)}}});e(k);k.parseZIndex;var O=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e}return A(t,[{key:"render",value:function(t){var e=this;this.options=t,this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),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",t.logger.log("ForeignObject renderer initialized ("+t.width+"x"+t.height+" at "+t.x+","+t.y+") with scale "+t.scale);var A=n(Math.max(t.windowWidth,t.width)*t.scale,Math.max(t.windowHeight,t.height)*t.scale,t.scrollX*t.scale,t.scrollY*t.scale,this.element);return i(A).then(function(A){return t.backgroundColor&&(e.ctx.fillStyle=t.backgroundColor.toString(),e.ctx.fillRect(0,0,t.width*t.scale,t.height*t.scale)),e.ctx.drawImage(A,-t.x*t.scale,-t.y*t.scale),e.canvas})}}]),t}();e.default=r;var n=e.createForeignObjectSVG=function(t,e,A,r,n){var i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject");return o.setAttributeNS(null,"width",t),o.setAttributeNS(null,"height",e),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",A),a.setAttributeNS(null,"y",r),a.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(a),a.appendChild(n),o},i=e.loadSerializedSVG=function(t){return new Promise(function(e,A){var r=new Image;r.onload=function(){return e(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))})}});e(O);O.createForeignObjectSVG,O.loadSerializedSVG;var P=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},r={get SUPPORT_RANGE_BOUNDS(){var t=function(t){if(t.createRange){var e=t.createRange();if(e.getBoundingClientRect){var A=t.createElement("boundtest");A.style.height="123px",A.style.display="block",t.body.appendChild(A),e.selectNode(A);var r=e.getBoundingClientRect(),n=Math.round(r.height);if(t.body.removeChild(A),123===n)return!0}}return!1}(document);return Object.defineProperty(r,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=function(t){var e=new Image,A=t.createElement("canvas"),r=A.getContext("2d");e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),A.toDataURL()}catch(t){return!1}return!0}(document);return Object.defineProperty(r,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_BASE64_DRAWING(){return function(t){var e=function(t,e){var A=new Image,r=t.createElement("canvas"),n=r.getContext("2d");return new Promise(function(t){A.src=e;var i=function(){try{n.drawImage(A,0,0),r.toDataURL()}catch(e){return t(!1)}return t(!0)};A.onload=i,A.onerror=function(){return t(!1)},!0===A.complete&&setTimeout(function(){i()},500)})}(document,t);return Object.defineProperty(r,"SUPPORT_BASE64_DRAWING",{value:function(){return e}}),e}},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"==typeof Array.from&&"function"==typeof window.fetch?function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var r=e.getContext("2d");r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,100,100);var n=new Image,i=e.toDataURL();n.src=i;var o=(0,O.createForeignObjectSVG)(100,100,0,0,n);return r.fillStyle="red",r.fillRect(0,0,100,100),(0,O.loadSerializedSVG)(o).then(function(e){r.drawImage(e,0,0);var n=r.getImageData(0,0,100,100).data;r.fillStyle="red",r.fillRect(0,0,100,100);var o=t.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height="100px",A(n)?(0,O.loadSerializedSVG)((0,O.createForeignObjectSVG)(100,100,0,0,o)):Promise.reject(!1)}).then(function(t){return r.drawImage(t,0,0),A(r.getImageData(0,0,100,100).data)}).catch(function(t){return!1})}(document):Promise.resolve(!1);return Object.defineProperty(r,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=void 0!==(new Image).crossOrigin;return Object.defineProperty(r,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(r,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(r,"SUPPORT_CORS_XHR",{value:t}),t}};e.default=r});e(P);var D=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.toCodePoints=function(t){for(var e=[],A=0,r=t.length;A<r;){var n=t.charCodeAt(A++);if(n>=55296&&n<=56319&&A<r){var i=t.charCodeAt(A++);56320==(64512&i)?e.push(((1023&n)<<10)+(1023&i)+65536):(e.push(n),A--)}else e.push(n)}return e},e.fromCodePoint=function(){if(String.fromCodePoint)return String.fromCodePoint.apply(String,arguments);var t=arguments.length;if(!t)return"";for(var e=[],A=-1,r="";++A<t;){var n=arguments.length<=A?void 0:arguments[A];n<=65535?e.push(n):(n-=65536,e.push(55296+(n>>10),n%1024+56320)),(A+1===t||e.length>16384)&&(r+=String.fromCharCode.apply(String,e),e.length=0)}return r};for(var A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<A.length;n++)r[A.charCodeAt(n)]=n;e.decode=function(t){var e=.75*t.length,A=t.length,n=void 0,i=0,o=void 0,a=void 0,s=void 0,c=void 0;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(n=0;n<A;n+=4)o=r[t.charCodeAt(n)],a=r[t.charCodeAt(n+1)],s=r[t.charCodeAt(n+2)],c=r[t.charCodeAt(n+3)],u[i++]=o<<2|a>>4,u[i++]=(15&a)<<4|s>>2,u[i++]=(3&s)<<6|63&c;return l},e.polyUint16Array=function(t){for(var e=t.length,A=[],r=0;r<e;r+=2)A.push(t[r+1]<<8|t[r]);return A},e.polyUint32Array=function(t){for(var e=t.length,A=[],r=0;r<e;r+=4)A.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return A}});e(D);D.toCodePoints,D.fromCodePoint,D.decode,D.polyUint16Array,D.polyUint32Array;var L=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Trie=e.createTrieFromBase64=e.UTRIE2_INDEX_2_MASK=e.UTRIE2_INDEX_2_BLOCK_LENGTH=e.UTRIE2_OMITTED_BMP_INDEX_1_LENGTH=e.UTRIE2_INDEX_1_OFFSET=e.UTRIE2_UTF8_2B_INDEX_2_LENGTH=e.UTRIE2_UTF8_2B_INDEX_2_OFFSET=e.UTRIE2_INDEX_2_BMP_LENGTH=e.UTRIE2_LSCP_INDEX_2_LENGTH=e.UTRIE2_DATA_MASK=e.UTRIE2_DATA_BLOCK_LENGTH=e.UTRIE2_LSCP_INDEX_2_OFFSET=e.UTRIE2_SHIFT_1_2=e.UTRIE2_INDEX_SHIFT=e.UTRIE2_SHIFT_1=e.UTRIE2_SHIFT_2=void 0;var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=e.UTRIE2_SHIFT_2=5,n=e.UTRIE2_SHIFT_1=11,i=e.UTRIE2_INDEX_SHIFT=2,o=e.UTRIE2_SHIFT_1_2=n-r,a=e.UTRIE2_LSCP_INDEX_2_OFFSET=65536>>r,s=e.UTRIE2_DATA_BLOCK_LENGTH=1<<r,c=e.UTRIE2_DATA_MASK=s-1,l=e.UTRIE2_LSCP_INDEX_2_LENGTH=1024>>r,u=e.UTRIE2_INDEX_2_BMP_LENGTH=a+l,h=e.UTRIE2_UTF8_2B_INDEX_2_OFFSET=u,d=e.UTRIE2_UTF8_2B_INDEX_2_LENGTH=32,f=e.UTRIE2_INDEX_1_OFFSET=h+d,p=e.UTRIE2_OMITTED_BMP_INDEX_1_LENGTH=65536>>n,g=e.UTRIE2_INDEX_2_BLOCK_LENGTH=1<<o,B=e.UTRIE2_INDEX_2_MASK=g-1,w=(e.createTrieFromBase64=function(t){var e=(0,D.decode)(t),A=Array.isArray(e)?(0,D.polyUint32Array)(e):new Uint32Array(e),r=Array.isArray(e)?(0,D.polyUint16Array)(e):new Uint16Array(e),n=r.slice(12,A[4]/2),i=2===A[5]?r.slice((24+A[4])/2):A.slice(Math.ceil((24+A[4])/4));return new w(A[0],A[1],A[2],A[3],n,i)},e.Trie=function(){function t(e,A,r,n,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initialValue=e,this.errorValue=A,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=o}return A(t,[{key:"get",value:function(t){var e=void 0;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>r],e=(e<<i)+(t&c),this.data[e];if(t<=65535)return e=this.index[a+(t-55296>>r)],e=(e<<i)+(t&c),this.data[e];if(t<this.highStart)return e=f-p+(t>>n),e=this.index[e],e+=t>>r&B,e=this.index[e],e=(e<<i)+(t&c),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue}}]),t}())});e(L);L.Trie,L.createTrieFromBase64,L.UTRIE2_INDEX_2_MASK,L.UTRIE2_INDEX_2_BLOCK_LENGTH,L.UTRIE2_OMITTED_BMP_INDEX_1_LENGTH,L.UTRIE2_INDEX_1_OFFSET,L.UTRIE2_UTF8_2B_INDEX_2_LENGTH,L.UTRIE2_UTF8_2B_INDEX_2_OFFSET,L.UTRIE2_INDEX_2_BMP_LENGTH,L.UTRIE2_LSCP_INDEX_2_LENGTH,L.UTRIE2_DATA_MASK,L.UTRIE2_DATA_BLOCK_LENGTH,L.UTRIE2_LSCP_INDEX_2_OFFSET,L.UTRIE2_SHIFT_1_2,L.UTRIE2_INDEX_SHIFT,L.UTRIE2_SHIFT_1,L.UTRIE2_SHIFT_2;var R=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.LineBreaker=e.inlineBreakOpportunities=e.lineBreakAtIndex=e.codePointsToCharacterClasses=e.UnicodeTrie=e.BREAK_ALLOWED=e.BREAK_NOT_ALLOWED=e.BREAK_MANDATORY=e.classes=e.LETTER_NUMBER_MODIFIER=void 0;var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(t){return t&&t.__esModule?t:{default:t}}("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),i=e.LETTER_NUMBER_MODIFIER=50,o=10,a=13,s=15,c=17,l=18,u=19,h=20,d=21,f=22,p=24,g=25,B=26,w=27,m=28,y=30,v=32,Q=33,C=34,U=35,b=37,F=38,E=39,x=40,H=42,I=(e.classes={BK:1,CR:2,LF:3,CM:4,NL:5,SG:6,WJ:7,ZW:8,GL:9,SP:o,ZWJ:11,B2:12,BA:a,BB:14,HY:s,CB:16,CL:c,CP:l,EX:u,IN:h,NS:d,OP:f,QU:23,IS:p,NU:g,PO:B,PR:w,SY:m,AI:29,AL:y,CJ:31,EB:v,EM:Q,H2:C,H3:U,HL:36,ID:b,JL:F,JV:E,JT:x,RI:41,SA:H,XX:43},e.BREAK_MANDATORY="!"),S=e.BREAK_NOT_ALLOWED="×",_=e.BREAK_ALLOWED="÷",T=e.UnicodeTrie=(0,L.createTrieFromBase64)(n.default),N=[y,36],k=[1,2,3,5],O=[o,8],P=[w,B],R=k.concat(O),M=[F,E,x,C,U],K=[s,a],z=e.codePointsToCharacterClasses=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"strict",A=[],r=[],n=[];return t.forEach(function(t,o){var a=T.get(t);if(a>i?(n.push(!0),a-=i):n.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(o),A.push(16);if(4===a||11===a){if(0===o)return r.push(o),A.push(y);var s=A[o-1];return-1===R.indexOf(s)?(r.push(r[o-1]),A.push(s)):(r.push(o),A.push(y))}return r.push(o),31===a?A.push("strict"===e?d:b):a===H?A.push(y):29===a?A.push(y):43===a?t>=131072&&t<=196605||t>=196608&&t<=262141?A.push(b):A.push(y):void A.push(a)}),[r,A,n]},q=function(t,e,A,r){var n=r[A];if(Array.isArray(t)?-1!==t.indexOf(n):t===n)for(var i=A;i<=r.length;){var a=r[++i];if(a===e)return!0;if(a!==o)break}if(n===o)for(var s=A;s>0;){var c=r[--s];if(Array.isArray(t)?-1!==t.indexOf(c):t===c)for(var l=A;l<=r.length;){var u=r[++l];if(u===e)return!0;if(u!==o)break}if(c!==o)break}return!1},j=function(t,e){for(var A=t;A>=0;){var r=e[A];if(r!==o)return r;A--}return 0},X=function(t,e,A,r,n){if(0===A[r])return S;var i=r-1;if(Array.isArray(n)&&!0===n[i])return S;var y=i-1,H=i+1,D=e[i],L=y>=0?e[y]:0,R=e[H];if(2===D&&3===R)return S;if(-1!==k.indexOf(D))return I;if(-1!==k.indexOf(R))return S;if(-1!==O.indexOf(R))return S;if(8===j(i,e))return _;if(11===T.get(t[i])&&(R===b||R===v||R===Q))return S;if(7===D||7===R)return S;if(9===D)return S;if(-1===[o,a,s].indexOf(D)&&9===R)return S;if(-1!==[c,l,u,p,m].indexOf(R))return S;if(j(i,e)===f)return S;if(q(23,f,i,e))return S;if(q([c,l],d,i,e))return S;if(q(12,12,i,e))return S;if(D===o)return _;if(23===D||23===R)return S;if(16===R||16===D)return _;if(-1!==[a,s,d].indexOf(R)||14===D)return S;if(36===L&&-1!==K.indexOf(D))return S;if(D===m&&36===R)return S;if(R===h&&-1!==N.concat(h,u,g,b,v,Q).indexOf(D))return S;if(-1!==N.indexOf(R)&&D===g||-1!==N.indexOf(D)&&R===g)return S;if(D===w&&-1!==[b,v,Q].indexOf(R)||-1!==[b,v,Q].indexOf(D)&&R===B)return S;if(-1!==N.indexOf(D)&&-1!==P.indexOf(R)||-1!==P.indexOf(D)&&-1!==N.indexOf(R))return S;if(-1!==[w,B].indexOf(D)&&(R===g||-1!==[f,s].indexOf(R)&&e[H+1]===g)||-1!==[f,s].indexOf(D)&&R===g||D===g&&-1!==[g,m,p].indexOf(R))return S;if(-1!==[g,m,p,c,l].indexOf(R))for(var z=i;z>=0;){var X=e[z];if(X===g)return S;if(-1===[m,p].indexOf(X))break;z--}if(-1!==[w,B].indexOf(R))for(var V=-1!==[c,l].indexOf(D)?y:i;V>=0;){var G=e[V];if(G===g)return S;if(-1===[m,p].indexOf(G))break;V--}if(F===D&&-1!==[F,E,C,U].indexOf(R)||-1!==[E,C].indexOf(D)&&-1!==[E,x].indexOf(R)||-1!==[x,U].indexOf(D)&&R===x)return S;if(-1!==M.indexOf(D)&&-1!==[h,B].indexOf(R)||-1!==M.indexOf(R)&&D===w)return S;if(-1!==N.indexOf(D)&&-1!==N.indexOf(R))return S;if(D===p&&-1!==N.indexOf(R))return S;if(-1!==N.concat(g).indexOf(D)&&R===f||-1!==N.concat(g).indexOf(R)&&D===l)return S;if(41===D&&41===R){for(var W=A[i],Y=1;W>0&&(W--,41===e[W]);)Y++;if(Y%2!=0)return S}return D===v&&R===Q?S:_},V=(e.lineBreakAtIndex=function(t,e){if(0===e)return S;if(e>=t.length)return I;var A=z(t),n=r(A,2),i=n[0],o=n[1];return X(t,o,i,e)},function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var A=z(t,e.lineBreak),n=r(A,3),i=n[0],o=n[1],a=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(o=o.map(function(t){return-1!==[g,y,H].indexOf(t)?b:t}));return[i,o,"keep-all"===e.wordBreak?a.map(function(e,A){return e&&t[A]>=19968&&t[A]<=40959}):null]}),G=(e.inlineBreakOpportunities=function(t,e){var A=(0,D.toCodePoints)(t),n=S,i=V(A,e),o=r(i,3),a=o[0],s=o[1],c=o[2];return A.forEach(function(t,e){n+=(0,D.fromCodePoint)(t)+(e>=A.length-1?I:X(A,s,a,e+1,c))}),n},function(){function t(e,A,r,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._codePoints=e,this.required=A===I,this.start=r,this.end=n}return A(t,[{key:"slice",value:function(){return D.fromCodePoint.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,A=Array(t.length);e<t.length;e++)A[e]=t[e];return A}return Array.from(t)}(this._codePoints.slice(this.start,this.end)))}}]),t}());e.LineBreaker=function(t,e){var A=(0,D.toCodePoints)(t),n=V(A,e),i=r(n,3),o=i[0],a=i[1],s=i[2],c=A.length,l=0,u=0;return{next:function(){if(u>=c)return{done:!0};for(var t=S;u<c&&(t=X(A,a,o,++u,s))===S;);if(t!==S||u===c){var e=new G(A,t,l,u);return l=u,{value:e,done:!1}}return{done:!0}}}}});e(R);R.LineBreaker,R.inlineBreakOpportunities,R.lineBreakAtIndex,R.codePointsToCharacterClasses,R.UnicodeTrie,R.BREAK_ALLOWED,R.BREAK_NOT_ALLOWED,R.BREAK_MANDATORY,R.classes,R.LETTER_NUMBER_MODIFIER;var M=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"toCodePoints",{enumerable:!0,get:function(){return D.toCodePoints}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return D.fromCodePoint}}),Object.defineProperty(e,"LineBreaker",{enumerable:!0,get:function(){return R.LineBreaker}})});e(M);var K=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.breakWords=e.fromCodePoint=e.toCodePoints=void 0,Object.defineProperty(e,"toCodePoints",{enumerable:!0,get:function(){return M.toCodePoints}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return M.fromCodePoint}});(function(t){t&&t.__esModule})(G),e.breakWords=function(t,e){for(var A=(0,M.LineBreaker)(t,{lineBreak:e.style.lineBreak,wordBreak:e.style.overflowWrap===x.OVERFLOW_WRAP.BREAK_WORD?"break-word":e.style.wordBreak}),r=[],n=void 0;!(n=A.next()).done;)r.push(n.value.slice());return r}});e(K);K.breakWords,K.fromCodePoint,K.toCodePoints;var z=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseTextBounds=e.TextBounds=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(P),r=e.TextBounds=function t(e,A){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.text=e,this.bounds=A},n=(e.parseTextBounds=function(t,e,o){for(var s=0!==e.style.letterSpacing?(0,K.toCodePoints)(t).map(function(t){return(0,K.fromCodePoint)(t)}):(0,K.breakWords)(t,e),c=s.length,l=o.parentNode?o.parentNode.ownerDocument.defaultView:null,u=l?l.pageXOffset:0,h=l?l.pageYOffset:0,d=[],f=0,p=0;p<c;p++){var g=s[p];if(e.style.textDecoration!==a.TEXT_DECORATION.NONE||g.trim().length>0)if(A.default.SUPPORT_RANGE_BOUNDS)d.push(new r(g,i(o,f,g.length,u,h)));else{var B=o.splitText(g.length);d.push(new r(g,n(o,u,h))),o=B}else A.default.SUPPORT_RANGE_BOUNDS||(o=o.splitText(g.length));f+=g.length}return d},function(t,e,A){var r=t.ownerDocument.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=(0,p.parseBounds)(r,e,A);return r.firstChild&&n.replaceChild(r.firstChild,r),i}return new p.Bounds(0,0,0,0)}),i=function(t,e,A,r,n){var i=t.ownerDocument.createRange();return i.setStart(t,e),i.setEnd(t,e+A),p.Bounds.fromClientRect(i.getBoundingClientRect(),r,n)}});e(z);z.parseTextBounds,z.TextBounds;var q=A(function(t,e){function A(t,e,A){return t.length>0?e+A.toUpperCase():t}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),n=function(){function t(e,A,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.text=e,this.parent=A,this.bounds=r}return r(t,null,[{key:"fromTextNode",value:function(e,A){var r=o(e.data,A.style.textTransform);return new t(r,A,(0,z.parseTextBounds)(r,A,e))}}]),t}();e.default=n;var i=/(^|\s|:|-|\(|\))([a-z])/g,o=function(t,e){switch(e){case S.TEXT_TRANSFORM.LOWERCASE:return t.toLowerCase();case S.TEXT_TRANSFORM.CAPITALIZE:return t.replace(i,A);case S.TEXT_TRANSFORM.UPPERCASE:return t.toUpperCase();default:return t}}});e(q);var j=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});e.default=function t(e,A,r){!function(e,A){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.type=i.PATH.CIRCLE,this.x=e,this.y=A,this.radius=r}});e(j);var X=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.reformatInputBounds=e.inlineSelectElement=e.inlineTextAreaElement=e.inlineInputElement=e.getInputBorderRadius=e.INPUT_BACKGROUND=e.INPUT_BORDERS=e.INPUT_COLOR=void 0;var r=A(q),n=A(j),i=A(d),a=A(o),s=A(u),c=(e.INPUT_COLOR=new a.default([42,42,42]),new a.default([165,165,165])),h=new a.default([222,222,222]),f={borderWidth:1,borderColor:c,borderStyle:w.BORDER_STYLE.SOLID},p=(e.INPUT_BORDERS=[f,f,f,f],e.INPUT_BACKGROUND={backgroundColor:h,backgroundImage:[],backgroundClip:B.BACKGROUND_CLIP.PADDING_BOX,backgroundOrigin:B.BACKGROUND_ORIGIN.PADDING_BOX},new s.default("50%")),g=[p,p],m=[g,g,g,g],y=new s.default("3px"),v=[y,y],Q=[v,v,v,v],C=(e.getInputBorderRadius=function(t){return"radio"===t.type?m:Q},e.inlineInputElement=function(t,e){if("radio"===t.type||"checkbox"===t.type){if(t.checked){var A=Math.min(e.bounds.width,e.bounds.height);e.childNodes.push("checkbox"===t.type?[new i.default(e.bounds.left+.39363*A,e.bounds.top+.79*A),new i.default(e.bounds.left+.16*A,e.bounds.top+.5549*A),new i.default(e.bounds.left+.27347*A,e.bounds.top+.44071*A),new i.default(e.bounds.left+.39694*A,e.bounds.top+.5649*A),new i.default(e.bounds.left+.72983*A,e.bounds.top+.23*A),new i.default(e.bounds.left+.84*A,e.bounds.top+.34085*A),new i.default(e.bounds.left+.39363*A,e.bounds.top+.79*A)]:new n.default(e.bounds.left+A/4,e.bounds.top+A/4,A/4))}}else C(U(t),t,e,!1)},e.inlineTextAreaElement=function(t,e){C(t.value,t,e,!0)},e.inlineSelectElement=function(t,e){var A=t.options[t.selectedIndex||0];C(A?A.text||"":"",t,e,!1)},e.reformatInputBounds=function(t){return t.width>t.height?(t.left+=(t.width-t.height)/2,t.width=t.height):t.width<t.height&&(t.top+=(t.height-t.width)/2,t.height=t.width),t},function(t,e,A,n){var i=e.ownerDocument.body;if(t.length>0&&i){var o=e.ownerDocument.createElement("html2canvaswrapper");(0,l.copyCSSStyles)(e.ownerDocument.defaultView.getComputedStyle(e,null),o),o.style.position="absolute",o.style.left=A.bounds.left+"px",o.style.top=A.bounds.top+"px",n||(o.style.whiteSpace="nowrap");var a=e.ownerDocument.createTextNode(t);o.appendChild(a),i.appendChild(o),A.childNodes.push(r.default.fromTextNode(a,A)),i.removeChild(o)}}),U=function(t){var e="password"===t.type?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e}});e(X);X.reformatInputBounds,X.inlineSelectElement,X.inlineTextAreaElement,X.inlineInputElement,X.getInputBorderRadius,X.INPUT_BACKGROUND,X.INPUT_BORDERS,X.INPUT_COLOR;var V=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createCounterText=e.inlineListItemElement=e.getListOwner=void 0;var r=A(G),n=A(q),i=["OL","UL","MENU"],o=(e.getListOwner=function(t){var e=t.parent;if(!e)return null;do{if(-1!==i.indexOf(e.tagName))return e;e=e.parent}while(e);return t.parent},e.inlineListItemElement=function(t,e,A){var i=e.style.listStyle;if(i){var o=t.ownerDocument.defaultView.getComputedStyle(t,null),a=t.ownerDocument.createElement("html2canvaswrapper");switch((0,l.copyCSSStyles)(o,a),a.style.position="absolute",a.style.bottom="auto",a.style.display="block",a.style.letterSpacing="normal",i.listStylePosition){case b.LIST_STYLE_POSITION.OUTSIDE:a.style.left="auto",a.style.right=t.ownerDocument.defaultView.innerWidth-e.bounds.left-e.style.margin[1].getAbsoluteValue(e.bounds.width)+7+"px",a.style.textAlign="right";break;case b.LIST_STYLE_POSITION.INSIDE:a.style.left=e.bounds.left-e.style.margin[3].getAbsoluteValue(e.bounds.width)+"px",a.style.right="auto",a.style.textAlign="left"}var s=void 0,c=e.style.margin[0].getAbsoluteValue(e.bounds.width),u=i.listStyleImage;if(u)if("url"===u.method){var h=t.ownerDocument.createElement("img");h.src=u.args[0],a.style.top=e.bounds.top-c+"px",a.style.width="auto",a.style.height="auto",a.appendChild(h)}else{var d=.5*parseFloat(e.style.font.fontSize);a.style.top=e.bounds.top-c+e.bounds.height-1.5*d+"px",a.style.width=d+"px",a.style.height=d+"px",a.style.backgroundImage=o.listStyleImage}else"number"==typeof e.listIndex&&(s=t.ownerDocument.createTextNode(g(e.listIndex,i.listStyleType,!0)),a.appendChild(s),a.style.top=e.bounds.top-c+"px");var f=t.ownerDocument.body;f.appendChild(a),s?(e.childNodes.push(n.default.fromTextNode(s,e)),f.removeChild(a)):e.childNodes.push(new r.default(a,e,A,0))}},{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"]}),a={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},s={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},c={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},u=function(t,e,A,r,n,i){return t<e||t>A?g(t,n,i.length>0):r.integers.reduce(function(e,A,n){for(;t>=A;)t-=A,e+=r.values[n];return e},"")+i},h=function(t,e,A,r){var n="";do{A||t--,n=r(t)+n,t/=e}while(t*e>=e);return n},d=function(t,e,A,r,n){var i=A-e+1;return(t<0?"-":"")+(h(Math.abs(t),i,r,function(t){return(0,K.fromCodePoint)(Math.floor(t%i)+e)})+n)},f=function(t,e){var A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:". ",r=e.length;return h(Math.abs(t),r,!1,function(t){return e[Math.floor(t%r)]})+A},p=function(t,e,A,r,n,i){if(t<-9999||t>9999)return g(t,b.LIST_STYLE_TYPE.CJK_DECIMAL,n.length>0);var o=Math.abs(t),a=n;if(0===o)return e[0]+a;for(var s=0;o>0&&s<=4;s++){var c=o%10;0===c&&(0,l.contains)(i,1)&&""!==a?a=e[c]+a:c>1||1===c&&0===s||1===c&&1===s&&(0,l.contains)(i,2)||1===c&&1===s&&(0,l.contains)(i,4)&&t>100||1===c&&s>1&&(0,l.contains)(i,8)?a=e[c]+(s>0?A[s-1]:"")+a:1===c&&s>0&&(a=A[s-1]+a),o=Math.floor(o/10)}return(t<0?r:"")+a},g=e.createCounterText=function(t,e,A){var r=A?". ":"",n=A?"、":"",i=A?", ":"";switch(e){case b.LIST_STYLE_TYPE.DISC:return"•";case b.LIST_STYLE_TYPE.CIRCLE:return"◦";case b.LIST_STYLE_TYPE.SQUARE:return"◾";case b.LIST_STYLE_TYPE.DECIMAL_LEADING_ZERO:var l=d(t,48,57,!0,r);return l.length<4?"0"+l:l;case b.LIST_STYLE_TYPE.CJK_DECIMAL:return f(t,"〇一二三四五六七八九",n);case b.LIST_STYLE_TYPE.LOWER_ROMAN:return u(t,1,3999,o,b.LIST_STYLE_TYPE.DECIMAL,r).toLowerCase();case b.LIST_STYLE_TYPE.UPPER_ROMAN:return u(t,1,3999,o,b.LIST_STYLE_TYPE.DECIMAL,r);case b.LIST_STYLE_TYPE.LOWER_GREEK:return d(t,945,969,!1,r);case b.LIST_STYLE_TYPE.LOWER_ALPHA:return d(t,97,122,!1,r);case b.LIST_STYLE_TYPE.UPPER_ALPHA:return d(t,65,90,!1,r);case b.LIST_STYLE_TYPE.ARABIC_INDIC:return d(t,1632,1641,!0,r);case b.LIST_STYLE_TYPE.ARMENIAN:case b.LIST_STYLE_TYPE.UPPER_ARMENIAN:return u(t,1,9999,a,b.LIST_STYLE_TYPE.DECIMAL,r);case b.LIST_STYLE_TYPE.LOWER_ARMENIAN:return u(t,1,9999,a,b.LIST_STYLE_TYPE.DECIMAL,r).toLowerCase();case b.LIST_STYLE_TYPE.BENGALI:return d(t,2534,2543,!0,r);case b.LIST_STYLE_TYPE.CAMBODIAN:case b.LIST_STYLE_TYPE.KHMER:return d(t,6112,6121,!0,r);case b.LIST_STYLE_TYPE.CJK_EARTHLY_BRANCH:return f(t,"子丑寅卯辰巳午未申酉戌亥",n);case b.LIST_STYLE_TYPE.CJK_HEAVENLY_STEM:return f(t,"甲乙丙丁戊己庚辛壬癸",n);case b.LIST_STYLE_TYPE.CJK_IDEOGRAPHIC:case b.LIST_STYLE_TYPE.TRAD_CHINESE_INFORMAL:return p(t,"零一二三四五六七八九","十百千萬","負",n,14);case b.LIST_STYLE_TYPE.TRAD_CHINESE_FORMAL:return p(t,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",n,15);case b.LIST_STYLE_TYPE.SIMP_CHINESE_INFORMAL:return p(t,"零一二三四五六七八九","十百千萬","负",n,14);case b.LIST_STYLE_TYPE.SIMP_CHINESE_FORMAL:return p(t,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",n,15);case b.LIST_STYLE_TYPE.JAPANESE_INFORMAL:return p(t,"〇一二三四五六七八九","十百千万","マイナス",n,0);case b.LIST_STYLE_TYPE.JAPANESE_FORMAL:return p(t,"零壱弐参四伍六七八九","拾百千万","マイナス",n,7);case b.LIST_STYLE_TYPE.KOREAN_HANGUL_FORMAL:return p(t,"영일이삼사오육칠팔구","십백천만","마이너스 ",i,7);case b.LIST_STYLE_TYPE.KOREAN_HANJA_INFORMAL:return p(t,"零一二三四五六七八九","十百千萬","마이너스 ",i,0);case b.LIST_STYLE_TYPE.KOREAN_HANJA_FORMAL:return p(t,"零壹貳參四五六七八九","拾百千","마이너스 ",i,7);case b.LIST_STYLE_TYPE.DEVANAGARI:return d(t,2406,2415,!0,r);case b.LIST_STYLE_TYPE.GEORGIAN:return u(t,1,19999,c,b.LIST_STYLE_TYPE.DECIMAL,r);case b.LIST_STYLE_TYPE.GUJARATI:return d(t,2790,2799,!0,r);case b.LIST_STYLE_TYPE.GURMUKHI:return d(t,2662,2671,!0,r);case b.LIST_STYLE_TYPE.HEBREW:return u(t,1,10999,s,b.LIST_STYLE_TYPE.DECIMAL,r);case b.LIST_STYLE_TYPE.HIRAGANA:return f(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case b.LIST_STYLE_TYPE.HIRAGANA_IROHA:return f(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case b.LIST_STYLE_TYPE.KANNADA:return d(t,3302,3311,!0,r);case b.LIST_STYLE_TYPE.KATAKANA:return f(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case b.LIST_STYLE_TYPE.KATAKANA_IROHA:return f(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case b.LIST_STYLE_TYPE.LAO:return d(t,3792,3801,!0,r);case b.LIST_STYLE_TYPE.MONGOLIAN:return d(t,6160,6169,!0,r);case b.LIST_STYLE_TYPE.MYANMAR:return d(t,4160,4169,!0,r);case b.LIST_STYLE_TYPE.ORIYA:return d(t,2918,2927,!0,r);case b.LIST_STYLE_TYPE.PERSIAN:return d(t,1776,1785,!0,r);case b.LIST_STYLE_TYPE.TAMIL:return d(t,3046,3055,!0,r);case b.LIST_STYLE_TYPE.TELUGU:return d(t,3174,3183,!0,r);case b.LIST_STYLE_TYPE.THAI:return d(t,3664,3673,!0,r);case b.LIST_STYLE_TYPE.TIBETAN:return d(t,3872,3881,!0,r);case b.LIST_STYLE_TYPE.DECIMAL:default:return d(t,48,57,!0,r)}}});e(V);V.createCounterText,V.inlineListItemElement,V.getListOwner;var G=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=function(t){return t&&t.__esModule?t:{default:t}}(o),n=["INPUT","TEXTAREA","SELECT"],i=function(){function t(e,A,i,o){var c=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.parent=A,this.tagName=e.tagName,this.index=o,this.childNodes=[],this.listItems=[],"number"==typeof e.start&&(this.listStart=e.start);var l=e.ownerDocument.defaultView,u=l.pageXOffset,h=l.pageYOffset,d=l.getComputedStyle(e,null),f=(0,y.parseDisplay)(d.display),O="radio"===e.type||"checkbox"===e.type,P=(0,H.parsePosition)(d.position);if(this.style={background:O?X.INPUT_BACKGROUND:(0,B.parseBackground)(d,i),border:O?X.INPUT_BORDERS:(0,w.parseBorder)(d),borderRadius:(e instanceof l.HTMLInputElement||e instanceof HTMLInputElement)&&O?(0,X.getInputBorderRadius)(e):(0,m.parseBorderRadius)(d),color:O?X.INPUT_COLOR:new r.default(d.color),display:f,float:(0,v.parseCSSFloat)(d.float),font:(0,Q.parseFont)(d),letterSpacing:(0,C.parseLetterSpacing)(d.letterSpacing),listStyle:f===y.DISPLAY.LIST_ITEM?(0,b.parseListStyle)(d):null,lineBreak:(0,U.parseLineBreak)(d.lineBreak),margin:(0,F.parseMargin)(d),opacity:parseFloat(d.opacity),overflow:-1===n.indexOf(e.tagName)?(0,E.parseOverflow)(d.overflow):E.OVERFLOW.HIDDEN,overflowWrap:(0,x.parseOverflowWrap)(d.overflowWrap?d.overflowWrap:d.wordWrap),padding:(0,g.parsePadding)(d),position:P,textDecoration:(0,a.parseTextDecoration)(d),textShadow:(0,I.parseTextShadow)(d.textShadow),textTransform:(0,S.parseTextTransform)(d.textTransform),transform:(0,_.parseTransform)(d),visibility:(0,T.parseVisibility)(d.visibility),wordBreak:(0,N.parseWordBreak)(d.wordBreak),zIndex:(0,k.parseZIndex)(P!==H.POSITION.STATIC?d.zIndex:"auto")},this.isTransformed()&&(e.style.transform="matrix(1,0,0,1,0,0)"),f===y.DISPLAY.LIST_ITEM){var D=(0,V.getListOwner)(this);if(D){var L=D.listItems.length;D.listItems.push(this),this.listIndex=e.hasAttribute("value")&&"number"==typeof e.value?e.value:0===L?"number"==typeof D.listStart?D.listStart:1:D.listItems[L-1].listIndex+1}}"IMG"===e.tagName&&e.addEventListener("load",function(){c.bounds=(0,p.parseBounds)(e,u,h),c.curvedBounds=(0,p.parseBoundCurves)(c.bounds,c.style.border,c.style.borderRadius)}),this.image=s(e,i),this.bounds=O?(0,X.reformatInputBounds)((0,p.parseBounds)(e,u,h)):(0,p.parseBounds)(e,u,h),this.curvedBounds=(0,p.parseBoundCurves)(this.bounds,this.style.border,this.style.borderRadius)}return A(t,[{key:"getClipPaths",value:function(){var t=this.parent?this.parent.getClipPaths():[];return this.style.overflow!==E.OVERFLOW.VISIBLE?t.concat([(0,p.calculatePaddingBoxPath)(this.curvedBounds)]):t}},{key:"isInFlow",value:function(){return this.isRootElement()&&!this.isFloating()&&!this.isAbsolutelyPositioned()}},{key:"isVisible",value:function(){return!(0,l.contains)(this.style.display,y.DISPLAY.NONE)&&this.style.opacity>0&&this.style.visibility===T.VISIBILITY.VISIBLE}},{key:"isAbsolutelyPositioned",value:function(){return this.style.position!==H.POSITION.STATIC&&this.style.position!==H.POSITION.RELATIVE}},{key:"isPositioned",value:function(){return this.style.position!==H.POSITION.STATIC}},{key:"isFloating",value:function(){return this.style.float!==v.FLOAT.NONE}},{key:"isRootElement",value:function(){return null===this.parent}},{key:"isTransformed",value:function(){return null!==this.style.transform}},{key:"isPositionedWithZIndex",value:function(){return this.isPositioned()&&!this.style.zIndex.auto}},{key:"isInlineLevel",value:function(){return(0,l.contains)(this.style.display,y.DISPLAY.INLINE)||(0,l.contains)(this.style.display,y.DISPLAY.INLINE_BLOCK)||(0,l.contains)(this.style.display,y.DISPLAY.INLINE_FLEX)||(0,l.contains)(this.style.display,y.DISPLAY.INLINE_GRID)||(0,l.contains)(this.style.display,y.DISPLAY.INLINE_LIST_ITEM)||(0,l.contains)(this.style.display,y.DISPLAY.INLINE_TABLE)}},{key:"isInlineBlockOrInlineTable",value:function(){return(0,l.contains)(this.style.display,y.DISPLAY.INLINE_BLOCK)||(0,l.contains)(this.style.display,y.DISPLAY.INLINE_TABLE)}}]),t}();e.default=i;var s=function(t,e){if(t instanceof t.ownerDocument.defaultView.SVGSVGElement||t instanceof SVGSVGElement){var A=new XMLSerializer;return e.loadImage("data:image/svg+xml,"+encodeURIComponent(A.serializeToString(t)))}switch(t.tagName){case"IMG":var r=t;return e.loadImage(r.currentSrc||r.src);case"CANVAS":var n=t;return e.loadCanvas(n);case"IFRAME":var i=t.getAttribute("data-html2canvas-internal-iframe-key");if(i)return i}return null}});e(G);var W=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),r=(function(t){t&&t.__esModule}(G),function(){function t(e,A,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.container=e,this.parent=A,this.contexts=[],this.children=[],this.treatAsRealStackingContext=r}return A(t,[{key:"getOpacity",value:function(){return this.parent?this.container.style.opacity*this.parent.getOpacity():this.container.style.opacity}},{key:"getRealParentStackingContext",value:function(){return!this.parent||this.treatAsRealStackingContext?this:this.parent.getRealParentStackingContext()}}]),t}());e.default=r});e(W);var Y=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.NodeParser=void 0;var r=A(W),n=A(G),i=A(q),o=(e.NodeParser=function(t,e,A){var i=0,o=new n.default(t,null,e,i++),s=new r.default(o,null,!0);return a(t,o,s,e,i),s},["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"]),a=function t(e,A,a,l,u){for(var h,d=e.firstChild;d;d=h){h=d.nextSibling;var f=d.ownerDocument.defaultView;if(d instanceof f.Text||d instanceof Text||f.parent&&d instanceof f.parent.Text)d.data.trim().length>0&&A.childNodes.push(i.default.fromTextNode(d,A));else if(d instanceof f.HTMLElement||d instanceof HTMLElement||f.parent&&d instanceof f.parent.HTMLElement){if(-1===o.indexOf(d.nodeName)){var p=new n.default(d,A,l,u++);if(p.isVisible()){"INPUT"===d.tagName?(0,X.inlineInputElement)(d,p):"TEXTAREA"===d.tagName?(0,X.inlineTextAreaElement)(d,p):"SELECT"===d.tagName?(0,X.inlineSelectElement)(d,p):p.style.listStyle&&p.style.listStyle.listStyleType!==b.LIST_STYLE_TYPE.NONE&&(0,V.inlineListItemElement)(d,p,l);var g="TEXTAREA"!==d.tagName,B=s(p,d);if(B||c(p)){var w=B||p.isPositioned()?a.getRealParentStackingContext():a,m=new r.default(p,w,B);w.contexts.push(m),g&&t(d,p,m,l,u)}else a.children.push(p),g&&t(d,p,a,l,u)}}}else if(d instanceof f.SVGSVGElement||d instanceof SVGSVGElement||f.parent&&d instanceof f.parent.SVGSVGElement){var y=new n.default(d,A,l,u++),v=s(y,d);if(v||c(y)){var Q=v||y.isPositioned()?a.getRealParentStackingContext():a,C=new r.default(y,Q,v);Q.contexts.push(C)}else a.children.push(y)}}},s=function(t,e){return t.isRootElement()||t.isPositionedWithZIndex()||t.style.opacity<1||t.isTransformed()||l(t,e)},c=function(t){return t.isPositioned()||t.isFloating()},l=function(t,e){return"BODY"===e.nodeName&&t.parent instanceof n.default&&t.parent.style.background.backgroundColor.isTransparent()}});e(Y);Y.NodeParser;var J=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FontMetrics=void 0;var A=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}();e.FontMetrics=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._data={},this._document=e}return A(t,[{key:"_parseMetrics",value:function(t){var e=this._document.createElement("div"),A=this._document.createElement("img"),r=this._document.createElement("span"),n=this._document.body;if(!n)throw new Error("");e.style.visibility="hidden",e.style.fontFamily=t.fontFamily,e.style.fontSize=t.fontSize,e.style.margin="0",e.style.padding="0",n.appendChild(e),A.src=l.SMALL_IMAGE,A.width=1,A.height=1,A.style.margin="0",A.style.padding="0",A.style.verticalAlign="baseline",r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.margin="0",r.style.padding="0",r.appendChild(this._document.createTextNode("Hidden Text")),e.appendChild(r),e.appendChild(A);var i=A.offsetTop-r.offsetTop+2;e.removeChild(r),e.appendChild(this._document.createTextNode("Hidden Text")),e.style.lineHeight="normal",A.style.verticalAlign="super";var o=A.offsetTop-e.offsetTop+2;return n.removeChild(e),{baseline:i,middle:o}}},{key:"getMetrics",value:function(t){var e=t.fontFamily+" "+t.fontSize;return void 0===this._data[e]&&(this._data[e]=this._parseMetrics(t)),this._data[e]}}]),t}()});e(J);J.FontMetrics;var Z=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=/([+-]?\d*\.?\d+)(deg|grad|rad|turn)/i;e.parseAngle=function(t){var e=t.match(A);if(e){var r=parseFloat(e[1]);switch(e[2].toLowerCase()){case"deg":return Math.PI*r/180;case"grad":return Math.PI/200*r;case"rad":return r;case"turn":return 2*Math.PI*r}}return null}});e(Z);Z.parseAngle;var $=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.transformWebkitRadialGradientArgs=e.parseGradient=e.RadialGradient=e.LinearGradient=e.RADIAL_GRADIENT_SHAPE=e.GRADIENT_TYPE=void 0;var n=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=(A(G),A(o)),a=A(u),s=/^(to )?(left|top|right|bottom)( (left|top|right|bottom))?$/i,c=/^([+-]?\d*\.?\d+)% ([+-]?\d*\.?\d+)%$/i,h=/(px)|%|( 0)$/i,d=/^(from|to|color-stop)\((?:([\d.]+)(%)?,\s*)?(.+?)\)$/i,f=/^\s*(circle|ellipse)?\s*((?:([\d.]+)(px|r?em|%)\s*(?:([\d.]+)(px|r?em|%))?)|closest-side|closest-corner|farthest-side|farthest-corner)?\s*(?:at\s*(?:(left|center|right)|([\d.]+)(px|r?em|%))\s+(?:(top|center|bottom)|([\d.]+)(px|r?em|%)))?(?:\s|$)/i,p=e.GRADIENT_TYPE={LINEAR_GRADIENT:0,RADIAL_GRADIENT:1},g=e.RADIAL_GRADIENT_SHAPE={CIRCLE:0,ELLIPSE:1},B={left:new a.default("0%"),top:new a.default("0%"),center:new a.default("50%"),right:new a.default("100%"),bottom:new a.default("100%")},w=e.LinearGradient=function t(e,A){r(this,t),this.type=p.LINEAR_GRADIENT,this.colorStops=e,this.direction=A},m=e.RadialGradient=function t(e,A,n,i){r(this,t),this.type=p.RADIAL_GRADIENT,this.colorStops=e,this.shape=A,this.center=n,this.radius=i},y=(e.parseGradient=function(t,e,A){var r=e.args,n=e.method,i=e.prefix;return"linear-gradient"===n?v(r,A,!!i):"gradient"===n&&"linear"===r[0]?v(["to bottom"].concat(I(r.slice(3))),A,!!i):"radial-gradient"===n?Q(t,"-webkit-"===i?H(r):r,A):"gradient"===n&&"radial"===r[0]?Q(t,I(H(r.slice(1))),A):void 0},function(t,e,A){for(var r=[],n=e;n<t.length;n++){var o=t[n],s=h.test(o),c=o.lastIndexOf(" "),l=new i.default(s?o.substring(0,c):o),u=s?new a.default(o.substring(c+1)):n===e?new a.default("0%"):n===t.length-1?new a.default("100%"):null;r.push({color:l,stop:u})}for(var d=r.map(function(t){var e=t.color,r=t.stop;return{color:e,stop:0===A?0:r?r.getAbsoluteValue(A)/A:null}}),f=d[0].stop,p=0;p<d.length;p++)if(null!==f){var g=d[p].stop;if(null===g){for(var B=p;null===d[B].stop;)B++;for(var w=B-p+1,m=(d[B].stop-f)/w;p<B;p++)f=d[p].stop=f+m}else f=g}return d}),v=function(t,e,A){var r=(0,Z.parseAngle)(t[0]),n=s.test(t[0]),i=n||null!==r||c.test(t[0]),o=i?null!==r?C(A?r-.5*Math.PI:r,e):n?b(t[0],e):F(t[0],e):C(Math.PI,e),a=i?1:0,u=Math.min((0,l.distance)(Math.abs(o.x0)+Math.abs(o.x1),Math.abs(o.y0)+Math.abs(o.y1)),2*e.width,2*e.height);return new w(y(t,a,u),o)},Q=function(t,e,A){var r=e[0].match(f),n=r&&("circle"===r[1]||void 0!==r[3]&&void 0===r[5])?g.CIRCLE:g.ELLIPSE,i={},o={};r&&(void 0!==r[3]&&(i.x=(0,u.calculateLengthFromValueWithUnit)(t,r[3],r[4]).getAbsoluteValue(A.width)),void 0!==r[5]&&(i.y=(0,u.calculateLengthFromValueWithUnit)(t,r[5],r[6]).getAbsoluteValue(A.height)),r[7]?o.x=B[r[7].toLowerCase()]:void 0!==r[8]&&(o.x=(0,u.calculateLengthFromValueWithUnit)(t,r[8],r[9])),r[10]?o.y=B[r[10].toLowerCase()]:void 0!==r[11]&&(o.y=(0,u.calculateLengthFromValueWithUnit)(t,r[11],r[12])));var a={x:void 0===o.x?A.width/2:o.x.getAbsoluteValue(A.width),y:void 0===o.y?A.height/2:o.y.getAbsoluteValue(A.height)},s=x(r&&r[2]||"farthest-corner",n,a,i,A);return new m(y(e,r?1:0,Math.min(s.x,s.y)),n,a,s)},C=function(t,e){var A=e.width,r=e.height,n=.5*A,i=.5*r,o=(Math.abs(A*Math.sin(t))+Math.abs(r*Math.cos(t)))/2,a=n+Math.sin(t)*o,s=i-Math.cos(t)*o;return{x0:a,x1:A-a,y0:s,y1:r-s}},U=function(t){return Math.acos(t.width/2/((0,l.distance)(t.width,t.height)/2))},b=function(t,e){switch(t){case"bottom":case"to top":return C(0,e);case"left":case"to right":return C(Math.PI/2,e);case"right":case"to left":return C(3*Math.PI/2,e);case"top right":case"right top":case"to bottom left":case"to left bottom":return C(Math.PI+U(e),e);case"top left":case"left top":case"to bottom right":case"to right bottom":return C(Math.PI-U(e),e);case"bottom left":case"left bottom":case"to top right":case"to right top":return C(U(e),e);case"bottom right":case"right bottom":case"to top left":case"to left top":return C(2*Math.PI-U(e),e);case"top":case"to bottom":default:return C(Math.PI,e)}},F=function(t,e){var A=t.split(" ").map(parseFloat),r=n(A,2),i=r[0],o=r[1],a=i/100*e.width/(o/100*e.height);return C(Math.atan(isNaN(a)?1:a)+Math.PI/2,e)},E=function(t,e,A,r){return[{x:0,y:0},{x:0,y:t.height},{x:t.width,y:0},{x:t.width,y:t.height}].reduce(function(t,n){var i=(0,l.distance)(e-n.x,A-n.y);return(r?i<t.optimumDistance:i>t.optimumDistance)?{optimumCorner:n,optimumDistance:i}:t},{optimumDistance:r?1/0:-1/0,optimumCorner:null}).optimumCorner},x=function(t,e,A,r,n){var i=A.x,o=A.y,a=0,s=0;switch(t){case"closest-side":e===g.CIRCLE?a=s=Math.min(Math.abs(i),Math.abs(i-n.width),Math.abs(o),Math.abs(o-n.height)):e===g.ELLIPSE&&(a=Math.min(Math.abs(i),Math.abs(i-n.width)),s=Math.min(Math.abs(o),Math.abs(o-n.height)));break;case"closest-corner":if(e===g.CIRCLE)a=s=Math.min((0,l.distance)(i,o),(0,l.distance)(i,o-n.height),(0,l.distance)(i-n.width,o),(0,l.distance)(i-n.width,o-n.height));else if(e===g.ELLIPSE){var c=Math.min(Math.abs(o),Math.abs(o-n.height))/Math.min(Math.abs(i),Math.abs(i-n.width)),u=E(n,i,o,!0);s=c*(a=(0,l.distance)(u.x-i,(u.y-o)/c))}break;case"farthest-side":e===g.CIRCLE?a=s=Math.max(Math.abs(i),Math.abs(i-n.width),Math.abs(o),Math.abs(o-n.height)):e===g.ELLIPSE&&(a=Math.max(Math.abs(i),Math.abs(i-n.width)),s=Math.max(Math.abs(o),Math.abs(o-n.height)));break;case"farthest-corner":if(e===g.CIRCLE)a=s=Math.max((0,l.distance)(i,o),(0,l.distance)(i,o-n.height),(0,l.distance)(i-n.width,o),(0,l.distance)(i-n.width,o-n.height));else if(e===g.ELLIPSE){var h=Math.max(Math.abs(o),Math.abs(o-n.height))/Math.max(Math.abs(i),Math.abs(i-n.width)),d=E(n,i,o,!1);s=h*(a=(0,l.distance)(d.x-i,(d.y-o)/h))}break;default:a=r.x||0,s=void 0!==r.y?r.y:a}return{x:a,y:s}},H=e.transformWebkitRadialGradientArgs=function(t){var e="",A="",r="",n="",i=0,o=/^(left|center|right|\d+(?:px|r?em|%)?)(?:\s+(top|center|bottom|\d+(?:px|r?em|%)?))?$/i,a=/^\d+(px|r?em|%)?(?:\s+\d+(px|r?em|%)?)?$/i,s=t[i].match(o);s&&i++;var c=t[i].match(/^(circle|ellipse)?\s*(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)?$/i);c&&(e=c[1]||"","contain"===(r=c[2]||"")?r="closest-side":"cover"===r&&(r="farthest-corner"),i++);var l=t[i].match(a);l&&i++;var u=t[i].match(o);u&&i++;var h=t[i].match(a);h&&i++;var d=u||s;d&&d[1]&&(n=d[1]+(/^\d+$/.test(d[1])?"px":""),d[2]&&(n+=" "+d[2]+(/^\d+$/.test(d[2])?"px":"")));var f=h||l;return f&&(A=f[0],f[1]||(A+="px")),!n||e||A||r||(A=n,n=""),n&&(n="at "+n),[[e,r,A,n].filter(function(t){return!!t}).join(" ")].concat(t.slice(i))},I=function(t){return t.map(function(t){return t.match(d)}).map(function(e,A){if(!e)return t[A];switch(e[1]){case"from":return e[4]+" 0%";case"to":return e[4]+" 100%";case"color-stop":return"%"===e[3]?e[4]+" "+e[2]:e[4]+" "+100*parseFloat(e[2])+"%"}})}});e($);$.transformWebkitRadialGradientArgs,$.parseGradient,$.RadialGradient,$.LinearGradient,$.RADIAL_GRADIENT_SHAPE,$.GRADIENT_TYPE;var tt=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var A=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(q),i=function(){function t(e,A){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.target=e,this.options=A,e.render(A)}return r(t,[{key:"renderNode",value:function(t){t.isVisible()&&(this.renderNodeBackgroundAndBorders(t),this.renderNodeContent(t))}},{key:"renderNodeContent",value:function(t){var e=this,A=function(){if(t.childNodes.length&&t.childNodes.forEach(function(A){if(A instanceof n.default){var r=A.parent.style;e.target.renderTextNode(A.bounds,r.color,r.font,r.textDecoration,r.textShadow)}else e.target.drawShape(A,t.style.color)}),t.image){var A=e.options.imageStore.get(t.image);if(A){var r=(0,p.calculateContentBox)(t.bounds,t.style.padding,t.style.border),i="number"==typeof A.width&&A.width>0?A.width:r.width,o="number"==typeof A.height&&A.height>0?A.height:r.height;i>0&&o>0&&e.target.clip([(0,p.calculatePaddingBoxPath)(t.curvedBounds)],function(){e.target.drawImage(A,new p.Bounds(0,0,i,o),r)})}}},r=t.getClipPaths();r.length?this.target.clip(r,A):A()}},{key:"renderNodeBackgroundAndBorders",value:function(t){var e=this,A=!t.style.background.backgroundColor.isTransparent()||t.style.background.backgroundImage.length,r=t.style.border.some(function(t){return t.borderStyle!==w.BORDER_STYLE.NONE&&!t.borderColor.isTransparent()}),n=function(){var r=(0,B.calculateBackgroungPaintingArea)(t.curvedBounds,t.style.background.backgroundClip);A&&e.target.clip([r],function(){t.style.background.backgroundColor.isTransparent()||e.target.fill(t.style.background.backgroundColor),e.renderBackgroundImage(t)}),t.style.border.forEach(function(A,r){A.borderStyle===w.BORDER_STYLE.NONE||A.borderColor.isTransparent()||e.renderBorder(A,r,t.curvedBounds)})};if(A||r){var i=t.parent?t.parent.getClipPaths():[];i.length?this.target.clip(i,n):n()}}},{key:"renderBackgroundImage",value:function(t){var e=this;t.style.background.backgroundImage.slice(0).reverse().forEach(function(A){"url"===A.source.method&&A.source.args.length?e.renderBackgroundRepeat(t,A):/gradient/i.test(A.source.method)&&e.renderBackgroundGradient(t,A)})}},{key:"renderBackgroundRepeat",value:function(t,e){var A=this.options.imageStore.get(e.source.args[0]);if(A){var r=(0,B.calculateBackgroungPositioningArea)(t.style.background.backgroundOrigin,t.bounds,t.style.padding,t.style.border),n=(0,B.calculateBackgroundSize)(e,A,r),i=(0,B.calculateBackgroundPosition)(e.position,n,r),o=(0,B.calculateBackgroundRepeatPath)(e,i,n,r,t.bounds),a=Math.round(r.left+i.x),s=Math.round(r.top+i.y);this.target.renderRepeat(o,A,n,a,s)}}},{key:"renderBackgroundGradient",value:function(t,e){var A=(0,B.calculateBackgroungPositioningArea)(t.style.background.backgroundOrigin,t.bounds,t.style.padding,t.style.border),r=(0,B.calculateGradientBackgroundSize)(e,A),n=(0,B.calculateBackgroundPosition)(e.position,r,A),i=new p.Bounds(Math.round(A.left+n.x),Math.round(A.top+n.y),r.width,r.height),o=(0,$.parseGradient)(t,e.source,i);if(o)switch(o.type){case $.GRADIENT_TYPE.LINEAR_GRADIENT:this.target.renderLinearGradient(i,o);break;case $.GRADIENT_TYPE.RADIAL_GRADIENT:this.target.renderRadialGradient(i,o)}}},{key:"renderBorder",value:function(t,e,A){this.target.drawShape((0,p.parsePathForBorder)(A,e),t.borderColor)}},{key:"renderStack",value:function(t){var e=this;if(t.container.isVisible()){var A=t.getOpacity();A!==this._opacity&&(this.target.setOpacity(t.getOpacity()),this._opacity=A);var r=t.container.style.transform;null!==r?this.target.transform(t.container.bounds.left+r.transformOrigin[0].value,t.container.bounds.top+r.transformOrigin[1].value,r.transform,function(){return e.renderStackContent(t)}):this.renderStackContent(t)}}},{key:"renderStackContent",value:function(t){var e=a(t),r=A(e,5),n=r[0],i=r[1],c=r[2],l=r[3],u=r[4],h=o(t),d=A(h,2),f=d[0],p=d[1];this.renderNodeBackgroundAndBorders(t.container),n.sort(s).forEach(this.renderStack,this),this.renderNodeContent(t.container),p.forEach(this.renderNode,this),l.forEach(this.renderStack,this),u.forEach(this.renderStack,this),f.forEach(this.renderNode,this),i.forEach(this.renderStack,this),c.sort(s).forEach(this.renderStack,this)}},{key:"render",value:function(t){this.options.backgroundColor&&this.target.rectangle(this.options.x,this.options.y,this.options.width,this.options.height,this.options.backgroundColor),this.renderStack(t);return this.target.getTarget()}}]),t}();e.default=i;var o=function(t){for(var e=[],A=[],r=t.children.length,n=0;n<r;n++){var i=t.children[n];i.isInlineLevel()?e.push(i):A.push(i)}return[e,A]},a=function(t){for(var e=[],A=[],r=[],n=[],i=[],o=t.contexts.length,a=0;a<o;a++){var s=t.contexts[a];s.container.isPositioned()||s.container.style.opacity<1||s.container.isTransformed()?s.container.style.zIndex.order<0?e.push(s):s.container.style.zIndex.order>0?r.push(s):A.push(s):s.container.isFloating()?n.push(s):i.push(s)}return[e,A,r,n,i]},s=function(t,e){return t.container.style.zIndex.order>e.container.style.zIndex.order?1:t.container.style.zIndex.order<e.container.style.zIndex.order?-1:t.container.index>e.container.index?1:-1}});e(tt);var et=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Proxy=void 0;var A=function(t){return t&&t.__esModule?t:{default:t}}(P);e.Proxy=function(t,e){if(!e.proxy)return Promise.reject(null);var r=e.proxy;return new Promise(function(n,i){var o=A.default.SUPPORT_CORS_XHR&&A.default.SUPPORT_RESPONSE_TYPE?"blob":"text",a=A.default.SUPPORT_CORS_XHR?new XMLHttpRequest:new XDomainRequest;if(a.onload=function(){if(a instanceof XMLHttpRequest)if(200===a.status)if("text"===o)n(a.response);else{var t=new FileReader;t.addEventListener("load",function(){return n(t.result)},!1),t.addEventListener("error",function(t){return i(t)},!1),t.readAsDataURL(a.response)}else i("");else n(a.responseText)},a.onerror=i,a.open("GET",r+"?url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&a instanceof XMLHttpRequest&&(a.responseType=o),e.imageTimeout){var s=e.imageTimeout;a.timeout=s,a.ontimeout=function(){return i("")}}a.send()})}});e(et);et.Proxy;var At=A(function(t,e){function A(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceStore=void 0;var r=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),n=function(t){return t&&t.__esModule?t:{default:t}}(P),i=function(){function t(e,r,n){A(this,t),this.options=e,this._window=n,this.origin=this.getOrigin(n.location.href),this.cache={},this.logger=r,this._index=0}return r(t,[{key:"loadImage",value:function(t){var e=this;if(this.hasResourceInCache(t))return t;if(h(t))return this.cache[t]=f(t,this.options.imageTimeout||0),t;if(!d(t)||n.default.SUPPORT_SVG_DRAWING){if(!0===this.options.allowTaint||l(t)||this.isSameOrigin(t))return this.addImage(t,t,!1);if(!this.isSameOrigin(t)){if("string"==typeof this.options.proxy)return this.cache[t]=(0,et.Proxy)(t,this.options).then(function(t){return f(t,e.options.imageTimeout||0)}),t;if(!0===this.options.useCORS&&n.default.SUPPORT_CORS_IMAGES)return this.addImage(t,t,!0)}}}},{key:"inlineImage",value:function(t){var e=this;return l(t)?f(t,this.options.imageTimeout||0):this.hasResourceInCache(t)?this.cache[t]:this.isSameOrigin(t)||"string"!=typeof this.options.proxy?this.xhrImage(t):this.cache[t]=(0,et.Proxy)(t,this.options).then(function(t){return f(t,e.options.imageTimeout||0)})}},{key:"xhrImage",value:function(t){var e=this;return this.cache[t]=new Promise(function(A,r){var n=new XMLHttpRequest;if(n.onreadystatechange=function(){if(4===n.readyState)if(200!==n.status)r("Failed to fetch image "+t.substring(0,256)+" with status code "+n.status);else{var e=new FileReader;e.addEventListener("load",function(){var t=e.result;A(t)},!1),e.addEventListener("error",function(t){return r(t)},!1),e.readAsDataURL(n.response)}},n.responseType="blob",e.options.imageTimeout){var i=e.options.imageTimeout;n.timeout=i,n.ontimeout=function(){return r("")}}n.open("GET",t,!0),n.send()}).then(function(t){return f(t,e.options.imageTimeout||0)}),this.cache[t]}},{key:"loadCanvas",value:function(t){var e=String(this._index++);return this.cache[e]=Promise.resolve(t),e}},{key:"hasResourceInCache",value:function(t){return void 0!==this.cache[t]}},{key:"addImage",value:function(t,e,A){var r=this,i=function(t){return new Promise(function(n,i){var o=new Image;if(o.onload=function(){return n(o)},t&&!A||(o.crossOrigin="anonymous"),o.onerror=i,o.src=e,!0===o.complete&&setTimeout(function(){n(o)},500),r.options.imageTimeout){var a=r.options.imageTimeout;setTimeout(function(){return i("")},a)}})};return this.cache[t]=u(e)&&!d(e)?n.default.SUPPORT_BASE64_DRAWING(e).then(i):i(!0),t}},{key:"isSameOrigin",value:function(t){return this.getOrigin(t)===this.origin}},{key:"getOrigin",value:function(t){var e=this._link||(this._link=this._window.document.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port}},{key:"ready",value:function(){var t=this,e=Object.keys(this.cache),A=e.map(function(e){return t.cache[e].catch(function(t){return null})});return Promise.all(A).then(function(t){return new o(e,t)})}}]),t}();e.default=i;var o=e.ResourceStore=function(){function t(e,r){A(this,t),this._keys=e,this._resources=r}return r(t,[{key:"get",value:function(t){var e=this._keys.indexOf(t);return-1===e?null:this._resources[e]}}]),t}(),a=/^data:image\/svg\+xml/i,s=/^data:image\/.*;base64,/i,c=/^data:image\/.*/i,l=function(t){return c.test(t)},u=function(t){return s.test(t)},h=function(t){return"blob"===t.substr(0,4)},d=function(t){return"svg"===t.substr(-3).toLowerCase()||a.test(t)},f=function(t,e){return new Promise(function(A,r){var n=new Image;n.onload=function(){return A(n)},n.onerror=r,n.src=t,!0===n.complete&&setTimeout(function(){A(n)},500),e&&setTimeout(function(){return r("")},e)})}});e(At);At.ResourceStore;var rt=A(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseContent=e.resolvePseudoContent=e.popCounters=e.parseCounterReset=e.TOKEN_TYPE=e.PSEUDO_CONTENT_ITEM_TYPE=void 0;var A=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=e.PSEUDO_CONTENT_ITEM_TYPE={TEXT:0,IMAGE:1},n=e.TOKEN_TYPE={STRING:0,ATTRIBUTE:1,URL:2,COUNTER:3,COUNTERS:4,OPENQUOTE:5,CLOSEQUOTE:6},i=(e.parseCounterReset=function(t,e){if(!t||!t.counterReset||"none"===t.counterReset)return[];for(var r=[],n=t.counterReset.split(/\s*,\s*/),i=n.length,o=0;o<i;o++){var a=n[o].split(/\s+/),s=A(a,2),c=s[0],l=s[1];r.push(c);var u=e.counters[c];u||(u=e.counters[c]=[]),u.push(parseInt(l||0,10))}return r},e.popCounters=function(t,e){for(var A=t.length,r=0;r<A;r++)e.counters[t[r]].pop()},e.resolvePseudoContent=function(t,e,o){if(!e||!e.content||"none"===e.content||"-moz-alt-content"===e.content||"none"===e.display)return null;var c=i(e.content),l=c.length,u=[],h="",d=e.counterIncrement;if(d&&"none"!==d){var f=d.split(/\s+/),p=A(f,2),g=p[0],B=p[1],w=o.counters[g];w&&(w[w.length-1]+=void 0===B?1:parseInt(B,10))}for(var m=0;m<l;m++){var y=c[m];switch(y.type){case n.STRING:h+=y.value||"";break;case n.ATTRIBUTE:t instanceof HTMLElement&&y.value&&(h+=t.getAttribute(y.value)||"");break;case n.COUNTER:var v=o.counters[y.name||""];v&&(h+=s([v[v.length-1]],"",y.format));break;case n.COUNTERS:var Q=o.counters[y.name||""];Q&&(h+=s(Q,y.glue,y.format));break;case n.OPENQUOTE:h+=a(e,!0,o.quoteDepth),o.quoteDepth++;break;case n.CLOSEQUOTE:o.quoteDepth--,h+=a(e,!1,o.quoteDepth);break;case n.URL:h&&(u.push({type:r.TEXT,value:h}),h=""),u.push({type:r.IMAGE,value:y.value||""})}}return h&&u.push({type:r.TEXT,value:h}),u},e.parseContent=function(t,e){if(e&&e[t])return e[t];for(var A=[],r=t.length,i=!1,a=!1,s=!1,c="",l="",u=[],h=0;h<r;h++){var d=t.charAt(h);switch(d){case"'":case'"':a?c+=d:(i=!i,s||i||(A.push({type:n.STRING,value:c}),c=""));break;case"\\":a?(c+=d,a=!1):a=!0;break;case"(":i?c+=d:(s=!0,l=c,c="",u=[]);break;case")":if(i)c+=d;else if(s){switch(c&&u.push(c),l){case"attr":u.length>0&&A.push({type:n.ATTRIBUTE,value:u[0]});break;case"counter":if(u.length>0){var f={type:n.COUNTER,name:u[0]};u.length>1&&(f.format=u[1]),A.push(f)}break;case"counters":if(u.length>0){var p={type:n.COUNTERS,name:u[0]};u.length>1&&(p.glue=u[1]),u.length>2&&(p.format=u[2]),A.push(p)}break;case"url":u.length>0&&A.push({type:n.URL,value:u[0]})}s=!1,c=""}break;case",":i?c+=d:s&&(u.push(c),c="");break;case" ":case"\t":i?c+=d:c&&(o(A,c),c="");break;default:c+=d}"\\"!==d&&(a=!1)}return c&&o(A,c),e&&(e[t]=A),A}),o=function(t,e){switch(e){case"open-quote":t.push({type:n.OPENQUOTE});break;case"close-quote":t.push({type:n.CLOSEQUOTE})}},a=function(t,e,A){var r=t.quotes?t.quotes.split(/\s+/):["'\"'","'\"'"],n=2*A;return n>=r.length&&(n=r.length-2),e||++n,r[n].replace(/^["']|["']$/g,"")},s=function(t,e,A){for(var r=t.length,n="",i=0;i<r;i++)i>0&&(n+=e||""),n+=(0,V.createCounterText)(t[i],(0,b.parseListStyleType)(A||"decimal"),!1);return n}});e(rt);rt.parseContent,rt.resolvePseudoContent,rt.popCounters,rt.parseCounterReset,rt.TOKEN_TYPE,rt.PSEUDO_CONTENT_ITEM_TYPE;var nt=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.cloneWindow=e.DocumentCloner=void 0;var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=function(){function t(t,e){for(var A=0;A<e.length;A++){var r=e[A];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,A,r){return A&&t(e.prototype,A),r&&t(e,r),e}}(),i=A(At),o=A(s),a=e.DocumentCloner=function(){function t(e,A,r,n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.referenceElement=e,this.scrolledElements=[],this.copyStyles=n,this.inlineImages=n,this.logger=r,this.options=A,this.renderer=o,this.resourceLoader=new i.default(A,r,window),this.pseudoContentData={counters:{},quoteDepth:0},this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return n(t,[{key:"inlineAllImages",value:function(t){var e=this;if(this.inlineImages&&t){var A=t.style;Promise.all((0,B.parseBackgroundImage)(A.backgroundImage).map(function(t){return"url"===t.method?e.resourceLoader.inlineImage(t.args[0]).then(function(t){return t&&"string"==typeof t.src?'url("'+t.src+'")':"none"}).catch(function(t){}):Promise.resolve(""+t.prefix+t.method+"("+t.args.join(",")+")")})).then(function(t){t.length>1&&(A.backgroundColor=""),A.backgroundImage=t.join(",")}),t instanceof HTMLImageElement&&this.resourceLoader.inlineImage(t.src).then(function(e){if(e&&t instanceof HTMLImageElement&&t.parentNode){var A=t.parentNode,r=(0,l.copyCSSStyles)(t.style,e.cloneNode(!1));A.replaceChild(r,t)}}).catch(function(t){})}}},{key:"inlineFonts",value:function(t){var e=this;return Promise.all(Array.from(t.styleSheets).map(function(e){return e.href?fetch(e.href).then(function(t){return t.text()}).then(function(t){return u(t,e.href)}).catch(function(t){return[]}):c(e,t)})).then(function(t){return t.reduce(function(t,e){return t.concat(e)},[])}).then(function(t){return Promise.all(t.map(function(t){return fetch(t.formats[0].src).then(function(t){return t.blob()}).then(function(t){return new Promise(function(e,A){var r=new FileReader;r.onerror=A,r.onload=function(){var t=r.result;e(t)},r.readAsDataURL(t)})}).then(function(e){return t.fontFace.setProperty("src",'url("'+e+'")'),"@font-face {"+t.fontFace.cssText+" "})}))}).then(function(A){var r=t.createElement("style");r.textContent=A.join("\n"),e.documentElement.appendChild(r)})}},{key:"createElementClone",value:function(t){var e=this;if(this.copyStyles&&t instanceof HTMLCanvasElement){var A=t.ownerDocument.createElement("img");try{return A.src=t.toDataURL(),A}catch(t){}}if(t instanceof HTMLIFrameElement){var r=t.cloneNode(!1),n=C();r.setAttribute("data-html2canvas-internal-iframe-key",n);var i=(0,p.parseBounds)(t,0,0),a=i.width,s=i.height;return this.resourceLoader.cache[n]=b(t,this.options).then(function(t){return e.renderer(t,{async:e.options.async,allowTaint:e.options.allowTaint,backgroundColor:"#ffffff",canvas:null,imageTimeout:e.options.imageTimeout,logging:e.options.logging,proxy:e.options.proxy,removeContainer:e.options.removeContainer,scale:e.options.scale,foreignObjectRendering:e.options.foreignObjectRendering,useCORS:e.options.useCORS,target:new o.default,width:a,height:s,x:0,y:0,windowWidth:t.ownerDocument.defaultView.innerWidth,windowHeight:t.ownerDocument.defaultView.innerHeight,scrollX:t.ownerDocument.defaultView.pageXOffset,scrollY:t.ownerDocument.defaultView.pageYOffset},e.logger.child(n))}).then(function(e){return new Promise(function(A,n){var i=document.createElement("img");i.onload=function(){return A(e)},i.onerror=n,i.src=e.toDataURL(),r.parentNode&&r.parentNode.replaceChild((0,l.copyCSSStyles)(t.ownerDocument.defaultView.getComputedStyle(t),i),r)})}),r}if(t instanceof HTMLStyleElement&&t.sheet&&t.sheet.cssRules){var c=[].slice.call(t.sheet.cssRules,0).reduce(function(t,A){try{return A&&A.cssText?t+A.cssText:t}catch(r){return e.logger.log("Unable to access cssText property",A.name),t}},""),u=t.cloneNode(!1);return u.textContent=c,u}return t.cloneNode(!1)}},{key:"cloneNode",value:function(t){var e=t.nodeType===Node.TEXT_NODE?document.createTextNode(t.nodeValue):this.createElementClone(t),A=t.ownerDocument.defaultView,r=t instanceof A.HTMLElement?A.getComputedStyle(t):null,n=t instanceof A.HTMLElement?A.getComputedStyle(t,":before"):null,i=t instanceof A.HTMLElement?A.getComputedStyle(t,":after"):null;this.referenceElement===t&&e instanceof A.HTMLElement&&(this.clonedReferenceElement=e),e instanceof A.HTMLBodyElement&&y(e);for(var o=(0,rt.parseCounterReset)(r,this.pseudoContentData),a=(0,rt.resolvePseudoContent)(t,n,this.pseudoContentData),s=t.firstChild;s;s=s.nextSibling)s.nodeType===Node.ELEMENT_NODE&&("SCRIPT"===s.nodeName||s.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.copyStyles&&"STYLE"===s.nodeName||e.appendChild(this.cloneNode(s));var c=(0,rt.resolvePseudoContent)(t,i,this.pseudoContentData);if((0,rt.popCounters)(o,this.pseudoContentData),t instanceof A.HTMLElement&&e instanceof A.HTMLElement)switch(n&&this.inlineAllImages(d(t,e,n,a,f)),i&&this.inlineAllImages(d(t,e,i,c,g)),!r||!this.copyStyles||t instanceof HTMLIFrameElement||(0,l.copyCSSStyles)(r,e),this.inlineAllImages(e),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([e,t.scrollLeft,t.scrollTop]),t.nodeName){case"CANVAS":this.copyStyles||h(t,e);break;case"TEXTAREA":case"SELECT":e.value=t.value}return e}}]),t}(),c=function(t,e){return(t.cssRules?Array.from(t.cssRules):[]).filter(function(t){return t.type===CSSRule.FONT_FACE_RULE}).map(function(t){for(var A=(0,B.parseBackgroundImage)(t.style.getPropertyValue("src")),r=[],n=0;n<A.length;n++)if("url"===A[n].method&&A[n+1]&&"format"===A[n+1].method){var i=e.createElement("a");i.href=A[n].args[0],e.body&&e.body.appendChild(i);var o={src:i.href,format:A[n+1].args[0]};r.push(o)}return{formats:r.filter(function(t){return/^woff/i.test(t.format)}),fontFace:t.style}}).filter(function(t){return t.formats.length})},u=function(t,e){var A=document.implementation.createHTMLDocument(""),r=document.createElement("base");r.href=e;var n=document.createElement("style");return n.textContent=t,A.head&&A.head.appendChild(r),A.body&&A.body.appendChild(n),n.sheet?c(n.sheet,A):[]},h=function(t,e){try{if(e){e.width=t.width,e.height=t.height;var A=t.getContext("2d"),r=e.getContext("2d");A?r.putImageData(A.getImageData(0,0,t.width,t.height),0,0):r.drawImage(t,0,0)}}catch(t){}},d=function(t,e,A,r,n){if(A&&A.content&&"none"!==A.content&&"-moz-alt-content"!==A.content&&"none"!==A.display){var i=e.ownerDocument.createElement("html2canvaspseudoelement");if((0,l.copyCSSStyles)(A,i),r)for(var o=r.length,a=0;a<o;a++){var s=r[a];switch(s.type){case rt.PSEUDO_CONTENT_ITEM_TYPE.IMAGE:var c=e.ownerDocument.createElement("img");c.src=(0,B.parseBackgroundImage)("url("+s.value+")")[0].args[0],c.style.opacity="1",i.appendChild(c);break;case rt.PSEUDO_CONTENT_ITEM_TYPE.TEXT:i.appendChild(e.ownerDocument.createTextNode(s.value))}}return i.className=w+" "+m,e.className+=n===f?" "+w:" "+m,n===f?e.insertBefore(i,e.firstChild):e.appendChild(i),i}},f=":before",g=":after",w="___html2canvas___pseudoelement_before",m="___html2canvas___pseudoelement_after",y=function(t){v(t,"."+w+f+'{\n    content: "" !important;\n    display: none !important;\n}\n         .'+m+g+'{\n    content: "" !important;\n    display: none !important;\n}')},v=function(t,e){var A=t.ownerDocument.createElement("style");A.innerHTML=e,t.appendChild(A)},Q=function(t){var e=r(t,3),A=e[0],n=e[1],i=e[2];A.scrollLeft=n,A.scrollTop=i},C=function(){return Math.ceil(Date.now()+1e7*Math.random()).toString(16)},U=/^data:text\/(.+);(base64)?,(.*)$/i,b=function(t,e){try{return Promise.resolve(t.contentWindow.document.documentElement)}catch(A){return e.proxy?(0,et.Proxy)(t.src,e).then(function(t){var e=t.match(U);return e?"base64"===e[2]?window.atob(decodeURIComponent(e[3])):decodeURIComponent(e[3]):Promise.reject()}).then(function(e){return F(t.ownerDocument,(0,p.parseBounds)(t,0,0)).then(function(t){var A=t.contentWindow.document;A.open(),A.write(e);var r=E(t).then(function(){return A.documentElement});return A.close(),r})}):Promise.reject()}},F=function(t,e){var A=t.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=e.width.toString(),A.height=e.height.toString(),A.scrolling="no",A.setAttribute("data-html2canvas-ignore","true"),t.body?(t.body.appendChild(A),Promise.resolve(A)):Promise.reject("")},E=function(t){var e=t.contentWindow,A=e.document;return new Promise(function(r,n){e.onload=t.onload=A.onreadystatechange=function(){var e=setInterval(function(){A.body.childNodes.length>0&&"complete"===A.readyState&&(clearInterval(e),r(t))},50)}})},x=(e.cloneWindow=function(t,e,A,r,n,i){var o=new a(A,r,n,!1,i),s=t.defaultView.pageXOffset,c=t.defaultView.pageYOffset;return F(t,e).then(function(n){var i=n.contentWindow,a=i.document,l=E(n).then(function(){o.scrolledElements.forEach(Q),i.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||i.scrollY===e.top&&i.scrollX===e.left||(a.documentElement.style.top=-e.top+"px",a.documentElement.style.left=-e.left+"px",a.documentElement.style.position="absolute");var A=Promise.resolve([n,o.clonedReferenceElement,o.resourceLoader]),s=r.onclone;return o.clonedReferenceElement instanceof i.HTMLElement||o.clonedReferenceElement instanceof t.defaultView.HTMLElement||o.clonedReferenceElement instanceof HTMLElement?"function"==typeof s?Promise.resolve().then(function(){return s(a)}).then(function(){return A}):A:Promise.reject("")});return a.open(),a.write(x(document.doctype)+"<html></html>"),function(t,e,A){!t.defaultView||e===t.defaultView.pageXOffset&&A===t.defaultView.pageYOffset||t.defaultView.scrollTo(e,A)}(A.ownerDocument,s,c),a.replaceChild(a.adoptNode(o.documentElement),a.documentElement),a.close(),l})},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})});e(nt);nt.cloneWindow,nt.DocumentCloner;var it=A(function(t,e){function A(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.renderElement=void 0;var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var A=[],r=!0,n=!1,i=void 0;try{for(var o,a=t[Symbol.iterator]();!(r=(o=a.next()).done)&&(A.push(o.value),!e||A.length!==e);r=!0);}catch(t){n=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(n)throw i}}return A}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=(A(c),A(tt)),i=A(O),a=A(P),s=A(o);e.renderElement=function t(e,A,c){var l=e.ownerDocument,u=new p.Bounds(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),h=l.documentElement?new s.default(getComputedStyle(l.documentElement).backgroundColor):o.TRANSPARENT,d=l.body?new s.default(getComputedStyle(l.body).backgroundColor):o.TRANSPARENT,f=e===l.documentElement?h.isTransparent()?d.isTransparent()?A.backgroundColor?new s.default(A.backgroundColor):null:d:h:A.backgroundColor?new s.default(A.backgroundColor):null;return(A.foreignObjectRendering?a.default.SUPPORT_FOREIGNOBJECT_DRAWING:Promise.resolve(!1)).then(function(a){return a?function(t){return t.inlineFonts(l).then(function(){return t.resourceLoader.ready()}).then(function(){var r=new i.default(t.documentElement),n=l.defaultView,o=n.pageXOffset,a=n.pageYOffset,s="HTML"===e.tagName||"BODY"===e.tagName?(0,p.parseDocumentSize)(l):(0,p.parseBounds)(e,o,a),u=s.width,h=s.height,d=s.left,g=s.top;return r.render({backgroundColor:f,logger:c,scale:A.scale,x:"number"==typeof A.x?A.x:d,y:"number"==typeof A.y?A.y:g,width:"number"==typeof A.width?A.width:Math.ceil(u),height:"number"==typeof A.height?A.height:Math.ceil(h),windowWidth:A.windowWidth,windowHeight:A.windowHeight,scrollX:A.scrollX,scrollY:A.scrollY})})}(new nt.DocumentCloner(e,A,c,!0,t)):(0,nt.cloneWindow)(l,u,e,A,c,t).then(function(t){var e=r(t,3),i=e[0],a=e[1],s=e[2],u=(0,Y.NodeParser)(a,s,c),h=a.ownerDocument;return f===u.container.style.background.backgroundColor&&(u.container.style.background.backgroundColor=o.TRANSPARENT),s.ready().then(function(t){var e=new J.FontMetrics(h),r=h.defaultView,o=r.pageXOffset,s=r.pageYOffset,d="HTML"===a.tagName||"BODY"===a.tagName?(0,p.parseDocumentSize)(l):(0,p.parseBounds)(a,o,s),g=d.width,B=d.height,w=d.left,m=d.top,y={backgroundColor:f,fontMetrics:e,imageStore:t,logger:c,scale:A.scale,x:"number"==typeof A.x?A.x:w,y:"number"==typeof A.y?A.y:m,width:"number"==typeof A.width?A.width:Math.ceil(g),height:"number"==typeof A.height?A.height:Math.ceil(B)};if(Array.isArray(A.target))return Promise.all(A.target.map(function(t){return new n.default(t,y).render(u)}));var v=new n.default(A.target,y).render(u);return!0===A.removeContainer&&i.parentNode&&i.parentNode.removeChild(i),v})})})}});e(it);it.renderElement;var ot=e(A(function(t){function e(t){return t&&t.__esModule?t:{default:t}}var A=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t},r=e(s),n=e(c),i=function(t,e){var i=e||{},o=new n.default("boolean"!=typeof i.logging||i.logging);o.log("html2canvas $npm_package_version");var a=t.ownerDocument;if(!a)return Promise.reject("Provided element is not within a Document");var s=a.defaultView,c={async:!0,allowTaint:!1,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,scale:s.devicePixelRatio||1,target:new r.default(i.canvas),useCORS:!1,windowWidth:s.innerWidth,windowHeight:s.innerHeight,scrollX:s.pageXOffset,scrollY:s.pageYOffset};return(0,it.renderElement)(t,A({},c,i),o)};i.CanvasRenderer=r.default,t.exports=i})),at="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},st=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var A=arguments[e];for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(t[r]=A[r])}return t},ct=function(t){var e=void 0===t?"undefined":at(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"},lt=function(t,e){var A=document.createElement(t);if(e.className&&(A.className=e.className),e.innerHTML){A.innerHTML=e.innerHTML;for(var r=A.getElementsByTagName("script"),n=r.length;n-- >0;null)r[n].parentNode.removeChild(r[n])}for(var i in e.style)A.style[i]=e.style[i];return A},ut=function(t,e){if("number"===ct(t))return 72*t/96/e;var A={};for(var r in t)A[r]=72*t[r]/96/e;return A},ht=function(t,e){return Math.floor(t*e/72*96)},dt=A(function(e,A){e.exports=function(){function e(t){return"function"==typeof t}function A(){var t=setTimeout;return function(){return t(n,1)}}function n(){for(var t=0;t<y;t+=2){var e=H[t],A=H[t+1];e(A),H[t]=void 0,H[t+1]=void 0}y=0}function i(t,e){var A=this,r=new this.constructor(a);void 0===r[S]&&B(r);var n=A._state;if(n){var i=arguments[n-1];C(function(){return g(n,r,i,A._result)})}else f(A,r,t,e);return r}function o(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(a);return l(e,t),e}function a(){}function s(t){try{return t.then}catch(t){return k.error=t,k}}function c(t,A,r){A.constructor===t.constructor&&r===i&&A.constructor.resolve===o?function(t,e){e._state===T?h(t,e._result):e._state===N?d(t,e._result):f(e,void 0,function(e){return l(t,e)},function(e){return d(t,e)})}(t,A):r===k?(d(t,k.error),k.error=null):void 0===r?h(t,A):e(r)?function(t,e,A){C(function(t){var r=!1,n=function(t,e,A,r){try{t.call(e,A,r)}catch(t){return t}}(A,e,function(A){r||(r=!0,e!==A?l(t,A):h(t,A))},function(e){r||(r=!0,d(t,e))},t._label);!r&&n&&(r=!0,d(t,n))},t)}(t,A,r):h(t,A)}function l(t,e){t===e?d(t,new TypeError("You cannot resolve a promise with itself")):!function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}(e)?h(t,e):c(t,e,s(e))}function u(t){t._onerror&&t._onerror(t._result),p(t)}function h(t,e){t._state===_&&(t._result=e,t._state=T,0!==t._subscribers.length&&C(p,t))}function d(t,e){t._state===_&&(t._state=N,t._result=e,C(u,t))}function f(t,e,A,r){var n=t._subscribers,i=n.length;t._onerror=null,n[i]=e,n[i+T]=A,n[i+N]=r,0===i&&t._state&&C(p,t)}function p(t){var e=t._subscribers,A=t._state;if(0!==e.length){for(var r=void 0,n=void 0,i=t._result,o=0;o<e.length;o+=3)r=e[o],n=e[o+A],r?g(A,r,n,i):n(i);t._subscribers.length=0}}function g(t,A,r,n){var i=e(r),o=void 0,a=void 0,s=void 0,c=void 0;if(i){if((o=function(t,e){try{return t(e)}catch(t){return k.error=t,k}}(r,n))===k?(c=!0,a=o.error,o.error=null):s=!0,A===o)return void d(A,new TypeError("A promises callback cannot return that same promise."))}else o=n,s=!0;A._state!==_||(i&&s?l(A,o):c?d(A,a):t===T?h(A,o):t===N&&d(A,o))}function B(t){t[S]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var w=void 0;w=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var m=w,y=0,v=void 0,Q=void 0,C=function(t,e){H[y]=t,H[y+1]=e,2===(y+=2)&&(Q?Q(n):I())};var U="undefined"!=typeof window?window:void 0,b=U||{},F=b.MutationObserver||b.WebKitMutationObserver,E="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),x="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;var H=new Array(1e3);var I=void 0;I=E?function(){return process.nextTick(n)}:F?function(){var t=0,e=new F(n),A=document.createTextNode("");return e.observe(A,{characterData:!0}),function(){A.data=t=++t%2}}():x?function(){var t=new MessageChannel;return t.port1.onmessage=n,function(){return t.port2.postMessage(0)}}():void 0===U&&"function"==typeof t?function(){try{var t=Function("return this")().require("vertx");return v=t.runOnLoop||t.runOnContext,function(){if(void 0!==v)return function(){v(n)};return A()}()}catch(t){return A()}}():A();var S=Math.random().toString(36).substring(2);var _=void 0,T=1,N=2,k={error:null};var O=0;var P=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(a),this.promise[S]||B(this.promise),m(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?h(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&h(this.promise,this._result))):d(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===_&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var A=this._instanceConstructor,r=A.resolve;if(r===o){var n=s(t);if(n===i&&t._state!==_)this._settledAt(t._state,e,t._result);else if("function"!=typeof n)this._remaining--,this._result[e]=t;else if(A===D){var l=new A(a);c(l,t,n),this._willSettleAt(l,e)}else this._willSettleAt(new A(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,A){var r=this.promise;r._state===_&&(this._remaining--,t===N?d(r,A):this._result[e]=A),0===this._remaining&&h(r,this._result)},t.prototype._willSettleAt=function(t,e){var A=this;f(t,void 0,function(t){return A._settledAt(T,e,t)},function(t){return A._settledAt(N,e,t)})},t}();var D=function(){function t(e){this[S]=O++,this._result=this._state=void 0,this._subscribers=[],a!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(t,e){try{e(function(e){l(t,e)},function(e){d(t,e)})}catch(e){d(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var A=this.constructor;return e(t)?this.then(function(e){return A.resolve(t()).then(function(){return e})},function(e){return A.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();D.prototype.then=i,D.all=function(t){return new P(this,t).promise},D.race=function(t){var e=this;return new e(m(t)?function(A,r){for(var n=t.length,i=0;i<n;i++)e.resolve(t[i]).then(A,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})},D.resolve=o,D.reject=function(t){var e=new this(a);return d(e,t),e},D._setScheduler=function(t){Q=t},D._setAsap=function(t){C=t},D._asap=C;return D.polyfill=function(){var t=void 0;if(void 0!==r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var A=null;try{A=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===A&&!e.cast)return}t.Promise=D},D.Promise=D,D}()}).Promise,ft=function t(e){var A=st(t.convert(dt.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(dt.resolve(),A);return r=r.setProgress(1,t,1,[t]),r=r.set(e)};(ft.prototype=Object.create(dt.prototype)).constructor=ft,ft.convert=function(t,e){return t.__proto__=e||ft.prototype,t},ft.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},ft.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(ct(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:lt("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.")}})},ft.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.")}},ft.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:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},e={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};t.opacity=0;var A=function t(e,A){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==A&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(t(n,A));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);this.prop.overlay=lt("div",{className:"html2pdf__overlay",style:t}),this.prop.container=lt("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(A),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ft.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=st({},this.opt.html2canvas);return delete t.onrendered,ot(this.prop.container,t)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},ft.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})},ft.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas,e=this.opt,A=t.height,r=Math.floor(t.width*this.prop.pageSize.inner.ratio),i=Math.ceil(A/r),o=this.prop.pageSize.inner.height,a=document.createElement("canvas"),s=a.getContext("2d");a.width=t.width,a.height=r,this.prop.pdf=this.prop.pdf||new n(e.jsPDF);for(var c=0;c<i;c++){c===i-1&&A%r!=0&&(a.height=A%r,o=a.height*this.prop.pageSize.inner.width/a.width);var l=a.width,u=a.height;s.fillStyle="white",s.fillRect(0,0,l,u),s.drawImage(t,0,c*r,l,u,0,0,l,u),c&&this.prop.pdf.addPage();var h=a.toDataURL("image/"+e.image.type,e.image.quality);this.prop.pdf.addImage(h,e.image.type,e.margin[1],e.margin[0],this.prop.pageSize.inner.width,o)}})},ft.prototype.output=function(t,e,A){return"img"===(A=A||"pdf").toLowerCase()||"image"===A.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},ft.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},ft.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.'}})},ft.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)})},ft.prototype.set=function(t){if("object"!==ct(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in ft.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)})},ft.prototype.get=function(t,e){return this.then(function(){var A=t in ft.template.prop?this.prop[t]:this.opt[t];return e?e(A):A})},ft.prototype.setMargin=function(t){return this.then(function(){switch(ct(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)},ft.prototype.setPageSize=function(t){return this.then(function(){(t=t||n.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:ht(t.inner.width,t.k),height:ht(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},ft.prototype.setProgress=function(t,e,A,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=A&&(this.progress.n=A),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},ft.prototype.updateProgress=function(t,e,A,r){return this.setProgress(t?this.progress.val+t:null,e||null,A?this.progress.n+A:null,r?this.progress.stack.concat(r):null)},ft.prototype.then=function(t,e){var A=this;return this.thenCore(t,e,function(t,e){return A.updateProgress(null,null,1,[t]),dt.prototype.then.call(this,function(e){return A.updateProgress(null,t),e}).then(t,e).then(function(t){return A.updateProgress(1),t})})},ft.prototype.thenCore=function(t,e,A){A=A||dt.prototype.then;t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==dt.toString().indexOf("[native code]")&&"Promise"===dt.name?this:ft.convert(st({},this),dt.prototype),n=A.call(r,t,e);return ft.convert(n,this.__proto__)},ft.prototype.thenExternal=function(t,e){return dt.prototype.then.call(this,t,e)},ft.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},ft.prototype.catch=function(t){t&&(t=t.bind(this));var e=dt.prototype.catch.call(this,t);return ft.convert(e,this)},ft.prototype.catchExternal=function(t){return dt.prototype.catch.call(this,t)},ft.prototype.error=function(t){return this.then(function(){throw new Error(t)})},ft.prototype.using=ft.prototype.set,ft.prototype.saveAs=ft.prototype.save,ft.prototype.export=ft.prototype.output,ft.prototype.run=ft.prototype.then,n.getPageSize=function(t,e,A){if("object"===(void 0===t?"undefined":at(t))){var r=t;t=r.orientation,e=r.unit||e,A=r.format||A}e=e||"mm",A=A||"a4",t=(""+(t||"P")).toLowerCase();var n=(""+A).toLowerCase(),i={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":var o=6;break;default:throw"Invalid unit: "+e}if(i.hasOwnProperty(n))var a=i[n][1]/o,s=i[n][0]/o;else try{var a=A[1],s=A[0]}catch(t){throw new Error("Invalid format: "+A)}if("p"===t||"portrait"===t){if(t="p",s>a){c=s;s=a,a=c}}else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;if(t="l",a>s){var c=s;s=a,a=c}}return{width:s,height:a,unit:e,k:o}};var pt={toContainer:ft.prototype.toContainer};ft.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},ft.prototype.toContainer=function(){return pt.toContainer.call(this).then(function(){var t=this.prop.container,e=this.prop.pageSize.inner.px.height,A=[].concat(this.opt.pagebreak.mode),r={avoidAll:-1!==A.indexOf("avoid-all"),css:-1!==A.indexOf("css"),legacy:-1!==A.indexOf("legacy")},n={},i=this;["before","after","avoid"].forEach(function(e){var A=r.avoidAll&&"avoid"===e;n[e]=A?[]:[].concat(i.opt.pagebreak[e]||[]),n[e].length>0&&(n[e]=Array.prototype.slice.call(t.querySelectorAll(n[e].join(", "))))});var o=t.querySelectorAll(".html2pdf__page-break");o=Array.prototype.slice.call(o);var a=t.querySelectorAll("*");Array.prototype.forEach.call(a,function(t){var A={before:!1,after:r.legacy&&-1!==o.indexOf(t),avoid:r.avoidAll};if(r.css){var i=window.getComputedStyle(t),a=["always","page","left","right"];A={before:A.before||-1!==a.indexOf(i.breakBefore||i.pageBreakBefore),after:A.after||-1!==a.indexOf(i.breakAfter||i.pageBreakAfter),avoid:A.avoid||-1!==["avoid","avoid-page"].indexOf(i.breakInside||i.pageBreakInside)}}Object.keys(A).forEach(function(e){A[e]=A[e]||-1!==n[e].indexOf(t)});var s=t.getBoundingClientRect();if(A.avoid&&!A.before){var c=Math.floor(s.top/e),l=Math.floor(s.bottom/e),u=Math.abs(s.bottom-s.top)/e;l!==c&&u<=1&&(A.before=!0)}if(A.before){h=lt("div",{style:{display:"block",height:e-s.top%e+"px"}});t.parentNode.insertBefore(h,t)}if(A.after){var h=lt("div",{style:{display:"block",height:e-s.bottom%e+"px"}});t.parentNode.insertBefore(h,t.nextSibling)}})})};var gt=[],Bt={toContainer:ft.prototype.toContainer,toPdf:ft.prototype.toPdf};ft.prototype.toContainer=function(){return Bt.toContainer.call(this).then(function(){if(this.opt.enableLinks){var t=this.prop.container,e=t.querySelectorAll("a"),A=ut(t.getBoundingClientRect(),this.prop.pageSize.k);gt=[],Array.prototype.forEach.call(e,function(t){for(var e=t.getClientRects(),r=0;r<e.length;r++){var n=ut(e[r],this.prop.pageSize.k);n.left-=A.left,n.top-=A.top;var i=Math.floor(n.top/this.prop.pageSize.inner.height)+1,o=this.opt.margin[0]+n.top%this.prop.pageSize.inner.height,a=this.opt.margin[1]+n.left;gt.push({page:i,top:o,left:a,clientRect:n,link:t})}},this)}})},ft.prototype.toPdf=function(){return Bt.toPdf.call(this).then(function(){if(this.opt.enableLinks){gt.forEach(function(t){this.prop.pdf.setPage(t.page),this.prop.pdf.link(t.left,t.top,t.clientRect.width,t.clientRect.height,{url:t.link.href})},this);var t=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(t)}})};var wt=function t(e,A){var r=new t.Worker(A);return e?r.from(e).save():r};return wt.Worker=ft,wt});
+/*! For license information please see html2pdf.bundle.min.js.LICENSE.txt */
+!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("html2pdf",[],t):"object"==typeof exports?exports.html2pdf=t():e.html2pdf=t()}(self,(function(){return function(){var e,t,r={"./node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/array/from.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/array/is-array.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/date/now.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/date/now.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/bind.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/bind.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/concat.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/every.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/every.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/fill.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/filter.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/for-each.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/includes.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/index-of.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/map.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/reduce.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/reverse.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/slice.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/some.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/some.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/starts-with.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/trim.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/instance/values.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/map.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/map/index.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/object/define-properties.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/object/define-property.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/object/get-own-property-descriptor.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/object/get-own-property-descriptors.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/object/get-own-property-symbols.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/object/keys.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/parse-float.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/parse-int.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/promise.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/promise/index.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/apply.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/reflect/apply.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/reflect/construct.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/delete-property.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/reflect/delete-property.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-prototype-of.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/reflect/get-prototype-of.js")},"./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/stable/symbol/index.js")},"./node_modules/@babel/runtime-corejs3/core-js/array/from.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/array/from.js")},"./node_modules/@babel/runtime-corejs3/core-js/array/is-array.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/array/is-array.js")},"./node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/get-iterator-method.js")},"./node_modules/@babel/runtime-corejs3/core-js/get-iterator.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/get-iterator.js")},"./node_modules/@babel/runtime-corejs3/core-js/instance/slice.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/instance/slice.js")},"./node_modules/@babel/runtime-corejs3/core-js/object/create.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/object/create.js")},"./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/object/define-property.js")},"./node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptor.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/object/get-own-property-descriptor.js")},"./node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/object/get-prototype-of.js")},"./node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/object/set-prototype-of.js")},"./node_modules/@babel/runtime-corejs3/core-js/promise.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/promise/index.js")},"./node_modules/@babel/runtime-corejs3/core-js/reflect/get.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/reflect/get.js")},"./node_modules/@babel/runtime-corejs3/core-js/symbol.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/symbol/index.js")},"./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js":function(e,t,r){e.exports=r("./node_modules/core-js-pure/features/symbol/iterator.js")},"./node_modules/@babel/runtime-corejs3/helpers/esm/arrayLikeToArray.js":function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithHoles.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/array/is-array.js");function o(e){if(n(e))return e}},"./node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/array/is-array.js"),o=r("./node_modules/@babel/runtime-corejs3/helpers/esm/arrayLikeToArray.js");function s(e){if(n(e))return(0,o.default)(e)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js":function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/promise.js");function o(e,t,r,o,s,i,a){try{var A=e[i](a),u=A.value}catch(e){return void r(e)}A.done?t(u):n.resolve(u).then(o,s)}function s(e){return function(){var t=this,r=arguments;return new n((function(n,s){var i=e.apply(t,r);function a(e){o(i,n,s,a,A,"next",e)}function A(e){o(i,n,s,a,A,"throw",e)}a(void 0)}))}}},"./node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js":function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js");function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),n(e,o.key,o)}}function s(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),e}},"./node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js");function o(e,t,r){return t in e?n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},"./node_modules/@babel/runtime-corejs3/helpers/esm/get.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/reflect/get.js"),o=r("./node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptor.js"),s=r("./node_modules/@babel/runtime-corejs3/helpers/esm/superPropBase.js");function i(e,t,r){return(i="undefined"!=typeof Reflect&&n?n:function(e,t,r){var n=(0,s.default)(e,t);if(n){var i=o(n,t);return i.get?i.get.call(r):i.value}})(e,t,r||e)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js"),o=r("./node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js");function s(e){return(s=n?o:function(e){return e.__proto__||o(e)})(e)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/object/create.js"),o=r("./node_modules/@babel/runtime-corejs3/helpers/esm/setPrototypeOf.js");function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=n(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,o.default)(e,t)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/symbol.js"),o=r("./node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js"),s=r("./node_modules/@babel/runtime-corejs3/core-js/array/from.js");function i(e){if(void 0!==n&&null!=o(e)||null!=e["@@iterator"])return s(e)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/symbol.js"),o=r("./node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js");function s(e,t){var r=null==e?null:void 0!==n&&o(e)||e["@@iterator"];if(null!=r){var s,i,a=[],A=!0,u=!1;try{for(r=r.call(e);!(A=(s=r.next()).done)&&(a.push(s.value),!t||a.length!==t);A=!0);}catch(e){u=!0,i=e}finally{try{A||null==r.return||r.return()}finally{if(u)throw i}}return a}}},"./node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js":function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js":function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.r(t),r.d(t,{default:function(){return n}})},"./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js"),o=r("./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js");function s(e,t){return!t||"object"!==(0,n.default)(t)&&"function"!=typeof t?(0,o.default)(e):t}},"./node_modules/@babel/runtime-corejs3/helpers/esm/setPrototypeOf.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js");function o(e,t){return(o=n||function(e,t){return e.__proto__=t,e})(e,t)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("./node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithHoles.js"),o=r("./node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js"),s=r("./node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js"),i=r("./node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js");function a(e,t){return(0,n.default)(e)||(0,o.default)(e,t)||(0,s.default)(e,t)||(0,i.default)()}},"./node_modules/@babel/runtime-corejs3/helpers/esm/superPropBase.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r("./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js");function o(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,n.default)(e)););return e}},"./node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a}});var n=r("./node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js"),o=r("./node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js"),s=r("./node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js"),i=r("./node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js");function a(e){return(0,n.default)(e)||(0,o.default)(e)||(0,s.default)(e)||(0,i.default)()}},"./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return s}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/symbol.js"),o=r("./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js");function s(e){return(s="function"==typeof n&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e})(e)}},"./node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js":function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return i}});var n=r("./node_modules/@babel/runtime-corejs3/core-js/instance/slice.js"),o=r("./node_modules/@babel/runtime-corejs3/core-js/array/from.js"),s=r("./node_modules/@babel/runtime-corejs3/helpers/esm/arrayLikeToArray.js");function i(e,t){var r;if(e){if("string"==typeof e)return(0,s.default)(e,t);var i=n(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?o(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?(0,s.default)(e,t):void 0}}},"./node_modules/@babel/runtime-corejs3/regenerator/index.js":function(e,t,r){e.exports=r("./node_modules/regenerator-runtime/runtime.js")},"./src/plugin/hyperlinks.js":function(e,t,r){"use strict";r.r(t),r("./node_modules/core-js/modules/web.dom-collections.for-each.js"),r("./node_modules/core-js/modules/es.string.link.js");var n=r("./src/worker.js"),o=r("./src/utils.js"),s=[],i={toContainer:n.default.prototype.toContainer,toPdf:n.default.prototype.toPdf};n.default.prototype.toContainer=function(){return i.toContainer.call(this).then((function(){if(this.opt.enableLinks){var e=this.prop.container,t=e.querySelectorAll("a"),r=(0,o.unitConvert)(e.getBoundingClientRect(),this.prop.pageSize.k);s=[],Array.prototype.forEach.call(t,(function(e){for(var t=e.getClientRects(),n=0;n<t.length;n++){var i=(0,o.unitConvert)(t[n],this.prop.pageSize.k);i.left-=r.left,i.top-=r.top;var a=Math.floor(i.top/this.prop.pageSize.inner.height)+1,A=this.opt.margin[0]+i.top%this.prop.pageSize.inner.height,u=this.opt.margin[1]+i.left;s.push({page:a,top:A,left:u,clientRect:i,link:e})}}),this)}}))},n.default.prototype.toPdf=function(){return i.toPdf.call(this).then((function(){if(this.opt.enableLinks){s.forEach((function(e){this.prop.pdf.setPage(e.page),this.prop.pdf.link(e.left,e.top,e.clientRect.width,e.clientRect.height,{url:e.link.href})}),this);var e=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(e)}}))}},"./src/plugin/jspdf-plugin.js":function(e,t,r){"use strict";r.r(t),r("./node_modules/core-js/modules/es.symbol.js"),r("./node_modules/core-js/modules/es.symbol.description.js"),r("./node_modules/core-js/modules/es.object.to-string.js"),r("./node_modules/core-js/modules/es.symbol.iterator.js"),r("./node_modules/core-js/modules/es.array.iterator.js"),r("./node_modules/core-js/modules/es.string.iterator.js"),r("./node_modules/core-js/modules/web.dom-collections.iterator.js");var n=r("./node_modules/jspdf/dist/jspdf.es.min.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.jsPDF.getPageSize=function(e,t,r){if("object"===o(e)){var n=e;e=n.orientation,t=n.unit||t,r=n.format||r}t=t||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var s=(""+r).toLowerCase(),i={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":var a=1;break;case"mm":a=72/25.4;break;case"cm":a=72/2.54;break;case"in":a=72;break;case"px":a=.75;break;case"pc":case"em":a=12;break;case"ex":a=6;break;default:throw"Invalid unit: "+t}if(i.hasOwnProperty(s))var A=i[s][1]/a,u=i[s][0]/a;else try{A=r[1],u=r[0]}catch(e){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e){if(e="p",u>A){var c=u;u=A,A=c}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",A>u&&(c=u,u=A,A=c)}return{width:u,height:A,unit:t,k:a}},t.default=n.jsPDF},"./src/plugin/pagebreaks.js":function(e,t,r){"use strict";r.r(t),r("./node_modules/core-js/modules/es.array.concat.js"),r("./node_modules/core-js/modules/es.array.slice.js"),r("./node_modules/core-js/modules/es.array.join.js"),r("./node_modules/core-js/modules/web.dom-collections.for-each.js"),r("./node_modules/core-js/modules/es.object.keys.js");var n=r("./src/worker.js"),o=r("./src/utils.js"),s={toContainer:n.default.prototype.toContainer};n.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},n.default.prototype.toContainer=function(){return s.toContainer.call(this).then((function(){var e=this.prop.container,t=this.prop.pageSize.inner.px.height,r=[].concat(this.opt.pagebreak.mode),n={avoidAll:-1!==r.indexOf("avoid-all"),css:-1!==r.indexOf("css"),legacy:-1!==r.indexOf("legacy")},s={},i=this;["before","after","avoid"].forEach((function(t){var r=n.avoidAll&&"avoid"===t;s[t]=r?[]:[].concat(i.opt.pagebreak[t]||[]),s[t].length>0&&(s[t]=Array.prototype.slice.call(e.querySelectorAll(s[t].join(", "))))}));var a=e.querySelectorAll(".html2pdf__page-break");a=Array.prototype.slice.call(a);var A=e.querySelectorAll("*");Array.prototype.forEach.call(A,(function(e){var r={before:!1,after:n.legacy&&-1!==a.indexOf(e),avoid:n.avoidAll};if(n.css){var i=window.getComputedStyle(e),A=["always","page","left","right"];r={before:r.before||-1!==A.indexOf(i.breakBefore||i.pageBreakBefore),after:r.after||-1!==A.indexOf(i.breakAfter||i.pageBreakAfter),avoid:r.avoid||-1!==["avoid","avoid-page"].indexOf(i.breakInside||i.pageBreakInside)}}Object.keys(r).forEach((function(t){r[t]=r[t]||-1!==s[t].indexOf(e)}));var u=e.getBoundingClientRect();if(r.avoid&&!r.before){var c=Math.floor(u.top/t),l=Math.floor(u.bottom/t),d=Math.abs(u.bottom-u.top)/t;l!==c&&d<=1&&(r.before=!0)}if(r.before){var f=(0,o.createElement)("div",{style:{display:"block",height:t-u.top%t+"px"}});e.parentNode.insertBefore(f,e)}r.after&&(f=(0,o.createElement)("div",{style:{display:"block",height:t-u.bottom%t+"px"}}),e.parentNode.insertBefore(f,e.nextSibling))}))}))}},"./src/utils.js":function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.r(t),r.d(t,{objType:function(){return o},createElement:function(){return s},cloneNode:function(){return i},unitConvert:function(){return a},toPx:function(){return A}}),r("./node_modules/core-js/modules/es.number.constructor.js"),r("./node_modules/core-js/modules/es.symbol.js"),r("./node_modules/core-js/modules/es.symbol.description.js"),r("./node_modules/core-js/modules/es.object.to-string.js"),r("./node_modules/core-js/modules/es.symbol.iterator.js"),r("./node_modules/core-js/modules/es.array.iterator.js"),r("./node_modules/core-js/modules/es.string.iterator.js"),r("./node_modules/core-js/modules/web.dom-collections.iterator.js");var o=function(e){var t=n(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},s=function(e,t){var r=document.createElement(e);if(t.className&&(r.className=t.className),t.innerHTML){r.innerHTML=t.innerHTML;for(var n=r.getElementsByTagName("script"),o=n.length;o-- >0;null)n[o].parentNode.removeChild(n[o])}for(var s in t.style)r.style[s]=t.style[s];return r},i=function e(t,r){for(var n=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),o=t.firstChild;o;o=o.nextSibling)!0!==r&&1===o.nodeType&&"SCRIPT"===o.nodeName||n.appendChild(e(o,r));return 1===t.nodeType&&("CANVAS"===t.nodeName?(n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(n.value=t.value),n.addEventListener("load",(function(){n.scrollTop=t.scrollTop,n.scrollLeft=t.scrollLeft}),!0)),n},a=function(e,t){if("number"===o(e))return 72*e/96/t;var r={};for(var n in e)r[n]=72*e[n]/96/t;return r},A=function(e,t){return Math.floor(e*t/72*96)}},"./src/worker.js":function(e,t,r){"use strict";r.r(t),r("./node_modules/core-js/modules/es.object.assign.js"),r("./node_modules/core-js/modules/es.array.map.js"),r("./node_modules/core-js/modules/es.object.keys.js"),r("./node_modules/core-js/modules/es.array.concat.js"),r("./node_modules/core-js/modules/es.object.to-string.js"),r("./node_modules/core-js/modules/es.regexp.to-string.js"),r("./node_modules/core-js/modules/es.function.name.js"),r("./node_modules/core-js/modules/web.dom-collections.for-each.js");var n=r("./node_modules/jspdf/dist/jspdf.es.min.js"),o=r("./node_modules/html2canvas/dist/html2canvas.js"),s=r("./src/utils.js"),i=r("./node_modules/es6-promise/dist/es6-promise.js"),a=r.n(i)().Promise,A=function e(t){var r=Object.assign(e.convert(a.resolve()),JSON.parse(JSON.stringify(e.template))),n=e.convert(a.resolve(),r);return(n=n.setProgress(1,e,1,[e])).set(t)};(A.prototype=Object.create(a.prototype)).constructor=A,A.convert=function(e,t){return e.__proto__=t||A.prototype,e},A.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},A.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch((0,s.objType)(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.set({src:(0,s.createElement)("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},A.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},A.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},t={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};e.opacity=0;var r=(0,s.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,s.createElement)("div",{className:"html2pdf__overlay",style:e}),this.prop.container=(0,s.createElement)("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(r),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)}))},A.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then((function(){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,o(this.prop.container,e)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},A.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},A.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas,t=this.opt,r=e.height,o=Math.floor(e.width*this.prop.pageSize.inner.ratio),s=Math.ceil(r/o),i=this.prop.pageSize.inner.height,a=document.createElement("canvas"),A=a.getContext("2d");a.width=e.width,a.height=o,this.prop.pdf=this.prop.pdf||new n.jsPDF(t.jsPDF);for(var u=0;u<s;u++){u===s-1&&r%o!=0&&(a.height=r%o,i=a.height*this.prop.pageSize.inner.width/a.width);var c=a.width,l=a.height;A.fillStyle="white",A.fillRect(0,0,c,l),A.drawImage(e,0,u*o,c,l,0,0,c,l),u&&this.prop.pdf.addPage();var d=a.toDataURL("image/"+t.image.type,t.image.quality);this.prop.pdf.addImage(d,t.image.type,t.margin[1],t.margin[0],this.prop.pageSize.inner.width,i)}}))},A.prototype.output=function(e,t,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},A.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},A.prototype.outputImg=function(e,t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},A.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},A.prototype.set=function(e){if("object"!==(0,s.objType)(e))return this;var t=Object.keys(e||{}).map((function(t){switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return t in A.template.prop?function(){this.prop[t]=e[t]}:function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},A.prototype.get=function(e,t){return this.then((function(){var r=e in A.template.prop?this.prop[e]:this.opt[e];return t?t(r):r}))},A.prototype.setMargin=function(e){return this.then((function(){switch((0,s.objType)(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},A.prototype.setPageSize=function(e){return this.then((function(){(e=e||n.jsPDF.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:(0,s.toPx)(e.inner.width,e.k),height:(0,s.toPx)(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},A.prototype.setProgress=function(e,t,r,n){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},A.prototype.updateProgress=function(e,t,r,n){return this.setProgress(e?this.progress.val+e:null,t||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},A.prototype.then=function(e,t){var r=this;return this.thenCore(e,t,(function(e,t){return r.updateProgress(null,null,1,[e]),a.prototype.then.call(this,(function(t){return r.updateProgress(null,e),t})).then(e,t).then((function(e){return r.updateProgress(1),e}))}))},A.prototype.thenCore=function(e,t,r){r=r||a.prototype.then;var n=this;e&&(e=e.bind(n)),t&&(t=t.bind(n));var o=-1!==a.toString().indexOf("[native code]")&&"Promise"===a.name?n:A.convert(Object.assign({},n),a.prototype),s=r.call(o,e,t);return A.convert(s,n.__proto__)},A.prototype.thenExternal=function(e,t){return a.prototype.then.call(this,e,t)},A.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},A.prototype.catch=function(e){e&&(e=e.bind(this));var t=a.prototype.catch.call(this,e);return A.convert(t,this)},A.prototype.catchExternal=function(e){return a.prototype.catch.call(this,e)},A.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,t.default=A},"./node_modules/canvg/lib/index.es.js":function(e,t,r){"use strict";r.r(t),r.d(t,{AElement:function(){return pr},AnimateColorElement:function(){return ar},AnimateElement:function(){return ir},AnimateTransformElement:function(){return Ar},BoundingBox:function(){return Ot},CB1:function(){return at},CB2:function(){return At},CB3:function(){return ut},CB4:function(){return ct},Canvg:function(){return qr},CircleElement:function(){return Gt},ClipPathElement:function(){return Sr},DefsElement:function(){return er},DescElement:function(){return kr},Document:function(){return Kr},Element:function(){return St},EllipseElement:function(){return Xt},FeColorMatrixElement:function(){return Qr},FeCompositeElement:function(){return Ir},FeDropShadowElement:function(){return Tr},FeGaussianBlurElement:function(){return Pr},FeMorphologyElement:function(){return Hr},FilterElement:function(){return Lr},Font:function(){return Pt},FontElement:function(){return cr},FontFaceElement:function(){return lr},GElement:function(){return tr},GlyphElement:function(){return fr},GradientElement:function(){return rr},ImageElement:function(){return wr},LineElement:function(){return Wt},LinearGradientElement:function(){return nr},MarkerElement:function(){return $t},MaskElement:function(){return Fr},Matrix:function(){return Et},MissingGlyphElement:function(){return dr},Mouse:function(){return gt},PSEUDO_ZERO:function(){return nt},Parser:function(){return jt},PathElement:function(){return zt},PathParser:function(){return Kt},PatternElement:function(){return Zt},Point:function(){return mt},PolygonElement:function(){return Yt},PolylineElement:function(){return Jt},Property:function(){return ht},QB1:function(){return lt},QB2:function(){return dt},QB3:function(){return ft},RadialGradientElement:function(){return or},RectElement:function(){return qt},RenderedElement:function(){return kt},Rotate:function(){return Ct},SVGElement:function(){return Vt},SVGFontLoader:function(){return Br},Scale:function(){return xt},Screen:function(){return wt},Skew:function(){return Nt},SkewX:function(){return Qt},SkewY:function(){return Ft},StopElement:function(){return sr},StyleElement:function(){return jr},SymbolElement:function(){return br},TRefElement:function(){return hr},TSpanElement:function(){return Mt},TextElement:function(){return Rt},TextPathElement:function(){return vr},TitleElement:function(){return Or},Transform:function(){return Ut},Translate:function(){return _t},UnknownElement:function(){return Lt},UseElement:function(){return _r},ViewPort:function(){return pt},compressSpaces:function(){return Re},getSelectorSpecificity:function(){return rt},normalizeAttributeName:function(){return Ve},normalizeColor:function(){return Ge},parseExternalUrl:function(){return qe},presets:function(){return Gr},toNumbers:function(){return Ke},trimLeft:function(){return Me},trimRight:function(){return De},vectorMagnitude:function(){return ot},vectorsAngle:function(){return it},vectorsRatio:function(){return st}});var n=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js"),o=r.n(n),s=r("./node_modules/@babel/runtime-corejs3/core-js-stable/parse-float.js"),i=r.n(s),a=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js"),A=r.n(a),u=r("./node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js"),c=r("./node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js"),l=r.n(c),d=r("./node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js"),f=r.n(d),h=r("./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js"),p=r.n(h),m=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js"),g=r.n(m),y=r("./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js"),v=r.n(y),w=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js"),b=r.n(w),B=r("./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js"),j=r.n(B),_=r("./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js"),C=r.n(_),x=r("./node_modules/@babel/runtime-corejs3/regenerator/index.js"),E=r.n(x),N=r("./node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js"),Q=r("./node_modules/@babel/runtime-corejs3/helpers/esm/defineProperty.js"),F=r("./node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js"),U=r("./node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js"),S=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js"),L=r.n(S),T=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js"),H=r.n(T),I=r("./node_modules/@babel/runtime-corejs3/core-js-stable/date/now.js"),P=r.n(I),O=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/every.js"),k=r.n(O),R=r("./node_modules/@babel/runtime-corejs3/core-js-stable/promise.js"),M=r.n(R),D=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/bind.js"),K=r.n(D),z=r("./node_modules/raf/index.js"),V=r.n(z),q=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js"),G=r.n(q),X=r("./node_modules/rgbcolor/index.js"),W=r.n(X),J=r("./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js"),Y=r.n(J),Z=r("./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js"),$=r("./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js"),ee=r("./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js"),te=r("./node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js"),re=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/some.js"),ne=r.n(re),oe=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js"),se=r.n(oe),ie=r("./node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js"),ae=r.n(ie),Ae=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reverse.js"),ue=r.n(Ae),ce=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js"),le=r.n(ce),de=r("./node_modules/@babel/runtime-corejs3/helpers/esm/get.js"),fe=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/fill.js"),he=r.n(fe),pe=r("./node_modules/svg-pathdata/lib/SVGPathData.module.js"),me=r("./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/delete-property.js"),ge=r.n(me),ye=r("./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js"),ve=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/values.js"),we=r.n(ve),be=r("./node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js"),Be=r.n(be),je=r("./node_modules/@babel/runtime-corejs3/core-js/get-iterator.js"),_e=r.n(je),Ce=r("./node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js"),xe=r.n(Ce),Ee=r("./node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js"),Ne=r.n(Ee),Qe=r("./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js"),Fe=r.n(Qe),Ue=r("./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js"),Se=r.n(Ue),Le=r("./node_modules/@babel/runtime-corejs3/core-js-stable/map.js"),Te=r.n(Le),He=r("./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/apply.js"),Ie=r.n(He),Pe=r("./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/get-prototype-of.js"),Oe=r.n(Pe),ke=r("./node_modules/stackblur-canvas/dist/stackblur-es.js");function Re(e){return e.replace(/(?!\u3000)\s+/gm," ")}function Me(e){return e.replace(/^[\n \t]+/,"")}function De(e){return e.replace(/[\n \t]+$/,"")}function Ke(e){var t=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return A()(t).call(t,i())}var ze=/^[A-Z-]+$/;function Ve(e){return ze.test(e)?e.toLowerCase():e}function qe(e){var t=e.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}function Ge(e){if(!o()(e).call(e,"rgb"))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(function(e,r){return t--&&r?String(Math.round(i()(e))):e}))}var Xe=/(\[[^\]]+\])/g,We=/(#[^\s\+>~\.\[:]+)/g,Je=/(\.[^\s\+>~\.\[:]+)/g,Ye=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Ze=/(:[\w-]+\([^\)]*\))/gi,$e=/(:[^\s\+>~\.\[:]+)/g,et=/([^\s\+>~\.\[:]+)/g;function tt(e,t){var r=e.match(t);return r?[e.replace(t," "),r.length]:[e,0]}function rt(e){var t=[0,0,0],r=e.replace(/:not\(([^\)]*)\)/g,"     $1 ").replace(/{[\s\S]*/gm," "),n=0,o=tt(r,Xe),s=(0,u.default)(o,2);r=s[0],n=s[1],t[1]+=n;var i=tt(r,We),a=(0,u.default)(i,2);r=a[0],n=a[1],t[0]+=n;var A=tt(r,Je),c=(0,u.default)(A,2);r=c[0],n=c[1],t[1]+=n;var l=tt(r,Ye),d=(0,u.default)(l,2);r=d[0],n=d[1],t[2]+=n;var f=tt(r,Ze),h=(0,u.default)(f,2);r=h[0],n=h[1],t[1]+=n;var p=tt(r,$e),m=(0,u.default)(p,2);r=m[0],n=m[1],t[1]+=n;var g=tt(r=r.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),et),y=(0,u.default)(g,2);return r=y[0],n=y[1],t[2]+=n,t.join("")}var nt=1e-8;function ot(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function st(e,t){return(e[0]*t[0]+e[1]*t[1])/(ot(e)*ot(t))}function it(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(st(e,t))}function at(e){return e*e*e}function At(e){return 3*e*e*(1-e)}function ut(e){return 3*e*(1-e)*(1-e)}function ct(e){return(1-e)*(1-e)*(1-e)}function lt(e){return e*e}function dt(e){return 2*e*(1-e)}function ft(e){return(1-e)*(1-e)}var ht=function(){function e(t,r,n){(0,F.default)(this,e),this.document=t,this.name=r,this.value=n,this.isNormalizedColor=!1}return(0,U.default)(e,[{key:"split",value:function(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",o=this.document,s=this.name;return A()(t=G()(r=Re(this.getString())).call(r).split(n)).call(t,(function(t){return new e(o,s,t)}))}},{key:"hasValue",value:function(e){var t=this.value;return null!==t&&""!==t&&(e||0!==t)&&void 0!==t}},{key:"isString",value:function(e){var t=this.value,r="string"==typeof t;return r&&e?e.test(t):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case/px$/.test(e):case/^[0-9]+$/.test(e):return!0;default:return!1}}},{key:"setValue",value:function(e){return this.value=e,this}},{key:"getValue",value:function(e){return void 0===e||this.hasValue()?this.value:e}},{key:"getNumber",value:function(e){if(!this.hasValue())return void 0===e?0:i()(e);var t=this.value,r=i()(t);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(e){return void 0===e||this.hasValue()?void 0===this.value?"":String(this.value):String(e)}},{key:"getColor",value:function(e){var t=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=Ge(t),this.value=t),t}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r="boolean"==typeof e?[void 0,e]:[e],n=(0,u.default)(r,2),o=n[0],s=n[1],i=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&s:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(o);default:var a=this.getNumber();return t&&a<1?a*i.computeSize(o):a}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var e=this.getString(),t=e.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=e),this.document.definitions[t]}},{key:"getFillStyleDefinition",value:function(e,t){var r=this.getDefinition();if(!r)return null;if("function"==typeof r.createGradient)return r.createGradient(this.document.ctx,e,t);if("function"==typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,e,t)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?e.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(t){for(var r=this.getColor(),n=r.length,o=0,s=0;s<n&&(","===r[s]&&o++,3!==o);s++);if(t.hasValue()&&this.isString()&&3!==o){var i=new(W())(r);i.ok&&(i.alpha=t.getNumber(),r=i.toRGBA())}return new e(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new e(t,"EMPTY","")}}]),e}();ht.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var pt=function(){function e(){(0,F.default)(this,e),this.viewPorts=[]}return(0,U.default)(e,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(e,t){this.viewPorts.push({width:e,height:t})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var e=this.viewPorts;return e[e.length-1]}},{key:"computeSize",value:function(e){return"number"==typeof e?e:"x"===e?this.width:"y"===e?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),e}(),mt=function(){function e(t,r){(0,F.default)(this,e),this.x=t,this.y=r}return(0,U.default)(e,[{key:"angleTo",value:function(e){return Math.atan2(e.y-this.y,e.x-this.x)}},{key:"applyTransform",value:function(e){var t=this.x,r=this.y,n=t*e[0]+r*e[2]+e[4],o=t*e[1]+r*e[3]+e[5];this.x=n,this.y=o}}],[{key:"parse",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=Ke(t),o=(0,u.default)(n,2),s=o[0],i=void 0===s?r:s,a=o[1],A=void 0===a?r:a;return new e(i,A)}},{key:"parseScale",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Ke(t),o=(0,u.default)(n,2),s=o[0],i=void 0===s?r:s,a=o[1],A=void 0===a?i:a;return new e(i,A)}},{key:"parsePath",value:function(t){for(var r=Ke(t),n=r.length,o=[],s=0;s<n;s+=2)o.push(new e(r[s],r[s+1]));return o}}]),e}(),gt=function(){function e(t){var r,n;(0,F.default)(this,e),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=K()(r=this.onClick).call(r,this),this.onMouseMove=K()(n=this.onMouseMove).call(n,this)}return(0,U.default)(e,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var e=this.screen,t=this.onClick,r=this.onMouseMove,n=e.ctx.canvas;n.onclick=t,n.onmousemove=r,this.working=!0}}},{key:"stop",value:function(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var e=this.screen,t=this.events,r=this.eventElements,n=e.ctx.canvas.style;n&&(n.cursor=""),g()(t).call(t,(function(e,t){for(var n=e.run,o=r[t];o;)n(o),o=o.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(e,t){if(this.working&&t){var r=this.events,n=this.eventElements;g()(r).call(r,(function(r,o){var s=r.x,i=r.y;!n[o]&&t.isPointInPath&&t.isPointInPath(s,i)&&(n[o]=e)}))}}},{key:"checkBoundingBox",value:function(e,t){if(this.working&&t){var r=this.events,n=this.eventElements;g()(r).call(r,(function(r,o){var s=r.x,i=r.y;!n[o]&&t.isPointInBox(s,i)&&(n[o]=e)}))}}},{key:"mapXY",value:function(e,t){for(var r=this.screen,n=r.window,o=r.ctx,s=new mt(e,t),i=o.canvas;i;)s.x-=i.offsetLeft,s.y-=i.offsetTop,i=i.offsetParent;return n.scrollX&&(s.x+=n.scrollX),n.scrollY&&(s.y+=n.scrollY),s}},{key:"onClick",value:function(e){var t=this.mapXY((e||event).clientX,(e||event).clientY),r=t.x,n=t.y;this.events.push({type:"onclick",x:r,y:n,run:function(e){e.onClick&&e.onClick()}})}},{key:"onMouseMove",value:function(e){var t=this.mapXY((e||event).clientX,(e||event).clientY),r=t.x,n=t.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(e){e.onMouseMove&&e.onMouseMove()}})}}]),e}(),yt="undefined"!=typeof window?window:null,vt="undefined"!=typeof fetch?K()(fetch).call(fetch,void 0):null,wt=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,o=void 0===n?vt:n,s=r.window,i=void 0===s?yt:s;(0,F.default)(this,e),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new pt,this.mouse=new gt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=i,this.fetch=o}return(0,U.default)(e,[{key:"wait",value:function(e){this.waits.push(e)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:M().resolve()}},{key:"isReady",value:function(){var e;if(this.isReadyLock)return!0;var t=k()(e=this.waits).call(e,(function(e){return e()}));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}},{key:"setDefaults",value:function(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}},{key:"setViewBox",value:function(e){var t=e.document,r=e.ctx,n=e.aspectRatio,o=e.width,s=e.desiredWidth,i=e.height,a=e.desiredHeight,A=e.minX,c=void 0===A?0:A,l=e.minY,d=void 0===l?0:l,f=e.refX,h=e.refY,p=e.clip,m=void 0!==p&&p,g=e.clipX,y=void 0===g?0:g,v=e.clipY,w=void 0===v?0:v,b=Re(n).replace(/^defer\s/,"").split(" "),B=(0,u.default)(b,2),j=B[0]||"xMidYMid",_=B[1]||"meet",C=o/s,x=i/a,E=Math.min(C,x),N=Math.max(C,x),Q=s,F=a;"meet"===_&&(Q*=E,F*=E),"slice"===_&&(Q*=N,F*=N);var U=new ht(t,"refX",f),S=new ht(t,"refY",h),L=U.hasValue()&&S.hasValue();if(L&&r.translate(-E*U.getPixels("x"),-E*S.getPixels("y")),m){var T=E*y,H=E*w;r.beginPath(),r.moveTo(T,H),r.lineTo(o,H),r.lineTo(o,i),r.lineTo(T,i),r.closePath(),r.clip()}if(!L){var I="meet"===_&&E===x,P="slice"===_&&N===x,O="meet"===_&&E===C,k="slice"===_&&N===C;/^xMid/.test(j)&&(I||P)&&r.translate(o/2-Q/2,0),/YMid$/.test(j)&&(O||k)&&r.translate(0,i/2-F/2),/^xMax/.test(j)&&(I||P)&&r.translate(o-Q,0),/YMax$/.test(j)&&(O||k)&&r.translate(0,i-F)}switch(!0){case"none"===j:r.scale(C,x);break;case"meet"===_:r.scale(E,E);break;case"slice"===_:r.scale(N,N)}r.translate(-c,-d)}},{key:"start",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.enableRedraw,o=void 0!==n&&n,s=r.ignoreMouse,i=void 0!==s&&s,a=r.ignoreAnimation,A=void 0!==a&&a,u=r.ignoreDimensions,c=void 0!==u&&u,l=r.ignoreClear,d=void 0!==l&&l,f=r.forceRedraw,h=r.scaleWidth,p=r.scaleHeight,m=r.offsetX,g=r.offsetY,y=this.FRAMERATE,v=this.mouse,w=1e3/y;if(this.frameDuration=w,this.readyPromise=new(M())((function(e){t.resolveReady=e})),this.isReady()&&this.render(e,c,d,h,p,m,g),o){var b=P()(),B=b,j=0,_=function r(){b=P()(),(j=b-B)>=w&&(B=b-j%w,t.shouldUpdate(A,f)&&(t.render(e,c,d,h,p,m,g),v.runEvents())),t.intervalId=V()(r)};i||v.start(),this.intervalId=V()(_)}}},{key:"stop",value:function(){this.intervalId&&(V().cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(e,t){if(!e){var r,n=this.frameDuration;if(H()(r=this.animations).call(r,(function(e,t){return t.update(n)||e}),!1))return!0}return!("function"!=typeof t||!t())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}},{key:"render",value:function(e,t,r,n,o,s,i){var a=this.CLIENT_WIDTH,A=this.CLIENT_HEIGHT,u=this.viewPort,c=this.ctx,l=this.isFirstRender,d=c.canvas;u.clear(),d.width&&d.height?u.setCurrent(d.width,d.height):u.setCurrent(a,A);var f=e.getStyle("width"),h=e.getStyle("height");!t&&(l||"number"!=typeof n&&"number"!=typeof o)&&(f.hasValue()&&(d.width=f.getPixels("x"),d.style&&(d.style.width="".concat(d.width,"px"))),h.hasValue()&&(d.height=h.getPixels("y"),d.style&&(d.style.height="".concat(d.height,"px"))));var p=d.clientWidth||d.width,m=d.clientHeight||d.height;if(t&&f.hasValue()&&h.hasValue()&&(p=f.getPixels("x"),m=h.getPixels("y")),u.setCurrent(p,m),"number"==typeof s&&e.getAttribute("x",!0).setValue(s),"number"==typeof i&&e.getAttribute("y",!0).setValue(i),"number"==typeof n||"number"==typeof o){var g,y,v=Ke(e.getAttribute("viewBox").getString()),w=0,b=0;if("number"==typeof n){var B=e.getStyle("width");B.hasValue()?w=B.getPixels("x")/n:isNaN(v[2])||(w=v[2]/n)}if("number"==typeof o){var j=e.getStyle("height");j.hasValue()?b=j.getPixels("y")/o:isNaN(v[3])||(b=v[3]/o)}w||(w=b),b||(b=w),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(o);var _=e.getStyle("transform",!0,!0);_.setValue(L()(g=L()(y="".concat(_.getString()," scale(")).call(y,1/w,", ")).call(g,1/b,")"))}r||c.clearRect(0,0,p,m),e.render(c),l&&(this.isFirstRender=!1)}}]),e}();wt.defaultWindow=yt,wt.defaultFetch=vt;var bt=wt.defaultFetch,Bt="undefined"!=typeof DOMParser?DOMParser:null,jt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.fetch,n=void 0===r?bt:r,o=t.DOMParser,s=void 0===o?Bt:o;(0,F.default)(this,e),this.fetch=n,this.DOMParser=s}var t,r;return(0,U.default)(e,[{key:"parse",value:(r=(0,N.default)(E().mark((function e(t){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!/^</.test(t)){e.next=2;break}return e.abrupt("return",this.parseFromString(t));case 2:return e.abrupt("return",this.load(t));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"parseFromString",value:function(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,"image/svg+xml"))}catch(r){return this.checkDocument(t.parseFromString(e,"text/xml"))}}},{key:"checkDocument",value:function(e){var t=e.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return e}},{key:"load",value:(t=(0,N.default)(E().mark((function e(t){var r,n;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetch(t);case 2:return r=e.sent,e.next=5,r.text();case 5:return n=e.sent,e.abrupt("return",this.parseFromString(n));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),_t=function(){function e(t,r){(0,F.default)(this,e),this.type="translate",this.point=null,this.point=mt.parse(r)}return(0,U.default)(e,[{key:"apply",value:function(e){var t=this.point,r=t.x,n=t.y;e.translate(r||0,n||0)}},{key:"unapply",value:function(e){var t=this.point,r=t.x,n=t.y;e.translate(-1*r||0,-1*n||0)}},{key:"applyToPoint",value:function(e){var t=this.point,r=t.x,n=t.y;e.applyTransform([1,0,0,1,r||0,n||0])}}]),e}(),Ct=function(){function e(t,r,n){(0,F.default)(this,e),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var o=Ke(r);this.angle=new ht(t,"angle",o[0]),this.originX=n[0],this.originY=n[1],this.cx=o[1]||0,this.cy=o[2]||0}return(0,U.default)(e,[{key:"apply",value:function(e){var t=this.cx,r=this.cy,n=this.originX,o=this.originY,s=this.angle,i=t+n.getPixels("x"),a=r+o.getPixels("y");e.translate(i,a),e.rotate(s.getRadians()),e.translate(-i,-a)}},{key:"unapply",value:function(e){var t=this.cx,r=this.cy,n=this.angle;e.translate(t,r),e.rotate(-1*n.getRadians()),e.translate(-t,-r)}},{key:"applyToPoint",value:function(e){var t=this.cx,r=this.cy,n=this.angle.getRadians();e.applyTransform([1,0,0,1,t||0,r||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-t||0,-r||0])}}]),e}(),xt=function(){function e(t,r){(0,F.default)(this,e),this.type="scale",this.scale=null;var n=mt.parseScale(r);0!==n.x&&0!==n.y||(n.x=nt,n.y=nt),this.scale=n}return(0,U.default)(e,[{key:"apply",value:function(e){var t=this.scale,r=t.x,n=t.y;e.scale(r,n||r)}},{key:"unapply",value:function(e){var t=this.scale,r=t.x,n=t.y;e.scale(1/r,1/n||r)}},{key:"applyToPoint",value:function(e){var t=this.scale,r=t.x,n=t.y;e.applyTransform([r||0,0,0,n||0,0,0])}}]),e}(),Et=function(){function e(t,r){(0,F.default)(this,e),this.type="matrix",this.matrix=[],this.matrix=Ke(r)}return(0,U.default)(e,[{key:"apply",value:function(e){var t=this.matrix;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}},{key:"unapply",value:function(e){var t=this.matrix,r=t[0],n=t[2],o=t[4],s=t[1],i=t[3],a=t[5],A=1/(r*(1*i-0*a)-n*(1*s-0*a)+o*(0*s-0*i));e.transform(A*(1*i-0*a),A*(0*a-1*s),A*(0*o-1*n),A*(1*r-0*o),A*(n*a-o*i),A*(o*s-r*a))}},{key:"applyToPoint",value:function(e){e.applyTransform(this.matrix)}}]),e}();var Nt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t){var r;return(0,F.default)(this,o),(r=n.call(this,e,t)).type="skew",r.angle=null,r.angle=new ht(e,"angle",t),r}return o}(Et);var Qt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t){var r;return(0,F.default)(this,o),(r=n.call(this,e,t)).type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return o}(Nt);var Ft=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t){var r;return(0,F.default)(this,o),(r=n.call(this,e,t)).type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return o}(Nt),Ut=function(){function e(t,r,n){var o=this;(0,F.default)(this,e),this.document=t,this.transforms=[];var s=function(e){var t;return G()(t=Re(e)).call(t).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);g()(s).call(s,(function(t){if("none"!==t){var r=function(e){var t=e.split("("),r=(0,u.default)(t,2),n=r[0],o=r[1];return[G()(n).call(n),G()(o).call(o).replace(")","")]}(t),s=(0,u.default)(r,2),i=s[0],a=s[1],A=e.transformTypes[i];void 0!==A&&o.transforms.push(new A(o.document,a,n))}}))}return(0,U.default)(e,[{key:"apply",value:function(e){for(var t=this.transforms,r=t.length,n=0;n<r;n++)t[n].apply(e)}},{key:"unapply",value:function(e){for(var t=this.transforms,r=t.length-1;r>=0;r--)t[r].unapply(e)}},{key:"applyToPoint",value:function(e){for(var t=this.transforms,r=t.length,n=0;n<r;n++)t[n].applyToPoint(e)}}],[{key:"fromElement",value:function(t,r){var n=r.getStyle("transform",!1,!0),o=r.getStyle("transform-origin",!1,!0).split(),s=(0,u.default)(o,2),i=s[0],a=s[1],A=[i,void 0===a?i:a];return n.hasValue()?new e(t,n.getString(),A):null}}]),e}();Ut.transformTypes={translate:_t,rotate:Ct,scale:xt,matrix:Et,skewX:Qt,skewY:Ft};var St=function(){function e(t,r){var n,o,s=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,F.default)(this,e),this.document=t,this.node=r,this.captureTextNodes=i,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(g()(n=ae()(r.attributes)).call(n,(function(e){var r=Ve(e.nodeName);s.attributes[r]=new ht(t,r,e.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a,c=A()(a=this.getAttribute("style").getString().split(";")).call(a,(function(e){return G()(e).call(e)}));g()(c).call(c,(function(e){var r;if(e){var n=A()(r=e.split(":")).call(r,(function(e){return G()(e).call(e)})),o=(0,u.default)(n,2),i=o[0],a=o[1];s.styles[i]=new ht(t,i,a)}}))}var l=t.definitions,d=this.getAttribute("id");d.hasValue()&&(l[d.getValue()]||(l[d.getValue()]=this)),g()(o=ae()(r.childNodes)).call(o,(function(e){if(1===e.nodeType)s.addChild(e);else if(i&&(3===e.nodeType||4===e.nodeType)){var r=t.createTextNode(e);r.getText().length>0&&s.addChild(r)}}))}}return(0,U.default)(e,[{key:"getAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[e];if(!r&&t){var n=new ht(this.document,e,"");return this.attributes[e]=n,n}return r||ht.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var e in this.attributes)if("href"===e||/:href$/.test(e))return this.attributes[e];return ht.empty(this.document)}},{key:"getStyle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[e];if(n)return n;var o=this.getAttribute(e);if(o&&o.hasValue())return this.styles[e]=o,o;if(!r){var s=this.parent;if(s){var i=s.getStyle(e);if(i&&i.hasValue())return i}}if(t){var a=new ht(this.document,e,"");return this.styles[e]=a,a}return n||ht.empty(this.document)}},{key:"render",value:function(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}},{key:"setContext",value:function(e){}},{key:"applyEffects",value:function(e){var t=Ut.fromElement(this.document,this);t&&t.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(e)}}},{key:"clearContext",value:function(e){}},{key:"renderChildren",value:function(e){var t;g()(t=this.children).call(t,(function(t){t.render(e)}))}},{key:"addChild",value:function(t){var r,n=t instanceof e?t:this.document.createElement(t);n.parent=this,se()(r=e.ignoreChildTypes).call(r,n.type)||this.children.push(n)}},{key:"matchesSelector",value:function(e){var t,r=this.node;if("function"==typeof r.matches)return r.matches(e);var n=r.getAttribute("class");return!(!n||""===n)&&ne()(t=n.split(" ")).call(t,(function(t){if(".".concat(t)===e)return!0}))}},{key:"addStylesFromStyleDefinition",value:function(){var e=this.document,t=e.styles,r=e.stylesSpecificity;for(var n in t)if("@"!==n[0]&&this.matchesSelector(n)){var o=t[n],s=r[n];if(o)for(var i in o){var a=this.stylesSpecificity[i];void 0===a&&(a="000"),s>=a&&(this.styles[i]=o[i],this.stylesSpecificity[i]=s)}}}},{key:"removeStyles",value:function(e,t){return H()(t).call(t,(function(t,r){var n,o=e.getStyle(r);if(!o.hasValue())return t;var s=o.getString();return o.setValue(""),L()(n=[]).call(n,(0,te.default)(t),[[r,s]])}),[])}},{key:"restoreStyles",value:function(e,t){g()(t).call(t,(function(t){var r=(0,u.default)(t,2),n=r[0],o=r[1];e.getStyle(n,!0).setValue(o)}))}}]),e}();St.ignoreChildTypes=["title"];var Lt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){return(0,F.default)(this,o),n.call(this,e,t,r)}return o}(St);function Tt(e){var t=G()(e).call(e);return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Ht(e){if(!e)return"";var t=G()(e).call(e).toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function It(e){if(!e)return"";var t=G()(e).call(e).toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}var Pt=function(){function e(t,r,n,o,s,i){(0,F.default)(this,e);var a=i?"string"==typeof i?e.parse(i):i:{};this.fontFamily=s||a.fontFamily,this.fontSize=o||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=n||a.fontWeight,this.fontVariant=r||a.fontVariant}return(0,U.default)(e,[{key:"toString",value:function(){var e,t,r;return G()(e=[Ht(this.fontStyle),this.fontVariant,It(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:A()(r=G()(t).call(t).split(",")).call(r,Tt).join(","))].join(" ")).call(e)}}],[{key:"parse",value:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,o="",s="",i="",a="",A="",c=G()(t=Re(r)).call(t).split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return g()(c).call(c,(function(t){var r,n,c;switch(!0){case!l.fontStyle&&se()(r=e.styles).call(r,t):"inherit"!==t&&(o=t),l.fontStyle=!0;break;case!l.fontVariant&&se()(n=e.variants).call(n,t):"inherit"!==t&&(s=t),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&se()(c=e.weights).call(c,t):"inherit"!==t&&(i=t),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:if("inherit"!==t){var d=t.split("/"),f=(0,u.default)(d,1);a=f[0]}l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:"inherit"!==t&&(A+=t)}})),new e(o,s,i,a,A,n)}}]),e}();Pt.styles="normal|italic|oblique|inherit",Pt.variants="normal|small-caps|inherit",Pt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Ot=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;(0,F.default)(this,e),this.x1=t,this.y1=r,this.x2=n,this.y2=o,this.addPoint(t,r),this.addPoint(n,o)}return(0,U.default)(e,[{key:"addPoint",value:function(e,t){void 0!==e&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),void 0!==t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}},{key:"addX",value:function(e){this.addPoint(e,null)}},{key:"addY",value:function(e){this.addPoint(null,e)}},{key:"addBoundingBox",value:function(e){if(e){var t=e.x1,r=e.y1,n=e.x2,o=e.y2;this.addPoint(t,r),this.addPoint(n,o)}}},{key:"sumCubic",value:function(e,t,r,n,o){return Math.pow(1-e,3)*t+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*o}},{key:"bezierCurveAdd",value:function(e,t,r,n,o){var s=6*t-12*r+6*n,i=-3*t+9*r-9*n+3*o,a=3*r-3*t;if(0!==i){var A=Math.pow(s,2)-4*a*i;if(!(A<0)){var u=(-s+Math.sqrt(A))/(2*i);0<u&&u<1&&(e?this.addX(this.sumCubic(u,t,r,n,o)):this.addY(this.sumCubic(u,t,r,n,o)));var c=(-s-Math.sqrt(A))/(2*i);0<c&&c<1&&(e?this.addX(this.sumCubic(c,t,r,n,o)):this.addY(this.sumCubic(c,t,r,n,o)))}}else{if(0===s)return;var l=-a/s;0<l&&l<1&&(e?this.addX(this.sumCubic(l,t,r,n,o)):this.addY(this.sumCubic(l,t,r,n,o)))}}},{key:"addBezierCurve",value:function(e,t,r,n,o,s,i,a){this.addPoint(e,t),this.addPoint(i,a),this.bezierCurveAdd(!0,e,r,o,i),this.bezierCurveAdd(!1,t,n,s,a)}},{key:"addQuadraticCurve",value:function(e,t,r,n,o,s){var i=e+2/3*(r-e),a=t+2/3*(n-t),A=i+1/3*(o-e),u=a+1/3*(s-t);this.addBezierCurve(e,t,i,A,a,u,o,s)}},{key:"isPointInBox",value:function(e,t){var r=this.x1,n=this.y1,o=this.x2,s=this.y2;return r<=e&&e<=o&&n<=t&&t<=s}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),e}();var kt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).modifiedEmSizeStack=!1,e}return(0,U.default)(o,[{key:"calculateOpacity",value:function(){for(var e=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),t=t.parent}return e}},{key:"setContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),o=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var i=r.getFillStyleDefinition(this,n);i&&(e.fillStyle=i)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var a=r.getColor();"inherit"!==a&&(e.fillStyle="none"===a?"rgba(0,0,0,0)":a)}if(n.hasValue()){var A=new ht(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=A}if(o.isUrlDefinition()){var u=o.getFillStyleDefinition(this,s);u&&(e.strokeStyle=u)}else if(o.hasValue()){"currentColor"===o.getString()&&o.setValue(this.getStyle("color").getColor());var c=o.getString();"inherit"!==c&&(e.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(s.hasValue()){var l=new ht(this.document,"stroke",e.strokeStyle).addOpacity(s).getString();e.strokeStyle=l}var d=this.getStyle("stroke-width");if(d.hasValue()){var f=d.getPixels();e.lineWidth=f||nt}var h=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),g=this.getStyle("paint-order"),y=this.getStyle("stroke-dasharray"),v=this.getStyle("stroke-dashoffset");if(h.hasValue()&&(e.lineCap=h.getString()),p.hasValue()&&(e.lineJoin=p.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),g.hasValue()&&(e.paintOrder=g.getValue()),y.hasValue()&&"none"!==y.getString()){var w=Ke(y.getString());void 0!==e.setLineDash?e.setLineDash(w):void 0!==e.webkitLineDash?e.webkitLineDash=w:void 0===e.mozDash||1===w.length&&0===w[0]||(e.mozDash=w);var b=v.getPixels();void 0!==e.lineDashOffset?e.lineDashOffset=b:void 0!==e.webkitLineDashOffset?e.webkitLineDashOffset=b:void 0!==e.mozDashOffset&&(e.mozDashOffset=b)}}if(this.modifiedEmSizeStack=!1,void 0!==e.font){var B=this.getStyle("font"),j=this.getStyle("font-style"),_=this.getStyle("font-variant"),C=this.getStyle("font-weight"),x=this.getStyle("font-size"),E=this.getStyle("font-family"),N=new Pt(j.getString(),_.getString(),C.getString(),x.hasValue()?"".concat(x.getPixels(!0),"px"):"",E.getString(),Pt.parse(B.getString(),e.font));j.setValue(N.fontStyle),_.setValue(N.fontVariant),C.setValue(N.fontWeight),x.setValue(N.fontSize),E.setValue(N.fontFamily),e.font=N.toString(),x.isPixels()&&(this.document.emSize=x.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){(0,de.default)((0,ee.default)(o.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),o}(St);var Rt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,(this instanceof o?this.constructor:void 0)===o||r)).type="text",s.x=0,s.y=0,s.measureCache=-1,s}return(0,U.default)(o,[{key:"setContext",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,de.default)((0,ee.default)(o.prototype),"setContext",this).call(this,e,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var t=this.getAttribute("dx"),r=this.getAttribute("dy");t.hasValue()&&(this.x+=t.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var t,r=this;if("text"!==this.type)return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var n=null;return g()(t=this.children).call(t,(function(t,o){var s=r.getChildBoundingBox(e,r,r,o);n?n.addBoundingBox(s):n=s})),n}},{key:"getFontSize",value:function(){var e=this.document,t=this.parent,r=Pt.parse(e.ctx.font).fontSize;return t.getStyle("font-size").getNumber(r)}},{key:"getTElementBoundingBox",value:function(e){var t=this.getFontSize();return new Ot(this.x,this.y-t,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,t,r){var n=t[r],o=null;if(e.isArabic){var s=t.length,i=t[r-1],a=t[r+1],A="isolated";(0===r||" "===i)&&r<s-2&&" "!==a&&(A="terminal"),r>0&&" "!==i&&r<s-2&&" "!==a&&(A="medial"),r>0&&" "!==i&&(r===s-1||" "===a)&&(A="initial"),void 0!==e.glyphs[n]&&((o=e.glyphs[n][A])||"glyph"!==e.glyphs[n].type||(o=e.glyphs[n]))}else o=e.glyphs[n];return o||(o=e.missingGlyph),o}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var t=e||this.node,r=ae()(t.parentNode.childNodes),n=le()(r).call(r,t),o=r.length-1,s=Re(t.value||t.text||t.textContent||"");return 0===n&&(s=Me(s)),n===o&&(s=De(s)),s}},{key:"renderChildren",value:function(e){var t,r=this;if("text"===this.type){this.initializeCoordinates(e),g()(t=this.children).call(t,(function(t,n){r.renderChild(e,r,r,n)}));var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}else this.renderTElementChildren(e)}},{key:"renderTElementChildren",value:function(e){var t=this.document,r=this.parent,n=this.getText(),o=r.getStyle("font-family").getDefinition();if(o)for(var s,i=o.fontFace.unitsPerEm,a=Pt.parse(t.ctx.font),A=r.getStyle("font-size").getNumber(a.fontSize),u=r.getStyle("font-style").getString(a.fontStyle),c=A/i,l=o.isRTL?ue()(s=n.split("")).call(s).join(""):n,d=Ke(r.getAttribute("dx").getString()),f=l.length,h=0;h<f;h++){var p=this.getGlyph(o,l,h);e.translate(this.x,this.y),e.scale(c,-c);var m=e.lineWidth;e.lineWidth=e.lineWidth*i/A,"italic"===u&&e.transform(1,0,.4,1,0,0),p.render(e),"italic"===u&&e.transform(1,0,-.4,1,0,0),e.lineWidth=m,e.scale(1/c,-1/c),e.translate(-this.x,-this.y),this.x+=A*(p.horizAdvX||o.horizAdvX)/i,void 0===d[h]||isNaN(d[h])||(this.x+=d[h])}else{var g=this.x,y=this.y;"stroke"===e.paintOrder?(e.strokeStyle&&e.strokeText(n,g,y),e.fillStyle&&e.fillText(n,g,y)):(e.fillStyle&&e.fillText(n,g,y),e.strokeStyle&&e.strokeText(n,g,y))}}},{key:"getAnchorDelta",value:function(e,t,r){var n=this.getStyle("text-anchor").getString("start");if("start"!==n){for(var o=t.children,s=o.length,i=null,a=0,A=r;A<s&&(i=o[A],!(A>r&&i.getAttribute("x").hasValue()||i.getAttribute("text-anchor").hasValue()));A++)a+=i.measureTextRecursive(e);return-1*("end"===n?a:a/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,t,r,n){var o=r.children[n];if("function"!=typeof o.measureText)return o;e.save(),o.setContext(e,!0);var s=o.getAttribute("x"),i=o.getAttribute("y"),a=o.getAttribute("dx"),A=o.getAttribute("dy"),u=o.getAttribute("text-anchor").getString("start");if(0===n&&"textNode"!==o.type&&(s.hasValue()||s.setValue(t.getAttribute("x").getValue("0")),i.hasValue()||i.setValue(t.getAttribute("y").getValue("0")),a.hasValue()||a.setValue(t.getAttribute("dx").getValue("0")),A.hasValue()||A.setValue(t.getAttribute("dy").getValue("0"))),s.hasValue()){if(o.x=s.getPixels("x")+t.getAnchorDelta(e,r,n),"start"!==u){var c=o.measureTextRecursive(e);o.x+=-1*("end"===u?c:c/2)}a.hasValue()&&(o.x+=a.getPixels("x"))}else{if("start"!==u){var l=o.measureTextRecursive(e);t.x+=-1*("end"===u?l:l/2)}a.hasValue()&&(t.x+=a.getPixels("x")),o.x=t.x}return t.x=o.x+o.measureText(e),i.hasValue()?(o.y=i.getPixels("y"),A.hasValue()&&(o.y+=A.getPixels("y"))):(A.hasValue()&&(t.y+=A.getPixels("y")),o.y=t.y),t.y=o.y,o.clearContext(e),e.restore(),o}},{key:"getChildBoundingBox",value:function(e,t,r,n){var o,s=this.adjustChildCoordinates(e,t,r,n);if("function"!=typeof s.getBoundingBox)return null;var i=s.getBoundingBox(e);return i?(g()(o=s.children).call(o,(function(r,n){var o=t.getChildBoundingBox(e,t,s,n);i.addBoundingBox(o)})),i):null}},{key:"renderChild",value:function(e,t,r,n){var o,s=this.adjustChildCoordinates(e,t,r,n);s.render(e),g()(o=s.children).call(o,(function(r,n){t.renderChild(e,t,s,n)}))}},{key:"measureTextRecursive",value:function(e){var t;return H()(t=this.children).call(t,(function(t,r){return t+r.measureTextRecursive(e)}),this.measureText(e))}},{key:"measureText",value:function(e){var t=this.measureCache;if(~t)return t;var r=this.getText(),n=this.measureTargetText(e,r);return this.measureCache=n,n}},{key:"measureTargetText",value:function(e,t){if(!t.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var o,s=this.getFontSize(),i=n.isRTL?ue()(o=t.split("")).call(o).join(""):t,a=Ke(r.getAttribute("dx").getString()),A=i.length,u=0,c=0;c<A;c++)u+=(this.getGlyph(n,i,c).horizAdvX||n.horizAdvX)*s/n.fontFace.unitsPerEm,void 0===a[c]||isNaN(a[c])||(u+=a[c]);return u}if(!e.measureText)return 10*t.length;e.save(),this.setContext(e,!0);var l=e.measureText(t).width;return this.clearContext(e),e.restore(),l}}]),o}(kt);var Mt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,(this instanceof o?this.constructor:void 0)===o||r)).type="tspan",s.text=s.children.length>0?"":s.getTextFromNode(),s}return(0,U.default)(o,[{key:"getText",value:function(){return this.text}}]),o}(Rt);var Dt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="textNode",e}return o}(Mt);var Kt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e){var t;return(0,F.default)(this,o),(t=n.call(this,e.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,t.start=null,t.current=null,t.command=null,t.commands=t.commands,t.i=-1,t.previousCommand=null,t.points=[],t.angles=[],t}return(0,U.default)(o,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new mt(0,0),this.control=new mt(0,0),this.current=new mt(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new mt(this.command[e],this.command[t]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(e,t){var r=this.getPoint(e,t);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(e,t){var r=this.getPoint(e,t);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==pe.SVGPathData.CURVE_TO&&e!==pe.SVGPathData.SMOOTH_CURVE_TO&&e!==pe.SVGPathData.QUAD_TO&&e!==pe.SVGPathData.SMOOTH_QUAD_TO)return this.current;var t=this.current,r=t.x,n=t.y,o=this.control,s=o.x,i=o.y;return new mt(2*r-s,2*n-i)}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var t=this.current,r=t.x,n=t.y;e.x+=r,e.y+=n}return e}},{key:"addMarker",value:function(e,t,r){var n=this.points,o=this.angles;r&&o.length>0&&!o[o.length-1]&&(o[o.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(e,t?t.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,t){this.points.push(e),this.angles.push(t)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,t=e.length,r=0;r<t;r++)if(!e[r])for(var n=r+1;n<t;n++)if(e[n]){e[r]=e[n];break}return e}}]),o}(pe.SVGPathData);var zt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="path",s.pathParser=null,s.pathParser=new Kt(s.getAttribute("d").getString()),s}return(0,U.default)(o,[{key:"path",value:function(e){var t=this.pathParser,r=new Ot;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Kt.MOVE_TO:this.pathM(e,r);break;case Kt.LINE_TO:this.pathL(e,r);break;case Kt.HORIZ_LINE_TO:this.pathH(e,r);break;case Kt.VERT_LINE_TO:this.pathV(e,r);break;case Kt.CURVE_TO:this.pathC(e,r);break;case Kt.SMOOTH_CURVE_TO:this.pathS(e,r);break;case Kt.QUAD_TO:this.pathQ(e,r);break;case Kt.SMOOTH_QUAD_TO:this.pathT(e,r);break;case Kt.ARC:this.pathA(e,r);break;case Kt.CLOSE_PATH:this.pathZ(e,r)}return r}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,t=e.getMarkerPoints(),r=e.getMarkerAngles();return A()(t).call(t,(function(e,t){return[e,r[t]]}))}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle("fill-rule");""!==e.fillStyle&&("inherit"!==t.getString("inherit")?he()(e).call(e,t.getString()):he()(e).call(e)),""!==e.strokeStyle&&e.stroke();var r=this.getMarkers();if(r){var n=r.length-1,o=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),i=this.getStyle("marker-end");if(o.isUrlDefinition()){var a=o.getDefinition(),A=(0,u.default)(r[0],2),c=A[0],l=A[1];a.render(e,c,l)}if(s.isUrlDefinition())for(var d=s.getDefinition(),f=1;f<n;f++){var h=(0,u.default)(r[f],2),p=h[0],m=h[1];d.render(e,p,m)}if(i.isUrlDefinition()){var g=i.getDefinition(),y=(0,u.default)(r[n],2),v=y[0],w=y[1];g.render(e,v,w)}}}},{key:"pathM",value:function(e,t){var r=this.pathParser,n=o.pathM(r).point,s=n.x,i=n.y;r.addMarker(n),t.addPoint(s,i),e&&e.moveTo(s,i)}},{key:"pathL",value:function(e,t){var r=this.pathParser,n=o.pathL(r),s=n.current,i=n.point,a=i.x,A=i.y;r.addMarker(i,s),t.addPoint(a,A),e&&e.lineTo(a,A)}},{key:"pathH",value:function(e,t){var r=this.pathParser,n=o.pathH(r),s=n.current,i=n.point,a=i.x,A=i.y;r.addMarker(i,s),t.addPoint(a,A),e&&e.lineTo(a,A)}},{key:"pathV",value:function(e,t){var r=this.pathParser,n=o.pathV(r),s=n.current,i=n.point,a=i.x,A=i.y;r.addMarker(i,s),t.addPoint(a,A),e&&e.lineTo(a,A)}},{key:"pathC",value:function(e,t){var r=this.pathParser,n=o.pathC(r),s=n.current,i=n.point,a=n.controlPoint,A=n.currentPoint;r.addMarker(A,a,i),t.addBezierCurve(s.x,s.y,i.x,i.y,a.x,a.y,A.x,A.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,A.x,A.y)}},{key:"pathS",value:function(e,t){var r=this.pathParser,n=o.pathS(r),s=n.current,i=n.point,a=n.controlPoint,A=n.currentPoint;r.addMarker(A,a,i),t.addBezierCurve(s.x,s.y,i.x,i.y,a.x,a.y,A.x,A.y),e&&e.bezierCurveTo(i.x,i.y,a.x,a.y,A.x,A.y)}},{key:"pathQ",value:function(e,t){var r=this.pathParser,n=o.pathQ(r),s=n.current,i=n.controlPoint,a=n.currentPoint;r.addMarker(a,i,i),t.addQuadraticCurve(s.x,s.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}},{key:"pathT",value:function(e,t){var r=this.pathParser,n=o.pathT(r),s=n.current,i=n.controlPoint,a=n.currentPoint;r.addMarker(a,i,i),t.addQuadraticCurve(s.x,s.y,i.x,i.y,a.x,a.y),e&&e.quadraticCurveTo(i.x,i.y,a.x,a.y)}},{key:"pathA",value:function(e,t){var r=this.pathParser,n=o.pathA(r),s=n.currentPoint,i=n.rX,a=n.rY,A=n.sweepFlag,u=n.xAxisRotation,c=n.centp,l=n.a1,d=n.ad,f=1-A?1:-1,h=l+f*(d/2),p=new mt(c.x+i*Math.cos(h),c.y+a*Math.sin(h));if(r.addMarkerAngle(p,h-f*Math.PI/2),r.addMarkerAngle(s,h-f*Math.PI),t.addPoint(s.x,s.y),e&&!isNaN(l)&&!isNaN(d)){var m=i>a?i:a,g=i>a?1:i/a,y=i>a?a/i:1;e.translate(c.x,c.y),e.rotate(u),e.scale(g,y),e.arc(0,0,m,l,l+d,Boolean(1-A)),e.scale(1/g,1/y),e.rotate(-u),e.translate(-c.x,-c.y)}}},{key:"pathZ",value:function(e,t){o.pathZ(this.pathParser),e&&t.x1!==t.x2&&t.y1!==t.y2&&e.closePath()}}],[{key:"pathM",value:function(e){var t=e.getAsCurrentPoint();return e.start=e.current,{point:t}}},{key:"pathL",value:function(e){return{current:e.current,point:e.getAsCurrentPoint()}}},{key:"pathH",value:function(e){var t=e.current,r=e.command,n=new mt((r.relative?t.x:0)+r.x,t.y);return e.current=n,{current:t,point:n}}},{key:"pathV",value:function(e){var t=e.current,r=e.command,n=new mt(t.x,(r.relative?t.y:0)+r.y);return e.current=n,{current:t,point:n}}},{key:"pathC",value:function(e){return{current:e.current,point:e.getPoint("x1","y1"),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}},{key:"pathS",value:function(e){return{current:e.current,point:e.getReflectedControlPoint(),controlPoint:e.getAsControlPoint("x2","y2"),currentPoint:e.getAsCurrentPoint()}}},{key:"pathQ",value:function(e){return{current:e.current,controlPoint:e.getAsControlPoint("x1","y1"),currentPoint:e.getAsCurrentPoint()}}},{key:"pathT",value:function(e){var t=e.current,r=e.getReflectedControlPoint();return e.control=r,{current:t,controlPoint:r,currentPoint:e.getAsCurrentPoint()}}},{key:"pathA",value:function(e){var t=e.current,r=e.command,n=r.rX,o=r.rY,s=r.xRot,i=r.lArcFlag,a=r.sweepFlag,A=s*(Math.PI/180),u=e.getAsCurrentPoint(),c=new mt(Math.cos(A)*(t.x-u.x)/2+Math.sin(A)*(t.y-u.y)/2,-Math.sin(A)*(t.x-u.x)/2+Math.cos(A)*(t.y-u.y)/2),l=Math.pow(c.x,2)/Math.pow(n,2)+Math.pow(c.y,2)/Math.pow(o,2);l>1&&(n*=Math.sqrt(l),o*=Math.sqrt(l));var d=(i===a?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(o,2)-Math.pow(n,2)*Math.pow(c.y,2)-Math.pow(o,2)*Math.pow(c.x,2))/(Math.pow(n,2)*Math.pow(c.y,2)+Math.pow(o,2)*Math.pow(c.x,2)));isNaN(d)&&(d=0);var f=new mt(d*n*c.y/o,d*-o*c.x/n),h=new mt((t.x+u.x)/2+Math.cos(A)*f.x-Math.sin(A)*f.y,(t.y+u.y)/2+Math.sin(A)*f.x+Math.cos(A)*f.y),p=it([1,0],[(c.x-f.x)/n,(c.y-f.y)/o]),m=[(c.x-f.x)/n,(c.y-f.y)/o],g=[(-c.x-f.x)/n,(-c.y-f.y)/o],y=it(m,g);return st(m,g)<=-1&&(y=Math.PI),st(m,g)>=1&&(y=0),{currentPoint:u,rX:n,rY:o,sweepFlag:a,xAxisRotation:A,centp:h,a1:p,ad:y}}},{key:"pathZ",value:function(e){e.current=e.start}}]),o}(kt);var Vt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="svg",e.root=!1,e}return(0,U.default)(o,[{key:"setContext",value:function(e){var t=this.document,r=t.screen,n=t.window,s=e.canvas;if(r.setDefaults(e),s.style&&void 0!==e.font&&n&&void 0!==n.getComputedStyle){e.font=n.getComputedStyle(s).getPropertyValue("font");var i=new ht(t,"fontSize",Pt.parse(e.font).fontSize);i.hasValue()&&(t.rootEmSize=i.getPixels("y"),t.emSize=t.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var a=r.viewPort,A=a.width,u=a.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var c=this.getAttribute("refX"),l=this.getAttribute("refY"),d=this.getAttribute("viewBox"),f=d.hasValue()?Ke(d.getString()):null,h=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),p=0,m=0,g=0,y=0;f&&(p=f[0],m=f[1]),this.root||(A=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=p,y=m,p=0,m=0)),r.viewPort.setCurrent(A,u),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),(0,de.default)((0,ee.default)(o.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(A=f[2],u=f[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:A,height:r.viewPort.height,desiredHeight:u,minX:p,minY:m,refX:c.getValue(),refY:l.getValue(),clip:h,clipX:g,clipY:y}),f&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(A,u))}},{key:"clearContext",value:function(e){(0,de.default)((0,ee.default)(o.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=this.getAttribute("width",!0),s=this.getAttribute("height",!0),i=this.getAttribute("viewBox"),a=this.getAttribute("style"),A=o.getNumber(0),u=s.getNumber(0);if(n)if("string"==typeof n)this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(e),s.setValue(r),i.hasValue()||i.setValue(L()(t="0 0 ".concat(A||e," ")).call(t,u||r)),a.hasValue()){var l=this.getStyle("width"),d=this.getStyle("height");l.hasValue()&&l.setValue("".concat(e,"px")),d.hasValue()&&d.setValue("".concat(r,"px"))}}}]),o}(kt);var qt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="rect",e}return(0,U.default)(o,[{key:"path",value:function(e){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),o=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),i=this.getAttribute("ry"),a=s.getPixels("x"),A=i.getPixels("y");if(s.hasValue()&&!i.hasValue()&&(A=a),i.hasValue()&&!s.hasValue()&&(a=A),a=Math.min(a,n/2),A=Math.min(A,o/2),e){var u=(Math.sqrt(2)-1)/3*4;e.beginPath(),o>0&&n>0&&(e.moveTo(t+a,r),e.lineTo(t+n-a,r),e.bezierCurveTo(t+n-a+u*a,r,t+n,r+A-u*A,t+n,r+A),e.lineTo(t+n,r+o-A),e.bezierCurveTo(t+n,r+o-A+u*A,t+n-a+u*a,r+o,t+n-a,r+o),e.lineTo(t+a,r+o),e.bezierCurveTo(t+a-u*a,r+o,t,r+o-A+u*A,t,r+o-A),e.lineTo(t,r+A),e.bezierCurveTo(t,r+A-u*A,t+a-u*a,r,t+a,r),e.closePath())}return new Ot(t,r,t+n,r+o)}},{key:"getMarkers",value:function(){return null}}]),o}(zt);var Gt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="circle",e}return(0,U.default)(o,[{key:"path",value:function(e){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(t,r,n,0,2*Math.PI,!1),e.closePath()),new Ot(t-n,r-n,t+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),o}(zt);var Xt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="ellipse",e}return(0,U.default)(o,[{key:"path",value:function(e){var t=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),o=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return e&&r>0&&n>0&&(e.beginPath(),e.moveTo(o+r,s),e.bezierCurveTo(o+r,s+t*n,o+t*r,s+n,o,s+n),e.bezierCurveTo(o-t*r,s+n,o-r,s+t*n,o-r,s),e.bezierCurveTo(o-r,s-t*n,o-t*r,s-n,o,s-n),e.bezierCurveTo(o+t*r,s-n,o+r,s-t*n,o+r,s),e.closePath()),new Ot(o-r,s-n,o+r,s+n)}},{key:"getMarkers",value:function(){return null}}]),o}(zt);var Wt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="line",e}return(0,U.default)(o,[{key:"getPoints",value:function(){return[new mt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new mt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var t=this.getPoints(),r=(0,u.default)(t,2),n=r[0],o=n.x,s=n.y,i=r[1],a=i.x,A=i.y;return e&&(e.beginPath(),e.moveTo(o,s),e.lineTo(a,A)),new Ot(o,s,a,A)}},{key:"getMarkers",value:function(){var e=this.getPoints(),t=(0,u.default)(e,2),r=t[0],n=t[1],o=r.angleTo(n);return[[r,o],[n,o]]}}]),o}(zt);var Jt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="polyline",s.points=[],s.points=mt.parsePath(s.getAttribute("points").getString()),s}return(0,U.default)(o,[{key:"path",value:function(e){var t=this.points,r=(0,u.default)(t,1)[0],n=r.x,o=r.y,s=new Ot(n,o);return e&&(e.beginPath(),e.moveTo(n,o)),g()(t).call(t,(function(t){var r=t.x,n=t.y;s.addPoint(r,n),e&&e.lineTo(r,n)})),s}},{key:"getMarkers",value:function(){var e=this.points,t=e.length-1,r=[];return g()(e).call(e,(function(n,o){o!==t&&r.push([n,n.angleTo(e[o+1])])})),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}]),o}(zt);var Yt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="polygon",e}return(0,U.default)(o,[{key:"path",value:function(e){var t=(0,de.default)((0,ee.default)(o.prototype),"path",this).call(this,e),r=(0,u.default)(this.points,1)[0],n=r.x,s=r.y;return e&&(e.lineTo(n,s),e.closePath()),t}}]),o}(Jt);var Zt=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="pattern",e}return(0,U.default)(o,[{key:"createPattern",value:function(e,t,r){var n=this.getStyle("width").getPixels("x",!0),o=this.getStyle("height").getPixels("y",!0),s=new Vt(this.document,null);s.attributes.viewBox=new ht(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new ht(this.document,"width","".concat(n,"px")),s.attributes.height=new ht(this.document,"height","".concat(o,"px")),s.attributes.transform=new ht(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var i=this.document.createCanvas(n,o),a=i.getContext("2d"),A=this.getAttribute("x"),u=this.getAttribute("y");A.hasValue()&&u.hasValue()&&a.translate(A.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:ge()(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var l=-1;l<=1;l++)a.save(),s.attributes.x=new ht(this.document,"x",c*i.width),s.attributes.y=new ht(this.document,"y",l*i.height),s.render(a),a.restore();return e.createPattern(i,"repeat")}}]),o}(St);var $t=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="marker",e}return(0,U.default)(o,[{key:"render",value:function(e,t,r){if(t){var n=t.x,o=t.y,s=this.getAttribute("orient").getValue("auto"),i=this.getAttribute("markerUnits").getValue("strokeWidth");e.translate(n,o),"auto"===s&&e.rotate(r),"strokeWidth"===i&&e.scale(e.lineWidth,e.lineWidth),e.save();var a=new Vt(this.document,null);a.type=this.type,a.attributes.viewBox=new ht(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new ht(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new ht(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new ht(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new ht(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new ht(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new ht(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new ht(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(e),e.restore(),"strokeWidth"===i&&e.scale(1/e.lineWidth,1/e.lineWidth),"auto"===s&&e.rotate(-r),e.translate(-n,-o)}}}]),o}(St);var er=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="defs",e}return(0,U.default)(o,[{key:"render",value:function(){}}]),o}(St);var tr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="g",e}return(0,U.default)(o,[{key:"getBoundingBox",value:function(e){var t,r=new Ot;return g()(t=this.children).call(t,(function(t){r.addBoundingBox(t.getBoundingBox(e))})),r}}]),o}(kt);var rr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;(0,F.default)(this,o),(s=n.call(this,e,t,r)).attributesToInherit=["gradientUnits"],s.stops=[];var i=(0,ye.default)(s),a=i.stops,A=i.children;return g()(A).call(A,(function(e){"stop"===e.type&&a.push(e)})),s}return(0,U.default)(o,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,t,r){var n=this,o=this;this.getHrefAttribute().hasValue()&&(o=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(o));var s=o.stops,i=this.getGradient(e,t);if(!i)return this.addParentOpacity(r,s[s.length-1].color);if(g()(s).call(s,(function(e){i.addColorStop(e.offset,n.addParentOpacity(r,e.color))})),this.getAttribute("gradientTransform").hasValue()){var a=this.document,A=a.screen,c=A.MAX_VIRTUAL_PIXELS,l=A.viewPort,d=(0,u.default)(l.viewPorts,1)[0],f=new qt(a,null);f.attributes.x=new ht(a,"x",-c/3),f.attributes.y=new ht(a,"y",-c/3),f.attributes.width=new ht(a,"width",c),f.attributes.height=new ht(a,"height",c);var h=new tr(a,null);h.attributes.transform=new ht(a,"transform",this.getAttribute("gradientTransform").getValue()),h.children=[f];var p=new Vt(a,null);p.attributes.x=new ht(a,"x",0),p.attributes.y=new ht(a,"y",0),p.attributes.width=new ht(a,"width",d.width),p.attributes.height=new ht(a,"height",d.height),p.children=[h];var m=a.createCanvas(d.width,d.height),y=m.getContext("2d");return y.fillStyle=i,p.render(y),y.createPattern(m,"no-repeat")}return i}},{key:"inheritStopContainer",value:function(e){var t,r=this;g()(t=this.attributesToInherit).call(t,(function(t){!r.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&r.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())}))}},{key:"addParentOpacity",value:function(e,t){return e.hasValue()?new ht(this.document,"color",t).addOpacity(e).getColor():t}}]),o}(St);var nr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="linearGradient",s.attributesToInherit.push("x1","y1","x2","y2"),s}return(0,U.default)(o,[{key:"getGradient",value:function(e,t){var r="objectBoundingBox"===this.getGradientUnits(),n=r?t.getBoundingBox(e):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var o=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),i=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return o===i&&s===a?null:e.createLinearGradient(o,s,i,a)}}]),o}(rr);var or=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="radialGradient",s.attributesToInherit.push("cx","cy","r","fx","fy","fr"),s}return(0,U.default)(o,[{key:"getGradient",value:function(e,t){var r="objectBoundingBox"===this.getGradientUnits(),n=t.getBoundingBox(e);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var o=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),i=o,a=s;this.getAttribute("fx").hasValue()&&(i=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var A=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return e.createRadialGradient(i,a,u,o,s,A)}}]),o}(rr);var sr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="stop";var i=Math.max(0,Math.min(1,s.getAttribute("offset").getNumber())),a=s.getStyle("stop-opacity"),A=s.getStyle("stop-color",!0);return""===A.getString()&&A.setValue("#000"),a.hasValue()&&(A=A.addOpacity(a)),s.offset=i,s.color=A.getColor(),s}return o}(St);var ir=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="animate",s.duration=0,s.initialValue=null,s.initialUnits="",s.removed=!1,s.frozen=!1,e.screen.animations.push((0,ye.default)(s)),s.begin=s.getAttribute("begin").getMilliseconds(),s.maxDuration=s.begin+s.getAttribute("dur").getMilliseconds(),s.from=s.getAttribute("from"),s.to=s.getAttribute("to"),s.values=s.getAttribute("values"),we()(s).hasValue()&&we()(s).setValue(we()(s).getString().split(";")),s}return(0,U.default)(o,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return"CSS"===e?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}},{key:"calcValue",value:function(){var e,t=this.initialUnits,r=this.getProgress(),n=r.progress,o=r.from,s=r.to,i=o.getNumber()+(s.getNumber()-o.getNumber())*n;return"%"===t&&(i*=100),L()(e="".concat(i)).call(e,t)}},{key:"update",value:function(e){var t=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();return!1}this.duration+=e;var o=!1;if(this.begin<this.duration){var s=this.calcValue(),i=this.getAttribute("type");if(i.hasValue()){var a,A=i.getString();s=L()(a="".concat(A,"(")).call(a,s,")")}r.setValue(s),o=!0}return o}},{key:"getProgress",value:function(){var e=this.document,t=we()(this),r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var n=r.progress*(t.getValue().length-1),o=Math.floor(n),s=Math.ceil(n);r.from=new ht(e,"from",i()(t.getValue()[o])),r.to=new ht(e,"to",i()(t.getValue()[s])),r.progress=(n-o)/(s-o)}else r.from=this.from,r.to=this.to;return r}}]),o}(St);var ar=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="animateColor",e}return(0,U.default)(o,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,r=e.from,n=e.to,o=new(W())(r.getColor()),s=new(W())(n.getColor());if(o.ok&&s.ok){var i,a,A=o.r+(s.r-o.r)*t,u=o.g+(s.g-o.g)*t,c=o.b+(s.b-o.b)*t;return L()(i=L()(a="rgb(".concat(Be()(A,10),", ")).call(a,Be()(u,10),", ")).call(i,Be()(c,10),")")}return this.getAttribute("from").getColor()}}]),o}(ir);var Ar=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="animateTransform",e}return(0,U.default)(o,[{key:"calcValue",value:function(){var e=this.getProgress(),t=e.progress,r=e.from,n=e.to,o=Ke(r.getString()),s=Ke(n.getString());return A()(o).call(o,(function(e,r){return e+(s[r]-e)*t})).join(" ")}}]),o}(ir);function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var cr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="font",s.glyphs={},s.horizAdvX=s.getAttribute("horiz-adv-x").getNumber();var i,a=e.definitions,A=function(e,t){var r;if(void 0===Fe()||null==Ne()(e)){if(xe()(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return ur(e,t);var n=Se()(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?ae()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 s,i=!0,a=!1;return{s:function(){r=_e()(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw s}}}}((0,ye.default)(s).children);try{for(A.s();!(i=A.n()).done;){var u=i.value;switch(u.type){case"font-face":s.fontFace=u;var c=u.getStyle("font-family");c.hasValue()&&(a[c.getString()]=(0,ye.default)(s));break;case"missing-glyph":s.missingGlyph=u;break;case"glyph":var l=u;l.arabicForm?(s.isRTL=!0,s.isArabic=!0,void 0===s.glyphs[l.unicode]&&(s.glyphs[l.unicode]={}),s.glyphs[l.unicode][l.arabicForm]=l):s.glyphs[l.unicode]=l}}}catch(e){A.e(e)}finally{A.f()}return s}return(0,U.default)(o,[{key:"render",value:function(){}}]),o}(St);var lr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="font-face",s.ascent=s.getAttribute("ascent").getNumber(),s.descent=s.getAttribute("descent").getNumber(),s.unitsPerEm=s.getAttribute("units-per-em").getNumber(),s}return o}(St);var dr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="missing-glyph",e.horizAdvX=0,e}return o}(zt);var fr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="glyph",s.horizAdvX=s.getAttribute("horiz-adv-x").getNumber(),s.unicode=s.getAttribute("unicode").getString(),s.arabicForm=s.getAttribute("arabic-form").getString(),s}return o}(zt);var hr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="tref",e}return(0,U.default)(o,[{key:"getText",value:function(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return""}}]),o}(Rt);var pr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s,i;(0,F.default)(this,o),(i=n.call(this,e,t,r)).type="a";var a=t.childNodes,A=a[0],u=a.length>0&&k()(s=ae()(a)).call(s,(function(e){return 3===e.nodeType}));return i.hasText=u,i.text=u?i.getTextFromNode(A):"",i}return(0,U.default)(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){(0,de.default)((0,ee.default)(o.prototype),"renderChildren",this).call(this,e);var t=this.document,r=this.x,n=this.y,s=t.screen.mouse,i=new ht(t,"fontSize",Pt.parse(t.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new Ot(r,n-i.getPixels("y"),r+this.measureText(e),n))}else if(this.children.length>0){var a=new tr(this.document,null);a.children=this.children,a.parent=this,a.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),o}(Rt);function mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gr(e,t){var r=C()(e);if(j()){var n=j()(e);t&&(n=b()(n).call(n,(function(t){return v()(e,t).enumerable}))),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)g()(r=gr(Object(n),!0)).call(r,(function(t){(0,Q.default)(e,t,n[t])}));else if(p())f()(e,p()(n));else{var o;g()(o=gr(Object(n))).call(o,(function(t){l()(e,t,v()(n,t))}))}}return e}var vr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="textPath",s.textWidth=0,s.textHeight=0,s.pathLength=-1,s.glyphInfo=null,s.letterSpacingCache=[],s.measuresCache=new(Te())([["",0]]);var i=s.getHrefAttribute().getDefinition();return s.text=s.getTextFromNode(),s.dataArray=s.parsePathData(i),s}return(0,U.default)(o,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(e){var t=this.dataArray;e&&e.beginPath(),g()(t).call(t,(function(t){var r=t.type,n=t.points;switch(r){case Kt.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case Kt.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case Kt.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case Kt.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case Kt.ARC:var o=(0,u.default)(n,8),s=o[0],i=o[1],a=o[2],A=o[3],c=o[4],l=o[5],d=o[6],f=o[7],h=a>A?a:A,p=a>A?1:a/A,m=a>A?A/a:1;e&&(e.translate(s,i),e.rotate(d),e.scale(p,m),e.arc(0,0,h,c,c+l,Boolean(1-f)),e.scale(1/p,1/m),e.rotate(-d),e.translate(-s,-i));break;case Kt.CLOSE_PATH:e&&e.closePath()}}))}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),n=this.glyphInfo,o=e.fillStyle;"underline"===t&&e.beginPath(),g()(n).call(n,(function(n,o){var s=n.p0,i=n.p1,a=n.rotation,A=n.text;e.save(),e.translate(s.x,s.y),e.rotate(a),e.fillStyle&&e.fillText(A,0,0),e.strokeStyle&&e.strokeText(A,0,0),e.restore(),"underline"===t&&(0===o&&e.moveTo(s.x,s.y+r/8),e.lineTo(i.x,i.y+r/5))})),"underline"===t&&(e.lineWidth=r/20,e.strokeStyle=o,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,t,r,n,o,s,i,a,A){var u=s,c=this.measureText(e,a);" "===a&&"justify"===t&&r<n&&(c+=(n-r)/o),A>-1&&(u+=this.getLetterSpacingAt(A));var l=this.textHeight/20,d=this.getEquidistantPointOnPath(u,l,0),f=this.getEquidistantPointOnPath(u+c,l,0),h={p0:d,p1:f},p=d&&f?Math.atan2(f.y-d.y,f.x-d.x):0;if(i){var m=Math.cos(Math.PI/2+p)*i,g=Math.cos(-p)*i;h.p0=yr(yr({},d),{},{x:d.x+m,y:d.y+g}),h.p1=yr(yr({},f),{},{x:f.x+m,y:f.y+g})}return{offset:u+=c,segment:h,rotation:p}}},{key:"measureText",value:function(e,t){var r=this.measuresCache,n=t||this.getText();if(r.has(n))return r.get(n);var o=this.measureTargetText(e,n);return r.set(n,o),o}},{key:"setTextData",value:function(e){var t,r=this;if(!this.glyphInfo){var n=this.getText(),o=n.split(""),s=n.split(" ").length-1,i=A()(t=this.parent.getAttribute("dx").split()).call(t,(function(e){return e.getPixels("x")})),a=this.parent.getAttribute("dy").getPixels("y"),u=this.parent.getStyle("text-anchor").getString("start"),c=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),d=0;c.hasValue()&&"inherit"!==c.getValue()?c.hasValue()&&"initial"!==c.getValue()&&"unset"!==c.getValue()&&(d=c.getPixels()):d=l.getPixels();var f=[],h=n.length;this.letterSpacingCache=f;for(var p=0;p<h;p++)f.push(void 0!==i[p]?i[p]:d);var m=H()(f).call(f,(function(e,t,r){return 0===r?0:e+t||0}),0),y=this.measureText(e),v=Math.max(y+m,0);this.textWidth=y,this.textHeight=this.getFontSize(),this.glyphInfo=[];var w=this.getPathLength(),b=this.getStyle("startOffset").getNumber(0)*w,B=0;"middle"!==u&&"center"!==u||(B=-v/2),"end"!==u&&"right"!==u||(B=-v),B+=b,g()(o).call(o,(function(t,n){var i=r.findSegmentToFitChar(e,u,v,w,s,B,a,t,n),A=i.offset,c=i.segment,l=i.rotation;B=A,c.p0&&c.p1&&r.glyphInfo.push({text:o[n],p0:c.p0,p1:c.p1,rotation:l})}))}}},{key:"parsePathData",value:function(e){if(this.pathLength=-1,!e)return[];var t=[],r=e.pathParser;for(r.reset();!r.isEnd();){var n=r.current,o=n?n.x:0,s=n?n.y:0,i=r.next(),a=i.type,A=[];switch(i.type){case Kt.MOVE_TO:this.pathM(r,A);break;case Kt.LINE_TO:a=this.pathL(r,A);break;case Kt.HORIZ_LINE_TO:a=this.pathH(r,A);break;case Kt.VERT_LINE_TO:a=this.pathV(r,A);break;case Kt.CURVE_TO:this.pathC(r,A);break;case Kt.SMOOTH_CURVE_TO:a=this.pathS(r,A);break;case Kt.QUAD_TO:this.pathQ(r,A);break;case Kt.SMOOTH_QUAD_TO:a=this.pathT(r,A);break;case Kt.ARC:A=this.pathA(r);break;case Kt.CLOSE_PATH:zt.pathZ(r)}i.type!==Kt.CLOSE_PATH?t.push({type:a,points:A,start:{x:o,y:s},pathLength:this.calcLength(o,s,a,A)}):t.push({type:Kt.CLOSE_PATH,points:[],pathLength:0})}return t}},{key:"pathM",value:function(e,t){var r=zt.pathM(e).point,n=r.x,o=r.y;t.push(n,o)}},{key:"pathL",value:function(e,t){var r=zt.pathL(e).point,n=r.x,o=r.y;return t.push(n,o),Kt.LINE_TO}},{key:"pathH",value:function(e,t){var r=zt.pathH(e).point,n=r.x,o=r.y;return t.push(n,o),Kt.LINE_TO}},{key:"pathV",value:function(e,t){var r=zt.pathV(e).point,n=r.x,o=r.y;return t.push(n,o),Kt.LINE_TO}},{key:"pathC",value:function(e,t){var r=zt.pathC(e),n=r.point,o=r.controlPoint,s=r.currentPoint;t.push(n.x,n.y,o.x,o.y,s.x,s.y)}},{key:"pathS",value:function(e,t){var r=zt.pathS(e),n=r.point,o=r.controlPoint,s=r.currentPoint;return t.push(n.x,n.y,o.x,o.y,s.x,s.y),Kt.CURVE_TO}},{key:"pathQ",value:function(e,t){var r=zt.pathQ(e),n=r.controlPoint,o=r.currentPoint;t.push(n.x,n.y,o.x,o.y)}},{key:"pathT",value:function(e,t){var r=zt.pathT(e),n=r.controlPoint,o=r.currentPoint;return t.push(n.x,n.y,o.x,o.y),Kt.QUAD_TO}},{key:"pathA",value:function(e){var t=zt.pathA(e),r=t.rX,n=t.rY,o=t.sweepFlag,s=t.xAxisRotation,i=t.centp,a=t.a1,A=t.ad;return 0===o&&A>0&&(A-=2*Math.PI),1===o&&A<0&&(A+=2*Math.PI),[i.x,i.y,r,n,a,A,s,o]}},{key:"calcLength",value:function(e,t,r,n){var o=0,s=null,i=null,a=0;switch(r){case Kt.LINE_TO:return this.getLineLength(e,t,n[0],n[1]);case Kt.CURVE_TO:for(o=0,s=this.getPointOnCubicBezier(0,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),a=.01;a<=1;a+=.01)i=this.getPointOnCubicBezier(a,e,t,n[0],n[1],n[2],n[3],n[4],n[5]),o+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return o;case Kt.QUAD_TO:for(o=0,s=this.getPointOnQuadraticBezier(0,e,t,n[0],n[1],n[2],n[3]),a=.01;a<=1;a+=.01)i=this.getPointOnQuadraticBezier(a,e,t,n[0],n[1],n[2],n[3]),o+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return o;case Kt.ARC:o=0;var A=n[4],u=n[5],c=n[4]+u,l=Math.PI/180;if(Math.abs(A-c)<l&&(l=Math.abs(A-c)),s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],A,0),u<0)for(a=A-l;a>c;a-=l)i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],a,0),o+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;else for(a=A+l;a<c;a+=l)i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],a,0),o+=this.getLineLength(s.x,s.y,i.x,i.y),s=i;return i=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),o+this.getLineLength(s.x,s.y,i.x,i.y)}return 0}},{key:"getPointOnLine",value:function(e,t,r,n,o){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,a=(o-r)/(n-t+nt),A=Math.sqrt(e*e/(1+a*a));n<t&&(A*=-1);var u=a*A,c=null;if(n===t)c={x:s,y:i+u};else if((i-r)/(s-t+nt)===a)c={x:s+A,y:i+u};else{var l=0,d=0,f=this.getLineLength(t,r,n,o);if(f<nt)return null;var h=(s-t)*(n-t)+(i-r)*(o-r);l=t+(h/=f*f)*(n-t),d=r+h*(o-r);var p=this.getLineLength(s,i,l,d),m=Math.sqrt(e*e-p*p);A=Math.sqrt(m*m/(1+a*a)),n<t&&(A*=-1),c={x:l+A,y:d+(u=a*A)}}return c}},{key:"getPointOnPath",value:function(e){var t=this.getPathLength(),r=0,n=null;if(e<-5e-5||e-5e-5>t)return null;var o,s=function(e,t){var r;if(void 0===Fe()||null==Ne()(e)){if(xe()(e)||(r=function(e,t){var r;if(e){if("string"==typeof e)return mr(e,t);var n=Se()(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?ae()(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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 s,i=!0,a=!1;return{s:function(){r=_e()(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,s=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw s}}}}(this.dataArray);try{for(s.s();!(o=s.n()).done;){var i=o.value;if(!i||!(i.pathLength<5e-5||r+i.pathLength+5e-5<e)){var a=e-r,A=0;switch(i.type){case Kt.LINE_TO:n=this.getPointOnLine(a,i.start.x,i.start.y,i.points[0],i.points[1],i.start.x,i.start.y);break;case Kt.ARC:var u=i.points[4],c=i.points[5],l=i.points[4]+c;if(A=u+a/i.pathLength*c,c<0&&A<l||c>=0&&A>l)break;n=this.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],A,i.points[6]);break;case Kt.CURVE_TO:(A=a/i.pathLength)>1&&(A=1),n=this.getPointOnCubicBezier(A,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case Kt.QUAD_TO:(A=a/i.pathLength)>1&&(A=1),n=this.getPointOnQuadraticBezier(A,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}if(n)return n;break}r+=i.pathLength}}catch(e){s.e(e)}finally{s.f()}return null}},{key:"getLineLength",value:function(e,t,r,n){return Math.sqrt((r-e)*(r-e)+(n-t)*(n-t))}},{key:"getPathLength",value:function(){var e;return-1===this.pathLength&&(this.pathLength=H()(e=this.dataArray).call(e,(function(e,t){return t.pathLength>0?e+t.pathLength:e}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,t,r,n,o,s,i,a,A){return{x:a*at(e)+s*At(e)+n*ut(e)+t*ct(e),y:A*at(e)+i*At(e)+o*ut(e)+r*ct(e)}}},{key:"getPointOnQuadraticBezier",value:function(e,t,r,n,o,s,i){return{x:s*lt(e)+n*dt(e)+t*ft(e),y:i*lt(e)+o*dt(e)+r*ft(e)}}},{key:"getPointOnEllipticalArc",value:function(e,t,r,n,o,s){var i=Math.cos(s),a=Math.sin(s),A=r*Math.cos(o),u=n*Math.sin(o);return{x:e+(A*i-u*a),y:t+(A*a+u*i)}}},{key:"buildEquidistantCache",value:function(e,t){var r=this.getPathLength(),n=t||.25,o=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==o||this.equidistantCache.precision!==n){this.equidistantCache={step:o,precision:n,points:[]};for(var s=0,i=0;i<=r;i+=n){var a=this.getPointOnPath(i),A=this.getPointOnPath(i+n);a&&A&&(s+=this.getLineLength(a.x,a.y,A.x,A.y))>=o&&(this.equidistantCache.points.push({x:a.x,y:a.y,distance:i}),s-=o)}}}},{key:"getEquidistantPointOnPath",value:function(e,t,r){if(this.buildEquidistantCache(t,r),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}]),o}(Rt);var wr=function(e){(0,Z.default)(i,e);var t,r,n,o,s=(n=i,o=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=(0,ee.default)(n);if(o){var r=(0,ee.default)(this).constructor;e=Y()(t,arguments,r)}else e=t.apply(this,arguments);return(0,$.default)(this,e)});function i(e,t,r){var n;(0,F.default)(this,i),(n=s.call(this,e,t,r)).type="image",n.loaded=!1;var o=n.getHrefAttribute().getString();if(!o)return(0,$.default)(n);var a=/\.svg$/.test(o);return e.images.push((0,ye.default)(n)),a?n.loadSvg(o):n.loadImage(o),n.isSvg=a,n}return(0,U.default)(i,[{key:"loadImage",value:(r=(0,N.default)(E().mark((function e(t){var r;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.document.createImage(t);case 3:r=e.sent,this.image=r,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error('Error while loading image "'.concat(t,'":'),e.t0);case 10:this.loaded=!0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e){return r.apply(this,arguments)})},{key:"loadSvg",value:(t=(0,N.default)(E().mark((function e(t){var r,n;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.document.fetch(t);case 3:return r=e.sent,e.next=6,r.text();case 6:n=e.sent,this.image=n,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error('Error while loading image "'.concat(t,'":'),e.t0);case 13:this.loaded=!0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e){return t.apply(this,arguments)})},{key:"renderChildren",value:function(e){var t=this.document,r=this.image,n=this.loaded,o=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(n&&r&&i&&a){if(e.save(),this.isSvg)t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:o,offsetY:s,scaleWidth:i,scaleHeight:a}).render();else{var A=this.image;e.translate(o,s),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i,desiredWidth:A.width,height:a,desiredHeight:A.height}),this.loaded&&(void 0===A.complete||A.complete)&&e.drawImage(A,0,0)}e.restore()}}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Ot(e,t,e+r,t+n)}}]),i}(kt);var br=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="symbol",e}return(0,U.default)(o,[{key:"render",value:function(e){}}]),o}(kt),Br=function(){function e(t){(0,F.default)(this,e),this.document=t,this.loaded=!1,t.fonts.push(this)}var t;return(0,U.default)(e,[{key:"load",value:(t=(0,N.default)(E().mark((function e(t,r){var n,o,s,i;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o=this.document,e.next=4,o.canvg.parser.load(r);case 4:s=e.sent,i=s.getElementsByTagName("font"),g()(n=ae()(i)).call(n,(function(e){var r=o.createElement(e);o.definitions[t]=r})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error('Error while loading font "'.concat(r,'":'),e.t0);case 12:this.loaded=!0;case 13:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,r){return t.apply(this,arguments)})}]),e}();var jr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s,i;(0,F.default)(this,o),(i=n.call(this,e,t,r)).type="style";var a=Re(A()(s=ae()(t.childNodes)).call(s,(function(e){return e.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return g()(a).call(a,(function(t){var r=G()(t).call(t);if(r){var n=r.split("{"),o=n[0].split(","),s=n[1].split(";");g()(o).call(o,(function(t){var r=G()(t).call(t);if(r){var n=e.styles[r]||{};if(g()(s).call(s,(function(t){var r,o,s=le()(t).call(t,":"),i=G()(r=t.substr(0,s)).call(r),a=G()(o=t.substr(s+1,t.length-s)).call(o);i&&a&&(n[i]=new ht(e,i,a))})),e.styles[r]=n,e.stylesSpecificity[r]=rt(r),"@font-face"===r){var o=n["font-family"].getString().replace(/"|'/g,""),i=n.src.getString().split(",");g()(i).call(i,(function(t){if(le()(t).call(t,'format("svg")')>0){var r=qe(t);r&&new Br(e).load(o,r)}}))}}}))}})),i}return o}(St);jr.parseExternalUrl=qe;var _r=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="use",e}return(0,U.default)(o,[{key:"setContext",value:function(e){(0,de.default)((0,ee.default)(o.prototype),"setContext",this).call(this,e);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&e.translate(t.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}},{key:"path",value:function(e){var t=this.element;t&&t.path(e)}},{key:"renderChildren",value:function(e){var t=this.document,r=this.element;if(r){var n=r;if("symbol"===r.type&&((n=new Vt(t,null)).attributes.viewBox=new ht(t,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new ht(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new ht(t,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new ht(t,"opacity",this.calculateOpacity())),"svg"===n.type){var o=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);o.hasValue()&&(n.attributes.width=new ht(t,"width",o.getString())),s.hasValue()&&(n.attributes.height=new ht(t,"height",s.getString()))}var i=n.parent;n.parent=this,n.render(e),n.parent=i}}},{key:"getBoundingBox",value:function(e){var t=this.element;return t?t.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,t=this.element;return Ut.fromElement(e,t)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),o}(kt);function Cr(e,t,r,n,o,s){return e[r*n*4+4*t+s]}function xr(e,t,r,n,o,s,i){e[r*n*4+4*t+s]=i}function Er(e,t,r){return e[t]*r}function Nr(e,t,r,n){return t+Math.cos(e)*r+Math.sin(e)*n}var Qr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="feColorMatrix";var i=Ke(s.getAttribute("values").getString());switch(s.getAttribute("type").getString("matrix")){case"saturate":var a=i[0];i=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var A=i[0]*Math.PI/180;i=[Nr(A,.213,.787,-.213),Nr(A,.715,-.715,-.715),Nr(A,.072,-.072,.928),0,0,Nr(A,.213,-.213,.143),Nr(A,.715,.285,.14),Nr(A,.072,-.072,-.283),0,0,Nr(A,.213,-.213,-.787),Nr(A,.715,-.715,.715),Nr(A,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return s.matrix=i,s.includeOpacity=s.getAttribute("includeOpacity").hasValue(),s}return(0,U.default)(o,[{key:"apply",value:function(e,t,r,n,o){for(var s=this.includeOpacity,i=this.matrix,a=e.getImageData(0,0,n,o),A=0;A<o;A++)for(var u=0;u<n;u++){var c=Cr(a.data,u,A,n,0,0),l=Cr(a.data,u,A,n,0,1),d=Cr(a.data,u,A,n,0,2),f=Cr(a.data,u,A,n,0,3),h=Er(i,0,c)+Er(i,1,l)+Er(i,2,d)+Er(i,3,f)+Er(i,4,1),p=Er(i,5,c)+Er(i,6,l)+Er(i,7,d)+Er(i,8,f)+Er(i,9,1),m=Er(i,10,c)+Er(i,11,l)+Er(i,12,d)+Er(i,13,f)+Er(i,14,1),g=Er(i,15,c)+Er(i,16,l)+Er(i,17,d)+Er(i,18,f)+Er(i,19,1);s&&(h=p=m=0,g*=f/255),xr(a.data,u,A,n,0,0,h),xr(a.data,u,A,n,0,1,p),xr(a.data,u,A,n,0,2,m),xr(a.data,u,A,n,0,3,g)}e.clearRect(0,0,n,o),e.putImageData(a,0,0)}}]),o}(St);var Fr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="mask",e}return(0,U.default)(o,[{key:"apply",value:function(e,t){var r=this.document,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!i&&!a){var A,u=new Ot;g()(A=this.children).call(A,(function(t){u.addBoundingBox(t.getBoundingBox(e))})),n=Math.floor(u.x1),s=Math.floor(u.y1),i=Math.floor(u.width),a=Math.floor(u.height)}var c=this.removeStyles(t,o.ignoreStyles),l=r.createCanvas(n+i,s+a),d=l.getContext("2d");r.screen.setDefaults(d),this.renderChildren(d),new Qr(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(d,0,0,n+i,s+a);var f=r.createCanvas(n+i,s+a),h=f.getContext("2d");r.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=d.createPattern(l,"no-repeat"),h.fillRect(0,0,n+i,s+a),e.fillStyle=h.createPattern(f,"no-repeat"),e.fillRect(0,0,n+i,s+a),this.restoreStyles(t,c)}},{key:"render",value:function(e){}}]),o}(St);Fr.ignoreStyles=["mask","transform","clip-path"];var Ur=function(){},Sr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="clipPath",e}return(0,U.default)(o,[{key:"apply",value:function(e){var t,r=this.document,n=Oe()(e),o=e.beginPath,s=e.closePath;n&&(n.beginPath=Ur,n.closePath=Ur),Ie()(o,e,[]),g()(t=this.children).call(t,(function(t){if(void 0!==t.path){var o=void 0!==t.elementTransform?t.elementTransform():null;o||(o=Ut.fromElement(r,t)),o&&o.apply(e),t.path(e),n&&(n.closePath=s),o&&o.unapply(e)}})),Ie()(s,e,[]),e.clip(),n&&(n.beginPath=o,n.closePath=s)}},{key:"render",value:function(e){}}]),o}(St);var Lr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="filter",e}return(0,U.default)(o,[{key:"apply",value:function(e,t){var r=this.document,n=this.children,s=t.getBoundingBox(e);if(s){var i=0,a=0;g()(n).call(n,(function(e){var t=e.extraFilterDistance||0;i=Math.max(i,t),a=Math.max(a,t)}));var A=Math.floor(s.width),u=Math.floor(s.height),c=A+2*i,l=u+2*a;if(!(c<1||l<1)){var d=Math.floor(s.x),f=Math.floor(s.y),h=this.removeStyles(t,o.ignoreStyles),p=r.createCanvas(c,l),m=p.getContext("2d");r.screen.setDefaults(m),m.translate(-d+i,-f+a),t.render(m),g()(n).call(n,(function(e){"function"==typeof e.apply&&e.apply(m,0,0,c,l)})),e.drawImage(p,0,0,c,l,d-i,f-a,c,l),this.restoreStyles(t,h)}}}},{key:"render",value:function(e){}}]),o}(St);Lr.ignoreStyles=["filter","transform","clip-path"];var Tr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="feDropShadow",s.addStylesFromStyleDefinition(),s}return(0,U.default)(o,[{key:"apply",value:function(e,t,r,n,o){}}]),o}(St);var Hr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="feMorphology",e}return(0,U.default)(o,[{key:"apply",value:function(e,t,r,n,o){}}]),o}(St);var Ir=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="feComposite",e}return(0,U.default)(o,[{key:"apply",value:function(e,t,r,n,o){}}]),o}(St);var Pr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(e,t,r){var s;return(0,F.default)(this,o),(s=n.call(this,e,t,r)).type="feGaussianBlur",s.blurRadius=Math.floor(s.getAttribute("stdDeviation").getNumber()),s.extraFilterDistance=s.blurRadius,s}return(0,U.default)(o,[{key:"apply",value:function(e,t,r,n,o){var s=this.document,i=this.blurRadius,a=s.window?s.window.document.body:null,A=e.canvas;A.id=s.getUniqueId(),a&&(A.style.display="none",a.appendChild(A)),(0,ke.canvasRGBA)(A,t,r,n,o,i),a&&a.removeChild(A)}}]),o}(St);var Or=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="title",e}return o}(St);var kr=function(e){(0,Z.default)(o,e);var t,r,n=(t=o,r=function(){if("undefined"==typeof Reflect||!Y())return!1;if(Y().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Y()(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,ee.default)(t);if(r){var o=(0,ee.default)(this).constructor;e=Y()(n,arguments,o)}else e=n.apply(this,arguments);return(0,$.default)(this,e)});function o(){var e;return(0,F.default)(this,o),(e=n.apply(this,arguments)).type="desc",e}return o}(St),Rr={svg:Vt,rect:qt,circle:Gt,ellipse:Xt,line:Wt,polyline:Jt,polygon:Yt,path:zt,pattern:Zt,marker:$t,defs:er,linearGradient:nr,radialGradient:or,stop:sr,animate:ir,animateColor:ar,animateTransform:Ar,font:cr,"font-face":lr,"missing-glyph":dr,glyph:fr,text:Rt,tspan:Mt,tref:hr,a:pr,textPath:vr,image:wr,g:tr,symbol:br,style:jr,use:_r,mask:Fr,clipPath:Sr,filter:Lr,feDropShadow:Tr,feMorphology:Hr,feComposite:Ir,feColorMatrix:Qr,feGaussianBlur:Pr,title:Or,desc:kr};function Mr(e,t){var r=C()(e);if(j()){var n=j()(e);t&&(n=b()(n).call(n,(function(t){return v()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dr(){return(Dr=(0,N.default)(E().mark((function e(t){var r,n,o=arguments;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]&&o[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),e.abrupt("return",new(M())((function(e,r){n.onload=function(){e(n)},n.onerror=function(){r()},n.src=t})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Kr=function(){function e(t){var r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=o.rootEmSize,i=void 0===s?12:s,a=o.emSize,A=void 0===a?12:a,u=o.createCanvas,c=void 0===u?e.createCanvas:u,l=o.createImage,d=void 0===l?e.createImage:l,f=o.anonymousCrossOrigin;(0,F.default)(this,e),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=i,this.emSize=A,this.createCanvas=c,this.createImage=this.bindCreateImage(d,f),this.screen.wait(K()(r=this.isImagesLoaded).call(r,this)),this.screen.wait(K()(n=this.isFontsLoaded).call(n,this))}return(0,U.default)(e,[{key:"bindCreateImage",value:function(e,t){return"boolean"==typeof t?function(r,n){return e(r,"boolean"==typeof n?n:t)}:e}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){var e;return k()(e=this.images).call(e,(function(e){return e.loaded}))}},{key:"isFontsLoaded",value:function(){var e;return k()(e=this.fonts).call(e,(function(e){return e.loaded}))}},{key:"createDocumentElement",value:function(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}},{key:"createElement",value:function(t){var r=t.nodeName.replace(/^[^:]+:/,""),n=e.elementTypes[r];return void 0!==n?new n(this,t):new Lt(this,t)}},{key:"createTextNode",value:function(e){return new Dt(this,e)}},{key:"setViewBox",value:function(e){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)g()(r=Mr(Object(n),!0)).call(r,(function(t){(0,Q.default)(e,t,n[t])}));else if(p())f()(e,p()(n));else{var o;g()(o=Mr(Object(n))).call(o,(function(t){l()(e,t,v()(n,t))}))}}return e}({document:this},e))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var e=this.emSizeStack;return e[e.length-1]},set:function(e){this.emSizeStack.push(e)}}]),e}();function zr(e,t){var r=C()(e);if(j()){var n=j()(e);t&&(n=b()(n).call(n,(function(t){return v()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vr(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};if(t%2)g()(r=zr(Object(n),!0)).call(r,(function(t){(0,Q.default)(e,t,n[t])}));else if(p())f()(e,p()(n));else{var o;g()(o=zr(Object(n))).call(o,(function(t){l()(e,t,v()(n,t))}))}}return e}Kr.createCanvas=function(e,t){var r=document.createElement("canvas");return r.width=e,r.height=t,r},Kr.createImage=function(e){return Dr.apply(this,arguments)},Kr.elementTypes=Rr;var qr=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,F.default)(this,e),this.parser=new jt(n),this.screen=new wt(t,n),this.options=n;var o=new Kr(this,n),s=o.createDocumentElement(r);this.document=o,this.documentElement=s}var t,r;return(0,U.default)(e,[{key:"fork",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.from(t,r,Vr(Vr({},this.options),n))}},{key:"forkString",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.fromString(t,r,Vr(Vr({},this.options),n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(r=(0,N.default)(E().mark((function e(){var t,r=arguments;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},this.start(Vr({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),e.next=4,this.ready();case 4:this.stop();case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.documentElement,r=this.screen,n=this.options;r.start(t,Vr(Vr({enableRedraw:!0},n),e))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(e,t,r)}}],[{key:"from",value:(t=(0,N.default)(E().mark((function t(r,n){var o,s,i,a=arguments;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=a.length>2&&void 0!==a[2]?a[2]:{},s=new jt(o),t.next=4,s.parse(n);case 4:return i=t.sent,t.abrupt("return",new e(r,i,o));case 6:case"end":return t.stop()}}),t)}))),function(e,r){return t.apply(this,arguments)})},{key:"fromString",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new jt(n),s=o.parseFromString(r);return new e(t,s,n)}}]),e}(),Gr=Object.freeze({__proto__:null,offscreen:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(e,t){return new OffscreenCanvas(e,t)},createImage:function(e){return(0,N.default)(E().mark((function t(){var r,n,o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e);case 2:return r=t.sent,t.next=5,r.blob();case 5:return n=t.sent,t.next=8,createImageBitmap(n);case 8:return o=t.sent,t.abrupt("return",o);case 10:case"end":return t.stop()}}),t)})))()}};return"undefined"==typeof DOMParser&&void 0!==t||ge()(r,"DOMParser"),r},node:function(e){var t=e.DOMParser,r=e.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:e.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}});t.default=qr},"./node_modules/core-js-pure/es/array/from.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.string.iterator.js"),r("./node_modules/core-js-pure/modules/es.array.from.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Array.from},"./node_modules/core-js-pure/es/array/is-array.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.is-array.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Array.isArray},"./node_modules/core-js-pure/es/array/virtual/concat.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.concat.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").concat},"./node_modules/core-js-pure/es/array/virtual/every.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.every.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").every},"./node_modules/core-js-pure/es/array/virtual/fill.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.fill.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").fill},"./node_modules/core-js-pure/es/array/virtual/filter.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.filter.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").filter},"./node_modules/core-js-pure/es/array/virtual/for-each.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.for-each.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").forEach},"./node_modules/core-js-pure/es/array/virtual/includes.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.includes.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").includes},"./node_modules/core-js-pure/es/array/virtual/index-of.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.index-of.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").indexOf},"./node_modules/core-js-pure/es/array/virtual/map.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.map.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").map},"./node_modules/core-js-pure/es/array/virtual/reduce.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.reduce.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").reduce},"./node_modules/core-js-pure/es/array/virtual/reverse.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.reverse.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").reverse},"./node_modules/core-js-pure/es/array/virtual/slice.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.slice.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").slice},"./node_modules/core-js-pure/es/array/virtual/some.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.some.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").some},"./node_modules/core-js-pure/es/array/virtual/values.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.iterator.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Array").values},"./node_modules/core-js-pure/es/date/now.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.date.now.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Date.now},"./node_modules/core-js-pure/es/function/virtual/bind.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.function.bind.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("Function").bind},"./node_modules/core-js-pure/es/instance/bind.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/function/virtual/bind.js"),o=Function.prototype;e.exports=function(e){var t=e.bind;return e===o||e instanceof Function&&t===o.bind?n:t}},"./node_modules/core-js-pure/es/instance/concat.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/concat.js"),o=Array.prototype;e.exports=function(e){var t=e.concat;return e===o||e instanceof Array&&t===o.concat?n:t}},"./node_modules/core-js-pure/es/instance/every.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/every.js"),o=Array.prototype;e.exports=function(e){var t=e.every;return e===o||e instanceof Array&&t===o.every?n:t}},"./node_modules/core-js-pure/es/instance/fill.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/fill.js"),o=Array.prototype;e.exports=function(e){var t=e.fill;return e===o||e instanceof Array&&t===o.fill?n:t}},"./node_modules/core-js-pure/es/instance/filter.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/filter.js"),o=Array.prototype;e.exports=function(e){var t=e.filter;return e===o||e instanceof Array&&t===o.filter?n:t}},"./node_modules/core-js-pure/es/instance/includes.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/includes.js"),o=r("./node_modules/core-js-pure/es/string/virtual/includes.js"),s=Array.prototype,i=String.prototype;e.exports=function(e){var t=e.includes;return e===s||e instanceof Array&&t===s.includes?n:"string"==typeof e||e===i||e instanceof String&&t===i.includes?o:t}},"./node_modules/core-js-pure/es/instance/index-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/index-of.js"),o=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===o||e instanceof Array&&t===o.indexOf?n:t}},"./node_modules/core-js-pure/es/instance/map.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/map.js"),o=Array.prototype;e.exports=function(e){var t=e.map;return e===o||e instanceof Array&&t===o.map?n:t}},"./node_modules/core-js-pure/es/instance/reduce.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/reduce.js"),o=Array.prototype;e.exports=function(e){var t=e.reduce;return e===o||e instanceof Array&&t===o.reduce?n:t}},"./node_modules/core-js-pure/es/instance/reverse.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/reverse.js"),o=Array.prototype;e.exports=function(e){var t=e.reverse;return e===o||e instanceof Array&&t===o.reverse?n:t}},"./node_modules/core-js-pure/es/instance/slice.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/slice.js"),o=Array.prototype;e.exports=function(e){var t=e.slice;return e===o||e instanceof Array&&t===o.slice?n:t}},"./node_modules/core-js-pure/es/instance/some.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/some.js"),o=Array.prototype;e.exports=function(e){var t=e.some;return e===o||e instanceof Array&&t===o.some?n:t}},"./node_modules/core-js-pure/es/instance/starts-with.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/string/virtual/starts-with.js"),o=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===o||e instanceof String&&t===o.startsWith?n:t}},"./node_modules/core-js-pure/es/instance/trim.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/string/virtual/trim.js"),o=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===o||e instanceof String&&t===o.trim?n:t}},"./node_modules/core-js-pure/es/map/index.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.map.js"),r("./node_modules/core-js-pure/modules/es.object.to-string.js"),r("./node_modules/core-js-pure/modules/es.string.iterator.js"),r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Map},"./node_modules/core-js-pure/es/object/create.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.create.js");var n=r("./node_modules/core-js-pure/internals/path.js").Object;e.exports=function(e,t){return n.create(e,t)}},"./node_modules/core-js-pure/es/object/define-properties.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.define-properties.js");var n=r("./node_modules/core-js-pure/internals/path.js").Object,o=e.exports=function(e,t){return n.defineProperties(e,t)};n.defineProperties.sham&&(o.sham=!0)},"./node_modules/core-js-pure/es/object/define-property.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.define-property.js");var n=r("./node_modules/core-js-pure/internals/path.js").Object,o=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(o.sham=!0)},"./node_modules/core-js-pure/es/object/get-own-property-descriptor.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.get-own-property-descriptor.js");var n=r("./node_modules/core-js-pure/internals/path.js").Object,o=e.exports=function(e,t){return n.getOwnPropertyDescriptor(e,t)};n.getOwnPropertyDescriptor.sham&&(o.sham=!0)},"./node_modules/core-js-pure/es/object/get-own-property-descriptors.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.get-own-property-descriptors.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Object.getOwnPropertyDescriptors},"./node_modules/core-js-pure/es/object/get-own-property-symbols.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.symbol.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Object.getOwnPropertySymbols},"./node_modules/core-js-pure/es/object/get-prototype-of.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.get-prototype-of.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Object.getPrototypeOf},"./node_modules/core-js-pure/es/object/keys.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.keys.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Object.keys},"./node_modules/core-js-pure/es/object/set-prototype-of.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.object.set-prototype-of.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Object.setPrototypeOf},"./node_modules/core-js-pure/es/parse-float.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.parse-float.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.parseFloat},"./node_modules/core-js-pure/es/parse-int.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.parse-int.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.parseInt},"./node_modules/core-js-pure/es/promise/index.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.aggregate-error.js"),r("./node_modules/core-js-pure/modules/es.object.to-string.js"),r("./node_modules/core-js-pure/modules/es.promise.js"),r("./node_modules/core-js-pure/modules/es.promise.all-settled.js"),r("./node_modules/core-js-pure/modules/es.promise.any.js"),r("./node_modules/core-js-pure/modules/es.promise.finally.js"),r("./node_modules/core-js-pure/modules/es.string.iterator.js"),r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Promise},"./node_modules/core-js-pure/es/reflect/apply.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.reflect.apply.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Reflect.apply},"./node_modules/core-js-pure/es/reflect/construct.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.reflect.construct.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Reflect.construct},"./node_modules/core-js-pure/es/reflect/delete-property.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.reflect.delete-property.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Reflect.deleteProperty},"./node_modules/core-js-pure/es/reflect/get-prototype-of.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.reflect.get-prototype-of.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Reflect.getPrototypeOf},"./node_modules/core-js-pure/es/reflect/get.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.reflect.get.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Reflect.get},"./node_modules/core-js-pure/es/string/virtual/includes.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.string.includes.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("String").includes},"./node_modules/core-js-pure/es/string/virtual/starts-with.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.string.starts-with.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("String").startsWith},"./node_modules/core-js-pure/es/string/virtual/trim.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.string.trim.js");var n=r("./node_modules/core-js-pure/internals/entry-virtual.js");e.exports=n("String").trim},"./node_modules/core-js-pure/es/symbol/index.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.concat.js"),r("./node_modules/core-js-pure/modules/es.object.to-string.js"),r("./node_modules/core-js-pure/modules/es.symbol.js"),r("./node_modules/core-js-pure/modules/es.symbol.async-iterator.js"),r("./node_modules/core-js-pure/modules/es.symbol.description.js"),r("./node_modules/core-js-pure/modules/es.symbol.has-instance.js"),r("./node_modules/core-js-pure/modules/es.symbol.is-concat-spreadable.js"),r("./node_modules/core-js-pure/modules/es.symbol.iterator.js"),r("./node_modules/core-js-pure/modules/es.symbol.match.js"),r("./node_modules/core-js-pure/modules/es.symbol.match-all.js"),r("./node_modules/core-js-pure/modules/es.symbol.replace.js"),r("./node_modules/core-js-pure/modules/es.symbol.search.js"),r("./node_modules/core-js-pure/modules/es.symbol.species.js"),r("./node_modules/core-js-pure/modules/es.symbol.split.js"),r("./node_modules/core-js-pure/modules/es.symbol.to-primitive.js"),r("./node_modules/core-js-pure/modules/es.symbol.to-string-tag.js"),r("./node_modules/core-js-pure/modules/es.symbol.unscopables.js"),r("./node_modules/core-js-pure/modules/es.json.to-string-tag.js"),r("./node_modules/core-js-pure/modules/es.math.to-string-tag.js"),r("./node_modules/core-js-pure/modules/es.reflect.to-string-tag.js");var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=n.Symbol},"./node_modules/core-js-pure/es/symbol/iterator.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.symbol.iterator.js"),r("./node_modules/core-js-pure/modules/es.string.iterator.js"),r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js");var n=r("./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js");e.exports=n.f("iterator")},"./node_modules/core-js-pure/features/array/from.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/from.js");e.exports=n},"./node_modules/core-js-pure/features/array/is-array.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/is-array.js");e.exports=n},"./node_modules/core-js-pure/features/get-iterator-method.js":function(e,t,r){r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js"),r("./node_modules/core-js-pure/modules/es.string.iterator.js");var n=r("./node_modules/core-js-pure/internals/get-iterator-method.js");e.exports=n},"./node_modules/core-js-pure/features/get-iterator.js":function(e,t,r){r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js"),r("./node_modules/core-js-pure/modules/es.string.iterator.js");var n=r("./node_modules/core-js-pure/internals/get-iterator.js");e.exports=n},"./node_modules/core-js-pure/features/instance/slice.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/slice.js");e.exports=n},"./node_modules/core-js-pure/features/object/create.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/create.js");e.exports=n},"./node_modules/core-js-pure/features/object/define-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/define-property.js");e.exports=n},"./node_modules/core-js-pure/features/object/get-own-property-descriptor.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/get-own-property-descriptor.js");e.exports=n},"./node_modules/core-js-pure/features/object/get-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/get-prototype-of.js");e.exports=n},"./node_modules/core-js-pure/features/object/set-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/set-prototype-of.js");e.exports=n},"./node_modules/core-js-pure/features/promise/index.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/promise/index.js");r("./node_modules/core-js-pure/modules/esnext.aggregate-error.js"),r("./node_modules/core-js-pure/modules/esnext.promise.all-settled.js"),r("./node_modules/core-js-pure/modules/esnext.promise.try.js"),r("./node_modules/core-js-pure/modules/esnext.promise.any.js"),e.exports=n},"./node_modules/core-js-pure/features/reflect/get.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/reflect/get.js");e.exports=n},"./node_modules/core-js-pure/features/symbol/index.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/symbol/index.js");r("./node_modules/core-js-pure/modules/esnext.symbol.async-dispose.js"),r("./node_modules/core-js-pure/modules/esnext.symbol.dispose.js"),r("./node_modules/core-js-pure/modules/esnext.symbol.matcher.js"),r("./node_modules/core-js-pure/modules/esnext.symbol.metadata.js"),r("./node_modules/core-js-pure/modules/esnext.symbol.observable.js"),r("./node_modules/core-js-pure/modules/esnext.symbol.pattern-match.js"),r("./node_modules/core-js-pure/modules/esnext.symbol.replace-all.js"),e.exports=n},"./node_modules/core-js-pure/features/symbol/iterator.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/symbol/iterator.js");e.exports=n},"./node_modules/core-js-pure/internals/a-function.js":function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"./node_modules/core-js-pure/internals/a-possible-prototype.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-object.js");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"./node_modules/core-js-pure/internals/add-to-unscopables.js":function(e){e.exports=function(){}},"./node_modules/core-js-pure/internals/an-instance.js":function(e){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},"./node_modules/core-js-pure/internals/an-object.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-object.js");e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},"./node_modules/core-js-pure/internals/array-fill.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/to-object.js"),o=r("./node_modules/core-js-pure/internals/to-absolute-index.js"),s=r("./node_modules/core-js-pure/internals/to-length.js");e.exports=function(e){for(var t=n(this),r=s(t.length),i=arguments.length,a=o(i>1?arguments[1]:void 0,r),A=i>2?arguments[2]:void 0,u=void 0===A?r:o(A,r);u>a;)t[a++]=e;return t}},"./node_modules/core-js-pure/internals/array-for-each.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/array-iteration.js").forEach,o=r("./node_modules/core-js-pure/internals/array-method-is-strict.js")("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js-pure/internals/array-from.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/function-bind-context.js"),o=r("./node_modules/core-js-pure/internals/to-object.js"),s=r("./node_modules/core-js-pure/internals/call-with-safe-iteration-closing.js"),i=r("./node_modules/core-js-pure/internals/is-array-iterator-method.js"),a=r("./node_modules/core-js-pure/internals/to-length.js"),A=r("./node_modules/core-js-pure/internals/create-property.js"),u=r("./node_modules/core-js-pure/internals/get-iterator-method.js");e.exports=function(e){var t,r,c,l,d,f,h=o(e),p="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,v=u(h),w=0;if(y&&(g=n(g,m>2?arguments[2]:void 0,2)),null==v||p==Array&&i(v))for(r=new p(t=a(h.length));t>w;w++)f=y?g(h[w],w):h[w],A(r,w,f);else for(d=(l=v.call(h)).next,r=new p;!(c=d.call(l)).done;w++)f=y?s(l,g,[c.value,w],!0):c.value,A(r,w,f);return r.length=w,r}},"./node_modules/core-js-pure/internals/array-includes.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),o=r("./node_modules/core-js-pure/internals/to-length.js"),s=r("./node_modules/core-js-pure/internals/to-absolute-index.js"),i=function(e){return function(t,r,i){var a,A=n(t),u=o(A.length),c=s(i,u);if(e&&r!=r){for(;u>c;)if((a=A[c++])!=a)return!0}else for(;u>c;c++)if((e||c in A)&&A[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"./node_modules/core-js-pure/internals/array-iteration.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/function-bind-context.js"),o=r("./node_modules/core-js-pure/internals/indexed-object.js"),s=r("./node_modules/core-js-pure/internals/to-object.js"),i=r("./node_modules/core-js-pure/internals/to-length.js"),a=r("./node_modules/core-js-pure/internals/array-species-create.js"),A=[].push,u=function(e){var t=1==e,r=2==e,u=3==e,c=4==e,l=6==e,d=7==e,f=5==e||l;return function(h,p,m,g){for(var y,v,w=s(h),b=o(w),B=n(p,m,3),j=i(b.length),_=0,C=g||a,x=t?C(h,j):r||d?C(h,0):void 0;j>_;_++)if((f||_ in b)&&(v=B(y=b[_],_,w),e))if(t)x[_]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:A.call(x,y)}else switch(e){case 4:return!1;case 7:A.call(x,y)}return l?-1:u||c?c:x}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterOut:u(7)}},"./node_modules/core-js-pure/internals/array-method-has-species-support.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js"),o=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),s=r("./node_modules/core-js-pure/internals/engine-v8-version.js"),i=o("species");e.exports=function(e){return s>=51||!n((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"./node_modules/core-js-pure/internals/array-method-is-strict.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/fails.js");e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},"./node_modules/core-js-pure/internals/array-reduce.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/a-function.js"),o=r("./node_modules/core-js-pure/internals/to-object.js"),s=r("./node_modules/core-js-pure/internals/indexed-object.js"),i=r("./node_modules/core-js-pure/internals/to-length.js"),a=function(e){return function(t,r,a,A){n(r);var u=o(t),c=s(u),l=i(u.length),d=e?l-1:0,f=e?-1:1;if(a<2)for(;;){if(d in c){A=c[d],d+=f;break}if(d+=f,e?d<0:l<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:l>d;d+=f)d in c&&(A=r(A,c[d],d,u));return A}};e.exports={left:a(!1),right:a(!0)}},"./node_modules/core-js-pure/internals/array-species-create.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-object.js"),o=r("./node_modules/core-js-pure/internals/is-array.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[s])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},"./node_modules/core-js-pure/internals/call-with-safe-iteration-closing.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js"),o=r("./node_modules/core-js-pure/internals/iterator-close.js");e.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){throw o(e),t}}},"./node_modules/core-js-pure/internals/check-correctness-of-iteration.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("iterator"),o=!1;try{var s=0,i={next:function(){return{done:!!s++}},return:function(){o=!0}};i[n]=function(){return this},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var s={};s[n]=function(){return{next:function(){return{done:r=!0}}}},e(s)}catch(e){}return r}},"./node_modules/core-js-pure/internals/classof-raw.js":function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"./node_modules/core-js-pure/internals/classof.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-string-tag-support.js"),o=r("./node_modules/core-js-pure/internals/classof-raw.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?r:i?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},"./node_modules/core-js-pure/internals/collection-strong.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/object-define-property.js").f,o=r("./node_modules/core-js-pure/internals/object-create.js"),s=r("./node_modules/core-js-pure/internals/redefine-all.js"),i=r("./node_modules/core-js-pure/internals/function-bind-context.js"),a=r("./node_modules/core-js-pure/internals/an-instance.js"),A=r("./node_modules/core-js-pure/internals/iterate.js"),u=r("./node_modules/core-js-pure/internals/define-iterator.js"),c=r("./node_modules/core-js-pure/internals/set-species.js"),l=r("./node_modules/core-js-pure/internals/descriptors.js"),d=r("./node_modules/core-js-pure/internals/internal-metadata.js").fastKey,f=r("./node_modules/core-js-pure/internals/internal-state.js"),h=f.set,p=f.getterFor;e.exports={getConstructor:function(e,t,r,u){var c=e((function(e,n){a(e,c,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),l||(e.size=0),null!=n&&A(n,e[u],{that:e,AS_ENTRIES:r})})),f=p(t),m=function(e,t,r){var n,o,s=f(e),i=g(e,t);return i?i.value=r:(s.last=i={index:o=d(t,!0),key:t,value:r,previous:n=s.last,next:void 0,removed:!1},s.first||(s.first=i),n&&(n.next=i),l?s.size++:e.size++,"F"!==o&&(s.index[o]=i)),e},g=function(e,t){var r,n=f(e),o=d(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return s(c.prototype,{clear:function(){for(var e=f(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,l?e.size=0:this.size=0},delete:function(e){var t=this,r=f(t),n=g(t,e);if(n){var o=n.next,s=n.previous;delete r.index[n.index],n.removed=!0,s&&(s.next=o),o&&(o.previous=s),r.first==n&&(r.first=o),r.last==n&&(r.last=s),l?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=f(this),n=i(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),s(c.prototype,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),l&&n(c.prototype,"size",{get:function(){return f(this).size}}),c},setStrong:function(e,t,r){var n=t+" Iterator",o=p(t),s=p(n);u(e,t,(function(e,t){h(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=s(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),c(t)}}},"./node_modules/core-js-pure/internals/collection.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/global.js"),s=r("./node_modules/core-js-pure/internals/internal-metadata.js"),i=r("./node_modules/core-js-pure/internals/fails.js"),a=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),A=r("./node_modules/core-js-pure/internals/iterate.js"),u=r("./node_modules/core-js-pure/internals/an-instance.js"),c=r("./node_modules/core-js-pure/internals/is-object.js"),l=r("./node_modules/core-js-pure/internals/set-to-string-tag.js"),d=r("./node_modules/core-js-pure/internals/object-define-property.js").f,f=r("./node_modules/core-js-pure/internals/array-iteration.js").forEach,h=r("./node_modules/core-js-pure/internals/descriptors.js"),p=r("./node_modules/core-js-pure/internals/internal-state.js"),m=p.set,g=p.getterFor;e.exports=function(e,t,r){var p,y=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),w=y?"set":"add",b=o[e],B=b&&b.prototype,j={};if(h&&"function"==typeof b&&(v||B.forEach&&!i((function(){(new b).entries().next()})))){p=t((function(t,r){m(u(t,p,e),{type:e,collection:new b}),null!=r&&A(r,t[w],{that:t,AS_ENTRIES:y})}));var _=g(e);f(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in B)||v&&"clear"==e||a(p.prototype,e,(function(r,n){var o=_(this).collection;if(!t&&v&&!c(r))return"get"==e&&void 0;var s=o[e](0===r?0:r,n);return t?this:s}))})),v||d(p.prototype,"size",{configurable:!0,get:function(){return _(this).collection.size}})}else p=r.getConstructor(t,e,y,w),s.REQUIRED=!0;return l(p,e,!1,!0),j[e]=p,n({global:!0,forced:!0},j),v||r.setStrong(p,e,y),p}},"./node_modules/core-js-pure/internals/correct-is-regexp-logic.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},"./node_modules/core-js-pure/internals/correct-prototype-getter.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"./node_modules/core-js-pure/internals/create-iterator-constructor.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/iterators-core.js").IteratorPrototype,o=r("./node_modules/core-js-pure/internals/object-create.js"),s=r("./node_modules/core-js-pure/internals/create-property-descriptor.js"),i=r("./node_modules/core-js-pure/internals/set-to-string-tag.js"),a=r("./node_modules/core-js-pure/internals/iterators.js"),A=function(){return this};e.exports=function(e,t,r){var u=t+" Iterator";return e.prototype=o(n,{next:s(1,r)}),i(e,u,!1,!0),a[u]=A,e}},"./node_modules/core-js-pure/internals/create-non-enumerable-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/descriptors.js"),o=r("./node_modules/core-js-pure/internals/object-define-property.js"),s=r("./node_modules/core-js-pure/internals/create-property-descriptor.js");e.exports=n?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},"./node_modules/core-js-pure/internals/create-property-descriptor.js":function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js-pure/internals/create-property.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/to-primitive.js"),o=r("./node_modules/core-js-pure/internals/object-define-property.js"),s=r("./node_modules/core-js-pure/internals/create-property-descriptor.js");e.exports=function(e,t,r){var i=n(t);i in e?o.f(e,i,s(0,r)):e[i]=r}},"./node_modules/core-js-pure/internals/define-iterator.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/create-iterator-constructor.js"),s=r("./node_modules/core-js-pure/internals/object-get-prototype-of.js"),i=r("./node_modules/core-js-pure/internals/object-set-prototype-of.js"),a=r("./node_modules/core-js-pure/internals/set-to-string-tag.js"),A=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),u=r("./node_modules/core-js-pure/internals/redefine.js"),c=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),l=r("./node_modules/core-js-pure/internals/is-pure.js"),d=r("./node_modules/core-js-pure/internals/iterators.js"),f=r("./node_modules/core-js-pure/internals/iterators-core.js"),h=f.IteratorPrototype,p=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),g="keys",y="values",v="entries",w=function(){return this};e.exports=function(e,t,r,c,f,b,B){o(r,t,c);var j,_,C,x=function(e){if(e===f&&U)return U;if(!p&&e in Q)return Q[e];switch(e){case g:case y:case v:return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",N=!1,Q=e.prototype,F=Q[m]||Q["@@iterator"]||f&&Q[f],U=!p&&F||x(f),S="Array"==t&&Q.entries||F;if(S&&(j=s(S.call(new e)),h!==Object.prototype&&j.next&&(l||s(j)===h||(i?i(j,h):"function"!=typeof j[m]&&A(j,m,w)),a(j,E,!0,!0),l&&(d[E]=w))),f==y&&F&&F.name!==y&&(N=!0,U=function(){return F.call(this)}),l&&!B||Q[m]===U||A(Q,m,U),d[t]=U,f)if(_={values:x(y),keys:b?U:x(g),entries:x(v)},B)for(C in _)(p||N||!(C in Q))&&u(Q,C,_[C]);else n({target:t,proto:!0,forced:p||N},_);return _}},"./node_modules/core-js-pure/internals/define-well-known-symbol.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/path.js"),o=r("./node_modules/core-js-pure/internals/has.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js"),i=r("./node_modules/core-js-pure/internals/object-define-property.js").f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||i(t,e,{value:s.f(e)})}},"./node_modules/core-js-pure/internals/descriptors.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/core-js-pure/internals/document-create-element.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/is-object.js"),s=n.document,i=o(s)&&o(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"./node_modules/core-js-pure/internals/dom-iterables.js":function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js-pure/internals/engine-is-browser.js":function(e){e.exports="object"==typeof window},"./node_modules/core-js-pure/internals/engine-is-ios.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/engine-user-agent.js");e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},"./node_modules/core-js-pure/internals/engine-is-node.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/classof-raw.js"),o=r("./node_modules/core-js-pure/internals/global.js");e.exports="process"==n(o.process)},"./node_modules/core-js-pure/internals/engine-is-webos-webkit.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/engine-user-agent.js");e.exports=/web0s(?!.*chrome)/i.test(n)},"./node_modules/core-js-pure/internals/engine-user-agent.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/get-built-in.js");e.exports=n("navigator","userAgent")||""},"./node_modules/core-js-pure/internals/engine-v8-version.js":function(e,t,r){var n,o,s=r("./node_modules/core-js-pure/internals/global.js"),i=r("./node_modules/core-js-pure/internals/engine-user-agent.js"),a=s.process,A=a&&a.versions,u=A&&A.v8;u?o=(n=u.split("."))[0]<4?1:n[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},"./node_modules/core-js-pure/internals/entry-virtual.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/path.js");e.exports=function(e){return n[e+"Prototype"]}},"./node_modules/core-js-pure/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js-pure/internals/export.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js").f,s=r("./node_modules/core-js-pure/internals/is-forced.js"),i=r("./node_modules/core-js-pure/internals/path.js"),a=r("./node_modules/core-js-pure/internals/function-bind-context.js"),A=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),u=r("./node_modules/core-js-pure/internals/has.js"),c=function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,l,d,f,h,p,m,g,y=e.target,v=e.global,w=e.stat,b=e.proto,B=v?n:w?n[y]:(n[y]||{}).prototype,j=v?i:i[y]||(i[y]={}),_=j.prototype;for(d in t)r=!s(v?d:y+(w?".":"#")+d,e.forced)&&B&&u(B,d),h=j[d],r&&(p=e.noTargetGet?(g=o(B,d))&&g.value:B[d]),f=r&&p?p:t[d],r&&typeof h==typeof f||(m=e.bind&&r?a(f,n):e.wrap&&r?c(f):b&&"function"==typeof f?a(Function.call,f):f,(e.sham||f&&f.sham||h&&h.sham)&&A(m,"sham",!0),j[d]=m,b&&(u(i,l=y+"Prototype")||A(i,l,{}),i[l][d]=f,e.real&&_&&!_[d]&&A(_,d,f)))}},"./node_modules/core-js-pure/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js-pure/internals/freezing.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js");e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},"./node_modules/core-js-pure/internals/function-bind-context.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/a-function.js");e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js-pure/internals/function-bind.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/a-function.js"),o=r("./node_modules/core-js-pure/internals/is-object.js"),s=[].slice,i={},a=function(e,t,r){if(!(t in i)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";i[t]=Function("C,a","return new C("+n.join(",")+")")}return i[t](e,r)};e.exports=Function.bind||function(e){var t=n(this),r=s.call(arguments,1),i=function(){var n=r.concat(s.call(arguments));return this instanceof i?a(t,n.length,n):t.apply(e,n)};return o(t.prototype)&&(i.prototype=t.prototype),i}},"./node_modules/core-js-pure/internals/get-built-in.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/path.js"),o=r("./node_modules/core-js-pure/internals/global.js"),s=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?s(n[e])||s(o[e]):n[e]&&n[e][t]||o[e]&&o[e][t]}},"./node_modules/core-js-pure/internals/get-iterator-method.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/classof.js"),o=r("./node_modules/core-js-pure/internals/iterators.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(null!=e)return e[s]||e["@@iterator"]||o[n(e)]}},"./node_modules/core-js-pure/internals/get-iterator.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js"),o=r("./node_modules/core-js-pure/internals/get-iterator-method.js");e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return n(t.call(e))}},"./node_modules/core-js-pure/internals/global.js":function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},"./node_modules/core-js-pure/internals/has.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-object.js"),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},"./node_modules/core-js-pure/internals/hidden-keys.js":function(e){e.exports={}},"./node_modules/core-js-pure/internals/host-report-errors.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js");e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},"./node_modules/core-js-pure/internals/html.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/get-built-in.js");e.exports=n("document","documentElement")},"./node_modules/core-js-pure/internals/ie8-dom-define.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/descriptors.js"),o=r("./node_modules/core-js-pure/internals/fails.js"),s=r("./node_modules/core-js-pure/internals/document-create-element.js");e.exports=!n&&!o((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js-pure/internals/indexed-object.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js"),o=r("./node_modules/core-js-pure/internals/classof-raw.js"),s="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s.call(e,""):Object(e)}:Object},"./node_modules/core-js-pure/internals/inspect-source.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/shared-store.js"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},"./node_modules/core-js-pure/internals/internal-metadata.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/hidden-keys.js"),o=r("./node_modules/core-js-pure/internals/is-object.js"),s=r("./node_modules/core-js-pure/internals/has.js"),i=r("./node_modules/core-js-pure/internals/object-define-property.js").f,a=r("./node_modules/core-js-pure/internals/uid.js"),A=r("./node_modules/core-js-pure/internals/freezing.js"),u=a("meta"),c=0,l=Object.isExtensible||function(){return!0},d=function(e){i(e,u,{value:{objectID:"O"+c++,weakData:{}}})},f=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,u)){if(!l(e))return"F";if(!t)return"E";d(e)}return e[u].objectID},getWeakData:function(e,t){if(!s(e,u)){if(!l(e))return!0;if(!t)return!1;d(e)}return e[u].weakData},onFreeze:function(e){return A&&f.REQUIRED&&l(e)&&!s(e,u)&&d(e),e}};n[u]=!0},"./node_modules/core-js-pure/internals/internal-state.js":function(e,t,r){var n,o,s,i=r("./node_modules/core-js-pure/internals/native-weak-map.js"),a=r("./node_modules/core-js-pure/internals/global.js"),A=r("./node_modules/core-js-pure/internals/is-object.js"),u=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),c=r("./node_modules/core-js-pure/internals/has.js"),l=r("./node_modules/core-js-pure/internals/shared-store.js"),d=r("./node_modules/core-js-pure/internals/shared-key.js"),f=r("./node_modules/core-js-pure/internals/hidden-keys.js"),h="Object already initialized",p=a.WeakMap;if(i||l.state){var m=l.state||(l.state=new p),g=m.get,y=m.has,v=m.set;n=function(e,t){if(y.call(m,e))throw new TypeError(h);return t.facade=e,v.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},s=function(e){return y.call(m,e)}}else{var w=d("state");f[w]=!0,n=function(e,t){if(c(e,w))throw new TypeError(h);return t.facade=e,u(e,w,t),t},o=function(e){return c(e,w)?e[w]:{}},s=function(e){return c(e,w)}}e.exports={set:n,get:o,has:s,enforce:function(e){return s(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!A(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},"./node_modules/core-js-pure/internals/is-array-iterator-method.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),o=r("./node_modules/core-js-pure/internals/iterators.js"),s=n("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[s]===e)}},"./node_modules/core-js-pure/internals/is-array.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"==n(e)}},"./node_modules/core-js-pure/internals/is-forced.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js"),o=/#|\.prototype\./,s=function(e,t){var r=a[i(e)];return r==u||r!=A&&("function"==typeof t?n(t):!!t)},i=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=s.data={},A=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},"./node_modules/core-js-pure/internals/is-object.js":function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js-pure/internals/is-pure.js":function(e){e.exports=!0},"./node_modules/core-js-pure/internals/is-regexp.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-object.js"),o=r("./node_modules/core-js-pure/internals/classof-raw.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==o(e))}},"./node_modules/core-js-pure/internals/iterate.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js"),o=r("./node_modules/core-js-pure/internals/is-array-iterator-method.js"),s=r("./node_modules/core-js-pure/internals/to-length.js"),i=r("./node_modules/core-js-pure/internals/function-bind-context.js"),a=r("./node_modules/core-js-pure/internals/get-iterator-method.js"),A=r("./node_modules/core-js-pure/internals/iterator-close.js"),u=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var c,l,d,f,h,p,m,g=r&&r.that,y=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),b=i(t,g,1+y+w),B=function(e){return c&&A(c),new u(!0,e)},j=function(e){return y?(n(e),w?b(e[0],e[1],B):b(e[0],e[1])):w?b(e,B):b(e)};if(v)c=e;else{if("function"!=typeof(l=a(e)))throw TypeError("Target is not iterable");if(o(l)){for(d=0,f=s(e.length);f>d;d++)if((h=j(e[d]))&&h instanceof u)return h;return new u(!1)}c=l.call(e)}for(p=c.next;!(m=p.call(c)).done;){try{h=j(m.value)}catch(e){throw A(c),e}if("object"==typeof h&&h&&h instanceof u)return h}return new u(!1)}},"./node_modules/core-js-pure/internals/iterator-close.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js");e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},"./node_modules/core-js-pure/internals/iterators-core.js":function(e,t,r){"use strict";var n,o,s,i=r("./node_modules/core-js-pure/internals/fails.js"),a=r("./node_modules/core-js-pure/internals/object-get-prototype-of.js"),A=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),u=r("./node_modules/core-js-pure/internals/has.js"),c=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),l=r("./node_modules/core-js-pure/internals/is-pure.js"),d=c("iterator"),f=!1;[].keys&&("next"in(s=[].keys())?(o=a(a(s)))!==Object.prototype&&(n=o):f=!0);var h=null==n||i((function(){var e={};return n[d].call(e)!==e}));h&&(n={}),l&&!h||u(n,d)||A(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},"./node_modules/core-js-pure/internals/iterators.js":function(e){e.exports={}},"./node_modules/core-js-pure/internals/microtask.js":function(e,t,r){var n,o,s,i,a,A,u,c,l=r("./node_modules/core-js-pure/internals/global.js"),d=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js").f,f=r("./node_modules/core-js-pure/internals/task.js").set,h=r("./node_modules/core-js-pure/internals/engine-is-ios.js"),p=r("./node_modules/core-js-pure/internals/engine-is-webos-webkit.js"),m=r("./node_modules/core-js-pure/internals/engine-is-node.js"),g=l.MutationObserver||l.WebKitMutationObserver,y=l.document,v=l.process,w=l.Promise,b=d(l,"queueMicrotask"),B=b&&b.value;B||(n=function(){var e,t;for(m&&(e=v.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?i():s=void 0,e}}s=void 0,e&&e.enter()},h||m||p||!g||!y?w&&w.resolve?((u=w.resolve(void 0)).constructor=w,c=u.then,i=function(){c.call(u,n)}):i=m?function(){v.nextTick(n)}:function(){f.call(l,n)}:(a=!0,A=y.createTextNode(""),new g(n).observe(A,{characterData:!0}),i=function(){A.data=a=!a})),e.exports=B||function(e){var t={fn:e,next:void 0};s&&(s.next=t),o||(o=t,i()),s=t}},"./node_modules/core-js-pure/internals/native-promise-constructor.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js");e.exports=n.Promise},"./node_modules/core-js-pure/internals/native-symbol.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/engine-v8-version.js"),o=r("./node_modules/core-js-pure/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"./node_modules/core-js-pure/internals/native-weak-map.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/inspect-source.js"),s=n.WeakMap;e.exports="function"==typeof s&&/native code/.test(o(s))},"./node_modules/core-js-pure/internals/new-promise-capability.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/a-function.js"),o=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new o(e)}},"./node_modules/core-js-pure/internals/not-a-regexp.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-regexp.js");e.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},"./node_modules/core-js-pure/internals/number-parse-float.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/string-trim.js").trim,s=r("./node_modules/core-js-pure/internals/whitespaces.js"),i=n.parseFloat,a=1/i(s+"-0")!=-1/0;e.exports=a?function(e){var t=o(String(e)),r=i(t);return 0===r&&"-"==t.charAt(0)?-0:r}:i},"./node_modules/core-js-pure/internals/number-parse-int.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/string-trim.js").trim,s=r("./node_modules/core-js-pure/internals/whitespaces.js"),i=n.parseInt,a=/^[+-]?0[Xx]/,A=8!==i(s+"08")||22!==i(s+"0x16");e.exports=A?function(e,t){var r=o(String(e));return i(r,t>>>0||(a.test(r)?16:10))}:i},"./node_modules/core-js-pure/internals/object-create.js":function(e,t,r){var n,o=r("./node_modules/core-js-pure/internals/an-object.js"),s=r("./node_modules/core-js-pure/internals/object-define-properties.js"),i=r("./node_modules/core-js-pure/internals/enum-bug-keys.js"),a=r("./node_modules/core-js-pure/internals/hidden-keys.js"),A=r("./node_modules/core-js-pure/internals/html.js"),u=r("./node_modules/core-js-pure/internals/document-create-element.js"),c=r("./node_modules/core-js-pure/internals/shared-key.js")("IE_PROTO"),l=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;f=n?function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=u("iframe")).style.display="none",A.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F);for(var r=i.length;r--;)delete f.prototype[i[r]];return f()};a[c]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(l.prototype=o(e),r=new l,l.prototype=null,r[c]=e):r=f(),void 0===t?r:s(r,t)}},"./node_modules/core-js-pure/internals/object-define-properties.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/descriptors.js"),o=r("./node_modules/core-js-pure/internals/object-define-property.js"),s=r("./node_modules/core-js-pure/internals/an-object.js"),i=r("./node_modules/core-js-pure/internals/object-keys.js");e.exports=n?Object.defineProperties:function(e,t){s(e);for(var r,n=i(t),a=n.length,A=0;a>A;)o.f(e,r=n[A++],t[r]);return e}},"./node_modules/core-js-pure/internals/object-define-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/descriptors.js"),o=r("./node_modules/core-js-pure/internals/ie8-dom-define.js"),s=r("./node_modules/core-js-pure/internals/an-object.js"),i=r("./node_modules/core-js-pure/internals/to-primitive.js"),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(s(e),t=i(t,!0),s(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/descriptors.js"),o=r("./node_modules/core-js-pure/internals/object-property-is-enumerable.js"),s=r("./node_modules/core-js-pure/internals/create-property-descriptor.js"),i=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),a=r("./node_modules/core-js-pure/internals/to-primitive.js"),A=r("./node_modules/core-js-pure/internals/has.js"),u=r("./node_modules/core-js-pure/internals/ie8-dom-define.js"),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(A(e,t))return s(!o.f.call(e,t),e[t])}},"./node_modules/core-js-pure/internals/object-get-own-property-names-external.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),o=r("./node_modules/core-js-pure/internals/object-get-own-property-names.js").f,s={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==s.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(n(e))}},"./node_modules/core-js-pure/internals/object-get-own-property-names.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/object-keys-internal.js"),o=r("./node_modules/core-js-pure/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"./node_modules/core-js-pure/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js-pure/internals/object-get-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/has.js"),o=r("./node_modules/core-js-pure/internals/to-object.js"),s=r("./node_modules/core-js-pure/internals/shared-key.js"),i=r("./node_modules/core-js-pure/internals/correct-prototype-getter.js"),a=s("IE_PROTO"),A=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?A:null}},"./node_modules/core-js-pure/internals/object-keys-internal.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/has.js"),o=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),s=r("./node_modules/core-js-pure/internals/array-includes.js").indexOf,i=r("./node_modules/core-js-pure/internals/hidden-keys.js");e.exports=function(e,t){var r,a=o(e),A=0,u=[];for(r in a)!n(i,r)&&n(a,r)&&u.push(r);for(;t.length>A;)n(a,r=t[A++])&&(~s(u,r)||u.push(r));return u}},"./node_modules/core-js-pure/internals/object-keys.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/object-keys-internal.js"),o=r("./node_modules/core-js-pure/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,o)}},"./node_modules/core-js-pure/internals/object-property-is-enumerable.js":function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},"./node_modules/core-js-pure/internals/object-set-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js"),o=r("./node_modules/core-js-pure/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return n(r),o(s),t?e.call(r,s):r.__proto__=s,r}}():void 0)},"./node_modules/core-js-pure/internals/object-to-string.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/to-string-tag-support.js"),o=r("./node_modules/core-js-pure/internals/classof.js");e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},"./node_modules/core-js-pure/internals/own-keys.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/get-built-in.js"),o=r("./node_modules/core-js-pure/internals/object-get-own-property-names.js"),s=r("./node_modules/core-js-pure/internals/object-get-own-property-symbols.js"),i=r("./node_modules/core-js-pure/internals/an-object.js");e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=s.f;return r?t.concat(r(e)):t}},"./node_modules/core-js-pure/internals/path.js":function(e){e.exports={}},"./node_modules/core-js-pure/internals/perform.js":function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},"./node_modules/core-js-pure/internals/promise-resolve.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js"),o=r("./node_modules/core-js-pure/internals/is-object.js"),s=r("./node_modules/core-js-pure/internals/new-promise-capability.js");e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=s.f(e);return(0,r.resolve)(t),r.promise}},"./node_modules/core-js-pure/internals/redefine-all.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/redefine.js");e.exports=function(e,t,r){for(var o in t)r&&r.unsafe&&e[o]?e[o]=t[o]:n(e,o,t[o],r);return e}},"./node_modules/core-js-pure/internals/redefine.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js");e.exports=function(e,t,r,o){o&&o.enumerable?e[t]=r:n(e,t,r)}},"./node_modules/core-js-pure/internals/require-object-coercible.js":function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js-pure/internals/set-global.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js");e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},"./node_modules/core-js-pure/internals/set-species.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/get-built-in.js"),o=r("./node_modules/core-js-pure/internals/object-define-property.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),i=r("./node_modules/core-js-pure/internals/descriptors.js"),a=s("species");e.exports=function(e){var t=n(e),r=o.f;i&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},"./node_modules/core-js-pure/internals/set-to-string-tag.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-string-tag-support.js"),o=r("./node_modules/core-js-pure/internals/object-define-property.js").f,s=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),i=r("./node_modules/core-js-pure/internals/has.js"),a=r("./node_modules/core-js-pure/internals/object-to-string.js"),A=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,r,u){if(e){var c=r?e:e.prototype;i(c,A)||o(c,A,{configurable:!0,value:t}),u&&!n&&s(c,"toString",a)}}},"./node_modules/core-js-pure/internals/shared-key.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/shared.js"),o=r("./node_modules/core-js-pure/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},"./node_modules/core-js-pure/internals/shared-store.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/set-global.js"),s="__core-js_shared__",i=n[s]||o(s,{});e.exports=i},"./node_modules/core-js-pure/internals/shared.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-pure.js"),o=r("./node_modules/core-js-pure/internals/shared-store.js");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js-pure/internals/species-constructor.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/an-object.js"),o=r("./node_modules/core-js-pure/internals/a-function.js"),s=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("species");e.exports=function(e,t){var r,i=n(e).constructor;return void 0===i||null==(r=n(i)[s])?t:o(r)}},"./node_modules/core-js-pure/internals/string-multibyte.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-integer.js"),o=r("./node_modules/core-js-pure/internals/require-object-coercible.js"),s=function(e){return function(t,r){var s,i,a=String(o(t)),A=n(r),u=a.length;return A<0||A>=u?e?"":void 0:(s=a.charCodeAt(A))<55296||s>56319||A+1===u||(i=a.charCodeAt(A+1))<56320||i>57343?e?a.charAt(A):s:e?a.slice(A,A+2):i-56320+(s-55296<<10)+65536}};e.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js-pure/internals/string-trim-forced.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/fails.js"),o=r("./node_modules/core-js-pure/internals/whitespaces.js");e.exports=function(e){return n((function(){return!!o[e]()||"​\85᠎"!="​\85᠎"[e]()||o[e].name!==e}))}},"./node_modules/core-js-pure/internals/string-trim.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/require-object-coercible.js"),o="["+r("./node_modules/core-js-pure/internals/whitespaces.js")+"]",s=RegExp("^"+o+o+"*"),i=RegExp(o+o+"*$"),a=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(s,"")),2&e&&(r=r.replace(i,"")),r}};e.exports={start:a(1),end:a(2),trim:a(3)}},"./node_modules/core-js-pure/internals/task.js":function(e,t,r){var n,o,s,i=r("./node_modules/core-js-pure/internals/global.js"),a=r("./node_modules/core-js-pure/internals/fails.js"),A=r("./node_modules/core-js-pure/internals/function-bind-context.js"),u=r("./node_modules/core-js-pure/internals/html.js"),c=r("./node_modules/core-js-pure/internals/document-create-element.js"),l=r("./node_modules/core-js-pure/internals/engine-is-ios.js"),d=r("./node_modules/core-js-pure/internals/engine-is-node.js"),f=i.location,h=i.setImmediate,p=i.clearImmediate,m=i.process,g=i.MessageChannel,y=i.Dispatch,v=0,w={},b=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},B=function(e){return function(){b(e)}},j=function(e){b(e.data)},_=function(e){i.postMessage(e+"",f.protocol+"//"+f.host)};h&&p||(h=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(v),v},p=function(e){delete w[e]},d?n=function(e){m.nextTick(B(e))}:y&&y.now?n=function(e){y.now(B(e))}:g&&!l?(s=(o=new g).port2,o.port1.onmessage=j,n=A(s.postMessage,s,1)):i.addEventListener&&"function"==typeof postMessage&&!i.importScripts&&f&&"file:"!==f.protocol&&!a(_)?(n=_,i.addEventListener("message",j,!1)):n="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),b(e)}}:function(e){setTimeout(B(e),0)}),e.exports={set:h,clear:p}},"./node_modules/core-js-pure/internals/to-absolute-index.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-integer.js"),o=Math.max,s=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):s(r,t)}},"./node_modules/core-js-pure/internals/to-indexed-object.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/indexed-object.js"),o=r("./node_modules/core-js-pure/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"./node_modules/core-js-pure/internals/to-integer.js":function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},"./node_modules/core-js-pure/internals/to-length.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/to-integer.js"),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},"./node_modules/core-js-pure/internals/to-object.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/require-object-coercible.js");e.exports=function(e){return Object(n(e))}},"./node_modules/core-js-pure/internals/to-primitive.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/is-object.js");e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js-pure/internals/to-string-tag-support.js":function(e,t,r){var n={};n[r("./node_modules/core-js-pure/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(n)},"./node_modules/core-js-pure/internals/uid.js":function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},"./node_modules/core-js-pure/internals/use-symbol-as-uid.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/native-symbol.js");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/well-known-symbol.js");t.f=n},"./node_modules/core-js-pure/internals/well-known-symbol.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js"),o=r("./node_modules/core-js-pure/internals/shared.js"),s=r("./node_modules/core-js-pure/internals/has.js"),i=r("./node_modules/core-js-pure/internals/uid.js"),a=r("./node_modules/core-js-pure/internals/native-symbol.js"),A=r("./node_modules/core-js-pure/internals/use-symbol-as-uid.js"),u=o("wks"),c=n.Symbol,l=A?c:c&&c.withoutSetter||i;e.exports=function(e){return s(u,e)&&(a||"string"==typeof u[e])||(a&&s(c,e)?u[e]=c[e]:u[e]=l("Symbol."+e)),u[e]}},"./node_modules/core-js-pure/internals/whitespaces.js":function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"./node_modules/core-js-pure/modules/es.aggregate-error.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/object-get-prototype-of.js"),s=r("./node_modules/core-js-pure/internals/object-set-prototype-of.js"),i=r("./node_modules/core-js-pure/internals/object-create.js"),a=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),A=r("./node_modules/core-js-pure/internals/create-property-descriptor.js"),u=r("./node_modules/core-js-pure/internals/iterate.js"),c=function(e,t){var r=this;if(!(r instanceof c))return new c(e,t);s&&(r=s(new Error(void 0),o(r))),void 0!==t&&a(r,"message",String(t));var n=[];return u(e,n.push,{that:n}),a(r,"errors",n),r};c.prototype=i(Error.prototype,{constructor:A(5,c),message:A(5,""),name:A(5,"AggregateError")}),n({global:!0},{AggregateError:c})},"./node_modules/core-js-pure/modules/es.array.concat.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/fails.js"),s=r("./node_modules/core-js-pure/internals/is-array.js"),i=r("./node_modules/core-js-pure/internals/is-object.js"),a=r("./node_modules/core-js-pure/internals/to-object.js"),A=r("./node_modules/core-js-pure/internals/to-length.js"),u=r("./node_modules/core-js-pure/internals/create-property.js"),c=r("./node_modules/core-js-pure/internals/array-species-create.js"),l=r("./node_modules/core-js-pure/internals/array-method-has-species-support.js"),d=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),f=r("./node_modules/core-js-pure/internals/engine-v8-version.js"),h=d("isConcatSpreadable"),p=9007199254740991,m="Maximum allowed index exceeded",g=f>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=l("concat"),v=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:s(e)};n({target:"Array",proto:!0,forced:!g||!y},{concat:function(e){var t,r,n,o,s,i=a(this),l=c(i,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(v(s=-1===t?i:arguments[t])){if(d+(o=A(s.length))>p)throw TypeError(m);for(r=0;r<o;r++,d++)r in s&&u(l,d,s[r])}else{if(d>=p)throw TypeError(m);u(l,d++,s)}return l.length=d,l}})},"./node_modules/core-js-pure/modules/es.array.every.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-iteration.js").every;n({target:"Array",proto:!0,forced:!r("./node_modules/core-js-pure/internals/array-method-is-strict.js")("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.array.fill.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-fill.js"),s=r("./node_modules/core-js-pure/internals/add-to-unscopables.js");n({target:"Array",proto:!0},{fill:o}),s("fill")},"./node_modules/core-js-pure/modules/es.array.filter.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-iteration.js").filter;n({target:"Array",proto:!0,forced:!r("./node_modules/core-js-pure/internals/array-method-has-species-support.js")("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.array.for-each.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-for-each.js");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"./node_modules/core-js-pure/modules/es.array.from.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-from.js");n({target:"Array",stat:!0,forced:!r("./node_modules/core-js-pure/internals/check-correctness-of-iteration.js")((function(e){Array.from(e)}))},{from:o})},"./node_modules/core-js-pure/modules/es.array.includes.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-includes.js").includes,s=r("./node_modules/core-js-pure/internals/add-to-unscopables.js");n({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},"./node_modules/core-js-pure/modules/es.array.index-of.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-includes.js").indexOf,s=r("./node_modules/core-js-pure/internals/array-method-is-strict.js"),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0,A=s("indexOf");n({target:"Array",proto:!0,forced:a||!A},{indexOf:function(e){return a?i.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.array.is-array.js":function(e,t,r){r("./node_modules/core-js-pure/internals/export.js")({target:"Array",stat:!0},{isArray:r("./node_modules/core-js-pure/internals/is-array.js")})},"./node_modules/core-js-pure/modules/es.array.iterator.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),o=r("./node_modules/core-js-pure/internals/add-to-unscopables.js"),s=r("./node_modules/core-js-pure/internals/iterators.js"),i=r("./node_modules/core-js-pure/internals/internal-state.js"),a=r("./node_modules/core-js-pure/internals/define-iterator.js"),A="Array Iterator",u=i.set,c=i.getterFor(A);e.exports=a(Array,"Array",(function(e,t){u(this,{type:A,target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),s.Arguments=s.Array,o("keys"),o("values"),o("entries")},"./node_modules/core-js-pure/modules/es.array.map.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-iteration.js").map;n({target:"Array",proto:!0,forced:!r("./node_modules/core-js-pure/internals/array-method-has-species-support.js")("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.array.reduce.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-reduce.js").left,s=r("./node_modules/core-js-pure/internals/array-method-is-strict.js"),i=r("./node_modules/core-js-pure/internals/engine-v8-version.js"),a=r("./node_modules/core-js-pure/internals/engine-is-node.js");n({target:"Array",proto:!0,forced:!s("reduce")||!a&&i>79&&i<83},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.array.reverse.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/is-array.js"),s=[].reverse,i=[1,2];n({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s.call(this)}})},"./node_modules/core-js-pure/modules/es.array.slice.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/is-object.js"),s=r("./node_modules/core-js-pure/internals/is-array.js"),i=r("./node_modules/core-js-pure/internals/to-absolute-index.js"),a=r("./node_modules/core-js-pure/internals/to-length.js"),A=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),u=r("./node_modules/core-js-pure/internals/create-property.js"),c=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),l=r("./node_modules/core-js-pure/internals/array-method-has-species-support.js")("slice"),d=c("species"),f=[].slice,h=Math.max;n({target:"Array",proto:!0,forced:!l},{slice:function(e,t){var r,n,c,l=A(this),p=a(l.length),m=i(e,p),g=i(void 0===t?p:t,p);if(s(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!s(r.prototype)?o(r)&&null===(r=r[d])&&(r=void 0):r=void 0,r===Array||void 0===r))return f.call(l,m,g);for(n=new(void 0===r?Array:r)(h(g-m,0)),c=0;m<g;m++,c++)m in l&&u(n,c,l[m]);return n.length=c,n}})},"./node_modules/core-js-pure/modules/es.array.some.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/array-iteration.js").some;n({target:"Array",proto:!0,forced:!r("./node_modules/core-js-pure/internals/array-method-is-strict.js")("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.date.now.js":function(e,t,r){r("./node_modules/core-js-pure/internals/export.js")({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},"./node_modules/core-js-pure/modules/es.function.bind.js":function(e,t,r){r("./node_modules/core-js-pure/internals/export.js")({target:"Function",proto:!0},{bind:r("./node_modules/core-js-pure/internals/function-bind.js")})},"./node_modules/core-js-pure/modules/es.json.to-string-tag.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/global.js");r("./node_modules/core-js-pure/internals/set-to-string-tag.js")(n.JSON,"JSON",!0)},"./node_modules/core-js-pure/modules/es.map.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/collection.js"),o=r("./node_modules/core-js-pure/internals/collection-strong.js");e.exports=n("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},"./node_modules/core-js-pure/modules/es.math.to-string-tag.js":function(){},"./node_modules/core-js-pure/modules/es.object.create.js":function(e,t,r){r("./node_modules/core-js-pure/internals/export.js")({target:"Object",stat:!0,sham:!r("./node_modules/core-js-pure/internals/descriptors.js")},{create:r("./node_modules/core-js-pure/internals/object-create.js")})},"./node_modules/core-js-pure/modules/es.object.define-properties.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/descriptors.js");n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:r("./node_modules/core-js-pure/internals/object-define-properties.js")})},"./node_modules/core-js-pure/modules/es.object.define-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/descriptors.js");n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r("./node_modules/core-js-pure/internals/object-define-property.js").f})},"./node_modules/core-js-pure/modules/es.object.get-own-property-descriptor.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/fails.js"),s=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),i=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js").f,a=r("./node_modules/core-js-pure/internals/descriptors.js"),A=o((function(){i(1)}));n({target:"Object",stat:!0,forced:!a||A,sham:!a},{getOwnPropertyDescriptor:function(e,t){return i(s(e),t)}})},"./node_modules/core-js-pure/modules/es.object.get-own-property-descriptors.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/descriptors.js"),s=r("./node_modules/core-js-pure/internals/own-keys.js"),i=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),a=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js"),A=r("./node_modules/core-js-pure/internals/create-property.js");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=i(e),o=a.f,u=s(n),c={},l=0;u.length>l;)void 0!==(r=o(n,t=u[l++]))&&A(c,t,r);return c}})},"./node_modules/core-js-pure/modules/es.object.get-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/fails.js"),s=r("./node_modules/core-js-pure/internals/to-object.js"),i=r("./node_modules/core-js-pure/internals/object-get-prototype-of.js"),a=r("./node_modules/core-js-pure/internals/correct-prototype-getter.js");n({target:"Object",stat:!0,forced:o((function(){i(1)})),sham:!a},{getPrototypeOf:function(e){return i(s(e))}})},"./node_modules/core-js-pure/modules/es.object.keys.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/to-object.js"),s=r("./node_modules/core-js-pure/internals/object-keys.js");n({target:"Object",stat:!0,forced:r("./node_modules/core-js-pure/internals/fails.js")((function(){s(1)}))},{keys:function(e){return s(o(e))}})},"./node_modules/core-js-pure/modules/es.object.set-prototype-of.js":function(e,t,r){r("./node_modules/core-js-pure/internals/export.js")({target:"Object",stat:!0},{setPrototypeOf:r("./node_modules/core-js-pure/internals/object-set-prototype-of.js")})},"./node_modules/core-js-pure/modules/es.object.to-string.js":function(){},"./node_modules/core-js-pure/modules/es.parse-float.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/number-parse-float.js");n({global:!0,forced:parseFloat!=o},{parseFloat:o})},"./node_modules/core-js-pure/modules/es.parse-int.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/number-parse-int.js");n({global:!0,forced:parseInt!=o},{parseInt:o})},"./node_modules/core-js-pure/modules/es.promise.all-settled.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/a-function.js"),s=r("./node_modules/core-js-pure/internals/new-promise-capability.js"),i=r("./node_modules/core-js-pure/internals/perform.js"),a=r("./node_modules/core-js-pure/internals/iterate.js");n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=s.f(t),n=r.resolve,A=r.reject,u=i((function(){var r=o(t.resolve),s=[],i=0,A=1;a(e,(function(e){var o=i++,a=!1;s.push(void 0),A++,r.call(t,e).then((function(e){a||(a=!0,s[o]={status:"fulfilled",value:e},--A||n(s))}),(function(e){a||(a=!0,s[o]={status:"rejected",reason:e},--A||n(s))}))})),--A||n(s)}));return u.error&&A(u.value),r.promise}})},"./node_modules/core-js-pure/modules/es.promise.any.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/a-function.js"),s=r("./node_modules/core-js-pure/internals/get-built-in.js"),i=r("./node_modules/core-js-pure/internals/new-promise-capability.js"),a=r("./node_modules/core-js-pure/internals/perform.js"),A=r("./node_modules/core-js-pure/internals/iterate.js"),u="No one promise resolved";n({target:"Promise",stat:!0},{any:function(e){var t=this,r=i.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=o(t.resolve),i=[],a=0,l=1,d=!1;A(e,(function(e){var o=a++,A=!1;i.push(void 0),l++,r.call(t,e).then((function(e){A||d||(d=!0,n(e))}),(function(e){A||d||(A=!0,i[o]=e,--l||c(new(s("AggregateError"))(i,u)))}))})),--l||c(new(s("AggregateError"))(i,u))}));return l.error&&c(l.value),r.promise}})},"./node_modules/core-js-pure/modules/es.promise.finally.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/is-pure.js"),s=r("./node_modules/core-js-pure/internals/native-promise-constructor.js"),i=r("./node_modules/core-js-pure/internals/fails.js"),a=r("./node_modules/core-js-pure/internals/get-built-in.js"),A=r("./node_modules/core-js-pure/internals/species-constructor.js"),u=r("./node_modules/core-js-pure/internals/promise-resolve.js"),c=r("./node_modules/core-js-pure/internals/redefine.js");if(n({target:"Promise",proto:!0,real:!0,forced:!!s&&i((function(){s.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=A(this,a("Promise")),r="function"==typeof e;return this.then(r?function(r){return u(t,e()).then((function(){return r}))}:e,r?function(r){return u(t,e()).then((function(){throw r}))}:e)}}),!o&&"function"==typeof s){var l=a("Promise").prototype.finally;s.prototype.finally!==l&&c(s.prototype,"finally",l,{unsafe:!0})}},"./node_modules/core-js-pure/modules/es.promise.js":function(e,t,r){"use strict";var n,o,s,i,a=r("./node_modules/core-js-pure/internals/export.js"),A=r("./node_modules/core-js-pure/internals/is-pure.js"),u=r("./node_modules/core-js-pure/internals/global.js"),c=r("./node_modules/core-js-pure/internals/get-built-in.js"),l=r("./node_modules/core-js-pure/internals/native-promise-constructor.js"),d=r("./node_modules/core-js-pure/internals/redefine.js"),f=r("./node_modules/core-js-pure/internals/redefine-all.js"),h=r("./node_modules/core-js-pure/internals/object-set-prototype-of.js"),p=r("./node_modules/core-js-pure/internals/set-to-string-tag.js"),m=r("./node_modules/core-js-pure/internals/set-species.js"),g=r("./node_modules/core-js-pure/internals/is-object.js"),y=r("./node_modules/core-js-pure/internals/a-function.js"),v=r("./node_modules/core-js-pure/internals/an-instance.js"),w=r("./node_modules/core-js-pure/internals/inspect-source.js"),b=r("./node_modules/core-js-pure/internals/iterate.js"),B=r("./node_modules/core-js-pure/internals/check-correctness-of-iteration.js"),j=r("./node_modules/core-js-pure/internals/species-constructor.js"),_=r("./node_modules/core-js-pure/internals/task.js").set,C=r("./node_modules/core-js-pure/internals/microtask.js"),x=r("./node_modules/core-js-pure/internals/promise-resolve.js"),E=r("./node_modules/core-js-pure/internals/host-report-errors.js"),N=r("./node_modules/core-js-pure/internals/new-promise-capability.js"),Q=r("./node_modules/core-js-pure/internals/perform.js"),F=r("./node_modules/core-js-pure/internals/internal-state.js"),U=r("./node_modules/core-js-pure/internals/is-forced.js"),S=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),L=r("./node_modules/core-js-pure/internals/engine-is-browser.js"),T=r("./node_modules/core-js-pure/internals/engine-is-node.js"),H=r("./node_modules/core-js-pure/internals/engine-v8-version.js"),I=S("species"),P="Promise",O=F.get,k=F.set,R=F.getterFor(P),M=l&&l.prototype,D=l,K=M,z=u.TypeError,V=u.document,q=u.process,G=N.f,X=G,W=!!(V&&V.createEvent&&u.dispatchEvent),J="function"==typeof PromiseRejectionEvent,Y="unhandledrejection",Z=!1,$=U(P,(function(){var e=w(D),t=e!==String(D);if(!t&&66===H)return!0;if(A&&!K.finally)return!0;if(H>=51&&/native code/.test(e))return!1;var r=new D((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[I]=n,!(Z=r.then((function(){}))instanceof n)||!t&&L&&!J})),ee=$||!B((function(e){D.all(e).catch((function(){}))})),te=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;C((function(){for(var n=e.value,o=1==e.state,s=0;r.length>s;){var i,a,A,u=r[s++],c=o?u.ok:u.fail,l=u.resolve,d=u.reject,f=u.domain;try{c?(o||(2===e.rejection&&ie(e),e.rejection=1),!0===c?i=n:(f&&f.enter(),i=c(n),f&&(f.exit(),A=!0)),i===u.promise?d(z("Promise-chain cycle")):(a=te(i))?a.call(i,l,d):l(i)):d(n)}catch(e){f&&!A&&f.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&oe(e)}))}},ne=function(e,t,r){var n,o;W?((n=V.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!J&&(o=u["on"+e])?o(n):e===Y&&E("Unhandled promise rejection",r)},oe=function(e){_.call(u,(function(){var t,r=e.facade,n=e.value;if(se(e)&&(t=Q((function(){T?q.emit("unhandledRejection",n,r):ne(Y,r,n)})),e.rejection=T||se(e)?2:1,t.error))throw t.value}))},se=function(e){return 1!==e.rejection&&!e.parent},ie=function(e){_.call(u,(function(){var t=e.facade;T?q.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)}))},ae=function(e,t,r){return function(n){e(t,n,r)}},Ae=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,re(e,!0))},ue=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw z("Promise can't be resolved itself");var n=te(t);n?C((function(){var r={done:!1};try{n.call(t,ae(ue,r,e),ae(Ae,r,e))}catch(t){Ae(r,t,e)}})):(e.value=t,e.state=1,re(e,!1))}catch(t){Ae({done:!1},t,e)}}};if($&&(K=(D=function(e){v(this,D,P),y(e),n.call(this);var t=O(this);try{e(ae(ue,t),ae(Ae,t))}catch(e){Ae(t,e)}}).prototype,(n=function(e){k(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(K,{then:function(e,t){var r=R(this),n=G(j(this,D));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?q.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&re(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n,t=O(e);this.promise=e,this.resolve=ae(ue,t),this.reject=ae(Ae,t)},N.f=G=function(e){return e===D||e===s?new o(e):X(e)},!A&&"function"==typeof l&&M!==Object.prototype)){i=M.then,Z||(d(M,"then",(function(e,t){var r=this;return new D((function(e,t){i.call(r,e,t)})).then(e,t)}),{unsafe:!0}),d(M,"catch",K.catch,{unsafe:!0}));try{delete M.constructor}catch(e){}h&&h(M,K)}a({global:!0,wrap:!0,forced:$},{Promise:D}),p(D,P,!1,!0),m(P),s=c(P),a({target:P,stat:!0,forced:$},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),a({target:P,stat:!0,forced:A||$},{resolve:function(e){return x(A&&this===s?D:this,e)}}),a({target:P,stat:!0,forced:ee},{all:function(e){var t=this,r=G(t),n=r.resolve,o=r.reject,s=Q((function(){var r=y(t.resolve),s=[],i=0,a=1;b(e,(function(e){var A=i++,u=!1;s.push(void 0),a++,r.call(t,e).then((function(e){u||(u=!0,s[A]=e,--a||n(s))}),o)})),--a||n(s)}));return s.error&&o(s.value),r.promise},race:function(e){var t=this,r=G(t),n=r.reject,o=Q((function(){var o=y(t.resolve);b(e,(function(e){o.call(t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},"./node_modules/core-js-pure/modules/es.reflect.apply.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/get-built-in.js"),s=r("./node_modules/core-js-pure/internals/a-function.js"),i=r("./node_modules/core-js-pure/internals/an-object.js"),a=r("./node_modules/core-js-pure/internals/fails.js"),A=o("Reflect","apply"),u=Function.apply;n({target:"Reflect",stat:!0,forced:!a((function(){A((function(){}))}))},{apply:function(e,t,r){return s(e),i(r),A?A(e,t,r):u.call(e,t,r)}})},"./node_modules/core-js-pure/modules/es.reflect.construct.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/get-built-in.js"),s=r("./node_modules/core-js-pure/internals/a-function.js"),i=r("./node_modules/core-js-pure/internals/an-object.js"),a=r("./node_modules/core-js-pure/internals/is-object.js"),A=r("./node_modules/core-js-pure/internals/object-create.js"),u=r("./node_modules/core-js-pure/internals/function-bind.js"),c=r("./node_modules/core-js-pure/internals/fails.js"),l=o("Reflect","construct"),d=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),f=!c((function(){l((function(){}))})),h=d||f;n({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){s(e),i(t);var r=arguments.length<3?e:s(arguments[2]);if(f&&!d)return l(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(u.apply(e,n))}var o=r.prototype,c=A(a(o)?o:Object.prototype),h=Function.apply.call(e,c,t);return a(h)?h:c}})},"./node_modules/core-js-pure/modules/es.reflect.delete-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/an-object.js"),s=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js").f;n({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var r=s(o(e),t);return!(r&&!r.configurable)&&delete e[t]}})},"./node_modules/core-js-pure/modules/es.reflect.get-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/an-object.js"),s=r("./node_modules/core-js-pure/internals/object-get-prototype-of.js");n({target:"Reflect",stat:!0,sham:!r("./node_modules/core-js-pure/internals/correct-prototype-getter.js")},{getPrototypeOf:function(e){return s(o(e))}})},"./node_modules/core-js-pure/modules/es.reflect.get.js":function(e,t,r){var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/is-object.js"),s=r("./node_modules/core-js-pure/internals/an-object.js"),i=r("./node_modules/core-js-pure/internals/has.js"),a=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js"),A=r("./node_modules/core-js-pure/internals/object-get-prototype-of.js");n({target:"Reflect",stat:!0},{get:function e(t,r){var n,u,c=arguments.length<3?t:arguments[2];return s(t)===c?t[r]:(n=a.f(t,r))?i(n,"value")?n.value:void 0===n.get?void 0:n.get.call(c):o(u=A(t))?e(u,r,c):void 0}})},"./node_modules/core-js-pure/modules/es.reflect.to-string-tag.js":function(){},"./node_modules/core-js-pure/modules/es.string.includes.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/not-a-regexp.js"),s=r("./node_modules/core-js-pure/internals/require-object-coercible.js");n({target:"String",proto:!0,forced:!r("./node_modules/core-js-pure/internals/correct-is-regexp-logic.js")("includes")},{includes:function(e){return!!~String(s(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js-pure/modules/es.string.iterator.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/string-multibyte.js").charAt,o=r("./node_modules/core-js-pure/internals/internal-state.js"),s=r("./node_modules/core-js-pure/internals/define-iterator.js"),i="String Iterator",a=o.set,A=o.getterFor(i);s(String,"String",(function(e){a(this,{type:i,string:String(e),index:0})}),(function(){var e,t=A(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},"./node_modules/core-js-pure/modules/es.string.starts-with.js":function(e,t,r){"use strict";var n,o=r("./node_modules/core-js-pure/internals/export.js"),s=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js").f,i=r("./node_modules/core-js-pure/internals/to-length.js"),a=r("./node_modules/core-js-pure/internals/not-a-regexp.js"),A=r("./node_modules/core-js-pure/internals/require-object-coercible.js"),u=r("./node_modules/core-js-pure/internals/correct-is-regexp-logic.js"),c=r("./node_modules/core-js-pure/internals/is-pure.js"),l="".startsWith,d=Math.min,f=u("startsWith");o({target:"String",proto:!0,forced:!(!c&&!f&&(n=s(String.prototype,"startsWith"),n&&!n.writable)||f)},{startsWith:function(e){var t=String(A(this));a(e);var r=i(d(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return l?l.call(t,n,r):t.slice(r,r+n.length)===n}})},"./node_modules/core-js-pure/modules/es.string.trim.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/string-trim.js").trim;n({target:"String",proto:!0,forced:r("./node_modules/core-js-pure/internals/string-trim-forced.js")("trim")},{trim:function(){return o(this)}})},"./node_modules/core-js-pure/modules/es.symbol.async-iterator.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("asyncIterator")},"./node_modules/core-js-pure/modules/es.symbol.description.js":function(){},"./node_modules/core-js-pure/modules/es.symbol.has-instance.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("hasInstance")},"./node_modules/core-js-pure/modules/es.symbol.is-concat-spreadable.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("isConcatSpreadable")},"./node_modules/core-js-pure/modules/es.symbol.iterator.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("iterator")},"./node_modules/core-js-pure/modules/es.symbol.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/global.js"),s=r("./node_modules/core-js-pure/internals/get-built-in.js"),i=r("./node_modules/core-js-pure/internals/is-pure.js"),a=r("./node_modules/core-js-pure/internals/descriptors.js"),A=r("./node_modules/core-js-pure/internals/native-symbol.js"),u=r("./node_modules/core-js-pure/internals/use-symbol-as-uid.js"),c=r("./node_modules/core-js-pure/internals/fails.js"),l=r("./node_modules/core-js-pure/internals/has.js"),d=r("./node_modules/core-js-pure/internals/is-array.js"),f=r("./node_modules/core-js-pure/internals/is-object.js"),h=r("./node_modules/core-js-pure/internals/an-object.js"),p=r("./node_modules/core-js-pure/internals/to-object.js"),m=r("./node_modules/core-js-pure/internals/to-indexed-object.js"),g=r("./node_modules/core-js-pure/internals/to-primitive.js"),y=r("./node_modules/core-js-pure/internals/create-property-descriptor.js"),v=r("./node_modules/core-js-pure/internals/object-create.js"),w=r("./node_modules/core-js-pure/internals/object-keys.js"),b=r("./node_modules/core-js-pure/internals/object-get-own-property-names.js"),B=r("./node_modules/core-js-pure/internals/object-get-own-property-names-external.js"),j=r("./node_modules/core-js-pure/internals/object-get-own-property-symbols.js"),_=r("./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js"),C=r("./node_modules/core-js-pure/internals/object-define-property.js"),x=r("./node_modules/core-js-pure/internals/object-property-is-enumerable.js"),E=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),N=r("./node_modules/core-js-pure/internals/redefine.js"),Q=r("./node_modules/core-js-pure/internals/shared.js"),F=r("./node_modules/core-js-pure/internals/shared-key.js"),U=r("./node_modules/core-js-pure/internals/hidden-keys.js"),S=r("./node_modules/core-js-pure/internals/uid.js"),L=r("./node_modules/core-js-pure/internals/well-known-symbol.js"),T=r("./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js"),H=r("./node_modules/core-js-pure/internals/define-well-known-symbol.js"),I=r("./node_modules/core-js-pure/internals/set-to-string-tag.js"),P=r("./node_modules/core-js-pure/internals/internal-state.js"),O=r("./node_modules/core-js-pure/internals/array-iteration.js").forEach,k=F("hidden"),R="Symbol",M=L("toPrimitive"),D=P.set,K=P.getterFor(R),z=Object.prototype,V=o.Symbol,q=s("JSON","stringify"),G=_.f,X=C.f,W=B.f,J=x.f,Y=Q("symbols"),Z=Q("op-symbols"),$=Q("string-to-symbol-registry"),ee=Q("symbol-to-string-registry"),te=Q("wks"),re=o.QObject,ne=!re||!re.prototype||!re.prototype.findChild,oe=a&&c((function(){return 7!=v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=G(z,t);n&&delete z[t],X(e,t,r),n&&e!==z&&X(z,t,n)}:X,se=function(e,t){var r=Y[e]=v(V.prototype);return D(r,{type:R,tag:e,description:t}),a||(r.description=t),r},ie=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof V},ae=function(e,t,r){e===z&&ae(Z,t,r),h(e);var n=g(t,!0);return h(r),l(Y,n)?(r.enumerable?(l(e,k)&&e[k][n]&&(e[k][n]=!1),r=v(r,{enumerable:y(0,!1)})):(l(e,k)||X(e,k,y(1,{})),e[k][n]=!0),oe(e,n,r)):X(e,n,r)},Ae=function(e,t){h(e);var r=m(t),n=w(r).concat(de(r));return O(n,(function(t){a&&!ue.call(r,t)||ae(e,t,r[t])})),e},ue=function(e){var t=g(e,!0),r=J.call(this,t);return!(this===z&&l(Y,t)&&!l(Z,t))&&(!(r||!l(this,t)||!l(Y,t)||l(this,k)&&this[k][t])||r)},ce=function(e,t){var r=m(e),n=g(t,!0);if(r!==z||!l(Y,n)||l(Z,n)){var o=G(r,n);return!o||!l(Y,n)||l(r,k)&&r[k][n]||(o.enumerable=!0),o}},le=function(e){var t=W(m(e)),r=[];return O(t,(function(e){l(Y,e)||l(U,e)||r.push(e)})),r},de=function(e){var t=e===z,r=W(t?Z:m(e)),n=[];return O(r,(function(e){!l(Y,e)||t&&!l(z,e)||n.push(Y[e])})),n};A||(N((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=S(e),r=function(e){this===z&&r.call(Z,e),l(this,k)&&l(this[k],t)&&(this[k][t]=!1),oe(this,t,y(1,e))};return a&&ne&&oe(z,t,{configurable:!0,set:r}),se(t,e)}).prototype,"toString",(function(){return K(this).tag})),N(V,"withoutSetter",(function(e){return se(S(e),e)})),x.f=ue,C.f=ae,_.f=ce,b.f=B.f=le,j.f=de,T.f=function(e){return se(L(e),e)},a&&(X(V.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),i||N(z,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:V}),O(w(te),(function(e){H(e)})),n({target:R,stat:!0,forced:!A},{for:function(e){var t=String(e);if(l($,t))return $[t];var r=V(t);return $[t]=r,ee[r]=t,r},keyFor:function(e){if(!ie(e))throw TypeError(e+" is not a symbol");if(l(ee,e))return ee[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!A,sham:!a},{create:function(e,t){return void 0===t?v(e):Ae(v(e),t)},defineProperty:ae,defineProperties:Ae,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:le,getOwnPropertySymbols:de}),n({target:"Object",stat:!0,forced:c((function(){j.f(1)}))},{getOwnPropertySymbols:function(e){return j.f(p(e))}}),q&&n({target:"JSON",stat:!0,forced:!A||c((function(){var e=V();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,r){for(var n,o=[e],s=1;arguments.length>s;)o.push(arguments[s++]);if(n=t,(f(t)||void 0!==e)&&!ie(e))return d(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ie(t))return t}),o[1]=t,q.apply(null,o)}}),V.prototype[M]||E(V.prototype,M,V.prototype.valueOf),I(V,R),U[k]=!0},"./node_modules/core-js-pure/modules/es.symbol.match-all.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("matchAll")},"./node_modules/core-js-pure/modules/es.symbol.match.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("match")},"./node_modules/core-js-pure/modules/es.symbol.replace.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("replace")},"./node_modules/core-js-pure/modules/es.symbol.search.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("search")},"./node_modules/core-js-pure/modules/es.symbol.species.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("species")},"./node_modules/core-js-pure/modules/es.symbol.split.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("split")},"./node_modules/core-js-pure/modules/es.symbol.to-primitive.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("toPrimitive")},"./node_modules/core-js-pure/modules/es.symbol.to-string-tag.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("toStringTag")},"./node_modules/core-js-pure/modules/es.symbol.unscopables.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("unscopables")},"./node_modules/core-js-pure/modules/esnext.aggregate-error.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.aggregate-error.js")},"./node_modules/core-js-pure/modules/esnext.promise.all-settled.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.promise.all-settled.js")},"./node_modules/core-js-pure/modules/esnext.promise.any.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.promise.any.js")},"./node_modules/core-js-pure/modules/esnext.promise.try.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js-pure/internals/export.js"),o=r("./node_modules/core-js-pure/internals/new-promise-capability.js"),s=r("./node_modules/core-js-pure/internals/perform.js");n({target:"Promise",stat:!0},{try:function(e){var t=o.f(this),r=s(e);return(r.error?t.reject:t.resolve)(r.value),t.promise}})},"./node_modules/core-js-pure/modules/esnext.symbol.async-dispose.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("asyncDispose")},"./node_modules/core-js-pure/modules/esnext.symbol.dispose.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("dispose")},"./node_modules/core-js-pure/modules/esnext.symbol.matcher.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("matcher")},"./node_modules/core-js-pure/modules/esnext.symbol.metadata.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("metadata")},"./node_modules/core-js-pure/modules/esnext.symbol.observable.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("observable")},"./node_modules/core-js-pure/modules/esnext.symbol.pattern-match.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("patternMatch")},"./node_modules/core-js-pure/modules/esnext.symbol.replace-all.js":function(e,t,r){r("./node_modules/core-js-pure/internals/define-well-known-symbol.js")("replaceAll")},"./node_modules/core-js-pure/modules/web.dom-collections.iterator.js":function(e,t,r){r("./node_modules/core-js-pure/modules/es.array.iterator.js");var n=r("./node_modules/core-js-pure/internals/dom-iterables.js"),o=r("./node_modules/core-js-pure/internals/global.js"),s=r("./node_modules/core-js-pure/internals/classof.js"),i=r("./node_modules/core-js-pure/internals/create-non-enumerable-property.js"),a=r("./node_modules/core-js-pure/internals/iterators.js"),A=r("./node_modules/core-js-pure/internals/well-known-symbol.js")("toStringTag");for(var u in n){var c=o[u],l=c&&c.prototype;l&&s(l)!==A&&i(l,A,u),a[u]=a.Array}},"./node_modules/core-js-pure/stable/array/from.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/from.js");e.exports=n},"./node_modules/core-js-pure/stable/array/is-array.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/is-array.js");e.exports=n},"./node_modules/core-js-pure/stable/array/virtual/for-each.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/for-each.js");e.exports=n},"./node_modules/core-js-pure/stable/array/virtual/values.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/array/virtual/values.js");e.exports=n},"./node_modules/core-js-pure/stable/date/now.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/date/now.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/bind.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/bind.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/concat.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/concat.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/every.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/every.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/fill.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/fill.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/filter.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/filter.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/for-each.js":function(e,t,r){r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js");var n=r("./node_modules/core-js-pure/stable/array/virtual/for-each.js"),o=r("./node_modules/core-js-pure/internals/classof.js"),s=Array.prototype,i={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===s||e instanceof Array&&t===s.forEach||i.hasOwnProperty(o(e))?n:t}},"./node_modules/core-js-pure/stable/instance/includes.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/includes.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/index-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/index-of.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/map.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/map.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/reduce.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/reduce.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/reverse.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/reverse.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/slice.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/slice.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/some.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/some.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/starts-with.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/starts-with.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/trim.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/instance/trim.js");e.exports=n},"./node_modules/core-js-pure/stable/instance/values.js":function(e,t,r){r("./node_modules/core-js-pure/modules/web.dom-collections.iterator.js");var n=r("./node_modules/core-js-pure/stable/array/virtual/values.js"),o=r("./node_modules/core-js-pure/internals/classof.js"),s=Array.prototype,i={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.values;return e===s||e instanceof Array&&t===s.values||i.hasOwnProperty(o(e))?n:t}},"./node_modules/core-js-pure/stable/map/index.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/map/index.js");e.exports=n},"./node_modules/core-js-pure/stable/object/define-properties.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/define-properties.js");e.exports=n},"./node_modules/core-js-pure/stable/object/define-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/define-property.js");e.exports=n},"./node_modules/core-js-pure/stable/object/get-own-property-descriptor.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/get-own-property-descriptor.js");e.exports=n},"./node_modules/core-js-pure/stable/object/get-own-property-descriptors.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/get-own-property-descriptors.js");e.exports=n},"./node_modules/core-js-pure/stable/object/get-own-property-symbols.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/get-own-property-symbols.js");e.exports=n},"./node_modules/core-js-pure/stable/object/keys.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/object/keys.js");e.exports=n},"./node_modules/core-js-pure/stable/parse-float.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/parse-float.js");e.exports=n},"./node_modules/core-js-pure/stable/parse-int.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/parse-int.js");e.exports=n},"./node_modules/core-js-pure/stable/promise/index.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/promise/index.js");e.exports=n},"./node_modules/core-js-pure/stable/reflect/apply.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/reflect/apply.js");e.exports=n},"./node_modules/core-js-pure/stable/reflect/construct.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/reflect/construct.js");e.exports=n},"./node_modules/core-js-pure/stable/reflect/delete-property.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/reflect/delete-property.js");e.exports=n},"./node_modules/core-js-pure/stable/reflect/get-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/reflect/get-prototype-of.js");e.exports=n},"./node_modules/core-js-pure/stable/symbol/index.js":function(e,t,r){var n=r("./node_modules/core-js-pure/es/symbol/index.js");e.exports=n},"./node_modules/core-js/internals/a-function.js":function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"./node_modules/core-js/internals/a-possible-prototype.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-object.js");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"./node_modules/core-js/internals/add-to-unscopables.js":function(e,t,r){var n=r("./node_modules/core-js/internals/well-known-symbol.js"),o=r("./node_modules/core-js/internals/object-create.js"),s=r("./node_modules/core-js/internals/object-define-property.js"),i=n("unscopables"),a=Array.prototype;null==a[i]&&s.f(a,i,{configurable:!0,value:o(null)}),e.exports=function(e){a[i][e]=!0}},"./node_modules/core-js/internals/an-object.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-object.js");e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},"./node_modules/core-js/internals/array-for-each.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/array-iteration.js").forEach,o=r("./node_modules/core-js/internals/array-method-is-strict.js")("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-indexed-object.js"),o=r("./node_modules/core-js/internals/to-length.js"),s=r("./node_modules/core-js/internals/to-absolute-index.js"),i=function(e){return function(t,r,i){var a,A=n(t),u=o(A.length),c=s(i,u);if(e&&r!=r){for(;u>c;)if((a=A[c++])!=a)return!0}else for(;u>c;c++)if((e||c in A)&&A[c]===r)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(e,t,r){var n=r("./node_modules/core-js/internals/function-bind-context.js"),o=r("./node_modules/core-js/internals/indexed-object.js"),s=r("./node_modules/core-js/internals/to-object.js"),i=r("./node_modules/core-js/internals/to-length.js"),a=r("./node_modules/core-js/internals/array-species-create.js"),A=[].push,u=function(e){var t=1==e,r=2==e,u=3==e,c=4==e,l=6==e,d=7==e,f=5==e||l;return function(h,p,m,g){for(var y,v,w=s(h),b=o(w),B=n(p,m,3),j=i(b.length),_=0,C=g||a,x=t?C(h,j):r||d?C(h,0):void 0;j>_;_++)if((f||_ in b)&&(v=B(y=b[_],_,w),e))if(t)x[_]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:A.call(x,y)}else switch(e){case 4:return!1;case 7:A.call(x,y)}return l?-1:u||c?c:x}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(e,t,r){var n=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/well-known-symbol.js"),s=r("./node_modules/core-js/internals/engine-v8-version.js"),i=o("species");e.exports=function(e){return s>=51||!n((function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"./node_modules/core-js/internals/array-method-is-strict.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/fails.js");e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){throw 1},1)}))}},"./node_modules/core-js/internals/array-species-constructor.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-object.js"),o=r("./node_modules/core-js/internals/is-array.js"),s=r("./node_modules/core-js/internals/well-known-symbol.js")("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)?n(t)&&null===(t=t[s])&&(t=void 0):t=void 0),void 0===t?Array:t}},"./node_modules/core-js/internals/array-species-create.js":function(e,t,r){var n=r("./node_modules/core-js/internals/array-species-constructor.js");e.exports=function(e,t){return new(n(e))(0===t?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-string-tag-support.js"),o=r("./node_modules/core-js/internals/classof-raw.js"),s=r("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?r:i?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,t,r){var n=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/own-keys.js"),s=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),i=r("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,t){for(var r=o(t),a=i.f,A=s.f,u=0;u<r.length;u++){var c=r[u];n(e,c)||a(e,c,A(t,c))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(e,t,r){var n=r("./node_modules/core-js/internals/fails.js");e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"./node_modules/core-js/internals/create-html.js":function(e,t,r){var n=r("./node_modules/core-js/internals/require-object-coercible.js"),o=r("./node_modules/core-js/internals/to-string.js"),s=/"/g;e.exports=function(e,t,r,i){var a=o(n(e)),A="<"+t;return""!==r&&(A+=" "+r+'="'+o(i).replace(s,"&quot;")+'"'),A+">"+a+"</"+t+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=r("./node_modules/core-js/internals/object-create.js"),s=r("./node_modules/core-js/internals/create-property-descriptor.js"),i=r("./node_modules/core-js/internals/set-to-string-tag.js"),a=r("./node_modules/core-js/internals/iterators.js"),A=function(){return this};e.exports=function(e,t,r){var u=t+" Iterator";return e.prototype=o(n,{next:s(1,r)}),i(e,u,!1,!0),a[u]=A,e}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(e,t,r){var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),s=r("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=n?function(e,t,r){return o.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/internals/create-property.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/to-property-key.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),s=r("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,t,r){var i=n(t);i in e?o.f(e,i,s(0,r)):e[i]=r}},"./node_modules/core-js/internals/define-iterator.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/create-iterator-constructor.js"),s=r("./node_modules/core-js/internals/object-get-prototype-of.js"),i=r("./node_modules/core-js/internals/object-set-prototype-of.js"),a=r("./node_modules/core-js/internals/set-to-string-tag.js"),A=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),u=r("./node_modules/core-js/internals/redefine.js"),c=r("./node_modules/core-js/internals/well-known-symbol.js"),l=r("./node_modules/core-js/internals/is-pure.js"),d=r("./node_modules/core-js/internals/iterators.js"),f=r("./node_modules/core-js/internals/iterators-core.js"),h=f.IteratorPrototype,p=f.BUGGY_SAFARI_ITERATORS,m=c("iterator"),g="keys",y="values",v="entries",w=function(){return this};e.exports=function(e,t,r,c,f,b,B){o(r,t,c);var j,_,C,x=function(e){if(e===f&&U)return U;if(!p&&e in Q)return Q[e];switch(e){case g:case y:case v:return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",N=!1,Q=e.prototype,F=Q[m]||Q["@@iterator"]||f&&Q[f],U=!p&&F||x(f),S="Array"==t&&Q.entries||F;if(S&&(j=s(S.call(new e)),h!==Object.prototype&&j.next&&(l||s(j)===h||(i?i(j,h):"function"!=typeof j[m]&&A(j,m,w)),a(j,E,!0,!0),l&&(d[E]=w))),f==y&&F&&F.name!==y&&(N=!0,U=function(){return F.call(this)}),l&&!B||Q[m]===U||A(Q,m,U),d[t]=U,f)if(_={values:x(y),keys:b?U:x(g),entries:x(v)},B)for(C in _)(p||N||!(C in Q))&&u(Q,C,_[C]);else n({target:t,proto:!0,forced:p||N},_);return _}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(e,t,r){var n=r("./node_modules/core-js/internals/path.js"),o=r("./node_modules/core-js/internals/has.js"),s=r("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),i=r("./node_modules/core-js/internals/object-define-property.js").f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||i(t,e,{value:s.f(e)})}},"./node_modules/core-js/internals/descriptors.js":function(e,t,r){var n=r("./node_modules/core-js/internals/fails.js");e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"./node_modules/core-js/internals/document-create-element.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/is-object.js"),s=n.document,i=o(s)&&o(s.createElement);e.exports=function(e){return i?s.createElement(e):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(e,t,r){var n=r("./node_modules/core-js/internals/get-built-in.js");e.exports=n("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(e,t,r){var n,o,s=r("./node_modules/core-js/internals/global.js"),i=r("./node_modules/core-js/internals/engine-user-agent.js"),a=s.process,A=s.Deno,u=a&&a.versions||A&&A.version,c=u&&u.v8;c?o=(n=c.split("."))[0]<4?1:n[0]+n[1]:i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},"./node_modules/core-js/internals/enum-bug-keys.js":function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,s=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),i=r("./node_modules/core-js/internals/redefine.js"),a=r("./node_modules/core-js/internals/set-global.js"),A=r("./node_modules/core-js/internals/copy-constructor-properties.js"),u=r("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,t){var r,c,l,d,f,h=e.target,p=e.global,m=e.stat;if(r=p?n:m?n[h]||a(h,{}):(n[h]||{}).prototype)for(c in t){if(d=t[c],l=e.noTargetGet?(f=o(r,c))&&f.value:r[c],!u(p?c:h+(m?".":"#")+c,e.forced)&&void 0!==l){if(typeof d==typeof l)continue;A(d,l)}(e.sham||l&&l.sham)&&s(d,"sham",!0),i(r,c,d,e)}}},"./node_modules/core-js/internals/fails.js":function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(e,t,r){var n=r("./node_modules/core-js/internals/a-function.js");e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},"./node_modules/core-js/internals/global.js":function(e){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-object.js"),o={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return o.call(n(e),t)}},"./node_modules/core-js/internals/hidden-keys.js":function(e){e.exports={}},"./node_modules/core-js/internals/html.js":function(e,t,r){var n=r("./node_modules/core-js/internals/get-built-in.js");e.exports=n("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,t,r){var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/document-create-element.js");e.exports=!n&&!o((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":function(e,t,r){var n=r("./node_modules/core-js/internals/fails.js"),o=r("./node_modules/core-js/internals/classof-raw.js"),s="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s.call(e,""):Object(e)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-object.js"),o=r("./node_modules/core-js/internals/object-set-prototype-of.js");e.exports=function(e,t,r){var s,i;return o&&"function"==typeof(s=t.constructor)&&s!==r&&n(i=s.prototype)&&i!==r.prototype&&o(e,i),e}},"./node_modules/core-js/internals/inspect-source.js":function(e,t,r){var n=r("./node_modules/core-js/internals/shared-store.js"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(e,t,r){var n,o,s,i=r("./node_modules/core-js/internals/native-weak-map.js"),a=r("./node_modules/core-js/internals/global.js"),A=r("./node_modules/core-js/internals/is-object.js"),u=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=r("./node_modules/core-js/internals/has.js"),l=r("./node_modules/core-js/internals/shared-store.js"),d=r("./node_modules/core-js/internals/shared-key.js"),f=r("./node_modules/core-js/internals/hidden-keys.js"),h="Object already initialized",p=a.WeakMap;if(i||l.state){var m=l.state||(l.state=new p),g=m.get,y=m.has,v=m.set;n=function(e,t){if(y.call(m,e))throw new TypeError(h);return t.facade=e,v.call(m,e,t),t},o=function(e){return g.call(m,e)||{}},s=function(e){return y.call(m,e)}}else{var w=d("state");f[w]=!0,n=function(e,t){if(c(e,w))throw new TypeError(h);return t.facade=e,u(e,w,t),t},o=function(e){return c(e,w)?e[w]:{}},s=function(e){return c(e,w)}}e.exports={set:n,get:o,has:s,enforce:function(e){return s(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!A(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},"./node_modules/core-js/internals/is-array.js":function(e,t,r){var n=r("./node_modules/core-js/internals/classof-raw.js");e.exports=Array.isArray||function(e){return"Array"==n(e)}},"./node_modules/core-js/internals/is-forced.js":function(e,t,r){var n=r("./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,s=function(e,t){var r=a[i(e)];return r==u||r!=A&&("function"==typeof t?n(t):!!t)},i=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},a=s.data={},A=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},"./node_modules/core-js/internals/is-object.js":function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js/internals/is-pure.js":function(e){e.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(e,t,r){var n=r("./node_modules/core-js/internals/get-built-in.js"),o=r("./node_modules/core-js/internals/use-symbol-as-uid.js");e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return"function"==typeof t&&Object(e)instanceof t}},"./node_modules/core-js/internals/iterators-core.js":function(e,t,r){"use strict";var n,o,s,i=r("./node_modules/core-js/internals/fails.js"),a=r("./node_modules/core-js/internals/object-get-prototype-of.js"),A=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),u=r("./node_modules/core-js/internals/has.js"),c=r("./node_modules/core-js/internals/well-known-symbol.js"),l=r("./node_modules/core-js/internals/is-pure.js"),d=c("iterator"),f=!1;[].keys&&("next"in(s=[].keys())?(o=a(a(s)))!==Object.prototype&&(n=o):f=!0);var h=null==n||i((function(){var e={};return n[d].call(e)!==e}));h&&(n={}),l&&!h||u(n,d)||A(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},"./node_modules/core-js/internals/iterators.js":function(e){e.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(e,t,r){var n=r("./node_modules/core-js/internals/engine-v8-version.js"),o=r("./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"./node_modules/core-js/internals/native-weak-map.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/inspect-source.js"),s=n.WeakMap;e.exports="function"==typeof s&&/native code/.test(o(s))},"./node_modules/core-js/internals/object-assign.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/object-keys.js"),i=r("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=r("./node_modules/core-js/internals/object-property-is-enumerable.js"),A=r("./node_modules/core-js/internals/to-object.js"),u=r("./node_modules/core-js/internals/indexed-object.js"),c=Object.assign,l=Object.defineProperty;e.exports=!c||o((function(){if(n&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=c({},e)[r]||s(c({},t)).join("")!=o}))?function(e,t){for(var r=A(e),o=arguments.length,c=1,l=i.f,d=a.f;o>c;)for(var f,h=u(arguments[c++]),p=l?s(h).concat(l(h)):s(h),m=p.length,g=0;m>g;)f=p[g++],n&&!d.call(h,f)||(r[f]=h[f]);return r}:c},"./node_modules/core-js/internals/object-create.js":function(e,t,r){var n,o=r("./node_modules/core-js/internals/an-object.js"),s=r("./node_modules/core-js/internals/object-define-properties.js"),i=r("./node_modules/core-js/internals/enum-bug-keys.js"),a=r("./node_modules/core-js/internals/hidden-keys.js"),A=r("./node_modules/core-js/internals/html.js"),u=r("./node_modules/core-js/internals/document-create-element.js"),c=r("./node_modules/core-js/internals/shared-key.js")("IE_PROTO"),l=function(){},d=function(e){return"<script>"+e+"<\/script>"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}h=document.domain&&n?f(n):function(){var e,t=u("iframe");if(t.style)return t.style.display="none",A.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F}()||f(n);for(var e=i.length;e--;)delete h.prototype[i[e]];return h()};a[c]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(l.prototype=o(e),r=new l,l.prototype=null,r[c]=e):r=h(),void 0===t?r:s(r,t)}},"./node_modules/core-js/internals/object-define-properties.js":function(e,t,r){var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-define-property.js"),s=r("./node_modules/core-js/internals/an-object.js"),i=r("./node_modules/core-js/internals/object-keys.js");e.exports=n?Object.defineProperties:function(e,t){s(e);for(var r,n=i(t),a=n.length,A=0;a>A;)o.f(e,r=n[A++],t[r]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,t,r){var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/ie8-dom-define.js"),s=r("./node_modules/core-js/internals/an-object.js"),i=r("./node_modules/core-js/internals/to-property-key.js"),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(s(e),t=i(t),s(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,t,r){var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-property-is-enumerable.js"),s=r("./node_modules/core-js/internals/create-property-descriptor.js"),i=r("./node_modules/core-js/internals/to-indexed-object.js"),a=r("./node_modules/core-js/internals/to-property-key.js"),A=r("./node_modules/core-js/internals/has.js"),u=r("./node_modules/core-js/internals/ie8-dom-define.js"),c=Object.getOwnPropertyDescriptor;t.f=n?c:function(e,t){if(e=i(e),t=a(t),u)try{return c(e,t)}catch(e){}if(A(e,t))return s(!o.f.call(e,t),e[t])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-indexed-object.js"),o=r("./node_modules/core-js/internals/object-get-own-property-names.js").f,s={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return i&&"[object Window]"==s.call(e)?function(e){try{return o(e)}catch(e){return i.slice()}}(e):o(n(e))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,t,r){var n=r("./node_modules/core-js/internals/object-keys-internal.js"),o=r("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/to-object.js"),s=r("./node_modules/core-js/internals/shared-key.js"),i=r("./node_modules/core-js/internals/correct-prototype-getter.js"),a=s("IE_PROTO"),A=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=o(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?A:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(e,t,r){var n=r("./node_modules/core-js/internals/has.js"),o=r("./node_modules/core-js/internals/to-indexed-object.js"),s=r("./node_modules/core-js/internals/array-includes.js").indexOf,i=r("./node_modules/core-js/internals/hidden-keys.js");e.exports=function(e,t){var r,a=o(e),A=0,u=[];for(r in a)!n(i,r)&&n(a,r)&&u.push(r);for(;t.length>A;)n(a,r=t[A++])&&(~s(u,r)||u.push(r));return u}},"./node_modules/core-js/internals/object-keys.js":function(e,t,r){var n=r("./node_modules/core-js/internals/object-keys-internal.js"),o=r("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return n(e,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,t,r){var n=r("./node_modules/core-js/internals/an-object.js"),o=r("./node_modules/core-js/internals/a-possible-prototype.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return n(r),o(s),t?e.call(r,s):r.__proto__=s,r}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/to-string-tag-support.js"),o=r("./node_modules/core-js/internals/classof.js");e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-object.js");e.exports=function(e,t){var r,o;if("string"===t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if("string"!==t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(e,t,r){var n=r("./node_modules/core-js/internals/get-built-in.js"),o=r("./node_modules/core-js/internals/object-get-own-property-names.js"),s=r("./node_modules/core-js/internals/object-get-own-property-symbols.js"),i=r("./node_modules/core-js/internals/an-object.js");e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=s.f;return r?t.concat(r(e)):t}},"./node_modules/core-js/internals/path.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js");e.exports=n},"./node_modules/core-js/internals/redefine.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=r("./node_modules/core-js/internals/has.js"),i=r("./node_modules/core-js/internals/set-global.js"),a=r("./node_modules/core-js/internals/inspect-source.js"),A=r("./node_modules/core-js/internals/internal-state.js"),u=A.get,c=A.enforce,l=String(String).split("String");(e.exports=function(e,t,r,a){var A,u=!!a&&!!a.unsafe,d=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||s(r,"name")||o(r,"name",t),(A=c(r)).source||(A.source=l.join("string"==typeof t?t:""))),e!==n?(u?!f&&e[t]&&(d=!0):delete e[t],d?e[t]=r:o(e,t,r)):d?e[t]=r:i(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},"./node_modules/core-js/internals/regexp-flags.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/an-object.js");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js");e.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,t,r){var n=r("./node_modules/core-js/internals/object-define-property.js").f,o=r("./node_modules/core-js/internals/has.js"),s=r("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},"./node_modules/core-js/internals/shared-key.js":function(e,t,r){var n=r("./node_modules/core-js/internals/shared.js"),o=r("./node_modules/core-js/internals/uid.js"),s=n("keys");e.exports=function(e){return s[e]||(s[e]=o(e))}},"./node_modules/core-js/internals/shared-store.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/set-global.js"),s="__core-js_shared__",i=n[s]||o(s,{});e.exports=i},"./node_modules/core-js/internals/shared.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-pure.js"),o=r("./node_modules/core-js/internals/shared-store.js");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(e,t,r){var n=r("./node_modules/core-js/internals/fails.js");e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},"./node_modules/core-js/internals/string-multibyte.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-integer.js"),o=r("./node_modules/core-js/internals/to-string.js"),s=r("./node_modules/core-js/internals/require-object-coercible.js"),i=function(e){return function(t,r){var i,a,A=o(s(t)),u=n(r),c=A.length;return u<0||u>=c?e?"":void 0:(i=A.charCodeAt(u))<55296||i>56319||u+1===c||(a=A.charCodeAt(u+1))<56320||a>57343?e?A.charAt(u):i:e?A.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"./node_modules/core-js/internals/string-trim.js":function(e,t,r){var n=r("./node_modules/core-js/internals/require-object-coercible.js"),o=r("./node_modules/core-js/internals/to-string.js"),s="["+r("./node_modules/core-js/internals/whitespaces.js")+"]",i=RegExp("^"+s+s+"*"),a=RegExp(s+s+"*$"),A=function(e){return function(t){var r=o(n(t));return 1&e&&(r=r.replace(i,"")),2&e&&(r=r.replace(a,"")),r}};e.exports={start:A(1),end:A(2),trim:A(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-integer.js"),o=Math.max,s=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):s(r,t)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,t,r){var n=r("./node_modules/core-js/internals/indexed-object.js"),o=r("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return n(o(e))}},"./node_modules/core-js/internals/to-integer.js":function(e){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-integer.js"),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,t,r){var n=r("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return Object(n(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-object.js"),o=r("./node_modules/core-js/internals/is-symbol.js"),s=r("./node_modules/core-js/internals/ordinary-to-primitive.js"),i=r("./node_modules/core-js/internals/well-known-symbol.js")("toPrimitive");e.exports=function(e,t){if(!n(e)||o(e))return e;var r,a=e[i];if(void 0!==a){if(void 0===t&&(t="default"),r=a.call(e,t),!n(r)||o(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},"./node_modules/core-js/internals/to-property-key.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-primitive.js"),o=r("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){var t=n(e,"string");return o(t)?t:String(t)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(e,t,r){var n={};n[r("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag")]="z",e.exports="[object z]"===String(n)},"./node_modules/core-js/internals/to-string.js":function(e,t,r){var n=r("./node_modules/core-js/internals/is-symbol.js");e.exports=function(e){if(n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},"./node_modules/core-js/internals/uid.js":function(e){var t=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+r).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(e,t,r){var n=r("./node_modules/core-js/internals/native-symbol.js");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(e,t,r){var n=r("./node_modules/core-js/internals/well-known-symbol.js");t.f=n},"./node_modules/core-js/internals/well-known-symbol.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/shared.js"),s=r("./node_modules/core-js/internals/has.js"),i=r("./node_modules/core-js/internals/uid.js"),a=r("./node_modules/core-js/internals/native-symbol.js"),A=r("./node_modules/core-js/internals/use-symbol-as-uid.js"),u=o("wks"),c=n.Symbol,l=A?c:c&&c.withoutSetter||i;e.exports=function(e){return s(u,e)&&(a||"string"==typeof u[e])||(a&&s(c,e)?u[e]=c[e]:u[e]=l("Symbol."+e)),u[e]}},"./node_modules/core-js/internals/whitespaces.js":function(e){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"./node_modules/core-js/modules/es.array.concat.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/fails.js"),s=r("./node_modules/core-js/internals/is-array.js"),i=r("./node_modules/core-js/internals/is-object.js"),a=r("./node_modules/core-js/internals/to-object.js"),A=r("./node_modules/core-js/internals/to-length.js"),u=r("./node_modules/core-js/internals/create-property.js"),c=r("./node_modules/core-js/internals/array-species-create.js"),l=r("./node_modules/core-js/internals/array-method-has-species-support.js"),d=r("./node_modules/core-js/internals/well-known-symbol.js"),f=r("./node_modules/core-js/internals/engine-v8-version.js"),h=d("isConcatSpreadable"),p=9007199254740991,m="Maximum allowed index exceeded",g=f>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=l("concat"),v=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:s(e)};n({target:"Array",proto:!0,forced:!g||!y},{concat:function(e){var t,r,n,o,s,i=a(this),l=c(i,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(v(s=-1===t?i:arguments[t])){if(d+(o=A(s.length))>p)throw TypeError(m);for(r=0;r<o;r++,d++)r in s&&u(l,d,s[r])}else{if(d>=p)throw TypeError(m);u(l,d++,s)}return l.length=d,l}})},"./node_modules/core-js/modules/es.array.iterator.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/to-indexed-object.js"),o=r("./node_modules/core-js/internals/add-to-unscopables.js"),s=r("./node_modules/core-js/internals/iterators.js"),i=r("./node_modules/core-js/internals/internal-state.js"),a=r("./node_modules/core-js/internals/define-iterator.js"),A="Array Iterator",u=i.set,c=i.getterFor(A);e.exports=a(Array,"Array",(function(e,t){u(this,{type:A,target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),s.Arguments=s.Array,o("keys"),o("values"),o("entries")},"./node_modules/core-js/modules/es.array.join.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/indexed-object.js"),s=r("./node_modules/core-js/internals/to-indexed-object.js"),i=r("./node_modules/core-js/internals/array-method-is-strict.js"),a=[].join,A=o!=Object,u=i("join",",");n({target:"Array",proto:!0,forced:A||!u},{join:function(e){return a.call(s(this),void 0===e?",":e)}})},"./node_modules/core-js/modules/es.array.map.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/array-iteration.js").map;n({target:"Array",proto:!0,forced:!r("./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/is-object.js"),s=r("./node_modules/core-js/internals/is-array.js"),i=r("./node_modules/core-js/internals/to-absolute-index.js"),a=r("./node_modules/core-js/internals/to-length.js"),A=r("./node_modules/core-js/internals/to-indexed-object.js"),u=r("./node_modules/core-js/internals/create-property.js"),c=r("./node_modules/core-js/internals/well-known-symbol.js"),l=r("./node_modules/core-js/internals/array-method-has-species-support.js")("slice"),d=c("species"),f=[].slice,h=Math.max;n({target:"Array",proto:!0,forced:!l},{slice:function(e,t){var r,n,c,l=A(this),p=a(l.length),m=i(e,p),g=i(void 0===t?p:t,p);if(s(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!s(r.prototype)?o(r)&&null===(r=r[d])&&(r=void 0):r=void 0,r===Array||void 0===r))return f.call(l,m,g);for(n=new(void 0===r?Array:r)(h(g-m,0)),c=0;m<g;m++,c++)m in l&&u(n,c,l[m]);return n.length=c,n}})},"./node_modules/core-js/modules/es.function.name.js":function(e,t,r){var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/object-define-property.js").f,s=Function.prototype,i=s.toString,a=/^\s*function ([^ (]*)/,A="name";n&&!(A in s)&&o(s,A,{configurable:!0,get:function(){try{return i.call(this).match(a)[1]}catch(e){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/descriptors.js"),o=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/is-forced.js"),i=r("./node_modules/core-js/internals/redefine.js"),a=r("./node_modules/core-js/internals/has.js"),A=r("./node_modules/core-js/internals/classof-raw.js"),u=r("./node_modules/core-js/internals/inherit-if-required.js"),c=r("./node_modules/core-js/internals/is-symbol.js"),l=r("./node_modules/core-js/internals/to-primitive.js"),d=r("./node_modules/core-js/internals/fails.js"),f=r("./node_modules/core-js/internals/object-create.js"),h=r("./node_modules/core-js/internals/object-get-own-property-names.js").f,p=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,m=r("./node_modules/core-js/internals/object-define-property.js").f,g=r("./node_modules/core-js/internals/string-trim.js").trim,y="Number",v=o.Number,w=v.prototype,b=A(f(w))==y,B=function(e){if(c(e))throw TypeError("Cannot convert a Symbol value to a number");var t,r,n,o,s,i,a,A,u=l(e,"number");if("string"==typeof u&&u.length>2)if(43===(t=(u=g(u)).charCodeAt(0))||45===t){if(88===(r=u.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+u}for(i=(s=u.slice(2)).length,a=0;a<i;a++)if((A=s.charCodeAt(a))<48||A>o)return NaN;return parseInt(s,n)}return+u};if(s(y,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var j,_=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof _&&(b?d((function(){w.valueOf.call(r)})):A(r)!=y)?u(new v(B(t)),r,_):B(t)},C=n?h(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),x=0;C.length>x;x++)a(v,j=C[x])&&!a(_,j)&&m(_,j,p(v,j));_.prototype=w,w.constructor=_,i(o,y,_)}},"./node_modules/core-js/modules/es.object.assign.js":function(e,t,r){var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/object-assign.js");n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},"./node_modules/core-js/modules/es.object.keys.js":function(e,t,r){var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/to-object.js"),s=r("./node_modules/core-js/internals/object-keys.js");n({target:"Object",stat:!0,forced:r("./node_modules/core-js/internals/fails.js")((function(){s(1)}))},{keys:function(e){return s(o(e))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(e,t,r){var n=r("./node_modules/core-js/internals/to-string-tag-support.js"),o=r("./node_modules/core-js/internals/redefine.js"),s=r("./node_modules/core-js/internals/object-to-string.js");n||o(Object.prototype,"toString",s,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/redefine.js"),o=r("./node_modules/core-js/internals/an-object.js"),s=r("./node_modules/core-js/internals/to-string.js"),i=r("./node_modules/core-js/internals/fails.js"),a=r("./node_modules/core-js/internals/regexp-flags.js"),A="toString",u=RegExp.prototype,c=u.toString,l=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=A;(l||d)&&n(RegExp.prototype,A,(function(){var e=o(this),t=s(e.source),r=e.flags;return"/"+t+"/"+s(void 0===r&&e instanceof RegExp&&!("flags"in u)?a.call(e):r)}),{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/string-multibyte.js").charAt,o=r("./node_modules/core-js/internals/to-string.js"),s=r("./node_modules/core-js/internals/internal-state.js"),i=r("./node_modules/core-js/internals/define-iterator.js"),a="String Iterator",A=s.set,u=s.getterFor(a);i(String,"String",(function(e){A(this,{type:a,string:o(e),index:0})}),(function(){var e,t=u(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})}))},"./node_modules/core-js/modules/es.string.link.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/create-html.js");n({target:"String",proto:!0,forced:r("./node_modules/core-js/internals/string-html-forced.js")("link")},{link:function(e){return o(this,"a","href",e)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/descriptors.js"),s=r("./node_modules/core-js/internals/global.js"),i=r("./node_modules/core-js/internals/has.js"),a=r("./node_modules/core-js/internals/is-object.js"),A=r("./node_modules/core-js/internals/object-define-property.js").f,u=r("./node_modules/core-js/internals/copy-constructor-properties.js"),c=s.Symbol;if(o&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var l={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new c(e):void 0===e?c():c(e);return""===e&&(l[t]=!0),t};u(d,c);var f=d.prototype=c.prototype;f.constructor=d;var h=f.toString,p="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;A(f,"description",{configurable:!0,get:function(){var e=a(this)?this.valueOf():this,t=h.call(e);if(i(l,e))return"";var r=p?t.slice(7,-1):t.replace(m,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:d})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(e,t,r){r("./node_modules/core-js/internals/define-well-known-symbol.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(e,t,r){"use strict";var n=r("./node_modules/core-js/internals/export.js"),o=r("./node_modules/core-js/internals/global.js"),s=r("./node_modules/core-js/internals/get-built-in.js"),i=r("./node_modules/core-js/internals/is-pure.js"),a=r("./node_modules/core-js/internals/descriptors.js"),A=r("./node_modules/core-js/internals/native-symbol.js"),u=r("./node_modules/core-js/internals/fails.js"),c=r("./node_modules/core-js/internals/has.js"),l=r("./node_modules/core-js/internals/is-array.js"),d=r("./node_modules/core-js/internals/is-object.js"),f=r("./node_modules/core-js/internals/is-symbol.js"),h=r("./node_modules/core-js/internals/an-object.js"),p=r("./node_modules/core-js/internals/to-object.js"),m=r("./node_modules/core-js/internals/to-indexed-object.js"),g=r("./node_modules/core-js/internals/to-property-key.js"),y=r("./node_modules/core-js/internals/to-string.js"),v=r("./node_modules/core-js/internals/create-property-descriptor.js"),w=r("./node_modules/core-js/internals/object-create.js"),b=r("./node_modules/core-js/internals/object-keys.js"),B=r("./node_modules/core-js/internals/object-get-own-property-names.js"),j=r("./node_modules/core-js/internals/object-get-own-property-names-external.js"),_=r("./node_modules/core-js/internals/object-get-own-property-symbols.js"),C=r("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),x=r("./node_modules/core-js/internals/object-define-property.js"),E=r("./node_modules/core-js/internals/object-property-is-enumerable.js"),N=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),Q=r("./node_modules/core-js/internals/redefine.js"),F=r("./node_modules/core-js/internals/shared.js"),U=r("./node_modules/core-js/internals/shared-key.js"),S=r("./node_modules/core-js/internals/hidden-keys.js"),L=r("./node_modules/core-js/internals/uid.js"),T=r("./node_modules/core-js/internals/well-known-symbol.js"),H=r("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),I=r("./node_modules/core-js/internals/define-well-known-symbol.js"),P=r("./node_modules/core-js/internals/set-to-string-tag.js"),O=r("./node_modules/core-js/internals/internal-state.js"),k=r("./node_modules/core-js/internals/array-iteration.js").forEach,R=U("hidden"),M="Symbol",D=T("toPrimitive"),K=O.set,z=O.getterFor(M),V=Object.prototype,q=o.Symbol,G=s("JSON","stringify"),X=C.f,W=x.f,J=j.f,Y=E.f,Z=F("symbols"),$=F("op-symbols"),ee=F("string-to-symbol-registry"),te=F("symbol-to-string-registry"),re=F("wks"),ne=o.QObject,oe=!ne||!ne.prototype||!ne.prototype.findChild,se=a&&u((function(){return 7!=w(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=X(V,t);n&&delete V[t],W(e,t,r),n&&e!==V&&W(V,t,n)}:W,ie=function(e,t){var r=Z[e]=w(q.prototype);return K(r,{type:M,tag:e,description:t}),a||(r.description=t),r},ae=function(e,t,r){e===V&&ae($,t,r),h(e);var n=g(t);return h(r),c(Z,n)?(r.enumerable?(c(e,R)&&e[R][n]&&(e[R][n]=!1),r=w(r,{enumerable:v(0,!1)})):(c(e,R)||W(e,R,v(1,{})),e[R][n]=!0),se(e,n,r)):W(e,n,r)},Ae=function(e,t){h(e);var r=m(t),n=b(r).concat(de(r));return k(n,(function(t){a&&!ue.call(r,t)||ae(e,t,r[t])})),e},ue=function(e){var t=g(e),r=Y.call(this,t);return!(this===V&&c(Z,t)&&!c($,t))&&(!(r||!c(this,t)||!c(Z,t)||c(this,R)&&this[R][t])||r)},ce=function(e,t){var r=m(e),n=g(t);if(r!==V||!c(Z,n)||c($,n)){var o=X(r,n);return!o||!c(Z,n)||c(r,R)&&r[R][n]||(o.enumerable=!0),o}},le=function(e){var t=J(m(e)),r=[];return k(t,(function(e){c(Z,e)||c(S,e)||r.push(e)})),r},de=function(e){var t=e===V,r=J(t?$:m(e)),n=[];return k(r,(function(e){!c(Z,e)||t&&!c(V,e)||n.push(Z[e])})),n};A||(Q((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=L(e),r=function(e){this===V&&r.call($,e),c(this,R)&&c(this[R],t)&&(this[R][t]=!1),se(this,t,v(1,e))};return a&&oe&&se(V,t,{configurable:!0,set:r}),ie(t,e)}).prototype,"toString",(function(){return z(this).tag})),Q(q,"withoutSetter",(function(e){return ie(L(e),e)})),E.f=ue,x.f=ae,C.f=ce,B.f=j.f=le,_.f=de,H.f=function(e){return ie(T(e),e)},a&&(W(q.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),i||Q(V,"propertyIsEnumerable",ue,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!A,sham:!A},{Symbol:q}),k(b(re),(function(e){I(e)})),n({target:M,stat:!0,forced:!A},{for:function(e){var t=y(e);if(c(ee,t))return ee[t];var r=q(t);return ee[t]=r,te[r]=t,r},keyFor:function(e){if(!f(e))throw TypeError(e+" is not a symbol");if(c(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!A,sham:!a},{create:function(e,t){return void 0===t?w(e):Ae(w(e),t)},defineProperty:ae,defineProperties:Ae,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!A},{getOwnPropertyNames:le,getOwnPropertySymbols:de}),n({target:"Object",stat:!0,forced:u((function(){_.f(1)}))},{getOwnPropertySymbols:function(e){return _.f(p(e))}}),G&&n({target:"JSON",stat:!0,forced:!A||u((function(){var e=q();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}))},{stringify:function(e,t,r){for(var n,o=[e],s=1;arguments.length>s;)o.push(arguments[s++]);if(n=t,(d(t)||void 0!==e)&&!f(e))return l(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!f(t))return t}),o[1]=t,G.apply(null,o)}}),q.prototype[D]||N(q.prototype,D,q.prototype.valueOf),P(q,M),S[R]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/dom-iterables.js"),s=r("./node_modules/core-js/internals/array-for-each.js"),i=r("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var a in o){var A=n[a],u=A&&A.prototype;if(u&&u.forEach!==s)try{i(u,"forEach",s)}catch(e){u.forEach=s}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(e,t,r){var n=r("./node_modules/core-js/internals/global.js"),o=r("./node_modules/core-js/internals/dom-iterables.js"),s=r("./node_modules/core-js/modules/es.array.iterator.js"),i=r("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=r("./node_modules/core-js/internals/well-known-symbol.js"),A=a("iterator"),u=a("toStringTag"),c=s.values;for(var l in o){var d=n[l],f=d&&d.prototype;if(f){if(f[A]!==c)try{i(f,A,c)}catch(e){f[A]=c}if(f[u]||i(f,u,l),o[l])for(var h in s)if(f[h]!==s[h])try{i(f,h,s[h])}catch(e){f[h]=s[h]}}}},"./node_modules/dompurify/dist/purify.js":function(e){e.exports=function(){"use strict";var e=Object.hasOwnProperty,t=Object.setPrototypeOf,r=Object.isFrozen,n=Object.getPrototypeOf,o=Object.getOwnPropertyDescriptor,s=Object.freeze,i=Object.seal,a=Object.create,A="undefined"!=typeof Reflect&&Reflect,u=A.apply,c=A.construct;u||(u=function(e,t,r){return e.apply(t,r)}),s||(s=function(e){return e}),i||(i=function(e){return e}),c||(c=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(t))))});var l,d=B(Array.prototype.forEach),f=B(Array.prototype.pop),h=B(Array.prototype.push),p=B(String.prototype.toLowerCase),m=B(String.prototype.match),g=B(String.prototype.replace),y=B(String.prototype.indexOf),v=B(String.prototype.trim),w=B(RegExp.prototype.test),b=(l=TypeError,function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return c(l,t)});function B(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return u(e,t,n)}}function j(e,n){t&&t(e,null);for(var o=n.length;o--;){var s=n[o];if("string"==typeof s){var i=p(s);i!==s&&(r(n)||(n[o]=i),s=i)}e[s]=!0}return e}function _(t){var r=a(null),n=void 0;for(n in t)u(e,t,[n])&&(r[n]=t[n]);return r}function C(e,t){for(;null!==e;){var r=o(e,t);if(r){if(r.get)return B(r.get);if("function"==typeof r.value)return B(r.value)}e=n(e)}return function(e){return console.warn("fallback value for",e),null}}var x=s(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),E=s(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=s(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Q=s(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=s(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),S=s(["#text"]),L=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),T=s(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),H=s(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),I=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),P=i(/\{\{[\s\S]*|[\s\S]*\}\}/gm),O=i(/<%[\s\S]*|[\s\S]*%>/gm),k=i(/^data-[\-\w.\u00B7-\uFFFF]/),R=i(/^aria-[\-\w]+$/),M=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),D=i(/^(?:\w+script|data):/i),K=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function V(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var q=function(){return"undefined"==typeof window?null:window},G=function(e,t){if("object"!==(void 0===e?"undefined":z(e))||"function"!=typeof e.createPolicy)return null;var r=null,n="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(n)&&(r=t.currentScript.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q(),r=function(t){return e(t)};if(r.version="2.3.0",r.removed=[],!t||!t.document||9!==t.document.nodeType)return r.isSupported=!1,r;var n=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,A=t.Node,u=t.Element,c=t.NodeFilter,l=t.NamedNodeMap,B=void 0===l?t.NamedNodeMap||t.MozNamedAttrMap:l,X=t.Text,W=t.Comment,J=t.DOMParser,Y=t.trustedTypes,Z=u.prototype,$=C(Z,"cloneNode"),ee=C(Z,"nextSibling"),te=C(Z,"childNodes"),re=C(Z,"parentNode");if("function"==typeof a){var ne=o.createElement("template");ne.content&&ne.content.ownerDocument&&(o=ne.content.ownerDocument)}var oe=G(Y,n),se=oe&&Pe?oe.createHTML(""):"",ie=o,ae=ie.implementation,Ae=ie.createNodeIterator,ue=ie.createDocumentFragment,ce=ie.getElementsByTagName,le=n.importNode,de={};try{de=_(o).documentMode?o.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof re&&ae&&void 0!==ae.createHTMLDocument&&9!==de;var he=P,pe=O,me=k,ge=R,ye=D,ve=K,we=M,be=null,Be=j({},[].concat(V(x),V(E),V(N),V(F),V(S))),je=null,_e=j({},[].concat(V(L),V(T),V(H),V(I))),Ce=null,xe=null,Ee=!0,Ne=!0,Qe=!1,Fe=!1,Ue=!1,Se=!1,Le=!1,Te=!1,He=!1,Ie=!0,Pe=!1,Oe=!0,ke=!0,Re=!1,Me={},De=j({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,ze=j({},["audio","video","img","source","image","track"]),Ve=null,qe=j({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml",Je=We,Ye=!1,Ze=null,$e=o.createElement("form"),et=function(e){Ze&&Ze===e||(e&&"object"===(void 0===e?"undefined":z(e))||(e={}),e=_(e),be="ALLOWED_TAGS"in e?j({},e.ALLOWED_TAGS):Be,je="ALLOWED_ATTR"in e?j({},e.ALLOWED_ATTR):_e,Ve="ADD_URI_SAFE_ATTR"in e?j(_(qe),e.ADD_URI_SAFE_ATTR):qe,Ke="ADD_DATA_URI_TAGS"in e?j(_(ze),e.ADD_DATA_URI_TAGS):ze,Ce="FORBID_TAGS"in e?j({},e.FORBID_TAGS):{},xe="FORBID_ATTR"in e?j({},e.FORBID_ATTR):{},Me="USE_PROFILES"in e&&e.USE_PROFILES,Ee=!1!==e.ALLOW_ARIA_ATTR,Ne=!1!==e.ALLOW_DATA_ATTR,Qe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=e.SAFE_FOR_TEMPLATES||!1,Ue=e.WHOLE_DOCUMENT||!1,Te=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ie=!1!==e.RETURN_DOM_IMPORT,Pe=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Oe=!1!==e.SANITIZE_DOM,ke=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||we,Je=e.NAMESPACE||We,Fe&&(Ne=!1),He&&(Te=!0),Me&&(be=j({},[].concat(V(S))),je=[],!0===Me.html&&(j(be,x),j(je,L)),!0===Me.svg&&(j(be,E),j(je,T),j(je,I)),!0===Me.svgFilters&&(j(be,N),j(je,T),j(je,I)),!0===Me.mathMl&&(j(be,F),j(je,H),j(je,I))),e.ADD_TAGS&&(be===Be&&(be=_(be)),j(be,e.ADD_TAGS)),e.ADD_ATTR&&(je===_e&&(je=_(je)),j(je,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&j(Ve,e.ADD_URI_SAFE_ATTR),ke&&(be["#text"]=!0),Ue&&j(be,["html","head","body"]),be.table&&(j(be,["tbody"]),delete Ce.tbody),s&&s(e),Ze=e)},tt=j({},["mi","mo","mn","ms","mtext"]),rt=j({},["foreignobject","desc","title","annotation-xml"]),nt=j({},E);j(nt,N),j(nt,Q);var ot=j({},F);j(ot,U);var st=function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:We,tagName:"template"});var r=p(e.tagName),n=p(t.tagName);if(e.namespaceURI===Xe)return t.namespaceURI===We?"svg"===r:t.namespaceURI===Ge?"svg"===r&&("annotation-xml"===n||tt[n]):Boolean(nt[r]);if(e.namespaceURI===Ge)return t.namespaceURI===We?"math"===r:t.namespaceURI===Xe?"math"===r&&rt[n]:Boolean(ot[r]);if(e.namespaceURI===We){if(t.namespaceURI===Xe&&!rt[n])return!1;if(t.namespaceURI===Ge&&!tt[n])return!1;var o=j({},["title","style","font","a","script"]);return!ot[r]&&(o[r]||!nt[r])}return!1},it=function(e){h(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},at=function(e,t){try{h(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(Te||He)try{it(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},At=function(e){var t=void 0,r=void 0;if(Le)e="<remove></remove>"+e;else{var n=m(e,/^[\r\n\t ]+/);r=n&&n[0]}var s=oe?oe.createHTML(e):e;if(Je===We)try{t=(new J).parseFromString(s,"text/html")}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Je,"template",null);try{t.documentElement.innerHTML=Ye?"":s}catch(e){}}var i=t.body||t.documentElement;return e&&r&&i.insertBefore(o.createTextNode(r),i.childNodes[0]||null),Je===We?ce.call(t,Ue?"html":"body")[0]:Ue?t.documentElement:i},ut=function(e){return Ae.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ct=function(e){return!(e instanceof X||e instanceof W||"string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof B&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},lt=function(e){return"object"===(void 0===A?"undefined":z(A))?e instanceof A:e&&"object"===(void 0===e?"undefined":z(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},dt=function(e,t,n){fe[e]&&d(fe[e],(function(e){e.call(r,t,n,Ze)}))},ft=function(e){var t=void 0;if(dt("beforeSanitizeElements",e,null),ct(e))return it(e),!0;if(m(e.nodeName,/[\u0080-\uFFFF]/))return it(e),!0;var n=p(e.nodeName);if(dt("uponSanitizeElement",e,{tagName:n,allowedTags:be}),!lt(e.firstElementChild)&&(!lt(e.content)||!lt(e.content.firstElementChild))&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return it(e),!0;if(!be[n]||Ce[n]){if(ke&&!De[n]){var o=re(e)||e.parentNode,s=te(e)||e.childNodes;if(s&&o)for(var i=s.length-1;i>=0;--i)o.insertBefore($(s[i],!0),ee(e))}return it(e),!0}return e instanceof u&&!st(e)?(it(e),!0):"noscript"!==n&&"noembed"!==n||!w(/<\/no(script|embed)/i,e.innerHTML)?(Fe&&3===e.nodeType&&(t=e.textContent,t=g(t,he," "),t=g(t,pe," "),e.textContent!==t&&(h(r.removed,{element:e.cloneNode()}),e.textContent=t)),dt("afterSanitizeElements",e,null),!1):(it(e),!0)},ht=function(e,t,r){if(Oe&&("id"===t||"name"===t)&&(r in o||r in $e))return!1;if(Ne&&!xe[t]&&w(me,t));else if(Ee&&w(ge,t));else{if(!je[t]||xe[t])return!1;if(Ve[t]);else if(w(we,g(r,ve,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(r,"data:")||!Ke[e])if(Qe&&!w(ye,g(r,ve,"")));else if(r)return!1}return!0},pt=function(e){var t=void 0,n=void 0,o=void 0,s=void 0;dt("beforeSanitizeAttributes",e,null);var i=e.attributes;if(i){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:je};for(s=i.length;s--;){var A=t=i[s],u=A.name,c=A.namespaceURI;if(n=v(t.value),o=p(u),a.attrName=o,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,dt("uponSanitizeAttribute",e,a),n=a.attrValue,!a.forceKeepAttr&&(at(u,e),a.keepAttr))if(w(/\/>/i,n))at(u,e);else{Fe&&(n=g(n,he," "),n=g(n,pe," "));var l=e.nodeName.toLowerCase();if(ht(l,o,n))try{c?e.setAttributeNS(c,u,n):e.setAttribute(u,n),f(r.removed)}catch(e){}}}dt("afterSanitizeAttributes",e,null)}},mt=function e(t){var r=void 0,n=ut(t);for(dt("beforeSanitizeShadowDOM",t,null);r=n.nextNode();)dt("uponSanitizeShadowNode",r,null),ft(r)||(r.content instanceof i&&e(r.content),pt(r));dt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e,o){var s=void 0,a=void 0,u=void 0,c=void 0,l=void 0;if((Ye=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!lt(e)){if("function"!=typeof e.toString)throw b("toString is not a function");if("string"!=typeof(e=e.toString()))throw b("dirty is not a string, aborting")}if(!r.isSupported){if("object"===z(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(lt(e))return t.toStaticHTML(e.outerHTML)}return e}if(Se||et(o),r.removed=[],"string"==typeof e&&(Re=!1),Re);else if(e instanceof A)1===(a=(s=At("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?s=a:s.appendChild(a);else{if(!Te&&!Fe&&!Ue&&-1===e.indexOf("<"))return oe&&Pe?oe.createHTML(e):e;if(!(s=At(e)))return Te?null:se}s&&Le&&it(s.firstChild);for(var d=ut(Re?e:s);u=d.nextNode();)3===u.nodeType&&u===c||ft(u)||(u.content instanceof i&&mt(u.content),pt(u),c=u);if(c=null,Re)return e;if(Te){if(He)for(l=ue.call(s.ownerDocument);s.firstChild;)l.appendChild(s.firstChild);else l=s;return Ie&&(l=le.call(n,l,!0)),l}var f=Ue?s.outerHTML:s.innerHTML;return Fe&&(f=g(f,he," "),f=g(f,pe," ")),oe&&Pe?oe.createHTML(f):f},r.setConfig=function(e){et(e),Se=!0},r.clearConfig=function(){Ze=null,Se=!1},r.isValidAttribute=function(e,t,r){Ze||et({});var n=p(e),o=p(t);return ht(n,o,r)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],h(fe[e],t))},r.removeHook=function(e){fe[e]&&f(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},"./node_modules/es6-promise/dist/es6-promise.js":function(e){var t;t=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,n=void 0,o=void 0,s=function(e,t){d[r]=e,d[r+1]=t,2===(r+=2)&&(o?o(f):y())},i="undefined"!=typeof window?window:void 0,a=i||{},A=a.MutationObserver||a.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),c="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var e=setTimeout;return function(){return e(f,1)}}var d=new Array(1e3);function f(){for(var e=0;e<r;e+=2)(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0;r=0}var h,p,m,g,y=void 0;function v(e,t){var r=this,n=new this.constructor(B);void 0===n[b]&&L(n);var o=r._state;if(o){var i=arguments[o-1];s((function(){return U(o,n,i,r._result)}))}else Q(r,n,e,t);return n}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(B);return C(t,e),t}u?y=function(){return process.nextTick(f)}:A?(p=0,m=new A(f),g=document.createTextNode(""),m.observe(g,{characterData:!0}),y=function(){g.data=p=++p%2}):c?((h=new MessageChannel).port1.onmessage=f,y=function(){return h.port2.postMessage(0)}):y=void 0===i?function(){try{var e=Function("return this")().require("vertx");return void 0!==(n=e.runOnLoop||e.runOnContext)?function(){n(f)}:l()}catch(e){return l()}}():l();var b=Math.random().toString(36).substring(2);function B(){}var j=void 0;function _(t,r,n){r.constructor===t.constructor&&n===v&&r.constructor.resolve===w?function(e,t){1===t._state?E(e,t._result):2===t._state?N(e,t._result):Q(t,void 0,(function(t){return C(e,t)}),(function(t){return N(e,t)}))}(t,r):void 0===n?E(t,r):e(n)?function(e,t,r){s((function(e){var n=!1,o=function(r,o,s,i){try{r.call(o,(function(r){n||(n=!0,t!==r?C(e,r):E(e,r))}),(function(t){n||(n=!0,N(e,t))}))}catch(e){return e}}(r,t,0,0,e._label);!n&&o&&(n=!0,N(e,o))}),e)}(t,r,n):E(t,r)}function C(e,t){if(e===t)N(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(n=t),null===n||"object"!==o&&"function"!==o)E(e,t);else{var r=void 0;try{r=t.then}catch(t){return void N(e,t)}_(e,t,r)}var n,o}function x(e){e._onerror&&e._onerror(e._result),F(e)}function E(e,t){e._state===j&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(F,e))}function N(e,t){e._state===j&&(e._state=2,e._result=t,s(x,e))}function Q(e,t,r,n){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+1]=r,o[i+2]=n,0===i&&e._state&&s(F,e)}function F(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,o=void 0,s=e._result,i=0;i<t.length;i+=3)n=t[i],o=t[i+r],n?U(r,n,o,s):o(s);e._subscribers.length=0}}function U(t,r,n,o){var s=e(n),i=void 0,a=void 0,A=!0;if(s){try{i=n(o)}catch(e){A=!1,a=e}if(r===i)return void N(r,new TypeError("A promises callback cannot return that same promise."))}else i=o;r._state!==j||(s&&A?C(r,i):!1===A?N(r,a):1===t?E(r,i):2===t&&N(r,i))}var S=0;function L(e){e[b]=S++,e._state=void 0,e._result=void 0,e._subscribers=[]}var T=function(){function e(e,r){this._instanceConstructor=e,this.promise=new e(B),this.promise[b]||L(this.promise),t(r)?(this.length=r.length,this._remaining=r.length,this._result=new Array(this.length),0===this.length?E(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&E(this.promise,this._result))):N(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===j&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===w){var o=void 0,s=void 0,i=!1;try{o=e.then}catch(e){i=!0,s=e}if(o===v&&e._state!==j)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(r===H){var a=new r(B);i?N(a,s):_(a,e,o),this._willSettleAt(a,t)}else this._willSettleAt(new r((function(t){return t(e)})),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===j&&(this._remaining--,2===e?N(n,r):this._result[t]=r),0===this._remaining&&E(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;Q(e,void 0,(function(e){return r._settledAt(1,t,e)}),(function(e){return r._settledAt(2,t,e)}))},e}(),H=function(){function t(e){this[b]=S++,this._result=this._state=void 0,this._subscribers=[],B!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){C(e,t)}),(function(t){N(e,t)}))}catch(t){N(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var r=this,n=r.constructor;return e(t)?r.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):r.then(t,t)},t}();return H.prototype.then=v,H.all=function(e){return new T(this,e).promise},H.race=function(e){var r=this;return t(e)?new r((function(t,n){for(var o=e.length,s=0;s<o;s++)r.resolve(e[s]).then(t,n)})):new r((function(e,t){return t(new TypeError("You must pass an array to race."))}))},H.resolve=w,H.reject=function(e){var t=new this(B);return N(t,e),t},H._setScheduler=function(e){o=e},H._setAsap=function(e){s=e},H._asap=s,H.polyfill=function(){var e=void 0;if("undefined"!=typeof global)e=global;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=H},H.Promise=H,H},e.exports=t()},"./node_modules/fflate/esm/browser.js":function(e,t,r){"use strict";r.r(t),r.d(t,{Deflate:function(){return ve},AsyncDeflate:function(){return we},deflate:function(){return be},deflateSync:function(){return Be},Inflate:function(){return je},AsyncInflate:function(){return _e},inflate:function(){return Ce},inflateSync:function(){return xe},Gzip:function(){return Ee},AsyncGzip:function(){return Ne},gzip:function(){return Qe},gzipSync:function(){return Fe},Gunzip:function(){return Ue},AsyncGunzip:function(){return Se},gunzip:function(){return Le},gunzipSync:function(){return Te},Zlib:function(){return He},AsyncZlib:function(){return Ie},zlib:function(){return Pe},zlibSync:function(){return Oe},Unzlib:function(){return ke},AsyncUnzlib:function(){return Re},unzlib:function(){return Me},unzlibSync:function(){return De},compress:function(){return Qe},AsyncCompress:function(){return Ne},compressSync:function(){return Fe},Compress:function(){return Ee},Decompress:function(){return Ke},AsyncDecompress:function(){return ze},decompress:function(){return Ve},decompressSync:function(){return qe},strToU8:function(){return Xe},strFromU8:function(){return We},zip:function(){return tt},zipSync:function(){return rt},unzip:function(){return nt},unzipSync:function(){return ot}});var n={},o=Uint8Array,s=Uint16Array,i=Uint32Array,a=new o([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),A=new o([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 o([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var r=new s(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var o=new i(r[30]);for(n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)o[a]=a-r[n]<<5|n;return[r,o]},l=c(a,2),d=l[0],f=l[1];d[28]=258,f[258]=28;for(var h=c(A,0),p=h[0],m=h[1],g=new s(32768),y=0;y<32768;++y){var v=(43690&y)>>>1|(21845&y)<<1;v=(61680&(v=(52428&v)>>>2|(13107&v)<<2))>>>4|(3855&v)<<4,g[y]=((65280&v)>>>8|(255&v)<<8)>>>1}var w=function(e,t,r){for(var n=e.length,o=0,i=new s(t);o<n;++o)++i[e[o]-1];var a,A=new s(t);for(o=0;o<t;++o)A[o]=A[o-1]+i[o-1]<<1;if(r){a=new s(1<<t);var u=15-t;for(o=0;o<n;++o)if(e[o])for(var c=o<<4|e[o],l=t-e[o],d=A[e[o]-1]++<<l,f=d|(1<<l)-1;d<=f;++d)a[g[d]>>>u]=c}else for(a=new s(n),o=0;o<n;++o)a[o]=g[A[e[o]-1]++]>>>15-e[o];return a},b=new o(288);for(y=0;y<144;++y)b[y]=8;for(y=144;y<256;++y)b[y]=9;for(y=256;y<280;++y)b[y]=7;for(y=280;y<288;++y)b[y]=8;var B=new o(32);for(y=0;y<32;++y)B[y]=5;var j=w(b,9,0),_=w(b,9,1),C=w(B,5,0),x=w(B,5,1),E=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},N=function(e,t,r){var n=t/8>>0;return(e[n]|e[n+1]<<8)>>>(7&t)&r},Q=function(e,t){var r=t/8>>0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>>(7&t)},F=function(e){return(e/8>>0)+(7&e&&1)},U=function(e,t,r){(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length);var n=new(e instanceof s?s:e instanceof i?i:o)(r-t);return n.set(e.subarray(t,r)),n},S=function(e,t,r){var n=e.length,s=!t||r,i=!r||r.i;r||(r={}),t||(t=new o(3*n));var c=function(e){var r=t.length;if(e>r){var n=new o(Math.max(2*r,e));n.set(t),t=n}},l=r.f||0,f=r.p||0,h=r.b||0,m=r.l,g=r.d,y=r.m,v=r.n,b=8*n;do{if(!m){r.f=l=N(e,f,1);var B=N(e,f+1,3);if(f+=3,!B){var j=e[(M=F(f)+4)-4]|e[M-3]<<8,C=M+j;if(C>n){if(i)throw"unexpected EOF";break}s&&c(h+j),t.set(e.subarray(M,C),h),r.b=h+=j,r.p=f=8*C;continue}if(1==B)m=_,g=x,y=9,v=5;else{if(2!=B)throw"invalid block type";var S=N(e,f,31)+257,L=N(e,f+10,15)+4,T=S+N(e,f+5,31)+1;f+=14;for(var H=new o(T),I=new o(19),P=0;P<L;++P)I[u[P]]=N(e,f+3*P,7);f+=3*L;var O=E(I),k=(1<<O)-1;if(!i&&f+T*(O+7)>b)break;var R=w(I,O,1);for(P=0;P<T;){var M,D=R[N(e,f,k)];if(f+=15&D,(M=D>>>4)<16)H[P++]=M;else{var K=0,z=0;for(16==M?(z=3+N(e,f,3),f+=2,K=H[P-1]):17==M?(z=3+N(e,f,7),f+=3):18==M&&(z=11+N(e,f,127),f+=7);z--;)H[P++]=K}}var V=H.subarray(0,S),q=H.subarray(S);y=E(V),v=E(q),m=w(V,y,1),g=w(q,v,1)}if(f>b)throw"unexpected EOF"}s&&c(h+131072);for(var G=(1<<y)-1,X=(1<<v)-1,W=y+v+18;i||f+W<b;){var J=(K=m[Q(e,f)&G])>>>4;if((f+=15&K)>b)throw"unexpected EOF";if(!K)throw"invalid length/literal";if(J<256)t[h++]=J;else{if(256==J){m=null;break}var Y=J-254;if(J>264){var Z=a[P=J-257];Y=N(e,f,(1<<Z)-1)+d[P],f+=Z}var $=g[Q(e,f)&X],ee=$>>>4;if(!$)throw"invalid distance";if(f+=15&$,q=p[ee],ee>3&&(Z=A[ee],q+=Q(e,f)&(1<<Z)-1,f+=Z),f>b)throw"unexpected EOF";s&&c(h+131072);for(var te=h+Y;h<te;h+=4)t[h]=t[h-q],t[h+1]=t[h+1-q],t[h+2]=t[h+2-q],t[h+3]=t[h+3-q];h=te}}r.l=m,r.p=f,r.b=h,m&&(l=1,r.m=y,r.d=g,r.n=v)}while(!l);return h==t.length?t:U(t,0,h)},L=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},T=function(e,t,r){r<<=7&t;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},H=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return[new o(0),0];if(1==i){var A=new o(r[0].s+1);return A[r[0].s]=1,[A,1]}r.sort((function(e,t){return e.f-t.f})),r.push({s:-1,f:25001});var u=r[0],c=r[1],l=0,d=1,f=2;for(r[0]={s:-1,f:u.f+c.f,l:u,r:c};d!=i-1;)u=r[r[l].f<r[f].f?l++:f++],c=r[l!=d&&r[l].f<r[f].f?l++:f++],r[d++]={s:-1,f:u.f+c.f,l:u,r:c};var h=a[0].s;for(n=1;n<i;++n)a[n].s>h&&(h=a[n].s);var p=new s(h+1),m=I(r[d-1],p,0);if(m>t){n=0;var g=0,y=m-t,v=1<<y;for(a.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));n<i;++n){var w=a[n].s;if(!(p[w]>t))break;g+=v-(1<<m-p[w]),p[w]=t}for(g>>>=y;g>0;){var b=a[n].s;p[b]<t?g-=1<<t-p[b]++-1:++n}for(;n>=0&&g;--n){var B=a[n].s;p[B]==t&&(--p[B],++g)}m=t}return[new o(p),m]},I=function(e,t,r){return-1==e.s?Math.max(I(e.l,t,r+1),I(e.r,t,r+1)):t[e.s]=r},P=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new s(++t),n=0,o=e[0],i=1,a=function(e){r[n++]=e},A=1;A<=t;++A)if(e[A]==o&&A!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(o),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(o);i=1,o=e[A]}return[r.subarray(0,n),t]},O=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},k=function(e,t,r){var n=r.length,o=F(t+2);e[o]=255&n,e[o+1]=n>>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var s=0;s<n;++s)e[o+s+4]=r[s];return 8*(o+4+n)},R=function(e,t,r,n,o,i,c,l,d,f,h){L(t,h++,r),++o[256];for(var p=H(o,15),m=p[0],g=p[1],y=H(i,15),v=y[0],_=y[1],x=P(m),E=x[0],N=x[1],Q=P(v),F=Q[0],U=Q[1],S=new s(19),I=0;I<E.length;++I)S[31&E[I]]++;for(I=0;I<F.length;++I)S[31&F[I]]++;for(var R=H(S,7),M=R[0],D=R[1],K=19;K>4&&!M[u[K-1]];--K);var z,V,q,G,X=f+5<<3,W=O(o,b)+O(i,B)+c,J=O(o,m)+O(i,v)+c+14+3*K+O(S,M)+(2*S[16]+3*S[17]+7*S[18]);if(X<=W&&X<=J)return k(t,h,e.subarray(d,d+f));if(L(t,h,1+(J<W)),h+=2,J<W){z=w(m,g,0),V=m,q=w(v,_,0),G=v;var Y=w(M,D,0);for(L(t,h,N-257),L(t,h+5,U-1),L(t,h+10,K-4),h+=14,I=0;I<K;++I)L(t,h+3*I,M[u[I]]);h+=3*K;for(var Z=[E,F],$=0;$<2;++$){var ee=Z[$];for(I=0;I<ee.length;++I){var te=31&ee[I];L(t,h,Y[te]),h+=M[te],te>15&&(L(t,h,ee[I]>>>5&127),h+=ee[I]>>>12)}}}else z=j,V=b,q=C,G=B;for(I=0;I<l;++I)if(n[I]>255){te=n[I]>>>18&31,T(t,h,z[te+257]),h+=V[te+257],te>7&&(L(t,h,n[I]>>>23&31),h+=a[te]);var re=31&n[I];T(t,h,q[re]),h+=G[re],re>3&&(T(t,h,n[I]>>>5&8191),h+=A[re])}else T(t,h,z[n[I]]),h+=V[n[I]];return T(t,h,z[256]),h+V[256]},M=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),D=new o(0),K=function(e,t,r,n,u,c){var l=e.length,d=new o(n+l+5*(1+Math.floor(l/7e3))+u),h=d.subarray(n,d.length-u),p=0;if(!t||l<8)for(var g=0;g<=l;g+=65535){var y=g+65535;y<l?p=k(h,p,e.subarray(g,y)):(h[g]=c,p=k(h,p,e.subarray(g,l)))}else{for(var v=M[t-1],w=v>>>13,b=8191&v,B=(1<<r)-1,j=new s(32768),_=new s(B+1),C=Math.ceil(r/3),x=2*C,E=function(t){return(e[t]^e[t+1]<<C^e[t+2]<<x)&B},N=new i(25e3),Q=new s(288),S=new s(32),L=0,T=0,H=(g=0,0),I=0,P=0;g<l;++g){var O=E(g),K=32767&g,z=_[O];if(j[K]=z,_[O]=K,I<=g){var V=l-g;if((L>7e3||H>24576)&&V>423){p=R(e,h,0,N,Q,S,T,H,P,g-P,p),H=L=T=0,P=g;for(var q=0;q<286;++q)Q[q]=0;for(q=0;q<30;++q)S[q]=0}var G=2,X=0,W=b,J=K-z&32767;if(V>2&&O==E(g-J))for(var Y=Math.min(w,V)-1,Z=Math.min(32767,g),$=Math.min(258,V);J<=Z&&--W&&K!=z;){if(e[g+G]==e[g+G-J]){for(var ee=0;ee<$&&e[g+ee]==e[g+ee-J];++ee);if(ee>G){if(G=ee,X=J,ee>Y)break;var te=Math.min(J,ee-2),re=0;for(q=0;q<te;++q){var ne=g-J+q+32768&32767,oe=ne-j[ne]+32768&32767;oe>re&&(re=oe,z=ne)}}}J+=(K=z)-(z=j[K])+32768&32767}if(X){N[H++]=268435456|f[G]<<18|m[X];var se=31&f[G],ie=31&m[X];T+=a[se]+A[ie],++Q[257+se],++S[ie],I=g+G,++L}else N[H++]=e[g],++Q[e[g]]}}p=R(e,h,c,N,Q,S,T,H,P,g-P,p),c||(p=k(h,p,D))}return U(d,0,n+F(p)+u)},z=function(){for(var e=new i(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&3988292384)^r>>>1;e[t]=r}return e}(),V=function(){var e=4294967295;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=z[255&r^t[n]]^r>>>8;e=r},d:function(){return 4294967295^e}}},q=function(){var e=1,t=0;return{p:function(r){for(var n=e,o=t,s=r.length,i=0;i!=s;){for(var a=Math.min(i+5552,s);i<a;++i)o+=n+=r[i];n%=65521,o%=65521}e=n,t=o},d:function(){return(e>>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},G=function(e,t,r,n,o){return K(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,r,n,!o)},X=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},W=function(e,t,r){for(var n=e(),o=e.toString(),s=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/ /g,"").split(","),i=0;i<n.length;++i){var a=n[i],A=s[i];if("function"==typeof a){t+=";"+A+"=";var u=a.toString();if(a.prototype)if(-1!=u.indexOf("[native code]")){var c=u.indexOf(" ",8)+1;t+=u.slice(c,u.indexOf("(",c))}else for(var l in t+=u,a.prototype)t+=";"+A+".prototype."+l+"="+a.prototype[l].toString();else t+=u}else r[A]=a}return[t,r]},J=[],Y=function(e,t,r,a){var A;if(!J[r]){for(var u="",c={},l=e.length-1,d=0;d<l;++d)u=(A=W(e[d],u,c))[0],c=A[1];J[r]=W(e[l],u,c)}var f=X({},J[r][1]);return function(e,t,r,o,s){var i=n[t]||(n[t]=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))),a=new Worker(i);return a.onerror=function(e){return s(e.error,null)},a.onmessage=function(e){return s(null,e.data)},a.postMessage(r,o),a}(J[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,f,function(e){var t=[];for(var r in e)(e[r]instanceof o||e[r]instanceof s||e[r]instanceof i)&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t}(f),a)},Z=function(){return[o,s,i,a,A,u,d,p,_,x,g,w,E,N,Q,F,U,S,xe,oe,se]},$=function(){return[o,s,i,a,A,u,f,m,j,b,C,B,g,M,D,w,L,T,H,I,P,O,k,R,F,U,K,G,Be,oe]},ee=function(){return[de,pe,le,V,z]},te=function(){return[fe,he]},re=function(){return[me,le,q]},ne=function(){return[ge]},oe=function(e){return postMessage(e,[e.buffer])},se=function(e){return e&&e.size&&new o(e.size)},ie=function(e,t,r,n,s,i){var a=Y(r,n,s,(function(e,t){a.terminate(),i(e,t)}));return t.consume||(e=new o(e)),a.postMessage([e,t],[e.buffer]),function(){a.terminate()}},ae=function(e){return e.ondata=function(e,t){return postMessage([e,t],[e.buffer])},function(t){return e.push(t.data[0],t.data[1])}},Ae=function(e,t,r,n,o){var s,i=Y(e,n,o,(function(e,r){e?(i.terminate(),t.ondata.call(t,e)):(r[1]&&i.terminate(),t.ondata.call(t,e,r[0],r[1]))}));i.postMessage(r),t.push=function(e,r){if(s)throw"stream finished";if(!t.ondata)throw"no stream handler";i.postMessage([e,s=r],[e.buffer])},t.terminate=function(){i.terminate()}},ue=function(e,t){return e[t]|e[t+1]<<8},ce=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+2*(e[t+3]<<23)},le=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},de=function(e,t){var r=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&le(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),r){e[3]=8;for(var n=0;n<=r.length;++n)e[n+10]=r.charCodeAt(n)}},fe=function(e){if(31!=e[0]||139!=e[1]||8!=e[2])throw"invalid gzip data";var t=e[3],r=10;4&t&&(r+=e[10]|2+(e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)},he=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16)+2*(e[t-1]<<23)},pe=function(e){return 10+(e.filename&&e.filename.length+1||0)},me=function(e,t){var r=t.level,n=0==r?0:r<6?1:9==r?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)},ge=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function ye(e,t){return t||"function"!=typeof e||(t=e,e={}),this.ondata=t,e}var ve=function(){function e(e,t){t||"function"!=typeof e||(t=e,e={}),this.ondata=t,this.o=e||{}}return e.prototype.p=function(e,t){this.ondata(G(e,this.o,0,0,!t),t)},e.prototype.push=function(e,t){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=t,this.p(e,t||!1)},e}(),we=function(){return function(e,t){Ae([$,function(){return[ae,ve]}],this,ye.call(this,e,t),(function(e){var t=new ve(e.data);onmessage=ae(t)}),6)}}();function be(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return ie(e,t,[$],(function(e){return oe(Be(e.data[0],e.data[1]))}),0,r)}function Be(e,t){return void 0===t&&(t={}),G(e,t,0,0)}var je=function(){function e(e){this.s={},this.p=new o(0),this.ondata=e}return e.prototype.e=function(e){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var t=this.p.length,r=new o(t+e.length);r.set(this.p),r.set(e,t),this.p=r},e.prototype.c=function(e){this.d=this.s.i=e||!1;var t=this.s.b,r=S(this.p,this.o,this.s);this.ondata(U(r,t,this.s.b),this.d),this.o=U(r,this.s.b-32768),this.s.b=this.o.length,this.p=U(this.p,this.s.p/8>>0),this.s.p&=7},e.prototype.push=function(e,t){this.e(e),this.c(t)},e}(),_e=function(){return function(e){this.ondata=e,Ae([Z,function(){return[ae,je]}],this,0,(function(){var e=new je;onmessage=ae(e)}),7)}}();function Ce(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return ie(e,t,[Z],(function(e){return oe(xe(e.data[0],se(e.data[1])))}),1,r)}function xe(e,t){return S(e,t)}var Ee=function(){function e(e,t){this.c=V(),this.l=0,this.v=1,ve.call(this,e,t)}return e.prototype.push=function(e,t){ve.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e),this.l+=e.length;var r=G(e,this.o,this.v&&pe(this.o),t&&8,!t);this.v&&(de(r,this.o),this.v=0),t&&(le(r,r.length-8,this.c.d()),le(r,r.length-4,this.l)),this.ondata(r,t)},e}(),Ne=function(){return function(e,t){Ae([$,ee,function(){return[ae,ve,Ee]}],this,ye.call(this,e,t),(function(e){var t=new Ee(e.data);onmessage=ae(t)}),8)}}();function Qe(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return ie(e,t,[$,ee,function(){return[Fe]}],(function(e){return oe(Fe(e.data[0],e.data[1]))}),2,r)}function Fe(e,t){void 0===t&&(t={});var r=V(),n=e.length;r.p(e);var o=G(e,t,pe(t),8),s=o.length;return de(o,t),le(o,s-8,r.d()),le(o,s-4,n),o}var Ue=function(){function e(e){this.v=1,je.call(this,e)}return e.prototype.push=function(e,t){if(je.prototype.e.call(this,e),this.v){var r=fe(this.p);if(r>=this.p.length&&!t)return;this.p=this.p.subarray(r),this.v=0}if(t){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}je.prototype.c.call(this,t)},e}(),Se=function(){return function(e){this.ondata=e,Ae([Z,te,function(){return[ae,je,Ue]}],this,0,(function(){var e=new Ue;onmessage=ae(e)}),9)}}();function Le(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return ie(e,t,[Z,te,function(){return[Te]}],(function(e){return oe(Te(e.data[0]))}),3,r)}function Te(e,t){return S(e.subarray(fe(e),-8),t||new o(he(e)))}var He=function(){function e(e,t){this.c=q(),this.v=1,ve.call(this,e,t)}return e.prototype.push=function(e,t){ve.prototype.push.call(this,e,t)},e.prototype.p=function(e,t){this.c.p(e);var r=G(e,this.o,this.v&&2,t&&4,!t);this.v&&(me(r,this.o),this.v=0),t&&le(r,r.length-4,this.c.d()),this.ondata(r,t)},e}(),Ie=function(){return function(e,t){Ae([$,re,function(){return[ae,ve,He]}],this,ye.call(this,e,t),(function(e){var t=new He(e.data);onmessage=ae(t)}),10)}}();function Pe(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return ie(e,t,[$,re,function(){return[Oe]}],(function(e){return oe(Oe(e.data[0],e.data[1]))}),4,r)}function Oe(e,t){void 0===t&&(t={});var r=q();r.p(e);var n=G(e,t,2,4);return me(n,t),le(n,n.length-4,r.d()),n}var ke=function(){function e(e){this.v=1,je.call(this,e)}return e.prototype.push=function(e,t){if(je.prototype.e.call(this,e),this.v){if(this.p.length<2&&!t)return;this.p=this.p.subarray(2),this.v=0}if(t){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}je.prototype.c.call(this,t)},e}(),Re=function(){return function(e){this.ondata=e,Ae([Z,ne,function(){return[ae,je,ke]}],this,0,(function(){var e=new ke;onmessage=ae(e)}),11)}}();function Me(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return ie(e,t,[Z,ne,function(){return[De]}],(function(e){return oe(De(e.data[0],se(e.data[1])))}),5,r)}function De(e,t){return S((ge(e),e.subarray(2,-4)),t)}var Ke=function(){function e(e){this.G=Ue,this.I=je,this.Z=ke,this.ondata=e}return e.prototype.push=function(e,t){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(e,t);else{if(this.p&&this.p.length){var r=new o(this.p.length+e.length);r.set(this.p),r.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,s=function(){n.ondata.apply(n,arguments)};this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(s):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(s):new this.Z(s),this.s.push(this.p,t),this.p=null}}},e}(),ze=function(){function e(e){this.G=Se,this.I=_e,this.Z=Re,this.ondata=e}return e.prototype.push=function(e,t){Ke.prototype.push.call(this,e,t)},e}();function Ve(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";return 31==e[0]&&139==e[1]&&8==e[2]?Le(e,t,r):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?Ce(e,t,r):Me(e,t,r)}function qe(e,t){return 31==e[0]&&139==e[1]&&8==e[2]?Te(e,t):8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31?xe(e,t):De(e,t)}var Ge=function(e,t,r,n){for(var s in e){var i=e[s],a=t+s;i instanceof o?r[a]=[i,n]:Array.isArray(i)?r[a]=[i[0],X(n,i[1])]:Ge(i,a+"/",r,n)}};function Xe(e,t){var r=e.length;if(!t&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var n=new o(e.length+(e.length>>>1)),s=0,i=function(e){n[s++]=e},a=0;a<r;++a){if(s+5>n.length){var A=new o(s+8+(r-a<<1));A.set(n),n=A}var u=e.charCodeAt(a);u<128||t?i(u):u<2048?(i(192|u>>>6),i(128|63&u)):u>55295&&u<57344?(i(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++a))>>>18),i(128|u>>>12&63),i(128|u>>>6&63),i(128|63&u)):(i(224|u>>>12),i(128|u>>>6&63),i(128|63&u))}return U(n,0,s)}function We(e,t){var r="";if(!t&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(e);for(var n=0;n<e.length;){var o=e[n++];o<128||t?r+=String.fromCharCode(o):o<224?r+=String.fromCharCode((31&o)<<6|63&e[n++]):o<240?r+=String.fromCharCode((15&o)<<12|(63&e[n++])<<6|63&e[n++]):(o=((15&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}return r}var Je=function(e,t){return t+30+ue(e,t+26)+ue(e,t+28)},Ye=function(e,t,r){var n=ue(e,t+28),o=We(e.subarray(t+46,t+46+n),!(2048&ue(e,t+8))),s=t+46+n,i=r?Ze(e,s):[ce(e,t+20),ce(e,t+24),ce(e,t+42)],a=i[0],A=i[1],u=i[2];return[ue(e,t+10),a,A,o,s+ue(e,t+30)+ue(e,t+32),u]},Ze=function(e,t){for(;1!=ue(e,t);t+=4+ue(e,t+2));return[ce(e,t+12),ce(e,t+4),ce(e,t+20)]},$e=function(e,t,r,n,o,s,i,a,A,u){var c=s.length,l=n.length;le(e,t,null!=A?33639248:67324752),t+=4,null!=A&&(e[t]=20,t+=2),e[t]=20,t+=2,e[t++]=8==u&&(1==a.level?6:a.level<6?4:9==a.level?2:0),e[t++]=i&&8,e[t]=u,t+=2;var d=new Date(a.mtime||Date.now()),f=d.getFullYear()-1980;if(f<0||f>119)throw"date not in range 1980-2099";le(e,t,2*(f<<24)|d.getMonth()+1<<21|d.getDate()<<16|d.getHours()<<11|d.getMinutes()<<5|d.getSeconds()>>>1),le(e,t+=4,r),le(e,t+4,l),le(e,t+8,o),le(e,t+12,c),t+=16,null!=A&&(le(e,t+=10,A),t+=4),e.set(s,t),t+=c,null==A&&e.set(n,t)},et=function(e,t,r,n,o){le(e,t,101010256),le(e,t+8,r),le(e,t+10,r),le(e,t+12,n),le(e,t+16,o)};function tt(e,t,r){if(r||(r=t,t={}),"function"!=typeof r)throw"no callback";var n={};Ge(e,"",n,t);var s=Object.keys(n),i=s.length,a=0,A=0,u=i,c=new Array(i),l=[],d=function(){for(var e=0;e<l.length;++e)l[e]()},f=function(){var e=new o(A+22),t=a,n=A-a;A=0;for(var s=0;s<u;++s){var i=c[s];try{$e(e,A,i.c,i.d,i.m,i.n,i.u,i.p,null,i.t),$e(e,a,i.c,i.d,i.m,i.n,i.u,i.p,A,i.t),a+=46+i.n.length,A+=30+i.n.length+i.d.length}catch(e){return r(e,null)}}et(e,a,c.length,n,t),r(null,e)};i||f();for(var h=function(e){var t=s[e],o=n[t],u=o[0],h=o[1],p=V(),m=u.length;p.p(u);var g=Xe(t),y=g.length,v=0==h.level?0:8,w=function(n,o){if(n)d(),r(n,null);else{var s=o.length;c[e]={t:v,d:o,m:m,c:p.d(),u:t.length!=s,n:g,p:h},a+=30+y+s,A+=76+2*y+s,--i||f()}};if(g.length>65535&&w("filename too long",null),v)if(m<16e4)try{w(null,Be(u,h))}catch(e){w(e,null)}else l.push(be(u,h,w));else w(null,u)},p=0;p<u;++p)h(p);return d}function rt(e,t){void 0===t&&(t={});var r={},n=[];Ge(e,"",r,t);var s=0,i=0;for(var a in r){var A=r[a],u=A[0],c=A[1],l=0==c.level?0:8,d=Xe(a),f=d.length;if(d.length>65535)throw"filename too long";var h=l?Be(u,c):u,p=h.length,m=V();m.p(u),n.push({t:l,d:h,m:u.length,c:m.d(),u:a.length!=f,n:d,o:s,p:c}),s+=30+f+p,i+=76+2*f+p}for(var g=new o(i+22),y=s,v=i-s,w=0;w<n.length;++w){var b=n[w];$e(g,b.o,b.c,b.d,b.m,b.n,b.u,b.p,null,b.t),$e(g,s,b.c,b.d,b.m,b.n,b.u,b.p,b.o,b.t),s+=46+b.n.length}return et(g,s,n.length,v,y),g}function nt(e,t){if("function"!=typeof t)throw"no callback";for(var r=[],n=function(){for(var e=0;e<r.length;++e)r[e]()},s={},i=e.length-22;101010256!=ce(e,i);--i)if(!i||e.length-i>65558)return void t("invalid zip file",null);var a=ue(e,i+8);a||t(null,{});var A=a,u=ce(e,i+16),c=4294967295==u;if(c){if(i=ce(e,i-12),101075792!=ce(e,i))throw"invalid zip file";A=a=ce(e,i+32),u=ce(e,i+48)}for(var l=function(i){var A=Ye(e,u,c),l=A[0],d=A[1],f=A[2],h=A[3],p=A[4],m=A[5],g=Je(e,m);u=p;var y=function(e,r){e?(n(),t(e,null)):(s[h]=r,--a||t(null,s))};if(l)if(8==l){var v=e.subarray(g,g+d);if(d<32e4)try{y(null,xe(v,new o(f)))}catch(e){y(e,null)}else r.push(Ce(v,{size:f},y))}else y("unknown compression type "+l,null);else y(null,U(e,g,g+d))},d=0;d<A;++d)l();return n}function ot(e){for(var t={},r=e.length-22;101010256!=ce(e,r);--r)if(!r||e.length-r>65558)throw"invalid zip file";var n=ue(e,r+8);if(!n)return{};var s=ce(e,r+16),i=4294967295==s;if(i){if(r=ce(e,r-12),101075792!=ce(e,r))throw"invalid zip file";n=ce(e,r+32),s=ce(e,r+48)}for(var a=0;a<n;++a){var A=Ye(e,s,i),u=A[0],c=A[1],l=A[2],d=A[3],f=A[4],h=A[5],p=Je(e,h);if(s=f,u){if(8!=u)throw"unknown compression type "+u;t[d]=xe(e.subarray(p,p+c),new o(l))}else t[d]=U(e,p,p+c)}return t}},"./node_modules/html2canvas/dist/html2canvas.js":function(e){e.exports=function(){"use strict";var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};function t(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function n(e,t,r,n){return new(r||(r=Promise))((function(o,s){function i(e){try{A(n.next(e))}catch(e){s(e)}}function a(e){try{A(n.throw(e))}catch(e){s(e)}}function A(e){e.done?o(e.value):new r((function(t){t(e.value)})).then(i,a)}A((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}for(var s=function(){function e(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(t,r,n,o){return new e(this.left+t,this.top+r,this.width+n,this.height+o)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e}(),i=function(e){return s.fromClientRect(e.getBoundingClientRect())},a=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var s=e.charCodeAt(r++);56320==(64512&s)?t.push(((1023&o)<<10)+(1023&s)+65536):(t.push(o),r--)}else t.push(o)}return t},A=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],o=-1,s="";++o<r;){var i=e[o];i<=65535?n.push(i):(i-=65536,n.push(55296+(i>>10),i%1024+56320)),(o+1===r||n.length>16384)&&(s+=String.fromCharCode.apply(String,n),n.length=0)}return s},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="undefined"==typeof Uint8Array?[]:new Uint8Array(256),l=0;l<u.length;l++)c[u.charCodeAt(l)]=l;var d,f,h,p,m,g,y,v,w,b=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},B=function(){function e(e,t,r,n,o,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=o,this.data=s}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),j=10,_=13,C=15,x=17,E=18,N=19,Q=20,F=21,U=22,S=24,L=25,T=26,H=27,I=28,P=30,O=32,k=33,R=34,M=35,D=37,K=38,z=39,V=40,q=42,G="×",X="÷",W=(m=function(e){var t,r,n,o,s,i=.75*e.length,a=e.length,A=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),l=Array.isArray(u)?u:new Uint8Array(u);for(t=0;t<a;t+=4)r=c[e.charCodeAt(t)],n=c[e.charCodeAt(t+1)],o=c[e.charCodeAt(t+2)],s=c[e.charCodeAt(t+3)],l[A++]=r<<2|n>>4,l[A++]=(15&n)<<4|o>>2,l[A++]=(3&o)<<6|63&s;return u}("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),g=Array.isArray(m)?function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r}(m):new Uint32Array(m),y=Array.isArray(m)?function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r}(m):new Uint16Array(m),v=b(y,12,g[4]/2),w=2===g[5]?b(y,(24+g[4])/2):(f=g,h=Math.ceil((24+g[4])/4),f.slice?f.slice(h,p):new Uint32Array(Array.prototype.slice.call(f,h,p))),new B(g[0],g[1],g[2],g[3],v,w)),J=[P,36],Y=[1,2,3,5],Z=[j,8],$=[H,T],ee=Y.concat(Z),te=[K,z,V,R,M],re=[C,_],ne=function(e,t,r,n){var o=n[r];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var s=r;s<=n.length;){if((A=n[++s])===t)return!0;if(A!==j)break}if(o===j)for(s=r;s>0;){var i=n[--s];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var a=r;a<=n.length;){var A;if((A=n[++a])===t)return!0;if(A!==j)break}if(i!==j)break}return!1},oe=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n!==j)return n;r--}return 0},se=function(e,t,r,n,o){if(0===r[n])return G;var s=n-1;if(Array.isArray(o)&&!0===o[s])return G;var i=s-1,a=s+1,A=t[s],u=i>=0?t[i]:0,c=t[a];if(2===A&&3===c)return G;if(-1!==Y.indexOf(A))return"!";if(-1!==Y.indexOf(c))return G;if(-1!==Z.indexOf(c))return G;if(8===oe(s,t))return X;if(11===W.get(e[s])&&(c===D||c===O||c===k))return G;if(7===A||7===c)return G;if(9===A)return G;if(-1===[j,_,C].indexOf(A)&&9===c)return G;if(-1!==[x,E,N,S,I].indexOf(c))return G;if(oe(s,t)===U)return G;if(ne(23,U,s,t))return G;if(ne([x,E],F,s,t))return G;if(ne(12,12,s,t))return G;if(A===j)return X;if(23===A||23===c)return G;if(16===c||16===A)return X;if(-1!==[_,C,F].indexOf(c)||14===A)return G;if(36===u&&-1!==re.indexOf(A))return G;if(A===I&&36===c)return G;if(c===Q&&-1!==J.concat(Q,N,L,D,O,k).indexOf(A))return G;if(-1!==J.indexOf(c)&&A===L||-1!==J.indexOf(A)&&c===L)return G;if(A===H&&-1!==[D,O,k].indexOf(c)||-1!==[D,O,k].indexOf(A)&&c===T)return G;if(-1!==J.indexOf(A)&&-1!==$.indexOf(c)||-1!==$.indexOf(A)&&-1!==J.indexOf(c))return G;if(-1!==[H,T].indexOf(A)&&(c===L||-1!==[U,C].indexOf(c)&&t[a+1]===L)||-1!==[U,C].indexOf(A)&&c===L||A===L&&-1!==[L,I,S].indexOf(c))return G;if(-1!==[L,I,S,x,E].indexOf(c))for(var l=s;l>=0;){if((d=t[l])===L)return G;if(-1===[I,S].indexOf(d))break;l--}if(-1!==[H,T].indexOf(c))for(l=-1!==[x,E].indexOf(A)?i:s;l>=0;){var d;if((d=t[l])===L)return G;if(-1===[I,S].indexOf(d))break;l--}if(K===A&&-1!==[K,z,R,M].indexOf(c)||-1!==[z,R].indexOf(A)&&-1!==[z,V].indexOf(c)||-1!==[V,M].indexOf(A)&&c===V)return G;if(-1!==te.indexOf(A)&&-1!==[Q,T].indexOf(c)||-1!==te.indexOf(c)&&A===H)return G;if(-1!==J.indexOf(A)&&-1!==J.indexOf(c))return G;if(A===S&&-1!==J.indexOf(c))return G;if(-1!==J.concat(L).indexOf(A)&&c===U||-1!==J.concat(L).indexOf(c)&&A===E)return G;if(41===A&&41===c){for(var f=r[s],h=1;f>0&&41===t[--f];)h++;if(h%2!=0)return G}return A===O&&c===k?G:X},ie=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=function(e,t){void 0===t&&(t="strict");var r=[],n=[],o=[];return e.forEach((function(e,s){var i=W.get(e);if(i>50?(o.push(!0),i-=50):o.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return n.push(s),r.push(16);if(4===i||11===i){if(0===s)return n.push(s),r.push(P);var a=r[s-1];return-1===ee.indexOf(a)?(n.push(n[s-1]),r.push(a)):(n.push(s),r.push(P))}return n.push(s),31===i?r.push("strict"===t?F:D):i===q||29===i?r.push(P):43===i?e>=131072&&e<=196605||e>=196608&&e<=262141?r.push(D):r.push(P):void r.push(i)})),[n,r,o]}(e,t.lineBreak),n=r[0],o=r[1],s=r[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(o=o.map((function(e){return-1!==[L,P,q].indexOf(e)?D:e}))),[n,o,"keep-all"===t.wordBreak?s.map((function(t,r){return t&&e[r]>=19968&&e[r]<=40959})):void 0]},ae=function(){function e(e,t,r,n){this.codePoints=e,this.required="!"===t,this.start=r,this.end=n}return e.prototype.slice=function(){return A.apply(void 0,this.codePoints.slice(this.start,this.end))},e}();!function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(d||(d={}));var Ae=45,ue=43,ce=-1,le=function(e){return e>=48&&e<=57},de=function(e){return le(e)||e>=65&&e<=70||e>=97&&e<=102},fe=function(e){return 10===e||9===e||32===e},he=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},pe=function(e){return he(e)||le(e)||e===Ae},me=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},ge=function(e,t){return 92===e&&10!==t},ye=function(e,t,r){return e===Ae?he(t)||ge(t,r):!!he(e)||!(92!==e||!ge(e,t))},ve=function(e,t,r){return e===ue||e===Ae?!!le(t)||46===t&&le(r):le(46===e?t:e)},we=function(e){var t=0,r=1;e[t]!==ue&&e[t]!==Ae||(e[t]===Ae&&(r=-1),t++);for(var n=[];le(e[t]);)n.push(e[t++]);var o=n.length?parseInt(A.apply(void 0,n),10):0;46===e[t]&&t++;for(var s=[];le(e[t]);)s.push(e[t++]);var i=s.length,a=i?parseInt(A.apply(void 0,s),10):0;69!==e[t]&&101!==e[t]||t++;var u=1;e[t]!==ue&&e[t]!==Ae||(e[t]===Ae&&(u=-1),t++);for(var c=[];le(e[t]);)c.push(e[t++]);var l=c.length?parseInt(A.apply(void 0,c),10):0;return r*(o+a*Math.pow(10,-i))*Math.pow(10,u*l)},be={type:d.LEFT_PARENTHESIS_TOKEN},Be={type:d.RIGHT_PARENTHESIS_TOKEN},je={type:d.COMMA_TOKEN},_e={type:d.SUFFIX_MATCH_TOKEN},Ce={type:d.PREFIX_MATCH_TOKEN},xe={type:d.COLUMN_TOKEN},Ee={type:d.DASH_MATCH_TOKEN},Ne={type:d.INCLUDE_MATCH_TOKEN},Qe={type:d.LEFT_CURLY_BRACKET_TOKEN},Fe={type:d.RIGHT_CURLY_BRACKET_TOKEN},Ue={type:d.SUBSTRING_MATCH_TOKEN},Se={type:d.BAD_URL_TOKEN},Le={type:d.BAD_STRING_TOKEN},Te={type:d.CDO_TOKEN},He={type:d.CDC_TOKEN},Ie={type:d.COLON_TOKEN},Pe={type:d.SEMICOLON_TOKEN},Oe={type:d.LEFT_SQUARE_BRACKET_TOKEN},ke={type:d.RIGHT_SQUARE_BRACKET_TOKEN},Re={type:d.WHITESPACE_TOKEN},Me={type:d.EOF_TOKEN},De=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(a(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Me;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(pe(t)||ge(r,n)){var o=ye(t,r,n)?2:1,s=this.consumeName();return{type:d.HASH_TOKEN,value:s,flags:o}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),_e;break;case 39:return this.consumeStringToken(39);case 40:return be;case 41:return Be;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ue;break;case ue:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return je;case Ae:var i=e,a=this.peekCodePoint(0),u=this.peekCodePoint(1);if(ve(i,a,u))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ye(i,a,u))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===Ae&&62===u)return this.consumeCodePoint(),this.consumeCodePoint(),He;break;case 46:if(ve(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(42===c&&47===(c=this.consumeCodePoint()))return this.consumeToken();if(c===ce)return this.consumeToken()}break;case 58:return Ie;case 59:return Pe;case 60:if(33===this.peekCodePoint(0)&&this.peekCodePoint(1)===Ae&&this.peekCodePoint(2)===Ae)return this.consumeCodePoint(),this.consumeCodePoint(),Te;break;case 64:var l=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(ye(l,f,h))return s=this.consumeName(),{type:d.AT_KEYWORD_TOKEN,value:s};break;case 91:return Oe;case 92:if(ge(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return ke;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ce;break;case 123:return Qe;case 125:return Fe;case 117:case 85:var p=this.peekCodePoint(0),m=this.peekCodePoint(1);return p!==ue||!de(m)&&63!==m||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ee;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),xe;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ne;break;case ce:return Me}return fe(e)?(this.consumeWhiteSpace(),Re):le(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):he(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:d.DELIM_TOKEN,value:A(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();de(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(A.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),o=parseInt(A.apply(void 0,e.map((function(e){return 63===e?70:e}))),16);return{type:d.UNICODE_RANGE_TOKEN,start:n,end:o}}var s=parseInt(A.apply(void 0,e),16);if(this.peekCodePoint(0)===Ae&&de(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];de(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return o=parseInt(A.apply(void 0,i),16),{type:d.UNICODE_RANGE_TOKEN,start:s,end:o}}return{type:d.UNICODE_RANGE_TOKEN,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:d.FUNCTION_TOKEN,value:e}):{type:d.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce)return{type:d.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===d.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:d.URL_TOKEN,value:r.value}):(this.consumeBadUrlRemnants(),Se)}for(;;){var n=this.consumeCodePoint();if(n===ce||41===n)return{type:d.URL_TOKEN,value:A.apply(void 0,e)};if(fe(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ce||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:d.URL_TOKEN,value:A.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Se);if(34===n||39===n||40===n||me(n))return this.consumeBadUrlRemnants(),Se;if(92===n){if(!ge(n,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Se;e.push(this.consumeEscapedCodePoint())}else e.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;fe(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||e===ce)return;ge(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var r=Math.min(6e4,e);t+=A.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",r=0;;){var n=this._value[r];if(n===ce||void 0===n||n===e)return t+=this.consumeStringSlice(r),{type:d.STRING_TOKEN,value:t};if(10===n)return this._value.splice(0,r),Le;if(92===n){var o=this._value[r+1];o!==ce&&void 0!==o&&(10===o?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):ge(n,o)&&(t+=this.consumeStringSlice(r),t+=A(this.consumeEscapedCodePoint()),r=-1))}r++}},e.prototype.consumeNumber=function(){var e=[],t=4,r=this.peekCodePoint(0);for(r!==ue&&r!==Ae||e.push(this.consumeCodePoint());le(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(46===r&&le(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;le(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var o=this.peekCodePoint(2);if((69===r||101===r)&&((n===ue||n===Ae)&&le(o)||le(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;le(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[we(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),o=this.peekCodePoint(1),s=this.peekCodePoint(2);if(ye(n,o,s)){var i=this.consumeName();return{type:d.DIMENSION_TOKEN,number:t,flags:r,unit:i}}return 37===n?(this.consumeCodePoint(),{type:d.PERCENTAGE_TOKEN,number:t,flags:r}):{type:d.NUMBER_TOKEN,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(de(e)){for(var t=A(e);de(this.peekCodePoint(0))&&t.length<6;)t+=A(this.consumeCodePoint());fe(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return 0===r||function(e){return e>=55296&&e<=57343}(r)||r>1114111?65533:r}return e===ce?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(pe(t))e+=A(t);else{if(!ge(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=A(this.consumeEscapedCodePoint())}}},e}(),Ke=function(){function e(e){this._tokens=e}return e.create=function(t){var r=new De;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===d.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===d.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===d.WHITESPACE_TOKEN);if(e.type===d.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===d.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case d.LEFT_CURLY_BRACKET_TOKEN:case d.LEFT_SQUARE_BRACKET_TOKEN:case d.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case d.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===d.EOF_TOKEN||Ze(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:d.FUNCTION};;){var r=this.consumeToken();if(r.type===d.EOF_TOKEN||r.type===d.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Me:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),ze=function(e){return e.type===d.DIMENSION_TOKEN},Ve=function(e){return e.type===d.NUMBER_TOKEN},qe=function(e){return e.type===d.IDENT_TOKEN},Ge=function(e){return e.type===d.STRING_TOKEN},Xe=function(e,t){return qe(e)&&e.value===t},We=function(e){return e.type!==d.WHITESPACE_TOKEN},Je=function(e){return e.type!==d.WHITESPACE_TOKEN&&e.type!==d.COMMA_TOKEN},Ye=function(e){var t=[],r=[];return e.forEach((function(e){if(e.type===d.COMMA_TOKEN){if(0===r.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(r),void(r=[])}e.type!==d.WHITESPACE_TOKEN&&r.push(e)})),r.length&&t.push(r),t},Ze=function(e,t){return t===d.LEFT_CURLY_BRACKET_TOKEN&&e.type===d.RIGHT_CURLY_BRACKET_TOKEN||t===d.LEFT_SQUARE_BRACKET_TOKEN&&e.type===d.RIGHT_SQUARE_BRACKET_TOKEN||t===d.LEFT_PARENTHESIS_TOKEN&&e.type===d.RIGHT_PARENTHESIS_TOKEN},$e=function(e){return e.type===d.NUMBER_TOKEN||e.type===d.DIMENSION_TOKEN},et=function(e){return e.type===d.PERCENTAGE_TOKEN||$e(e)},tt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},rt={type:d.NUMBER_TOKEN,number:0,flags:4},nt={type:d.PERCENTAGE_TOKEN,number:50,flags:4},ot={type:d.PERCENTAGE_TOKEN,number:100,flags:4},st=function(e,t,r){var n=e[0],o=e[1];return[it(n,t),it(void 0!==o?o:n,r)]},it=function(e,t){if(e.type===d.PERCENTAGE_TOKEN)return e.number/100*t;if(ze(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},at="grad",At="turn",ut=function(e){if(e.type===d.DIMENSION_TOKEN)switch(e.unit){case"deg":return Math.PI*e.number/180;case at:return Math.PI/200*e.number;case"rad":return e.number;case At:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},ct=function(e){return e.type===d.DIMENSION_TOKEN&&("deg"===e.unit||e.unit===at||"rad"===e.unit||e.unit===At)},lt=function(e){switch(e.filter(qe).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[rt,rt];case"to top":case"bottom":return dt(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[rt,ot];case"to right":case"left":return dt(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ot,ot];case"to bottom":case"top":return dt(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ot,rt];case"to left":case"right":return dt(270)}return 0},dt=function(e){return Math.PI*e/180},ft=function(e){if(e.type===d.FUNCTION){var t=jt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===d.HASH_TOKEN){if(3===e.value.length){var r=e.value.substring(0,1),n=e.value.substring(1,2),o=e.value.substring(2,3);return mt(parseInt(r+r,16),parseInt(n+n,16),parseInt(o+o,16),1)}if(4===e.value.length){r=e.value.substring(0,1),n=e.value.substring(1,2),o=e.value.substring(2,3);var s=e.value.substring(3,4);return mt(parseInt(r+r,16),parseInt(n+n,16),parseInt(o+o,16),parseInt(s+s,16)/255)}if(6===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),o=e.value.substring(4,6),mt(parseInt(r,16),parseInt(n,16),parseInt(o,16),1);if(8===e.value.length)return r=e.value.substring(0,2),n=e.value.substring(2,4),o=e.value.substring(4,6),s=e.value.substring(6,8),mt(parseInt(r,16),parseInt(n,16),parseInt(o,16),parseInt(s,16)/255)}if(e.type===d.IDENT_TOKEN){var i=_t[e.value.toUpperCase()];if(void 0!==i)return i}return _t.TRANSPARENT},ht=function(e){return 0==(255&e)},pt=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,o=255&e>>24;return t<255?"rgba("+o+","+n+","+r+","+t/255+")":"rgb("+o+","+n+","+r+")"},mt=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(255*n)<<0)>>>0},gt=function(e,t){if(e.type===d.NUMBER_TOKEN)return e.number;if(e.type===d.PERCENTAGE_TOKEN){var r=3===t?1:255;return 3===t?e.number/100*r:Math.round(e.number/100*r)}return 0},yt=function(e){var t=e.filter(Je);if(3===t.length){var r=t.map(gt),n=r[0],o=r[1],s=r[2];return mt(n,o,s,1)}if(4===t.length){var i=t.map(gt),a=(n=i[0],o=i[1],s=i[2],i[3]);return mt(n,o,s,a)}return 0};function vt(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<.5?t:r<2/3?6*(t-e)*(2/3-r)+e:e}var wt,bt,Bt=function(e){var t=e.filter(Je),r=t[0],n=t[1],o=t[2],s=t[3],i=(r.type===d.NUMBER_TOKEN?dt(r.number):ut(r))/(2*Math.PI),a=et(n)?n.number/100:0,A=et(o)?o.number/100:0,u=void 0!==s&&et(s)?it(s,1):1;if(0===a)return mt(255*A,255*A,255*A,1);var c=A<=.5?A*(a+1):A+a-A*a,l=2*A-c,f=vt(l,c,i+1/3),h=vt(l,c,i),p=vt(l,c,i-1/3);return mt(255*f,255*h,255*p,u)},jt={hsl:Bt,hsla:Bt,rgb:yt,rgba:yt},_t={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(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"})(wt||(wt={})),function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(bt||(bt={}));var Ct,xt={name:"background-clip",initialValue:"border-box",prefix:!1,type:wt.LIST,parse:function(e){return e.map((function(e){if(qe(e))switch(e.value){case"padding-box":return bt.PADDING_BOX;case"content-box":return bt.CONTENT_BOX}return bt.BORDER_BOX}))}},Et={name:"background-color",initialValue:"transparent",prefix:!1,type:wt.TYPE_VALUE,format:"color"},Nt=function(e){var t=ft(e[0]),r=e[1];return r&&et(r)?{color:t,stop:r}:{color:t,stop:null}},Qt=function(e,t){var r=e[0],n=e[e.length-1];null===r.stop&&(r.stop=rt),null===n.stop&&(n.stop=ot);for(var o=[],s=0,i=0;i<e.length;i++){var a=e[i].stop;if(null!==a){var A=it(a,t);A>s?o.push(A):o.push(s),s=A}else o.push(null)}var u=null;for(i=0;i<o.length;i++){var c=o[i];if(null===c)null===u&&(u=i);else if(null!==u){for(var l=i-u,d=(c-o[u-1])/(l+1),f=1;f<=l;f++)o[u+f-1]=d*f;u=null}}return e.map((function(e,r){return{color:e.color,stop:Math.max(Math.min(1,o[r]/t),0)}}))},Ft=function(e,t,r){var n="number"==typeof e?e:function(e,t,r){var n=t/2,o=r/2,s=it(e[0],t)-n,i=o-it(e[1],r);return(Math.atan2(i,s)+2*Math.PI)%(2*Math.PI)}(e,t,r),o=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),s=t/2,i=r/2,a=o/2,A=Math.sin(n-Math.PI/2)*a,u=Math.cos(n-Math.PI/2)*a;return[o,s-u,s+u,i-A,i+A]},Ut=function(e,t){return Math.sqrt(e*e+t*t)},St=function(e,t,r,n,o){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var s=t[0],i=t[1],a=Ut(r-s,n-i);return(o?a<e.optimumDistance:a>e.optimumDistance)?{optimumCorner:t,optimumDistance:a}:e}),{optimumDistance:o?1/0:-1/0,optimumCorner:null}).optimumCorner},Lt=function(e){var t=dt(180),r=[];return Ye(e).forEach((function(e,n){if(0===n){var o=e[0];if(o.type===d.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(t=lt(e));if(ct(o))return void(t=(ut(o)+dt(270))%dt(360))}var s=Nt(e);r.push(s)})),{angle:t,stops:r,type:Ct.LINEAR_GRADIENT}},Tt=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ht=function(e,t,r,n,o){var s="http://www.w3.org/2000/svg",i=document.createElementNS(s,"svg"),a=document.createElementNS(s,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.setAttributeNS(null,"x",r.toString()),a.setAttributeNS(null,"y",n.toString()),a.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(a),a.appendChild(o),i},It=function(e){return new Promise((function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},Pt={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height="123px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),o=Math.round(n.height);if(e.body.removeChild(r),123===o)return!0}}return!1}(document);return Object.defineProperty(Pt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Pt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var o=new Image,s=t.toDataURL();o.src=s;var i=Ht(r,r,0,0,o);return n.fillStyle="red",n.fillRect(0,0,r,r),It(i).then((function(t){n.drawImage(t,0,0);var o=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var i=e.createElement("div");return i.style.backgroundImage="url("+s+")",i.style.height="100px",Tt(o)?It(Ht(r,r,0,0,i)):Promise.reject(!1)})).then((function(e){return n.drawImage(e,0,0),Tt(n.getImageData(0,0,r,r).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(Pt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Pt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Pt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Pt,"SUPPORT_CORS_XHR",{value:e}),e}},Ot=function(){function e(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var r=e.instances[t];if(void 0===r)throw new Error("No logger instance found with id "+t);return r},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e}(),kt=function(){function e(){}return e.create=function(t,r){return e._caches[t]=new Rt(t,r)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var r=e._caches[t];if(void 0!==r)return r;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e}(),Rt=function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Gt(e)||zt(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return n(this,void 0,void 0,(function(){var t,r,n,s,i=this;return o(this,(function(o){switch(o.label){case 0:return t=kt.isSameOrigin(e),r=!Vt(e)&&!0===this._options.useCORS&&Pt.SUPPORT_CORS_IMAGES&&!t,n=!Vt(e)&&!t&&"string"==typeof this._options.proxy&&Pt.SUPPORT_CORS_XHR&&!r,t||!1!==this._options.allowTaint||Vt(e)||n||r?(s=e,n?[4,this.proxy(s)]:[3,2]):[2];case 1:s=o.sent(),o.label=2;case 2:return Ot.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var n=new Image;n.onload=function(){return e(n)},n.onerror=t,(qt(s)||r)&&(n.crossOrigin="anonymous"),n.src=s,!0===n.complete&&setTimeout((function(){return e(n)}),500),i._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")}),i._options.imageTimeout)}))];case 3:return[2,o.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise((function(o,s){var i=Pt.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;if(a.onload=function(){if(200===a.status)if("text"===i)o(a.response);else{var e=new FileReader;e.addEventListener("load",(function(){return o(e.result)}),!1),e.addEventListener("error",(function(e){return s(e)}),!1),e.readAsDataURL(a.response)}else s("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=s,a.open("GET",r+"?url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&a instanceof XMLHttpRequest&&(a.responseType=i),t._options.imageTimeout){var A=t._options.imageTimeout;a.timeout=A,a.ontimeout=function(){return s("Timed out ("+A+"ms) proxying "+n)}}a.send()}))},e}(),Mt=/^data:image\/svg\+xml/i,Dt=/^data:image\/.*;base64,/i,Kt=/^data:image\/.*/i,zt=function(e){return Pt.SUPPORT_SVG_DRAWING||!Xt(e)},Vt=function(e){return Kt.test(e)},qt=function(e){return Dt.test(e)},Gt=function(e){return"blob"===e.substr(0,4)},Xt=function(e){return"svg"===e.substr(-3).toLowerCase()||Mt.test(e)},Wt="closest-side",Jt="farthest-side",Yt="closest-corner",Zt="farthest-corner",$t="circle",er="ellipse",tr="cover",rr="contain",nr=function(e){var t=or.CIRCLE,r=sr.FARTHEST_CORNER,n=[],o=[];return Ye(e).forEach((function(e,s){var i=!0;if(0===s?i=e.reduce((function(e,t){if(qe(t))switch(t.value){case"center":return o.push(nt),!1;case"top":case"left":return o.push(rt),!1;case"right":case"bottom":return o.push(ot),!1}else if(et(t)||$e(t))return o.push(t),!1;return e}),i):1===s&&(i=e.reduce((function(e,n){if(qe(n))switch(n.value){case $t:return t=or.CIRCLE,!1;case er:return t=or.ELLIPSE,!1;case rr:case Wt:return r=sr.CLOSEST_SIDE,!1;case Jt:return r=sr.FARTHEST_SIDE,!1;case Yt:return r=sr.CLOSEST_CORNER,!1;case tr:case Zt:return r=sr.FARTHEST_CORNER,!1}else if($e(n)||et(n))return Array.isArray(r)||(r=[]),r.push(n),!1;return e}),i)),i){var a=Nt(e);n.push(a)}})),{size:r,shape:t,stops:n,position:o,type:Ct.RADIAL_GRADIENT}};!function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Ct||(Ct={}));var or,sr;(function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"})(or||(or={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(sr||(sr={}));var ir=function(e){if(e.type===d.URL_TOKEN){var t={url:e.value,type:Ct.URL};return kt.getInstance().addImage(e.value),t}if(e.type===d.FUNCTION){var r=Ar[e.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(e.values)}throw new Error("Unsupported image type")};var ar,Ar={"linear-gradient":function(e){var t=dt(180),r=[];return Ye(e).forEach((function(e,n){if(0===n){var o=e[0];if(o.type===d.IDENT_TOKEN&&"to"===o.value)return void(t=lt(e));if(ct(o))return void(t=ut(o))}var s=Nt(e);r.push(s)})),{angle:t,stops:r,type:Ct.LINEAR_GRADIENT}},"-moz-linear-gradient":Lt,"-ms-linear-gradient":Lt,"-o-linear-gradient":Lt,"-webkit-linear-gradient":Lt,"radial-gradient":function(e){var t=or.CIRCLE,r=sr.FARTHEST_CORNER,n=[],o=[];return Ye(e).forEach((function(e,s){var i=!0;if(0===s){var a=!1;i=e.reduce((function(e,n){if(a)if(qe(n))switch(n.value){case"center":return o.push(nt),e;case"top":case"left":return o.push(rt),e;case"right":case"bottom":return o.push(ot),e}else(et(n)||$e(n))&&o.push(n);else if(qe(n))switch(n.value){case $t:return t=or.CIRCLE,!1;case er:return t=or.ELLIPSE,!1;case"at":return a=!0,!1;case Wt:return r=sr.CLOSEST_SIDE,!1;case tr:case Jt:return r=sr.FARTHEST_SIDE,!1;case rr:case Yt:return r=sr.CLOSEST_CORNER,!1;case Zt:return r=sr.FARTHEST_CORNER,!1}else if($e(n)||et(n))return Array.isArray(r)||(r=[]),r.push(n),!1;return e}),i)}if(i){var A=Nt(e);n.push(A)}})),{size:r,shape:t,stops:n,position:o,type:Ct.RADIAL_GRADIENT}},"-moz-radial-gradient":nr,"-ms-radial-gradient":nr,"-o-radial-gradient":nr,"-webkit-radial-gradient":nr,"-webkit-gradient":function(e){var t=dt(180),r=[],n=Ct.LINEAR_GRADIENT,o=or.CIRCLE,s=sr.FARTHEST_CORNER;return Ye(e).forEach((function(e,t){var o=e[0];if(0===t){if(qe(o)&&"linear"===o.value)return void(n=Ct.LINEAR_GRADIENT);if(qe(o)&&"radial"===o.value)return void(n=Ct.RADIAL_GRADIENT)}if(o.type===d.FUNCTION)if("from"===o.name){var s=ft(o.values[0]);r.push({stop:rt,color:s})}else if("to"===o.name)s=ft(o.values[0]),r.push({stop:ot,color:s});else if("color-stop"===o.name){var i=o.values.filter(Je);if(2===i.length){s=ft(i[1]);var a=i[0];Ve(a)&&r.push({stop:{type:d.PERCENTAGE_TOKEN,number:100*a.number,flags:a.flags},color:s})}}})),n===Ct.LINEAR_GRADIENT?{angle:(t+dt(180))%dt(360),stops:r,type:n}:{size:s,shape:o,stops:r,position:[],type:n}}},ur={name:"background-image",initialValue:"none",type:wt.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===d.IDENT_TOKEN&&"none"===t.value?[]:e.filter((function(e){return Je(e)&&function(e){return e.type!==d.FUNCTION||Ar[e.name]}(e)})).map(ir)}},cr={name:"background-origin",initialValue:"border-box",prefix:!1,type:wt.LIST,parse:function(e){return e.map((function(e){if(qe(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},lr={name:"background-position",initialValue:"0% 0%",type:wt.LIST,prefix:!1,parse:function(e){return Ye(e).map((function(e){return e.filter(et)})).map(tt)}};!function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(ar||(ar={}));var dr,fr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:wt.LIST,parse:function(e){return Ye(e).map((function(e){return e.filter(qe).map((function(e){return e.value})).join(" ")})).map(hr)}},hr=function(e){switch(e){case"no-repeat":return ar.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return ar.REPEAT_X;case"repeat-y":case"no-repeat repeat":return ar.REPEAT_Y;case"repeat":default:return ar.REPEAT}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(dr||(dr={}));var pr,mr={name:"background-size",initialValue:"0",prefix:!1,type:wt.LIST,parse:function(e){return Ye(e).map((function(e){return e.filter(gr)}))}},gr=function(e){return qe(e)||et(e)},yr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:wt.TYPE_VALUE,format:"color"}},vr=yr("top"),wr=yr("right"),br=yr("bottom"),Br=yr("left"),jr=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:wt.LIST,parse:function(e){return tt(e.filter(et))}}},_r=jr("top-left"),Cr=jr("top-right"),xr=jr("bottom-right"),Er=jr("bottom-left");!function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID",e[e.DASHED=2]="DASHED",e[e.DOTTED=3]="DOTTED",e[e.DOUBLE=4]="DOUBLE"}(pr||(pr={}));var Nr,Qr=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"none":return pr.NONE;case"dashed":return pr.DASHED;case"dotted":return pr.DOTTED;case"double":return pr.DOUBLE}return pr.SOLID}}},Fr=Qr("top"),Ur=Qr("right"),Sr=Qr("bottom"),Lr=Qr("left"),Tr=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:wt.VALUE,prefix:!1,parse:function(e){return ze(e)?e.number:0}}},Hr=Tr("top"),Ir=Tr("right"),Pr=Tr("bottom"),Or=Tr("left"),kr={name:"color",initialValue:"transparent",prefix:!1,type:wt.TYPE_VALUE,format:"color"},Rr={name:"display",initialValue:"inline-block",prefix:!1,type:wt.LIST,parse:function(e){return e.filter(qe).reduce((function(e,t){return e|Mr(t.value)}),0)}},Mr=function(e){switch(e){case"block":case"-webkit-box":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(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(Nr||(Nr={}));var Dr,Kr={name:"float",initialValue:"none",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"left":return Nr.LEFT;case"right":return Nr.RIGHT;case"inline-start":return Nr.INLINE_START;case"inline-end":return Nr.INLINE_END}return Nr.NONE}},zr={name:"letter-spacing",initialValue:"0",prefix:!1,type:wt.VALUE,parse:function(e){return e.type===d.IDENT_TOKEN&&"normal"===e.value?0:e.type===d.NUMBER_TOKEN||e.type===d.DIMENSION_TOKEN?e.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Dr||(Dr={}));var Vr,qr={name:"line-break",initialValue:"normal",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"strict":return Dr.STRICT;case"normal":default:return Dr.NORMAL}}},Gr={name:"line-height",initialValue:"normal",prefix:!1,type:wt.TOKEN_VALUE},Xr={name:"list-style-image",initialValue:"none",type:wt.VALUE,prefix:!1,parse:function(e){return e.type===d.IDENT_TOKEN&&"none"===e.value?null:ir(e)}};!function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(Vr||(Vr={}));var Wr,Jr={name:"list-style-position",initialValue:"outside",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"inside":return Vr.INSIDE;case"outside":default:return Vr.OUTSIDE}}};!function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Wr||(Wr={}));var Yr,Zr={name:"list-style-type",initialValue:"none",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"disc":return Wr.DISC;case"circle":return Wr.CIRCLE;case"square":return Wr.SQUARE;case"decimal":return Wr.DECIMAL;case"cjk-decimal":return Wr.CJK_DECIMAL;case"decimal-leading-zero":return Wr.DECIMAL_LEADING_ZERO;case"lower-roman":return Wr.LOWER_ROMAN;case"upper-roman":return Wr.UPPER_ROMAN;case"lower-greek":return Wr.LOWER_GREEK;case"lower-alpha":return Wr.LOWER_ALPHA;case"upper-alpha":return Wr.UPPER_ALPHA;case"arabic-indic":return Wr.ARABIC_INDIC;case"armenian":return Wr.ARMENIAN;case"bengali":return Wr.BENGALI;case"cambodian":return Wr.CAMBODIAN;case"cjk-earthly-branch":return Wr.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Wr.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Wr.CJK_IDEOGRAPHIC;case"devanagari":return Wr.DEVANAGARI;case"ethiopic-numeric":return Wr.ETHIOPIC_NUMERIC;case"georgian":return Wr.GEORGIAN;case"gujarati":return Wr.GUJARATI;case"gurmukhi":return Wr.GURMUKHI;case"hebrew":return Wr.HEBREW;case"hiragana":return Wr.HIRAGANA;case"hiragana-iroha":return Wr.HIRAGANA_IROHA;case"japanese-formal":return Wr.JAPANESE_FORMAL;case"japanese-informal":return Wr.JAPANESE_INFORMAL;case"kannada":return Wr.KANNADA;case"katakana":return Wr.KATAKANA;case"katakana-iroha":return Wr.KATAKANA_IROHA;case"khmer":return Wr.KHMER;case"korean-hangul-formal":return Wr.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Wr.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Wr.KOREAN_HANJA_INFORMAL;case"lao":return Wr.LAO;case"lower-armenian":return Wr.LOWER_ARMENIAN;case"malayalam":return Wr.MALAYALAM;case"mongolian":return Wr.MONGOLIAN;case"myanmar":return Wr.MYANMAR;case"oriya":return Wr.ORIYA;case"persian":return Wr.PERSIAN;case"simp-chinese-formal":return Wr.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Wr.SIMP_CHINESE_INFORMAL;case"tamil":return Wr.TAMIL;case"telugu":return Wr.TELUGU;case"thai":return Wr.THAI;case"tibetan":return Wr.TIBETAN;case"trad-chinese-formal":return Wr.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Wr.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Wr.UPPER_ARMENIAN;case"disclosure-open":return Wr.DISCLOSURE_OPEN;case"disclosure-closed":return Wr.DISCLOSURE_CLOSED;case"none":default:return Wr.NONE}}},$r=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:wt.TOKEN_VALUE}},en=$r("top"),tn=$r("right"),rn=$r("bottom"),nn=$r("left");!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(Yr||(Yr={}));var on,sn={name:"overflow",initialValue:"visible",prefix:!1,type:wt.LIST,parse:function(e){return e.filter(qe).map((function(e){switch(e.value){case"hidden":return Yr.HIDDEN;case"scroll":return Yr.SCROLL;case"auto":return Yr.AUTO;case"visible":default:return Yr.VISIBLE}}))}};!function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(on||(on={}));var an,An={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"break-word":return on.BREAK_WORD;case"normal":default:return on.NORMAL}}},un=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:wt.TYPE_VALUE,format:"length-percentage"}},cn=un("top"),ln=un("right"),dn=un("bottom"),fn=un("left");!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(an||(an={}));var hn,pn={name:"text-align",initialValue:"left",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"right":return an.RIGHT;case"center":case"justify":return an.CENTER;case"left":default:return an.LEFT}}};!function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(hn||(hn={}));var mn,gn={name:"position",initialValue:"static",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"relative":return hn.RELATIVE;case"absolute":return hn.ABSOLUTE;case"fixed":return hn.FIXED;case"sticky":return hn.STICKY}return hn.STATIC}},yn={name:"text-shadow",initialValue:"none",type:wt.LIST,prefix:!1,parse:function(e){return 1===e.length&&Xe(e[0],"none")?[]:Ye(e).map((function(e){for(var t={color:_t.TRANSPARENT,offsetX:rt,offsetY:rt,blur:rt},r=0,n=0;n<e.length;n++){var o=e[n];$e(o)?(0===r?t.offsetX=o:1===r?t.offsetY=o:t.blur=o,r++):t.color=ft(o)}return t}))}};!function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(mn||(mn={}));var vn,wn={name:"text-transform",initialValue:"none",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return mn.UPPERCASE;case"lowercase":return mn.LOWERCASE;case"capitalize":return mn.CAPITALIZE}return mn.NONE}},bn={name:"transform",initialValue:"none",prefix:!0,type:wt.VALUE,parse:function(e){if(e.type===d.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===d.FUNCTION){var t=Bn[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Bn={matrix:function(e){var t=e.filter((function(e){return e.type===d.NUMBER_TOKEN})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return e.type===d.NUMBER_TOKEN})).map((function(e){return e.number})),r=t[0],n=t[1],o=(t[2],t[3],t[4]),s=t[5],i=(t[6],t[7],t[8],t[9],t[10],t[11],t[12]),a=t[13];return t[14],t[15],16===t.length?[r,n,o,s,i,a]:null}},jn={type:d.PERCENTAGE_TOKEN,number:50,flags:4},_n=[jn,jn],Cn={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:wt.LIST,parse:function(e){var t=e.filter(et);return 2!==t.length?_n:[t[0],t[1]]}};!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(vn||(vn={}));var xn,En={name:"visible",initialValue:"none",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return vn.HIDDEN;case"collapse":return vn.COLLAPSE;case"visible":default:return vn.VISIBLE}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(xn||(xn={}));var Nn,Qn={name:"word-break",initialValue:"normal",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return xn.BREAK_ALL;case"keep-all":return xn.KEEP_ALL;case"normal":default:return xn.NORMAL}}},Fn={name:"z-index",initialValue:"auto",prefix:!1,type:wt.VALUE,parse:function(e){if(e.type===d.IDENT_TOKEN)return{auto:!0,order:0};if(Ve(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Un={name:"opacity",initialValue:"1",type:wt.VALUE,prefix:!1,parse:function(e){return Ve(e)?e.number:1}},Sn={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:wt.TYPE_VALUE,format:"color"},Ln={name:"text-decoration-line",initialValue:"none",prefix:!1,type:wt.LIST,parse:function(e){return e.filter(qe).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},Tn={name:"font-family",initialValue:"",prefix:!1,type:wt.LIST,parse:function(e){var t=[],r=[];return e.forEach((function(e){switch(e.type){case d.IDENT_TOKEN:case d.STRING_TOKEN:t.push(e.value);break;case d.NUMBER_TOKEN:t.push(e.number.toString());break;case d.COMMA_TOKEN:r.push(t.join(" ")),t.length=0}})),t.length&&r.push(t.join(" ")),r.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},Hn={name:"font-size",initialValue:"0",prefix:!1,type:wt.TYPE_VALUE,format:"length"},In={name:"font-weight",initialValue:"normal",type:wt.VALUE,prefix:!1,parse:function(e){if(Ve(e))return e.number;if(qe(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Pn={name:"font-variant",initialValue:"none",type:wt.LIST,prefix:!1,parse:function(e){return e.filter(qe).map((function(e){return e.value}))}};!function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(Nn||(Nn={}));var On,kn={name:"font-style",initialValue:"normal",prefix:!1,type:wt.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return Nn.OBLIQUE;case"italic":return Nn.ITALIC;case"normal":default:return Nn.NORMAL}}},Rn=function(e,t){return 0!=(e&t)},Mn={name:"content",initialValue:"none",type:wt.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===d.IDENT_TOKEN&&"none"===t.value?[]:e}},Dn={name:"counter-increment",initialValue:"none",prefix:!0,type:wt.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===d.IDENT_TOKEN&&"none"===t.value)return null;for(var r=[],n=e.filter(We),o=0;o<n.length;o++){var s=n[o],i=n[o+1];if(s.type===d.IDENT_TOKEN){var a=i&&Ve(i)?i.number:1;r.push({counter:s.value,increment:a})}}return r}},Kn={name:"counter-reset",initialValue:"none",prefix:!0,type:wt.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],r=e.filter(We),n=0;n<r.length;n++){var o=r[n],s=r[n+1];if(qe(o)&&"none"!==o.value){var i=s&&Ve(s)?s.number:0;t.push({counter:o.value,reset:i})}}return t}},zn={name:"quotes",initialValue:"none",prefix:!0,type:wt.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===d.IDENT_TOKEN&&"none"===t.value)return null;var r=[],n=e.filter(Ge);if(n.length%2!=0)return null;for(var o=0;o<n.length;o+=2){var s=n[o].value,i=n[o+1].value;r.push({open:s,close:i})}return r}},Vn=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},qn={name:"box-shadow",initialValue:"none",type:wt.LIST,prefix:!1,parse:function(e){return 1===e.length&&Xe(e[0],"none")?[]:Ye(e).map((function(e){for(var t={color:255,offsetX:rt,offsetY:rt,blur:rt,spread:rt,inset:!1},r=0,n=0;n<e.length;n++){var o=e[n];Xe(o,"inset")?t.inset=!0:$e(o)?(0===r?t.offsetX=o:1===r?t.offsetY=o:2===r?t.blur=o:t.spread=o,r++):t.color=ft(o)}return t}))}},Gn=function(){function e(e){this.backgroundClip=Jn(xt,e.backgroundClip),this.backgroundColor=Jn(Et,e.backgroundColor),this.backgroundImage=Jn(ur,e.backgroundImage),this.backgroundOrigin=Jn(cr,e.backgroundOrigin),this.backgroundPosition=Jn(lr,e.backgroundPosition),this.backgroundRepeat=Jn(fr,e.backgroundRepeat),this.backgroundSize=Jn(mr,e.backgroundSize),this.borderTopColor=Jn(vr,e.borderTopColor),this.borderRightColor=Jn(wr,e.borderRightColor),this.borderBottomColor=Jn(br,e.borderBottomColor),this.borderLeftColor=Jn(Br,e.borderLeftColor),this.borderTopLeftRadius=Jn(_r,e.borderTopLeftRadius),this.borderTopRightRadius=Jn(Cr,e.borderTopRightRadius),this.borderBottomRightRadius=Jn(xr,e.borderBottomRightRadius),this.borderBottomLeftRadius=Jn(Er,e.borderBottomLeftRadius),this.borderTopStyle=Jn(Fr,e.borderTopStyle),this.borderRightStyle=Jn(Ur,e.borderRightStyle),this.borderBottomStyle=Jn(Sr,e.borderBottomStyle),this.borderLeftStyle=Jn(Lr,e.borderLeftStyle),this.borderTopWidth=Jn(Hr,e.borderTopWidth),this.borderRightWidth=Jn(Ir,e.borderRightWidth),this.borderBottomWidth=Jn(Pr,e.borderBottomWidth),this.borderLeftWidth=Jn(Or,e.borderLeftWidth),this.boxShadow=Jn(qn,e.boxShadow),this.color=Jn(kr,e.color),this.display=Jn(Rr,e.display),this.float=Jn(Kr,e.cssFloat),this.fontFamily=Jn(Tn,e.fontFamily),this.fontSize=Jn(Hn,e.fontSize),this.fontStyle=Jn(kn,e.fontStyle),this.fontVariant=Jn(Pn,e.fontVariant),this.fontWeight=Jn(In,e.fontWeight),this.letterSpacing=Jn(zr,e.letterSpacing),this.lineBreak=Jn(qr,e.lineBreak),this.lineHeight=Jn(Gr,e.lineHeight),this.listStyleImage=Jn(Xr,e.listStyleImage),this.listStylePosition=Jn(Jr,e.listStylePosition),this.listStyleType=Jn(Zr,e.listStyleType),this.marginTop=Jn(en,e.marginTop),this.marginRight=Jn(tn,e.marginRight),this.marginBottom=Jn(rn,e.marginBottom),this.marginLeft=Jn(nn,e.marginLeft),this.opacity=Jn(Un,e.opacity);var t=Jn(sn,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=Jn(An,e.overflowWrap),this.paddingTop=Jn(cn,e.paddingTop),this.paddingRight=Jn(ln,e.paddingRight),this.paddingBottom=Jn(dn,e.paddingBottom),this.paddingLeft=Jn(fn,e.paddingLeft),this.position=Jn(gn,e.position),this.textAlign=Jn(pn,e.textAlign),this.textDecorationColor=Jn(Sn,e.textDecorationColor||e.color),this.textDecorationLine=Jn(Ln,e.textDecorationLine),this.textShadow=Jn(yn,e.textShadow),this.textTransform=Jn(wn,e.textTransform),this.transform=Jn(bn,e.transform),this.transformOrigin=Jn(Cn,e.transformOrigin),this.visibility=Jn(En,e.visibility),this.wordBreak=Jn(Qn,e.wordBreak),this.zIndex=Jn(Fn,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===vn.VISIBLE},e.prototype.isTransparent=function(){return ht(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==hn.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==Nr.NONE},e.prototype.isInlineLevel=function(){return Rn(this.display,4)||Rn(this.display,33554432)||Rn(this.display,268435456)||Rn(this.display,536870912)||Rn(this.display,67108864)||Rn(this.display,134217728)},e}(),Xn=function(e){this.content=Jn(Mn,e.content),this.quotes=Jn(zn,e.quotes)},Wn=function(e){this.counterIncrement=Jn(Dn,e.counterIncrement),this.counterReset=Jn(Kn,e.counterReset)},Jn=function(e,t){var r=new De,n=null!=t?t.toString():e.initialValue;r.write(n);var o=new Ke(r.read());switch(e.type){case wt.IDENT_VALUE:var s=o.parseComponentValue();return e.parse(qe(s)?s.value:e.initialValue);case wt.VALUE:return e.parse(o.parseComponentValue());case wt.LIST:return e.parse(o.parseComponentValues());case wt.TOKEN_VALUE:return o.parseComponentValue();case wt.TYPE_VALUE:switch(e.format){case"angle":return ut(o.parseComponentValue());case"color":return ft(o.parseComponentValue());case"image":return ir(o.parseComponentValue());case"length":var i=o.parseComponentValue();return $e(i)?i:rt;case"length-percentage":var a=o.parseComponentValue();return et(a)?a:rt}}throw new Error("Attempting to parse unsupported css format type "+e.format)},Yn=function(e){this.styles=new Gn(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&So(e)&&(e.style.transform="none"),this.bounds=i(e),this.flags=0},Zn=function(e,t){this.text=e,this.bounds=t},$n=function(e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var o=i(r);return r.firstChild&&n.replaceChild(r.firstChild,r),o}}return new s(0,0,0,0)},eo=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var o=n.createRange();return o.setStart(e,t),o.setEnd(e,t+r),s.fromClientRect(o.getBoundingClientRect())},to=function(e,t){return 0!==t.letterSpacing?a(e).map((function(e){return A(e)})):ro(e,t)},ro=function(e,t){for(var r,n=function(e,t){var r=a(e),n=ie(r,t),o=n[0],s=n[1],i=n[2],A=r.length,u=0,c=0;return{next:function(){if(c>=A)return{done:!0,value:null};for(var e=G;c<A&&(e=se(r,s,o,++c,i))===G;);if(e!==G||c===A){var t=new ae(r,e,u,c);return u=c,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===on.BREAK_WORD?"break-word":t.wordBreak}),o=[];!(r=n.next()).done;)r.value&&o.push(r.value.slice());return o},no=function(e,t){this.text=oo(e.data,t.textTransform),this.textBounds=function(e,t,r){var n=to(e,t),o=[],s=0;return n.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(Pt.SUPPORT_RANGE_BOUNDS)o.push(new Zn(e,eo(r,s,e.length)));else{var n=r.splitText(e.length);o.push(new Zn(e,$n(r))),r=n}else Pt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),o}(this.text,t,e)},oo=function(e,t){switch(t){case mn.LOWERCASE:return e.toLowerCase();case mn.CAPITALIZE:return e.replace(so,io);case mn.UPPERCASE:return e.toUpperCase();default:return e}},so=/(^|\s|:|-|\(|\))([a-z])/g,io=function(e,t,r){return e.length>0?t+r.toUpperCase():e},ao=function(e){function r(t){var r=e.call(this,t)||this;return r.src=t.currentSrc||t.src,r.intrinsicWidth=t.naturalWidth,r.intrinsicHeight=t.naturalHeight,kt.getInstance().addImage(r.src),r}return t(r,e),r}(Yn),Ao=function(e){function r(t){var r=e.call(this,t)||this;return r.canvas=t,r.intrinsicWidth=t.width,r.intrinsicHeight=t.height,r}return t(r,e),r}(Yn),uo=function(e){function r(t){var r=e.call(this,t)||this,n=new XMLSerializer;return r.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(t)),r.intrinsicWidth=t.width.baseVal.value,r.intrinsicHeight=t.height.baseVal.value,kt.getInstance().addImage(r.svg),r}return t(r,e),r}(Yn),co=function(e){function r(t){var r=e.call(this,t)||this;return r.value=t.value,r}return t(r,e),r}(Yn),lo=function(e){function r(t){var r=e.call(this,t)||this;return r.start=t.start,r.reversed="boolean"==typeof t.reversed&&!0===t.reversed,r}return t(r,e),r}(Yn),fo=[{type:d.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],ho=[{type:d.PERCENTAGE_TOKEN,flags:0,number:50}],po="checkbox",mo="radio",go="password",yo=707406591,vo=function(e){function r(t){var r,n,o,i=e.call(this,t)||this;switch(i.type=t.type.toLowerCase(),i.checked=t.checked,i.value=0===(o=(n=t).type===go?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":o,i.type!==po&&i.type!==mo||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=pr.SOLID,i.styles.backgroundClip=[bt.BORDER_BOX],i.styles.backgroundOrigin=[0],i.bounds=(r=i.bounds).width>r.height?new s(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width<r.height?new s(r.left,r.top+(r.height-r.width)/2,r.width,r.width):r),i.type){case po:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=fo;break;case mo:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=ho}return i}return t(r,e),r}(Yn),wo=function(e){function r(t){var r=e.call(this,t)||this,n=t.options[t.selectedIndex||0];return r.value=n&&n.text||"",r}return t(r,e),r}(Yn),bo=function(e){function r(t){var r=e.call(this,t)||this;return r.value=t.value,r}return t(r,e),r}(Yn),Bo=function(e){return ft(Ke.create(e).parseComponentValue())},jo=function(e){function r(t){var r=e.call(this,t)||this;r.src=t.src,r.width=parseInt(t.width,10)||0,r.height=parseInt(t.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){r.tree=Eo(t.contentWindow.document.documentElement);var n=t.contentWindow.document.documentElement?Bo(getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):_t.TRANSPARENT,o=t.contentWindow.document.body?Bo(getComputedStyle(t.contentWindow.document.body).backgroundColor):_t.TRANSPARENT;r.backgroundColor=ht(n)?ht(o)?r.styles.backgroundColor:o:n}}catch(e){}return r}return t(r,e),r}(Yn),_o=["OL","UL","MENU"],Co=function(e,t,r){for(var n=e.firstChild,o=void 0;n;n=o)if(o=n.nextSibling,Fo(n)&&n.data.trim().length>0)t.textNodes.push(new no(n,t.styles));else if(Uo(n)){var s=xo(n);s.styles.isVisible()&&(No(n,s,r)?s.flags|=4:Qo(s.styles)&&(s.flags|=2),-1!==_o.indexOf(n.tagName)&&(s.flags|=8),t.elements.push(s),zo(n)||Po(n)||Vo(n)||Co(n,s,r))}},xo=function(e){return Ro(e)?new ao(e):ko(e)?new Ao(e):Po(e)?new uo(e):To(e)?new co(e):Ho(e)?new lo(e):Io(e)?new vo(e):Vo(e)?new wo(e):zo(e)?new bo(e):Mo(e)?new jo(e):new Yn(e)},Eo=function(e){var t=xo(e);return t.flags|=4,Co(e,t,t),t},No=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||Oo(e)&&r.styles.isTransparent()},Qo=function(e){return e.isPositioned()||e.isFloating()},Fo=function(e){return e.nodeType===Node.TEXT_NODE},Uo=function(e){return e.nodeType===Node.ELEMENT_NODE},So=function(e){return Uo(e)&&void 0!==e.style&&!Lo(e)},Lo=function(e){return"object"==typeof e.className},To=function(e){return"LI"===e.tagName},Ho=function(e){return"OL"===e.tagName},Io=function(e){return"INPUT"===e.tagName},Po=function(e){return"svg"===e.tagName},Oo=function(e){return"BODY"===e.tagName},ko=function(e){return"CANVAS"===e.tagName},Ro=function(e){return"IMG"===e.tagName},Mo=function(e){return"IFRAME"===e.tagName},Do=function(e){return"STYLE"===e.tagName},Ko=function(e){return"SCRIPT"===e.tagName},zo=function(e){return"TEXTAREA"===e.tagName},Vo=function(e){return"SELECT"===e.tagName},qo=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,o=!0;null!==r&&r.forEach((function(e){var r=t.counters[e.counter];r&&0!==e.increment&&(o=!1,r[Math.max(0,r.length-1)]+=e.increment)}));var s=[];return o&&n.forEach((function(e){var r=t.counters[e.counter];s.push(e.counter),r||(r=t.counters[e.counter]=[]),r.push(e.reset)})),s},e}(),Go={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"]},Xo={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Wo={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Jo={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Yo=function(e,t,r,n,o,s){return e<t||e>r?is(e,o,s.length>0):n.integers.reduce((function(t,r,o){for(;e>=r;)e-=r,t+=n.values[o];return t}),"")+s},Zo=function(e,t,r,n){var o="";do{r||e--,o=n(e)+o,e/=t}while(e*t>=t);return o},$o=function(e,t,r,n,o){var s=r-t+1;return(e<0?"-":"")+(Zo(Math.abs(e),s,n,(function(e){return A(Math.floor(e%s)+t)}))+o)},es=function(e,t,r){void 0===r&&(r=". ");var n=t.length;return Zo(Math.abs(e),n,!1,(function(e){return t[Math.floor(e%n)]}))+r},ts=function(e,t,r,n,o,s){if(e<-9999||e>9999)return is(e,Wr.CJK_DECIMAL,o.length>0);var i=Math.abs(e),a=o;if(0===i)return t[0]+a;for(var A=0;i>0&&A<=4;A++){var u=i%10;0===u&&Rn(s,1)&&""!==a?a=t[u]+a:u>1||1===u&&0===A||1===u&&1===A&&Rn(s,2)||1===u&&1===A&&Rn(s,4)&&e>100||1===u&&A>1&&Rn(s,8)?a=t[u]+(A>0?r[A-1]:"")+a:1===u&&A>0&&(a=r[A-1]+a),i=Math.floor(i/10)}return(e<0?n:"")+a},rs="十百千萬",ns="拾佰仟萬",os="マイナス",ss="마이너스",is=function(e,t,r){var n=r?". ":"",o=r?"、":"",s=r?", ":"",i=r?" ":"";switch(t){case Wr.DISC:return"•"+i;case Wr.CIRCLE:return"◦"+i;case Wr.SQUARE:return"◾"+i;case Wr.DECIMAL_LEADING_ZERO:var a=$o(e,48,57,!0,n);return a.length<4?"0"+a:a;case Wr.CJK_DECIMAL:return es(e,"〇一二三四五六七八九",o);case Wr.LOWER_ROMAN:return Yo(e,1,3999,Go,Wr.DECIMAL,n).toLowerCase();case Wr.UPPER_ROMAN:return Yo(e,1,3999,Go,Wr.DECIMAL,n);case Wr.LOWER_GREEK:return $o(e,945,969,!1,n);case Wr.LOWER_ALPHA:return $o(e,97,122,!1,n);case Wr.UPPER_ALPHA:return $o(e,65,90,!1,n);case Wr.ARABIC_INDIC:return $o(e,1632,1641,!0,n);case Wr.ARMENIAN:case Wr.UPPER_ARMENIAN:return Yo(e,1,9999,Xo,Wr.DECIMAL,n);case Wr.LOWER_ARMENIAN:return Yo(e,1,9999,Xo,Wr.DECIMAL,n).toLowerCase();case Wr.BENGALI:return $o(e,2534,2543,!0,n);case Wr.CAMBODIAN:case Wr.KHMER:return $o(e,6112,6121,!0,n);case Wr.CJK_EARTHLY_BRANCH:return es(e,"子丑寅卯辰巳午未申酉戌亥",o);case Wr.CJK_HEAVENLY_STEM:return es(e,"甲乙丙丁戊己庚辛壬癸",o);case Wr.CJK_IDEOGRAPHIC:case Wr.TRAD_CHINESE_INFORMAL:return ts(e,"零一二三四五六七八九",rs,"負",o,14);case Wr.TRAD_CHINESE_FORMAL:return ts(e,"零壹貳參肆伍陸柒捌玖",ns,"負",o,15);case Wr.SIMP_CHINESE_INFORMAL:return ts(e,"零一二三四五六七八九",rs,"负",o,14);case Wr.SIMP_CHINESE_FORMAL:return ts(e,"零壹贰叁肆伍陆柒捌玖",ns,"负",o,15);case Wr.JAPANESE_INFORMAL:return ts(e,"〇一二三四五六七八九","十百千万",os,o,0);case Wr.JAPANESE_FORMAL:return ts(e,"零壱弐参四伍六七八九","拾百千万",os,o,7);case Wr.KOREAN_HANGUL_FORMAL:return ts(e,"영일이삼사오육칠팔구","십백천만",ss,s,7);case Wr.KOREAN_HANJA_INFORMAL:return ts(e,"零一二三四五六七八九","十百千萬",ss,s,0);case Wr.KOREAN_HANJA_FORMAL:return ts(e,"零壹貳參四五六七八九","拾百千",ss,s,7);case Wr.DEVANAGARI:return $o(e,2406,2415,!0,n);case Wr.GEORGIAN:return Yo(e,1,19999,Jo,Wr.DECIMAL,n);case Wr.GUJARATI:return $o(e,2790,2799,!0,n);case Wr.GURMUKHI:return $o(e,2662,2671,!0,n);case Wr.HEBREW:return Yo(e,1,10999,Wo,Wr.DECIMAL,n);case Wr.HIRAGANA:return es(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Wr.HIRAGANA_IROHA:return es(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Wr.KANNADA:return $o(e,3302,3311,!0,n);case Wr.KATAKANA:return es(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",o);case Wr.KATAKANA_IROHA:return es(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",o);case Wr.LAO:return $o(e,3792,3801,!0,n);case Wr.MONGOLIAN:return $o(e,6160,6169,!0,n);case Wr.MYANMAR:return $o(e,4160,4169,!0,n);case Wr.ORIYA:return $o(e,2918,2927,!0,n);case Wr.PERSIAN:return $o(e,1776,1785,!0,n);case Wr.TAMIL:return $o(e,3046,3055,!0,n);case Wr.TELUGU:return $o(e,3174,3183,!0,n);case Wr.THAI:return $o(e,3664,3673,!0,n);case Wr.TIBETAN:return $o(e,3872,3881,!0,n);case Wr.DECIMAL:default:return $o(e,48,57,!0,n)}},as="data-html2canvas-ignore",As=function(){function e(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new qo,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var r=this,s=cs(e,t);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,a=e.defaultView.pageYOffset,A=s.contentWindow,u=A.document,c=ls(s).then((function(){return n(r,void 0,void 0,(function(){var e;return o(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(ps),A&&(A.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||A.scrollY===t.top&&A.scrollX===t.left||(u.documentElement.style.top=-t.top+"px",u.documentElement.style.left=-t.left+"px",u.documentElement.style.position="absolute")),e=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:u.fonts&&u.fonts.ready?[4,u.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(u)})).then((function(){return s}))]:[2,s]}}))}))}));return u.open(),u.write(fs(document.doctype)+"<html></html>"),hs(this.referenceElement.ownerDocument,i,a),u.replaceChild(u.adoptNode(this.documentElement),u.documentElement),u.close(),c},e.prototype.createElementClone=function(e){if(ko(e))return this.createCanvasClone(e);if(Do(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ro(t)&&"lazy"===t.loading&&(t.loading="eager"),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(e){if(Ot.getInstance(this.options.id).error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(e){Ot.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var n=e.getContext("2d"),o=r.getContext("2d");return o&&(n?o.putImageData(n.getImageData(0,0,e.width,e.height),0,0):o.drawImage(e,0,0)),r}catch(e){}return r},e.prototype.cloneNode=function(e){if(Fo(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&Uo(e)&&(So(e)||Lo(e))){var r=this.createElementClone(e),n=t.getComputedStyle(e),o=t.getComputedStyle(e,":before"),s=t.getComputedStyle(e,":after");this.referenceElement===e&&So(r)&&(this.clonedReferenceElement=r),Oo(r)&&vs(r);for(var i=this.counters.parse(new Wn(n)),a=this.resolvePseudoContent(e,r,o,On.BEFORE),A=e.firstChild;A;A=A.nextSibling)Uo(A)&&(Ko(A)||A.hasAttribute(as)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(A))||this.options.copyStyles&&Uo(A)&&Do(A)||r.appendChild(this.cloneNode(A));a&&r.insertBefore(a,r.firstChild);var u=this.resolvePseudoContent(e,r,s,On.AFTER);return u&&r.appendChild(u),this.counters.pop(i),n&&(this.options.copyStyles||Lo(e))&&!Mo(e)&&ds(n,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(zo(e)||Vo(e))&&(zo(r)||Vo(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,r,n){var o=this;if(r){var s=r.content,i=t.ownerDocument;if(i&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==r.display){this.counters.parse(new Wn(r));var a=new Xn(r),A=i.createElement("html2canvaspseudoelement");ds(r,A),a.content.forEach((function(t){if(t.type===d.STRING_TOKEN)A.appendChild(i.createTextNode(t.value));else if(t.type===d.URL_TOKEN){var r=i.createElement("img");r.src=t.value,r.style.opacity="1",A.appendChild(r)}else if(t.type===d.FUNCTION){if("attr"===t.name){var n=t.values.filter(qe);n.length&&A.appendChild(i.createTextNode(e.getAttribute(n[0].value)||""))}else if("counter"===t.name){var s=t.values.filter(Je),u=s[0],c=s[1];if(u&&qe(u)){var l=o.counters.getCounterValue(u.value),f=c&&qe(c)?Zr.parse(c.value):Wr.DECIMAL;A.appendChild(i.createTextNode(is(l,f,!1)))}}else if("counters"===t.name){var h=t.values.filter(Je),p=(u=h[0],h[1]);if(c=h[2],u&&qe(u)){var m=o.counters.getCounterValues(u.value),g=c&&qe(c)?Zr.parse(c.value):Wr.DECIMAL,y=p&&p.type===d.STRING_TOKEN?p.value:"",v=m.map((function(e){return is(e,g,!1)})).join(y);A.appendChild(i.createTextNode(v))}}}else if(t.type===d.IDENT_TOKEN)switch(t.value){case"open-quote":A.appendChild(i.createTextNode(Vn(a.quotes,o.quoteDepth++,!0)));break;case"close-quote":A.appendChild(i.createTextNode(Vn(a.quotes,--o.quoteDepth,!1)));break;default:A.appendChild(i.createTextNode(t.value))}})),A.className=ms+" "+gs;var u=n===On.BEFORE?" "+ms:" "+gs;return Lo(t)?t.className.baseValue+=u:t.className+=u,A}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(On||(On={}));var us,cs=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(as,"true"),e.body.appendChild(r),r},ls=function(e){return new Promise((function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var o=n.document;n.onload=e.onload=o.onreadystatechange=function(){n.onload=e.onload=o.onreadystatechange=null;var r=setInterval((function(){o.body.childNodes.length>0&&"complete"===o.readyState&&(clearInterval(r),t(e))}),50)}}))},ds=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);"content"!==n&&t.style.setProperty(n,e.getPropertyValue(n))}return t},fs=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},hs=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},ps=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},ms="___html2canvas___pseudoelement_before",gs="___html2canvas___pseudoelement_after",ys='{\n    content: "" !important;\n    display: none !important;\n}',vs=function(e){ws(e,"."+ms+":before"+ys+"\n         ."+gs+":after"+ys)},ws=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}};!function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(us||(us={}));var bs,Bs=function(e,t){return e.length===t.length&&e.some((function(e,r){return e===t[r]}))},js=function(){function e(e,t){this.type=us.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e}(),_s=function(e,t,r){return new js(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},Cs=function(){function e(e,t,r,n){this.type=us.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(t,r){var n=_s(this.start,this.startControl,t),o=_s(this.startControl,this.endControl,t),s=_s(this.endControl,this.end,t),i=_s(n,o,t),a=_s(o,s,t),A=_s(i,a,t);return r?new e(this.start,n,i,A):new e(A,a,s,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),xs=function(e){return e.type===us.BEZIER_CURVE},Es=function(e){var t=e.styles,r=e.bounds,n=st(t.borderTopLeftRadius,r.width,r.height),o=n[0],s=n[1],i=st(t.borderTopRightRadius,r.width,r.height),a=i[0],A=i[1],u=st(t.borderBottomRightRadius,r.width,r.height),c=u[0],l=u[1],d=st(t.borderBottomLeftRadius,r.width,r.height),f=d[0],h=d[1],p=[];p.push((o+a)/r.width),p.push((f+c)/r.width),p.push((s+h)/r.height),p.push((A+l)/r.height);var m=Math.max.apply(Math,p);m>1&&(o/=m,s/=m,a/=m,A/=m,c/=m,l/=m,f/=m,h/=m);var g=r.width-a,y=r.height-l,v=r.width-c,w=r.height-h,b=t.borderTopWidth,B=t.borderRightWidth,j=t.borderBottomWidth,_=t.borderLeftWidth,C=it(t.paddingTop,e.bounds.width),x=it(t.paddingRight,e.bounds.width),E=it(t.paddingBottom,e.bounds.width),N=it(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=o>0||s>0?Ns(r.left+_/3,r.top+b/3,o-_/3,s-b/3,bs.TOP_LEFT):new js(r.left+_/3,r.top+b/3),this.topRightBorderDoubleOuterBox=o>0||s>0?Ns(r.left+g,r.top+b/3,a-B/3,A-b/3,bs.TOP_RIGHT):new js(r.left+r.width-B/3,r.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||l>0?Ns(r.left+v,r.top+y,c-B/3,l-j/3,bs.BOTTOM_RIGHT):new js(r.left+r.width-B/3,r.top+r.height-j/3),this.bottomLeftBorderDoubleOuterBox=f>0||h>0?Ns(r.left+_/3,r.top+w,f-_/3,h-j/3,bs.BOTTOM_LEFT):new js(r.left+_/3,r.top+r.height-j/3),this.topLeftBorderDoubleInnerBox=o>0||s>0?Ns(r.left+2*_/3,r.top+2*b/3,o-2*_/3,s-2*b/3,bs.TOP_LEFT):new js(r.left+2*_/3,r.top+2*b/3),this.topRightBorderDoubleInnerBox=o>0||s>0?Ns(r.left+g,r.top+2*b/3,a-2*B/3,A-2*b/3,bs.TOP_RIGHT):new js(r.left+r.width-2*B/3,r.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||l>0?Ns(r.left+v,r.top+y,c-2*B/3,l-2*j/3,bs.BOTTOM_RIGHT):new js(r.left+r.width-2*B/3,r.top+r.height-2*j/3),this.bottomLeftBorderDoubleInnerBox=f>0||h>0?Ns(r.left+2*_/3,r.top+w,f-2*_/3,h-2*j/3,bs.BOTTOM_LEFT):new js(r.left+2*_/3,r.top+r.height-2*j/3),this.topLeftBorderStroke=o>0||s>0?Ns(r.left+_/2,r.top+b/2,o-_/2,s-b/2,bs.TOP_LEFT):new js(r.left+_/2,r.top+b/2),this.topRightBorderStroke=o>0||s>0?Ns(r.left+g,r.top+b/2,a-B/2,A-b/2,bs.TOP_RIGHT):new js(r.left+r.width-B/2,r.top+b/2),this.bottomRightBorderStroke=c>0||l>0?Ns(r.left+v,r.top+y,c-B/2,l-j/2,bs.BOTTOM_RIGHT):new js(r.left+r.width-B/2,r.top+r.height-j/2),this.bottomLeftBorderStroke=f>0||h>0?Ns(r.left+_/2,r.top+w,f-_/2,h-j/2,bs.BOTTOM_LEFT):new js(r.left+_/2,r.top+r.height-j/2),this.topLeftBorderBox=o>0||s>0?Ns(r.left,r.top,o,s,bs.TOP_LEFT):new js(r.left,r.top),this.topRightBorderBox=a>0||A>0?Ns(r.left+g,r.top,a,A,bs.TOP_RIGHT):new js(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||l>0?Ns(r.left+v,r.top+y,c,l,bs.BOTTOM_RIGHT):new js(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=f>0||h>0?Ns(r.left,r.top+w,f,h,bs.BOTTOM_LEFT):new js(r.left,r.top+r.height),this.topLeftPaddingBox=o>0||s>0?Ns(r.left+_,r.top+b,Math.max(0,o-_),Math.max(0,s-b),bs.TOP_LEFT):new js(r.left+_,r.top+b),this.topRightPaddingBox=a>0||A>0?Ns(r.left+Math.min(g,r.width-B),r.top+b,g>r.width+B?0:Math.max(0,a-B),Math.max(0,A-b),bs.TOP_RIGHT):new js(r.left+r.width-B,r.top+b),this.bottomRightPaddingBox=c>0||l>0?Ns(r.left+Math.min(v,r.width-_),r.top+Math.min(y,r.height-j),Math.max(0,c-B),Math.max(0,l-j),bs.BOTTOM_RIGHT):new js(r.left+r.width-B,r.top+r.height-j),this.bottomLeftPaddingBox=f>0||h>0?Ns(r.left+_,r.top+Math.min(w,r.height-j),Math.max(0,f-_),Math.max(0,h-j),bs.BOTTOM_LEFT):new js(r.left+_,r.top+r.height-j),this.topLeftContentBox=o>0||s>0?Ns(r.left+_+N,r.top+b+C,Math.max(0,o-(_+N)),Math.max(0,s-(b+C)),bs.TOP_LEFT):new js(r.left+_+N,r.top+b+C),this.topRightContentBox=a>0||A>0?Ns(r.left+Math.min(g,r.width+_+N),r.top+b+C,g>r.width+_+N?0:a-_+N,A-(b+C),bs.TOP_RIGHT):new js(r.left+r.width-(B+x),r.top+b+C),this.bottomRightContentBox=c>0||l>0?Ns(r.left+Math.min(v,r.width-(_+N)),r.top+Math.min(y,r.height+b+C),Math.max(0,c-(B+x)),l-(j+E),bs.BOTTOM_RIGHT):new js(r.left+r.width-(B+x),r.top+r.height-(j+E)),this.bottomLeftContentBox=f>0||h>0?Ns(r.left+_+N,r.top+w,Math.max(0,f-(_+N)),h-(j+E),bs.BOTTOM_LEFT):new js(r.left+_+N,r.top+r.height-(j+E))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(bs||(bs={}));var Ns=function(e,t,r,n,o){var s=(Math.sqrt(2)-1)/3*4,i=r*s,a=n*s,A=e+r,u=t+n;switch(o){case bs.TOP_LEFT:return new Cs(new js(e,u),new js(e,u-a),new js(A-i,t),new js(A,t));case bs.TOP_RIGHT:return new Cs(new js(e,t),new js(e+i,t),new js(A,u-a),new js(A,u));case bs.BOTTOM_RIGHT:return new Cs(new js(A,t),new js(A,t+a),new js(e+i,u),new js(e,u));case bs.BOTTOM_LEFT:default:return new Cs(new js(A,u),new js(A-i,u),new js(e,t+a),new js(e,t))}},Qs=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Fs=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Us=function(e,t,r){this.type=0,this.target=6,this.offsetX=e,this.offsetY=t,this.matrix=r},Ss=function(e,t){this.type=1,this.target=t,this.path=e},Ls=function(e){this.type=2,this.target=6,this.opacity=e},Ts=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Hs=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new Es(e),e.styles.opacity<1&&this.effects.push(new Ls(e.styles.opacity)),null!==e.styles.transform){var r=e.bounds.left+e.styles.transformOrigin[0].number,n=e.bounds.top+e.styles.transformOrigin[1].number,o=e.styles.transform;this.effects.push(new Us(r,n,o))}if(e.styles.overflowX!==Yr.VISIBLE){var s=Qs(this.curves),i=Fs(this.curves);Bs(s,i)?this.effects.push(new Ss(s,6)):(this.effects.push(new Ss(s,2)),this.effects.push(new Ss(i,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==Yr.VISIBLE){var t=Qs(this.curves),r=Fs(this.curves);Bs(t,r)||e.push(new Ss(r,6))}return e},e}(),Is=function(e,t,r,n){e.container.elements.forEach((function(o){var s=Rn(o.flags,4),i=Rn(o.flags,2),a=new Hs(o,e.getParentEffects());Rn(o.styles.display,2048)&&n.push(a);var A=Rn(o.flags,8)?[]:n;if(s||i){var u=s||o.styles.isPositioned()?r:t,c=new Ts(a);if(o.styles.isPositioned()||o.styles.opacity<1||o.styles.isTransformed()){var l=o.styles.zIndex.order;if(l<0){var d=0;u.negativeZIndex.some((function(e,t){return l>e.element.container.styles.zIndex.order?(d=t,!1):d>0})),u.negativeZIndex.splice(d,0,c)}else if(l>0){var f=0;u.positiveZIndex.some((function(e,t){return l>=e.element.container.styles.zIndex.order?(f=t+1,!1):f>0})),u.positiveZIndex.splice(f,0,c)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else o.styles.isFloating()?u.nonPositionedFloats.push(c):u.nonPositionedInlineLevel.push(c);Is(a,c,s?c:r,A)}else o.styles.isInlineLevel()?t.inlineLevel.push(a):t.nonInlineLevel.push(a),Is(a,t,r,A);Rn(o.flags,8)&&Ps(o,A)}))},Ps=function(e,t){for(var r=e instanceof lo?e.start:1,n=e instanceof lo&&e.reversed,o=0;o<t.length;o++){var s=t[o];s.container instanceof co&&"number"==typeof s.container.value&&0!==s.container.value&&(r=s.container.value),s.listValue=is(r,s.container.styles.listStyleType,!0),r+=n?-1:1}},Os=function(e,t){switch(t){case 0:return Rs(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Rs(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Rs(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Rs(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},ks=function(e,t){var r=[];return xs(e)?r.push(e.subdivide(.5,!1)):r.push(e),xs(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},Rs=function(e,t,r,n){var o=[];return xs(e)?o.push(e.subdivide(.5,!1)):o.push(e),xs(r)?o.push(r.subdivide(.5,!0)):o.push(r),xs(n)?o.push(n.subdivide(.5,!0).reverse()):o.push(n),xs(t)?o.push(t.subdivide(.5,!1).reverse()):o.push(t),o},Ms=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},Ds=function(e){var t=e.styles,r=e.bounds,n=it(t.paddingLeft,r.width),o=it(t.paddingRight,r.width),s=it(t.paddingTop,r.width),i=it(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,s+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+o),-(t.borderTopWidth+t.borderBottomWidth+s+i))},Ks=function(e,t,r){var n=function(e,t){return 0===e?t.bounds:2===e?Ds(t):Ms(t)}(Gs(e.styles.backgroundOrigin,t),e),o=function(e,t){return e===bt.BORDER_BOX?t.bounds:e===bt.CONTENT_BOX?Ds(t):Ms(t)}(Gs(e.styles.backgroundClip,t),e),s=qs(Gs(e.styles.backgroundSize,t),r,n),i=s[0],a=s[1],A=st(Gs(e.styles.backgroundPosition,t),n.width-i,n.height-a);return[Xs(Gs(e.styles.backgroundRepeat,t),A,s,n,o),Math.round(n.left+A[0]),Math.round(n.top+A[1]),i,a]},zs=function(e){return qe(e)&&e.value===dr.AUTO},Vs=function(e){return"number"==typeof e},qs=function(e,t,r){var n=t[0],o=t[1],s=t[2],i=e[0],a=e[1];if(et(i)&&a&&et(a))return[it(i,r.width),it(a,r.height)];var A=Vs(s);if(qe(i)&&(i.value===dr.CONTAIN||i.value===dr.COVER))return Vs(s)?r.width/r.height<s!=(i.value===dr.COVER)?[r.width,r.width/s]:[r.height*s,r.height]:[r.width,r.height];var u=Vs(n),c=Vs(o),l=u||c;if(zs(i)&&(!a||zs(a)))return u&&c?[n,o]:A||l?l&&A?[u?n:o*s,c?o:n/s]:[u?n:r.width,c?o:r.height]:[r.width,r.height];if(A){var d=0,f=0;return et(i)?d=it(i,r.width):et(a)&&(f=it(a,r.height)),zs(i)?d=f*s:a&&!zs(a)||(f=d/s),[d,f]}var h=null,p=null;if(et(i)?h=it(i,r.width):a&&et(a)&&(p=it(a,r.height)),null===h||a&&!zs(a)||(p=u&&c?h/n*o:r.height),null!==p&&zs(i)&&(h=u&&c?p/o*n:r.width),null!==h&&null!==p)return[h,p];throw new Error("Unable to calculate background-size for element")},Gs=function(e,t){var r=e[t];return void 0===r?e[0]:r},Xs=function(e,t,r,n,o){var s=t[0],i=t[1],a=r[0],A=r[1];switch(e){case ar.REPEAT_X:return[new js(Math.round(n.left),Math.round(n.top+i)),new js(Math.round(n.left+n.width),Math.round(n.top+i)),new js(Math.round(n.left+n.width),Math.round(A+n.top+i)),new js(Math.round(n.left),Math.round(A+n.top+i))];case ar.REPEAT_Y:return[new js(Math.round(n.left+s),Math.round(n.top)),new js(Math.round(n.left+s+a),Math.round(n.top)),new js(Math.round(n.left+s+a),Math.round(n.height+n.top)),new js(Math.round(n.left+s),Math.round(n.height+n.top))];case ar.NO_REPEAT:return[new js(Math.round(n.left+s),Math.round(n.top+i)),new js(Math.round(n.left+s+a),Math.round(n.top+i)),new js(Math.round(n.left+s+a),Math.round(n.top+i+A)),new js(Math.round(n.left+s),Math.round(n.top+i+A))];default:return[new js(Math.round(o.left),Math.round(o.top)),new js(Math.round(o.left+o.width),Math.round(o.top)),new js(Math.round(o.left+o.width),Math.round(o.height+o.top)),new js(Math.round(o.left),Math.round(o.height+o.top))]}},Ws="Hidden Text",Js=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),o=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",s.appendChild(r),n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.appendChild(this._document.createTextNode(Ws)),r.appendChild(o),r.appendChild(n);var i=n.offsetTop-o.offsetTop+2;r.removeChild(o),r.appendChild(this._document.createTextNode(Ws)),r.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:i,middle:a}},e.prototype.getMetrics=function(e,t){var r=e+" "+t;return void 0===this._data[r]&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},e}(),Ys=function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new Js(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Ot.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){for(var r=this;this._activeEffects.length;)this.popEffect();e.filter((function(e){return Rn(e.target,t)})).forEach((function(e){return r.applyEffect(e)}))},e.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 2===e.type}(e)&&(this.ctx.globalAlpha=e.opacity),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),function(e){return 1===e.type}(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(e){return n(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(e,t){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height):a(e.text).map((function(e){return A(e)})).reduce((function(t,n){return r.ctx.fillText(n,t,e.bounds.top+e.bounds.height),t+r.ctx.measureText(n).width}),e.bounds.left)},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),r=e.fontFamily.join(", "),n=ze(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,n,r].join(" "),r,n]},e.prototype.renderTextNode=function(e,t){return n(this,void 0,void 0,(function(){var r,n,s,i,a=this;return o(this,(function(o){return r=this.createFontStyle(t),n=r[0],s=r[1],i=r[2],this.ctx.font=n,e.textBounds.forEach((function(e){a.ctx.fillStyle=pt(t.color),a.renderTextWithLetterSpacing(e,t.letterSpacing);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach((function(t){a.ctx.shadowColor=pt(t.color),a.ctx.shadowOffsetX=t.offsetX.number*a.options.scale,a.ctx.shadowOffsetY=t.offsetY.number*a.options.scale,a.ctx.shadowBlur=t.blur.number,a.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)})),a.ctx.shadowColor="",a.ctx.shadowOffsetX=0,a.ctx.shadowOffsetY=0,a.ctx.shadowBlur=0),t.textDecorationLine.length&&(a.ctx.fillStyle=pt(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:var r=a.fontMetrics.getMetrics(s,i).baseline;a.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+r),e.bounds.width,1);break;case 2:a.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:var n=a.fontMetrics.getMetrics(s,i).middle;a.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+n),e.bounds.width,1)}})))})),[2]}))}))},e.prototype.renderReplacedElement=function(e,t,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var n=Ds(e),o=Fs(t);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return n(this,void 0,void 0,(function(){var r,n,i,a,A,u,c,l,f,h,p,m,g,y;return o(this,(function(o){switch(o.label){case 0:this.applyEffects(t.effects,4),r=t.container,n=t.curves,i=r.styles,a=0,A=r.textNodes,o.label=1;case 1:return a<A.length?(u=A[a],[4,this.renderTextNode(u,i)]):[3,4];case 2:o.sent(),o.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof ao))return[3,8];o.label=5;case 5:return o.trys.push([5,7,,8]),[4,this.options.cache.match(r.src)];case 6:return m=o.sent(),this.renderReplacedElement(r,n,m),[3,8];case 7:return o.sent(),Ot.getInstance(this.options.id).error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Ao&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof uo))return[3,12];o.label=9;case 9:return o.trys.push([9,11,,12]),[4,this.options.cache.match(r.svg)];case 10:return m=o.sent(),this.renderReplacedElement(r,n,m),[3,12];case 11:return o.sent(),Ot.getInstance(this.options.id).error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof jo&&r.tree?[4,new e({id:this.options.id,scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:r.width,height:r.height,cache:this.options.cache,windowWidth:r.width,windowHeight:r.height}).render(r.tree)]:[3,14];case 13:c=o.sent(),r.width&&r.height&&this.ctx.drawImage(c,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),o.label=14;case 14:if(r instanceof vo&&(l=Math.min(r.bounds.width,r.bounds.height),r.type===po?r.checked&&(this.ctx.save(),this.path([new js(r.bounds.left+.39363*l,r.bounds.top+.79*l),new js(r.bounds.left+.16*l,r.bounds.top+.5549*l),new js(r.bounds.left+.27347*l,r.bounds.top+.44071*l),new js(r.bounds.left+.39694*l,r.bounds.top+.5649*l),new js(r.bounds.left+.72983*l,r.bounds.top+.23*l),new js(r.bounds.left+.84*l,r.bounds.top+.34085*l),new js(r.bounds.left+.39363*l,r.bounds.top+.79*l)]),this.ctx.fillStyle=pt(yo),this.ctx.fill(),this.ctx.restore()):r.type===mo&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+l/2,r.bounds.top+l/2,l/4,0,2*Math.PI,!0),this.ctx.fillStyle=pt(yo),this.ctx.fill(),this.ctx.restore())),Zs(r)&&r.value.length){switch(this.ctx.font=this.createFontStyle(i)[0],this.ctx.fillStyle=pt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign=ei(r.styles.textAlign),y=Ds(r),f=0,r.styles.textAlign){case an.CENTER:f+=y.width/2;break;case an.RIGHT:f+=y.width}h=y.add(f,0,0,-y.height/2+1),this.ctx.save(),this.path([new js(y.left,y.top),new js(y.left+y.width,y.top),new js(y.left+y.width,y.top+y.height),new js(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Zn(r.value,h),i.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Rn(r.styles.display,2048))return[3,20];if(null===r.styles.listStyleImage)return[3,19];if((p=r.styles.listStyleImage).type!==Ct.URL)return[3,18];m=void 0,g=p.url,o.label=15;case 15:return o.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return m=o.sent(),this.ctx.drawImage(m,r.bounds.left-(m.width+10),r.bounds.top),[3,18];case 17:return o.sent(),Ot.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==Wr.NONE&&(this.ctx.font=this.createFontStyle(i)[0],this.ctx.fillStyle=pt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new s(r.bounds.left,r.bounds.top+it(r.styles.paddingTop,r.bounds.width),r.bounds.width,function(e,t){return qe(e)&&"normal"===e.value?1.2*t:e.type===d.NUMBER_TOKEN?t*e.number:et(e)?it(e,t):t}(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Zn(t.listValue,y),i.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),o.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(e){return n(this,void 0,void 0,(function(){var t,r,n,s,i,a,A,u,c,l,d,f,h,p,m;return o(this,(function(o){switch(o.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:o.sent(),t=0,r=e.negativeZIndex,o.label=2;case 2:return t<r.length?(m=r[t],[4,this.renderStack(m)]):[3,5];case 3:o.sent(),o.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:o.sent(),n=0,s=e.nonInlineLevel,o.label=7;case 7:return n<s.length?(m=s[n],[4,this.renderNode(m)]):[3,10];case 8:o.sent(),o.label=9;case 9:return n++,[3,7];case 10:i=0,a=e.nonPositionedFloats,o.label=11;case 11:return i<a.length?(m=a[i],[4,this.renderStack(m)]):[3,14];case 12:o.sent(),o.label=13;case 13:return i++,[3,11];case 14:A=0,u=e.nonPositionedInlineLevel,o.label=15;case 15:return A<u.length?(m=u[A],[4,this.renderStack(m)]):[3,18];case 16:o.sent(),o.label=17;case 17:return A++,[3,15];case 18:c=0,l=e.inlineLevel,o.label=19;case 19:return c<l.length?(m=l[c],[4,this.renderNode(m)]):[3,22];case 20:o.sent(),o.label=21;case 21:return c++,[3,19];case 22:d=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,o.label=23;case 23:return d<f.length?(m=f[d],[4,this.renderStack(m)]):[3,26];case 24:o.sent(),o.label=25;case 25:return d++,[3,23];case 26:h=0,p=e.positiveZIndex,o.label=27;case 27:return h<p.length?(m=p[h],[4,this.renderStack(m)]):[3,30];case 28:o.sent(),o.label=29;case 29:return h++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach((function(e,r){var n=xs(e)?e.start:e;0===r?t.ctx.moveTo(n.x,n.y):t.ctx.lineTo(n.x,n.y),xs(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},e.prototype.renderRepeat=function(e,t,r,n){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(r,n),this.ctx.fill(),this.ctx.translate(-r,-n)},e.prototype.resizeImage=function(e,t,r){if(e.width===t&&e.height===r)return e;var n=this.canvas.ownerDocument.createElement("canvas");return n.width=t,n.height=r,n.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,r),n},e.prototype.renderBackgroundImage=function(e){return n(this,void 0,void 0,(function(){var t,r,n,s,i,a;return o(this,(function(A){switch(A.label){case 0:t=e.styles.backgroundImage.length-1,r=function(r){var s,i,a,A,u,c,l,d,f,h,p,m,g,y,v,w,b,B,j,_,C,x,E,N,Q,F,U,S,L,T,H;return o(this,(function(o){switch(o.label){case 0:if(r.type!==Ct.URL)return[3,5];s=void 0,i=r.url,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n.options.cache.match(i)];case 2:return s=o.sent(),[3,4];case 3:return o.sent(),Ot.getInstance(n.options.id).error("Error loading background-image "+i),[3,4];case 4:return s&&(a=Ks(e,t,[s.width,s.height,s.width/s.height]),w=a[0],x=a[1],E=a[2],j=a[3],_=a[4],y=n.ctx.createPattern(n.resizeImage(s,j,_),"repeat"),n.renderRepeat(w,y,x,E)),[3,6];case 5:r.type===Ct.LINEAR_GRADIENT?(A=Ks(e,t,[null,null,null]),w=A[0],x=A[1],E=A[2],j=A[3],_=A[4],u=Ft(r.angle,j,_),c=u[0],l=u[1],d=u[2],f=u[3],h=u[4],(p=document.createElement("canvas")).width=j,p.height=_,m=p.getContext("2d"),g=m.createLinearGradient(l,f,d,h),Qt(r.stops,c).forEach((function(e){return g.addColorStop(e.stop,pt(e.color))})),m.fillStyle=g,m.fillRect(0,0,j,_),j>0&&_>0&&(y=n.ctx.createPattern(p,"repeat"),n.renderRepeat(w,y,x,E))):function(e){return e.type===Ct.RADIAL_GRADIENT}(r)&&(v=Ks(e,t,[null,null,null]),w=v[0],b=v[1],B=v[2],j=v[3],_=v[4],C=0===r.position.length?[nt]:r.position,x=it(C[0],j),E=it(C[C.length-1],_),N=function(e,t,r,n,o){var s=0,i=0;switch(e.size){case sr.CLOSEST_SIDE:e.shape===or.CIRCLE?s=i=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-o)):e.shape===or.ELLIPSE&&(s=Math.min(Math.abs(t),Math.abs(t-n)),i=Math.min(Math.abs(r),Math.abs(r-o)));break;case sr.CLOSEST_CORNER:if(e.shape===or.CIRCLE)s=i=Math.min(Ut(t,r),Ut(t,r-o),Ut(t-n,r),Ut(t-n,r-o));else if(e.shape===or.ELLIPSE){var a=Math.min(Math.abs(r),Math.abs(r-o))/Math.min(Math.abs(t),Math.abs(t-n)),A=St(n,o,t,r,!0),u=A[0],c=A[1];i=a*(s=Ut(u-t,(c-r)/a))}break;case sr.FARTHEST_SIDE:e.shape===or.CIRCLE?s=i=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-o)):e.shape===or.ELLIPSE&&(s=Math.max(Math.abs(t),Math.abs(t-n)),i=Math.max(Math.abs(r),Math.abs(r-o)));break;case sr.FARTHEST_CORNER:if(e.shape===or.CIRCLE)s=i=Math.max(Ut(t,r),Ut(t,r-o),Ut(t-n,r),Ut(t-n,r-o));else if(e.shape===or.ELLIPSE){a=Math.max(Math.abs(r),Math.abs(r-o))/Math.max(Math.abs(t),Math.abs(t-n));var l=St(n,o,t,r,!1);u=l[0],c=l[1],i=a*(s=Ut(u-t,(c-r)/a))}}return Array.isArray(e.size)&&(s=it(e.size[0],n),i=2===e.size.length?it(e.size[1],o):s),[s,i]}(r,x,E,j,_),Q=N[0],F=N[1],Q>0&&Q>0&&(U=n.ctx.createRadialGradient(b+x,B+E,0,b+x,B+E,Q),Qt(r.stops,2*Q).forEach((function(e){return U.addColorStop(e.stop,pt(e.color))})),n.path(w),n.ctx.fillStyle=U,Q!==F?(S=e.bounds.left+.5*e.bounds.width,L=e.bounds.top+.5*e.bounds.height,H=1/(T=F/Q),n.ctx.save(),n.ctx.translate(S,L),n.ctx.transform(1,0,0,T,0,0),n.ctx.translate(-S,-L),n.ctx.fillRect(b,H*(B-L)+L,j,_*H),n.ctx.restore()):n.ctx.fill())),o.label=6;case 6:return t--,[2]}}))},n=this,s=0,i=e.styles.backgroundImage.slice(0).reverse(),A.label=1;case 1:return s<i.length?(a=i[s],[5,r(a)]):[3,4];case 2:A.sent(),A.label=3;case 3:return s++,[3,1];case 4:return[2]}}))}))},e.prototype.renderSolidBorder=function(e,t,r){return n(this,void 0,void 0,(function(){return o(this,(function(n){return this.path(Os(r,t)),this.ctx.fillStyle=pt(e),this.ctx.fill(),[2]}))}))},e.prototype.renderDoubleBorder=function(e,t,r,s){return n(this,void 0,void 0,(function(){var n,i;return o(this,(function(o){switch(o.label){case 0:return t<3?[4,this.renderSolidBorder(e,r,s)]:[3,2];case 1:return o.sent(),[2];case 2:return n=function(e,t){switch(t){case 0:return Rs(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Rs(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Rs(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Rs(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}}(s,r),this.path(n),this.ctx.fillStyle=pt(e),this.ctx.fill(),i=function(e,t){switch(t){case 0:return Rs(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Rs(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Rs(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Rs(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}}(s,r),this.path(i),this.ctx.fill(),[2]}}))}))},e.prototype.renderNodeBackgroundAndBorders=function(e){return n(this,void 0,void 0,(function(){var t,r,n,s,i,a,A,u,c=this;return o(this,(function(o){switch(o.label){case 0:return this.applyEffects(e.effects,2),t=e.container.styles,r=!ht(t.backgroundColor)||t.backgroundImage.length,n=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],s=$s(Gs(t.backgroundClip,0),e.curves),r||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),ht(t.backgroundColor)||(this.ctx.fillStyle=pt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:o.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){c.ctx.save();var r,n,o,s,i,a=Qs(e.curves),A=t.inset?0:1e4,u=(r=a,n=-A+(t.inset?1:-1)*t.spread.number,o=(t.inset?1:-1)*t.spread.number,s=t.spread.number*(t.inset?-2:2),i=t.spread.number*(t.inset?-2:2),r.map((function(e,t){switch(t){case 0:return e.add(n,o);case 1:return e.add(n+s,o);case 2:return e.add(n+s,o+i);case 3:return e.add(n,o+i)}return e})));t.inset?(c.path(a),c.ctx.clip(),c.mask(u)):(c.mask(a),c.ctx.clip(),c.path(u)),c.ctx.shadowOffsetX=t.offsetX.number+A,c.ctx.shadowOffsetY=t.offsetY.number,c.ctx.shadowColor=pt(t.color),c.ctx.shadowBlur=t.blur.number,c.ctx.fillStyle=t.inset?pt(t.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),o.label=2;case 2:i=0,a=0,A=n,o.label=3;case 3:return a<A.length?(u=A[a]).style!==pr.NONE&&!ht(u.color)&&u.width>0?u.style!==pr.DASHED?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,i,e.curves,pr.DASHED)]:[3,11]:[3,13];case 4:return o.sent(),[3,11];case 5:return u.style!==pr.DOTTED?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,i,e.curves,pr.DOTTED)];case 6:return o.sent(),[3,11];case 7:return u.style!==pr.DOUBLE?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,i,e.curves)];case 8:return o.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,i,e.curves)];case 10:o.sent(),o.label=11;case 11:i++,o.label=12;case 12:return a++,[3,3];case 13:return[2]}}))}))},e.prototype.renderDashedDottedBorder=function(e,t,r,s,i){return n(this,void 0,void 0,(function(){var n,a,A,u,c,l,d,f,h,p,m,g,y,v,w,b;return o(this,(function(o){return this.ctx.save(),n=function(e,t){switch(t){case 0:return ks(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return ks(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return ks(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return ks(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}}(s,r),a=Os(s,r),i===pr.DASHED&&(this.path(a),this.ctx.clip()),xs(a[0])?(A=a[0].start.x,u=a[0].start.y):(A=a[0].x,u=a[0].y),xs(a[1])?(c=a[1].end.x,l=a[1].end.y):(c=a[1].x,l=a[1].y),d=0===r||2===r?Math.abs(A-c):Math.abs(u-l),this.ctx.beginPath(),i===pr.DOTTED?this.formatPath(n):this.formatPath(a.slice(0,2)),f=t<3?3*t:2*t,h=t<3?2*t:t,i===pr.DOTTED&&(f=t,h=t),p=!0,d<=2*f?p=!1:d<=2*f+h?(f*=m=d/(2*f+h),h*=m):(g=Math.floor((d+h)/(f+h)),y=(d-g*f)/(g-1),h=(v=(d-(g+1)*f)/g)<=0||Math.abs(h-y)<Math.abs(h-v)?y:v),p&&(i===pr.DOTTED?this.ctx.setLineDash([0,f+h]):this.ctx.setLineDash([f,h])),i===pr.DOTTED?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=pt(e),this.ctx.stroke(),this.ctx.setLineDash([]),i===pr.DASHED&&(xs(a[0])&&(w=a[3],b=a[0],this.ctx.beginPath(),this.formatPath([new js(w.end.x,w.end.y),new js(b.start.x,b.start.y)]),this.ctx.stroke()),xs(a[1])&&(w=a[1],b=a[2],this.ctx.beginPath(),this.formatPath([new js(w.end.x,w.end.y),new js(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},e.prototype.render=function(e){return n(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=pt(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),n=new Hs(e,[]),o=new Ts(n),Is(n,o,o,s=[]),Ps(n.container,s),t=o,[4,this.renderStack(t)];case 1:return r.sent(),this.applyEffects([],2),[2,this.canvas]}var n,o,s}))}))},e}(),Zs=function(e){return e instanceof bo||e instanceof wo||e instanceof vo&&e.type!==mo&&e.type!==po},$s=function(e,t){switch(e){case bt.BORDER_BOX:return Qs(t);case bt.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case bt.PADDING_BOX:default:return Fs(t)}},ei=function(e){switch(e){case an.CENTER:return"center";case an.RIGHT:return"right";case an.LEFT:default:return"left"}},ti=function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),Ot.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(e){return n(this,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return t=Ht(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,e),[4,ri(t)];case 1:return r=n.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=pt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(),ri=function(e){return new Promise((function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},ni=function(e){return ft(Ke.create(e).parseComponentValue())};"undefined"!=typeof window&&kt.setContext(window);var oi=function(e,t){return n(undefined,void 0,void 0,(function(){var n,a,A,u,c,l,d,f,h,p,m,g,y,v,w,b,B,j,_,C,x,E,N;return o(this,(function(o){switch(o.label){case 0:if(!(n=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(a=n.defaultView))throw new Error("Document is not attached to a Window");return A=(Math.round(1e3*Math.random())+Date.now()).toString(16),u=Oo(e)||"HTML"===e.tagName?function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),o=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new s(0,0,n,o)}(n):i(e),c=u.width,l=u.height,d=u.left,f=u.top,h=r({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},t),p={backgroundColor:"#ffffff",cache:t.cache?t.cache:kt.create(A,h),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:a.devicePixelRatio||1,windowWidth:a.innerWidth,windowHeight:a.innerHeight,scrollX:a.pageXOffset,scrollY:a.pageYOffset,x:d,y:f,width:Math.ceil(c),height:Math.ceil(l),id:A},m=r({},p,h,t),g=new s(m.scrollX,m.scrollY,m.windowWidth,m.windowHeight),Ot.create({id:A,enabled:m.logging}),Ot.getInstance(A).debug("Starting document clone"),y=new As(e,{id:A,onclone:m.onclone,ignoreElements:m.ignoreElements,inlineImages:m.foreignObjectRendering,copyStyles:m.foreignObjectRendering}),(v=y.clonedReferenceElement)?[4,y.toIFrame(n,g)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=o.sent(),b=n.documentElement?ni(getComputedStyle(n.documentElement).backgroundColor):_t.TRANSPARENT,B=n.body?ni(getComputedStyle(n.body).backgroundColor):_t.TRANSPARENT,j=t.backgroundColor,_="string"==typeof j?ni(j):null===j?_t.TRANSPARENT:4294967295,C=e===n.documentElement?ht(b)?ht(B)?_:B:b:_,x={id:A,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?(Ot.getInstance(A).debug("Document cloned, using foreign object rendering"),[4,new ti(x).render(v)]):[3,3];case 2:return E=o.sent(),[3,5];case 3:return Ot.getInstance(A).debug("Document cloned, using computed rendering"),kt.attachInstance(m.cache),Ot.getInstance(A).debug("Starting DOM parsing"),N=Eo(v),kt.detachInstance(),C===N.styles.backgroundColor&&(N.styles.backgroundColor=_t.TRANSPARENT),Ot.getInstance(A).debug("Starting renderer"),[4,new Ys(x).render(N)];case 4:E=o.sent(),o.label=5;case 5:return!0===m.removeContainer&&(As.destroy(w)||Ot.getInstance(A).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ot.getInstance(A).debug("Finished rendering"),Ot.destroy(A),kt.destroy(A),[2,E]}}))}))};return function(e,t){return void 0===t&&(t={}),oi(e,t)}}()},"./node_modules/jspdf/dist/jspdf.es.min.js":function(e,t,r){"use strict";r.r(t),r.d(t,{AcroForm:function(){return _e},AcroFormAppearance:function(){return we},AcroFormButton:function(){return fe},AcroFormCheckBox:function(){return ge},AcroFormChoiceField:function(){return ue},AcroFormComboBox:function(){return le},AcroFormEditBox:function(){return de},AcroFormListBox:function(){return ce},AcroFormPasswordField:function(){return ve},AcroFormPushButton:function(){return he},AcroFormRadioButton:function(){return pe},AcroFormTextField:function(){return ye},GState:function(){return U},ShadingPattern:function(){return L},TilingPattern:function(){return T},jsPDF:function(){return H}});var n=r("./node_modules/fflate/esm/browser.js"),o=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function s(){o.console&&"function"==typeof o.console.log&&o.console.log.apply(o.console,arguments)}var i={log:s,warn:function(e){o.console&&("function"==typeof o.console.warn?o.console.warn.apply(o.console,arguments):s.call(null,arguments))},error:function(e){o.console&&("function"==typeof o.console.error?o.console.error.apply(o.console,arguments):s(e))}};function a(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){d(n.response,t,r)},n.onerror=function(){i.error("could not download file")},n.send()}function A(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function u(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var c,l,d=o.saveAs||("object"!=typeof window||window!==o?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=o.URL||o.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin!==location.origin?A(s.href)?a(e,t,r):u(s,s.target="_blank"):u(s)):(s.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(s.href)}),4e4),setTimeout((function(){u(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download","string"==typeof e)if(A(e))a(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){u(n)}))}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(i.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),"string"==typeof e)return a(e,t,r);var s="application/octet-stream"===e.type,i=/constructor/i.test(o.HTMLElement)||o.safari,A=/CriOS\/[\d]+/.test(navigator.userAgent);if((A||s&&i)&&"object"==typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=A?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location=e,n=null},u.readAsDataURL(e)}else{var c=o.URL||o.webkitURL,l=c.createObjectURL(e);n?n.location=l:location.href=l,n=null,setTimeout((function(){c.revokeObjectURL(l)}),4e4)}});function f(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var o=r[n].re,s=r[n].process,i=o.exec(e);i&&(t=s(i),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r}}function h(e,t){var r=e[0],n=e[1],o=e[2],s=e[3];r=m(r,n,o,s,t[0],7,-680876936),s=m(s,r,n,o,t[1],12,-389564586),o=m(o,s,r,n,t[2],17,606105819),n=m(n,o,s,r,t[3],22,-1044525330),r=m(r,n,o,s,t[4],7,-176418897),s=m(s,r,n,o,t[5],12,1200080426),o=m(o,s,r,n,t[6],17,-1473231341),n=m(n,o,s,r,t[7],22,-45705983),r=m(r,n,o,s,t[8],7,1770035416),s=m(s,r,n,o,t[9],12,-1958414417),o=m(o,s,r,n,t[10],17,-42063),n=m(n,o,s,r,t[11],22,-1990404162),r=m(r,n,o,s,t[12],7,1804603682),s=m(s,r,n,o,t[13],12,-40341101),o=m(o,s,r,n,t[14],17,-1502002290),r=g(r,n=m(n,o,s,r,t[15],22,1236535329),o,s,t[1],5,-165796510),s=g(s,r,n,o,t[6],9,-1069501632),o=g(o,s,r,n,t[11],14,643717713),n=g(n,o,s,r,t[0],20,-373897302),r=g(r,n,o,s,t[5],5,-701558691),s=g(s,r,n,o,t[10],9,38016083),o=g(o,s,r,n,t[15],14,-660478335),n=g(n,o,s,r,t[4],20,-405537848),r=g(r,n,o,s,t[9],5,568446438),s=g(s,r,n,o,t[14],9,-1019803690),o=g(o,s,r,n,t[3],14,-187363961),n=g(n,o,s,r,t[8],20,1163531501),r=g(r,n,o,s,t[13],5,-1444681467),s=g(s,r,n,o,t[2],9,-51403784),o=g(o,s,r,n,t[7],14,1735328473),r=y(r,n=g(n,o,s,r,t[12],20,-1926607734),o,s,t[5],4,-378558),s=y(s,r,n,o,t[8],11,-2022574463),o=y(o,s,r,n,t[11],16,1839030562),n=y(n,o,s,r,t[14],23,-35309556),r=y(r,n,o,s,t[1],4,-1530992060),s=y(s,r,n,o,t[4],11,1272893353),o=y(o,s,r,n,t[7],16,-155497632),n=y(n,o,s,r,t[10],23,-1094730640),r=y(r,n,o,s,t[13],4,681279174),s=y(s,r,n,o,t[0],11,-358537222),o=y(o,s,r,n,t[3],16,-722521979),n=y(n,o,s,r,t[6],23,76029189),r=y(r,n,o,s,t[9],4,-640364487),s=y(s,r,n,o,t[12],11,-421815835),o=y(o,s,r,n,t[15],16,530742520),r=v(r,n=y(n,o,s,r,t[2],23,-995338651),o,s,t[0],6,-198630844),s=v(s,r,n,o,t[7],10,1126891415),o=v(o,s,r,n,t[14],15,-1416354905),n=v(n,o,s,r,t[5],21,-57434055),r=v(r,n,o,s,t[12],6,1700485571),s=v(s,r,n,o,t[3],10,-1894986606),o=v(o,s,r,n,t[10],15,-1051523),n=v(n,o,s,r,t[1],21,-2054922799),r=v(r,n,o,s,t[8],6,1873313359),s=v(s,r,n,o,t[15],10,-30611744),o=v(o,s,r,n,t[6],15,-1560198380),n=v(n,o,s,r,t[13],21,1309151649),r=v(r,n,o,s,t[4],6,-145523070),s=v(s,r,n,o,t[11],10,-1120210379),o=v(o,s,r,n,t[2],15,718787259),n=v(n,o,s,r,t[9],21,-343485551),e[0]=x(r,e[0]),e[1]=x(n,e[1]),e[2]=x(o,e[2]),e[3]=x(s,e[3])}function p(e,t,r,n,o,s){return t=x(x(t,e),x(n,s)),x(t<<o|t>>>32-o,r)}function m(e,t,r,n,o,s,i){return p(t&r|~t&n,e,t,o,s,i)}function g(e,t,r,n,o,s,i){return p(t&n|r&~n,e,t,o,s,i)}function y(e,t,r,n,o,s,i){return p(t^r^n,e,t,o,s,i)}function v(e,t,r,n,o,s,i){return p(r^(t|~n),e,t,o,s,i)}function w(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)h(n,b(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(h(n,o),t=0;t<16;t++)o[t]=0;return o[14]=8*r,h(n,o),n}function b(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}c=o.atob.bind(o),l=o.btoa.bind(o);var B="0123456789abcdef".split("");function j(e){for(var t="",r=0;r<4;r++)t+=B[e>>8*r+4&15]+B[e>>8*r&15];return t}function _(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function C(e){return w(e).map(_).join("")}function x(e,t){return e+t&4294967295}function E(e,t){var r,n,o,s;if(e!==r){for(var i=(o=e,s=1+(256/e.length>>0),new Array(s+1).join(o)),a=[],A=0;A<256;A++)a[A]=A;var u=0;for(A=0;A<256;A++){var c=a[A];u=(u+c+i.charCodeAt(A))%256,a[A]=a[u],a[u]=c}r=e,n=a}else a=n;var l=t.length,d=0,f=0,h="";for(A=0;A<l;A++)f=(f+(c=a[d=(d+1)%256]))%256,a[d]=a[f],a[f]=c,i=a[(a[d]+a[f])%256],h+=String.fromCharCode(t.charCodeAt(A)^i);return h}!function(e){for(var t=0;t<e.length;t++)e[t]=j(e[t]);e.join("")}(w("hello"));var N={print:4,modify:8,copy:16,"annot-forms":32};function Q(e,t,r,n){this.v=1,this.r=2;let o=192;e.forEach((function(e){if(void 0!==N.perm)throw new Error("Invalid permission: "+e);o+=N[e]})),this.padding="(¿N^Nu\8aAd\0NVÿú\ 1\b..\0¶Ðh>\80/\f©þdSiz";let s=(t+this.padding).substr(0,32),i=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,i),this.P=-(1+(255^o)),this.encryptionKey=C(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=E(this.encryptionKey,this.padding)}function F(e){if("object"!=typeof e)throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,n){if(n=n||!1,"string"!=typeof e||"function"!=typeof r||"boolean"!=typeof n)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var o=Math.random().toString(35);return t[e][o]=[r,!!n],o},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],0===Object.keys(t[r]).length&&delete t[r],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),s=[];for(var a in t[r]){var A=t[r][a];try{A[0].apply(e,n)}catch(e){o.console&&i.error("jsPDF PubSub Error",e.message,e)}A[1]&&s.push(a)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function U(e){if(!(this instanceof U))return new U(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function S(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function L(e,t,r,n,o){if(!(this instanceof L))return new L(e,t,r,n,o);this.type="axial"===e?2:3,this.coords=t,this.colors=r,S.call(this,n,o)}function T(e,t,r,n,o){if(!(this instanceof T))return new T(e,t,r,n,o);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,S.call(this,n,o)}function H(e){var t,r="string"==typeof arguments[0]?arguments[0]:"p",n=arguments[1],s=arguments[2],a=arguments[3],A=[],u=1,c=16,h="S",p=null;"object"==typeof(e=e||{})&&(r=e.orientation,n=e.unit||n,s=e.format||s,a=e.compress||e.compressPdf||a,null!==(p=e.encryption||null)&&(p.userPassword=p.userPassword||"",p.ownerPassword=p.ownerPassword||"",p.userPermissions=p.userPermissions||[]),u="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(c=e.floatPrecision),h=e.defaultPathOperation||"S"),A=e.filters||(!0===a?["FlateEncode"]:A),n=n||"mm",r=(""+(r||"P")).toLowerCase();var m=e.putOnlyUsedFonts||!1,g={},y={internal:{},__private__:{}};y.__private__.PubSub=F;var v="1.3",w=y.__private__.getPdfVersion=function(){return v};y.__private__.setPdfVersion=function(e){v=e};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]};y.__private__.getPageFormats=function(){return b};var B=y.__private__.getPageFormat=function(e){return b[e]};s=s||"a4";var j={COMPAT:"compat",ADVANCED:"advanced"},_=j.COMPAT;function C(){this.saveGraphicsState(),ue(new Ke(_e,0,0,-_e,0,Ir()*_e).toString()+" cm"),this.setFontSize(this.getFontSize()/_e),h="n",_=j.ADVANCED}function x(){this.restoreGraphicsState(),h="S",_=j.COMPAT}var E=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&e!==t&&(e=400==t?"italic"==e?"italic":"normal":700==t&&"italic"!==e?"bold":e+""+t),e};y.advancedAPI=function(e){var t=_===j.COMPAT;return t&&C.call(this),"function"!=typeof e||(e(this),t&&x.call(this)),this},y.compatAPI=function(e){var t=_===j.ADVANCED;return t&&x.call(this),"function"!=typeof e||(e(this),t&&C.call(this)),this},y.isAdvancedAPI=function(){return _===j.ADVANCED};var N,S=function(e){if(_!==j.ADVANCED)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=y.roundToPrecision=y.__private__.roundToPrecision=function(e,r){var n=t||r;if(isNaN(e)||isNaN(n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(n).replace(/0+$/,"")};N=y.hpf=y.__private__.hpf="number"==typeof c?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,c)}:"smart"===c?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,16)};var P=y.f2=y.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return I(e,2)},O=y.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return I(e,3)},k=y.scale=y.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return _===j.COMPAT?e*_e:_===j.ADVANCED?e:void 0},R=function(e){return _===j.COMPAT?Ir()-e:_===j.ADVANCED?e:void 0},M=function(e){return k(R(e))};y.__private__.setPrecision=y.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var D,K="00000000000000000000000000000000",z=y.__private__.getFileId=function(){return K},V=y.__private__.setFileId=function(e){return K=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():K.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==p&&(Vt=new Q(p.userPermissions,p.userPassword,p.ownerPassword,K)),K};y.setFileId=function(e){return V(e),this},y.getFileId=function(){return z()};var q=y.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),r=t<0?"+":"-",n=Math.floor(Math.abs(t/60)),o=Math.abs(t%60),s=[r,Y(n),"'",Y(o),"'"].join("");return["D:",e.getFullYear(),Y(e.getMonth()+1),Y(e.getDate()),Y(e.getHours()),Y(e.getMinutes()),Y(e.getSeconds()),s].join("")},G=y.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),r=parseInt(e.substr(6,2),10)-1,n=parseInt(e.substr(8,2),10),o=parseInt(e.substr(10,2),10),s=parseInt(e.substr(12,2),10),i=parseInt(e.substr(14,2),10);return new Date(t,r,n,o,s,i,0)},X=y.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=q(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return D=t},W=y.__private__.getCreationDate=function(e){var t=D;return"jsDate"===e&&(t=G(D)),t};y.setCreationDate=function(e){return X(e),this},y.getCreationDate=function(e){return W(e)};var J,Y=y.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},Z=y.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},$=0,ee=[],te=[],re=0,ne=[],oe=[],se=!1,ie=te,ae=function(){$=0,re=0,te=[],ee=[],ne=[],Ye=Xe(),Ze=Xe()};y.__private__.setCustomOutputDestination=function(e){se=!0,ie=e};var Ae=function(e){se||(ie=e)};y.__private__.resetCustomOutputDestination=function(){se=!1,ie=te};var ue=y.__private__.out=function(e){return e=e.toString(),re+=e.length+1,ie.push(e),ie},ce=y.__private__.write=function(e){return ue(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},le=y.__private__.getArrayBuffer=function(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r);t--;)n[t]=e.charCodeAt(t);return r},de=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return de};var fe=e.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(e){return fe=_===j.ADVANCED?e/_e:e,this};var he,pe=y.__private__.getFontSize=y.getFontSize=function(){return _===j.COMPAT?fe:fe*_e},me=e.R2L||!1;y.__private__.setR2L=y.setR2L=function(e){return me=e,this},y.__private__.getR2L=y.getR2L=function(){return me};var ge,ye=y.__private__.setZoomMode=function(e){if(/^\d*\.?\d*%$/.test(e))he=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');he=e}else he=parseInt(e,10)};y.__private__.getZoomMode=function(){return he};var ve,we=y.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');ge=e};y.__private__.getPageMode=function(){return ge};var be=y.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');ve=e};y.__private__.getLayoutMode=function(){return ve},y.__private__.setDisplayMode=y.setDisplayMode=function(e,t,r){return ye(e),be(t),we(r),this};var Be={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(e){if(-1===Object.keys(Be).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Be[e]},y.__private__.getDocumentProperties=function(){return Be},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(e){for(var t in Be)Be.hasOwnProperty(t)&&e[t]&&(Be[t]=e[t]);return this},y.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(Be).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Be[e]=t};var je,_e,Ce,xe,Ee,Ne={},Qe={},Fe=[],Ue={},Se={},Le={},Te={},He=null,Ie=0,Pe=[],Oe=new F(y),ke=e.hotfixes||[],Re={},Me={},De=[],Ke=function(e,t,r,n,o,s){if(!(this instanceof Ke))return new Ke(e,t,r,n,o,s);isNaN(e)&&(e=1),isNaN(t)&&(t=0),isNaN(r)&&(r=0),isNaN(n)&&(n=1),isNaN(o)&&(o=0),isNaN(s)&&(s=0),this._matrix=[e,t,r,n,o,s]};Object.defineProperty(Ke.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ke.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ke.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ke.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ke.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ke.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ke.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Ke.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Ke.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Ke.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Ke.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Ke.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Ke.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ke.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ke.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ke.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ke.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(e)},Ke.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,r=e.sx*this.shy+e.shy*this.sy,n=e.shx*this.sx+e.sy*this.shx,o=e.shx*this.shy+e.sy*this.sy,s=e.tx*this.sx+e.ty*this.shx+this.tx,i=e.tx*this.shy+e.ty*this.sy+this.ty;return new Ke(t,r,n,o,s,i)},Ke.prototype.decompose=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,o=this.tx,s=this.ty,i=Math.sqrt(e*e+t*t),a=(e/=i)*r+(t/=i)*n;r-=e*a,n-=t*a;var A=Math.sqrt(r*r+n*n);return a/=A,e*(n/=A)<t*(r/=A)&&(e=-e,t=-t,a=-a,i=-i),{scale:new Ke(i,0,0,A,0,0),translate:new Ke(1,0,0,1,o,s),rotate:new Ke(e,t,-t,e,0,0),skew:new Ke(1,0,a,1,0,0)}},Ke.prototype.toString=function(e){return this.join(" ")},Ke.prototype.inversed=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,o=this.tx,s=this.ty,i=1/(e*n-t*r),a=n*i,A=-t*i,u=-r*i,c=e*i;return new Ke(a,A,u,c,-a*o-u*s,-A*o-c*s)},Ke.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,r=e.x*this.shy+e.y*this.sy+this.ty;return new Nr(t,r)},Ke.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),r=this.applyToPoint(new Nr(e.x+e.w,e.y+e.h));return new Qr(t.x,t.y,r.x-t.x,r.y-t.y)},Ke.prototype.clone=function(){var e=this.sx,t=this.shy,r=this.shx,n=this.sy,o=this.tx,s=this.ty;return new Ke(e,t,r,n,o,s)},y.Matrix=Ke;var ze=y.matrixMult=function(e,t){return t.multiply(e)},Ve=new Ke(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Ve;var qe=function(e,t){if(!Se[e]){var r=(t instanceof L?"Sh":"P")+(Object.keys(Ue).length+1).toString(10);t.id=r,Se[e]=r,Ue[r]=t,Oe.publish("addPattern",t)}};y.ShadingPattern=L,y.TilingPattern=T,y.addShadingPattern=function(e,t){return S("addShadingPattern()"),qe(e,t),this},y.beginTilingPattern=function(e){S("beginTilingPattern()"),Ur(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},y.endTilingPattern=function(e,t){S("endTilingPattern()"),t.stream=oe[J].join("\n"),qe(e,t),Oe.publish("endTilingPattern",t),De.pop().restore()};var Ge=y.__private__.newObject=function(){var e=Xe();return We(e,!0),e},Xe=y.__private__.newObjectDeferred=function(){return $++,ee[$]=function(){return re},$},We=function(e,t){return t="boolean"==typeof t&&t,ee[e]=re,t&&ue(e+" 0 obj"),e},Je=y.__private__.newAdditionalObject=function(){var e={objId:Xe(),content:""};return ne.push(e),e},Ye=Xe(),Ze=Xe(),$e=y.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var r=parseFloat(t[0]);t=[r,r,r,"r"]}for(var n="#",o=0;o<3;o++)n+=("0"+Math.floor(255*parseFloat(t[o])).toString(16)).slice(-2);return n},et=y.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var r=e.ch1,n=e.ch2,o=e.ch3,s=e.ch4,i="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof r&&"#"!==r.charAt(0)){var a=new f(r);if(a.ok)r=a.toHex();else if(!/^\d*\.?\d*$/.test(r))throw new Error('Invalid color "'+r+'" passed to jsPDF.encodeColorString.')}if("string"==typeof r&&/^#[0-9A-Fa-f]{3}$/.test(r)&&(r="#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]),"string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r)){var A=parseInt(r.substr(1),16);r=A>>16&255,n=A>>8&255,o=255&A}if(void 0===n||void 0===s&&r===n&&n===o)if("string"==typeof r)t=r+" "+i[0];else switch(e.precision){case 2:t=P(r/255)+" "+i[0];break;case 3:default:t=O(r/255)+" "+i[0]}else if(void 0===s||"object"==typeof s){if(s&&!isNaN(s.a)&&0===s.a)return["1.","1.","1.",i[1]].join(" ");if("string"==typeof r)t=[r,n,o,i[1]].join(" ");else switch(e.precision){case 2:t=[P(r/255),P(n/255),P(o/255),i[1]].join(" ");break;default:case 3:t=[O(r/255),O(n/255),O(o/255),i[1]].join(" ")}}else if("string"==typeof r)t=[r,n,o,s,i[2]].join(" ");else switch(e.precision){case 2:t=[P(r),P(n),P(o),P(s),i[2]].join(" ");break;case 3:default:t=[O(r),O(n),O(o),O(s),i[2]].join(" ")}return t},tt=y.__private__.getFilters=function(){return A},rt=y.__private__.putStream=function(e){var t=(e=e||{}).data||"",r=e.filters||tt(),n=e.alreadyAppliedFilters||[],o=e.addLength1||!1,s=t.length,i=e.objectId,a=function(e){return e};if(null!==p&&void 0===i)throw new Error("ObjectId must be passed to putStream for file encryption");null!==p&&(a=Vt.encryptor(i,0));var A={};!0===r&&(r=["FlateEncode"]);var u=e.additionalKeyValues||[],c=(A=void 0!==H.API.processDataByFilters?H.API.processDataByFilters(t,r):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==A.data.length&&(u.push({key:"Length",value:A.data.length}),!0===o&&u.push({key:"Length1",value:s})),0!=c.length)if(c.split("/").length-1==1)u.push({key:"Filter",value:c});else{u.push({key:"Filter",value:"["+c+"]"});for(var l=0;l<u.length;l+=1)if("DecodeParms"===u[l].key){for(var d=[],f=0;f<A.reverseChain.split("/").length-1;f+=1)d.push("null");d.push(u[l].value),u[l].value="["+d.join(" ")+"]"}}ue("<<");for(var h=0;h<u.length;h++)ue("/"+u[h].key+" "+u[h].value);ue(">>"),0!==A.data.length&&(ue("stream"),ue(a(A.data)),ue("endstream"))},nt=y.__private__.putPage=function(e){var t=e.number,r=e.data,n=e.objId,o=e.contentsObjId;We(n,!0),ue("<</Type /Page"),ue("/Parent "+e.rootDictionaryObjId+" 0 R"),ue("/Resources "+e.resourceDictionaryObjId+" 0 R"),ue("/MediaBox ["+parseFloat(N(e.mediaBox.bottomLeftX))+" "+parseFloat(N(e.mediaBox.bottomLeftY))+" "+N(e.mediaBox.topRightX)+" "+N(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&ue("/CropBox ["+N(e.cropBox.bottomLeftX)+" "+N(e.cropBox.bottomLeftY)+" "+N(e.cropBox.topRightX)+" "+N(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&ue("/BleedBox ["+N(e.bleedBox.bottomLeftX)+" "+N(e.bleedBox.bottomLeftY)+" "+N(e.bleedBox.topRightX)+" "+N(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&ue("/TrimBox ["+N(e.trimBox.bottomLeftX)+" "+N(e.trimBox.bottomLeftY)+" "+N(e.trimBox.topRightX)+" "+N(e.trimBox.topRightY)+"]"),null!==e.artBox&&ue("/ArtBox ["+N(e.artBox.bottomLeftX)+" "+N(e.artBox.bottomLeftY)+" "+N(e.artBox.topRightX)+" "+N(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&ue("/UserUnit "+e.userUnit),Oe.publish("putPage",{objId:n,pageContext:Pe[t],pageNumber:t,page:r}),ue("/Contents "+o+" 0 R"),ue(">>"),ue("endobj");var s=r.join("\n");return _===j.ADVANCED&&(s+="\nQ"),We(o,!0),rt({data:s,filters:tt(),objectId:o}),ue("endobj"),n},ot=y.__private__.putPages=function(){var e,t,r=[];for(e=1;e<=Ie;e++)Pe[e].objId=Xe(),Pe[e].contentsObjId=Xe();for(e=1;e<=Ie;e++)r.push(nt({number:e,data:oe[e],objId:Pe[e].objId,contentsObjId:Pe[e].contentsObjId,mediaBox:Pe[e].mediaBox,cropBox:Pe[e].cropBox,bleedBox:Pe[e].bleedBox,trimBox:Pe[e].trimBox,artBox:Pe[e].artBox,userUnit:Pe[e].userUnit,rootDictionaryObjId:Ye,resourceDictionaryObjId:Ze}));We(Ye,!0),ue("<</Type /Pages");var n="/Kids [";for(t=0;t<Ie;t++)n+=r[t]+" 0 R ";ue(n+"]"),ue("/Count "+Ie),ue(">>"),ue("endobj"),Oe.publish("postPutPages")},st=function(e){var t=function(e,t){return-1!==e.indexOf(" ")?"("+Qt(e,t)+")":Qt(e,t)};Oe.publish("putFont",{font:e,out:ue,newObject:Ge,putStream:rt,pdfEscapeWithNeededParanthesis:t}),!0!==e.isAlreadyPutted&&(e.objectNumber=Ge(),ue("<<"),ue("/Type /Font"),ue("/BaseFont /"+t(e.postScriptName)),ue("/Subtype /Type1"),"string"==typeof e.encoding&&ue("/Encoding /"+e.encoding),ue("/FirstChar 32"),ue("/LastChar 255"),ue(">>"),ue("endobj"))},it=function(){for(var e in Ne)Ne.hasOwnProperty(e)&&(!1===m||!0===m&&g.hasOwnProperty(e))&&st(Ne[e])},at=function(e){e.objectNumber=Ge();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[N(e.x),N(e.y),N(e.x+e.width),N(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var r=e.pages[1].join("\n");rt({data:r,additionalKeyValues:t,objectId:e.objectNumber}),ue("endobj")},At=function(){for(var e in Re)Re.hasOwnProperty(e)&&at(Re[e])},ut=function(e,t){var r,n=[],o=1/(t-1);for(r=0;r<1;r+=o)n.push(r);if(n.push(1),0!=e[0].offset){var s={offset:0,color:e[0].color};e.unshift(s)}if(1!=e[e.length-1].offset){var i={offset:1,color:e[e.length-1].color};e.push(i)}for(var a="",A=0,u=0;u<n.length;u++){for(r=n[u];r>e[A+1].offset;)A++;var c=e[A].offset,l=(r-c)/(e[A+1].offset-c),d=e[A].color,f=e[A+1].color;a+=Z(Math.round((1-l)*d[0]+l*f[0]).toString(16))+Z(Math.round((1-l)*d[1]+l*f[1]).toString(16))+Z(Math.round((1-l)*d[2]+l*f[2]).toString(16))}return a.trim()},ct=function(e,t){t||(t=21);var r=Ge(),n=ut(e.colors,t),o=[];o.push({key:"FunctionType",value:"0"}),o.push({key:"Domain",value:"[0.0 1.0]"}),o.push({key:"Size",value:"["+t+"]"}),o.push({key:"BitsPerSample",value:"8"}),o.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),o.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rt({data:n,additionalKeyValues:o,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),ue("endobj"),e.objectNumber=Ge(),ue("<< /ShadingType "+e.type),ue("/ColorSpace /DeviceRGB");var s="/Coords ["+N(parseFloat(e.coords[0]))+" "+N(parseFloat(e.coords[1]))+" ";2===e.type?s+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3])):s+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3]))+" "+N(parseFloat(e.coords[4]))+" "+N(parseFloat(e.coords[5])),ue(s+="]"),e.matrix&&ue("/Matrix ["+e.matrix.toString()+"]"),ue("/Function "+r+" 0 R"),ue("/Extend [true true]"),ue(">>"),ue("endobj")},lt=function(e,t){var r=Xe(),n=Ge();t.push({resourcesOid:r,objectOid:n}),e.objectNumber=n;var o=[];o.push({key:"Type",value:"/Pattern"}),o.push({key:"PatternType",value:"1"}),o.push({key:"PaintType",value:"1"}),o.push({key:"TilingType",value:"1"}),o.push({key:"BBox",value:"["+e.boundingBox.map(N).join(" ")+"]"}),o.push({key:"XStep",value:N(e.xStep)}),o.push({key:"YStep",value:N(e.yStep)}),o.push({key:"Resources",value:r+" 0 R"}),e.matrix&&o.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),rt({data:e.stream,additionalKeyValues:o,objectId:e.objectNumber}),ue("endobj")},dt=function(e){var t;for(t in Ue)Ue.hasOwnProperty(t)&&(Ue[t]instanceof L?ct(Ue[t]):Ue[t]instanceof T&&lt(Ue[t],e))},ft=function(e){for(var t in e.objectNumber=Ge(),ue("<<"),e)switch(t){case"opacity":ue("/ca "+P(e[t]));break;case"stroke-opacity":ue("/CA "+P(e[t]))}ue(">>"),ue("endobj")},ht=function(){var e;for(e in Le)Le.hasOwnProperty(e)&&ft(Le[e])},pt=function(){for(var e in ue("/XObject <<"),Re)Re.hasOwnProperty(e)&&Re[e].objectNumber>=0&&ue("/"+e+" "+Re[e].objectNumber+" 0 R");Oe.publish("putXobjectDict"),ue(">>")},mt=function(){Vt.oid=Ge(),ue("<<"),ue("/Filter /Standard"),ue("/V "+Vt.v),ue("/R "+Vt.r),ue("/U <"+Vt.toHexString(Vt.U)+">"),ue("/O <"+Vt.toHexString(Vt.O)+">"),ue("/P "+Vt.P),ue(">>"),ue("endobj")},gt=function(){for(var e in ue("/Font <<"),Ne)Ne.hasOwnProperty(e)&&(!1===m||!0===m&&g.hasOwnProperty(e))&&ue("/"+e+" "+Ne[e].objectNumber+" 0 R");ue(">>")},yt=function(){if(Object.keys(Ue).length>0){for(var e in ue("/Shading <<"),Ue)Ue.hasOwnProperty(e)&&Ue[e]instanceof L&&Ue[e].objectNumber>=0&&ue("/"+e+" "+Ue[e].objectNumber+" 0 R");Oe.publish("putShadingPatternDict"),ue(">>")}},vt=function(e){if(Object.keys(Ue).length>0){for(var t in ue("/Pattern <<"),Ue)Ue.hasOwnProperty(t)&&Ue[t]instanceof y.TilingPattern&&Ue[t].objectNumber>=0&&Ue[t].objectNumber<e&&ue("/"+t+" "+Ue[t].objectNumber+" 0 R");Oe.publish("putTilingPatternDict"),ue(">>")}},wt=function(){if(Object.keys(Le).length>0){var e;for(e in ue("/ExtGState <<"),Le)Le.hasOwnProperty(e)&&Le[e].objectNumber>=0&&ue("/"+e+" "+Le[e].objectNumber+" 0 R");Oe.publish("putGStateDict"),ue(">>")}},bt=function(e){We(e.resourcesOid,!0),ue("<<"),ue("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),gt(),yt(),vt(e.objectOid),wt(),pt(),ue(">>"),ue("endobj")},Bt=function(){var e=[];it(),ht(),At(),dt(e),Oe.publish("putResources"),e.forEach(bt),bt({resourcesOid:Ze,objectOid:Number.MAX_SAFE_INTEGER}),Oe.publish("postPutResources")},jt=function(){Oe.publish("putAdditionalObjects");for(var e=0;e<ne.length;e++){var t=ne[e];We(t.objId,!0),ue(t.content),ue("endobj")}Oe.publish("postPutAdditionalObjects")},_t=function(e){Qe[e.fontName]=Qe[e.fontName]||{},Qe[e.fontName][e.fontStyle]=e.id},Ct=function(e,t,r,n,o){var s={id:"F"+(Object.keys(Ne).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:r,encoding:n,isStandardFont:o||!1,metadata:{}};return Oe.publish("addFont",{font:s,instance:this}),Ne[s.id]=s,_t(s),s.id},xt=function(e){for(var t=0,r=de.length;t<r;t++){var n=Ct.call(this,e[t][0],e[t][1],e[t][2],de[t][3],!0);!1===m&&(g[n]=!0);var o=e[t][0].split("-");_t({id:n,fontName:o[0],fontStyle:o[1]||""})}Oe.publish("addFonts",{fonts:Ne,dictionary:Qe})},Et=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var r="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!o.console)throw new Error(r);o.console.error(r,e),o.alert&&alert(r)}},e.foo.bar=e,e.foo},Nt=function(e,t){var r,n,o,s,i,a,A,u,c;if(o=(t=t||{}).sourceEncoding||"Unicode",i=t.outputEncoding,(t.autoencode||i)&&Ne[je].metadata&&Ne[je].metadata[o]&&Ne[je].metadata[o].encoding&&(s=Ne[je].metadata[o].encoding,!i&&Ne[je].encoding&&(i=Ne[je].encoding),!i&&s.codePages&&(i=s.codePages[0]),"string"==typeof i&&(i=s[i]),i)){for(A=!1,a=[],r=0,n=e.length;r<n;r++)(u=i[e.charCodeAt(r)])?a.push(String.fromCharCode(u)):a.push(e[r]),a[r].charCodeAt(0)>>8&&(A=!0);e=a.join("")}for(r=e.length;void 0===A&&0!==r;)e.charCodeAt(r-1)>>8&&(A=!0),r--;if(!A)return e;for(a=t.noBOM?[]:[254,255],r=0,n=e.length;r<n;r++){if((c=(u=e.charCodeAt(r))>>8)>>8)throw new Error("Character at position "+r+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");a.push(c),a.push(u-(c<<8))}return String.fromCharCode.apply(void 0,a)},Qt=y.__private__.pdfEscape=y.pdfEscape=function(e,t){return Nt(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ft=y.__private__.beginPage=function(e){oe[++Ie]=[],Pe[Ie]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},Lt(Ie),Ae(oe[J])},Ut=function(e,t){var n,o,a;switch(r=t||r,"string"==typeof e&&(n=B(e.toLowerCase()),Array.isArray(n)&&(o=n[0],a=n[1])),Array.isArray(e)&&(o=e[0]*_e,a=e[1]*_e),isNaN(o)&&(o=s[0],a=s[1]),(o>14400||a>14400)&&(i.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),a=Math.min(14400,a)),s=[o,a],r.substr(0,1)){case"l":a>o&&(s=[a,o]);break;case"p":o>a&&(s=[a,o])}Ft(s),lr(cr),ue(vr),0!==Cr&&ue(Cr+" J"),0!==xr&&ue(xr+" j"),Oe.publish("addPage",{pageNumber:Ie})},St=function(e){e>0&&e<=Ie&&(oe.splice(e,1),Pe.splice(e,1),Ie--,J>Ie&&(J=Ie),this.setPage(J))},Lt=function(e){e>0&&e<=Ie&&(J=e)},Tt=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return oe.length-1},Ht=function(e,t,r){var n,o=void 0;return r=r||{},e=void 0!==e?e:Ne[je].fontName,t=void 0!==t?t:Ne[je].fontStyle,n=e.toLowerCase(),void 0!==Qe[n]&&void 0!==Qe[n][t]?o=Qe[n][t]:void 0!==Qe[e]&&void 0!==Qe[e][t]?o=Qe[e][t]:!1===r.disableWarning&&i.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),o||r.noFallback||null==(o=Qe.times[t])&&(o=Qe.times.normal),o},It=y.__private__.putInfo=function(){var e=Ge(),t=function(e){return e};for(var r in null!==p&&(t=Vt.encryptor(e,0)),ue("<<"),ue("/Producer ("+Qt(t("jsPDF "+H.version))+")"),Be)Be.hasOwnProperty(r)&&Be[r]&&ue("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+Qt(t(Be[r]))+")");ue("/CreationDate ("+Qt(t(D))+")"),ue(">>"),ue("endobj")},Pt=y.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Ye;switch(Ge(),ue("<<"),ue("/Type /Catalog"),ue("/Pages "+t+" 0 R"),he||(he="fullwidth"),he){case"fullwidth":ue("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ue("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ue("/OpenAction [3 0 R /Fit]");break;case"original":ue("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+he;"%"===r.substr(r.length-1)&&(he=parseInt(he)/100),"number"==typeof he&&ue("/OpenAction [3 0 R /XYZ null null "+P(he)+"]")}switch(ve||(ve="continuous"),ve){case"continuous":ue("/PageLayout /OneColumn");break;case"single":ue("/PageLayout /SinglePage");break;case"two":case"twoleft":ue("/PageLayout /TwoColumnLeft");break;case"tworight":ue("/PageLayout /TwoColumnRight")}ge&&ue("/PageMode /"+ge),Oe.publish("putCatalog"),ue(">>"),ue("endobj")},Ot=y.__private__.putTrailer=function(){ue("trailer"),ue("<<"),ue("/Size "+($+1)),ue("/Root "+$+" 0 R"),ue("/Info "+($-1)+" 0 R"),null!==p&&ue("/Encrypt "+Vt.oid+" 0 R"),ue("/ID [ <"+K+"> <"+K+"> ]"),ue(">>")},kt=y.__private__.putHeader=function(){ue("%PDF-"+v),ue("%ºß¬à")},Rt=y.__private__.putXRef=function(){var e="0000000000";ue("xref"),ue("0 "+($+1)),ue("0000000000 65535 f ");for(var t=1;t<=$;t++)"function"==typeof ee[t]?ue((e+ee[t]()).slice(-10)+" 00000 n "):void 0!==ee[t]?ue((e+ee[t]).slice(-10)+" 00000 n "):ue("0000000000 00000 n ")},Mt=y.__private__.buildDocument=function(){ae(),Ae(te),Oe.publish("buildDocument"),kt(),ot(),jt(),Bt(),null!==p&&mt(),It(),Pt();var e=re;return Rt(),Ot(),ue("startxref"),ue(""+e),ue("%%EOF"),Ae(oe[J]),te.join("\n")},Dt=y.__private__.getBlob=function(e){return new Blob([le(e)],{type:"application/pdf"})},Kt=y.output=y.__private__.output=Et((function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return Mt();case"save":y.save(t.filename);break;case"arraybuffer":return le(Mt());case"blob":return Dt(Mt());case"bloburi":case"bloburl":if(void 0!==o.URL&&"function"==typeof o.URL.createObjectURL)return o.URL&&o.URL.createObjectURL(Dt(Mt()))||void 0;i.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=Mt();try{r=l(n)}catch(e){r=l(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+t.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+(t.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",a=o.open();return null!==a&&a.document.write(s),a}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var A='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',u=o.open();if(null!==u){u.document.write(A);var c=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=t.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(c.output("bloburl"))}}return u}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(o))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var d='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',f=o.open();if(null!==f&&(f.document.write(d),f.document.title=t.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return o.document.location.href=this.output("datauristring",t);default:return null}})),zt=function(e){return!0===Array.isArray(ke)&&ke.indexOf(e)>-1};switch(n){case"pt":_e=1;break;case"mm":_e=72/25.4;break;case"cm":_e=72/2.54;break;case"in":_e=72;break;case"px":_e=1==zt("px_scaling")?.75:96/72;break;case"pc":case"em":_e=12;break;case"ex":_e=6;break;default:throw new Error("Invalid unit: "+n)}var Vt=null;X(),V();var qt=function(e){return null!==p?Vt.encryptor(e,0):function(e){return e}},Gt=y.__private__.getPageInfo=y.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Pe[e].objId,pageNumber:e,pageContext:Pe[e]}},Xt=y.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Pe)if(Pe[t].objId===e)break;return Gt(t)},Wt=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Pe[J].objId,pageNumber:J,pageContext:Pe[J]}};y.addPage=function(){return Ut.apply(this,arguments),this},y.setPage=function(){return Lt.apply(this,arguments),Ae.call(this,oe[J]),this},y.insertPage=function(e){return this.addPage(),this.movePage(J,e),this},y.movePage=function(e,t){var r,n;if(e>t){r=oe[e],n=Pe[e];for(var o=e;o>t;o--)oe[o]=oe[o-1],Pe[o]=Pe[o-1];oe[t]=r,Pe[t]=n,this.setPage(t)}else if(e<t){r=oe[e],n=Pe[e];for(var s=e;s<t;s++)oe[s]=oe[s+1],Pe[s]=Pe[s+1];oe[t]=r,Pe[t]=n,this.setPage(t)}return this},y.deletePage=function(){return St.apply(this,arguments),this},y.__private__.text=y.text=function(e,t,r,n,o){var s,i,a,A,u,c,l,d,f=(n=n||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof r||Array.isArray(r))){var h=r;r=t,t=e,e=h}if(arguments[3]instanceof Ke==0?(a=arguments[4],A=arguments[5],"object"==typeof(l=arguments[3])&&null!==l||("string"==typeof a&&(A=a,a=null),"string"==typeof l&&(A=l,l=null),"number"==typeof l&&(a=l,l=null),n={flags:l,angle:a,align:A})):(S("The transform parameter of text() with a Matrix value"),d=o),isNaN(t)||isNaN(r)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return f;var p="",m=!1,y="number"==typeof n.lineHeightFactor?n.lineHeightFactor:ur,v=f.internal.scaleFactor;function w(e){return e=e.split("\t").join(Array(n.TabLen||9).join(" ")),Qt(e,l)}function b(e){for(var t,r=e.concat(),n=[],o=r.length;o--;)"string"==typeof(t=r.shift())?n.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?n.push(t[0]):n.push([t[0],t[1],t[2]]);return n}function B(e,t){var r;if("string"==typeof e)r=t(e)[0];else if(Array.isArray(e)){for(var n,o,s=e.concat(),i=[],a=s.length;a--;)"string"==typeof(n=s.shift())?i.push(t(n)[0]):Array.isArray(n)&&"string"==typeof n[0]&&(o=t(n[0],n[1],n[2]),i.push([o[0],o[1],o[2]]));r=i}return r}var C=!1,x=!0;if("string"==typeof e)C=!0;else if(Array.isArray(e)){var E=e.concat();i=[];for(var Q,F=E.length;F--;)("string"!=typeof(Q=E.shift())||Array.isArray(Q)&&"string"!=typeof Q[0])&&(x=!1);C=x}if(!1===C)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var U=fe/f.internal.scaleFactor,L=U*(ur-1);switch(n.baseline){case"bottom":r-=L;break;case"top":r+=U-L;break;case"hanging":r+=U-2*L;break;case"middle":r+=U/2-L}if((c=n.maxWidth||0)>0&&("string"==typeof e?e=f.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(f.splitTextToSize(t,c))}),[]))),s={text:e,x:t,y:r,options:n,mutex:{pdfEscape:Qt,activeFontKey:je,fonts:Ne,activeFontSize:fe}},Oe.publish("preProcessText",s),e=s.text,a=(n=s.options).angle,d instanceof Ke==0&&a&&"number"==typeof a){a*=Math.PI/180,0===n.rotationDirection&&(a=-a),_===j.ADVANCED&&(a=-a);var T=Math.cos(a),H=Math.sin(a);d=new Ke(T,H,-H,T,0,0)}else a&&a instanceof Ke&&(d=a);_!==j.ADVANCED||d||(d=Ve),void 0!==(u=n.charSpace||jr)&&(p+=N(k(u))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),n.lang;var I=-1,P=void 0!==n.renderingMode?n.renderingMode:n.stroke,O=f.internal.getCurrentPageInfo().pageContext;switch(P){case 0:case!1:case"fill":I=0;break;case 1:case!0:case"stroke":I=1;break;case 2:case"fillThenStroke":I=2;break;case 3:case"invisible":I=3;break;case 4:case"fillAndAddForClipping":I=4;break;case 5:case"strokeAndAddPathForClipping":I=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":I=6;break;case 7:case"addToPathForClipping":I=7}var R=void 0!==O.usedRenderingMode?O.usedRenderingMode:-1;-1!==I?p+=I+" Tr\n":-1!==R&&(p+="0 Tr\n"),-1!==I&&(O.usedRenderingMode=I),A=n.align||"left";var M,D=fe*y,K=f.internal.pageSize.getWidth(),z=Ne[je];u=n.charSpace||jr,c=n.maxWidth||0,l=Object.assign({autoencode:!0,noBOM:!0},n.flags);var V=[];if("[object Array]"===Object.prototype.toString.call(e)){var q;i=b(e),"left"!==A&&(M=i.map((function(e){return f.getStringUnitWidth(e,{font:z,charSpace:u,fontSize:fe,doKerning:!1})*fe/v})));var G,X=0;if("right"===A){t-=M[0],e=[],F=i.length;for(var W=0;W<F;W++)0===W?(G=pr(t),q=mr(r)):(G=k(X-M[W]),q=-D),e.push([i[W],G,q]),X=M[W]}else if("center"===A){t-=M[0]/2,e=[],F=i.length;for(var J=0;J<F;J++)0===J?(G=pr(t),q=mr(r)):(G=k((X-M[J])/2),q=-D),e.push([i[J],G,q]),X=M[J]}else if("left"===A){e=[],F=i.length;for(var Y=0;Y<F;Y++)e.push(i[Y])}else{if("justify"!==A)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');e=[],F=i.length,c=0!==c?c:K;for(var Z=0;Z<F;Z++)q=0===Z?mr(r):-D,G=0===Z?pr(t):0,Z<F-1&&V.push(N(k((c-M[Z])/(i[Z].split(" ").length-1)))),e.push([i[Z],G,q])}}var $="boolean"==typeof n.R2L?n.R2L:me;!0===$&&(e=B(e,(function(e,t,r){return[e.split("").reverse().join(""),t,r]}))),s={text:e,x:t,y:r,options:n,mutex:{pdfEscape:Qt,activeFontKey:je,fonts:Ne,activeFontSize:fe}},Oe.publish("postProcessText",s),e=s.text,m=s.mutex.isHex||!1;var ee=Ne[je].encoding;"WinAnsiEncoding"!==ee&&"StandardEncoding"!==ee||(e=B(e,(function(e,t,r){return[w(e),t,r]}))),i=b(e),e=[];for(var te,re,ne,oe=0,se=1,ie=Array.isArray(i[0])?se:oe,ae="",Ae=function(e,t,r){var o="";return r instanceof Ke?(r="number"==typeof n.angle?ze(r,new Ke(1,0,0,1,e,t)):ze(new Ke(1,0,0,1,e,t),r),_===j.ADVANCED&&(r=ze(new Ke(1,0,0,-1,0,0),r)),o=r.join(" ")+" Tm\n"):o=N(e)+" "+N(t)+" Td\n",o},ce=0;ce<i.length;ce++){switch(ae="",ie){case se:ne=(m?"<":"(")+i[ce][0]+(m?">":")"),te=parseFloat(i[ce][1]),re=parseFloat(i[ce][2]);break;case oe:ne=(m?"<":"(")+i[ce]+(m?">":")"),te=pr(t),re=mr(r)}void 0!==V&&void 0!==V[ce]&&(ae=V[ce]+" Tw\n"),0===ce?e.push(ae+Ae(te,re,d)+ne):ie===oe?e.push(ae+ne):ie===se&&e.push(ae+Ae(te,re,d)+ne)}e=ie===oe?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var le="BT\n/";return le+=je+" "+fe+" Tf\n",le+=N(fe*y)+" TL\n",le+=br+"\n",le+=p,le+=e,ue(le+="ET"),g[je]=!0,f};var Jt=y.__private__.clip=y.clip=function(e){return ue("evenodd"===e?"W*":"W"),this};y.clipEvenOdd=function(){return Jt("evenodd")},y.__private__.discardPath=y.discardPath=function(){return ue("n"),this};var Yt=y.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(e){return Yt(e)&&(h=e),this};var Zt=y.__private__.getStyle=y.getStyle=function(e){var t=h;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},$t=y.close=function(){return ue("h"),this};y.stroke=function(){return ue("S"),this},y.fill=function(e){return er("f",e),this},y.fillEvenOdd=function(e){return er("f*",e),this},y.fillStroke=function(e){return er("B",e),this},y.fillStrokeEvenOdd=function(e){return er("B*",e),this};var er=function(e,t){"object"==typeof t?nr(t,e):ue(e)},tr=function(e){null===e||_===j.ADVANCED&&void 0===e||(e=Zt(e),ue(e))};function rr(e,t,r,n,o){var s=new T(t||this.boundingBox,r||this.xStep,n||this.yStep,this.gState,o||this.matrix);s.stream=this.stream;var i=e+"$$"+this.cloneIndex+++"$$";return qe(i,s),s}var nr=function(e,t){var r=Se[e.key],n=Ue[r];if(n instanceof L)ue("q"),ue(or(t)),n.gState&&y.setGState(n.gState),ue(e.matrix.toString()+" cm"),ue("/"+r+" sh"),ue("Q");else if(n instanceof T){var o=new Ke(1,0,0,-1,0,Ir());e.matrix&&(o=o.multiply(e.matrix||Ve),r=rr.call(n,e.key,e.boundingBox,e.xStep,e.yStep,o).id),ue("q"),ue("/Pattern cs"),ue("/"+r+" scn"),n.gState&&y.setGState(n.gState),ue(t),ue("Q")}},or=function(e){switch(e){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},sr=y.moveTo=function(e,t){return ue(N(k(e))+" "+N(M(t))+" m"),this},ir=y.lineTo=function(e,t){return ue(N(k(e))+" "+N(M(t))+" l"),this},ar=y.curveTo=function(e,t,r,n,o,s){return ue([N(k(e)),N(M(t)),N(k(r)),N(M(n)),N(k(o)),N(M(s)),"c"].join(" ")),this};y.__private__.line=y.line=function(e,t,r,n,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Yt(o))throw new Error("Invalid arguments passed to jsPDF.line");return _===j.COMPAT?this.lines([[r-e,n-t]],e,t,[1,1],o||"S"):this.lines([[r-e,n-t]],e,t,[1,1]).stroke()},y.__private__.lines=y.lines=function(e,t,r,n,o,s){var i,a,A,u,c,l,d,f,h,p,m,g;if("number"==typeof e&&(g=r,r=t,t=e,e=g),n=n||[1,1],s=s||!1,isNaN(t)||isNaN(r)||!Array.isArray(e)||!Array.isArray(n)||!Yt(o)||"boolean"!=typeof s)throw new Error("Invalid arguments passed to jsPDF.lines");for(sr(t,r),i=n[0],a=n[1],u=e.length,p=t,m=r,A=0;A<u;A++)2===(c=e[A]).length?(p=c[0]*i+p,m=c[1]*a+m,ir(p,m)):(l=c[0]*i+p,d=c[1]*a+m,f=c[2]*i+p,h=c[3]*a+m,p=c[4]*i+p,m=c[5]*a+m,ar(l,d,f,h,p,m));return s&&$t(),tr(o),this},y.path=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r.c;switch(r.op){case"m":sr(n[0],n[1]);break;case"l":ir(n[0],n[1]);break;case"c":ar.apply(this,n);break;case"h":$t()}}return this},y.__private__.rect=y.rect=function(e,t,r,n,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Yt(o))throw new Error("Invalid arguments passed to jsPDF.rect");return _===j.COMPAT&&(n=-n),ue([N(k(e)),N(M(t)),N(k(r)),N(k(n)),"re"].join(" ")),tr(o),this},y.__private__.triangle=y.triangle=function(e,t,r,n,o,s,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o)||isNaN(s)||!Yt(i))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[r-e,n-t],[o-r,s-n],[e-o,t-s]],e,t,[1,1],i,!0),this},y.__private__.roundedRect=y.roundedRect=function(e,t,r,n,o,s,i){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o)||isNaN(s)||!Yt(i))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var a=4/3*(Math.SQRT2-1);return o=Math.min(o,.5*r),s=Math.min(s,.5*n),this.lines([[r-2*o,0],[o*a,0,o,s-s*a,o,s],[0,n-2*s],[0,s*a,-o*a,s,-o,s],[2*o-r,0],[-o*a,0,-o,-s*a,-o,-s],[0,2*s-n],[0,-s*a,o*a,-s,o,-s]],e+o,t,[1,1],i,!0),this},y.__private__.ellipse=y.ellipse=function(e,t,r,n,o){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||!Yt(o))throw new Error("Invalid arguments passed to jsPDF.ellipse");var s=4/3*(Math.SQRT2-1)*r,i=4/3*(Math.SQRT2-1)*n;return sr(e+r,t),ar(e+r,t-i,e+s,t-n,e,t-n),ar(e-s,t-n,e-r,t-i,e-r,t),ar(e-r,t+i,e-s,t+n,e,t+n),ar(e+s,t+n,e+r,t+i,e+r,t),tr(o),this},y.__private__.circle=y.circle=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||!Yt(n))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,r,r,n)},y.setFont=function(e,t,r){return r&&(t=E(t,r)),je=Ht(e,t,{disableWarning:!1}),this};var Ar=y.__private__.getFont=y.getFont=function(){return Ne[Ht.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var e,t,r={};for(e in Qe)if(Qe.hasOwnProperty(e))for(t in r[e]=[],Qe[e])Qe[e].hasOwnProperty(t)&&r[e].push(t);return r},y.addFont=function(e,t,r,n,o){var s=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==s.indexOf(arguments[3])?o=arguments[3]:arguments[3]&&-1==s.indexOf(arguments[3])&&(r=E(r,n)),o=o||"Identity-H",Ct.call(this,e,t,r,o)};var ur,cr=e.lineWidth||.200025,lr=y.__private__.setLineWidth=y.setLineWidth=function(e){return ue(N(k(e))+" w"),this};y.__private__.setLineDash=H.API.setLineDash=H.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map((function(e){return N(k(e))})).join(" "),t=N(k(t)),ue("["+e+"] "+t+" d"),this};var dr=y.__private__.getLineHeight=y.getLineHeight=function(){return fe*ur};y.__private__.getLineHeight=y.getLineHeight=function(){return fe*ur};var fr=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(ur=e),this},hr=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return ur};fr(e.lineHeight);var pr=y.__private__.getHorizontalCoordinate=function(e){return k(e)},mr=y.__private__.getVerticalCoordinate=function(e){return _===j.ADVANCED?e:Pe[J].mediaBox.topRightY-Pe[J].mediaBox.bottomLeftY-k(e)},gr=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(e){return N(pr(e))},yr=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(e){return N(mr(e))},vr=e.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return $e(vr)},y.__private__.setStrokeColor=y.setDrawColor=function(e,t,r,n){return vr=et({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"draw",precision:2}),ue(vr),this};var wr=e.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return $e(wr)},y.__private__.setFillColor=y.setFillColor=function(e,t,r,n){return wr=et({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"fill",precision:2}),ue(wr),this};var br=e.textColor||"0 g",Br=y.__private__.getTextColor=y.getTextColor=function(){return $e(br)};y.__private__.setTextColor=y.setTextColor=function(e,t,r,n){return br=et({ch1:e,ch2:t,ch3:r,ch4:n,pdfColorType:"text",precision:3}),this};var jr=e.charSpace,_r=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(jr||0)};y.__private__.setCharSpace=y.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return jr=e,this};var Cr=0;y.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},y.__private__.setLineCap=y.setLineCap=function(e){var t=y.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Cr=t,ue(t+" J"),this};var xr=0;y.__private__.setLineJoin=y.setLineJoin=function(e){var t=y.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return xr=t,ue(t+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ue(N(k(e))+" M"),this},y.GState=U,y.setGState=function(e){(e="string"==typeof e?Le[Te[e]]:Er(null,e)).equals(He)||(ue("/"+e.id+" gs"),He=e)};var Er=function(e,t){if(!e||!Te[e]){var r=!1;for(var n in Le)if(Le.hasOwnProperty(n)&&Le[n].equals(t)){r=!0;break}if(r)t=Le[n];else{var o="GS"+(Object.keys(Le).length+1).toString(10);Le[o]=t,t.id=o}return e&&(Te[e]=t.id),Oe.publish("addGState",t),t}};y.addGState=function(e,t){return Er(e,t),this},y.saveGraphicsState=function(){return ue("q"),Fe.push({key:je,size:fe,color:br}),this},y.restoreGraphicsState=function(){ue("Q");var e=Fe.pop();return je=e.key,fe=e.size,br=e.color,He=null,this},y.setCurrentTransformationMatrix=function(e){return ue(e.toString()+" cm"),this},y.comment=function(e){return ue("#"+e),this};var Nr=function(e,t){var r=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var n=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var o="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return o},set:function(e){o=e.toString()}}),this},Qr=function(e,t,r,n){Nr.call(this,e,t),this.type="rect";var o=r||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}});var s=n||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return s},set:function(e){isNaN(e)||(s=parseFloat(e))}}),this},Fr=function(){this.page=Ie,this.currentPage=J,this.pages=oe.slice(0),this.pagesContext=Pe.slice(0),this.x=Ce,this.y=xe,this.matrix=Ee,this.width=Tr(J),this.height=Ir(J),this.outputDestination=ie,this.id="",this.objectNumber=-1};Fr.prototype.restore=function(){Ie=this.page,J=this.currentPage,Pe=this.pagesContext,oe=this.pages,Ce=this.x,xe=this.y,Ee=this.matrix,Hr(J,this.width),Pr(J,this.height),ie=this.outputDestination};var Ur=function(e,t,r,n,o){De.push(new Fr),Ie=J=0,oe=[],Ce=e,xe=t,Ee=o,Ft([r,n])},Sr=function(e){if(!Me[e]){var t=new Fr,r="Xo"+(Object.keys(Re).length+1).toString(10);t.id=r,Me[e]=r,Re[r]=t,Oe.publish("addFormObject",t),De.pop().restore()}};for(var Lr in y.beginFormObject=function(e,t,r,n,o){return Ur(e,t,r,n,o),this},y.endFormObject=function(e){return Sr(e),this},y.doFormObject=function(e,t){var r=Re[Me[e]];return ue("q"),ue(t.toString()+" cm"),ue("/"+r.id+" Do"),ue("Q"),this},y.getFormObject=function(e){var t=Re[Me[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},y.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(d(Dt(Mt()),e),"function"==typeof d.unload&&o.setTimeout&&setTimeout(d.unload,911),this):new Promise((function(t,r){try{var n=d(Dt(Mt()),e);"function"==typeof d.unload&&o.setTimeout&&setTimeout(d.unload,911),t(n)}catch(e){r(e.message)}}))},H.API)H.API.hasOwnProperty(Lr)&&("events"===Lr&&H.API.events.length?function(e,t){var r,n,o;for(o=t.length-1;-1!==o;o--)r=t[o][0],n=t[o][1],e.subscribe.apply(e,[r].concat("function"==typeof n?[n]:n))}(Oe,H.API.events):y[Lr]=H.API[Lr]);var Tr=y.getPageWidth=function(e){return(Pe[e=e||J].mediaBox.topRightX-Pe[e].mediaBox.bottomLeftX)/_e},Hr=y.setPageWidth=function(e,t){Pe[e].mediaBox.topRightX=t*_e+Pe[e].mediaBox.bottomLeftX},Ir=y.getPageHeight=function(e){return(Pe[e=e||J].mediaBox.topRightY-Pe[e].mediaBox.bottomLeftY)/_e},Pr=y.setPageHeight=function(e,t){Pe[e].mediaBox.topRightY=t*_e+Pe[e].mediaBox.bottomLeftY};return y.internal={pdfEscape:Qt,getStyle:Zt,getFont:Ar,getFontSize:pe,getCharSpace:_r,getTextColor:Br,getLineHeight:dr,getLineHeightFactor:hr,write:ce,getHorizontalCoordinate:pr,getVerticalCoordinate:mr,getCoordinateString:gr,getVerticalCoordinateString:yr,collections:{},newObject:Ge,newAdditionalObject:Je,newObjectDeferred:Xe,newObjectDeferredBegin:We,getFilters:tt,putStream:rt,events:Oe,scaleFactor:_e,pageSize:{getWidth:function(){return Tr(J)},setWidth:function(e){Hr(J,e)},getHeight:function(){return Ir(J)},setHeight:function(e){Pr(J,e)}},encryptionOptions:p,encryption:Vt,getEncryptor:qt,output:Kt,getNumberOfPages:Tt,pages:oe,out:ue,f2:P,f3:O,getPageInfo:Gt,getPageInfoByObjId:Xt,getCurrentPageInfo:Wt,getPDFVersion:w,Point:Nr,Rectangle:Qr,Matrix:Ke,hasHotfix:zt},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return Tr(J)},set:function(e){Hr(J,e)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Ir(J)},set:function(e){Pr(J,e)},enumerable:!0,configurable:!0}),xt.call(y,de),je="F1",Ut(s,r),Oe.publish("initialized"),y}Q.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Q.prototype.toHexString=function(e){return e.split("").map((function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Q.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Q.prototype.processOwnerPassword=function(e,t){return E(C(t).substr(0,5),e)},Q.prototype.encryptor=function(e,t){let r=C(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return E(r,e)}},U.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||typeof e!=typeof this)return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return 0===n},H.API={events:[]},H.version="2.3.1";var I=H.API,P=1,O=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},k=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},R=function(e){return e.toFixed(2)},M=function(e){return e.toFixed(5)};I.__acroform__={};var D=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},K=function(e){return e*P},z=function(e){var t=new ie,r=we.internal.getHeight(e)||0,n=we.internal.getWidth(e)||0;return t.BBox=[0,0,Number(R(n)),Number(R(r))],t},V=I.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},q=I.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},G=I.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},X=I.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return G(e,t-1)},W=I.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return V(e,t-1)},J=I.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return q(e,t-1)},Y=I.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,o=e[0],s=e[1],i=e[2],a=e[3],A={};return A.lowerLeft_X=r(o)||0,A.lowerLeft_Y=n(s+a)||0,A.upperRight_X=r(o+i)||0,A.upperRight_Y=n(s)||0,[Number(R(A.lowerLeft_X)),Number(R(A.lowerLeft_Y)),Number(R(A.upperRight_X)),Number(R(A.upperRight_Y))]},Z=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=$(e,r),o=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+o+" "+R(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=z(e);return s.scope=e.scope,s.stream=t.join("\n"),s}},$=function(e,t){var r=0===e.fontSize?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},o=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),s=r,i=we.internal.getHeight(e)||0;i=i<0?-i:i;var a=we.internal.getWidth(e)||0;a=a<0?-a:a;var A=function(t,r,n){if(t+1<o.length){var s=r+" "+o[t+1];return ee(s,e,n).width<=a-4}return!1};s++;e:for(;s>0;){t="",s--;var u,c,l=ee("3",e,s).height,d=e.multiline?i-s:(i-l)/2,f=d+=2,h=0,p=0;if(s<=0){t="(...) Tj\n",t+="% Width of Text: "+ee(t,e,s=12).width+", FieldWidth:"+a+"\n";break}var m="",g=0;for(var y in o)if(o.hasOwnProperty(y)){m=" "==(m+=o[y]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var v=parseInt(y),w=A(v,m,s),b=y>=o.length-1;if(w&&!b){m+=" ";continue}if(w||b){if(b)p=v;else if(e.multiline&&(l+2)*(g+2)+2>i)continue e}else{if(!e.multiline)continue e;if((l+2)*(g+2)+2>i)continue e;p=v}for(var B="",j=h;j<=p;j++)B+=o[j]+" ";switch(B=" "==B.substr(B.length-1)?B.substr(0,B.length-1):B,c=ee(B,e,s).width,e.textAlign){case"right":u=a-c-2;break;case"center":u=(a-c)/2;break;case"left":default:u=2}t+=R(u)+" "+R(f)+" Td\n",t+="("+O(B)+") Tj\n",t+=-R(u)+" 0 Td\n",f=-(s+2),c=0,h=p+1,g++,m=""}break}return n.text=t,n.fontSize=s,n},ee=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),o=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},te={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},re=function(e,t){var r={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find((function(e){return e.type===r.type&&e.object===r.object}))&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},ne=I.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(e){return e};if(Array.isArray(e)){for(var o="[",s=0;s<e.length;s++)switch(0!==s&&(o+=" "),typeof e[s]){case"boolean":case"number":case"object":o+=e[s].toString();break;case"string":"/"!==e[s].substr(0,1)?(void 0!==t&&r&&(n=r.internal.getEncryptor(t)),o+="("+O(n(e[s].toString()))+")"):o+=e[s].toString()}return o+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},oe=function(e,t,r){var n=function(e){return e};return void 0!==t&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+O(n(e))+")"},se=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};se.prototype.toString=function(){return this.objId+" 0 R"},se.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},se.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)}));for(var r in t)if(!1===Object.getOwnPropertyDescriptor(this,t[r]).configurable){var n=t[r],o=this[n];o&&(Array.isArray(o)?e.push({key:n,value:ne(o,this.objId,this.scope)}):o instanceof se?(o.scope=this.scope,e.push({key:n,value:o.objId+" 0 R"})):"function"!=typeof o&&e.push({key:n,value:o}))}return e};var ie=function(){se.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};D(ie,se);var ae=function(){se.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+O(t(e))+")"}},set:function(t){e=t}})};D(ae,se);var Ae=function(){se.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(X(e,3))},set:function(t){!0===Boolean(t)?this.F=W(e,3):this.F=J(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');t=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(e){r[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(e){r[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(e){r[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(e){r[3]=e}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof me)return;o="FieldObject"+Ae.FieldNum++}var e=function(e){return e};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+O(e(o))+")"},set:function(e){o=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var i="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return i},set:function(e){i=e}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){a=e}});var A=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===A?50/P:A},set:function(e){A=e}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var c="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!c||this instanceof me||this instanceof ye))return oe(c,this.objId,this.scope)},set:function(e){e=e.toString(),c=e}});var l=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(l)return this instanceof fe==0?oe(l,this.objId,this.scope):l},set:function(e){e=e.toString(),l=this instanceof fe==0?"("===e.substr(0,1)?k(e.substr(1,e.length-2)):k(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof fe==1?k(l.substr(1,l.length-1)):l},set:function(e){e=e.toString(),l=this instanceof fe==1?"/"+e:e}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof fe==0?oe(d,this.objId,this.scope):d},set:function(e){e=e.toString(),d=this instanceof fe==0?"("===e.substr(0,1)?k(e.substr(1,e.length-2)):k(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof fe==1?k(d.substr(1,d.length-1)):d},set:function(e){e=e.toString(),d=this instanceof fe==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var f,h=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return h},set:function(e){e=Boolean(e),h=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(e){f=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,1):this.Ff=J(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,2):this.Ff=J(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,3):this.Ff=J(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==p)return p},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');p=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(p){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:p=2;break;case"center":case 1:p=1;break;case"left":case 0:default:p=0}}})};D(Ae,se);var ue=function(){Ae.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ne(t,this.objId,this.scope)},set:function(e){var r,n;n=[],"string"==typeof(r=e)&&(n=function(e,t,r){r||(r=1);for(var n,o=[];n=t.exec(e);)o.push(n[r]);return o}(r,/\((.*?)\)/g)),t=n}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==r););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,18):this.Ff=J(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=W(this.Ff,19):this.Ff=J(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=W(this.Ff,20),t.sort()):this.Ff=J(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,22):this.Ff=J(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,23):this.Ff=J(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,27):this.Ff=J(this.Ff,27)}}),this.hasAppearanceStream=!1};D(ue,Ae);var ce=function(){ue.call(this),this.fontName="helvetica",this.combo=!1};D(ce,ue);var le=function(){ce.call(this),this.combo=!0};D(le,ce);var de=function(){le.call(this),this.edit=!0};D(de,le);var fe=function(){Ae.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,15):this.Ff=J(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,16):this.Ff=J(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,17):this.Ff=J(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,26):this.Ff=J(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var r,n=[];for(r in n.push("<<"),t)n.push("/"+r+" ("+O(e(t[r]))+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"==typeof e&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};D(fe,Ae);var he=function(){fe.call(this),this.pushButton=!0};D(he,fe);var pe=function(){fe.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};D(pe,fe);var me=function(){var e,t;Ae.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,r=[];for(t in r.push("<<"),n)r.push("/"+t+" ("+O(e(n[t]))+")");return r.push(">>"),r.join("\n")},set:function(e){"object"==typeof e&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){"string"==typeof e&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(e){r=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(e){r="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=we.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};D(me,Ae),pe.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},pe.prototype.createOption=function(e){var t=new me;return t.Parent=this,t.optionName=e,this.Kids.push(t),be.call(this.scope,t),t};var ge=function(){fe.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=we.CheckBox.createAppearanceStream()};D(ge,fe);var ye=function(){Ae.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,13):this.Ff=J(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,21):this.Ff=J(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,23):this.Ff=J(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,24):this.Ff=J(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,25):this.Ff=J(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,26):this.Ff=J(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};D(ye,Ae);var ve=function(){ye.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(X(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=W(this.Ff,14):this.Ff=J(this.Ff,14)}}),this.password=!0};D(ve,ye);var we={CheckBox:{createAppearanceStream:function(){return{N:{On:we.CheckBox.YesNormal},D:{On:we.CheckBox.YesPushDown,Off:we.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=z(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,o=e.scope.__private__.encodeColorString(e.color),s=$(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+R(we.internal.getWidth(e))+" "+R(we.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+R(s.fontSize)+" Tf "+o),r.push("BT"),r.push(s.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=z(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),o=[],s=we.internal.getHeight(e),i=we.internal.getWidth(e),a=$(e,e.caption);return o.push("1 g"),o.push("0 0 "+R(i)+" "+R(s)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+R(i-1)+" "+R(s-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+R(a.fontSize)+" Tf "+n),o.push(a.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=z(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+R(we.internal.getWidth(e))+" "+R(we.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:we.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=we.RadioButton.Circle.YesNormal,t.D[e]=we.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=z(e);t.scope=e.scope;var r=[],n=we.internal.getWidth(e)<=we.internal.getHeight(e)?we.internal.getWidth(e)/4:we.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var o=we.internal.Bezier_C,s=Number((n*o).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+M(we.internal.getWidth(e)/2)+" "+M(we.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=z(e);t.scope=e.scope;var r=[],n=we.internal.getWidth(e)<=we.internal.getHeight(e)?we.internal.getWidth(e)/4:we.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),s=Number((o*we.internal.Bezier_C).toFixed(5)),i=Number((n*we.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+M(we.internal.getWidth(e)/2)+" "+M(we.internal.getHeight(e)/2)+" cm"),r.push(o+" 0 m"),r.push(o+" "+s+" "+s+" "+o+" 0 "+o+" c"),r.push("-"+s+" "+o+" -"+o+" "+s+" -"+o+" 0 c"),r.push("-"+o+" -"+s+" -"+s+" -"+o+" 0 -"+o+" c"),r.push(s+" -"+o+" "+o+" -"+s+" "+o+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+M(we.internal.getWidth(e)/2)+" "+M(we.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=z(e);t.scope=e.scope;var r=[],n=we.internal.getWidth(e)<=we.internal.getHeight(e)?we.internal.getWidth(e)/4:we.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var o=Number((2*n).toFixed(5)),s=Number((o*we.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+M(we.internal.getWidth(e)/2)+" "+M(we.internal.getHeight(e)/2)+" cm"),r.push(o+" 0 m"),r.push(o+" "+s+" "+s+" "+o+" 0 "+o+" c"),r.push("-"+s+" "+o+" -"+o+" "+s+" -"+o+" 0 c"),r.push("-"+o+" -"+s+" -"+s+" -"+o+" 0 -"+o+" c"),r.push(s+" -"+o+" "+o+" -"+s+" "+o+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:we.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=we.RadioButton.Cross.YesNormal,t.D[e]=we.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=z(e);t.scope=e.scope;var r=[],n=we.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+R(we.internal.getWidth(e)-2)+" "+R(we.internal.getHeight(e)-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"),t.stream=r.join("\n"),t},YesPushDown:function(e){var t=z(e);t.scope=e.scope;var r=we.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+R(we.internal.getWidth(e))+" "+R(we.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+R(we.internal.getWidth(e)-2)+" "+R(we.internal.getHeight(e)-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"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=z(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+R(we.internal.getWidth(e))+" "+R(we.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};we.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=we.internal.getWidth(e),r=we.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},we.internal.getWidth=function(e){var t=0;return"object"==typeof e&&(t=K(e.Rect[2])),t},we.internal.getHeight=function(e){var t=0;return"object"==typeof e&&(t=K(e.Rect[3])),t};var be=I.addField=function(e){if(function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(Ae.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(te)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");P=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new ae,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)})),e.internal.events.subscribe("buildDocument",(function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];n.objId=void 0,n.hasAnnotation&&re(n,e)}}(e)})),e.internal.events.subscribe("putCatalog",(function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)})),e.internal.events.subscribe("postPutPages",(function(t){!function(e,t){var r=!e;for(var n in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(n)){var o=e[n],s=[],i=o.Rect;if(o.Rect&&(o.Rect=Y(o.Rect,t)),t.internal.newObjectDeferredBegin(o.objId,!0),o.DA=we.createDefaultAppearanceStream(o),"object"==typeof o&&"function"==typeof o.getKeyValueListForStream&&(s=o.getKeyValueListForStream()),o.Rect=i,o.hasAppearanceStream&&!o.appearanceStreamContent){var a=Z(o);s.push({key:"AP",value:"<</N "+a+">>"}),t.internal.acroformPlugin.xForms.push(a)}if(o.appearanceStreamContent){var A="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var c=o.appearanceStreamContent[u];if(A+="/"+u+" ",A+="<<",Object.keys(c).length>=1||Array.isArray(c)){for(var n in c)if(c.hasOwnProperty(n)){var l=c[n];"function"==typeof l&&(l=l.call(t,o)),A+="/"+n+" "+l+" ",t.internal.acroformPlugin.xForms.indexOf(l)>=0||t.internal.acroformPlugin.xForms.push(l)}}else"function"==typeof(l=c)&&(l=l.call(t,o)),A+="/"+n+" "+l,t.internal.acroformPlugin.xForms.indexOf(l)>=0||t.internal.acroformPlugin.xForms.push(l);A+=">>"}s.push({key:"AP",value:"<<\n"+A+">>"})}t.internal.putStream({additionalKeyValues:s,objectId:o.objId}),t.internal.out("endobj")}r&&function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,o=e[r];t.internal.newObjectDeferredBegin(o.objId,!0),"object"==typeof o&&"function"==typeof o.putStream&&o.putStream(),delete e[n]}}(t.internal.acroformPlugin.xForms,t)}(t,e)})),e.internal.acroformPlugin.isInitialized=!0}}(this,e),!(e instanceof Ae))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};I.AcroFormChoiceField=ue,I.AcroFormListBox=ce,I.AcroFormComboBox=le,I.AcroFormEditBox=de,I.AcroFormButton=fe,I.AcroFormPushButton=he,I.AcroFormRadioButton=pe,I.AcroFormCheckBox=ge,I.AcroFormTextField=ye,I.AcroFormPasswordField=ve,I.AcroFormAppearance=we,I.AcroForm={ChoiceField:ue,ListBox:ce,ComboBox:le,EditBox:de,Button:fe,PushButton:he,RadioButton:pe,CheckBox:ge,TextField:ye,PasswordField:ve,Appearance:we},H.AcroForm={ChoiceField:ue,ListBox:ce,ComboBox:le,EditBox:de,Button:fe,PushButton:he,RadioButton:pe,CheckBox:ge,TextField:ye,PasswordField:ve,Appearance:we};var Be,je,_e=H.AcroForm;function Ce(e){return e.reduce((function(e,t,r){return e[t]=r,e}),{})}!function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(e,n){var o,s;n=n||t;var i,a,A,u=t;if(_(e))for(A in r)for(i=r[A],o=0;o<i.length;o+=1){for(a=!0,s=0;s<i[o].length;s+=1)if(void 0!==i[o][s]&&i[o][s]!==e[s]){a=!1;break}if(!0===a){u=A;break}}else for(A in r)for(i=r[A],o=0;o<i.length;o+=1){for(a=!0,s=0;s<i[o].length;s+=1)if(void 0!==i[o][s]&&i[o][s]!==e.charCodeAt(s)){a=!1;break}if(!0===a){u=A;break}}return u===t&&n!==t&&(u=n),u},o=function(e){for(var t=this.internal.write,r=this.internal.putStream,n=(0,this.internal.getFilters)();-1!==n.indexOf("FlateEncode");)n.splice(n.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var s=[];if(s.push({key:"Type",value:"/XObject"}),s.push({key:"Subtype",value:"/Image"}),s.push({key:"Width",value:e.width}),s.push({key:"Height",value:e.height}),e.colorSpace===y.INDEXED?s.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]"}):(s.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===y.DEVICE_CMYK&&s.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),s.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&s.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var i="",a=0,A=e.transparency.length;a<A;a++)i+=e.transparency[a]+" "+e.transparency[a]+" ";s.push({key:"Mask",value:"["+i+"]"})}void 0!==e.sMask&&s.push({key:"SMask",value:e.objectId+1+" 0 R"});var u=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:s,alreadyAppliedFilters:u,objectId:e.objectId}),t("endobj"),"sMask"in e&&void 0!==e.sMask){var c="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,l={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:c,data:e.sMask};"filter"in e&&(l.filter=e.filter),o.call(this,l)}if(e.colorSpace===y.INDEXED){var d=this.internal.newObject();r({data:x(new Uint8Array(e.palette)),objectId:d}),t("endobj")}},s=function(){var e=this.internal.collections.addImage_images;for(var t in e)o.call(this,e[t])},i=function(){var e,t=this.internal.collections.addImage_images,r=this.internal.write;for(var n in t)r("/I"+(e=t[n]).index,e.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",i))},A=function(){var e=this.internal.collections.addImage_images;return a.call(this),e},u=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(t){return"function"==typeof e["process"+t.toUpperCase()]},f=function(e){return"object"==typeof e&&1===e.nodeType},h=function(t,r){if("IMG"===t.nodeName&&t.hasAttribute("src")){var n=""+t.getAttribute("src");if(0===n.indexOf("data:image/"))return c(unescape(n).split("base64,").pop());var o=e.loadFile(n,!0);if(void 0!==o)return o}if("CANVAS"===t.nodeName){var s;switch(r){case"PNG":s="image/png";break;case"WEBP":s="image/webp";break;case"JPEG":case"JPG":default:s="image/jpeg"}return c(t.toDataURL(s,1).split("base64,").pop())}},p=function(e){var t=this.internal.collections.addImage_images;if(t)for(var r in t)if(e===t[r].alias)return t[r]},m=function(e,t,r){return e||t||(e=-96,t=-96),e<0&&(e=-1*r.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*r.height*72/t/this.internal.scaleFactor),0===e&&(e=t*r.width/r.height),0===t&&(t=e*r.height/r.width),[e,t]},g=function(e,t,r,n,o,s){var i=m.call(this,r,n,o),a=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString,c=A.call(this);if(r=i[0],n=i[1],c[o.index]=o,s){s*=Math.PI/180;var l=Math.cos(s),d=Math.sin(s),f=function(e){return e.toFixed(4)},h=[f(l),f(d),f(-1*d),f(l),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,a(e),u(t+n),"cm"].join(" ")),this.internal.write(h.join(" ")),this.internal.write([a(r),"0","0",a(n),"0","0","cm"].join(" "))):this.internal.write([a(r),"0","0",a(n),a(e),u(t+n),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+o.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var v=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=e.__addimage__.sHashCode=function(e){var t,r,n=0;if("string"==typeof e)for(r=e.length,t=0;t<r;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;else if(_(e))for(r=e.byteLength/2,t=0;t<r;t++)n=(n<<5)-n+e[t],n|=0;return n},b=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},B=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),r=null;if(2===t.length){var n=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(n)&&(r={mimeType:n[1],charset:n[2],data:t[1]})}return r},j=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return j()&&e instanceof ArrayBuffer};var _=e.__addimage__.isArrayBufferView=function(e){return j()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},C=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r},x=e.__addimage__.arrayBufferToBinaryString=function(e){try{return c(l(String.fromCharCode.apply(null,e)))}catch(t){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(e).reduce((function(e,t){return e.push(String.fromCharCode(t)),e}),[]).join("")}};e.addImage=function(){var e,r,n,o,s,i,A,u,c;if("number"==typeof arguments[1]?(r=t,n=arguments[1],o=arguments[2],s=arguments[3],i=arguments[4],A=arguments[5],u=arguments[6],c=arguments[7]):(r=arguments[1],n=arguments[2],o=arguments[3],s=arguments[4],i=arguments[5],A=arguments[6],u=arguments[7],c=arguments[8]),"object"==typeof(e=arguments[0])&&!f(e)&&"imageData"in e){var l=e;e=l.imageData,r=l.format||r||t,n=l.x||n||0,o=l.y||o||0,s=l.w||l.width||s,i=l.h||l.height||i,A=l.alias||A,u=l.compression||u,c=l.rotation||l.angle||c}var d=this.internal.getFilters();if(void 0===u&&-1!==d.indexOf("FlateEncode")&&(u="SLOW"),isNaN(n)||isNaN(o))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var h=E.call(this,e,r,A,u);return g.call(this,n,o,s,i,h,c),this};var E=function(r,o,s,i){var a,A,c;if("string"==typeof r&&n(r)===t){r=unescape(r);var l=N(r,!1);(""!==l||void 0!==(l=e.loadFile(r,!0)))&&(r=l)}if(f(r)&&(r=h(r,o)),o=n(r,o),!d(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if((null==(c=s)||0===c.length)&&(s=function(e){return"string"==typeof e||_(e)?w(e):null}(r)),(a=p.call(this,s))||(j()&&(r instanceof Uint8Array||(A=r,r=C(r))),a=this["process"+o.toUpperCase()](r,u.call(this),s,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:v.NONE}(i),A)),!a)throw new Error("An unknown error occurred whilst processing the image.");return a},N=e.__addimage__.convertBase64ToBinaryString=function(e,t){var r;t="boolean"!=typeof t||t;var n,o="";if("string"==typeof e){n=null!==(r=B(e))?r.data:e;try{o=c(n)}catch(e){if(t)throw b(n)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return o};e.getImageProperties=function(r){var o,s,i="";if(f(r)&&(r=h(r)),"string"==typeof r&&n(r)===t&&(""===(i=N(r,!1))&&(i=e.loadFile(r)||""),r=i),s=n(r),!d(s))throw new Error("addImage does not support files of type '"+s+"', please ensure that a plugin for '"+s+"' support is added.");if(!j()||r instanceof Uint8Array||(r=C(r)),!(o=this["process"+s.toUpperCase()](r)))throw new Error("An unknown error occurred whilst processing the image");return o.fileType=s,o}}(H.API),Be=H.API,je=function(e){if(void 0!==e&&""!=e)return!0},H.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),Be.events.push(["putPage",function(e){for(var t,r,n,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,i=this.internal.getPageInfoByObjId(e.objId),a=e.pageContext.annotations,A=!1,u=0;u<a.length&&!A;u++)switch((t=a[u]).type){case"link":(je(t.options.url)||je(t.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(0!=A){this.internal.write("/Annots [");for(var c=0;c<a.length;c++){t=a[c];var l=this.internal.pdfEscape,d=this.internal.getEncryptor(e.objId);switch(t.type){case"reference":this.internal.write(" "+t.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),h=this.internal.newAdditionalObject(),p=this.internal.getEncryptor(f.objId),m=t.title||"Note";n="<</Type /Annot /Subtype /Text "+(r="/Rect ["+o(t.bounds.x)+" "+s(t.bounds.y+t.bounds.h)+" "+o(t.bounds.x+t.bounds.w)+" "+s(t.bounds.y)+"] ")+"/Contents ("+l(p(t.contents))+")",n+=" /Popup "+h.objId+" 0 R",n+=" /P "+i.objId+" 0 R",n+=" /T ("+l(p(m))+") >>",f.content=n;var g=f.objId+" 0 R";n="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+o(t.bounds.x+30)+" "+s(t.bounds.y+t.bounds.h)+" "+o(t.bounds.x+t.bounds.w+30)+" "+s(t.bounds.y)+"] ")+" /Parent "+g,t.open&&(n+=" /Open true"),n+=" >>",h.content=n,this.internal.write(f.objId,"0 R",h.objId,"0 R");break;case"freetext":r="/Rect ["+o(t.bounds.x)+" "+s(t.bounds.y)+" "+o(t.bounds.x+t.bounds.w)+" "+s(t.bounds.y+t.bounds.h)+"] ";var y=t.color||"#000000";n="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+l(d(t.contents))+")",n+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",n+=" /Border [0 0 0]",n+=" >>",this.internal.write(n);break;case"link":if(t.options.name){var v=this.annotations._nameMap[t.options.name];t.options.pageNumber=v.page,t.options.top=v.y}else t.options.top||(t.options.top=0);if(r="/Rect ["+t.finalBounds.x+" "+t.finalBounds.y+" "+t.finalBounds.w+" "+t.finalBounds.h+"] ",n="",t.options.url)n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+l(d(t.options.url))+") >>";else if(t.options.pageNumber)switch(n="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(t.options.pageNumber).objId+" 0 R",t.options.magFactor=t.options.magFactor||"XYZ",t.options.magFactor){case"Fit":n+=" /Fit]";break;case"FitH":n+=" /FitH "+t.options.top+"]";break;case"FitV":t.options.left=t.options.left||0,n+=" /FitV "+t.options.left+"]";break;case"XYZ":default:var w=s(t.options.top);t.options.left=t.options.left||0,void 0===t.options.zoom&&(t.options.zoom=0),n+=" /XYZ "+t.options.left+" "+w+" "+t.options.zoom+"]"}""!=n&&(n+=" >>",this.internal.write(n))}}this.internal.write("]")}}]),Be.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},Be.link=function(e,t,r,n,o){var s=this.internal.getCurrentPageInfo(),i=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:i(e),y:a(t),w:i(e+r),h:a(t+n)},options:o,type:"link"})},Be.textWithLink=function(e,t,r,n){var o=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,r,n),r+=.2*s,"center"===n.align&&(t-=o/2),"right"===n.align&&(t-=o),this.link(t,r-s,o,s,n),o},Be.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},o=[1570,1571,1573,1575];e.__arabicParser__={};var s=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},i=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},a=e.__arabicParser__.isArabicEndLetter=function(e){return i(e)&&s(e)&&t[e.charCodeAt(0)].length<=2},A=e.__arabicParser__.isArabicAlfLetter=function(e){return i(e)&&o.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return i(e)&&s(e)&&t[e.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return i(e)&&s(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return i(e)&&s(e)&&t[e.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return i(e)&&s(e)&&4==t[e.charCodeAt(0)].length},l=e.__arabicParser__.resolveLigatures=function(e){var t=0,n=r,o="",s=0;for(t=0;t<e.length;t+=1)void 0!==n[e.charCodeAt(t)]?(s++,"number"==typeof(n=n[e.charCodeAt(t)])&&(o+=String.fromCharCode(n),n=r,s=0),t===e.length-1&&(n=r,o+=e.charAt(t-(s-1)),t-=s-1,s=0)):(n=r,o+=e.charAt(t-s),t-=s,s=0);return o};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==n[e.charCodeAt(0)]};var d=e.__arabicParser__.getCorrectForm=function(e,t,r){return i(e)?!1===s(e)?-1:!u(e)||!i(t)&&!i(r)||!i(r)&&a(t)||a(e)&&!i(t)||a(e)&&A(t)||a(e)&&a(t)?0:c(e)&&i(t)&&!a(t)&&i(r)&&u(r)?3:a(e)||!i(r)?1:2:-1},f=function(e){var r=0,n=0,o=0,s="",a="",A="",u=(e=e||"").split("\\s+"),c=[];for(r=0;r<u.length;r+=1){for(c.push(""),n=0;n<u[r].length;n+=1)s=u[r][n],a=u[r][n-1],A=u[r][n+1],i(s)?(o=d(s,a,A),c[r]+=-1!==o?String.fromCharCode(t[s.charCodeAt(0)][o]):s):c[r]+=s;c[r]=l(c[r])}return c.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,r=[];if(Array.isArray(t)){var n=0;for(r=[],n=0;n<t.length;n+=1)Array.isArray(t[n])?r.push([f(t[n][0]),t[n][1],t[n][2]]):r.push([f(t[n])]);e=r}else e=f(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",h])}(H.API),H.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var r=300;Object.defineProperty(this,"height",{get:function(){return r},set:function(e){r=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=r+1)}});var n=[];Object.defineProperty(this,"childNodes",{get:function(){return n},set:function(e){n=e}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(e){o=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var r;if("2d"!==(e=e||"2d"))return null;for(r in t)this.pdf.context2d.hasOwnProperty(r)&&(this.pdf.context2d[r]=t[r]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(H.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),o.call(this))},o=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var r=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return r},set:function(e){r=e}});var n=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var o=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var s=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return s},set:function(e){s=e}});var i=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return i},set:function(e){i=e}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return n.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){n.call(this);var r=(t=t||{}).fontSize||this.getFontSize(),o=t.font||this.getFont(),s=t.scaleFactor||this.internal.scaleFactor,i=0,a=0,A=0,u=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}const c=t.maxWidth;c>0?"string"==typeof e?e=this.splitTextToSize(e,c):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce((function(e,t){return e.concat(u.splitTextToSize(t,c))}),[])):e=Array.isArray(e)?e:[e];for(var l=0;l<e.length;l++)i<(A=this.getStringUnitWidth(e[l],{font:o})*r)&&(i=A);return 0!==i&&(a=e.length),{w:i/=s,h:Math.max((a*r*this.getLineHeightFactor()-r*(this.getLineHeightFactor()-1))/s,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var i=e.cell=function(){var e;e=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var o=this.internal.__cell__.lastCell,i=this.internal.__cell__.padding,a=this.internal.__cell__.margins||t,A=this.internal.__cell__.tableHeaderRow,u=this.internal.__cell__.printHeaders;return void 0!==o.lineNumber&&(o.lineNumber===e.lineNumber?(e.x=(o.x||0)+(o.width||0),e.y=o.y||0):o.y+o.height+e.height+a.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=a.top,u&&A&&(this.printHeaderRow(e.lineNumber,!0),e.y+=A[0].height)):e.y=o.y+o.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===r?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-i,e.y+i,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+i,{align:"center",baseline:"top",maxWidth:e.width-i-i}):this.text(e.text,e.x+i,e.y+i,{align:"left",baseline:"top",maxWidth:e.width-i-i})),this.internal.__cell__.lastCell=e,this};e.table=function(e,r,A,u,c){if(n.call(this),!A)throw new Error("No data for PDF table.");var l,d,f,h,p=[],m=[],g=[],y={},v={},w=[],b=[],B=(c=c||{}).autoSize||!1,j=!1!==c.printHeaders,_=c.css&&void 0!==c.css["font-size"]?16*c.css["font-size"]:c.fontSize||12,C=c.margins||Object.assign({width:this.getPageWidth()},t),x="number"==typeof c.padding?c.padding:3,E=c.headerBackgroundColor||"#c8c8c8";if(o.call(this),this.internal.__cell__.printHeaders=j,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=x,this.internal.__cell__.headerBackgroundColor=E,this.setFontSize(_),null==u)m=p=Object.keys(A[0]),g=p.map((function(){return"left"}));else if(Array.isArray(u)&&"object"==typeof u[0])for(p=u.map((function(e){return e.name})),m=u.map((function(e){return e.prompt||e.name||""})),g=u.map((function(e){return e.align||"left"})),l=0;l<u.length;l+=1)v[u[l].name]=u[l].width*(19.049976/25.4);else Array.isArray(u)&&"string"==typeof u[0]&&(m=p=u,g=p.map((function(){return"left"})));if(B||Array.isArray(u)&&"string"==typeof u[0])for(l=0;l<p.length;l+=1){for(y[h=p[l]]=A.map((function(e){return e[h]})),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[l],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[h],this.setFont(void 0,"normal"),f=0;f<d.length;f+=1)w.push(this.getTextDimensions(d[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);v[h]=Math.max.apply(null,w)+x+x,w=[]}if(j){var N={};for(l=0;l<p.length;l+=1)N[p[l]]={},N[p[l]].text=m[l],N[p[l]].align=g[l];var Q=a.call(this,N,v);b=p.map((function(t){return new s(e,r,v[t],Q,N[t].text,void 0,N[t].align)})),this.setTableHeaderRow(b),this.printHeaderRow(1,!1)}var F=u.reduce((function(e,t){return e[t.name]=t.align,e}),{});for(l=0;l<A.length;l+=1){var U=a.call(this,A[l],v);for(f=0;f<p.length;f+=1)i.call(this,new s(e,r,v[p[f]],U,A[l][p[f]],l+2,F[p[f]]))}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=r,this};var a=function(e,t){var r=this.internal.__cell__.padding,n=this.internal.__cell__.table_font_size,o=this.internal.scaleFactor;return Object.keys(e).map((function(n){var o=e[n];return this.splitTextToSize(o.hasOwnProperty("text")?o.text:o,t[n]-r-r)}),this).map((function(e){return this.getLineHeightFactor()*e.length*n/o+r+r}),this).reduce((function(e,t){return Math.max(e,t)}),0)};e.setTableHeaderRow=function(e){n.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var o;if(r=!0,"function"==typeof this.internal.__cell__.headerFunction){var a=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(a[0],a[1],a[2],a[3],void 0,-1)}this.setFont(void 0,"bold");for(var A=[],u=0;u<this.internal.__cell__.tableHeaderRow.length;u+=1)o=this.internal.__cell__.tableHeaderRow[u].clone(),t&&(o.y=this.internal.__cell__.margins.top||0,A.push(o)),o.lineNumber=e,this.setFillColor(this.internal.__cell__.headerBackgroundColor),i.call(this,o);A.length>0&&this.setTableHeaderRow(A),this.setFont(void 0,"normal"),r=!1}}(H.API);var xe={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ee=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ne=Ce(Ee),Qe=[100,200,300,400,500,600,700,800,900],Fe=Ce(Qe);function Ue(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(e){return xe[e=e||"normal"]?e:"normal"}(e.style),n=function(e){if(!e)return 400;if("number"==typeof e)return e>=100&&e<=900&&e%100==0?e:400;if(/^\d00$/.test(e))return parseInt(e);switch(e){case"bold":return 700;case"normal":default:return 400}}(e.weight),o=function(e){return"number"==typeof Ne[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:o,src:e.src||[],ref:e.ref||{name:t,style:[o,r,n].join(" ")}}}function Se(e,t,r,n){var o;for(o=r;o>=0&&o<t.length;o+=n)if(e[t[o]])return e[t[o]];for(o=r;o>=0&&o<t.length;o-=n)if(e[t[o]])return e[t[o]]}var Le={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Te={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function He(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Ie(e){return e.trimLeft()}function Pe(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function Oe(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var ke,Re,Me,De=["times"];!function(e){var t,r,n,o,s,a,A,u,c,l=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new u,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new a,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new a,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,a=this.internal.Point,A=this.internal.Rectangle,u=this.internal.Matrix,c=new l}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var r=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return r},set:function(e){r=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var o=0;Object.defineProperty(this,"posX",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}});var s=0;Object.defineProperty(this,"posY",{get:function(){return s},set:function(e){isNaN(e)||(s=e)}});var i=!1;Object.defineProperty(this,"autoPaging",{get:function(){return i},set:function(e){i=Boolean(e)}});var a=0;Object.defineProperty(this,"lastBreak",{get:function(){return a},set:function(e){a=e}});var A=[];Object.defineProperty(this,"pageBreaks",{get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(e){e instanceof l&&(c=e)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(e){c.path=e}});var u=[];Object.defineProperty(this,"ctxStack",{get:function(){return u},set:function(e){u=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=h(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=h(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var d=null;function f(e,t){if(null===d){var r=function(e){var t=[];return Object.keys(e).forEach((function(r){e[r].forEach((function(e){var n=null;switch(e){case"bold":n={family:r,weight:"bold"};break;case"italic":n={family:r,style:"italic"};break;case"bolditalic":n={family:r,weight:"bold",style:"italic"};break;case"":case"normal":n={family:r}}null!==n&&(n.ref={name:r,style:e},t.push(n))}))})),t}(e.getFontList());d=function(e){for(var t={},r=0;r<e.length;++r){var n=Ue(e[r]),o=n.family,s=n.stretch,i=n.style,a=n.weight;t[o]=t[o]||{},t[o][s]=t[o][s]||{},t[o][s][i]=t[o][s][i]||{},t[o][s][i][a]=n}return t}(r.concat(t))}return d}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(e){d=null,p=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var r=t[1],n=(t[2],t[3]),o=t[4],s=(t[5],t[6]),i=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(o)[2];o="px"===i?Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor):"em"===i?Math.floor(parseFloat(o)*this.pdf.getFontSize()):Math.floor(parseFloat(o)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(o);var a=function(e){var t,r,n=[],o=e.trim();if(""===o)return De;if(o in Te)return[Te[o]];for(;""!==o;){switch(r=null,t=(o=Ie(o)).charAt(0)){case'"':case"'":r=Pe(o.substring(1),t);break;default:r=Oe(o)}if(null===r)return De;if(n.push(r[0]),""!==(o=Ie(r[1]))&&","!==o.charAt(0))return De;o=o.replace(/^,/,"")}return n}(s);if(this.fontFaces){var A=function(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",o=Object.assign({},Le,r.genericFontFamilies||{}),s=null,i=null,a=0;a<t.length;++a)if(o[(s=Ue(t[a])).family]&&(s.family=o[s.family]),e.hasOwnProperty(s.family)){i=e[s.family];break}if(!(i=i||e[n]))throw new Error("Could not find a font-family for the rule '"+He(s)+"' and default family '"+n+"'.");if(i=function(e,t){if(t[e])return t[e];var r=Ne[e],n=r<=Ne.normal?-1:1,o=Se(t,Ee,r,n);if(!o)throw new Error("Could not find a matching font-stretch value for "+e);return o}(s.stretch,i),i=function(e,t){if(t[e])return t[e];for(var r=xe[e],n=0;n<r.length;++n)if(t[r[n]])return t[r[n]];throw new Error("Could not find a matching font-style for "+e)}(s.style,i),!(i=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var r=Fe[e],n=Se(t,Qe,r,e<400?-1:1);if(!n)throw new Error("Could not find a matching font-weight for value "+e);return n}(s.weight,i)))throw new Error("Failed to resolve a font for the rule '"+He(s)+"'.");return i}(f(this.pdf,this.fontFaces),a.map((function(e){return{family:e,stretch:"normal",weight:n,style:r}})));this.pdf.setFont(A.ref.name,A.ref.style)}else{var u="";("bold"===n||parseInt(n,10)>=700||"bold"===r)&&(u="bold"),"italic"===r&&(u+="italic"),0===u.length&&(u="normal");for(var c="",l={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d<a.length;d++){if(void 0!==this.pdf.internal.getFont(a[d],u,{noFallback:!0,disableWarning:!0})){c=a[d];break}if("bolditalic"===u&&void 0!==this.pdf.internal.getFont(a[d],"bold",{noFallback:!0,disableWarning:!0}))c=a[d],u="bold";else if(void 0!==this.pdf.internal.getFont(a[d],"normal",{noFallback:!0,disableWarning:!0})){c=a[d],u="normal";break}}if(""===c)for(var h=0;h<a.length;h++)if(l[a[h]]){c=l[a[h]];break}c=""===c?"Times":c,this.pdf.setFont(c,u)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.fill=function(){b.call(this,"fill",!1)},d.prototype.stroke=function(){b.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw i.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var r=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"mt",x:r.x,y:r.y}),this.ctx.lastPoint=new a(e,t)},d.prototype.closePath=function(){var e=new a(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"==typeof this.path[t+1]&&"number"==typeof this.path[t+1].x){e=new a(this.path[t+1].x,this.path[t+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"==typeof this.path[t+2]&&"number"==typeof this.path[t+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[t+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new a(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw i.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var r=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"lt",x:r.x,y:r.y}),this.ctx.lastPoint=new a(r.x,r.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),b.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,r,n){if(isNaN(r)||isNaN(n)||isNaN(e)||isNaN(t))throw i.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var o=this.ctx.transform.applyToPoint(new a(r,n)),s=this.ctx.transform.applyToPoint(new a(e,t));this.path.push({type:"qct",x1:s.x,y1:s.y,x:o.x,y:o.y}),this.ctx.lastPoint=new a(o.x,o.y)},d.prototype.bezierCurveTo=function(e,t,r,n,o,s){if(isNaN(o)||isNaN(s)||isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var A=this.ctx.transform.applyToPoint(new a(o,s)),u=this.ctx.transform.applyToPoint(new a(e,t)),c=this.ctx.transform.applyToPoint(new a(r,n));this.path.push({type:"bct",x1:u.x,y1:u.y,x2:c.x,y2:c.y,x:A.x,y:A.y}),this.ctx.lastPoint=new a(A.x,A.y)},d.prototype.arc=function(e,t,r,n,o,s){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o))throw i.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(s=Boolean(s),!this.ctx.transform.isIdentity){var A=this.ctx.transform.applyToPoint(new a(e,t));e=A.x,t=A.y;var u=this.ctx.transform.applyToPoint(new a(0,r)),c=this.ctx.transform.applyToPoint(new a(0,0));r=Math.sqrt(Math.pow(u.x-c.x,2)+Math.pow(u.y-c.y,2))}Math.abs(o-n)>=2*Math.PI&&(n=0,o=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:r,startAngle:n,endAngle:o,counterclockwise:s})},d.prototype.arcTo=function(e,t,r,n,o){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+r,t),this.lineTo(e+r,t+n),this.lineTo(e,t+n),this.lineTo(e,t),this.lineTo(e+r,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var o={};"butt"!==this.lineCap&&(o.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(o.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,r,n),this.fill(),o.hasOwnProperty("lineCap")&&(this.lineCap=o.lineCap),o.hasOwnProperty("lineJoin")&&(this.lineJoin=o.lineJoin)}},d.prototype.strokeRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(e,t,r,n),this.stroke())},d.prototype.clearRect=function(e,t,r,n){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n))throw i.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,r,n))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var n=new l(this.ctx);this.ctxStack.push(this.ctx),this.ctx=n}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,r=0;r<this.pdf.internal.getNumberOfPages();r++)this.pdf.setPage(r+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(e){var t,r,n,o;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,r=0,n=0,o=0;else{var s=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==s)t=parseInt(s[1]),r=parseInt(s[2]),n=parseInt(s[3]),o=1;else if(null!==(s=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(s[1]),r=parseInt(s[2]),n=parseInt(s[3]),o=parseFloat(s[4]);else{if(o=1,"string"==typeof e&&"#"!==e.charAt(0)){var i=new f(e);e=i.ok?i.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,r=e.substring(2,3),r+=r,n=e.substring(3,4),n+=n):(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7)),t=parseInt(t,16),r=parseInt(r,16),n=parseInt(n,16)}}return{r:t,g:r,b:n,a:o,style:e}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw i.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(n=isNaN(n)?void 0:n,!p.call(this)){r=j.call(this,r);var o=T(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;N.call(this,{text:e,x:t,y:r,scale:s,angle:o,align:this.textAlign,maxWidth:n})}},d.prototype.strokeText=function(e,t,r,n){if(isNaN(t)||isNaN(r)||"string"!=typeof e)throw i.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){n=isNaN(n)?void 0:n,r=j.call(this,r);var o=T(this.ctx.transform.rotation),s=this.ctx.transform.scaleX;N.call(this,{text:e,x:t,y:r,scale:s,renderingMode:"stroke",angle:o,align:this.textAlign,maxWidth:n})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw i.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,r=this.pdf.internal.scaleFactor,n=t.internal.getFontSize(),o=t.getStringUnitWidth(e)*n/t.internal.scaleFactor,s=function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this};return new s({width:o*=Math.round(96*r/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw i.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var r=new u(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.rotate=function(e){if(isNaN(e))throw i.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new u(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw i.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var r=new u(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.transform=function(e,t,r,n,o,s){if(isNaN(e)||isNaN(t)||isNaN(r)||isNaN(n)||isNaN(o)||isNaN(s))throw i.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new u(e,t,r,n,o,s);this.ctx.transform=this.ctx.transform.multiply(a)},d.prototype.setTransform=function(e,t,r,n,o,s){e=isNaN(e)?1:e,t=isNaN(t)?0:t,r=isNaN(r)?0:r,n=isNaN(n)?1:n,o=isNaN(o)?0:o,s=isNaN(s)?0:s,this.ctx.transform=new u(e,t,r,n,o,s)},d.prototype.drawImage=function(e,t,r,n,o,s,i,a,c){var l=this.pdf.getImageProperties(e),d=1,f=1,h=1,p=1;void 0!==n&&void 0!==a&&(h=a/n,p=c/o,d=l.width/n*a/n,f=l.height/o*c/o),void 0===s&&(s=t,i=r,t=0,r=0),void 0!==n&&void 0===a&&(a=n,c=o),void 0===n&&void 0===a&&(a=l.width,c=l.height);for(var m,y=this.ctx.transform.decompose(),b=T(y.rotate.shx),j=new u,_=(j=(j=(j=j.multiply(y.translate)).multiply(y.skew)).multiply(y.scale)).applyToRectangle(new A(s-t*h,i-r*p,n*d,o*f)),C=g.call(this,_),x=[],E=0;E<C.length;E+=1)-1===x.indexOf(C[E])&&x.push(C[E]);if(w(x),this.autoPaging)for(var N=x[0],Q=x[x.length-1],F=N;F<Q+1;F++){if(this.pdf.setPage(F),0!==this.ctx.clip_path.length){var U=this.path;m=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(m,this.posX,-1*this.pdf.internal.pageSize.height*(F-1)+this.posY),B.call(this,"fill",!0),this.path=U}var S=JSON.parse(JSON.stringify(_));S=v([S],this.posX,-1*this.pdf.internal.pageSize.height*(F-1)+this.posY)[0],this.pdf.addImage(e,"JPEG",S.x,S.y,S.w,S.h,null,null,b)}else this.pdf.addImage(e,"JPEG",_.x,_.y,_.w,_.h,null,null,b)};var g=function(e,t,r){var n=[];switch(t=t||this.pdf.internal.pageSize.width,r=r||this.pdf.internal.pageSize.height,e.type){default:case"mt":case"lt":n.push(Math.floor((e.y+this.posY)/r)+1);break;case"arc":n.push(Math.floor((e.y+this.posY-e.radius)/r)+1),n.push(Math.floor((e.y+this.posY+e.radius)/r)+1);break;case"qct":var o=H(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);n.push(Math.floor(o.y/r)+1),n.push(Math.floor((o.y+o.h)/r)+1);break;case"bct":var s=I(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);n.push(Math.floor(s.y/r)+1),n.push(Math.floor((s.y+s.h)/r)+1);break;case"rect":n.push(Math.floor((e.y+this.posY)/r)+1),n.push(Math.floor((e.y+e.h+this.posY)/r)+1)}for(var i=0;i<n.length;i+=1)for(;this.pdf.internal.getNumberOfPages()<n[i];)y.call(this);return n},y=function(){var e=this.fillStyle,t=this.strokeStyle,r=this.font,n=this.lineCap,o=this.lineWidth,s=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=r,this.lineCap=n,this.lineWidth=o,this.lineJoin=s},v=function(e,t,r){for(var n=0;n<e.length;n++)switch(e[n].type){case"bct":e[n].x2+=t,e[n].y2+=r;case"qct":e[n].x1+=t,e[n].y1+=r;case"mt":case"lt":case"arc":default:e[n].x+=t,e[n].y+=r}return e},w=function(e){return e.sort((function(e,t){return e-t}))},b=function(e,t){for(var r,n,o=this.fillStyle,s=this.strokeStyle,i=this.lineCap,a=this.lineWidth,A=a*this.ctx.transform.scaleX,u=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),l=JSON.parse(JSON.stringify(this.path)),d=[],f=0;f<l.length;f++)if(void 0!==l[f].x)for(var h=g.call(this,l[f]),p=0;p<h.length;p+=1)-1===d.indexOf(h[p])&&d.push(h[p]);for(var m=0;m<d.length;m++)for(;this.pdf.internal.getNumberOfPages()<d[m];)y.call(this);if(w(d),this.autoPaging)for(var b=d[0],j=d[d.length-1],_=b;_<j+1;_++){if(this.pdf.setPage(_),this.fillStyle=o,this.strokeStyle=s,this.lineCap=i,this.lineWidth=A,this.lineJoin=u,0!==this.ctx.clip_path.length){var C=this.path;r=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(r,this.posX,-1*this.pdf.internal.pageSize.height*(_-1)+this.posY),B.call(this,e,!0),this.path=C}n=JSON.parse(JSON.stringify(c)),this.path=v(n,this.posX,-1*this.pdf.internal.pageSize.height*(_-1)+this.posY),!1!==t&&0!==_||B.call(this,e,t),this.lineWidth=a}else this.lineWidth=A,B.call(this,e,t),this.lineWidth=a;this.path=c},B=function(e,t){if(("stroke"!==e||t||!m.call(this))&&("stroke"===e||t||!p.call(this))){for(var r,n,o=[],s=this.path,i=0;i<s.length;i++){var a=s[i];switch(a.type){case"begin":o.push({begin:!0});break;case"close":o.push({close:!0});break;case"mt":o.push({start:a,deltas:[],abs:[]});break;case"lt":var A=o.length;if(!isNaN(s[i-1].x)&&(r=[a.x-s[i-1].x,a.y-s[i-1].y],A>0))for(;A>=0;A--)if(!0!==o[A-1].close&&!0!==o[A-1].begin){o[A-1].deltas.push(r),o[A-1].abs.push(a);break}break;case"bct":r=[a.x1-s[i-1].x,a.y1-s[i-1].y,a.x2-s[i-1].x,a.y2-s[i-1].y,a.x-s[i-1].x,a.y-s[i-1].y],o[o.length-1].deltas.push(r);break;case"qct":var u=s[i-1].x+2/3*(a.x1-s[i-1].x),c=s[i-1].y+2/3*(a.y1-s[i-1].y),l=a.x+2/3*(a.x1-a.x),d=a.y+2/3*(a.y1-a.y),f=a.x,h=a.y;r=[u-s[i-1].x,c-s[i-1].y,l-s[i-1].x,d-s[i-1].y,f-s[i-1].x,h-s[i-1].y],o[o.length-1].deltas.push(r);break;case"arc":o.push({deltas:[],abs:[],arc:!0}),Array.isArray(o[o.length-1].abs)&&o[o.length-1].abs.push(a)}}n=t?null:"stroke"===e?"stroke":"fill";for(var g=0;g<o.length;g++){if(o[g].arc){for(var y=o[g].abs,v=0;v<y.length;v++){var w=y[v];"arc"===w.type?_.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,t):Q.call(this,w.x,w.y)}C.call(this,n),this.pdf.internal.out("h")}if(!o[g].arc&&!0!==o[g].close&&!0!==o[g].begin){var b=o[g].start.x,B=o[g].start.y;F.call(this,o[g].deltas,b,B)}}n&&C.call(this,n),t&&x.call(this)}},j=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,r=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-r;case"top":return e+t-r;case"hanging":return e+t-2*r;case"middle":return e+t/2-r;case"ideographic":return e;case"alphabetic":default:return e}};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var _=function(e,t,r,n,o,s,i,a){for(var A=S.call(this,r,n,o,s),u=0;u<A.length;u++){var c=A[u];0===u&&E.call(this,c.x1+e,c.y1+t),U.call(this,e,t,c.x2,c.y2,c.x3,c.y3,c.x4,c.y4)}a?x.call(this):C.call(this,i)},C=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},x=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(e,t){this.pdf.internal.out(r(e)+" "+n(t)+" m")},N=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;case"left":case"start":default:t="left"}var r=this.ctx.transform.applyToPoint(new a(e.x,e.y)),n=this.ctx.transform.decompose(),o=new u;o=(o=(o=o.multiply(n.translate)).multiply(n.skew)).multiply(n.scale);for(var s,i,c,l=this.pdf.getTextDimensions(e.text),d=this.ctx.transform.applyToRectangle(new A(e.x,e.y,l.w,l.h)),f=o.applyToRectangle(new A(e.x,e.y-l.h,l.w,l.h)),h=g.call(this,f),p=[],m=0;m<h.length;m+=1)-1===p.indexOf(h[m])&&p.push(h[m]);if(w(p),!0===this.autoPaging)for(var y=p[0],b=p[p.length-1],j=y;j<b+1;j++){if(this.pdf.setPage(j),0!==this.ctx.clip_path.length){var _=this.path;s=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(s,this.posX,-1*this.pdf.internal.pageSize.height*(j-1)+this.posY),B.call(this,"fill",!0),this.path=_}var C=JSON.parse(JSON.stringify(d));C=v([C],this.posX,-1*this.pdf.internal.pageSize.height*(j-1)+this.posY)[0],e.scale>=.01&&(i=this.pdf.internal.getFontSize(),this.pdf.setFontSize(i*e.scale),c=this.lineWidth,this.lineWidth=c*e.scale),this.pdf.text(e.text,C.x,C.y,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(i),this.lineWidth=c)}else e.scale>=.01&&(i=this.pdf.internal.getFontSize(),this.pdf.setFontSize(i*e.scale),c=this.lineWidth,this.lineWidth=c*e.scale),this.pdf.text(e.text,r.x+this.posX,r.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(i),this.lineWidth=c)},Q=function(e,t,o,s){o=o||0,s=s||0,this.pdf.internal.out(r(e+o)+" "+n(t+s)+" l")},F=function(e,t,r){return this.pdf.lines(e,t,r,null,null)},U=function(e,r,n,i,a,A,u,c){this.pdf.internal.out([t(o(n+e)),t(s(i+r)),t(o(a+e)),t(s(A+r)),t(o(u+e)),t(s(c+r)),"c"].join(" "))},S=function(e,t,r,n){for(var o=2*Math.PI,s=Math.PI/2;t>r;)t-=o;var i=Math.abs(r-t);i<o&&n&&(i=o-i);for(var a=[],A=n?-1:1,u=t;i>1e-5;){var c=u+A*Math.min(i,s);a.push(L.call(this,e,u,c)),i-=Math.abs(c-u),u=c}return a},L=function(e,t,r){var n=(r-t)/2,o=e*Math.cos(n),s=e*Math.sin(n),i=o,a=-s,A=i*i+a*a,u=A+i*o+a*s,c=4/3*(Math.sqrt(2*A*u)-u)/(i*s-a*o),l=i-c*a,d=a+c*i,f=l,h=-d,p=n+t,m=Math.cos(p),g=Math.sin(p);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:l*m-d*g,y2:l*g+d*m,x3:f*m-h*g,y3:f*g+h*m,x4:e*Math.cos(r),y4:e*Math.sin(r)}},T=function(e){return 180*e/Math.PI},H=function(e,t,r,n,o,s){var i=e+.5*(r-e),a=t+.5*(n-t),u=o+.5*(r-o),c=s+.5*(n-s),l=Math.min(e,o,i,u),d=Math.max(e,o,i,u),f=Math.min(t,s,a,c),h=Math.max(t,s,a,c);return new A(l,f,d-l,h-f)},I=function(e,t,r,n,o,s,i,a){var u,c,l,d,f,h,p,m,g,y,v,w,b,B,j=r-e,_=n-t,C=o-r,x=s-n,E=i-o,N=a-s;for(c=0;c<41;c++)g=(p=(l=e+(u=c/40)*j)+u*((f=r+u*C)-l))+u*(f+u*(o+u*E-f)-p),y=(m=(d=t+u*_)+u*((h=n+u*x)-d))+u*(h+u*(s+u*N-h)-m),0==c?(v=g,w=y,b=g,B=y):(v=Math.min(v,g),w=Math.min(w,y),b=Math.max(b,g),B=Math.max(B,y));return new A(Math.round(v),Math.round(w),Math.round(b-v),Math.round(B-w))}}(H.API),function(e){var t=function(e){var t,r,n,o,s,i,a,A,u,c;for(/[^\x00-\xFF]/.test(e),r=[],n=0,o=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;o>n;n+=4)0!==(s=(e.charCodeAt(n)<<24)+(e.charCodeAt(n+1)<<16)+(e.charCodeAt(n+2)<<8)+e.charCodeAt(n+3))?(i=(s=((s=((s=((s=(s-(c=s%85))/85)-(u=s%85))/85)-(A=s%85))/85)-(a=s%85))/85)%85,r.push(i+33,a+33,A+33,u+33,c+33)):r.push(122);return function(e,t){for(var r=t;r>0;r--)e.pop()}(r,t.length),String.fromCharCode.apply(String,r)+"~>"},r=function(e){var t,r,n,o,s,i=String,a="length",A=255,u="charCodeAt",c="slice",l="replace";for(e[c](-2),e=e[c](0,-2)[l](/\s/g,"")[l]("z","!!!!!"),n=[],o=0,s=(e+=t="uuuuu"[c](e[a]%5||5))[a];s>o;o+=5)r=52200625*(e[u](o)-33)+614125*(e[u](o+1)-33)+7225*(e[u](o+2)-33)+85*(e[u](o+3)-33)+(e[u](o+4)-33),n.push(A&r>>24,A&r>>16,A&r>>8,A&r);return function(e,t){for(var r=t;r>0;r--)e.pop()}(n,t[a]),i.fromCharCode.apply(i,n)},o=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var r="",n=0;n<e.length;n+=2)r+=String.fromCharCode("0x"+(e[n]+e[n+1]));return r},s=function(e){for(var t=new Uint8Array(e.length),r=e.length;r--;)t[r]=e.charCodeAt(r);return(t=(0,n.zlibSync)(t)).reduce((function(e,t){return e+String.fromCharCode(t)}),"")};e.processDataByFilters=function(e,n){var i=0,a=e||"",A=[];for("string"==typeof(n=n||[])&&(n=[n]),i=0;i<n.length;i+=1)switch(n[i]){case"ASCII85Decode":case"/ASCII85Decode":a=r(a),A.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":a=t(a),A.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":a=o(a),A.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":a=a.split("").map((function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)})).join("")+">",A.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":a=s(a),A.push("/FlateDecode");break;default:throw new Error('The filter: "'+n[i]+'" is not implemented')}return{data:a,reverseChain:A.reverse().join(" ")}}}(H.API),function(e){e.loadFile=function(e,t,r){return function(e,t,r){t=!1!==t,r="function"==typeof r?r:function(){};var n=void 0;try{n=function(e,t,r){var n=new XMLHttpRequest,o=0,s=function(e){var t=e.length,r=[],n=String.fromCharCode;for(o=0;o<t;o+=1)r.push(n(255&e.charCodeAt(o)));return r.join("")};if(n.open("GET",e,!t),n.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(n.onload=function(){200===n.status?r(s(this.responseText)):r(void 0)}),n.send(null),t&&200===n.status)return s(n.responseText)}(e,t,r)}catch(e){}return n}(e,t,r)},e.loadImageFile=e.loadFile}(H.API),function(e){function t(){return(o.html2canvas?Promise.resolve(o.html2canvas):Promise.resolve().then(r.t.bind(r,"./node_modules/html2canvas/dist/html2canvas.js",23))).catch((function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))})).then((function(e){return e.default?e.default:e}))}function n(){return(o.DOMPurify?Promise.resolve(o.DOMPurify):Promise.resolve().then(r.t.bind(r,"./node_modules/dompurify/dist/purify.js",23))).catch((function(e){return Promise.reject(new Error("Could not load dompurify: "+e))})).then((function(e){return e.default?e.default:e}))}var s=function(e){var t=typeof e;return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},i=function(e,t){var r=document.createElement(e);for(var n in t.className&&(r.className=t.className),t.innerHTML&&t.dompurify&&(r.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)r.style[n]=t.style[n];return r},a=function(e,t){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),n=e.firstChild;n;n=n.nextSibling)!0!==t&&1===n.nodeType&&"SCRIPT"===n.nodeName||r.appendChild(a(n,t));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},A=function e(t){var r=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),n=e.convert(Promise.resolve(),r);return(n=n.setProgress(1,e,1,[e])).set(t)};(A.prototype=Object.create(Promise.prototype)).constructor=A,A.convert=function(e,t){return e.__proto__=t||A.prototype,e},A.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"}},A.prototype.from=function(e,t){return this.then((function(){switch(t=t||function(e){switch(s(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(n).then((function(t){return this.set({src:i("div",{innerHTML:e,dompurify:t})})}));case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}}))},A.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},A.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var e={position:"relative",display:"inline-block",width: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},t=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(i("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"}))},A.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},A.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(t).then((function(e){var t=this.opt.jsPDF,r=this.opt.fontFaces,n=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 n.onrendered,t.context2d.autoPaging=!0,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.fontFaces=r,r)for(var o=0;o<r.length;++o){var s=r[o],i=s.src.find((function(e){return"truetype"===e.format}));i&&t.addFont(i.url,s.ref.name,s.ref.style)}return n.windowHeight=n.windowHeight||0,n.windowHeight=0==n.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):n.windowHeight,e(this.prop.container,n)})).then((function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)}))},A.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e}))},A.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},A.prototype.output=function(e,t,r){return"img"===(r=r||"pdf").toLowerCase()||"image"===r.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},A.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(e,t)}))},A.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}}))},A.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},A.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},A.prototype.set=function(e){if("object"!==s(e))return this;var t=Object.keys(e||{}).map((function(t){if(t in A.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}}),this);return this.then((function(){return this.thenList(t)}))},A.prototype.get=function(e,t){return this.then((function(){var r=e in A.template.prop?this.prop[e]:this.opt[e];return t?t(r):r}))},A.prototype.setMargin=function(e){return this.then((function(){switch(s(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e})).then(this.setPageSize)},A.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then((function(){(e=e||H.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e}))},A.prototype.setProgress=function(e,t,r,n){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=r&&(this.progress.n=r),null!=n&&(this.progress.stack=n),this.progress.ratio=this.progress.val/this.progress.state,this},A.prototype.updateProgress=function(e,t,r,n){return this.setProgress(e?this.progress.val+e:null,t||null,r?this.progress.n+r:null,n?this.progress.stack.concat(n):null)},A.prototype.then=function(e,t){var r=this;return this.thenCore(e,t,(function(e,t){return r.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,(function(t){return r.updateProgress(null,e),t})).then(e,t).then((function(e){return r.updateProgress(1),e}))}))},A.prototype.thenCore=function(e,t,r){r=r||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var n=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:A.convert(Object.assign({},this),Promise.prototype),o=r.call(n,e,t);return A.convert(o,this.__proto__)},A.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},A.prototype.thenList=function(e){var t=this;return e.forEach((function(e){t=t.thenCore(e)})),t},A.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return A.convert(t,this)},A.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},A.prototype.error=function(e){return this.then((function(){throw new Error(e)}))},A.prototype.using=A.prototype.set,A.prototype.saveAs=A.prototype.save,A.prototype.export=A.prototype.output,A.prototype.run=A.prototype.then,H.getPageSize=function(e,t,r){if("object"==typeof e){var n=e;e=n.orientation,t=n.unit||t,r=n.format||r}t=t||"mm",r=r||"a4",e=(""+(e||"P")).toLowerCase();var o,s=(""+r).toLowerCase(),i={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":o=1;break;case"mm":o=72/25.4;break;case"cm":o=72/2.54;break;case"in":o=72;break;case"px":o=.75;break;case"pc":case"em":o=12;break;case"ex":o=6;break;default:throw"Invalid unit: "+t}var a,A=0,u=0;if(i.hasOwnProperty(s))A=i[s][1]/o,u=i[s][0]/o;else try{A=r[1],u=r[0]}catch(e){throw new Error("Invalid format: "+r)}if("p"===e||"portrait"===e)e="p",u>A&&(a=u,u=A,A=a);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",A>u&&(a=u,u=A,A=a)}return{width:u,height:A,unit:t,k:o,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(Ue):null;var r=new A(t);return t.worker?r:r.from(e).doCallback()}}(H.API),H.API.addJS=function(e){return Me=e,this.internal.events.subscribe("postPutResources",(function(){ke=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ke+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Re=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Me+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==ke&&void 0!==Re&&this.internal.out("/Names <</JavaScript "+ke+" 0 R>>")})),this},function(e){var t;e.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),o=0;o<n.length;o++){var s=n[o],i=r.exec(s);if(null!=i){var a=i[1];e.internal.newObjectDeferredBegin(a,!1)}e.internal.write(s)}if(this.outline.createNamedDestinations){var A=this.internal.pages.length,u=[];for(o=0;o<A;o++){var c=e.internal.newObject();u.push(c);var l=e.internal.getPageInfo(o+1);e.internal.write("<< /D["+l.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o<u.length;o++)e.internal.write("(page_"+(o+1)+")"+u[o]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),e.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 "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,r){var n={title:t,options:r,children:[]};return null==e&&(e=this.root),e.children.push(n),n},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var r=0;r<t.children.length;r++)this.genIds_r(t.children[r])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var r=this.ctx.pdf.internal.getVerticalCoordinateString,n=0;n<t.children.length;n++){var o=t.children[n];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(t)),n>0&&this.line("/Prev "+this.makeRef(t.children[n-1])),n<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[n+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var i=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+i.objId+" 0 R /XYZ 0 "+r(0)+" 0]")}this.objEnd()}for(var a=0;a<t.children.length;a++)this.renderItems(t.children[a])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var r=0;r<t.children.length;r++)e.count++,this.count_r(e,t.children[r]);return e.count}}])}(H.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,r,n,o,s,i){var a,A=this.decode.DCT_DECODE,u=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=s||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(a=function(e){for(var r,n=256*e.charCodeAt(4)+e.charCodeAt(5),o=e.length,s={width:0,height:0,numcomponents:1},i=4;i<o;i+=2){if(i+=n,-1!==t.indexOf(e.charCodeAt(i+1))){r=256*e.charCodeAt(i+5)+e.charCodeAt(i+6),s={width:256*e.charCodeAt(i+7)+e.charCodeAt(i+8),height:r,numcomponents:e.charCodeAt(i+9)};break}n=256*e.charCodeAt(i+2)+e.charCodeAt(i+3)}return s}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:i=this.color_spaces.DEVICE_GRAY;break;case 4:i=this.color_spaces.DEVICE_CMYK;break;case 3:i=this.color_spaces.DEVICE_RGB}u={data:e,width:a.width,height:a.height,colorSpace:i,bitsPerComponent:8,filter:A,index:r,alias:n}}return u}}(H.API);var Ke,ze,Ve,qe,Ge,Xe=function(){var e,t,r;function s(e){var t,r,n,o,s,i,a,A,u,c,l,d,f,h;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(t=this.readUInt32(),u=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.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(t);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},s=this.readUInt16(),o=this.readUInt16()||100,i.delay=1e3*s/o,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===u&&(this.pos+=4,t-=4),e=(null!=i?i.data:void 0)||this.imgData,d=0;0<=t?d<t:d>t;0<=t?++d:--d)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(n=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>n)throw new Error("More transparent colors than palette size");if((c=n-this.transparency.indexed.length)>0)for(f=0;0<=c?f<c:f>c;0<=c?++f:--f)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":a=(l=this.read(t)).indexOf(0),A=String.fromCharCode.apply(String,l.slice(0,a)),this.text[A]=String.fromCharCode.apply(String,l.slice(a+1));break;case"IEND":return i&&this.animation.frames.push(i),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===(h=this.colorType)||6===h,r=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*r,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}s.prototype.read=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.data[this.pos++]);return r},s.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},s.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},s.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,r=new Uint8Array(this.width*this.height*t),o=0,s=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function i(n,i,a,A){var u,c,l,d,f,h,p,m,g,y,v,w,b,B,j,_,C,x,E,N,Q,F=Math.ceil((s.width-n)/a),U=Math.ceil((s.height-i)/A),S=s.width==F&&s.height==U;for(B=t*F,w=S?r:new Uint8Array(B*U),h=e.length,b=0,c=0;b<U&&o<h;){switch(e[o++]){case 0:for(d=C=0;C<B;d=C+=1)w[c++]=e[o++];break;case 1:for(d=x=0;x<B;d=x+=1)u=e[o++],f=d<t?0:w[c-t],w[c++]=(u+f)%256;break;case 2:for(d=E=0;E<B;d=E+=1)u=e[o++],l=(d-d%t)/t,j=b&&w[(b-1)*B+l*t+d%t],w[c++]=(j+u)%256;break;case 3:for(d=N=0;N<B;d=N+=1)u=e[o++],l=(d-d%t)/t,f=d<t?0:w[c-t],j=b&&w[(b-1)*B+l*t+d%t],w[c++]=(u+Math.floor((f+j)/2))%256;break;case 4:for(d=Q=0;Q<B;d=Q+=1)u=e[o++],l=(d-d%t)/t,f=d<t?0:w[c-t],0===b?j=_=0:(j=w[(b-1)*B+l*t+d%t],_=l&&w[(b-1)*B+(l-1)*t+d%t]),p=f+j-_,m=Math.abs(p-f),y=Math.abs(p-j),v=Math.abs(p-_),g=m<=y&&m<=v?f:y<=v?j:_,w[c++]=(u+g)%256;break;default:throw new Error("Invalid filter algorithm: "+e[o-1])}if(!S){var L=((i+b*A)*s.width+n)*t,T=b*B;for(d=0;d<F;d+=1){for(var H=0;H<t;H+=1)r[L++]=w[T++];L+=(a-1)*t}}b++}}return e=(0,n.unzlibSync)(e),1==s.interlaceMethod?(i(0,0,8,8),i(4,0,8,8),i(0,4,4,8),i(2,0,4,4),i(0,2,2,4),i(1,0,2,2),i(0,1,1,2)):i(0,0,1,1),r},s.prototype.decodePalette=function(){var e,t,r,n,o,s,i,a,A;for(r=this.palette,s=this.transparency.indexed||[],o=new Uint8Array((s.length||0)+r.length),n=0,e=0,t=i=0,a=r.length;i<a;t=i+=3)o[n++]=r[t],o[n++]=r[t+1],o[n++]=r[t+2],o[n++]=null!=(A=s[e++])?A:255;return o},s.prototype.copyToImageData=function(e,t){var r,n,o,s,i,a,A,u,c,l,d;if(n=this.colors,c=null,r=this.hasAlphaChannel,this.palette.length&&(c=null!=(d=this._decodedPalette)?d:this._decodedPalette=this.decodePalette(),n=4,r=!0),u=(o=e.data||e).length,i=c||t,s=a=0,1===n)for(;s<u;)A=c?4*t[s/4]:a,l=i[A++],o[s++]=l,o[s++]=l,o[s++]=l,o[s++]=r?i[A++]:255,a=A;else for(;s<u;)A=c?4*t[s/4]:a,o[s++]=i[A++],o[s++]=i[A++],o[s++]=i[A++],o[s++]=r?i[A++]:255,a=A},s.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var i=function(){if("[object Window]"===Object.prototype.toString.call(o)){try{t=o.document.createElement("canvas"),r=t.getContext("2d")}catch(e){return!1}return!0}return!1};return i(),e=function(e){var n;if(!0===i())return r.width=e.width,r.height=e.height,r.clearRect(0,0,e.width,e.height),r.putImageData(e,0,0),(n=new Image).src=t.toDataURL(),n;throw new Error("This method requires a Browser with Canvas-capability.")},s.prototype.decodeFrames=function(t){var r,n,o,s,i,a,A,u;if(this.animation){for(u=[],n=i=0,a=(A=this.animation.frames).length;i<a;n=++i)r=A[n],o=t.createImageData(r.width,r.height),s=this.decodePixels(new Uint8Array(r.data)),this.copyToImageData(o,s),r.imageData=o,u.push(r.image=e(o));return u}},s.prototype.renderFrame=function(e,t){var r,n,o;return r=(n=this.animation.frames)[t],o=n[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=o?o.disposeOp:void 0)?e.clearRect(o.xOffset,o.yOffset,o.width,o.height):2===(null!=o?o.disposeOp:void 0)&&e.putImageData(o.imageData,o.xOffset,o.yOffset),0===r.blendOp&&e.clearRect(r.xOffset,r.yOffset,r.width,r.height),e.drawImage(r.image,r.xOffset,r.yOffset)},s.prototype.animate=function(e){var t,r,n,o,s,i,a=this;return r=0,i=this.animation,o=i.numFrames,n=i.frames,s=i.numPlays,(t=function(){var i,A;if(i=r++%o,A=n[i],a.renderFrame(e,i),o>1&&r/o<s)return a.animation._timeout=setTimeout(t,A.delay)})()},s.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},s.prototype.render=function(e){var t,r;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(r=t.createImageData(this.width,this.height),this.copyToImageData(r,this.decodePixels()),t.putImageData(r,0,0))},s}();function We(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,o=e[t++],s=o>>7,i=1<<1+(7&o);e[t++],e[t++];var a=null,A=null;s&&(a=t,A=i,t+=3*i);var u=!0,c=[],l=0,d=null,f=0,h=null;for(this.width=r,this.height=n;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((E=e[t++])>=0))throw Error("Invalid block size");if(0===E)break;t+=E}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var p=e[t++];l=e[t++]|e[t++]<<8,d=e[t++],0==(1&p)&&(d=null),f=p>>2&7,t++;break;case 254:for(;;){if(!((E=e[t++])>=0))throw Error("Invalid block size");if(0===E)break;t+=E}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,v=e[t++]|e[t++]<<8,w=e[t++],b=w>>6&1,B=1<<1+(7&w),j=a,_=A,C=!1;w>>7&&(C=!0,j=t,_=B,t+=3*B);var x=t;for(t++;;){var E;if(!((E=e[t++])>=0))throw Error("Invalid block size");if(0===E)break;t+=E}c.push({x:m,y:g,width:y,height:v,has_local_palette:C,palette_offset:j,palette_size:_,data_offset:x,data_length:t-x,transparent_index:d,interlaced:!!b,delay:l,disposal:f});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return h},this.frameInfo=function(e){if(e<0||e>=c.length)throw new Error("Frame index out of range.");return c[e]},this.decodeAndBlitFrameBGRA=function(t,n){var o=this.frameInfo(t),s=o.width*o.height,i=new Uint8Array(s);Je(e,o.data_offset,i,s);var a=o.palette_offset,A=o.transparent_index;null===A&&(A=256);var u=o.width,c=r-u,l=u,d=4*(o.y*r+o.x),f=4*((o.y+o.height)*r+o.x),h=d,p=4*c;!0===o.interlaced&&(p+=4*r*7);for(var m=8,g=0,y=i.length;g<y;++g){var v=i[g];if(0===l&&(l=u,(h+=p)>=f&&(p=4*c+4*r*(m-1),h=d+(u+c)*(m<<1),m>>=1)),v===A)h+=4;else{var w=e[a+3*v],b=e[a+3*v+1],B=e[a+3*v+2];n[h++]=B,n[h++]=b,n[h++]=w,n[h++]=255}--l}},this.decodeAndBlitFrameRGBA=function(t,n){var o=this.frameInfo(t),s=o.width*o.height,i=new Uint8Array(s);Je(e,o.data_offset,i,s);var a=o.palette_offset,A=o.transparent_index;null===A&&(A=256);var u=o.width,c=r-u,l=u,d=4*(o.y*r+o.x),f=4*((o.y+o.height)*r+o.x),h=d,p=4*c;!0===o.interlaced&&(p+=4*r*7);for(var m=8,g=0,y=i.length;g<y;++g){var v=i[g];if(0===l&&(l=u,(h+=p)>=f&&(p=4*c+4*r*(m-1),h=d+(u+c)*(m<<1),m>>=1)),v===A)h+=4;else{var w=e[a+3*v],b=e[a+3*v+1],B=e[a+3*v+2];n[h++]=w,n[h++]=b,n[h++]=B,n[h++]=255}--l}}}function Je(e,t,r,n){for(var o=e[t++],s=1<<o,a=s+1,A=a+1,u=o+1,c=(1<<u)-1,l=0,d=0,f=0,h=e[t++],p=new Int32Array(4096),m=null;;){for(;l<16&&0!==h;)d|=e[t++]<<l,l+=8,1===h?h=e[t++]:--h;if(l<u)break;var g=d&c;if(d>>=u,l-=u,g!==s){if(g===a)break;for(var y=g<A?g:m,v=0,w=y;w>s;)w=p[w]>>8,++v;var b=w;if(f+v+(y!==g?1:0)>n)return void i.log("Warning, gif stream longer than expected.");r[f++]=b;var B=f+=v;for(y!==g&&(r[f++]=b),w=y;v--;)w=p[w],r[--B]=255&w,w>>=8;null!==m&&A<4096&&(p[A++]=m<<8|b,A>=c+1&&u<12&&(++u,c=c<<1|1)),m=g}else A=a+1,c=(1<<(u=o+1))-1,m=null}return f!==n&&i.log("Warning, gif stream shorter than expected."),r}function Ye(e){var t,r,n,o,s,i=Math.floor,a=new Array(64),A=new Array(64),u=new Array(64),c=new Array(64),l=new Array(65535),d=new Array(65535),f=new Array(64),h=new Array(64),p=[],m=0,g=7,y=new Array(64),v=new Array(64),w=new Array(64),b=new Array(256),B=new Array(2048),j=[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],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],x=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],E=[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],N=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Q=[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],U=[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 S(e,t){for(var r=0,n=0,o=new Array,s=1;s<=16;s++){for(var i=1;i<=e[s];i++)o[t[n]]=[],o[t[n]][0]=r,o[t[n]][1]=s,n++,r++;r*=2}return o}function L(e){for(var t=e[0],r=e[1]-1;r>=0;)t&1<<r&&(m|=1<<g),r--,--g<0&&(255==m?(T(255),T(0)):T(m),g=7,m=0)}function T(e){p.push(e)}function H(e){T(e>>8&255),T(255&e)}function I(e,t,r,n,o){for(var s,i=o[0],a=o[240],A=function(e,t){var r,n,o,s,i,a,A,u,c,l,d=0;for(c=0;c<8;++c){r=e[d],n=e[d+1],o=e[d+2],s=e[d+3],i=e[d+4],a=e[d+5],A=e[d+6];var h=r+(u=e[d+7]),p=r-u,m=n+A,g=n-A,y=o+a,v=o-a,w=s+i,b=s-i,B=h+w,j=h-w,_=m+y,C=m-y;e[d]=B+_,e[d+4]=B-_;var x=.707106781*(C+j);e[d+2]=j+x,e[d+6]=j-x;var E=.382683433*((B=b+v)-(C=g+p)),N=.5411961*B+E,Q=1.306562965*C+E,F=.707106781*(_=v+g),U=p+F,S=p-F;e[d+5]=S+N,e[d+3]=S-N,e[d+1]=U+Q,e[d+7]=U-Q,d+=8}for(d=0,c=0;c<8;++c){r=e[d],n=e[d+8],o=e[d+16],s=e[d+24],i=e[d+32],a=e[d+40],A=e[d+48];var L=r+(u=e[d+56]),T=r-u,H=n+A,I=n-A,P=o+a,O=o-a,k=s+i,R=s-i,M=L+k,D=L-k,K=H+P,z=H-P;e[d]=M+K,e[d+32]=M-K;var V=.707106781*(z+D);e[d+16]=D+V,e[d+48]=D-V;var q=.382683433*((M=R+O)-(z=I+T)),G=.5411961*M+q,X=1.306562965*z+q,W=.707106781*(K=O+I),J=T+W,Y=T-W;e[d+40]=Y+G,e[d+24]=Y-G,e[d+8]=J+X,e[d+56]=J-X,d++}for(c=0;c<64;++c)l=e[c]*t[c],f[c]=l>0?l+.5|0:l-.5|0;return f}(e,t),u=0;u<64;++u)h[j[u]]=A[u];var c=h[0]-r;r=h[0],0==c?L(n[0]):(L(n[d[s=32767+c]]),L(l[s]));for(var p=63;p>0&&0==h[p];)p--;if(0==p)return L(i),r;for(var m,g=1;g<=p;){for(var y=g;0==h[g]&&g<=p;)++g;var v=g-y;if(v>=16){m=v>>4;for(var w=1;w<=m;++w)L(a);v&=15}s=32767+h[g],L(o[(v<<4)+d[s]]),L(l[s]),g++}return 63!=p&&L(i),r}function P(e){e=Math.min(Math.max(e,1),100),s!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],r=0;r<64;r++){var n=i((t[r]*e+50)/100);n=Math.min(Math.max(n,1),255),a[j[r]]=n}for(var o=[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],s=0;s<64;s++){var l=i((o[s]*e+50)/100);l=Math.min(Math.max(l,1),255),A[j[s]]=l}for(var d=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],f=0,h=0;h<8;h++)for(var p=0;p<8;p++)u[f]=1/(a[j[f]]*d[h]*d[p]*8),c[f]=1/(A[j[f]]*d[h]*d[p]*8),f++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),s=e)}this.encode=function(e,s){s&&P(s),p=new Array,m=0,g=7,H(65496),H(65504),H(16),T(74),T(70),T(73),T(70),T(0),T(1),T(1),T(0),H(1),H(1),T(0),T(0),function(){H(65499),H(132),T(0);for(var e=0;e<64;e++)T(a[e]);T(1);for(var t=0;t<64;t++)T(A[t])}(),function(e,t){H(65472),H(17),T(8),H(t),H(e),T(3),T(1),T(17),T(0),T(2),T(17),T(1),T(3),T(17),T(1)}(e.width,e.height),function(){H(65476),H(418),T(0);for(var e=0;e<16;e++)T(_[e+1]);for(var t=0;t<=11;t++)T(C[t]);T(16);for(var r=0;r<16;r++)T(x[r+1]);for(var n=0;n<=161;n++)T(E[n]);T(1);for(var o=0;o<16;o++)T(N[o+1]);for(var s=0;s<=11;s++)T(Q[s]);T(17);for(var i=0;i<16;i++)T(F[i+1]);for(var a=0;a<=161;a++)T(U[a])}(),H(65498),H(12),T(3),T(1),T(0),T(2),T(17),T(3),T(17),T(0),T(63),T(0);var i=0,l=0,d=0;m=0,g=7,this.encode.displayName="_encode_";for(var f,h,b,j,S,O,k,R,M,D=e.data,K=e.width,z=e.height,V=4*K,q=0;q<z;){for(f=0;f<V;){for(S=V*q+f,k=-1,R=0,M=0;M<64;M++)O=S+(R=M>>3)*V+(k=4*(7&M)),q+R>=z&&(O-=V*(q+1+R-z)),f+k>=V&&(O-=f+k-V+4),h=D[O++],b=D[O++],j=D[O++],y[M]=(B[h]+B[b+256>>0]+B[j+512>>0]>>16)-128,v[M]=(B[h+768>>0]+B[b+1024>>0]+B[j+1280>>0]>>16)-128,w[M]=(B[h+1280>>0]+B[b+1536>>0]+B[j+1792>>0]>>16)-128;i=I(y,u,i,t,n),l=I(v,c,l,r,o),d=I(w,c,d,r,o),f+=32}q+=8}if(g>=0){var G=[];G[1]=g+1,G[0]=(1<<g+1)-1,L(G)}return H(65497),new Uint8Array(p)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)b[t]=e(t)}(),t=S(_,C),r=S(N,Q),n=S(x,E),o=S(F,U),function(){for(var e=1,t=2,r=1;r<=15;r++){for(var n=e;n<t;n++)d[32767+n]=r,l[32767+n]=[],l[32767+n][1]=r,l[32767+n][0]=n;for(var o=-(t-1);o<=-e;o++)d[32767+o]=r,l[32767+o]=[],l[32767+o][1]=r,l[32767+o][0]=t-1+o;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)B[e]=19595*e,B[e+256>>0]=38470*e,B[e+512>>0]=7471*e+32768,B[e+768>>0]=-11059*e,B[e+1024>>0]=-21709*e,B[e+1280>>0]=32768*e+8421375,B[e+1536>>0]=-27439*e,B[e+1792>>0]=-5329*e}(),P(e)}function Ze(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function $e(e){function t(e){if(!e)throw Error("assert :P")}function r(e,t,r){for(var n=0;4>n;n++)if(e[t+n]!=r.charCodeAt(n))return!0;return!1}function n(e,t,r,n,o){for(var s=0;s<o;s++)e[t+s]=r[n+s]}function o(e,t,r,n){for(var o=0;o<n;o++)e[t+o]=r}function s(e){return new Int32Array(e)}function i(e,t){for(var r=[],n=0;n<e;n++)r.push(new t);return r}function a(e,t){var r=[];return function e(r,n,o){for(var s=o[n],i=0;i<s&&(r.push(o.length>n+1?[]:new t),!(o.length<n+1));i++)e(r[i],n+1,o)}(r,0,e),r}function A(e,t){for(var r="",n=0;n<4;n++)r+=String.fromCharCode(e[t++]);return r}function u(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16)>>>0}function c(e,t){return(e[t+0]<<0|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new($e=function(){var e=this;function A(e,t){for(var r=1<<t-1>>>0;e&r;)r>>>=1;return r?(e&r-1)+r:e}function u(e,r,n,o,s){t(!(o%n));do{e[r+(o-=n)]=s}while(0<o)}function c(e,r,n,o,i){if(t(2328>=i),512>=i)var a=s(512);else if(null==(a=s(i)))return 0;return function(e,r,n,o,i,a){var c,d,f=r,h=1<<n,p=s(16),m=s(16);for(t(0!=i),t(null!=o),t(null!=e),t(0<n),d=0;d<i;++d){if(15<o[d])return 0;++p[o[d]]}if(p[0]==i)return 0;for(m[1]=0,c=1;15>c;++c){if(p[c]>1<<c)return 0;m[c+1]=m[c]+p[c]}for(d=0;d<i;++d)c=o[d],0<o[d]&&(a[m[c]++]=d);if(1==m[15])return(o=new l).g=0,o.value=a[0],u(e,f,1,h,o),h;var g,y=-1,v=h-1,w=0,b=1,B=1,j=1<<n;for(d=0,c=1,i=2;c<=n;++c,i<<=1){if(b+=B<<=1,0>(B-=p[c]))return 0;for(;0<p[c];--p[c])(o=new l).g=c,o.value=a[d++],u(e,f+w,i,j,o),w=A(w,c)}for(c=n+1,i=2;15>=c;++c,i<<=1){if(b+=B<<=1,0>(B-=p[c]))return 0;for(;0<p[c];--p[c]){if(o=new l,(w&v)!=y){for(f+=j,g=1<<(y=c)-n;15>y&&!(0>=(g-=p[y]));)++y,g<<=1;h+=j=1<<(g=y-n),e[r+(y=w&v)].g=g+n,e[r+y].value=f-r-y}o.g=c-n,o.value=a[d++],u(e,f+(w>>n),i,j,o),w=A(w,c)}}return b!=2*m[15]-1?0:h}(e,r,n,o,i,a)}function l(){this.value=this.g=0}function d(){this.value=this.g=0}function f(){this.G=i(5,l),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=i(Or,d)}function h(e,r,n,o){t(null!=e),t(null!=r),t(2147483648>o),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=r,e.pa=n,e.Jd=r,e.Yc=n+o,e.Zc=4<=o?n+o-4+1:n,x(e)}function p(e,t){for(var r=0;0<t--;)r|=N(e,128)<<t;return r}function m(e,t){var r=p(e,t);return E(e)?-r:r}function g(e,r,n,o){var s,i=0;for(t(null!=e),t(null!=r),t(4294967288>o),e.Sb=o,e.Ra=0,e.u=0,e.h=0,4<o&&(o=4),s=0;s<o;++s)i+=r[n+s]<<8*s;e.Ra=i,e.bb=o,e.oa=r,e.pa=n}function y(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Mr-8>>>0,++e.bb,e.u-=8;j(e)&&(e.h=1,e.u=0)}function v(e,r){if(t(0<=r),!e.h&&r<=Rr){var n=B(e)&kr[r];return e.u+=r,y(e),n}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(e){return e.Ra>>>(e.u&Mr-1)>>>0}function j(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Mr}function _(e,t){e.u=t,e.h=j(e)}function C(e){e.u>=Dr&&(t(e.u>=Dr),y(e))}function x(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function E(e){return p(e,1)}function N(e,t){var r=e.Ca;0>e.b&&x(e);var n=e.b,o=r*t>>>8,s=(e.I>>>n>o)+0;for(s?(r-=o,e.I-=o+1<<n>>>0):r=o+1,n=r,o=0;256<=n;)o+=8,n>>=8;return n=7^o+Kr[n],e.b-=n,e.Ca=(r<<n)-1,s}function Q(e,t,r){e[t+0]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=r>>0&255}function F(e,t){return e[t+0]<<0|e[t+1]<<8}function U(e,t){return F(e,t)|e[t+2]<<16}function S(e,t){return F(e,t)|F(e,t+2)<<16}function L(e,r){var n=1<<r;return t(null!=e),t(0<r),e.X=s(n),null==e.X?0:(e.Mb=32-r,e.Xa=r,1)}function T(e,r){t(null!=e),t(null!=r),t(e.Xa==r.Xa),n(r.X,0,e.X,0,1<<r.Xa)}function H(){this.X=[],this.Xa=this.Mb=0}function I(e,r,n,o){t(null!=n),t(null!=o);var s=n[0],i=o[0];return 0==s&&(s=(e*i+r/2)/r),0==i&&(i=(r*s+e/2)/e),0>=s||0>=i?0:(n[0]=s,o[0]=i,1)}function P(e,t){return e+(1<<t)-1>>>t}function O(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function k(t,r){e[r]=function(r,n,o,s,i,a,A){var u;for(u=0;u<i;++u){var c=e[t](a[A+u-1],o,s+u);a[A+u]=O(r[n+u],c)}}}function R(){this.ud=this.hd=this.jd=0}function M(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function D(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function K(e,t){return D(e+(e-t+.5>>1))}function z(e,t,r){return Math.abs(t-r)-Math.abs(e-r)}function V(e,t,r,n,o,s,i){for(n=s[i-1],r=0;r<o;++r)s[i+r]=n=O(e[t+r],n)}function q(e,t,r,n,o){var s;for(s=0;s<r;++s){var i=e[t+s],a=i>>8&255,A=16711935&(A=(A=16711935&i)+((a<<16)+a));n[o+s]=(4278255360&i)+A>>>0}}function G(e,t){t.jd=e>>0&255,t.hd=e>>8&255,t.ud=e>>16&255}function X(e,t,r,n,o,s){var i;for(i=0;i<n;++i){var a=t[r+i],A=a>>>8,u=a,c=255&(c=(c=a>>>16)+((e.jd<<24>>24)*(A<<24>>24)>>>5));u=255&(u=(u+=(e.hd<<24>>24)*(A<<24>>24)>>>5)+((e.ud<<24>>24)*(c<<24>>24)>>>5)),o[s+i]=(4278255360&a)+(c<<16)+u}}function W(t,r,n,o,s){e[r]=function(e,t,r,n,i,a,A,u,c){for(n=A;n<u;++n)for(A=0;A<c;++A)i[a++]=s(r[o(e[t++])])},e[t]=function(t,r,i,a,A,u,c){var l=8>>t.b,d=t.Ea,f=t.K[0],h=t.w;if(8>l)for(t=(1<<t.b)-1,h=(1<<l)-1;r<i;++r){var p,m=0;for(p=0;p<d;++p)p&t||(m=o(a[A++])),u[c++]=s(f[m&h]),m>>=l}else e["VP8LMapColor"+n](a,A,f,h,u,c,r,i,d)}}function J(e,t,r,n,o){for(r=t+r;t<r;){var s=e[t++];n[o++]=s>>16&255,n[o++]=s>>8&255,n[o++]=s>>0&255}}function Y(e,t,r,n,o){for(r=t+r;t<r;){var s=e[t++];n[o++]=s>>16&255,n[o++]=s>>8&255,n[o++]=s>>0&255,n[o++]=s>>24&255}}function Z(e,t,r,n,o){for(r=t+r;t<r;){var s=(i=e[t++])>>16&240|i>>12&15,i=i>>0&240|i>>28&15;n[o++]=s,n[o++]=i}}function $(e,t,r,n,o){for(r=t+r;t<r;){var s=(i=e[t++])>>16&248|i>>13&7,i=i>>5&224|i>>3&31;n[o++]=s,n[o++]=i}}function ee(e,t,r,n,o){for(r=t+r;t<r;){var s=e[t++];n[o++]=s>>0&255,n[o++]=s>>8&255,n[o++]=s>>16&255}}function te(e,t,r,o,s,i){if(0==i)for(r=t+r;t<r;)Q(o,((i=e[t++])[0]>>24|i[1]>>8&65280|i[2]<<8&16711680|i[3]<<24)>>>0),s+=32;else n(o,s,e,t,r)}function re(t,r){e[r][0]=e[t+"0"],e[r][1]=e[t+"1"],e[r][2]=e[t+"2"],e[r][3]=e[t+"3"],e[r][4]=e[t+"4"],e[r][5]=e[t+"5"],e[r][6]=e[t+"6"],e[r][7]=e[t+"7"],e[r][8]=e[t+"8"],e[r][9]=e[t+"9"],e[r][10]=e[t+"10"],e[r][11]=e[t+"11"],e[r][12]=e[t+"12"],e[r][13]=e[t+"13"],e[r][14]=e[t+"0"],e[r][15]=e[t+"0"]}function ne(e){return e==Kn||e==zn||e==Vn||e==qn}function oe(){this.eb=[],this.size=this.A=this.fb=0}function se(){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 ie(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new oe,this.f.kb=new se,this.sd=null}function ae(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ae(){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 ue(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ce(e,t){var r=e.T,o=t.ba.f.RGBA,s=o.eb,i=o.fb+e.ka*o.A,a=yo[t.ba.S],A=e.y,u=e.O,c=e.f,l=e.N,d=e.ea,f=e.W,h=t.cc,p=t.dc,m=t.Mc,g=t.Nc,y=e.ka,v=e.ka+e.T,w=e.U,b=w+1>>1;for(0==y?a(A,u,null,null,c,l,d,f,c,l,d,f,s,i,null,null,w):(a(t.ec,t.fc,A,u,h,p,m,g,c,l,d,f,s,i-o.A,s,i,w),++r);y+2<v;y+=2)h=c,p=l,m=d,g=f,l+=e.Rc,f+=e.Rc,i+=2*o.A,a(A,(u+=2*e.fa)-e.fa,A,u,h,p,m,g,c,l,d,f,s,i-o.A,s,i,w);return u+=e.fa,e.j+v<e.o?(n(t.ec,t.fc,A,u,w),n(t.cc,t.dc,c,l,b),n(t.Mc,t.Nc,d,f,b),r--):1&v||a(A,u,null,null,c,l,d,f,c,l,d,f,s,i+o.A,null,null,w),r}function le(e,r,n){var o=e.F,s=[e.J];if(null!=o){var i=e.U,a=r.ba.S,A=a==Rn||a==Vn;r=r.ba.f.RGBA;var u=[0],c=e.ka;u[0]=e.T,e.Kb&&(0==c?--u[0]:(--c,s[0]-=e.width),e.j+e.ka+e.T==e.o&&(u[0]=e.o-e.j-c));var l=r.eb;c=r.fb+c*r.A,e=Cn(o,s[0],e.width,i,u,l,c+(A?0:3),r.A),t(n==u),e&&ne(a)&&jn(l,c,A,i,u,r.A)}return 0}function de(e){var t=e.ma,r=t.ba.S,n=11>r,o=r==Pn||r==kn||r==Rn||r==Mn||12==r||ne(r);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Hr(t.Oa,e,o?11:12))return 0;if(o&&ne(r)&&yr(),e.da)alert("todo:use_scaling");else{if(n){if(t.Ib=ue,e.Kb){if(r=e.U+1>>1,t.memory=s(e.U+2*r),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+r,t.Ib=ce,yr()}}else alert("todo:EmitYUV");o&&(t.Jb=le,n&&mr())}if(n&&!So){for(e=0;256>e;++e)Lo[e]=89858*(e-128)+Eo>>xo,Io[e]=-22014*(e-128)+Eo,Ho[e]=-45773*(e-128),To[e]=113618*(e-128)+Eo>>xo;for(e=No;e<Qo;++e)t=76283*(e-16)+Eo>>xo,Po[e-No]=Ve(t,255),Oo[e-No]=Ve(t+8>>4,15);So=1}return 1}function fe(e){var r=e.ma,n=e.U,o=e.T;return t(!(1&e.ka)),0>=n||0>=o?0:(n=r.Ib(e,r),null!=r.Jb&&r.Jb(e,r,n),r.Dc+=n,1)}function he(e){e.ma.memory=null}function pe(e,t,r,n){return 47!=v(e,8)?0:(t[0]=v(e,14)+1,r[0]=v(e,14)+1,n[0]=v(e,1),0!=v(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var r=e-2>>1;return(2+(1&e)<<r)+v(t,r)+1}function ge(e,t){return 120<t?t-120:1<=(r=((r=Zn[t-1])>>4)*e+(8-(15&r)))?r:1;var r}function ye(e,t,r){var n=B(r),o=e[t+=255&n].g-8;return 0<o&&(_(r,r.u+8),n=B(r),t+=e[t].value,t+=n&(1<<o)-1),_(r,r.u+e[t].g),e[t].value}function ve(e,r,n){return n.g+=e.g,n.value+=e.value<<r>>>0,t(8>=n.g),e.g}function we(e,r,n){var o=e.xc;return t((r=0==o?0:e.vc[e.md*(n>>o)+(r>>o)])<e.Wb),e.Ya[r]}function be(e,r,o,s){var i=e.ab,a=e.c*r,A=e.C;r=A+r;var u=o,c=s;for(s=e.Ta,o=e.Ua;0<i--;){var l=e.gc[i],d=A,f=r,h=u,p=c,m=(c=s,u=o,l.Ea);switch(t(d<f),t(f<=l.nc),l.hc){case 2:qr(h,p,(f-d)*m,c,u);break;case 0:var g=d,y=f,v=c,w=u,b=(x=l).Ea;0==g&&(zr(h,p,null,null,1,v,w),V(h,p+1,0,0,b-1,v,w+1),p+=b,w+=b,++g);for(var B=1<<x.b,j=B-1,_=P(b,x.b),C=x.K,x=x.w+(g>>x.b)*_;g<y;){var E=C,N=x,Q=1;for(Vr(h,p,v,w-b,1,v,w);Q<b;){var F=(Q&~j)+B;F>b&&(F=b),(0,Yr[E[N++]>>8&15])(h,p+ +Q,v,w+Q-b,F-Q,v,w+Q),Q=F}p+=b,w+=b,++g&j||(x+=_)}f!=l.nc&&n(c,u-m,c,u+(f-d-1)*m,m);break;case 1:for(m=h,y=p,b=(h=l.Ea)-(w=h&~(v=(p=1<<l.b)-1)),g=P(h,l.b),B=l.K,l=l.w+(d>>l.b)*g;d<f;){for(j=B,_=l,C=new R,x=y+w,E=y+h;y<x;)G(j[_++],C),Zr(C,m,y,p,c,u),y+=p,u+=p;y<E&&(G(j[_++],C),Zr(C,m,y,b,c,u),y+=b,u+=b),++d&v||(l+=g)}break;case 3:if(h==c&&p==u&&0<l.b){for(y=c,h=m=u+(f-d)*m-(w=(f-d)*P(l.Ea,l.b)),p=c,v=u,g=[],w=(b=w)-1;0<=w;--w)g[w]=p[v+w];for(w=b-1;0<=w;--w)y[h+w]=g[w];Gr(l,d,f,c,m,c,u)}else Gr(l,d,f,h,p,c,u)}u=s,c=o}c!=o&&n(s,o,u,c,a)}function Be(e,r){var n=e.V,o=e.Ba+e.c*e.C,s=r-e.C;if(t(r<=e.l.o),t(16>=s),0<s){var i=e.l,a=e.Ta,A=e.Ua,u=i.width;if(be(e,s,n,o),s=A=[A],t((n=e.C)<(o=r)),t(i.v<i.va),o>i.o&&(o=i.o),n<i.j){var c=i.j-n;n=i.j,s[0]+=c*u}if(n>=o?n=0:(s[0]+=4*i.v,i.ka=n-i.j,i.U=i.va-i.v,i.T=o-n,n=1),n){if(A=A[0],11>(n=e.ca).S){var l=n.f.RGBA,d=(o=n.S,s=i.U,i=i.T,c=l.eb,l.A),f=i;for(l=l.fb+e.Ma*l.A;0<f--;){var h=a,p=A,m=s,g=c,y=l;switch(o){case In:$r(h,p,m,g,y);break;case Pn:en(h,p,m,g,y);break;case Kn:en(h,p,m,g,y),jn(g,y,0,m,1,0);break;case On:nn(h,p,m,g,y);break;case kn:te(h,p,m,g,y,1);break;case zn:te(h,p,m,g,y,1),jn(g,y,0,m,1,0);break;case Rn:te(h,p,m,g,y,0);break;case Vn:te(h,p,m,g,y,0),jn(g,y,1,m,1,0);break;case Mn:tn(h,p,m,g,y);break;case qn:tn(h,p,m,g,y),_n(g,y,m,1,0);break;case Dn:rn(h,p,m,g,y);break;default:t(0)}A+=u,l+=d}e.Ma+=i}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=n.height)}}e.C=r,t(e.C<=e.i)}function je(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var r=e.Ya[t].G,n=e.Ya[t].H;if(0<r[1][n[1]+0].g||0<r[2][n[2]+0].g||0<r[3][n[3]+0].g)return 0}return 1}function _e(e,r,n,o,s,i){if(0!=e.Z){var a=e.qd,A=e.rd;for(t(null!=go[e.Z]);r<n;++r)go[e.Z](a,A,o,s,o,s,i),a=o,A=s,s+=i;e.qd=a,e.rd=A}}function Ce(e,r){var n=e.l.ma,o=0==n.Z||1==n.Z?e.l.j:e.C;if(o=e.C<o?o:e.C,t(r<=e.l.o),r>o){var s=e.l.width,i=n.ca,a=n.tb+s*o,A=e.V,u=e.Ba+e.c*o,c=e.gc;t(1==e.ab),t(3==c[0].hc),Wr(c[0],o,r,A,u,i,a),_e(n,o,r,i,a,s)}e.C=e.Ma=r}function xe(e,r,n,o,s,i,a){var A=e.$/o,u=e.$%o,c=e.m,l=e.s,d=n+e.$,f=d;s=n+o*s;var h=n+o*i,p=280+l.ua,m=e.Pb?A:16777216,g=0<l.ua?l.Wa:null,y=l.wc,v=d<h?we(l,u,A):null;t(e.C<i),t(h<=s);var w=!1;e:for(;;){for(;w||d<h;){var b=0;if(A>=m){var x=d-n;t((m=e).Pb),m.wd=m.m,m.xd=x,0<m.s.ua&&T(m.s.Wa,m.s.vb),m=A+eo}if(u&y||(v=we(l,u,A)),t(null!=v),v.Qb&&(r[d]=v.qb,w=!0),!w)if(C(c),v.jc){b=c,x=r;var E=d,N=v.pd[B(b)&Or-1];t(v.jc),256>N.g?(_(b,b.u+N.g),x[E]=N.value,b=0):(_(b,b.u+N.g-256),t(256<=N.value),b=N.value),0==b&&(w=!0)}else b=ye(v.G[0],v.H[0],c);if(c.h)break;if(w||256>b){if(!w)if(v.nd)r[d]=(v.qb|b<<8)>>>0;else{if(C(c),w=ye(v.G[1],v.H[1],c),C(c),x=ye(v.G[2],v.H[2],c),E=ye(v.G[3],v.H[3],c),c.h)break;r[d]=(E<<24|w<<16|b<<8|x)>>>0}if(w=!1,++d,++u>=o&&(u=0,++A,null!=a&&A<=i&&!(A%16)&&a(e,A),null!=g))for(;f<d;)b=r[f++],g.X[(506832829*b&4294967295)>>>g.Mb]=b}else if(280>b){if(b=me(b-256,c),x=ye(v.G[4],v.H[4],c),C(c),x=ge(o,x=me(x,c)),c.h)break;if(d-n<x||s-d<b)break e;for(E=0;E<b;++E)r[d+E]=r[d+E-x];for(d+=b,u+=b;u>=o;)u-=o,++A,null!=a&&A<=i&&!(A%16)&&a(e,A);if(t(d<=s),u&y&&(v=we(l,u,A)),null!=g)for(;f<d;)b=r[f++],g.X[(506832829*b&4294967295)>>>g.Mb]=b}else{if(!(b<p))break e;for(w=b-280,t(null!=g);f<d;)b=r[f++],g.X[(506832829*b&4294967295)>>>g.Mb]=b;b=d,t(!(w>>>(x=g).Xa)),r[b]=x.X[w],w=!0}w||t(c.h==j(c))}if(e.Pb&&c.h&&d<s)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&T(e.s.vb,e.s.Wa);else{if(c.h)break e;null!=a&&a(e,A>i?i:A),e.a=0,e.$=d-n}return 1}return e.a=3,0}function Ee(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var r=e.Wa;null!=r&&(r.X=null),e.vb=null,t(null!=e)}function Ne(){var t=new ir;return null==t?null:(t.a=0,t.xb=mo,re("Predictor","VP8LPredictors"),re("Predictor","VP8LPredictors_C"),re("PredictorAdd","VP8LPredictorsAdd"),re("PredictorAdd","VP8LPredictorsAdd_C"),qr=q,Zr=X,$r=J,en=Y,tn=Z,rn=$,nn=ee,e.VP8LMapColor32b=Xr,e.VP8LMapColor8b=Jr,t)}function Qe(e,r,n,a,A){var u=1,d=[e],h=[r],p=a.m,m=a.s,g=null,y=0;e:for(;;){if(n)for(;u&&v(p,1);){var w=d,b=h,j=a,x=1,E=j.m,N=j.gc[j.ab],Q=v(E,2);if(j.Oc&1<<Q)u=0;else{switch(j.Oc|=1<<Q,N.hc=Q,N.Ea=w[0],N.nc=b[0],N.K=[null],++j.ab,t(4>=j.ab),Q){case 0:case 1:N.b=v(E,3)+2,x=Qe(P(N.Ea,N.b),P(N.nc,N.b),0,j,N.K),N.K=N.K[0];break;case 3:var F,U=v(E,8)+1,S=16<U?0:4<U?1:2<U?2:3;if(w[0]=P(N.Ea,S),N.b=S,F=x=Qe(U,1,0,j,N.K)){var T,H=U,I=N,k=1<<(8>>I.b),R=s(k);if(null==R)F=0;else{var M=I.K[0],D=I.w;for(R[0]=I.K[0][0],T=1;T<1*H;++T)R[T]=O(M[D+T],R[T-1]);for(;T<4*k;++T)R[T]=0;I.K[0]=null,I.K[0]=R,F=1}}x=F;break;case 2:break;default:t(0)}u=x}}if(d=d[0],h=h[0],u&&v(p,1)&&!(u=1<=(y=v(p,4))&&11>=y)){a.a=3;break e}var K;if(K=u)t:{var z,V,q,G=a,X=d,W=h,J=y,Y=n,Z=G.m,$=G.s,ee=[null],te=1,re=0,ne=$n[J];r:for(;;){if(Y&&v(Z,1)){var oe=v(Z,3)+2,se=P(X,oe),ie=P(W,oe),ae=se*ie;if(!Qe(se,ie,0,G,ee))break r;for(ee=ee[0],$.xc=oe,z=0;z<ae;++z){var Ae=ee[z]>>8&65535;ee[z]=Ae,Ae>=te&&(te=Ae+1)}}if(Z.h)break r;for(V=0;5>V;++V){var ue=Wn[V];!V&&0<J&&(ue+=1<<J),re<ue&&(re=ue)}var ce=i(te*ne,l),le=te,de=i(le,f);if(null==de)var fe=null;else t(65536>=le),fe=de;var he=s(re);if(null==fe||null==he||null==ce){G.a=1;break r}var pe=ce;for(z=q=0;z<te;++z){var me=fe[z],ge=me.G,ye=me.H,we=0,be=1,Be=0;for(V=0;5>V;++V){ue=Wn[V],ge[V]=pe,ye[V]=q,!V&&0<J&&(ue+=1<<J);n:{var je,_e=ue,Ce=G,Ne=he,Fe=pe,Ue=q,Se=0,Le=Ce.m,Te=v(Le,1);if(o(Ne,0,0,_e),Te){var He=v(Le,1)+1,Ie=v(Le,1),Pe=v(Le,0==Ie?1:8);Ne[Pe]=1,2==He&&(Ne[Pe=v(Le,8)]=1);var Oe=1}else{var ke=s(19),Re=v(Le,4)+4;if(19<Re){Ce.a=3;var Me=0;break n}for(je=0;je<Re;++je)ke[Yn[je]]=v(Le,3);var De=void 0,Ke=void 0,ze=Ce,Ve=ke,qe=_e,Ge=Ne,Xe=0,We=ze.m,Je=8,Ye=i(128,l);o:for(;c(Ye,0,7,Ve,19);){if(v(We,1)){var Ze=2+2*v(We,3);if((De=2+v(We,Ze))>qe)break o}else De=qe;for(Ke=0;Ke<qe&&De--;){C(We);var $e=Ye[0+(127&B(We))];_(We,We.u+$e.g);var et=$e.value;if(16>et)Ge[Ke++]=et,0!=et&&(Je=et);else{var tt=16==et,rt=et-16,nt=Xn[rt],ot=v(We,Gn[rt])+nt;if(Ke+ot>qe)break o;for(var st=tt?Je:0;0<ot--;)Ge[Ke++]=st}}Xe=1;break o}Xe||(ze.a=3),Oe=Xe}(Oe=Oe&&!Le.h)&&(Se=c(Fe,Ue,8,Ne,_e)),Oe&&0!=Se?Me=Se:(Ce.a=3,Me=0)}if(0==Me)break r;if(be&&1==Jn[V]&&(be=0==pe[q].g),we+=pe[q].g,q+=Me,3>=V){var it,at=he[0];for(it=1;it<ue;++it)he[it]>at&&(at=he[it]);Be+=at}}if(me.nd=be,me.Qb=0,be&&(me.qb=(ge[3][ye[3]+0].value<<24|ge[1][ye[1]+0].value<<16|ge[2][ye[2]+0].value)>>>0,0==we&&256>ge[0][ye[0]+0].value&&(me.Qb=1,me.qb+=ge[0][ye[0]+0].value<<8)),me.jc=!me.Qb&&6>Be,me.jc){var At,ut=me;for(At=0;At<Or;++At){var ct=At,lt=ut.pd[ct],dt=ut.G[0][ut.H[0]+ct];256<=dt.value?(lt.g=dt.g+256,lt.value=dt.value):(lt.g=0,lt.value=0,ct>>=ve(dt,8,lt),ct>>=ve(ut.G[1][ut.H[1]+ct],16,lt),ct>>=ve(ut.G[2][ut.H[2]+ct],0,lt),ve(ut.G[3][ut.H[3]+ct],24,lt))}}}$.vc=ee,$.Wb=te,$.Ya=fe,$.yc=ce,K=1;break t}K=0}if(!(u=K)){a.a=3;break e}if(0<y){if(m.ua=1<<y,!L(m.Wa,y)){a.a=1,u=0;break e}}else m.ua=0;var ft=a,ht=d,pt=h,mt=ft.s,gt=mt.xc;if(ft.c=ht,ft.i=pt,mt.md=P(ht,gt),mt.wc=0==gt?-1:(1<<gt)-1,n){a.xb=po;break e}if(null==(g=s(d*h))){a.a=1,u=0;break e}u=(u=xe(a,g,0,d,h,h,null))&&!p.h;break e}return u?(null!=A?A[0]=g:(t(null==g),t(n)),a.$=0,n||Ee(m)):Ee(m),u}function Fe(e,r){var n=e.c*e.i,o=n+r+16*r;return t(e.c<=r),e.V=s(o),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+n+r,1)}function Ue(e,r){var n=e.C,o=r-n,s=e.V,i=e.Ba+e.c*n;for(t(r<=e.l.o);0<o;){var a=16<o?16:o,A=e.l.ma,u=e.l.width,c=u*a,l=A.ca,d=A.tb+u*n,f=e.Ta,h=e.Ua;be(e,a,s,i),xn(f,h,l,d,c),_e(A,n,n+a,l,d,u),o-=a,s+=a*e.c,n+=a}t(n==r),e.C=e.Ma=r}function Se(){this.ub=this.yd=this.td=this.Rb=0}function Le(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Te(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function He(){this.Yb=function(){var e=[];return function e(t,r,n){for(var o=n[r],s=0;s<o&&(t.push(n.length>r+1?[]:0),!(n.length<r+1));s++)e(t[s],r+1,n)}(e,0,[3,11]),e}()}function Ie(){this.jb=s(3),this.Wc=a([4,8],He),this.Xc=a([4,17],He)}function Pe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Oe(){this.ld=this.La=this.dd=this.tc=0}function ke(){this.Na=this.la=0}function Re(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Me(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function De(){this.uc=this.M=this.Nb=0,this.wa=Array(new Oe),this.Y=0,this.ya=Array(new Me),this.aa=0,this.l=new qe}function Ke(){this.y=s(16),this.f=s(8),this.ea=s(8)}function ze(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Se,this.Kc=new Le,this.ed=new Pe,this.Qa=new Te,this.Ic=this.$c=this.Aa=0,this.D=new De,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=i(8,w),this.ia=0,this.pb=i(4,Re),this.Pa=new Ie,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ke),this.Hd=0,this.rb=Array(new ke),this.sb=0,this.wa=Array(new Oe),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 Me),this.L=this.aa=0,this.gd=a([4,2],Oe),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 Ve(e,t){return 0>e?0:e>t?t:e}function qe(){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 Ge(){var e=new ze;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,no||(no=Ye)),e}function Xe(e,t,r){return 0==e.a&&(e.a=t,e.sc=r,e.cb=0),0}function We(e,t,r){return 3<=r&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Je(e,r){if(null==e)return 0;if(e.a=0,e.sc="OK",null==r)return Xe(e,2,"null VP8Io passed to VP8GetHeaders()");var n=r.data,s=r.w,i=r.ha;if(4>i)return Xe(e,7,"Truncated header.");var a=n[s+0]|n[s+1]<<8|n[s+2]<<16,A=e.Od;if(A.Rb=!(1&a),A.td=a>>1&7,A.yd=a>>4&1,A.ub=a>>5,3<A.td)return Xe(e,3,"Incorrect keyframe parameters.");if(!A.yd)return Xe(e,4,"Frame not displayable.");s+=3,i-=3;var u=e.Kc;if(A.Rb){if(7>i)return Xe(e,7,"cannot parse picture header");if(!We(n,s,i))return Xe(e,3,"Bad code word");u.c=16383&(n[s+4]<<8|n[s+3]),u.Td=n[s+4]>>6,u.i=16383&(n[s+6]<<8|n[s+5]),u.Ud=n[s+6]>>6,s+=7,i-=7,e.za=u.c+15>>4,e.Ub=u.i+15>>4,r.width=u.c,r.height=u.i,r.Da=0,r.j=0,r.v=0,r.va=r.width,r.o=r.height,r.da=0,r.ib=r.width,r.hb=r.height,r.U=r.width,r.T=r.height,o((a=e.Pa).jb,0,255,a.jb.length),t(null!=(a=e.Qa)),a.Cb=0,a.Bb=0,a.Fb=1,o(a.Zb,0,0,a.Zb.length),o(a.Lb,0,0,a.Lb)}if(A.ub>i)return Xe(e,7,"bad partition length");h(a=e.m,n,s,A.ub),s+=A.ub,i-=A.ub,A.Rb&&(u.Ld=E(a),u.Kd=E(a)),u=e.Qa;var c,l=e.Pa;if(t(null!=a),t(null!=u),u.Cb=E(a),u.Cb){if(u.Bb=E(a),E(a)){for(u.Fb=E(a),c=0;4>c;++c)u.Zb[c]=E(a)?m(a,7):0;for(c=0;4>c;++c)u.Lb[c]=E(a)?m(a,6):0}if(u.Bb)for(c=0;3>c;++c)l.jb[c]=E(a)?p(a,8):255}else u.Bb=0;if(a.Ka)return Xe(e,3,"cannot parse segment header");if((u=e.ed).zd=E(a),u.Tb=p(a,6),u.wb=p(a,3),u.Pc=E(a),u.Pc&&E(a)){for(l=0;4>l;++l)E(a)&&(u.vd[l]=m(a,6));for(l=0;4>l;++l)E(a)&&(u.od[l]=m(a,6))}if(e.L=0==u.Tb?0:u.zd?1:2,a.Ka)return Xe(e,3,"cannot parse filter header");var d=i;if(i=c=s,s=c+d,u=d,e.Xb=(1<<p(e.m,2))-1,d<3*(l=e.Xb))n=7;else{for(c+=3*l,u-=3*l,d=0;d<l;++d){var f=n[i+0]|n[i+1]<<8|n[i+2]<<16;f>u&&(f=u),h(e.Jc[+d],n,c,f),c+=f,u-=f,i+=3}h(e.Jc[+l],n,c,u),n=c<s?0:5}if(0!=n)return Xe(e,n,"cannot parse partitions");for(n=p(c=e.m,7),i=E(c)?m(c,4):0,s=E(c)?m(c,4):0,u=E(c)?m(c,4):0,l=E(c)?m(c,4):0,c=E(c)?m(c,4):0,d=e.Qa,f=0;4>f;++f){if(d.Cb){var g=d.Zb[f];d.Fb||(g+=n)}else{if(0<f){e.pb[f]=e.pb[0];continue}g=n}var y=e.pb[f];y.Sc[0]=to[Ve(g+i,127)],y.Sc[1]=ro[Ve(g+0,127)],y.Eb[0]=2*to[Ve(g+s,127)],y.Eb[1]=101581*ro[Ve(g+u,127)]>>16,8>y.Eb[1]&&(y.Eb[1]=8),y.Qc[0]=to[Ve(g+l,117)],y.Qc[1]=ro[Ve(g+c,127)],y.lc=g+c}if(!A.Rb)return Xe(e,4,"Not a key frame.");for(E(a),A=e.Pa,n=0;4>n;++n){for(i=0;8>i;++i)for(s=0;3>s;++s)for(u=0;11>u;++u)l=N(a,uo[n][i][s][u])?p(a,8):ao[n][i][s][u],A.Wc[n][i].Yb[s][u]=l;for(i=0;17>i;++i)A.Xc[n][i]=A.Wc[n][co[i]]}return e.kc=E(a),e.kc&&(e.Bd=p(a,8)),e.cb=1}function Ye(e,t,r,n,o,s,i){var a=t[o].Yb[r];for(r=0;16>o;++o){if(!N(e,a[r+0]))return o;for(;!N(e,a[r+1]);)if(a=t[++o].Yb[0],r=0,16==o)return 16;var A=t[o+1].Yb;if(N(e,a[r+2])){var u=e,c=0;if(N(u,(d=a)[(l=r)+3]))if(N(u,d[l+6])){for(a=0,l=2*(c=N(u,d[l+8]))+(d=N(u,d[l+9+c])),c=0,d=oo[l];d[a];++a)c+=c+N(u,d[a]);c+=3+(8<<l)}else N(u,d[l+7])?(c=7+2*N(u,165),c+=N(u,145)):c=5+N(u,159);else c=N(u,d[l+4])?3+N(u,d[l+5]):2;a=A[2]}else c=1,a=A[1];A=i+so[o],0>(u=e).b&&x(u);var l,d=u.b,f=(l=u.Ca>>1)-(u.I>>d)>>31;--u.b,u.Ca+=f,u.Ca|=1,u.I-=(l+1&f)<<d,s[A]=((c^f)-f)*n[(0<o)+0]}return 16}function Ze(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,o(e.zc,0,0,e.zc.length),e.ja=0}function $e(e,r){if(null==e)return 0;if(null==r)return Xe(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Je(e,r))return 0;if(t(e.cb),null==r.ac||r.ac(r)){r.ob&&(e.L=0);var a=Ro[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=r.v-a>>4,e.zb=r.j-a>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=r.o+15+a>>4,e.Hb=r.va+15+a>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var A=e.ed;for(a=0;4>a;++a){var u;if(e.Qa.Cb){var c=e.Qa.Lb[a];e.Qa.Fb||(c+=A.Tb)}else c=A.Tb;for(u=0;1>=u;++u){var l=e.gd[a][u],d=c;if(A.Pc&&(d+=A.vd[0],u&&(d+=A.od[0])),0<(d=0>d?0:63<d?63:d)){var f=d;0<A.wb&&(f=4<A.wb?f>>2:f>>1)>9-A.wb&&(f=9-A.wb),1>f&&(f=1),l.dd=f,l.tc=2*d+f,l.ld=40<=d?2:15<=d?1:0}else l.tc=0;l.La=u}}}a=0}else Xe(e,6,"Frame setup failed"),a=e.a;if(a=0==a){if(a){e.$c=0,0<e.Aa||(e.Ic=Do);e:{a=e.Ic,A=4*(f=e.za);var h=32*f,p=f+1,m=0<e.L?f*(0<e.Aa?2:1):0,g=(2==e.Aa?2:1)*f;if((l=A+832+(u=3*(16*a+Ro[e.L])/2*h)+(c=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=l)a=0;else{if(l>e.Vb){if(e.Vb=0,e.Ec=s(l),e.Fc=0,null==e.Ec){a=Xe(e,1,"no memory during frame initialization.");break e}e.Vb=l}l=e.Ec,d=e.Fc,e.Ac=l,e.Bc=d,d+=A,e.Gd=i(h,Ke),e.Hd=0,e.rb=i(p+1,ke),e.sb=1,e.wa=m?i(m,Oe):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=f),t(!0),e.oc=l,e.pc=d,d+=832,e.ya=i(g,Me),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=f),e.R=16*f,e.B=8*f,f=(h=Ro[e.L])*e.R,h=h/2*e.B,e.sa=l,e.ta=d+f,e.qa=e.sa,e.ra=e.ta+16*a*e.R+h,e.Ha=e.qa,e.Ia=e.ra+8*a*e.B+h,e.$c=0,d+=u,e.mb=c?l:null,e.nb=c?d:null,t(d+c<=e.Fc+e.Vb),Ze(e),o(e.Ac,e.Bc,0,A),a=1}}if(a){if(r.ka=0,r.y=e.sa,r.O=e.ta,r.f=e.qa,r.N=e.ra,r.ea=e.Ha,r.Vd=e.Ia,r.fa=e.R,r.Rc=e.B,r.F=null,r.J=0,!Un){for(a=-255;255>=a;++a)En[255+a]=0>a?-a:a;for(a=-1020;1020>=a;++a)Nn[1020+a]=-128>a?-128:127<a?127:a;for(a=-112;112>=a;++a)Qn[112+a]=-16>a?-16:15<a?15:a;for(a=-255;510>=a;++a)Fn[255+a]=0>a?0:255<a?255:a;Un=1}on=ut,sn=st,An=it,un=at,cn=At,an=ot,ln=Xt,dn=Wt,fn=Zt,hn=$t,pn=Jt,mn=Yt,gn=er,yn=tr,vn=Dt,wn=Kt,bn=zt,Bn=Vt,fo[0]=_t,fo[1]=lt,fo[2]=Bt,fo[3]=jt,fo[4]=Ct,fo[5]=Et,fo[6]=xt,fo[7]=Nt,fo[8]=Ft,fo[9]=Qt,lo[0]=gt,lo[1]=ft,lo[2]=ht,lo[3]=pt,lo[4]=yt,lo[5]=vt,lo[6]=wt,ho[0]=Tt,ho[1]=dt,ho[2]=Ut,ho[3]=St,ho[4]=It,ho[5]=Ht,ho[6]=Pt,a=1}else a=0}a&&(a=function(e,r){for(e.M=0;e.M<e.Va;++e.M){var i,a=e.Jc[e.M&e.Xb],A=e.m,u=e;for(i=0;i<u.za;++i){var c=A,l=u,d=l.Ac,f=l.Bc+4*i,h=l.zc,p=l.ya[l.aa+i];if(l.Qa.Bb?p.$b=N(c,l.Pa.jb[0])?2+N(c,l.Pa.jb[2]):N(c,l.Pa.jb[1]):p.$b=0,l.kc&&(p.Ad=N(c,l.Bd)),p.Za=!N(c,145)+0,p.Za){var m=p.Ob,g=0;for(l=0;4>l;++l){var y,v=h[0+l];for(y=0;4>y;++y){v=Ao[d[f+y]][v];for(var w=io[N(c,v[0])];0<w;)w=io[2*w+N(c,v[w])];v=-w,d[f+y]=v}n(m,g,d,f,4),g+=4,h[0+l]=v}}else v=N(c,156)?N(c,128)?1:3:N(c,163)?2:0,p.Ob[0]=v,o(d,f,v,4),o(h,0,v,4);p.Dd=N(c,142)?N(c,114)?N(c,183)?1:3:2:0}if(u.m.Ka)return Xe(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(u=a,c=(A=e).rb[A.sb-1],d=A.rb[A.sb+A.ja],i=A.ya[A.aa+A.ja],f=A.kc?i.Ad:0)c.la=d.la=0,i.Za||(c.Na=d.Na=0),i.Hc=0,i.Gc=0,i.ia=0;else{var b,B;if(c=d,d=u,f=A.Pa.Xc,h=A.ya[A.aa+A.ja],p=A.pb[h.$b],l=h.ad,m=0,g=A.rb[A.sb-1],v=y=0,o(l,m,0,384),h.Za)var j=0,_=f[3];else{w=s(16);var C=c.Na+g.Na;if(C=no(d,f[1],C,p.Eb,0,w,0),c.Na=g.Na=(0<C)+0,1<C)on(w,0,l,m);else{var x=w[0]+3>>3;for(w=0;256>w;w+=16)l[m+w]=x}j=1,_=f[0]}var E=15&c.la,Q=15&g.la;for(w=0;4>w;++w){var F=1&Q;for(x=B=0;4>x;++x)E=E>>1|(F=(C=no(d,_,C=F+(1&E),p.Sc,j,l,m))>j)<<7,B=B<<2|(3<C?3:1<C?2:0!=l[m+0]),m+=16;E>>=4,Q=Q>>1|F<<7,y=(y<<8|B)>>>0}for(_=E,j=Q>>4,b=0;4>b;b+=2){for(B=0,E=c.la>>4+b,Q=g.la>>4+b,w=0;2>w;++w){for(F=1&Q,x=0;2>x;++x)C=F+(1&E),E=E>>1|(F=0<(C=no(d,f[2],C,p.Qc,0,l,m)))<<3,B=B<<2|(3<C?3:1<C?2:0!=l[m+0]),m+=16;E>>=2,Q=Q>>1|F<<5}v|=B<<4*b,_|=E<<4<<b,j|=(240&Q)<<b}c.la=_,g.la=j,h.Hc=y,h.Gc=v,h.ia=43690&v?0:p.ia,f=!(y|v)}if(0<A.L&&(A.wa[A.Y+A.ja]=A.gd[i.$b][i.Za],A.wa[A.Y+A.ja].La|=!f),u.Ka)return Xe(e,7,"Premature end-of-file encountered.")}if(Ze(e),A=r,u=1,i=(a=e).D,c=0<a.L&&a.M>=a.zb&&a.M<=a.Va,0==a.Aa)e:{if(i.M=a.M,i.uc=c,Lr(a,i),u=1,i=(B=a.D).Nb,c=(v=Ro[a.L])*a.R,d=v/2*a.B,w=16*i*a.R,x=8*i*a.B,f=a.sa,h=a.ta-c+w,p=a.qa,l=a.ra-d+x,m=a.Ha,g=a.Ia-d+x,Q=0==(E=B.M),y=E>=a.Va-1,2==a.Aa&&Lr(a,B),B.uc)for(F=(C=a).D.M,t(C.D.uc),B=C.yb;B<C.Hb;++B){j=B,_=F;var U=(S=(M=C).D).Nb;b=M.R;var S=S.wa[S.Y+j],L=M.sa,T=M.ta+16*U*b+16*j,H=S.dd,I=S.tc;if(0!=I)if(t(3<=I),1==M.L)0<j&&wn(L,T,b,I+4),S.La&&Bn(L,T,b,I),0<_&&vn(L,T,b,I+4),S.La&&bn(L,T,b,I);else{var P=M.B,O=M.qa,k=M.ra+8*U*P+8*j,R=M.Ha,M=M.Ia+8*U*P+8*j;U=S.ld,0<j&&(dn(L,T,b,I+4,H,U),hn(O,k,R,M,P,I+4,H,U)),S.La&&(mn(L,T,b,I,H,U),yn(O,k,R,M,P,I,H,U)),0<_&&(ln(L,T,b,I+4,H,U),fn(O,k,R,M,P,I+4,H,U)),S.La&&(pn(L,T,b,I,H,U),gn(O,k,R,M,P,I,H,U))}}if(a.ia&&alert("todo:DitherRow"),null!=A.put){if(B=16*E,E=16*(E+1),Q?(A.y=a.sa,A.O=a.ta+w,A.f=a.qa,A.N=a.ra+x,A.ea=a.Ha,A.W=a.Ia+x):(B-=v,A.y=f,A.O=h,A.f=p,A.N=l,A.ea=m,A.W=g),y||(E-=v),E>A.o&&(E=A.o),A.F=null,A.J=null,null!=a.Fa&&0<a.Fa.length&&B<E&&(A.J=lr(a,A,B,E-B),A.F=a.mb,null==A.F&&0==A.F.length)){u=Xe(a,3,"Could not decode alpha data.");break e}B<A.j&&(v=A.j-B,B=A.j,t(!(1&v)),A.O+=a.R*v,A.N+=a.B*(v>>1),A.W+=a.B*(v>>1),null!=A.F&&(A.J+=A.width*v)),B<E&&(A.O+=A.v,A.N+=A.v>>1,A.W+=A.v>>1,null!=A.F&&(A.J+=A.v),A.ka=B-A.j,A.U=A.va-A.v,A.T=E-B,u=A.put(A))}i+1!=a.Ic||y||(n(a.sa,a.ta-c,f,h+16*a.R,c),n(a.qa,a.ra-d,p,l+8*a.B,d),n(a.Ha,a.Ia-d,m,g+8*a.B,d))}if(!u)return Xe(e,6,"Output aborted.")}return 1}(e,r)),null!=r.bc&&r.bc(r),a&=1}return a?(e.cb=0,a):0}function et(e,t,r,n,o){o=e[t+r+32*n]+(o>>3),e[t+r+32*n]=-256&o?0>o?0:255:o}function tt(e,t,r,n,o,s){et(e,t,0,r,n+o),et(e,t,1,r,n+s),et(e,t,2,r,n-s),et(e,t,3,r,n-o)}function rt(e){return(20091*e>>16)+e}function nt(e,t,r,n){var o,i=0,a=s(16);for(o=0;4>o;++o){var A=e[t+0]+e[t+8],u=e[t+0]-e[t+8],c=(35468*e[t+4]>>16)-rt(e[t+12]),l=rt(e[t+4])+(35468*e[t+12]>>16);a[i+0]=A+l,a[i+1]=u+c,a[i+2]=u-c,a[i+3]=A-l,i+=4,t++}for(o=i=0;4>o;++o)A=(e=a[i+0]+4)+a[i+8],u=e-a[i+8],c=(35468*a[i+4]>>16)-rt(a[i+12]),et(r,n,0,0,A+(l=rt(a[i+4])+(35468*a[i+12]>>16))),et(r,n,1,0,u+c),et(r,n,2,0,u-c),et(r,n,3,0,A-l),i++,n+=32}function ot(e,t,r,n){var o=e[t+0]+4,s=35468*e[t+4]>>16,i=rt(e[t+4]),a=35468*e[t+1]>>16;tt(r,n,0,o+i,e=rt(e[t+1]),a),tt(r,n,1,o+s,e,a),tt(r,n,2,o-s,e,a),tt(r,n,3,o-i,e,a)}function st(e,t,r,n,o){nt(e,t,r,n),o&&nt(e,t+16,r,n+4)}function it(e,t,r,n){sn(e,t+0,r,n,1),sn(e,t+32,r,n+128,1)}function at(e,t,r,n){var o;for(e=e[t+0]+4,o=0;4>o;++o)for(t=0;4>t;++t)et(r,n,t,o,e)}function At(e,t,r,n){e[t+0]&&un(e,t+0,r,n),e[t+16]&&un(e,t+16,r,n+4),e[t+32]&&un(e,t+32,r,n+128),e[t+48]&&un(e,t+48,r,n+128+4)}function ut(e,t,r,n){var o,i=s(16);for(o=0;4>o;++o){var a=e[t+0+o]+e[t+12+o],A=e[t+4+o]+e[t+8+o],u=e[t+4+o]-e[t+8+o],c=e[t+0+o]-e[t+12+o];i[0+o]=a+A,i[8+o]=a-A,i[4+o]=c+u,i[12+o]=c-u}for(o=0;4>o;++o)a=(e=i[0+4*o]+3)+i[3+4*o],A=i[1+4*o]+i[2+4*o],u=i[1+4*o]-i[2+4*o],c=e-i[3+4*o],r[n+0]=a+A>>3,r[n+16]=c+u>>3,r[n+32]=a-A>>3,r[n+48]=c-u>>3,n+=64}function ct(e,t,r){var n,o=t-32,s=Tn,i=255-e[o-1];for(n=0;n<r;++n){var a,A=s,u=i+e[t-1];for(a=0;a<r;++a)e[t+a]=A[u+e[o+a]];t+=32}}function lt(e,t){ct(e,t,4)}function dt(e,t){ct(e,t,8)}function ft(e,t){ct(e,t,16)}function ht(e,t){var r;for(r=0;16>r;++r)n(e,t+32*r,e,t-32,16)}function pt(e,t){var r;for(r=16;0<r;--r)o(e,t,e[t-1],16),t+=32}function mt(e,t,r){var n;for(n=0;16>n;++n)o(t,r+32*n,e,16)}function gt(e,t){var r,n=16;for(r=0;16>r;++r)n+=e[t-1+32*r]+e[t+r-32];mt(n>>5,e,t)}function yt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t-1+32*r];mt(n>>4,e,t)}function vt(e,t){var r,n=8;for(r=0;16>r;++r)n+=e[t+r-32];mt(n>>4,e,t)}function wt(e,t){mt(128,e,t)}function bt(e,t,r){return e+2*t+r+2>>2}function Bt(e,t){var r,o=t-32;for(o=new Uint8Array([bt(e[o-1],e[o+0],e[o+1]),bt(e[o+0],e[o+1],e[o+2]),bt(e[o+1],e[o+2],e[o+3]),bt(e[o+2],e[o+3],e[o+4])]),r=0;4>r;++r)n(e,t+32*r,o,0,o.length)}function jt(e,t){var r=e[t-1],n=e[t-1+32],o=e[t-1+64],s=e[t-1+96];Q(e,t+0,16843009*bt(e[t-1-32],r,n)),Q(e,t+32,16843009*bt(r,n,o)),Q(e,t+64,16843009*bt(n,o,s)),Q(e,t+96,16843009*bt(o,s,s))}function _t(e,t){var r,n=4;for(r=0;4>r;++r)n+=e[t+r-32]+e[t-1+32*r];for(n>>=3,r=0;4>r;++r)o(e,t+32*r,n,4)}function Ct(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],s=e[t-1-32],i=e[t+0-32],a=e[t+1-32],A=e[t+2-32],u=e[t+3-32];e[t+0+96]=bt(n,o,e[t-1+96]),e[t+1+96]=e[t+0+64]=bt(r,n,o),e[t+2+96]=e[t+1+64]=e[t+0+32]=bt(s,r,n),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=bt(i,s,r),e[t+3+64]=e[t+2+32]=e[t+1+0]=bt(a,i,s),e[t+3+32]=e[t+2+0]=bt(A,a,i),e[t+3+0]=bt(u,A,a)}function xt(e,t){var r=e[t+1-32],n=e[t+2-32],o=e[t+3-32],s=e[t+4-32],i=e[t+5-32],a=e[t+6-32],A=e[t+7-32];e[t+0+0]=bt(e[t+0-32],r,n),e[t+1+0]=e[t+0+32]=bt(r,n,o),e[t+2+0]=e[t+1+32]=e[t+0+64]=bt(n,o,s),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=bt(o,s,i),e[t+3+32]=e[t+2+64]=e[t+1+96]=bt(s,i,a),e[t+3+64]=e[t+2+96]=bt(i,a,A),e[t+3+96]=bt(a,A,A)}function Et(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],s=e[t-1-32],i=e[t+0-32],a=e[t+1-32],A=e[t+2-32],u=e[t+3-32];e[t+0+0]=e[t+1+64]=s+i+1>>1,e[t+1+0]=e[t+2+64]=i+a+1>>1,e[t+2+0]=e[t+3+64]=a+A+1>>1,e[t+3+0]=A+u+1>>1,e[t+0+96]=bt(o,n,r),e[t+0+64]=bt(n,r,s),e[t+0+32]=e[t+1+96]=bt(r,s,i),e[t+1+32]=e[t+2+96]=bt(s,i,a),e[t+2+32]=e[t+3+96]=bt(i,a,A),e[t+3+32]=bt(a,A,u)}function Nt(e,t){var r=e[t+0-32],n=e[t+1-32],o=e[t+2-32],s=e[t+3-32],i=e[t+4-32],a=e[t+5-32],A=e[t+6-32],u=e[t+7-32];e[t+0+0]=r+n+1>>1,e[t+1+0]=e[t+0+64]=n+o+1>>1,e[t+2+0]=e[t+1+64]=o+s+1>>1,e[t+3+0]=e[t+2+64]=s+i+1>>1,e[t+0+32]=bt(r,n,o),e[t+1+32]=e[t+0+96]=bt(n,o,s),e[t+2+32]=e[t+1+96]=bt(o,s,i),e[t+3+32]=e[t+2+96]=bt(s,i,a),e[t+3+64]=bt(i,a,A),e[t+3+96]=bt(a,A,u)}function Qt(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],s=e[t-1+96];e[t+0+0]=r+n+1>>1,e[t+2+0]=e[t+0+32]=n+o+1>>1,e[t+2+32]=e[t+0+64]=o+s+1>>1,e[t+1+0]=bt(r,n,o),e[t+3+0]=e[t+1+32]=bt(n,o,s),e[t+3+32]=e[t+1+64]=bt(o,s,s),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=s}function Ft(e,t){var r=e[t-1+0],n=e[t-1+32],o=e[t-1+64],s=e[t-1+96],i=e[t-1-32],a=e[t+0-32],A=e[t+1-32],u=e[t+2-32];e[t+0+0]=e[t+2+32]=r+i+1>>1,e[t+0+32]=e[t+2+64]=n+r+1>>1,e[t+0+64]=e[t+2+96]=o+n+1>>1,e[t+0+96]=s+o+1>>1,e[t+3+0]=bt(a,A,u),e[t+2+0]=bt(i,a,A),e[t+1+0]=e[t+3+32]=bt(r,i,a),e[t+1+32]=e[t+3+64]=bt(n,r,i),e[t+1+64]=e[t+3+96]=bt(o,n,r),e[t+1+96]=bt(s,o,n)}function Ut(e,t){var r;for(r=0;8>r;++r)n(e,t+32*r,e,t-32,8)}function St(e,t){var r;for(r=0;8>r;++r)o(e,t,e[t-1],8),t+=32}function Lt(e,t,r){var n;for(n=0;8>n;++n)o(t,r+32*n,e,8)}function Tt(e,t){var r,n=8;for(r=0;8>r;++r)n+=e[t+r-32]+e[t-1+32*r];Lt(n>>4,e,t)}function Ht(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t+r-32];Lt(n>>3,e,t)}function It(e,t){var r,n=4;for(r=0;8>r;++r)n+=e[t-1+32*r];Lt(n>>3,e,t)}function Pt(e,t){Lt(128,e,t)}function Ot(e,t,r){var n=e[t-r],o=e[t+0],s=3*(o-n)+Sn[1020+e[t-2*r]-e[t+r]],i=Ln[112+(s+4>>3)];e[t-r]=Tn[255+n+Ln[112+(s+3>>3)]],e[t+0]=Tn[255+o-i]}function kt(e,t,r,n){var o=e[t+0],s=e[t+r];return Hn[255+e[t-2*r]-e[t-r]]>n||Hn[255+s-o]>n}function Rt(e,t,r,n){return 4*Hn[255+e[t-r]-e[t+0]]+Hn[255+e[t-2*r]-e[t+r]]<=n}function Mt(e,t,r,n,o){var s=e[t-3*r],i=e[t-2*r],a=e[t-r],A=e[t+0],u=e[t+r],c=e[t+2*r],l=e[t+3*r];return 4*Hn[255+a-A]+Hn[255+i-u]>n?0:Hn[255+e[t-4*r]-s]<=o&&Hn[255+s-i]<=o&&Hn[255+i-a]<=o&&Hn[255+l-c]<=o&&Hn[255+c-u]<=o&&Hn[255+u-A]<=o}function Dt(e,t,r,n){var o=2*n+1;for(n=0;16>n;++n)Rt(e,t+n,r,o)&&Ot(e,t+n,r)}function Kt(e,t,r,n){var o=2*n+1;for(n=0;16>n;++n)Rt(e,t+n*r,1,o)&&Ot(e,t+n*r,1)}function zt(e,t,r,n){var o;for(o=3;0<o;--o)Dt(e,t+=4*r,r,n)}function Vt(e,t,r,n){var o;for(o=3;0<o;--o)Kt(e,t+=4,r,n)}function qt(e,t,r,n,o,s,i,a){for(s=2*s+1;0<o--;){if(Mt(e,t,r,s,i))if(kt(e,t,r,a))Ot(e,t,r);else{var A=e,u=t,c=r,l=A[u-2*c],d=A[u-c],f=A[u+0],h=A[u+c],p=A[u+2*c],m=27*(y=Sn[1020+3*(f-d)+Sn[1020+l-h]])+63>>7,g=18*y+63>>7,y=9*y+63>>7;A[u-3*c]=Tn[255+A[u-3*c]+y],A[u-2*c]=Tn[255+l+g],A[u-c]=Tn[255+d+m],A[u+0]=Tn[255+f-m],A[u+c]=Tn[255+h-g],A[u+2*c]=Tn[255+p-y]}t+=n}}function Gt(e,t,r,n,o,s,i,a){for(s=2*s+1;0<o--;){if(Mt(e,t,r,s,i))if(kt(e,t,r,a))Ot(e,t,r);else{var A=e,u=t,c=r,l=A[u-c],d=A[u+0],f=A[u+c],h=Ln[112+(4+(p=3*(d-l))>>3)],p=Ln[112+(p+3>>3)],m=h+1>>1;A[u-2*c]=Tn[255+A[u-2*c]+m],A[u-c]=Tn[255+l+p],A[u+0]=Tn[255+d-h],A[u+c]=Tn[255+f-m]}t+=n}}function Xt(e,t,r,n,o,s){qt(e,t,r,1,16,n,o,s)}function Wt(e,t,r,n,o,s){qt(e,t,1,r,16,n,o,s)}function Jt(e,t,r,n,o,s){var i;for(i=3;0<i;--i)Gt(e,t+=4*r,r,1,16,n,o,s)}function Yt(e,t,r,n,o,s){var i;for(i=3;0<i;--i)Gt(e,t+=4,1,r,16,n,o,s)}function Zt(e,t,r,n,o,s,i,a){qt(e,t,o,1,8,s,i,a),qt(r,n,o,1,8,s,i,a)}function $t(e,t,r,n,o,s,i,a){qt(e,t,1,o,8,s,i,a),qt(r,n,1,o,8,s,i,a)}function er(e,t,r,n,o,s,i,a){Gt(e,t+4*o,o,1,8,s,i,a),Gt(r,n+4*o,o,1,8,s,i,a)}function tr(e,t,r,n,o,s,i,a){Gt(e,t+4,1,o,8,s,i,a),Gt(r,n+4,1,o,8,s,i,a)}function rr(){this.ba=new ie,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ae,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function nr(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function or(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function sr(){this.ua=0,this.Wa=new H,this.vb=new H,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new f,this.yc=new l}function ir(){this.xb=this.a=0,this.l=new qe,this.ca=new ie,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 sr,this.ab=0,this.gc=i(4,or),this.Oc=0}function ar(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qe,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ar(e,t,r,n,o,s,i){for(e=null==e?0:e[t+0],t=0;t<i;++t)o[s+t]=e+r[n+t]&255,e=o[s+t]}function ur(e,t,r,n,o,s,i){var a;if(null==e)Ar(null,null,r,n,o,s,i);else for(a=0;a<i;++a)o[s+a]=e[t+a]+r[n+a]&255}function cr(e,t,r,n,o,s,i){if(null==e)Ar(null,null,r,n,o,s,i);else{var a,A=e[t+0],u=A,c=A;for(a=0;a<i;++a)u=c+(A=e[t+a])-u,c=r[n+a]+(-256&u?0>u?0:255:u)&255,u=A,o[s+a]=c}}function lr(e,r,o,i){var a=r.width,A=r.o;if(t(null!=e&&null!=r),0>o||0>=i||o+i>A)return null;if(!e.Cc){if(null==e.ga){var u;if(e.ga=new ar,(u=null==e.ga)||(u=r.width*r.o,t(0==e.Gb.length),e.Gb=s(u),e.Uc=0,null==e.Gb?u=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,u=1),u=!u),!u){u=e.ga;var c=e.Fa,l=e.P,d=e.qc,f=e.mb,h=e.nb,p=l+1,m=d-1,y=u.l;if(t(null!=c&&null!=f&&null!=r),go[0]=null,go[1]=Ar,go[2]=ur,go[3]=cr,u.ca=f,u.tb=h,u.c=r.width,u.i=r.height,t(0<u.c&&0<u.i),1>=d)r=0;else if(u.$a=c[l+0]>>0&3,u.Z=c[l+0]>>2&3,u.Lc=c[l+0]>>4&3,l=c[l+0]>>6&3,0>u.$a||1<u.$a||4<=u.Z||1<u.Lc||l)r=0;else if(y.put=fe,y.ac=de,y.bc=he,y.ma=u,y.width=r.width,y.height=r.height,y.Da=r.Da,y.v=r.v,y.va=r.va,y.j=r.j,y.o=r.o,u.$a)e:{t(1==u.$a),r=Ne();t:for(;;){if(null==r){r=0;break e}if(t(null!=u),u.mc=r,r.c=u.c,r.i=u.i,r.l=u.l,r.l.ma=u,r.l.width=u.c,r.l.height=u.i,r.a=0,g(r.m,c,p,m),!Qe(u.c,u.i,1,r,null))break t;if(1==r.ab&&3==r.gc[0].hc&&je(r.s)?(u.ic=1,c=r.c*r.i,r.Ta=null,r.Ua=0,r.V=s(c),r.Ba=0,null==r.V?(r.a=1,r=0):r=1):(u.ic=0,r=Fe(r,u.c)),!r)break t;r=1;break e}u.mc=null,r=0}else r=m>=u.c*u.i;u=!r}if(u)return null;1!=e.ga.Lc?e.Ga=0:i=A-o}t(null!=e.ga),t(o+i<=A);e:{if(r=(c=e.ga).c,A=c.l.o,0==c.$a){if(p=e.rc,m=e.Vc,y=e.Fa,l=e.P+1+o*r,d=e.mb,f=e.nb+o*r,t(l<=e.P+e.qc),0!=c.Z)for(t(null!=go[c.Z]),u=0;u<i;++u)go[c.Z](p,m,y,l,d,f,r),p=d,m=f,f+=r,l+=r;else for(u=0;u<i;++u)n(d,f,y,l,r),p=d,m=f,f+=r,l+=r;e.rc=p,e.Vc=m}else{if(t(null!=c.mc),r=o+i,t(null!=(u=c.mc)),t(r<=u.i),u.C>=r)r=1;else if(c.ic||mr(),c.ic){c=u.V,p=u.Ba,m=u.c;var v=u.i,w=(y=1,l=u.$/m,d=u.$%m,f=u.m,h=u.s,u.$),b=m*v,B=m*r,_=h.wc,x=w<B?we(h,d,l):null;t(w<=b),t(r<=v),t(je(h));t:for(;;){for(;!f.h&&w<B;){if(d&_||(x=we(h,d,l)),t(null!=x),C(f),256>(v=ye(x.G[0],x.H[0],f)))c[p+w]=v,++w,++d>=m&&(d=0,++l<=r&&!(l%16)&&Ce(u,l));else{if(!(280>v)){y=0;break t}v=me(v-256,f);var E,N=ye(x.G[4],x.H[4],f);if(C(f),!(w>=(N=ge(m,N=me(N,f)))&&b-w>=v)){y=0;break t}for(E=0;E<v;++E)c[p+w+E]=c[p+w+E-N];for(w+=v,d+=v;d>=m;)d-=m,++l<=r&&!(l%16)&&Ce(u,l);w<B&&d&_&&(x=we(h,d,l))}t(f.h==j(f))}Ce(u,l>r?r:l);break t}!y||f.h&&w<b?(y=0,u.a=f.h?5:3):u.$=w,r=y}else r=xe(u,u.V,u.Ba,u.c,u.i,r,Ue);if(!r){i=0;break e}}o+i>=A&&(e.Cc=1),i=1}if(!i)return null;if(e.Cc&&(null!=(i=e.ga)&&(i.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+o*a}function dr(e,t,r,n,o,s){for(;0<o--;){var i,a=e,A=t+(r?1:0),u=e,c=t+(r?0:3);for(i=0;i<n;++i){var l=u[c+4*i];255!=l&&(l*=32897,a[A+4*i+0]=a[A+4*i+0]*l>>23,a[A+4*i+1]=a[A+4*i+1]*l>>23,a[A+4*i+2]=a[A+4*i+2]*l>>23)}t+=s}}function fr(e,t,r,n,o){for(;0<n--;){var s;for(s=0;s<r;++s){var i=e[t+2*s+0],a=15&(u=e[t+2*s+1]),A=4369*a,u=(240&u|u>>4)*A>>16;e[t+2*s+0]=(240&i|i>>4)*A>>16&240|(15&i|i<<4)*A>>16>>4&15,e[t+2*s+1]=240&u|a}t+=o}}function hr(e,t,r,n,o,s,i,a){var A,u,c=255;for(u=0;u<o;++u){for(A=0;A<n;++A){var l=e[t+A];s[i+4*A]=l,c&=l}t+=r,i+=a}return 255!=c}function pr(e,t,r,n,o){var s;for(s=0;s<o;++s)r[n+s]=e[t+s]>>8}function mr(){jn=dr,_n=fr,Cn=hr,xn=pr}function gr(r,n,o){e[r]=function(e,r,s,i,a,A,u,c,l,d,f,h,p,m,g,y,v){var w,b=v-1>>1,B=a[A+0]|u[c+0]<<16,j=l[d+0]|f[h+0]<<16;t(null!=e);var _=3*B+j+131074>>2;for(n(e[r+0],255&_,_>>16,p,m),null!=s&&(_=3*j+B+131074>>2,n(s[i+0],255&_,_>>16,g,y)),w=1;w<=b;++w){var C=a[A+w]|u[c+w]<<16,x=l[d+w]|f[h+w]<<16,E=B+C+j+x+524296,N=E+2*(C+j)>>3;_=N+B>>1,B=(E=E+2*(B+x)>>3)+C>>1,n(e[r+2*w-1],255&_,_>>16,p,m+(2*w-1)*o),n(e[r+2*w-0],255&B,B>>16,p,m+(2*w-0)*o),null!=s&&(_=E+j>>1,B=N+x>>1,n(s[i+2*w-1],255&_,_>>16,g,y+(2*w-1)*o),n(s[i+2*w+0],255&B,B>>16,g,y+(2*w+0)*o)),B=C,j=x}1&v||(_=3*B+j+131074>>2,n(e[r+v-1],255&_,_>>16,p,m+(v-1)*o),null!=s&&(_=3*j+B+131074>>2,n(s[i+v-1],255&_,_>>16,g,y+(v-1)*o)))}}function yr(){yo[In]=vo,yo[Pn]=bo,yo[On]=wo,yo[kn]=Bo,yo[Rn]=jo,yo[Mn]=_o,yo[Dn]=Co,yo[Kn]=bo,yo[zn]=Bo,yo[Vn]=jo,yo[qn]=_o}function vr(e){return e&~Uo?0>e?0:255:e>>Fo}function wr(e,t){return vr((19077*e>>8)+(26149*t>>8)-14234)}function br(e,t,r){return vr((19077*e>>8)-(6419*t>>8)-(13320*r>>8)+8708)}function Br(e,t){return vr((19077*e>>8)+(33050*t>>8)-17685)}function jr(e,t,r,n,o){n[o+0]=wr(e,r),n[o+1]=br(e,t,r),n[o+2]=Br(e,t)}function _r(e,t,r,n,o){n[o+0]=Br(e,t),n[o+1]=br(e,t,r),n[o+2]=wr(e,r)}function Cr(e,t,r,n,o){var s=br(e,t,r);t=s<<3&224|Br(e,t)>>3,n[o+0]=248&wr(e,r)|s>>5,n[o+1]=t}function xr(e,t,r,n,o){var s=240&Br(e,t)|15;n[o+0]=240&wr(e,r)|br(e,t,r)>>4,n[o+1]=s}function Er(e,t,r,n,o){n[o+0]=255,jr(e,t,r,n,o+1)}function Nr(e,t,r,n,o){_r(e,t,r,n,o),n[o+3]=255}function Qr(e,t,r,n,o){jr(e,t,r,n,o),n[o+3]=255}function Ve(e,t){return 0>e?0:e>t?t:e}function Fr(t,r,n){e[t]=function(e,t,o,s,i,a,A,u,c){for(var l=u+(-2&c)*n;u!=l;)r(e[t+0],o[s+0],i[a+0],A,u),r(e[t+1],o[s+0],i[a+0],A,u+n),t+=2,++s,++a,u+=2*n;1&c&&r(e[t+0],o[s+0],i[a+0],A,u)}}function Ur(e,t,r){return 0==r?0==e?0==t?6:5:0==t?4:0:r}function Sr(e,t,r,n,o){switch(e>>>30){case 3:sn(t,r,n,o,0);break;case 2:an(t,r,n,o);break;case 1:un(t,r,n,o)}}function Lr(e,t){var r,s,i=t.M,a=t.Nb,A=e.oc,u=e.pc+40,c=e.oc,l=e.pc+584,d=e.oc,f=e.pc+600;for(r=0;16>r;++r)A[u+32*r-1]=129;for(r=0;8>r;++r)c[l+32*r-1]=129,d[f+32*r-1]=129;for(0<i?A[u-1-32]=c[l-1-32]=d[f-1-32]=129:(o(A,u-32-1,127,21),o(c,l-32-1,127,9),o(d,f-32-1,127,9)),s=0;s<e.za;++s){var h=t.ya[t.aa+s];if(0<s){for(r=-1;16>r;++r)n(A,u+32*r-4,A,u+32*r+12,4);for(r=-1;8>r;++r)n(c,l+32*r-4,c,l+32*r+4,4),n(d,f+32*r-4,d,f+32*r+4,4)}var p=e.Gd,m=e.Hd+s,g=h.ad,y=h.Hc;if(0<i&&(n(A,u-32,p[m].y,0,16),n(c,l-32,p[m].f,0,8),n(d,f-32,p[m].ea,0,8)),h.Za){var v=A,w=u-32+16;for(0<i&&(s>=e.za-1?o(v,w,p[m].y[15],4):n(v,w,p[m+1].y,0,4)),r=0;4>r;r++)v[w+128+r]=v[w+256+r]=v[w+384+r]=v[w+0+r];for(r=0;16>r;++r,y<<=2)v=A,w=u+ko[r],fo[h.Ob[r]](v,w),Sr(y,g,16*+r,v,w)}else if(v=Ur(s,i,h.Ob[0]),lo[v](A,u),0!=y)for(r=0;16>r;++r,y<<=2)Sr(y,g,16*+r,A,u+ko[r]);for(r=h.Gc,v=Ur(s,i,h.Dd),ho[v](c,l),ho[v](d,f),y=g,v=c,w=l,255&(h=r>>0)&&(170&h?An(y,256,v,w):cn(y,256,v,w)),h=d,y=f,255&(r>>=8)&&(170&r?An(g,320,h,y):cn(g,320,h,y)),i<e.Ub-1&&(n(p[m].y,0,A,u+480,16),n(p[m].f,0,c,l+224,8),n(p[m].ea,0,d,f+224,8)),r=8*a*e.B,p=e.sa,m=e.ta+16*s+16*a*e.R,g=e.qa,h=e.ra+8*s+r,y=e.Ha,v=e.Ia+8*s+r,r=0;16>r;++r)n(p,m+r*e.R,A,u+32*r,16);for(r=0;8>r;++r)n(g,h+r*e.B,c,l+32*r,8),n(y,v+r*e.B,d,f+32*r,8)}}function Tr(e,n,o,s,i,a,A,u,c){var l=[0],d=[0],f=0,h=null!=c?c.kd:0,p=null!=c?c:new nr;if(null==e||12>o)return 7;p.data=e,p.w=n,p.ha=o,n=[n],o=[o],p.gb=[p.gb];e:{var m=n,y=o,v=p.gb;if(t(null!=e),t(null!=y),t(null!=v),v[0]=0,12<=y[0]&&!r(e,m[0],"RIFF")){if(r(e,m[0]+8,"WEBP")){v=3;break e}var w=S(e,m[0]+4);if(12>w||4294967286<w){v=3;break e}if(h&&w>y[0]-8){v=7;break e}v[0]=w,m[0]+=12,y[0]-=12}v=0}if(0!=v)return v;for(w=0<p.gb[0],o=o[0];;){e:{var B=e;y=n,v=o;var j=l,_=d,C=m=[0];if((N=f=[f])[0]=0,8>v[0])v=7;else{if(!r(B,y[0],"VP8X")){if(10!=S(B,y[0]+4)){v=3;break e}if(18>v[0]){v=7;break e}var x=S(B,y[0]+8),E=1+U(B,y[0]+12);if(2147483648<=E*(B=1+U(B,y[0]+15))){v=3;break e}null!=C&&(C[0]=x),null!=j&&(j[0]=E),null!=_&&(_[0]=B),y[0]+=18,v[0]-=18,N[0]=1}v=0}}if(f=f[0],m=m[0],0!=v)return v;if(y=!!(2&m),!w&&f)return 3;if(null!=a&&(a[0]=!!(16&m)),null!=A&&(A[0]=y),null!=u&&(u[0]=0),A=l[0],m=d[0],f&&y&&null==c){v=0;break}if(4>o){v=7;break}if(w&&f||!w&&!f&&!r(e,n[0],"ALPH")){o=[o],p.na=[p.na],p.P=[p.P],p.Sa=[p.Sa];e:{x=e,v=n,w=o;var N=p.gb;j=p.na,_=p.P,C=p.Sa,E=22,t(null!=x),t(null!=w),B=v[0];var Q=w[0];for(t(null!=j),t(null!=C),j[0]=null,_[0]=null,C[0]=0;;){if(v[0]=B,w[0]=Q,8>Q){v=7;break e}var F=S(x,B+4);if(4294967286<F){v=3;break e}var L=8+F+1&-2;if(E+=L,0<N&&E>N){v=3;break e}if(!r(x,B,"VP8 ")||!r(x,B,"VP8L")){v=0;break e}if(Q[0]<L){v=7;break e}r(x,B,"ALPH")||(j[0]=x,_[0]=B+8,C[0]=F),B+=L,Q-=L}}if(o=o[0],p.na=p.na[0],p.P=p.P[0],p.Sa=p.Sa[0],0!=v)break}o=[o],p.Ja=[p.Ja],p.xa=[p.xa];e:if(N=e,v=n,w=o,j=p.gb[0],_=p.Ja,C=p.xa,x=v[0],B=!r(N,x,"VP8 "),E=!r(N,x,"VP8L"),t(null!=N),t(null!=w),t(null!=_),t(null!=C),8>w[0])v=7;else{if(B||E){if(N=S(N,x+4),12<=j&&N>j-12){v=3;break e}if(h&&N>w[0]-8){v=7;break e}_[0]=N,v[0]+=8,w[0]-=8,C[0]=E}else C[0]=5<=w[0]&&47==N[x+0]&&!(N[x+4]>>5),_[0]=w[0];v=0}if(o=o[0],p.Ja=p.Ja[0],p.xa=p.xa[0],n=n[0],0!=v)break;if(4294967286<p.Ja)return 3;if(null==u||y||(u[0]=p.xa?2:1),A=[A],m=[m],p.xa){if(5>o){v=7;break}u=A,h=m,y=a,null==e||5>o?e=0:5<=o&&47==e[n+0]&&!(e[n+4]>>5)?(w=[0],N=[0],j=[0],g(_=new b,e,n,o),pe(_,w,N,j)?(null!=u&&(u[0]=w[0]),null!=h&&(h[0]=N[0]),null!=y&&(y[0]=j[0]),e=1):e=0):e=0}else{if(10>o){v=7;break}u=m,null==e||10>o||!We(e,n+3,o-3)?e=0:(h=e[n+0]|e[n+1]<<8|e[n+2]<<16,y=16383&(e[n+7]<<8|e[n+6]),e=16383&(e[n+9]<<8|e[n+8]),1&h||3<(h>>1&7)||!(h>>4&1)||h>>5>=p.Ja||!y||!e?e=0:(A&&(A[0]=y),u&&(u[0]=e),e=1))}if(!e)return 3;if(A=A[0],m=m[0],f&&(l[0]!=A||d[0]!=m))return 3;null!=c&&(c[0]=p,c.offset=n-c.w,t(4294967286>n-c.w),t(c.offset==c.ha-o));break}return 0==v||7==v&&f&&null==c?(null!=a&&(a[0]|=null!=p.na&&0<p.na.length),null!=s&&(s[0]=A),null!=i&&(i[0]=m),0):v}function Hr(e,t,r){var n=t.width,o=t.height,s=0,i=0,a=n,A=o;if(t.Da=null!=e&&0<e.Da,t.Da&&(a=e.cd,A=e.bd,s=e.v,i=e.j,11>r||(s&=-2,i&=-2),0>s||0>i||0>=a||0>=A||s+a>n||i+A>o))return 0;if(t.v=s,t.j=i,t.va=s+a,t.o=i+A,t.U=a,t.T=A,t.da=null!=e&&0<e.da,t.da){if(!I(a,A,r=[e.ib],s=[e.hb]))return 0;t.ib=r[0],t.hb=s[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*n/4&&t.hb<3*o/4,t.Kb=0),1}function Ir(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Pr(e,t,r,n){if(null==n||0>=e||0>=t)return 2;if(null!=r){if(r.Da){var o=r.cd,i=r.bd,a=-2&r.v,A=-2&r.j;if(0>a||0>A||0>=o||0>=i||a+o>e||A+i>t)return 2;e=o,t=i}if(r.da){if(!I(e,t,o=[r.ib],i=[r.hb]))return 2;e=o[0],t=i[0]}}n.width=e,n.height=t;e:{var u=n.width,c=n.height;if(e=n.S,0>=u||0>=c||!(e>=In&&13>e))e=2;else{if(0>=n.Rd&&null==n.sd){a=i=o=t=0;var l=(A=u*Ko[e])*c;if(11>e||(i=(c+1)/2*(t=(u+1)/2),12==e&&(a=(o=u)*c)),null==(c=s(l+2*i+a))){e=1;break e}n.sd=c,11>e?((u=n.f.RGBA).eb=c,u.fb=0,u.A=A,u.size=l):((u=n.f.kb).y=c,u.O=0,u.fa=A,u.Fd=l,u.f=c,u.N=0+l,u.Ab=t,u.Cd=i,u.ea=c,u.W=0+l+i,u.Db=t,u.Ed=i,12==e&&(u.F=c,u.J=0+l+2*i),u.Tc=a,u.lb=o)}if(t=1,o=n.S,i=n.width,a=n.height,o>=In&&13>o)if(11>o)e=n.f.RGBA,t&=(A=Math.abs(e.A))*(a-1)+i<=e.size,t&=A>=i*Ko[o],t&=null!=e.eb;else{e=n.f.kb,A=(i+1)/2,l=(a+1)/2,u=Math.abs(e.fa),c=Math.abs(e.Ab);var d=Math.abs(e.Db),f=Math.abs(e.lb),h=f*(a-1)+i;t&=u*(a-1)+i<=e.Fd,t&=c*(l-1)+A<=e.Cd,t=(t&=d*(l-1)+A<=e.Ed)&u>=i&c>=A&d>=A,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==o&&(t&=f>=i,t&=h<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=r&&r.fd&&(e=Ir(n)),e}var Or=64,kr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Rr=24,Mr=32,Dr=8,Kr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];k("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,r){return t[r+0]},e.Predictor3=function(e,t,r){return t[r+1]},e.Predictor4=function(e,t,r){return t[r-1]},e.Predictor5=function(e,t,r){return M(M(e,t[r+1]),t[r+0])},e.Predictor6=function(e,t,r){return M(e,t[r-1])},e.Predictor7=function(e,t,r){return M(e,t[r+0])},e.Predictor8=function(e,t,r){return M(t[r-1],t[r+0])},e.Predictor9=function(e,t,r){return M(t[r+0],t[r+1])},e.Predictor10=function(e,t,r){return M(M(e,t[r-1]),M(t[r+0],t[r+1]))},e.Predictor11=function(e,t,r){var n=t[r+0];return 0>=z(n>>24&255,e>>24&255,(t=t[r-1])>>24&255)+z(n>>16&255,e>>16&255,t>>16&255)+z(n>>8&255,e>>8&255,t>>8&255)+z(255&n,255&e,255&t)?n:e},e.Predictor12=function(e,t,r){var n=t[r+0];return(D((e>>24&255)+(n>>24&255)-((t=t[r-1])>>24&255))<<24|D((e>>16&255)+(n>>16&255)-(t>>16&255))<<16|D((e>>8&255)+(n>>8&255)-(t>>8&255))<<8|D((255&e)+(255&n)-(255&t)))>>>0},e.Predictor13=function(e,t,r){var n=t[r-1];return(K((e=M(e,t[r+0]))>>24&255,n>>24&255)<<24|K(e>>16&255,n>>16&255)<<16|K(e>>8&255,n>>8&255)<<8|K(e>>0&255,n>>0&255))>>>0};var zr=e.PredictorAdd0;e.PredictorAdd1=V,k("Predictor2","PredictorAdd2"),k("Predictor3","PredictorAdd3"),k("Predictor4","PredictorAdd4"),k("Predictor5","PredictorAdd5"),k("Predictor6","PredictorAdd6"),k("Predictor7","PredictorAdd7"),k("Predictor8","PredictorAdd8"),k("Predictor9","PredictorAdd9"),k("Predictor10","PredictorAdd10"),k("Predictor11","PredictorAdd11"),k("Predictor12","PredictorAdd12"),k("Predictor13","PredictorAdd13");var Vr=e.PredictorAdd2;W("ColorIndexInverseTransform","MapARGB","32b",(function(e){return e>>8&255}),(function(e){return e})),W("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(e){return e}),(function(e){return e>>8&255}));var qr,Gr=e.ColorIndexInverseTransform,Xr=e.MapARGB,Wr=e.VP8LColorIndexInverseTransformAlpha,Jr=e.MapAlpha,Yr=e.VP8LPredictorsAdd=[];Yr.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zr,$r,en,tn,rn,nn,on,sn,an,An,un,cn,ln,dn,fn,hn,pn,mn,gn,yn,vn,wn,bn,Bn,jn,_n,Cn,xn,En=s(511),Nn=s(2041),Qn=s(225),Fn=s(767),Un=0,Sn=Nn,Ln=Qn,Tn=Fn,Hn=En,In=0,Pn=1,On=2,kn=3,Rn=4,Mn=5,Dn=6,Kn=7,zn=8,Vn=9,qn=10,Gn=[2,3,7],Xn=[3,3,11],Wn=[280,256,256,256,40],Jn=[0,1,1,1,0],Yn=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],$n=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],eo=8,to=[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],ro=[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],no=null,oo=[[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]],so=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],io=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ao=[[[[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]]]],Ao=[[[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]]],uo=[[[[255,255,255,255,255,255,255,255,255,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]]]],co=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],lo=[],fo=[],ho=[],po=1,mo=2,go=[],yo=[];gr("UpsampleRgbLinePair",jr,3),gr("UpsampleBgrLinePair",_r,3),gr("UpsampleRgbaLinePair",Qr,4),gr("UpsampleBgraLinePair",Nr,4),gr("UpsampleArgbLinePair",Er,4),gr("UpsampleRgba4444LinePair",xr,2),gr("UpsampleRgb565LinePair",Cr,2);var vo=e.UpsampleRgbLinePair,wo=e.UpsampleBgrLinePair,bo=e.UpsampleRgbaLinePair,Bo=e.UpsampleBgraLinePair,jo=e.UpsampleArgbLinePair,_o=e.UpsampleRgba4444LinePair,Co=e.UpsampleRgb565LinePair,xo=16,Eo=1<<xo-1,No=-227,Qo=482,Fo=6,Uo=(256<<Fo)-1,So=0,Lo=s(256),To=s(256),Ho=s(256),Io=s(256),Po=s(Qo-No),Oo=s(Qo-No);Fr("YuvToRgbRow",jr,3),Fr("YuvToBgrRow",_r,3),Fr("YuvToRgbaRow",Qr,4),Fr("YuvToBgraRow",Nr,4),Fr("YuvToArgbRow",Er,4),Fr("YuvToRgba4444Row",xr,2),Fr("YuvToRgb565Row",Cr,2);var ko=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ro=[0,2,8],Mo=[8,7,6,4,4,2,2,2,1,1,1,1],Do=1;this.WebPDecodeRGBA=function(e,r,n,o,s){var i=Pn,a=new rr,A=new ie;a.ba=A,A.S=i,A.width=[A.width],A.height=[A.height];var u=A.width,c=A.height,l=new ae;if(null==l||null==e)var d=2;else t(null!=l),d=Tr(e,r,n,l.width,l.height,l.Pd,l.Qd,l.format,null);if(0!=d?u=0:(null!=u&&(u[0]=l.width[0]),null!=c&&(c[0]=l.height[0]),u=1),u){A.width=A.width[0],A.height=A.height[0],null!=o&&(o[0]=A.width),null!=s&&(s[0]=A.height);e:{if(o=new qe,(s=new nr).data=e,s.w=r,s.ha=n,s.kd=1,r=[0],t(null!=s),(0==(e=Tr(s.data,s.w,s.ha,null,null,null,r,null,s))||7==e)&&r[0]&&(e=4),0==(r=e)){if(t(null!=a),o.data=s.data,o.w=s.w+s.offset,o.ha=s.ha-s.offset,o.put=fe,o.ac=de,o.bc=he,o.ma=a,s.xa){if(null==(e=Ne())){a=1;break e}if(function(e,r){var n=[0],o=[0],s=[0];t:for(;;){if(null==e)return 0;if(null==r)return e.a=2,0;if(e.l=r,e.a=0,g(e.m,r.data,r.w,r.ha),!pe(e.m,n,o,s)){e.a=3;break t}if(e.xb=mo,r.width=n[0],r.height=o[0],!Qe(n[0],o[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,o)){if(o=0==(r=Pr(o.width,o.height,a.Oa,a.ba))){t:{o=e;r:for(;;){if(null==o){o=0;break t}if(t(null!=o.s.yc),t(null!=o.s.Ya),t(0<o.s.Wb),t(null!=(n=o.l)),t(null!=(s=n.ma)),0!=o.xb){if(o.ca=s.ba,o.tb=s.tb,t(null!=o.ca),!Hr(s.Oa,n,kn)){o.a=2;break r}if(!Fe(o,n.width))break r;if(n.da)break r;if((n.da||ne(o.ca.S))&&mr(),11>o.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=o.ca.f.kb.F&&mr()),o.Pb&&0<o.s.ua&&null==o.s.vb.X&&!L(o.s.vb,o.s.Wa.Xa)){o.a=1;break r}o.xb=0}if(!xe(o,o.V,o.Ba,o.c,o.i,n.o,Be))break r;s.Dc=o.Ma,o=1;break t}t(0!=o.a),o=0}o=!o}o&&(r=e.a)}else r=e.a}else{if(null==(e=new Ge)){a=1;break e}if(e.Fa=s.na,e.P=s.P,e.qc=s.Sa,Je(e,o)){if(0==(r=Pr(o.width,o.height,a.Oa,a.ba))){if(e.Aa=0,n=a.Oa,t(null!=(s=e)),null!=n){if(0<(u=0>(u=n.Md)?0:100<u?255:255*u/100)){for(c=l=0;4>c;++c)12>(d=s.pb[c]).lc&&(d.ia=u*Mo[0>d.lc?0:d.lc]>>3),l|=d.ia;l&&(alert("todo:VP8InitRandom"),s.ia=1)}s.Ga=n.Id,100<s.Ga?s.Ga=100:0>s.Ga&&(s.Ga=0)}$e(e,o)||(r=e.a)}}else r=e.a}0==r&&null!=a.Oa&&a.Oa.fd&&(r=Ir(a.ba))}a=r}i=0!=a?null:11>i?A.f.RGBA.eb:A.f.kb.y}else i=null;return i};var Ko=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var l=[0],d=[0],f=[],h=new $e,p=e,m=function(e,t){var r={},n=0,o=!1,s=0,i=0;if(r.frames=[],!function(e,t,r,n){for(var o=0;o<4;o++)if(e[t+o]!="RIFF".charCodeAt(o))return!0;return!1}(e,t)){var a,l;for(c(e,t+=4),t+=8;t<e.length;){var d=A(e,t),f=c(e,t+=4);t+=4;var h=f+(1&f);switch(d){case"VP8 ":case"VP8L":void 0===r.frames[n]&&(r.frames[n]={}),(g=r.frames[n]).src_off=o?i:t-8,g.src_size=s+f+8,n++,o&&(o=!1,s=0,i=0);break;case"VP8X":(g=r.header={}).feature_flags=e[t];var p=t+4;g.canvas_width=1+u(e,p),p+=3,g.canvas_height=1+u(e,p),p+=3;break;case"ALPH":o=!0,s=h+8,i=t-8;break;case"ANIM":(g=r.header).bgcolor=c(e,t),p=t+4,g.loop_count=(a=e)[(l=p)+0]<<0|a[l+1]<<8,p+=2;break;case"ANMF":var m,g;(g=r.frames[n]={}).offset_x=2*u(e,t),t+=3,g.offset_y=2*u(e,t),t+=3,g.width=1+u(e,t),t+=3,g.height=1+u(e,t),t+=3,g.duration=u(e,t),t+=3,m=e[t++],g.dispose=1&m,g.blend=m>>1&1}"ANMF"!=d&&(t+=h)}return r}}(p,0);m.response=p,m.rgbaoutput=!0,m.dataurl=!1;var g=m.header?m.header:null,y=m.frames?m.frames:null;if(g){g.loop_counter=g.loop_count,l=[g.canvas_height],d=[g.canvas_width];for(var v=0;v<y.length&&0!=y[v].blend;v++);}var w=y[0],b=h.WebPDecodeRGBA(p,w.src_off,w.src_size,d,l);w.rgba=b,w.imgwidth=d[0],w.imgheight=l[0];for(var B=0;B<d[0]*l[0]*4;B++)f[B]=b[B];return this.width=d,this.height=l,this.data=f,this}!function(e){var t=function(t,o,u,c){var l=4,d=i;switch(c){case e.image_compression.FAST:l=1,d=s;break;case e.image_compression.MEDIUM:l=6,d=a;break;case e.image_compression.SLOW:l=9,d=A}t=r(t,o,u,d);var f=(0,n.zlibSync)(t,{level:l});return e.__addimage__.arrayBufferToBinaryString(f)},r=function(e,t,r,n){for(var o,s,i,a=e.length/t,A=new Uint8Array(e.length+a),u=c(),d=0;d<a;d+=1){if(i=d*t,o=e.subarray(i,i+t),n)A.set(n(o,r,s),i+d);else{for(var f,h=u.length,p=[];f<h;f+=1)p[f]=u[f](o,r,s);var m=l(p.concat());A.set(p[m],i+d)}s=o}return A},o=function(e){var t=Array.apply([],e);return t.unshift(0),t},s=function(e,t){var r,n=[],o=e.length;n[0]=1;for(var s=0;s<o;s+=1)r=e[s-t]||0,n[s+1]=e[s]-r+256&255;return n},i=function(e,t,r){var n,o=[],s=e.length;o[0]=2;for(var i=0;i<s;i+=1)n=r&&r[i]||0,o[i+1]=e[i]-n+256&255;return o},a=function(e,t,r){var n,o,s=[],i=e.length;s[0]=3;for(var a=0;a<i;a+=1)n=e[a-t]||0,o=r&&r[a]||0,s[a+1]=e[a]+256-(n+o>>>1)&255;return s},A=function(e,t,r){var n,o,s,i,a=[],A=e.length;a[0]=4;for(var c=0;c<A;c+=1)n=e[c-t]||0,o=r&&r[c]||0,s=r&&r[c-t]||0,i=u(n,o,s),a[c+1]=e[c]-i+256&255;return a},u=function(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),o=Math.abs(e-r),s=Math.abs(e+t-r-r);return n<=o&&n<=s?e:o<=s?t:r},c=function(){return[o,s,i,a,A]},l=function(e){var t=e.map((function(e){return e.reduce((function(e,t){return e+Math.abs(t)}),0)}));return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(r,o,s,i){var a,A,u,c,l,d,f,h,p,m,g,y,v,w,b,B=this.decode.FLATE_DECODE,j="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(u=new Xe(r)).imgData,A=u.bits,a=u.colorSpace,l=u.colors,-1!==[4,6].indexOf(u.colorType)){if(8===u.bits){p=(h=32==u.pixelBitlength?new Uint32Array(u.decodePixels().buffer):16==u.pixelBitlength?new Uint16Array(u.decodePixels().buffer):new Uint8Array(u.decodePixels().buffer)).length,g=new Uint8Array(p*u.colors),m=new Uint8Array(p);var _,C=u.pixelBitlength-u.bits;for(w=0,b=0;w<p;w++){for(v=h[w],_=0;_<C;)g[b++]=v>>>_&255,_+=u.bits;m[w]=v>>>_&255}}if(16===u.bits){p=(h=new Uint32Array(u.decodePixels().buffer)).length,g=new Uint8Array(p*(32/u.pixelBitlength)*u.colors),m=new Uint8Array(p*(32/u.pixelBitlength)),y=u.colors>1,w=0,b=0;for(var x=0;w<p;)v=h[w++],g[b++]=v>>>0&255,y&&(g[b++]=v>>>16&255,v=h[w++],g[b++]=v>>>0&255),m[x++]=v>>>16&255;A=8}i!==e.image_compression.NONE&&"function"==typeof n.zlibSync?(r=t(g,u.width*u.colors,u.colors,i),f=t(m,u.width,1,i)):(r=g,f=m,B=void 0)}if(3===u.colorType&&(a=this.color_spaces.INDEXED,d=u.palette,u.transparency.indexed)){var E=u.transparency.indexed,N=0;for(w=0,p=E.length;w<p;++w)N+=E[w];if((N/=255)==p-1&&-1!==E.indexOf(0))c=[E.indexOf(0)];else if(N!==p){for(h=u.decodePixels(),m=new Uint8Array(h.length),w=0,p=h.length;w<p;w++)m[w]=E[h[w]];f=t(m,u.width,1)}}var Q=function(t){var r;switch(t){case e.image_compression.FAST:r=11;break;case e.image_compression.MEDIUM:r=13;break;case e.image_compression.SLOW:r=14;break;default:r=12}return r}(i);return B===this.decode.FLATE_DECODE&&(j="/Predictor "+Q+" "),j+="/Colors "+l+" /BitsPerComponent "+A+" /Columns "+u.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:s,data:r,index:o,filter:B,decodeParameters:j,transparency:c,palette:d,sMask:f,predictor:Q,width:u.width,height:u.height,bitsPerComponent:A,colorSpace:a}}}}(H.API),function(e){e.processGIF89A=function(t,r,n,o){var s=new We(t),i=s.width,a=s.height,A=[];s.decodeAndBlitFrameRGBA(0,A);var u={data:A,width:i,height:a},c=new Ye(100).encode(u,100);return e.processJPEG.call(this,c,r,n,o)},e.processGIF87A=e.processGIF89A}(H.API),Ze.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:o,green:n,blue:r,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ze.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){i.log("bit decode error:"+e)}},Ze.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,o=0;o<t;o++)for(var s=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+8*o*4,a=0;a<8&&8*o+a<this.width;a++){var A=this.palette[s>>7-a&1];this.data[i+4*a]=A.blue,this.data[i+4*a+1]=A.green,this.data[i+4*a+2]=A.red,this.data[i+4*a+3]=255}0!==r&&(this.pos+=4-r)}},Ze.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,o=0;o<e;o++){var s=this.datav.getUint8(this.pos++,!0),i=n*this.width*4+2*o*4,a=s>>4,A=15&s,u=this.palette[a];if(this.data[i]=u.blue,this.data[i+1]=u.green,this.data[i+2]=u.red,this.data[i+3]=255,2*o+1>=this.width)break;u=this.palette[A],this.data[i+4]=u.blue,this.data[i+4+1]=u.green,this.data[i+4+2]=u.red,this.data[i+4+3]=255}0!==t&&(this.pos+=4-t)}},Ze.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var o=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+4*n;if(o<this.palette.length){var i=this.palette[o];this.data[s]=i.red,this.data[s+1]=i.green,this.data[s+2]=i.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}0!==e&&(this.pos+=4-e)}},Ze.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(s&t)/t*255|0,a=(s>>5&t)/t*255|0,A=(s>>10&t)/t*255|0,u=s>>15?255:0,c=n*this.width*4+4*o;this.data[c]=A,this.data[c+1]=a,this.data[c+2]=i,this.data[c+3]=u}this.pos+=e}},Ze.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&t)/t*255|0,A=(i>>5&r)/r*255|0,u=(i>>11)/t*255|0,c=o*this.width*4+4*s;this.data[c]=u,this.data[c+1]=A,this.data[c+2]=a,this.data[c+3]=255}this.pos+=e}},Ze.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;this.data[i]=s,this.data[i+1]=o,this.data[i+2]=n,this.data[i+3]=255}this.pos+=this.width%4}},Ze.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;this.data[a]=s,this.data[a+1]=o,this.data[a+2]=n,this.data[a+3]=i}},Ze.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,o){var s=new Ze(t,!1),i=s.width,a=s.height,A={data:s.getData(),width:i,height:a},u=new Ye(100).encode(A,100);return e.processJPEG.call(this,u,r,n,o)}}(H.API),$e.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,o){var s=new $e(t,!1),i=s.width,a=s.height,A={data:s.getData(),width:i,height:a},u=new Ye(100).encode(A,100);return e.processJPEG.call(this,u,r,n,o)}}(H.API),H.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"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"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Ke=H.API,ze=Ke.getCharWidthsArray=function(e,t){var r,n,o=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),i=t.charSpace||this.internal.getCharSpace(),a=t.widths?t.widths:o.metadata.Unicode.widths,A=a.fof?a.fof:1,u=t.kerning?t.kerning:o.metadata.Unicode.kerning,c=u.fof?u.fof:1,l=!1!==t.doKerning,d=0,f=e.length,h=0,p=a[0]||A,m=[];for(r=0;r<f;r++)n=e.charCodeAt(r),"function"==typeof o.metadata.widthOfString?m.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(n))+i*(1e3/s)||0)/1e3):(d=l&&"object"==typeof u[n]&&!isNaN(parseInt(u[n][h],10))?u[n][h]/c:0,m.push((a[n]||p)/A+d)),h=n;return m},Ve=Ke.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),o=t.charSpace||this.internal.getCharSpace();return Ke.processArabic&&(e=Ke.processArabic(e)),"function"==typeof n.metadata.widthOfString?n.metadata.widthOfString(e,r,o)/r:ze.apply(this,arguments).reduce((function(e,t){return e+t}),0)},qe=function(e,t,r,n){for(var o=[],s=0,i=e.length,a=0;s!==i&&a+t[s]<r;)a+=t[s],s++;o.push(e.slice(0,s));var A=s;for(a=0;s!==i;)a+t[s]>n&&(o.push(e.slice(A,s)),a=0,A=s),a+=t[s],s++;return A!==s&&o.push(e.slice(A,s)),o},Ge=function(e,t,r){r||(r={});var n,o,s,i,a,A,u,c=[],l=[c],d=r.textIndent||0,f=0,h=0,p=e.split(" "),m=ze.apply(this,[" ",r])[0];if(A=-1===r.lineIndent?p[0].length+2:r.lineIndent||0){var g=Array(A).join(" "),y=[];p.map((function(e){(e=e.split(/\s*\n/)).length>1?y=y.concat(e.map((function(e,t){return(t&&e.length?"\n":"")+e}))):y.push(e[0])})),p=y,A=Ve.apply(this,[g,r])}for(s=0,i=p.length;s<i;s++){var v=0;if(n=p[s],A&&"\n"==n[0]&&(n=n.substr(1),v=1),d+f+(h=(o=ze.apply(this,[n,r])).reduce((function(e,t){return e+t}),0))>t||v){if(h>t){for(a=qe.apply(this,[n,o,t-(d+f),t]),c.push(a.shift()),c=[a.pop()];a.length;)l.push([a.shift()]);h=o.slice(n.length-(c[0]?c[0].length:0)).reduce((function(e,t){return e+t}),0)}else c=[n];l.push(c),d=h+A,f=m}else c.push(n),d+=f+h,f=m}return u=A?function(e,t){return(t?g:"")+e.join(" ")}:function(e){return e.join(" ")},l.map(u)},Ke.splitTextToSize=function(e,t,r){var n,o=(r=r||{}).fontSize||this.internal.getFontSize(),s=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var i=1*this.internal.scaleFactor*t/o;s.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/o:0,s.lineIndent=r.lineIndent;var a,A,u=[];for(a=0,A=n.length;a<A;a++)u=u.concat(Ge.apply(this,[n[a],i,s]));return u},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},o=0;o<t.length;o++)r[t[o]]="0123456789abcdef"[o],n["0123456789abcdef"[o]]=t[o];var s=function(e){return"0x"+parseInt(e,10).toString(16)},i=e.__fontmetrics__.compress=function(e){var t,r,o,a,A=["{"];for(var u in e){if(t=e[u],isNaN(parseInt(u,10))?r="'"+u+"'":(u=parseInt(u,10),r=(r=s(u).slice(2)).slice(0,-1)+n[r.slice(-1)]),"number"==typeof t)t<0?(o=s(t).slice(3),a="-"):(o=s(t).slice(2),a=""),o=a+o.slice(0,-1)+n[o.slice(-1)];else{if("object"!=typeof t)throw new Error("Don't know what to do with value type "+typeof t+".");o=i(t)}A.push(r+o)}return A.push("}"),A.join("")},a=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,n,o,s,i={},a=1,A=i,u=[],c="",l="",d=e.length-1,f=1;f<d;f+=1)"'"==(s=e[f])?t?(o=t.join(""),t=void 0):t=[]:t?t.push(s):"{"==s?(u.push([A,o]),A={},o=void 0):"}"==s?((n=u.pop())[0][n[1]]=A,o=void 0,A=n[0]):"-"==s?a=-1:void 0===o?r.hasOwnProperty(s)?(c+=r[s],o=parseInt(c,16)*a,a=1,c=""):c+=s:r.hasOwnProperty(s)?(l+=r[s],A[o]=parseInt(l,16)*a,a=1,o=void 0,l=""):l+=s;return i},A={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:A,"Courier-Bold":A,"Courier-BoldOblique":A,"Courier-Oblique":A,Helvetica:A,"Helvetica-Bold":A,"Helvetica-BoldOblique":A,"Helvetica-Oblique":A,"Times-Roman":A,"Times-Bold":A,"Times-BoldItalic":A,"Times-Italic":A}},c={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,r=c.Unicode[t.postScriptName];r&&(t.metadata.Unicode={},t.metadata.Unicode.widths=r.widths,t.metadata.Unicode.kerning=r.kerning);var n=u.Unicode[t.postScriptName];n&&(t.metadata.Unicode.encoding=n,t.encoding=n.codePages[0])}])}(H.API),function(e){var t=function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.charCodeAt(n);return r};e.API.events.push(["addFont",function(r){var n=void 0,o=r.font,s=r.instance;if(!o.isStandardFont){if(void 0===s)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");if("string"!=typeof(n=!1===s.existsFileInVFS(o.postScriptName)?s.loadFile(o.postScriptName):s.getFileFromVFS(o.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+o.postScriptName+"').");!function(r,n){n=/^\x00\x01\x00\x00/.test(n)?t(n):t(c(n)),r.metadata=e.API.TTFFont.open(n),r.metadata.Unicode=r.metadata.Unicode||{encoding:{},kerning:{},widths:[]},r.metadata.glyIdsUsed=[0]}(o,n)}}])}(H),function(e){function t(){return(o.canvg?Promise.resolve(o.canvg):Promise.resolve().then(r.bind(r,"./node_modules/canvg/lib/index.es.js"))).catch((function(e){return Promise.reject(new Error("Could not load canvg: "+e))})).then((function(e){return e.default?e.default:e}))}H.API.addSvgAsImage=function(e,r,n,o,s,a,A,u){if(isNaN(r)||isNaN(n))throw i.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(o)||isNaN(s))throw i.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=o,c.height=s;var l=c.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return t().then((function(t){return t.fromString(l,e,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(e){return e.render(d)})).then((function(){f.addImage(c.toDataURL("image/jpeg",1),r,n,o,s,A,u)}))}}(),H.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var o=0;o<this.internal.pages[n].length;o++)this.internal.pages[n][o]=this.internal.pages[n][o].replace(t,r);return this},H.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,o,s,i={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(i),A=[],u=0,c=0,l=0;function d(e,t){var r,n=!1;for(r=0;r<e.length;r+=1)e[r]===t&&(n=!0);return n}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var f=a.length;for(l=0;l<f;l+=1)r[a[l]].value=r[a[l]].defaultValue,r[a[l]].explicitSet=!1}if("object"==typeof e)for(o in e)if(s=e[o],d(a,o)&&void 0!==s){if("boolean"===r[o].type&&"boolean"==typeof s)r[o].value=s;else if("name"===r[o].type&&d(r[o].valueSet,s))r[o].value=s;else if("integer"===r[o].type&&Number.isInteger(s))r[o].value=s;else if("array"===r[o].type){for(u=0;u<s.length;u+=1)if(n=!0,1===s[u].length&&"number"==typeof s[u][0])A.push(String(s[u]-1));else if(s[u].length>1){for(c=0;c<s[u].length;c+=1)"number"!=typeof s[u][c]&&(n=!1);!0===n&&A.push([s[u][0]-1,s[u][1]-1].join(" "))}r[o].value="["+A.join(" ")+"]"}else r[o].value=r[o].defaultValue;r[o].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var e,t=[];for(e in r)!0===r[e].explicitSet&&("name"===r[e].type?t.push("/"+e+" /"+r[e].value):t.push("/"+e+" "+r[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},function(e){var t=function(){var e='<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>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),r=unescape(encodeURIComponent(e)),n=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),s=unescape(encodeURIComponent("</x:xmpmeta>")),i=r.length+n.length+o.length+t.length+s.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+i+" >>"),this.internal.write("stream"),this.internal.write(t+r+n+o+s),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,n){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}}(H.API),function(e){var t=e.API,r=t.pdfEscape16=function(e,t){for(var r,n=t.metadata.Unicode.widths,o=["","0","00","000","0000"],s=[""],i=0,a=e.length;i<a;++i){if(r=t.metadata.characterToGlyph(e.charCodeAt(i)),t.metadata.glyIdsUsed.push(r),t.metadata.toUnicode[r]=e.charCodeAt(i),-1==n.indexOf(r)&&(n.push(r),n.push([parseInt(t.metadata.widthOfGlyph(r),10)])),"0"==r)return s.join("");r=r.toString(16),s.push(o[4-r.length],r)}return s.join("")},n=function(e){var t,r,n,o,s,i,a;for(s="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",n=[],i=0,a=(r=Object.keys(e).sort((function(e,t){return e-t}))).length;i<a;i++)t=r[i],n.length>=100&&(s+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar",n=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(o=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),n.push("<"+t+"><"+o+">"));return n.length&&(s+="\n"+n.length+" beginbfchar\n"+n.join("\n")+"\nendbfchar\n"),s+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var r=t.font,o=t.out,s=t.newObject,i=t.putStream,a=t.pdfEscapeWithNeededParanthesis;if(r.metadata instanceof e.API.TTFFont&&"Identity-H"===r.encoding){for(var A=r.metadata.Unicode.widths,u=r.metadata.subset.encode(r.metadata.glyIdsUsed,1),c="",l=0;l<u.length;l++)c+=String.fromCharCode(u[l]);var d=s();i({data:c,addLength1:!0,objectId:d}),o("endobj");var f=s();i({data:n(r.metadata.toUnicode),addLength1:!0,objectId:f}),o("endobj");var h=s();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+a(r.fontName)),o("/FontFile2 "+d+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),o("/Flags "+r.metadata.flags),o("/StemV "+r.metadata.stemV),o("/ItalicAngle "+r.metadata.italicAngle),o("/Ascent "+r.metadata.ascender),o("/Descent "+r.metadata.decender),o("/CapHeight "+r.metadata.capHeight),o(">>"),o("endobj");var p=s();o("<<"),o("/Type /Font"),o("/BaseFont /"+a(r.fontName)),o("/FontDescriptor "+h+" 0 R"),o("/W "+e.API.PDFObject.convert(A)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+r.encoding+")"),o(">>"),o(">>"),o("endobj"),r.objectNumber=s(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+f+" 0 R"),o("/BaseFont /"+a(r.fontName)),o("/Encoding /"+r.encoding),o("/DescendantFonts ["+p+" 0 R]"),o(">>"),o("endobj"),r.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var r=t.font,o=t.out,s=t.newObject,i=t.putStream,a=t.pdfEscapeWithNeededParanthesis;if(r.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===r.encoding){for(var A=r.metadata.rawData,u="",c=0;c<A.length;c++)u+=String.fromCharCode(A[c]);var l=s();i({data:u,addLength1:!0,objectId:l}),o("endobj");var d=s();i({data:n(r.metadata.toUnicode),addLength1:!0,objectId:d}),o("endobj");var f=s();o("<<"),o("/Descent "+r.metadata.decender),o("/CapHeight "+r.metadata.capHeight),o("/StemV "+r.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+l+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(r.metadata.bbox)),o("/FontName /"+a(r.fontName)),o("/ItalicAngle "+r.metadata.italicAngle),o("/Ascent "+r.metadata.ascender),o(">>"),o("endobj"),r.objectNumber=s();for(var h=0;h<r.metadata.hmtx.widths.length;h++)r.metadata.hmtx.widths[h]=parseInt(r.metadata.hmtx.widths[h]*(1e3/r.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+a(r.fontName)+"/FontDescriptor "+f+" 0 R/Encoding/"+r.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(r.metadata.hmtx.widths)+">>"),o("endobj"),r.isAlreadyPutted=!0}}(t)}]);var o=function(e){var t,n=e.text||"",o=e.x,s=e.y,i=e.options||{},a=e.mutex||{},A=a.pdfEscape,u=a.activeFontKey,c=a.fonts,l=u,d="",f=0,h="",p=c[l].encoding;if("Identity-H"!==c[l].encoding)return{text:n,x:o,y:s,options:i,mutex:a};for(h=n,l=u,Array.isArray(n)&&(h=n[0]),f=0;f<h.length;f+=1)c[l].metadata.hasOwnProperty("cmap")&&(t=c[l].metadata.cmap.unicode.codeMap[h[f].charCodeAt(0)]),t||h[f].charCodeAt(0)<256&&c[l].metadata.hasOwnProperty("Unicode")?d+=h[f]:d+="";var m="";return parseInt(l.slice(1))<14||"WinAnsiEncoding"===p?m=A(d,l).split("").map((function(e){return e.charCodeAt(0).toString(16)})).join(""):"Identity-H"===p&&(m=r(d,c[l])),a.isHex=!0,{text:m,x:o,y:s,options:i,mutex:a}};t.events.push(["postProcessText",function(e){var t=e.text||"",r=[],n={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var s=0;for(s=0;s<t.length;s+=1)Array.isArray(t[s])&&3===t[s].length?r.push([o(Object.assign({},n,{text:t[s][0]})).text,t[s][1],t[s][2]]):r.push(o(Object.assign({},n,{text:t[s]})).text);e.text=r}else e.text=o(Object.assign({},n,{text:t})).text}])}(H),function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(H.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var r,n,o,s,i,a,A,u=t,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],d={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},f={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},h=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],p=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,g=0;this.__bidiEngine__={};var y=function(e){var t=e.charCodeAt(),r=t>>8,n=f[r];return void 0!==n?u[256*n+(255&t)]:252===r||253===r?"AL":p.test(r)?"L":8===r?"R":"N"},v=function(e){for(var t,r=0;r<e.length;r++){if("L"===(t=y(e.charAt(r))))return!1;if("R"===t)return!0}return!1},w=function(e,t,i,a){var A,u,c,l,d=t[a];switch(d){case"L":case"R":m=!1;break;case"N":case"AN":break;case"EN":m&&(d="AN");break;case"AL":m=!0,d="R";break;case"WS":d="N";break;case"CS":a<1||a+1>=t.length||"EN"!==(A=i[a-1])&&"AN"!==A||"EN"!==(u=t[a+1])&&"AN"!==u?d="N":m&&(u="AN"),d=u===A?u:"N";break;case"ES":d="EN"===(A=a>0?i[a-1]:"B")&&a+1<t.length&&"EN"===t[a+1]?"EN":"N";break;case"ET":if(a>0&&"EN"===i[a-1]){d="EN";break}if(m){d="N";break}for(c=a+1,l=t.length;c<l&&"ET"===t[c];)c++;d=c<l&&"EN"===t[c]?"EN":"N";break;case"NSM":if(o&&!s){for(l=t.length,c=a+1;c<l&&"NSM"===t[c];)c++;if(c<l){var f=e[a],h=f>=1425&&f<=2303||64286===f;if(A=t[c],h&&("R"===A||"AL"===A)){d="R";break}}}d=a<1||"B"===(A=t[a-1])?"N":i[a-1];break;case"B":m=!1,r=!0,d=g;break;case"S":n=!0,d="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"BN":d="N"}return d},b=function(e,t,r){var n=e.split("");return r&&B(n,r,{hiLevel:g}),n.reverse(),t&&t.reverse(),n.join("")},B=function(e,t,o){var s,i,a,A,u,f=-1,h=e.length,p=0,v=[],b=g?l:c,B=[];for(m=!1,r=!1,n=!1,i=0;i<h;i++)B[i]=y(e[i]);for(a=0;a<h;a++){if(u=p,v[a]=w(e,B,v,a),s=240&(p=b[u][d[v[a]]]),p&=15,t[a]=A=b[p][5],s>0)if(16===s){for(i=f;i<a;i++)t[i]=1;f=-1}else f=-1;if(b[p][6])-1===f&&(f=a);else if(f>-1){for(i=f;i<a;i++)t[i]=A;f=-1}"B"===B[a]&&(t[a]=0),o.hiLevel|=A}n&&function(e,t,r){for(var n=0;n<r;n++)if("S"===e[n]){t[n]=g;for(var o=n-1;o>=0&&"WS"===e[o];o--)t[o]=g}}(B,t,h)},j=function(e,t,n,o,s){if(!(s.hiLevel<e)){if(1===e&&1===g&&!r)return t.reverse(),void(n&&n.reverse());for(var i,a,A,u,c=t.length,l=0;l<c;){if(o[l]>=e){for(A=l+1;A<c&&o[A]>=e;)A++;for(u=l,a=A-1;u<a;u++,a--)i=t[u],t[u]=t[a],t[a]=i,n&&(i=n[u],n[u]=n[a],n[a]=i);l=A}l++}}},_=function(e,t,r){var n=e.split(""),o={hiLevel:g};return r||(r=[]),B(n,r,o),function(e,t,r){if(0!==r.hiLevel&&A)for(var n,o=0;o<e.length;o++)1===t[o]&&(n=h.indexOf(e[o]))>=0&&(e[o]=h[n+1])}(n,r,o),j(2,n,t,r,o),j(1,n,t,r,o),n.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,r){if(function(e,t){if(t)for(var r=0;r<e.length;r++)t[r]=r;void 0===s&&(s=v(e)),void 0===a&&(a=v(e))}(e,t),o||!i||a)if(o&&i&&s^a)g=s?1:0,e=b(e,t,r);else if(!o&&i&&a)g=s?1:0,e=_(e,t,r),e=b(e,t);else if(!o||s||i||a){if(o&&!i&&s^a)e=b(e,t),s?(g=0,e=_(e,t,r)):(g=1,e=_(e,t,r),e=b(e,t));else if(o&&s&&!i&&a)g=1,e=_(e,t,r),e=b(e,t);else if(!o&&!i&&s^a){var n=A;s?(g=1,e=_(e,t,r),g=0,A=!1,e=_(e,t,r),A=n):(g=0,e=_(e,t,r),e=b(e,t),g=1,A=!1,e=_(e,t,r),A=n,e=b(e,t))}}else g=0,e=_(e,t,r);else g=s?1:0,e=_(e,t,r);return e},this.__bidiEngine__.setOptions=function(e){e&&(o=e.isInputVisual,i=e.isOutputVisual,s=e.isInputRtl,a=e.isOutputRtl,A=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,n=(e.x,e.y,e.options||{}),o=(e.mutex,n.lang,[]);if(n.isInputVisual="boolean"!=typeof n.isInputVisual||n.isInputVisual,r.setOptions(n),"[object Array]"===Object.prototype.toString.call(t)){var s=0;for(o=[],s=0;s<t.length;s+=1)"[object Array]"===Object.prototype.toString.call(t[s])?o.push([r.doBidiReorder(t[s][0]),t[s][1],t[s][2]]):o.push([r.doBidiReorder(t[s])]);e.text=o}else e.text=r.doBidiReorder(t);r.setOptions({isInputVisual:!0})}])}(H),H.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new tt(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new wt(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new rt(this.contents),this.head=new st(this),this.name=new dt(this),this.cmap=new at(this),this.toUnicode={},this.hhea=new At(this),this.maxp=new ft(this),this.hmtx=new ht(this),this.post=new ct(this),this.os2=new ut(this),this.loca=new vt(this),this.glyf=new mt(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,r,n,o;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,r,n,o;for(o=[],t=0,r=(n=this.bbox).length;t<r;t++)e=n[t],o.push(Math.round(e*this.scaleFactor));return o}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),0!=(32768&(t=n>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(o=this.familyClass)||2===o||3===o||4===o||5===o||7===o,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,r){var n,o,s,i;for(s=0,o=0,i=(e=""+e).length;0<=i?o<i:o>i;o=0<=i?++o:--o)n=e.charCodeAt(o),s+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return s*(t/1e3)},e.prototype.lineHeight=function(e,t){var r;return null==t&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},e}();var et,tt=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(e){var t,r,n;for(n=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(e.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,r,n,o,s,i,a;return e=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),o=this.readByte(),s=this.readByte(),i=this.readByte(),a=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^o)+65536*(255^s)+256*(255^i)+(255^a)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*n+16777216*o+65536*s+256*i+a},e.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(e){var t,r,n,o;for(o=[],r=0,n=e.length;r<n;r++)t=e[r],o.push(this.writeByte(t));return o},e}(),rt=function(){var e;function t(e){var t,r,n;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},r=0,n=this.tableCount;0<=n?r<n:r>n;r=0<=n?++r:--r)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var r,n,o,s,i,a,A,u,c,l,d,f,h;for(h in d=Object.keys(t).length,a=Math.log(2),c=16*Math.floor(Math.log(d)/a),s=Math.floor(c/a),u=16*d-c,(n=new tt).writeInt(this.scalarType),n.writeShort(d),n.writeShort(c),n.writeShort(s),n.writeShort(u),o=16*d,A=n.pos+o,i=null,f=[],t)for(l=t[h],n.writeString(h),n.writeInt(e(l)),n.writeInt(A),n.writeInt(l.length),f=f.concat(l),"head"===h&&(i=A),A+=l.length;A%4;)f.push(0),A++;return n.write(f),r=2981146554-e(n.data),n.pos=i+8,n.writeUInt32(r),n.data},e=function(e){var t,r,n,o;for(e=pt.call(e);e.length%4;)e.push(0);for(n=new tt(e),r=0,t=0,o=e.length;t<o;t=t+=4)r+=n.readUInt32();return 4294967295&r},t}(),nt={}.hasOwnProperty,ot=function(e,t){for(var r in t)nt.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};et=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var st=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var t;return(t=new tt).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},t}(),it=function(){function e(e,t){var r,n,o,s,i,a,A,u,c,l,d,f,h,p,m,g,y;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),c=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=e.readByte();break;case 4:for(d=e.readUInt16(),l=d/2,e.pos+=6,o=function(){var t,r;for(r=[],a=t=0;0<=l?t<l:t>l;a=0<=l?++t:--t)r.push(e.readUInt16());return r}(),e.pos+=2,h=function(){var t,r;for(r=[],a=t=0;0<=l?t<l:t>l;a=0<=l?++t:--t)r.push(e.readUInt16());return r}(),A=function(){var t,r;for(r=[],a=t=0;0<=l?t<l:t>l;a=0<=l?++t:--t)r.push(e.readUInt16());return r}(),u=function(){var t,r;for(r=[],a=t=0;0<=l?t<l:t>l;a=0<=l?++t:--t)r.push(e.readUInt16());return r}(),n=(this.length-e.pos+this.offset)/2,i=function(){var t,r;for(r=[],a=t=0;0<=n?t<n:t>n;a=0<=n?++t:--t)r.push(e.readUInt16());return r}(),a=m=0,y=o.length;m<y;a=++m)for(p=o[a],r=g=f=h[a];f<=p?g<=p:g>=p;r=f<=p?++g:--g)0===u[a]?s=r+A[a]:0!==(s=i[u[a]/2+(r-f)-(l-a)]||0)&&(s+=A[a]),this.codeMap[r]=65535&s}e.pos=c}return e.encode=function(e,t){var r,n,o,s,i,a,A,u,c,l,d,f,h,p,m,g,y,v,w,b,B,j,_,C,x,E,N,Q,F,U,S,L,T,H,I,P,O,k,R,M,D,K,z,V,q,G;switch(Q=new tt,s=Object.keys(e).sort((function(e,t){return e-t})),t){case"macroman":for(h=0,p=function(){var e=[];for(f=0;f<256;++f)e.push(0);return e}(),g={0:0},o={},F=0,T=s.length;F<T;F++)null==g[z=e[n=s[F]]]&&(g[z]=++h),o[n]={old:e[n],new:g[e[n]]},p[n]=g[e[n]];return Q.writeUInt16(1),Q.writeUInt16(0),Q.writeUInt32(12),Q.writeUInt16(0),Q.writeUInt16(262),Q.writeUInt16(0),Q.write(p),{charMap:o,subtable:Q.data,maxGlyphID:h+1};case"unicode":for(E=[],c=[],y=0,g={},r={},m=A=null,U=0,H=s.length;U<H;U++)null==g[w=e[n=s[U]]]&&(g[w]=++y),r[n]={old:w,new:g[w]},i=g[w]-n,null!=m&&i===A||(m&&c.push(m),E.push(n),A=i),m=n;for(m&&c.push(m),c.push(65535),E.push(65535),C=2*(_=E.length),j=2*Math.pow(Math.log(_)/Math.LN2,2),l=Math.log(j/2)/Math.LN2,B=2*_-j,a=[],b=[],d=[],f=S=0,I=E.length;S<I;f=++S){if(x=E[f],u=c[f],65535===x){a.push(0),b.push(0);break}if(x-(N=r[x].new)>=32768)for(a.push(0),b.push(2*(d.length+_-f)),n=L=x;x<=u?L<=u:L>=u;n=x<=u?++L:--L)d.push(r[n].new);else a.push(N-x),b.push(0)}for(Q.writeUInt16(3),Q.writeUInt16(1),Q.writeUInt32(12),Q.writeUInt16(4),Q.writeUInt16(16+8*_+2*d.length),Q.writeUInt16(0),Q.writeUInt16(C),Q.writeUInt16(j),Q.writeUInt16(l),Q.writeUInt16(B),D=0,P=c.length;D<P;D++)n=c[D],Q.writeUInt16(n);for(Q.writeUInt16(0),K=0,O=E.length;K<O;K++)n=E[K],Q.writeUInt16(n);for(V=0,k=a.length;V<k;V++)i=a[V],Q.writeUInt16(i);for(q=0,R=b.length;q<R;q++)v=b[q],Q.writeUInt16(v);for(G=0,M=d.length;G<M;G++)h=d[G],Q.writeUInt16(h);return{charMap:r,subtable:Q.data,maxGlyphID:y+1}}},e}(),at=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="cmap",t.prototype.parse=function(e){var t,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)t=new it(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},t.encode=function(e,t){var r,n;return null==t&&(t="macroman"),r=it.encode(e,t),(n=new tt).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t}(),At=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t}(),ut=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r}(),this.charRange=function(){var t,r;for(r=[],t=0;t<4;++t)r.push(e.readInt());return r}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,r;for(r=[],t=0;t<2;t=++t)r.push(e.readInt());return r}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t}(),ct=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="post",t.prototype.parse=function(e){var t,r,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:break;case 131072:var o;for(r=e.readUInt16(),this.glyphNameIndex=[],o=0;0<=r?o<r:o>r;o=0<=r?++o:--o)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)t=e.readByte(),n.push(this.names.push(e.readString(t)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 196608:break;case 262144:return this.map=function(){var t,r,n;for(n=[],o=t=0,r=this.file.maxp.numGlyphs;0<=r?t<r:t>r;o=0<=r?++t:--t)n.push(e.readUInt32());return n}.call(this)}},t}(),lt=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},dt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="name",t.prototype.parse=function(e){var t,r,n,o,s,i,a,A,u,c,l;for(e.pos=this.offset,e.readShort(),t=e.readShort(),i=e.readShort(),r=[],o=0;0<=t?o<t:o>t;o=0<=t?++o:--o)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+i+e.readShort()});for(a={},o=u=0,c=r.length;u<c;o=++u)n=r[o],e.pos=n.offset,A=e.readString(n.length),s=new lt(A,n),null==a[l=n.nameID]&&(a[l]=[]),a[n.nameID].push(s);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},t}(),ft=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t}(),ht=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="hmtx",t.prototype.parse=function(e){var t,r,n,o,s,i,a;for(e.pos=this.offset,this.metrics=[],t=0,i=this.file.hhea.numberOfMetrics;0<=i?t<i:t>i;t=0<=i?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var r,o;for(o=[],t=r=0;0<=n?r<n:r>n;t=0<=n?++r:--r)o.push(e.readInt16());return o}(),this.widths=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.metrics).length;e<t;e++)o=r[e],n.push(o.advance);return n}.call(this),r=this.widths[this.widths.length-1],a=[],t=s=0;0<=n?s<n:s>n;t=0<=n?++s:--s)a.push(this.widths.push(r));return a},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t}(),pt=[].slice,mt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var t,r,n,o,s,i,a,A,u,c;return e in this.cache?this.cache[e]:(o=this.file.loca,t=this.file.contents,r=o.indexOf(e),0===(n=o.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+r,s=(i=new tt(t.read(n))).readShort(),A=i.readShort(),c=i.readShort(),a=i.readShort(),u=i.readShort(),this.cache[e]=-1===s?new yt(i,A,c,a,u):new gt(i,s,A,c,a,u),this.cache[e]))},t.prototype.encode=function(e,t,r){var n,o,s,i,a;for(s=[],o=[],i=0,a=t.length;i<a;i++)n=e[t[i]],o.push(s.length),n&&(s=s.concat(n.encode(r)));return o.push(s.length),{table:s,offsets:o}},t}(),gt=function(){function e(e,t,r,n,o,s){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=o,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),yt=function(){function e(e,t,r,n,o){var s,i;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=o,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;i=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&i;)s.pos+=1&i?4:2,128&i?s.pos+=8:64&i?s.pos+=4:8&i&&(s.pos+=2)}return e.prototype.encode=function(){var e,t,r;for(t=new tt(pt.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),vt=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ot(t,et),t.prototype.tag="loca",t.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=2)n.push(2*e.readUInt16());return n}.call(this):function(){var t,n;for(n=[],r=0,t=this.length;r<t;r+=4)n.push(e.readUInt32());return n}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),n=0,o=0,s=0;s<r.length;++s)if(r[s]=n,o<t.length&&t[o]==s){++o,r[s]=n;var i=this.offsets[s],a=this.offsets[s+1]-i;a>0&&(n+=a)}for(var A=new Array(4*r.length),u=0;u<r.length;++u)A[4*u+3]=255&r[u],A[4*u+2]=(65280&r[u])>>8,A[4*u+1]=(16711680&r[u])>>16,A[4*u]=(4278190080&r[u])>>24;return A},t}(),wt=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,r,n,o;for(t in n=this.font.cmap.tables[0].codeMap,e={},o=this.subset)r=o[t],e[t]=n[r];return e},e.prototype.glyphsFor=function(e){var t,r,n,o,s,i,a;for(n={},s=0,i=e.length;s<i;s++)n[o=e[s]]=this.font.glyf.glyphFor(o);for(o in t=[],n)(null!=(r=n[o])?r.compound:void 0)&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(o in a=this.glyphsFor(t))r=a[o],n[o]=r;return n},e.prototype.encode=function(e,t){var r,n,o,s,i,a,A,u,c,l,d,f,h,p,m;for(n in r=at.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),d={0:0},m=r.charMap)d[(a=m[n]).old]=a.new;for(f in l=r.maxGlyphID,s)f in d||(d[f]=l++);return u=function(e){var t,r;for(t in r={},e)r[e[t]]=t;return r}(d),c=Object.keys(u).sort((function(e,t){return e-t})),h=function(){var e,t,r;for(r=[],e=0,t=c.length;e<t;e++)i=c[e],r.push(u[i]);return r}(),o=this.font.glyf.encode(s,h,d),A=this.font.loca.encode(o.offsets,h),p={cmap:this.font.cmap.raw(),glyf:o.table,loca:A,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},e}();H.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(r){var n,o,s,i;if(Array.isArray(r))return"["+function(){var e,o,s;for(s=[],e=0,o=r.length;e<o;e++)n=r[e],s.push(t.convert(n));return s}().join(" ")+"]";if("string"==typeof r)return"/"+r;if(null!=r?r.isString:void 0)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(r)){for(o in s=["<<"],r)i=r[o],s.push("/"+o+" "+t.convert(i));return s.push(">>"),s.join("\n")}return""+r},t}(),t.default=H},"./node_modules/performance-now/lib/performance-now.js":function(e){(function(){var t,r,n,o,s,i;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-s)/1e6},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),i=1e9*process.uptime(),s=o-i):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},"./node_modules/raf/index.js":function(e,t,r){for(var n=r("./node_modules/performance-now/lib/performance-now.js"),o="undefined"==typeof window?global:window,s=["moz","webkit"],i="AnimationFrame",a=o["request"+i],A=o["cancel"+i]||o["cancelRequest"+i],u=0;!a&&u<s.length;u++)a=o[s[u]+"Request"+i],A=o[s[u]+"Cancel"+i]||o[s[u]+"CancelRequest"+i];if(!a||!A){var c=0,l=0,d=[];a=function(e){if(0===d.length){var t=n(),r=Math.max(0,16.666666666666668-(t-c));c=r+t,setTimeout((function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(r))}return d.push({handle:++l,callback:e,cancelled:!1}),l},A=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return a.call(o,e)},e.exports.cancel=function(){A.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=a,e.cancelAnimationFrame=A}},"./node_modules/regenerator-runtime/runtime.js":function(e){var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function A(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{A({},"")}catch(e){A=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,s=Object.create(o.prototype),i=new N(n||[]);return s._invoke=function(e,t,r){var n=l;return function(o,s){if(n===f)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw s;return F()}for(r.method=o,r.arg=s;;){var i=r.delegate;if(i){var a=C(i,r);if(a){if(a===p)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var A=c(e,t,r);if("normal"===A.type){if(n=r.done?h:d,A.arg===p)continue;return{value:A.arg,done:r.done}}"throw"===A.type&&(n=h,r.method="throw",r.arg=A.arg)}}}(e,r,i),s}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l="suspendedStart",d="suspendedYield",f="executing",h="completed",p={};function m(){}function g(){}function y(){}var v={};A(v,s,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(Q([])));b&&b!==r&&n.call(b,s)&&(v=b);var B=y.prototype=m.prototype=Object.create(v);function j(e){["next","throw","return"].forEach((function(t){A(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,s,i,a){var A=c(e[o],e,s);if("throw"!==A.type){var u=A.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,i,a)}),(function(e){r("throw",e,i,a)})):t.resolve(l).then((function(e){u.value=e,i(u)}),(function(e){return r("throw",e,i,a)}))}a(A.arg)}var o;this._invoke=function(e,n){function s(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(s,s):s()}}function C(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var o=c(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,p):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function Q(e){if(e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:F}}function F(){return{value:t,done:!0}}return g.prototype=y,A(B,"constructor",y),A(y,"constructor",g),g.displayName=A(y,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,A(e,a,"GeneratorFunction")),e.prototype=Object.create(B),e},e.awrap=function(e){return{__await:e}},j(_.prototype),A(_.prototype,i,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,s){void 0===s&&(s=Promise);var i=new _(u(t,r,n,o),s);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},j(B),A(B,a,"Generator"),A(B,s,(function(){return this})),A(B,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=Q,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var s=this.tryEntries.length-1;s>=0;--s){var i=this.tryEntries[s],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var A=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(A&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(A){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var s=o;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var i=s?s.completion:{};return i.type=e,i.arg=t,s?(this.method="next",this.next=s.finallyLoc,p):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:Q(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},"./node_modules/rgbcolor/index.js":function(e){e.exports=function(e){this.ok=!1,this.alpha=1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var 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",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=t[e]||e;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],n=0;n<r.length;n++){var o=r[n].re,s=r[n].process,i=o.exec(e);if(i){var a=s(i);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),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.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),"#"+e+t+r},this.getHelpXML=function(){for(var e=new Array,n=0;n<r.length;n++)for(var o=r[n].example,s=0;s<o.length;s++)e[e.length]=o[s];for(var i in t)e[e.length]=i;var a=document.createElement("ul");for(a.setAttribute("id","rgbcolor-examples"),n=0;n<e.length;n++)try{var A=document.createElement("li"),u=new RGBColor(e[n]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+e[n]+" -> "+u.toRGB()+" -> "+u.toHex());A.appendChild(c),A.appendChild(l),a.appendChild(A)}catch(e){}return a}}},"./node_modules/stackblur-canvas/dist/stackblur-es.js":function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.r(t),r.d(t,{BlurStack:function(){return d},canvasRGB:function(){return c},canvasRGBA:function(){return A},image:function(){return i},imageDataRGB:function(){return l},imageDataRGBA:function(){return u}});var o=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],s=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,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,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,22,22,22,22,22,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,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,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,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,24,24,24,24,24,24,24,24,24,24];function i(e,t,r,n,o,s){if("string"==typeof e&&(e=document.getElementById(e)),e&&"naturalWidth"in e){var i=o?"offset":"natural",a=e[i+"Width"],u=e[i+"Height"];if("string"==typeof t&&(t=document.getElementById(t)),t&&"getContext"in t){s||(t.style.width=a+"px",t.style.height=u+"px"),t.width=a,t.height=u;var l=t.getContext("2d");l.clearRect(0,0,a,u),l.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,a,u),isNaN(r)||r<1||(n?A(t,0,0,a,u,r):c(t,0,0,a,u,r))}}}function a(e,t,r,o,s){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==n(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(t,r,o,s)}catch(e){throw new Error("unable to access image data: "+e)}}function A(e,t,r,n,o,s){if(!(isNaN(s)||s<1)){s|=0;var i=a(e,t,r,n,o);i=u(i,0,0,n,o,s),e.getContext("2d").putImageData(i,t,r)}}function u(e,t,r,n,i,a){for(var A,u=e.data,c=2*a+1,l=n-1,f=i-1,h=a+1,p=h*(h+1)/2,m=new d,g=m,y=1;y<c;y++)g=g.next=new d,y===h&&(A=g);g.next=m;for(var v=null,w=null,b=0,B=0,j=o[a],_=s[a],C=0;C<i;C++){g=m;for(var x=u[B],E=u[B+1],N=u[B+2],Q=u[B+3],F=0;F<h;F++)g.r=x,g.g=E,g.b=N,g.a=Q,g=g.next;for(var U=0,S=0,L=0,T=0,H=h*x,I=h*E,P=h*N,O=h*Q,k=p*x,R=p*E,M=p*N,D=p*Q,K=1;K<h;K++){var z=B+((l<K?l:K)<<2),V=u[z],q=u[z+1],G=u[z+2],X=u[z+3],W=h-K;k+=(g.r=V)*W,R+=(g.g=q)*W,M+=(g.b=G)*W,D+=(g.a=X)*W,U+=V,S+=q,L+=G,T+=X,g=g.next}v=m,w=A;for(var J=0;J<n;J++){var Y=D*j>>_;if(u[B+3]=Y,0!==Y){var Z=255/Y;u[B]=(k*j>>_)*Z,u[B+1]=(R*j>>_)*Z,u[B+2]=(M*j>>_)*Z}else u[B]=u[B+1]=u[B+2]=0;k-=H,R-=I,M-=P,D-=O,H-=v.r,I-=v.g,P-=v.b,O-=v.a;var $=J+a+1;$=b+($<l?$:l)<<2,k+=U+=v.r=u[$],R+=S+=v.g=u[$+1],M+=L+=v.b=u[$+2],D+=T+=v.a=u[$+3],v=v.next;var ee=w,te=ee.r,re=ee.g,ne=ee.b,oe=ee.a;H+=te,I+=re,P+=ne,O+=oe,U-=te,S-=re,L-=ne,T-=oe,w=w.next,B+=4}b+=n}for(var se=0;se<n;se++){var ie=u[B=se<<2],ae=u[B+1],Ae=u[B+2],ue=u[B+3],ce=h*ie,le=h*ae,de=h*Ae,fe=h*ue,he=p*ie,pe=p*ae,me=p*Ae,ge=p*ue;g=m;for(var ye=0;ye<h;ye++)g.r=ie,g.g=ae,g.b=Ae,g.a=ue,g=g.next;for(var ve=n,we=0,be=0,Be=0,je=0,_e=1;_e<=a;_e++){B=ve+se<<2;var Ce=h-_e;he+=(g.r=ie=u[B])*Ce,pe+=(g.g=ae=u[B+1])*Ce,me+=(g.b=Ae=u[B+2])*Ce,ge+=(g.a=ue=u[B+3])*Ce,je+=ie,we+=ae,be+=Ae,Be+=ue,g=g.next,_e<f&&(ve+=n)}B=se,v=m,w=A;for(var xe=0;xe<i;xe++){var Ee=B<<2;u[Ee+3]=ue=ge*j>>_,ue>0?(ue=255/ue,u[Ee]=(he*j>>_)*ue,u[Ee+1]=(pe*j>>_)*ue,u[Ee+2]=(me*j>>_)*ue):u[Ee]=u[Ee+1]=u[Ee+2]=0,he-=ce,pe-=le,me-=de,ge-=fe,ce-=v.r,le-=v.g,de-=v.b,fe-=v.a,Ee=se+((Ee=xe+h)<f?Ee:f)*n<<2,he+=je+=v.r=u[Ee],pe+=we+=v.g=u[Ee+1],me+=be+=v.b=u[Ee+2],ge+=Be+=v.a=u[Ee+3],v=v.next,ce+=ie=w.r,le+=ae=w.g,de+=Ae=w.b,fe+=ue=w.a,je-=ie,we-=ae,be-=Ae,Be-=ue,w=w.next,B+=n}}return e}function c(e,t,r,n,o,s){if(!(isNaN(s)||s<1)){s|=0;var i=a(e,t,r,n,o);i=l(i,0,0,n,o,s),e.getContext("2d").putImageData(i,t,r)}}function l(e,t,r,n,i,a){for(var A,u=e.data,c=2*a+1,l=n-1,f=i-1,h=a+1,p=h*(h+1)/2,m=new d,g=m,y=1;y<c;y++)g=g.next=new d,y===h&&(A=g);g.next=m;for(var v,w,b=null,B=null,j=o[a],_=s[a],C=0,x=0,E=0;E<i;E++){var N=u[x],Q=u[x+1],F=u[x+2],U=h*N,S=h*Q,L=h*F,T=p*N,H=p*Q,I=p*F;g=m;for(var P=0;P<h;P++)g.r=N,g.g=Q,g.b=F,g=g.next;for(var O=0,k=0,R=0,M=1;M<h;M++)v=x+((l<M?l:M)<<2),T+=(g.r=N=u[v])*(w=h-M),H+=(g.g=Q=u[v+1])*w,I+=(g.b=F=u[v+2])*w,O+=N,k+=Q,R+=F,g=g.next;b=m,B=A;for(var D=0;D<n;D++)u[x]=T*j>>_,u[x+1]=H*j>>_,u[x+2]=I*j>>_,T-=U,H-=S,I-=L,U-=b.r,S-=b.g,L-=b.b,v=C+((v=D+a+1)<l?v:l)<<2,T+=O+=b.r=u[v],H+=k+=b.g=u[v+1],I+=R+=b.b=u[v+2],b=b.next,U+=N=B.r,S+=Q=B.g,L+=F=B.b,O-=N,k-=Q,R-=F,B=B.next,x+=4;C+=n}for(var K=0;K<n;K++){var z=u[x=K<<2],V=u[x+1],q=u[x+2],G=h*z,X=h*V,W=h*q,J=p*z,Y=p*V,Z=p*q;g=m;for(var $=0;$<h;$++)g.r=z,g.g=V,g.b=q,g=g.next;for(var ee=0,te=0,re=0,ne=1,oe=n;ne<=a;ne++)x=oe+K<<2,J+=(g.r=z=u[x])*(w=h-ne),Y+=(g.g=V=u[x+1])*w,Z+=(g.b=q=u[x+2])*w,ee+=z,te+=V,re+=q,g=g.next,ne<f&&(oe+=n);x=K,b=m,B=A;for(var se=0;se<i;se++)u[v=x<<2]=J*j>>_,u[v+1]=Y*j>>_,u[v+2]=Z*j>>_,J-=G,Y-=X,Z-=W,G-=b.r,X-=b.g,W-=b.b,v=K+((v=se+h)<f?v:f)*n<<2,J+=ee+=b.r=u[v],Y+=te+=b.g=u[v+1],Z+=re+=b.b=u[v+2],b=b.next,G+=z=B.r,X+=V=B.g,W+=q=B.b,ee-=z,te-=V,re-=q,B=B.next,x+=n}return e}var d=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},"./node_modules/svg-pathdata/lib/SVGPathData.module.js":function(e,t,r){"use strict";r.r(t),r.d(t,{COMMAND_ARG_COUNTS:function(){return j},SVGPathData:function(){return B},SVGPathDataParser:function(){return b},SVGPathDataTransformer:function(){return l},encodeSVGPath:function(){return s}});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function s(e){var t="";Array.isArray(e)||(e=[e]);for(var r=0;r<e.length;r++){var n=e[r];if(n.type===B.CLOSE_PATH)t+="z";else if(n.type===B.HORIZ_LINE_TO)t+=(n.relative?"h":"H")+n.x;else if(n.type===B.VERT_LINE_TO)t+=(n.relative?"v":"V")+n.y;else if(n.type===B.MOVE_TO)t+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===B.LINE_TO)t+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===B.CURVE_TO)t+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===B.SMOOTH_CURVE_TO)t+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===B.QUAD_TO)t+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===B.SMOOTH_QUAD_TO)t+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==B.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");t+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return t}function i(e,t){var r=e[0],n=e[1];return[r*Math.cos(t)-n*Math.sin(t),r*Math.sin(t)+n*Math.cos(t)]}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++)if("number"!=typeof e[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof e[r]+" == typeof "+e[r]);return!0}var A=Math.PI;function u(e,t,r){e.lArcFlag=0===e.lArcFlag?0:1,e.sweepFlag=0===e.sweepFlag?0:1;var n=e.rX,o=e.rY,s=e.x,a=e.y;n=Math.abs(e.rX),o=Math.abs(e.rY);var u=i([(t-s)/2,(r-a)/2],-e.xRot/180*A),c=u[0],l=u[1],d=Math.pow(c,2)/Math.pow(n,2)+Math.pow(l,2)/Math.pow(o,2);1<d&&(n*=Math.sqrt(d),o*=Math.sqrt(d)),e.rX=n,e.rY=o;var f=Math.pow(n,2)*Math.pow(l,2)+Math.pow(o,2)*Math.pow(c,2),h=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(o,2)-f)/f)),p=n*l/o*h,m=-o*c/n*h,g=i([p,m],e.xRot/180*A);e.cX=g[0]+(t+s)/2,e.cY=g[1]+(r+a)/2,e.phi1=Math.atan2((l-m)/o,(c-p)/n),e.phi2=Math.atan2((-l-m)/o,(-c-p)/n),0===e.sweepFlag&&e.phi2>e.phi1&&(e.phi2-=2*A),1===e.sweepFlag&&e.phi2<e.phi1&&(e.phi2+=2*A),e.phi1*=180/A,e.phi2*=180/A}function c(e,t,r){a(e,t,r);var n=e*e+t*t-r*r;if(0>n)return[];if(0===n)return[[e*r/(e*e+t*t),t*r/(e*e+t*t)]];var o=Math.sqrt(n);return[[(e*r+t*o)/(e*e+t*t),(t*r-e*o)/(e*e+t*t)],[(e*r-t*o)/(e*e+t*t),(t*r+e*o)/(e*e+t*t)]]}var l,d=Math.PI/180;function f(e,t,r){return(1-r)*e+r*t}function h(e,t,r,n){return e+Math.cos(n/180*A)*t+Math.sin(n/180*A)*r}function p(e,t,r,n){var o=t-e,s=r-t,i=3*o+3*(n-r)-6*s,a=6*(s-o),A=3*o;return Math.abs(i)<1e-6?[-A/a]:function(e,t,r){void 0===r&&(r=1e-6);var n=e*e/4-t;if(n<-r)return[];if(n<=r)return[-e/2];var o=Math.sqrt(n);return[-e/2-o,-e/2+o]}(a/i,A/i,1e-6)}function m(e,t,r,n,o){var s=1-o;return e*(s*s*s)+t*(3*s*s*o)+r*(3*s*o*o)+n*(o*o*o)}!function(e){function t(){return o((function(e,t,r){return e.relative&&(void 0!==e.x1&&(e.x1+=t),void 0!==e.y1&&(e.y1+=r),void 0!==e.x2&&(e.x2+=t),void 0!==e.y2&&(e.y2+=r),void 0!==e.x&&(e.x+=t),void 0!==e.y&&(e.y+=r),e.relative=!1),e}))}function r(){var e=NaN,t=NaN,r=NaN,n=NaN;return o((function(o,s,i){return o.type&B.SMOOTH_CURVE_TO&&(o.type=B.CURVE_TO,e=isNaN(e)?s:e,t=isNaN(t)?i:t,o.x1=o.relative?s-e:2*s-e,o.y1=o.relative?i-t:2*i-t),o.type&B.CURVE_TO?(e=o.relative?s+o.x2:o.x2,t=o.relative?i+o.y2:o.y2):(e=NaN,t=NaN),o.type&B.SMOOTH_QUAD_TO&&(o.type=B.QUAD_TO,r=isNaN(r)?s:r,n=isNaN(n)?i:n,o.x1=o.relative?s-r:2*s-r,o.y1=o.relative?i-n:2*i-n),o.type&B.QUAD_TO?(r=o.relative?s+o.x1:o.x1,n=o.relative?i+o.y1:o.y1):(r=NaN,n=NaN),o}))}function n(){var e=NaN,t=NaN;return o((function(r,n,o){if(r.type&B.SMOOTH_QUAD_TO&&(r.type=B.QUAD_TO,e=isNaN(e)?n:e,t=isNaN(t)?o:t,r.x1=r.relative?n-e:2*n-e,r.y1=r.relative?o-t:2*o-t),r.type&B.QUAD_TO){e=r.relative?n+r.x1:r.x1,t=r.relative?o+r.y1:r.y1;var s=r.x1,i=r.y1;r.type=B.CURVE_TO,r.x1=((r.relative?0:n)+2*s)/3,r.y1=((r.relative?0:o)+2*i)/3,r.x2=(r.x+2*s)/3,r.y2=(r.y+2*i)/3}else e=NaN,t=NaN;return r}))}function o(e){var t=0,r=0,n=NaN,o=NaN;return function(s){if(isNaN(n)&&!(s.type&B.MOVE_TO))throw new Error("path must start with moveto");var i=e(s,t,r,n,o);return s.type&B.CLOSE_PATH&&(t=n,r=o),void 0!==s.x&&(t=s.relative?t+s.x:s.x),void 0!==s.y&&(r=s.relative?r+s.y:s.y),s.type&B.MOVE_TO&&(n=t,o=r),i}}function s(e,t,r,n,s,i){return a(e,t,r,n,s,i),o((function(o,a,A,u){var c=o.x1,l=o.x2,d=o.relative&&!isNaN(u),f=void 0!==o.x?o.x:d?0:a,h=void 0!==o.y?o.y:d?0:A;function p(e){return e*e}o.type&B.HORIZ_LINE_TO&&0!==t&&(o.type=B.LINE_TO,o.y=o.relative?0:A),o.type&B.VERT_LINE_TO&&0!==r&&(o.type=B.LINE_TO,o.x=o.relative?0:a),void 0!==o.x&&(o.x=o.x*e+h*r+(d?0:s)),void 0!==o.y&&(o.y=f*t+o.y*n+(d?0:i)),void 0!==o.x1&&(o.x1=o.x1*e+o.y1*r+(d?0:s)),void 0!==o.y1&&(o.y1=c*t+o.y1*n+(d?0:i)),void 0!==o.x2&&(o.x2=o.x2*e+o.y2*r+(d?0:s)),void 0!==o.y2&&(o.y2=l*t+o.y2*n+(d?0:i));var m=e*n-t*r;if(void 0!==o.xRot&&(1!==e||0!==t||0!==r||1!==n))if(0===m)delete o.rX,delete o.rY,delete o.xRot,delete o.lArcFlag,delete o.sweepFlag,o.type=B.LINE_TO;else{var g=o.xRot*Math.PI/180,y=Math.sin(g),v=Math.cos(g),w=1/p(o.rX),b=1/p(o.rY),j=p(v)*w+p(y)*b,_=2*y*v*(w-b),C=p(y)*w+p(v)*b,x=j*n*n-_*t*n+C*t*t,E=_*(e*n+t*r)-2*(j*r*n+C*e*t),N=j*r*r-_*e*r+C*e*e,Q=(Math.atan2(E,x-N)+Math.PI)%Math.PI/2,F=Math.sin(Q),U=Math.cos(Q);o.rX=Math.abs(m)/Math.sqrt(x*p(U)+E*F*U+N*p(F)),o.rY=Math.abs(m)/Math.sqrt(x*p(F)-E*F*U+N*p(U)),o.xRot=180*Q/Math.PI}return void 0!==o.sweepFlag&&0>m&&(o.sweepFlag=+!o.sweepFlag),o}))}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return void 0===e&&(e=1e13),a(e),function(e){return void 0!==e.x1&&(e.x1=t(e.x1)),void 0!==e.y1&&(e.y1=t(e.y1)),void 0!==e.x2&&(e.x2=t(e.x2)),void 0!==e.y2&&(e.y2=t(e.y2)),void 0!==e.x&&(e.x=t(e.x)),void 0!==e.y&&(e.y=t(e.y)),void 0!==e.rX&&(e.rX=t(e.rX)),void 0!==e.rY&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return o((function(e,t,r){return e.relative||(void 0!==e.x1&&(e.x1-=t),void 0!==e.y1&&(e.y1-=r),void 0!==e.x2&&(e.x2-=t),void 0!==e.y2&&(e.y2-=r),void 0!==e.x&&(e.x-=t),void 0!==e.y&&(e.y-=r),e.relative=!0),e}))},e.NORMALIZE_HVZ=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===r&&(r=!0),o((function(n,o,s,i,a){if(isNaN(i)&&!(n.type&B.MOVE_TO))throw new Error("path must start with moveto");return t&&n.type&B.HORIZ_LINE_TO&&(n.type=B.LINE_TO,n.y=n.relative?0:s),r&&n.type&B.VERT_LINE_TO&&(n.type=B.LINE_TO,n.x=n.relative?0:o),e&&n.type&B.CLOSE_PATH&&(n.type=B.LINE_TO,n.x=n.relative?i-o:i,n.y=n.relative?a-s:a),n.type&B.ARC&&(0===n.rX||0===n.rY)&&(n.type=B.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},e.NORMALIZE_ST=r,e.QT_TO_C=n,e.INFO=o,e.SANITIZE=function(e){void 0===e&&(e=0),a(e);var t=NaN,r=NaN,n=NaN,s=NaN;return o((function(o,i,a,A,u){var c=Math.abs,l=!1,d=0,f=0;if(o.type&B.SMOOTH_CURVE_TO&&(d=isNaN(t)?0:i-t,f=isNaN(r)?0:a-r),o.type&(B.CURVE_TO|B.SMOOTH_CURVE_TO)?(t=o.relative?i+o.x2:o.x2,r=o.relative?a+o.y2:o.y2):(t=NaN,r=NaN),o.type&B.SMOOTH_QUAD_TO?(n=isNaN(n)?i:2*i-n,s=isNaN(s)?a:2*a-s):o.type&B.QUAD_TO?(n=o.relative?i+o.x1:o.x1,s=o.relative?a+o.y1:o.y2):(n=NaN,s=NaN),o.type&B.LINE_COMMANDS||o.type&B.ARC&&(0===o.rX||0===o.rY||!o.lArcFlag)||o.type&B.CURVE_TO||o.type&B.SMOOTH_CURVE_TO||o.type&B.QUAD_TO||o.type&B.SMOOTH_QUAD_TO){var h=void 0===o.x?0:o.relative?o.x:o.x-i,p=void 0===o.y?0:o.relative?o.y:o.y-a;d=isNaN(n)?void 0===o.x1?d:o.relative?o.x:o.x1-i:n-i,f=isNaN(s)?void 0===o.y1?f:o.relative?o.y:o.y1-a:s-a;var m=void 0===o.x2?0:o.relative?o.x:o.x2-i,g=void 0===o.y2?0:o.relative?o.y:o.y2-a;c(h)<=e&&c(p)<=e&&c(d)<=e&&c(f)<=e&&c(m)<=e&&c(g)<=e&&(l=!0)}return o.type&B.CLOSE_PATH&&c(i-A)<=e&&c(a-u)<=e&&(l=!0),l?[]:o}))},e.MATRIX=s,e.ROTATE=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=0),a(e,t,r);var n=Math.sin(e),o=Math.cos(e);return s(o,n,-n,o,t-t*o+r*n,r-t*n-r*o)},e.TRANSLATE=function(e,t){return void 0===t&&(t=0),a(e,t),s(1,0,0,1,e,t)},e.SCALE=function(e,t){return void 0===t&&(t=e),a(e,t),s(e,0,0,t,0,0)},e.SKEW_X=function(e){return a(e),s(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return a(e),s(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),s(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return void 0===e&&(e=0),a(e),s(1,0,0,-1,0,e)},e.A_TO_C=function(){return o((function(e,t,r){return B.ARC===e.type?function(e,t,r){var n,o,s,a;e.cX||u(e,t,r);for(var A=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-A,l=Math.ceil(c/90),h=new Array(l),p=t,m=r,g=0;g<l;g++){var y=f(e.phi1,e.phi2,g/l),v=f(e.phi1,e.phi2,(g+1)/l),w=v-y,b=4/3*Math.tan(w*d/4),j=[Math.cos(y*d)-b*Math.sin(y*d),Math.sin(y*d)+b*Math.cos(y*d)],_=j[0],C=j[1],x=[Math.cos(v*d),Math.sin(v*d)],E=x[0],N=x[1],Q=[E+b*Math.sin(v*d),N-b*Math.cos(v*d)],F=Q[0],U=Q[1];h[g]={relative:e.relative,type:B.CURVE_TO};var S=function(t,r){var n=i([t*e.rX,r*e.rY],e.xRot),o=n[0],s=n[1];return[e.cX+o,e.cY+s]};n=S(_,C),h[g].x1=n[0],h[g].y1=n[1],o=S(F,U),h[g].x2=o[0],h[g].y2=o[1],s=S(E,N),h[g].x=s[0],h[g].y=s[1],e.relative&&(h[g].x1-=p,h[g].y1-=m,h[g].x2-=p,h[g].y2-=m,h[g].x-=p,h[g].y-=m),p=(a=[h[g].x,h[g].y])[0],m=a[1]}return h}(e,e.relative?0:t,e.relative?0:r):e}))},e.ANNOTATE_ARCS=function(){return o((function(e,t,r){return e.relative&&(t=0,r=0),B.ARC===e.type&&u(e,t,r),e}))},e.CLONE=function(){return function(e){var t={};for(var r in e)t[r]=e[r];return t}},e.CALCULATE_BOUNDS=function(){var e=t(),s=n(),i=r(),a=o((function(t,r,n){var o=i(s(e(function(e){var t={};for(var r in e)t[r]=e[r];return t}(t))));function A(e){e>a.maxX&&(a.maxX=e),e<a.minX&&(a.minX=e)}function l(e){e>a.maxY&&(a.maxY=e),e<a.minY&&(a.minY=e)}if(o.type&B.DRAWING_COMMANDS&&(A(r),l(n)),o.type&B.HORIZ_LINE_TO&&A(o.x),o.type&B.VERT_LINE_TO&&l(o.y),o.type&B.LINE_TO&&(A(o.x),l(o.y)),o.type&B.CURVE_TO){A(o.x),l(o.y);for(var d=0,f=p(r,o.x1,o.x2,o.x);d<f.length;d++)0<(L=f[d])&&1>L&&A(m(r,o.x1,o.x2,o.x,L));for(var g=0,y=p(n,o.y1,o.y2,o.y);g<y.length;g++)0<(L=y[g])&&1>L&&l(m(n,o.y1,o.y2,o.y,L))}if(o.type&B.ARC){A(o.x),l(o.y),u(o,r,n);for(var v=o.xRot/180*Math.PI,w=Math.cos(v)*o.rX,b=Math.sin(v)*o.rX,j=-Math.sin(v)*o.rY,_=Math.cos(v)*o.rY,C=o.phi1<o.phi2?[o.phi1,o.phi2]:-180>o.phi2?[o.phi2+360,o.phi1+360]:[o.phi2,o.phi1],x=C[0],E=C[1],N=function(e){var t=e[0],r=e[1],n=180*Math.atan2(r,t)/Math.PI;return n<x?n+360:n},Q=0,F=c(j,-w,0).map(N);Q<F.length;Q++)(L=F[Q])>x&&L<E&&A(h(o.cX,w,j,L));for(var U=0,S=c(_,-b,0).map(N);U<S.length;U++){var L;(L=S[U])>x&&L<E&&l(h(o.cY,b,_,L))}}return t}));return a.minX=1/0,a.maxX=-1/0,a.minY=1/0,a.maxY=-1/0,a}}(l||(l={}));var g,y=function(){function e(){}return e.prototype.round=function(e){return this.transform(l.ROUND(e))},e.prototype.toAbs=function(){return this.transform(l.TO_ABS())},e.prototype.toRel=function(){return this.transform(l.TO_REL())},e.prototype.normalizeHVZ=function(e,t,r){return this.transform(l.NORMALIZE_HVZ(e,t,r))},e.prototype.normalizeST=function(){return this.transform(l.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(l.QT_TO_C())},e.prototype.aToC=function(){return this.transform(l.A_TO_C())},e.prototype.sanitize=function(e){return this.transform(l.SANITIZE(e))},e.prototype.translate=function(e,t){return this.transform(l.TRANSLATE(e,t))},e.prototype.scale=function(e,t){return this.transform(l.SCALE(e,t))},e.prototype.rotate=function(e,t,r){return this.transform(l.ROTATE(e,t,r))},e.prototype.matrix=function(e,t,r,n,o,s){return this.transform(l.MATRIX(e,t,r,n,o,s))},e.prototype.skewX=function(e){return this.transform(l.SKEW_X(e))},e.prototype.skewY=function(e){return this.transform(l.SKEW_Y(e))},e.prototype.xSymmetry=function(e){return this.transform(l.X_AXIS_SYMMETRY(e))},e.prototype.ySymmetry=function(e){return this.transform(l.Y_AXIS_SYMMETRY(e))},e.prototype.annotateArcs=function(){return this.transform(l.ANNOTATE_ARCS())},e}(),v=function(e){return" "===e||"\t"===e||"\r"===e||"\n"===e},w=function(e){return"0".charCodeAt(0)<=e.charCodeAt(0)&&e.charCodeAt(0)<="9".charCodeAt(0)},b=function(e){function t(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return o(t,e),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,t){var r=this;void 0===t&&(t=[]);for(var n=function(e){t.push(e),r.curArgs.length=0,r.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],i=!(this.curCommandType!==B.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),a=w(s)&&("0"===this.curNumber&&"0"===s||i);if(!w(s)||a)if("e"!==s&&"E"!==s)if("-"!==s&&"+"!==s||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==s||this.curNumberHasExp||this.curNumberHasDecimal||i){if(this.curNumber&&-1!==this.curCommandType){var A=Number(this.curNumber);if(isNaN(A))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===B.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>A)throw new SyntaxError('Expected positive number, got "'+A+'" at index "'+o+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"');this.curArgs.push(A),this.curArgs.length===j[this.curCommandType]&&(B.HORIZ_LINE_TO===this.curCommandType?n({type:B.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):B.VERT_LINE_TO===this.curCommandType?n({type:B.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):this.curCommandType===B.MOVE_TO||this.curCommandType===B.LINE_TO||this.curCommandType===B.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),B.MOVE_TO===this.curCommandType&&(this.curCommandType=B.LINE_TO)):this.curCommandType===B.CURVE_TO?n({type:B.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===B.SMOOTH_CURVE_TO?n({type:B.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===B.QUAD_TO?n({type:B.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===B.ARC&&n({type:B.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!v(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(a)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=B.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=B.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=B.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=B.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=B.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=B.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=B.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=B.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=B.ARC,this.curCommandRelative="a"===s}else t.push({type:B.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,r){void 0===r&&(r=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,t);n<o.length;n++){var s=o[n],i=e(s);Array.isArray(i)?r.push.apply(r,i):r.push(i)}return r}}})},t}(y),B=function(e){function t(r){var n=e.call(this)||this;return n.commands="string"==typeof r?t.parse(r):r,n}return o(t,e),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=l.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var t=[],r=0,n=this.commands;r<n.length;r++){var o=e(n[r]);Array.isArray(o)?t.push.apply(t,o):t.push(o)}return this.commands=t,this},t.encode=function(e){return s(e)},t.parse=function(e){var t=new b,r=[];return t.parse(e,r),t.finish(r),r},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(y),j=((g={})[B.MOVE_TO]=2,g[B.LINE_TO]=2,g[B.HORIZ_LINE_TO]=1,g[B.VERT_LINE_TO]=1,g[B.CLOSE_PATH]=0,g[B.QUAD_TO]=4,g[B.SMOOTH_QUAD_TO]=2,g[B.CURVE_TO]=6,g[B.SMOOTH_CURVE_TO]=4,g[B.ARC]=7,g)}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return r[e].call(s.exports,s,s.exports,o),s.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var s=Object.create(null);o.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},o.d(s,i),s},o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return function(){"use strict";o.r(s);var e=o("./src/worker.js"),t=(o("./src/plugin/jspdf-plugin.js"),o("./src/plugin/pagebreaks.js"),o("./src/plugin/hyperlinks.js"),function e(t,r){var n=new e.Worker(r);return t?n.from(t).save():n});t.Worker=e.default,s.default=t}(),s.default}()}));
+//# sourceMappingURL=html2pdf.bundle.min.js.map
\ No newline at end of file