You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
568tools/tools/mind-map/simple-mind-map/dist/simpleMindMap.umd.min.js

324 lines
1.3 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["simpleMindMap"]=e():t["simpleMindMap"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){function e(e){for(var n,i,A=e[0],o=e[1],s=0,a=[];s<A.length;s++)i=A[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&a.push(r[i][0]),r[i]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n]);l&&l(e);while(a.length)a.shift()()}var n={},r={0:0};function i(t){return A.p+"simpleMindMap.umd.min."+({}[t]||t)+".js"}function A(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,A),r.l=!0,r.exports}A.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise((function(e,i){n=r[t]=[e,i]}));e.push(n[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,A.nc&&a.setAttribute("nonce",A.nc),a.src=i(t);var l=new Error;s=function(e){a.onerror=a.onload=null,clearTimeout(c);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),A=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+A+")",l.name="ChunkLoadError",l.type=i,l.request=A,n[1](l)}r[t]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(e)},A.m=t,A.c=n,A.d=function(t,e,n){A.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},A.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},A.t=function(t,e){if(1&e&&(t=A(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(A.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)A.d(n,r,function(e){return t[e]}.bind(null,r));return n},A.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return A.d(e,"a",e),e},A.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},A.p="",A.oe=function(t){throw console.error(t),t};var o=("undefined"!==typeof self?self:this)["webpackJsonpsimpleMindMap"]=("undefined"!==typeof self?self:this)["webpackJsonpsimpleMindMap"]||[],s=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var l=s;return A(A.s="fb15")}({0:function(t,e){},"0259":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"0960":function(t,e,n){t.exports=n("b19a")},"0965":function(t,e,n){var r=n("44c7"),i=n("50f5"),A=n("9440"),o=function(t){return function(e,n,o){var s,a=r(e),l=A(a),c=i(o,l);if(t&&n!=n){while(l>c)if(s=a[c++],s!=s)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},"09d9":function(t,e,n){var r=n("9a1c").isArray;t.exports={copyOptions:function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n},ensureFlagExists:function(t,e){t in e&&"boolean"===typeof e[t]||(e[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||"number"!==typeof t.spaces&&"string"!==typeof t.spaces)&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){"alwaysArray"in t&&("boolean"===typeof t.alwaysArray||r(t.alwaysArray))||(t.alwaysArray=!1)},ensureKeyExists:function(t,e){t+"Key"in e&&"string"===typeof e[t+"Key"]||(e[t+"Key"]=e.compact?"_"+t:t)},checkFnExists:function(t,e){return t+"Fn"in e}}},"0cca":function(t,e,n){var r=n("5e8c"),i=n("6e16"),A=n("54be"),o=n("f2fc");t.exports=function(t,e,n,s){s||(s={});var a=s.enumerable,l=void 0!==s.name?s.name:e;if(r(n)&&A(n,l,s),s.global)a?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(a=!0):delete t[e]}catch(c){}a?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},"0e26":function(t,e,n){var r=n("fe11"),i=n("6bd1"),A=r("keys");t.exports=function(t){return A[t]||(A[t]=i(t))}},1:function(t,e){},"10ad":function(t,e,n){var r,i,A=n("a83d"),o={on:function(){},parse:function(){}},s=n("09d9"),a=n("9a1c").isArray,l=!0;function c(t){return r=s.copyOptions(t),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}function u(t){var e=Number(t);if(!isNaN(e))return e;var n=t.toLowerCase();return"true"===n||"false"!==n&&t}function h(t,e){var n;if(r.compact){if(!i[r[t+"Key"]]&&(a(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[t+"Key"]):r.alwaysArray)&&(i[r[t+"Key"]]=[]),i[r[t+"Key"]]&&!a(i[r[t+"Key"]])&&(i[r[t+"Key"]]=[i[r[t+"Key"]]]),t+"Fn"in r&&"string"===typeof e&&(e=r[t+"Fn"](e,i)),"instruction"===t&&("instructionFn"in r||"instructionNameFn"in r))for(n in e)if(e.hasOwnProperty(n))if("instructionFn"in r)e[n]=r.instructionFn(e[n],n,i);else{var A=e[n];delete e[n],e[r.instructionNameFn(n,A,i)]=A}a(i[r[t+"Key"]])?i[r[t+"Key"]].push(e):i[r[t+"Key"]]=e}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var o={};if(o[r.typeKey]=t,"instruction"===t){for(n in e)if(e.hasOwnProperty(n))break;o[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,e,i):n,r.instructionHasAttributes?(o[r.attributesKey]=e[n][r.attributesKey],"instructionFn"in r&&(o[r.attributesKey]=r.instructionFn(o[r.attributesKey],n,i))):("instructionFn"in r&&(e[n]=r.instructionFn(e[n],n,i)),o[r.instructionKey]=e[n])}else t+"Fn"in r&&(e=r[t+"Fn"](e,i)),o[r[t+"Key"]]=e;r.addParent&&(o[r.parentKey]=i),i[r.elementsKey].push(o)}}function d(t){var e;if("attributesFn"in r&&t&&(t=r.attributesFn(t,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&t)for(e in t)if(t.hasOwnProperty(e)&&(r.trim&&(t[e]=t[e].trim()),r.nativeTypeAttributes&&(t[e]=u(t[e])),"attributeValueFn"in r&&(t[e]=r.attributeValueFn(t[e],e,i)),"attributeNameFn"in r)){var n=t[e];delete t[e],t[r.attributeNameFn(e,t[e],i)]=n}return t}function f(t){var e={};if(t.body&&("xml"===t.name.toLowerCase()||r.instructionHasAttributes)){var n,A=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(n=A.exec(t.body)))e[n[1]]=n[2]||n[3]||n[4];e=d(e)}if("xml"===t.name.toLowerCase()){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(e).length&&(i[r.declarationKey][r.attributesKey]=e),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(t.body=t.body.trim());var o={};r.instructionHasAttributes&&Object.keys(e).length?(o[t.name]={},o[t.name][r.attributesKey]=e):o[t.name]=t.body,h("instruction",o)}}function p(t,e){var n;if("object"===typeof t&&(e=t.attributes,t=t.name),e=d(e),"elementNameFn"in r&&(t=r.elementNameFn(t,i)),r.compact){var A;if(n={},!r.ignoreAttributes&&e&&Object.keys(e).length)for(A in n[r.attributesKey]={},e)e.hasOwnProperty(A)&&(n[r.attributesKey][A]=e[A]);!(t in i)&&(a(r.alwaysArray)?-1!==r.alwaysArray.indexOf(t):r.alwaysArray)&&(i[t]=[]),i[t]&&!a(i[t])&&(i[t]=[i[t]]),a(i[t])?i[t].push(n):i[t]=n}else i[r.elementsKey]||(i[r.elementsKey]=[]),n={},n[r.typeKey]="element",n[r.nameKey]=t,!r.ignoreAttributes&&e&&Object.keys(e).length&&(n[r.attributesKey]=e),r.alwaysChildren&&(n[r.elementsKey]=[]),i[r.elementsKey].push(n);n[r.parentKey]=i,i=n}function g(t){r.ignoreText||(t.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(t=t.trim()),r.nativeType&&(t=u(t)),r.sanitize&&(t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),h("text",t))}function m(t){r.ignoreComment||(r.trim&&(t=t.trim()),h("comment",t))}function w(t){var e=i[r.parentKey];r.addParent||delete i[r.parentKey],i=e}function y(t){r.ignoreCdata||(r.trim&&(t=t.trim()),h("cdata",t))}function v(t){r.ignoreDoctype||(t=t.replace(/^ /,""),r.trim&&(t=t.trim()),h("doctype",t))}function b(t){t.note=t}t.exports=function(t,e){var n=l?A.parser(!0,{}):n=new o.Parser("UTF-8"),s={};if(i=s,r=c(e),l?(n.opt={strictEntities:!0},n.onopentag=p,n.ontext=g,n.oncomment=m,n.onclosetag=w,n.onerror=b,n.oncdata=y,n.ondoctype=v,n.onprocessinginstruction=f):(n.on("startElement",p),n.on("text",g),n.on("comment",m),n.on("endElement",w),n.on("error",b)),l)n.write(t).close();else if(!n.parse(t))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var a=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=a,delete s.text}return s}},"14cc":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},"1a33":function(t,e,n){var r=n("46ab");t.exports=r({}.isPrototypeOf)},"1a89":function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=h,e.fromByteArray=p;for(var r=[],i=[],A="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],i[o.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function u(t,e,n){return 3*(e+n)/4-n}function h(t){var e,n,r=l(t),o=r[0],s=r[1],a=new A(u(t,o,s)),c=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],a[c++]=e>>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,a[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a}function d(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function f(t,e,n){for(var r,i=[],A=e;A<n;A+=3)r=(t[A]<<16&16711680)+(t[A+1]<<8&65280)+(255&t[A+2]),i.push(d(r));return i.join("")}function p(t){for(var e,n=t.length,i=n%3,A=[],o=16383,s=0,a=n-i;s<a;s+=o)A.push(f(t,s,s+o>a?a:s+o));return 1===i?(e=t[n-1],A.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],A.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),A.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2347:function(t,e,n){var r=n("2ed3");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"23a2":function(t,e,n){var r,i,A=n("1a89"),o=n("9431"),s=A.process,a=A.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"279c":function(t,e,n){var r,i,A,o=n("f1a2"),s=n("1a89"),a=n("feb8"),l=n("f770"),c=n("4d80"),u=n("660c"),h=n("0e26"),d=n("6797"),f="Object already initialized",p=s.TypeError,g=s.WeakMap,m=function(t){return A(t)?i(t):r(t,{})},w=function(t){return function(e){var n;if(!a(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}};if(o||u.state){var y=u.state||(u.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw p(f);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},A=function(t){return y.has(t)}}else{var v=h("state");d[v]=!0,r=function(t,e){if(c(t,v))throw p(f);return e.facade=t,l(t,v,e),e},i=function(t){return c(t,v)?t[v]:{}},A=function(t){return c(t,v)}}t.exports={set:r,get:i,has:A,enforce:m,getterFor:w}},"27bf":function(t,e,n){"use strict";t.exports=o;var r=n("b19a"),i=Object.create(n("3a7c"));function A(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);r.call(this,t),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"===typeof this._flush?this._flush((function(e,n){a(t,e,n)})):a(this,null,null)}function a(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},"293c":function(t,e,n){"use strict";var r=n("3475"),i=n("ac5f").left,A=n("5afb"),o=n("23a2"),s=n("364c"),a=A("reduce"),l=!s&&o>79&&o<83;r({target:"Array",proto:!0,forced:!a||l},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},"2c63":function(t,e,n){t.exports=n("dc14")},"2c9d":function(t,e,n){var r=n("46ab"),i=n("5e8c"),A=n("660c"),o=r(Function.toString);i(A.inspectSource)||(A.inspectSource=function(t){return o(t)}),t.exports=A.inspectSource},"2ed3":function(t,e,n){var r=n("23a2"),i=n("8af8");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"2f2d":function(t,e,n){var r=n("8af8");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3475:function(t,e,n){var r=n("1a89"),i=n("dacf").f,A=n("f770"),o=n("0cca"),s=n("f2fc"),a=n("44b2"),l=n("afc0");t.exports=function(t,e){var n,c,u,h,d,f,p=t.target,g=t.global,m=t.stat;if(c=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype,c)for(u in e){if(d=e[u],t.dontCallGetSet?(f=i(c,u),h=f&&f.value):h=c[u],n=l(g?u:p+(m?".":"#")+u,t.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;a(d,h)}(t.sham||h&&h.sham)&&A(d,"sham",!0),o(c,u,d,t)}}},"361f":function(t,e,n){"use strict";var r=n("b257"),i=n("4d80"),A=n("f770"),o=n("1a33"),s=n("bbea"),a=n("44b2"),l=n("ef7a"),c=n("ce2e"),u=n("899a"),h=n("d898"),d=n("6c12"),f=n("7e07"),p=n("8d5c"),g=n("ec82");t.exports=function(t,e,n,m){var w="stackTraceLimit",y=m?2:1,v=t.split("."),b=v[v.length-1],B=r.apply(null,v);if(B){var C=B.prototype;if(!g&&i(C,"cause")&&delete C.cause,!n)return B;var x=r("Error"),_=e((function(t,e){var n=u(m?e:t,void 0),r=m?new B(t):new B;return void 0!==n&&A(r,"message",n),f&&A(r,"stack",d(r.stack,2)),this&&o(C,this)&&c(r,this,_),arguments.length>y&&h(r,arguments[y]),r}));if(_.prototype=C,"Error"!==b?s?s(_,x):a(_,x,{name:!0}):p&&w in B&&(l(_,B,w),l(_,B,"prepareStackTrace")),a(_,B),!g)try{C.name!==b&&A(C,"name",b),C.constructor=_}catch(E){}return _}}},"364c":function(t,e,n){var r=n("424c"),i=n("1a89");t.exports="process"==r(i.process)},"3a7c":function(t,e,n){function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===m(t)}function i(t){return"boolean"===typeof t}function A(t){return null===t}function o(t){return null==t}function s(t){return"number"===typeof t}function a(t){return"string"===typeof t}function l(t){return"symbol"===typeof t}function c(t){return void 0===t}function u(t){return"[object RegExp]"===m(t)}function h(t){return"object"===typeof t&&null!==t}function d(t){return"[object Date]"===m(t)}function f(t){return"[object Error]"===m(t)||t instanceof Error}function p(t){return"function"===typeof t}function g(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function m(t){return Object.prototype.toString.call(t)}e.isArray=r,e.isBoolean=i,e.isNull=A,e.isNullOrUndefined=o,e.isNumber=s,e.isString=a,e.isSymbol=l,e.isUndefined=c,e.isRegExp=u,e.isObject=h,e.isDate=d,e.isError=f,e.isFunction=p,e.isPrimitive=g,e.isBuffer=n("b639").Buffer.isBuffer},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},"424c":function(t,e,n){var r=n("46ab"),i=r({}.toString),A=r("".slice);t.exports=function(t){return A(i(t),8,-1)}},"429b":function(t,e,n){t.exports=n("faa1").EventEmitter},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"443d":function(t,e){t.exports=function(t){return null===t||void 0===t}},"44b2":function(t,e,n){var r=n("4d80"),i=n("bac8"),A=n("dacf"),o=n("6e16");t.exports=function(t,e,n){for(var s=i(e),a=o.f,l=A.f,c=0;c<s.length;c++){var u=s[c];r(t,u)||n&&r(n,u)||a(t,u,l(e,u))}}},"44c7":function(t,e,n){var r=n("8109"),i=n("601e");t.exports=function(t){return r(i(t))}},4681:function(t,e,n){"use strict";var r=n("966d");function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,A=this._writableState&&this._writableState.destroyed;return i||A?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)}function A(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(t,e){t.emit("error",e)}t.exports={destroy:i,undestroy:A}},"46ab":function(t,e,n){var r=n("2f2d"),i=Function.prototype,A=i.call,o=r&&i.bind.bind(A,A);t.exports=r?o:function(t){return function(){return A.apply(t,arguments)}}},"4d80":function(t,e,n){var r=n("46ab"),i=n("8300"),A=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return A(i(t),e)}},"4eb4":function(t,e,n){var r=n("cc50"),i=n("443d");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},"4f65":function(t,e,n){var r=n("e3ca"),i=n("fd50");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},"4f98":function(t,e,n){(function(e){
/*!
* Quill Editor v1.3.6
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),A=n(19),o=n(45),s=n(46),a=n(47),l=n(48),c=n(49),u=n(12),h=n(32),d=n(33),f=n(31),p=n(1),g={Scope:p.Scope,create:p.create,find:p.find,query:p.query,register:p.register,Container:r.default,Format:i.default,Leaf:A.default,Embed:l.default,Scroll:o.default,Block:a.default,Inline:s.default,Text:c.default,Attributor:{Attribute:u.default,Class:h.default,Style:d.default,Store:f.default}};e.default=g},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=i;var A,o={},s={},a={},l={};function c(t,e){var n=h(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n,A=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:r.create(e);return new r(A,e)}function u(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?u(t.parentNode,n):null}function h(t,e){var n;if(void 0===e&&(e=A.ANY),"string"===typeof t)n=l[t]||o[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=l["text"];else if("number"===typeof t)t&A.LEVEL&A.BLOCK?n=l["block"]:t&A.LEVEL&A.INLINE&&(n=l["inline"]);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||a[t.tagName]}return null==n?null:e&A.LEVEL&n.scope&&e&A.TYPE&n.scope?n:null}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return d(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(l[n.blotName||n.attrName]=n,"string"===typeof n.keyName)o[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=a[t]&&null!=n.className||(a[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(A=e.Scope||(e.Scope={})),e.create=c,e.find=u,e.query=h,e.register=d},function(t,e,n){var r=n(51),i=n(11),A=n(3),o=n(20),s=String.fromCharCode(0),a=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};a.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},a.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},a.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},a.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=A(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},a.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},a.prototype.filter=function(t){return this.ops.filter(t)},a.prototype.forEach=function(t){this.ops.forEach(t)},a.prototype.map=function(t){return this.ops.map(t)},a.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){var i=t(r)?e:n;i.push(r)})),[e,n]},a.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},a.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+o.length(e):e.delete?t-e.delete:t}),0)},a.prototype.length=function(){return this.reduce((function(t,e){return t+o.length(e)}),0)},a.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],r=o.iterator(this.ops),i=0;while(i<e&&r.hasNext()){var A;i<t?A=r.next(t-i):(A=r.next(e-i),n.push(A)),i+=o.length(A)}return new a(n)},a.prototype.compose=function(t){var e=o.iterator(this.ops),n=o.iterator(t.ops),r=new a;while(e.hasNext()||n.hasNext())if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),A=e.next(i),s=n.next(i);if("number"===typeof s.retain){var l={};"number"===typeof A.retain?l.retain=i:l.insert=A.insert;var c=o.attributes.compose(A.attributes,s.attributes,"number"===typeof A.retain);c&&(l.attributes=c),r.push(l)}else"number"===typeof s["delete"]&&"number"===typeof A.retain&&r.push(s)}return r.chop()},a.prototype.concat=function(t){var e=new a(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},a.prototype.diff=function(t,e){if(this.ops===t.ops)return new a;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),A=new a,l=r(n[0],n[1],e),c=o.iterator(this.ops),u=o.iterator(t.ops);return l.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case r.INSERT:n=Math.min(u.peekLength(),e),A.push(u.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),A["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),u.peekLength(),e);var s=c.next(n),a=u.next(n);i(s.insert,a.insert)?A.retain(n,o.attributes.diff(s.attributes,a.attributes)):A.push(a)["delete"](n);break}e-=n}})),A.chop()},a.prototype.eachLine=function(t,e){e=e||"\n";var n=o.iterator(this.ops),r=new a,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var A=n.peek(),s=o.length(A)-n.peekLength(),l="string"===typeof A.insert?A.insert.indexOf(e,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new a}}r.length()>0&&t(r,{},i)},a.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=o.iterator(this.ops),r=o.iterator(t.ops),i=new a;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var A=Math.min(n.peekLength(),r.peekLength()),s=n.next(A),l=r.next(A);if(s["delete"])continue;l["delete"]?i.push(l):i.retain(A,o.attributes.transform(s.attributes,l.attributes,e))}else i.retain(o.length(n.next()));return i.chop()},a.prototype.transformPosition=function(t,e){e=!!e;var n=o.iterator(this.ops),r=0;while(n.hasNext()&&r<=t){var i=n.peekLength(),A=n.peekType();n.next(),"delete"!==A?("insert"===A&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=a},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},A=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),A=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!A)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)};t.exports=function t(){var e,n,r,o,s,a,l=arguments[0],c=1,u=arguments.length,h=!1;for("boolean"===typeof l&&(h=l,l=arguments[1]||{},c=2),(null==l||"object"!==typeof l&&"function"!==typeof l)&&(l={});c<u;++c)if(e=arguments[c],null!=e)for(n in e)r=l[n],o=e[n],l!==o&&(h&&o&&(A(o)||(s=i(o)))?(s?(s=!1,a=r&&i(r)?r:[]):a=r&&A(r)?r:{},l[n]=t(h,a,o)):"undefined"!==typeof o&&(l[n]=o));return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(3),o=m(A),s=n(2),a=m(s),l=n(0),c=m(l),u=n(16),h=m(u),d=n(6),f=m(d),p=n(7),g=m(p);function m(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var b=1,B=function(t){function e(){return w(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=c.default.query(t,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"===typeof n&&n.endsWith("\n")){var A=c.default.create(C.blotName);this.parent.insertBefore(A,0===t?this:this.next),A.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(c.default.Embed);B.scope=c.default.Scope.BLOCK_BLOT;var C=function(t){function e(t){w(this,e);var n=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return v(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),x(e))}),new a.default).insert("\n",x(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,A){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,A):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,A),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var A=n.split("\n"),o=A.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var s=this;A.reduce((function(t,e){return s=s.split(t,!0),s.insertAt(0,e),e.length}),t+o.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof h.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-b)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var A=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},A}}]),e}(c.default.Block);function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:x(t.parent,e))}C.blotName="block",C.tagName="P",C.defaultChild="break",C.allowedChildren=[f.default,c.default.Embed,g.default],e.bubbleFormats=x,e.BlockEmbed=B,e.default=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var o=n(2),s=x(o),a=n(14),l=x(a),c=n(8),u=x(c),h=n(9),d=x(h),f=n(0),p=x(f),g=n(15),m=x(g),w=n(3),y=x(w),v=n(10),b=x(v),B=n(34),C=x(B);function x(t){return t&&t.__esModule?t:{default:t}}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var F=(0,b.default)("quill"),L=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(this,t),this.options=N(e,r),this.container=this.options.container,null==this.container)return F.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=p.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new m.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;S.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var A=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(A),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return A(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),b.default.level(t)}},{key:"find",value:function(t){return t.__quill||p.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&F.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var i=t.attrName||t.blotName;"string"===typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||F.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?p.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),A(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,A=U(t,e,n),o=i(A,4);return t=o[0],e=o[1],n=o[3],S.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return S.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(p.default.query(t,p.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,_({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,_({},t,e))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,A){var o=this,s=void 0,a=U(t,e,n,r,A),l=i(a,4);return t=l[0],e=l[1],s=l[2],A=l[3],S.call(this,(function(){return o.editor.formatLine(t,e,s)}),A,t,0)}},{key:"formatText",value:function(t,e,n,r,A){var o=this,s=void 0,a=U(t,e,n,r,A),l=i(a,4);return t=l[0],e=l[1],s=l[2],A=l[3],S.call(this,(function(){return o.editor.formatText(t,e,s)}),A,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=U(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=U(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return S.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),A,e)}},{key:"insertText",value:function(t,e,n,r,A){var o=this,s=void 0,a=U(t,0,n,r,A),l=i(a,4);return t=l[0],s=l[2],A=l[3],S.call(this,(function(){return o.editor.insertText(t,e,s)}),A,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,A=U(t,e,n),o=i(A,4);return t=o[0],e=o[1],n=o[3],S.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return S.call(this,(function(){t=new s.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),A=i.ops[i.ops.length-1];null!=A&&"string"===typeof A.insert&&"\n"===A.insert[A.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1));var o=r.compose(i);return o}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var A=U(e,n,r),o=i(A,4);e=o[0],n=o[1],r=o[3],this.selection.setRange(new g.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return S.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function N(t,e){if(e=(0,y.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==L.DEFAULTS.theme){if(e.theme=L.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=C.default;var n=(0,y.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)),i=r.reduce((function(t,e){var n=L.import("modules/"+e);return null==n?F.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,y.default)(!0,{},L.DEFAULTS,{modules:i},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function S(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),A=this.editor.delta,o=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=k(i,o,e):0!==r&&(i=k(i,n,r,e)),this.setSelection(i,u.default.sources.SILENT)),o.length()>0){var a,l,c=[u.default.events.TEXT_CHANGE,o,A,e];if((a=this.emitter).emit.apply(a,[u.default.events.EDITOR_CHANGE].concat(c)),e!==u.default.sources.SILENT)(l=this.emitter).emit.apply(l,c)}return o}function U(t,e,n,i,A){var o={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(A=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(A=i,i=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(o=n,A=i):"string"===typeof n&&(null!=i?o[n]=i:A=n),A=A||u.default.sources.API,[t,e,o,A]}function k(t,e,n,r){if(null==t)return null;var A=void 0,o=void 0;if(e instanceof s.default){var a=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),l=i(a,2);A=l[0],o=l[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===u.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),h=i(c,2);A=h[0],o=h[1]}return new g.Range(A,o-A)}L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=u.default.events,L.sources=u.default.sources,L.version="1.3.6",L.imports={delta:s.default,parchment:p.default,"core/module":d.default,"core/theme":C.default},e.expandConfig=N,e.overload=U,e.default=L},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(7),o=l(A),s=n(0),a=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return c(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),r(e,[{key:"formatAt",value:function(t,n,r,A){if(e.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var o=this.isolate(t,n);A&&o.wrap(r,A)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,A)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(a.default.Inline);d.allowedChildren=[d,a.default.Embed,o.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(i.default.Text);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(54),o=l(A),s=n(10),a=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=(0,a.default)("quill:events"),f=["selectionchange","mousedown","mouseup","click"];f.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var p=function(t){function e(){c(this,e);var t=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",d.error),t}return h(e,t),r(e,[{key:"emit",value:function(){d.log.apply(d,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(o.default);p.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},p.sources={API:"api",SILENT:"silent",USER:"user"},e.default=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function A(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,A=Array(n>1?n-1:0),o=1;o<n;o++)A[o-1]=arguments[o];(e=console)[t].apply(e,A)}}function o(t){return r.reduce((function(e,n){return e[n]=A.bind(console,n,t),e}),{})}A.level=o.level=function(t){i=t},e.default=o},function(t,e,n){var r=Array.prototype.slice,i=n(52),A=n(53),o=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:l(t,e,n))};function s(t){return null===t||void 0===t}function a(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function l(t,e,n){var l,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(A(t))return!!A(e)&&(t=r.call(t),e=r.call(e),o(t,e,n));if(a(t)){if(!a(e))return!1;if(t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var u=i(t),h=i(e)}catch(d){return!1}if(u.length!=h.length)return!1;for(u.sort(),h.sort(),l=u.length-1;l>=0;l--)if(u[l]!=h[l])return!1;for(l=u.length-1;l>=0;l--)if(c=u[l],!o(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},o=n(2),s=g(o),a=n(0),l=g(a),c=n(4),u=g(c),h=n(6),d=g(h),f=n(7),p=g(f);function g(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return m(this,e),w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return y(e,t),e}(d.default);v.blotName="code",v.tagName="CODE";var b=function(t){function e(){return m(this,e),w(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return y(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new s.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(p.default,this.length()-1),o=r(i,1),s=o[0];null!=s&&s.deleteAt(s.length()-1,1),A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var A=this.newlineIndex(t);if(!(A<0||A>=t+n)){var o=this.newlineIndex(t,!0)+1,s=A-o+1,a=this.isolate(o,s),c=a.next;a.format(r,i),c instanceof e&&c.formatAt(0,t-o+n-s,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(p.default,t),A=r(i,2),o=A[0],s=A[1];o.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=l.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof l.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=A(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(u.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",e.Code=v,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(2),s=E(o),a=n(20),l=E(a),c=n(0),u=E(c),h=n(13),d=E(h),f=n(24),p=E(f),g=n(4),m=E(g),w=n(16),y=E(w),v=n(21),b=E(v),B=n(11),C=E(B),x=n(3),_=E(x);function E(t){return t&&t.__esModule?t:{default:t}}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var N=/^[ -~]*$/,S=function(){function t(e){L(this,t),this.scroll=e,this.delta=this.getDelta()}return A(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var A=this.scroll.length();return this.scroll.batchStart(),t=k(t),t.reduce((function(t,o){var s=o.retain||o.delete||o.insert.length||1,a=o.attributes||{};if(null!=o.insert){if("string"===typeof o.insert){var c=o.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),t>=A&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var h=e.scroll.line(t),d=i(h,2),f=d[0],p=d[1],w=(0,_.default)({},(0,g.bubbleFormats)(f));if(f instanceof m.default){var y=f.descendant(u.default.Leaf,p),v=i(y,1),b=v[0];w=(0,_.default)(w,(0,g.bubbleFormats)(b))}a=l.default.attributes.diff(w,a)||{}}else if("object"===r(o.insert)){var B=Object.keys(o.insert)[0];if(null==B)return t;e.scroll.insertAt(t,B,o.insert[B])}A+=s}return Object.keys(a).forEach((function(n){e.scroll.formatAt(t,s,n,a[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var A=n.scroll.lines(t,Math.max(e,1)),o=e;A.forEach((function(e){var A=e.length();if(e instanceof d.default){var s=t-e.offset(n.scroll),a=e.newlineIndex(s+o)-s+1;e.formatAt(s,a,i,r[i])}else e.format(i,r[i]);o-=A}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,b.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new s.default).retain(t).retain(e,(0,b.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1),A=e[0];A instanceof m.default?n.push(A):A instanceof u.default.Leaf&&r.push(A)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var A=[n,r].map((function(t){if(0===t.length)return{};var e=(0,g.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=U((0,g.bubbleFormats)(n),e)}return e}));return _.default.apply(_.default,A)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(F({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new s.default).retain(t).insert(e,(0,b.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===m.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof y.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),A=i(r,2),o=A[0],a=A[1],l=0,c=new s.default;null!=o&&(l=o instanceof d.default?o.newlineIndex(a)-a+1:o.length()-a,c=o.delta().slice(a,a+l-1).insert("\n"));var u=this.getContents(t,e+l),h=u.diff((new s.default).insert(n).concat(c)),f=(new s.default).retain(t).concat(h);return this.applyDelta(f)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(N)&&u.default.find(e[0].target)){var i=u.default.find(e[0].target),A=(0,g.bubbleFormats)(i),o=i.offset(this.scroll),a=e[0].oldValue.replace(p.default.CONTENTS,""),l=(new s.default).insert(a),c=(new s.default).insert(i.value()),h=(new s.default).retain(o).concat(l.diff(c,n));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,A):t.push(e)}),new s.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,C.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function U(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}function k(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,b.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,b.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new s.default)}e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=n(0),o=p(A),s=n(21),a=p(s),l=n(11),c=p(l),u=n(8),h=p(u),d=n(10),f=p(d);function p(t){return t&&t.__esModule?t:{default:t}}function g(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var w=(0,f.default)("quill:selection"),y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,t),this.index=e,this.length=n},v=function(){function t(e,n){var r=this;m(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new y(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,h.default.sources.USER),1)})),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(t,e){t===h.default.events.TEXT_CHANGE&&e.length()>0&&r.update(h.default.sources.SILENT)})),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(h.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,A=n.startOffset,o=n.endNode,s=n.endOffset;r.setNativeRange(i,A,o,s)}})),this.update(h.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(h.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,A=this.scroll.leaf(t),o=r(A,2),s=o[0],a=o[1];if(null==s)return null;var l=s.position(a,!0),c=r(l,2);i=c[0],a=c[1];var u=document.createRange();if(e>0){u.setStart(i,a);var h=this.scroll.leaf(t+e),d=r(h,2);if(s=d[0],a=d[1],null==s)return null;var f=s.position(a,!0),p=r(f,2);return i=p[0],a=p[1],u.setEnd(i,a),u.getBoundingClientRect()}var g="left",m=void 0;return i instanceof Text?(a<i.data.length?(u.setStart(i,a),u.setEnd(i,a+1)):(u.setStart(i,a-1),u.setEnd(i,a),g="right"),m=u.getBoundingClientRect()):(m=s.domNode.getBoundingClientRect(),a>0&&(g="right")),{bottom:m.top+m.height,height:m.height,left:m[g],right:m[g],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return w.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],A=n[1],s=o.default.find(i,!0),a=s.offset(e.scroll);return 0===A?a:s instanceof o.default.Container?a+s.length():a+s.index(i,A)})),A=Math.min(Math.max.apply(Math,g(i)),this.scroll.length()-1),s=Math.min.apply(Math,[A].concat(g(i)));return new y(s,A-s)}},{key:"normalizeNative",value:function(t){if(!b(this.root,t.startContainer)||!t.collapsed&&!b(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],A=this.scroll.length();return n.forEach((function(t,n){t=Math.min(A-1,t);var o=void 0,s=e.scroll.leaf(t),a=r(s,2),l=a[0],c=a[1],u=l.position(c,0!==n),h=r(u,2);o=h[0],c=h[1],i.push(o,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,A=this.scroll.line(Math.min(e.index,i)),o=r(A,1),s=o[0],a=s;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,i)),c=r(l,1);a=c[0]}if(null!=s&&null!=a){var u=t.getBoundingClientRect();n.top<u.top?t.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(t.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var A=document.getSelection();if(null!=A)if(null!=t){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||i||t!==o.startContainer||e!==o.startOffset||n!==o.endContainer||r!==o.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),A.removeAllRanges(),A.addRange(s)}}else A.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof e&&(n=e,e=!1),w.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,g(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),A=i[0],o=i[1];if(this.lastRange=A,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var s;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var l,u=[h.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];if((s=this.emitter).emit.apply(s,[h.default.events.EDITOR_CHANGE].concat(u)),t!==h.default.sources.SILENT)(l=this.emitter).emit.apply(l,u)}}}]),t}();function b(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=y,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"insertInto",value:function(t,n){0===t.children.length?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(o.default.Embed);u.blotName="break",u.tagName="BR",e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),A=n(30),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=a(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof o.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],A=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,A]:i instanceof e?i.descendant(t,A):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],A=r;return this.children.forEachAt(n,r,(function(n,r,o){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,A))),A-=o})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],A=r[1];if(i)i.insertAt(A,e,n);else{var s=null==n?o.create("text",e):o.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new o.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=o.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],A=r[1],o=[[this,t]];return i instanceof e?o.concat(i.path(A,n)):(null!=i&&o.push([i,A]),o)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=o.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=o.find(t.nextSibling));var r=a(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(A.default);function a(t){var e=o.find(t);if(null==e)try{e=o.create(t)}catch(n){e=o.create(o.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),A=n(31),o=n(17),s=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new A.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(o.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),A=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=A.Scope.INLINE_BLOT,e}(i.default);e.default=o},function(t,e,n){var r=n(11),i=n(3),A={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=i(!0,{},e);for(var A in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[A]&&void 0===e[A]&&(r[A]=t[A]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new o(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function o(t){this.ops=t,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=A.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"===typeof e.retain?i.retain=t:"string"===typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?A.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},t.exports=A},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(u){n=function(){}}try{r=Set}catch(u){r=function(){}}try{i=Promise}catch(u){i=function(){}}function A(o,s,a,l,u){"object"===typeof s&&(a=s.depth,l=s.prototype,u=s.includeNonEnumerable,s=s.circular);var h=[],d=[],f="undefined"!=typeof e;function p(o,a){if(null===o)return null;if(0===a)return o;var g,m;if("object"!=typeof o)return o;if(t(o,n))g=new n;else if(t(o,r))g=new r;else if(t(o,i))g=new i((function(t,e){o.then((function(e){t(p(e,a-1))}),(function(t){e(p(t,a-1))}))}));else if(A.__isArray(o))g=[];else if(A.__isRegExp(o))g=new RegExp(o.source,c(o)),o.lastIndex&&(g.lastIndex=o.lastIndex);else if(A.__isDate(o))g=new Date(o.getTime());else{if(f&&e.isBuffer(o))return g=new e(o.length),o.copy(g),g;t(o,Error)?g=Object.create(o):"undefined"==typeof l?(m=Object.getPrototypeOf(o),g=Object.create(m)):(g=Object.create(l),m=l)}if(s){var w=h.indexOf(o);if(-1!=w)return d[w];h.push(o),d.push(g)}for(var y in t(o,n)&&o.forEach((function(t,e){var n=p(e,a-1),r=p(t,a-1);g.set(n,r)})),t(o,r)&&o.forEach((function(t){var e=p(t,a-1);g.add(e)})),o){var v;m&&(v=Object.getOwnPropertyDescriptor(m,y)),v&&null==v.set||(g[y]=p(o[y],a-1))}if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(o);for(y=0;y<b.length;y++){var B=b[y],C=Object.getOwnPropertyDescriptor(o,B);(!C||C.enumerable||u)&&(g[B]=p(o[B],a-1),C.enumerable||Object.defineProperty(g,B,{enumerable:!1}))}}if(u){var x=Object.getOwnPropertyNames(o);for(y=0;y<x.length;y++){var _=x[y];C=Object.getOwnPropertyDescriptor(o,_);C&&C.enumerable||(g[_]=p(o[_],a-1),Object.defineProperty(g,_,{enumerable:!1}))}}return g}return"undefined"==typeof s&&(s=!0),"undefined"==typeof a&&(a=1/0),p(o,a)}function o(t){return Object.prototype.toString.call(t)}function s(t){return"object"===typeof t&&"[object Date]"===o(t)}function a(t){return"object"===typeof t&&"[object Array]"===o(t)}function l(t){return"object"===typeof t&&"[object RegExp]"===o(t)}function c(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return A.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},A.__objToStr=o,A.__isDate=s,A.__isArray=a,A.__isRegExp=l,A.__getRegExpFlags=c,A}();"object"===typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},o=n(0),s=w(o),a=n(8),l=w(a),c=n(4),u=w(c),h=n(16),d=w(h),f=n(13),p=w(f),g=n(25),m=w(g);function w(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function B(t){return t instanceof u.default||t instanceof c.BlockEmbed}var C=function(t){function e(t,n){y(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return b(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),o=r(i,2),s=o[0],a=o[1],l=this.line(t+n),u=r(l,1),h=u[0];if(A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=h&&s!==h&&a>0){if(s instanceof c.BlockEmbed||h instanceof c.BlockEmbed)return void this.optimize();if(s instanceof p.default){var f=s.newlineIndex(s.length(),!0);if(f>-1&&(s=s.split(f+1),s===h))return void this.optimize()}else if(h instanceof p.default){var g=h.newlineIndex(0);g>-1&&h.split(g+1)}var m=h.children.head instanceof d.default?null:h.children.head;s.moveChildren(h,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var o=s.default.create(n,r);this.appendChild(o)}else A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(t),t=r}A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(B,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],A=r;return e.children.forEachAt(n,r,(function(e,n,r){B(e)?i.push(e):e instanceof s.default.Container&&(i=i.concat(t(e,n,A))),A-=r})),i};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=l.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,t),A(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);C.blotName="scroll",C.className="ql-editor",C.tagName="DIV",C.defaultChild="block",C.allowedChildren=[u.default,c.BlockEmbed,m.default],e.default=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(21),s=x(o),a=n(11),l=x(a),c=n(3),u=x(c),h=n(2),d=x(h),f=n(20),p=x(f),g=n(0),m=x(g),w=n(5),y=x(w),v=n(10),b=x(v),B=n(9),C=x(B);function x(t){return t&&t.__esModule?t:{default:t}}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function L(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var N=(0,b.default)("quill:keyboard"),S=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(t){function e(t,n){E(this,e);var r=F(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},O),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},Q),r.addBinding({key:e.keys.DELETE},{collapsed:!0},I)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Q),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},I)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},T),r.addBinding({key:e.keys.DELETE},{collapsed:!1},T),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Q),r.listen(),r}return L(e,t),A(e,null,[{key:"match",value:function(t,e){return e=P(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),A(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=P(t);if(null==r||null==r.key)return N.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var A=n.which||n.keyCode,o=(t.bindings[A]||[]).filter((function(t){return e.match(n,t)}));if(0!==o.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var a=t.quill.getLine(s.index),c=i(a,2),u=c[0],h=c[1],d=t.quill.getLeaf(s.index),f=i(d,2),p=f[0],g=f[1],w=0===s.length?[p,g]:t.quill.getLeaf(s.index+s.length),y=i(w,2),v=y[0],b=y[1],B=p instanceof m.default.Text?p.value().slice(0,g):"",C=v instanceof m.default.Text?v.value().slice(b):"",x={collapsed:0===s.length,empty:0===s.length&&u.length()<=1,format:t.quill.getFormat(s),offset:h,prefix:B,suffix:C},_=o.some((function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==x.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,l.default)(e.format[t],x.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,s,x))}));_&&n.preventDefault()}}}}))}}]),e}(C.default);function k(t,e){var n,r=t===U.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},_(n,r,/^$/),_(n,"handler",(function(n){var r=n.index;t===U.keys.RIGHT&&(r+=n.length+1);var A=this.quill.getLeaf(r),o=i(A,1),s=o[0];return!(s instanceof m.default.Embed)||(t===U.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),!1)})),n}function Q(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1),A=r[0],o={};if(0===e.offset){var s=this.quill.getLine(t.index-1),a=i(s,1),l=a[0];if(null!=l&&l.length()>1){var c=A.formats(),u=this.quill.getFormat(t.index-1,1);o=p.default.attributes.diff(c,u)||{}}}var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-h,h,y.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-h,h,o,y.default.sources.USER),this.quill.focus()}}function I(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},A=0,o=this.quill.getLine(t.index),s=i(o,1),a=s[0];if(e.offset>=a.length()-1){var l=this.quill.getLine(t.index+1),c=i(l,1),u=c[0];if(u){var h=a.formats(),d=this.quill.getFormat(t.index,1);r=p.default.attributes.diff(h,d)||{},A=u.length()}}this.quill.deleteText(t.index,n,y.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+A-1,n,r,y.default.sources.USER)}}function T(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=p.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,y.default.sources.USER),this.quill.setSelection(t.index,y.default.sources.SILENT),this.quill.focus()}function O(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return m.default.query(n,m.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],y.default.sources.USER))}))}function M(t){return{key:U.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=m.default.query("code-block"),r=e.index,A=e.length,o=this.quill.scroll.descendant(n,r),s=i(o,2),a=s[0],l=s[1];if(null!=a){var c=this.quill.getIndex(a),u=a.newlineIndex(l,!0)+1,h=a.newlineIndex(c+l+A),d=a.domNode.textContent.slice(u,h).split("\n");l=0,d.forEach((function(e,i){t?(a.insertAt(u+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:A+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(u+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:A-=n.TAB.length),l+=e.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(r,A,y.default.sources.SILENT)}}}}function D(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],y.default.sources.USER)}}}function P(t){if("string"===typeof t||"number"===typeof t)return P({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=U.keys[t.key.toUpperCase()])t.key=U.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[S]=t.shortKey,delete t.shortKey),t}U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:D("bold"),italic:D("italic"),underline:D("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,y.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new d.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,y.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,y.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],A=n[1],o=(0,u.default)({},r.formats(),{list:"checked"}),s=(new d.default).retain(t.index).insert("\n",o).retain(r.length()-A-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),A=r[0],o=r[1],s=(new d.default).retain(t.index).insert("\n",e.format).retain(A.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,y.default.sources.USER),this.quill.setSelection(t.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),A=i(r,2),o=A[0],s=A[1];if(s>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",y.default.sources.USER),this.quill.history.cutoff();var l=(new d.default).retain(t.index-s).delete(n+1).retain(o.length()-2-s).retain(1,{list:a});this.quill.updateContents(l,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,y.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],A=n[1],o=(new d.default).retain(t.index+r.length()-A-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,y.default.sources.USER)}},"embed left":k(U.keys.LEFT,!1),"embed left shift":k(U.keys.LEFT,!0),"embed right":k(U.keys.RIGHT,!1),"embed right shift":k(U.keys.RIGHT,!0)}},e.default=U,e.SHORTKEY=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),s=c(o),a=n(7),l=c(a);function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,n){u(this,e);var r=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return d(e,t),A(e,null,[{key:"value",value:function(){}}]),A(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);var r=this,A=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)A+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(A,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,A=void 0,o=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var a=[t,n.start.offset,n.end.offset];i=a[0],A=a[1],o=a[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof l.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=A){var u=[A,o].map((function(t){return Math.max(0,Math.min(i.data.length,t-1))})),h=r(u,2);return A=h[0],o=h[1],{startNode:i,startOffset:A,endNode:i,endOffset:o}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\ufeff",e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=s(r),A=n(4),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),e}(i.default.Container);u.allowedChildren=[o.default,A.BlockEmbed,u],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(o.default.Attributor.Style),h=new o.default.Attributor.Class("color","ql-color",{scope:o.default.Scope.INLINE}),d=new u("color","color",{scope:o.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=h,e.ColorStyle=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(6),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return h(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(o.default);function h(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=u,e.sanitize=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=n(23),o=l(A),s=n(107),a=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=0;function h(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var d=function(){function t(e){var n=this;c(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=a.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=N(r),A=n(5),o=N(A),s=n(4),a=N(s),l=n(16),c=N(l),u=n(25),h=N(u),d=n(24),f=N(d),p=n(35),g=N(p),m=n(6),w=N(m),y=n(22),v=N(y),b=n(7),B=N(b),C=n(55),x=N(C),_=n(42),E=N(_),F=n(23),L=N(F);function N(t){return t&&t.__esModule?t:{default:t}}o.default.register({"blots/block":a.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":h.default,"blots/cursor":f.default,"blots/embed":g.default,"blots/inline":w.default,"blots/scroll":v.default,"blots/text":B.default,"modules/clipboard":x.default,"modules/history":E.default,"modules/keyboard":L.default}),i.default.register(a.default,c.default,f.default,w.default,v.default,B.default),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,i){var A=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)A.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var o=r.create(this.statics.scope);A.wrap(o),o.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),A=this.split(t);this.parent.insertBefore(i,A)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),A=n(33),o=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=A.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=o.query(e,o.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);function A(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=A(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=A(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);function A(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[A(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[A(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[A(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var A=function(){function t(e,n){i(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();A.DEFAULTS={modules:{}},A.themes={default:A},e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=l(A),s=n(7),a=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d="\ufeff",f=function(t){function e(t){c(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return h(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(d).join("");if(t===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=d,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(o.default.Embed);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}var o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",o),a=new i.default.Attributor.Class("align","ql-align",o),l=new i.default.Attributor.Style("align","text-align",o);e.AlignAttribute=s,e.AlignClass=a,e.AlignStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),i=o(r),A=n(26);function o(t){return t&&t.__esModule?t:{default:t}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),a=new A.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}var o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",o),a=new i.default.Attributor.Class("direction","ql-direction",o),l=new i.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=s,e.DirectionClass=a,e.DirectionStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u={scope:o.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new o.default.Attributor.Class("font","ql-font",u),d=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(o.default.Attributor.Style),f=new d("font","font-family",u);e.FontStyle=f,e.FontClass=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}var o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),A=c(i),o=n(5),s=c(o),a=n(9),l=c(a);function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,n){u(this,e);var r=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return d(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],s.default.sources.USER),this.ignoreChange=!1;var r=g(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(l.default);function p(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=A.default.query(t,A.default.Scope.BLOCK)})))}function g(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return p(t)&&(n-=1),n}f.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=f,e.getLastChangeIndex=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(3),o=C(A),s=n(2),a=C(s),l=n(8),c=C(l),u=n(23),h=C(u),d=n(34),f=C(d),p=n(59),g=C(p),m=n(60),w=C(m),y=n(28),v=C(y),b=n(61),B=C(b);function C(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function E(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var F=[!1,"center","right","justify"],L=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],N=[!1,"serif","monospace"],S=["1","2","3",!1],U=["small",!1,"large","huge"],k=function(t){function e(t,n){x(this,e);var r=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),i=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,i),r}return E(e,t),r(e,[{key:"addModule",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n]["rtl"];else if("string"===typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&T(t,F),new w.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&T(t,L,"background"===n?"#ffffff":"#000000"),new g.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?T(t,N):t.classList.contains("ql-header")?T(t,S):t.classList.contains("ql-size")&&T(t,U)),new v.default(t)}));var r=function(){n.pickers.forEach((function(t){t.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),e}(f.default);k.DEFAULTS=(0,o.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),t.quill.setSelection(r.index+1,c.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Q=function(t){function e(t,n){x(this,e);var r=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return E(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){h.default.match(e,"enter")?(t.save(),e.preventDefault()):h.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=I(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(B.default);function I(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function T(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=Q,e.default=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){var e,n=this.iterator();while(e=n())t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0)){var r,i=this.find(t),A=i[0],o=i[1],s=t-o,a=this.iterator(A);while((r=a())&&s<t+e){var l=r.length();t>s?n(r,t-s,Math.min(e,s+l-t)):n(r,0,Math.min(l,t+e-s)),s+=l}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,r=this.iterator();while(n=r())e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),A=n(1),o={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,o),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var o=[].slice.call(this.observer.takeRecords());while(o.length>0)e.push(o.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[A.DATA_KEY].mutations&&(t.domNode[A.DATA_KEY].mutations=[]),e&&a(t.parent))},l=function(t){null!=t.domNode[A.DATA_KEY]&&null!=t.domNode[A.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(l),t.optimize(n))},c=e,u=0;c.length>0;u+=1){if(u>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=A.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(A.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=A.find(t,!1);a(e,!1),e instanceof i.default&&e.children.forEach((function(t){a(t,!1)}))}))):"attributes"===t.type&&a(e.prev)),a(e))})),this.children.forEach(l),c=[].slice.call(this.observer.takeRecords()),o=c.slice();while(o.length>0)e.push(o.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=A.find(t.target,!0);return null==e?null:null==e.domNode[A.DATA_KEY].mutations?(e.domNode[A.DATA_KEY].mutations=[t],e):(e.domNode[A.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[A.DATA_KEY]&&t.update(t.domNode[A.DATA_KEY].mutations||[],n)})),null!=this.domNode[A.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[A.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=A.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),A=n(1);function o(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var A=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),A.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){if(null!=this.formats()[r]||A.query(r,A.Scope.ATTRIBUTE)){var o=this.isolate(e,n);o.format(r,i)}else t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&o(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=A.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),A=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=A.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=A.query(n,A.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=A.query(r,A.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=A.query(n,A.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),o=A.create(n,r);i.parent.insertBefore(o,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=A.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i.default);e.default=A},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),A=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=A.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=A.Scope.INLINE_BLOT,e}(i.default);e.default=o},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],A=0;A<r;A++)if(e=n[A],t.call(i,e,A,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,r=1,i=0;function A(t,e,n){if(t==e)return t?[[i,t]]:[];(n<0||t.length<n)&&(n=null);var r=l(t,e),A=t.substring(0,r);t=t.substring(r),e=e.substring(r),r=c(t,e);var s=t.substring(t.length-r);t=t.substring(0,t.length-r),e=e.substring(0,e.length-r);var a=o(t,e);return A&&a.unshift([i,A]),s&&a.push([i,s]),h(a),null!=n&&(a=p(a,n)),a=g(a),a}function o(t,e){var o;if(!t)return[[r,e]];if(!e)return[[n,t]];var a=t.length>e.length?t:e,l=t.length>e.length?e:t,c=a.indexOf(l);if(-1!=c)return o=[[r,a.substring(0,c)],[i,l],[r,a.substring(c+l.length)]],t.length>e.length&&(o[0][0]=o[2][0]=n),o;if(1==l.length)return[[n,t],[r,e]];var h=u(t,e);if(h){var d=h[0],f=h[1],p=h[2],g=h[3],m=h[4],w=A(d,p),y=A(f,g);return w.concat([[i,m]],y)}return s(t,e)}function s(t,e){for(var i=t.length,A=e.length,o=Math.ceil((i+A)/2),s=o,l=2*o,c=new Array(l),u=new Array(l),h=0;h<l;h++)c[h]=-1,u[h]=-1;c[s+1]=0,u[s+1]=0;for(var d=i-A,f=d%2!=0,p=0,g=0,m=0,w=0,y=0;y<o;y++){for(var v=-y+p;v<=y-g;v+=2){var b=s+v;F=v==-y||v!=y&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1;var B=F-v;while(F<i&&B<A&&t.charAt(F)==e.charAt(B))F++,B++;if(c[b]=F,F>i)g+=2;else if(B>A)p+=2;else if(f){var C=s+d-v;if(C>=0&&C<l&&-1!=u[C]){var x=i-u[C];if(F>=x)return a(t,e,F,B)}}}for(var _=-y+m;_<=y-w;_+=2){C=s+_;x=_==-y||_!=y&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1;var E=x-_;while(x<i&&E<A&&t.charAt(i-x-1)==e.charAt(A-E-1))x++,E++;if(u[C]=x,x>i)w+=2;else if(E>A)m+=2;else if(!f){b=s+d-_;if(b>=0&&b<l&&-1!=c[b]){var F=c[b];B=s+F-b;if(x=i-x,F>=x)return a(t,e,F,B)}}}}return[[n,t],[r,e]]}function a(t,e,n,r){var i=t.substring(0,n),o=e.substring(0,r),s=t.substring(n),a=e.substring(r),l=A(i,o),c=A(s,a);return l.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,r=Math.min(t.length,e.length),i=r,A=0;while(n<i)t.substring(A,i)==e.substring(A,i)?(n=i,A=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var n=0,r=Math.min(t.length,e.length),i=r,A=0;while(n<i)t.substring(t.length-i,t.length-A)==e.substring(e.length-i,e.length-A)?(n=i,A=n):r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){var r,i,A,o,s=t.substring(n,n+Math.floor(t.length/4)),a=-1,u="";while(-1!=(a=e.indexOf(s,a+1))){var h=l(t.substring(n),e.substring(a)),d=c(t.substring(0,n),e.substring(0,a));u.length<d+h&&(u=e.substring(a-d,a)+e.substring(a,a+h),r=t.substring(0,n-d),i=t.substring(n+h),A=e.substring(0,a-d),o=e.substring(a+h))}return 2*u.length>=t.length?[r,i,A,o,u]:null}var A,o,s,a,u,h=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));if(!h&&!d)return null;A=d?h&&h[4].length>d[4].length?h:d:h,t.length>e.length?(o=A[0],s=A[1],a=A[2],u=A[3]):(a=A[0],u=A[1],o=A[2],s=A[3]);var f=A[4];return[o,s,a,u,f]}function h(t){t.push([i,""]);var e,A=0,o=0,s=0,a="",u="";while(A<t.length)switch(t[A][0]){case r:s++,u+=t[A][1],A++;break;case n:o++,a+=t[A][1],A++;break;case i:o+s>1?(0!==o&&0!==s&&(e=l(u,a),0!==e&&(A-o-s>0&&t[A-o-s-1][0]==i?t[A-o-s-1][1]+=u.substring(0,e):(t.splice(0,0,[i,u.substring(0,e)]),A++),u=u.substring(e),a=a.substring(e)),e=c(u,a),0!==e&&(t[A][1]=u.substring(u.length-e)+t[A][1],u=u.substring(0,u.length-e),a=a.substring(0,a.length-e))),0===o?t.splice(A-s,o+s,[r,u]):0===s?t.splice(A-o,o+s,[n,a]):t.splice(A-o-s,o+s,[n,a],[r,u]),A=A-o-s+(o?1:0)+(s?1:0)+1):0!==A&&t[A-1][0]==i?(t[A-1][1]+=t[A][1],t.splice(A,1)):A++,s=0,o=0,a="",u="";break}""===t[t.length-1][1]&&t.pop();var d=!1;A=1;while(A<t.length-1)t[A-1][0]==i&&t[A+1][0]==i&&(t[A][1].substring(t[A][1].length-t[A-1][1].length)==t[A-1][1]?(t[A][1]=t[A-1][1]+t[A][1].substring(0,t[A][1].length-t[A-1][1].length),t[A+1][1]=t[A-1][1]+t[A+1][1],t.splice(A-1,1),d=!0):t[A][1].substring(0,t[A+1][1].length)==t[A+1][1]&&(t[A-1][1]+=t[A+1][1],t[A][1]=t[A][1].substring(t[A+1][1].length)+t[A+1][1],t.splice(A+1,1),d=!0)),A++;d&&h(t)}var d=A;function f(t,e){if(0===e)return[i,t];for(var r=0,A=0;A<t.length;A++){var o=t[A];if(o[0]===n||o[0]===i){var s=r+o[1].length;if(e===s)return[A+1,t];if(e<s){t=t.slice();var a=e-r,l=[o[0],o[1].slice(0,a)],c=[o[0],o[1].slice(a)];return t.splice(A,1,l,c),[A+1,t]}r=s}}throw new Error("cursor_pos is out of bounds!")}function p(t,e){var n=f(t,e),r=n[1],A=n[0],o=r[A],s=r[A+1];if(null==o)return t;if(o[0]!==i)return t;if(null!=s&&o[1]+s[1]===s[1]+o[1])return r.splice(A,2,s,o),m(r,A,2);if(null!=s&&0===s[1].indexOf(o[1])){r.splice(A,2,[s[0],o[1]],[0,o[1]]);var a=s[1].slice(o[1].length);return a.length>0&&r.splice(A+2,0,[s[0],a]),m(r,A,3)}return t}function g(t){for(var e=!1,A=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},o=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s<t.length;s+=1)t[s-2][0]===i&&o(t[s-2][1])&&t[s-1][0]===n&&A(t[s-1][1])&&t[s][0]===r&&A(t[s][1])&&(e=!0,t[s-1][1]=t[s-2][1].slice(-1)+t[s-1][1],t[s][1]=t[s-2][1].slice(-1)+t[s][1],t[s-2][1]=t[s-2][1].slice(0,-1));if(!e)return t;var a=[];for(s=0;s<t.length;s+=1)t[s][1].length>0&&a.push(t[s]);return a}function m(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],A=t[r+1];i[0]===A[1]&&t.splice(r,2,[i[0],i[1]+A[1]])}return t}d.INSERT=r,d.DELETE=n,d.EQUAL=i,t.exports=d},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"===typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=n?r:i,e.supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function A(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),o.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},o.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var A=0,o=i.length,s=new Array(o);A<o;A++)s[A]=i[A].fn;return s},o.prototype.emit=function(t,e,n,i,A,o){var s=r?r+t:t;if(!this._events[s])return!1;var a,l,c=this._events[s],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,A),!0;case 6:return c.fn.call(c.context,e,n,i,A,o),!0}for(l=1,a=new Array(u-1);l<u;l++)a[l-1]=arguments[l];c.fn.apply(c.context,a)}else{var h,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),u){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!a)for(h=1,a=new Array(u-1);h<u;h++)a[h-1]=arguments[h];c[l].fn.apply(c[l].context,a)}}return!0},o.prototype.on=function(t,e,n){var i=new A(e,n||this),o=r?r+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},o.prototype.once=function(t,e,n){var i=new A(e,n||this,!0),o=r?r+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},o.prototype.removeListener=function(t,e,n,A){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return 0===--this._eventsCount?this._events=new i:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||A&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[o]);else{for(var a=0,l=[],c=s.length;a<c;a++)(s[a].fn!==e||A&&!s[a].once||n&&s[a].context!==n)&&l.push(s[a]);l.length?this._events[o]=1===l.length?l[0]:l:0===--this._eventsCount?this._events=new i:delete this._events[o]}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=r,o.EventEmitter=o,"undefined"!==typeof t&&(t.exports=o)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(3),s=E(o),a=n(2),l=E(a),c=n(0),u=E(c),h=n(5),d=E(h),f=n(10),p=E(f),g=n(9),m=E(g),w=n(36),y=n(37),v=n(13),b=E(v),B=n(26),C=n(38),x=n(39),_=n(40);function E(t){return t&&t.__esModule?t:{default:t}}function F(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function S(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var U=(0,p.default)("quill:clipboard"),k="__ql-matcher",Q=[[Node.TEXT_NODE,J],[Node.TEXT_NODE,W],["br",K],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,X],["li",V],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",G]],I=[w.AlignAttribute,C.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),T=[w.AlignStyle,y.BackgroundStyle,B.ColorStyle,C.DirectionStyle,x.FontStyle,_.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),O=function(t){function e(t,n){L(this,e);var r=N(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],Q.concat(r.options.matchers).forEach((function(t){var e=i(t,2),A=e[0],o=e[1];(n.matchVisual||o!==Y)&&r.addMatcher(A,o)})),r}return S(e,t),A(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[b.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,F({},b.default.blotName,e[b.default.blotName]))}var r=this.prepareMatching(),A=i(r,2),o=A[0],s=A[1],a=R(this.container,o,s);return P(a,"\n")&&null==a.ops[a.ops.length-1].attributes&&(a=a.compose((new l.default).retain(a.length()-1).delete(1))),U.log("convert",this.container.innerHTML,a),this.container.innerHTML="",a}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,d.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new l.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),d.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(d.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,d.default.sources.USER),e.quill.setSelection(r.length()-n.length,d.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var A=i(r,2),o=A[0],s=A[1];switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(o),(function(t){t[k]=t[k]||[],t[k].push(s)}));break}})),[e,n]}}]),e}(m.default);function M(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return M(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,s.default)({},F({},e,n),r.attributes))}),new l.default)}function D(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function P(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function H(t){if(0===t.childNodes.length)return!1;var e=D(t);return["block","list-item"].indexOf(e.display)>-1}function R(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new l.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var A=R(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(A=e.reduce((function(t,e){return e(i,t)}),A),A=(i[k]||[]).reduce((function(t,e){return e(i,t)}),A)),r.concat(A)}),new l.default):new l.default}function j(t,e,n){return M(n,t,!0)}function z(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),i=u.default.Attributor.Style.keys(t),A={};return n.concat(r).concat(i).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(A[n.attrName]=n.value(t),A[n.attrName])||(n=I[e],null==n||n.attrName!==e&&n.keyName!==e||(A[n.attrName]=n.value(t)||void 0),n=T[e],null==n||n.attrName!==e&&n.keyName!==e||(n=T[e],A[n.attrName]=n.value(t)||void 0))})),Object.keys(A).length>0&&(e=M(e,A)),e}function q(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new l.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=M(e,n.blotName,n.formats(t)));return e}function K(t,e){return P(e,"\n")||e.insert("\n"),e}function G(){return new l.default}function V(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!P(e,"\n"))return e;var r=-1,i=t.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new l.default).retain(e.length()-1).retain(1,{indent:r}))}function W(t,e){return P(e,"\n")||(H(t)||e.length()>0&&t.nextSibling&&H(t.nextSibling))&&e.insert("\n"),e}function Y(t,e){if(H(t)&&null!=t.nextElementSibling&&!P(e,"\n\n")){var n=t.offsetHeight+parseFloat(D(t).marginTop)+parseFloat(D(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function X(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===D(t).fontStyle&&(n.italic=!0),r.fontWeight&&(D(t).fontWeight.startsWith("bold")||parseInt(D(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=M(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new l.default).insert("\t").concat(e)),e}function J(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!D(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&H(t.parentNode)||null!=t.previousSibling&&H(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&H(t.parentNode)||null!=t.nextSibling&&H(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}O.DEFAULTS={matchers:[],matchVisual:!0},e.default=O,e.matchAttributor=z,e.matchBlot=q,e.matchNewline=W,e.matchSpacing=Y,e.matchText=J},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(6),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(o.default);u.blotName="bold",u.tagName=["STRONG","B"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=n(2),o=p(A),s=n(0),a=p(s),l=n(5),c=p(l),u=n(10),h=p(u),d=n(9),f=p(d);function p(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=(0,h.default)("quill:toolbar"),b=function(t){function e(t,n){m(this,e);var i,A=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(A.options.container)){var o=document.createElement("div");C(o,A.options.container),t.container.parentNode.insertBefore(o,t.container),A.container=o}else"string"===typeof A.options.container?A.container=document.querySelector(A.options.container):A.container=A.options.container;return A.container instanceof HTMLElement?(A.container.classList.add("ql-toolbar"),A.controls=[],A.handlers={},Object.keys(A.options.handlers).forEach((function(t){A.addHandler(t,A.options.handlers[t])})),[].forEach.call(A.container.querySelectorAll("button, select"),(function(t){A.attach(t)})),A.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e){t===c.default.events.SELECTION_CHANGE&&A.update(e)})),A.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var t=A.quill.selection.getRange(),e=r(t,1),n=e[0];A.update(n)})),A):(i=v.error("Container required for toolbar",A.options),w(A,i))}return y(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void v.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void v.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var A=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];A=!s.hasAttribute("selected")&&(s.value||!1)}else A=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var l=e.quill.selection.getRange(),u=r(l,1),h=u[0];if(null!=e.handlers[n])e.handlers[n].call(e,A);else if(a.default.query(n).prototype instanceof a.default.Embed){if(A=prompt("Enter "+n),!A)return;e.quill.updateContents((new o.default).retain(h.index).delete(h.length).insert(g({},n,A)),c.default.sources.USER)}else e.quill.format(n,A,c.default.sources.USER);e.update(h)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var i=r(n,2),A=i[0],o=i[1];if("SELECT"===o.tagName){var s=void 0;if(null==t)s=null;else if(null==e[A])s=o.querySelector("option[selected]");else if(!Array.isArray(e[A])){var a=e[A];"string"===typeof a&&(a=a.replace(/\"/g,'\\"')),s=o.querySelector('option[value="'+a+'"]')}null==s?(o.value="",o.selectedIndex=-1):s.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var l=e[A]===o.getAttribute("value")||null!=e[A]&&e[A].toString()===o.getAttribute("value")||null==e[A]&&!o.getAttribute("value");o.classList.toggle("ql-active",l)}else o.classList.toggle("ql-active",null!=e[A])}))}}]),e}(f.default);function B(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function C(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)B(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?x(n,e,r):B(n,e,r)}})),t.appendChild(n)}))}function x(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}b.DEFAULTS={},b.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,c.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",c.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",t,c.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,c.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",t,c.default.sources.USER)}}},e.default=b,e.addControls=C},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(28),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(t,n){a(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return c(e,t),r(e,[{key:"buildItem",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),A=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=A:r.style.fill=A)}}]),e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(28),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(t,n){a(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(e,t),r(e,[{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var A=function(){function t(e,n){var r=this;i(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),A=0;if(i.right>r.right&&(A=r.right-i.right,this.root.style.left=e+A+"px"),i.left<r.left&&(A=r.left-i.left,this.root.style.left=e+A+"px"),i.bottom>r.bottom){var o=i.bottom-i.top,s=t.bottom-t.top+o;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return A}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,A=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done);r=!0)if(n.push(o.value),e&&n.length===e)break}catch(a){i=!0,A=a}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw A}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(3),s=m(o),a=n(8),l=m(a),c=n(43),u=m(c),h=n(27),d=m(h),f=n(15),p=n(41),g=m(p);function m(t){return t&&t.__esModule?t:{default:t}}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],B=function(t){function e(t,n){w(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return v(e,t),A(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),g.default),this.tooltip=new C(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers["link"].call(t,!n.format.link)}))}}]),e}(u.default);B.DEFAULTS=(0,s.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var C=function(t){function e(t,n){w(this,e);var r=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return v(e,t),A(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,l.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(e,n,i){if(null!=e){if(0===e.length&&i===l.default.sources.USER){var A=t.quill.scroll.descendant(d.default,e.index),o=r(A,2),s=o[0],a=o[1];if(null!=s){t.linkRange=new f.Range(e.index-a,s.length());var c=d.default.formats(s.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(c.BaseTooltip);C.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=B},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),i=nt(r),A=n(36),o=n(38),s=n(64),a=n(65),l=nt(a),c=n(66),u=nt(c),h=n(67),d=nt(h),f=n(37),p=n(26),g=n(39),m=n(40),w=n(56),y=nt(w),v=n(68),b=nt(v),B=n(27),C=nt(B),x=n(69),_=nt(x),E=n(70),F=nt(E),L=n(71),N=nt(L),S=n(72),U=nt(S),k=n(73),Q=nt(k),I=n(13),T=nt(I),O=n(74),M=nt(O),D=n(75),P=nt(D),H=n(57),R=nt(H),j=n(41),z=nt(j),q=n(28),K=nt(q),G=n(59),V=nt(G),W=n(60),Y=nt(W),X=n(61),J=nt(X),Z=n(108),$=nt(Z),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}i.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":A.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":p.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":A.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":p.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":m.SizeStyle},!0),i.default.register({"formats/align":A.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":p.ColorStyle,"formats/font":g.FontClass,"formats/size":m.SizeClass,"formats/blockquote":l.default,"formats/code-block":T.default,"formats/header":u.default,"formats/list":d.default,"formats/bold":y.default,"formats/code":I.Code,"formats/italic":b.default,"formats/link":C.default,"formats/script":_.default,"formats/strike":F.default,"formats/underline":N.default,"formats/image":U.default,"formats/video":Q.default,"formats/list/item":h.ListItem,"modules/formula":M.default,"modules/syntax":P.default,"modules/toolbar":R.default,"themes/bubble":$.default,"themes/snow":et.default,"ui/icons":z.default,"ui/picker":K.default,"ui/icon-picker":Y.default,"ui/color-picker":V.default,"ui/tooltip":J.default},!0),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(o.default.Attributor.Class),h=new u("indent","ql-indent",{scope:o.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(i.default);l.blotName="blockquote",l.tagName="blockquote",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(4),A=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(){return s(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),r(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(A.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=u(A),s=n(4),a=u(s),l=n(25),c=u(l);function u(t){return t&&t.__esModule?t:{default:t}}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=function(t){function e(){return d(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),r(e,[{key:"format",value:function(t,n){t!==m.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(a.default);g.blotName="list-item",g.tagName="LI";var m=function(t){function e(t){d(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return p(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof g)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),A=this.split(r);A.parent.insertBefore(t,A)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);m.blotName="list",m.scope=o.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[g],e.ListItem=g,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(i.default);l.blotName="italic",l.tagName=["EM","I"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(6),o=s(A);function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(o.default);u.blotName="script",u.tagName=["SUB","SUP"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(i.default);l.blotName="strike",l.tagName="S",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i=A(r);function A(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return o(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(i.default);l.blotName="underline",l.tagName="U",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=a(A),s=n(27);function a(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=["alt","height","width"],d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),r(e,[{key:"format",value:function(t,n){h.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return h.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(o.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(4),o=n(27),s=a(o);function a(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=["height","width"],d=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),r(e,[{key:"format",value:function(t,n){h.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return h.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(A.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(35),o=u(A),s=n(5),a=u(s),l=n(9),c=u(l);function u(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(){return h(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,null,[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(o.default);p.blotName="formula",p.className="ql-formula",p.tagName="SPAN";var g=function(t){function e(){h(this,e);var t=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return f(e,t),r(e,null,[{key:"register",value:function(){a.default.register(p,!0)}}]),e}(c.default);e.FormulaBlot=p,e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},A=n(0),o=d(A),s=n(5),a=d(s),l=n(9),c=d(l),u=n(13),h=d(u);function d(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function g(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return f(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return g(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(h.default);m.className="ql-syntax";var w=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),y=function(t){function e(t,n){f(this,e);var r=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return g(e,t),r(e,null,[{key:"register",value:function(){a.default.register(w,!0),a.default.register(m,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=e&&this.quill.setSelection(e,a.default.sources.SILENT)}}}]),e}(c.default);y.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=w,e.default=y},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var A=Object.getPrototypeOf(e);return null===A?void 0:t(A,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),A=n(3),o=f(A),s=n(8),a=f(s),l=n(43),c=f(l),u=n(15),h=n(41),d=f(h);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(t){function e(t,n){p(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return m(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),d.default)}}]),e}(c.default);y.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(t){function e(t,n){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var A=r.quill.getLines(e.index,e.length);if(1===A.length)r.position(r.quill.getBounds(e));else{var o=A[A.length-1],s=r.quill.getIndex(o),l=Math.min(o.length()-1,e.index+e.length-s),c=r.quill.getBounds(new u.Range(s,l));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return m(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(l.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=v,e.default=y},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},"50f5":function(t,e,n){var r=n("ed00"),i=Math.max,A=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):A(n,e)}},"51a6":function(t,e,n){var r=n("b895"),i=n("d0dc"),A=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,A)}},5265:function(t,e,n){var r=n("8d5c"),i=n("8af8");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},"54be":function(t,e,n){var r=n("8af8"),i=n("5e8c"),A=n("4d80"),o=n("8d5c"),s=n("d665").CONFIGURABLE,a=n("2c9d"),l=n("279c"),c=l.enforce,u=l.get,h=Object.defineProperty,d=o&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),f=String(String).split("String"),p=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!A(t,"name")||s&&t.name!==e)&&(o?h(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&A(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&A(n,"constructor")&&n.constructor?o&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=c(t);return A(r,"source")||(r.source=f.join("string"==typeof e?e:"")),t};Function.prototype.toString=p((function(){return i(this)&&u(this).source||a(this)}),"toString")},"5afb":function(t,e,n){"use strict";var r=n("8af8");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},"5ba9":function(t,e,n){},"5e1a":function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n("8707").Buffer,A=n(1);function o(t,e,n){t.copy(e,n)}t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var e=i.allocUnsafe(t>>>0),n=this.head,r=0;while(n)o(n.data,e,r),r+=n.data.length,n=n.next;return e},t}(),A&&A.inspect&&A.inspect.custom&&(t.exports.prototype[A.inspect.custom]=function(){var t=A.inspect({length:this.length});return this.constructor.name+" "+t})},"5e89":function(t,e,n){(function(e,n,r){var i;!function(e){t.exports=e()}((function(){return function t(e,n,r){function A(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof i&&i;if(!a&&l)return i(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};e[s][0].call(u.exports,(function(t){var n=e[s][1][t];return A(n||t)}),u,u.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<r.length;s++)A(r[s]);return A}({1:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./support"),A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,i,o,s,a,l,c=[],u=0,h=t.length,d=h,f="string"!==r.getTypeOf(t);u<t.length;)d=h-u,i=f?(e=t[u++],n=u<h?t[u++]:0,u<h?t[u++]:0):(e=t.charCodeAt(u++),n=u<h?t.charCodeAt(u++):0,u<h?t.charCodeAt(u++):0),o=e>>2,s=(3&e)<<4|n>>4,a=1<d?(15&n)<<2|i>>6:64,l=2<d?63&i:64,c.push(A.charAt(o)+A.charAt(s)+A.charAt(a)+A.charAt(l));return c.join("")},n.decode=function(t){var e,n,r,o,s,a,l=0,c=0,u="data:";if(t.substr(0,u.length)===u)throw new Error("Invalid base64 input, it looks like a data url.");var h,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===A.charAt(64)&&d--,t.charAt(t.length-2)===A.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|d):new Array(0|d);l<t.length;)e=A.indexOf(t.charAt(l++))<<2|(o=A.indexOf(t.charAt(l++)))>>4,n=(15&o)<<4|(s=A.indexOf(t.charAt(l++)))>>2,r=(3&s)<<6|(a=A.indexOf(t.charAt(l++))),h[c++]=e,64!==s&&(h[c++]=n),64!==a&&(h[c++]=r);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var r=t("./external"),i=t("./stream/DataWorker"),A=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,e,n,r,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var t=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new A).pipe(new o("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var r=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var r=t("./utils"),i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,e,n,r){var A=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^A[255&(t^e[s])];return-1^t}(0|e,t,t.length,0):function(t,e,n,r){var A=i,o=r+n;t^=-1;for(var s=r;s<o;s++)t=t>>>8^A[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length,0):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:r}},{lie:37}],7:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=t("pako"),A=t("./utils"),o=t("./stream/GenericWorker"),s=r?"uint8array":"array";function a(t,e){o.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",A.inherits(a,o),a.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(A.transformTo(s,t.data),!1)},a.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},a.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},a.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new a("Deflate",t)},n.uncompressWorker=function(){return new a("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function r(t,e){var n,r="";for(n=0;n<e;n++)r+=String.fromCharCode(255&t),t>>>=8;return r}function i(t,e,n,i,o,c){var u,h,d=t.file,f=t.compression,p=c!==s.utf8encode,g=A.transformTo("string",c(d.name)),m=A.transformTo("string",s.utf8encode(d.name)),w=d.comment,y=A.transformTo("string",c(w)),v=A.transformTo("string",s.utf8encode(w)),b=m.length!==d.name.length,B=v.length!==w.length,C="",x="",_="",E=d.dir,F=d.date,L={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(L.crc32=t.crc32,L.compressedSize=t.compressedSize,L.uncompressedSize=t.uncompressedSize);var N=0;e&&(N|=8),p||!b&&!B||(N|=2048);var S=0,U=0;E&&(S|=16),"UNIX"===o?(U=798,S|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(d.unixPermissions,E)):(U=20,S|=function(t){return 63&(t||0)}(d.dosPermissions)),u=F.getUTCHours(),u<<=6,u|=F.getUTCMinutes(),u<<=5,u|=F.getUTCSeconds()/2,h=F.getUTCFullYear()-1980,h<<=4,h|=F.getUTCMonth()+1,h<<=5,h|=F.getUTCDate(),b&&(x=r(1,1)+r(a(g),4)+m,C+="up"+r(x.length,2)+x),B&&(_=r(1,1)+r(a(y),4)+v,C+="uc"+r(_.length,2)+_);var k="";return k+="\n\0",k+=r(N,2),k+=f.magic,k+=r(u,2),k+=r(h,2),k+=r(L.crc32,4),k+=r(L.compressedSize,4),k+=r(L.uncompressedSize,4),k+=r(g.length,2),k+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+k+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(U,2)+k+r(y.length,2)+"\0\0\0\0"+r(S,4)+r(i,4)+g+C+y}}var A=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),a=t("../crc32"),l=t("../signature");function c(t,e,n,r){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}A.inherits(c,o),c.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-r-1))/n:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=i(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=i(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return l.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,i=function(t,e,n,i,o){var s=A.transformTo("string",o(i));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(e,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(t){var e=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var r=t("../compressions"),i=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var A=new i(e.streamFiles,n,e.platform,e.encodeFileName),o=0;try{t.forEach((function(t,n){o++;var i=function(t,e){var n=t||e,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},a=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:t,dir:a,date:l,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(A)})),A.entriesCount=o}catch(t){A.error(t)}return A}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(t,e){return(new r).loadAsync(t,e)},r.external=t("./external"),e.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var r=t("./utils"),i=t("./external"),A=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),a=t("./nodejsUtils");function l(t){return new i.Promise((function(e,n){var r=t.decompressed.getContentWorker().pipe(new s);r.on("error",(function(t){n(t)})).on("end",(function(){r.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=r.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:A.utf8decode}),a.isNode&&a.isStream(t)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new o(e);return n.load(t),n})).then((function(t){var n=[i.Promise.resolve(t)],r=t.files;if(e.checkCRC32)for(var A=0;A<r.length;A++)n.push(l(r[A]));return i.Promise.all(n)})).then((function(t){for(var i=t.shift(),A=i.files,o=0;o<A.length;o++){var s=A[o],a=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:e.createFolders}),s.dir||(n.file(l).unsafeOriginalName=a)}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../stream/GenericWorker");function A(t,e){i.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}r.inherits(A,i),A.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},A.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},A.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=A},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var r=t("readable-stream").Readable;function i(t,e,n){r.call(this,e),this._helper=t;var i=this;t.on("data",(function(t,e){i.push(t)||i._helper.pause(),n&&n(e)})).on("error",(function(t){i.emit("error",t)})).on("end",(function(){i.push(null)}))}t("../utils").inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},{"../utils":32,"readable-stream":16}],14:[function(t,n,r){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function r(t,e,n){var r,i=A.getTypeOf(e),s=A.extend(n||{},a);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=p(t)),s.createFolders&&(r=f(t))&&g.call(this,r,!0);var u="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!u),(e instanceof l&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",i="string");var m=null;m=e instanceof l||e instanceof o?e:h.isNode&&h.isStream(e)?new d(t,e):A.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var w=new c(t,m,s);this.files[t]=w}var i=t("./utf8"),A=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),a=t("./defaults"),l=t("./compressedObject"),c=t("./zipObject"),u=t("./generate"),h=t("./nodejsUtils"),d=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},p=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},g=function(t,e){return e=void 0!==e?e:a.createFolders,t=p(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function m(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,r;for(e in this.files)r=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,r)},filter:function(t){var e=[];return this.forEach((function(n,r){t(n,r)&&e.push(r)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,r.call(this,t,e,n),this;if(m(t)){var i=t;return this.filter((function(t,e){return!e.dir&&i.test(t)}))}var A=this.files[this.root+t];return A&&!A.dir?A:null},folder:function(t){if(!t)return this;if(m(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=g.call(this,e),r=this.clone();return r.root=n.name,r},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=A.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");A.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var r=n.comment||this.comment||"";e=u.generateWorker(this,n,r)}catch(t){(e=new o("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data[this.zero+t]},i.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),A=this.length-4;0<=A;--A)if(this.data[A]===e&&this.data[A+1]===n&&this.data[A+2]===r&&this.data[A+3]===i)return A-this.zero;return-1},i.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=t.charCodeAt(2),i=t.charCodeAt(3),A=this.readData(4);return e===A[0]&&n===A[1]&&r===A[2]&&i===A[3]},i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var r=t("../utils");function i(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=i},{"../utils":32}],19:[function(t,e,n){"use strict";var r=t("./Uint8ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var r=t("./DataReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},i.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},i.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},i.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var r=t("./ArrayReader");function i(t){r.call(this,t)}t("../utils").inherits(i,r),i.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var r=t("../utils"),i=t("../support"),A=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),a=t("./Uint8ArrayReader");e.exports=function(t){var e=r.getTypeOf(t);return r.checkSupport(e),"string"!==e||i.uint8array?"nodebuffer"===e?new s(t):i.uint8array?new a(r.transformTo("uint8array",t)):new A(r.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../utils");function A(t){r.call(this,"ConvertWorker to "+t),this.destType=t}i.inherits(A,r),A.prototype.processChunk=function(t){this.push({data:i.transformTo(this.destType,t.data),meta:t.meta})},e.exports=A},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var r=t("./GenericWorker"),i=t("../crc32");function A(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(A,r),A.prototype.processChunk=function(t){this.streamInfo.crc32=i(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=A},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function A(t){i.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(A,i),A.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}i.prototype.processChunk.call(this,t)},e.exports=A},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var r=t("../utils"),i=t("./GenericWorker");function A(t){i.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=r.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}r.inherits(A,i),A.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},A.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},A.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},A.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=A},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=r},{}],29:[function(t,n,r){"use strict";var i=t("../utils"),A=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),a=t("../support"),l=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,n){return new l.Promise((function(r,A){var o=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,e){o.push(t),n&&n(e)})).on("error",(function(t){o=[],A(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(l,function(t,n){var r,i=0,A=null,o=0;for(r=0;r<n.length;r++)o+=n[r].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(A=new Uint8Array(o),r=0;r<n.length;r++)A.set(n[r],i),i+=n[r].length;return A;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,o),c);r(t)}catch(t){A(t)}o=[]})).resume()}))}function h(t,e,n){var r=e;switch(e){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=e,this._mimeType=n,i.checkSupport(r),this._worker=t.pipe(new A(r)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}h.prototype={accumulate:function(t){return u(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof e,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var i=new ArrayBuffer(0);try{r.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);A.append(i),r.blob=0===A.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var r=t("./utils"),i=t("./support"),A=t("./nodejsUtils"),o=t("./stream/GenericWorker"),s=new Array(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return i.nodebuffer?A.newBufferFrom(t,"utf-8"):function(t){var e,n,r,A,o,s=t.length,a=0;for(A=0;A<s;A++)55296==(64512&(n=t.charCodeAt(A)))&&A+1<s&&56320==(64512&(r=t.charCodeAt(A+1)))&&(n=65536+(n-55296<<10)+(r-56320),A++),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=i.uint8array?new Uint8Array(a):new Array(a),A=o=0;o<a;A++)55296==(64512&(n=t.charCodeAt(A)))&&A+1<s&&56320==(64512&(r=t.charCodeAt(A+1)))&&(n=65536+(n-55296<<10)+(r-56320),A++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e}(t)},n.utf8decode=function(t){return i.nodebuffer?r.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,i,A,o=t.length,a=new Array(2*o);for(e=n=0;e<o;)if((i=t[e++])<128)a[n++]=i;else if(4<(A=s[i]))a[n++]=65533,e+=A-1;else{for(i&=2===A?31:3===A?15:7;1<A&&e<o;)i=i<<6|63&t[e++],A--;1<A?a[n++]=65533:i<65536?a[n++]=i:(i-=65536,a[n++]=55296|i>>10&1023,a[n++]=56320|1023&i)}return a.length!==n&&(a.subarray?a=a.subarray(0,n):a.length=n),r.applyFromCharCode(a)}(t=r.transformTo(i.uint8array?"uint8array":"array",t))},r.inherits(l,o),l.prototype.processChunk=function(t){var e=r.transformTo(i.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var A=e;(e=new Uint8Array(A.length+this.leftOver.length)).set(this.leftOver,0),e.set(A,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var o=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),a=e;o!==e.length&&(i.uint8array?(a=e.subarray(0,o),this.leftOver=e.subarray(o,e.length)):(a=e.slice(0,o),this.leftOver=e.slice(o,e.length))),this.push({data:n.utf8decode(a),meta:t.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(c,o),c.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var r=t("./support"),i=t("./base64"),A=t("./nodejsUtils"),o=t("./external");function s(t){return t}function a(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(e,r){n.checkSupport("blob");try{return new Blob([e],{type:r})}catch(t){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(e),i.getBlob(r)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(t,e,n){var r=[],i=0,A=t.length;if(A<=n)return String.fromCharCode.apply(null,t);for(;i<A;)"array"===e||"nodebuffer"===e?r.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+n,A)))):r.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+n,A)))),i+=n;return r.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,A.allocBuffer(1)).length}catch(t){return!1}}()}};function c(t){var e=65536,r=n.getTypeOf(t),i=!0;if("uint8array"===r?i=l.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<e;)try{return l.stringifyByChunk(t,r,e)}catch(t){e=Math.floor(e/2)}return l.stringifyByChar(t)}function u(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=c;var h={};h.string={string:s,array:function(t){return a(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return a(t,new Uint8Array(t.length))},nodebuffer:function(t){return a(t,A.allocBuffer(t.length))}},h.array={string:c,array:s,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return A.newBufferFrom(t)}},h.arraybuffer={string:function(t){return c(new Uint8Array(t))},array:function(t){return u(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:s,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return A.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:c,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:s,nodebuffer:function(t){return A.newBufferFrom(t)}},h.nodebuffer={string:c,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:s},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var r=n.getTypeOf(e);return h[r][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],r=0;r<e.length;r++){var i=e[r];"."===i||""===i&&0!==r&&r!==e.length-1||(".."===i?n.pop():n.push(i))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":r.nodebuffer&&A.isBuffer(t)?"nodebuffer":r.uint8array&&t instanceof Uint8Array?"uint8array":r.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!r[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,r="";for(n=0;n<(t||"").length;n++)r+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return r},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,A,s,l){return o.Promise.resolve(e).then((function(t){return r.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new o.Promise((function(e,n){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.onerror=function(t){n(t.target.error)},r.readAsArrayBuffer(t)})):t})).then((function(e){var c=n.getTypeOf(e);return c?("arraybuffer"===c?e=n.transformTo("uint8array",e):"string"===c&&(l?e=i.decode(e):A&&!0!==s&&(e=function(t){return a(t,r.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):o.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),A=t("./signature"),o=t("./zipEntry"),s=t("./support");function a(t){this.files=[],this.loadOptions=t}a.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(e)+", expected "+i.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var r=this.reader.readString(4)===e;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=i.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,r=this.zip64EndOfCentralSize-44;0<r;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(A.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(A.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(A.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,A.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(A.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(A.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(A.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,A.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(A.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(A.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=e-n;if(0<r)this.isSignature(e,A.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var r=t("./reader/readerFor"),i=t("./utils"),A=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),a=t("./compressions"),l=t("./support");function c(t,e){this.options=t,this.loadOptions=e}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in a)if(Object.prototype.hasOwnProperty.call(a,e)&&a[e].magic===t)return a[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new A(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,r,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<i;)e=t.readInt(2),n=t.readInt(2),r=t.readData(n),this.extraFields[e]={id:e,length:n,value:r};t.setIndex(i)},handleUTF8:function(){var t=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=i.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var A=i.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=r(t.value);return 1!==e.readInt(1)||o(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=r(t.value);return 1!==e.readInt(1)||o(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function r(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=t("./stream/StreamHelper"),A=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),a=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var r="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var A=!this._dataBinary;A&&!r&&(e=e.pipe(new o.Utf8EncodeWorker)),!A&&r&&(e=e.pipe(new o.Utf8DecodeWorker))}catch(t){(e=new a("error")).error(t)}return new i(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new A(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<l.length;u++)r.prototype[l[u]]=c;e.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,r){(function(t){"use strict";var n,r,i=t.MutationObserver||t.WebKitMutationObserver;if(i){var A=0,o=new i(c),s=t.document.createTextNode("");o.observe(s,{characterData:!0}),n=function(){s.data=A=++A%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var a=new t.MessageChannel;a.port1.onmessage=c,n=function(){a.port2.postMessage(0)}}var l=[];function c(){var t,e;r=!0;for(var n=l.length;n;){for(e=l,l=[],t=-1;++t<n;)e[t]();n=l.length}r=!1}e.exports=function(t){1!==l.push(t)||r||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var r=t("immediate");function i(){}var A={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,t!==i&&d(this,t)}function c(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function u(t,e,n){r((function(){var r;try{r=e(n)}catch(r){return A.reject(t,r)}r===t?A.reject(t,new TypeError("Cannot resolve promise with itself")):A.resolve(t,r)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function d(t,e){var n=!1;function r(e){n||(n=!0,A.reject(t,e))}function i(e){n||(n=!0,A.resolve(t,e))}var o=f((function(){e(i,r)}));"error"===o.status&&r(o.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=l).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===o)return this;var n=new this.constructor(i);return this.state!==a?u(n,this.state===s?t:e,this.outcome):this.queue.push(new c(n,t,e)),n},c.prototype.callFulfilled=function(t){A.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){A.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},A.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return A.reject(t,n.value);var r=n.value;if(r)d(t,r);else{t.state=s,t.outcome=e;for(var i=-1,o=t.queue.length;++i<o;)t.queue[i].callFulfilled(e)}return t},A.reject=function(t,e){t.state=o,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:A.resolve(new this(i),t)},l.reject=function(t){var e=new this(i);return A.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),s=0,a=-1,l=new this(i);++a<n;)c(t[a],a);return l;function c(t,i){e.resolve(t).then((function(t){o[i]=t,++s!==n||r||(r=!0,A.resolve(l,o))}),(function(t){r||(r=!0,A.reject(l,t))}))}},l.race=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var o,s=-1,a=new this(i);++s<n;)o=t[s],e.resolve(o).then((function(t){r||(r=!0,A.resolve(a,t))}),(function(t){r||(r=!0,A.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var r=t("./zlib/deflate"),i=t("./utils/common"),A=t("./utils/strings"),o=t("./zlib/messages"),s=t("./zlib/zstream"),a=Object.prototype.toString,l=0,c=-1,u=0,h=8;function d(t){if(!(this instanceof d))return new d(t);this.options=i.assign({level:c,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(o[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var f;if(f="string"==typeof e.dictionary?A.string2buf(e.dictionary):"[object ArrayBuffer]"===a.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,f))!==l)throw new Error(o[n]);this._dict_set=!0}}function f(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||o[n.err];return n.result}d.prototype.push=function(t,e){var n,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=A.string2buf(t):"[object ArrayBuffer]"===a.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,o))&&n!==l)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(A.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===o?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==o||(this.onEnd(l),!(s.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===l&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=d,n.deflate=f,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,f(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,f(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var r=t("./zlib/inflate"),i=t("./utils/common"),A=t("./utils/strings"),o=t("./zlib/constants"),s=t("./zlib/messages"),a=t("./zlib/zstream"),l=t("./zlib/gzheader"),c=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new u(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}u.prototype.push=function(t,e){var n,s,a,l,u,h,d=this.strm,f=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof t?d.input=A.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?d.input=new Uint8Array(t):d.input=t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(f),d.next_out=0,d.avail_out=f),(n=r.inflate(d,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(h="string"==typeof p?A.string2buf(p):"[object ArrayBuffer]"===c.call(p)?new Uint8Array(p):p,n=r.inflateSetDictionary(this.strm,h)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&n!==o.Z_STREAM_END&&(0!==d.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(a=A.utf8border(d.output,d.next_out),l=d.next_out-a,u=A.buf2string(d.output,a),d.next_out=l,d.avail_out=f-l,l&&i.arraySet(d.output,d.output,a,l,0),this.onData(u)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((0<d.avail_in||0===d.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(d.avail_out=0))},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=u,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+r),i);else for(var A=0;A<r;A++)t[i+A]=e[n+A]},flattenChunks:function(t){var e,n,r,i,A,o;for(e=r=0,n=t.length;e<n;e++)r+=t[e].length;for(o=new Uint8Array(r),e=i=0,n=t.length;e<n;e++)A=t[e],o.set(A,i),i+=A.length;return o}},A={arraySet:function(t,e,n,r,i){for(var A=0;A<r;A++)t[i+A]=e[n+A]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,A))},n.setTyped(r)},{}],42:[function(t,e,n){"use strict";var r=t("./common"),i=!0,A=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){A=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function a(t,e){if(e<65537&&(t.subarray&&A||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o<e;o++)n+=String.fromCharCode(t[o]);return n}o[254]=o[254]=1,n.string2buf=function(t){var e,n,i,A,o,s=t.length,a=0;for(A=0;A<s;A++)55296==(64512&(n=t.charCodeAt(A)))&&A+1<s&&56320==(64512&(i=t.charCodeAt(A+1)))&&(n=65536+(n-55296<<10)+(i-56320),A++),a+=n<128?1:n<2048?2:n<65536?3:4;for(e=new r.Buf8(a),A=o=0;o<a;A++)55296==(64512&(n=t.charCodeAt(A)))&&A+1<s&&56320==(64512&(i=t.charCodeAt(A+1)))&&(n=65536+(n-55296<<10)+(i-56320),A++),n<128?e[o++]=n:(n<2048?e[o++]=192|n>>>6:(n<65536?e[o++]=224|n>>>12:(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63),e[o++]=128|n>>>6&63),e[o++]=128|63&n);return e},n.buf2binstring=function(t){return a(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n<i;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,r,i,A,s=e||t.length,l=new Array(2*s);for(n=r=0;n<s;)if((i=t[n++])<128)l[r++]=i;else if(4<(A=o[i]))l[r++]=65533,n+=A-1;else{for(i&=2===A?31:3===A?15:7;1<A&&n<s;)i=i<<6|63&t[n++],A--;1<A?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return a(l,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var i=65535&t|0,A=t>>>16&65535|0,o=0;0!==n;){for(n-=o=2e3<n?2e3:n;A=A+(i=i+e[r++]|0)|0,--o;);i%=65521,A%=65521}return i|A<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var A=r,o=i+n;t^=-1;for(var s=i;s<o;s++)t=t>>>8^A[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var r,i=t("../utils/common"),A=t("./trees"),o=t("./adler32"),s=t("./crc32"),a=t("./messages"),l=0,c=4,u=0,h=-2,d=-1,f=4,p=2,g=8,m=9,w=286,y=30,v=19,b=2*w+1,B=15,C=3,x=258,_=x+C+1,E=42,F=113,L=1,N=2,S=3,U=4;function k(t,e){return t.msg=a[e],e}function Q(t){return(t<<1)-(4<t?9:0)}function I(t){for(var e=t.length;0<=--e;)t[e]=0}function T(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function O(t,e){A._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,T(t.strm)}function M(t,e){t.pending_buf[t.pending++]=e}function D(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function P(t,e){var n,r,i=t.max_chain_length,A=t.strstart,o=t.prev_length,s=t.nice_match,a=t.strstart>t.w_size-_?t.strstart-(t.w_size-_):0,l=t.window,c=t.w_mask,u=t.prev,h=t.strstart+x,d=l[A+o-1],f=l[A+o];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+o]===f&&l[n+o-1]===d&&l[n]===l[A]&&l[++n]===l[A+1]){A+=2,n++;do{}while(l[++A]===l[++n]&&l[++A]===l[++n]&&l[++A]===l[++n]&&l[++A]===l[++n]&&l[++A]===l[++n]&&l[++A]===l[++n]&&l[++A]===l[++n]&&l[++A]===l[++n]&&A<h);if(r=x-(h-A),A=h-x,o<r){if(t.match_start=e,s<=(o=r))break;d=l[A+o-1],f=l[A+o]}}}while((e=u[e&c])>a&&0!=--i);return o<=t.lookahead?o:t.lookahead}function H(t){var e,n,r,A,a,l,c,u,h,d,f=t.w_size;do{if(A=t.window_size-t.lookahead-t.strstart,t.strstart>=f+(f-_)){for(i.arraySet(t.window,t.window,f,f,0),t.match_start-=f,t.strstart-=f,t.block_start-=f,e=n=t.hash_size;r=t.head[--e],t.head[e]=f<=r?r-f:0,--n;);for(e=n=f;r=t.prev[--e],t.prev[e]=f<=r?r-f:0,--n;);A+=f}if(0===t.strm.avail_in)break;if(l=t.strm,c=t.window,u=t.strstart+t.lookahead,h=A,d=void 0,d=l.avail_in,h<d&&(d=h),n=0===d?0:(l.avail_in-=d,i.arraySet(c,l.input,l.next_in,d,u),1===l.state.wrap?l.adler=o(l.adler,c,d,u):2===l.state.wrap&&(l.adler=s(l.adler,c,d,u)),l.next_in+=d,l.total_in+=d,d),t.lookahead+=n,t.lookahead+t.insert>=C)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[a+C-1])&t.hash_mask,t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert<C)););}while(t.lookahead<_&&0!==t.strm.avail_in)}function R(t,e){for(var n,r;;){if(t.lookahead<_){if(H(t),t.lookahead<_&&e===l)return L;if(0===t.lookahead)break}if(n=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-_&&(t.match_length=P(t,n)),t.match_length>=C)if(r=A._tr_tally(t,t.strstart-t.match_start,t.match_length-C),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=C){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=A._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(O(t,!1),0===t.strm.avail_out))return L}return t.insert=t.strstart<C-1?t.strstart:C-1,e===c?(O(t,!0),0===t.strm.avail_out?S:U):t.last_lit&&(O(t,!1),0===t.strm.avail_out)?L:N}function j(t,e){for(var n,r,i;;){if(t.lookahead<_){if(H(t),t.lookahead<_&&e===l)return L;if(0===t.lookahead)break}if(n=0,t.lookahead>=C&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=C-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-_&&(t.match_length=P(t,n),t.match_length<=5&&(1===t.strategy||t.match_length===C&&4096<t.strstart-t.match_start)&&(t.match_length=C-1)),t.prev_length>=C&&t.match_length<=t.prev_length){for(i=t.strstart+t.lookahead-C,r=A._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-C),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+C-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=C-1,t.strstart++,r&&(O(t,!1),0===t.strm.avail_out))return L}else if(t.match_available){if((r=A._tr_tally(t,0,t.window[t.strstart-1]))&&O(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return L}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=A._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<C-1?t.strstart:C-1,e===c?(O(t,!0),0===t.strm.avail_out?S:U):t.last_lit&&(O(t,!1),0===t.strm.avail_out)?L:N}function z(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function q(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*b),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*v+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(B+1),this.heap=new i.Buf16(2*w+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*w+1),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function K(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=p,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?E:F,t.adler=2===e.wrap?0:1,e.last_flush=l,A._tr_init(e),u):k(t,h)}function G(t){var e=K(t);return e===u&&function(t){t.window_size=2*t.w_size,I(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=C-1,t.match_available=0,t.ins_h=0}(t.state),e}function V(t,e,n,r,A,o){if(!t)return h;var s=1;if(e===d&&(e=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),A<1||m<A||n!==g||r<8||15<r||e<0||9<e||o<0||f<o)return k(t,h);8===r&&(r=9);var a=new q;return(t.state=a).strm=t,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=A+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+C-1)/C),a.window=new i.Buf8(2*a.w_size),a.head=new i.Buf16(a.hash_size),a.prev=new i.Buf16(a.w_size),a.lit_bufsize=1<<A+6,a.pending_buf_size=4*a.lit_bufsize,a.pending_buf=new i.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=e,a.strategy=o,a.method=n,G(t)}r=[new z(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(H(t),0===t.lookahead&&e===l)return L;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,O(t,!1),0===t.strm.avail_out))return L;if(t.strstart-t.block_start>=t.w_size-_&&(O(t,!1),0===t.strm.avail_out))return L}return t.insert=0,e===c?(O(t,!0),0===t.strm.avail_out?S:U):(t.strstart>t.block_start&&(O(t,!1),t.strm.avail_out),L)})),new z(4,4,8,4,R),new z(4,5,16,8,R),new z(4,6,32,32,R),new z(4,4,16,16,j),new z(8,16,32,32,j),new z(8,16,128,128,j),new z(8,32,128,256,j),new z(32,128,258,1024,j),new z(32,258,258,4096,j)],n.deflateInit=function(t,e){return V(t,e,g,15,8,0)},n.deflateInit2=V,n.deflateReset=G,n.deflateResetKeep=K,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?h:(t.state.gzhead=e,u):h},n.deflate=function(t,e){var n,i,o,a;if(!t||!t.state||5<e||e<0)return t?k(t,h):h;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==c)return k(t,0===t.avail_out?-5:h);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===E)if(2===i.wrap)t.adler=0,M(i,31),M(i,139),M(i,8),i.gzhead?(M(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),M(i,255&i.gzhead.time),M(i,i.gzhead.time>>8&255),M(i,i.gzhead.time>>16&255),M(i,i.gzhead.time>>24&255),M(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),M(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(M(i,255&i.gzhead.extra.length),M(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(M(i,0),M(i,0),M(i,0),M(i,0),M(i,0),M(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),M(i,3),i.status=F);else{var d=g+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=F,D(i,d),0!==i.strstart&&(D(i,t.adler>>>16),D(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),T(t),o=i.pending,i.pending!==i.pending_buf_size));)M(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),T(t),o=i.pending,i.pending===i.pending_buf_size)){a=1;break}a=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,M(i,a)}while(0!==a);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===a&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),T(t),o=i.pending,i.pending===i.pending_buf_size)){a=1;break}a=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,M(i,a)}while(0!==a);i.gzhead.hcrc&&i.pending>o&&(t.adler=s(t.adler,i.pending_buf,i.pending-o,o)),0===a&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&T(t),i.pending+2<=i.pending_buf_size&&(M(i,255&t.adler),M(i,t.adler>>8&255),t.adler=0,i.status=F)):i.status=F),0!==i.pending){if(T(t),0===t.avail_out)return i.last_flush=-1,u}else if(0===t.avail_in&&Q(e)<=Q(n)&&e!==c)return k(t,-5);if(666===i.status&&0!==t.avail_in)return k(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&666!==i.status){var f=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(H(t),0===t.lookahead)){if(e===l)return L;break}if(t.match_length=0,n=A._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(O(t,!1),0===t.strm.avail_out))return L}return t.insert=0,e===c?(O(t,!0),0===t.strm.avail_out?S:U):t.last_lit&&(O(t,!1),0===t.strm.avail_out)?L:N}(i,e):3===i.strategy?function(t,e){for(var n,r,i,o,s=t.window;;){if(t.lookahead<=x){if(H(t),t.lookahead<=x&&e===l)return L;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=C&&0<t.strstart&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=t.strstart+x;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);t.match_length=x-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=C?(n=A._tr_tally(t,1,t.match_length-C),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=A._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(O(t,!1),0===t.strm.avail_out))return L}return t.insert=0,e===c?(O(t,!0),0===t.strm.avail_out?S:U):t.last_lit&&(O(t,!1),0===t.strm.avail_out)?L:N}(i,e):r[i.level].func(i,e);if(f!==S&&f!==U||(i.status=666),f===L||f===S)return 0===t.avail_out&&(i.last_flush=-1),u;if(f===N&&(1===e?A._tr_align(i):5!==e&&(A._tr_stored_block(i,0,0,!1),3===e&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),T(t),0===t.avail_out))return i.last_flush=-1,u}return e!==c?u:i.wrap<=0?1:(2===i.wrap?(M(i,255&t.adler),M(i,t.adler>>8&255),M(i,t.adler>>16&255),M(i,t.adler>>24&255),M(i,255&t.total_in),M(i,t.total_in>>8&255),M(i,t.total_in>>16&255),M(i,t.total_in>>24&255)):(D(i,t.adler>>>16),D(i,65535&t.adler)),T(t),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?u:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==E&&69!==e&&73!==e&&91!==e&&103!==e&&e!==F&&666!==e?k(t,h):(t.state=null,e===F?k(t,-3):u):h},n.deflateSetDictionary=function(t,e){var n,r,A,s,a,l,c,d,f=e.length;if(!t||!t.state)return h;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==E||n.lookahead)return h;for(1===s&&(t.adler=o(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(I(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,e,f-n.w_size,n.w_size,0),e=d,f=n.w_size),a=t.avail_in,l=t.next_in,c=t.input,t.avail_in=f,t.next_in=0,t.input=e,H(n);n.lookahead>=C;){for(r=n.strstart,A=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--A;);n.strstart=r,n.lookahead=C-1,H(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,t.next_in=l,t.input=c,t.avail_in=a,n.wrap=s,u},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,r,i,A,o,s,a,l,c,u,h,d,f,p,g,m,w,y,v,b,B,C,x,_,E;n=t.state,r=t.next_in,_=t.input,i=r+(t.avail_in-5),A=t.next_out,E=t.output,o=A-(e-t.avail_out),s=A+(t.avail_out-257),a=n.dmax,l=n.wsize,c=n.whave,u=n.wnext,h=n.window,d=n.hold,f=n.bits,p=n.lencode,g=n.distcode,m=(1<<n.lenbits)-1,w=(1<<n.distbits)-1;t:do{f<15&&(d+=_[r++]<<f,f+=8,d+=_[r++]<<f,f+=8),y=p[d&m];e:for(;;){if(d>>>=v=y>>>24,f-=v,0===(v=y>>>16&255))E[A++]=65535&y;else{if(!(16&v)){if(0==(64&v)){y=p[(65535&y)+(d&(1<<v)-1)];continue e}if(32&v){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}b=65535&y,(v&=15)&&(f<v&&(d+=_[r++]<<f,f+=8),b+=d&(1<<v)-1,d>>>=v,f-=v),f<15&&(d+=_[r++]<<f,f+=8,d+=_[r++]<<f,f+=8),y=g[d&w];n:for(;;){if(d>>>=v=y>>>24,f-=v,!(16&(v=y>>>16&255))){if(0==(64&v)){y=g[(65535&y)+(d&(1<<v)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(B=65535&y,f<(v&=15)&&(d+=_[r++]<<f,(f+=8)<v&&(d+=_[r++]<<f,f+=8)),a<(B+=d&(1<<v)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=v,f-=v,(v=A-o)<B){if(c<(v=B-v)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(x=h,(C=0)===u){if(C+=l-v,v<b){for(b-=v;E[A++]=h[C++],--v;);C=A-B,x=E}}else if(u<v){if(C+=l+u-v,(v-=u)<b){for(b-=v;E[A++]=h[C++],--v;);if(C=0,u<b){for(b-=v=u;E[A++]=h[C++],--v;);C=A-B,x=E}}}else if(C+=u-v,v<b){for(b-=v;E[A++]=h[C++],--v;);C=A-B,x=E}for(;2<b;)E[A++]=x[C++],E[A++]=x[C++],E[A++]=x[C++],b-=3;b&&(E[A++]=x[C++],1<b&&(E[A++]=x[C++]))}else{for(C=A-B;E[A++]=E[C++],E[A++]=E[C++],E[A++]=E[C++],2<(b-=3););b&&(E[A++]=E[C++],1<b&&(E[A++]=E[C++]))}break}}break}}while(r<i&&A<s);r-=b=f>>3,d&=(1<<(f-=b<<3))-1,t.next_in=r,t.next_out=A,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=A<s?s-A+257:257-(A-s),n.hold=d,n.bits=f}},{}],49:[function(t,e,n){"use strict";var r=t("../utils/common"),i=t("./adler32"),A=t("./crc32"),o=t("./inffast"),s=t("./inftrees"),a=1,l=2,c=0,u=-2,h=1,d=852,f=592;function p(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=h,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(d),e.distcode=e.distdyn=new r.Buf32(f),e.sane=1,e.back=-1,c):u}function w(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,m(t)):u}function y(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?u:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,w(t))):u}function v(t,e){var n,r;return t?(r=new g,(t.state=r).window=null,(n=y(t,e))!==c&&(t.state=null),n):u}var b,B,C=!0;function x(t){if(C){var e;for(b=new r.Buf32(512),B=new r.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(a,t.lens,0,288,b,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(l,t.lens,0,32,B,0,t.work,{bits:5}),C=!1}t.lencode=b,t.lenbits=9,t.distcode=B,t.distbits=5}function _(t,e,n,i){var A,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(A=o.wsize-o.wnext)&&(A=i),r.arraySet(o.window,e,n-i,A,o.wnext),(i-=A)?(r.arraySet(o.window,e,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=A,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=A))),0}n.inflateReset=w,n.inflateReset2=y,n.inflateResetKeep=m,n.inflateInit=function(t){return v(t,15)},n.inflateInit2=v,n.inflate=function(t,e){var n,d,f,g,m,w,y,v,b,B,C,E,F,L,N,S,U,k,Q,I,T,O,M,D,P=0,H=new r.Buf8(4),R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return u;12===(n=t.state).mode&&(n.mode=13),m=t.next_out,f=t.output,y=t.avail_out,g=t.next_in,d=t.input,w=t.avail_in,v=n.hold,b=n.bits,B=w,C=y,O=c;t:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(2&n.wrap&&35615===v){H[n.check=0]=255&v,H[1]=v>>>8&255,n.check=A(n.check,H,2,0),b=v=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&v)){t.msg="unknown compression method",n.mode=30;break}if(b-=4,T=8+(15&(v>>>=4)),0===n.wbits)n.wbits=T;else if(T>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<T,t.adler=n.check=1,n.mode=512&v?10:12,b=v=0;break;case 2:for(;b<16;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(n.flags=v,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=v>>8&1),512&n.flags&&(H[0]=255&v,H[1]=v>>>8&255,n.check=A(n.check,H,2,0)),b=v=0,n.mode=3;case 3:for(;b<32;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}n.head&&(n.head.time=v),512&n.flags&&(H[0]=255&v,H[1]=v>>>8&255,H[2]=v>>>16&255,H[3]=v>>>24&255,n.check=A(n.check,H,4,0)),b=v=0,n.mode=4;case 4:for(;b<16;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}n.head&&(n.head.xflags=255&v,n.head.os=v>>8),512&n.flags&&(H[0]=255&v,H[1]=v>>>8&255,n.check=A(n.check,H,2,0)),b=v=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}n.length=v,n.head&&(n.head.extra_len=v),512&n.flags&&(H[0]=255&v,H[1]=v>>>8&255,n.check=A(n.check,H,2,0)),b=v=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(w<(E=n.length)&&(E=w),E&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,g,E,T)),512&n.flags&&(n.check=A(n.check,d,E,g)),w-=E,g+=E,n.length-=E),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===w)break t;for(E=0;T=d[g+E++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T)),T&&E<w;);if(512&n.flags&&(n.check=A(n.check,d,E,g)),w-=E,g+=E,T)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===w)break t;for(E=0;T=d[g+E++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T)),T&&E<w;);if(512&n.flags&&(n.check=A(n.check,d,E,g)),w-=E,g+=E,T)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(v!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}b=v=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}t.adler=n.check=p(v),b=v=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=m,t.avail_out=y,t.next_in=g,t.avail_in=w,n.hold=v,n.bits=b,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){v>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}switch(n.last=1&v,b-=1,3&(v>>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6!==e)break;v>>>=2,b-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}v>>>=2,b-=2;break;case 14:for(v>>>=7&b,b-=7&b;b<32;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if((65535&v)!=(v>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&v,b=v=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(E=n.length){if(w<E&&(E=w),y<E&&(E=y),0===E)break t;r.arraySet(f,d,g,E,m),w-=E,g+=E,y-=E,m+=E,n.length-=E;break}n.mode=12;break;case 17:for(;b<14;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(n.nlen=257+(31&v),v>>>=5,b-=5,n.ndist=1+(31&v),v>>>=5,b-=5,n.ncode=4+(15&v),v>>>=4,b-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}n.lens[R[n.have++]]=7&v,v>>>=3,b-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,M={bits:n.lenbits},O=s(0,n.lens,0,19,n.lencode,0,n.work,M),n.lenbits=M.bits,O){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;S=(P=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,U=65535&P,!((N=P>>>24)<=b);){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(U<16)v>>>=N,b-=N,n.lens[n.have++]=U;else{if(16===U){for(D=N+2;b<D;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(v>>>=N,b-=N,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}T=n.lens[n.have-1],E=3+(3&v),v>>>=2,b-=2}else if(17===U){for(D=N+3;b<D;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}b-=N,T=0,E=3+(7&(v>>>=N)),v>>>=3,b-=3}else{for(D=N+7;b<D;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}b-=N,T=0,E=11+(127&(v>>>=N)),v>>>=7,b-=7}if(n.have+E>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;E--;)n.lens[n.have++]=T}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,M={bits:n.lenbits},O=s(a,n.lens,0,n.nlen,n.lencode,0,n.work,M),n.lenbits=M.bits,O){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,M={bits:n.distbits},O=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,M),n.distbits=M.bits,O){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=w&&258<=y){t.next_out=m,t.avail_out=y,t.next_in=g,t.avail_in=w,n.hold=v,n.bits=b,o(t,C),m=t.next_out,f=t.output,y=t.avail_out,g=t.next_in,d=t.input,w=t.avail_in,v=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;S=(P=n.lencode[v&(1<<n.lenbits)-1])>>>16&255,U=65535&P,!((N=P>>>24)<=b);){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(S&&0==(240&S)){for(k=N,Q=S,I=U;S=(P=n.lencode[I+((v&(1<<k+Q)-1)>>k)])>>>16&255,U=65535&P,!(k+(N=P>>>24)<=b);){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}v>>>=k,b-=k,n.back+=k}if(v>>>=N,b-=N,n.back+=N,n.length=U,0===S){n.mode=26;break}if(32&S){n.back=-1,n.mode=12;break}if(64&S){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&S,n.mode=22;case 22:if(n.extra){for(D=n.extra;b<D;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}n.length+=v&(1<<n.extra)-1,v>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;S=(P=n.distcode[v&(1<<n.distbits)-1])>>>16&255,U=65535&P,!((N=P>>>24)<=b);){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(0==(240&S)){for(k=N,Q=S,I=U;S=(P=n.distcode[I+((v&(1<<k+Q)-1)>>k)])>>>16&255,U=65535&P,!(k+(N=P>>>24)<=b);){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}v>>>=k,b-=k,n.back+=k}if(v>>>=N,b-=N,n.back+=N,64&S){t.msg="invalid distance code",n.mode=30;break}n.offset=U,n.extra=15&S,n.mode=24;case 24:if(n.extra){for(D=n.extra;b<D;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}n.offset+=v&(1<<n.extra)-1,v>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===y)break t;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}F=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),L=n.window}else L=f,F=m-n.offset,E=n.length;for(y<E&&(E=y),y-=E,n.length-=E;f[m++]=L[F++],--E;);0===n.length&&(n.mode=21);break;case 26:if(0===y)break t;f[m++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===w)break t;w--,v|=d[g++]<<b,b+=8}if(C-=y,t.total_out+=C,n.total+=C,C&&(t.adler=n.check=n.flags?A(n.check,f,C,m-C):i(n.check,f,C,m-C)),C=y,(n.flags?v:p(v))!==n.check){t.msg="incorrect data check",n.mode=30;break}b=v=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===w)break t;w--,v+=d[g++]<<b,b+=8}if(v!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}b=v=0}n.mode=29;case 29:O=1;break t;case 30:O=-3;break t;case 31:return-4;case 32:default:return u}return t.next_out=m,t.avail_out=y,t.next_in=g,t.avail_in=w,n.hold=v,n.bits=b,(n.wsize||C!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&_(t,t.output,t.next_out,C-t.avail_out)?(n.mode=31,-4):(B-=t.avail_in,C-=t.avail_out,t.total_in+=B,t.total_out+=C,n.total+=C,n.wrap&&C&&(t.adler=n.check=n.flags?A(n.check,f,C,t.next_out-C):i(n.check,f,C,t.next_out-C)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==B&&0===C||4===e)&&O===c&&(O=-5),O)},n.inflateEnd=function(t){if(!t||!t.state)return u;var e=t.state;return e.window&&(e.window=null),t.state=null,c},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?u:((n.head=e).done=!1,c):u},n.inflateSetDictionary=function(t,e){var n,r=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?u:11===n.mode&&i(1,e,r,0)!==n.check?-3:_(t,e,r,r)?(n.mode=31,-4):(n.havedict=1,c):u},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var r=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],A=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,a,l,c,u,h){var d,f,p,g,m,w,y,v,b,B=h.bits,C=0,x=0,_=0,E=0,F=0,L=0,N=0,S=0,U=0,k=0,Q=null,I=0,T=new r.Buf16(16),O=new r.Buf16(16),M=null,D=0;for(C=0;C<=15;C++)T[C]=0;for(x=0;x<a;x++)T[e[n+x]]++;for(F=B,E=15;1<=E&&0===T[E];E--);if(E<F&&(F=E),0===E)return l[c++]=20971520,l[c++]=20971520,h.bits=1,0;for(_=1;_<E&&0===T[_];_++);for(F<_&&(F=_),C=S=1;C<=15;C++)if(S<<=1,(S-=T[C])<0)return-1;if(0<S&&(0===t||1!==E))return-1;for(O[1]=0,C=1;C<15;C++)O[C+1]=O[C]+T[C];for(x=0;x<a;x++)0!==e[n+x]&&(u[O[e[n+x]]++]=x);if(w=0===t?(Q=M=u,19):1===t?(Q=i,I-=257,M=A,D-=257,256):(Q=o,M=s,-1),C=_,m=c,N=x=k=0,p=-1,g=(U=1<<(L=F))-1,1===t&&852<U||2===t&&592<U)return 1;for(;;){for(y=C-N,b=u[x]<w?(v=0,u[x]):u[x]>w?(v=M[D+u[x]],Q[I+u[x]]):(v=96,0),d=1<<C-N,_=f=1<<L;l[m+(k>>N)+(f-=d)]=y<<24|v<<16|b|0,0!==f;);for(d=1<<C-1;k&d;)d>>=1;if(0!==d?(k&=d-1,k+=d):k=0,x++,0==--T[C]){if(C===E)break;C=e[n+u[x]]}if(F<C&&(k&g)!==p){for(0===N&&(N=F),m+=_,S=1<<(L=C-N);L+N<E&&!((S-=T[L+N])<=0);)L++,S<<=1;if(U+=1<<L,1===t&&852<U||2===t&&592<U)return 1;l[p=k&g]=F<<24|L<<16|m-c|0}}return 0!==k&&(l[m+k]=C-N<<24|64<<16|0),h.bits=F,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var r=t("../utils/common"),i=0,A=1;function o(t){for(var e=t.length;0<=--e;)t[e]=0}var s=0,a=29,l=256,c=l+1+a,u=30,h=19,d=2*c+1,f=15,p=16,g=7,m=256,w=16,y=17,v=18,b=[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],B=[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],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(c+2));o(_);var E=new Array(2*u);o(E);var F=new Array(512);o(F);var L=new Array(256);o(L);var N=new Array(a);o(N);var S,U,k,Q=new Array(u);function I(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function T(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function O(t){return t<256?F[t]:F[256+(t>>>7)]}function M(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function D(t,e,n){t.bi_valid>p-n?(t.bi_buf|=e<<t.bi_valid&65535,M(t,t.bi_buf),t.bi_buf=e>>p-t.bi_valid,t.bi_valid+=n-p):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function P(t,e,n){D(t,n[2*e],n[2*e+1])}function H(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function R(t,e,n){var r,i,A=new Array(f+1),o=0;for(r=1;r<=f;r++)A[r]=o=o+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=H(A[s]++,s))}}function j(t){var e;for(e=0;e<c;e++)t.dyn_ltree[2*e]=0;for(e=0;e<u;e++)t.dyn_dtree[2*e]=0;for(e=0;e<h;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*m]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function z(t){8<t.bi_valid?M(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function q(t,e,n,r){var i=2*e,A=2*n;return t[i]<t[A]||t[i]===t[A]&&r[e]<=r[n]}function K(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&q(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!q(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function G(t,e,n){var r,i,A,o,s=0;if(0!==t.last_lit)for(;r=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===r?P(t,i,e):(P(t,(A=L[i])+l+1,e),0!==(o=b[A])&&D(t,i-=N[A],o),P(t,A=O(--r),n),0!==(o=B[A])&&D(t,r-=Q[A],o)),s<t.last_lit;);P(t,m,e)}function V(t,e){var n,r,i,A=e.dyn_tree,o=e.stat_desc.static_tree,s=e.stat_desc.has_stree,a=e.stat_desc.elems,l=-1;for(t.heap_len=0,t.heap_max=d,n=0;n<a;n++)0!==A[2*n]?(t.heap[++t.heap_len]=l=n,t.depth[n]=0):A[2*n+1]=0;for(;t.heap_len<2;)A[2*(i=t.heap[++t.heap_len]=l<2?++l:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=o[2*i+1]);for(e.max_code=l,n=t.heap_len>>1;1<=n;n--)K(t,A,n);for(i=a;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],K(t,A,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,A[2*i]=A[2*n]+A[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,A[2*n+1]=A[2*r+1]=i,t.heap[1]=i++,K(t,A,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,A,o,s,a=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,u=e.stat_desc.has_stree,h=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(A=0;A<=f;A++)t.bl_count[A]=0;for(a[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<d;n++)g<(A=a[2*a[2*(r=t.heap[n])+1]+1]+1)&&(A=g,m++),a[2*r+1]=A,l<r||(t.bl_count[A]++,o=0,p<=r&&(o=h[r-p]),s=a[2*r],t.opt_len+=s*(A+o),u&&(t.static_len+=s*(c[2*r+1]+o)));if(0!==m){do{for(A=g-1;0===t.bl_count[A];)A--;t.bl_count[A]--,t.bl_count[A+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(A=g;0!==A;A--)for(r=t.bl_count[A];0!==r;)l<(i=t.heap[--n])||(a[2*i+1]!==A&&(t.opt_len+=(A-a[2*i+1])*a[2*i],a[2*i+1]=A),r--)}}(t,e),R(A,l,t.bl_count)}function W(t,e,n){var r,i,A=-1,o=e[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=e[2*(r+1)+1],++s<a&&i===o||(s<l?t.bl_tree[2*i]+=s:0!==i?(i!==A&&t.bl_tree[2*i]++,t.bl_tree[2*w]++):s<=10?t.bl_tree[2*y]++:t.bl_tree[2*v]++,A=i,l=(s=0)===o?(a=138,3):i===o?(a=6,3):(a=7,4))}function Y(t,e,n){var r,i,A=-1,o=e[1],s=0,a=7,l=4;for(0===o&&(a=138,l=3),r=0;r<=n;r++)if(i=o,o=e[2*(r+1)+1],!(++s<a&&i===o)){if(s<l)for(;P(t,i,t.bl_tree),0!=--s;);else 0!==i?(i!==A&&(P(t,i,t.bl_tree),s--),P(t,w,t.bl_tree),D(t,s-3,2)):s<=10?(P(t,y,t.bl_tree),D(t,s-3,3)):(P(t,v,t.bl_tree),D(t,s-11,7));A=i,l=(s=0)===o?(a=138,3):i===o?(a=6,3):(a=7,4)}}o(Q);var X=!1;function J(t,e,n,i){D(t,(s<<1)+(i?1:0),3),function(t,e,n,i){z(t),i&&(M(t,n),M(t,~n)),r.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n,!0)}n._tr_init=function(t){X||(function(){var t,e,n,r,i,A=new Array(f+1);for(r=n=0;r<a-1;r++)for(N[r]=n,t=0;t<1<<b[r];t++)L[n++]=r;for(L[n-1]=r,r=i=0;r<16;r++)for(Q[r]=i,t=0;t<1<<B[r];t++)F[i++]=r;for(i>>=7;r<u;r++)for(Q[r]=i<<7,t=0;t<1<<B[r]-7;t++)F[256+i++]=r;for(e=0;e<=f;e++)A[e]=0;for(t=0;t<=143;)_[2*t+1]=8,t++,A[8]++;for(;t<=255;)_[2*t+1]=9,t++,A[9]++;for(;t<=279;)_[2*t+1]=7,t++,A[7]++;for(;t<=287;)_[2*t+1]=8,t++,A[8]++;for(R(_,c+1,A),t=0;t<u;t++)E[2*t+1]=5,E[2*t]=H(t,5);S=new I(_,b,l+1,c,f),U=new I(E,B,0,u,f),k=new I(new Array(0),C,0,h,g)}(),X=!0),t.l_desc=new T(t.dyn_ltree,S),t.d_desc=new T(t.dyn_dtree,U),t.bl_desc=new T(t.bl_tree,k),t.bi_buf=0,t.bi_valid=0,j(t)},n._tr_stored_block=J,n._tr_flush_block=function(t,e,n,r){var o,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return i;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return A;for(e=32;e<l;e++)if(0!==t.dyn_ltree[2*e])return A;return i}(t)),V(t,t.l_desc),V(t,t.d_desc),a=function(t){var e;for(W(t,t.dyn_ltree,t.l_desc.max_code),W(t,t.dyn_dtree,t.d_desc.max_code),V(t,t.bl_desc),e=h-1;3<=e&&0===t.bl_tree[2*x[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&-1!==e?J(t,e,n,r):4===t.strategy||s===o?(D(t,2+(r?1:0),3),G(t,_,E)):(D(t,4+(r?1:0),3),function(t,e,n,r){var i;for(D(t,e-257,5),D(t,n-1,5),D(t,r-4,4),i=0;i<r;i++)D(t,t.bl_tree[2*x[i]+1],3);Y(t,t.dyn_ltree,e-1),Y(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),G(t,t.dyn_ltree,t.dyn_dtree)),j(t),r&&z(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(L[n]+l+1)]++,t.dyn_dtree[2*O(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){D(t,2,3),P(t,m,_),function(t){16===t.bi_valid?(M(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t,e){"use strict";if(!t.setImmediate){var n,i,A,o,s=1,a={},l=!1,c=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,n="[object process]"==={}.toString.call(t.process)?function(t){r.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(o="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",f,!1):t.attachEvent("onmessage",f),function(e){t.postMessage(o+e,"*")}):t.MessageChannel?((A=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){A.port2.postMessage(t)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,function(t){var e=c.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var i={callback:t,args:e};return a[s]=i,n(s),s++},u.clearImmediate=h}function h(t){delete a[t]}function d(t){if(l)setTimeout(d,0,t);else{var n=a[t];if(n){l=!0;try{!function(t){var n=t.callback,r=t.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(e,r)}}(n)}finally{h(t),l=!1}}}}function f(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}))}).call(this,n("b639").Buffer,n("c8ba"),n("4362"))},"5e8c":function(t,e,n){var r=n("b636"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"601e":function(t,e,n){var r=n("443d"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},6053:function(t,e,n){var r=n("1a89"),i=n("fe11"),A=n("4d80"),o=n("6bd1"),s=n("2ed3"),a=n("2347"),l=i("wks"),c=r.Symbol,u=c&&c["for"],h=a?c:c&&c.withoutSetter||o;t.exports=function(t){if(!A(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&A(c,t)?l[t]=c[t]:l[t]=a&&u?u(e):h(e)}return l[t]}},6171:function(t,e){function n(e){return t.exports=n="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.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"660c":function(t,e,n){var r=n("1a89"),i=n("f2fc"),A="__core-js_shared__",o=r[A]||i(A,{});t.exports=o},6632:function(t,e,n){var r=n("2f2d"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6797:function(t,e){t.exports={}},"682c":function(t,e,n){"use strict";var r=function(t){return i(t)&&!A(t)};function i(t){return!!t&&"object"===typeof t}function A(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||a(t)}var o="function"===typeof Symbol&&Symbol.for,s=o?Symbol.for("react.element"):60103;function a(t){return t.$$typeof===s}function l(t){return Array.isArray(t)?[]:{}}function c(t,e){var n=e&&!0===e.clone;return n&&r(t)?d(l(t),t,e):t}function u(t,e,n){var i=t.slice();return e.forEach((function(e,A){"undefined"===typeof i[A]?i[A]=c(e,n):r(e)?i[A]=d(t[A],e,n):-1===t.indexOf(e)&&i.push(c(e,n))})),i}function h(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=c(t[e],n)})),Object.keys(e).forEach((function(A){r(e[A])&&t[A]?i[A]=d(t[A],e[A],n):i[A]=c(e[A],n)})),i}function d(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),A=n||{arrayMerge:u},o=r===i;if(o){if(r){var s=A.arrayMerge||u;return s(t,e,n)}return h(t,e,n)}return c(e,n)}d.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return d(t,n,e)}))};var f=d;t.exports=f},"6ba1":function(t,e,n){var r=n("2f2d"),i=Function.prototype,A=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(A):function(){return o.apply(A,arguments)})},"6bd1":function(t,e,n){var r=n("46ab"),i=0,A=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+A,36)}},"6c12":function(t,e,n){var r=n("46ab"),i=Error,A=r("".replace),o=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,a=s.test(o);t.exports=function(t,e){if(a&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=A(t,s,"");return t}},"6e16":function(t,e,n){var r=n("8d5c"),i=n("acc5"),A=n("5265"),o=n("cf4b"),s=n("4f65"),a=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",h="configurable",d="writable";e.f=r?A?function(t,e,n){if(o(t),e=s(e),o(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=c(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:u in n?n[u]:r[u],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(o(t),e=s(e),o(n),i)try{return l(t,e,n)}catch(r){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"77be":function(t,e,n){var r=n("5e8c"),i=String,A=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw A("Can't set "+i(t)+" as a prototype")}},"77ee":function(t,e,n){"use strict";(function(t){var r=n("6171"),i=n.n(r),A=n("dcfb"),o=function(){return"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:this}();function s(){o.console&&"function"==typeof o.console.log&&o.console.log.apply(o.console,arguments)}var a={log:s,warn:function(t){o.console&&("function"==typeof o.console.warn?o.console.warn.apply(o.console,arguments):s.call(null,arguments))},error:function(t){o.console&&("function"==typeof o.console.error?o.console.error.apply(o.console,arguments):s(t))}};function l(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){f(r.response,e,n)},r.onerror=function(){a.error("could not download file")},r.send()}function c(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function u(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var h,d,f=o.saveAs||("object"!==("undefined"==typeof window?"undefined":i()(window))||window!==o?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=o.URL||o.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?c(i.href)?l(t,e,n):u(i,i.target="_blank"):u(i)):(i.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(i.href)}),4e4),setTimeout((function(){u(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(c(t))l(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){u(r)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==i()(e)&&(a.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return l(t,e,n);var A="application/octet-stream"===t.type,s=/constructor/i.test(o.HTMLElement)||o.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||A&&s)&&"object"===("undefined"==typeof FileReader?"undefined":i()(FileReader))){var c=new FileReader;c.onloadend=function(){var t=c.result;t=a?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var u=o.URL||o.webkitURL,h=u.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){u.revokeObjectURL(h)}),4e4)}});
/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function p(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r<n.length;r++){var i=n[r].re,A=n[r].process,o=i.exec(t);o&&(e=A(o),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n
/**
* @license
* Joseph Myers does not specify a particular license for his work.
*
* Author: Joseph Myers
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
*
* Modified by: Owen Leong
*/}}function g(t,e){var n=t[0],r=t[1],i=t[2],A=t[3];n=w(n,r,i,A,e[0],7,-680876936),A=w(A,n,r,i,e[1],12,-389564586),i=w(i,A,n,r,e[2],17,606105819),r=w(r,i,A,n,e[3],22,-1044525330),n=w(n,r,i,A,e[4],7,-176418897),A=w(A,n,r,i,e[5],12,1200080426),i=w(i,A,n,r,e[6],17,-1473231341),r=w(r,i,A,n,e[7],22,-45705983),n=w(n,r,i,A,e[8],7,1770035416),A=w(A,n,r,i,e[9],12,-1958414417),i=w(i,A,n,r,e[10],17,-42063),r=w(r,i,A,n,e[11],22,-1990404162),n=w(n,r,i,A,e[12],7,1804603682),A=w(A,n,r,i,e[13],12,-40341101),i=w(i,A,n,r,e[14],17,-1502002290),n=y(n,r=w(r,i,A,n,e[15],22,1236535329),i,A,e[1],5,-165796510),A=y(A,n,r,i,e[6],9,-1069501632),i=y(i,A,n,r,e[11],14,643717713),r=y(r,i,A,n,e[0],20,-373897302),n=y(n,r,i,A,e[5],5,-701558691),A=y(A,n,r,i,e[10],9,38016083),i=y(i,A,n,r,e[15],14,-660478335),r=y(r,i,A,n,e[4],20,-405537848),n=y(n,r,i,A,e[9],5,568446438),A=y(A,n,r,i,e[14],9,-1019803690),i=y(i,A,n,r,e[3],14,-187363961),r=y(r,i,A,n,e[8],20,1163531501),n=y(n,r,i,A,e[13],5,-1444681467),A=y(A,n,r,i,e[2],9,-51403784),i=y(i,A,n,r,e[7],14,1735328473),n=v(n,r=y(r,i,A,n,e[12],20,-1926607734),i,A,e[5],4,-378558),A=v(A,n,r,i,e[8],11,-2022574463),i=v(i,A,n,r,e[11],16,1839030562),r=v(r,i,A,n,e[14],23,-35309556),n=v(n,r,i,A,e[1],4,-1530992060),A=v(A,n,r,i,e[4],11,1272893353),i=v(i,A,n,r,e[7],16,-155497632),r=v(r,i,A,n,e[10],23,-1094730640),n=v(n,r,i,A,e[13],4,681279174),A=v(A,n,r,i,e[0],11,-358537222),i=v(i,A,n,r,e[3],16,-722521979),r=v(r,i,A,n,e[6],23,76029189),n=v(n,r,i,A,e[9],4,-640364487),A=v(A,n,r,i,e[12],11,-421815835),i=v(i,A,n,r,e[15],16,530742520),n=b(n,r=v(r,i,A,n,e[2],23,-995338651),i,A,e[0],6,-198630844),A=b(A,n,r,i,e[7],10,1126891415),i=b(i,A,n,r,e[14],15,-1416354905),r=b(r,i,A,n,e[5],21,-57434055),n=b(n,r,i,A,e[12],6,1700485571),A=b(A,n,r,i,e[3],10,-1894986606),i=b(i,A,n,r,e[10],15,-1051523),r=b(r,i,A,n,e[1],21,-2054922799),n=b(n,r,i,A,e[8],6,1873313359),A=b(A,n,r,i,e[15],10,-30611744),i=b(i,A,n,r,e[6],15,-1560198380),r=b(r,i,A,n,e[13],21,1309151649),n=b(n,r,i,A,e[4],6,-145523070),A=b(A,n,r,i,e[11],10,-1120210379),i=b(i,A,n,r,e[2],15,718787259),r=b(r,i,A,n,e[9],21,-343485551),t[0]=N(n,t[0]),t[1]=N(r,t[1]),t[2]=N(i,t[2]),t[3]=N(A,t[3])}function m(t,e,n,r,i,A){return e=N(N(e,t),N(r,A)),N(e<<i|e>>>32-i,n)}function w(t,e,n,r,i,A,o){return m(e&n|~e&r,t,e,i,A,o)}function y(t,e,n,r,i,A,o){return m(e&r|n&~r,t,e,i,A,o)}function v(t,e,n,r,i,A,o){return m(e^n^r,t,e,i,A,o)}function b(t,e,n,r,i,A,o){return m(n^(e|~r),t,e,i,A,o)}function B(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)g(r,C(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(g(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,g(r,i),r}function C(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}h=o.atob.bind(o),d=o.btoa.bind(o);var x="0123456789abcdef".split("");function _(t){for(var e="",n=0;n<4;n++)e+=x[t>>8*n+4&15]+x[t>>8*n&15];return e}function E(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function F(t){return B(t).map(E).join("")}var L="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=_(t[e]);return t.join("")}(B("hello"));function N(t,e){if(L){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}
/**
* @license
* FPDF is released under a permissive license: there is no usage restriction.
* You may embed it freely in your application (commercial or not), with or
* without modifications.
*
* Reference: http://www.fpdf.org/en/script/script37.php
*/function S(t,e){var n,r,i,A;if(t!==n){for(var o=(i=t,A=1+(256/t.length>>0),new Array(A+1).join(i)),s=[],a=0;a<256;a++)s[a]=a;var l=0;for(a=0;a<256;a++){var c=s[a];l=(l+c+o.charCodeAt(a))%256,s[a]=s[l],s[l]=c}n=t,r=s}else s=r;var u=e.length,h=0,d=0,f="";for(a=0;a<u;a++)d=(d+(c=s[h=(h+1)%256]))%256,s[h]=s[d],s[d]=c,o=s[(s[h]+s[d])%256],f+=String.fromCharCode(e.charCodeAt(a)^o);return f}
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var U={print:4,modify:8,copy:16,"annot-forms":32};function k(t,e,n,r){this.v=1,this.r=2;var i=192;t.forEach((function(t){if(void 0!==U.perm)throw new Error("Invalid permission: "+t);i+=U[t]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var A=(e+this.padding).substr(0,32),o=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(A,o),this.P=-(1+(255^i)),this.encryptionKey=F(A+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=S(this.encryptionKey,this.padding)}function Q(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);e+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return e}function I(t){if("object"!==i()(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var A in e[n]){var s=e[n][A];try{s[0].apply(t,r)}catch(n){o.console&&a.error("jsPDF PubSub Error",n.message,n)}s[1]&&i.push(A)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function T(t){if(!(this instanceof T))return new T(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function O(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function M(t,e,n,r,i){if(!(this instanceof M))return new M(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,O.call(this,r,i)}function D(t,e,n,r,i){if(!(this instanceof D))return new D(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,O.call(this,r,i)}function P(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],A=arguments[2],s=arguments[3],l=[],c=1,u=16,h="S",g=null;"object"===i()(t=t||{})&&(n=t.orientation,r=t.unit||r,A=t.format||A,s=t.compress||t.compressPdf||s,null!==(g=t.encryption||null)&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),c="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),h=t.defaultPathOperation||"S"),l=t.filters||(!0===s?["FlateEncode"]:l),r=r||"mm",n=(""+(n||"P")).toLowerCase();var m=t.putOnlyUsedFonts||!1,w={},y={internal:{},__private__:{}};y.__private__.PubSub=I;var v="1.3",b=y.__private__.getPdfVersion=function(){return v};y.__private__.setPdfVersion=function(t){v=t};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return B};var C=y.__private__.getPageFormat=function(t){return B[t]};A=A||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},_=x.COMPAT;function E(){this.saveGraphicsState(),ut(new Kt(Et,0,0,-Et,0,Hn()*Et).toString()+" cm"),this.setFontSize(this.getFontSize()/Et),h="n",_=x.ADVANCED}function F(){this.restoreGraphicsState(),h="S",_=x.COMPAT}var L=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=_===x.COMPAT;return e&&E.call(this),"function"!=typeof t||(t(this),e&&F.call(this)),this},y.compatAPI=function(t){var e=_===x.ADVANCED;return e&&F.call(this),"function"!=typeof t||(t(this),e&&E.call(this)),this},y.isAdvancedAPI=function(){return _===x.ADVANCED};var N,S=function(t){if(_!==x.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},U=y.roundToPrecision=y.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};N=y.hpf=y.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return U(t,u)}:"smart"===u?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return U(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return U(t,16)};var O=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return U(t,2)},H=y.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return U(t,3)},R=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return _===x.COMPAT?t*Et:_===x.ADVANCED?t:void 0},j=function(t){return _===x.COMPAT?Hn()-t:_===x.ADVANCED?t:void 0},z=function(t){return R(j(t))};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var q,K="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return K},V=y.__private__.setFileId=function(t){return K=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():K.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==g&&(Ve=new k(g.userPermissions,g.userPassword,g.ownerPassword,K)),K};y.setFileId=function(t){return V(t),this},y.getFileId=function(){return G()};var W=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",r=Math.floor(Math.abs(e/60)),i=Math.abs(e%60),A=[n,$(r),"'",$(i),"'"].join("");return["D:",t.getFullYear(),$(t.getMonth()+1),$(t.getDate()),$(t.getHours()),$(t.getMinutes()),$(t.getSeconds()),A].join("")},Y=y.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,r=parseInt(t.substr(8,2),10),i=parseInt(t.substr(10,2),10),A=parseInt(t.substr(12,2),10),o=parseInt(t.substr(14,2),10);return new Date(e,n,r,i,A,o,0)},X=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=W(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return q=e},J=y.__private__.getCreationDate=function(t){var e=q;return"jsDate"===t&&(e=Y(q)),e};y.setCreationDate=function(t){return X(t),this},y.getCreationDate=function(t){return J(t)};var Z,$=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},et=0,nt=[],rt=[],it=0,At=[],ot=[],st=!1,at=rt,lt=function(){et=0,it=0,rt=[],nt=[],At=[],$t=Xt(),te=Xt()};y.__private__.setCustomOutputDestination=function(t){st=!0,at=t};var ct=function(t){st||(at=t)};y.__private__.resetCustomOutputDestination=function(){st=!1,at=rt};var ut=y.__private__.out=function(t){return t=t.toString(),it+=t.length+1,at.push(t),at},ht=y.__private__.write=function(t){return ut(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},dt=y.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},ft=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return ft};var pt=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return pt=_===x.ADVANCED?t/Et:t,this};var gt,mt=y.__private__.getFontSize=y.getFontSize=function(){return _===x.COMPAT?pt:pt*Et},wt=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return wt=t,this},y.__private__.getR2L=y.getR2L=function(){return wt};var yt,vt=y.__private__.setZoomMode=function(t){var e=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))gt=t;else if(isNaN(t)){if(-1===e.indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');gt=t}else gt=parseInt(t,10)};y.__private__.getZoomMode=function(){return gt};var bt,Bt=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');yt=t};y.__private__.getPageMode=function(){return yt};var Ct=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');bt=t};y.__private__.getLayoutMode=function(){return bt},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,n){return vt(t),Ct(e),Bt(n),this};var xt={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return xt[t]},y.__private__.getDocumentProperties=function(){return xt},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in xt)xt.hasOwnProperty(e)&&t[e]&&(xt[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(xt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return xt[t]=e};var _t,Et,Ft,Lt,Nt,St={},Ut={},kt=[],Qt={},It={},Tt={},Ot={},Mt=null,Dt=0,Pt=[],Ht=new I(y),Rt=t.hotfixes||[],jt={},zt={},qt=[],Kt=function t(e,n,r,i,A,o){if(!(this instanceof t))return new t(e,n,r,i,A,o);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(A)&&(A=0),isNaN(o)&&(o=0),this._matrix=[e,n,r,i,A,o]};Object.defineProperty(Kt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Kt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Kt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Kt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Kt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Kt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Kt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Kt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Kt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Kt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Kt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Kt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Kt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Kt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Kt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Kt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Kt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(t)},Kt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,r=t.shx*this.sx+t.sy*this.shx,i=t.shx*this.shy+t.sy*this.sy,A=t.tx*this.sx+t.ty*this.shx+this.tx,o=t.tx*this.shy+t.ty*this.sy+this.ty;return new Kt(e,n,r,i,A,o)},Kt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,A=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*n+(e/=o)*r;n-=t*s,r-=e*s;var a=Math.sqrt(n*n+r*r);return s/=a,t*(r/=a)<e*(n/=a)&&(t=-t,e=-e,s=-s,o=-o),{scale:new Kt(o,0,0,a,0,0),translate:new Kt(1,0,0,1,i,A),rotate:new Kt(t,e,-e,t,0,0),skew:new Kt(1,0,s,1,0,0)}},Kt.prototype.toString=function(t){return this.join(" ")},Kt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,A=this.ty,o=1/(t*r-e*n),s=r*o,a=-e*o,l=-n*o,c=t*o;return new Kt(s,a,l,c,-s*i-l*A,-a*i-c*A)},Kt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new kn(e,n)},Kt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new kn(t.x+t.w,t.y+t.h));return new Qn(e.x,e.y,n.x-e.x,n.y-e.y)},Kt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,A=this.ty;return new Kt(t,e,n,r,i,A)},y.Matrix=Kt;var Gt=y.matrixMult=function(t,e){return e.multiply(t)},Vt=new Kt(1,0,0,1,0,0);y.unitMatrix=y.identityMatrix=Vt;var Wt=function(t,e){if(!It[t]){var n=(e instanceof M?"Sh":"P")+(Object.keys(Qt).length+1).toString(10);e.id=n,It[t]=n,Qt[n]=e,Ht.publish("addPattern",e)}};y.ShadingPattern=M,y.TilingPattern=D,y.addShadingPattern=function(t,e){return S("addShadingPattern()"),Wt(t,e),this},y.beginTilingPattern=function(t){S("beginTilingPattern()"),Tn(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},y.endTilingPattern=function(t,e){S("endTilingPattern()"),e.stream=ot[Z].join("\n"),Wt(t,e),Ht.publish("endTilingPattern",e),qt.pop().restore()};var Yt=y.__private__.newObject=function(){var t=Xt();return Jt(t,!0),t},Xt=y.__private__.newObjectDeferred=function(){return et++,nt[et]=function(){return it},et},Jt=function(t,e){return e="boolean"==typeof e&&e,nt[t]=it,e&&ut(t+" 0 obj"),t},Zt=y.__private__.newAdditionalObject=function(){var t={objId:Xt(),content:""};return At.push(t),t},$t=Xt(),te=Xt(),ee=y.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var r="#",i=0;i<3;i++)r+=("0"+Math.floor(255*parseFloat(e[i])).toString(16)).slice(-2);return r},ne=y.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,r=t.ch2,A=t.ch3,o=t.ch4,s="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var a=new p(n);if(a.ok)n=a.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,r=l>>8&255,A=255&l}if(void 0===r||void 0===o&&n===r&&r===A)if("string"==typeof n)e=n+" "+s[0];else switch(t.precision){case 2:e=O(n/255)+" "+s[0];break;case 3:default:e=H(n/255)+" "+s[0]}else if(void 0===o||"object"===i()(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");if("string"==typeof n)e=[n,r,A,s[1]].join(" ");else switch(t.precision){case 2:e=[O(n/255),O(r/255),O(A/255),s[1]].join(" ");break;default:case 3:e=[H(n/255),H(r/255),H(A/255),s[1]].join(" ")}}else if("string"==typeof n)e=[n,r,A,o,s[2]].join(" ");else switch(t.precision){case 2:e=[O(n),O(r),O(A),O(o),s[2]].join(" ");break;case 3:default:e=[H(n),H(r),H(A),H(o),s[2]].join(" ")}return e},re=y.__private__.getFilters=function(){return l},ie=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||re(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,A=e.length,o=t.objectId,s=function(t){return t};if(null!==g&&void 0===o)throw new Error("ObjectId must be passed to putStream for file encryption");null!==g&&(s=Ve.encryptor(o,0));var a={};!0===n&&(n=["FlateEncode"]);var l=t.additionalKeyValues||[],c=(a=void 0!==P.API.processDataByFilters?P.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(l.push({key:"Length",value:a.data.length}),!0===i&&l.push({key:"Length1",value:A})),0!=c.length)if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var u=0;u<l.length;u+=1)if("DecodeParms"===l[u].key){for(var h=[],d=0;d<a.reverseChain.split("/").length-1;d+=1)h.push("null");h.push(l[u].value),l[u].value="["+h.join(" ")+"]"}}ut("<<");for(var f=0;f<l.length;f++)ut("/"+l[f].key+" "+l[f].value);ut(">>"),0!==a.data.length&&(ut("stream"),ut(s(a.data)),ut("endstream"))},Ae=y.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;Jt(r,!0),ut("<</Type /Page"),ut("/Parent "+t.rootDictionaryObjId+" 0 R"),ut("/Resources "+t.resourceDictionaryObjId+" 0 R"),ut("/MediaBox ["+parseFloat(N(t.mediaBox.bottomLeftX))+" "+parseFloat(N(t.mediaBox.bottomLeftY))+" "+N(t.mediaBox.topRightX)+" "+N(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&ut("/CropBox ["+N(t.cropBox.bottomLeftX)+" "+N(t.cropBox.bottomLeftY)+" "+N(t.cropBox.topRightX)+" "+N(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&ut("/BleedBox ["+N(t.bleedBox.bottomLeftX)+" "+N(t.bleedBox.bottomLeftY)+" "+N(t.bleedBox.topRightX)+" "+N(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&ut("/TrimBox ["+N(t.trimBox.bottomLeftX)+" "+N(t.trimBox.bottomLeftY)+" "+N(t.trimBox.topRightX)+" "+N(t.trimBox.topRightY)+"]"),null!==t.artBox&&ut("/ArtBox ["+N(t.artBox.bottomLeftX)+" "+N(t.artBox.bottomLeftY)+" "+N(t.artBox.topRightX)+" "+N(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&ut("/UserUnit "+t.userUnit),Ht.publish("putPage",{objId:r,pageContext:Pt[e],pageNumber:e,page:n}),ut("/Contents "+i+" 0 R"),ut(">>"),ut("endobj");var A=n.join("\n");return _===x.ADVANCED&&(A+="\nQ"),Jt(i,!0),ie({data:A,filters:re(),objectId:i}),ut("endobj"),r},oe=y.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=Dt;t++)Pt[t].objId=Xt(),Pt[t].contentsObjId=Xt();for(t=1;t<=Dt;t++)n.push(Ae({number:t,data:ot[t],objId:Pt[t].objId,contentsObjId:Pt[t].contentsObjId,mediaBox:Pt[t].mediaBox,cropBox:Pt[t].cropBox,bleedBox:Pt[t].bleedBox,trimBox:Pt[t].trimBox,artBox:Pt[t].artBox,userUnit:Pt[t].userUnit,rootDictionaryObjId:$t,resourceDictionaryObjId:te}));Jt($t,!0),ut("<</Type /Pages");var r="/Kids [";for(e=0;e<Dt;e++)r+=n[e]+" 0 R ";ut(r+"]"),ut("/Count "+Dt),ut(">>"),ut("endobj"),Ht.publish("postPutPages")},se=function(t){Ht.publish("putFont",{font:t,out:ut,newObject:Yt,putStream:ie}),!0!==t.isAlreadyPutted&&(t.objectNumber=Yt(),ut("<<"),ut("/Type /Font"),ut("/BaseFont /"+Q(t.postScriptName)),ut("/Subtype /Type1"),"string"==typeof t.encoding&&ut("/Encoding /"+t.encoding),ut("/FirstChar 32"),ut("/LastChar 255"),ut(">>"),ut("endobj"))},ae=function(){for(var t in St)St.hasOwnProperty(t)&&(!1===m||!0===m&&w.hasOwnProperty(t))&&se(St[t])},le=function(t){t.objectNumber=Yt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[N(t.x),N(t.y),N(t.x+t.width),N(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");ie({data:n,additionalKeyValues:e,objectId:t.objectNumber}),ut("endobj")},ce=function(){for(var t in jt)jt.hasOwnProperty(t)&&le(jt[t])},ue=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var A={offset:0,color:t[0].color};t.unshift(A)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",a=0,l=0;l<r.length;l++){for(n=r[l];n>t[a+1].offset;)a++;var c=t[a].offset,u=(n-c)/(t[a+1].offset-c),h=t[a].color,d=t[a+1].color;s+=tt(Math.round((1-u)*h[0]+u*d[0]).toString(16))+tt(Math.round((1-u)*h[1]+u*d[1]).toString(16))+tt(Math.round((1-u)*h[2]+u*d[2]).toString(16))}return s.trim()},he=function(t,e){e||(e=21);var n=Yt(),r=ue(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ie({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),ut("endobj"),t.objectNumber=Yt(),ut("<< /ShadingType "+t.type),ut("/ColorSpace /DeviceRGB");var A="/Coords ["+N(parseFloat(t.coords[0]))+" "+N(parseFloat(t.coords[1]))+" ";2===t.type?A+=N(parseFloat(t.coords[2]))+" "+N(parseFloat(t.coords[3])):A+=N(parseFloat(t.coords[2]))+" "+N(parseFloat(t.coords[3]))+" "+N(parseFloat(t.coords[4]))+" "+N(parseFloat(t.coords[5])),ut(A+="]"),t.matrix&&ut("/Matrix ["+t.matrix.toString()+"]"),ut("/Function "+n+" 0 R"),ut("/Extend [true true]"),ut(">>"),ut("endobj")},de=function(t,e){var n=Xt(),r=Yt();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(N).join(" ")+"]"}),i.push({key:"XStep",value:N(t.xStep)}),i.push({key:"YStep",value:N(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),ie({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),ut("endobj")},fe=function(t){var e;for(e in Qt)Qt.hasOwnProperty(e)&&(Qt[e]instanceof M?he(Qt[e]):Qt[e]instanceof D&&de(Qt[e],t))},pe=function(t){for(var e in t.objectNumber=Yt(),ut("<<"),t)switch(e){case"opacity":ut("/ca "+O(t[e]));break;case"stroke-opacity":ut("/CA "+O(t[e]))}ut(">>"),ut("endobj")},ge=function(){var t;for(t in Tt)Tt.hasOwnProperty(t)&&pe(Tt[t])},me=function(){for(var t in ut("/XObject <<"),jt)jt.hasOwnProperty(t)&&jt[t].objectNumber>=0&&ut("/"+t+" "+jt[t].objectNumber+" 0 R");Ht.publish("putXobjectDict"),ut(">>")},we=function(){Ve.oid=Yt(),ut("<<"),ut("/Filter /Standard"),ut("/V "+Ve.v),ut("/R "+Ve.r),ut("/U <"+Ve.toHexString(Ve.U)+">"),ut("/O <"+Ve.toHexString(Ve.O)+">"),ut("/P "+Ve.P),ut(">>"),ut("endobj")},ye=function(){for(var t in ut("/Font <<"),St)St.hasOwnProperty(t)&&(!1===m||!0===m&&w.hasOwnProperty(t))&&ut("/"+t+" "+St[t].objectNumber+" 0 R");ut(">>")},ve=function(){if(Object.keys(Qt).length>0){for(var t in ut("/Shading <<"),Qt)Qt.hasOwnProperty(t)&&Qt[t]instanceof M&&Qt[t].objectNumber>=0&&ut("/"+t+" "+Qt[t].objectNumber+" 0 R");Ht.publish("putShadingPatternDict"),ut(">>")}},be=function(t){if(Object.keys(Qt).length>0){for(var e in ut("/Pattern <<"),Qt)Qt.hasOwnProperty(e)&&Qt[e]instanceof y.TilingPattern&&Qt[e].objectNumber>=0&&Qt[e].objectNumber<t&&ut("/"+e+" "+Qt[e].objectNumber+" 0 R");Ht.publish("putTilingPatternDict"),ut(">>")}},Be=function(){if(Object.keys(Tt).length>0){var t;for(t in ut("/ExtGState <<"),Tt)Tt.hasOwnProperty(t)&&Tt[t].objectNumber>=0&&ut("/"+t+" "+Tt[t].objectNumber+" 0 R");Ht.publish("putGStateDict"),ut(">>")}},Ce=function(t){Jt(t.resourcesOid,!0),ut("<<"),ut("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ye(),ve(),be(t.objectOid),Be(),me(),ut(">>"),ut("endobj")},xe=function(){var t=[];ae(),ge(),ce(),fe(t),Ht.publish("putResources"),t.forEach(Ce),Ce({resourcesOid:te,objectOid:Number.MAX_SAFE_INTEGER}),Ht.publish("postPutResources")},_e=function(){Ht.publish("putAdditionalObjects");for(var t=0;t<At.length;t++){var e=At[t];Jt(e.objId,!0),ut(e.content),ut("endobj")}Ht.publish("postPutAdditionalObjects")},Ee=function(t){Ut[t.fontName]=Ut[t.fontName]||{},Ut[t.fontName][t.fontStyle]=t.id},Fe=function(t,e,n,r,i){var A={id:"F"+(Object.keys(St).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:r,isStandardFont:i||!1,metadata:{}};return Ht.publish("addFont",{font:A,instance:this}),St[A.id]=A,Ee(A),A.id},Le=function(t){for(var e=0,n=ft.length;e<n;e++){var r=Fe.call(this,t[e][0],t[e][1],t[e][2],ft[e][3],!0);!1===m&&(w[r]=!0);var i=t[e][0].split("-");Ee({id:r,fontName:i[0],fontStyle:i[1]||""})}Ht.publish("addFonts",{fonts:St,dictionary:Ut})},Ne=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!o.console)throw new Error(n);o.console.error(n,t),o.alert&&alert(n)}},t.foo.bar=t,t.foo},Se=function(t,e){var n,r,i,A,o,s,a,l,c;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&St[_t].metadata&&St[_t].metadata[i]&&St[_t].metadata[i].encoding&&(A=St[_t].metadata[i].encoding,!o&&St[_t].encoding&&(o=St[_t].encoding),!o&&A.codePages&&(o=A.codePages[0]),"string"==typeof o&&(o=A[o]),o)){for(a=!1,s=[],n=0,r=t.length;n<r;n++)(l=o[t.charCodeAt(n)])?s.push(String.fromCharCode(l)):s.push(t[n]),s[n].charCodeAt(0)>>8&&(a=!0);t=s.join("")}for(n=t.length;void 0===a&&0!==n;)t.charCodeAt(n-1)>>8&&(a=!0),n--;if(!a)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n<r;n++){if((c=(l=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(l-(c<<8))}return String.fromCharCode.apply(void 0,s)},Ue=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return Se(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ke=y.__private__.beginPage=function(t){ot[++Dt]=[],Pt[Dt]={objId:0,contentsObjId:0,userUnit:Number(c),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},Te(Dt),ct(ot[Z])},Qe=function(t,e){var r,i,o;switch(n=e||n,"string"==typeof t&&(r=C(t.toLowerCase()),Array.isArray(r)&&(i=r[0],o=r[1])),Array.isArray(t)&&(i=t[0]*Et,o=t[1]*Et),isNaN(i)&&(i=A[0],o=A[1]),(i>14400||o>14400)&&(a.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),A=[i,o],n.substr(0,1)){case"l":o>i&&(A=[o,i]);break;case"p":i>o&&(A=[o,i])}ke(A),pn(dn),ut(Cn),0!==Nn&&ut(Nn+" J"),0!==Sn&&ut(Sn+" j"),Ht.publish("addPage",{pageNumber:Dt})},Ie=function(t){t>0&&t<=Dt&&(ot.splice(t,1),Pt.splice(t,1),Dt--,Z>Dt&&(Z=Dt),this.setPage(Z))},Te=function(t){t>0&&t<=Dt&&(Z=t)},Oe=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return ot.length-1},Me=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:St[_t].fontName,e=void 0!==e?e:St[_t].fontStyle,r=t.toLowerCase(),void 0!==Ut[r]&&void 0!==Ut[r][e]?i=Ut[r][e]:void 0!==Ut[t]&&void 0!==Ut[t][e]?i=Ut[t][e]:!1===n.disableWarning&&a.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=Ut.times[e])&&(i=Ut.times.normal),i},De=y.__private__.putInfo=function(){var t=Yt(),e=function(t){return t};for(var n in null!==g&&(e=Ve.encryptor(t,0)),ut("<<"),ut("/Producer ("+Ue(e("jsPDF "+P.version))+")"),xt)xt.hasOwnProperty(n)&&xt[n]&&ut("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+Ue(e(xt[n]))+")");ut("/CreationDate ("+Ue(e(q))+")"),ut(">>"),ut("endobj")},Pe=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||$t;switch(Yt(),ut("<<"),ut("/Type /Catalog"),ut("/Pages "+e+" 0 R"),gt||(gt="fullwidth"),gt){case"fullwidth":ut("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ut("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ut("/OpenAction [3 0 R /Fit]");break;case"original":ut("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+gt;"%"===n.substr(n.length-1)&&(gt=parseInt(gt)/100),"number"==typeof gt&&ut("/OpenAction [3 0 R /XYZ null null "+O(gt)+"]")}switch(bt||(bt="continuous"),bt){case"continuous":ut("/PageLayout /OneColumn");break;case"single":ut("/PageLayout /SinglePage");break;case"two":case"twoleft":ut("/PageLayout /TwoColumnLeft");break;case"tworight":ut("/PageLayout /TwoColumnRight")}yt&&ut("/PageMode /"+yt),Ht.publish("putCatalog"),ut(">>"),ut("endobj")},He=y.__private__.putTrailer=function(){ut("trailer"),ut("<<"),ut("/Size "+(et+1)),ut("/Root "+et+" 0 R"),ut("/Info "+(et-1)+" 0 R"),null!==g&&ut("/Encrypt "+Ve.oid+" 0 R"),ut("/ID [ <"+K+"> <"+K+"> ]"),ut(">>")},Re=y.__private__.putHeader=function(){ut("%PDF-"+v),ut("%ºß¬à")},je=y.__private__.putXRef=function(){var t="0000000000";ut("xref"),ut("0 "+(et+1)),ut("0000000000 65535 f ");for(var e=1;e<=et;e++)"function"==typeof nt[e]?ut((t+nt[e]()).slice(-10)+" 00000 n "):void 0!==nt[e]?ut((t+nt[e]).slice(-10)+" 00000 n "):ut("0000000000 00000 n ")},ze=y.__private__.buildDocument=function(){lt(),ct(rt),Ht.publish("buildDocument"),Re(),oe(),_e(),xe(),null!==g&&we(),De(),Pe();var t=it;return je(),He(),ut("startxref"),ut(""+t),ut("%%EOF"),ct(ot[Z]),rt.join("\n")},qe=y.__private__.getBlob=function(t){return new Blob([dt(t)],{type:"application/pdf"})},Ke=y.output=y.__private__.output=Ne((function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ze();case"save":y.save(e.filename);break;case"arraybuffer":return dt(ze());case"blob":return qe(ze());case"bloburi":case"bloburl":if(void 0!==o.URL&&"function"==typeof o.URL.createObjectURL)return o.URL&&o.URL.createObjectURL(qe(ze()))||void 0;a.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=ze();try{n=d(r)}catch(t){n=d(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",A=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,A="");var s='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+i+'"'+A+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",l=o.open();return null!==l&&l.document.write(s),l}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(o)){var c='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',u=o.open();if(null!==u){u.document.write(c);var h=this;u.document.documentElement.querySelector("#pdfViewer").onload=function(){u.document.title=e.filename,u.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(h.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 f='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',p=o.open();if(null!==p&&(p.document.write(f),p.document.title=e.filename),p||"undefined"==typeof safari)return p;break;case"datauri":case"dataurl":return o.document.location.href=this.output("datauristring",e);default:return null}})),Ge=function(t){return!0===Array.isArray(Rt)&&Rt.indexOf(t)>-1};switch(r){case"pt":Et=1;break;case"mm":Et=72/25.4;break;case"cm":Et=72/2.54;break;case"in":Et=72;break;case"px":Et=1==Ge("px_scaling")?.75:96/72;break;case"pc":case"em":Et=12;break;case"ex":Et=6;break;default:if("number"!=typeof r)throw new Error("Invalid unit: "+r);Et=r}var Ve=null;X(),V();var We=function(t){return null!==g?Ve.encryptor(t,0):function(t){return t}},Ye=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Pt[t].objId,pageNumber:t,pageContext:Pt[t]}},Xe=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Pt)if(Pt[e].objId===t)break;return Ye(e)},Je=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:Pt[Z].objId,pageNumber:Z,pageContext:Pt[Z]}};y.addPage=function(){return Qe.apply(this,arguments),this},y.setPage=function(){return Te.apply(this,arguments),ct.call(this,ot[Z]),this},y.insertPage=function(t){return this.addPage(),this.movePage(Z,t),this},y.movePage=function(t,e){var n,r;if(t>e){n=ot[t],r=Pt[t];for(var i=t;i>e;i--)ot[i]=ot[i-1],Pt[i]=Pt[i-1];ot[e]=n,Pt[e]=r,this.setPage(e)}else if(t<e){n=ot[t],r=Pt[t];for(var A=t;A<e;A++)ot[A]=ot[A+1],Pt[A]=Pt[A+1];ot[e]=n,Pt[e]=r,this.setPage(e)}return this},y.deletePage=function(){return Ie.apply(this,arguments),this},y.__private__.text=y.text=function(t,e,n,r,A){var o,s,a,l,c,u,h,d,f,p=(r=r||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var g=n;n=e,e=t,t=g}if(arguments[3]instanceof Kt==0?(a=arguments[4],l=arguments[5],"object"===i()(h=arguments[3])&&null!==h||("string"==typeof a&&(l=a,a=null),"string"==typeof h&&(l=h,h=null),"number"==typeof h&&(a=h,h=null),r={flags:h,angle:a,align:l})):(S("The transform parameter of text() with a Matrix value"),f=A),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return p;var m="",y=!1,v="number"==typeof r.lineHeightFactor?r.lineHeightFactor:hn,b=p.internal.scaleFactor;function B(t){return t=t.split("\t").join(Array(r.TabLen||9).join(" ")),Ue(t,h)}function C(t){for(var e,n=t.concat(),r=[],i=n.length;i--;)"string"==typeof(e=n.shift())?r.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?r.push(e[0]):r.push([e[0],e[1],e[2]]);return r}function E(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var r,i,A=t.concat(),o=[],s=A.length;s--;)"string"==typeof(r=A.shift())?o.push(e(r)[0]):Array.isArray(r)&&"string"==typeof r[0]&&(i=e(r[0],r[1],r[2]),o.push([i[0],i[1],i[2]]));n=o}return n}var F=!1,L=!0;if("string"==typeof t)F=!0;else if(Array.isArray(t)){var U=t.concat();s=[];for(var k,Q=U.length;Q--;)("string"!=typeof(k=U.shift())||Array.isArray(k)&&"string"!=typeof k[0])&&(L=!1);F=L}if(!1===F)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var I=pt/p.internal.scaleFactor,T=I*(v-1);switch(r.baseline){case"bottom":n-=T;break;case"top":n+=I-T;break;case"hanging":n+=I-2*T;break;case"middle":n+=I/2-T}if((u=r.maxWidth||0)>0&&("string"==typeof t?t=p.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(p.splitTextToSize(e,u))}),[]))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Ue,activeFontKey:_t,fonts:St,activeFontSize:pt}},Ht.publish("preProcessText",o),t=o.text,a=(r=o.options).angle,f instanceof Kt==0&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),_===x.ADVANCED&&(a=-a);var O=Math.cos(a),M=Math.sin(a);f=new Kt(O,M,-M,O,0,0)}else a&&a instanceof Kt&&(f=a);_!==x.ADVANCED||f||(f=Vt),void 0!==(c=r.charSpace||Fn)&&(m+=N(R(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=r.horizontalScale)&&(m+=N(100*d)+" Tz\n"),r.lang;var D=-1,P=void 0!==r.renderingMode?r.renderingMode:r.stroke,H=p.internal.getCurrentPageInfo().pageContext;switch(P){case 0:case!1:case"fill":D=0;break;case 1:case!0:case"stroke":D=1;break;case 2:case"fillThenStroke":D=2;break;case 3:case"invisible":D=3;break;case 4:case"fillAndAddForClipping":D=4;break;case 5:case"strokeAndAddPathForClipping":D=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":D=6;break;case 7:case"addToPathForClipping":D=7}var j=void 0!==H.usedRenderingMode?H.usedRenderingMode:-1;-1!==D?m+=D+" Tr\n":-1!==j&&(m+="0 Tr\n"),-1!==D&&(H.usedRenderingMode=D),l=r.align||"left";var z,q=pt*v,K=p.internal.pageSize.getWidth(),G=St[_t];c=r.charSpace||Fn,u=r.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},r.flags);var V=[];if("[object Array]"===Object.prototype.toString.call(t)){var W;s=C(t),"left"!==l&&(z=s.map((function(t){return p.getStringUnitWidth(t,{font:G,charSpace:c,fontSize:pt,doKerning:!1})*pt/b})));var Y,X=0;if("right"===l){e-=z[0],t=[],Q=s.length;for(var J=0;J<Q;J++)0===J?(Y=yn(e),W=vn(n)):(Y=R(X-z[J]),W=-q),t.push([s[J],Y,W]),X=z[J]}else if("center"===l){e-=z[0]/2,t=[],Q=s.length;for(var Z=0;Z<Q;Z++)0===Z?(Y=yn(e),W=vn(n)):(Y=R((X-z[Z])/2),W=-q),t.push([s[Z],Y,W]),X=z[Z]}else if("left"===l){t=[],Q=s.length;for(var $=0;$<Q;$++)t.push(s[$])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],Q=s.length,u=0!==u?u:K;for(var tt=0;tt<Q;tt++)W=0===tt?vn(n):-q,Y=0===tt?yn(e):0,tt<Q-1?V.push(N(R((u-z[tt])/(s[tt].split(" ").length-1)))):V.push(0),t.push([s[tt],Y,W])}}var et="boolean"==typeof r.R2L?r.R2L:wt;!0===et&&(t=E(t,(function(t,e,n){return[t.split("").reverse().join(""),e,n]}))),o={text:t,x:e,y:n,options:r,mutex:{pdfEscape:Ue,activeFontKey:_t,fonts:St,activeFontSize:pt}},Ht.publish("postProcessText",o),t=o.text,y=o.mutex.isHex||!1;var nt=St[_t].encoding;"WinAnsiEncoding"!==nt&&"StandardEncoding"!==nt||(t=E(t,(function(t,e,n){return[B(t),e,n]}))),s=C(t),t=[];for(var rt,it,At,ot=0,st=1,at=Array.isArray(s[0])?st:ot,lt="",ct=function(t,e,n){var i="";return n instanceof Kt?(n="number"==typeof r.angle?Gt(n,new Kt(1,0,0,1,t,e)):Gt(new Kt(1,0,0,1,t,e),n),_===x.ADVANCED&&(n=Gt(new Kt(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=N(t)+" "+N(e)+" Td\n",i},ht=0;ht<s.length;ht++){switch(lt="",at){case st:At=(y?"<":"(")+s[ht][0]+(y?">":")"),rt=parseFloat(s[ht][1]),it=parseFloat(s[ht][2]);break;case ot:At=(y?"<":"(")+s[ht]+(y?">":")"),rt=yn(e),it=vn(n)}void 0!==V&&void 0!==V[ht]&&(lt=V[ht]+" Tw\n"),0===ht?t.push(lt+ct(rt,it,f)+At):at===ot?t.push(lt+At):at===st&&t.push(lt+ct(rt,it,f)+At)}t=at===ot?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var dt="BT\n/";return dt+=_t+" "+pt+" Tf\n",dt+=N(pt*v)+" TL\n",dt+=_n+"\n",dt+=m,dt+=t,ut(dt+="ET"),w[_t]=!0,p};var Ze=y.__private__.clip=y.clip=function(t){return ut("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return Ze("evenodd")},y.__private__.discardPath=y.discardPath=function(){return ut("n"),this};var $e=y.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return $e(t)&&(h=t),this};var tn=y.__private__.getStyle=y.getStyle=function(t){var e=h;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},en=y.close=function(){return ut("h"),this};y.stroke=function(){return ut("S"),this},y.fill=function(t){return nn("f",t),this},y.fillEvenOdd=function(t){return nn("f*",t),this},y.fillStroke=function(t){return nn("B",t),this},y.fillStrokeEvenOdd=function(t){return nn("B*",t),this};var nn=function(t,e){"object"===i()(e)?on(e,t):ut(t)},rn=function(t){null===t||_===x.ADVANCED&&void 0===t||(t=tn(t),ut(t))};function An(t,e,n,r,i){var A=new D(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);A.stream=this.stream;var o=t+"$$"+this.cloneIndex+++"$$";return Wt(o,A),A}var on=function(t,e){var n=It[t.key],r=Qt[n];if(r instanceof M)ut("q"),ut(sn(e)),r.gState&&y.setGState(r.gState),ut(t.matrix.toString()+" cm"),ut("/"+n+" sh"),ut("Q");else if(r instanceof D){var i=new Kt(1,0,0,-1,0,Hn());t.matrix&&(i=i.multiply(t.matrix||Vt),n=An.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),ut("q"),ut("/Pattern cs"),ut("/"+n+" scn"),r.gState&&y.setGState(r.gState),ut(e),ut("Q")}},sn=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},an=y.moveTo=function(t,e){return ut(N(R(t))+" "+N(z(e))+" m"),this},ln=y.lineTo=function(t,e){return ut(N(R(t))+" "+N(z(e))+" l"),this},cn=y.curveTo=function(t,e,n,r,i,A){return ut([N(R(t)),N(z(e)),N(R(n)),N(z(r)),N(R(i)),N(z(A)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!$e(i))throw new Error("Invalid arguments passed to jsPDF.line");return _===x.COMPAT?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,n,r,i,A){var o,s,a,l,c,u,h,d,f,p,g,m;if("number"==typeof t&&(m=n,n=e,e=t,t=m),r=r||[1,1],A=A||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!$e(i)||"boolean"!=typeof A)throw new Error("Invalid arguments passed to jsPDF.lines");for(an(e,n),o=r[0],s=r[1],l=t.length,p=e,g=n,a=0;a<l;a++)2===(c=t[a]).length?(p=c[0]*o+p,g=c[1]*s+g,ln(p,g)):(u=c[0]*o+p,h=c[1]*s+g,d=c[2]*o+p,f=c[3]*s+g,p=c[4]*o+p,g=c[5]*s+g,cn(u,h,d,f,p,g));return A&&en(),rn(i),this},y.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.c;switch(n.op){case"m":an(r[0],r[1]);break;case"l":ln(r[0],r[1]);break;case"c":cn.apply(this,r);break;case"h":en()}}return this},y.__private__.rect=y.rect=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!$e(i))throw new Error("Invalid arguments passed to jsPDF.rect");return _===x.COMPAT&&(r=-r),ut([N(R(t)),N(z(e)),N(R(n)),N(R(r)),"re"].join(" ")),rn(i),this},y.__private__.triangle=y.triangle=function(t,e,n,r,i,A,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(A)||!$e(o))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,r-e],[i-n,A-r],[t-i,e-A]],t,e,[1,1],o,!0),this},y.__private__.roundedRect=y.roundedRect=function(t,e,n,r,i,A,o){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(A)||!$e(o))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),A=Math.min(A,.5*r),this.lines([[n-2*i,0],[i*s,0,i,A-A*s,i,A],[0,r-2*A],[0,A*s,-i*s,A,-i,A],[2*i-n,0],[-i*s,0,-i,-A*s,-i,-A],[0,2*A-r],[0,-A*s,i*s,-A,i,-A]],t+i,e,[1,1],o,!0),this},y.__private__.ellipse=y.ellipse=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!$e(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var A=4/3*(Math.SQRT2-1)*n,o=4/3*(Math.SQRT2-1)*r;return an(t+n,e),cn(t+n,e-o,t+A,e-r,t,e-r),cn(t-A,e-r,t-n,e-o,t-n,e),cn(t-n,e+o,t-A,e+r,t,e+r),cn(t+A,e+r,t+n,e+o,t+n,e),rn(i),this},y.__private__.circle=y.circle=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||!$e(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,r)},y.setFont=function(t,e,n){return n&&(e=L(e,n)),_t=Me(t,e,{disableWarning:!1}),this};var un=y.__private__.getFont=y.getFont=function(){return St[Me.apply(y,arguments)]};y.__private__.getFontList=y.getFontList=function(){var t,e,n={};for(t in Ut)if(Ut.hasOwnProperty(t))for(e in n[t]=[],Ut[t])Ut[t].hasOwnProperty(e)&&n[t].push(e);return n},y.addFont=function(t,e,n,r,i){var A=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==A.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==A.indexOf(arguments[3])&&(n=L(n,r)),i=i||"Identity-H",Fe.call(this,t,e,n,i)};var hn,dn=t.lineWidth||.200025,fn=y.__private__.getLineWidth=y.getLineWidth=function(){return dn},pn=y.__private__.setLineWidth=y.setLineWidth=function(t){return dn=t,ut(N(R(t))+" w"),this};y.__private__.setLineDash=P.API.setLineDash=P.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map((function(t){return N(R(t))})).join(" "),e=N(R(e)),ut("["+t+"] "+e+" d"),this};var gn=y.__private__.getLineHeight=y.getLineHeight=function(){return pt*hn};y.__private__.getLineHeight=y.getLineHeight=function(){return pt*hn};var mn=y.__private__.setLineHeightFactor=y.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(hn=t),this},wn=y.__private__.getLineHeightFactor=y.getLineHeightFactor=function(){return hn};mn(t.lineHeight);var yn=y.__private__.getHorizontalCoordinate=function(t){return R(t)},vn=y.__private__.getVerticalCoordinate=function(t){return _===x.ADVANCED?t:Pt[Z].mediaBox.topRightY-Pt[Z].mediaBox.bottomLeftY-R(t)},bn=y.__private__.getHorizontalCoordinateString=y.getHorizontalCoordinateString=function(t){return N(yn(t))},Bn=y.__private__.getVerticalCoordinateString=y.getVerticalCoordinateString=function(t){return N(vn(t))},Cn=t.strokeColor||"0 G";y.__private__.getStrokeColor=y.getDrawColor=function(){return ee(Cn)},y.__private__.setStrokeColor=y.setDrawColor=function(t,e,n,r){return Cn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),ut(Cn),this};var xn=t.fillColor||"0 g";y.__private__.getFillColor=y.getFillColor=function(){return ee(xn)},y.__private__.setFillColor=y.setFillColor=function(t,e,n,r){return xn=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),ut(xn),this};var _n=t.textColor||"0 g",En=y.__private__.getTextColor=y.getTextColor=function(){return ee(_n)};y.__private__.setTextColor=y.setTextColor=function(t,e,n,r){return _n=ne({ch1:t,ch2:e,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this};var Fn=t.charSpace,Ln=y.__private__.getCharSpace=y.getCharSpace=function(){return parseFloat(Fn||0)};y.__private__.setCharSpace=y.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Fn=t,this};var Nn=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(t){var e=y.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 Nn=e,ut(e+" J"),this};var Sn=0;y.__private__.setLineJoin=y.setLineJoin=function(t){var e=y.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Sn=e,ut(e+" j"),this},y.__private__.setLineMiterLimit=y.__private__.setMiterLimit=y.setLineMiterLimit=y.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ut(N(R(t))+" M"),this},y.GState=T,y.setGState=function(t){(t="string"==typeof t?Tt[Ot[t]]:Un(null,t)).equals(Mt)||(ut("/"+t.id+" gs"),Mt=t)};var Un=function(t,e){if(!t||!Ot[t]){var n=!1;for(var r in Tt)if(Tt.hasOwnProperty(r)&&Tt[r].equals(e)){n=!0;break}if(n)e=Tt[r];else{var i="GS"+(Object.keys(Tt).length+1).toString(10);Tt[i]=e,e.id=i}return t&&(Ot[t]=e.id),Ht.publish("addGState",e),e}};y.addGState=function(t,e){return Un(t,e),this},y.saveGraphicsState=function(){return ut("q"),kt.push({key:_t,size:pt,color:_n}),this},y.restoreGraphicsState=function(){ut("Q");var t=kt.pop();return _t=t.key,pt=t.size,_n=t.color,Mt=null,this},y.setCurrentTransformationMatrix=function(t){return ut(t.toString()+" cm"),this},y.comment=function(t){return ut("#"+t),this};var kn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var r=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(t){i=t.toString()}}),this},Qn=function(t,e,n,r){kn.call(this,t,e),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var A=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return A},set:function(t){isNaN(t)||(A=parseFloat(t))}}),this},In=function(){this.page=Dt,this.currentPage=Z,this.pages=ot.slice(0),this.pagesContext=Pt.slice(0),this.x=Ft,this.y=Lt,this.matrix=Nt,this.width=Dn(Z),this.height=Hn(Z),this.outputDestination=at,this.id="",this.objectNumber=-1};In.prototype.restore=function(){Dt=this.page,Z=this.currentPage,Pt=this.pagesContext,ot=this.pages,Ft=this.x,Lt=this.y,Nt=this.matrix,Pn(Z,this.width),Rn(Z,this.height),at=this.outputDestination};var Tn=function(t,e,n,r,i){qt.push(new In),Dt=Z=0,ot=[],Ft=t,Lt=e,Nt=i,ke([n,r])},On=function(t){if(zt[t])qt.pop().restore();else{var e=new In,n="Xo"+(Object.keys(jt).length+1).toString(10);e.id=n,zt[t]=n,jt[n]=e,Ht.publish("addFormObject",e),qt.pop().restore()}};for(var Mn in y.beginFormObject=function(t,e,n,r,i){return Tn(t,e,n,r,i),this},y.endFormObject=function(t){return On(t),this},y.doFormObject=function(t,e){var n=jt[zt[t]];return ut("q"),ut(e.toString()+" cm"),ut("/"+n.id+" Do"),ut("Q"),this},y.getFormObject=function(t){var e=jt[zt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},y.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(f(qe(ze()),t),"function"==typeof f.unload&&o.setTimeout&&setTimeout(f.unload,911),this):new Promise((function(e,n){try{var r=f(qe(ze()),t);"function"==typeof f.unload&&o.setTimeout&&setTimeout(f.unload,911),e(r)}catch(t){n(t.message)}}))},P.API)P.API.hasOwnProperty(Mn)&&("events"===Mn&&P.API.events.length?function(t,e){var n,r,i;for(i=e.length-1;-1!==i;i--)n=e[i][0],r=e[i][1],t.subscribe.apply(t,[n].concat("function"==typeof r?[r]:r))}(Ht,P.API.events):y[Mn]=P.API[Mn]);var Dn=y.getPageWidth=function(t){return(Pt[t=t||Z].mediaBox.topRightX-Pt[t].mediaBox.bottomLeftX)/Et},Pn=y.setPageWidth=function(t,e){Pt[t].mediaBox.topRightX=e*Et+Pt[t].mediaBox.bottomLeftX},Hn=y.getPageHeight=function(t){return(Pt[t=t||Z].mediaBox.topRightY-Pt[t].mediaBox.bottomLeftY)/Et},Rn=y.setPageHeight=function(t,e){Pt[t].mediaBox.topRightY=e*Et+Pt[t].mediaBox.bottomLeftY};return y.internal={pdfEscape:Ue,getStyle:tn,getFont:un,getFontSize:mt,getCharSpace:Ln,getTextColor:En,getLineHeight:gn,getLineHeightFactor:wn,getLineWidth:fn,write:ht,getHorizontalCoordinate:yn,getVerticalCoordinate:vn,getCoordinateString:bn,getVerticalCoordinateString:Bn,collections:{},newObject:Yt,newAdditionalObject:Zt,newObjectDeferred:Xt,newObjectDeferredBegin:Jt,getFilters:re,putStream:ie,events:Ht,scaleFactor:Et,pageSize:{getWidth:function(){return Dn(Z)},setWidth:function(t){Pn(Z,t)},getHeight:function(){return Hn(Z)},setHeight:function(t){Rn(Z,t)}},encryptionOptions:g,encryption:Ve,getEncryptor:We,output:Ke,getNumberOfPages:Oe,pages:ot,out:ut,f2:O,f3:H,getPageInfo:Ye,getPageInfoByObjId:Xe,getCurrentPageInfo:Je,getPDFVersion:b,Point:kn,Rectangle:Qn,Matrix:Kt,hasHotfix:Ge},Object.defineProperty(y.internal.pageSize,"width",{get:function(){return Dn(Z)},set:function(t){Pn(Z,t)},enumerable:!0,configurable:!0}),Object.defineProperty(y.internal.pageSize,"height",{get:function(){return Hn(Z)},set:function(t){Rn(Z,t)},enumerable:!0,configurable:!0}),Le.call(y,ft),_t="F1",Qe(A,n),Ht.publish("initialized"),y}k.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},k.prototype.toHexString=function(t){return t.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},k.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},k.prototype.processOwnerPassword=function(t,e){return S(F(e).substr(0,5),t)},k.prototype.encryptor=function(t,e){var n=F(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return S(n,t)}},T.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||i()(t)!==i()(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&r--;return 0===r},P.API={events:[]},P.version="2.5.1";var H=P.API,R=1,j=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},z=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(t){return t.toFixed(2)},K=function(t){return t.toFixed(5)};H.__acroform__={};var G=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},V=function(t){return t*R},W=function(t){var e=new ht,n=Et.internal.getHeight(t)||0,r=Et.internal.getWidth(t)||0;return e.BBox=[0,0,Number(q(r)),Number(q(n))],e},Y=H.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},X=H.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},J=H.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},Z=H.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return J(t,e-1)},$=H.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Y(t,e-1)},tt=H.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return X(t,e-1)},et=H.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=t[0],A=t[1],o=t[2],s=t[3],a={};return a.lowerLeft_X=n(i)||0,a.lowerLeft_Y=r(A+s)||0,a.upperRight_X=n(i+o)||0,a.upperRight_Y=r(A)||0,[Number(q(a.lowerLeft_X)),Number(q(a.lowerLeft_Y)),Number(q(a.upperRight_X)),Number(q(a.upperRight_Y))]},nt=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,r=rt(t,n),i=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+i+" "+q(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var A=W(t);return A.scope=t.scope,A.stream=e.join("\n"),A}},rt=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},i=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");i=t.multiline?i.map((function(t){return t.split("\n")})):i.map((function(t){return[t]}));var A=n,o=Et.internal.getHeight(t)||0;o=o<0?-o:o;var s=Et.internal.getWidth(t)||0;s=s<0?-s:s;var a=function(e,n,r){if(e+1<i.length){var A=n+" "+i[e+1][0];return it(A,t,r).width<=s-4}return!1};A++;t:for(;A>0;){e="",A--;var l,c,u=it("3",t,A).height,h=t.multiline?o-A:(o-u)/2,d=h+=2,f=0,p=0,g=0;if(A<=0){e="(...) Tj\n",e+="% Width of Text: "+it(e,t,A=12).width+", FieldWidth:"+s+"\n";break}for(var m="",w=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var v=!1;if(1!==i[y].length&&g!==i[y].length-1){if((u+2)*(w+2)+2>o)continue t;m+=i[y][g],v=!0,p=y,y--}else{m=" "==(m+=i[y][g]+" ").substr(m.length-1)?m.substr(0,m.length-1):m;var b=parseInt(y),B=a(b,m,A),C=y>=i.length-1;if(B&&!C){m+=" ",g=0;continue}if(B||C){if(C)p=b;else if(t.multiline&&(u+2)*(w+2)+2>o)continue t}else{if(!t.multiline)continue t;if((u+2)*(w+2)+2>o)continue t;p=b}}for(var x="",_=f;_<=p;_++){var E=i[_];if(t.multiline){if(_===p){x+=E[g]+" ",g=(g+1)%E.length;continue}if(_===f){x+=E[E.length-1]+" ";continue}}x+=E[0]+" "}switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,c=it(x,t,A).width,t.textAlign){case"right":l=s-c-2;break;case"center":l=(s-c)/2;break;case"left":default:l=2}e+=q(l)+" "+q(d)+" Td\n",e+="("+j(x)+") Tj\n",e+=-q(l)+" 0 Td\n",d=-(A+2),c=0,f=v?p:p+1,w++,m=""}break}return r.text=e,r.fontSize=A,r},it=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},At={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ot=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find((function(t){return t.type===n.type&&t.object===n.object}))&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},st=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=n,A=t[n];e.internal.newObjectDeferredBegin(A.objId,!0),"object"===i()(A)&&"function"==typeof A.putStream&&A.putStream(),delete t[r]}},at=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(ft.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(At)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");R=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new dt,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",(function(){!function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}(t)})),t.internal.events.subscribe("buildDocument",(function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&ot(r,t)}}(t)})),t.internal.events.subscribe("putCatalog",(function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)})),t.internal.events.subscribe("postPutPages",(function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var A=t[r],o=[],s=A.Rect;if(A.Rect&&(A.Rect=et(A.Rect,e)),e.internal.newObjectDeferredBegin(A.objId,!0),A.DA=Et.createDefaultAppearanceStream(A),"object"===i()(A)&&"function"==typeof A.getKeyValueListForStream&&(o=A.getKeyValueListForStream()),A.Rect=s,A.hasAppearanceStream&&!A.appearanceStreamContent){var a=nt(A);o.push({key:"AP",value:"<</N "+a+">>"}),e.internal.acroformPlugin.xForms.push(a)}if(A.appearanceStreamContent){var l="";for(var c in A.appearanceStreamContent)if(A.appearanceStreamContent.hasOwnProperty(c)){var u=A.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var r in u)if(u.hasOwnProperty(r)){var h=u[r];"function"==typeof h&&(h=h.call(e,A)),l+="/"+r+" "+h+" ",e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=u)&&(h=h.call(e,A)),l+="/"+r+" "+h,e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h);l+=">>"}o.push({key:"AP",value:"<<\n"+l+">>"})}e.internal.putStream({additionalKeyValues:o,objectId:A.objId}),e.internal.out("endobj")}n&&st(e.internal.acroformPlugin.xForms,e)}(e,t)})),t.internal.acroformPlugin.isInitialized=!0}},lt=H.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var A="[",o=0;o<t.length;o++)switch(0!==o&&(A+=" "),i()(t[o])){case"boolean":case"number":case"object":A+=t[o].toString();break;case"string":"/"!==t[o].substr(0,1)?(void 0!==e&&n&&(r=n.internal.getEncryptor(e)),A+="("+j(r(t[o].toString()))+")"):A+=t[o].toString()}return A+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ct=function(t,e,n){var r=function(t){return t};return void 0!==e&&n&&(r=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+j(r(t))+")"},ut=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ut.prototype.toString=function(){return this.objId+" 0 R"},ut.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},ut.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter((function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)}));for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var r=e[n],i=this[r];i&&(Array.isArray(i)?t.push({key:r,value:lt(i,this.objId,this.scope)}):i instanceof ut?(i.scope=this.scope,t.push({key:r,value:i.objId+" 0 R"})):"function"!=typeof i&&t.push({key:r,value:i}))}return t};var ht=function(){ut.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};G(ht,ut);var dt=function(){ut.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+j(e(t))+")"}},set:function(e){t=e}})};G(dt,ut);var ft=function t(){ut.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(Z(e,3))},set:function(t){!0===Boolean(t)?this.F=$(e,3):this.F=tt(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var A=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!A||A.length<1){if(this instanceof Bt)return;A="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+j(e(A))+")"},set:function(t){A=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return A},set:function(t){A=t}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/R:l},set:function(t){l=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof Bt||this instanceof xt))return ct(u,this.objId,this.scope)},set:function(t){t=t.toString(),u=t}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof yt==0?ct(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof yt==0?"("===t.substr(0,1)?z(t.substr(1,t.length-2)):z(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof yt==1?z(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof yt==1?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof yt==0?ct(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof yt==0?"("===t.substr(0,1)?z(t.substr(1,t.length-2)):z(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof yt==1?z(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof yt==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var f,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(t){t=Boolean(t),p=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(t){f=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,1):this.Ff=tt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,2):this.Ff=tt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,3):this.Ff=tt(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};G(ft,ut);var pt=function(){ft.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return lt(e,this.objId,this.scope)},set:function(t){var n,r;r=[],"string"==typeof(n=t)&&(r=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(n,/\((.*?)\)/g)),e=r}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,18):this.Ff=tt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=$(this.Ff,19):this.Ff=tt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=$(this.Ff,20),e.sort()):this.Ff=tt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,22):this.Ff=tt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,23):this.Ff=tt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,27):this.Ff=tt(this.Ff,27)}}),this.hasAppearanceStream=!1};G(pt,ft);var gt=function(){pt.call(this),this.fontName="helvetica",this.combo=!1};G(gt,pt);var mt=function(){gt.call(this),this.combo=!0};G(mt,gt);var wt=function(){mt.call(this),this.edit=!0};G(wt,mt);var yt=function(){ft.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,15):this.Ff=tt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,16):this.Ff=tt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,17):this.Ff=tt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,26):this.Ff=tt(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+j(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===i()(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};G(yt,ft);var vt=function(){yt.call(this),this.pushButton=!0};G(vt,yt);var bt=function(){yt.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};G(bt,yt);var Bt=function(){var t,e;ft.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+j(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===i()(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Et.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};G(Bt,ft),bt.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},bt.prototype.createOption=function(t){var e=new Bt;return e.Parent=this,e.optionName=t,this.Kids.push(e),Ft.call(this.scope,e),e};var Ct=function(){yt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Et.CheckBox.createAppearanceStream()};G(Ct,yt);var xt=function(){ft.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,13):this.Ff=tt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,21):this.Ff=tt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,23):this.Ff=tt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,24):this.Ff=tt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,25):this.Ff=tt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,26):this.Ff=tt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};G(xt,ft);var _t=function(){xt.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Z(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=$(this.Ff,14):this.Ff=tt(this.Ff,14)}}),this.password=!0};G(_t,xt);var Et={CheckBox:{createAppearanceStream:function(){return{N:{On:Et.CheckBox.YesNormal},D:{On:Et.CheckBox.YesPushDown,Off:Et.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),A=rt(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+q(Et.internal.getWidth(t))+" "+q(Et.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+q(A.fontSize)+" Tf "+i),n.push("BT"),n.push(A.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=W(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],A=Et.internal.getHeight(t),o=Et.internal.getWidth(t),s=rt(t,t.caption);return i.push("1 g"),i.push("0 0 "+q(o)+" "+q(A)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+q(o-1)+" "+q(A-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+q(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+q(Et.internal.getWidth(t))+" "+q(Et.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:Et.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=Et.RadioButton.Circle.YesNormal,e.D[t]=Et.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var n=[],r=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Et.internal.Bezier_C,A=Number((r*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+K(Et.internal.getWidth(t)/2)+" "+K(Et.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+A+" "+A+" "+r+" 0 "+r+" c"),n.push("-"+A+" "+r+" -"+r+" "+A+" -"+r+" 0 c"),n.push("-"+r+" -"+A+" -"+A+" -"+r+" 0 -"+r+" c"),n.push(A+" -"+r+" "+r+" -"+A+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[],r=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),A=Number((i*Et.internal.Bezier_C).toFixed(5)),o=Number((r*Et.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+K(Et.internal.getWidth(t)/2)+" "+K(Et.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+A+" "+A+" "+i+" 0 "+i+" c"),n.push("-"+A+" "+i+" -"+i+" "+A+" -"+i+" 0 c"),n.push("-"+i+" -"+A+" -"+A+" -"+i+" 0 -"+i+" c"),n.push(A+" -"+i+" "+i+" -"+A+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+K(Et.internal.getWidth(t)/2)+" "+K(Et.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[],r=Et.internal.getWidth(t)<=Et.internal.getHeight(t)?Et.internal.getWidth(t)/4:Et.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),A=Number((i*Et.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+K(Et.internal.getWidth(t)/2)+" "+K(Et.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+A+" "+A+" "+i+" 0 "+i+" c"),n.push("-"+A+" "+i+" -"+i+" "+A+" -"+i+" 0 c"),n.push("-"+i+" -"+A+" -"+A+" -"+i+" 0 -"+i+" c"),n.push(A+" -"+i+" "+i+" -"+A+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:Et.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=Et.RadioButton.Cross.YesNormal,e.D[t]=Et.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var n=[],r=Et.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+q(Et.internal.getWidth(t)-2)+" "+q(Et.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(q(r.x1.x)+" "+q(r.x1.y)+" m"),n.push(q(r.x2.x)+" "+q(r.x2.y)+" l"),n.push(q(r.x4.x)+" "+q(r.x4.y)+" m"),n.push(q(r.x3.x)+" "+q(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var n=Et.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+q(Et.internal.getWidth(t))+" "+q(Et.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+q(Et.internal.getWidth(t)-2)+" "+q(Et.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(q(n.x1.x)+" "+q(n.x1.y)+" m"),r.push(q(n.x2.x)+" "+q(n.x2.y)+" l"),r.push(q(n.x4.x)+" "+q(n.x4.y)+" m"),r.push(q(n.x3.x)+" "+q(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+q(Et.internal.getWidth(t))+" "+q(Et.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};Et.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=Et.internal.getWidth(t),n=Et.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},Et.internal.getWidth=function(t){var e=0;return"object"===i()(t)&&(e=V(t.Rect[2])),e},Et.internal.getHeight=function(t){var e=0;return"object"===i()(t)&&(e=V(t.Rect[3])),e};var Ft=H.addField=function(t){if(at(this,t),!(t instanceof ft))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};H.AcroFormChoiceField=pt,H.AcroFormListBox=gt,H.AcroFormComboBox=mt,H.AcroFormEditBox=wt,H.AcroFormButton=yt,H.AcroFormPushButton=vt,H.AcroFormRadioButton=bt,H.AcroFormCheckBox=Ct,H.AcroFormTextField=xt,H.AcroFormPasswordField=_t,H.AcroFormAppearance=Et,H.AcroForm={ChoiceField:pt,ListBox:gt,ComboBox:mt,EditBox:wt,Button:yt,PushButton:vt,RadioButton:bt,CheckBox:Ct,TextField:xt,PasswordField:_t,Appearance:Et},P.AcroForm={ChoiceField:pt,ListBox:gt,ComboBox:mt,EditBox:wt,Button:yt,PushButton:vt,RadioButton:bt,CheckBox:Ct,TextField:xt,PasswordField:_t,Appearance:Et};P.AcroForm;function Lt(t){return t.reduce((function(t,e,n){return t[e]=n,t}),{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=t.__addimage__.getImageFileTypeByImageData=function(t,r){var i,A,o,s,a,l=e;if("RGBA"===(r=r||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(x(t))for(a in n)for(o=n[a],i=0;i<o.length;i+=1){for(s=!0,A=0;A<o[i].length;A+=1)if(void 0!==o[i][A]&&o[i][A]!==t[A]){s=!1;break}if(!0===s){l=a;break}}else for(a in n)for(o=n[a],i=0;i<o.length;i+=1){for(s=!0,A=0;A<o[i].length;A+=1)if(void 0!==o[i][A]&&o[i][A]!==t.charCodeAt(A)){s=!1;break}if(!0===s){l=a;break}}return l===e&&r!==e&&(l=r),l},A=function t(e){for(var n=this.internal.write,r=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var A=[];if(A.push({key:"Type",value:"/XObject"}),A.push({key:"Subtype",value:"/Image"}),A.push({key:"Width",value:e.width}),A.push({key:"Height",value:e.height}),e.colorSpace===w.INDEXED?A.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]"}):(A.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===w.DEVICE_CMYK&&A.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),A.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&A.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var o="",s=0,a=e.transparency.length;s<a;s++)o+=e.transparency[s]+" "+e.transparency[s]+" ";A.push({key:"Mask",value:"["+o+"]"})}void 0!==e.sMask&&A.push({key:"SMask",value:e.objectId+1+" 0 R"});var l=void 0!==e.filter?["/"+e.filter]:void 0;if(r({data:e.data,additionalKeyValues:A,alreadyAppliedFilters:l,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var c="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,u={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:c,data:e.sMask};"filter"in e&&(u.filter=e.filter),t.call(this,u)}if(e.colorSpace===w.INDEXED){var h=this.internal.newObject();r({data:E(new Uint8Array(e.palette)),objectId:h}),n("endobj")}},o=function(){var t=this.internal.collections.addImage_images;for(var e in t)A.call(this,t[e])},s=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var r in e)n("/I"+(t=e[r]).index,t.objectId,"0","R")},a=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},l=function(){var t=this.internal.collections.addImage_images;return a.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(e){return"function"==typeof t["process"+e.toUpperCase()]},d=function(t){return"object"===i()(t)&&1===t.nodeType},f=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var r=""+e.getAttribute("src");if(0===r.indexOf("data:image/"))return h(unescape(r).split("base64,").pop());var i=t.loadFile(r,!0);if(void 0!==i)return i}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var A;switch(n){case"PNG":A="image/png";break;case"WEBP":A="image/webp";break;case"JPEG":case"JPG":default:A="image/jpeg"}return h(e.toDataURL(A,1).split("base64,").pop())}},p=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},g=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},m=function(t,e,n,r,i,A){var o=g.call(this,n,r,i),s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,c=l.call(this);if(n=o[0],r=o[1],c[i.index]=i,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,s(t),a(e+r),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([s(n),"0","0",s(r),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(r),s(t),a(e+r),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},w=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=t.__addimage__.sHashCode=function(t){var e,n,r=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;else if(x(t))for(n=t.byteLength/2,e=0;e<n;e++)r=(r<<5)-r+t[e],r|=0;return r},b=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},B=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var r=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:e[1]})}return n},C=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return C()&&t instanceof ArrayBuffer};var x=t.__addimage__.isArrayBufferView=function(t){return C()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},_=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n},E=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=x(t)?t:new Uint8Array(t),r=0;r<n.length;r+=8192)e+=String.fromCharCode.apply(null,n.subarray(r,r+8192));return e};t.addImage=function(){var t,n,r,A,o,s,l,c,u;if("number"==typeof arguments[1]?(n=e,r=arguments[1],A=arguments[2],o=arguments[3],s=arguments[4],l=arguments[5],c=arguments[6],u=arguments[7]):(n=arguments[1],r=arguments[2],A=arguments[3],o=arguments[4],s=arguments[5],l=arguments[6],c=arguments[7],u=arguments[8]),"object"===i()(t=arguments[0])&&!d(t)&&"imageData"in t){var h=t;t=h.imageData,n=h.format||n||e,r=h.x||r||0,A=h.y||A||0,o=h.w||h.width||o,s=h.h||h.height||s,l=h.alias||l,c=h.compression||c,u=h.rotation||h.angle||u}var f=this.internal.getFilters();if(void 0===c&&-1!==f.indexOf("FlateEncode")&&(c="SLOW"),isNaN(r)||isNaN(A))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var p=F.call(this,t,n,l,c);return m.call(this,r,A,o,s,p,u),this};var F=function(n,i,A,o){var s,a,l;if("string"==typeof n&&r(n)===e){n=unescape(n);var h=L(n,!1);(""!==h||void 0!==(h=t.loadFile(n,!0)))&&(n=h)}if(d(n)&&(n=f(n,i)),i=r(n,i),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(l=A)||0===l.length)&&(A=function(t){return"string"==typeof t||x(t)?v(t):x(t.data)?v(t.data):null}(n)),(s=p.call(this,A))||(C()&&(n instanceof Uint8Array||"RGBA"===i||(a=n,n=_(n))),s=this["process"+i.toUpperCase()](n,c.call(this),A,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:y.NONE}(o),a)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},L=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var r,i="";if("string"==typeof t){r=null!==(n=B(t))?n.data:t;try{i=h(r)}catch(t){if(e)throw b(r)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};t.getImageProperties=function(n){var i,A,o="";if(d(n)&&(n=f(n)),"string"==typeof n&&r(n)===e&&(""===(o=L(n,!1))&&(o=t.loadFile(n)||""),n=o),A=r(n),!u(A))throw new Error("addImage does not support files of type '"+A+"', please ensure that a plugin for '"+A+"' support is added.");if(!C()||n instanceof Uint8Array||(n=_(n)),!(i=this["process"+A.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=A,i}}(P.API),
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(t){if(void 0!==t&&""!=t)return!0};P.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(t){for(var n,r,i,A=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(t.objId),a=t.pageContext.annotations,l=!1,c=0;c<a.length&&!l;c++)switch((n=a[c]).type){case"link":(e(n.options.url)||e(n.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var u=0;u<a.length;u++){n=a[u];var h=this.internal.pdfEscape,d=this.internal.getEncryptor(t.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),g=this.internal.getEncryptor(f.objId),m=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(r="/Rect ["+A(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+A(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+h(g(n.contents))+")",i+=" /Popup "+p.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+h(g(m))+") >>",f.content=i;var w=f.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(r="/Rect ["+A(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+A(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+w,n.open&&(i+=" /Open true"),i+=" >>",p.content=i,this.internal.write(f.objId,"0 R",p.objId,"0 R");break;case"freetext":r="/Rect ["+A(n.bounds.x)+" "+o(n.bounds.y)+" "+A(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var y=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+r+"/Contents ("+h(d(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var v=this.annotations._nameMap[n.options.name];n.options.pageNumber=v.page,n.options.top=v.y}else n.options.top||(n.options.top=0);if(r="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /A <</S /URI /URI ("+h(d(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+r+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var b=o(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+b+" "+n.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},t.link=function(t,e,n,r,i){var A=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;A.pageContext.annotations.push({finalBounds:{x:o(t),y:s(e),w:o(t+n),h:s(e+r)},options:i,type:"link"})},t.textWithLink=function(t,e,n,r){var i,A,o=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==r.maxWidth){A=r.maxWidth;var a=this.splitTextToSize(t,A).length;i=Math.ceil(s*a)}else A=o,i=s;return this.text(t,e,n,r),n+=.2*s,"center"===r.align&&(e-=o/2),"right"===r.align&&(e-=o),this.link(e,n-s,A,i,r),o},t.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor}}(P.API),
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var A=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},o=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return o(t)&&A(t)&&e[t.charCodeAt(0)].length<=2},a=t.__arabicParser__.isArabicAlfLetter=function(t){return o(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return o(t)&&A(t)&&e[t.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return o(t)&&A(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return o(t)&&A(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return o(t)&&A(t)&&4==e[t.charCodeAt(0)].length},u=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",A=0;for(e=0;e<t.length;e+=1)void 0!==r[t.charCodeAt(e)]?(A++,"number"==typeof(r=r[t.charCodeAt(e)])&&(i+=String.fromCharCode(r),r=n,A=0),e===t.length-1&&(r=n,i+=t.charAt(e-(A-1)),e-=A-1,A=0)):(r=n,i+=t.charAt(e-A),e-=A,A=0);return i};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==r[t.charCodeAt(0)]};var h=t.__arabicParser__.getCorrectForm=function(t,e,n){return o(t)?!1===A(t)?-1:!l(t)||!o(e)&&!o(n)||!o(n)&&s(e)||s(t)&&!o(e)||s(t)&&a(e)||s(t)&&s(e)?0:c(t)&&o(e)&&!s(e)&&o(n)&&l(n)?3:s(t)||!o(n)?1:2:-1},d=function(t){var n=0,r=0,i=0,A="",s="",a="",l=(t=t||"").split("\\s+"),c=[];for(n=0;n<l.length;n+=1){for(c.push(""),r=0;r<l[n].length;r+=1)A=l[n][r],s=l[n][r-1],a=l[n][r+1],o(A)?(i=h(A,s,a),c[n]+=-1!==i?String.fromCharCode(e[A.charCodeAt(0)][i]):A):c[n]+=A;c[n]=u(c[n])}return c.join(" ")},f=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var r=0;for(n=[],r=0;r<e.length;r+=1)Array.isArray(e[r])?n.push([d(e[r][0]),e[r][1],e[r][2]]):n.push([d(e[r])]);t=n}else t=d(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",f])}(P.API),P.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+e+" 0 R")}))}return this},
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(P.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,r=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),A.call(this))},A=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var A=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return A},set:function(t){A=t}});var o=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return o},set:function(t){o=t}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return r.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){r.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),i=e.font||this.getFont(),A=e.scaleFactor||this.internal.scaleFactor,o=0,s=0,a=0,l=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var c=e.maxWidth;c>0?"string"==typeof t?t=this.splitTextToSize(t,c):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce((function(t,e){return t.concat(l.splitTextToSize(e,c))}),[])):t=Array.isArray(t)?t:[t];for(var u=0;u<t.length;u++)o<(a=this.getStringUnitWidth(t[u],{font:i})*n)&&(o=a);return 0!==o&&(s=t.length),{w:o/=A,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/A,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new o(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var t;t=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var i=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,s=this.internal.__cell__.margins||e,a=this.internal.__cell__.tableHeaderRow,l=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===t.lineNumber?(t.x=(i.x||0)+(i.width||0),t.y=i.y||0):i.y+i.height+t.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=s.top,l&&a&&(this.printHeaderRow(t.lineNumber,!0),t.y+=a[0].height)):t.y=i.y+i.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-A,t.y+A,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+A,{align:"center",baseline:"top",maxWidth:t.width-A-A}):this.text(t.text,t.x+A,t.y+A,{align:"left",baseline:"top",maxWidth:t.width-A-A})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,l,c,u){if(r.call(this),!l)throw new Error("No data for PDF table.");var h,d,f,p,g=[],m=[],w=[],y={},v={},b=[],B=[],C=(u=u||{}).autoSize||!1,x=!1!==u.printHeaders,_=u.css&&void 0!==u.css["font-size"]?16*u.css["font-size"]:u.fontSize||12,E=u.margins||Object.assign({width:this.getPageWidth()},e),F="number"==typeof u.padding?u.padding:3,L=u.headerBackgroundColor||"#c8c8c8",N=u.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=x,this.internal.__cell__.margins=E,this.internal.__cell__.table_font_size=_,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=L,this.internal.__cell__.headerTextColor=N,this.setFontSize(_),null==c)m=g=Object.keys(l[0]),w=g.map((function(){return"left"}));else if(Array.isArray(c)&&"object"===i()(c[0]))for(g=c.map((function(t){return t.name})),m=c.map((function(t){return t.prompt||t.name||""})),w=c.map((function(t){return t.align||"left"})),h=0;h<c.length;h+=1)v[c[h].name]=c[h].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(m=g=c,w=g.map((function(){return"left"})));if(C||Array.isArray(c)&&"string"==typeof c[0])for(h=0;h<g.length;h+=1){for(y[p=g[h]]=l.map((function(t){return t[p]})),this.setFont(void 0,"bold"),b.push(this.getTextDimensions(m[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),d=y[p],this.setFont(void 0,"normal"),f=0;f<d.length;f+=1)b.push(this.getTextDimensions(d[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);v[p]=Math.max.apply(null,b)+F+F,b=[]}if(x){var S={};for(h=0;h<g.length;h+=1)S[g[h]]={},S[g[h]].text=m[h],S[g[h]].align=w[h];var U=a.call(this,S,v);B=g.map((function(e){return new o(t,n,v[e],U,S[e].text,void 0,S[e].align)})),this.setTableHeaderRow(B),this.printHeaderRow(1,!1)}var k=c.reduce((function(t,e){return t[e.name]=e.align,t}),{});for(h=0;h<l.length;h+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:h,data:l[h]},this);var Q=a.call(this,l[h],v);for(f=0;f<g.length;f+=1){var I=l[h][g[f]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:h,col:f,data:I},this),s.call(this,new o(t,n,v[g[f]],Q,I,h+2,k[g[f]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var a=function(t,e){var n=this.internal.__cell__.padding,r=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(t).map((function(r){var i=t[r];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,e[r]-n-n)}),this).map((function(t){return this.getLineHeightFactor()*t.length*r/i+n+n}),this).reduce((function(t,e){return Math.max(t,e)}),0)};t.setTableHeaderRow=function(t){r.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var A=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(A[0],A[1],A[2],A[3],void 0,-1)}this.setFont(void 0,"bold");for(var a=[],l=0;l<this.internal.__cell__.tableHeaderRow.length;l+=1){i=this.internal.__cell__.tableHeaderRow[l].clone(),e&&(i.y=this.internal.__cell__.margins.top||0,a.push(i)),i.lineNumber=t;var c=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,i),this.setTextColor(c)}a.length>0&&this.setTableHeaderRow(a),this.setFont(void 0,"normal"),n=!1}}(P.API);var Nt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},St=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Ut=Lt(St),kt=[100,200,300,400,500,600,700,800,900],Qt=Lt(kt);function It(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return Nt[t=t||"normal"]?t:"normal"}(t.style),r=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),i=function(t){return"number"==typeof Ut[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:r,stretch:i,src:t.src||[],ref:t.ref||{name:e,style:[i,n,r].join(" ")}}}function Tt(t,e,n,r){var i;for(i=n;i>=0&&i<e.length;i+=r)if(t[e[i]])return t[e[i]];for(i=n;i>=0&&i<e.length;i-=r)if(t[e[i]])return t[e[i]]}var Ot={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Dt(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Pt(t,e,n){for(var r=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Ot,n.genericFontFamilies||{}),A=null,o=null,s=0;s<e.length;++s)if(i[(A=It(e[s])).family]&&(A.family=i[A.family]),t.hasOwnProperty(A.family)){o=t[A.family];break}if(!(o=o||t[r]))throw new Error("Could not find a font-family for the rule '"+Dt(A)+"' and default family '"+r+"'.");if(o=function(t,e){if(e[t])return e[t];var n=Ut[t],r=n<=Ut.normal?-1:1,i=Tt(e,St,n,r);if(!i)throw new Error("Could not find a matching font-stretch value for "+t);return i}(A.stretch,o),o=function(t,e){if(e[t])return e[t];for(var n=Nt[t],r=0;r<n.length;++r)if(e[n[r]])return e[n[r]];throw new Error("Could not find a matching font-style for "+t)}(A.style,o),!(o=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=Qt[t],r=Tt(e,kt,n,t<400?-1:1);if(!r)throw new Error("Could not find a matching font-weight for value "+t);return r}(A.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Dt(A)+"'.");return o}function Ht(t){return t.trimLeft()}function Rt(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function jt(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var zt,qt,Kt,Gt=["times"];!function(t){var e,n,r,A,o,s,l,c,u,h=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new c,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new s,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new s,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new d(this),e=this.internal.f2,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,A=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,s=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,u=new h}]);var d=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var r=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return r},set:function(t){r=Boolean(t)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(t){isNaN(t)||(i=t)}});var A=0;Object.defineProperty(this,"posY",{get:function(){return A},set:function(t){isNaN(t)||(A=t)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),u.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(t){s=t}});var a=[];Object.defineProperty(this,"pageBreaks",{get:function(){return a},set:function(t){a=t}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof h&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var l=[];Object.defineProperty(this,"ctxStack",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=f(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=f(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var c=null;function d(t,e){if(null===c){var n=function(t){var e=[];return Object.keys(t).forEach((function(n){t[n].forEach((function(t){var r=null;switch(t){case"bold":r={family:n,weight:"bold"};break;case"italic":r={family:n,style:"italic"};break;case"bolditalic":r={family:n,weight:"bold",style:"italic"};break;case"":case"normal":r={family:n}}null!==r&&(r.ref={name:n,style:t},e.push(r))}))})),e}(t.getFontList());c=function(t){for(var e={},n=0;n<t.length;++n){var r=It(t[n]),i=r.family,A=r.stretch,o=r.style,s=r.weight;e[i]=e[i]||{},e[i][A]=e[i][A]||{},e[i][A][o]=e[i][A][o]||{},e[i][A][o][s]=r}return e}(n.concat(e))}return c}var p=null;Object.defineProperty(this,"fontFaces",{get:function(){return p},set:function(t){c=null,p=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],A=(e[5],e[6]),o=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===o?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===o?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,n,r=[],i=t.trim();if(""===i)return Gt;if(i in Mt)return[Mt[i]];for(;""!==i;){switch(n=null,e=(i=Ht(i)).charAt(0)){case'"':case"'":n=Rt(i.substring(1),e);break;default:n=jt(i)}if(null===n)return Gt;if(r.push(n[0]),""!==(i=Ht(n[1]))&&","!==i.charAt(0))return Gt;i=i.replace(/^,/,"")}return r}(A);if(this.fontFaces){var a=Pt(d(this.pdf,this.fontFaces),s.map((function(t){return{family:t,stretch:"normal",weight:r,style:n}})));this.pdf.setFont(a.ref.name,a.ref.style)}else{var l="";("bold"===r||parseInt(r,10)>=700||"bold"===n)&&(l="bold"),"italic"===n&&(l+="italic"),0===l.length&&(l="normal");for(var c="",u={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],l,{noFallback:!0,disableWarning:!0})){c=s[h];break}if("bolditalic"===l&&void 0!==this.pdf.internal.getFont(s[h],"bold",{noFallback:!0,disableWarning:!0}))c=s[h],l="bold";else if(void 0!==this.pdf.internal.getFont(s[h],"normal",{noFallback:!0,disableWarning:!0})){c=s[h],l="normal";break}}if(""===c)for(var f=0;f<s.length;f++)if(u[s[f]]){c=u[s[f]];break}c=""===c?"Times":c,this.pdf.setFont(c,l)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,H.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,H.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};d.prototype.setLineDash=function(t){this.lineDash=t},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){C.call(this,"fill",!1)},d.prototype.stroke=function(){C.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(t,e)},d.prototype.closePath=function(){var t=new s(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===i()(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new s(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(t.x,t.y)},d.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new s(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),C.call(this,null,!0)},d.prototype.quadraticCurveTo=function(t,e,n,r){if(isNaN(n)||isNaN(r)||isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new s(n,r)),A=this.ctx.transform.applyToPoint(new s(t,e));this.path.push({type:"qct",x1:A.x,y1:A.y,x:i.x,y:i.y}),this.ctx.lastPoint=new s(i.x,i.y)},d.prototype.bezierCurveTo=function(t,e,n,r,i,A){if(isNaN(i)||isNaN(A)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new s(i,A)),l=this.ctx.transform.applyToPoint(new s(t,e)),c=this.ctx.transform.applyToPoint(new s(n,r));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new s(o.x,o.y)},d.prototype.arc=function(t,e,n,r,i,A){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i))throw a.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(A=Boolean(A),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new s(t,e));t=o.x,e=o.y;var l=this.ctx.transform.applyToPoint(new s(0,n)),c=this.ctx.transform.applyToPoint(new s(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(i-r)>=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:A})},d.prototype.arcTo=function(t,e,n,r,i){throw new Error("arcTo not implemented.")},d.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},d.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},d.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw a.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},d.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},d.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(t){var e,n,r,i;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,r=0,i=0;else{var A=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==A)e=parseInt(A[1]),n=parseInt(A[2]),r=parseInt(A[3]),i=1;else if(null!==(A=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(A[1]),n=parseInt(A[2]),r=parseInt(A[3]),i=parseFloat(A[4]);else{if(i=1,"string"==typeof t&&"#"!==t.charAt(0)){var o=new p(t);t=o.ok?o.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,r=t.substring(3,4),r+=r):(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:e,g:n,b:r,a:i,style:t}},g=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw a.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!g.call(this)){var i=M(this.ctx.transform.rotation),A=this.ctx.transform.scaleX;U.call(this,{text:t,x:e,y:n,scale:A,angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.strokeText=function(t,e,n,r){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw a.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){r=isNaN(r)?void 0:r;var i=M(this.ctx.transform.rotation),A=this.ctx.transform.scaleX;U.call(this,{text:t,x:e,y:n,scale:A,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:r})}},d.prototype.measureText=function(t){if("string"!=typeof t)throw a.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,r=e.internal.getFontSize(),i=e.getStringUnitWidth(t)*r/e.internal.scaleFactor,A=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new A({width:i*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new c(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(t){if(isNaN(t))throw a.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new c(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},d.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw a.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new c(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(t,e,n,r,i,A){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||isNaN(i)||isNaN(A))throw a.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var o=new c(t,e,n,r,i,A);this.ctx.transform=this.ctx.transform.multiply(o)},d.prototype.setTransform=function(t,e,n,r,i,A){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,r=isNaN(r)?1:r,i=isNaN(i)?0:i,A=isNaN(A)?0:A,this.ctx.transform=new c(t,e,n,r,i,A)};var w=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(t,e,n,r,i,A,o,s,a){var u=this.pdf.getImageProperties(t),h=1,d=1,f=1,p=1;void 0!==r&&void 0!==s&&(f=s/r,p=a/i,h=u.width/r*s/r,d=u.height/i*a/i),void 0===A&&(A=e,o=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,a=i),void 0===r&&void 0===s&&(s=u.width,a=u.height);for(var g,m=this.ctx.transform.decompose(),v=M(m.rotate.shx),C=new c,_=(C=(C=(C=C.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToRectangle(new l(A-e*f,o-n*p,r*h,i*d)),E=y.call(this,_),F=[],L=0;L<E.length;L+=1)-1===F.indexOf(E[L])&&F.push(E[L]);if(B(F),this.autoPaging)for(var N=F[0],S=F[F.length-1],U=N;U<S+1;U++){this.pdf.setPage(U);var k=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Q=1===U?this.posY+this.margin[0]:this.margin[0],I=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],T=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],O=1===U?0:I+(U-2)*T;if(0!==this.ctx.clip_path.length){var D=this.path;g=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(g,this.posX+this.margin[3],-O+Q+this.ctx.prevPageLastElemOffset),x.call(this,"fill",!0),this.path=D}var P=JSON.parse(JSON.stringify(_));P=b([P],this.posX+this.margin[3],-O+Q+this.ctx.prevPageLastElemOffset)[0];var H=(U>N||U<S)&&w.call(this);H&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],k,T,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",P.x,P.y,P.w,P.h,null,null,v),H&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",_.x,_.y,_.w,_.h,null,null,v)};var y=function(t,e,n){var r=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":r.push(Math.floor((t.y+i)/n)+1);break;case"arc":r.push(Math.floor((t.y+i-t.radius)/n)+1),r.push(Math.floor((t.y+i+t.radius)/n)+1);break;case"qct":var A=D(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);r.push(Math.floor((A.y+i)/n)+1),r.push(Math.floor((A.y+A.h+i)/n)+1);break;case"bct":var o=P(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);r.push(Math.floor((o.y+i)/n)+1),r.push(Math.floor((o.y+o.h+i)/n)+1);break;case"rect":r.push(Math.floor((t.y+i)/n)+1),r.push(Math.floor((t.y+t.h+i)/n)+1)}for(var s=0;s<r.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<r[s];)v.call(this);return r},v=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,r=this.lineCap,i=this.lineWidth,A=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=r,this.lineWidth=i,this.lineJoin=A},b=function(t,e,n){for(var r=0;r<t.length;r++)switch(t[r].type){case"bct":t[r].x2+=e,t[r].y2+=n;case"qct":t[r].x1+=e,t[r].y1+=n;case"mt":case"lt":case"arc":default:t[r].x+=e,t[r].y+=n}return t},B=function(t){return t.sort((function(t,e){return t-e}))},C=function(t,e){for(var n,r,i=this.fillStyle,A=this.strokeStyle,o=this.lineCap,s=this.lineWidth,a=Math.abs(s*this.ctx.transform.scaleX),l=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),h=[],d=0;d<u.length;d++)if(void 0!==u[d].x)for(var f=y.call(this,u[d]),p=0;p<f.length;p+=1)-1===h.indexOf(f[p])&&h.push(f[p]);for(var g=0;g<h.length;g++)for(;this.pdf.internal.getNumberOfPages()<h[g];)v.call(this);if(B(h),this.autoPaging)for(var m=h[0],C=h[h.length-1],_=m;_<C+1;_++){this.pdf.setPage(_),this.fillStyle=i,this.strokeStyle=A,this.lineCap=o,this.lineWidth=a,this.lineJoin=l;var E=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],F=1===_?this.posY+this.margin[0]:this.margin[0],L=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],N=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],S=1===_?0:L+(_-2)*N;if(0!==this.ctx.clip_path.length){var U=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(n,this.posX+this.margin[3],-S+F+this.ctx.prevPageLastElemOffset),x.call(this,t,!0),this.path=U}if(r=JSON.parse(JSON.stringify(c)),this.path=b(r,this.posX+this.margin[3],-S+F+this.ctx.prevPageLastElemOffset),!1===e||0===_){var k=(_>m||_<C)&&w.call(this);k&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,N,null).clip().discardPath()),x.call(this,t,e),k&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=a,x.call(this,t,e),this.lineWidth=s;this.path=c},x=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!g.call(this))){for(var n,r,i=[],A=this.path,o=0;o<A.length;o++){var s=A[o];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var a=i.length;if(A[o-1]&&!isNaN(A[o-1].x)&&(n=[s.x-A[o-1].x,s.y-A[o-1].y],a>0))for(;a>=0;a--)if(!0!==i[a-1].close&&!0!==i[a-1].begin){i[a-1].deltas.push(n),i[a-1].abs.push(s);break}break;case"bct":n=[s.x1-A[o-1].x,s.y1-A[o-1].y,s.x2-A[o-1].x,s.y2-A[o-1].y,s.x-A[o-1].x,s.y-A[o-1].y],i[i.length-1].deltas.push(n);break;case"qct":var l=A[o-1].x+2/3*(s.x1-A[o-1].x),c=A[o-1].y+2/3*(s.y1-A[o-1].y),u=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),d=s.x,f=s.y;n=[l-A[o-1].x,c-A[o-1].y,u-A[o-1].x,h-A[o-1].y,d-A[o-1].x,f-A[o-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var p=!1,w=0;w<i.length;w++)if(i[w].arc)for(var y=i[w].abs,v=0;v<y.length;v++){var b=y[v];"arc"===b.type?F.call(this,b.x,b.y,b.radius,b.startAngle,b.endAngle,b.counterclockwise,void 0,e,!p):k.call(this,b.x,b.y),p=!0}else if(!0===i[w].close)this.pdf.internal.out("h"),p=!1;else if(!0!==i[w].begin){var B=i[w].start.x,C=i[w].start.y;Q.call(this,i[w].deltas,B,C),p=!0}r&&L.call(this,r),e&&N.call(this)}},_=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}},E=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var F=function(t,e,n,r,i,A,o,s,a){for(var l=T.call(this,n,r,i,A),c=0;c<l.length;c++){var u=l[c];0===c&&(a?S.call(this,u.x1+t,u.y1+e):k.call(this,u.x1+t,u.y1+e)),I.call(this,t,e,u.x2,u.y2,u.x3,u.y3,u.x4,u.y4)}s?N.call(this):L.call(this,o)},L=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},N=function(){this.pdf.clip(),this.pdf.discardPath()},S=function(t,e){this.pdf.internal.out(n(t)+" "+r(e)+" m")},U=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.pdf.getTextDimensions(t.text),r=_.call(this,t.y),i=E.call(this,r)-n.h,A=this.ctx.transform.applyToPoint(new s(t.x,r)),o=this.ctx.transform.decompose(),a=new c;a=(a=(a=a.multiply(o.translate)).multiply(o.skew)).multiply(o.scale);for(var u,h,d,f=this.ctx.transform.applyToRectangle(new l(t.x,r,n.w,n.h)),p=a.applyToRectangle(new l(t.x,i,n.w,n.h)),g=y.call(this,p),m=[],v=0;v<g.length;v+=1)-1===m.indexOf(g[v])&&m.push(g[v]);if(B(m),this.autoPaging)for(var C=m[0],F=m[m.length-1],L=C;L<F+1;L++){this.pdf.setPage(L);var N=1===L?this.posY+this.margin[0]:this.margin[0],S=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],U=this.pdf.internal.pageSize.height-this.margin[2],k=U-this.margin[0],Q=this.pdf.internal.pageSize.width-this.margin[1],I=Q-this.margin[3],T=1===L?0:S+(L-2)*k;if(0!==this.ctx.clip_path.length){var O=this.path;u=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(u,this.posX+this.margin[3],-1*T+N),x.call(this,"fill",!0),this.path=O}var M=b([JSON.parse(JSON.stringify(p))],this.posX+this.margin[3],-T+N+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var D="text"!==this.autoPaging;if(D||M.y+M.h<=U){if(D||M.y>=N&&M.x<=Q){var P=D?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||Q-M.x)[0],H=b([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-T+N+this.ctx.prevPageLastElemOffset)[0],R=D&&(L>C||L<F)&&w.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],I,k,null).clip().discardPath()),this.pdf.text(P,H.x,H.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),R&&this.pdf.restoreGraphicsState()}}else M.y<U&&(this.ctx.prevPageLastElemOffset+=U-M.y);t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)}else t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,A.x+this.posX,A.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)},k=function(t,e,i,A){i=i||0,A=A||0,this.pdf.internal.out(n(t+i)+" "+r(e+A)+" l")},Q=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},I=function(t,n,r,i,s,a,l,c){this.pdf.internal.out([e(A(r+t)),e(o(i+n)),e(A(s+t)),e(o(a+n)),e(A(l+t)),e(o(c+n)),"c"].join(" "))},T=function(t,e,n,r){for(var i=2*Math.PI,A=Math.PI/2;e>n;)e-=i;var o=Math.abs(n-e);o<i&&r&&(o=i-o);for(var s=[],a=r?-1:1,l=e;o>1e-5;){var c=l+a*Math.min(o,A);s.push(O.call(this,t,l,c)),o-=Math.abs(c-l),l=c}return s},O=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),A=t*Math.sin(r),o=i,s=-A,a=o*o+s*s,l=a+o*i+s*A,c=4/3*(Math.sqrt(2*a*l)-l)/(o*A-s*i),u=o-c*s,h=s+c*o,d=u,f=-h,p=r+e,g=Math.cos(p),m=Math.sin(p);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:u*g-h*m,y2:u*m+h*g,x3:d*g-f*m,y3:d*m+f*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},M=function(t){return 180*t/Math.PI},D=function(t,e,n,r,i,A){var o=t+.5*(n-t),s=e+.5*(r-e),a=i+.5*(n-i),c=A+.5*(r-A),u=Math.min(t,i,o,a),h=Math.max(t,i,o,a),d=Math.min(e,A,s,c),f=Math.max(e,A,s,c);return new l(u,d,h-u,f-d)},P=function(t,e,n,r,i,A,o,s){var a,c,u,h,d,f,p,g,m,w,y,v,b,B,C=n-t,x=r-e,_=i-n,E=A-r,F=o-i,L=s-A;for(c=0;c<41;c++)m=(p=(u=t+(a=c/40)*C)+a*((d=n+a*_)-u))+a*(d+a*(i+a*F-d)-p),w=(g=(h=e+a*x)+a*((f=r+a*E)-h))+a*(f+a*(A+a*L-f)-g),0==c?(y=m,v=w,b=m,B=w):(y=Math.min(y,m),v=Math.min(v,w),b=Math.max(b,m),B=Math.max(B,w));return new l(Math.round(y),Math.round(v),Math.round(b-y),Math.round(B-v))},H=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(P.API),
/**
* @license
* jsPDF filters PlugIn
* Copyright (c) 2014 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(t){var e,n,r,i,A,o,s,a,l,c;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(A=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(o=(A=((A=((A=((A=(A-(c=A%85))/85)-(l=A%85))/85)-(a=A%85))/85)-(s=A%85))/85)%85,n.push(o+33,s+33,a+33,l+33,c+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,r,i,A,o=String,s="length",a=255,l="charCodeAt",c="slice",u="replace";for(t[c](-2),t=t[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],i=0,A=(t+=e="uuuuu"[c](t[s]%5||5))[s];A>i;i+=5)n=52200625*(t[l](i)-33)+614125*(t[l](i+1)-33)+7225*(t[l](i+2)-33)+85*(t[l](i+3)-33)+(t[l](i+4)-33),r.push(a&n>>24,a&n>>16,a&n>>8,a&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[s]),o.fromCharCode.apply(o,r)},r=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r<t.length;r+=2)n+=String.fromCharCode("0x"+(t[r]+t[r+1]));return n},i=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=Object(A["b"])(e)).reduce((function(t,e){return t+String.fromCharCode(e)}),"")};t.processDataByFilters=function(t,A){var o=0,s=t||"",a=[];for("string"==typeof(A=A||[])&&(A=[A]),o=0;o<A.length;o+=1)switch(A[o]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),a.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=e(s),a.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=r(s),a.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map((function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)})).join("")+">",a.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),a.push("/FlateDecode");break;default:throw new Error('The filter: "'+A[o]+'" is not implemented')}return{data:s,reverseChain:a.reverse().join(" ")}}}(P.API),
/**
* @license
* jsPDF fileloading PlugIn
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,A=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;i<e;i+=1)n.push(r(255&t.charCodeAt(i)));return n.join("")};if(r.open("GET",t,!e),r.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(r.onload=function(){200===r.status?n(A(this.responseText)):n(void 0)}),r.send(null),e&&200===r.status)return A(r.responseText)}(t,e,n)}catch(t){}return r}(t,e,n)},t.loadImageFile=t.loadFile}(P.API),function(t){function e(){return(o.html2canvas?Promise.resolve(o.html2canvas):Promise.resolve().then(n.t.bind(null,"c444",7))).catch((function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))})).then((function(t){return t.default?t.default:t}))}function r(){return(o.DOMPurify?Promise.resolve(o.DOMPurify):n.e(2).then(n.t.bind(null,"b163",7))).catch((function(t){return Promise.reject(new Error("Could not load dompurify: "+t))})).then((function(t){return t.default?t.default:t}))}var A=function(t){var e=i()(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},s=function(t,e){var n=document.createElement(t);for(var r in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[r]=e.style[r];return n},a=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(Promise.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(t,e){return t.__proto__=e||a.prototype,t},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(t,e){return this.then((function(){switch(e=e||function(t){switch(A(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(r).then((function(e){return this.set({src:s("div",{innerHTML:t,dompurify:e})})}));case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}}))},a.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.")}},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 t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(r.value=e.value),r.addEventListener("load",(function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft}),!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=s("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=s("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(s("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 t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)})).then((function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},a.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then((function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,r="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:r,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var A=0;A<n.length;++A){var o=n[A],s=o.src.find((function(t){return"truetype"===t.format}));s&&e.addFont(s.url,o.ref.name,o.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,e.context2d.save(!0),t(this.prop.container,i)})).then((function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)}))},a.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}))},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(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},a.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(t,e)}))},a.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}}))},a.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)}))},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(t){if("object"!==A(t))return this;var e=Object.keys(t||{}).map((function(e){if(e in a.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)}))},a.prototype.get=function(t,e){return this.then((function(){var n=t in a.template.prop?this.prop[t]:this.opt[t];return e?e(n):n}))},a.prototype.setMargin=function(t){return this.then((function(){switch(A(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)},a.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then((function(){(t=t||P.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t}))},a.prototype.setProgress=function(t,e,n,r){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(t,e,n,r){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},a.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,(function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,(function(e){return n.updateProgress(null,t),e})).then(t,e).then((function(t){return n.updateProgress(1),t}))}))},a.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var r=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:a.convert(Object.assign({},this),Promise.prototype),i=n.call(r,t,e);return a.convert(i,this.__proto__)},a.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},a.prototype.thenList=function(t){var e=this;return t.forEach((function(t){e=e.thenCore(t)})),e},a.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return a.convert(e,this)},a.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},a.prototype.error=function(t){return this.then((function(){throw new Error(t)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,P.getPageSize=function(t,e,n){if("object"===i()(t)){var r=t;t=r.orientation,e=r.unit||e,n=r.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var A,o=(""+n).toLowerCase(),s={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":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: "+e}var a,l=0,c=0;if(s.hasOwnProperty(o))l=s[o][1]/A,c=s[o][0]/A;else try{l=n[1],c=n[0]}catch(u){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>l&&(a=c,c=l,l=a);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l>c&&(a=c,c=l,l=a)}return{width:c,height:l,unit:e,k:A,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(It):null;var n=new a(e);return e.worker?n:n.from(t).doCallback()}}(P.API),P.API.addJS=function(t){return Kt=t,this.internal.events.subscribe("postPutResources",(function(){zt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(zt+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),qt=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Kt+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==zt&&void 0!==qt&&this.internal.out("/Names <</JavaScript "+zt+" 0 R>>")})),this
/**
* @license
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var r=t.outline.render().split(/\r\n/),i=0;i<r.length;i++){var A=r[i],o=n.exec(A);if(null!=o){var s=o[1];t.internal.newObjectDeferredBegin(s,!1)}t.internal.write(A)}if(this.outline.createNamedDestinations){var a=this.internal.pages.length,l=[];for(i=0;i<a;i++){var c=t.internal.newObject();l.push(c);var u=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<l.length;i++)t.internal.write("(page_"+(i+1)+")"+l[i]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<e.children.length;r++){var i=e.children[r];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(e)),r>0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[r+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var A=this.count=this.count_r({count:0},i);if(A>0&&this.line("/Count "+A),i.options&&i.options.pageNumber){var o=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<e.children.length;s++)this.renderItems(e.children[s])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(P.API),
/**
* @license
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,r,i,A,o){var s,a=this.decode.DCT_DECODE,l=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=A||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(s=function(t){for(var n,r=256*t.charCodeAt(4)+t.charCodeAt(5),i=t.length,A={width:0,height:0,numcomponents:1},o=4;o<i;o+=2){if(o+=r,-1!==e.indexOf(t.charCodeAt(o+1))){n=256*t.charCodeAt(o+5)+t.charCodeAt(o+6),A={width:256*t.charCodeAt(o+7)+t.charCodeAt(o+8),height:n,numcomponents:t.charCodeAt(o+9)};break}r=256*t.charCodeAt(o+2)+t.charCodeAt(o+3)}return A}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}l={data:t,width:s.width,height:s.height,colorSpace:o,bitsPerComponent:8,filter:a,index:n,alias:r}}return l}}(P.API);var Vt,Wt,Yt,Xt,Jt,Zt=function(){var t,e,n;function r(t){var e,n,r,i,A,o,s,a,l,c,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(),l=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()},A=this.readUInt16(),i=this.readUInt16()||100,o.delay=1e3*A/i,o.disposeOp=this.data[this.pos++],o.blendOp=this.data[this.pos++],o.data=[];break;case"IDAT":case"fdAT":for("fdAT"===l&&(this.pos+=4,e-=4),t=(null!=o?o.data:void 0)||this.imgData,h=0;0<=e?h<e:h>e;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(d=0;0<=c?d<c:d>c;0<=c?++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":s=(u=this.read(e)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,u.slice(s+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,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(A,o,s,a){var l,c,u,h,d,f,p,g,m,w,y,v,b,B,C,x,_,E,F,L,N,S=Math.ceil((i.width-A)/s),U=Math.ceil((i.height-o)/a),k=i.width==S&&i.height==U;for(B=e*S,v=k?n:new Uint8Array(B*U),f=t.length,b=0,c=0;b<U&&r<f;){switch(t[r++]){case 0:for(h=_=0;_<B;h=_+=1)v[c++]=t[r++];break;case 1:for(h=E=0;E<B;h=E+=1)l=t[r++],d=h<e?0:v[c-e],v[c++]=(l+d)%256;break;case 2:for(h=F=0;F<B;h=F+=1)l=t[r++],u=(h-h%e)/e,C=b&&v[(b-1)*B+u*e+h%e],v[c++]=(C+l)%256;break;case 3:for(h=L=0;L<B;h=L+=1)l=t[r++],u=(h-h%e)/e,d=h<e?0:v[c-e],C=b&&v[(b-1)*B+u*e+h%e],v[c++]=(l+Math.floor((d+C)/2))%256;break;case 4:for(h=N=0;N<B;h=N+=1)l=t[r++],u=(h-h%e)/e,d=h<e?0:v[c-e],0===b?C=x=0:(C=v[(b-1)*B+u*e+h%e],x=u&&v[(b-1)*B+(u-1)*e+h%e]),p=d+C-x,g=Math.abs(p-d),w=Math.abs(p-C),y=Math.abs(p-x),m=g<=w&&g<=y?d:w<=y?C:x,v[c++]=(l+m)%256;break;default:throw new Error("Invalid filter algorithm: "+t[r-1])}if(!k){var Q=((o+b*a)*i.width+A)*e,I=b*B;for(h=0;h<S;h+=1){for(var T=0;T<e;T+=1)n[Q++]=v[I++];Q+=(s-1)*e}}b++}}return t=Object(A["a"])(t),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},r.prototype.decodePalette=function(){var t,e,n,r,i,A,o,s,a;for(n=this.palette,A=this.transparency.indexed||[],i=new Uint8Array((A.length||0)+n.length),r=0,t=0,e=o=0,s=n.length;o<s;e=o+=3)i[r++]=n[e],i[r++]=n[e+1],i[r++]=n[e+2],i[r++]=null!=(a=A[t++])?a:255;return i},r.prototype.copyToImageData=function(t,e){var n,r,i,A,o,s,a,l,c,u,h;if(r=this.colors,c=null,n=this.hasAlphaChannel,this.palette.length&&(c=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,n=!0),l=(i=t.data||t).length,o=c||e,A=s=0,1===r)for(;A<l;)a=c?4*e[A/4]:s,u=o[a++],i[A++]=u,i[A++]=u,i[A++]=u,i[A++]=n?o[a++]:255,s=a;else for(;A<l;)a=c?4*e[A/4]:s,i[A++]=o[a++],i[A++]=o[a++],i[A++]=o[a++],i[A++]=n?o[a++]:255,s=a},r.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var i=function(){if("[object Window]"===Object.prototype.toString.call(o)){try{e=o.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return i(),t=function(t){var r;if(!0===i())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(r=new Image).src=e.toDataURL(),r;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(e){var n,r,i,A,o,s,a,l;if(this.animation){for(l=[],r=o=0,s=(a=this.animation.frames).length;o<s;r=++o)n=a[r],i=e.createImageData(n.width,n.height),A=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,A),n.imageData=i,l.push(n.image=t(i));return l}},r.prototype.renderFrame=function(t,e){var n,r,i;return n=(r=this.animation.frames)[e],i=r[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?t.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&t.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(t){var e,n,r,i,A,o,s=this;return n=0,o=this.animation,i=o.numFrames,r=o.frames,A=o.numPlays,(e=function(){var o,a;if(o=n++%i,a=r[o],s.renderFrame(t,o),i>1&&n/i<A)return s.animation._timeout=setTimeout(e,a.delay)})()},r.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},r.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},r}();
/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
/**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function $t(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],A=i>>7,o=1<<1+(7&i);t[e++],t[e++];var s=null,a=null;A&&(s=e,a=o,e+=3*o);var l=!0,c=[],u=0,h=null,d=0,f=null;for(this.width=n,this.height=r;l&&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;;){if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("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(;;){if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,w=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,v=t[e++],b=v>>6&1,B=1<<1+(7&v),C=s,x=a,_=!1;v>>7&&(_=!0,C=e,x=B,e+=3*B);var E=e;for(e++;;){var F;if(!((F=t[e++])>=0))throw Error("Invalid block size");if(0===F)break;e+=F}c.push({x:g,y:m,width:w,height:y,has_local_palette:_,palette_offset:C,palette_size:x,data_offset:E,data_length:e-E,transparent_index:h,interlaced:!!b,delay:u,disposal:d});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return f},this.frameInfo=function(t){if(t<0||t>=c.length)throw new Error("Frame index out of range.");return c[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),A=i.width*i.height,o=new Uint8Array(A);te(t,i.data_offset,o,A);var s=i.palette_offset,a=i.transparent_index;null===a&&(a=256);var l=i.width,c=n-l,u=l,h=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),f=h,p=4*c;!0===i.interlaced&&(p+=4*n*7);for(var g=8,m=0,w=o.length;m<w;++m){var y=o[m];if(0===u&&(u=l,(f+=p)>=d&&(p=4*c+4*n*(g-1),f=h+(l+c)*(g<<1),g>>=1)),y===a)f+=4;else{var v=t[s+3*y],b=t[s+3*y+1],B=t[s+3*y+2];r[f++]=B,r[f++]=b,r[f++]=v,r[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),A=i.width*i.height,o=new Uint8Array(A);te(t,i.data_offset,o,A);var s=i.palette_offset,a=i.transparent_index;null===a&&(a=256);var l=i.width,c=n-l,u=l,h=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),f=h,p=4*c;!0===i.interlaced&&(p+=4*n*7);for(var g=8,m=0,w=o.length;m<w;++m){var y=o[m];if(0===u&&(u=l,(f+=p)>=d&&(p=4*c+4*n*(g-1),f=h+(l+c)*(g<<1),g>>=1)),y===a)f+=4;else{var v=t[s+3*y],b=t[s+3*y+1],B=t[s+3*y+2];r[f++]=v,r[f++]=b,r[f++]=B,r[f++]=255}--u}}}function te(t,e,n,r){for(var i=t[e++],A=1<<i,o=A+1,s=o+1,l=i+1,c=(1<<l)-1,u=0,h=0,d=0,f=t[e++],p=new Int32Array(4096),g=null;;){for(;u<16&&0!==f;)h|=t[e++]<<u,u+=8,1===f?f=t[e++]:--f;if(u<l)break;var m=h&c;if(h>>=l,u-=l,m!==A){if(m===o)break;for(var w=m<s?m:g,y=0,v=w;v>A;)v=p[v]>>8,++y;var b=v;if(d+y+(w!==m?1:0)>r)return void a.log("Warning, gif stream longer than expected.");n[d++]=b;var B=d+=y;for(w!==m&&(n[d++]=b),v=w;y--;)v=p[v],n[--B]=255&v,v>>=8;null!==g&&s<4096&&(p[s++]=g<<8|b,s>=c+1&&l<12&&(++l,c=c<<1|1)),g=m}else s=o+1,c=(1<<(l=i+1))-1,g=null}return d!==r&&a.log("Warning, gif stream shorter than expected."),n}
/**
* @license
Copyright (c) 2008, Adobe Systems Incorporated
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function ee(t){var e,n,r,i,A,o=Math.floor,s=new Array(64),a=new Array(64),l=new Array(64),c=new Array(64),u=new Array(65535),h=new Array(65535),d=new Array(64),f=new Array(64),p=[],g=0,m=7,w=new Array(64),y=new Array(64),v=new Array(64),b=new Array(256),B=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],_=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],S=[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 k(t,e){for(var n=0,r=0,i=new Array,A=1;A<=16;A++){for(var o=1;o<=t[A];o++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=A,r++,n++;n*=2}return i}function Q(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<m),n--,--m<0&&(255==g?(I(255),I(0)):I(g),m=7,g=0)}function I(t){p.push(t)}function T(t){I(t>>8&255),I(255&t)}function O(t,e,n,r,i){for(var A,o=i[0],s=i[240],a=function(t,e){var n,r,i,A,o,s,a,l,c,u,h=0;for(c=0;c<8;++c){n=t[h],r=t[h+1],i=t[h+2],A=t[h+3],o=t[h+4],s=t[h+5],a=t[h+6];var f=n+(l=t[h+7]),p=n-l,g=r+a,m=r-a,w=i+s,y=i-s,v=A+o,b=A-o,B=f+v,C=f-v,x=g+w,_=g-w;t[h]=B+x,t[h+4]=B-x;var E=.707106781*(_+C);t[h+2]=C+E,t[h+6]=C-E;var F=.382683433*((B=b+y)-(_=m+p)),L=.5411961*B+F,N=1.306562965*_+F,S=.707106781*(x=y+m),U=p+S,k=p-S;t[h+5]=k+L,t[h+3]=k-L,t[h+1]=U+N,t[h+7]=U-N,h+=8}for(h=0,c=0;c<8;++c){n=t[h],r=t[h+8],i=t[h+16],A=t[h+24],o=t[h+32],s=t[h+40],a=t[h+48];var Q=n+(l=t[h+56]),I=n-l,T=r+a,O=r-a,M=i+s,D=i-s,P=A+o,H=A-o,R=Q+P,j=Q-P,z=T+M,q=T-M;t[h]=R+z,t[h+32]=R-z;var K=.707106781*(q+j);t[h+16]=j+K,t[h+48]=j-K;var G=.382683433*((R=H+D)-(q=O+I)),V=.5411961*R+G,W=1.306562965*q+G,Y=.707106781*(z=D+O),X=I+Y,J=I-Y;t[h+40]=J+V,t[h+24]=J-V,t[h+8]=X+W,t[h+56]=X-W,h++}for(c=0;c<64;++c)u=t[c]*e[c],d[c]=u>0?u+.5|0:u-.5|0;return d}(t,e),l=0;l<64;++l)f[C[l]]=a[l];var c=f[0]-n;n=f[0],0==c?Q(r[0]):(Q(r[h[A=32767+c]]),Q(u[A]));for(var p=63;p>0&&0==f[p];)p--;if(0==p)return Q(o),n;for(var g,m=1;m<=p;){for(var w=m;0==f[m]&&m<=p;)++m;var y=m-w;if(y>=16){g=y>>4;for(var v=1;v<=g;++v)Q(s);y&=15}A=32767+f[m],Q(i[(y<<4)+h[A]]),Q(u[A]),m++}return 63!=p&&Q(o),n}function M(t){t=Math.min(Math.max(t,1),100),A!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=o((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[C[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],A=0;A<64;A++){var u=o((i[A]*t+50)/100);u=Math.min(Math.max(u,1),255),a[C[A]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,f=0;f<8;f++)for(var p=0;p<8;p++)l[d]=1/(s[C[d]]*h[f]*h[p]*8),c[d]=1/(a[C[d]]*h[f]*h[p]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),A=t)}this.encode=function(t,A){A&&M(A),p=new Array,g=0,m=7,T(65496),T(65504),T(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),T(1),T(1),I(0),I(0),function(){T(65499),T(132),I(0);for(var t=0;t<64;t++)I(s[t]);I(1);for(var e=0;e<64;e++)I(a[e])}(),function(t,e){T(65472),T(17),I(8),T(e),T(t),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1)}(t.width,t.height),function(){T(65476),T(418),I(0);for(var t=0;t<16;t++)I(x[t+1]);for(var e=0;e<=11;e++)I(_[e]);I(16);for(var n=0;n<16;n++)I(E[n+1]);for(var r=0;r<=161;r++)I(F[r]);I(1);for(var i=0;i<16;i++)I(L[i+1]);for(var A=0;A<=11;A++)I(N[A]);I(17);for(var o=0;o<16;o++)I(S[o+1]);for(var s=0;s<=161;s++)I(U[s])}(),T(65498),T(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var o=0,u=0,h=0;g=0,m=7,this.encode.displayName="_encode_";for(var d,f,b,C,k,D,P,H,R,j=t.data,z=t.width,q=t.height,K=4*z,G=0;G<q;){for(d=0;d<K;){for(k=K*G+d,P=-1,H=0,R=0;R<64;R++)D=k+(H=R>>3)*K+(P=4*(7&R)),G+H>=q&&(D-=K*(G+1+H-q)),d+P>=K&&(D-=d+P-K+4),f=j[D++],b=j[D++],C=j[D++],w[R]=(B[f]+B[b+256>>0]+B[C+512>>0]>>16)-128,y[R]=(B[f+768>>0]+B[b+1024>>0]+B[C+1280>>0]>>16)-128,v[R]=(B[f+1280>>0]+B[b+1536>>0]+B[C+1792>>0]>>16)-128;o=O(w,l,o,e,r),u=O(y,c,u,n,i),h=O(v,c,h,n,i),d+=32}G+=8}if(m>=0){var V=[];V[1]=m+1,V[0]=(1<<m+1)-1,Q(V)}return T(65497),new Uint8Array(p)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)b[e]=t(e)}(),e=k(x,_),n=k(L,N),r=k(E,F),i=k(S,U),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var r=t;r<e;r++)h[32767+r]=n,u[32767+r]=[],u[32767+r][1]=n,u[32767+r][0]=r;for(var i=-(e-1);i<=-t;i++)h[32767+i]=n,u[32767+i]=[],u[32767+i][1]=n,u[32767+i][0]=e-1+i;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)B[t]=19595*t,B[t+256>>0]=38470*t,B[t+512>>0]=7471*t+32768,B[t+768>>0]=-11059*t,B[t+1024>>0]=-21709*t,B[t+1280>>0]=32768*t+8421375,B[t+1536>>0]=-27439*t,B[t+1792>>0]=-5329*t}(),M(t)}
/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function ne(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function re(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var A=0;A<i;A++)t[e+A]=n[r+A]}function i(t,e,n,r){for(var i=0;i<r;i++)t[e+i]=n}function A(t){return new Int32Array(t)}function o(t,e){for(var n=[],r=0;r<t;r++)n.push(new e);return n}function s(t,e){var n=[];return function t(n,r,i){for(var A=i[r],o=0;o<A&&(n.push(i.length>r+1?[]:new e),!(i.length<r+1));o++)t(n[o],r+1,i)}(n,0,t),n}var a=function(){var t=this;function a(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function l(t,n,r,i,A){e(!(i%r));do{t[n+(i-=r)]=A}while(0<i)}function c(t,n,r,i,o){if(e(2328>=o),512>=o)var s=A(512);else if(null==(s=A(o)))return 0;return function(t,n,r,i,o,s){var c,h,d=n,f=1<<r,p=A(16),g=A(16);for(e(0!=o),e(null!=i),e(null!=t),e(0<r),h=0;h<o;++h){if(15<i[h])return 0;++p[i[h]]}if(p[0]==o)return 0;for(g[1]=0,c=1;15>c;++c){if(p[c]>1<<c)return 0;g[c+1]=g[c]+p[c]}for(h=0;h<o;++h)c=i[h],0<i[h]&&(s[g[c]++]=h);if(1==g[15])return(i=new u).g=0,i.value=s[0],l(t,d,1,f,i),f;var m,w=-1,y=f-1,v=0,b=1,B=1,C=1<<r;for(h=0,c=1,o=2;c<=r;++c,o<<=1){if(b+=B<<=1,0>(B-=p[c]))return 0;for(;0<p[c];--p[c])(i=new u).g=c,i.value=s[h++],l(t,d+v,o,C,i),v=a(v,c)}for(c=r+1,o=2;15>=c;++c,o<<=1){if(b+=B<<=1,0>(B-=p[c]))return 0;for(;0<p[c];--p[c]){if(i=new u,(v&y)!=w){for(d+=C,m=1<<(w=c)-r;15>w&&!(0>=(m-=p[w]));)++w,m<<=1;f+=C=1<<(m=w-r),t[n+(w=v&y)].g=m+r,t[n+w].value=d-n-w}i.g=c-r,i.value=s[h++],l(t,d+(v>>r),o,C,i),v=a(v,c)}}return b!=2*g[15]-1?0:f}(t,n,r,i,o,s)}function u(){this.value=this.g=0}function h(){this.value=this.g=0}function d(){this.G=o(5,u),this.H=A(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Pn,h)}function f(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,E(t)}function p(t,e){for(var n=0;0<e--;)n|=L(t,128)<<e;return n}function g(t,e){var n=p(t,e);return F(t)?-n:n}function m(t,n,r,i){var A,o=0;for(e(null!=t),e(null!=n),e(4294967288>i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4<i&&(i=4),A=0;A<i;++A)o+=n[r+A]<<8*A;t.Ra=o,t.bb=i,t.oa=n,t.pa=r}function w(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<jn-8>>>0,++t.bb,t.u-=8;C(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=Rn){var r=B(t)&Hn[n];return t.u+=n,w(t),r}return t.h=1,t.u=0}function v(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function B(t){return t.Ra>>>(t.u&jn-1)>>>0}function C(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>jn}function x(t,e){t.u=e,t.h=C(t)}function _(t){t.u>=zn&&(e(t.u>=zn),w(t))}function E(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function F(t){return p(t,1)}function L(t,e){var n=t.Ca;0>t.b&&E(t);var r=t.b,i=n*e>>>8,A=(t.I>>>r>i)+0;for(A?(n-=i,t.I-=i+1<<r>>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+qn[r],t.b-=r,t.Ca=(n<<r)-1,A}function N(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function S(t,e){return t[e+0]<<0|t[e+1]<<8}function U(t,e){return S(t,e)|t[e+2]<<16}function k(t,e){return S(t,e)|S(t,e+2)<<16}function Q(t,n){var r=1<<n;return e(null!=t),e(0<n),t.X=A(r),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function I(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),r(n.X,0,t.X,0,1<<n.Xa)}function T(){this.X=[],this.Xa=this.Mb=0}function O(t,n,r,i){e(null!=r),e(null!=i);var A=r[0],o=i[0];return 0==A&&(A=(t*o+n/2)/n),0==o&&(o=(n*A+t/2)/t),0>=A||0>=o?0:(r[0]=A,i[0]=o,1)}function M(t,e){return t+(1<<e)-1>>>e}function D(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function P(e,n){t[n]=function(n,r,i,A,o,s,a){var l;for(l=0;l<o;++l){var c=t[e](s[a+l-1],i,A+l);s[a+l]=D(n[r+l],c)}}}function H(){this.ud=this.hd=this.jd=0}function R(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function j(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function z(t,e){return j(t+(t-e+.5>>1))}function q(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function K(t,e,n,r,i,A,o){for(r=A[o-1],n=0;n<i;++n)A[o+n]=r=D(t[e+n],r)}function G(t,e,n,r,i){var A;for(A=0;A<n;++A){var o=t[e+A],s=o>>8&255,a=16711935&(a=(a=16711935&o)+((s<<16)+s));r[i+A]=(4278255360&o)+a>>>0}}function V(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function W(t,e,n,r,i,A){var o;for(o=0;o<r;++o){var s=e[n+o],a=s>>>8,l=s,c=255&(c=(c=s>>>16)+((t.jd<<24>>24)*(a<<24>>24)>>>5));l=255&(l=(l+=(t.hd<<24>>24)*(a<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[A+o]=(4278255360&s)+(c<<16)+l}}function Y(e,n,r,i,A){t[n]=function(t,e,n,r,o,s,a,l,c){for(r=a;r<l;++r)for(a=0;a<c;++a)o[s++]=A(n[i(t[e++])])},t[e]=function(e,n,o,s,a,l,c){var u=8>>e.b,h=e.Ea,d=e.K[0],f=e.w;if(8>u)for(e=(1<<e.b)-1,f=(1<<u)-1;n<o;++n){var p,g=0;for(p=0;p<h;++p)p&e||(g=i(s[a++])),l[c++]=A(d[g&f]),g>>=u}else t["VP8LMapColor"+r](s,a,d,f,l,c,n,o,h)}}function X(t,e,n,r,i){for(n=e+n;e<n;){var A=t[e++];r[i++]=A>>16&255,r[i++]=A>>8&255,r[i++]=A>>0&255}}function J(t,e,n,r,i){for(n=e+n;e<n;){var A=t[e++];r[i++]=A>>16&255,r[i++]=A>>8&255,r[i++]=A>>0&255,r[i++]=A>>24&255}}function Z(t,e,n,r,i){for(n=e+n;e<n;){var A=(o=t[e++])>>16&240|o>>12&15,o=o>>0&240|o>>28&15;r[i++]=A,r[i++]=o}}function $(t,e,n,r,i){for(n=e+n;e<n;){var A=(o=t[e++])>>16&248|o>>13&7,o=o>>5&224|o>>3&31;r[i++]=A,r[i++]=o}}function tt(t,e,n,r,i){for(n=e+n;e<n;){var A=t[e++];r[i++]=A>>0&255,r[i++]=A>>8&255,r[i++]=A>>16&255}}function et(t,e,n,i,A,o){if(0==o)for(n=e+n;e<n;)N(i,((o=t[e++])[0]>>24|o[1]>>8&65280|o[2]<<8&16711680|o[3]<<24)>>>0),A+=32;else r(i,A,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function rt(t){return t==zr||t==qr||t==Kr||t==Gr}function it(){this.eb=[],this.size=this.A=this.fb=0}function At(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new At,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function at(){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 lt(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function ct(t,e){var n=t.T,i=e.ba.f.RGBA,A=i.eb,o=i.fb+t.ka*i.A,s=mi[e.ba.S],a=t.y,l=t.O,c=t.f,u=t.N,h=t.ea,d=t.W,f=e.cc,p=e.dc,g=e.Mc,m=e.Nc,w=t.ka,y=t.ka+t.T,v=t.U,b=v+1>>1;for(0==w?s(a,l,null,null,c,u,h,d,c,u,h,d,A,o,null,null,v):(s(e.ec,e.fc,a,l,f,p,g,m,c,u,h,d,A,o-i.A,A,o,v),++n);w+2<y;w+=2)f=c,p=u,g=h,m=d,u+=t.Rc,d+=t.Rc,o+=2*i.A,s(a,(l+=2*t.fa)-t.fa,a,l,f,p,g,m,c,u,h,d,A,o-i.A,A,o,v);return l+=t.fa,t.j+y<t.o?(r(e.ec,e.fc,a,l,v),r(e.cc,e.dc,c,u,b),r(e.Mc,e.Nc,h,d,b),n--):1&y||s(a,l,null,null,c,u,h,d,c,u,h,d,A,o+i.A,null,null,v),n}function ut(t,n,r){var i=t.F,A=[t.J];if(null!=i){var o=t.U,s=n.ba.S,a=s==Hr||s==Kr;n=n.ba.f.RGBA;var l=[0],c=t.ka;l[0]=t.T,t.Kb&&(0==c?--l[0]:(--c,A[0]-=t.width),t.j+t.ka+t.T==t.o&&(l[0]=t.o-t.j-c));var u=n.eb;c=n.fb+c*n.A,t=_r(i,A[0],t.width,o,l,u,c+(a?0:3),n.A),e(r==l),t&&rt(s)&&Cr(u,c,a,o,l,n.A)}return 0}function ht(t){var e=t.ma,n=e.ba.S,r=11>n,i=n==Mr||n==Pr||n==Hr||n==Rr||12==n||rt(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!On(e.Oa,t,i?11:12))return 0;if(i&&rt(n)&&yn(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=lt,t.Kb){if(n=t.U+1>>1,e.memory=A(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=ct,yn()}}else alert("todo:EmitYUV");i&&(e.Jb=ut,r&&mn())}if(r&&!Ui){for(t=0;256>t;++t)ki[t]=89858*(t-128)+Ei>>_i,Ti[t]=-22014*(t-128)+Ei,Ii[t]=-45773*(t-128),Qi[t]=113618*(t-128)+Ei>>_i;for(t=Fi;t<Li;++t)e=76283*(t-16)+Ei>>_i,Oi[t-Fi]=Kt(e,255),Mi[t-Fi]=Kt(e+8>>4,15);Ui=1}return 1}function dt(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function ft(t){t.ma.memory=null}function pt(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function mt(t,e){return 120<e?e-120:1<=(n=((n=Zr[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function wt(t,e,n){var r=B(n),i=t[e+=255&r].g-8;return 0<i&&(x(n,n.u+8),r=B(n),e+=t[e].value,e+=r&(1<<i)-1),x(n,n.u+t[e].g),t[e].value}function yt(t,n,r){return r.g+=t.g,r.value+=t.value<<n>>>0,e(8>=r.g),t.g}function vt(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])<t.Wb),t.Ya[n]}function bt(t,n,i,A){var o=t.ab,s=t.c*n,a=t.C;n=a+n;var l=i,c=A;for(A=t.Ta,i=t.Ua;0<o--;){var u=t.gc[o],h=a,d=n,f=l,p=c,g=(c=A,l=i,u.Ea);switch(e(h<d),e(d<=u.nc),u.hc){case 2:Vn(f,p,(d-h)*g,c,l);break;case 0:var m=h,w=d,y=c,v=l,b=(E=u).Ea;0==m&&(Kn(f,p,null,null,1,y,v),K(f,p+1,0,0,b-1,y,v+1),p+=b,v+=b,++m);for(var B=1<<E.b,C=B-1,x=M(b,E.b),_=E.K,E=E.w+(m>>E.b)*x;m<w;){var F=_,L=E,N=1;for(Gn(f,p,y,v-b,1,y,v);N<b;){var S=(N&~C)+B;S>b&&(S=b),(0,Zn[F[L++]>>8&15])(f,p+ +N,y,v+N-b,S-N,y,v+N),N=S}p+=b,v+=b,++m&C||(E+=x)}d!=u.nc&&r(c,l-g,c,l+(d-h-1)*g,g);break;case 1:for(g=f,w=p,b=(f=u.Ea)-(v=f&~(y=(p=1<<u.b)-1)),m=M(f,u.b),B=u.K,u=u.w+(h>>u.b)*m;h<d;){for(C=B,x=u,_=new H,E=w+v,F=w+f;w<E;)V(C[x++],_),$n(_,g,w,p,c,l),w+=p,l+=p;w<F&&(V(C[x++],_),$n(_,g,w,b,c,l),w+=b,l+=b),++h&y||(u+=m)}break;case 3:if(f==c&&p==l&&0<u.b){for(w=c,f=g=l+(d-h)*g-(v=(d-h)*M(u.Ea,u.b)),p=c,y=l,m=[],v=(b=v)-1;0<=v;--v)m[v]=p[y+v];for(v=b-1;0<=v;--v)w[f+v]=m[v];Wn(u,h,d,c,g,c,l)}else Wn(u,h,d,f,p,c,l)}l=A,c=i}c!=i&&r(A,i,l,c,s)}function Bt(t,n){var r=t.V,i=t.Ba+t.c*t.C,A=n-t.C;if(e(n<=t.l.o),e(16>=A),0<A){var o=t.l,s=t.Ta,a=t.Ua,l=o.width;if(bt(t,A,r,i),A=a=[a],e((r=t.C)<(i=n)),e(o.v<o.va),i>o.o&&(i=o.o),r<o.j){var c=o.j-r;r=o.j,A[0]+=c*l}if(r>=i?r=0:(A[0]+=4*o.v,o.ka=r-o.j,o.U=o.va-o.v,o.T=i-r,r=1),r){if(a=a[0],11>(r=t.ca).S){var u=r.f.RGBA,h=(i=r.S,A=o.U,o=o.T,c=u.eb,u.A),d=o;for(u=u.fb+t.Ma*u.A;0<d--;){var f=s,p=a,g=A,m=c,w=u;switch(i){case Or:tr(f,p,g,m,w);break;case Mr:er(f,p,g,m,w);break;case zr:er(f,p,g,m,w),Cr(m,w,0,g,1,0);break;case Dr:ir(f,p,g,m,w);break;case Pr:et(f,p,g,m,w,1);break;case qr:et(f,p,g,m,w,1),Cr(m,w,0,g,1,0);break;case Hr:et(f,p,g,m,w,0);break;case Kr:et(f,p,g,m,w,0),Cr(m,w,1,g,1,0);break;case Rr:nr(f,p,g,m,w);break;case Gr:nr(f,p,g,m,w),xr(m,w,g,1,0);break;case jr:rr(f,p,g,m,w);break;default:e(0)}a+=l,u+=h}t.Ma+=o}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=r.height)}}t.C=n,e(t.C<=t.i)}function Ct(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,r=t.Ya[e].H;if(0<n[1][r[1]+0].g||0<n[2][r[2]+0].g||0<n[3][r[3]+0].g)return 0}return 1}function xt(t,n,r,i,A,o){if(0!=t.Z){var s=t.qd,a=t.rd;for(e(null!=gi[t.Z]);n<r;++n)gi[t.Z](s,a,i,A,i,A,o),s=i,a=A,A+=o;t.qd=s,t.rd=a}}function _t(t,n){var r=t.l.ma,i=0==r.Z||1==r.Z?t.l.j:t.C;if(i=t.C<i?i:t.C,e(n<=t.l.o),n>i){var A=t.l.width,o=r.ca,s=r.tb+A*i,a=t.V,l=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),Xn(c[0],i,n,a,l,o,s),xt(r,i,n,o,s,A)}t.C=t.Ma=n}function Et(t,n,r,i,A,o,s){var a=t.$/i,l=t.$%i,c=t.m,u=t.s,h=r+t.$,d=h;A=r+i*A;var f=r+i*o,p=280+u.ua,g=t.Pb?a:16777216,m=0<u.ua?u.Wa:null,w=u.wc,y=h<f?vt(u,l,a):null;e(t.C<o),e(f<=A);var v=!1;t:for(;;){for(;v||h<f;){var b=0;if(a>=g){var E=h-r;e((g=t).Pb),g.wd=g.m,g.xd=E,0<g.s.ua&&I(g.s.Wa,g.s.vb),g=a+ti}if(l&w||(y=vt(u,l,a)),e(null!=y),y.Qb&&(n[h]=y.qb,v=!0),!v)if(_(c),y.jc){b=c,E=n;var F=h,L=y.pd[B(b)&Pn-1];e(y.jc),256>L.g?(x(b,b.u+L.g),E[F]=L.value,b=0):(x(b,b.u+L.g-256),e(256<=L.value),b=L.value),0==b&&(v=!0)}else b=wt(y.G[0],y.H[0],c);if(c.h)break;if(v||256>b){if(!v)if(y.nd)n[h]=(y.qb|b<<8)>>>0;else{if(_(c),v=wt(y.G[1],y.H[1],c),_(c),E=wt(y.G[2],y.H[2],c),F=wt(y.G[3],y.H[3],c),c.h)break;n[h]=(F<<24|v<<16|b<<8|E)>>>0}if(v=!1,++h,++l>=i&&(l=0,++a,null!=s&&a<=o&&!(a%16)&&s(t,a),null!=m))for(;d<h;)b=n[d++],m.X[(506832829*b&4294967295)>>>m.Mb]=b}else if(280>b){if(b=gt(b-256,c),E=wt(y.G[4],y.H[4],c),_(c),E=mt(i,E=gt(E,c)),c.h)break;if(h-r<E||A-h<b)break t;for(F=0;F<b;++F)n[h+F]=n[h+F-E];for(h+=b,l+=b;l>=i;)l-=i,++a,null!=s&&a<=o&&!(a%16)&&s(t,a);if(e(h<=A),l&w&&(y=vt(u,l,a)),null!=m)for(;d<h;)b=n[d++],m.X[(506832829*b&4294967295)>>>m.Mb]=b}else{if(!(b<p))break t;for(v=b-280,e(null!=m);d<h;)b=n[d++],m.X[(506832829*b&4294967295)>>>m.Mb]=b;b=h,e(!(v>>>(E=m).Xa)),n[b]=E.X[v],v=!0}v||e(c.h==C(c))}if(t.Pb&&c.h&&h<A)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&I(t.s.vb,t.s.Wa);else{if(c.h)break t;null!=s&&s(t,a>o?o:a),t.a=0,t.$=h-r}return 1}return t.a=3,0}function Ft(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function Lt(){var e=new sn;return null==e?null:(e.a=0,e.xb=pi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Vn=G,$n=W,tr=X,er=J,nr=Z,rr=$,ir=tt,t.VP8LMapColor32b=Yn,t.VP8LMapColor8b=Jn,e)}function Nt(t,n,r,s,a){var l=1,h=[t],f=[n],p=s.m,g=s.s,m=null,w=0;t:for(;;){if(r)for(;l&&y(p,1);){var v=h,b=f,C=s,E=1,F=C.m,L=C.gc[C.ab],N=y(F,2);if(C.Oc&1<<N)l=0;else{switch(C.Oc|=1<<N,L.hc=N,L.Ea=v[0],L.nc=b[0],L.K=[null],++C.ab,e(4>=C.ab),N){case 0:case 1:L.b=y(F,3)+2,E=Nt(M(L.Ea,L.b),M(L.nc,L.b),0,C,L.K),L.K=L.K[0];break;case 3:var S,U=y(F,8)+1,k=16<U?0:4<U?1:2<U?2:3;if(v[0]=M(L.Ea,k),L.b=k,S=E=Nt(U,1,0,C,L.K)){var I,T=U,O=L,P=1<<(8>>O.b),H=A(P);if(null==H)S=0;else{var R=O.K[0],j=O.w;for(H[0]=O.K[0][0],I=1;I<1*T;++I)H[I]=D(R[j+I],H[I-1]);for(;I<4*P;++I)H[I]=0;O.K[0]=null,O.K[0]=H,S=1}}E=S;break;case 2:break;default:e(0)}l=E}}if(h=h[0],f=f[0],l&&y(p,1)&&!(l=1<=(w=y(p,4))&&11>=w)){s.a=3;break t}var z;if(z=l)e:{var q,K,G,V=s,W=h,Y=f,X=w,J=r,Z=V.m,$=V.s,tt=[null],et=1,nt=0,rt=$r[X];n:for(;;){if(J&&y(Z,1)){var it=y(Z,3)+2,At=M(W,it),ot=M(Y,it),st=At*ot;if(!Nt(At,ot,0,V,tt))break n;for(tt=tt[0],$.xc=it,q=0;q<st;++q){var at=tt[q]>>8&65535;tt[q]=at,at>=et&&(et=at+1)}}if(Z.h)break n;for(K=0;5>K;++K){var lt=Yr[K];!K&&0<X&&(lt+=1<<X),nt<lt&&(nt=lt)}var ct=o(et*rt,u),ut=et,ht=o(ut,d);if(null==ht)var dt=null;else e(65536>=ut),dt=ht;var ft=A(nt);if(null==dt||null==ft||null==ct){V.a=1;break n}var pt=ct;for(q=G=0;q<et;++q){var gt=dt[q],mt=gt.G,wt=gt.H,vt=0,bt=1,Bt=0;for(K=0;5>K;++K){lt=Yr[K],mt[K]=pt,wt[K]=G,!K&&0<X&&(lt+=1<<X);r:{var Ct,xt=lt,_t=V,Lt=ft,St=pt,Ut=G,kt=0,Qt=_t.m,It=y(Qt,1);if(i(Lt,0,0,xt),It){var Tt=y(Qt,1)+1,Ot=y(Qt,1),Mt=y(Qt,0==Ot?1:8);Lt[Mt]=1,2==Tt&&(Lt[Mt=y(Qt,8)]=1);var Dt=1}else{var Pt=A(19),Ht=y(Qt,4)+4;if(19<Ht){_t.a=3;var Rt=0;break r}for(Ct=0;Ct<Ht;++Ct)Pt[Jr[Ct]]=y(Qt,3);var jt=void 0,zt=void 0,qt=_t,Kt=Pt,Gt=xt,Vt=Lt,Wt=0,Yt=qt.m,Xt=8,Jt=o(128,u);i:for(;c(Jt,0,7,Kt,19);){if(y(Yt,1)){var Zt=2+2*y(Yt,3);if((jt=2+y(Yt,Zt))>Gt)break i}else jt=Gt;for(zt=0;zt<Gt&&jt--;){_(Yt);var $t=Jt[0+(127&B(Yt))];x(Yt,Yt.u+$t.g);var te=$t.value;if(16>te)Vt[zt++]=te,0!=te&&(Xt=te);else{var ee=16==te,ne=te-16,re=Wr[ne],ie=y(Yt,Vr[ne])+re;if(zt+ie>Gt)break i;for(var Ae=ee?Xt:0;0<ie--;)Vt[zt++]=Ae}}Wt=1;break i}Wt||(qt.a=3),Dt=Wt}(Dt=Dt&&!Qt.h)&&(kt=c(St,Ut,8,Lt,xt)),Dt&&0!=kt?Rt=kt:(_t.a=3,Rt=0)}if(0==Rt)break n;if(bt&&1==Xr[K]&&(bt=0==pt[G].g),vt+=pt[G].g,G+=Rt,3>=K){var oe,se=ft[0];for(oe=1;oe<lt;++oe)ft[oe]>se&&(se=ft[oe]);Bt+=se}}if(gt.nd=bt,gt.Qb=0,bt&&(gt.qb=(mt[3][wt[3]+0].value<<24|mt[1][wt[1]+0].value<<16|mt[2][wt[2]+0].value)>>>0,0==vt&&256>mt[0][wt[0]+0].value&&(gt.Qb=1,gt.qb+=mt[0][wt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>Bt,gt.jc){var ae,le=gt;for(ae=0;ae<Pn;++ae){var ce=ae,ue=le.pd[ce],he=le.G[0][le.H[0]+ce];256<=he.value?(ue.g=he.g+256,ue.value=he.value):(ue.g=0,ue.value=0,ce>>=yt(he,8,ue),ce>>=yt(le.G[1][le.H[1]+ce],16,ue),ce>>=yt(le.G[2][le.H[2]+ce],0,ue),yt(le.G[3][le.H[3]+ce],24,ue))}}}$.vc=tt,$.Wb=et,$.Ya=dt,$.yc=ct,z=1;break e}z=0}if(!(l=z)){s.a=3;break t}if(0<w){if(g.ua=1<<w,!Q(g.Wa,w)){s.a=1,l=0;break t}}else g.ua=0;var de=s,fe=h,pe=f,ge=de.s,me=ge.xc;if(de.c=fe,de.i=pe,ge.md=M(fe,me),ge.wc=0==me?-1:(1<<me)-1,r){s.xb=fi;break t}if(null==(m=A(h*f))){s.a=1,l=0;break t}l=(l=Et(s,m,0,h,f,f,null))&&!p.h;break t}return l?(null!=a?a[0]=m:(e(null==m),e(r)),s.$=0,r||Ft(g)):Ft(g),l}function St(t,n){var r=t.c*t.i,i=r+n+16*n;return e(t.c<=n),t.V=A(i),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+r+n,1)}function Ut(t,n){var r=t.C,i=n-r,A=t.V,o=t.Ba+t.c*r;for(e(n<=t.l.o);0<i;){var s=16<i?16:i,a=t.l.ma,l=t.l.width,c=l*s,u=a.ca,h=a.tb+l*r,d=t.Ta,f=t.Ua;bt(t,s,A,o),Er(d,f,u,h,c),xt(a,r,r+s,u,h,l),i-=s,A+=s*t.c,r+=s}e(r==n),t.C=t.Ma=n}function kt(){this.ub=this.yd=this.td=this.Rb=0}function Qt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function It(){this.Fb=this.Bb=this.Cb=0,this.Zb=A(4),this.Lb=A(4)}function Tt(){this.Yb=function(){var t=[];return function t(e,n,r){for(var i=r[n],A=0;A<i&&(e.push(r.length>n+1?[]:0),!(r.length<n+1));A++)t(e[A],n+1,r)}(t,0,[3,11]),t}()}function Ot(){this.jb=A(3),this.Wc=s([4,8],Tt),this.Xc=s([4,17],Tt)}function Mt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new A(4),this.od=new A(4)}function Dt(){this.ld=this.La=this.dd=this.tc=0}function Pt(){this.Na=this.la=0}function Ht(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Rt(){this.ad=A(384),this.Za=0,this.Ob=A(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function jt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Dt),this.Y=0,this.ya=Array(new Rt),this.aa=0,this.l=new Gt}function zt(){this.y=A(16),this.f=A(8),this.ea=A(8)}function qt(){this.cb=this.a=0,this.sc="",this.m=new v,this.Od=new kt,this.Kc=new Qt,this.ed=new Mt,this.Qa=new It,this.Ic=this.$c=this.Aa=0,this.D=new jt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,v),this.ia=0,this.pb=o(4,Ht),this.Pa=new Ot,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new zt),this.Hd=0,this.rb=Array(new Pt),this.sb=0,this.wa=Array(new Dt),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 Rt),this.L=this.aa=0,this.gd=s([4,2],Dt),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 Kt(t,e){return 0>t?0:t>e?e:t}function Gt(){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 Vt(){var t=new qt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,ri||(ri=Jt)),t}function Wt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Yt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Xt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Wt(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,A=n.w,o=n.ha;if(4>o)return Wt(t,7,"Truncated header.");var s=r[A+0]|r[A+1]<<8|r[A+2]<<16,a=t.Od;if(a.Rb=!(1&s),a.td=s>>1&7,a.yd=s>>4&1,a.ub=s>>5,3<a.td)return Wt(t,3,"Incorrect keyframe parameters.");if(!a.yd)return Wt(t,4,"Frame not displayable.");A+=3,o-=3;var l=t.Kc;if(a.Rb){if(7>o)return Wt(t,7,"cannot parse picture header");if(!Yt(r,A,o))return Wt(t,3,"Bad code word");l.c=16383&(r[A+4]<<8|r[A+3]),l.Td=r[A+4]>>6,l.i=16383&(r[A+6]<<8|r[A+5]),l.Ud=r[A+6]>>6,A+=7,o-=7,t.za=l.c+15>>4,t.Ub=l.i+15>>4,n.width=l.c,n.height=l.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(a.ub>o)return Wt(t,7,"bad partition length");f(s=t.m,r,A,a.ub),A+=a.ub,o-=a.ub,a.Rb&&(l.Ld=F(s),l.Kd=F(s)),l=t.Qa;var c,u=t.Pa;if(e(null!=s),e(null!=l),l.Cb=F(s),l.Cb){if(l.Bb=F(s),F(s)){for(l.Fb=F(s),c=0;4>c;++c)l.Zb[c]=F(s)?g(s,7):0;for(c=0;4>c;++c)l.Lb[c]=F(s)?g(s,6):0}if(l.Bb)for(c=0;3>c;++c)u.jb[c]=F(s)?p(s,8):255}else l.Bb=0;if(s.Ka)return Wt(t,3,"cannot parse segment header");if((l=t.ed).zd=F(s),l.Tb=p(s,6),l.wb=p(s,3),l.Pc=F(s),l.Pc&&F(s)){for(u=0;4>u;++u)F(s)&&(l.vd[u]=g(s,6));for(u=0;4>u;++u)F(s)&&(l.od[u]=g(s,6))}if(t.L=0==l.Tb?0:l.zd?1:2,s.Ka)return Wt(t,3,"cannot parse filter header");var h=o;if(o=c=A,A=c+h,l=h,t.Xb=(1<<p(t.m,2))-1,h<3*(u=t.Xb))r=7;else{for(c+=3*u,l-=3*u,h=0;h<u;++h){var d=r[o+0]|r[o+1]<<8|r[o+2]<<16;d>l&&(d=l),f(t.Jc[+h],r,c,d),c+=d,l-=d,o+=3}f(t.Jc[+u],r,c,l),r=c<A?0:5}if(0!=r)return Wt(t,r,"cannot parse partitions");for(r=p(c=t.m,7),o=F(c)?g(c,4):0,A=F(c)?g(c,4):0,l=F(c)?g(c,4):0,u=F(c)?g(c,4):0,c=F(c)?g(c,4):0,h=t.Qa,d=0;4>d;++d){if(h.Cb){var m=h.Zb[d];h.Fb||(m+=r)}else{if(0<d){t.pb[d]=t.pb[0];continue}m=r}var w=t.pb[d];w.Sc[0]=ei[Kt(m+o,127)],w.Sc[1]=ni[Kt(m+0,127)],w.Eb[0]=2*ei[Kt(m+A,127)],w.Eb[1]=101581*ni[Kt(m+l,127)]>>16,8>w.Eb[1]&&(w.Eb[1]=8),w.Qc[0]=ei[Kt(m+u,117)],w.Qc[1]=ni[Kt(m+c,127)],w.lc=m+c}if(!a.Rb)return Wt(t,4,"Not a key frame.");for(F(s),a=t.Pa,r=0;4>r;++r){for(o=0;8>o;++o)for(A=0;3>A;++A)for(l=0;11>l;++l)u=L(s,li[r][o][A][l])?p(s,8):si[r][o][A][l],a.Wc[r][o].Yb[A][l]=u;for(o=0;17>o;++o)a.Xc[r][o]=a.Wc[r][ci[o]]}return t.kc=F(s),t.kc&&(t.Bd=p(s,8)),t.cb=1}function Jt(t,e,n,r,i,A,o){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!L(t,s[n+0]))return i;for(;!L(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var a=e[i+1].Yb;if(L(t,s[n+2])){var l=t,c=0;if(L(l,(h=s)[(u=n)+3]))if(L(l,h[u+6])){for(s=0,u=2*(c=L(l,h[u+8]))+(h=L(l,h[u+9+c])),c=0,h=ii[u];h[s];++s)c+=c+L(l,h[s]);c+=3+(8<<u)}else L(l,h[u+7])?(c=7+2*L(l,165),c+=L(l,145)):c=5+L(l,159);else c=L(l,h[u+4])?3+L(l,h[u+5]):2;s=a[2]}else c=1,s=a[1];a=o+Ai[i],0>(l=t).b&&E(l);var u,h=l.b,d=(u=l.Ca>>1)-(l.I>>h)>>31;--l.b,l.Ca+=d,l.Ca|=1,l.I-=(u+1&d)<<h,A[a]=((c^d)-d)*r[(0<i)+0]}return 16}function Zt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,i(t.zc,0,0,t.zc.length),t.ja=0}function $t(t,n){if(null==t)return 0;if(null==n)return Wt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Xt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=Pi[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var a=t.ed;for(s=0;4>s;++s){var l;if(t.Qa.Cb){var c=t.Qa.Lb[s];t.Qa.Fb||(c+=a.Tb)}else c=a.Tb;for(l=0;1>=l;++l){var u=t.gd[s][l],h=c;if(a.Pc&&(h+=a.vd[0],l&&(h+=a.od[0])),0<(h=0>h?0:63<h?63:h)){var d=h;0<a.wb&&(d=4<a.wb?d>>2:d>>1)>9-a.wb&&(d=9-a.wb),1>d&&(d=1),u.dd=d,u.tc=2*h+d,u.ld=40<=h?2:15<=h?1:0}else u.tc=0;u.La=l}}}s=0}else Wt(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0<t.Aa||(t.Ic=Ri);t:{s=t.Ic,a=4*(d=t.za);var f=32*d,p=d+1,g=0<t.L?d*(0<t.Aa?2:1):0,m=(2==t.Aa?2:1)*d;if((u=a+832+(l=3*(16*s+Pi[t.L])/2*f)+(c=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=u)s=0;else{if(u>t.Vb){if(t.Vb=0,t.Ec=A(u),t.Fc=0,null==t.Ec){s=Wt(t,1,"no memory during frame initialization.");break t}t.Vb=u}u=t.Ec,h=t.Fc,t.Ac=u,t.Bc=h,h+=a,t.Gd=o(f,zt),t.Hd=0,t.rb=o(p+1,Pt),t.sb=1,t.wa=g?o(g,Dt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=d),e(!0),t.oc=u,t.pc=h,h+=832,t.ya=o(m,Rt),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=d),t.R=16*d,t.B=8*d,d=(f=Pi[t.L])*t.R,f=f/2*t.B,t.sa=u,t.ta=h+d,t.qa=t.sa,t.ra=t.ta+16*s*t.R+f,t.Ha=t.qa,t.Ia=t.ra+8*s*t.B+f,t.$c=0,h+=l,t.mb=c?u:null,t.nb=c?h:null,e(h+c<=t.Fc+t.Vb),Zt(t),i(t.Ac,t.Bc,0,a),s=1}}if(s){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Ur){for(s=-255;255>=s;++s)Fr[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Lr[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Nr[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Sr[255+s]=0>s?0:255<s?255:s;Ur=1}Ar=le,or=Ae,ar=oe,lr=se,cr=ae,sr=ie,ur=We,hr=Ye,dr=Ze,fr=$e,pr=Xe,gr=Je,mr=tn,wr=en,yr=je,vr=ze,br=qe,Br=Ke,hi[0]=xe,hi[1]=ue,hi[2]=Be,hi[3]=Ce,hi[4]=_e,hi[5]=Fe,hi[6]=Ee,hi[7]=Le,hi[8]=Se,hi[9]=Ne,ui[0]=me,ui[1]=de,ui[2]=fe,ui[3]=pe,ui[4]=we,ui[5]=ye,ui[6]=ve,di[0]=Ie,di[1]=he,di[2]=Ue,di[3]=ke,di[4]=Oe,di[5]=Te,di[6]=Me,s=1}else s=0}s&&(s=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var o,s=t.Jc[t.M&t.Xb],a=t.m,l=t;for(o=0;o<l.za;++o){var c=a,u=l,h=u.Ac,d=u.Bc+4*o,f=u.zc,p=u.ya[u.aa+o];if(u.Qa.Bb?p.$b=L(c,u.Pa.jb[0])?2+L(c,u.Pa.jb[2]):L(c,u.Pa.jb[1]):p.$b=0,u.kc&&(p.Ad=L(c,u.Bd)),p.Za=!L(c,145)+0,p.Za){var g=p.Ob,m=0;for(u=0;4>u;++u){var w,y=f[0+u];for(w=0;4>w;++w){y=ai[h[d+w]][y];for(var v=oi[L(c,y[0])];0<v;)v=oi[2*v+L(c,y[v])];y=-v,h[d+w]=y}r(g,m,h,d,4),m+=4,f[0+u]=y}}else y=L(c,156)?L(c,128)?1:3:L(c,163)?2:0,p.Ob[0]=y,i(h,d,y,4),i(f,0,y,4);p.Dd=L(c,142)?L(c,114)?L(c,183)?1:3:2:0}if(l.m.Ka)return Wt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(l=s,c=(a=t).rb[a.sb-1],h=a.rb[a.sb+a.ja],o=a.ya[a.aa+a.ja],d=a.kc?o.Ad:0)c.la=h.la=0,o.Za||(c.Na=h.Na=0),o.Hc=0,o.Gc=0,o.ia=0;else{var b,B;if(c=h,h=l,d=a.Pa.Xc,f=a.ya[a.aa+a.ja],p=a.pb[f.$b],u=f.ad,g=0,m=a.rb[a.sb-1],y=w=0,i(u,g,0,384),f.Za)var C=0,x=d[3];else{v=A(16);var _=c.Na+m.Na;if(_=ri(h,d[1],_,p.Eb,0,v,0),c.Na=m.Na=(0<_)+0,1<_)Ar(v,0,u,g);else{var E=v[0]+3>>3;for(v=0;256>v;v+=16)u[g+v]=E}C=1,x=d[0]}var F=15&c.la,N=15&m.la;for(v=0;4>v;++v){var S=1&N;for(E=B=0;4>E;++E)F=F>>1|(S=(_=ri(h,x,_=S+(1&F),p.Sc,C,u,g))>C)<<7,B=B<<2|(3<_?3:1<_?2:0!=u[g+0]),g+=16;F>>=4,N=N>>1|S<<7,w=(w<<8|B)>>>0}for(x=F,C=N>>4,b=0;4>b;b+=2){for(B=0,F=c.la>>4+b,N=m.la>>4+b,v=0;2>v;++v){for(S=1&N,E=0;2>E;++E)_=S+(1&F),F=F>>1|(S=0<(_=ri(h,d[2],_,p.Qc,0,u,g)))<<3,B=B<<2|(3<_?3:1<_?2:0!=u[g+0]),g+=16;F>>=2,N=N>>1|S<<5}y|=B<<4*b,x|=F<<4<<b,C|=(240&N)<<b}c.la=x,m.la=C,f.Hc=w,f.Gc=y,f.ia=43690&y?0:p.ia,d=!(w|y)}if(0<a.L&&(a.wa[a.Y+a.ja]=a.gd[o.$b][o.Za],a.wa[a.Y+a.ja].La|=!d),l.Ka)return Wt(t,7,"Premature end-of-file encountered.")}if(Zt(t),a=n,l=1,o=(s=t).D,c=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(o.M=s.M,o.uc=c,In(s,o),l=1,o=(B=s.D).Nb,c=(y=Pi[s.L])*s.R,h=y/2*s.B,v=16*o*s.R,E=8*o*s.B,d=s.sa,f=s.ta-c+v,p=s.qa,u=s.ra-h+E,g=s.Ha,m=s.Ia-h+E,N=0==(F=B.M),w=F>=s.Va-1,2==s.Aa&&In(s,B),B.uc)for(S=(_=s).D.M,e(_.D.uc),B=_.yb;B<_.Hb;++B){C=B,x=S;var U=(k=(R=_).D).Nb;b=R.R;var k=k.wa[k.Y+C],Q=R.sa,I=R.ta+16*U*b+16*C,T=k.dd,O=k.tc;if(0!=O)if(e(3<=O),1==R.L)0<C&&vr(Q,I,b,O+4),k.La&&Br(Q,I,b,O),0<x&&yr(Q,I,b,O+4),k.La&&br(Q,I,b,O);else{var M=R.B,D=R.qa,P=R.ra+8*U*M+8*C,H=R.Ha,R=R.Ia+8*U*M+8*C;U=k.ld,0<C&&(hr(Q,I,b,O+4,T,U),fr(D,P,H,R,M,O+4,T,U)),k.La&&(gr(Q,I,b,O,T,U),wr(D,P,H,R,M,O,T,U)),0<x&&(ur(Q,I,b,O+4,T,U),dr(D,P,H,R,M,O+4,T,U)),k.La&&(pr(Q,I,b,O,T,U),mr(D,P,H,R,M,O,T,U))}}if(s.ia&&alert("todo:DitherRow"),null!=a.put){if(B=16*F,F=16*(F+1),N?(a.y=s.sa,a.O=s.ta+v,a.f=s.qa,a.N=s.ra+E,a.ea=s.Ha,a.W=s.Ia+E):(B-=y,a.y=d,a.O=f,a.f=p,a.N=u,a.ea=g,a.W=m),w||(F-=y),F>a.o&&(F=a.o),a.F=null,a.J=null,null!=s.Fa&&0<s.Fa.length&&B<F&&(a.J=hn(s,a,B,F-B),a.F=s.mb,null==a.F&&0==a.F.length)){l=Wt(s,3,"Could not decode alpha data.");break t}B<a.j&&(y=a.j-B,B=a.j,e(!(1&y)),a.O+=s.R*y,a.N+=s.B*(y>>1),a.W+=s.B*(y>>1),null!=a.F&&(a.J+=a.width*y)),B<F&&(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=F-B,l=a.put(a))}o+1!=s.Ic||w||(r(s.sa,s.ta-c,d,f+16*s.R,c),r(s.qa,s.ra-h,p,u+8*s.B,h),r(s.Ha,s.Ia-h,g,m+8*s.B,h))}if(!l)return Wt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0}function te(t,e,n,r,i){i=t[e+n+32*r]+(i>>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function ee(t,e,n,r,i,A){te(t,e,0,n,r+i),te(t,e,1,n,r+A),te(t,e,2,n,r-A),te(t,e,3,n,r-i)}function ne(t){return(20091*t>>16)+t}function re(t,e,n,r){var i,o=0,s=A(16);for(i=0;4>i;++i){var a=t[e+0]+t[e+8],l=t[e+0]-t[e+8],c=(35468*t[e+4]>>16)-ne(t[e+12]),u=ne(t[e+4])+(35468*t[e+12]>>16);s[o+0]=a+u,s[o+1]=l+c,s[o+2]=l-c,s[o+3]=a-u,o+=4,e++}for(i=o=0;4>i;++i)a=(t=s[o+0]+4)+s[o+8],l=t-s[o+8],c=(35468*s[o+4]>>16)-ne(s[o+12]),te(n,r,0,0,a+(u=ne(s[o+4])+(35468*s[o+12]>>16))),te(n,r,1,0,l+c),te(n,r,2,0,l-c),te(n,r,3,0,a-u),o++,r+=32}function ie(t,e,n,r){var i=t[e+0]+4,A=35468*t[e+4]>>16,o=ne(t[e+4]),s=35468*t[e+1]>>16;ee(n,r,0,i+o,t=ne(t[e+1]),s),ee(n,r,1,i+A,t,s),ee(n,r,2,i-A,t,s),ee(n,r,3,i-o,t,s)}function Ae(t,e,n,r,i){re(t,e,n,r),i&&re(t,e+16,n,r+4)}function oe(t,e,n,r){or(t,e+0,n,r,1),or(t,e+32,n,r+128,1)}function se(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)te(n,r,e,i,t)}function ae(t,e,n,r){t[e+0]&&lr(t,e+0,n,r),t[e+16]&&lr(t,e+16,n,r+4),t[e+32]&&lr(t,e+32,n,r+128),t[e+48]&&lr(t,e+48,n,r+128+4)}function le(t,e,n,r){var i,o=A(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],a=t[e+4+i]+t[e+8+i],l=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];o[0+i]=s+a,o[8+i]=s-a,o[4+i]=c+l,o[12+i]=c-l}for(i=0;4>i;++i)s=(t=o[0+4*i]+3)+o[3+4*i],a=o[1+4*i]+o[2+4*i],l=o[1+4*i]-o[2+4*i],c=t-o[3+4*i],n[r+0]=s+a>>3,n[r+16]=c+l>>3,n[r+32]=s-a>>3,n[r+48]=c-l>>3,r+=64}function ce(t,e,n){var r,i=e-32,A=Ir,o=255-t[i-1];for(r=0;r<n;++r){var s,a=A,l=o+t[e-1];for(s=0;s<n;++s)t[e+s]=a[l+t[i+s]];e+=32}}function ue(t,e){ce(t,e,4)}function he(t,e){ce(t,e,8)}function de(t,e){ce(t,e,16)}function fe(t,e){var n;for(n=0;16>n;++n)r(t,e+32*n,t,e-32,16)}function pe(t,e){var n;for(n=16;0<n;--n)i(t,e,t[e-1],16),e+=32}function ge(t,e,n){var r;for(r=0;16>r;++r)i(e,n+32*r,t,16)}function me(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];ge(r>>5,t,e)}function we(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];ge(r>>4,t,e)}function ye(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];ge(r>>4,t,e)}function ve(t,e){ge(128,t,e)}function be(t,e,n){return t+2*e+n+2>>2}function Be(t,e){var n,i=e-32;for(i=new Uint8Array([be(t[i-1],t[i+0],t[i+1]),be(t[i+0],t[i+1],t[i+2]),be(t[i+1],t[i+2],t[i+3]),be(t[i+2],t[i+3],t[i+4])]),n=0;4>n;++n)r(t,e+32*n,i,0,i.length)}function Ce(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],A=t[e-1+96];N(t,e+0,16843009*be(t[e-1-32],n,r)),N(t,e+32,16843009*be(n,r,i)),N(t,e+64,16843009*be(r,i,A)),N(t,e+96,16843009*be(i,A,A))}function xe(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function _e(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],A=t[e-1-32],o=t[e+0-32],s=t[e+1-32],a=t[e+2-32],l=t[e+3-32];t[e+0+96]=be(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=be(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=be(A,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=be(o,A,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=be(s,o,A),t[e+3+32]=t[e+2+0]=be(a,s,o),t[e+3+0]=be(l,a,s)}function Ee(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],A=t[e+4-32],o=t[e+5-32],s=t[e+6-32],a=t[e+7-32];t[e+0+0]=be(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=be(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=be(r,i,A),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=be(i,A,o),t[e+3+32]=t[e+2+64]=t[e+1+96]=be(A,o,s),t[e+3+64]=t[e+2+96]=be(o,s,a),t[e+3+96]=be(s,a,a)}function Fe(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],A=t[e-1-32],o=t[e+0-32],s=t[e+1-32],a=t[e+2-32],l=t[e+3-32];t[e+0+0]=t[e+1+64]=A+o+1>>1,t[e+1+0]=t[e+2+64]=o+s+1>>1,t[e+2+0]=t[e+3+64]=s+a+1>>1,t[e+3+0]=a+l+1>>1,t[e+0+96]=be(i,r,n),t[e+0+64]=be(r,n,A),t[e+0+32]=t[e+1+96]=be(n,A,o),t[e+1+32]=t[e+2+96]=be(A,o,s),t[e+2+32]=t[e+3+96]=be(o,s,a),t[e+3+32]=be(s,a,l)}function Le(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],A=t[e+3-32],o=t[e+4-32],s=t[e+5-32],a=t[e+6-32],l=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+A+1>>1,t[e+3+0]=t[e+2+64]=A+o+1>>1,t[e+0+32]=be(n,r,i),t[e+1+32]=t[e+0+96]=be(r,i,A),t[e+2+32]=t[e+1+96]=be(i,A,o),t[e+3+32]=t[e+2+96]=be(A,o,s),t[e+3+64]=be(o,s,a),t[e+3+96]=be(s,a,l)}function Ne(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],A=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+A+1>>1,t[e+1+0]=be(n,r,i),t[e+3+0]=t[e+1+32]=be(r,i,A),t[e+3+32]=t[e+1+64]=be(i,A,A),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=A}function Se(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],A=t[e-1+96],o=t[e-1-32],s=t[e+0-32],a=t[e+1-32],l=t[e+2-32];t[e+0+0]=t[e+2+32]=n+o+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=A+i+1>>1,t[e+3+0]=be(s,a,l),t[e+2+0]=be(o,s,a),t[e+1+0]=t[e+3+32]=be(n,o,s),t[e+1+32]=t[e+3+64]=be(r,n,o),t[e+1+64]=t[e+3+96]=be(i,r,n),t[e+1+96]=be(A,i,r)}function Ue(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function ke(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function Qe(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function Ie(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];Qe(r>>4,t,e)}function Te(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];Qe(r>>3,t,e)}function Oe(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];Qe(r>>3,t,e)}function Me(t,e){Qe(128,t,e)}function De(t,e,n){var r=t[e-n],i=t[e+0],A=3*(i-r)+kr[1020+t[e-2*n]-t[e+n]],o=Qr[112+(A+4>>3)];t[e-n]=Ir[255+r+Qr[112+(A+3>>3)]],t[e+0]=Ir[255+i-o]}function Pe(t,e,n,r){var i=t[e+0],A=t[e+n];return Tr[255+t[e-2*n]-t[e-n]]>r||Tr[255+A-i]>r}function He(t,e,n,r){return 4*Tr[255+t[e-n]-t[e+0]]+Tr[255+t[e-2*n]-t[e+n]]<=r}function Re(t,e,n,r,i){var A=t[e-3*n],o=t[e-2*n],s=t[e-n],a=t[e+0],l=t[e+n],c=t[e+2*n],u=t[e+3*n];return 4*Tr[255+s-a]+Tr[255+o-l]>r?0:Tr[255+t[e-4*n]-A]<=i&&Tr[255+A-o]<=i&&Tr[255+o-s]<=i&&Tr[255+u-c]<=i&&Tr[255+c-l]<=i&&Tr[255+l-a]<=i}function je(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)He(t,e+r,n,i)&&De(t,e+r,n)}function ze(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)He(t,e+r*n,1,i)&&De(t,e+r*n,1)}function qe(t,e,n,r){var i;for(i=3;0<i;--i)je(t,e+=4*n,n,r)}function Ke(t,e,n,r){var i;for(i=3;0<i;--i)ze(t,e+=4,n,r)}function Ge(t,e,n,r,i,A,o,s){for(A=2*A+1;0<i--;){if(Re(t,e,n,A,o))if(Pe(t,e,n,s))De(t,e,n);else{var a=t,l=e,c=n,u=a[l-2*c],h=a[l-c],d=a[l+0],f=a[l+c],p=a[l+2*c],g=27*(w=kr[1020+3*(d-h)+kr[1020+u-f]])+63>>7,m=18*w+63>>7,w=9*w+63>>7;a[l-3*c]=Ir[255+a[l-3*c]+w],a[l-2*c]=Ir[255+u+m],a[l-c]=Ir[255+h+g],a[l+0]=Ir[255+d-g],a[l+c]=Ir[255+f-m],a[l+2*c]=Ir[255+p-w]}e+=r}}function Ve(t,e,n,r,i,A,o,s){for(A=2*A+1;0<i--;){if(Re(t,e,n,A,o))if(Pe(t,e,n,s))De(t,e,n);else{var a=t,l=e,c=n,u=a[l-c],h=a[l+0],d=a[l+c],f=Qr[112+(4+(p=3*(h-u))>>3)],p=Qr[112+(p+3>>3)],g=f+1>>1;a[l-2*c]=Ir[255+a[l-2*c]+g],a[l-c]=Ir[255+u+p],a[l+0]=Ir[255+h-f],a[l+c]=Ir[255+d-g]}e+=r}}function We(t,e,n,r,i,A){Ge(t,e,n,1,16,r,i,A)}function Ye(t,e,n,r,i,A){Ge(t,e,1,n,16,r,i,A)}function Xe(t,e,n,r,i,A){var o;for(o=3;0<o;--o)Ve(t,e+=4*n,n,1,16,r,i,A)}function Je(t,e,n,r,i,A){var o;for(o=3;0<o;--o)Ve(t,e+=4,1,n,16,r,i,A)}function Ze(t,e,n,r,i,A,o,s){Ge(t,e,i,1,8,A,o,s),Ge(n,r,i,1,8,A,o,s)}function $e(t,e,n,r,i,A,o,s){Ge(t,e,1,i,8,A,o,s),Ge(n,r,1,i,8,A,o,s)}function tn(t,e,n,r,i,A,o,s){Ve(t,e+4*i,i,1,8,A,o,s),Ve(n,r+4*i,i,1,8,A,o,s)}function en(t,e,n,r,i,A,o,s){Ve(t,e+4,1,i,8,A,o,s),Ve(n,r+4,1,i,8,A,o,s)}function nn(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new at,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function An(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new T,this.vb=new T,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new u}function sn(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new b,this.Pb=0,this.wd=new b,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=o(4,An),this.Oc=0}function an(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ln(t,e,n,r,i,A,o){for(t=null==t?0:t[e+0],e=0;e<o;++e)i[A+e]=t+n[r+e]&255,t=i[A+e]}function cn(t,e,n,r,i,A,o){var s;if(null==t)ln(null,null,n,r,i,A,o);else for(s=0;s<o;++s)i[A+s]=t[e+s]+n[r+s]&255}function un(t,e,n,r,i,A,o){if(null==t)ln(null,null,n,r,i,A,o);else{var s,a=t[e+0],l=a,c=a;for(s=0;s<o;++s)l=c+(a=t[e+s])-l,c=n[r+s]+(-256&l?0>l?0:255:l)&255,l=a,i[A+s]=c}}function hn(t,n,i,o){var s=n.width,a=n.o;if(e(null!=t&&null!=n),0>i||0>=o||i+o>a)return null;if(!t.Cc){if(null==t.ga){var l;if(t.ga=new an,(l=null==t.ga)||(l=n.width*n.o,e(0==t.Gb.length),t.Gb=A(l),t.Uc=0,null==t.Gb?l=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,l=1),l=!l),!l){l=t.ga;var c=t.Fa,u=t.P,h=t.qc,d=t.mb,f=t.nb,p=u+1,g=h-1,w=l.l;if(e(null!=c&&null!=d&&null!=n),gi[0]=null,gi[1]=ln,gi[2]=cn,gi[3]=un,l.ca=d,l.tb=f,l.c=n.width,l.i=n.height,e(0<l.c&&0<l.i),1>=h)n=0;else if(l.$a=c[u+0]>>0&3,l.Z=c[u+0]>>2&3,l.Lc=c[u+0]>>4&3,u=c[u+0]>>6&3,0>l.$a||1<l.$a||4<=l.Z||1<l.Lc||u)n=0;else if(w.put=dt,w.ac=ht,w.bc=ft,w.ma=l,w.width=n.width,w.height=n.height,w.Da=n.Da,w.v=n.v,w.va=n.va,w.j=n.j,w.o=n.o,l.$a)t:{e(1==l.$a),n=Lt();e:for(;;){if(null==n){n=0;break t}if(e(null!=l),l.mc=n,n.c=l.c,n.i=l.i,n.l=l.l,n.l.ma=l,n.l.width=l.c,n.l.height=l.i,n.a=0,m(n.m,c,p,g),!Nt(l.c,l.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&Ct(n.s)?(l.ic=1,c=n.c*n.i,n.Ta=null,n.Ua=0,n.V=A(c),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(l.ic=0,n=St(n,l.c)),!n)break e;n=1;break t}l.mc=null,n=0}else n=g>=l.c*l.i;l=!n}if(l)return null;1!=t.ga.Lc?t.Ga=0:o=a-i}e(null!=t.ga),e(i+o<=a);t:{if(n=(c=t.ga).c,a=c.l.o,0==c.$a){if(p=t.rc,g=t.Vc,w=t.Fa,u=t.P+1+i*n,h=t.mb,d=t.nb+i*n,e(u<=t.P+t.qc),0!=c.Z)for(e(null!=gi[c.Z]),l=0;l<o;++l)gi[c.Z](p,g,w,u,h,d,n),p=h,g=d,d+=n,u+=n;else for(l=0;l<o;++l)r(h,d,w,u,n),p=h,g=d,d+=n,u+=n;t.rc=p,t.Vc=g}else{if(e(null!=c.mc),n=i+o,e(null!=(l=c.mc)),e(n<=l.i),l.C>=n)n=1;else if(c.ic||mn(),c.ic){c=l.V,p=l.Ba,g=l.c;var y=l.i,v=(w=1,u=l.$/g,h=l.$%g,d=l.m,f=l.s,l.$),b=g*y,B=g*n,x=f.wc,E=v<B?vt(f,h,u):null;e(v<=b),e(n<=y),e(Ct(f));e:for(;;){for(;!d.h&&v<B;){if(h&x||(E=vt(f,h,u)),e(null!=E),_(d),256>(y=wt(E.G[0],E.H[0],d)))c[p+v]=y,++v,++h>=g&&(h=0,++u<=n&&!(u%16)&&_t(l,u));else{if(!(280>y)){w=0;break e}y=gt(y-256,d);var F,L=wt(E.G[4],E.H[4],d);if(_(d),!(v>=(L=mt(g,L=gt(L,d)))&&b-v>=y)){w=0;break e}for(F=0;F<y;++F)c[p+v+F]=c[p+v+F-L];for(v+=y,h+=y;h>=g;)h-=g,++u<=n&&!(u%16)&&_t(l,u);v<B&&h&x&&(E=vt(f,h,u))}e(d.h==C(d))}_t(l,u>n?n:u);break e}!w||d.h&&v<b?(w=0,l.a=d.h?5:3):l.$=v,n=w}else n=Et(l,l.V,l.Ba,l.c,l.i,n,Ut);if(!n){o=0;break t}}i+o>=a&&(t.Cc=1),o=1}if(!o)return null;if(t.Cc&&(null!=(o=t.ga)&&(o.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+i*s}function dn(t,e,n,r,i,A){for(;0<i--;){var o,s=t,a=e+(n?1:0),l=t,c=e+(n?0:3);for(o=0;o<r;++o){var u=l[c+4*o];255!=u&&(u*=32897,s[a+4*o+0]=s[a+4*o+0]*u>>23,s[a+4*o+1]=s[a+4*o+1]*u>>23,s[a+4*o+2]=s[a+4*o+2]*u>>23)}e+=A}}function fn(t,e,n,r,i){for(;0<r--;){var A;for(A=0;A<n;++A){var o=t[e+2*A+0],s=15&(l=t[e+2*A+1]),a=4369*s,l=(240&l|l>>4)*a>>16;t[e+2*A+0]=(240&o|o>>4)*a>>16&240|(15&o|o<<4)*a>>16>>4&15,t[e+2*A+1]=240&l|s}e+=i}}function pn(t,e,n,r,i,A,o,s){var a,l,c=255;for(l=0;l<i;++l){for(a=0;a<r;++a){var u=t[e+a];A[o+4*a]=u,c&=u}e+=n,o+=s}return 255!=c}function gn(t,e,n,r,i){var A;for(A=0;A<i;++A)n[r+A]=t[e+A]>>8}function mn(){Cr=dn,xr=fn,_r=pn,Er=gn}function wn(n,r,i){t[n]=function(t,n,A,o,s,a,l,c,u,h,d,f,p,g,m,w,y){var v,b=y-1>>1,B=s[a+0]|l[c+0]<<16,C=u[h+0]|d[f+0]<<16;e(null!=t);var x=3*B+C+131074>>2;for(r(t[n+0],255&x,x>>16,p,g),null!=A&&(x=3*C+B+131074>>2,r(A[o+0],255&x,x>>16,m,w)),v=1;v<=b;++v){var _=s[a+v]|l[c+v]<<16,E=u[h+v]|d[f+v]<<16,F=B+_+C+E+524296,L=F+2*(_+C)>>3;x=L+B>>1,B=(F=F+2*(B+E)>>3)+_>>1,r(t[n+2*v-1],255&x,x>>16,p,g+(2*v-1)*i),r(t[n+2*v-0],255&B,B>>16,p,g+(2*v-0)*i),null!=A&&(x=F+C>>1,B=L+E>>1,r(A[o+2*v-1],255&x,x>>16,m,w+(2*v-1)*i),r(A[o+2*v+0],255&B,B>>16,m,w+(2*v+0)*i)),B=_,C=E}1&y||(x=3*B+C+131074>>2,r(t[n+y-1],255&x,x>>16,p,g+(y-1)*i),null!=A&&(x=3*C+B+131074>>2,r(A[o+y-1],255&x,x>>16,m,w+(y-1)*i)))}}function yn(){mi[Or]=wi,mi[Mr]=vi,mi[Dr]=yi,mi[Pr]=bi,mi[Hr]=Bi,mi[Rr]=Ci,mi[jr]=xi,mi[zr]=vi,mi[qr]=bi,mi[Kr]=Bi,mi[Gr]=Ci}function vn(t){return t&~Si?0>t?0:255:t>>Ni}function bn(t,e){return vn((19077*t>>8)+(26149*e>>8)-14234)}function Bn(t,e,n){return vn((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function Cn(t,e){return vn((19077*t>>8)+(33050*e>>8)-17685)}function xn(t,e,n,r,i){r[i+0]=bn(t,n),r[i+1]=Bn(t,e,n),r[i+2]=Cn(t,e)}function _n(t,e,n,r,i){r[i+0]=Cn(t,e),r[i+1]=Bn(t,e,n),r[i+2]=bn(t,n)}function En(t,e,n,r,i){var A=Bn(t,e,n);e=A<<3&224|Cn(t,e)>>3,r[i+0]=248&bn(t,n)|A>>5,r[i+1]=e}function Fn(t,e,n,r,i){var A=240&Cn(t,e)|15;r[i+0]=240&bn(t,n)|Bn(t,e,n)>>4,r[i+1]=A}function Ln(t,e,n,r,i){r[i+0]=255,xn(t,e,n,r,i+1)}function Nn(t,e,n,r,i){_n(t,e,n,r,i),r[i+3]=255}function Sn(t,e,n,r,i){xn(t,e,n,r,i),r[i+3]=255}function Kt(t,e){return 0>t?0:t>e?e:t}function Un(e,n,r){t[e]=function(t,e,i,A,o,s,a,l,c){for(var u=l+(-2&c)*r;l!=u;)n(t[e+0],i[A+0],o[s+0],a,l),n(t[e+1],i[A+0],o[s+0],a,l+r),e+=2,++A,++s,l+=2*r;1&c&&n(t[e+0],i[A+0],o[s+0],a,l)}}function kn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Qn(t,e,n,r,i){switch(t>>>30){case 3:or(e,n,r,i,0);break;case 2:sr(e,n,r,i);break;case 1:lr(e,n,r,i)}}function In(t,e){var n,A,o=e.M,s=e.Nb,a=t.oc,l=t.pc+40,c=t.oc,u=t.pc+584,h=t.oc,d=t.pc+600;for(n=0;16>n;++n)a[l+32*n-1]=129;for(n=0;8>n;++n)c[u+32*n-1]=129,h[d+32*n-1]=129;for(0<o?a[l-1-32]=c[u-1-32]=h[d-1-32]=129:(i(a,l-32-1,127,21),i(c,u-32-1,127,9),i(h,d-32-1,127,9)),A=0;A<t.za;++A){var f=e.ya[e.aa+A];if(0<A){for(n=-1;16>n;++n)r(a,l+32*n-4,a,l+32*n+12,4);for(n=-1;8>n;++n)r(c,u+32*n-4,c,u+32*n+4,4),r(h,d+32*n-4,h,d+32*n+4,4)}var p=t.Gd,g=t.Hd+A,m=f.ad,w=f.Hc;if(0<o&&(r(a,l-32,p[g].y,0,16),r(c,u-32,p[g].f,0,8),r(h,d-32,p[g].ea,0,8)),f.Za){var y=a,v=l-32+16;for(0<o&&(A>=t.za-1?i(y,v,p[g].y[15],4):r(y,v,p[g+1].y,0,4)),n=0;4>n;n++)y[v+128+n]=y[v+256+n]=y[v+384+n]=y[v+0+n];for(n=0;16>n;++n,w<<=2)y=a,v=l+Di[n],hi[f.Ob[n]](y,v),Qn(w,m,16*+n,y,v)}else if(y=kn(A,o,f.Ob[0]),ui[y](a,l),0!=w)for(n=0;16>n;++n,w<<=2)Qn(w,m,16*+n,a,l+Di[n]);for(n=f.Gc,y=kn(A,o,f.Dd),di[y](c,u),di[y](h,d),w=m,y=c,v=u,255&(f=n>>0)&&(170&f?ar(w,256,y,v):cr(w,256,y,v)),f=h,w=d,255&(n>>=8)&&(170&n?ar(m,320,f,w):cr(m,320,f,w)),o<t.Ub-1&&(r(p[g].y,0,a,l+480,16),r(p[g].f,0,c,u+224,8),r(p[g].ea,0,h,d+224,8)),n=8*s*t.B,p=t.sa,g=t.ta+16*A+16*s*t.R,m=t.qa,f=t.ra+8*A+n,w=t.Ha,y=t.Ia+8*A+n,n=0;16>n;++n)r(p,g+n*t.R,a,l+32*n,16);for(n=0;8>n;++n)r(m,f+n*t.B,c,u+32*n,8),r(w,y+n*t.B,h,d+32*n,8)}}function Tn(t,r,i,A,o,s,a,l,c){var u=[0],h=[0],d=0,f=null!=c?c.kd:0,p=null!=c?c:new rn;if(null==t||12>i)return 7;p.data=t,p.w=r,p.ha=i,r=[r],i=[i],p.gb=[p.gb];t:{var g=r,w=i,y=p.gb;if(e(null!=t),e(null!=w),e(null!=y),y[0]=0,12<=w[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){y=3;break t}var v=k(t,g[0]+4);if(12>v||4294967286<v){y=3;break t}if(f&&v>w[0]-8){y=7;break t}y[0]=v,g[0]+=12,w[0]-=12}y=0}if(0!=y)return y;for(v=0<p.gb[0],i=i[0];;){t:{var B=t;w=r,y=i;var C=u,x=h,_=g=[0];if((L=d=[d])[0]=0,8>y[0])y=7;else{if(!n(B,w[0],"VP8X")){if(10!=k(B,w[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var E=k(B,w[0]+8),F=1+U(B,w[0]+12);if(2147483648<=F*(B=1+U(B,w[0]+15))){y=3;break t}null!=_&&(_[0]=E),null!=C&&(C[0]=F),null!=x&&(x[0]=B),w[0]+=18,y[0]-=18,L[0]=1}y=0}}if(d=d[0],g=g[0],0!=y)return y;if(w=!!(2&g),!v&&d)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=a&&(a[0]=w),null!=l&&(l[0]=0),a=u[0],g=h[0],d&&w&&null==c){y=0;break}if(4>i){y=7;break}if(v&&d||!v&&!d&&!n(t,r[0],"ALPH")){i=[i],p.na=[p.na],p.P=[p.P],p.Sa=[p.Sa];t:{E=t,y=r,v=i;var L=p.gb;C=p.na,x=p.P,_=p.Sa,F=22,e(null!=E),e(null!=v),B=y[0];var N=v[0];for(e(null!=C),e(null!=_),C[0]=null,x[0]=null,_[0]=0;;){if(y[0]=B,v[0]=N,8>N){y=7;break t}var S=k(E,B+4);if(4294967286<S){y=3;break t}var Q=8+S+1&-2;if(F+=Q,0<L&&F>L){y=3;break t}if(!n(E,B,"VP8 ")||!n(E,B,"VP8L")){y=0;break t}if(N[0]<Q){y=7;break t}n(E,B,"ALPH")||(C[0]=E,x[0]=B+8,_[0]=S),B+=Q,N-=Q}}if(i=i[0],p.na=p.na[0],p.P=p.P[0],p.Sa=p.Sa[0],0!=y)break}i=[i],p.Ja=[p.Ja],p.xa=[p.xa];t:if(L=t,y=r,v=i,C=p.gb[0],x=p.Ja,_=p.xa,E=y[0],B=!n(L,E,"VP8 "),F=!n(L,E,"VP8L"),e(null!=L),e(null!=v),e(null!=x),e(null!=_),8>v[0])y=7;else{if(B||F){if(L=k(L,E+4),12<=C&&L>C-12){y=3;break t}if(f&&L>v[0]-8){y=7;break t}x[0]=L,y[0]+=8,v[0]-=8,_[0]=F}else _[0]=5<=v[0]&&47==L[E+0]&&!(L[E+4]>>5),x[0]=v[0];y=0}if(i=i[0],p.Ja=p.Ja[0],p.xa=p.xa[0],r=r[0],0!=y)break;if(4294967286<p.Ja)return 3;if(null==l||w||(l[0]=p.xa?2:1),a=[a],g=[g],p.xa){if(5>i){y=7;break}l=a,f=g,w=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(v=[0],L=[0],C=[0],m(x=new b,t,r,i),pt(x,v,L,C)?(null!=l&&(l[0]=v[0]),null!=f&&(f[0]=L[0]),null!=w&&(w[0]=C[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}l=g,null==t||10>i||!Yt(t,r+3,i-3)?t=0:(f=t[r+0]|t[r+1]<<8|t[r+2]<<16,w=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&f||3<(f>>1&7)||!(f>>4&1)||f>>5>=p.Ja||!w||!t?t=0:(a&&(a[0]=w),l&&(l[0]=t),t=1))}if(!t)return 3;if(a=a[0],g=g[0],d&&(u[0]!=a||h[0]!=g))return 3;null!=c&&(c[0]=p,c.offset=r-c.w,e(4294967286>r-c.w),e(c.offset==c.ha-i));break}return 0==y||7==y&&d&&null==c?(null!=s&&(s[0]|=null!=p.na&&0<p.na.length),null!=A&&(A[0]=a),null!=o&&(o[0]=g),0):y}function On(t,e,n){var r=e.width,i=e.height,A=0,o=0,s=r,a=i;if(e.Da=null!=t&&0<t.Da,e.Da&&(s=t.cd,a=t.bd,A=t.v,o=t.j,11>n||(A&=-2,o&=-2),0>A||0>o||0>=s||0>=a||A+s>r||o+a>i))return 0;if(e.v=A,e.j=o,e.va=A+s,e.o=o+a,e.U=s,e.T=a,e.da=null!=t&&0<t.da,e.da){if(!O(s,a,n=[t.ib],A=[t.hb]))return 0;e.ib=n[0],e.hb=A[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*r/4&&e.hb<3*i/4,e.Kb=0),1}function Mn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function Dn(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,o=n.bd,s=-2&n.v,a=-2&n.j;if(0>s||0>a||0>=i||0>=o||s+i>t||a+o>e)return 2;t=i,e=o}if(n.da){if(!O(t,e,i=[n.ib],o=[n.hb]))return 2;t=i[0],e=o[0]}}r.width=t,r.height=e;t:{var l=r.width,c=r.height;if(t=r.S,0>=l||0>=c||!(t>=Or&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=o=i=e=0;var u=(a=l*ji[t])*c;if(11>t||(o=(c+1)/2*(e=(l+1)/2),12==t&&(s=(i=l)*c)),null==(c=A(u+2*o+s))){t=1;break t}r.sd=c,11>t?((l=r.f.RGBA).eb=c,l.fb=0,l.A=a,l.size=u):((l=r.f.kb).y=c,l.O=0,l.fa=a,l.Fd=u,l.f=c,l.N=0+u,l.Ab=e,l.Cd=o,l.ea=c,l.W=0+u+o,l.Db=e,l.Ed=o,12==t&&(l.F=c,l.J=0+u+2*o),l.Tc=s,l.lb=i)}if(e=1,i=r.S,o=r.width,s=r.height,i>=Or&&13>i)if(11>i)t=r.f.RGBA,e&=(a=Math.abs(t.A))*(s-1)+o<=t.size,e&=a>=o*ji[i],e&=null!=t.eb;else{t=r.f.kb,a=(o+1)/2,u=(s+1)/2,l=Math.abs(t.fa),c=Math.abs(t.Ab);var h=Math.abs(t.Db),d=Math.abs(t.lb),f=d*(s-1)+o;e&=l*(s-1)+o<=t.Fd,e&=c*(u-1)+a<=t.Cd,e=(e&=h*(u-1)+a<=t.Ed)&l>=o&c>=a&h>=a,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==i&&(e&=d>=o,e&=f<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Mn(r)),t}var Pn=64,Hn=[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],Rn=24,jn=32,zn=8,qn=[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];P("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return R(R(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return R(t,e[n-1])},t.Predictor7=function(t,e,n){return R(t,e[n+0])},t.Predictor8=function(t,e,n){return R(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return R(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return R(R(t,e[n-1]),R(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=q(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+q(r>>16&255,t>>16&255,e>>16&255)+q(r>>8&255,t>>8&255,e>>8&255)+q(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(j((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|j((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|j((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|j((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(z((t=R(t,e[n+0]))>>24&255,r>>24&255)<<24|z(t>>16&255,r>>16&255)<<16|z(t>>8&255,r>>8&255)<<8|z(t>>0&255,r>>0&255))>>>0};var Kn=t.PredictorAdd0;t.PredictorAdd1=K,P("Predictor2","PredictorAdd2"),P("Predictor3","PredictorAdd3"),P("Predictor4","PredictorAdd4"),P("Predictor5","PredictorAdd5"),P("Predictor6","PredictorAdd6"),P("Predictor7","PredictorAdd7"),P("Predictor8","PredictorAdd8"),P("Predictor9","PredictorAdd9"),P("Predictor10","PredictorAdd10"),P("Predictor11","PredictorAdd11"),P("Predictor12","PredictorAdd12"),P("Predictor13","PredictorAdd13");var Gn=t.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",(function(t){return t>>8&255}),(function(t){return t})),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(t){return t}),(function(t){return t>>8&255}));var Vn,Wn=t.ColorIndexInverseTransform,Yn=t.MapARGB,Xn=t.VP8LColorIndexInverseTransformAlpha,Jn=t.MapAlpha,Zn=t.VP8LPredictorsAdd=[];Zn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var $n,tr,er,nr,rr,ir,Ar,or,sr,ar,lr,cr,ur,hr,dr,fr,pr,gr,mr,wr,yr,vr,br,Br,Cr,xr,_r,Er,Fr=A(511),Lr=A(2041),Nr=A(225),Sr=A(767),Ur=0,kr=Lr,Qr=Nr,Ir=Sr,Tr=Fr,Or=0,Mr=1,Dr=2,Pr=3,Hr=4,Rr=5,jr=6,zr=7,qr=8,Kr=9,Gr=10,Vr=[2,3,7],Wr=[3,3,11],Yr=[280,256,256,256,40],Xr=[0,1,1,1,0],Jr=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zr=[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],$r=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ei=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ri=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],oi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ai=[[[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]]],li=[[[[255,255,255,255,255,255,255,255,255,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]]]],ci=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ui=[],hi=[],di=[],fi=1,pi=2,gi=[],mi=[];wn("UpsampleRgbLinePair",xn,3),wn("UpsampleBgrLinePair",_n,3),wn("UpsampleRgbaLinePair",Sn,4),wn("UpsampleBgraLinePair",Nn,4),wn("UpsampleArgbLinePair",Ln,4),wn("UpsampleRgba4444LinePair",Fn,2),wn("UpsampleRgb565LinePair",En,2);var wi=t.UpsampleRgbLinePair,yi=t.UpsampleBgrLinePair,vi=t.UpsampleRgbaLinePair,bi=t.UpsampleBgraLinePair,Bi=t.UpsampleArgbLinePair,Ci=t.UpsampleRgba4444LinePair,xi=t.UpsampleRgb565LinePair,_i=16,Ei=1<<_i-1,Fi=-227,Li=482,Ni=6,Si=(256<<Ni)-1,Ui=0,ki=A(256),Qi=A(256),Ii=A(256),Ti=A(256),Oi=A(Li-Fi),Mi=A(Li-Fi);Un("YuvToRgbRow",xn,3),Un("YuvToBgrRow",_n,3),Un("YuvToRgbaRow",Sn,4),Un("YuvToBgraRow",Nn,4),Un("YuvToArgbRow",Ln,4),Un("YuvToRgba4444Row",Fn,2),Un("YuvToRgb565Row",En,2);var Di=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Pi=[0,2,8],Hi=[8,7,6,4,4,2,2,2,1,1,1,1],Ri=1;this.WebPDecodeRGBA=function(t,n,r,i,A){var o=Mr,s=new nn,a=new ot;s.ba=a,a.S=o,a.width=[a.width],a.height=[a.height];var l=a.width,c=a.height,u=new st;if(null==u||null==t)var h=2;else e(null!=u),h=Tn(t,n,r,u.width,u.height,u.Pd,u.Qd,u.format,null);if(0!=h?l=0:(null!=l&&(l[0]=u.width[0]),null!=c&&(c[0]=u.height[0]),l=1),l){a.width=a.width[0],a.height=a.height[0],null!=i&&(i[0]=a.width),null!=A&&(A[0]=a.height);t:{if(i=new Gt,(A=new rn).data=t,A.w=n,A.ha=r,A.kd=1,n=[0],e(null!=A),(0==(t=Tn(A.data,A.w,A.ha,null,null,null,n,null,A))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=s),i.data=A.data,i.w=A.w+A.offset,i.ha=A.ha-A.offset,i.put=dt,i.ac=ht,i.bc=ft,i.ma=s,A.xa){if(null==(t=Lt())){s=1;break t}if(function(t,n){var r=[0],i=[0],A=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,m(t.m,n.data,n.w,n.ha),!pt(t.m,r,i,A)){t.a=3;break e}if(t.xb=pi,n.width=r[0],n.height=i[0],!Nt(r[0],i[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,i)){if(i=0==(n=Dn(i.width,i.height,s.Oa,s.ba))){e:{i=t;n:for(;;){if(null==i){i=0;break e}if(e(null!=i.s.yc),e(null!=i.s.Ya),e(0<i.s.Wb),e(null!=(r=i.l)),e(null!=(A=r.ma)),0!=i.xb){if(i.ca=A.ba,i.tb=A.tb,e(null!=i.ca),!On(A.Oa,r,Pr)){i.a=2;break n}if(!St(i,r.width))break n;if(r.da)break n;if((r.da||rt(i.ca.S))&&mn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&mn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!Q(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!Et(i,i.V,i.Ba,i.c,i.i,r.o,Bt))break n;A.Dc=i.Ma,i=1;break e}e(0!=i.a),i=0}i=!i}i&&(n=t.a)}else n=t.a}else{if(null==(t=new Vt)){s=1;break t}if(t.Fa=A.na,t.P=A.P,t.qc=A.Sa,Xt(t,i)){if(0==(n=Dn(i.width,i.height,s.Oa,s.ba))){if(t.Aa=0,r=s.Oa,e(null!=(A=t)),null!=r){if(0<(l=0>(l=r.Md)?0:100<l?255:255*l/100)){for(c=u=0;4>c;++c)12>(h=A.pb[c]).lc&&(h.ia=l*Hi[0>h.lc?0:h.lc]>>3),u|=h.ia;u&&(alert("todo:VP8InitRandom"),A.ia=1)}A.Ga=r.Id,100<A.Ga?A.Ga=100:0>A.Ga&&(A.Ga=0)}$t(t,i)||(n=t.a)}}else n=t.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Mn(s.ba))}s=n}o=0!=s?null:11>o?a.f.RGBA.eb:a.f.kb.y}else o=null;return o};var ji=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(t,e){for(var n="",r=0;r<4;r++)n+=String.fromCharCode(t[e++]);return n}function c(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function u(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new a;var h=[0],d=[0],f=[],p=new a,g=t,m=function(t,e){var n={},r=0,i=!1,A=0,o=0;if(n.frames=[],!
/** @license
* Copyright (c) 2017 Dominik Homberger
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
https://webpjs.appspot.com
WebPRiffParser dominikhlbg@gmail.com
*/
function(t,e,n,r){for(var i=0;i<r;i++)if(t[e+i]!=n.charCodeAt(i))return!0;return!1}(t,e,"RIFF",4)){var s,a;for(u(t,e+=4),e+=8;e<t.length;){var h=l(t,e),d=u(t,e+=4);e+=4;var f=d+(1&d);switch(h){case"VP8 ":case"VP8L":void 0===n.frames[r]&&(n.frames[r]={}),(m=n.frames[r]).src_off=i?o:e-8,m.src_size=A+d+8,r++,i&&(i=!1,A=0,o=0);break;case"VP8X":(m=n.header={}).feature_flags=t[e];var p=e+4;m.canvas_width=1+c(t,p),p+=3,m.canvas_height=1+c(t,p),p+=3;break;case"ALPH":i=!0,A=f+8,o=e-8;break;case"ANIM":(m=n.header).bgcolor=u(t,e),p=e+4,m.loop_count=(s=t)[(a=p)+0]<<0|s[a+1]<<8,p+=2;break;case"ANMF":var g,m;(m=n.frames[r]={}).offset_x=2*c(t,e),e+=3,m.offset_y=2*c(t,e),e+=3,m.width=1+c(t,e),e+=3,m.height=1+c(t,e),e+=3,m.duration=c(t,e),e+=3,g=t[e++],m.dispose=1&g,m.blend=g>>1&1}"ANMF"!=h&&(e+=f)}return n}}(g,0);m.response=g,m.rgbaoutput=!0,m.dataurl=!1;var w=m.header?m.header:null,y=m.frames?m.frames:null;if(w){w.loop_counter=w.loop_count,h=[w.canvas_height],d=[w.canvas_width];for(var v=0;v<y.length&&0!=y[v].blend;v++);}var b=y[0],B=p.WebPDecodeRGBA(g,b.src_off,b.src_size,d,h);b.rgba=B,b.imgwidth=d[0],b.imgheight=h[0];for(var C=0;C<d[0]*h[0]*4;C++)f[C]=B[C];return this.width=d,this.height=h,this.data=f,this}!function(t){var e=function(){return"function"==typeof A["b"]},n=function(e,n,i,c){var u=4,h=s;switch(c){case t.image_compression.FAST:u=1,h=o;break;case t.image_compression.MEDIUM:u=6,h=a;break;case t.image_compression.SLOW:u=9,h=l}e=r(e,n,i,h);var d=Object(A["b"])(e,{level:u});return t.__addimage__.arrayBufferToBinaryString(d)},r=function(t,e,n,r){for(var i,A,o,s=t.length/e,a=new Uint8Array(t.length+s),l=u(),c=0;c<s;c+=1){if(o=c*e,i=t.subarray(o,o+e),r)a.set(r(i,n,A),o+c);else{for(var d,f=l.length,p=[];d<f;d+=1)p[d]=l[d](i,n,A);var g=h(p.concat());a.set(p[g],o+c)}A=i}return a},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},o=function(t,e){var n,r=[],i=t.length;r[0]=1;for(var A=0;A<i;A+=1)n=t[A-e]||0,r[A+1]=t[A]-n+256&255;return r},s=function(t,e,n){var r,i=[],A=t.length;i[0]=2;for(var o=0;o<A;o+=1)r=n&&n[o]||0,i[o+1]=t[o]-r+256&255;return i},a=function(t,e,n){var r,i,A=[],o=t.length;A[0]=3;for(var s=0;s<o;s+=1)r=t[s-e]||0,i=n&&n[s]||0,A[s+1]=t[s]+256-(r+i>>>1)&255;return A},l=function(t,e,n){var r,i,A,o,s=[],a=t.length;s[0]=4;for(var l=0;l<a;l+=1)r=t[l-e]||0,i=n&&n[l]||0,A=n&&n[l-e]||0,o=c(r,i,A),s[l+1]=t[l]-o+256&255;return s},c=function(t,e,n){if(t===e&&e===n)return t;var r=Math.abs(e-n),i=Math.abs(t-n),A=Math.abs(t+e-n-n);return r<=i&&r<=A?t:i<=A?e:n},u=function(){return[i,o,s,a,l]},h=function(t){var e=t.map((function(t){return t.reduce((function(t,e){return t+Math.abs(e)}),0)}));return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(r,i,A,o){var s,a,l,c,u,h,d,f,p,g,m,w,y,v,b,B=this.decode.FLATE_DECODE,C="";if(this.__addimage__.isArrayBuffer(r)&&(r=new Uint8Array(r)),this.__addimage__.isArrayBufferView(r)){if(r=(l=new Zt(r)).imgData,a=l.bits,s=l.colorSpace,u=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){p=(f=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*l.colors),g=new Uint8Array(p);var x,_=l.pixelBitlength-l.bits;for(v=0,b=0;v<p;v++){for(y=f[v],x=0;x<_;)m[b++]=y>>>x&255,x+=l.bits;g[v]=y>>>x&255}}if(16===l.bits){p=(f=new Uint32Array(l.decodePixels().buffer)).length,m=new Uint8Array(p*(32/l.pixelBitlength)*l.colors),g=new Uint8Array(p*(32/l.pixelBitlength)),w=l.colors>1,v=0,b=0;for(var E=0;v<p;)y=f[v++],m[b++]=y>>>0&255,w&&(m[b++]=y>>>16&255,y=f[v++],m[b++]=y>>>0&255),g[E++]=y>>>16&255;a=8}o!==t.image_compression.NONE&&e()?(r=n(m,l.width*l.colors,l.colors,o),d=n(g,l.width,1,o)):(r=m,d=g,B=void 0)}if(3===l.colorType&&(s=this.color_spaces.INDEXED,h=l.palette,l.transparency.indexed)){var F=l.transparency.indexed,L=0;for(v=0,p=F.length;v<p;++v)L+=F[v];if((L/=255)===p-1&&-1!==F.indexOf(0))c=[F.indexOf(0)];else if(L!==p){for(f=l.decodePixels(),g=new Uint8Array(f.length),v=0,p=f.length;v<p;v++)g[v]=F[f[v]];d=n(g,l.width,1)}}var N=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(o);return B===this.decode.FLATE_DECODE&&(C="/Predictor "+N+" "),C+="/Colors "+u+" /BitsPerComponent "+a+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r))&&(r=this.__addimage__.arrayBufferToBinaryString(r)),(d&&this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),{alias:A,data:r,index:i,filter:B,decodeParameters:C,transparency:c,palette:h,sMask:d,predictor:N,width:l.width,height:l.height,bitsPerComponent:a,colorSpace:s}}}}(P.API),function(t){t.processGIF89A=function(e,n,r,i){var A=new $t(e),o=A.width,s=A.height,a=[];A.decodeAndBlitFrameRGBA(0,a);var l={data:a,width:o,height:s},c=new ee(100).encode(l,100);return t.processJPEG.call(this,c,n,r,i)},t.processGIF87A=t.processGIF89A}(P.API),ne.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:n,quad:A}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ne.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){a.log("bit decode error:"+t)}},ne.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<e;i++)for(var A=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var a=this.palette[A>>7-s&1];this.data[o+4*s]=a.blue,this.data[o+4*s+1]=a.green,this.data[o+4*s+2]=a.red,this.data[o+4*s+3]=255}0!==n&&(this.pos+=4-n)}},ne.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<t;i++){var A=this.datav.getUint8(this.pos++,!0),o=r*this.width*4+2*i*4,s=A>>4,a=15&A,l=this.palette[s];if(this.data[o]=l.blue,this.data[o+1]=l.green,this.data[o+2]=l.red,this.data[o+3]=255,2*i+1>=this.width)break;l=this.palette[a],this.data[o+4]=l.blue,this.data[o+4+1]=l.green,this.data[o+4+2]=l.red,this.data[o+4+3]=255}0!==e&&(this.pos+=4-e)}},ne.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),A=n*this.width*4+4*r;if(i<this.palette.length){var o=this.palette[i];this.data[A]=o.red,this.data[A+1]=o.green,this.data[A+2]=o.blue,this.data[A+3]=255}else this.data[A]=255,this.data[A+1]=255,this.data[A+2]=255,this.data[A+3]=255}0!==t&&(this.pos+=4-t)}},ne.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var A=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(A&e)/e*255|0,s=(A>>5&e)/e*255|0,a=(A>>10&e)/e*255|0,l=A>>15?255:0,c=r*this.width*4+4*i;this.data[c]=a,this.data[c+1]=s,this.data[c+2]=o,this.data[c+3]=l}this.pos+=t}},ne.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,A=0;A<this.width;A++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&e)/e*255|0,a=(o>>5&n)/n*255|0,l=(o>>11)/e*255|0,c=i*this.width*4+4*A;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},ne.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=A,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=255}this.pos+=this.width%4}},ne.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*n;this.data[s]=A,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=o}},ne.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2018 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){t.processBMP=function(e,n,r,i){var A=new ne(e,!1),o=A.width,s=A.height,a={data:A.getData(),width:o,height:s},l=new ee(100).encode(a,100);return t.processJPEG.call(this,l,n,r,i)}}(P.API),re.prototype.getData=function(){return this.data},
/**
* @license
* Copyright (c) 2019 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){t.processWEBP=function(e,n,r,i){var A=new re(e,!1),o=A.width,s=A.height,a={data:A.getData(),width:o,height:s},l=new ee(100).encode(a,100);return t.processJPEG.call(this,l,n,r,i)}}(P.API),P.API.processRGBA=function(t,e,n){for(var r=t.data,i=r.length,A=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,a=0,l=0;l<i;l+=4){var c=r[l],u=r[l+1],h=r[l+2],d=r[l+3];A[s++]=c,A[s++]=u,A[s++]=h,o[a++]=d}var f=this.__addimage__.arrayBufferToBinaryString(A);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:f,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},P.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[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},Vt=P.API,Wt=Vt.getCharWidthsArray=function(t,e){var n,r,A=(e=e||{}).font||this.internal.getFont(),o=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),a=e.widths?e.widths:A.metadata.Unicode.widths,l=a.fof?a.fof:1,c=e.kerning?e.kerning:A.metadata.Unicode.kerning,u=c.fof?c.fof:1,h=!1!==e.doKerning,d=0,f=t.length,p=0,g=a[0]||l,m=[];for(n=0;n<f;n++)r=t.charCodeAt(n),"function"==typeof A.metadata.widthOfString?m.push((A.metadata.widthOfGlyph(A.metadata.characterToGlyph(r))+s*(1e3/o)||0)/1e3):(d=h&&"object"===i()(c[r])&&!isNaN(parseInt(c[r][p],10))?c[r][p]/u:0,m.push((a[r]||g)/l+d)),p=r;return m},Yt=Vt.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return Vt.processArabic&&(t=Vt.processArabic(t)),"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(t,n,i)/n:Wt.apply(this,arguments).reduce((function(t,e){return t+e}),0)},Xt=function(t,e,n,r){for(var i=[],A=0,o=t.length,s=0;A!==o&&s+e[A]<n;)s+=e[A],A++;i.push(t.slice(0,A));var a=A;for(s=0;A!==o;)s+e[A]>r&&(i.push(t.slice(a,A)),s=0,a=A),s+=e[A],A++;return a!==A&&i.push(t.slice(a,A)),i},Jt=function(t,e,n){n||(n={});var r,i,A,o,s,a,l,c=[],u=[c],h=n.textIndent||0,d=0,f=0,p=t.split(" "),g=Wt.apply(this,[" ",n])[0];if(a=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var m=Array(a).join(" "),w=[];p.map((function(t){(t=t.split(/\s*\n/)).length>1?w=w.concat(t.map((function(t,e){return(e&&t.length?"\n":"")+t}))):w.push(t[0])})),p=w,a=Yt.apply(this,[m,n])}for(A=0,o=p.length;A<o;A++){var y=0;if(r=p[A],a&&"\n"==r[0]&&(r=r.substr(1),y=1),h+d+(f=(i=Wt.apply(this,[r,n])).reduce((function(t,e){return t+e}),0))>e||y){if(f>e){for(s=Xt.apply(this,[r,i,e-(h+d),e]),c.push(s.shift()),c=[s.pop()];s.length;)u.push([s.shift()]);f=i.slice(r.length-(c[0]?c[0].length:0)).reduce((function(t,e){return t+e}),0)}else c=[r];u.push(c),h=f+a,d=g}else c.push(r),h+=d+f,d=g}return l=a?function(t,e){return(e?m:"")+t.join(" ")}:function(t){return t.join(" ")},u.map(l)},Vt.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),A=function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*e/i;A.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,A.lineIndent=n.lineIndent;var s,a,l=[];for(s=0,a=r.length;s<a;s++)l=l.concat(Jt.apply(this,[r[s],o,A]));return l},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},r={},A=0;A<e.length;A++)n[e[A]]="0123456789abcdef"[A],r["0123456789abcdef"[A]]=e[A];var o=function(t){return"0x"+parseInt(t,10).toString(16)},s=t.__fontmetrics__.compress=function(t){var e,n,A,a,l=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=o(c).slice(2)).slice(0,-1)+r[n.slice(-1)]),"number"==typeof e)e<0?(A=o(e).slice(3),a="-"):(A=o(e).slice(2),a=""),A=a+A.slice(0,-1)+r[A.slice(-1)];else{if("object"!==i()(e))throw new Error("Don't know what to do with value type "+i()(e)+".");A=s(e)}l.push(n+A)}return l.push("}"),l.join("")},a=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,r,i,A,o={},s=1,a=o,l=[],c="",u="",h=t.length-1,d=1;d<h;d+=1)"'"==(A=t[d])?e?(i=e.join(""),e=void 0):e=[]:e?e.push(A):"{"==A?(l.push([a,i]),a={},i=void 0):"}"==A?((r=l.pop())[0][r[1]]=a,i=void 0,a=r[0]):"-"==A?s=-1:void 0===i?n.hasOwnProperty(A)?(c+=n[A],i=parseInt(c,16)*s,s=1,c=""):c+=A:n.hasOwnProperty(A)?(u+=n[A],a[i]=parseInt(u,16)*s,s=1,i=void 0,u=""):u+=A;return o},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=u.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var r=c.Unicode[e.postScriptName];r&&(e.metadata.Unicode.encoding=r,e.encoding=r.codePages[0])}])}(P.API),
/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),r=0;r<e;r++)n[r]=t.charCodeAt(r);return n};t.API.events.push(["addFont",function(n){var r=void 0,i=n.font,A=n.instance;if(!i.isStandardFont){if(void 0===A)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(r=!1===A.existsFileInVFS(i.postScriptName)?A.loadFile(i.postScriptName):A.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,r){r=/^\x00\x01\x00\x00/.test(r)?e(r):e(h(r)),n.metadata=t.API.TTFFont.open(r),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,r)}}])}(P),
/** @license
* Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/
function(t){function e(){return(o.canvg?Promise.resolve(o.canvg):n.e(1).then(n.bind(null,"38a9"))).catch((function(t){return Promise.reject(new Error("Could not load canvg: "+t))})).then((function(t){return t.default?t.default:t}))}P.API.addSvgAsImage=function(t,n,r,i,A,o,s,l){if(isNaN(n)||isNaN(r))throw a.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(A))throw a.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=i,c.height=A;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var h={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},d=this;return e().then((function(e){return e.fromString(u,t,h)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(t){return t.render(h)})).then((function(){d.addImage(c.toDataURL("image/jpeg",1),n,r,i,A,s,l)}))}}(),P.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,n);return this},P.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var r,A,o,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},a=Object.keys(s),l=[],c=0,u=0,h=0;function d(t,e){var n,r=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var f=a.length;for(h=0;h<f;h+=1)n[a[h]].value=n[a[h]].defaultValue,n[a[h]].explicitSet=!1}if("object"===i()(t))for(A in t)if(o=t[A],d(a,A)&&void 0!==o){if("boolean"===n[A].type&&"boolean"==typeof o)n[A].value=o;else if("name"===n[A].type&&d(n[A].valueSet,o))n[A].value=o;else if("integer"===n[A].type&&Number.isInteger(o))n[A].value=o;else if("array"===n[A].type){for(c=0;c<o.length;c+=1)if(r=!0,1===o[c].length&&"number"==typeof o[c][0])l.push(String(o[c]-1));else if(o[c].length>1){for(u=0;u<o[c].length;u+=1)"number"!=typeof o[c][u]&&(r=!1);!0===r&&l.push([o[c][0]-1,o[c][1]-1].join(" "))}n[A].value="["+l.join(" ")+"]"}else n[A].value=n[A].defaultValue;n[A].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this
/** ====================================================================
* @license
* jsPDF XMP metadata plugin
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*/},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),A=unescape(encodeURIComponent("</x:xmpmeta>")),o=n.length+r.length+i.length+e.length+A.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+o+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+A),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,r){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:r||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(P.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],A=[""],o=0,s=t.length;o<s;++o){if(n=e.metadata.characterToGlyph(t.charCodeAt(o)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(o),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return A.join("");n=n.toString(16),A.push(i[4-n.length],n)}return A.join("")},r=function(t){var e,n,r,i,A,o,s;for(A="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],o=0,s=(n=Object.keys(t).sort((function(t,e){return t-e}))).length;o<s;o++)e=n[o],r.length>=100&&(A+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(A+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),A+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,A=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,a=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),l="",c=0;c<a.length;c++)l+=String.fromCharCode(a[c]);var u=A();o({data:l,addLength1:!0,objectId:u}),i("endobj");var h=A();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var d=A();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+Q(n.fontName)),i("/FontFile2 "+u+" 0 R"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var f=A();i("<<"),i("/Type /Font"),i("/BaseFont /"+Q(n.fontName)),i("/FontDescriptor "+d+" 0 R"),i("/W "+t.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=A(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+h+" 0 R"),i("/BaseFont /"+Q(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+f+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,i=e.out,A=e.newObject,o=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,a="",l=0;l<s.length;l++)a+=String.fromCharCode(s[l]);var c=A();o({data:a,addLength1:!0,objectId:c}),i("endobj");var u=A();o({data:r(n.metadata.toUnicode),addLength1:!0,objectId:u}),i("endobj");var h=A();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+c+" 0 R"),i("/Flags 96"),i("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+Q(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=A();for(var d=0;d<n.metadata.hmtx.widths.length;d++)n.metadata.hmtx.widths[d]=parseInt(n.metadata.hmtx.widths[d]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+Q(n.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(e)}]);var i=function(t){var e,r=t.text||"",i=t.x,A=t.y,o=t.options||{},s=t.mutex||{},a=s.pdfEscape,l=s.activeFontKey,c=s.fonts,u=l,h="",d=0,f="",p=c[u].encoding;if("Identity-H"!==c[u].encoding)return{text:r,x:i,y:A,options:o,mutex:s};for(f=r,u=l,Array.isArray(r)&&(f=r[0]),d=0;d<f.length;d+=1)c[u].metadata.hasOwnProperty("cmap")&&(e=c[u].metadata.cmap.unicode.codeMap[f[d].charCodeAt(0)]),e||f[d].charCodeAt(0)<256&&c[u].metadata.hasOwnProperty("Unicode")?h+=f[d]:h+="";var g="";return parseInt(u.slice(1))<14||"WinAnsiEncoding"===p?g=a(h,u).split("").map((function(t){return t.charCodeAt(0).toString(16)})).join(""):"Identity-H"===p&&(g=n(h,c[u])),s.isHex=!0,{text:g,x:i,y:A,options:o,mutex:s}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var A=0;for(A=0;A<e.length;A+=1)Array.isArray(e[A])&&3===e[A].length?n.push([i(Object.assign({},r,{text:e[A][0]})).text,e[A][1],e[A][2]]):n.push(i(Object.assign({},r,{text:e[A]})).text);t.text=n}else t.text=i(Object.assign({},r,{text:e})).text}])}(P),
/**
* @license
* jsPDF virtual FileSystem functionality
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/
function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(P.API),
/**
* @license
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
* MIT License
*/
function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,r,i,A,o,s,a,l=e,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]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},f=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","","","","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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)$/),g=!1,m=0;this.__bidiEngine__={};var w=function(t){var e=t.charCodeAt(),n=e>>8,r=d[n];return void 0!==r?l[256*r+(255&e)]:252===n||253===n?"AL":p.test(n)?"L":8===n?"R":"N"},y=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=w(t.charAt(n))))return!1;if("R"===e)return!0}return!1},v=function(t,e,o,s){var a,l,c,u,h=e[s];switch(h){case"L":case"R":g=!1;break;case"N":case"AN":break;case"EN":g&&(h="AN");break;case"AL":g=!0,h="R";break;case"WS":h="N";break;case"CS":s<1||s+1>=e.length||"EN"!==(a=o[s-1])&&"AN"!==a||"EN"!==(l=e[s+1])&&"AN"!==l?h="N":g&&(l="AN"),h=l===a?l:"N";break;case"ES":h="EN"===(a=s>0?o[s-1]:"B")&&s+1<e.length&&"EN"===e[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===o[s-1]){h="EN";break}if(g){h="N";break}for(c=s+1,u=e.length;c<u&&"ET"===e[c];)c++;h=c<u&&"EN"===e[c]?"EN":"N";break;case"NSM":if(i&&!A){for(u=e.length,c=s+1;c<u&&"NSM"===e[c];)c++;if(c<u){var d=t[s],f=d>=1425&&d<=2303||64286===d;if(a=e[c],f&&("R"===a||"AL"===a)){h="R";break}}}h=s<1||"B"===(a=e[s-1])?"N":o[s-1];break;case"B":g=!1,n=!0,h=m;break;case"S":r=!0,h="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"BN":h="N"}return h},b=function(t,e,n){var r=t.split("");return n&&B(r,n,{hiLevel:m}),r.reverse(),e&&e.reverse(),r.join("")},B=function(t,e,i){var A,o,s,a,l,d=-1,f=t.length,p=0,y=[],b=m?u:c,B=[];for(g=!1,n=!1,r=!1,o=0;o<f;o++)B[o]=w(t[o]);for(s=0;s<f;s++){if(l=p,y[s]=v(t,B,y,s),A=240&(p=b[l][h[y[s]]]),p&=15,e[s]=a=b[p][5],A>0)if(16===A){for(o=d;o<s;o++)e[o]=1;d=-1}else d=-1;if(b[p][6])-1===d&&(d=s);else if(d>-1){for(o=d;o<s;o++)e[o]=a;d=-1}"B"===B[s]&&(e[s]=0),i.hiLevel|=a}r&&function(t,e,n){for(var r=0;r<n;r++)if("S"===t[r]){e[r]=m;for(var i=r-1;i>=0&&"WS"===t[i];i--)e[i]=m}}(B,e,f)},C=function(t,e,r,i,A){if(!(A.hiLevel<t)){if(1===t&&1===m&&!n)return e.reverse(),void(r&&r.reverse());for(var o,s,a,l,c=e.length,u=0;u<c;){if(i[u]>=t){for(a=u+1;a<c&&i[a]>=t;)a++;for(l=u,s=a-1;l<s;l++,s--)o=e[l],e[l]=e[s],e[s]=o,r&&(o=r[l],r[l]=r[s],r[s]=o);u=a}u++}}},x=function(t,e,n){var r=t.split(""),i={hiLevel:m};return n||(n=[]),B(r,n,i),function(t,e,n){if(0!==n.hiLevel&&a)for(var r,i=0;i<t.length;i++)1===e[i]&&(r=f.indexOf(t[i]))>=0&&(t[i]=f[r+1])}(r,n,i),C(2,r,e,n,i),C(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===A&&(A=y(t)),void 0===s&&(s=y(t))}(t,e),i||!o||s)if(i&&o&&A^s)m=A?1:0,t=b(t,e,n);else if(!i&&o&&s)m=A?1:0,t=x(t,e,n),t=b(t,e);else if(!i||A||o||s){if(i&&!o&&A^s)t=b(t,e),A?(m=0,t=x(t,e,n)):(m=1,t=x(t,e,n),t=b(t,e));else if(i&&A&&!o&&s)m=1,t=x(t,e,n),t=b(t,e);else if(!i&&!o&&A^s){var r=a;A?(m=1,t=x(t,e,n),m=0,a=!1,t=x(t,e,n),a=r):(m=0,t=x(t,e,n),t=b(t,e),m=1,a=!1,t=x(t,e,n),a=r,t=b(t,e))}}else m=0,t=x(t,e,n);else m=A?1:0,t=x(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(i=t.isInputVisual,o=t.isOutputVisual,A=t.isInputRtl,s=t.isOutputRtl,a=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,r=(t.x,t.y,t.options||{}),i=(t.mutex,r.lang,[]);if(r.isInputVisual="boolean"!=typeof r.isInputVisual||r.isInputVisual,n.setOptions(r),"[object Array]"===Object.prototype.toString.call(e)){var A=0;for(i=[],A=0;A<e.length;A+=1)"[object Array]"===Object.prototype.toString.call(e[A])?i.push([n.doBidiReorder(e[A][0]),e[A][1],e[A][2]]):i.push([n.doBidiReorder(e[A])]);t.text=i}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(P),P.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new Ae(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new xe(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new oe(this.contents),this.head=new le(this),this.name=new ge(this),this.cmap=new ue(this),this.toUnicode={},this.hhea=new he(this),this.maxp=new me(this),this.hmtx=new we(this),this.post=new fe(this),this.os2=new de(this),this.loca=new Ce(this),this.glyf=new ve(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,r,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var e,n,r,i;for(i=[],e=0,n=(r=this.bbox).length;e<n;e++)t=r[e],i.push(Math.round(t*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),0!=(32768&(e=r>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,A,o;for(A=0,i=0,o=(t=""+t).length;0<=o?i<o:i>o;i=0<=o?++i:--i)r=t.charCodeAt(i),A+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/e)||0;return A*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var ie,Ae=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,A,o,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),A=this.readByte(),o=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^A)+256*(255^o)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*A+256*o+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;n<r;n++)e=t[n],i.push(this.writeByte(e));return i},t}(),oe=function(){var t;function e(t){var e,n,r;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:n>r;n=0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,A,o,s,a,l,c,u,h,d,f;for(f in h=Object.keys(e).length,s=Math.log(2),c=16*Math.floor(Math.log(h)/s),A=Math.floor(c/s),l=16*h-c,(r=new Ae).writeInt(this.scalarType),r.writeShort(h),r.writeShort(c),r.writeShort(A),r.writeShort(l),i=16*h,a=r.pos+i,o=null,d=[],e)for(u=e[f],r.writeString(f),r.writeInt(t(u)),r.writeInt(a),r.writeInt(u.length),d=d.concat(u),"head"===f&&(o=a),a+=u.length;a%4;)d.push(0),a++;return r.write(d),n=2981146554-t(r.data),r.pos=o+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=ye.call(t);t.length%4;)t.push(0);for(r=new Ae(t),n=0,e=0,i=t.length;e<i;e=e+=4)n+=r.readUInt32();return 4294967295&n},e}(),se={}.hasOwnProperty,ae=function(t,e){for(var n in e)se.call(e,n)&&(t[n]=e[n]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};ie=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 le=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new Ae).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),ce=function(){function t(t,e){var n,r,i,A,o,s,a,l,c,u,h,d,f,p,g,m,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),c=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=t.readByte();break;case 4:for(h=t.readUInt16(),u=h/2,t.pos+=6,i=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,f=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),a=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=u?e<u:e>u;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,o=function(){var e,n;for(n=[],s=e=0;0<=r?e<r:e>r;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=g=0,w=i.length;g<w;s=++g)for(p=i[s],n=m=d=f[s];d<=p?m<=p:m>=p;n=d<=p?++m:--m)0===l[s]?A=n+a[s]:0!==(A=o[l[s]/2+(n-d)-(u-s)]||0)&&(A+=a[s]),this.codeMap[n]=65535&A}t.pos=c}return t.encode=function(t,e){var n,r,i,A,o,s,a,l,c,u,h,d,f,p,g,m,w,y,v,b,B,C,x,_,E,F,L,N,S,U,k,Q,I,T,O,M,D,P,H,R,j,z,q,K,G,V;switch(N=new Ae,A=Object.keys(t).sort((function(t,e){return t-e})),e){case"macroman":for(f=0,p=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),m={0:0},i={},S=0,I=A.length;S<I;S++)null==m[q=t[r=A[S]]]&&(m[q]=++f),i[r]={old:t[r],new:m[t[r]]},p[r]=m[t[r]];return N.writeUInt16(1),N.writeUInt16(0),N.writeUInt32(12),N.writeUInt16(0),N.writeUInt16(262),N.writeUInt16(0),N.write(p),{charMap:i,subtable:N.data,maxGlyphID:f+1};case"unicode":for(F=[],c=[],w=0,m={},n={},g=a=null,U=0,T=A.length;U<T;U++)null==m[v=t[r=A[U]]]&&(m[v]=++w),n[r]={old:v,new:m[v]},o=m[v]-r,null!=g&&o===a||(g&&c.push(g),F.push(r),a=o),g=r;for(g&&c.push(g),c.push(65535),F.push(65535),_=2*(x=F.length),C=2*Math.pow(Math.log(x)/Math.LN2,2),u=Math.log(C/2)/Math.LN2,B=2*x-C,s=[],b=[],h=[],d=k=0,O=F.length;k<O;d=++k){if(E=F[d],l=c[d],65535===E){s.push(0),b.push(0);break}if(E-(L=n[E].new)>=32768)for(s.push(0),b.push(2*(h.length+x-d)),r=Q=E;E<=l?Q<=l:Q>=l;r=E<=l?++Q:--Q)h.push(n[r].new);else s.push(L-E),b.push(0)}for(N.writeUInt16(3),N.writeUInt16(1),N.writeUInt32(12),N.writeUInt16(4),N.writeUInt16(16+8*x+2*h.length),N.writeUInt16(0),N.writeUInt16(_),N.writeUInt16(C),N.writeUInt16(u),N.writeUInt16(B),j=0,M=c.length;j<M;j++)r=c[j],N.writeUInt16(r);for(N.writeUInt16(0),z=0,D=F.length;z<D;z++)r=F[z],N.writeUInt16(r);for(K=0,P=s.length;K<P;K++)o=s[K],N.writeUInt16(o);for(G=0,H=b.length;G<H;G++)y=b[G],N.writeUInt16(y);for(V=0,R=h.length;V<R;V++)f=h[V],N.writeUInt16(f);return{charMap:n,subtable:N.data,maxGlyphID:w+1}}},t}(),ue=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,r;for(t.pos=this.offset,this.version=t.readUInt16(),r=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=r?n<r:n>r;n=0<=r?++n:--n)e=new ce(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=ce.encode(t,e),(r=new Ae).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),he=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),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}(),de=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),fe=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var i;for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.pos<this.offset+this.length;)e=t.readByte(),r.push(this.names.push(t.readString(e)));return r;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var e,n,r;for(r=[],i=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;i=0<=n?++e:--e)r.push(t.readUInt32());return r}.call(this)}},e}(),pe=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},ge=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,A,o,s,a,l,c,u;for(t.pos=this.offset,t.readShort(),e=t.readShort(),o=t.readShort(),n=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(s={},i=l=0,c=n.length;l<c;i=++l)r=n[i],t.pos=r.offset,a=t.readString(r.length),A=new pe(a,r),null==s[u=r.nameID]&&(s[u]=[]),s[r.nameID].push(A);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),me=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),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}(),we=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,r,i,A,o,s;for(t.pos=this.offset,this.metrics=[],e=0,o=this.file.hhea.numberOfMetrics;0<=o?e<o:e>o;e=0<=o?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?n<r:n>r;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;t<e;t++)i=n[t],r.push(i.advance);return r}.call(this),n=this.widths[this.widths.length-1],s=[],e=A=0;0<=r?A<r:A>r;e=0<=r?++A:--A)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),ye=[].slice,ve=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,A,o,s,a,l,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,A=(o=new Ae(e.read(r))).readShort(),a=o.readShort(),c=o.readShort(),s=o.readShort(),l=o.readShort(),this.cache[t]=-1===A?new Be(o,a,c,s,l):new be(o,A,a,c,s,l),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,A,o,s;for(A=[],i=[],o=0,s=e.length;o<s;o++)r=t[e[o]],i.push(A.length),r&&(A=A.concat(r.encode(n)));return i.push(A.length),{table:A,offsets:i}},e}(),be=function(){function t(t,e,n,r,i,A){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=r,this.xMax=i,this.yMax=A,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Be=function(){function t(t,e,n,r,i){var A,o;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=r,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],A=this.raw;o=A.readShort(),this.glyphOffsets.push(A.pos),this.glyphIDs.push(A.readUInt16()),32&o;)A.pos+=1&o?4:2,128&o?A.pos+=8:64&o?A.pos+=4:8&o&&(A.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new Ae(ye.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),Ce=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ae(e,ie),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=2)r.push(2*t.readUInt16());return r}.call(this):function(){var e,r;for(r=[],n=0,e=this.length;n<e;n+=4)r.push(t.readUInt32());return r}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),r=0,i=0,A=0;A<n.length;++A)if(n[A]=r,i<e.length&&e[i]==A){++i,n[A]=r;var o=this.offsets[A],s=this.offsets[A+1]-o;s>0&&(r+=s)}for(var a=new Array(4*n.length),l=0;l<n.length;++l)a[4*l+3]=255&n[l],a[4*l+2]=(65280&n[l])>>8,a[4*l+1]=(16711680&n[l])>>16,a[4*l]=(4278190080&n[l])>>24;return a},e}(),xe=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,A,o,s;for(r={},A=0,o=t.length;A<o;A++)r[i=t[A]]=this.font.glyf.glyphFor(i);for(i in e=[],r)(null!=(n=r[i])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,A,o,s,a,l,c,u,h,d,f,p,g;for(r in n=ue.encode(this.generateCmap(),"unicode"),A=this.glyphsFor(t),h={0:0},g=n.charMap)h[(s=g[r]).old]=s.new;for(d in u=n.maxGlyphID,A)d in h||(h[d]=u++);return l=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(h),c=Object.keys(l).sort((function(t,e){return t-e})),f=function(){var t,e,n;for(n=[],t=0,e=c.length;t<e;t++)o=c[t],n.push(l[o]);return n}(),i=this.font.glyf.encode(A,f,h),a=this.font.loca.encode(i.offsets,f),p={cmap:this.font.cmap.raw(),glyf:i.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(e)},this.font.os2.exists&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},t}();P.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var r,i,A,o;if(Array.isArray(n))return"["+function(){var t,i,A;for(A=[],t=0,i=n.length;t<i;t++)r=n[t],A.push(e.convert(r));return A}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in A=["<<"],n)o=n[i],A.push("/"+i+" "+e.convert(o));return A.push(">>"),A.join("\n")}return""+n},e}(),e["a"]=P}).call(this,n("c8ba"))},"780f":function(t,e,n){"use strict";t.exports=A;var r=n("27bf"),i=Object.create(n("3a7c"));function A(t){if(!(this instanceof A))return new A(t);r.call(this,t)}i.inherits=n("3fb5"),i.inherits(A,r),A.prototype._transform=function(t,e,n){n(null,t)}},"7d72":function(t,e,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function o(t){var e=A(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=o(t),this.encoding){case"utf16le":this.text=f,this.end=p,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=g,this.end=m,e=3;break;default:return this.write=w,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function l(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=a(e[r]),i>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=a(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function c(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"<22>"}}function u(t){var e=this.lastTotal-this.lastNeed,n=c(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function h(t,e){var n=l(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e}function f(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function p(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function g(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function w(t){return t.toString(this.encoding)}function y(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},s.prototype.end=d,s.prototype.text=h,s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},"7e07":function(t,e,n){var r=n("8af8"),i=n("0259");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},8109:function(t,e,n){var r=n("46ab"),i=n("8af8"),A=n("424c"),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?s(t,""):o(t)}:o},8300:function(t,e,n){var r=n("601e"),i=Object;t.exports=function(t){return i(r(t))}},8515:function(t,e){e.f=Object.getOwnPropertySymbols},8707:function(t,e,n){var r=n("b639"),i=r.Buffer;function A(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(A(r,e),e.Buffer=o),A(i,o),o.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},o.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},o.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},o.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"899a":function(t,e,n){var r=n("b2d1");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},"8af8":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"8d5c":function(t,e,n){var r=n("8af8");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9152:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,r,i){var A,o,s=8*i-r-1,a=(1<<s)-1,l=a>>1,c=-7,u=n?i-1:0,h=n?-1:1,d=t[e+u];for(u+=h,A=d&(1<<-c)-1,d>>=-c,c+=s;c>0;A=256*A+t[e+u],u+=h,c-=8);for(o=A&(1<<-c)-1,A>>=-c,c+=r;c>0;o=256*o+t[e+u],u+=h,c-=8);if(0===A)A=1-l;else{if(A===a)return o?NaN:1/0*(d?-1:1);o+=Math.pow(2,r),A-=l}return(d?-1:1)*o*Math.pow(2,A-r)},e.write=function(t,e,n,r,i,A){var o,s,a,l=8*A-i-1,c=(1<<l)-1,u=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:A-1,f=r?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),e+=o+u>=1?h/a:h*Math.pow(2,1-u),e*a>=2&&(o++,a/=2),o+u>=c?(s=0,o=c):o+u>=1?(s=(e*a-1)*Math.pow(2,i),o+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,i),o=0));i>=8;t[n+d]=255&s,d+=f,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;t[n+d]=255&o,d+=f,o/=256,l-=8);t[n+d-f]|=128*p}},"916c":function(t,e,n){var r=n("424c");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"91d2":function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function A(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,r,A){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new o(n,r||t,A),a=i?i+e:e;return t._events[a]?t._events[a].fn?t._events[a]=[t._events[a],s]:t._events[a].push(s):(t._events[a]=s,t._eventsCount++),t}function a(t,e){0===--t._eventsCount?t._events=new A:delete t._events[e]}function l(){this._events=new A,this._eventsCount=0}Object.create&&(A.prototype=Object.create(null),(new A).__proto__||(i=!1)),l.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},l.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,A=n.length,o=new Array(A);r<A;r++)o[r]=n[r].fn;return o},l.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},l.prototype.emit=function(t,e,n,r,A,o){var s=i?i+t:t;if(!this._events[s])return!1;var a,l,c=this._events[s],u=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,A),!0;case 6:return c.fn.call(c.context,e,n,r,A,o),!0}for(l=1,a=new Array(u-1);l<u;l++)a[l-1]=arguments[l];c.fn.apply(c.context,a)}else{var h,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),u){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,r);break;default:if(!a)for(h=1,a=new Array(u-1);h<u;h++)a[h-1]=arguments[h];c[l].fn.apply(c[l].context,a)}}return!0},l.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},l.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},l.prototype.removeListener=function(t,e,n,r){var A=i?i+t:t;if(!this._events[A])return this;if(!e)return a(this,A),this;var o=this._events[A];if(o.fn)o.fn!==e||r&&!o.once||n&&o.context!==n||a(this,A);else{for(var s=0,l=[],c=o.length;s<c;s++)(o[s].fn!==e||r&&!o[s].once||n&&o[s].context!==n)&&l.push(o[s]);l.length?this._events[A]=1===l.length?l[0]:l:a(this,A)}return this},l.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&a(this,e)):(this._events=new A,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,t.exports=l},"933e":function(t,e,n){var r=n("ed00"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},9431:function(t,e,n){var r=n("b257");t.exports=r("navigator","userAgent")||""},9440:function(t,e,n){var r=n("933e");t.exports=function(t){return r(t.length)}},"966d":function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var A,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:A=new Array(s-1),o=0;while(o<A.length)A[o++]=arguments[o];return e.nextTick((function(){t.apply(null,A)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this,n("4362"))},9826:function(t,e,n){var r,i,A=n("09d9"),o=n("9a1c").isArray;function s(t){var e=A.copyOptions(t);return A.ensureFlagExists("ignoreDeclaration",e),A.ensureFlagExists("ignoreInstruction",e),A.ensureFlagExists("ignoreAttributes",e),A.ensureFlagExists("ignoreText",e),A.ensureFlagExists("ignoreComment",e),A.ensureFlagExists("ignoreCdata",e),A.ensureFlagExists("ignoreDoctype",e),A.ensureFlagExists("compact",e),A.ensureFlagExists("indentText",e),A.ensureFlagExists("indentCdata",e),A.ensureFlagExists("indentAttributes",e),A.ensureFlagExists("indentInstruction",e),A.ensureFlagExists("fullTagEmptyElement",e),A.ensureFlagExists("noQuotesForNativeAttributes",e),A.ensureSpacesExists(e),"number"===typeof e.spaces&&(e.spaces=Array(e.spaces+1).join(" ")),A.ensureKeyExists("declaration",e),A.ensureKeyExists("instruction",e),A.ensureKeyExists("attributes",e),A.ensureKeyExists("text",e),A.ensureKeyExists("comment",e),A.ensureKeyExists("cdata",e),A.ensureKeyExists("doctype",e),A.ensureKeyExists("type",e),A.ensureKeyExists("name",e),A.ensureKeyExists("elements",e),A.checkFnExists("doctype",e),A.checkFnExists("instruction",e),A.checkFnExists("cdata",e),A.checkFnExists("comment",e),A.checkFnExists("text",e),A.checkFnExists("instructionName",e),A.checkFnExists("elementName",e),A.checkFnExists("attributeName",e),A.checkFnExists("attributeValue",e),A.checkFnExists("attributes",e),A.checkFnExists("fullTagEmptyElement",e),e}function a(t,e,n){return(!n&&t.spaces?"\n":"")+Array(e+1).join(t.spaces)}function l(t,e,n){if(e.ignoreAttributes)return"";"attributesFn"in e&&(t=e.attributesFn(t,i,r));var A,o,s,l,c=[];for(A in t)t.hasOwnProperty(A)&&null!==t[A]&&void 0!==t[A]&&(l=e.noQuotesForNativeAttributes&&"string"!==typeof t[A]?"":'"',o=""+t[A],o=o.replace(/"/g,"&quot;"),s="attributeNameFn"in e?e.attributeNameFn(A,o,i,r):A,c.push(e.spaces&&e.indentAttributes?a(e,n+1,!1):" "),c.push(s+"="+l+("attributeValueFn"in e?e.attributeValueFn(o,A,i,r):o)+l));return t&&Object.keys(t).length&&e.spaces&&e.indentAttributes&&c.push(a(e,n,!1)),c.join("")}function c(t,e,n){return r=t,i="xml",e.ignoreDeclaration?"":"<?xml"+l(t[e.attributesKey],e,n)+"?>"}function u(t,e,n){if(e.ignoreInstruction)return"";var A;for(A in t)if(t.hasOwnProperty(A))break;var o="instructionNameFn"in e?e.instructionNameFn(A,t[A],i,r):A;if("object"===typeof t[A])return r=t,i=o,"<?"+o+l(t[A][e.attributesKey],e,n)+"?>";var s=t[A]?t[A]:"";return"instructionFn"in e&&(s=e.instructionFn(s,A,i,r)),"<?"+o+(s?" "+s:"")+"?>"}function h(t,e){return e.ignoreComment?"":"\x3c!--"+("commentFn"in e?e.commentFn(t,i,r):t)+"--\x3e"}function d(t,e){return e.ignoreCdata?"":"<![CDATA["+("cdataFn"in e?e.cdataFn(t,i,r):t.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function f(t,e){return e.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in e?e.doctypeFn(t,i,r):t)+">"}function p(t,e){return e.ignoreText?"":(t=""+t,t=t.replace(/&amp;/g,"&"),t=t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in e?e.textFn(t,i,r):t)}function g(t,e){var n;if(t.elements&&t.elements.length)for(n=0;n<t.elements.length;++n)switch(t.elements[n][e.typeKey]){case"text":if(e.indentText)return!0;break;case"cdata":if(e.indentCdata)return!0;break;case"instruction":if(e.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(t,e,n){r=t,i=t.name;var A=[],o="elementNameFn"in e?e.elementNameFn(t.name,t):t.name;A.push("<"+o),t[e.attributesKey]&&A.push(l(t[e.attributesKey],e,n));var s=t[e.elementsKey]&&t[e.elementsKey].length||t[e.attributesKey]&&"preserve"===t[e.attributesKey]["xml:space"];return s||(s="fullTagEmptyElementFn"in e?e.fullTagEmptyElementFn(t.name,t):e.fullTagEmptyElement),s?(A.push(">"),t[e.elementsKey]&&t[e.elementsKey].length&&(A.push(w(t[e.elementsKey],e,n+1)),r=t,i=t.name),A.push(e.spaces&&g(t,e)?"\n"+Array(n+1).join(e.spaces):""),A.push("</"+o+">")):A.push("/>"),A.join("")}function w(t,e,n,r){return t.reduce((function(t,i){var A=a(e,n,r&&!t);switch(i.type){case"element":return t+A+m(i,e,n);case"comment":return t+A+h(i[e.commentKey],e);case"doctype":return t+A+f(i[e.doctypeKey],e);case"cdata":return t+(e.indentCdata?A:"")+d(i[e.cdataKey],e);case"text":return t+(e.indentText?A:"")+p(i[e.textKey],e);case"instruction":var o={};return o[i[e.nameKey]]=i[e.attributesKey]?i:i[e.instructionKey],t+(e.indentInstruction?A:"")+u(o,e,n)}}),"")}function y(t,e,n){var r;for(r in t)if(t.hasOwnProperty(r))switch(r){case e.parentKey:case e.attributesKey:break;case e.textKey:if(e.indentText||n)return!0;break;case e.cdataKey:if(e.indentCdata||n)return!0;break;case e.instructionKey:if(e.indentInstruction||n)return!0;break;case e.doctypeKey:case e.commentKey:return!0;default:return!0}return!1}function v(t,e,n,A,o){r=t,i=e;var s="elementNameFn"in n?n.elementNameFn(e,t):e;if("undefined"===typeof t||null===t||""===t)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(e,t)||n.fullTagEmptyElement?"<"+s+"></"+s+">":"<"+s+"/>";var c=[];if(e){if(c.push("<"+s),"object"!==typeof t)return c.push(">"+p(t,n)+"</"+s+">"),c.join("");t[n.attributesKey]&&c.push(l(t[n.attributesKey],n,A));var u=y(t,n,!0)||t[n.attributesKey]&&"preserve"===t[n.attributesKey]["xml:space"];if(u||(u="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(e,t):n.fullTagEmptyElement),!u)return c.push("/>"),c.join("");c.push(">")}return c.push(b(t,n,A+1,!1)),r=t,i=e,e&&c.push((o?a(n,A,!1):"")+"</"+s+">"),c.join("")}function b(t,e,n,r){var i,A,s,l=[];for(A in t)if(t.hasOwnProperty(A))for(s=o(t[A])?t[A]:[t[A]],i=0;i<s.length;++i){switch(A){case e.declarationKey:l.push(c(s[i],e,n));break;case e.instructionKey:l.push((e.indentInstruction?a(e,n,r):"")+u(s[i],e,n));break;case e.attributesKey:case e.parentKey:break;case e.textKey:l.push((e.indentText?a(e,n,r):"")+p(s[i],e));break;case e.cdataKey:l.push((e.indentCdata?a(e,n,r):"")+d(s[i],e));break;case e.doctypeKey:l.push(a(e,n,r)+f(s[i],e));break;case e.commentKey:l.push(a(e,n,r)+h(s[i],e));break;default:l.push(a(e,n,r)+v(s[i],A,e,n,y(s[i],e)))}r=r&&!l.length}return l.join("")}t.exports=function(t,e){e=s(e);var n=[];return r=t,i="_root_",e.compact?n.push(b(t,e,0,!0)):(t[e.declarationKey]&&n.push(c(t[e.declarationKey],e,0)),t[e.elementsKey]&&t[e.elementsKey].length&&n.push(w(t[e.elementsKey],e,0,!n.length))),n.join("")}},"9a1c":function(t,e){t.exports={isArray:function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}}},"9d9f":function(t,e,n){"use strict";var r=n("3475"),i=n("8300"),A=n("9440"),o=n("e6a3"),s=n("af17"),a=n("8af8"),l=a((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:l||c},{push:function(t){var e=i(this),n=A(e),r=arguments.length;s(n+r);for(var a=0;a<r;a++)e[n]=arguments[a],n++;return o(e,n),n}})},"9eda":function(t,e,n){var r=n("6632"),i=n("5e8c"),A=n("feb8"),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!A(s=r(n,t)))return s;if(i(n=t.valueOf)&&!A(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!A(s=r(n,t)))return s;throw o("Can't convert object to primitive value")}},a83d:function(t,e,n){(function(t){(function(e){e.parser=function(t,e){return new A(t,e)},e.SAXParser=A,e.SAXStream=u,e.createStream=c,e.MAX_BUFFER_LENGTH=65536;var r,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function A(t,n){if(!(this instanceof A))return new A(t,n);var r=this;s(r),r.q=r.c="",r.bufferCheckPosition=e.MAX_BUFFER_LENGTH,r.opt=n||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!t,r.noscript=!(!t&&!r.opt.noscript),r.state=E.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(g)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),L(r,"onready")}function o(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,A=0,o=i.length;A<o;A++){var s=t[i[A]].length;if(s>n)switch(i[A]){case"textNode":S(t);break;case"cdata":N(t,"oncdata",t.cdata),t.cdata="";break;case"script":N(t,"onscript",t.script),t.script="";break;default:k(t,"Max buffer length exceeded: "+i[A])}r=Math.max(r,s)}var a=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=a+t.position}function s(t){for(var e=0,n=i.length;e<n;e++)t[i[e]]=""}function a(t){S(t),""!==t.cdata&&(N(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(N(t,"onscript",t.script),t.script="")}e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}e.prototype=t;var n=new e;return n}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),A.prototype={end:function(){Q(this)},write:z,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};try{r=n("d485").Stream}catch(q){r=function(){}}var l=e.EVENTS.filter((function(t){return"error"!==t&&"end"!==t}));function c(t,e){return new u(t,e)}function u(t,e){if(!(this instanceof u))return new u(t,e);r.apply(this),this._parser=new A(t,e),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(t){n.emit("error",t),n._parser.error=null},this._decoder=null,l.forEach((function(t){Object.defineProperty(n,"on"+t,{get:function(){return n._parser["on"+t]},set:function(e){if(!e)return n.removeAllListeners(t),n._parser["on"+t]=e,e;n.on(t,e)},enumerable:!0,configurable:!1})}))}u.prototype=Object.create(r.prototype,{constructor:{value:u}}),u.prototype.write=function(e){if("function"===typeof t&&"function"===typeof t.isBuffer&&t.isBuffer(e)){if(!this._decoder){var r=n("7d72").StringDecoder;this._decoder=new r("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},u.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},u.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===l.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),r.prototype.on.call(n,t,e)};var h="[CDATA[",d="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",g={xml:f,xmlns:p},m=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,y=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function B(t){return'"'===t||"'"===t}function C(t){return">"===t||b(t)}function x(t,e){return t.test(e)}function _(t,e){return!x(t,e)}var E=0;for(var F in e.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach((function(t){var n=e.ENTITIES[t],r="number"===typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r})),e.STATE)e.STATE[e.STATE[F]]=F;function L(t,e,n){t[e]&&t[e](n)}function N(t,e,n){t.textNode&&S(t),L(t,e,n)}function S(t){t.textNode=U(t.opt,t.textNode),t.textNode&&L(t,"ontext",t.textNode),t.textNode=""}function U(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function k(t,e){return S(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,L(t,"onerror",e),t}function Q(t){return t.sawRoot&&!t.closedRoot&&I(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&k(t,"Unexpected end"),S(t),t.c="",t.closed=!0,L(t,"onend"),A.call(t,t.strict,t.opt),t}function I(t,e){if("object"!==typeof t||!(t instanceof A))throw new Error("bad call to strictFail");t.strict&&k(t,e)}function T(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,N(t,"onopentagstart",n)}function O(t,e){var n=t.indexOf(":"),r=n<0?["",t]:t.split(":"),i=r[0],A=r[1];return e&&"xmlns"===t&&(i="xmlns",A=""),{prefix:i,local:A}}function M(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))t.attribName=t.attribValue="";else{if(t.opt.xmlns){var e=O(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==f)I(t,"xml: prefix must be bound to "+f+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==p)I(t,"xmlns: prefix must be bound to "+p+"\nActual: "+t.attribValue);else{var i=t.tag,A=t.tags[t.tags.length-1]||t;i.ns===A.ns&&(i.ns=Object.create(A.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,N(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}}function D(t,e){if(t.opt.xmlns){var n=t.tag,r=O(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(I(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(e){N(t,"onopennamespace",{prefix:e,uri:n.ns[e]})}));for(var A=0,o=t.attribList.length;A<o;A++){var s=t.attribList[A],a=s[0],l=s[1],c=O(a,!0),u=c.prefix,h=c.local,d=""===u?"":n.ns[u]||"",f={name:a,value:l,prefix:u,local:h,uri:d};u&&"xmlns"!==u&&!d&&(I(t,"Unbound namespace prefix: "+JSON.stringify(u)),f.uri=u),t.tag.attributes[a]=f,N(t,"onattribute",f)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.tags.push(t.tag),N(t,"onopentag",t.tag),e||(t.noscript||"script"!==t.tagName.toLowerCase()?t.state=E.TEXT:t.state=E.SCRIPT,t.tag=null,t.tagName=""),t.attribName=t.attribValue="",t.attribList.length=0}function P(t){if(!t.tagName)return I(t,"Weird empty close tag."),t.textNode+="</>",void(t.state=E.TEXT);if(t.script){if("script"!==t.tagName)return t.script+="</"+t.tagName+">",t.tagName="",void(t.state=E.SCRIPT);N(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());var r=n;while(e--){var i=t.tags[e];if(i.name===r)break;I(t,"Unexpected close tag")}if(e<0)return I(t,"Unmatched closing tag: "+t.tagName),t.textNode+="</"+t.tagName+">",void(t.state=E.TEXT);t.tagName=n;var A=t.tags.length;while(A-- >e){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,N(t,"onclosetag",t.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var l=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==l.ns&&Object.keys(o.ns).forEach((function(e){var n=o.ns[e];N(t,"onclosenamespace",{prefix:e,uri:n})}))}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=E.TEXT}function H(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),e=parseInt(n,16),i=e.toString(16)):(n=n.slice(1),e=parseInt(n,10),i=e.toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(I(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function R(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):b(e)||(I(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function j(t,e){var n="";return e<t.length&&(n=t.charAt(e)),n}function z(t){var e=this;if(this.error)throw this.error;if(e.closed)return k(e,"Cannot write after close. Assign an onready handler.");if(null===t)return Q(e);"object"===typeof t&&(t=t.toString());var n=0,r="";while(1){if(r=j(t,n++),e.c=r,!r)break;switch(e.trackPosition&&(e.position++,"\n"===r?(e.line++,e.column=0):e.column++),e.state){case E.BEGIN:if(e.state=E.BEGIN_WHITESPACE,"\ufeff"===r)continue;R(e,r);continue;case E.BEGIN_WHITESPACE:R(e,r);continue;case E.TEXT:if(e.sawRoot&&!e.closedRoot){var i=n-1;while(r&&"<"!==r&&"&"!==r)r=j(t,n++),r&&e.trackPosition&&(e.position++,"\n"===r?(e.line++,e.column=0):e.column++);e.textNode+=t.substring(i,n-1)}"<"!==r||e.sawRoot&&e.closedRoot&&!e.strict?(b(r)||e.sawRoot&&!e.closedRoot||I(e,"Text data outside of root node."),"&"===r?e.state=E.TEXT_ENTITY:e.textNode+=r):(e.state=E.OPEN_WAKA,e.startTagPosition=e.position);continue;case E.SCRIPT:"<"===r?e.state=E.SCRIPT_ENDING:e.script+=r;continue;case E.SCRIPT_ENDING:"/"===r?e.state=E.CLOSE_TAG:(e.script+="<"+r,e.state=E.SCRIPT);continue;case E.OPEN_WAKA:if("!"===r)e.state=E.SGML_DECL,e.sgmlDecl="";else if(b(r));else if(x(m,r))e.state=E.OPEN_TAG,e.tagName=r;else if("/"===r)e.state=E.CLOSE_TAG,e.tagName="";else if("?"===r)e.state=E.PROC_INST,e.procInstName=e.procInstBody="";else{if(I(e,"Unencoded <"),e.startTagPosition+1<e.position){var A=e.position-e.startTagPosition;r=new Array(A).join(" ")+r}e.textNode+="<"+r,e.state=E.TEXT}continue;case E.SGML_DECL:(e.sgmlDecl+r).toUpperCase()===h?(N(e,"onopencdata"),e.state=E.CDATA,e.sgmlDecl="",e.cdata=""):e.sgmlDecl+r==="--"?(e.state=E.COMMENT,e.comment="",e.sgmlDecl=""):(e.sgmlDecl+r).toUpperCase()===d?(e.state=E.DOCTYPE,(e.doctype||e.sawRoot)&&I(e,"Inappropriately located doctype declaration"),e.doctype="",e.sgmlDecl=""):">"===r?(N(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=E.TEXT):B(r)?(e.state=E.SGML_DECL_QUOTED,e.sgmlDecl+=r):e.sgmlDecl+=r;continue;case E.SGML_DECL_QUOTED:r===e.q&&(e.state=E.SGML_DECL,e.q=""),e.sgmlDecl+=r;continue;case E.DOCTYPE:">"===r?(e.state=E.TEXT,N(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=r,"["===r?e.state=E.DOCTYPE_DTD:B(r)&&(e.state=E.DOCTYPE_QUOTED,e.q=r));continue;case E.DOCTYPE_QUOTED:e.doctype+=r,r===e.q&&(e.q="",e.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:e.doctype+=r,"]"===r?e.state=E.DOCTYPE:B(r)&&(e.state=E.DOCTYPE_DTD_QUOTED,e.q=r);continue;case E.DOCTYPE_DTD_QUOTED:e.doctype+=r,r===e.q&&(e.state=E.DOCTYPE_DTD,e.q="");continue;case E.COMMENT:"-"===r?e.state=E.COMMENT_ENDING:e.comment+=r;continue;case E.COMMENT_ENDING:"-"===r?(e.state=E.COMMENT_ENDED,e.comment=U(e.opt,e.comment),e.comment&&N(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+r,e.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==r?(I(e,"Malformed comment"),e.comment+="--"+r,e.state=E.COMMENT):e.state=E.TEXT;continue;case E.CDATA:"]"===r?e.state=E.CDATA_ENDING:e.cdata+=r;continue;case E.CDATA_ENDING:"]"===r?e.state=E.CDATA_ENDING_2:(e.cdata+="]"+r,e.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===r?(e.cdata&&N(e,"oncdata",e.cdata),N(e,"onclosecdata"),e.cdata="",e.state=E.TEXT):"]"===r?e.cdata+="]":(e.cdata+="]]"+r,e.state=E.CDATA);continue;case E.PROC_INST:"?"===r?e.state=E.PROC_INST_ENDING:b(r)?e.state=E.PROC_INST_BODY:e.procInstName+=r;continue;case E.PROC_INST_BODY:if(!e.procInstBody&&b(r))continue;"?"===r?e.state=E.PROC_INST_ENDING:e.procInstBody+=r;continue;case E.PROC_INST_ENDING:">"===r?(N(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=E.TEXT):(e.procInstBody+="?"+r,e.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:x(w,r)?e.tagName+=r:(T(e),">"===r?D(e):"/"===r?e.state=E.OPEN_TAG_SLASH:(b(r)||I(e,"Invalid character in tag name"),e.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===r?(D(e,!0),P(e)):(I(e,"Forward-slash in opening tag not followed by >"),e.state=E.ATTRIB);continue;case E.ATTRIB:if(b(r))continue;">"===r?D(e):"/"===r?e.state=E.OPEN_TAG_SLASH:x(m,r)?(e.attribName=r,e.attribValue="",e.state=E.ATTRIB_NAME):I(e,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===r?e.state=E.ATTRIB_VALUE:">"===r?(I(e,"Attribute without value"),e.attribValue=e.attribName,M(e),D(e)):b(r)?e.state=E.ATTRIB_NAME_SAW_WHITE:x(w,r)?e.attribName+=r:I(e,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===r)e.state=E.ATTRIB_VALUE;else{if(b(r))continue;I(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",N(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===r?D(e):x(m,r)?(e.attribName=r,e.state=E.ATTRIB_NAME):(I(e,"Invalid attribute name"),e.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(b(r))continue;B(r)?(e.q=r,e.state=E.ATTRIB_VALUE_QUOTED):(I(e,"Unquoted attribute value"),e.state=E.ATTRIB_VALUE_UNQUOTED,e.attribValue=r);continue;case E.ATTRIB_VALUE_QUOTED:if(r!==e.q){"&"===r?e.state=E.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=r;continue}M(e),e.q="",e.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:b(r)?e.state=E.ATTRIB:">"===r?D(e):"/"===r?e.state=E.OPEN_TAG_SLASH:x(m,r)?(I(e,"No whitespace between attributes"),e.attribName=r,e.attribValue="",e.state=E.ATTRIB_NAME):I(e,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!C(r)){"&"===r?e.state=E.ATTRIB_VALUE_ENTITY_U:e.attribValue+=r;continue}M(e),">"===r?D(e):e.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(e.tagName)">"===r?P(e):x(w,r)?e.tagName+=r:e.script?(e.script+="</"+e.tagName,e.tagName="",e.state=E.SCRIPT):(b(r)||I(e,"Invalid tagname in closing tag"),e.state=E.CLOSE_TAG_SAW_WHITE);else{if(b(r))continue;_(m,r)?e.script?(e.script+="</"+r,e.state=E.SCRIPT):I(e,"Invalid tagname in closing tag."):e.tagName=r}continue;case E.CLOSE_TAG_SAW_WHITE:if(b(r))continue;">"===r?P(e):I(e,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:var s,a;switch(e.state){case E.TEXT_ENTITY:s=E.TEXT,a="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:s=E.ATTRIB_VALUE_QUOTED,a="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:s=E.ATTRIB_VALUE_UNQUOTED,a="attribValue";break}";"===r?(e[a]+=H(e),e.entity="",e.state=s):x(e.entity.length?v:y,r)?e.entity+=r:(I(e,"Invalid character in entity name"),e[a]+="&"+e.entity+r,e.entity="",e.state=s);continue;default:throw new Error(e,"Unknown state: "+e.state)}}return e.position>=e.bufferCheckPosition&&o(e),e}
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */E=e.STATE,String.fromCodePoint||function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,r,i=16384,A=[],o=-1,s=arguments.length;if(!s)return"";var a="";while(++o<s){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||e(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?A.push(l):(l-=65536,n=55296+(l>>10),r=l%1024+56320,A.push(n,r)),(o+1===s||A.length>i)&&(a+=t.apply(null,A),A.length=0)}return a};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})(e)}).call(this,n("b639").Buffer)},ac5f:function(t,e,n){var r=n("cc50"),i=n("8300"),A=n("8109"),o=n("9440"),s=TypeError,a=function(t){return function(e,n,a,l){r(n);var c=i(e),u=A(c),h=o(c),d=t?h-1:0,f=t?-1:1;if(a<2)while(1){if(d in u){l=u[d],d+=f;break}if(d+=f,t?d<0:h<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=f)d in u&&(l=n(l,u[d],d,c));return l}};t.exports={left:a(!1),right:a(!0)}},acc5:function(t,e,n){var r=n("8d5c"),i=n("8af8"),A=n("b957");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a}))},ad71:function(t,e,n){"use strict";(function(e,r){var i=n("966d");t.exports=B;var A,o=n("e3db");B.ReadableState=b;n("faa1").EventEmitter;var s=function(t,e){return t.listeners(e).length},a=n("429b"),l=n("8707").Buffer,c=e.Uint8Array||function(){};function u(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof c}var d=Object.create(n("3a7c"));d.inherits=n("3fb5");var f=n(0),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var g,m=n("5e1a"),w=n("4681");d.inherits(B,a);var y=["error","close","destroy","pause","resume"];function v(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?o(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function b(t,e){A=A||n("b19a"),t=t||{};var r=e instanceof A;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(t.encoding),this.encoding=t.encoding)}function B(t){if(A=A||n("b19a"),!(this instanceof B))return new B(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function C(t,e,n,r,i){var A,o=t._readableState;null===e?(o.reading=!1,S(t,o)):(i||(A=_(o,e)),A?t.emit("error",A):o.objectMode||e&&e.length>0?("string"===typeof e||o.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=u(e)),r?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):x(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?x(t,o,e,!1):Q(t,o)):x(t,o,e,!1))):r||(o.reading=!1));return E(o)}function x(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&U(t)),Q(t,e)}function _(t,e){var n;return h(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function E(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}Object.defineProperty(B.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),B.prototype.destroy=w.destroy,B.prototype._undestroy=w.undestroy,B.prototype._destroy=function(t,e){this.push(null),e(t)},B.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=l.from(t,e),e=""),n=!0),C(this,t,e,!1,n)},B.prototype.unshift=function(t){return C(this,t,null,!0,!1)},B.prototype.isPaused=function(){return!1===this._readableState.flowing},B.prototype.setEncoding=function(t){return g||(g=n("7d72").StringDecoder),this._readableState.decoder=new g(t),this._readableState.encoding=t,this};var F=8388608;function L(t){return t>=F?t=F:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function N(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,U(t)}}function U(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(k,t):k(t))}function k(t){p("emit readable"),t.emit("readable"),P(t)}function Q(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(I,t,e))}function I(t,e){var n=e.length;while(!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark){if(p("maybeReadMore read 0"),t.read(0),n===e.length)break;n=e.length}e.readingMore=!1}function T(t){return function(){var e=t._readableState;p("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,P(t))}}function O(t){p("readable nexttick read 0"),t.read(0)}function M(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(D,t,e))}function D(t,e){e.reading||(p("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;p("flow",e.flowing);while(e.flowing&&null!==t.read());}function H(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=R(t,e.buffer,e.decoder),n);var n}function R(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?j(t,e):z(t,e),r}function j(t,e){var n=e.head,r=1,i=n.data;t-=i.length;while(n=n.next){var A=n.data,o=t>A.length?A.length:t;if(o===A.length?i+=A:i+=A.slice(0,t),t-=o,0===t){o===A.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=A.slice(o));break}++r}return e.length-=r,i}function z(t,e){var n=l.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;while(r=r.next){var A=r.data,o=t>A.length?A.length:t;if(A.copy(n,n.length-t,0,o),t-=o,0===t){o===A.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=A.slice(o));break}++i}return e.length-=i,n}function q(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(K,e,t))}function K(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function G(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}B.prototype.read=function(t){p("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return p("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?q(this):U(this),null;if(t=N(t,e),0===t&&e.ended)return 0===e.length&&q(this),null;var r,i=e.needReadable;return p("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,p("length less than watermark",i)),e.ended||e.reading?(i=!1,p("reading or ended",i)):i&&(p("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=N(n,e))),r=t>0?H(t,e):null,null===r?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&q(this)),null!==r&&this.emit("data",r),r},B.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},B.prototype.pipe=function(t,e){var n=this,A=this._readableState;switch(A.pipesCount){case 0:A.pipes=t;break;case 1:A.pipes=[A.pipes,t];break;default:A.pipes.push(t);break}A.pipesCount+=1,p("pipe count=%d opts=%j",A.pipesCount,e);var o=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,a=o?c:b;function l(t,e){p("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function c(){p("onend"),t.end()}A.endEmitted?i.nextTick(a):n.once("end",a),t.on("unpipe",l);var u=T(n);t.on("drain",u);var h=!1;function d(){p("cleanup"),t.removeListener("close",w),t.removeListener("finish",y),t.removeListener("drain",u),t.removeListener("error",m),t.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",g),h=!0,!A.awaitDrain||t._writableState&&!t._writableState.needDrain||u()}var f=!1;function g(e){p("ondata"),f=!1;var r=t.write(e);!1!==r||f||((1===A.pipesCount&&A.pipes===t||A.pipesCount>1&&-1!==G(A.pipes,t))&&!h&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,f=!0),n.pause())}function m(e){p("onerror",e),b(),t.removeListener("error",m),0===s(t,"error")&&t.emit("error",e)}function w(){t.removeListener("finish",y),b()}function y(){p("onfinish"),t.removeListener("close",w),b()}function b(){p("unpipe"),n.unpipe(t)}return n.on("data",g),v(t,"error",m),t.once("close",w),t.once("finish",y),t.emit("pipe",n),A.flowing||(p("pipe resume"),n.resume()),t},B.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var A=0;A<i;A++)r[A].emit("unpipe",this,n);return this}var o=G(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},B.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&U(this):i.nextTick(O,this))}return n},B.prototype.addListener=B.prototype.on,B.prototype.resume=function(){var t=this._readableState;return t.flowing||(p("resume"),t.flowing=!0,M(this,t)),this},B.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},B.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var A=e.push(i);A||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var A=0;A<y.length;A++)t.on(y[A],this.emit.bind(this,y[A]));return this._read=function(e){p("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),B._fromList=H}).call(this,n("c8ba"),n("4362"))},af17:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},afc0:function(t,e,n){var r=n("8af8"),i=n("5e8c"),A=/#|\.prototype\./,o=function(t,e){var n=a[s(t)];return n==c||n!=l&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(A,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},b19a:function(t,e,n){"use strict";var r=n("966d"),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var A=Object.create(n("3a7c"));A.inherits=n("3fb5");var o=n("ad71"),s=n("dc14");A.inherits(u,o);for(var a=i(s.prototype),l=0;l<a.length;l++){var c=a[l];u.prototype[c]||(u.prototype[c]=s.prototype[c])}function u(t){if(!(this instanceof u))return new u(t);o.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},b257:function(t,e,n){var r=n("1a89"),i=n("5e8c"),A=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?A(r[t]):r[t]&&r[t][e]}},b2d1:function(t,e,n){var r=n("e2cd"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},b636:function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},b639:function(t,e,n){"use strict";(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
var r=n("1fb5"),i=n("9152"),A=n("e3db");function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=l.prototype):(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,n,r):"string"===typeof e?f(t,e,n):m(t,e)}function u(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,n,r){return u(e),e<=0?a(t,e):void 0!==n?"string"===typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}function d(t,e){if(u(e),t=a(t,e<0?0:0|w(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(e,n);t=a(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function p(t,e){var n=e.length<0?0:0|w(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function g(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),l.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=l.prototype):t=p(t,e),t}function m(t,e){if(l.isBuffer(e)){var n=0|w(e.length);return t=a(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?a(t,0):p(t,e);if("Buffer"===e.type&&A(e.data))return p(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),l.alloc(+t)}function v(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(t).length;default:if(r)return X(t).length;e=(""+e).toLowerCase(),r=!0}}function b(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return M(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return U(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function B(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function C(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:x(t,e,n,r,i);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):x(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function x(t,e,n,r,i){var A,o=1,s=t.length,a=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;o=2,s/=2,a/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var c=-1;for(A=n;A<s;A++)if(l(t,A)===l(e,-1===c?0:A-c)){if(-1===c&&(c=A),A-c+1===a)return c*o}else-1!==c&&(A-=A-c),c=-1}else for(n+a>s&&(n=s-a),A=n;A>=0;A--){for(var u=!0,h=0;h<a;h++)if(l(t,A+h)!==l(e,h)){u=!1;break}if(u)return A}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var A=e.length;if(A%2!==0)throw new TypeError("Invalid hex string");r>A/2&&(r=A/2);for(var o=0;o<r;++o){var s=parseInt(e.substr(2*o,2),16);if(isNaN(s))return o;t[n+o]=s}return o}function E(t,e,n,r){return tt(X(e,t.length-n),t,n,r)}function F(t,e,n,r){return tt(J(e),t,n,r)}function L(t,e,n,r){return F(t,e,n,r)}function N(t,e,n,r){return tt($(e),t,n,r)}function S(t,e,n,r){return tt(Z(e,t.length-n),t,n,r)}function U(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var A,o,s,a,l=t[i],c=null,u=l>239?4:l>223?3:l>191?2:1;if(i+u<=n)switch(u){case 1:l<128&&(c=l);break;case 2:A=t[i+1],128===(192&A)&&(a=(31&l)<<6|63&A,a>127&&(c=a));break;case 3:A=t[i+1],o=t[i+2],128===(192&A)&&128===(192&o)&&(a=(15&l)<<12|(63&A)<<6|63&o,a>2047&&(a<55296||a>57343)&&(c=a));break;case 4:A=t[i+1],o=t[i+2],s=t[i+3],128===(192&A)&&128===(192&o)&&128===(192&s)&&(a=(15&l)<<18|(63&A)<<12|(63&o)<<6|63&s,a>65535&&a<1114112&&(c=a))}null===c?(c=65533,u=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=u}return I(r)}e.Buffer=l,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return h(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,A=Math.min(n,r);i<A;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!A(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},l.byteLength=v,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)B(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)B(this,e,e+3),B(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)B(this,e,e+7),B(this,e+1,e+6),B(this,e+2,e+5),B(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):b.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var A=i-r,o=n-e,s=Math.min(A,o),a=this.slice(r,i),c=t.slice(e,n),u=0;u<s;++u)if(a[u]!==c[u]){A=a[u],o=c[u];break}return A<o?-1:o<A?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return C(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return C(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var A=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return F(this,t,e,n);case"latin1":case"binary":return L(this,t,e,n);case"base64":return N(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(A)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),A=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;function I(t){var e=t.length;if(e<=Q)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=Q));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function M(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",A=e;A<n;++A)i+=Y(t[A]);return i}function D(t,e,n){for(var r=t.slice(e,n),i="",A=0;A<r.length;A+=2)i+=String.fromCharCode(r[A]+256*r[A+1]);return i}function P(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function H(t,e,n,r,i,A){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<A)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,A=Math.min(t.length-n,2);i<A;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,A=Math.min(t.length-n,4);i<A;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function z(t,e,n,r,i,A){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(t,e,n,r,A){return A||z(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function K(t,e,n,r,A){return A||z(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var A=0;A<i;++A)n[A]=this[A+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);var r=this[t],i=1,A=0;while(++A<e&&(i*=256))r+=this[t+A]*i;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);var r=this[t],i=1,A=0;while(++A<e&&(i*=256))r+=this[t+A]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);var r=e,i=1,A=this[t+--r];while(r>0&&(i*=256))A+=this[t+--r]*i;return i*=128,A>=i&&(A-=Math.pow(2,8*e)),A},l.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;H(this,t,e,n,i,0)}var A=1,o=0;this[e]=255&t;while(++o<n&&(A*=256))this[e+o]=t/A&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;H(this,t,e,n,i,0)}var A=n-1,o=1;this[e+A]=255&t;while(--A>=0&&(o*=256))this[e+A]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);H(this,t,e,n,i-1,-i)}var A=0,o=1,s=0;this[e]=255&t;while(++A<n&&(o*=256))t<0&&0===s&&0!==this[e+A-1]&&(s=1),this[e+A]=(t/o>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);H(this,t,e,n,i-1,-i)}var A=n-1,o=1,s=0;this[e+A]=255&t;while(--A>=0&&(o*=256))t<0&&0===s&&0!==this[e+A+1]&&(s=1),this[e+A]=(t/o>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||H(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return q(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return q(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return K(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return K(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,A=r-n;if(this===t&&n<e&&e<r)for(i=A-1;i>=0;--i)t[i+e]=this[i+n];else if(A<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<A;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+A),e);return A},l.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var A;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(A=e;A<n;++A)this[A]=t;else{var o=l.isBuffer(t)?t:X(new l(t,r).toString()),s=o.length;for(A=0;A<n-e;++A)this[A+e]=o[A%s]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function V(t){if(t=W(t).replace(G,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function W(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Y(t){return t<16?"0"+t.toString(16):t.toString(16)}function X(t,e){var n;e=e||1/0;for(var r=t.length,i=null,A=[],o=0;o<r;++o){if(n=t.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&A.push(239,191,189);continue}if(o+1===r){(e-=3)>-1&&A.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&A.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&A.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;A.push(n)}else if(n<2048){if((e-=2)<0)break;A.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;A.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;A.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return A}function J(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Z(t,e){for(var n,r,i,A=[],o=0;o<t.length;++o){if((e-=2)<0)break;n=t.charCodeAt(o),r=n>>8,i=n%256,A.push(i),A.push(r)}return A}function $(t){return r.toByteArray(V(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},b671:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,A=i&&!r.call({1:2},1);e.f=A?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},b7ba:function(t,e,n){var r=n("10ad"),i=n("fb24"),A=n("9826"),o=n("eec5");t.exports={xml2js:r,xml2json:i,js2xml:A,json2xml:o}},b7d1:function(t,e,n){(function(e){function n(t,e){if(r("noDeprecation"))return t;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return i}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,n("c8ba"))},b895:function(t,e,n){var r=n("46ab"),i=n("4d80"),A=n("44c7"),o=n("0965").indexOf,s=n("6797"),a=r([].push);t.exports=function(t,e){var n,r=A(t),l=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&a(c,n);while(e.length>l)i(r,n=e[l++])&&(~o(c,n)||a(c,n));return c}},b957:function(t,e,n){var r=n("1a89"),i=n("feb8"),A=r.document,o=i(A)&&i(A.createElement);t.exports=function(t){return o?A.createElement(t):{}}},bac8:function(t,e,n){var r=n("b257"),i=n("46ab"),A=n("51a6"),o=n("8515"),s=n("cf4b"),a=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=A.f(s(t)),n=o.f;return n?a(e,n(t)):e}},bbea:function(t,e,n){var r=n("46ab"),i=n("cf4b"),A=n("77be");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(o){}return function(n,r){return i(n),A(r),e?t(n,r):n.__proto__=r,n}}():void 0)},c2ae:function(t,e,n){t.exports=n("e372").PassThrough},c444:function(t,e,n){
/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/
(function(e,n){t.exports=n()})(0,(function(){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};function e(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};function r(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,A){function o(t){try{a(r.next(t))}catch(Ke){A(Ke)}}function s(t){try{a(r["throw"](t))}catch(Ke){A(Ke)}}function a(t){t.done?n(t.value):i(t.value).then(o,s)}a((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,A,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return A={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function s(t){return function(e){return a([t,e])}}function a(A){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,r&&(i=2&A[0]?r["return"]:A[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,A[1])).done)return i;switch(r=0,i&&(A=[2&A[0],i.value]),A[0]){case 0:case 1:i=A;break;case 4:return o.label++,{value:A[1],done:!1};case 5:o.label++,r=A[1],A=[0];continue;case 7:A=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===A[0]||2===A[0])){o=0;continue}if(3===A[0]&&(!i||A[1]>i[0]&&A[1]<i[3])){o.label=A[1];break}if(6===A[0]&&o.label<i[1]){o.label=i[1],i=A;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(A);break}i[2]&&o.ops.pop(),o.trys.pop();continue}A=e.call(t,o)}catch(Ke){A=[6,Ke],r=0}finally{n=i=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}}function A(t,e,n){if(n||2===arguments.length)for(var r,i=0,A=e.length;i<A;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||e)}for(var o=function(){function t(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r}return t.prototype.add=function(e,n,r,i){return new t(this.left+e,this.top+n,this.width+r,this.height+i)},t.fromClientRect=function(e,n){return new t(n.left+e.windowBounds.left,n.top+e.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(e,n){var r=Array.from(n).find((function(t){return 0!==t.width}));return r?new t(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),s=function(t,e){return o.fromClientRect(t,e.getBoundingClientRect())},a=function(t){var e=t.body,n=t.documentElement;if(!e||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,n.scrollWidth),Math.max(e.offsetWidth,n.offsetWidth),Math.max(e.clientWidth,n.clientWidth)),i=Math.max(Math.max(e.scrollHeight,n.scrollHeight),Math.max(e.offsetHeight,n.offsetHeight),Math.max(e.clientHeight,n.clientHeight));return new o(0,0,r,i)},l=function(t){var e=[],n=0,r=t.length;while(n<r){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var A=t.charCodeAt(n++);56320===(64512&A)?e.push(((1023&i)<<10)+(1023&A)+65536):(e.push(i),n--)}else e.push(i)}return e},c=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";var r=[],i=-1,A="";while(++i<n){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(A+=String.fromCharCode.apply(String,r),r.length=0)}return A},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"===typeof Uint8Array?[]:new Uint8Array(256),d=0;d<u.length;d++)h[u.charCodeAt(d)]=d;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="undefined"===typeof Uint8Array?[]:new Uint8Array(256),g=0;g<f.length;g++)p[f.charCodeAt(g)]=g;for(var m=function(t){var e,n,r,i,A,o=.75*t.length,s=t.length,a=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=p[t.charCodeAt(e)],r=p[t.charCodeAt(e+1)],i=p[t.charCodeAt(e+2)],A=p[t.charCodeAt(e+3)],c[a++]=n<<2|r>>4,c[a++]=(15&r)<<4|i>>2,c[a++]=(3&i)<<6|63&A;return l},w=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},y=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},v=5,b=11,B=2,C=b-v,x=65536>>v,_=1<<v,E=_-1,F=1024>>v,L=x+F,N=L,S=32,U=N+S,k=65536>>b,Q=1<<C,I=Q-1,T=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},O=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},M=function(t,e){var n=m(t),r=Array.isArray(n)?y(n):new Uint32Array(n),i=Array.isArray(n)?w(n):new Uint16Array(n),A=24,o=T(i,A/2,r[4]/2),s=2===r[5]?T(i,(A+r[4])/2):O(r,Math.ceil((A+r[4])/4));return new D(r[0],r[1],r[2],r[3],o,s)},D=function(){function t(t,e,n,r,i,A){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=A}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>v],e=(e<<B)+(t&E),this.data[e];if(t<=65535)return e=this.index[x+(t-55296>>v)],e=(e<<B)+(t&E),this.data[e];if(t<this.highStart)return e=U-k+(t>>b),e=this.index[e],e+=t>>v&I,e=this.index[e],e=(e<<B)+(t&E),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H="undefined"===typeof Uint8Array?[]:new Uint8Array(256),R=0;R<P.length;R++)H[P.charCodeAt(R)]=R;var j="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",z=50,q=1,K=2,G=3,V=4,W=5,Y=7,X=8,J=9,Z=10,$=11,tt=12,et=13,nt=14,rt=15,it=16,At=17,ot=18,st=19,at=20,lt=21,ct=22,ut=23,ht=24,dt=25,ft=26,pt=27,gt=28,mt=29,wt=30,yt=31,vt=32,bt=33,Bt=34,Ct=35,xt=36,_t=37,Et=38,Ft=39,Lt=40,Nt=41,St=42,Ut=43,kt=[9001,65288],Qt="!",It="×",Tt="÷",Ot=M(j),Mt=[wt,xt],Dt=[q,K,G,W],Pt=[Z,X],Ht=[pt,ft],Rt=Dt.concat(Pt),jt=[Et,Ft,Lt,Bt,Ct],zt=[rt,et],qt=function(t,e){void 0===e&&(e="strict");var n=[],r=[],i=[];return t.forEach((function(t,A){var o=Ot.get(t);if(o>z?(i.push(!0),o-=z):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(A),n.push(it);if(o===V||o===$){if(0===A)return r.push(A),n.push(wt);var s=n[A-1];return-1===Rt.indexOf(s)?(r.push(r[A-1]),n.push(s)):(r.push(A),n.push(wt))}return r.push(A),o===yt?n.push("strict"===e?lt:_t):o===St||o===mt?n.push(wt):o===Ut?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(_t):n.push(wt):void n.push(o)})),[r,n,i]},Kt=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i){var A=n;while(A<=r.length){A++;var o=r[A];if(o===e)return!0;if(o!==Z)break}}if(i===Z){A=n;while(A>0){A--;var s=r[A];if(Array.isArray(t)?-1!==t.indexOf(s):t===s){var a=n;while(a<=r.length){a++;o=r[a];if(o===e)return!0;if(o!==Z)break}}if(s!==Z)break}}return!1},Gt=function(t,e){var n=t;while(n>=0){var r=e[n];if(r!==Z)return r;n--}return 0},Vt=function(t,e,n,r,i){if(0===n[r])return It;var A=r-1;if(Array.isArray(i)&&!0===i[A])return It;var o=A-1,s=A+1,a=e[A],l=o>=0?e[o]:0,c=e[s];if(a===K&&c===G)return It;if(-1!==Dt.indexOf(a))return Qt;if(-1!==Dt.indexOf(c))return It;if(-1!==Pt.indexOf(c))return It;if(Gt(A,e)===X)return Tt;if(Ot.get(t[A])===$)return It;if((a===vt||a===bt)&&Ot.get(t[s])===$)return It;if(a===Y||c===Y)return It;if(a===J)return It;if(-1===[Z,et,rt].indexOf(a)&&c===J)return It;if(-1!==[At,ot,st,ht,gt].indexOf(c))return It;if(Gt(A,e)===ct)return It;if(Kt(ut,ct,A,e))return It;if(Kt([At,ot],lt,A,e))return It;if(Kt(tt,tt,A,e))return It;if(a===Z)return Tt;if(a===ut||c===ut)return It;if(c===it||a===it)return Tt;if(-1!==[et,rt,lt].indexOf(c)||a===nt)return It;if(l===xt&&-1!==zt.indexOf(a))return It;if(a===gt&&c===xt)return It;if(c===at)return It;if(-1!==Mt.indexOf(c)&&a===dt||-1!==Mt.indexOf(a)&&c===dt)return It;if(a===pt&&-1!==[_t,vt,bt].indexOf(c)||-1!==[_t,vt,bt].indexOf(a)&&c===ft)return It;if(-1!==Mt.indexOf(a)&&-1!==Ht.indexOf(c)||-1!==Ht.indexOf(a)&&-1!==Mt.indexOf(c))return It;if(-1!==[pt,ft].indexOf(a)&&(c===dt||-1!==[ct,rt].indexOf(c)&&e[s+1]===dt)||-1!==[ct,rt].indexOf(a)&&c===dt||a===dt&&-1!==[dt,gt,ht].indexOf(c))return It;if(-1!==[dt,gt,ht,At,ot].indexOf(c)){var u=A;while(u>=0){var h=e[u];if(h===dt)return It;if(-1===[gt,ht].indexOf(h))break;u--}}if(-1!==[pt,ft].indexOf(c)){u=-1!==[At,ot].indexOf(a)?o:A;while(u>=0){h=e[u];if(h===dt)return It;if(-1===[gt,ht].indexOf(h))break;u--}}if(Et===a&&-1!==[Et,Ft,Bt,Ct].indexOf(c)||-1!==[Ft,Bt].indexOf(a)&&-1!==[Ft,Lt].indexOf(c)||-1!==[Lt,Ct].indexOf(a)&&c===Lt)return It;if(-1!==jt.indexOf(a)&&-1!==[at,ft].indexOf(c)||-1!==jt.indexOf(c)&&a===pt)return It;if(-1!==Mt.indexOf(a)&&-1!==Mt.indexOf(c))return It;if(a===ht&&-1!==Mt.indexOf(c))return It;if(-1!==Mt.concat(dt).indexOf(a)&&c===ct&&-1===kt.indexOf(t[s])||-1!==Mt.concat(dt).indexOf(c)&&a===ot)return It;if(a===Nt&&c===Nt){var d=n[A],f=1;while(d>0){if(d--,e[d]!==Nt)break;f++}if(f%2!==0)return It}return a===vt&&c===bt?It:Tt},Wt=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=qt(t,e.lineBreak),r=n[0],i=n[1],A=n[2];"break-all"!==e.wordBreak&&"break-word"!==e.wordBreak||(i=i.map((function(t){return-1!==[dt,wt,St].indexOf(t)?_t:t})));var o="keep-all"===e.wordBreak?A.map((function(e,n){return e&&t[n]>=19968&&t[n]<=40959})):void 0;return[r,i,o]},Yt=function(){function t(t,e,n,r){this.codePoints=t,this.required=e===Qt,this.start=n,this.end=r}return t.prototype.slice=function(){return c.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),Xt=function(t,e){var n=l(t),r=Wt(n,e),i=r[0],A=r[1],o=r[2],s=n.length,a=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};var t=It;while(c<s&&(t=Vt(n,A,i,++c,o))===It);if(t!==It||c===s){var e=new Yt(n,t,a,c);return a=c,{value:e,done:!1}}return{done:!0,value:null}}}},Jt=1,Zt=2,$t=4,te=8,ee=10,ne=47,re=92,ie=9,Ae=32,oe=34,se=61,ae=35,le=36,ce=37,ue=39,he=40,de=41,fe=95,pe=45,ge=33,me=60,we=62,ye=64,ve=91,be=93,Be=61,Ce=123,xe=63,_e=125,Ee=124,Fe=126,Le=128,Ne=65533,Se=42,Ue=43,ke=44,Qe=58,Ie=59,Te=46,Oe=0,Me=8,De=11,Pe=14,He=31,Re=127,je=-1,ze=48,qe=97,Ke=101,Ge=102,Ve=117,We=122,Ye=65,Xe=69,Je=70,Ze=85,$e=90,tn=function(t){return t>=ze&&t<=57},en=function(t){return t>=55296&&t<=57343},nn=function(t){return tn(t)||t>=Ye&&t<=Je||t>=qe&&t<=Ge},rn=function(t){return t>=qe&&t<=We},An=function(t){return t>=Ye&&t<=$e},on=function(t){return rn(t)||An(t)},sn=function(t){return t>=Le},an=function(t){return t===ee||t===ie||t===Ae},ln=function(t){return on(t)||sn(t)||t===fe},cn=function(t){return ln(t)||tn(t)||t===pe},un=function(t){return t>=Oe&&t<=Me||t===De||t>=Pe&&t<=He||t===Re},hn=function(t,e){return t===re&&e!==ee},dn=function(t,e,n){return t===pe?ln(e)||hn(e,n):!!ln(t)||!(t!==re||!hn(t,e))},fn=function(t,e,n){return t===Ue||t===pe?!!tn(e)||e===Te&&tn(n):tn(t===Te?e:t)},pn=function(t){var e=0,n=1;t[e]!==Ue&&t[e]!==pe||(t[e]===pe&&(n=-1),e++);var r=[];while(tn(t[e]))r.push(t[e++]);var i=r.length?parseInt(c.apply(void 0,r),10):0;t[e]===Te&&e++;var A=[];while(tn(t[e]))A.push(t[e++]);var o=A.length,s=o?parseInt(c.apply(void 0,A),10):0;t[e]!==Xe&&t[e]!==Ke||e++;var a=1;t[e]!==Ue&&t[e]!==pe||(t[e]===pe&&(a=-1),e++);var l=[];while(tn(t[e]))l.push(t[e++]);var u=l.length?parseInt(c.apply(void 0,l),10):0;return n*(i+s*Math.pow(10,-o))*Math.pow(10,a*u)},gn={type:2},mn={type:3},wn={type:4},yn={type:13},vn={type:8},bn={type:21},Bn={type:9},Cn={type:10},xn={type:11},_n={type:12},En={type:14},Fn={type:23},Ln={type:1},Nn={type:25},Sn={type:24},Un={type:26},kn={type:27},Qn={type:28},In={type:29},Tn={type:31},On={type:32},Mn=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(l(t))},t.prototype.read=function(){var t=[],e=this.consumeToken();while(e!==On)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case oe:return this.consumeStringToken(oe);case ae:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(cn(e)||hn(n,r)){var i=dn(e,n,r)?Zt:Jt,A=this.consumeName();return{type:5,value:A,flags:i}}break;case le:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),yn;break;case ue:return this.consumeStringToken(ue);case he:return gn;case de:return mn;case Se:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),En;break;case Ue:if(fn(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case ke:return wn;case pe:var o=t,s=this.peekCodePoint(0),a=this.peekCodePoint(1);if(fn(o,s,a))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(dn(o,s,a))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(s===pe&&a===we)return this.consumeCodePoint(),this.consumeCodePoint(),Sn;break;case Te:if(fn(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case ne:if(this.peekCodePoint(0)===Se){this.consumeCodePoint();while(1){var l=this.consumeCodePoint();if(l===Se&&(l=this.consumeCodePoint(),l===ne))return this.consumeToken();if(l===je)return this.consumeToken()}}break;case Qe:return Un;case Ie:return kn;case me:if(this.peekCodePoint(0)===ge&&this.peekCodePoint(1)===pe&&this.peekCodePoint(2)===pe)return this.consumeCodePoint(),this.consumeCodePoint(),Nn;break;case ye:var u=this.peekCodePoint(0),h=this.peekCodePoint(1),d=this.peekCodePoint(2);if(dn(u,h,d)){A=this.consumeName();return{type:7,value:A}}break;case ve:return Qn;case re:if(hn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case be:return In;case Be:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),vn;break;case Ce:return xn;case _e:return _n;case Ve:case Ze:var f=this.peekCodePoint(0),p=this.peekCodePoint(1);return f!==Ue||!nn(p)&&p!==xe||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Ee:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),Bn;if(this.peekCodePoint(0)===Ee)return this.consumeCodePoint(),bn;break;case Fe:if(this.peekCodePoint(0)===se)return this.consumeCodePoint(),Cn;break;case je:return On}return an(t)?(this.consumeWhiteSpace(),Tn):tn(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):ln(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:c(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return"undefined"===typeof t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){var t=[],e=this.consumeCodePoint();while(nn(e)&&t.length<6)t.push(e),e=this.consumeCodePoint();var n=!1;while(e===xe&&t.length<6)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(c.apply(void 0,t.map((function(t){return t===xe?ze:t}))),16),i=parseInt(c.apply(void 0,t.map((function(t){return t===xe?Je:t}))),16);return{type:30,start:r,end:i}}var A=parseInt(c.apply(void 0,t),16);if(this.peekCodePoint(0)===pe&&nn(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();var o=[];while(nn(e)&&o.length<6)o.push(e),e=this.consumeCodePoint();i=parseInt(c.apply(void 0,o),16);return{type:30,start:A,end:i}}return{type:30,start:A,end:A}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&this.peekCodePoint(0)===he?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===he?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===je)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===ue||e===oe){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===je||this.peekCodePoint(0)===de)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Fn)}while(1){var r=this.consumeCodePoint();if(r===je||r===de)return{type:22,value:c.apply(void 0,t)};if(an(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===je||this.peekCodePoint(0)===de?(this.consumeCodePoint(),{type:22,value:c.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Fn);if(r===oe||r===ue||r===he||un(r))return this.consumeBadUrlRemnants(),Fn;if(r===re){if(!hn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Fn;t.push(this.consumeEscapedCodePoint())}else t.push(r)}},t.prototype.consumeWhiteSpace=function(){while(an(this.peekCodePoint(0)))this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){while(1){var t=this.consumeCodePoint();if(t===de||t===je)return;hn(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){var e=5e4,n="";while(t>0){var r=Math.min(e,t);n+=c.apply(void 0,this._value.splice(0,r)),t-=r}return this._value.shift(),n},t.prototype.consumeStringToken=function(t){var e="",n=0;do{var r=this._value[n];if(r===je||void 0===r||r===t)return e+=this.consumeStringSlice(n),{type:0,value:e};if(r===ee)return this._value.splice(0,n),Ln;if(r===re){var i=this._value[n+1];i!==je&&void 0!==i&&(i===ee?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):hn(r,i)&&(e+=this.consumeStringSlice(n),e+=c(this.consumeEscapedCodePoint()),n=-1))}n++}while(1)},t.prototype.consumeNumber=function(){var t=[],e=$t,n=this.peekCodePoint(0);n!==Ue&&n!==pe||t.push(this.consumeCodePoint());while(tn(this.peekCodePoint(0)))t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Te&&tn(r)){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=te;while(tn(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Xe||n===Ke)&&((r===Ue||r===pe)&&tn(i)||tn(r))){t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=te;while(tn(this.peekCodePoint(0)))t.push(this.consumeCodePoint())}return[pn(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),A=this.peekCodePoint(2);if(dn(r,i,A)){var o=this.consumeName();return{type:15,number:e,flags:n,unit:o}}return r===ce?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(nn(t)){var e=c(t);while(nn(this.peekCodePoint(0))&&e.length<6)e+=c(this.consumeCodePoint());an(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||en(n)||n>1114111?Ne:n}return t===je?Ne:t},t.prototype.consumeName=function(){var t="";while(1){var e=this.consumeCodePoint();if(cn(e))t+=c(e);else{if(!hn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=c(this.consumeEscapedCodePoint())}}},t}(),Dn=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new Mn;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){var t=this.consumeToken();while(31===t.type)t=this.consumeToken();if(32===t.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do{t=this.consumeToken()}while(31===t.type);if(32===t.type)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){var t=[];while(1){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){var e={type:t,values:[]},n=this.consumeToken();while(1){if(32===n.type||Vn(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){var e={name:t.value,values:[],type:18};while(1){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return"undefined"===typeof t?On:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),Pn=function(t){return 15===t.type},Hn=function(t){return 17===t.type},Rn=function(t){return 20===t.type},jn=function(t){return 0===t.type},zn=function(t,e){return Rn(t)&&t.value===e},qn=function(t){return 31!==t.type},Kn=function(t){return 31!==t.type&&4!==t.type},Gn=function(t){var e=[],n=[];return t.forEach((function(t){if(4===t.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return e.push(n),void(n=[])}31!==t.type&&n.push(t)})),n.length&&e.push(n),e},Vn=function(t,e){return 11===e&&12===t.type||(28===e&&29===t.type||2===e&&3===t.type)},Wn=function(t){return 17===t.type||15===t.type},Yn=function(t){return 16===t.type||Wn(t)},Xn=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},Jn={type:17,number:0,flags:$t},Zn={type:16,number:50,flags:$t},$n={type:16,number:100,flags:$t},tr=function(t,e,n){var r=t[0],i=t[1];return[er(r,e),er("undefined"!==typeof i?i:r,n)]},er=function(t,e){if(16===t.type)return t.number/100*e;if(Pn(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},nr="deg",rr="grad",ir="rad",Ar="turn",or={name:"angle",parse:function(t,e){if(15===e.type)switch(e.unit){case nr:return Math.PI*e.number/180;case rr:return Math.PI/200*e.number;case ir:return e.number;case Ar:return 2*Math.PI*e.number}throw new Error("Unsupported angle type")}},sr=function(t){return 15===t.type&&(t.unit===nr||t.unit===rr||t.unit===ir||t.unit===Ar)},ar=function(t){var e=t.filter(Rn).map((function(t){return t.value})).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Jn,Jn];case"to top":case"bottom":return lr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Jn,$n];case"to right":case"left":return lr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[$n,$n];case"to bottom":case"top":return lr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[$n,Jn];case"to left":case"right":return lr(270)}return 0},lr=function(t){return Math.PI*t/180},cr={name:"color",parse:function(t,e){if(18===e.type){var n=wr[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3);return dr(parseInt(r+r,16),parseInt(i+i,16),parseInt(A+A,16),1)}if(4===e.value.length){r=e.value.substring(0,1),i=e.value.substring(1,2),A=e.value.substring(2,3);var o=e.value.substring(3,4);return dr(parseInt(r+r,16),parseInt(i+i,16),parseInt(A+A,16),parseInt(o+o,16)/255)}if(6===e.value.length){r=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6);return dr(parseInt(r,16),parseInt(i,16),parseInt(A,16),1)}if(8===e.value.length){r=e.value.substring(0,2),i=e.value.substring(2,4),A=e.value.substring(4,6),o=e.value.substring(6,8);return dr(parseInt(r,16),parseInt(i,16),parseInt(A,16),parseInt(o,16)/255)}}if(20===e.type){var s=vr[e.value.toUpperCase()];if("undefined"!==typeof s)return s}return vr.TRANSPARENT}},ur=function(t){return 0===(255&t)},hr=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},dr=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r)<<0)>>>0},fr=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},pr=function(t,e){var n=e.filter(Kn);if(3===n.length){var r=n.map(fr),i=r[0],A=r[1],o=r[2];return dr(i,A,o,1)}if(4===n.length){var s=n.map(fr),a=(i=s[0],A=s[1],o=s[2],s[3]);return dr(i,A,o,a)}return 0};function gr(t,e,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(e-t)*n*6+t:n<.5?e:n<2/3?6*(e-t)*(2/3-n)+t:t}var mr=function(t,e){var n=e.filter(Kn),r=n[0],i=n[1],A=n[2],o=n[3],s=(17===r.type?lr(r.number):or.parse(t,r))/(2*Math.PI),a=Yn(i)?i.number/100:0,l=Yn(A)?A.number/100:0,c="undefined"!==typeof o&&Yn(o)?er(o,1):1;if(0===a)return dr(255*l,255*l,255*l,1);var u=l<=.5?l*(a+1):l+a-l*a,h=2*l-u,d=gr(h,u,s+1/3),f=gr(h,u,s),p=gr(h,u,s-1/3);return dr(255*d,255*f,255*p,c)},wr={hsl:mr,hsla:mr,rgb:pr,rgba:pr},yr=function(t,e){return cr.parse(t,Dn.create(e).parseComponentValue())},vr={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},br={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Rn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Br={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cr=function(t,e){var n=cr.parse(t,e[0]),r=e[1];return r&&Yn(r)?{color:n,stop:r}:{color:n,stop:null}},xr=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=Jn),null===r.stop&&(r.stop=$n);for(var i=[],A=0,o=0;o<t.length;o++){var s=t[o].stop;if(null!==s){var a=er(s,e);a>A?i.push(a):i.push(A),A=a}else i.push(null)}var l=null;for(o=0;o<i.length;o++){var c=i[o];if(null===c)null===l&&(l=o);else if(null!==l){for(var u=o-l,h=i[l-1],d=(c-h)/(u+1),f=1;f<=u;f++)i[l+f-1]=d*f;l=null}}return t.map((function(t,n){var r=t.color;return{color:r,stop:Math.max(Math.min(1,i[n]/e),0)}}))},_r=function(t,e,n){var r=e/2,i=n/2,A=er(t[0],e)-r,o=i-er(t[1],n);return(Math.atan2(o,A)+2*Math.PI)%(2*Math.PI)},Er=function(t,e,n){var r="number"===typeof t?t:_r(t,e,n),i=Math.abs(e*Math.sin(r))+Math.abs(n*Math.cos(r)),A=e/2,o=n/2,s=i/2,a=Math.sin(r-Math.PI/2)*s,l=Math.cos(r-Math.PI/2)*s;return[i,A-l,A+l,o-a,o+a]},Fr=function(t,e){return Math.sqrt(t*t+e*e)},Lr=function(t,e,n,r,i){var A=[[0,0],[0,e],[t,0],[t,e]];return A.reduce((function(t,e){var A=e[0],o=e[1],s=Fr(n-A,r-o);return(i?s<t.optimumDistance:s>t.optimumDistance)?{optimumCorner:e,optimumDistance:s}:t}),{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Nr=function(t,e,n,r,i){var A=0,o=0;switch(t.size){case 0:0===t.shape?A=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(A=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)A=o=Math.min(Fr(e,n),Fr(e,n-i),Fr(e-r,n),Fr(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),a=Lr(r,i,e,n,!0),l=a[0],c=a[1];A=Fr(l-e,(c-n)/s),o=s*A}break;case 1:0===t.shape?A=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(A=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)A=o=Math.max(Fr(e,n),Fr(e,n-i),Fr(e-r,n),Fr(e-r,n-i));else if(1===t.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r));var u=Lr(r,i,e,n,!1);l=u[0],c=u[1];A=Fr(l-e,(c-n)/s),o=s*A}break}return Array.isArray(t.size)&&(A=er(t.size[0],r),o=2===t.size.length?er(t.size[1],i):A),[A,o]},Sr=function(t,e){var n=lr(180),r=[];return Gn(e).forEach((function(e,i){if(0===i){var A=e[0];if(20===A.type&&"to"===A.value)return void(n=ar(e));if(sr(A))return void(n=or.parse(t,A))}var o=Cr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},Ur=function(t,e){var n=lr(180),r=[];return Gn(e).forEach((function(e,i){if(0===i){var A=e[0];if(20===A.type&&-1!==["top","left","right","bottom"].indexOf(A.value))return void(n=ar(e));if(sr(A))return void(n=(or.parse(t,A)+lr(270))%lr(360))}var o=Cr(t,e);r.push(o)})),{angle:n,stops:r,type:1}},kr=function(t,e){var n=lr(180),r=[],i=1,A=0,o=3,s=[];return Gn(e).forEach((function(e,n){var A=e[0];if(0===n){if(Rn(A)&&"linear"===A.value)return void(i=1);if(Rn(A)&&"radial"===A.value)return void(i=2)}if(18===A.type)if("from"===A.name){var o=cr.parse(t,A.values[0]);r.push({stop:Jn,color:o})}else if("to"===A.name){o=cr.parse(t,A.values[0]);r.push({stop:$n,color:o})}else if("color-stop"===A.name){var s=A.values.filter(Kn);if(2===s.length){o=cr.parse(t,s[1]);var a=s[0];Hn(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:o})}}})),1===i?{angle:(n+lr(180))%lr(360),stops:r,type:i}:{size:o,shape:A,stops:r,position:s,type:i}},Qr="closest-side",Ir="farthest-side",Tr="closest-corner",Or="farthest-corner",Mr="circle",Dr="ellipse",Pr="cover",Hr="contain",Rr=function(t,e){var n=0,r=3,i=[],A=[];return Gn(e).forEach((function(e,o){var s=!0;if(0===o){var a=!1;s=e.reduce((function(t,e){if(a)if(Rn(e))switch(e.value){case"center":return A.push(Zn),t;case"top":case"left":return A.push(Jn),t;case"right":case"bottom":return A.push($n),t}else(Yn(e)||Wn(e))&&A.push(e);else if(Rn(e))switch(e.value){case Mr:return n=0,!1;case Dr:return n=1,!1;case"at":return a=!0,!1;case Qr:return r=0,!1;case Pr:case Ir:return r=1,!1;case Hr:case Tr:return r=2,!1;case Or:return r=3,!1}else if(Wn(e)||Yn(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)}if(s){var l=Cr(t,e);i.push(l)}})),{size:r,shape:n,stops:i,position:A,type:2}},jr=function(t,e){var n=0,r=3,i=[],A=[];return Gn(e).forEach((function(e,o){var s=!0;if(0===o?s=e.reduce((function(t,e){if(Rn(e))switch(e.value){case"center":return A.push(Zn),!1;case"top":case"left":return A.push(Jn),!1;case"right":case"bottom":return A.push($n),!1}else if(Yn(e)||Wn(e))return A.push(e),!1;return t}),s):1===o&&(s=e.reduce((function(t,e){if(Rn(e))switch(e.value){case Mr:return n=0,!1;case Dr:return n=1,!1;case Hr:case Qr:return r=0,!1;case Ir:return r=1,!1;case Tr:return r=2,!1;case Pr:case Or:return r=3,!1}else if(Wn(e)||Yn(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t}),s)),s){var a=Cr(t,e);i.push(a)}})),{size:r,shape:n,stops:i,position:A,type:2}},zr=function(t){return 1===t.type},qr=function(t){return 2===t.type},Kr={name:"image",parse:function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=Wr[e.name];if("undefined"===typeof r)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw new Error("Unsupported image type "+e.type)}};function Gr(t){return!(20===t.type&&"none"===t.value)&&(18!==t.type||!!Wr[t.name])}var Vr,Wr={"linear-gradient":Sr,"-moz-linear-gradient":Ur,"-ms-linear-gradient":Ur,"-o-linear-gradient":Ur,"-webkit-linear-gradient":Ur,"radial-gradient":Rr,"-moz-radial-gradient":jr,"-ms-radial-gradient":jr,"-o-radial-gradient":jr,"-webkit-radial-gradient":jr,"-webkit-gradient":kr},Yr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter((function(t){return Kn(t)&&Gr(t)})).map((function(e){return Kr.parse(t,e)}))}},Xr={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map((function(t){if(Rn(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Jr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return Gn(e).map((function(t){return t.filter(Yn)})).map(Xn)}},Zr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return Gn(e).map((function(t){return t.filter(Rn).map((function(t){return t.value})).join(" ")})).map($r)}},$r=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}};(function(t){t["AUTO"]="auto",t["CONTAIN"]="contain",t["COVER"]="cover"})(Vr||(Vr={}));var ti,ei={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return Gn(e).map((function(t){return t.filter(ni)}))}},ni=function(t){return Rn(t)||Yn(t)},ri=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ii=ri("top"),Ai=ri("right"),oi=ri("bottom"),si=ri("left"),ai=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return Xn(e.filter(Yn))}}},li=ai("top-left"),ci=ai("top-right"),ui=ai("bottom-right"),hi=ai("bottom-left"),di=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},fi=di("top"),pi=di("right"),gi=di("bottom"),mi=di("left"),wi=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Pn(e)?e.number:0}}},yi=wi("top"),vi=wi("right"),bi=wi("bottom"),Bi=wi("left"),Ci={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},_i={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(Rn).reduce((function(t,e){return t|Ei(e.value)}),0)}},Ei=function(t){switch(t){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},Fi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Li={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(function(t){t["NORMAL"]="normal",t["STRICT"]="strict"})(ti||(ti={}));var Ni,Si={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"strict":return ti.STRICT;case"normal":default:return ti.NORMAL}}},Ui={name:"line-height",initialValue:"normal",prefix:!1,type:4},ki=function(t,e){return Rn(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:Yn(t)?er(t,e):e},Qi={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:Kr.parse(t,e)}},Ii={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},Ti={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Oi=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},Mi=Oi("top"),Di=Oi("right"),Pi=Oi("bottom"),Hi=Oi("left"),Ri={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(Rn).map((function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}}))}},ji={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},zi=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qi=zi("top"),Ki=zi("right"),Gi=zi("bottom"),Vi=zi("left"),Wi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Yi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Xi={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&zn(e[0],"none")?[]:Gn(e).map((function(e){for(var n={color:vr.TRANSPARENT,offsetX:Jn,offsetY:Jn,blur:Jn},r=0,i=0;i<e.length;i++){var A=e[i];Wn(A)?(0===r?n.offsetX=A:1===r?n.offsetY=A:n.blur=A,r++):n.color=cr.parse(t,A)}return n}))}},Ji={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Zi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,e){if(20===e.type&&"none"===e.value)return null;if(18===e.type){var n=eA[e.name];if("undefined"===typeof n)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return n(e.values)}return null}},$i=function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number}));return 6===e.length?e:null},tA=function(t){var e=t.filter((function(t){return 17===t.type})).map((function(t){return t.number})),n=e[0],r=e[1];e[2],e[3];var i=e[4],A=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],s=e[13];return e[14],e[15],16===e.length?[n,r,i,A,o,s]:null},eA={matrix:$i,matrix3d:tA},nA={type:16,number:50,flags:$t},rA=[nA,nA],iA={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,e){var n=e.filter(Yn);return 2!==n.length?rA:[n[0],n[1]]}},AA={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}};(function(t){t["NORMAL"]="normal",t["BREAK_ALL"]="break-all",t["KEEP_ALL"]="keep-all"})(Ni||(Ni={}));for(var oA={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"break-all":return Ni.BREAK_ALL;case"keep-all":return Ni.KEEP_ALL;case"normal":default:return Ni.NORMAL}}},sA={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,e){if(20===e.type)return{auto:!0,order:0};if(Hn(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},aA={name:"time",parse:function(t,e){if(15===e.type)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},lA={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,e){return Hn(e)?e.number:1}},cA={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},uA={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,e){return e.filter(Rn).map((function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(t){return 0!==t}))}},hA={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,e){var n=[],r=[];return e.forEach((function(t){switch(t.type){case 20:case 0:n.push(t.value);break;case 17:n.push(t.number.toString());break;case 4:r.push(n.join(" ")),n.length=0;break}})),n.length&&r.push(n.join(" ")),r.map((function(t){return-1===t.indexOf(" ")?t:"'"+t+"'"}))}},dA={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fA={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,e){if(Hn(e))return e.number;if(Rn(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},pA={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return e.filter(Rn).map((function(t){return t.value}))}},gA={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},mA=function(t,e){return 0!==(t&e)},wA={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e}},yA={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=e.filter(qn),A=0;A<i.length;A++){var o=i[A],s=i[A+1];if(20===o.type){var a=s&&Hn(s)?s.number:1;r.push({counter:o.value,increment:a})}}return r}},vA={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return[];for(var n=[],r=e.filter(qn),i=0;i<r.length;i++){var A=r[i],o=r[i+1];if(Rn(A)&&"none"!==A.value){var s=o&&Hn(o)?o.number:0;n.push({counter:A.value,reset:s})}}return n}},bA={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,e){return e.filter(Pn).map((function(e){return aA.parse(t,e)}))}},BA={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,e){if(0===e.length)return null;var n=e[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=e.filter(jn);if(i.length%2!==0)return null;for(var A=0;A<i.length;A+=2){var o=i[A].value,s=i[A+1].value;r.push({open:o,close:s})}return r}},CA=function(t,e,n){if(!t)return"";var r=t[Math.min(e,t.length-1)];return r?n?r.open:r.close:""},xA={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&zn(e[0],"none")?[]:Gn(e).map((function(e){for(var n={color:255,offsetX:Jn,offsetY:Jn,blur:Jn,spread:Jn,inset:!1},r=0,i=0;i<e.length;i++){var A=e[i];zn(A,"inset")?n.inset=!0:Wn(A)?(0===r?n.offsetX=A:1===r?n.offsetY=A:2===r?n.blur=A:n.spread=A,r++):n.color=cr.parse(t,A)}return n}))}},_A={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,e){var n=[0,1,2],r=[];return e.filter(Rn).forEach((function(t){switch(t.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}})),n.forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r}},EA={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},FA={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return Pn(e)?e.number:0}},LA=function(){function t(t,e){var n,r;this.animationDuration=UA(t,bA,e.animationDuration),this.backgroundClip=UA(t,br,e.backgroundClip),this.backgroundColor=UA(t,Br,e.backgroundColor),this.backgroundImage=UA(t,Yr,e.backgroundImage),this.backgroundOrigin=UA(t,Xr,e.backgroundOrigin),this.backgroundPosition=UA(t,Jr,e.backgroundPosition),this.backgroundRepeat=UA(t,Zr,e.backgroundRepeat),this.backgroundSize=UA(t,ei,e.backgroundSize),this.borderTopColor=UA(t,ii,e.borderTopColor),this.borderRightColor=UA(t,Ai,e.borderRightColor),this.borderBottomColor=UA(t,oi,e.borderBottomColor),this.borderLeftColor=UA(t,si,e.borderLeftColor),this.borderTopLeftRadius=UA(t,li,e.borderTopLeftRadius),this.borderTopRightRadius=UA(t,ci,e.borderTopRightRadius),this.borderBottomRightRadius=UA(t,ui,e.borderBottomRightRadius),this.borderBottomLeftRadius=UA(t,hi,e.borderBottomLeftRadius),this.borderTopStyle=UA(t,fi,e.borderTopStyle),this.borderRightStyle=UA(t,pi,e.borderRightStyle),this.borderBottomStyle=UA(t,gi,e.borderBottomStyle),this.borderLeftStyle=UA(t,mi,e.borderLeftStyle),this.borderTopWidth=UA(t,yi,e.borderTopWidth),this.borderRightWidth=UA(t,vi,e.borderRightWidth),this.borderBottomWidth=UA(t,bi,e.borderBottomWidth),this.borderLeftWidth=UA(t,Bi,e.borderLeftWidth),this.boxShadow=UA(t,xA,e.boxShadow),this.color=UA(t,Ci,e.color),this.direction=UA(t,xi,e.direction),this.display=UA(t,_i,e.display),this.float=UA(t,Fi,e.cssFloat),this.fontFamily=UA(t,hA,e.fontFamily),this.fontSize=UA(t,dA,e.fontSize),this.fontStyle=UA(t,gA,e.fontStyle),this.fontVariant=UA(t,pA,e.fontVariant),this.fontWeight=UA(t,fA,e.fontWeight),this.letterSpacing=UA(t,Li,e.letterSpacing),this.lineBreak=UA(t,Si,e.lineBreak),this.lineHeight=UA(t,Ui,e.lineHeight),this.listStyleImage=UA(t,Qi,e.listStyleImage),this.listStylePosition=UA(t,Ii,e.listStylePosition),this.listStyleType=UA(t,Ti,e.listStyleType),this.marginTop=UA(t,Mi,e.marginTop),this.marginRight=UA(t,Di,e.marginRight),this.marginBottom=UA(t,Pi,e.marginBottom),this.marginLeft=UA(t,Hi,e.marginLeft),this.opacity=UA(t,lA,e.opacity);var i=UA(t,Ri,e.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=UA(t,ji,e.overflowWrap),this.paddingTop=UA(t,qi,e.paddingTop),this.paddingRight=UA(t,Ki,e.paddingRight),this.paddingBottom=UA(t,Gi,e.paddingBottom),this.paddingLeft=UA(t,Vi,e.paddingLeft),this.paintOrder=UA(t,_A,e.paintOrder),this.position=UA(t,Yi,e.position),this.textAlign=UA(t,Wi,e.textAlign),this.textDecorationColor=UA(t,cA,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=UA(t,uA,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=UA(t,Xi,e.textShadow),this.textTransform=UA(t,Ji,e.textTransform),this.transform=UA(t,Zi,e.transform),this.transformOrigin=UA(t,iA,e.transformOrigin),this.visibility=UA(t,AA,e.visibility),this.webkitTextStrokeColor=UA(t,EA,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=UA(t,FA,e.webkitTextStrokeWidth),this.wordBreak=UA(t,oA,e.wordBreak),this.zIndex=UA(t,sA,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return ur(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return mA(this.display,4)||mA(this.display,33554432)||mA(this.display,268435456)||mA(this.display,536870912)||mA(this.display,67108864)||mA(this.display,134217728)},t}(),NA=function(){function t(t,e){this.content=UA(t,wA,e.content),this.quotes=UA(t,BA,e.quotes)}return t}(),SA=function(){function t(t,e){this.counterIncrement=UA(t,yA,e.counterIncrement),this.counterReset=UA(t,vA,e.counterReset)}return t}(),UA=function(t,e,n){var r=new Mn,i=null!==n&&"undefined"!==typeof n?n.toString():e.initialValue;r.write(i);var A=new Dn(r.read());switch(e.type){case 2:var o=A.parseComponentValue();return e.parse(t,Rn(o)?o.value:e.initialValue);case 0:return e.parse(t,A.parseComponentValue());case 1:return e.parse(t,A.parseComponentValues());case 4:return A.parseComponentValue();case 3:switch(e.format){case"angle":return or.parse(t,A.parseComponentValue());case"color":return cr.parse(t,A.parseComponentValue());case"image":return Kr.parse(t,A.parseComponentValue());case"length":var s=A.parseComponentValue();return Wn(s)?s:Jn;case"length-percentage":var a=A.parseComponentValue();return Yn(a)?a:Jn;case"time":return aA.parse(t,A.parseComponentValue())}break}},kA="data-html2canvas-debug",QA=function(t){var e=t.getAttribute(kA);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},IA=function(t,e){var n=QA(t);return 1===n||e===n},TA=function(){function t(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,IA(e,3),this.styles=new LA(t,window.getComputedStyle(e,null)),Ss(e)&&(this.styles.animationDuration.some((function(t){return t>0}))&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=s(this.context,e),IA(e,4)&&(this.flags|=16)}return t}(),OA="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",MA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",DA="undefined"===typeof Uint8Array?[]:new Uint8Array(256),PA=0;PA<MA.length;PA++)DA[MA.charCodeAt(PA)]=PA;for(var HA=function(t){var e,n,r,i,A,o=.75*t.length,s=t.length,a=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var l="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e<s;e+=4)n=DA[t.charCodeAt(e)],r=DA[t.charCodeAt(e+1)],i=DA[t.charCodeAt(e+2)],A=DA[t.charCodeAt(e+3)],c[a++]=n<<2|r>>4,c[a++]=(15&r)<<4|i>>2,c[a++]=(3&i)<<6|63&A;return l},RA=function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n.push(t[r+1]<<8|t[r]);return n},jA=function(t){for(var e=t.length,n=[],r=0;r<e;r+=4)n.push(t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]);return n},zA=5,qA=11,KA=2,GA=qA-zA,VA=65536>>zA,WA=1<<zA,YA=WA-1,XA=1024>>zA,JA=VA+XA,ZA=JA,$A=32,to=ZA+$A,eo=65536>>qA,no=1<<GA,ro=no-1,io=function(t,e,n){return t.slice?t.slice(e,n):new Uint16Array(Array.prototype.slice.call(t,e,n))},Ao=function(t,e,n){return t.slice?t.slice(e,n):new Uint32Array(Array.prototype.slice.call(t,e,n))},oo=function(t,e){var n=HA(t),r=Array.isArray(n)?jA(n):new Uint32Array(n),i=Array.isArray(n)?RA(n):new Uint16Array(n),A=24,o=io(i,A/2,r[4]/2),s=2===r[5]?io(i,(A+r[4])/2):Ao(r,Math.ceil((A+r[4])/4));return new so(r[0],r[1],r[2],r[3],o,s)},so=function(){function t(t,e,n,r,i,A){this.initialValue=t,this.errorValue=e,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=A}return t.prototype.get=function(t){var e;if(t>=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>zA],e=(e<<KA)+(t&YA),this.data[e];if(t<=65535)return e=this.index[VA+(t-55296>>zA)],e=(e<<KA)+(t&YA),this.data[e];if(t<this.highStart)return e=to-eo+(t>>qA),e=this.index[e],e+=t>>zA&ro,e=this.index[e],e=(e<<KA)+(t&YA),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),ao="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo="undefined"===typeof Uint8Array?[]:new Uint8Array(256),co=0;co<ao.length;co++)lo[ao.charCodeAt(co)]=co;var uo,ho=1,fo=2,po=3,go=4,mo=5,wo=7,yo=8,vo=9,bo=10,Bo=11,Co=12,xo=13,_o=14,Eo=15,Fo=function(t){var e=[],n=0,r=t.length;while(n<r){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var A=t.charCodeAt(n++);56320===(64512&A)?e.push(((1023&i)<<10)+(1023&A)+65536):(e.push(i),n--)}else e.push(i)}return e},Lo=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";var r=[],i=-1,A="";while(++i<n){var o=t[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(A+=String.fromCharCode.apply(String,r),r.length=0)}return A},No=oo(OA),So="×",Uo="÷",ko=function(t){return No.get(t)},Qo=function(t,e,n){var r=n-2,i=e[r],A=e[n-1],o=e[n];if(A===fo&&o===po)return So;if(A===fo||A===po||A===go)return Uo;if(o===fo||o===po||o===go)return Uo;if(A===yo&&-1!==[yo,vo,Bo,Co].indexOf(o))return So;if((A===Bo||A===vo)&&(o===vo||o===bo))return So;if((A===Co||A===bo)&&o===bo)return So;if(o===xo||o===mo)return So;if(o===wo)return So;if(A===ho)return So;if(A===xo&&o===_o){while(i===mo)i=e[--r];if(i===_o)return So}if(A===Eo&&o===Eo){var s=0;while(i===Eo)s++,i=e[--r];if(s%2===0)return So}return Uo},Io=function(t){var e=Fo(t),n=e.length,r=0,i=0,A=e.map(ko);return{next:function(){if(r>=n)return{done:!0,value:null};var t=So;while(r<n&&(t=Qo(e,A,++r))===So);if(t!==So||r===n){var o=Lo.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},To=function(t){var e,n=Io(t),r=[];while(!(e=n.next()).done)e.value&&r.push(e.value.slice());return r},Oo=function(t){var e=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var r=t.createElement("boundtest");r.style.height=e+"px",r.style.display="block",t.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),A=Math.round(i.height);if(t.body.removeChild(r),A===e)return!0}}return!1},Mo=function(t){var e=t.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",t.body.appendChild(e);var n=t.createRange();e.innerHTML="function"===typeof"".repeat?"&#128104;".repeat(10):"";var r=e.firstChild,i=l(r.data).map((function(t){return c(t)})),A=0,o={},s=i.every((function(t,e){n.setStart(r,A),n.setEnd(r,A+t.length);var i=n.getBoundingClientRect();A+=t.length;var s=i.x>o.x||i.y>o.y;return o=i,0===e||s}));return t.body.removeChild(e),s},Do=function(){return"undefined"!==typeof(new Image).crossOrigin},Po=function(){return"string"===typeof(new XMLHttpRequest).responseType},Ho=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),n.toDataURL()}catch(Ke){return!1}return!0},Ro=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},jo=function(t){var e=t.createElement("canvas"),n=100;e.width=n,e.height=n;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,A=e.toDataURL();i.src=A;var o=zo(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),qo(o).then((function(e){r.drawImage(e,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var o=t.createElement("div");return o.style.backgroundImage="url("+A+")",o.style.height=n+"px",Ro(i)?qo(zo(n,n,0,0,o)):Promise.reject(!1)})).then((function(t){return r.drawImage(t,0,0),Ro(r.getImageData(0,0,n,n).data)})).catch((function(){return!1}))},zo=function(t,e,n,r,i){var A="http://www.w3.org/2000/svg",o=document.createElementNS(A,"svg"),s=document.createElementNS(A,"foreignObject");return o.setAttributeNS(null,"width",t.toString()),o.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(s),s.appendChild(i),o},qo=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Ko={get SUPPORT_RANGE_BOUNDS(){var t=Oo(document);return Object.defineProperty(Ko,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=Ko.SUPPORT_RANGE_BOUNDS&&Mo(document);return Object.defineProperty(Ko,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=Ho(document);return Object.defineProperty(Ko,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t="function"===typeof Array.from&&"function"===typeof window.fetch?jo(document):Promise.resolve(!1);return Object.defineProperty(Ko,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=Do();return Object.defineProperty(Ko,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=Po();return Object.defineProperty(Ko,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ko,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!("undefined"===typeof Intl||!Intl.Segmenter);return Object.defineProperty(Ko,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},Go=function(){function t(t,e){this.text=t,this.bounds=e}return t}(),Vo=function(t,e,n,r){var i=Zo(e,n),A=[],s=0;return i.forEach((function(e){if(n.textDecorationLine.length||e.trim().length>0)if(Ko.SUPPORT_RANGE_BOUNDS){var i=Yo(r,s,e.length).getClientRects();if(i.length>1){var a=Xo(e),l=0;a.forEach((function(e){A.push(new Go(e,o.fromDOMRectList(t,Yo(r,l+s,e.length).getClientRects()))),l+=e.length}))}else A.push(new Go(e,o.fromDOMRectList(t,i)))}else{var c=r.splitText(e.length);A.push(new Go(e,Wo(t,r))),r=c}else Ko.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));s+=e.length})),A},Wo=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var A=s(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),A}}return o.EMPTY},Yo=function(t,e,n){var r=t.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},Xo=function(t){if(Ko.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(t)).map((function(t){return t.segment}))}return To(t)},Jo=function(t,e){if(Ko.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map((function(t){return t.segment}))}return ts(t,e)},Zo=function(t,e){return 0!==e.letterSpacing?Xo(t):Jo(t,e)},$o=[32,160,4961,65792,65793,4153,4241],ts=function(t,e){var n,r=Xt(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[],A=function(){if(n.value){var t=n.value.slice(),e=l(t),r="";e.forEach((function(t){-1===$o.indexOf(t)?r+=c(t):(r.length&&i.push(r),i.push(c(t)),r="")})),r.length&&i.push(r)}};while(!(n=r.next()).done)A();return i},es=function(){function t(t,e,n){this.text=ns(e.data,n.textTransform),this.textBounds=Vo(t,this.text,n,e)}return t}(),ns=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(rs,is);case 2:return t.toUpperCase();default:return t}},rs=/(^|\s|:|-|\(|\))([a-z])/g,is=function(t,e,n){return t.length>0?e+n.toUpperCase():t},As=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return e(n,t),n}(TA),os=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return e(n,t),n}(TA),ss=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,A=s(e,n);return n.setAttribute("width",A.width+"px"),n.setAttribute("height",A.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return e(n,t),n}(TA),as=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(TA),ls=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"===typeof n.reversed&&!0===n.reversed,r}return e(n,t),n}(TA),cs=[{type:15,flags:0,unit:"px",number:3}],us=[{type:16,flags:0,number:50}],hs=function(t){return t.width>t.height?new o(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new o(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},ds=function(t){var e=t.type===gs?new Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},fs="checkbox",ps="radio",gs="password",ms=707406591,ws=function(t){function n(e,n){var r=t.call(this,e,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=ds(n),r.type!==fs&&r.type!==ps||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=hs(r.bounds)),r.type){case fs:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=cs;break;case ps:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=us;break}return r}return e(n,t),n}(TA),ys=function(t){function n(e,n){var r=t.call(this,e,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return e(n,t),n}(TA),vs=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return e(n,t),n}(TA),bs=function(t){function n(e,n){var r=t.call(this,e,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=_s(e,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?yr(e,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):vr.TRANSPARENT,A=n.contentWindow.document.body?yr(e,getComputedStyle(n.contentWindow.document.body).backgroundColor):vr.TRANSPARENT;r.backgroundColor=ur(i)?ur(A)?r.styles.backgroundColor:A:i}}catch(Ke){}return r}return e(n,t),n}(TA),Bs=["OL","UL","MENU"],Cs=function(t,e,n,r){for(var i=e.firstChild,A=void 0;i;i=A)if(A=i.nextSibling,Ls(i)&&i.data.trim().length>0)n.textNodes.push(new es(t,i,n.styles));else if(Ns(i))if(Gs(i)&&i.assignedNodes)i.assignedNodes().forEach((function(e){return Cs(t,e,n,r)}));else{var o=xs(t,i);o.styles.isVisible()&&(Es(i,o,r)?o.flags|=4:Fs(o.styles)&&(o.flags|=2),-1!==Bs.indexOf(i.tagName)&&(o.flags|=8),n.elements.push(o),i.slot,i.shadowRoot?Cs(t,i.shadowRoot,o,r):qs(i)||Os(i)||Ks(i)||Cs(t,i,o,r))}},xs=function(t,e){return Hs(e)?new As(t,e):Ds(e)?new os(t,e):Os(e)?new ss(t,e):ks(e)?new as(t,e):Qs(e)?new ls(t,e):Is(e)?new ws(t,e):Ks(e)?new ys(t,e):qs(e)?new vs(t,e):Rs(e)?new bs(t,e):new TA(t,e)},_s=function(t,e){var n=xs(t,e);return n.flags|=4,Cs(t,e,n,n),n},Es=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ms(t)&&n.styles.isTransparent()},Fs=function(t){return t.isPositioned()||t.isFloating()},Ls=function(t){return t.nodeType===Node.TEXT_NODE},Ns=function(t){return t.nodeType===Node.ELEMENT_NODE},Ss=function(t){return Ns(t)&&"undefined"!==typeof t.style&&!Us(t)},Us=function(t){return"object"===typeof t.className},ks=function(t){return"LI"===t.tagName},Qs=function(t){return"OL"===t.tagName},Is=function(t){return"INPUT"===t.tagName},Ts=function(t){return"HTML"===t.tagName},Os=function(t){return"svg"===t.tagName},Ms=function(t){return"BODY"===t.tagName},Ds=function(t){return"CANVAS"===t.tagName},Ps=function(t){return"VIDEO"===t.tagName},Hs=function(t){return"IMG"===t.tagName},Rs=function(t){return"IFRAME"===t.tagName},js=function(t){return"STYLE"===t.tagName},zs=function(t){return"SCRIPT"===t.tagName},qs=function(t){return"TEXTAREA"===t.tagName},Ks=function(t){return"SELECT"===t.tagName},Gs=function(t){return"SLOT"===t.tagName},Vs=function(t){return t.tagName.indexOf("-")>0},Ws=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},t.prototype.pop=function(t){var e=this;t.forEach((function(t){return e.counters[t].pop()}))},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach((function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)}));var A=[];return i&&r.forEach((function(t){var n=e.counters[t.counter];A.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)})),A},t}(),Ys={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"]},Xs={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Js={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Zs={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},$s=function(t,e,n,r,i,A){return t<e||t>n?ha(t,i,A.length>0):r.integers.reduce((function(e,n,i){while(t>=n)t-=n,e+=r.values[i];return e}),"")+A},ta=function(t,e,n,r){var i="";do{n||t--,i=r(t)+i,t/=e}while(t*e>=e);return i},ea=function(t,e,n,r,i){var A=n-e+1;return(t<0?"-":"")+(ta(Math.abs(t),A,r,(function(t){return c(Math.floor(t%A)+e)}))+i)},na=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return ta(Math.abs(t),r,!1,(function(t){return e[Math.floor(t%r)]}))+n},ra=1,ia=2,Aa=4,oa=8,sa=function(t,e,n,r,i,A){if(t<-9999||t>9999)return ha(t,4,i.length>0);var o=Math.abs(t),s=i;if(0===o)return e[0]+s;for(var a=0;o>0&&a<=4;a++){var l=o%10;0===l&&mA(A,ra)&&""!==s?s=e[l]+s:l>1||1===l&&0===a||1===l&&1===a&&mA(A,ia)||1===l&&1===a&&mA(A,Aa)&&t>100||1===l&&a>1&&mA(A,oa)?s=e[l]+(a>0?n[a-1]:"")+s:1===l&&a>0&&(s=n[a-1]+s),o=Math.floor(o/10)}return(t<0?r:"")+s},aa="十百千萬",la="拾佰仟萬",ca="マイナス",ua="마이너스",ha=function(t,e,n){var r=n?". ":"",i=n?"、":"",A=n?", ":"",o=n?" ":"";switch(e){case 0:return"•"+o;case 1:return"◦"+o;case 2:return"◾"+o;case 5:var s=ea(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return na(t,"〇一二三四五六七八九",i);case 6:return $s(t,1,3999,Ys,3,r).toLowerCase();case 7:return $s(t,1,3999,Ys,3,r);case 8:return ea(t,945,969,!1,r);case 9:return ea(t,97,122,!1,r);case 10:return ea(t,65,90,!1,r);case 11:return ea(t,1632,1641,!0,r);case 12:case 49:return $s(t,1,9999,Xs,3,r);case 35:return $s(t,1,9999,Xs,3,r).toLowerCase();case 13:return ea(t,2534,2543,!0,r);case 14:case 30:return ea(t,6112,6121,!0,r);case 15:return na(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return na(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return sa(t,"零一二三四五六七八九",aa,"負",i,ia|Aa|oa);case 47:return sa(t,"零壹貳參肆伍陸柒捌玖",la,"負",i,ra|ia|Aa|oa);case 42:return sa(t,"零一二三四五六七八九",aa,"负",i,ia|Aa|oa);case 41:return sa(t,"零壹贰叁肆伍陆柒捌玖",la,"负",i,ra|ia|Aa|oa);case 26:return sa(t,"〇一二三四五六七八九","十百千万",ca,i,0);case 25:return sa(t,"零壱弐参四伍六七八九","拾百千万",ca,i,ra|ia|Aa);case 31:return sa(t,"영일이삼사오육칠팔구","십백천만",ua,A,ra|ia|Aa);case 33:return sa(t,"零一二三四五六七八九","十百千萬",ua,A,0);case 32:return sa(t,"零壹貳參四五六七八九","拾百千",ua,A,ra|ia|Aa);case 18:return ea(t,2406,2415,!0,r);case 20:return $s(t,1,19999,Zs,3,r);case 21:return ea(t,2790,2799,!0,r);case 22:return ea(t,2662,2671,!0,r);case 22:return $s(t,1,10999,Js,3,r);case 23:return na(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return na(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ea(t,3302,3311,!0,r);case 28:return na(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return na(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return ea(t,3792,3801,!0,r);case 37:return ea(t,6160,6169,!0,r);case 38:return ea(t,4160,4169,!0,r);case 39:return ea(t,2918,2927,!0,r);case 40:return ea(t,1776,1785,!0,r);case 43:return ea(t,3046,3055,!0,r);case 44:return ea(t,3174,3183,!0,r);case 45:return ea(t,3664,3673,!0,r);case 46:return ea(t,3872,3881,!0,r);case 3:default:return ea(t,48,57,!0,r)}},da="data-html2canvas-ignore",fa=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ws,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,A=ga(t,e);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var o=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,a=A.contentWindow,l=a.document,c=ya(A).then((function(){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return this.scrolledElements.forEach(xa),a&&(a.scrollTo(e.left,e.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===e.top&&a.scrollX===e.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(a.scrollX-e.left,a.scrollY-e.top,0,0))),t=this.options.onclone,n=this.clonedReferenceElement,"undefined"===typeof n?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wa(l)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"===typeof t?[2,Promise.resolve().then((function(){return t(l,n)})).then((function(){return A}))]:[2,A]}}))}))}));return l.open(),l.write(Ba(document.doctype)+"<html></html>"),Ca(this.referenceElement.ownerDocument,o,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},t.prototype.createElementClone=function(t){if(IA(t,2),Ds(t))return this.createCanvasClone(t);if(Ps(t))return this.createVideoClone(t);if(js(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return Hs(e)&&(Hs(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),Vs(e)?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return ba(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce((function(t,e){return e&&"string"===typeof e.cssText?t+e.cssText:t}),""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(Ke){if(this.context.logger.error("Unable to access cssRules property",Ke),"SecurityError"!==Ke.name)throw Ke}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(Ke){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),A=r.getContext("2d");if(A)if(!this.options.allowTaint&&i)A.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(o){var s=o.getContextAttributes();!1===(null===s||void 0===s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}A.drawImage(t,0,0)}return r}catch(Ke){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(Ke){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){Ns(e)&&(zs(e)||e.hasAttribute(da)||"function"===typeof this.options.ignoreElements&&this.options.ignoreElements(e))||this.options.copyStyles&&Ns(e)&&js(e)||t.appendChild(this.cloneNode(e,n))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Ns(i)&&Gs(i)&&"function"===typeof i.assignedNodes){var A=i.assignedNodes();A.length&&A.forEach((function(t){return r.appendChildNode(e,t,n)}))}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(Ls(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&Ns(t)&&(Ss(t)||Us(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),A=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&Ss(r)&&(this.clonedReferenceElement=r),Ms(r)&&Sa(r);var s=this.counters.parse(new SA(this.context,i)),a=this.resolvePseudoContent(t,r,A,uo.BEFORE);Vs(t)&&(e=!0),Ps(t)||this.cloneChildNodes(t,r,e),a&&r.insertBefore(a,r.firstChild);var l=this.resolvePseudoContent(t,r,o,uo.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||Us(t))&&!Rs(t)||e)&&ba(i,r),0===t.scrollTop&&0===t.scrollLeft||this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(qs(t)||Ks(t))&&(qs(r)||Ks(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var A=n.content,o=e.ownerDocument;if(o&&A&&"none"!==A&&"-moz-alt-content"!==A&&"none"!==n.display){this.counters.parse(new SA(this.context,n));var s=new NA(this.context,n),a=o.createElement("html2canvaspseudoelement");ba(n,a),s.content.forEach((function(e){if(0===e.type)a.appendChild(o.createTextNode(e.value));else if(22===e.type){var n=o.createElement("img");n.src=e.value,n.style.opacity="1",a.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(Rn);r.length&&a.appendChild(o.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var A=e.values.filter(Kn),l=A[0],c=A[1];if(l&&Rn(l)){var u=i.counters.getCounterValue(l.value),h=c&&Rn(c)?Ti.parse(i.context,c.value):3;a.appendChild(o.createTextNode(ha(u,h,!1)))}}else if("counters"===e.name){var d=e.values.filter(Kn),f=(l=d[0],d[1]);c=d[2];if(l&&Rn(l)){var p=i.counters.getCounterValues(l.value),g=c&&Rn(c)?Ti.parse(i.context,c.value):3,m=f&&0===f.type?f.value:"",w=p.map((function(t){return ha(t,g,!1)})).join(m);a.appendChild(o.createTextNode(w))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(o.createTextNode(CA(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(CA(s.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(e.value))}})),a.className=Fa+" "+La;var l=r===uo.BEFORE?" "+Fa:" "+La;return Us(e)?e.className.baseValue+=l:e.className+=l,a}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();(function(t){t[t["BEFORE"]=0]="BEFORE",t[t["AFTER"]=1]="AFTER"})(uo||(uo={}));var pa,ga=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(da,"true"),t.body.appendChild(n),n},ma=function(t){return new Promise((function(e){t.complete?e():t.src?(t.onload=e,t.onerror=e):e()}))},wa=function(t){return Promise.all([].slice.call(t.images,0).map(ma))},ya=function(t){return new Promise((function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval((function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))}),50)}}))},va=["all","d","content"],ba=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===va.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},Ba=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},Ca=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},xa=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},_a=":before",Ea=":after",Fa="___html2canvas___pseudoelement_before",La="___html2canvas___pseudoelement_after",Na='{\n content: "" !important;\n display: none !important;\n}',Sa=function(t){Ua(t,"."+Fa+_a+Na+"\n ."+La+Ea+Na)},Ua=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},ka=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),Qa=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)?e:Ha(t)||Ma(t)?((this._cache[t]=this.loadImage(t)).catch((function(){})),e):e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,A,o=this;return i(this,(function(i){switch(i.label){case 0:return e=ka.isSameOrigin(t),n=!Da(t)&&!0===this._options.useCORS&&Ko.SUPPORT_CORS_IMAGES&&!e,r=!Da(t)&&!e&&!Ha(t)&&"string"===typeof this._options.proxy&&Ko.SUPPORT_CORS_XHR&&!n,e||!1!==this._options.allowTaint||Da(t)||Ha(t)||r||n?(A=t,r?[4,this.proxy(A)]:[3,2]):[2];case 1:A=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise((function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(Pa(A)||n)&&(r.crossOrigin="anonymous"),r.src=A,!0===r.complete&&setTimeout((function(){return t(r)}),500),o._options.imageTimeout>0&&setTimeout((function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")}),o._options.imageTimeout)}))];case 3:return[2,i.sent()]}}))}))},t.prototype.has=function(t){return"undefined"!==typeof this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=t.substring(0,256);return new Promise((function(i,A){var o=Ko.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===o)i(s.response);else{var t=new FileReader;t.addEventListener("load",(function(){return i(t.result)}),!1),t.addEventListener("error",(function(t){return A(t)}),!1),t.readAsDataURL(s.response)}else A("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=A;var a=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+a+"url="+encodeURIComponent(t)+"&responseType="+o),"text"!==o&&s instanceof XMLHttpRequest&&(s.responseType=o),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return A("Timed out ("+l+"ms) proxying "+r)}}s.send()}))},t}(),Ia=/^data:image\/svg\+xml/i,Ta=/^data:image\/.*;base64,/i,Oa=/^data:image\/.*/i,Ma=function(t){return Ko.SUPPORT_SVG_DRAWING||!Ra(t)},Da=function(t){return Oa.test(t)},Pa=function(t){return Ta.test(t)},Ha=function(t){return"blob"===t.substr(0,4)},Ra=function(t){return"svg"===t.substr(-3).toLowerCase()||Ia.test(t)},ja=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),za=function(t,e,n){return new ja(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},qa=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=za(this.start,this.startControl,e),i=za(this.startControl,this.endControl,e),A=za(this.endControl,this.end,e),o=za(r,i,e),s=za(i,A,e),a=za(o,s,e);return n?new t(this.start,r,o,a):new t(a,s,A,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Ka=function(t){return 1===t.type},Ga=function(){function t(t){var e=t.styles,n=t.bounds,r=tr(e.borderTopLeftRadius,n.width,n.height),i=r[0],A=r[1],o=tr(e.borderTopRightRadius,n.width,n.height),s=o[0],a=o[1],l=tr(e.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],h=tr(e.borderBottomLeftRadius,n.width,n.height),d=h[0],f=h[1],p=[];p.push((i+s)/n.width),p.push((d+c)/n.width),p.push((A+f)/n.height),p.push((a+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,A/=g,s/=g,a/=g,c/=g,u/=g,d/=g,f/=g);var m=n.width-s,w=n.height-u,y=n.width-c,v=n.height-f,b=e.borderTopWidth,B=e.borderRightWidth,C=e.borderBottomWidth,x=e.borderLeftWidth,_=er(e.paddingTop,t.bounds.width),E=er(e.paddingRight,t.bounds.width),F=er(e.paddingBottom,t.bounds.width),L=er(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||A>0?Va(n.left+x/3,n.top+b/3,i-x/3,A-b/3,pa.TOP_LEFT):new ja(n.left+x/3,n.top+b/3),this.topRightBorderDoubleOuterBox=i>0||A>0?Va(n.left+m,n.top+b/3,s-B/3,a-b/3,pa.TOP_RIGHT):new ja(n.left+n.width-B/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?Va(n.left+y,n.top+w,c-B/3,u-C/3,pa.BOTTOM_RIGHT):new ja(n.left+n.width-B/3,n.top+n.height-C/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?Va(n.left+x/3,n.top+v,d-x/3,f-C/3,pa.BOTTOM_LEFT):new ja(n.left+x/3,n.top+n.height-C/3),this.topLeftBorderDoubleInnerBox=i>0||A>0?Va(n.left+2*x/3,n.top+2*b/3,i-2*x/3,A-2*b/3,pa.TOP_LEFT):new ja(n.left+2*x/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||A>0?Va(n.left+m,n.top+2*b/3,s-2*B/3,a-2*b/3,pa.TOP_RIGHT):new ja(n.left+n.width-2*B/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?Va(n.left+y,n.top+w,c-2*B/3,u-2*C/3,pa.BOTTOM_RIGHT):new ja(n.left+n.width-2*B/3,n.top+n.height-2*C/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?Va(n.left+2*x/3,n.top+v,d-2*x/3,f-2*C/3,pa.BOTTOM_LEFT):new ja(n.left+2*x/3,n.top+n.height-2*C/3),this.topLeftBorderStroke=i>0||A>0?Va(n.left+x/2,n.top+b/2,i-x/2,A-b/2,pa.TOP_LEFT):new ja(n.left+x/2,n.top+b/2),this.topRightBorderStroke=i>0||A>0?Va(n.left+m,n.top+b/2,s-B/2,a-b/2,pa.TOP_RIGHT):new ja(n.left+n.width-B/2,n.top+b/2),this.bottomRightBorderStroke=c>0||u>0?Va(n.left+y,n.top+w,c-B/2,u-C/2,pa.BOTTOM_RIGHT):new ja(n.left+n.width-B/2,n.top+n.height-C/2),this.bottomLeftBorderStroke=d>0||f>0?Va(n.left+x/2,n.top+v,d-x/2,f-C/2,pa.BOTTOM_LEFT):new ja(n.left+x/2,n.top+n.height-C/2),this.topLeftBorderBox=i>0||A>0?Va(n.left,n.top,i,A,pa.TOP_LEFT):new ja(n.left,n.top),this.topRightBorderBox=s>0||a>0?Va(n.left+m,n.top,s,a,pa.TOP_RIGHT):new ja(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?Va(n.left+y,n.top+w,c,u,pa.BOTTOM_RIGHT):new ja(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||f>0?Va(n.left,n.top+v,d,f,pa.BOTTOM_LEFT):new ja(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||A>0?Va(n.left+x,n.top+b,Math.max(0,i-x),Math.max(0,A-b),pa.TOP_LEFT):new ja(n.left+x,n.top+b),this.topRightPaddingBox=s>0||a>0?Va(n.left+Math.min(m,n.width-B),n.top+b,m>n.width+B?0:Math.max(0,s-B),Math.max(0,a-b),pa.TOP_RIGHT):new ja(n.left+n.width-B,n.top+b),this.bottomRightPaddingBox=c>0||u>0?Va(n.left+Math.min(y,n.width-x),n.top+Math.min(w,n.height-C),Math.max(0,c-B),Math.max(0,u-C),pa.BOTTOM_RIGHT):new ja(n.left+n.width-B,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||f>0?Va(n.left+x,n.top+Math.min(v,n.height-C),Math.max(0,d-x),Math.max(0,f-C),pa.BOTTOM_LEFT):new ja(n.left+x,n.top+n.height-C),this.topLeftContentBox=i>0||A>0?Va(n.left+x+L,n.top+b+_,Math.max(0,i-(x+L)),Math.max(0,A-(b+_)),pa.TOP_LEFT):new ja(n.left+x+L,n.top+b+_),this.topRightContentBox=s>0||a>0?Va(n.left+Math.min(m,n.width+x+L),n.top+b+_,m>n.width+x+L?0:s-x+L,a-(b+_),pa.TOP_RIGHT):new ja(n.left+n.width-(B+E),n.top+b+_),this.bottomRightContentBox=c>0||u>0?Va(n.left+Math.min(y,n.width-(x+L)),n.top+Math.min(w,n.height+b+_),Math.max(0,c-(B+E)),u-(C+F),pa.BOTTOM_RIGHT):new ja(n.left+n.width-(B+E),n.top+n.height-(C+F)),this.bottomLeftContentBox=d>0||f>0?Va(n.left+x+L,n.top+v,Math.max(0,d-(x+L)),f-(C+F),pa.BOTTOM_LEFT):new ja(n.left+x+L,n.top+n.height-(C+F))}return t}();(function(t){t[t["TOP_LEFT"]=0]="TOP_LEFT",t[t["TOP_RIGHT"]=1]="TOP_RIGHT",t[t["BOTTOM_RIGHT"]=2]="BOTTOM_RIGHT",t[t["BOTTOM_LEFT"]=3]="BOTTOM_LEFT"})(pa||(pa={}));var Va=function(t,e,n,r,i){var A=(Math.sqrt(2)-1)/3*4,o=n*A,s=r*A,a=t+n,l=e+r;switch(i){case pa.TOP_LEFT:return new qa(new ja(t,l),new ja(t,l-s),new ja(a-o,e),new ja(a,e));case pa.TOP_RIGHT:return new qa(new ja(t,e),new ja(t+o,e),new ja(a,l-s),new ja(a,l));case pa.BOTTOM_RIGHT:return new qa(new ja(a,e),new ja(a,e+s),new ja(t+o,l),new ja(t,l));case pa.BOTTOM_LEFT:default:return new qa(new ja(a,l),new ja(a-o,l),new ja(t,e+s),new ja(t,e))}},Wa=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},Ya=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},Xa=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},Ja=function(){function t(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Za=function(){function t(t,e){this.path=t,this.target=e,this.type=1}return t}(),$a=function(){function t(t){this.opacity=t,this.type=2,this.target=6}return t}(),tl=function(t){return 0===t.type},el=function(t){return 1===t.type},nl=function(t){return 2===t.type},rl=function(t,e){return t.length===e.length&&t.some((function(t,n){return t===e[n]}))},il=function(t,e,n,r,i){return t.map((function(t,A){switch(A){case 0:return t.add(e,n);case 1:return t.add(e+r,n);case 2:return t.add(e+r,n+i);case 3:return t.add(e,n+i)}return t}))},Al=function(){function t(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),ol=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new Ga(this.container),this.container.styles.opacity<1&&this.effects.push(new $a(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Ja(n,r,i))}if(0!==this.container.styles.overflowX){var A=Wa(this.curves),o=Xa(this.curves);rl(A,o)?this.effects.push(new Za(A,6)):(this.effects.push(new Za(A,2)),this.effects.push(new Za(o,4)))}}return t.prototype.getEffects=function(t){var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);while(n){var i=n.effects.filter((function(t){return!el(t)}));if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var A=Wa(n.curves),o=Xa(n.curves);rl(A,o)||r.unshift(new Za(o,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter((function(e){return mA(e.target,t)}))},t}(),sl=function(t,e,n,r){t.container.elements.forEach((function(i){var A=mA(i.flags,4),o=mA(i.flags,2),s=new ol(i,t);mA(i.styles.display,2048)&&r.push(s);var a=mA(i.flags,8)?[]:r;if(A||o){var l=A||i.styles.isPositioned()?n:e,c=new Al(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some((function(t,e){return u>t.element.container.styles.zIndex.order?(h=e,!1):h>0})),l.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;l.positiveZIndex.some((function(t,e){return u>=t.element.container.styles.zIndex.order?(d=e+1,!1):d>0})),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else i.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);sl(s,c,A?c:n,a)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),sl(s,e,n,a);mA(i.flags,8)&&al(i,a)}))},al=function(t,e){for(var n=t instanceof ls?t.start:1,r=t instanceof ls&&t.reversed,i=0;i<e.length;i++){var A=e[i];A.container instanceof as&&"number"===typeof A.container.value&&0!==A.container.value&&(n=A.container.value),A.listValue=ha(n,A.container.styles.listStyleType,!0),n+=r?-1:1}},ll=function(t){var e=new ol(t,null),n=new Al(e),r=[];return sl(e,n,n,r),al(e.container,r),n},cl=function(t,e){switch(e){case 0:return pl(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return pl(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return pl(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return pl(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},ul=function(t,e){switch(e){case 0:return pl(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return pl(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return pl(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return pl(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},hl=function(t,e){switch(e){case 0:return pl(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return pl(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return pl(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return pl(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},dl=function(t,e){switch(e){case 0:return fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},fl=function(t,e){var n=[];return Ka(t)?n.push(t.subdivide(.5,!1)):n.push(t),Ka(e)?n.push(e.subdivide(.5,!0)):n.push(e),n},pl=function(t,e,n,r){var i=[];return Ka(t)?i.push(t.subdivide(.5,!1)):i.push(t),Ka(n)?i.push(n.subdivide(.5,!0)):i.push(n),Ka(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Ka(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},gl=function(t){var e=t.bounds,n=t.styles;return e.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},ml=function(t){var e=t.styles,n=t.bounds,r=er(e.paddingLeft,n.width),i=er(e.paddingRight,n.width),A=er(e.paddingTop,n.width),o=er(e.paddingBottom,n.width);return n.add(r+e.borderLeftWidth,A+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+A+o))},wl=function(t,e){return 0===t?e.bounds:2===t?ml(e):gl(e)},yl=function(t,e){return 0===t?e.bounds:2===t?ml(e):gl(e)},vl=function(t,e,n){var r=wl(xl(t.styles.backgroundOrigin,e),t),i=yl(xl(t.styles.backgroundClip,e),t),A=Cl(xl(t.styles.backgroundSize,e),n,r),o=A[0],s=A[1],a=tr(xl(t.styles.backgroundPosition,e),r.width-o,r.height-s),l=_l(xl(t.styles.backgroundRepeat,e),a,A,r,i),c=Math.round(r.left+a[0]),u=Math.round(r.top+a[1]);return[l,c,u,o,s]},bl=function(t){return Rn(t)&&t.value===Vr.AUTO},Bl=function(t){return"number"===typeof t},Cl=function(t,e,n){var r=e[0],i=e[1],A=e[2],o=t[0],s=t[1];if(!o)return[0,0];if(Yn(o)&&s&&Yn(s))return[er(o,n.width),er(s,n.height)];var a=Bl(A);if(Rn(o)&&(o.value===Vr.CONTAIN||o.value===Vr.COVER)){if(Bl(A)){var l=n.width/n.height;return l<A!==(o.value===Vr.COVER)?[n.width,n.width/A]:[n.height*A,n.height]}return[n.width,n.height]}var c=Bl(r),u=Bl(i),h=c||u;if(bl(o)&&(!s||bl(s))){if(c&&u)return[r,i];if(!a&&!h)return[n.width,n.height];if(h&&a){var d=c?r:i*A,f=u?i:r/A;return[d,f]}var p=c?r:n.width,g=u?i:n.height;return[p,g]}if(a){var m=0,w=0;return Yn(o)?m=er(o,n.width):Yn(s)&&(w=er(s,n.height)),bl(o)?m=w*A:s&&!bl(s)||(w=m/A),[m,w]}var y=null,v=null;if(Yn(o)?y=er(o,n.width):s&&Yn(s)&&(v=er(s,n.height)),null===y||s&&!bl(s)||(v=c&&u?y/r*i:n.height),null!==v&&bl(o)&&(y=c&&u?v/i*r:n.width),null!==y&&null!==v)return[y,v];throw new Error("Unable to calculate background-size for element")},xl=function(t,e){var n=t[e];return"undefined"===typeof n?t[0]:n},_l=function(t,e,n,r,i){var A=e[0],o=e[1],s=n[0],a=n[1];switch(t){case 2:return[new ja(Math.round(r.left),Math.round(r.top+o)),new ja(Math.round(r.left+r.width),Math.round(r.top+o)),new ja(Math.round(r.left+r.width),Math.round(a+r.top+o)),new ja(Math.round(r.left),Math.round(a+r.top+o))];case 3:return[new ja(Math.round(r.left+A),Math.round(r.top)),new ja(Math.round(r.left+A+s),Math.round(r.top)),new ja(Math.round(r.left+A+s),Math.round(r.height+r.top)),new ja(Math.round(r.left+A),Math.round(r.height+r.top))];case 1:return[new ja(Math.round(r.left+A),Math.round(r.top+o)),new ja(Math.round(r.left+A+s),Math.round(r.top+o)),new ja(Math.round(r.left+A+s),Math.round(r.top+o+a)),new ja(Math.round(r.left+A),Math.round(r.top+o+a))];default:return[new ja(Math.round(i.left),Math.round(i.top)),new ja(Math.round(i.left+i.width),Math.round(i.top)),new ja(Math.round(i.left+i.width),Math.round(i.height+i.top)),new ja(Math.round(i.left),Math.round(i.height+i.top))]}},El="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Fl="Hidden Text",Ll=function(){function t(t){this._data={},this._document=t}return t.prototype.parseMetrics=function(t,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",A.appendChild(n),r.src=El,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Fl)),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(Fl)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:o,middle:s}},t.prototype.getMetrics=function(t,e){var n=t+" "+e;return"undefined"===typeof this._data[n]&&(this._data[n]=this.parseMetrics(t,e)),this._data[n]},t}(),Nl=function(){function t(t,e){this.context=t,this.options=e}return t}(),Sl=1e4,Ul=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new Ll(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return e(n,t),n.prototype.applyEffects=function(t){var e=this;while(this._activeEffects.length)this.popEffect();t.forEach((function(t){return e.applyEffect(t)}))},n.prototype.applyEffect=function(t){this.ctx.save(),nl(t)&&(this.ctx.globalAlpha=t.opacity),tl(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),el(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return e=t.element.container.styles,e.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},n.prototype.renderNode=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return mA(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return e.sent(),[4,this.renderNodeContent(t)];case 2:e.sent(),e.label=3;case 3:return[2]}}))}))},n.prototype.renderTextWithLetterSpacing=function(t,e,n){var r=this;if(0===e)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var i=Xo(t.text);i.reduce((function(e,i){return r.ctx.fillText(i,e,t.bounds.top+n),e+r.ctx.measureText(i).width}),t.bounds.left)}},n.prototype.createFontStyle=function(t){var e=t.fontVariant.filter((function(t){return"normal"===t||"small-caps"===t})).join(""),n=Ol(t.fontFamily).join(", "),r=Pn(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,e,t.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(t,e){return r(this,void 0,void 0,(function(){var n,r,A,o,s,a,l,c,u=this;return i(this,(function(i){return n=this.createFontStyle(e),r=n[0],A=n[1],o=n[2],this.ctx.font=r,this.ctx.direction=1===e.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(A,o),a=s.baseline,l=s.middle,c=e.paintOrder,t.textBounds.forEach((function(t){c.forEach((function(n){switch(n){case 0:u.ctx.fillStyle=hr(e.color),u.renderTextWithLetterSpacing(t,e.letterSpacing,a);var r=e.textShadow;r.length&&t.text.trim().length&&(r.slice(0).reverse().forEach((function(n){u.ctx.shadowColor=hr(n.color),u.ctx.shadowOffsetX=n.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=n.offsetY.number*u.options.scale,u.ctx.shadowBlur=n.blur.number,u.renderTextWithLetterSpacing(t,e.letterSpacing,a)})),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),e.textDecorationLine.length&&(u.ctx.fillStyle=hr(e.textDecorationColor||e.color),e.textDecorationLine.forEach((function(e){switch(e){case 1:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top+a),t.bounds.width,1);break;case 2:u.ctx.fillRect(t.bounds.left,Math.round(t.bounds.top),t.bounds.width,1);break;case 3:u.ctx.fillRect(t.bounds.left,Math.ceil(t.bounds.top+l),t.bounds.width,1);break}})));break;case 1:e.webkitTextStrokeWidth&&t.text.trim().length&&(u.ctx.strokeStyle=hr(e.webkitTextStrokeColor),u.ctx.lineWidth=e.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(t.text,t.bounds.left,t.bounds.top+a)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}}))})),[2]}))}))},n.prototype.renderReplacedElement=function(t,e,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var r=ml(t),i=Xa(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,(function(){var e,r,A,s,a,l,c,u,h,d,f,p,g,m,w,y,v,b,B;return i(this,(function(i){switch(i.label){case 0:this.applyEffects(t.getEffects(4)),e=t.container,r=t.curves,A=e.styles,s=0,a=e.textNodes,i.label=1;case 1:return s<a.length?(l=a[s],[4,this.renderTextNode(l,A)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(e instanceof As))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(e.src)];case 6:return y=i.sent(),this.renderReplacedElement(e,r,y),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+e.src),[3,8];case 8:if(e instanceof os&&this.renderReplacedElement(e,r,e.canvas),!(e instanceof ss))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(e.svg)];case 10:return y=i.sent(),this.renderReplacedElement(e,r,y),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+e.svg.substring(0,255)),[3,12];case 12:return e instanceof bs&&e.tree?(c=new n(this.context,{scale:this.options.scale,backgroundColor:e.backgroundColor,x:0,y:0,width:e.width,height:e.height}),[4,c.render(e.tree)]):[3,14];case 13:u=i.sent(),e.width&&e.height&&this.ctx.drawImage(u,0,0,e.width,e.height,e.bounds.left,e.bounds.top,e.bounds.width,e.bounds.height),i.label=14;case 14:if(e instanceof ws&&(h=Math.min(e.bounds.width,e.bounds.height),e.type===fs?e.checked&&(this.ctx.save(),this.path([new ja(e.bounds.left+.39363*h,e.bounds.top+.79*h),new ja(e.bounds.left+.16*h,e.bounds.top+.5549*h),new ja(e.bounds.left+.27347*h,e.bounds.top+.44071*h),new ja(e.bounds.left+.39694*h,e.bounds.top+.5649*h),new ja(e.bounds.left+.72983*h,e.bounds.top+.23*h),new ja(e.bounds.left+.84*h,e.bounds.top+.34085*h),new ja(e.bounds.left+.39363*h,e.bounds.top+.79*h)]),this.ctx.fillStyle=hr(ms),this.ctx.fill(),this.ctx.restore()):e.type===ps&&e.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(e.bounds.left+h/2,e.bounds.top+h/2,h/4,0,2*Math.PI,!0),this.ctx.fillStyle=hr(ms),this.ctx.fill(),this.ctx.restore())),kl(e)&&e.value.length){switch(d=this.createFontStyle(A),b=d[0],f=d[1],p=this.fontMetrics.getMetrics(b,f).baseline,this.ctx.font=b,this.ctx.fillStyle=hr(A.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Il(e.styles.textAlign),B=ml(e),g=0,e.styles.textAlign){case 1:g+=B.width/2;break;case 2:g+=B.width;break}m=B.add(g,0,0,-B.height/2+1),this.ctx.save(),this.path([new ja(B.left,B.top),new ja(B.left+B.width,B.top),new ja(B.left+B.width,B.top+B.height),new ja(B.left,B.top+B.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Go(e.value,m),A.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!mA(e.styles.display,2048))return[3,20];if(null===e.styles.listStyleImage)return[3,19];if(w=e.styles.listStyleImage,0!==w.type)return[3,18];y=void 0,v=w.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(v)];case 16:return y=i.sent(),this.ctx.drawImage(y,e.bounds.left-(y.width+10),e.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+v),[3,18];case 18:return[3,20];case 19:t.listValue&&-1!==e.styles.listStyleType&&(b=this.createFontStyle(A)[0],this.ctx.font=b,this.ctx.fillStyle=hr(A.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",B=new o(e.bounds.left,e.bounds.top+er(e.styles.paddingTop,e.bounds.width),e.bounds.width,ki(A.lineHeight,A.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Go(t.listValue,B),A.letterSpacing,ki(A.lineHeight,A.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}}))}))},n.prototype.renderStackContent=function(t){return r(this,void 0,void 0,(function(){var e,n,r,A,o,s,a,l,c,u,h,d,f,p,g;return i(this,(function(i){switch(i.label){case 0:return mA(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:i.sent(),e=0,n=t.negativeZIndex,i.label=2;case 2:return e<n.length?(g=n[e],[4,this.renderStack(g)]):[3,5];case 3:i.sent(),i.label=4;case 4:return e++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:i.sent(),r=0,A=t.nonInlineLevel,i.label=7;case 7:return r<A.length?(g=A[r],[4,this.renderNode(g)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,s=t.nonPositionedFloats,i.label=11;case 11:return o<s.length?(g=s[o],[4,this.renderStack(g)]):[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:a=0,l=t.nonPositionedInlineLevel,i.label=15;case 15:return a<l.length?(g=l[a],[4,this.renderStack(g)]):[3,18];case 16:i.sent(),i.label=17;case 17:return a++,[3,15];case 18:c=0,u=t.inlineLevel,i.label=19;case 19:return c<u.length?(g=u[c],[4,this.renderNode(g)]):[3,22];case 20:i.sent(),i.label=21;case 21:return c++,[3,19];case 22:h=0,d=t.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<d.length?(g=d[h],[4,this.renderStack(g)]):[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:f=0,p=t.positiveZIndex,i.label=27;case 27:return f<p.length?(g=p[f],[4,this.renderStack(g)]):[3,30];case 28:i.sent(),i.label=29;case 29:return f++,[3,27];case 30:return[2]}}))}))},n.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},n.prototype.formatPath=function(t){var e=this;t.forEach((function(t,n){var r=Ka(t)?t.start:t;0===n?e.ctx.moveTo(r.x,r.y):e.ctx.lineTo(r.x,r.y),Ka(t)&&e.ctx.bezierCurveTo(t.startControl.x,t.startControl.y,t.endControl.x,t.endControl.y,t.end.x,t.end.y)}))},n.prototype.renderRepeat=function(t,e,n,r){this.path(t),this.ctx.fillStyle=e,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(t,e,n){var r;if(t.width===e&&t.height===n)return t;var i=null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document,A=i.createElement("canvas");A.width=Math.max(1,e),A.height=Math.max(1,n);var o=A.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,e,n),A},n.prototype.renderBackgroundImage=function(t){return r(this,void 0,void 0,(function(){var e,n,r,A,o,s;return i(this,(function(a){switch(a.label){case 0:e=t.styles.backgroundImage.length-1,n=function(n){var A,o,s,a,l,c,u,h,d,f,p,g,m,w,y,v,b,B,C,x,_,E,F,L,N,S,U,k,Q,I,T;return i(this,(function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];A=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(o)];case 2:return A=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+o),[3,4];case 4:return A&&(s=vl(t,e,[A.width,A.height,A.width/A.height]),v=s[0],E=s[1],F=s[2],C=s[3],x=s[4],w=r.ctx.createPattern(r.resizeImage(A,C,x),"repeat"),r.renderRepeat(v,w,E,F)),[3,6];case 5:zr(n)?(a=vl(t,e,[null,null,null]),v=a[0],E=a[1],F=a[2],C=a[3],x=a[4],l=Er(n.angle,C,x),c=l[0],u=l[1],h=l[2],d=l[3],f=l[4],p=document.createElement("canvas"),p.width=C,p.height=x,g=p.getContext("2d"),m=g.createLinearGradient(u,d,h,f),xr(n.stops,c).forEach((function(t){return m.addColorStop(t.stop,hr(t.color))})),g.fillStyle=m,g.fillRect(0,0,C,x),C>0&&x>0&&(w=r.ctx.createPattern(p,"repeat"),r.renderRepeat(v,w,E,F))):qr(n)&&(y=vl(t,e,[null,null,null]),v=y[0],b=y[1],B=y[2],C=y[3],x=y[4],_=0===n.position.length?[Zn]:n.position,E=er(_[0],C),F=er(_[_.length-1],x),L=Nr(n,E,F,C,x),N=L[0],S=L[1],N>0&&S>0&&(U=r.ctx.createRadialGradient(b+E,B+F,0,b+E,B+F,N),xr(n.stops,2*N).forEach((function(t){return U.addColorStop(t.stop,hr(t.color))})),r.path(v),r.ctx.fillStyle=U,N!==S?(k=t.bounds.left+.5*t.bounds.width,Q=t.bounds.top+.5*t.bounds.height,I=S/N,T=1/I,r.ctx.save(),r.ctx.translate(k,Q),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-k,-Q),r.ctx.fillRect(b,T*(B-Q)+Q,C,x*T),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return e--,[2]}}))},r=this,A=0,o=t.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return A<o.length?(s=o[A],[5,n(s)]):[3,4];case 2:a.sent(),a.label=3;case 3:return A++,[3,1];case 4:return[2]}}))}))},n.prototype.renderSolidBorder=function(t,e,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){return this.path(cl(n,e)),this.ctx.fillStyle=hr(t),this.ctx.fill(),[2]}))}))},n.prototype.renderDoubleBorder=function(t,e,n,A){return r(this,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return e<3?[4,this.renderSolidBorder(t,n,A)]:[3,2];case 1:return i.sent(),[2];case 2:return r=ul(A,n),this.path(r),this.ctx.fillStyle=hr(t),this.ctx.fill(),o=hl(A,n),this.path(o),this.ctx.fill(),[2]}}))}))},n.prototype.renderNodeBackgroundAndBorders=function(t){return r(this,void 0,void 0,(function(){var e,n,r,A,o,s,a,l,c=this;return i(this,(function(i){switch(i.label){case 0:return this.applyEffects(t.getEffects(2)),e=t.container.styles,n=!ur(e.backgroundColor)||e.backgroundImage.length,r=[{style:e.borderTopStyle,color:e.borderTopColor,width:e.borderTopWidth},{style:e.borderRightStyle,color:e.borderRightColor,width:e.borderRightWidth},{style:e.borderBottomStyle,color:e.borderBottomColor,width:e.borderBottomWidth},{style:e.borderLeftStyle,color:e.borderLeftColor,width:e.borderLeftWidth}],A=Ql(xl(e.backgroundClip,0),t.curves),n||e.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),ur(e.backgroundColor)||(this.ctx.fillStyle=hr(e.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),e.boxShadow.slice(0).reverse().forEach((function(e){c.ctx.save();var n=Wa(t.curves),r=e.inset?0:Sl,i=il(n,-r+(e.inset?1:-1)*e.spread.number,(e.inset?1:-1)*e.spread.number,e.spread.number*(e.inset?-2:2),e.spread.number*(e.inset?-2:2));e.inset?(c.path(n),c.ctx.clip(),c.mask(i)):(c.mask(n),c.ctx.clip(),c.path(i)),c.ctx.shadowOffsetX=e.offsetX.number+r,c.ctx.shadowOffsetY=e.offsetY.number,c.ctx.shadowColor=hr(e.color),c.ctx.shadowBlur=e.blur.number,c.ctx.fillStyle=e.inset?hr(e.color):"rgba(0,0,0,1)",c.ctx.fill(),c.ctx.restore()})),i.label=2;case 2:o=0,s=0,a=r,i.label=3;case 3:return s<a.length?(l=a[s],0!==l.style&&!ur(l.color)&&l.width>0?2!==l.style?[3,5]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==l.style?[3,7]:[4,this.renderDashedDottedBorder(l.color,l.width,o,t.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==l.style?[3,9]:[4,this.renderDoubleBorder(l.color,l.width,o,t.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(l.color,o,t.curves)];case 10:i.sent(),i.label=11;case 11:o++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}}))}))},n.prototype.renderDashedDottedBorder=function(t,e,n,A,o){return r(this,void 0,void 0,(function(){var r,s,a,l,c,u,h,d,f,p,g,m,w,y,v,b;return i(this,(function(i){return this.ctx.save(),r=dl(A,n),s=cl(A,n),2===o&&(this.path(s),this.ctx.clip()),Ka(s[0])?(a=s[0].start.x,l=s[0].start.y):(a=s[0].x,l=s[0].y),Ka(s[1])?(c=s[1].end.x,u=s[1].end.y):(c=s[1].x,u=s[1].y),h=0===n||2===n?Math.abs(a-c):Math.abs(l-u),this.ctx.beginPath(),3===o?this.formatPath(r):this.formatPath(s.slice(0,2)),d=e<3?3*e:2*e,f=e<3?2*e:e,3===o&&(d=e,f=e),p=!0,h<=2*d?p=!1:h<=2*d+f?(g=h/(2*d+f),d*=g,f*=g):(m=Math.floor((h+f)/(d+f)),w=(h-m*d)/(m-1),y=(h-(m+1)*d)/m,f=y<=0||Math.abs(f-w)<Math.abs(f-y)?w:y),p&&(3===o?this.ctx.setLineDash([0,d+f]):this.ctx.setLineDash([d,f])),3===o?(this.ctx.lineCap="round",this.ctx.lineWidth=e):this.ctx.lineWidth=2*e+1.1,this.ctx.strokeStyle=hr(t),this.ctx.stroke(),this.ctx.setLineDash([]),2===o&&(Ka(s[0])&&(v=s[3],b=s[0],this.ctx.beginPath(),this.formatPath([new ja(v.end.x,v.end.y),new ja(b.start.x,b.start.y)]),this.ctx.stroke()),Ka(s[1])&&(v=s[1],b=s[2],this.ctx.beginPath(),this.formatPath([new ja(v.end.x,v.end.y),new ja(b.start.x,b.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]}))}))},n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e;return i(this,(function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=hr(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),e=ll(t),[4,this.renderStack(e)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}}))}))},n}(Nl),kl=function(t){return t instanceof vs||(t instanceof ys||t instanceof ws&&t.type!==ps&&t.type!==fs)},Ql=function(t,e){switch(t){case 0:return Wa(e);case 2:return Ya(e);case 1:default:return Xa(e)}},Il=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Tl=["-apple-system","system-ui"],Ol=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter((function(t){return-1===Tl.indexOf(t)})):t},Ml=function(t){function n(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return e(n,t),n.prototype.render=function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:return e=zo(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Dl(e)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=hr(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},n}(Nl),Dl=function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(t))}))},Pl=function(){function t(t){var e=t.id,n=t.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.debug?console.debug.apply(console,A([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&"undefined"!==typeof window&&window.console&&"function"===typeof console.info&&console.info.apply(console,A([this.id,this.getTime()+"ms"],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.warn?console.warn.apply(console,A([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.enabled&&("undefined"!==typeof window&&window.console&&"function"===typeof console.error?console.error.apply(console,A([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},t.instances={},t}(),Hl=function(){function t(e,n){var r;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new Pl({id:this.instanceName,enabled:e.logging}),this.cache=null!==(r=e.cache)&&void 0!==r?r:new Qa(this,e)}return t.instanceCount=1,t}(),Rl=function(t,e){return void 0===e&&(e={}),jl(t,e)};"undefined"!==typeof window&&ka.setContext(window);var jl=function(t,e){return r(void 0,void 0,void 0,(function(){var r,A,l,c,u,h,d,f,p,g,m,w,y,v,b,B,C,x,_,E,F,L,N,S,U,k,Q,I,T,O,M,D,P,H,R,j,z,q,K;return i(this,(function(i){switch(i.label){case 0:if(!t||"object"!==typeof t)return[2,Promise.reject("Invalid element provided as first argument")];if(r=t.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(A=r.defaultView,!A)throw new Error("Document is not attached to a Window");return l={allowTaint:null!==(N=e.allowTaint)&&void 0!==N&&N,imageTimeout:null!==(S=e.imageTimeout)&&void 0!==S?S:15e3,proxy:e.proxy,useCORS:null!==(U=e.useCORS)&&void 0!==U&&U},c=n({logging:null===(k=e.logging)||void 0===k||k,cache:e.cache},l),u={windowWidth:null!==(Q=e.windowWidth)&&void 0!==Q?Q:A.innerWidth,windowHeight:null!==(I=e.windowHeight)&&void 0!==I?I:A.innerHeight,scrollX:null!==(T=e.scrollX)&&void 0!==T?T:A.pageXOffset,scrollY:null!==(O=e.scrollY)&&void 0!==O?O:A.pageYOffset},h=new o(u.scrollX,u.scrollY,u.windowWidth,u.windowHeight),d=new Hl(c,h),f=null!==(M=e.foreignObjectRendering)&&void 0!==M&&M,p={allowTaint:null!==(D=e.allowTaint)&&void 0!==D&&D,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:f,copyStyles:f},d.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),g=new fa(d,t,p),m=g.clonedReferenceElement,m?[4,g.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=i.sent(),y=Ms(m)||Ts(m)?a(m.ownerDocument):s(d,m),v=y.width,b=y.height,B=y.left,C=y.top,x=zl(d,m,e.backgroundColor),_={canvas:e.canvas,backgroundColor:x,scale:null!==(H=null!==(P=e.scale)&&void 0!==P?P:A.devicePixelRatio)&&void 0!==H?H:1,x:(null!==(R=e.x)&&void 0!==R?R:0)+B,y:(null!==(j=e.y)&&void 0!==j?j:0)+C,width:null!==(z=e.width)&&void 0!==z?z:Math.ceil(v),height:null!==(q=e.height)&&void 0!==q?q:Math.ceil(b)},f?(d.logger.debug("Document cloned, using foreign object rendering"),L=new Ml(d,_),[4,L.render(m)]):[3,3];case 2:return E=i.sent(),[3,5];case 3:return d.logger.debug("Document cloned, element located at "+B+","+C+" with size "+v+"x"+b+" using computed rendering"),d.logger.debug("Starting DOM parsing"),F=_s(d,m),x===F.styles.backgroundColor&&(F.styles.backgroundColor=vr.TRANSPARENT),d.logger.debug("Starting renderer for element at "+_.x+","+_.y+" with size "+_.width+"x"+_.height),L=new Ul(d,_),[4,L.render(F)];case 4:E=i.sent(),i.label=5;case 5:return(null===(K=e.removeContainer)||void 0===K||K)&&(fa.destroy(w)||d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),d.logger.debug("Finished rendering"),[2,E]}}))}))},zl=function(t,e,n){var r=e.ownerDocument,i=r.documentElement?yr(t,getComputedStyle(r.documentElement).backgroundColor):vr.TRANSPARENT,A=r.body?yr(t,getComputedStyle(r.body).backgroundColor):vr.TRANSPARENT,o="string"===typeof n?yr(t,n):null===n?vr.TRANSPARENT:4294967295;return e===r.documentElement?ur(i)?ur(A)?o:A:i:o};return Rl}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},cc50:function(t,e,n){var r=n("5e8c"),i=n("cda9"),A=TypeError;t.exports=function(t){if(r(t))return t;throw A(i(t)+" is not a function")}},cda9:function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},ce2e:function(t,e,n){var r=n("5e8c"),i=n("feb8"),A=n("bbea");t.exports=function(t,e,n){var o,s;return A&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&A(t,s),t}},cf4b:function(t,e,n){var r=n("feb8"),i=String,A=TypeError;t.exports=function(t){if(r(t))return t;throw A(i(t)+" is not an object")}},d0dc:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},d17b:function(t,e,n){t.exports=n("e372").Transform},d485:function(t,e,n){t.exports=A;var r=n("faa1").EventEmitter,i=n("3fb5");function A(){r.call(this)}i(A,r),A.Readable=n("e372"),A.Writable=n("2c63"),A.Duplex=n("0960"),A.Transform=n("d17b"),A.PassThrough=n("c2ae"),A.Stream=A,A.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function A(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",A),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",a));var o=!1;function s(){o||(o=!0,t.end())}function a(){o||(o=!0,"function"===typeof t.destroy&&t.destroy())}function l(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",A),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",l),t.on("error",l),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},d665:function(t,e,n){var r=n("8d5c"),i=n("4d80"),A=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(A,"name"),a=s&&"something"===function(){}.name,l=s&&(!r||r&&o(A,"name").configurable);t.exports={EXISTS:s,PROPER:a,CONFIGURABLE:l}},d898:function(t,e,n){var r=n("feb8"),i=n("f770");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},dacf:function(t,e,n){var r=n("8d5c"),i=n("6632"),A=n("b671"),o=n("0259"),s=n("44c7"),a=n("4f65"),l=n("4d80"),c=n("acc5"),u=Object.getOwnPropertyDescriptor;e.f=r?u:function(t,e){if(t=s(t),e=a(e),c)try{return u(t,e)}catch(n){}if(l(t,e))return o(!i(A.f,t,e),t[e])}},dc14:function(t,e,n){"use strict";(function(e,r){var i=n("966d");function A(t){var e=this;this.next=null,this.entry=null,this.finish=function(){O(e,t)}}t.exports=y;var o,s=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=w;var a=Object.create(n("3a7c"));a.inherits=n("3fb5");var l={deprecate:n("b7d1")},c=n("429b"),u=n("8707").Buffer,h=r.Uint8Array||function(){};function d(t){return u.from(t)}function f(t){return u.isBuffer(t)||t instanceof h}var p,g=n("4681");function m(){}function w(t,e){o=o||n("b19a"),t=t||{};var r=e instanceof o;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=t.writableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){F(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new A(this)}function y(t){if(o=o||n("b19a"),!p.call(y,this)&&!(this instanceof o))return new y(t);this._writableState=new w(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),c.call(this)}function v(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}function b(t,e,n,r){var A=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),i.nextTick(r,o),A=!1),A}function B(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=u.from(e,n)),e}function C(t,e,n,r,i,A){if(!n){var o=B(e,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=e.objectMode?1:r.length;e.length+=s;var a=e.length<e.highWaterMark;if(a||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:A,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,r,i,A);return a}function x(t,e,n,r,i,A,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,A,e.onwrite),e.sync=!1}function _(t,e,n,r,A){--e.pendingcb,n?(i.nextTick(A,r),i.nextTick(I,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(A(r),t._writableState.errorEmitted=!0,t.emit("error",r),I(t,e))}function E(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function F(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(E(n),e)_(t,n,r,e,i);else{var A=U(n);A||n.corked||n.bufferProcessing||!n.bufferedRequest||S(t,n),r?s(L,t,n,A,i):L(t,n,A,i)}}function L(t,e,n,r){n||N(t,e),e.pendingcb--,r(),I(t,e)}function N(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function S(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;var s=0,a=!0;while(n)i[s]=n,n.isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,x(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new A(e),e.bufferedRequestCount=0}else{while(n){var l=n.chunk,c=n.encoding,u=n.callback,h=e.objectMode?1:l.length;if(x(t,e,!1,h,l,c,u),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function U(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function k(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function Q(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(k,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function I(t,e){var n=U(e);return n&&(Q(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function T(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function O(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}a.inherits(y,c),w.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(w.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof w)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var r=this._writableState,i=!1,A=!r.objectMode&&f(t);return A&&!u.isBuffer(t)&&(t=d(t)),"function"===typeof e&&(n=e,e=null),A?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=m),r.ended?v(this,n):(A||b(this,r,t,n))&&(r.pendingcb++,i=C(this,r,A,t,e,n)),i},y.prototype.cork=function(){var t=this._writableState;t.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||S(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var r=this._writableState;"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||T(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n("4362"),n("c8ba"))},dcfb:function(t,e,n){"use strict";n.d(e,"b",(function(){return W})),n.d(e,"a",(function(){return Y}));var r=Uint8Array,i=Uint16Array,A=Uint32Array,o=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(t,e){for(var n=new i(31),r=0;r<31;++r)n[r]=e+=1<<t[r-1];var o=new A(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return[n,o]},c=l(o,2),u=c[0],h=c[1];u[28]=258,h[258]=28;for(var d=l(s,0),f=d[0],p=d[1],g=new i(32768),m=0;m<32768;++m){var w=(43690&m)>>>1|(21845&m)<<1;w=(52428&w)>>>2|(13107&w)<<2,w=(61680&w)>>>4|(3855&w)<<4,g[m]=((65280&w)>>>8|(255&w)<<8)>>>1}var y=function(t,e,n){for(var r=t.length,A=0,o=new i(e);A<r;++A)++o[t[A]-1];var s,a=new i(e);for(A=0;A<e;++A)a[A]=a[A-1]+o[A-1]<<1;if(n){s=new i(1<<e);var l=15-e;for(A=0;A<r;++A)if(t[A])for(var c=A<<4|t[A],u=e-t[A],h=a[t[A]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)s[g[h]>>>l]=c}else for(s=new i(r),A=0;A<r;++A)s[A]=g[a[t[A]-1]++]>>>15-t[A];return s},v=new r(288);for(m=0;m<144;++m)v[m]=8;for(m=144;m<256;++m)v[m]=9;for(m=256;m<280;++m)v[m]=7;for(m=280;m<288;++m)v[m]=8;var b=new r(32);for(m=0;m<32;++m)b[m]=5;var B=y(v,9,0),C=y(v,9,1),x=y(b,5,0),_=y(b,5,1),E=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},F=function(t,e,n){var r=e/8>>0;return(t[r]|t[r+1]<<8)>>>(7&e)&n},L=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},N=function(t){return(t/8>>0)+(7&t&&1)},S=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var o=new(t instanceof i?i:t instanceof A?A:r)(n-e);return o.set(t.subarray(e,n)),o},U=function(t,e,n){var i=t.length,A=!e||n,l=!n||n.i;n||(n={}),e||(e=new r(3*i));var c=function(t){var n=e.length;if(t>n){var i=new r(Math.max(2*n,t));i.set(e),e=i}},h=n.f||0,d=n.p||0,p=n.b||0,g=n.l,m=n.d,w=n.m,v=n.n,b=8*i;do{if(!g){n.f=h=F(t,d,1);var B=F(t,d+1,3);if(d+=3,!B){var x=N(d)+4,U=t[x-4]|t[x-3]<<8,k=x+U;if(k>i){if(l)throw"unexpected EOF";break}A&&c(p+U),e.set(t.subarray(x,k),p),n.b=p+=U,n.p=d=8*k;continue}if(1==B)g=C,m=_,w=9,v=5;else{if(2!=B)throw"invalid block type";var Q=F(t,d,31)+257,I=F(t,d+10,15)+4,T=Q+F(t,d+5,31)+1;d+=14;for(var O=new r(T),M=new r(19),D=0;D<I;++D)M[a[D]]=F(t,d+3*D,7);d+=3*I;var P=E(M),H=(1<<P)-1;if(!l&&d+T*(P+7)>b)break;var R=y(M,P,1);for(D=0;D<T;){var j=R[F(t,d,H)];d+=15&j;x=j>>>4;if(x<16)O[D++]=x;else{var z=0,q=0;16==x?(q=3+F(t,d,3),d+=2,z=O[D-1]):17==x?(q=3+F(t,d,7),d+=3):18==x&&(q=11+F(t,d,127),d+=7);while(q--)O[D++]=z}}var K=O.subarray(0,Q),G=O.subarray(Q);w=E(K),v=E(G),g=y(K,w,1),m=y(G,v,1)}if(d>b)throw"unexpected EOF"}A&&c(p+131072);var V=(1<<w)-1,W=(1<<v)-1,Y=w+v+18;while(l||d+Y<b){z=g[L(t,d)&V];var X=z>>>4;if(d+=15&z,d>b)throw"unexpected EOF";if(!z)throw"invalid length/literal";if(X<256)e[p++]=X;else{if(256==X){g=null;break}var J=X-254;if(X>264){D=X-257;var Z=o[D];J=F(t,d,(1<<Z)-1)+u[D],d+=Z}var $=m[L(t,d)&W],tt=$>>>4;if(!$)throw"invalid distance";d+=15&$;G=f[tt];if(tt>3){Z=s[tt];G+=L(t,d)&(1<<Z)-1,d+=Z}if(d>b)throw"unexpected EOF";A&&c(p+131072);for(var et=p+J;p<et;p+=4)e[p]=e[p-G],e[p+1]=e[p+1-G],e[p+2]=e[p+2-G],e[p+3]=e[p+3-G];p=et}}n.l=g,n.p=d,n.b=p,g&&(h=1,n.m=w,n.d=m,n.n=v)}while(!h);return p==e.length?e:S(e,0,p)},k=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8},Q=function(t,e,n){n<<=7&e;var r=e/8>>0;t[r]|=n,t[r+1]|=n>>>8,t[r+2]|=n>>>16},I=function(t,e){for(var n=[],A=0;A<t.length;++A)t[A]&&n.push({s:A,f:t[A]});var o=n.length,s=n.slice();if(!o)return[new r(0),0];if(1==o){var a=new r(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(t,e){return t.f-e.f})),n.push({s:-1,f:25001});var l=n[0],c=n[1],u=0,h=1,d=2;n[0]={s:-1,f:l.f+c.f,l:l,r:c};while(h!=o-1)l=n[n[u].f<n[d].f?u++:d++],c=n[u!=h&&n[u].f<n[d].f?u++:d++],n[h++]={s:-1,f:l.f+c.f,l:l,r:c};var f=s[0].s;for(A=1;A<o;++A)s[A].s>f&&(f=s[A].s);var p=new i(f+1),g=T(n[h-1],p,0);if(g>e){A=0;var m=0,w=g-e,y=1<<w;for(s.sort((function(t,e){return p[e.s]-p[t.s]||t.f-e.f}));A<o;++A){var v=s[A].s;if(!(p[v]>e))break;m+=y-(1<<g-p[v]),p[v]=e}m>>>=w;while(m>0){var b=s[A].s;p[b]<e?m-=1<<e-p[b]++-1:++A}for(;A>=0&&m;--A){var B=s[A].s;p[B]==e&&(--p[B],++m)}g=e}return[new r(p),g]},T=function(t,e,n){return-1==t.s?Math.max(T(t.l,e,n+1),T(t.r,e,n+1)):e[t.s]=n},O=function(t){var e=t.length;while(e&&!t[--e]);for(var n=new i(++e),r=0,A=t[0],o=1,s=function(t){n[r++]=t},a=1;a<=e;++a)if(t[a]==A&&a!=e)++o;else{if(!A&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(A),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}while(o--)s(A);o=1,A=t[a]}return[n.subarray(0,r),e]},M=function(t,e){for(var n=0,r=0;r<e.length;++r)n+=t[r]*e[r];return n},D=function(t,e,n){var r=n.length,i=N(e+2);t[i]=255&r,t[i+1]=r>>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var A=0;A<r;++A)t[i+A+4]=n[A];return 8*(i+4+r)},P=function(t,e,n,r,A,l,c,u,h,d,f){k(e,f++,n),++A[256];for(var p=I(A,15),g=p[0],m=p[1],w=I(l,15),C=w[0],_=w[1],E=O(g),F=E[0],L=E[1],N=O(C),S=N[0],U=N[1],T=new i(19),P=0;P<F.length;++P)T[31&F[P]]++;for(P=0;P<S.length;++P)T[31&S[P]]++;for(var H=I(T,7),R=H[0],j=H[1],z=19;z>4&&!R[a[z-1]];--z);var q,K,G,V,W=d+5<<3,Y=M(A,v)+M(l,b)+c,X=M(A,g)+M(l,C)+c+14+3*z+M(T,R)+(2*T[16]+3*T[17]+7*T[18]);if(W<=Y&&W<=X)return D(e,f,t.subarray(h,h+d));if(k(e,f,1+(X<Y)),f+=2,X<Y){q=y(g,m,0),K=g,G=y(C,_,0),V=C;var J=y(R,j,0);k(e,f,L-257),k(e,f+5,U-1),k(e,f+10,z-4),f+=14;for(P=0;P<z;++P)k(e,f+3*P,R[a[P]]);f+=3*z;for(var Z=[F,S],$=0;$<2;++$){var tt=Z[$];for(P=0;P<tt.length;++P){var et=31&tt[P];k(e,f,J[et]),f+=R[et],et>15&&(k(e,f,tt[P]>>>5&127),f+=tt[P]>>>12)}}}else q=B,K=v,G=x,V=b;for(P=0;P<u;++P)if(r[P]>255){et=r[P]>>>18&31;Q(e,f,q[et+257]),f+=K[et+257],et>7&&(k(e,f,r[P]>>>23&31),f+=o[et]);var nt=31&r[P];Q(e,f,G[nt]),f+=V[nt],nt>3&&(Q(e,f,r[P]>>>5&8191),f+=s[nt])}else Q(e,f,q[r[P]]),f+=K[r[P]];return Q(e,f,q[256]),f+K[256]},H=new A([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),R=new r(0),j=function(t,e,n,a,l,c){var u=t.length,d=new r(a+u+5*(1+Math.floor(u/7e3))+l),f=d.subarray(a,d.length-l),g=0;if(!e||u<8)for(var m=0;m<=u;m+=65535){var w=m+65535;w<u?g=D(f,g,t.subarray(m,w)):(f[m]=c,g=D(f,g,t.subarray(m,u)))}else{for(var y=H[e-1],v=y>>>13,b=8191&y,B=(1<<n)-1,C=new i(32768),x=new i(B+1),_=Math.ceil(n/3),E=2*_,F=function(e){return(t[e]^t[e+1]<<_^t[e+2]<<E)&B},L=new A(25e3),U=new i(288),k=new i(32),Q=0,I=0,T=(m=0,0),O=0,M=0;m<u;++m){var j=F(m),z=32767&m,q=x[j];if(C[z]=q,x[j]=z,O<=m){var K=u-m;if((Q>7e3||T>24576)&&K>423){g=P(t,f,0,L,U,k,I,T,M,m-M,g),T=Q=I=0,M=m;for(var G=0;G<286;++G)U[G]=0;for(G=0;G<30;++G)k[G]=0}var V=2,W=0,Y=b,X=z-q&32767;if(K>2&&j==F(m-X)){var J=Math.min(v,K)-1,Z=Math.min(32767,m),$=Math.min(258,K);while(X<=Z&&--Y&&z!=q){if(t[m+V]==t[m+V-X]){for(var tt=0;tt<$&&t[m+tt]==t[m+tt-X];++tt);if(tt>V){if(V=tt,W=X,tt>J)break;var et=Math.min(X,tt-2),nt=0;for(G=0;G<et;++G){var rt=m-X+G+32768&32767,it=C[rt],At=rt-it+32768&32767;At>nt&&(nt=At,q=rt)}}}z=q,q=C[z],X+=z-q+32768&32767}}if(W){L[T++]=268435456|h[V]<<18|p[W];var ot=31&h[V],st=31&p[W];I+=o[ot]+s[st],++U[257+ot],++k[st],O=m+V,++Q}else L[T++]=t[m],++U[t[m]]}}g=P(t,f,c,L,U,k,I,T,M,m-M,g),c||(g=D(f,g,R))}return S(d,0,a+N(g)+l)},z=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,A=n.length,o=0;o!=A;){for(var s=Math.min(o+5552,A);o<s;++o)r+=n[o],i+=r;r%=65521,i%=65521}t=r,e=i},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},q=function(t,e,n,r,i){return j(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,r,!i)},K=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},G=function(t,e){var n=e.level,r=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=r<<6|(r?32-2*r:1)},V=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function W(t,e){void 0===e&&(e={});var n=z();n.p(t);var r=q(t,e,2,4);return G(r,e),K(r,r.length-4,n.d()),r}function Y(t,e){return U((V(t),t.subarray(2,-4)),e)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,A=arguments.length-1;A>=-1&&!r;A--){var o=A>=0?arguments[A]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,r="/"===o.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),o="/"===A(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&o&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),A=r(n.split("/")),o=Math.min(i.length,A.length),s=o,a=0;a<o;a++)if(i[a]!==A[a]){s=a;break}var l=[];for(a=s;a<i.length;a++)l.push("..");return l=l.concat(A.slice(s)),l.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,A=t.length-1;A>=1;--A)if(e=t.charCodeAt(A),47===e){if(!i){r=A;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,A=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===e?e=o:1!==A&&(A=1):-1!==e&&(A=-1);else if(!i){n=o+1;break}}return-1===e||-1===r||0===A||1===A&&e===r-1&&e===n+1?"":t.slice(e,r)};var A="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},e219:function(t,e,n){var r=n("6053"),i=r("toStringTag"),A={};A[i]="z",t.exports="[object z]"===String(A)},e2cd:function(t,e,n){var r=n("e219"),i=n("5e8c"),A=n("424c"),o=n("6053"),s=o("toStringTag"),a=Object,l="Arguments"==A(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?A:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=a(t),s))?n:l?A(e):"Object"==(r=A(e))&&i(e.callee)?"Arguments":r}},e372:function(t,e,n){e=t.exports=n("ad71"),e.Stream=e,e.Readable=e,e.Writable=n("dc14"),e.Duplex=n("b19a"),e.Transform=n("27bf"),e.PassThrough=n("780f")},e3ca:function(t,e,n){var r=n("6632"),i=n("feb8"),A=n("fd50"),o=n("4eb4"),s=n("9eda"),a=n("6053"),l=TypeError,c=a("toPrimitive");t.exports=function(t,e){if(!i(t)||A(t))return t;var n,a=o(t,c);if(a){if(void 0===e&&(e="default"),n=r(a,t,e),!i(n)||A(n))return n;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e6a3:function(t,e,n){"use strict";var r=n("8d5c"),i=n("916c"),A=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!o(t,"length").writable)throw A("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},ec82:function(t,e){t.exports=!1},ed00:function(t,e,n){var r=n("14cc");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},eec5:function(t,e,n){(function(e){var r=n("9826");t.exports=function(t,n){t instanceof e&&(t=t.toString());var i=null;if("string"===typeof t)try{i=JSON.parse(t)}catch(A){throw new Error("The JSON structure is invalid")}else i=t;return r(i,n)}}).call(this,n("b639").Buffer)},ef7a:function(t,e,n){var r=n("6e16").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},f1a2:function(t,e,n){var r=n("1a89"),i=n("5e8c"),A=r.WeakMap;t.exports=i(A)&&/native code/.test(String(A))},f2fc:function(t,e,n){var r=n("1a89"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},f770:function(t,e,n){var r=n("8d5c"),i=n("6e16"),A=n("0259");t.exports=r?function(t,e,n){return i.f(t,e,A(1,n))}:function(t,e,n){return t[e]=n,t}},f8ac:function(t,e,n){var r=n("3475"),i=n("1a89"),A=n("6ba1"),o=n("361f"),s="WebAssembly",a=i[s],l=7!==Error("e",{cause:7}).cause,c=function(t,e){var n={};n[t]=o(t,e,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},u=function(t,e){if(a&&a[t]){var n={};n[t]=o(s+"."+t,e,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};c("Error",(function(t){return function(e){return A(t,this,arguments)}})),c("EvalError",(function(t){return function(e){return A(t,this,arguments)}})),c("RangeError",(function(t){return function(e){return A(t,this,arguments)}})),c("ReferenceError",(function(t){return function(e){return A(t,this,arguments)}})),c("SyntaxError",(function(t){return function(e){return A(t,this,arguments)}})),c("TypeError",(function(t){return function(e){return A(t,this,arguments)}})),c("URIError",(function(t){return function(e){return A(t,this,arguments)}})),u("CompileError",(function(t){return function(e){return A(t,this,arguments)}})),u("LinkError",(function(t){return function(e){return A(t,this,arguments)}})),u("RuntimeError",(function(t){return function(e){return A(t,this,arguments)}}))},faa1:function(t,e,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,A=i&&"function"===typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};function o(t){console&&console.warn&&console.warn(t)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!==t};function a(){a.init.call(this)}t.exports=a,t.exports.once=v,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,A,s;if(c(n),A=t._events,void 0===A?(A=t._events=Object.create(null),t._eventsCount=0):(void 0!==A.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),A=t._events),s=A[e]),void 0===s)s=A[e]=n,++t._eventsCount;else if("function"===typeof s?s=A[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=s.length,o(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?y(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function w(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function y(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function v(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,A),r(n)}function A(){"function"===typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}B(t,e,A,{once:!0}),"error"!==e&&b(t,i,{once:!0})}))}function b(t,e,n){"function"===typeof t.on&&B(t,"error",e,n)}function B(t,e,n,r){if("function"===typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(A){r.once&&t.removeEventListener(e,i),n(A)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");l=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[t];if(void 0===a)return!1;if("function"===typeof a)A(a,this,e);else{var l=a.length,c=m(a,l);for(n=0;n<l;++n)A(c[n],this,e)}return!0},a.prototype.addListener=function(t,e){return h(this,t,e,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(t,e){return h(this,t,e,!0)},a.prototype.once=function(t,e){return c(e),this.on(t,f(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,f(this,t,e)),this},a.prototype.removeListener=function(t,e){var n,r,i,A,o;if(c(e),r=this._events,void 0===r)return this;if(n=r[t],void 0===n)return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!==typeof n){for(i=-1,A=n.length-1;A>=0;A--)if(n[A]===e||n[A].listener===e){o=n[A].listener,i=A;break}if(i<0)return this;0===i?n.shift():w(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,o||e)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(t){var e,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,A=Object.keys(n);for(r=0;r<A.length;++r)i=A[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],"function"===typeof e)this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},a.prototype.listenerCount=g,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},fb15:function(t,e,n){"use strict";n.r(e);var r={};if(n.r(r),n.d(r,"document",(function(){return Nc})),n.d(r,"contentInitial",(function(){return Sc})),n.d(r,"flowInitial",(function(){return Uc})),n.d(r,"flow",(function(){return kc})),n.d(r,"string",(function(){return Qc})),n.d(r,"text",(function(){return Ic})),n.d(r,"insideSpan",(function(){return Tc})),n.d(r,"attentionMarkers",(function(){return Oc})),n.d(r,"disable",(function(){return Mc})),"undefined"!==typeof window){var i=window.document.currentScript,A=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);A&&(n.p=A[1])}n("9d9f"),n("f8ac");const o=[{color:"rgb(77, 65, 0)",background:"rgb(255, 244, 179)"},{color:"rgb(0, 50, 77)",background:"rgb(179, 229, 255)"},{color:"rgb(77, 0, 73)",background:"rgb(255, 179, 251)"},{color:"rgb(57, 77, 0)",background:"rgb(236, 255, 179)"},{color:"rgb(0, 77, 47)",background:"rgb(179, 255, 226)"}],s={CHANGE_THEME:"changeTheme",SET_DATA:"setData",TRANSFORM_TO_NORMAL_NODE:"transformAllNodesToNormalNode",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},TIMELINE_DIR:{TOP:"top",BOTTOM:"bottom"}},a={[s.INIT_ROOT_NODE_POSITION.LEFT]:0,[s.INIT_ROOT_NODE_POSITION.TOP]:0,[s.INIT_ROOT_NODE_POSITION.RIGHT]:1,[s.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[s.INIT_ROOT_NODE_POSITION.CENTER]:.5},l=(s.LAYOUT.LOGICAL_STRUCTURE,s.LAYOUT.MIND_MAP,s.LAYOUT.ORGANIZATION_STRUCTURE,s.LAYOUT.CATALOG_ORGANIZATION,s.LAYOUT.TIMELINE,s.LAYOUT.TIMELINE2,s.LAYOUT.FISHBONE,[s.LAYOUT.LOGICAL_STRUCTURE,s.LAYOUT.MIND_MAP,s.LAYOUT.CATALOG_ORGANIZATION,s.LAYOUT.ORGANIZATION_STRUCTURE,s.LAYOUT.TIMELINE,s.LAYOUT.TIMELINE2,s.LAYOUT.FISHBONE]);class c{constructor(t={}){this.opt=t,this.mindMap=this.opt.mindMap,this.scale=1,this.sx=0,this.sy=0,this.x=0,this.y=0,this.firstDrag=!0,this.setTransformData(this.mindMap.opt.viewData),this.bind()}bind(){this.mindMap.keyCommand.addShortcut("Control+=",()=>{this.enlarge()}),this.mindMap.keyCommand.addShortcut("Control+-",()=>{this.narrow()}),this.mindMap.keyCommand.addShortcut("Control+Enter",()=>{this.reset()}),this.mindMap.keyCommand.addShortcut("Control+i",()=>{this.fit()}),this.mindMap.svg.on("dblclick",()=>{this.reset()}),this.mindMap.event.on("mousedown",()=>{this.sx=this.x,this.sy=this.y}),this.mindMap.event.on("drag",(t,e)=>{t.ctrlKey||(this.firstDrag&&(this.firstDrag=!1,this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")),this.x=this.sx+e.mousemoveOffset.x,this.y=this.sy+e.mousemoveOffset.y,this.transform())}),this.mindMap.event.on("mouseup",()=>{this.firstDrag=!0}),this.mindMap.event.on("mousewheel",(t,e)=>{if(this.mindMap.opt.customHandleMousewheel&&"function"===typeof this.mindMap.opt.customHandleMousewheel)return this.mindMap.opt.customHandleMousewheel(t);if(this.mindMap.opt.mousewheelAction===s.MOUSE_WHEEL_ACTION.ZOOM)switch(e){case s.DIR.UP:case s.DIR.LEFT:this.narrow();break;case s.DIR.DOWN:case s.DIR.RIGHT:this.enlarge();break}else switch(e){case s.DIR.DOWN:this.translateY(-this.mindMap.opt.mousewheelMoveStep);break;case s.DIR.UP:this.translateY(this.mindMap.opt.mousewheelMoveStep);break;case s.DIR.LEFT:this.translateX(-this.mindMap.opt.mousewheelMoveStep);break;case s.DIR.RIGHT:this.translateX(this.mindMap.opt.mousewheelMoveStep);break}})}getTransformData(){return{transform:this.mindMap.draw.transform(),state:{scale:this.scale,x:this.x,y:this.y,sx:this.sx,sy:this.sy}}}setTransformData(t){t&&(Object.keys(t.state).forEach(e=>{this[e]=t.state[e]}),this.mindMap.draw.transform({...t.transform}),this.mindMap.emit("view_data_change",this.getTransformData()),this.mindMap.emit("scale",this.scale))}translateXY(t,e){this.x+=t,this.y+=e,this.transform()}translateX(t){this.x+=t,this.transform()}translateXTo(t){this.x=t,this.transform()}translateY(t){this.y+=t,this.transform()}translateYTo(t){this.y=t,this.transform()}transform(){this.mindMap.draw.transform({scale:this.scale,translate:[this.x,this.y]}),this.mindMap.emit("view_data_change",this.getTransformData())}reset(){let t=1!==this.scale;this.scale=1,this.x=0,this.y=0,this.transform(),t&&this.mindMap.emit("scale",this.scale)}narrow(){this.scale-this.mindMap.opt.scaleRatio>.1?this.scale-=this.mindMap.opt.scaleRatio:this.scale=.1,this.transform(),this.mindMap.emit("scale",this.scale)}enlarge(){this.scale+=this.mindMap.opt.scaleRatio,this.transform(),this.mindMap.emit("scale",this.scale)}setScale(t){this.scale=t,this.transform(),this.mindMap.emit("scale",this.scale)}fit(){let{fitPadding:t}=this.mindMap.opt,e=this.mindMap.draw,n=e.transform(),r=e.rbox(),i=r.width/n.scaleX,A=r.height/n.scaleY,o=i/A,{width:s,height:a}=this.mindMap.el.getBoundingClientRect();s-=2*t,a-=2*t;let l=s/a,c=0,u="";if(i<=s&&A<=a)c=1,u=1;else{let t=0,e=0;o>l?(t=s,e=s/o,u=2):(e=a,t=a*o,u=3),c=t/i}this.setScale(c);let h=e.rbox(),d=0,f=0;1===u?(d=-h.x+t+(s-h.width)/2,f=-h.y+t+(a-h.height)/2):2===u?(d=-h.x+t,f=-h.y+t+(a-h.height)/2):3===u&&(d=-h.x+t+(s-h.width)/2,f=-h.y+t),this.translateXY(d,f)}}var u=c,h=n("91d2"),d=n.n(h);class f extends d.a{constructor(t={}){super(),this.opt=t,this.mindMap=t.mindMap,this.isLeftMousedown=!1,this.isRightMousedown=!1,this.mousedownPos={x:0,y:0},this.mousemovePos={x:0,y:0},this.mousemoveOffset={x:0,y:0},this.bindFn(),this.bind()}bindFn(){this.onBodyClick=this.onBodyClick.bind(this),this.onDrawClick=this.onDrawClick.bind(this),this.onMousedown=this.onMousedown.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onMousewheel=this.onMousewheel.bind(this),this.onContextmenu=this.onContextmenu.bind(this),this.onSvgMousedown=this.onSvgMousedown.bind(this),this.onKeyup=this.onKeyup.bind(this),this.onMouseenter=this.onMouseenter.bind(this),this.onMouseleave=this.onMouseleave.bind(this)}bind(){document.body.addEventListener("click",this.onBodyClick),this.mindMap.svg.on("click",this.onDrawClick),this.mindMap.el.addEventListener("mousedown",this.onMousedown),this.mindMap.svg.on("mousedown",this.onSvgMousedown),window.addEventListener("mousemove",this.onMousemove),window.addEventListener("mouseup",this.onMouseup),this.mindMap.el.addEventListener("wheel",this.onMousewheel),this.mindMap.svg.on("contextmenu",this.onContextmenu),this.mindMap.svg.on("mouseenter",this.onMouseenter),this.mindMap.svg.on("mouseleave",this.onMouseleave),window.addEventListener("keyup",this.onKeyup)}unbind(){document.body.removeEventListener("click",this.onBodyClick),this.mindMap.svg.off("click",this.onDrawClick),this.mindMap.el.removeEventListener("mousedown",this.onMousedown),window.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("mouseup",this.onMouseup),this.mindMap.el.removeEventListener("wheel",this.onMousewheel),this.mindMap.svg.off("contextmenu",this.onContextmenu),this.mindMap.svg.off("mouseenter",this.onMouseenter),this.mindMap.svg.off("mouseleave",this.onMouseleave),window.removeEventListener("keyup",this.onKeyup)}onDrawClick(t){this.emit("draw_click",t)}onBodyClick(t){this.emit("body_click",t)}onSvgMousedown(t){this.emit("svg_mousedown",t)}onMousedown(t){1===t.which?this.isLeftMousedown=!0:3===t.which&&(this.isRightMousedown=!0),this.mousedownPos.x=t.clientX,this.mousedownPos.y=t.clientY,this.emit("mousedown",t,this)}onMousemove(t){let{useLeftKeySelectionRightKeyDrag:e}=this.mindMap.opt;this.mousemovePos.x=t.clientX,this.mousemovePos.y=t.clientY,this.mousemoveOffset.x=t.clientX-this.mousedownPos.x,this.mousemoveOffset.y=t.clientY-this.mousedownPos.y,this.emit("mousemove",t,this),(e?this.isRightMousedown:this.isLeftMousedown)&&(t.preventDefault(),this.emit("drag",t,this))}onMouseup(t){this.isLeftMousedown=!1,this.isRightMousedown=!1,this.emit("mouseup",t,this)}onMousewheel(t){let e;t.stopPropagation(),t.preventDefault(),t.ctrlKey?(t.deltaY>0&&(e=s.DIR.UP),t.deltaY<0&&(e=s.DIR.DOWN),t.deltaX>0&&(e=s.DIR.LEFT),t.deltaX<0&&(e=s.DIR.RIGHT)):((t.wheelDeltaY||t.detail)>0&&(e=s.DIR.UP),(t.wheelDeltaY||t.detail)<0&&(e=s.DIR.DOWN),(t.wheelDeltaX||t.detail)>0&&(e=s.DIR.LEFT),(t.wheelDeltaX||t.detail)<0&&(e=s.DIR.RIGHT)),this.emit("mousewheel",t,e,this)}onContextmenu(t){t.preventDefault(),this.emit("contextmenu",t)}onKeyup(t){this.emit("keyup",t)}onMouseenter(t){this.emit("svg_mouseenter",t)}onMouseleave(t){this.emit("svg_mouseleave",t)}}var p=f,g=n("682c"),m=n.n(g);n("293c");const w=["paddingX","paddingY"],y=["backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize"];class v{static setBackgroundStyle(t,e){if(!v.cacheStyle){v.cacheStyle={};let e=window.getComputedStyle(t);y.forEach(t=>{v.cacheStyle[t]=e[t]})}let{backgroundColor:n,backgroundImage:r,backgroundRepeat:i,backgroundPosition:A,backgroundSize:o}=e;t.style.backgroundColor=n,r?(t.style.backgroundImage=`url(${r})`,t.style.backgroundRepeat=i,t.style.backgroundPosition=A,t.style.backgroundSize=o):t.style.backgroundImage="none"}static removeBackgroundStyle(t){y.forEach(e=>{t.style[e]=v.cacheStyle[e]}),v.cacheStyle=null}constructor(t){this.ctx=t}merge(t,e,n){let r=this.ctx.mindMap.themeConfig,i=r.node;if(e||w.includes(t)?i=r:this.ctx.isGeneralization?i=r.generalization:0===this.ctx.layerIndex?i=r.root:1===this.ctx.layerIndex&&(i=r.second),void 0!==n?n:this.ctx.nodeData.data.isActive){if(this.ctx.nodeData.data.activeStyle&&void 0!==this.ctx.nodeData.data.activeStyle[t])return this.ctx.nodeData.data.activeStyle[t];if(i.active&&i.active[t])return i.active[t]}return void 0!==this.getSelfStyle(t)?this.getSelfStyle(t):i[t]}getStyle(t,e,n){return this.merge(t,e,n)}getSelfStyle(t){return this.ctx.nodeData.data[t]}rect(t){this.shape(t),t.radius(this.merge("borderRadius"))}shape(t){t.fill({color:this.merge("fillColor")}),t.stroke({color:this.merge("borderColor"),width:this.merge("borderWidth"),dasharray:this.merge("borderDasharray")})}text(t){t.fill({color:this.merge("color")}).css({"font-family":this.merge("fontFamily"),"font-size":this.merge("fontSize"),"font-weight":this.merge("fontWeight"),"font-style":this.merge("fontStyle"),"text-decoration":this.merge("textDecoration")})}createStyleText(){return`\n color: ${this.merge("color")};\n font-family: ${this.merge("fontFamily")};\n font-size: ${this.merge("fontSize")+"px"};\n font-weight: ${this.merge("fontWeight")};\n font-style: ${this.merge("fontStyle")};\n text-decoration: ${this.merge("textDecoration")}\n `}getTextFontStyle(){return{italic:"italic"===this.merge("fontStyle"),bold:this.merge("fontWeight"),fontSize:this.merge("fontSize"),fontFamily:this.merge("fontFamily")}}domText(t,e=1,n){t.style.fontFamily=this.merge("fontFamily"),t.style.fontSize=this.merge("fontSize")*e+"px",t.style.fontWeight=this.merge("fontWeight")||"normal",t.style.lineHeight=n?this.merge("lineHeight"):"normal",t.style.fontStyle=this.merge("fontStyle")}tagText(t,e){t.fill({color:o[e].color}).css({"font-size":"12px"})}tagRect(t,e){t.fill({color:o[e].background})}iconNode(t){t.attr({fill:this.merge("color")})}line(t,{width:e,color:n,dasharray:r}={}){t.stroke({width:e,color:n,dasharray:r}).fill({color:"none"})}generalizationLine(t){t.stroke({width:this.merge("generalizationLineWidth",!0),color:this.merge("generalizationLineColor",!0)}).fill({color:"none"})}iconBtn(t,e,n){let{color:r,fill:i}=this.ctx.mindMap.opt.expandBtnStyle||{color:"#808080",fill:"#fff"};t.fill({color:r}),e.fill({color:r}),n.fill({color:i})}}v.cacheStyle=null;var b=v;
/*!
* @svgdotjs/svg.js - A lightweight library for manipulating and animating SVG.
* @version 3.1.2
* https://svgjs.dev/
*
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
* BUILT: Wed Jan 26 2022 23:19:07 GMT+0100 (Mitteleuropäische Normalzeit)
*/const B={},C=[];function x(t,e){if(Array.isArray(t))for(const n of t)x(n,e);else if("object"!==typeof t)F(Object.getOwnPropertyNames(e)),B[t]=Object.assign(B[t]||{},e);else for(const n in t)x(n,t[n])}function _(t){return B[t]||{}}function E(){return[...new Set(C)]}function F(t){C.push(...t)}function L(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function N(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)e(t[n])&&i.push(t[n]);return i}function S(t){return t%360*Math.PI/180}function U(t){return t.toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()}))}function k(t){return t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))}function Q(t){return t.charAt(0).toUpperCase()+t.slice(1)}function I(t,e,n,r){return null!=e&&null!=n||(r=r||t.bbox(),null==e?e=r.width/r.height*n:null==n&&(n=r.height/r.width*e)),{width:e,height:n}}function T(t,e){const n=t.origin;let r=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",i=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=n&&([r,i]=Array.isArray(n)?n:"object"===typeof n?[n.x,n.y]:[n,n]);const A="string"===typeof r,o="string"===typeof i;if(A||o){const{height:t,width:n,x:s,y:a}=e.bbox();A&&(r=r.includes("left")?s:r.includes("right")?s+n:s+n/2),o&&(i=i.includes("top")?a:i.includes("bottom")?a+t:a+t/2)}return[r,i]}const O="http://www.w3.org/2000/svg",M="http://www.w3.org/1999/xhtml",D="http://www.w3.org/2000/xmlns/",P="http://www.w3.org/1999/xlink",H="http://svgjs.dev/svgjs";const R={window:"undefined"===typeof window?null:window,document:"undefined"===typeof document?null:document};class j{}const z={},q="___SYMBOL___ROOT___";function K(t,e=O){return R.document.createElementNS(e,t)}function G(t,e=!1){if(t instanceof j)return t;if("object"===typeof t)return Y(t);if(null==t)return new z[q];if("string"===typeof t&&"<"!==t.charAt(0))return Y(R.document.querySelector(t));const n=e?R.document.createElement("div"):K("svg");return n.innerHTML=t,t=Y(n.firstChild),n.removeChild(n.firstChild),t}function V(t,e){return e&&e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node?e:K(t)}function W(t){if(!t)return null;if(t.instance instanceof j)return t.instance;if("#document-fragment"===t.nodeName)return new z.Fragment(t);let e=Q(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":z[e]||(e="Dom"),new z[e](t)}let Y=W;function X(t,e=t.name,n=!1){return z[e]=t,n&&(z[q]=t),F(Object.getOwnPropertyNames(t.prototype)),t}function J(t){return z[t]}let Z=1e3;function $(t){return"Svgjs"+Q(t)+Z++}function tt(t){for(let e=t.children.length-1;e>=0;e--)tt(t.children[e]);return t.id?(t.id=$(t.nodeName),t):t}function et(t,e){let n,r;for(t=Array.isArray(t)?t:[t],r=t.length-1;r>=0;r--)for(n in e)t[r].prototype[n]=e[n]}function nt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}function rt(){return this.parent().children()}function it(){return this.parent().index(this)}function At(){return this.siblings()[this.position()+1]}function ot(){return this.siblings()[this.position()-1]}function st(){const t=this.position(),e=this.parent();return e.add(this.remove(),t+1),this}function at(){const t=this.position(),e=this.parent();return e.add(this.remove(),t?t-1:0),this}function lt(){const t=this.parent();return t.add(this.remove()),this}function ct(){const t=this.parent();return t.add(this.remove(),0),this}function ut(t){t=G(t),t.remove();const e=this.position();return this.parent().add(t,e),this}function ht(t){t=G(t),t.remove();const e=this.position();return this.parent().add(t,e+1),this}function dt(t){return t=G(t),t.before(this),this}function ft(t){return t=G(t),t.after(this),this}x("Dom",{siblings:rt,position:it,next:At,prev:ot,forward:st,backward:at,front:lt,back:ct,before:ut,after:ht,insertBefore:dt,insertAfter:ft});const pt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,gt=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,mt=/rgb\((\d+),(\d+),(\d+)\)/,wt=/(#[a-z_][a-z0-9\-_]*)/i,yt=/\)\s*,?\s*/,vt=/\s/g,bt=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Bt=/^rgb\(/,Ct=/^(\s+)?$/,xt=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_t=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Et=/[\s,]+/,Ft=/[MLHVCSQTAZ]/i;function Lt(){const t=this.attr("class");return null==t?[]:t.trim().split(Et)}function Nt(t){return-1!==this.classes().indexOf(t)}function St(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this}function Ut(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this}function kt(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}function Qt(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=U(e);n[e]=this.node.style[t]}return n}if("string"===typeof t)return this.node.style[U(t)];if("object"===typeof t)for(const e in t)this.node.style[U(e)]=null==t[e]||Ct.test(t[e])?"":t[e]}return 2===arguments.length&&(this.node.style[U(t)]=null==e||Ct.test(e)?"":e),this}function It(){return this.css("display","")}function Tt(){return this.css("display","none")}function Ot(){return"none"!==this.css("display")}function Mt(t,e,n){if(null==t)return this.data(L(N(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const n of t)e[n]=this.data(n);return e}if("object"===typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(r){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===n||"string"===typeof e||"number"===typeof e?e:JSON.stringify(e));return this}function Dt(t,e){if("object"===typeof arguments[0])for(const n in t)this.remember(n,t[n]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this}function Pt(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this}function Ht(){return this._memory=this._memory||{}}function Rt(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}function jt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)),r=n.toString(16);return 1===r.length?"0"+r:r}function zt(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function qt(t,e){const n=zt(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:zt(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:zt(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:zt(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:zt(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:zt(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}function Kt(t){return"lab"===t||"xyz"===t||"lch"===t}function Gt(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}x("Dom",{classes:Lt,hasClass:Nt,addClass:St,removeClass:Ut,toggleClass:kt}),x("Dom",{css:Qt,show:It,hide:Tt,visible:Ot}),x("Dom",{data:Mt}),x("Dom",{remember:Dt,forget:Pt,memory:Ht});class Vt{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Vt||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"===typeof t.r&&"number"===typeof t.g&&"number"===typeof t.b}static random(t="vibrant",e,n){const{random:r,round:i,sin:A,PI:o}=Math;if("vibrant"===t){const t=24*r()+57,e=38*r()+45,n=360*r(),i=new Vt(t,e,n,"lch");return i}if("sine"===t){e=null==e?r():e;const t=i(80*A(2*o*e/.5+.01)+150),n=i(50*A(2*o*e/.5+4.6)+200),s=i(100*A(2*o*e/.5+2.3)+150),a=new Vt(t,n,s);return a}if("pastel"===t){const t=8*r()+86,e=17*r()+9,n=360*r(),i=new Vt(t,e,n,"lch");return i}if("dark"===t){const t=10+10*r(),e=50*r()+86,n=360*r(),i=new Vt(t,e,n,"lch");return i}if("rgb"===t){const t=255*r(),e=255*r(),n=255*r(),i=new Vt(t,e,n);return i}if("lab"===t){const t=100*r(),e=256*r()-128,n=256*r()-128,i=new Vt(t,e,n,"lab");return i}if("grey"===t){const t=255*r(),e=new Vt(t,t,t);return e}throw new Error("Unsupported random color mode")}static test(t){return"string"===typeof t&&(bt.test(t)||Bt.test(t))}cmyk(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,A]=[t,e,n].map(t=>t/255),o=Math.min(1-r,1-i,1-A);if(1===o)return new Vt(0,0,0,1,"cmyk");const s=(1-r-o)/(1-o),a=(1-i-o)/(1-o),l=(1-A-o)/(1-o),c=new Vt(s,a,l,o,"cmyk");return c}hsl(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,A]=[t,e,n].map(t=>t/255),o=Math.max(r,i,A),s=Math.min(r,i,A),a=(o+s)/2,l=o===s,c=o-s,u=l?0:a>.5?c/(2-o-s):c/(o+s),h=l?0:o===r?((i-A)/c+(i<A?6:0))/6:o===i?((A-r)/c+2)/6:o===A?((r-i)/c+4)/6:0,d=new Vt(360*h,100*u,100*a,"hsl");return d}init(t=0,e=0,n=0,r=0,i="rgb"){if(t=t||0,this.space)for(const c in this.space)delete this[this.space[c]];if("number"===typeof t)i="string"===typeof r?r:i,r="string"===typeof r?0:r,Object.assign(this,{_a:t,_b:e,_c:n,_d:r,space:i});else if(t instanceof Array)this.space=e||("string"===typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const n=qt(t,e);Object.assign(this,n)}else if("string"===typeof t)if(Bt.test(t)){const e=t.replace(vt,""),[n,r,i]=mt.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!bt.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=gt.exec(Rt(t)).map(e);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:A,_b:o,_c:s,_d:a}=this,l="rgb"===this.space?{r:A,g:o,b:s}:"xyz"===this.space?{x:A,y:o,z:s}:"hsl"===this.space?{h:A,s:o,l:s}:"lab"===this.space?{l:A,a:o,b:s}:"lch"===this.space?{l:A,c:o,h:s}:"cmyk"===this.space?{c:A,m:o,y:s,k:a}:{};Object.assign(this,l)}lab(){const{x:t,y:e,z:n}=this.xyz(),r=116*e-16,i=500*(t-e),A=200*(e-n),o=new Vt(r,i,A,"lab");return o}lch(){const{l:t,a:e,b:n}=this.lab(),r=Math.sqrt(e**2+n**2);let i=180*Math.atan2(n,e)/Math.PI;i<0&&(i*=-1,i=360-i);const A=new Vt(t,r,i,"lch");return A}rgb(){if("rgb"===this.space)return this;if(Kt(this.space)){let{x:t,y:e,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:i,b:A}=this;if("lch"===this.space){const{c:t,h:e}=this,n=Math.PI/180;i=t*Math.cos(n*e),A=t*Math.sin(n*e)}const o=(r+16)/116,s=i/500+o,a=o-A/200,l=16/116,c=.008856,u=7.787;t=.95047*(s**3>c?s**3:(s-l)/u),e=1*(o**3>c?o**3:(o-l)/u),n=1.08883*(a**3>c?a**3:(a-l)/u)}const r=3.2406*t+-1.5372*e+-.4986*n,i=-.9689*t+1.8758*e+.0415*n,A=.0557*t+-.204*e+1.057*n,o=Math.pow,s=.0031308,a=r>s?1.055*o(r,1/2.4)-.055:12.92*r,l=i>s?1.055*o(i,1/2.4)-.055:12.92*i,c=A>s?1.055*o(A,1/2.4)-.055:12.92*A,u=new Vt(255*a,255*l,255*c);return u}if("hsl"===this.space){let{h:t,s:e,l:n}=this;if(t/=360,e/=100,n/=100,0===e){n*=255;const t=new Vt(n,n,n);return t}const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,A=255*Gt(i,r,t+1/3),o=255*Gt(i,r,t),s=255*Gt(i,r,t-1/3),a=new Vt(A,o,s);return a}if("cmyk"===this.space){const{c:t,m:e,y:n,k:r}=this,i=255*(1-Math.min(1,t*(1-r)+r)),A=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,n*(1-r)+r)),s=new Vt(i,A,o);return s}return this}toArray(){const{_a:t,_b:e,_c:n,_d:r,space:i}=this;return[t,e,n,r,i]}toHex(){const[t,e,n]=this._clamped().map(jt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped(),r=`rgb(${t},${e},${n})`;return r}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[r,i,A]=[t,e,n].map(t=>t/255),o=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,s=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,a=A>.04045?Math.pow((A+.055)/1.055,2.4):A/12.92,l=(.4124*o+.3576*s+.1805*a)/.95047,c=(.2126*o+.7152*s+.0722*a)/1,u=(.0193*o+.1192*s+.9505*a)/1.08883,h=l>.008856?Math.pow(l,1/3):7.787*l+16/116,d=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=new Vt(h,d,f,"xyz");return p}_clamped(){const{_a:t,_b:e,_c:n}=this.rgb(),{max:r,min:i,round:A}=Math,o=t=>r(0,i(A(t),255));return[t,e,n].map(o)}}class Wt{constructor(...t){this.init(...t)}clone(){return new Wt(this)}init(t,e){const n={x:0,y:0},r=Array.isArray(t)?{x:t[0],y:t[1]}:"object"===typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==r.x?n.x:r.x,this.y=null==r.y?n.y:r.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){Jt.isMatrixLike(t)||(t=new Jt(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function Yt(t,e){return new Wt(t,e).transform(this.screenCTM().inverse())}function Xt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class Jt{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,r=t.flip&&(e||"y"===t.flip)?-1:1,i=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,A=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,o=t.scale&&t.scale.length?t.scale[0]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleX)?t.scaleX*n:n,s=t.scale&&t.scale.length?t.scale[1]*r:isFinite(t.scale)?t.scale*r:isFinite(t.scaleY)?t.scaleY*r:r,a=t.shear||0,l=t.rotate||t.theta||0,c=new Wt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),u=c.x,h=c.y,d=new Wt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),f=d.x,p=d.y,g=new Wt(t.translate||t.tx||t.translateX,t.ty||t.translateY),m=g.x,w=g.y,y=new Wt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY),v=y.x,b=y.y;return{scaleX:o,scaleY:s,skewX:i,skewY:A,shear:a,theta:l,rx:v,ry:b,tx:m,ty:w,ox:u,oy:h,px:f,py:p}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,n){const r=t.a*e.a+t.c*e.b,i=t.b*e.a+t.d*e.b,A=t.a*e.c+t.c*e.d,o=t.b*e.c+t.d*e.d,s=t.e+t.a*e.e+t.c*e.f,a=t.f+t.b*e.e+t.d*e.f;return n.a=r,n.b=i,n.c=A,n.d=o,n.e=s,n.f=a,n}around(t,e,n){return this.clone().aroundO(t,e,n)}aroundO(t,e,n){const r=t||0,i=e||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Jt(this)}decompose(t=0,e=0){const n=this.a,r=this.b,i=this.c,A=this.d,o=this.e,s=this.f,a=n*A-r*i,l=a>0?1:-1,c=l*Math.sqrt(n*n+r*r),u=Math.atan2(l*r,l*n),h=180/Math.PI*u,d=Math.cos(u),f=Math.sin(u),p=(n*i+r*A)/a,g=i*c/(p*n-r)||A*c/(p*r+n),m=o-t+t*d*c+e*(p*d*c-f*g),w=s-e+t*f*c+e*(p*f*c+d*g);return{scaleX:c,scaleY:g,shear:p,rotate:h,translateX:m,translateY:w,originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new Jt(t);return Xt(this.a,e.a)&&Xt(this.b,e.b)&&Xt(this.c,e.c)&&Xt(this.d,e.d)&&Xt(this.e,e.e)&&Xt(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=Jt.fromArray([1,0,0,1,0,0]);return t=t instanceof Ue?t.matrixify():"string"===typeof t?Jt.fromArray(t.split(Et).map(parseFloat)):Array.isArray(t)?Jt.fromArray(t):"object"===typeof t&&Jt.isMatrixLike(t)?t:"object"===typeof t?(new Jt).transform(t):6===arguments.length?Jt.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,r=this.d,i=this.e,A=this.f,o=t*r-e*n;if(!o)throw new Error("Cannot invert "+this);const s=r/o,a=-e/o,l=-n/o,c=t/o,u=-(s*i+l*A),h=-(a*i+c*A);return this.a=s,this.b=a,this.c=l,this.d=c,this.e=u,this.f=h,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=this,n=t instanceof Jt?t:new Jt(t);return Jt.matrixMultiply(n,e,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=this,n=t instanceof Jt?t:new Jt(t);return Jt.matrixMultiply(e,n,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=S(t);const r=Math.cos(t),i=Math.sin(t),{a:A,b:o,c:s,d:a,e:l,f:c}=this;return this.a=A*r-o*i,this.b=o*r+A*i,this.c=s*r-a*i,this.d=a*r+s*i,this.e=l*r-c*i+n*i-e*r+e,this.f=c*r+l*i-e*i-n*r+n,this}scale(t,e,n,r){return this.clone().scaleO(...arguments)}scaleO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t);const{a:i,b:A,c:o,d:s,e:a,f:l}=this;return this.a=i*t,this.b=A*e,this.c=o*t,this.d=s*e,this.e=a*t-n*t+n,this.f=l*e-r*e+r,this}shear(t,e,n){return this.clone().shearO(t,e,n)}shearO(t,e=0,n=0){const{a:r,b:i,c:A,d:o,e:s,f:a}=this;return this.a=r+i*t,this.c=A+o*t,this.e=s+a*t-n*t,this}skew(t,e,n,r){return this.clone().skewO(...arguments)}skewO(t,e=t,n=0,r=0){3===arguments.length&&(r=n,n=e,e=t),t=S(t),e=S(e);const i=Math.tan(t),A=Math.tan(e),{a:o,b:s,c:a,d:l,e:c,f:u}=this;return this.a=o+s*i,this.b=s+o*A,this.c=a+l*i,this.d=l+a*A,this.e=c+u*i-r*i,this.f=u+c*A-n*A,this}skewX(t,e,n){return this.skew(t,0,e,n)}skewY(t,e,n){return this.skew(0,t,e,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(Jt.isMatrixLike(t)){const e=new Jt(t);return e.multiplyO(this)}const e=Jt.formatTransforms(t),n=this,{x:r,y:i}=new Wt(e.ox,e.oy).transform(n),A=(new Jt).translateO(e.rx,e.ry).lmultiplyO(n).translateO(-r,-i).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(r,i);if(isFinite(e.px)||isFinite(e.py)){const t=new Wt(r,i).transform(A),n=isFinite(e.px)?e.px-t.x:0,o=isFinite(e.py)?e.py-t.y:0;A.translateO(n,o)}return A.translateO(e.tx,e.ty),A}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function Zt(){return new Jt(this.node.getCTM())}function $t(){if("function"===typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new Jt(e)}return new Jt(this.node.getScreenCTM())}function te(){if(!te.nodes){const t=G().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;te.nodes={svg:t,path:e}}if(!te.nodes.svg.node.parentNode){const t=R.document.body||R.document.documentElement;te.nodes.svg.addTo(t)}return te.nodes}function ee(t){return!t.width&&!t.height&&!t.x&&!t.y}function ne(t){return t===R.document||(R.document.documentElement.contains||function(t){while(t.parentNode)t=t.parentNode;return t===R.document}).call(R.document.documentElement,t)}X(Jt,"Matrix");class re{constructor(...t){this.init(...t)}addOffset(){return this.x+=R.window.pageXOffset,this.y+=R.window.pageYOffset,new re(this)}init(t){const e=[0,0,0,0];return t="string"===typeof t?t.split(Et).map(parseFloat):Array.isArray(t)?t:"object"===typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):e,this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ee(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),r=Math.max(this.x+this.width,t.x+t.width)-e,i=Math.max(this.y+this.height,t.y+t.height)-n;return new re(e,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof Jt||(t=new Jt(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;const A=[new Wt(this.x,this.y),new Wt(this.x2,this.y),new Wt(this.x,this.y2),new Wt(this.x2,this.y2)];return A.forEach((function(A){A=A.transform(t),e=Math.min(e,A.x),n=Math.max(n,A.x),r=Math.min(r,A.y),i=Math.max(i,A.y)})),new re(e,r,n-e,i-r)}}function ie(t,e,n){let r;try{if(r=e(t.node),ee(r)&&!ne(t.node))throw new Error("Element not in the dom")}catch(i){r=n(t)}return r}function Ae(){const t=t=>t.getBBox(),e=t=>{try{const e=t.clone().addTo(te().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}},n=ie(this,t,e),r=new re(n);return r}function oe(t){const e=t=>t.getBoundingClientRect(),n=t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)},r=ie(this,e,n),i=new re(r);return t?i.transform(t.screenCTM().inverseO()):i.addOffset()}function se(t,e){const n=this.bbox();return t>n.x&&e>n.y&&t<n.x+n.width&&e<n.y+n.height}x({viewbox:{viewbox(t,e,n,r){return null==t?new re(this.attr("viewBox")):this.attr("viewBox",new re(t,e,n,r))},zoom(t,e){let{width:n,height:r}=this.attr(["width","height"]);if((n||r)&&"string"!==typeof n&&"string"!==typeof r||(n=this.node.clientWidth,r=this.node.clientHeight),!n||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const i=this.viewbox(),A=n/i.width,o=r/i.height,s=Math.min(A,o);if(null==t)return s;let a=s/t;a===1/0&&(a=Number.MAX_SAFE_INTEGER/100),e=e||new Wt(n/2/A+i.x,r/2/o+i.y);const l=new re(i).transform(new Jt({scale:a,origin:e}));return this.viewbox(l)}}}),X(re,"Box");class ae extends Array{constructor(t=[],...e){if(super(t,...e),"number"===typeof t)return this;this.length=0,this.push(...t)}}et([ae],{each(t,...e){return"function"===typeof t?this.map((e,n,r)=>t.call(e,e,n,r)):this.map(n=>n[t](...e))},toArray(){return Array.prototype.concat.apply([],this)}});const le=["toArray","constructor","each"];function ce(t,e){return new ae(L((e||R.document).querySelectorAll(t),(function(t){return W(t)})))}function ue(t){return ce(t,this.node)}function he(t){return W(this.node.querySelector(t))}ae.extend=function(t){t=t.reduce((t,e)=>(le.includes(e)||"_"===e[0]||(t[e]=function(...t){return this.each(e,...t)}),t),{}),et([ae],t)};let de=0;const fe={};function pe(t){let e=t.getEventHolder();return e===R.window&&(e=fe),e.events||(e.events={}),e.events}function ge(t){return t.getEventTarget()}function me(t){let e=t.getEventHolder();e===R.window&&(e=fe),e.events&&(e.events={})}function we(t,e,n,r,i){const A=n.bind(r||t),o=G(t),s=pe(o),a=ge(o);e=Array.isArray(e)?e:e.split(Et),n._svgjsListenerId||(n._svgjsListenerId=++de),e.forEach((function(t){const e=t.split(".")[0],r=t.split(".")[1]||"*";s[e]=s[e]||{},s[e][r]=s[e][r]||{},s[e][r][n._svgjsListenerId]=A,a.addEventListener(e,A,i||!1)}))}function ye(t,e,n,r){const i=G(t),A=pe(i),o=ge(i);("function"!==typeof n||(n=n._svgjsListenerId,n))&&(e=Array.isArray(e)?e:(e||"").split(Et),e.forEach((function(t){const e=t&&t.split(".")[0],s=t&&t.split(".")[1];let a,l;if(n)A[e]&&A[e][s||"*"]&&(o.removeEventListener(e,A[e][s||"*"][n],r||!1),delete A[e][s||"*"][n]);else if(e&&s){if(A[e]&&A[e][s]){for(l in A[e][s])ye(o,[e,s].join("."),l);delete A[e][s]}}else if(s)for(t in A)for(a in A[t])s===a&&ye(o,[t,s].join("."));else if(e){if(A[e]){for(a in A[e])ye(o,[e,a].join("."));delete A[e]}}else{for(t in A)ye(o,t);me(i)}})))}function ve(t,e,n,r){const i=ge(t);return e instanceof R.window.Event||(e=new R.window.CustomEvent(e,{detail:n,cancelable:!0,...r})),i.dispatchEvent(e),e}class be extends j{addEventListener(){}dispatch(t,e,n){return ve(this,t,e,n)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const n=e[t.type];for(const r in n)for(const e in n[r])n[r][e](t);return!t.defaultPrevented}fire(t,e,n){return this.dispatch(t,e,n),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,n){return ye(this,t,e,n),this}on(t,e,n,r){return we(this,t,e,n,r),this}removeEventListener(){}}function Be(){}X(be,"EventTarget");const Ce={duration:400,ease:">",delay:0},xe={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class _e extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"===typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Et).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Ee{constructor(...t){this.init(...t)}convert(t){return new Ee(this.value,t)}divide(t){return t=new Ee(t),new Ee(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"===typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"===typeof t?(e=t.match(pt),e&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5])):t instanceof Ee&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Ee(t),new Ee(this-t,this.unit||t.unit)}plus(t){return t=new Ee(t),new Ee(this+t,this.unit||t.unit)}times(t){return t=new Ee(t),new Ee(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Fe=[];function Le(t){Fe.push(t)}function Ne(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=xt.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return t}if(t instanceof Array)return t.reduce((t,e)=>(t[e]=this.attr(e),t),{});if("object"===typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return e=this.node.getAttribute(t),null==e?xe[t]:xt.test(e)?parseFloat(e):e;e=Fe.reduce((e,n)=>n(t,e,this),e),"number"===typeof e?e=new Ee(e):Vt.isColor(e)?e=new Vt(e):e.constructor===Array&&(e=new _e(e)),"leading"===t?this.leading&&this.leading(e):"string"===typeof n?this.node.setAttributeNS(n,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this}class Se extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return t=G(t),t.removeNamespace&&this.node instanceof R.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return G(t).put(this,e)}children(){return new ae(L(this.node.children,(function(t){return W(t)})))}clear(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this}clone(t=!0){return this.writeDataToDom(),new this.constructor(tt(this.node.cloneNode(t)))}each(t,e){const n=this.children();let r,i;for(r=0,i=n.length;r<i;r++)t.apply(n[r],[r,n]),e&&n[r].each(t,e);return this}element(t,e){return this.put(new Se(K(t),e))}first(){return W(this.node.firstChild)}get(t){return W(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,M)}id(t){return"undefined"!==typeof t||this.node.id||(this.node.id=$(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return W(this.node.lastChild)}matches(t){const e=this.node,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return n&&n.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=W(e.node.parentNode),!t)return e;do{if("string"===typeof t?e.matches(t):e instanceof t)return e}while(e=W(e.node.parentNode));return e}put(t,e){return t=G(t),this.add(t,e),t}putIn(t,e){return G(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=G(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const n=10**t,r=this.attr(e);for(const i in r)"number"===typeof r[i]&&(r[i]=Math.round(r[i]*n)/n);return this.attr(r),this}svg(t,e){return this.xml(t,e,O)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const n=e.index(this);return e.put(t,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,e,n){if("boolean"===typeof t&&(n=e,e=t,t=null),null==t||"function"===typeof t){e=null==e||e,this.writeDataToDom();let n=this;if(null!=t){if(n=W(n.node.cloneNode(!0)),e){const e=t(n);if(n=e||n,!1===e)return""}n.each((function(){const e=t(this),n=e||this;!1===e?this.remove():e&&this!==n&&this.replace(n)}),!0)}return e?n.node.outerHTML:n.node.innerHTML}e=null!=e&&e;const r=K("wrapper",n),i=R.document.createDocumentFragment();r.innerHTML=t;for(let o=r.children.length;o--;)i.appendChild(r.firstElementChild);const A=this.parent();return e?this.replace(i)&&A:this.add(i)}}et(Se,{attr:Ne,find:ue,findOne:he}),X(Se,"Dom");class Ue extends Se{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Ee(t).plus(this.x()))}dy(t=0){return this.y(new Ee(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"===typeof t;e||(t=G(t));const n=new ae;let r=this;while((r=r.parent())&&r.node!==R.document&&"#document-fragment"!==r.nodeName){if(n.push(r),!e&&r.node===t.node)break;if(e&&r.matches(t))break;if(r.node===this.root().node)return null}return n}reference(t){if(t=this.attr(t),!t)return null;const e=(t+"").match(wt);return e?G(e[1]):null}root(){const t=this.parent(J(q));return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=I(this,t,e);return this.width(new Ee(n.width)).height(new Ee(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}et(Ue,{bbox:Ae,rbox:oe,inside:se,point:Yt,ctm:Zt,screenCTM:$t}),X(Ue,"Element");const ke={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if("undefined"===typeof e)return this.attr(t);if("string"===typeof e||e instanceof Vt||Vt.isRgb(e)||e instanceof Ue)this.attr(t,e);else for(n=ke[t].length-1;n>=0;n--)null!=e[ke[t][n]]&&this.attr(ke.prefix(t,ke[t][n]),e[ke[t][n]]);return this},x(["Element","Runner"],e)})),x(["Element","Runner"],{matrix:function(t,e,n,r,i,A){return null==t?new Jt(this):this.attr("transform",new Jt(t,e,n,r,i,A))},rotate:function(t,e,n){return this.transform({rotate:t,ox:e,oy:n},!0)},skew:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:n},!0):this.transform({skew:[t,e],ox:n,oy:r},!0)},shear:function(t,e,n){return this.transform({shear:t,ox:e,oy:n},!0)},scale:function(t,e,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:n},!0):this.transform({scale:[t,e],ox:n,oy:r},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),x("radius",{radius:function(t,e=t){const n=(this._element||this).type;return"radialGradient"===n?this.attr("r",new Ee(t)):this.rx(t).ry(e)}}),x("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Wt(this.node.getPointAtLength(t))}}),x(["Element","Runner"],{font:function(t,e){if("object"===typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}});const Qe=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(t,e){const n=function(t){return null===t?this.off(e):this.on(e,t),this};return t[e]=n,t}),{});function Ie(){return this.attr("transform",null)}function Te(){const t=(this.attr("transform")||"").split(yt).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Et).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(Jt.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new Jt);return t}function Oe(t,e){if(this===t)return this;const n=this.screenCTM(),r=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(r.multiply(n)),this}function Me(t){return this.toParent(this.root(),t)}function De(t,e){if(null==t||"string"===typeof t){const e=new Jt(this).decompose();return null==t?e:e[t]}Jt.isMatrixLike(t)||(t={...t,origin:T(t,this)});const n=!0===e?this:e||!1,r=new Jt(n).transform(t);return this.attr("transform",r)}x("Element",Qe),x("Element",{untransform:Ie,matrixify:Te,toParent:Oe,toRoot:Me,transform:De});class Pe extends Ue{flatten(t=this,e){return this.each((function(){if(this instanceof Pe)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each((function(n,r){return r[r.length-n-1].toParent(t,e)})),this.remove()}}X(Pe,"Container");class He extends Pe{constructor(t,e=t){super(V("defs",t),e)}flatten(){return this}ungroup(){return this}}X(He,"Defs");class Re extends Ue{}function je(t){return this.attr("rx",t)}function ze(t){return this.attr("ry",t)}function qe(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Ke(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ge(t){return this.attr("cx",t)}function Ve(t){return this.attr("cy",t)}function We(t){return null==t?2*this.rx():this.rx(new Ee(t).divide(2))}function Ye(t){return null==t?2*this.ry():this.ry(new Ee(t).divide(2))}X(Re,"Shape");var Xe={__proto__:null,rx:je,ry:ze,x:qe,y:Ke,cx:Ge,cy:Ve,width:We,height:Ye};class Je extends Re{constructor(t,e=t){super(V("ellipse",t),e)}size(t,e){const n=I(this,t,e);return this.rx(new Ee(n.width).divide(2)).ry(new Ee(n.height).divide(2))}}et(Je,Xe),x("Container",{ellipse:nt((function(t=0,e=t){return this.put(new Je).size(t,e).move(0,0)}))}),X(Je,"Ellipse");class Ze extends Se{constructor(t=R.document.createDocumentFragment()){super(t)}xml(t,e,n){if("boolean"===typeof t&&(n=e,e=t,t=null),null==t||"function"===typeof t){const t=new Se(K("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}function $e(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Ee(t),fy:new Ee(e)}):this.attr({x1:new Ee(t),y1:new Ee(e)})}function tn(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Ee(t),cy:new Ee(e)}):this.attr({x2:new Ee(t),y2:new Ee(e)})}X(Ze,"Fragment");var en={__proto__:null,from:$e,to:tn};class nn extends Pe{constructor(t,e){super(V(t+"Gradient","string"===typeof t?null:t),e)}attr(t,e,n){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,n)}bbox(){return new re}targets(){return ce('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(t){return this.clear(),"function"===typeof t&&t.call(this,this),this}url(){return'url("#'+this.id()+'")'}}et(nn,en),x({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:nt((function(t,e){return this.put(new nn(t)).update(e)}))}}),X(nn,"Gradient");class rn extends Pe{constructor(t,e=t){super(V("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new re}targets(){return ce('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(t){return this.clear(),"function"===typeof t&&t.call(this,this),this}url(){return'url("#'+this.id()+'")'}}x({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:nt((function(t,e,n){return this.put(new rn).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),X(rn,"Pattern");class An extends Re{constructor(t,e=t){super(V("image",t),e)}load(t,e){if(!t)return this;const n=new R.window.Image;return we(n,"load",(function(t){const r=this.parent(rn);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof rn&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"===typeof e&&e.call(this,t)}),this),we(n,"load error",(function(){ye(n)})),this.attr("href",n.src=t,P)}}Le((function(t,e,n){return"fill"!==t&&"stroke"!==t||_t.test(e)&&(e=n.root().defs().image(e)),e instanceof An&&(e=n.root().defs().pattern(0,0,t=>{t.add(e)})),e})),x({Container:{image:nt((function(t,e){return this.put(new An).size(0,0).load(t,e)}))}}),X(An,"Image");class on extends _e{bbox(){let t=-1/0,e=-1/0,n=1/0,r=1/0;return this.forEach((function(i){t=Math.max(i[0],t),e=Math.max(i[1],e),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new re(n,r,t-n,e-r)}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+t,this[r][1]+e];return this}parse(t=[0,0]){const e=[];t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Et).map(parseFloat),t.length%2!==0&&t.pop();for(let n=0,r=t.length;n<r;n+=2)e.push([t[n],t[n+1]]);return e}size(t,e){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*t/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*e/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,n=this.length;e<n;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){Jt.isMatrixLike(t)||(t=new Jt(t));for(let e=this.length;e--;){const[n,r]=this[e];this[e][0]=t.a*n+t.c*r+t.e,this[e][1]=t.b*n+t.d*r+t.f}return this}}const sn=on;function an(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function ln(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function cn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function un(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}var hn={__proto__:null,MorphArray:sn,x:an,y:ln,width:cn,height:un};class dn extends Re{constructor(t,e=t){super(V("line",t),e)}array(){return new on([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,n,r){return null==t?this.array():(t="undefined"!==typeof e?{x1:t,y1:e,x2:n,y2:r}:new on(t).toLine(),this.attr(t))}size(t,e){const n=I(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}et(dn,hn),x({Container:{line:nt((function(...t){return dn.prototype.plot.apply(this.put(new dn),null!=t[0]?t:[0,0,0,0])}))}}),X(dn,"Line");class fn extends Pe{constructor(t,e=t){super(V("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"===typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function pn(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}x({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:nt((function(t,e,n){return this.put(new fn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof fn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),X(fn,"Marker");const gn={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,r){return function(i){return i<0?t>0?e/t*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):t<1?(1-e)/(1-t)*i+(e-t)/(1-t):1:3*i*(1-i)**2*e+3*i**2*(1-i)*r+i**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let n=t;return"none"===e?--n:"both"===e&&++n,(r,i=!1)=>{let A=Math.floor(r*t);const o=r*A%1===0;return"start"!==e&&"both"!==e||++A,i&&o&&--A,r>=0&&A<0&&(A=0),r<=1&&A>n&&(A=n),A/n}}};class mn{done(){return!1}}class wn extends mn{constructor(t=Ce.ease){super(),this.ease=gn[t]||t}step(t,e,n){return"number"!==typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class yn extends mn{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function vn(){const t=(this._duration||500)/1e3,e=this._overshoot||0,n=1e-10,r=Math.PI,i=Math.log(e/100+n),A=-i/Math.sqrt(r*r+i*i),o=3.9/(A*t);this.d=2*A*o,this.k=o*o}class bn extends yn{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,n,r){if("string"===typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;n>100&&(n=16),n/=1e3;const i=r.velocity||0,A=-this.d*i-this.k*(t-e),o=t+i*n+A*n*n/2;return r.velocity=i+A*n,r.done=Math.abs(e-o)+Math.abs(i)<.002,r.done?e:o}}et(bn,{duration:pn("_duration",vn),overshoot:pn("_overshoot",vn)});class Bn extends yn{constructor(t=.1,e=.01,n=0,r=1e3){super(),this.p(t).i(e).d(n).windup(r)}step(t,e,n,r){if("string"===typeof t)return t;if(r.done=n===1/0,n===1/0)return e;if(0===n)return t;const i=e-t;let A=(r.integral||0)+i*n;const o=(i-(r.error||0))/n,s=this._windup;return!1!==s&&(A=Math.max(-s,Math.min(A,s))),r.error=i,r.integral=A,r.done=Math.abs(i)<.001,r.done?e:t+(this.P*i+this.I*A+this.D*o)}}et(Bn,{windup:pn("_windup"),p:pn("P"),i:pn("I"),d:pn("D")});const Cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},xn={M:function(t,e,n){return e.x=n.x=t[0],e.y=n.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,n){return e.x=n.x,e.y=n.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},_n="mlhvqtcsaz".split("");for(let su=0,au=_n.length;su<au;++su)xn[_n[su]]=function(t){return function(e,n,r){if("H"===t)e[0]=e[0]+n.x;else if("V"===t)e[0]=e[0]+n.y;else if("A"===t)e[5]=e[5]+n.x,e[6]=e[6]+n.y;else for(let t=0,i=e.length;t<i;++t)e[t]=e[t]+(t%2?n.y:n.x);return xn[t](e,n,r)}}(_n[su].toUpperCase());function En(t){const e=t.segment[0];return xn[e](t.segment.slice(1),t.p,t.p0)}function Fn(t){return t.segment.length&&t.segment.length-1===Cn[t.segment[0].toUpperCase()]}function Ln(t,e){t.inNumber&&Nn(t,!1);const n=Ft.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function Nn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,Fn(t)&&Sn(t)}function Sn(t){t.inSegment=!1,t.absolute&&(t.segment=En(t)),t.segments.push(t.segment)}function Un(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function kn(t){return"E"===t.lastToken.toUpperCase()}function Qn(t,e=!0){let n=0,r="";const i={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new Wt,p:new Wt};while(i.lastToken=r,r=t.charAt(n++))if(i.inSegment||!Ln(i,r))if("."!==r)if(isNaN(parseInt(r)))if(" "!==r&&","!==r)if("-"!==r)if("E"!==r.toUpperCase()){if(Ft.test(r)){if(i.inNumber)Nn(i,!1);else{if(!Fn(i))throw new Error("parser Error");Sn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!kn(i)){Nn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else i.inNumber&&Nn(i,!1);else{if("0"===i.number||Un(i)){i.inNumber=!0,i.number=r,Nn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){Nn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&Nn(i,!1),i.inSegment&&Fn(i)&&Sn(i),i.segments}function In(t){let e="";for(let n=0,r=t.length;n<r;n++)e+=t[n][0],null!=t[n][1]&&(e+=t[n][1],null!=t[n][2]&&(e+=" ",e+=t[n][2],null!=t[n][3]&&(e+=" ",e+=t[n][3],e+=" ",e+=t[n][4],null!=t[n][5]&&(e+=" ",e+=t[n][5],e+=" ",e+=t[n][6],null!=t[n][7]&&(e+=" ",e+=t[n][7])))));return e+" "}class Tn extends _e{bbox(){return te().path.setAttribute("d",this.toString()),new re(te.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let r,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]+=t,this[i][2]+=e):"H"===r?this[i][1]+=t:"V"===r?this[i][1]+=e:"C"===r||"S"===r||"Q"===r?(this[i][1]+=t,this[i][2]+=e,this[i][3]+=t,this[i][4]+=e,"C"===r&&(this[i][5]+=t,this[i][6]+=e)):"A"===r&&(this[i][6]+=t,this[i][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),Qn(t)}size(t,e){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*t/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*e/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*t/n.width+n.x,this[r][2]=(this[r][2]-n.y)*e/n.height+n.y,this[r][3]=(this[r][3]-n.x)*t/n.width+n.x,this[r][4]=(this[r][4]-n.y)*e/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*t/n.width+n.x,this[r][6]=(this[r][6]-n.y)*e/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*t/n.width,this[r][2]=this[r][2]*e/n.height,this[r][6]=(this[r][6]-n.x)*t/n.width+n.x,this[r][7]=(this[r][7]-n.y)*e/n.height+n.y);return this}toString(){return In(this)}}const On=t=>{const e=typeof t;return"number"===e?Ee:"string"===e?Vt.isColor(t)?Vt:Et.test(t)?Ft.test(t)?Tn:_e:pt.test(t)?Ee:Dn:jn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_e:"object"===e?Rn:Dn};class Mn{constructor(t){this._stepper=t||new wn("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){const t=this._context.map(this._stepper.done).reduce((function(t,e){return t&&e}),!0);return t}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(On(t));let e=new this._type(t);return this._type===Vt&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Rn&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map((function(t){return t.done=!0,t})),e}}class Dn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Pn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Pn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Pn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Hn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Rn{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let n=0,r=e.length;n<r;++n){if(e[n+1]===t[n+1]){if(e[n+1]===Vt&&t[n+7]!==e[n+7]){const e=t[n+7],r=new Vt(this.values.splice(n+3,5))[e]().toArray();this.values.splice(n+3,0,...r)}n+=e[n+2]+2;continue}if(!t[n+1])return this;const r=(new t[n+1]).toArray(),i=e[n+2]+3;e.splice(n,i,t[n],t[n+1],t[n+2],...r),n+=e[n+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const n in t){const r=On(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(Hn),this.values=e.reduce((t,e)=>t.concat(e),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;while(e.length){const n=e.shift(),r=e.shift(),i=e.shift(),A=e.splice(0,i);t[n]=new r(A)}return t}}const jn=[Dn,Pn,Rn];function zn(t=[]){jn.push(...[].concat(t))}function qn(){et(jn,{to(t){return(new Mn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,n,r,i){const A=function(t,A){return r.step(t,e[A],n,i[A],i)};return this.fromArray(t.map(A))}})}class Kn extends Re{constructor(t,e=t){super(V("path",t),e)}array(){return this._array||(this._array=new Tn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"===typeof t?t:this._array=new Tn(t))}size(t,e){const n=I(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function Gn(){return this._array||(this._array=new on(this.attr("points")))}function Vn(){return delete this._array,this}function Wn(t,e){return this.attr("points",this.array().move(t,e))}function Yn(t){return null==t?this.array():this.clear().attr("points","string"===typeof t?t:this._array=new on(t))}function Xn(t,e){const n=I(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Kn.prototype.MorphArray=Tn,x({Container:{path:nt((function(t){return this.put(new Kn).plot(t||new Tn)}))}}),X(Kn,"Path");var Jn={__proto__:null,array:Gn,clear:Vn,move:Wn,plot:Yn,size:Xn};class Zn extends Re{constructor(t,e=t){super(V("polygon",t),e)}}x({Container:{polygon:nt((function(t){return this.put(new Zn).plot(t||new on)}))}}),et(Zn,hn),et(Zn,Jn),X(Zn,"Polygon");class $n extends Re{constructor(t,e=t){super(V("polyline",t),e)}}x({Container:{polyline:nt((function(t){return this.put(new $n).plot(t||new on)}))}}),et($n,hn),et($n,Jn),X($n,"Polyline");class tr extends Re{constructor(t,e=t){super(V("rect",t),e)}}et(tr,{rx:je,ry:ze}),x({Container:{rect:nt((function(t,e){return this.put(new tr).size(t,e)}))}}),X(tr,"Rect");class er{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e="undefined"!==typeof t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const nr={nextDraw:null,frames:new er,timeouts:new er,immediates:new er,timer:()=>R.window.performance||R.window.Date,transforms:[],frame(t){const e=nr.frames.push({run:t});return null===nr.nextDraw&&(nr.nextDraw=R.window.requestAnimationFrame(nr._draw)),e},timeout(t,e){e=e||0;const n=nr.timer().now()+e,r=nr.timeouts.push({run:t,time:n});return null===nr.nextDraw&&(nr.nextDraw=R.window.requestAnimationFrame(nr._draw)),r},immediate(t){const e=nr.immediates.push(t);return null===nr.nextDraw&&(nr.nextDraw=R.window.requestAnimationFrame(nr._draw)),e},cancelFrame(t){null!=t&&nr.frames.remove(t)},clearTimeout(t){null!=t&&nr.timeouts.remove(t)},cancelImmediate(t){null!=t&&nr.immediates.remove(t)},_draw(t){let e=null;const n=nr.timeouts.last();while(e=nr.timeouts.shift())if(t>=e.time?e.run():nr.timeouts.push(e),e===n)break;let r=null;const i=nr.frames.last();while(r!==i&&(r=nr.frames.shift()))r.run(t);let A=null;while(A=nr.immediates.shift())A();nr.nextDraw=nr.timeouts.first()||nr.frames.first()?R.window.requestAnimationFrame(nr._draw):null}},rr=function(t){const e=t.start,n=t.runner.duration(),r=e+n;return{start:e,duration:n,end:r,runner:t.runner}},ir=function(){const t=R.window;return(t.performance||t.Date).now()};class Ar extends be{constructor(t=ir){super(),this._timeSource=t,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0,n=t?t.start:this._time;return n+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const n=Math.abs(e);return this.speed(t?-n:n)}schedule(t,e,n){if(null==t)return this._runners.map(rr);let r=0;const i=this.getEndTime();if(e=e||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=e,e=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(t.id);n&&(r=n.start+e,e=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo(),e=t?t.start:this._time;r=e}}t.unschedule(),t.timeline(this);const A=t.persist(),o={persist:null===A?this._persist:A,start:r+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(o),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return nr.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=nr.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let n=e-this._lastSourceTime;t&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let A=this._runners.length;A--;){const t=this._runners[A],e=t.runner,n=this._time-t.start;n<=0&&e.reset()}let i=!1;for(let A=0,o=this._runners.length;A<o;A++){const t=this._runners[A],e=t.runner;let n=r;const s=this._time-t.start;if(s<=0){i=!0;continue}if(s<n&&(n=s),!e.active())continue;const a=e.step(n).done;if(a){if(!0!==t.persist){const n=e.duration()-e.time()+this._time;n+t.persist<this._time&&(e.unschedule(),--A,--o)}}else i=!0}return i&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}}x({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Ar,this._timeline):(this._timeline=t,this)}}});class or extends be{constructor(t){super(),this.id=or.id++,t=null==t?Ce.duration:t,t="function"===typeof t?new yn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"===typeof t&&t,this._isDeclarative=t instanceof yn,this._stepper=this._isDeclarative?t:new wn,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Jt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,A=0;return t=t||Ce.duration,e=e||Ce.delay,n=n||"last","object"!==typeof t||t instanceof mn||(e=t.delay||e,n=t.when||n,i=t.swing||i,r=t.times||r,A=t.wait||A,t=t.duration||Ce.duration),{duration:t,delay:e,swing:i,times:r,wait:A,when:n}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t,e){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,n){const r=or.sanitise(t,e,n),i=new or(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Jt,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new wn(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,n){return"object"===typeof t&&(e=t.swing,n=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),n=this._time-t*e,r=n/this._duration;return Math.min(t+r,this._times)}const n=Math.floor(t),r=t%1,i=e*n+this._duration*r;return this.time(i)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,n=this._duration,r=this._wait,i=this._times,A=this._swing,o=this._reverse;let s;if(null==t){const t=function(t){const e=A*Math.floor(t%(2*(r+n))/(r+n)),i=e&&!o||!e&&o,s=Math.pow(-1,i)*(t%(r+n))/n+i,a=Math.max(Math.min(s,1),0);return a},a=i*(r+n)-r;return s=e<=0?Math.round(t(1e-5)):e<a?t(e):Math.round(t(a-1e-5)),s}const a=Math.floor(this.loops()),l=A&&a%2===0,c=l&&!o||o&&l;return s=a+(c?t:1-t),this.loops(s)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,n,r){this._queue.push({initialiser:t||Be,runner:e||Be,retarget:n,isTransform:r,initialised:!1,finished:!1});const i=this.timeline();return i&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,n){if(t instanceof Ar||(n=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,n),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),n=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const r=this.duration(),i=this._lastTime<=0&&this._time>0,A=this._lastTime<r&&this._time>=r;this._lastTime=this._time,i&&this.fire("start",this);const o=this._isDeclarative;this.done=!o&&!A&&this._time>=r,this._reseted=!1;let s=!1;return(n||o)&&(this._initialise(n),this.transforms=new Jt,s=this._run(o?t:e),this.fire("step",this)),this.done=this.done||s&&o,A&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return"undefined"===typeof t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],r=this._isDeclarative||!n.initialised&&t;t=!n.finished,r&&t&&(n.initialiser.call(this),n.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let n=0,r=this._queue.length;n<r;++n){const r=this._queue[n],i=r.runner.call(this,t);r.finished=r.finished||!0===i,e=e&&r.finished}return e}_tryRetarget(t,e,n){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,n):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}or.id=0;class sr{constructor(t=new Jt,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}et([or,sr],{mergeWith(t){return new sr(t.transforms.lmultiply(this.transforms),t.id)}});const ar=(t,e)=>t.lmultiplyO(e),lr=t=>t.transforms;function cr(){const t=this._transformationRunners.runners,e=t.map(lr).reduce(ar,new Jt);this.transform(e),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class ur{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new sr).forEach(t=>t.clearTransformsFromQueue()),this}edit(t,e){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1,t+1),this.runners.splice(n,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const n=this.runners[e],r=t&&n.done&&t.done&&(!n._timeline||!n._timeline._runnerIds.includes(n.id))&&(!t._timeline||!t._timeline._runnerIds.includes(t.id));if(r){this.remove(n.id);const r=n.mergeWith(t);this.edit(t.id,r),t=r,--e}else t=n}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}x({Element:{animate(t,e,n){const r=or.sanitise(t,e,n),i=this.timeline();return new or(r.duration).loop(r).element(this).timeline(i.play()).schedule(r.delay,r.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter(e=>e.id<=t.id).map(lr).reduce(ar,new Jt)},_addRunner(t){this._transformationRunners.add(t),nr.cancelImmediate(this._frameId),this._frameId=nr.immediate(cr.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new ur).add(new sr(new Jt(this))))}}});const hr=(t,e)=>t.filter(t=>!e.includes(t));et(or,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"===typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new Mn(this._stepper).to(r),A=Object.keys(r);return this.queue((function(){i=i.from(this.element()[t](A))}),(function(e){return this.element()[t](i.at(e).valueOf()),i.done()}),(function(e){const n=Object.keys(e),o=hr(n,A);if(o.length){const e=this.element()[t](o),n=new Rn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const s=new Rn(i.to()).valueOf();Object.assign(s,e),i.to(s),A=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new Mn(this._stepper).to(new Ee(t));return this.queue((function(){n=n.from(this.element().zoom())}),(function(t){return this.element().zoom(n.at(t),e),n.done()}),(function(t,r){e=r,n.to(t)})),this._rememberMorpher("zoom",n),this},transform(t,e,n){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const r=Jt.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new Mn(this._stepper).type(n?Pn:Jt);let A,o,s,a,l;function c(){o=o||this.element(),A=A||T(t,o),l=new Jt(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}function u(c){e||this.clearTransform();const{x:u,y:h}=new Wt(A).transform(o._currentTransform(this));let d=new Jt({...t,origin:[u,h]}),f=this._isDeclarative&&s?s:l;if(n){d=d.decompose(u,h),f=f.decompose(u,h);const t=d.rotate,e=f.rotate,n=[t-360,t,t+360],r=n.map(t=>Math.abs(t-e)),i=Math.min(...r),A=r.indexOf(i);d.rotate=n[A]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&a&&(f.rotate=a)),i.from(f),i.to(d);const p=i.at(c);return a=p.rotate,s=new Jt(p),this.addTransform(s),o._addRunner(this),i.done()}function h(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(A=T(e,o)),t={...e,origin:A}}return this.queue(c,u,h,!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(t,e){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Ee(e),this._tryRetarget(t,e))return this;const n=new Mn(this._stepper).to(e);let r=null;return this.queue((function(){r=this.element()[t](),n.from(r),n.to(r+e)}),(function(e){return this.element()[t](n.at(e)),n.done()}),(function(t){n.to(r+new Ee(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new Mn(this._stepper).to(e);return this.queue((function(){n.from(this.element()[t]())}),(function(e){return this.element()[t](n.at(e)),n.done()})),this._rememberMorpher(t,n),this},_queueNumber(t,e){return this._queueObject(t,new Ee(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let n;return t&&e||(n=this._element.bbox()),t||(t=n.width/n.height*e),e||(e=n.height/n.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,n,r){if(4===arguments.length)return this.plot([t,e,n,r]);if(this._tryRetarget("plot",t))return this;const i=new Mn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){i.from(this._element.array())}),(function(t){return this._element.plot(i.at(t)),i.done()})),this._rememberMorpher("plot",i),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,n,r){return this._queueObject("viewbox",new re(t,e,n,r))},update(t){return"object"!==typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),et(or,{rx:je,ry:ze,from:$e,to:tn}),X(or,"Runner");class dr extends Pe{constructor(t,e=t){super(V("svg",t),e),this.namespace()}defs(){return this.isRoot()?W(this.node.querySelector("defs"))||this.put(new He):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof R.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:O,version:"1.1"}).attr("xmlns:xlink",P,D).attr("xmlns:svgjs",H,D):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,D).attr("xmlns:svgjs",null,D)}root(){return this.isRoot()?this:super.root()}}x({Container:{nested:nt((function(){return this.put(new dr)}))}}),X(dr,"Svg",!0);class fr extends Pe{constructor(t,e=t){super(V("symbol",t),e)}}function pr(t){return!1===this._build&&this.clear(),this.node.appendChild(R.document.createTextNode(t)),this}function gr(){return this.node.getComputedTextLength()}function mr(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function wr(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function yr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function vr(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function br(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function Br(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function Cr(t){return this.attr("x",t)}function xr(t){return this.attr("y",t)}function _r(t,e){return this.ax(t).ay(e)}function Er(t){return this._build=!!t,this}x({Container:{symbol:nt((function(){return this.put(new fr)}))}}),X(fr,"Symbol");var Fr={__proto__:null,plain:pr,length:gr,x:mr,y:wr,move:yr,cx:vr,cy:br,center:Br,ax:Cr,ay:xr,amove:_r,build:Er};class Lr extends Re{constructor(t,e=t){super(V("text",t),e),this.dom.leading=new Ee(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Ee(t),this.rebuild())}rebuild(t){if("boolean"===typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const n=this.dom.leading;this.each((function(r){const i=R.window.getComputedStyle(this.node).getPropertyValue("font-size"),A=n*new Ee(i);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=A:(this.attr("dy",r?A+e:0),e=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Ee(t.leading||1.3),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"!==e[r].nodeName?(r!==n&&3!==e[r].nodeType&&!0===W(e[r]).dom.newLined&&(t+="\n"),t+=e[r].textContent):0===r&&(n=1);return t}if(this.clear().build(!0),"function"===typeof t)t.call(this,this);else{t=(t+"").split("\n");for(let e=0,n=t.length;e<n;e++)this.newLine(t[e])}return this.build(!1).rebuild()}}et(Lr,Fr),x({Container:{text:nt((function(t=""){return this.put(new Lr).text(t)})),plain:nt((function(t=""){return this.put(new Lr).plain(t)}))}}),X(Lr,"Text");class Nr extends Re{constructor(t,e=t){super(V("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Lr))return this;const e=t.index(this),n=R.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Ee(n);return this.dy(e?r:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"===typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}et(Nr,Fr),x({Tspan:{tspan:nt((function(t=""){const e=new Nr;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),X(Nr,"Tspan");class Sr extends Re{constructor(t,e=t){super(V("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Ee(t).divide(2))}}et(Sr,{x:qe,y:Ke,cx:Ge,cy:Ve,width:We,height:Ye}),x({Container:{circle:nt((function(t=0){return this.put(new Sr).size(t).move(0,0)}))}}),X(Sr,"Circle");class Ur extends Pe{constructor(t,e=t){super(V("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ce('svg [clip-path*="'+this.id()+'"]')}}x({Container:{clip:nt((function(){return this.defs().put(new Ur)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof Ur?t:this.parent().clip().add(t);return this.attr("clip-path",'url("#'+e.id()+'")')},unclip(){return this.attr("clip-path",null)}}}),X(Ur,"ClipPath");class kr extends Ue{constructor(t,e=t){super(V("foreignObject",t),e)}}function Qr(t,e){return this.children().forEach((n,r)=>{let i;try{i=n.bbox()}catch(a){return}const A=new Jt(n),o=A.translate(t,e).transform(A.inverse()),s=new Wt(i.x,i.y).transform(o);n.move(s.x,s.y)}),this}function Ir(t){return this.dmove(t,0)}function Tr(t){return this.dmove(0,t)}function Or(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function Mr(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function Dr(t,e,n=this.bbox()){const r=I(this,t,e,n),i=r.width/n.width,A=r.height/n.height;return this.children().forEach((t,e)=>{const r=new Wt(n).transform(new Jt(t).inverse());t.scale(i,A,r.x,r.y)}),this}function Pr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function Hr(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function Rr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}x({Container:{foreignObject:nt((function(t,e){return this.put(new kr).size(t,e)}))}}),X(kr,"ForeignObject");var jr={__proto__:null,dmove:Qr,dx:Ir,dy:Tr,height:Or,move:Mr,size:Dr,width:Pr,x:Hr,y:Rr};class zr extends Pe{constructor(t,e=t){super(V("g",t),e)}}et(zr,jr),x({Container:{group:nt((function(){return this.put(new zr)}))}}),X(zr,"G");class qr extends Pe{constructor(t,e=t){super(V("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,P)}}et(qr,jr),x({Container:{link:nt((function(t){return this.put(new qr).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const n=e.index(t);return e.add(this,n),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new qr,this.wrap(e)),"function"===typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),X(qr,"A");class Kr extends Pe{constructor(t,e=t){super(V("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ce('svg [mask*="'+this.id()+'"]')}}x({Container:{mask:nt((function(){return this.defs().put(new Kr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Kr?t:this.parent().mask().add(t);return this.attr("mask",'url("#'+e.id()+'")')},unmask(){return this.attr("mask",null)}}}),X(Kr,"Mask");class Gr extends Ue{constructor(t,e=t){super(V("stop",t),e)}update(t){return("number"===typeof t||t instanceof Ee)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Ee(t.offset)),this}}function Vr(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const r in e)n+=k(r)+":"+e[r]+";";return n+="}",n}x({Gradient:{stop:function(t,e,n){return this.put(new Gr).update(t,e,n)}}}),X(Gr,"Stop");class Wr extends Ue{constructor(t,e=t){super(V("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(Vr(t,e))}}x("Dom",{style(t,e){return this.put(new Wr).rule(t,e)},fontface(t,e,n){return this.put(new Wr).font(t,e,n)}}),X(Wr,"Style");class Yr extends Lr{constructor(t,e=t){super(V("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}x({Container:{textPath:nt((function(t,e){return t instanceof Lr||(t=this.text(t)),t.path(e)}))},Text:{path:nt((function(t,e=!0){const n=new Yr;let r;if(t instanceof Kn||(t=this.defs().path(t)),n.attr("href","#"+t,P),e)while(r=this.node.firstChild)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:nt((function(t){return t instanceof Lr||(t=(new Lr).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ce("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Yr.prototype.MorphArray=Tn,X(Yr,"TextPath");class Xr extends Re{constructor(t,e=t){super(V("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,P)}}x({Container:{use:nt((function(t,e){return this.put(new Xr).use(t,e)}))}}),X(Xr,"Use");const Jr=G;et([dr,fr,An,rn,fn],_("viewbox")),et([dn,$n,Zn,Kn],_("marker")),et(Lr,_("Text")),et(Kn,_("Path")),et(He,_("Defs")),et([Lr,Nr],_("Tspan")),et([tr,Je,nn,or],_("radius")),et(be,_("EventTarget")),et(Se,_("Dom")),et(Ue,_("Element")),et(Re,_("Shape")),et([Pe,Ze],_("Container")),et(nn,_("Gradient")),et(or,_("Runner")),ae.extend(E()),zn([Ee,Vt,re,Jt,_e,on,Tn,Wt]),qn();class Zr{constructor(t){this.node=t}getShapePadding(t,e,n,r){const i=this.node.getShape(),A=15,o=5,a=t+2*n,l=e+2*r,c=Math.abs(a-l);switch(i){case s.SHAPE.ROUNDED_RECTANGLE:return{paddingX:e>t?(e-t)/2:0,paddingY:0};case s.SHAPE.DIAMOND:return{paddingX:t/2,paddingY:e/2};case s.SHAPE.PARALLELOGRAM:return{paddingX:n<=0?A:0,paddingY:0};case s.SHAPE.OUTER_TRIANGULAR_RECTANGLE:return{paddingX:n<=0?A:0,paddingY:0};case s.SHAPE.INNER_TRIANGULAR_RECTANGLE:return{paddingX:n<=0?A:0,paddingY:0};case s.SHAPE.ELLIPSE:return{paddingX:n<=0?A:0,paddingY:r<=0?o:0};case s.SHAPE.CIRCLE:return{paddingX:l>a?c/2:0,paddingY:l<a?c/2:0};default:return{paddingX:0,paddingY:0}}}createShape(){const t=this.node.getShape();let{width:e,height:n}=this.node,r=null;return t===s.SHAPE.RECTANGLE?r=(new tr).size(e,n):t===s.SHAPE.DIAMOND?r=this.createDiamond():t===s.SHAPE.PARALLELOGRAM?r=this.createParallelogram():t===s.SHAPE.ROUNDED_RECTANGLE?r=this.createRoundedRectangle():t===s.SHAPE.OCTAGONAL_RECTANGLE?r=this.createOctagonalRectangle():t===s.SHAPE.OUTER_TRIANGULAR_RECTANGLE?r=this.createOuterTriangularRectangle():t===s.SHAPE.INNER_TRIANGULAR_RECTANGLE?r=this.createInnerTriangularRectangle():t===s.SHAPE.ELLIPSE?r=this.createEllipse():t===s.SHAPE.CIRCLE&&(r=this.createCircle()),r}createDiamond(){let{width:t,height:e}=this.node,n=t/2,r=e/2,i=n,A=0,o=t,s=r,a=n,l=e,c=0,u=r;return(new Zn).plot([[i,A],[o,s],[a,l],[c,u]])}createParallelogram(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:n}=this.node;return(new Zn).plot([[t,0],[e,0],[e-t,n],[0,n]])}createRoundedRectangle(){let{width:t,height:e}=this.node,n=e/2;return(new Kn).plot(`\n M${n},0\n L${t-n},0\n A${e/2},${e/2} 0 0,1 ${t-n},${e} \n L${n},${e}\n A${e/2},${e/2} 0 0,1 ${n},0\n `)}createOctagonalRectangle(){let t=5,{width:e,height:n}=this.node;return(new Zn).plot([[0,t],[t,0],[e-t,0],[e,t],[e,n-t],[e-t,n],[t,n],[0,n-t]])}createOuterTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:n}=this.node;return(new Zn).plot([[t,0],[e-t,0],[e,n/2],[e-t,n],[t,n],[0,n/2]])}createInnerTriangularRectangle(){let{paddingX:t}=this.node.getPaddingVale();t=t||this.node.shapePadding.paddingX;let{width:e,height:n}=this.node;return(new Zn).plot([[0,0],[e,0],[e-t/2,n/2],[e,n],[0,n],[t/2,n/2]])}createEllipse(){let{width:t,height:e}=this.node,n=t/2,r=e/2;return(new Kn).plot(`\n M${n},0\n A${n},${r} 0 0,1 ${n},${e} \n M${n},${e} \n A${n},${r} 0 0,1 ${n},0 \n `)}createCircle(){let{width:t,height:e}=this.node,n=t/2,r=e/2;return(new Kn).plot(`\n M${n},0\n A${n},${r} 0 0,1 ${n},${e} \n M${n},${e} \n A${n},${r} 0 0,1 ${n},0 \n `)}}const $r=[s.SHAPE.RECTANGLE,s.SHAPE.DIAMOND,s.SHAPE.PARALLELOGRAM,s.SHAPE.ROUNDED_RECTANGLE,s.SHAPE.OCTAGONAL_RECTANGLE,s.SHAPE.OUTER_TRIANGULAR_RECTANGLE,s.SHAPE.INNER_TRIANGULAR_RECTANGLE,s.SHAPE.ELLIPSE,s.SHAPE.CIRCLE],ti=(t,e,n,r,i,A=0,o=0)=>{let s=!1;if(n&&(s=n(t,e,i,A,o)),!s&&t.children&&t.children.length>0){let e=A+1;t.children.forEach((i,A)=>{ti(i,t,n,r,!1,e,A)})}r&&r(t,e,i,A,o)},ei=(t,e)=>{e(t);let n=[t],r=!1;while(n.length){if(r)break;let t=n.shift();t.children&&t.children.length&&t.children.forEach(t=>{n.push(t),"stop"===e(t)&&(r=!0)})}},ni=(t,e,n,r)=>{let i=t/e,A=[];if(n&&r)if(t<=n&&e<=r)A=[t,e];else{let t=n/r;A=i>t?[i*r,r]:[n,n/i]}else n?A=t<=n?[t,e]:[n,n/i]:r&&(A=e<=r?[t,e]:[i*r,r]);return A},ri=t=>{t=t.replace(/<br>/gim,"\n");let e=document.createElement("div");return e.innerHTML=t,t=e.textContent,t},ii=t=>{try{return JSON.parse(JSON.stringify(t))}catch(e){return null}},Ai=(t,e,n=!1)=>(t.data=ii(e.data),n&&(t.data.isActive=!1),t.children=[],e.children&&e.children.length>0&&e.children.forEach((e,r)=>{t.children[r]=Ai({},e,n)}),t),oi=(t,e,n=!1,r=!1)=>(t.data=ii(e.nodeData?e.nodeData.data:e.data),t.data.id&&!r&&delete t.data.id,t.data.uid&&delete t.data.uid,n&&(t.data.isActive=!1),t.children=[],e.children&&e.children.length>0?e.children.forEach((e,i)=>{t.children[i]=oi({},e,n,r)}):e.nodeData&&e.nodeData.children&&e.nodeData.children.length>0&&e.nodeData.children.forEach((e,i)=>{t.children[i]=oi({},e,n,r)}),t),si=t=>new Promise((e,n)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{try{let t=document.createElement("canvas");t.width=r.width,t.height=r.height;let n=t.getContext("2d");n.drawImage(r,0,0,r.width,r.height),e(t.toDataURL())}catch(t){n(t)}},r.onerror=t=>{n(t)},r.src=t}),ai=(t,e)=>{let n=document.createElement("a");n.href=t,n.download=e,n.click()},li=(t,e=300,n)=>{let r=null;return(...i)=>{r||(r=setTimeout(()=>{t.call(n,...i),r=null},e))}},ci=(t,e=(()=>{}))=>{let n=0,r=t.length;if(r<=0)return e();let i=()=>{n>=r?e():(t[n](),setTimeout(()=>{n++,i()},0))};i()},ui=t=>t*(Math.PI/180),hi=t=>t.replace(/([a-z])([A-Z])/g,(...t)=>t[1]+"-"+t[2].toLowerCase());let di=null;const fi=(t,{italic:e,bold:n,fontSize:r,fontFamily:i})=>{const A=pi({italic:e,bold:n,fontSize:r,fontFamily:i});if(!di){const t=document.createElement("canvas");di=t.getContext("2d")}di.save(),di.font=A;const{width:o,actualBoundingBoxAscent:s,actualBoundingBoxDescent:a}=di.measureText(t);di.restore();const l=s+a;return{width:o,height:l}},pi=({italic:t,bold:e,fontSize:n,fontFamily:r})=>`${t?"italic ":""} ${e?"bold ":""} ${n}px ${r} `,gi=function(t,e){let n=!1,r=null,i=()=>{n=!1,e?t.call(e):t()};if("undefined"!==typeof MutationObserver){let t=1,e=new MutationObserver(i),n=document.createTextNode(t);e.observe(n,{characterData:!0}),r=function(){t=(t+1)%2,n.data=t}}else r=setTimeout;return function(){n||(n=!0,r(i,0))}},mi=(t,e)=>{let n=t.elRect,{scaleX:r,scaleY:i,translateX:A,translateY:o}=t.draw.transform(),{left:s,top:a,width:l,height:c}=e,u=(s+l)*r+A,h=(a+c)*i+o;s=s*r+A,a=a*i+o;let d=0,f=0;return s<0&&(d=-s),u>n.width&&(d=-(u-n.width)),a<0&&(f=-a),h>n.height&&(f=-(h-n.height)),{isOuter:0!==d||0!==f,offsetLeft:d,offsetTop:f}};let wi=null;const yi=t=>(wi||(wi=document.createElement("div")),wi.innerHTML=t,wi.textContent),vi=t=>new Promise((e,n)=>{let r=new FileReader;r.onload=t=>{e(t.target.result)},r.onerror=t=>{n(t)},r.readAsDataURL(t)});function bi(){return!!this.nodeData.data.generalization}function Bi(){!this.isGeneralization&&this.checkHasGeneralization()&&(this._generalizationLine||(this._generalizationLine=this.draw.path()),this._generalizationNode||(this._generalizationNode=new uA({data:{data:this.nodeData.data.generalization},uid:this.mindMap.uid++,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,isGeneralization:!0}),this._generalizationNodeWidth=this._generalizationNode.width,this._generalizationNodeHeight=this._generalizationNode.height,this._generalizationNode.generalizationBelongNode=this,this.nodeData.data.generalization.isActive&&this.renderer.addActiveNode(this._generalizationNode)))}function Ci(){this.removeGeneralization(),this.createGeneralizationNode()}function xi(){if(!this.isGeneralization)return this.checkHasGeneralization()?void(!1!==this.nodeData.data.expand?(this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this,this._generalizationLine,this._generalizationNode),this.style.generalizationLine(this._generalizationLine),this._generalizationNode.render()):this.removeGeneralization()):(this.removeGeneralization(),this._generalizationNodeWidth=0,void(this._generalizationNodeHeight=0))}function _i(){this._generalizationLine&&(this._generalizationLine.remove(),this._generalizationLine=null),this._generalizationNode&&(this.renderer.removeActiveNode(this._generalizationNode),this._generalizationNode.remove(),this._generalizationNode=null),this.generalizationBelongNode&&this.draw.find(".generalization_"+this.generalizationBelongNode.uid).remove()}function Ei(){this._generalizationLine&&this._generalizationLine.hide(),this._generalizationNode&&this._generalizationNode.hide()}function Fi(){this._generalizationLine&&this._generalizationLine.show(),this._generalizationNode&&this._generalizationNode.show()}var Li={checkHasGeneralization:bi,createGeneralizationNode:Bi,updateGeneralization:Ci,renderGeneralization:xi,removeGeneralization:_i,hideGeneralization:Ei,showGeneralization:Fi};const Ni='<svg t="1618141562310" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13476" width="200" height="200"><path d="M475.136 327.168v147.968h-147.968v74.24h147.968v147.968h74.24v-147.968h147.968v-74.24h-147.968v-147.968h-74.24z m36.864-222.208c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13477"></path></svg>',Si='<svg t="1618141589243" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13611" width="200" height="200"><path d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13612"></path><path d="M252.928 474.624h518.144v74.24h-518.144z" p-id="13613"></path></svg>';var Ui={open:Ni,close:Si};function ki(){if(this._openExpandNode)return;let{open:t,close:e}=this.mindMap.opt.expandBtnIcon||{};this._openExpandNode=Jr(t||Ui.open).size(this.expandBtnSize,this.expandBtnSize),this._openExpandNode.x(0).y(-this.expandBtnSize/2),this._closeExpandNode=Jr(e||Ui.close).size(this.expandBtnSize,this.expandBtnSize),this._closeExpandNode.x(0).y(-this.expandBtnSize/2),this._fillExpandNode=(new Sr).size(this.expandBtnSize),this._fillExpandNode.x(0).y(-this.expandBtnSize/2),this.style.iconBtn(this._openExpandNode,this._closeExpandNode,this._fillExpandNode)}function Qi(){let t,{expand:e}=this.nodeData.data;e!==this._lastExpandBtnType&&(this._expandBtn&&this._expandBtn.clear(),this.createExpandNodeContent(),!1===e?(t=this._openExpandNode,this._lastExpandBtnType=!1):(t=this._closeExpandNode,this._lastExpandBtnType=!0),this._expandBtn&&this._expandBtn.add(this._fillExpandNode).add(t))}function Ii(){this._expandBtn&&this.renderer.layout.renderExpandBtn(this,this._expandBtn)}function Ti(){!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot||(this._expandBtn||(this._expandBtn=new zr,this._expandBtn.on("mouseover",t=>{t.stopPropagation(),this._expandBtn.css({cursor:"pointer"})}),this._expandBtn.on("mouseout",t=>{t.stopPropagation(),this._expandBtn.css({cursor:"auto"})}),this._expandBtn.on("click",t=>{t.stopPropagation(),this.mindMap.execCommand("SET_NODE_EXPAND",this,!this.nodeData.data.expand),this.mindMap.emit("expand_btn_click",this)}),this._expandBtn.on("dblclick",t=>{t.stopPropagation()})),this.group.add(this._expandBtn),this._showExpandBtn=!0,this.updateExpandBtnNode(),this.updateExpandBtnPos())}function Oi(){this._expandBtn&&this._showExpandBtn&&(this._expandBtn.remove(),this._showExpandBtn=!1)}function Mi(){this.mindMap.opt.alwaysShowExpandBtn||setTimeout(()=>{this.renderExpandBtn()},0)}function Di(){if(this.mindMap.opt.alwaysShowExpandBtn||this._isMouseenter)return;let{isActive:t,expand:e}=this.nodeData.data;!t&&e&&setTimeout(()=>{this.removeExpandBtn()},0)}var Pi={createExpandNodeContent:ki,updateExpandBtnNode:Qi,updateExpandBtnPos:Ii,renderExpandBtn:Ti,removeExpandBtn:Oi,showExpandBtn:Mi,hideExpandBtn:Di};function Hi(t={}){this.mindMap.execCommand("SET_NODE_DATA",this,t)}function Ri(t,e){this.mindMap.execCommand("SET_NODE_TEXT",this,t,e)}function ji(t){this.mindMap.execCommand("SET_NODE_IMAGE",this,t)}function zi(t){this.mindMap.execCommand("SET_NODE_ICON",this,t)}function qi(t,e){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,t,e)}function Ki(t){this.mindMap.execCommand("SET_NODE_NOTE",this,t)}function Gi(t){this.mindMap.execCommand("SET_NODE_TAG",this,t)}function Vi(t){this.mindMap.execCommand("SET_NODE_SHAPE",this,t)}function Wi(t,e,n){this.mindMap.execCommand("SET_NODE_STYLE",this,t,e,n)}var Yi={setData:Hi,setText:Ri,setImage:ji,setIcon:zi,setHyperlink:qi,setNote:Ki,setTag:Gi,setShape:Vi,setStyle:Wi};const Xi='<svg t="1624174958075" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7982" ><path d="M435.484444 251.733333v68.892445L295.822222 320.682667a168.504889 168.504889 0 0 0-2.844444 336.952889h142.506666v68.892444H295.822222a237.397333 237.397333 0 0 1 0-474.794667h139.662222z m248.945778 0a237.397333 237.397333 0 0 1 0 474.851556H544.654222v-69.006222l139.776 0.056889a168.504889 168.504889 0 0 0 2.844445-336.952889H544.597333V251.676444h139.776z m-25.827555 203.946667a34.474667 34.474667 0 0 1 0 68.892444H321.649778a34.474667 34.474667 0 0 1 0-68.892444h336.952889z" p-id="7983"></path></svg>',Ji='<svg t="1624195132675" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8792" ><path d="M152.768 985.984 152.768 49.856l434.56 0 66.816 0 234.048 267.392 0 66.816 0 601.92L152.768 985.984 152.768 985.984zM654.144 193.088l0 124.16 108.736 0L654.144 193.088 654.144 193.088zM821.312 384.064l-167.168 0L587.328 384.064 587.328 317.312 587.328 116.736 219.584 116.736 219.584 919.04l601.728 0L821.312 384.064 821.312 384.064zM386.688 517.888 319.808 517.888 319.808 450.944l66.816 0L386.624 517.888 386.688 517.888zM386.688 651.584 319.808 651.584 319.808 584.704l66.816 0L386.624 651.584 386.688 651.584zM386.688 785.344 319.808 785.344l0-66.88 66.816 0L386.624 785.344 386.688 785.344zM721.024 517.888 453.632 517.888 453.632 450.944l267.392 0L721.024 517.888 721.024 517.888zM654.144 651.584 453.632 651.584 453.632 584.704l200.512 0L654.144 651.584 654.144 651.584zM620.672 785.344l-167.04 0 0-66.88 167.04 0L620.672 785.344 620.672 785.344z" p-id="8793"></path></svg>',Zi=[{name:"优先级图标",type:"priority",list:[{name:"1",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#E93B30"></path><path d="M580.309333 256h-75.52c-10.666667 29.824-30.165333 55.765333-58.709333 78.165333-28.416 22.314667-54.869333 37.418667-79.146667 45.397334v84.608a320 320 0 0 0 120.234667-70.698667v352.085333H580.266667V256z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg viewBox="0 0 1024 1024"><path d="M511.957333 1024C229.248 1024 0 794.752 0 512S229.248 0 511.957333 0C794.752 0 1024 229.248 1024 512s-229.248 512-512.042667 512z" fill="#FA8D2E"></path><path d="M667.946667 658.602667h-185.301334c4.864-8.533333 11.178667-17.066667 19.072-25.984 7.808-8.874667 26.453333-26.837333 55.936-53.888 29.525333-27.008 49.877333-47.786667 61.226667-62.165334 16.981333-21.717333 29.44-42.453333 37.290667-62.293333 7.808-19.84 11.776-40.746667 11.776-62.677333 0-38.570667-13.738667-70.741333-41.088-96.725334C599.466667 268.928 561.706667 256 513.834667 256c-43.690667 0-80.128 11.136-109.354667 33.578667-29.098667 22.4-46.506667 59.306667-52.010667 110.805333l93.184 9.301333c1.792-27.349333 8.405333-46.890667 19.754667-58.624 11.434667-11.776 26.837333-17.664 46.165333-17.664 19.541333 0 34.858667 5.589333 45.909334 16.768 11.136 11.264 16.682667 27.221333 16.682666 48.042667 0 18.858667-6.4 37.930667-19.242666 57.258667-9.472 14.037333-35.157333 40.533333-77.098667 79.872-52.096 48.554667-87.04 87.509333-104.704 116.821333A226.688 226.688 0 0 0 341.333333 745.429333h326.613334v-86.826666z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#2E66FA"></path><path d="M627.754667 731.733333c-29.354667 25.088-66.901333 37.632-112.725334 37.632-44.928 0-81.792-11.52-110.592-34.773333-33.066667-26.538667-49.877333-64.469333-50.304-114.133333h92.16c0.426667 21.76 7.552 38.314667 21.333334 49.664 12.288 10.88 28.117333 16.341333 47.402666 16.341333 20.309333 0 36.778667-6.101333 49.322667-18.432 12.544-12.330667 18.773333-29.568 18.773333-51.797333 0-21.290667-6.229333-38.186667-18.773333-50.773334-12.544-12.501333-29.866667-18.773333-52.138667-18.773333h-13.525333v-80.042667H512c42.112 0 63.274667-21.034667 63.274667-63.146666 0-20.309333-5.888-36.096-17.706667-47.445334a60.757333 60.757333 0 0 0-43.818667-17.066666c-17.493333 0-32 5.504-43.434666 16.298666-11.562667 10.88-17.792 25.728-18.773334 44.714667H359.68c0.981333-43.946667 16.042667-78.976 45.397333-104.96 29.354667-25.941333 65.706667-39.04 109.226667-39.04 44.928 0 81.792 13.525333 110.592 40.490667 28.8 26.922667 43.306667 61.610667 43.306667 104.149333 0 48.213333-19.413333 82.688-58.154667 103.552 43.52 23.125333 65.28 61.44 65.28 114.858667 0 48.128-15.957333 85.76-47.573333 112.682666z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M600.96 256v309.802667h60.117333v81.536h-60.16v98.218666h-90.154666v-98.218666H311.466667v-81.237334L522.666667 256h78.293333zM510.72 399.104l-112.042667 166.698667h112.042667V399.104z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 512.042667 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M470.912 343.552h175.786667V256H400.256l-47.786667 253.952 75.434667 10.837333c21.205333-23.552 45.269333-35.413333 72.021333-35.413333 21.546667 0 38.997333 7.509333 52.437334 22.4 13.312 15.018667 20.053333 37.418667 20.053333 67.328 0 31.872-6.741333 55.765333-20.181333 71.552-13.397333 15.872-29.866667 23.765333-49.237334 23.765333-17.066667 0-32.085333-6.186667-45.013333-18.432-13.013333-12.373333-20.821333-29.013333-23.466667-50.133333L341.333333 611.498667c5.546667 40.874667 22.485333 73.429333 50.730667 97.621333 28.330667 24.32 64.938667 36.437333 109.866667 36.437333 56.149333 0 100.053333-21.546667 131.754666-64.554666a176.64 176.64 0 0 0 34.816-107.52c0-48.042667-14.378667-87.210667-43.221333-117.333334-28.8-30.208-63.957333-45.312-105.514667-45.312-21.674667 0-42.922667 5.248-63.829333 15.616l14.976-82.901333z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.205333 229.248 0 512 0c282.88 0 512 229.205333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M519.210667 256c36.992 0 67.626667 10.368 91.776 31.189333 24.192 20.821333 39.68 51.029333 46.293333 90.709334l-90.197333 9.984c-2.176-18.56-7.978667-32.298667-17.28-41.173334-9.258667-8.874667-21.418667-13.226667-36.224-13.226666-19.754667 0-36.437333 8.789333-50.048 26.453333-13.696 17.664-22.314667 54.613333-25.856 110.549333 23.296-27.52 52.138667-41.258667 86.656-41.258666 38.997333 0 72.362667 14.805333 100.181333 44.544 27.733333 29.696 41.685333 68.010667 41.685333 114.858666 0 49.877333-14.634667 89.856-43.818666 119.936-29.226667 30.208-66.730667 45.226667-112.554667 45.226667-49.066667 0-89.429333-19.072-121.130667-57.344C357.12 658.218667 341.333333 595.541333 341.333333 508.416c0-89.344 16.469333-153.813333 49.493334-193.194667C423.722667 275.754667 466.56 256 519.168 256z m-9.472 241.834667c-17.962667 0-33.066667 6.997333-45.525334 21.12-12.330667 14.037333-18.56 34.858667-18.56 62.293333 0 30.421333 6.912 53.76 20.906667 70.4 13.952 16.469333 29.866667 24.746667 47.786667 24.746667 17.28 0 31.701333-6.826667 43.178666-20.309334 11.52-13.525333 17.237333-35.669333 17.237334-66.56 0-31.658667-6.186667-54.869333-18.517334-69.546666a58.197333 58.197333 0 0 0-46.506666-22.144z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.752 0 512S229.248 0 512.042667 0C794.752 0 1024 229.248 1024 512s-229.248 512-511.957333 512z" fill="#6D768D"></path><path d="M673.024 273.066667H354.133333v86.869333h212.224a691.2 691.2 0 0 0-104.746666 187.989333c-26.026667 70.101333-39.978667 138.88-41.429334 206.293334h89.6c-0.298667-42.922667 6.698667-91.776 21.034667-146.474667a654.72 654.72 0 0 1 62.08-154.965333c27.136-48.554667 53.888-85.76 80.128-111.701334V273.066667z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z" fill="#6D768D"></path><path d="M512.426667 256c46.208 0 82.048 11.861333 107.605333 35.541333 25.6 23.68 38.314667 53.674667 38.314667 89.898667 0 22.613333-5.802667 42.666667-17.578667 60.330667a111.445333 111.445333 0 0 1-49.450667 40.277333c26.965333 10.837333 47.36 26.752 61.312 47.658667 13.994667 20.906667 21.034667 45.013333 21.034667 72.362666 0 45.098667-14.336 81.834667-42.965333 109.952-28.586667 28.245333-66.602667 42.368-114.090667 42.368-44.245333 0-81.066667-11.648-110.464-34.986666-34.645333-27.52-52.010667-65.28-52.010667-113.365334 0-26.368 6.528-50.645333 19.626667-72.746666 13.056-22.144 33.578667-39.210667 61.696-51.242667-24.064-10.154667-41.557333-24.192-52.48-41.941333a109.824 109.824 0 0 1-16.512-58.666667c0-36.224 12.757333-66.218667 37.973333-89.898667 25.386667-23.68 61.354667-35.541333 108.032-35.541333z m1.28 265.429333c-22.784 0-39.722667 7.978667-50.901334 23.893334-11.136 15.786667-16.64 33.066667-16.64 51.498666 0 25.984 6.485333 46.208 19.712 60.714667 13.098667 14.506667 29.525333 21.802667 49.152 21.802667 19.242667 0 35.157333-6.997333 47.786667-20.992 12.629333-13.909333 18.858667-34.048 18.858667-60.416 0-23.082667-6.314667-41.557333-19.2-55.466667a63.274667 63.274667 0 0 0-48.725334-21.034667z m-0.341334-191.488c-17.792 0-32 5.333333-42.581333 16-10.538667 10.666667-15.872 24.746667-15.872 42.325334 0 18.645333 5.248 33.152 15.701333 43.648 10.453333 10.453333 24.362667 15.658667 41.770667 15.658666 17.664 0 31.658667-5.290667 42.24-15.872 10.538667-10.581333 15.872-25.173333 15.872-43.818666 0-17.493333-5.248-31.573333-15.701333-42.154667s-24.277333-15.786667-41.429334-15.786667z" fill="#FFFFFF"></path></svg>'},{name:"9",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 1024C229.248 1024 0 794.794667 0 512.042667 0 229.333333 229.248 0 512 0c282.88 0 512 229.333333 512 512.042667C1024 794.794667 794.88 1024 512 1024z" fill="#6D768D"></path><path d="M497.28 256c49.365333 0 89.856 19.157333 121.429333 57.429333 31.701333 38.229333 47.488 101.205333 47.488 188.842667 0 89.173333-16.384 153.386667-49.365333 192.853333-32.853333 39.594667-75.605333 59.264-128.426667 59.264-37.888 0-68.608-10.154667-91.989333-30.506666s-38.4-50.816-45.013333-91.306667l90.112-9.984c2.261333 18.474667 8.021333 32.085333 17.28 41.088 9.173333 8.874667 21.418667 13.312 36.608 13.312 19.2 0 35.541333-8.874667 48.981333-26.752 13.44-17.749333 22.016-54.613333 25.770667-110.549333-23.466667 27.264-52.821333 40.874667-88.064 40.874666-38.314667 0-71.253333-14.72-99.114667-44.330666C355.242667 506.709333 341.333333 468.224 341.333333 420.864c0-49.493333 14.592-89.258667 43.946667-119.466667C414.549333 271.104 451.925333 256 497.237333 256z m-4.352 77.482667c-17.237333 0-31.658667 6.826667-43.008 20.437333-11.477333 13.653333-17.194667 35.84-17.194667 66.816 0 31.402667 6.229333 54.485333 18.645334 69.205333 12.458667 14.72 27.946667 22.101333 46.592 22.101334 18.005333 0 33.066667-7.082667 45.44-21.205334 12.330667-14.208 18.432-35.029333 18.432-62.506666 0-29.994667-6.912-53.376-20.821334-69.973334-13.824-16.597333-29.866667-24.874667-48.085333-24.874666z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg viewBox="0 0 1024 1024"><path d="M512.042667 1024C229.248 1024 0 794.794667 0 511.957333 0 229.205333 229.248 0 512.042667 0 794.752 0 1024 229.205333 1024 511.957333 1024 794.794667 794.752 1024 512.042667 1024z" fill="#6D768D"></path><path d="M619.946667 273.066667c46.976 0 83.754667 16.042667 110.250666 48.042666 31.573333 37.973333 47.36 100.864 47.36 188.672 0 87.722667-15.829333 150.698667-47.658666 189.056-26.325333 31.616-62.976 47.36-109.952 47.36-47.274667 0-85.418667-17.237333-114.346667-51.968-28.885333-34.602667-43.392-96.426667-43.392-185.386666 0-87.168 15.872-150.016 47.701333-188.416 26.282667-31.488 62.933333-47.36 110.037334-47.36z m-207.488 12.8v452.266666H325.504V411.690667A299.904 299.904 0 0 1 213.333333 476.373333V398.933333c22.656-7.296 47.36-21.12 73.856-41.514666 26.624-20.522667 44.842667-44.288 54.784-71.552h70.485334z m207.488 60.842666c-11.306667 0-21.461333 3.413333-30.336 10.24-8.874667 6.826667-15.786667 19.157333-20.693334 36.864-6.4 22.997333-9.642667 61.653333-9.642666 115.968 0 54.442667 2.944 91.733333 8.661333 112.128 5.802667 20.352 13.098667 33.877333 21.845333 40.618667 8.789333 6.741333 18.858667 10.154667 30.165334 10.154667 11.349333 0 21.376-3.498667 30.250666-10.325334 8.874667-6.826667 15.786667-19.157333 20.693334-36.778666 6.4-22.826667 9.642667-61.354667 9.642666-115.797334 0-54.314667-2.858667-91.648-8.661333-112.042666-5.802667-20.352-13.013333-33.962667-21.76-40.789334a47.616 47.616 0 0 0-30.165333-10.24z" fill="#FFFFFF"></path></svg>'}]},{name:"进度图标",type:"progress",list:[{name:"1",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144-294.144A414.72 414.72 0 0 1 928 512c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512h416c0 229.76-186.24 416-416 416z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96V512l294.144 294.144A414.72 414.72 0 0 1 512 928z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 928c-229.76 0-416-186.24-416-416S282.24 96 512 96v832z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512l-294.144 294.144A414.72 414.72 0 0 1 96 512c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512H96c0-229.76 186.24-416 416-416V512z" fill="#FFFFFF"></path></svg>'},{name:"7",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0z" fill="#12BB37"></path><path d="M512 512L217.856 217.856A414.72 414.72 0 0 1 512 96V512z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#12BB37"></path><path d="M716.629333 341.333333h-51.328a35.072 35.072 0 0 0-28.330666 14.293334l-171.989334 233.984-77.909333-106.026667a35.2 35.2 0 0 0-28.330667-14.293333H307.413333c-7.082667 0-11.264 7.936-7.082666 13.653333l136.32 185.472a35.2 35.2 0 0 0 56.533333 0l230.4-313.429333a8.533333 8.533333 0 0 0-6.954667-13.653334z" fill="#FFFFFF"></path></svg>'}]},{name:"表情图标",type:"expression",list:[{name:"1",icon:'<svg t="1624457751393" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12255"><path d="M1.097856 1.097642h1021.804717v1021.804716H1.097856z" fill="#F09495" p-id="12256"></path><path d="M1024.000214 1024H0.000214V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.195498v1019.609432z" fill="#FFFFFF" p-id="12257"></path><path d="M234.695985 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" p-id="12258"></path><path d="M234.695985 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115s28.339115 12.772559 28.339115 28.339115c0.099786 15.666342-12.672773 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617-11.774703-26.243617-26.243617-26.243617z" fill="#FFFFFF" p-id="12259"></path><path d="M776.232528 335.179887m-27.341259 0a27.341259 27.341259 0 1 0 54.682518 0 27.341259 27.341259 0 1 0-54.682518 0Z" fill="#040000" p-id="12260"></path><path d="M776.232528 363.519002c-15.666342 0-28.339115-12.772559-28.339115-28.339115 0-15.666342 12.772559-28.339115 28.339115-28.339115 15.666342 0 28.339115 12.772559 28.339115 28.339115 0 15.666342-12.772559 28.339115-28.339115 28.339115z m0-54.582732c-14.468914 0-26.243617 11.774703-26.243617 26.243617s11.774703 26.243617 26.243617 26.243617 26.243617-11.774703 26.243617-26.243617c-0.099786-14.468914-11.874488-26.243617-26.243617-26.243617z" fill="#FFFFFF" p-id="12261"></path><path d="M512.000214 671.656987c-52.58702 0-105.872539-17.961411-105.872539-52.387449S459.413194 566.882089 512.000214 566.882089s105.872539 17.961411 105.87254 52.387449S564.587234 671.656987 512.000214 671.656987z m0-74.240499c-21.952836 0-43.207172 3.592282-58.2748 9.77899-13.870201 5.68778-17.06334 11.275775-17.06334 12.07406s3.19314 6.386279 17.06334 12.07406c15.067628 6.186708 36.321965 9.77899 58.2748 9.77899s43.207172-3.592282 58.274801-9.77899c13.870201-5.68778 17.06334-11.275775 17.06334-12.07406s-3.19314-6.386279-17.06334-12.07406c-15.067628-6.286494-36.321965-9.77899-58.274801-9.77899z" fill="#040000" p-id="12262"></path></svg>'},{name:"2",icon:'<svg t="1624457767572" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1048"><path d="M0 0h1024v1024H0z" fill="#E6A6C9" p-id="1049"></path><path d="M315.1 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM738.7 368.1c-23.9 0-43.3-19.4-43.3-43.3s19.4-43.3 43.3-43.3 43.3 19.4 43.3 43.3-19.4 43.3-43.3 43.3z m0-74.7c-17.3 0-31.3 14.1-31.3 31.3 0 17.3 14.1 31.3 31.3 31.3 17.3 0 31.3-14.1 31.3-31.3 0-17.2-14-31.3-31.3-31.3zM293.5 698.8l-14.5-1.3c0.1-0.6 1.5-14.6 15.1-27.9 17.2-16.7 45-24.8 82.7-24 4.9-0.1 10.9-10.5 16.1-19.6 8.4-14.7 19-33.1 37.9-34.3 19.4-1.2 42.2 16.4 71.5 55.4 9.9 5.2 16.5 11.2 21.8 16.1 8.4 7.7 13.1 11.9 25.1 10.8 14.9-1.4 38.9-11.1 77.5-31.4 26.8-28.4 56.4-41.4 83.5-36.6 27.9 4.9 50.6 27.6 67.5 67.5l-13.4 5.7c-14.7-34.5-34.3-54.9-56.7-58.8-22.3-3.9-47.6 7.8-71.2 33.1l-0.8 0.9-1.1 0.6c-85.6 45.1-99.4 38-120.2 19.1-5.5-5-11.2-10.2-20.1-14.7l-1.5-0.8-1-1.4c-32.2-43.2-50.4-51.6-60-51-11.1 0.7-18.8 14-26.2 27-7.6 13.2-15.4 26.9-28.8 26.9h-0.2c-78.4-1.6-83 38.3-83 38.7z" fill="#040000" p-id="1050"></path></svg>'},{name:"3",icon:'<svg t="1624457776082" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1204" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#F7E983" p-id="1205"></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" p-id="1206"></path><path d="M329.174412 344.491728a38.118106 10.277919 57.6 1 0 17.355867-11.014369 38.118106 10.277919 57.6 1 0-17.355867 11.014369Z" fill="#040000" p-id="1207"></path><path d="M644.769475 355.956059a11.175989 36.321965 30 1 0 36.321965-62.911488 11.175989 36.321965 30 1 0-36.321965 62.911488Z" fill="#040000" p-id="1208"></path><path d="M569.678445 671.158059c-26.343403 0-51.190021-5.288638-70.049503-14.967843-20.755408-10.577275-32.230754-25.445332-32.230755-41.710388 0-16.265056 11.475346-31.133112 32.230755-41.710387 18.859482-9.579419 43.805886-14.967843 70.049503-14.967843s51.190021 5.288638 70.049503 14.967843c20.755408 10.577275 32.230754 25.445332 32.230754 41.710387 0 16.265056-11.475346 31.133112-32.230754 41.710388-18.859482 9.679205-43.805886 14.967843-70.049503 14.967843z m0-95.095693c-49.693237 0-84.318846 20.356266-84.318846 38.517248s34.625609 38.517248 84.318846 38.517248 84.318846-20.356266 84.318846-38.517248-34.725395-38.517248-84.318846-38.517248z" fill="#040000" p-id="1209"></path></svg>'},{name:"4",icon:'<svg t="1624457781889" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1363" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#A6D9E2" p-id="1364"></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" p-id="1365"></path><path d="M376.194134 348.950302m-23.44962 0a23.44962 23.44962 0 1 0 46.89924 0 23.44962 23.44962 0 1 0-46.89924 0Z" fill="#040000" p-id="1366"></path><path d="M629.150672 348.950302m-24.647047 0a24.647047 24.647047 0 1 0 49.294095 0 24.647047 24.647047 0 1 0-49.294095 0Z" fill="#040000" p-id="1367"></path><path d="M397.847613 603.503411c13.471058 8.282206 28.738258 14.468914 43.7061 19.458195 29.835899 9.978562 62.266225 14.169558 93.299551 7.483921 21.054765-4.490353 40.213604-14.369129 56.778016-28.039758 6.785422-5.587995-2.893783-15.167414-9.579419-9.579419-46.999026 38.916391-112.258819 31.033327-163.847983 6.086922-4.590138-2.195284-9.080491-4.490353-13.371272-7.184564-7.583707-4.590138-14.468914 7.184564-6.984993 11.774703z" fill="#040000" p-id="1368"></path><path d="M627.753674 534.052621c-31.033327 24.048334-58.474371 68.253362-37.419607 106.970182 10.577275 19.35841 29.835899 32.629897 48.795167 42.708244 7.982849 4.190996 15.067628-7.883064 7.084779-12.07406-25.245761-13.271487-53.485091-35.324108-49.094524-66.557006 2.793997-20.156695 15.766127-37.319821 29.736114-51.190022 3.392711-3.392711 6.984993-6.785422 10.776847-9.77899 2.993569-2.295069 2.394855-7.483921 0-9.878776-2.893783-3.19314-6.885208-2.49464-9.878776-0.199572z" fill="#040000" p-id="1369"></path></svg>'},{name:"5",icon:'<svg t="1624457787809" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1523" ><path d="M1.1 1.097642h1021.804716v1021.804716H1.1z" fill="#AD6F59" p-id="1524"></path><path d="M1024.002358 1024H0.002358V0h1024v1024z m-1021.804716-2.195284h1019.609433V2.195284H2.197642v1019.609432z" fill="#FFFFFF" p-id="1525"></path><path d="M411.829832 330.730879a38.118106 10.277919 57.6 1 0 17.355867-11.014368 38.118106 10.277919 57.6 1 0-17.355867 11.014368Z" fill="#040000" p-id="1526"></path><path d="M480.669675 609.989476c11.774703-25.844475 27.740401-51.788735 44.60417-73.342429 13.770415-17.462483 29.237186-33.92711 47.897096-44.803742 17.262912-10.078347 35.324108-13.67063 54.283376-6.58585 11.974274 4.390567 23.948548 14.468914 33.128825 24.547261 14.369129 15.865913 25.145975 34.625609 34.725394 53.684662 4.290782 8.581563 17.262912 0.997856 12.972131-7.583707-15.167414-30.334828-35.224323-63.763009-66.157864-80.327421-21.054765-11.37556-44.504385-11.475346-66.157864-1.895927-21.054765 9.280062-38.617034 25.644904-53.485091 42.907815-14.468914 16.863769-27.041902 35.324108-38.217891 54.582733-5.887351 10.178133-11.674917 20.555837-16.464627 31.232898-1.696355 3.692068-0.997856 7.982849 2.694212 10.277918 3.19314 1.895927 8.581563 0.898071 10.178133-2.694211z" fill="#040000" p-id="1527"></path><path d="M663.863649 338.091735a14.468914 33.727538 30 1 0 33.727538-58.417811 14.468914 33.727538 30 1 0-33.727538 58.417811Z" fill="#040000" p-id="1528"></path></svg>'},{name:"6",icon:'<svg t="1624457794933" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1680" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#83CEE3" p-id="1681"></path><path d="M369 375.8m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" p-id="1682"></path><path d="M369 411.7c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.1 36-36 36z m0-69.1c-18.3 0-33.2 14.9-33.2 33.2S350.7 409 369 409s33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" p-id="1683"></path><path d="M672.2 333.6c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.3-7.6-13zM578.2 720.9c-12.5-96.7-33.3-154.7-55.6-155.6-8.8 3.9-22.3 17.5-37.7 60.1-10.8 29.8-18.4 62.2-23 81.6-1.2 5.1-2.1 9.1-2.9 11.8l-9.3-2.4c0.7-2.6 1.6-6.6 2.8-11.6 14.9-63 36-136.8 67.5-148.8l0.8-0.3h0.8c18.2-0.4 33.2 19.5 45.8 60.8 10.2 33.3 16.7 74.6 20.5 103.3l-9.7 1.1z" fill="#040000" p-id="1684"></path></svg>'},{name:"7",icon:'<svg t="1624457802025" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1838" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#8CC66D" p-id="1839"></path><path d="M375.778679 404.47473a14.5 33.8 30 1 0 33.8-58.543317 14.5 33.8 30 1 0-33.8 58.543317Z" fill="#040000" p-id="1840"></path><path d="M627.220263 374.211388a43.1 11.6 57.6 1 0 19.588408-12.431182 43.1 11.6 57.6 1 0-19.588408 12.431182Z" fill="#040000" p-id="1841"></path><path d="M451.1 548.5c17.6-9.3 63.9-30 105.3-16.2 17 20.3 32.7 98.8 28.8 138.1-27.5 10.2-82.5 10.2-106.1 5.8-8.3-10.5-32.7-81.8-35.3-114.6-0.4-5.5 2.5-10.6 7.3-13.1z" fill="#040000" p-id="1842"></path></svg>'},{name:"8",icon:'<svg t="1624457816632" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1996" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#5A74B8" p-id="1997"></path><path d="M357.7 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" p-id="1998"></path><path d="M357.7 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2 33.2-14.9 33.2-33.2-14.9-33.2-33.2-33.2z" fill="#FFFFFF" p-id="1999"></path><path d="M676 400m-34.6 0a34.6 34.6 0 1 0 69.2 0 34.6 34.6 0 1 0-69.2 0Z" fill="#040000" p-id="2000"></path><path d="M676 436c-19.8 0-36-16.1-36-36s16.1-36 36-36 36 16.1 36 36-16.2 36-36 36z m0-69.2c-18.3 0-33.2 14.9-33.2 33.2s14.9 33.2 33.2 33.2c18.3 0 33.2-14.9 33.2-33.2s-14.9-33.2-33.2-33.2z" fill="#FFFFFF" p-id="2001"></path><path d="M347.6 684.1c0.3-0.9 0.6-1.7 0.9-2.6 0.2-0.5 1.4-3.2 0.3-0.8 0.6-1.4 1.3-2.9 2-4.3 3.2-6.3 6-10.7 10.9-15.3 4.3-4 10.8-7.5 17.1-6.1 3.9 0.9 7.9 4.9 11.1 7.2 3.1 2.2 6.3 4.5 9.7 6.2 7.5 3.8 15.3 4.4 23.4 1.9 4.7-1.5 9.2-3.6 13.6-5.9 5-2.6 10.7-5 14.2-9.5 4.5-5.7 6.1-8.5 11.4-14.1 1-1 2-2 3.1-3 0.2-0.2 2.2-1.7 0.6-0.5 0.6-0.4 1.2-0.9 1.8-1.3 1-0.6 2.1-1.3 3.2-1.7-2 0.8 0.2 0 0.6-0.1 2.3-0.7-0.3-0.2 1.2-0.3 2.8-0.1 3.6 0 5.5 1 3.8 1.9 6.6 4.7 9.5 7.8 4.5 5 7.5 11.1 11.7 16.2 1.8 2.2 3.7 4.3 5.4 6.5 8.1 10.3 17.7 22.2 32.2 22 8.8-0.1 16.6-5.2 22.6-11.2 4.2-4.1 7.7-8.9 11-13.7 2.9-4.2 4.6-9.9 6.2-13.5 3.2-7.1 7.2-13.1 13-18.1 4.8-4.2 11.1-6.5 16.7-5.3 10.5 2.4 17.2 12.1 23.1 20.2 4.7 6.5 9.8 13 16 18.2 7.8 6.4 17.1 11.4 27.5 11.1 14.1-0.4 25.5-9.5 34.2-19.9 3-3.6 3.6-8.8 0-12.4-3.1-3.1-9.4-3.7-12.4 0-6.3 7.6-14.7 15.9-24.9 14.7-2.2-0.3-5.3-1.5-7.9-3.1-3.5-2.1-6.1-4.4-9.1-7.5-4.9-5.1-6.8-8.1-10.9-13.8-7.3-10.1-16.1-19.6-28.2-23.7-18.5-6.3-35.7 5.6-46 20.1-2.4 3.3-4.4 6.9-6.1 10.6-1.8 3.9-2.7 8.5-5.2 11.9-3.1 4.4-6.2 8.8-10.2 12.5-3 2.8-5.7 4.4-8.6 5.1-0.4 0.1-1.7 0.1 0.1 0h-2.2c2.1 0.1 0 0-0.5-0.1-0.7-0.2-1.4-0.4-2-0.6 1.8 0.7-1.8-1.1-2.4-1.5l-1.2-0.9c1.5 1.2-0.9-0.9-1.2-1.1-4.7-4.3-8.4-9.5-12.3-14.4-10.9-13.6-20.9-34-41-34.9-14.2-0.6-24.5 10.6-32.4 20.8-1.2 1.6-2.5 3.2-3.7 4.8-1.5 1.9 1.1-1.4-0.4 0.5-0.4 0.5-0.8 1.2-1.3 1.6-1.7 1.4-4.6 2.6-6.6 3.6-2.9 1.6-5.9 3.2-9 4.5-1.6 0.7-3.4 1.2-5.1 1.7-2.2 0.6-0.7 0.5-2.8 0.4-2.8 0-3.9-0.4-6.6-1.9-3.9-2.2-7.5-4.9-11.1-7.5-5.6-4-10-6.9-17-7.5-10.5-0.9-20.3 3.2-28.2 9.9-9.4 8.1-16.4 20.2-20.1 32-3.6 11.2 13.3 15.8 16.8 5.1z" fill="#040000" p-id="2002"></path></svg>'},{name:"9",icon:'<svg t="1624457826949" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2156" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F0884F" p-id="2157"></path><path d="M287.2 382c6.4 2.3 11.6-3.7 15.4-7.9 5.1-5.5 10.2-11 16-15.9 0.8-0.7 1.7-1.4 2.5-2.1 1.2-0.9-1.7 1.3 0.2-0.2l1.2-0.9c2.1-1.5 4.3-2.9 6.5-4.3 2-1.2 4-2.2 6.1-3.2 0.6-0.3 1.2-0.6 1.9-0.9-0.3 0.2-1.5 0.6 0.2-0.1 1.3-0.5 2.6-1 4-1.5 11.2-3.7 21.8-4 33.4-1.1 19.5 4.9 36.4 17 51.2 30.2 8.6 7.7 21.4-5 12.7-12.7-25.2-22.6-57.1-42.1-92.2-36.2-20.4 3.4-37.7 16.1-51.6 30.9-2.3 2.4-4.5 5-6.8 7.4-0.7 0.7-1.9 1.5-2.4 2.4-0.5 0.8 2.3-1.5 0.8-0.7 1.3-0.7 3.9-1.4 5.8-0.7-11.1-3.7-15.8 13.7-4.9 17.5zM598 382c6.4 2.3 11.6-3.7 15.4-7.9 5.1-5.5 10.2-11 16-15.9 0.8-0.7 1.7-1.4 2.5-2.1 1.2-0.9-1.7 1.3 0.2-0.2l1.2-0.9c2.1-1.5 4.3-2.9 6.5-4.3 2-1.2 4-2.2 6.1-3.2 0.6-0.3 1.2-0.6 1.9-0.9-0.3 0.2-1.5 0.6 0.2-0.1 1.3-0.5 2.6-1 4-1.5 11.2-3.7 21.8-4 33.4-1.1 19.5 4.9 36.4 17 51.2 30.2 8.6 7.7 21.4-5 12.7-12.7-25.2-22.6-57.1-42.1-92.2-36.2-20.4 3.4-37.7 16.1-51.6 30.9-2.3 2.4-4.5 5-6.8 7.4-0.7 0.7-1.9 1.5-2.4 2.4-0.5 0.8 2.3-1.5 0.8-0.7 1.3-0.7 3.9-1.4 5.8-0.7-11.1-3.7-15.8 13.7-4.9 17.5zM505.9 527.1c3.4 0.7 6.8 1.7 10.2 2.8 6.7 2.2 10.4 3.5 16.6 7.7 1.6 1.1-0.5-0.5 0.6 0.5 0.6 0.5 1.1 1.1 1.7 1.6 1.5 1.4-0.1-0.4 0.5 0.6 0.4 0.6 0.7 1.2 1 1.8-1-2 0.1 0 0 0.5 0.1-2-0.1 0-0.1 0-0.1 0.8 0 0.7 0.1-0.5-0.1 0.4-0.1 0.7-0.3 1.1-0.6 1 0.7-0.9-0.4 1-1.6 2.5-4.6 5.4-8.1 7.8-6.8 4.6-14.4 8.2-22 11.4-7 3-7.4 11.9 0 14.8 7.4 2.8 15 5.3 22.4 8.1 3.1 1.1 4.2 1.5 6.9 2.9 1.1 0.6 2.1 1.2 3.2 1.8 1.2 0.8-0.7-0.5 0.1 0 0.4 0.3 0.8 0.7 1.1 1.1 0.6 0.8-1.1-1.2-0.2-0.2 0.8 0.9-0.3-1.4-0.1-0.2 0.1 0.9 0.2-1.9 0-0.9-0.1 0.5-0.8 1.8 0 0.2-0.2 0.5-0.5 1-0.8 1.4-0.3 0.3-0.9 1.3-0.3 0.5-0.5 0.7-1.1 1.3-1.7 1.9-6.9 7.3-15.9 12.8-24.4 18.1-8.3 5.3-0.6 18.5 7.7 13.2 9.9-6.3 20.9-12.8 28.6-21.8 4.8-5.5 8.1-12.9 4.2-19.9-3.4-6-10.5-8.9-16.6-11.4-8.6-3.5-17.5-6.2-26.2-9.5v14.8c14.4-6.1 47.2-18.8 41.2-40.3-3.5-12.9-19.4-18.9-30.8-22.6-3.4-1.1-6.9-2.1-10.5-2.9-9.1-2.2-13.3 12.5-3.6 14.6z" fill="#040000" p-id="2158"></path></svg>'},{name:"10",icon:'<svg t="1624457835383" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2312" ><path d="M762.9 77.4H261.1L10.2 512l250.9 434.6h501.8L1013.8 512z" fill="#F6F180" p-id="2313"></path><path d="M342.9 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" p-id="2314"></path><path d="M342.9 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.7 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.6-28.3-28.3-28.3z" fill="#FFFFFF" p-id="2315"></path><path d="M702 400.6m-29.5 0a29.5 29.5 0 1 0 59 0 29.5 29.5 0 1 0-59 0Z" fill="#040000" p-id="2316"></path><path d="M702 431.3c-16.9 0-30.7-13.8-30.7-30.7s13.8-30.7 30.7-30.7 30.7 13.8 30.7 30.7-13.8 30.7-30.7 30.7z m0-59c-15.6 0-28.3 12.7-28.3 28.3s12.7 28.3 28.3 28.3 28.3-12.7 28.3-28.3-12.7-28.3-28.3-28.3z" fill="#FFFFFF" p-id="2317"></path><path d="M358.7 519.9c20 22 45.5 40.4 71.3 54.8 51.2 28.5 111.7 39.9 168 19.5 44.3-16.1 80.7-47.8 110.2-83.9 3-3.7 3.6-8.9 0-12.5-3.1-3.1-9.5-3.7-12.5 0-25.5 31.4-56.2 59.7-93.7 76-27.1 11.7-56.6 15.7-85.8 12.2-24.7-2.9-49.5-11.8-71.5-23.4-18.7-9.8-36.6-22.2-51.1-34.3-7.8-6.5-15.5-13.3-22.4-20.9-7.7-8.5-20.1 4.1-12.5 12.5z" p-id="2318"></path></svg>'},{name:"11",icon:'<svg t="1624457841751" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2472" ><path d="M48.2 844.9c-68.5-210.6 186-782.1 409.1-795.4 6.3-0.4 12.5 0.2 18.6 1.6C665.1 94.6 985.4 515 987.1 821.3c0.1 20-12.9 37.9-22.4 43.1-162.7 89.8-605.8 179.7-884.4 30.9-15-7.9-24.2-26.1-32.1-50.4z" fill="#F0884F" p-id="2473"></path><path d="M401 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" p-id="2474"></path><path d="M408.7 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" p-id="2475"></path><path d="M527.5 352.1m-52.4 0a52.4 52.4 0 1 0 104.8 0 52.4 52.4 0 1 0-104.8 0Z" fill="#FFFFFF" p-id="2476"></path><path d="M527.5 329m-29.3 0a29.3 29.3 0 1 0 58.6 0 29.3 29.3 0 1 0-58.6 0Z" fill="#040000" p-id="2477"></path><path d="M450.7 517c1.1-8.2 3.2-16.4 6.1-24.1 0.1-0.3 1-2.5 0.5-1.4s0.3-0.7 0.5-1c0.7-1.4 1.4-2.8 2.2-4.1 0.4-0.8 2.8-3.9 1.3-2.1 0.8-1 1.7-1.9 2.6-2.8 1-1-1.5 1 0.1 0 0.5-0.3 1-0.6 1.5-0.8-1.3 0.7-1.2 0.3 0 0.1 1.9-0.3-1.8 0.3 0.1 0 1.2-0.2 1.5 0.3 0-0.1 0.6 0.2 1.3 0.3 1.9 0.5 0.3 0.1-1.3-0.7 0.2 0.1 0.8 0.5 1.6 0.9 2.4 1.4 1.4 1 0-0.1 1.4 1.1 0.9 0.8 1.8 1.7 2.6 2.6 1.8 1.9 3.5 3.9 5 6.1 5.1 7.1 9.3 14.8 13.2 22.6 3.5 6.9 13.7 4.7 15.8-2.1 2.6-8.7 4.8-17.4 7.4-26.1 0.9-3.2 1.9-6.4 3.2-9.4-0.7 1.6 0.8-1.6 1.2-2.2l0.9-1.5c0.7-1.2-1.4 0.7 0.1-0.1 1.7-0.9-1.2 0.3-0.3 0.1 0.8-0.2 1-1.2 0.3-0.3-0.6 0.8 0.6 0-0.5 0.2-2 0.3 2.4 0.5-1.1 0 0.5 0.1 1.2 0.2 1.6 0.4-1.1-0.8-0.8-0.4 0.2 0.2 0.7 0.4 3.4 2.3 2.7 1.8 8.9 7.1 15.9 16.9 22.5 26 2.8 3.8 7.5 5.6 11.8 3.1 3.7-2.2 5.9-8 3.1-11.8-8.2-11.1-16.6-23-27.7-31.4-6.3-4.7-14.5-7.6-21.7-3-6.7 4.2-9.6 12.5-11.9 19.6-3.2 9.9-5.5 20-8.6 29.9 5.3-0.7 10.5-1.4 15.8-2.1-7.8-15.5-24.8-50.1-48-41.7-14.1 5.1-19.7 23-22.9 36.2-0.9 3.8-1.8 7.7-2.3 11.6-0.6 4.6 1.1 9.3 6 10.6 4.2 1 10.2-1.5 10.8-6.1z" fill="#040000" p-id="2478"></path></svg>'},{name:"12",icon:'<svg t="1624457847424" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2632" ><path d="M485.538528 993.072489a362.00362 481.804818 3.149 1 0 52.933731-962.15464 362.00362 481.804818 3.149 1 0-52.933731 962.15464Z" fill="#AADCF0" p-id="2633"></path><path d="M688.2 334.1c-15.1 7.6-30.2 15.6-44.3 25-5.9 3.9-17 10.4-14.6 19.1 1.8 6.5 12 11.2 17.3 14.3 15.7 9.3 32.1 17.6 48.3 25.9 8.6 4.4 16.2-8.5 7.6-13-14.1-7.3-28.3-14.5-42.1-22.3-3.9-2.2-7.9-4.5-11.7-6.9-1.2-0.8-2.4-1.5-3.5-2.4-0.6-0.4-1.1-0.8-1.6-1.2 2.2 1.7-0.3-0.3-0.3-0.3-0.9 0.1-1.5-3.2-0.2 0.5 0.9 2.4 1.1 3.8 0.3 5.8 0.6-1.5-0.9 0.8-0.1 0 0.5-0.5 1-1.1 1.6-1.6 0.5-0.5 1-0.9 1.6-1.3 0.6-0.5 0 0 1.2-0.9 1.7-1.3 3.5-2.5 5.3-3.6 8.4-5.5 17.2-10.4 26-15.2 5.6-3 11.2-6 16.8-8.9 8.6-4.4 1-17.4-7.6-13zM375.8 347c13.4 6.8 26.7 14 39.5 21.9 1.8 1.2 3.7 2.3 5.5 3.5 0.9 0.6 1.7 1.2 2.6 1.8 0.9 0.6 1.9 1.4 1.6 1.1 1.1 0.9 2.1 1.9 3.1 2.8 1.2 1 0-0.3 0.1 0 0-0.2-0.8-2.4-0.3-4.1 1.5-5.5 2.3-2.7 0.8-2-0.4 0.2-0.9 0.8-1.3 1.1 1.7-1.4-1.6 1.1-2.3 1.6-3.4 2.3-6.9 4.4-10.4 6.4-14.9 8.6-30.3 16.4-45.6 24.3-8.6 4.4-1 17.4 7.6 13 15-7.7 30.1-15.4 44.8-23.8 6.2-3.6 13.8-7.3 18.7-12.7 7.6-8.3-3.8-16.6-9.9-20.9-8.7-6.1-18-11.3-27.3-16.4-6.5-3.6-13-7.1-19.6-10.4-8.6-4.5-16.3 8.5-7.6 12.8zM412.8 570.9c13.5 7.7 28.5 13.3 43.3 17.9 29.8 9.2 61.7 13.1 92.6 7.3 20.6-3.9 40-12.5 56.6-25.2 2.8-2.2 4.3-5.6 2.3-9-1.6-2.8-6.2-4.5-9-2.3-48.3 36.9-113.3 30-165.6 6.7-4.6-2.1-9.2-4.2-13.7-6.7-7.3-4.2-13.9 7.2-6.5 11.3z" fill="#040000" p-id="2634"></path><path d="M644.6 505.2c-30.1 21.5-60.6 62.5-39.1 99.8 10.7 18.6 30.3 30.9 49.1 40.1 7.8 3.8 14.6-7.9 6.8-11.7-23.6-11.5-53.7-31.4-49.4-60.9 2.8-18.9 15.8-34.6 29.5-47.2 2.5-2.3 5.1-4.6 7.8-6.7 0.5-0.4 0.9-0.7 1.4-1.1-0.4 0.3-1.2 0.9-0.1 0.1l0.9-0.6c6.9-5.1 0.2-16.8-6.9-11.8z" fill="#040000" p-id="2635"></path></svg>'},{name:"13",icon:'<svg t="1624457855182" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2789" ><path d="M235.1 76.9c75.6-26.5 297.3-90.1 514.2-16.6 16.3 5.5 29.8 17.4 37.1 33 57.5 122.4 127.1 602.1 62.1 785.6a62.58 62.58 0 0 1-32.5 35.8c-109.5 51.8-428.1 136.7-609.3 37.2-14.4-7.9-25-21.3-29.7-37.1-41.9-140.6-37-627.7 19.1-798 6.1-18.7 20.5-33.4 39-39.9z" fill="#F9DABD" p-id="2790"></path><path d="M392.2 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" p-id="2791"></path><path d="M618.6 360.2m-35.2 0a35.2 35.2 0 1 0 70.4 0 35.2 35.2 0 1 0-70.4 0Z" fill="#040000" p-id="2792"></path><path d="M512 562.6c-36 0-65.3-29.3-65.3-65.3S476 432 512 432s65.3 29.3 65.3 65.3-29.3 65.3-65.3 65.3z m0-122.9c-31.7 0-57.6 25.8-57.6 57.6s25.8 57.6 57.6 57.6c31.7 0 57.6-25.8 57.6-57.6s-25.9-57.6-57.6-57.6z" fill="#040000" p-id="2793"></path></svg>'},{name:"14",icon:'<svg t="1624457863444" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2947" ><path d="M178.1 971.5c38.1 15.9 98.7 26.6 171.3-12.3 3.7-2 8.4-1.6 11.6 1.1 43.3 35.9 123.3 80.8 236 10.9 3.8-2.4 8.7-2.4 12.6-0.2 41.8 23.9 191.6 58.2 246.6 14.2 4.4-3.5 9.1-6.6 14.5-8.5C1065 909.5 678.2-652 194.3 351c-37.5 77.8-38.4 94.1-71.9 211.3-27.6 96.3-29.1 231.3 1.4 348.1 7.2 27.3 27.3 49.9 54.3 61.1z" fill="#ABAAAA" p-id="2948"></path><path d="M468.9 349H418c-6.1 0-11.1-5-11.1-11.1V336c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.1-5 11.1-11.1 11.1zM643 471.9H390c-6.6 0-12-5.4-12-12s5.4-12 12-12h253c6.6 0 12 5.4 12 12s-5.4 12-12 12zM609 349h-61.2c-6 0-11-4.9-11-11v-2.1c0-6 4.9-11 11-11H609c6 0 11 4.9 11 11v2.1c0 6.1-4.9 11-11 11z" fill="#040000" p-id="2949"></path></svg>'},{name:"15",icon:'<svg t="1624457870536" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3103" ><path d="M673.1 318.7c3.7-17.5 5.6-35.7 5.6-54.4 0-137.9-105.5-249.7-235.6-249.7S207.4 126.4 207.4 264.3c0 55.4 17.1 106.7 45.9 148.1-55.2 63.3-88.6 145.9-88.6 236.3 0 199.2 162.1 360.6 362.1 360.6 200 0 362.1-161.5 362.1-360.6 0.1-147.3-88.7-274-215.8-330z" fill="#4F8A54" p-id="3104"></path><path d="M392 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" p-id="3105"></path><path d="M386 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" p-id="3106"></path><path d="M505.6 246.2m-47.1 0a47.1 47.1 0 1 0 94.2 0 47.1 47.1 0 1 0-94.2 0Z" fill="#FFFFFF" p-id="3107"></path><path d="M501.4 252.8m-26.4 0a26.4 26.4 0 1 0 52.8 0 26.4 26.4 0 1 0-52.8 0Z" fill="#040000" p-id="3108"></path><path d="M474.3 364.8h-50.9c-6.1 0-11.1-5-11.1-11.1v-1.9c0-6.1 5-11.1 11.1-11.1h50.9c6.1 0 11.1 5 11.1 11.1v1.9c0 6.2-5 11.1-11.1 11.1z" fill="#040000" p-id="3109"></path></svg>'},{name:"16",icon:'<svg t="1624457876371" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3263" ><path d="M246.4 227.6c-166.9 101.1-461.9 344 87 564.1 1.5 0.6 2.9 1.1 4.4 1.6 80.7 27.7 392.8 165.4 641-198.1 40-58.6 38.5-136.2-3.7-193.3C892 289.5 727 201.1 429.1 182.7c-64.1-4-127.8 11.6-182.7 44.9z" fill="#CF92BE" p-id="3264"></path><path d="M617.1 393.4c-17.4 8.8-34.9 18.1-51.2 28.9-6.9 4.6-20.3 12.3-17.4 22.6 1.2 4.3 5.6 7 9 9.5 3.7 2.7 7.6 5 11.5 7.3 18.2 10.8 37.1 20.3 55.9 30 10 5.1 18.9-10 8.8-15.1-16.4-8.4-32.9-16.9-49-26-4.5-2.6-9.1-5.2-13.5-8l-4.5-3c-0.7-0.5-1.3-1-2-1.5 1.6 1.2 0.7 0.4-0.2-0.2-1.3-0.9-0.3-0.9-0.5-0.3 0.2 0.2 0.4 0.5 0.6 0.7 1 1.9 1.3 3.7 0.8 5.7 0.1-0.6 0.7-1.4-0.6 1.3 0.7-1.5-0.1 0-0.2 0.1 0.6-0.6 1.2-1.3 1.9-1.9l1.8-1.5c1.8-1.6-0.6 0.3 1.2-0.9 2-1.5 4.1-2.9 6.2-4.3 10-6.5 20.4-12.4 30.9-18 6.5-3.5 13.1-7 19.7-10.4 9.6-5 0.8-20.1-9.2-15zM323.1 408.5c15.9 8.1 31.7 16.5 46.8 26 2.2 1.4 4.3 2.8 6.5 4.2 1 0.7 1.9 1.3 2.8 2 0.5 0.3 1 0.7 1.4 1.1-1.1-0.9-0.3-0.3 0.3 0.3 1.1 1 2.2 2.2 3.3 3.1 1.4 1.1-1-1.7-0.1-0.1-0.6-1.1-0.9-4.1 0.3-6.7 2.2-4.8 0.7 0.1 0-0.5 0 0-1.1 0.9-1.3 1 2.3-1.9 0 0-0.5 0.4-0.8 0.5-1.5 1.1-2.3 1.6-4 2.7-8.1 5.1-12.3 7.5-17.3 10-35.1 19.1-52.8 28.2-10 5.1-1.2 20.2 8.8 15.1 17.5-9 35-17.9 52-27.7 7.3-4.2 15.9-8.6 21.8-14.7 9.3-9.7-4.3-19.7-11.5-24.7-10.1-7.1-20.9-13.1-31.7-19-7.6-4.2-15.2-8.2-22.9-12.1-9.7-5.2-18.6 9.9-8.6 15zM513 592.1c-12.2 0-24.6-1.4-36.3-4.3-8-2-13.9-8.2-15.4-16.2s1.7-15.8 8.4-20.5c23.2-16.3 60.5-31.9 106.2-13 6.4 2.6 11 8.3 12.3 15.1 1.3 6.7-0.8 13.6-5.7 18.3-13.5 13.1-40.9 20.6-69.5 20.6z m-37.4-32.5c-3.4 2.4-4.9 6.2-4.2 10.2 0.8 4.1 3.6 7.1 7.7 8.1 39.1 9.7 81.2 0.7 96.1-13.7 2.4-2.3 3.4-5.6 2.7-8.9-0.7-3.4-2.9-6.2-6.1-7.5-41.2-17.2-75.1-3.1-96.2 11.8z" fill="#040000" p-id="3265"></path></svg>'},{name:"17",icon:'<svg t="1624457881793" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3419" ><path d="M1008.6 465.7c0-124.9-95.5-226.2-213.4-226.2-12 0-23.8 1.1-35.2 3.1v-3.1c0-124.9-95.5-226.2-213.4-226.2S333.4 114.6 333.4 239.5c0 2.4 0 4.8 0.1 7.2-17.1-4.7-35-7.2-53.4-7.2-117.8 0-213.4 101.3-213.4 226.2 0 92.1 51.9 171.3 126.3 206.6-13.7 29.9-21.4 63.4-21.4 98.8 0 124.9 95.5 226.2 213.4 226.2 68.8 0 130-34.5 169-88.1 39 53.6 100.2 88.1 169 88.1 117.8 0 213.4-101.3 213.4-226.2 0-41.2-10.4-79.9-28.6-113.1 60.5-39.9 100.8-111.1 100.8-192.3z" fill="#8CC66D" p-id="3420"></path><path d="M437.8 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3421"></path><path d="M649.7 400.7m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3422"></path><path d="M527.3 625.9c6.3-14.2 13.1-28.3 17.9-43 6.2-19 8.3-38.6 10.5-58.3l2.1-19.2c0.7-6.2-9-6.1-9.7 0-1.7 16.3-2.8 32.8-5.7 48.9-4.2 23.7-13.8 45-23.5 66.7-2.5 5.6 5.9 10.5 8.4 4.9z" fill="#252525" p-id="3423"></path><path d="M447.7 522.3c20.3-0.1 40.6-0.2 61-0.4l96.6-0.6c7.5 0 14.9-0.1 22.4-0.1 16.6-0.1 16.7-25.9 0-25.8-20.3 0.1-40.6 0.2-61 0.4l-96.6 0.6c-7.5 0-14.9 0.1-22.4 0.1-16.6 0.1-16.7 25.9 0 25.8z" fill="#040000" p-id="3424"></path><path d="M495.4 508.2c-10.3 3.8-9.2 20.9-9.2 29.5 0.1 16 2.1 32.3 6.1 47.8 3.5 13.7 8.7 29.9 20.6 38.7 12.9 9.5 27.6 2.1 37.6-7.9 10.2-10.3 17.8-23 24.7-35.6 11.6-21.3 20.9-43.8 29.7-66.4 3-7.8-9.5-11.1-12.5-3.4-7.4 19.1-15.3 38.1-24.7 56.4-5.9 11.5-12.2 23-20.3 33.1-2.8 3.5-5.8 6.9-9.2 9.8-1.9 1.7-1.4 1.3-3.3 2.5-1.3 0.8-2.6 1.6-3.9 2.2-0.7 0.3 1-0.2-0.8 0.3-0.6 0.2-1.2 0.3-1.8 0.5-1.1 0.3-1.2 0.2-0.5 0.1-0.6 0-1.3 0-1.9 0.1-2.2 0.1 0.6 0.5-1.8-0.2l-1.8-0.6c1.5 0.5 0.2 0.1-0.5-0.3-0.8-0.5-2.9-2.1-1.7-1.1-1-0.9-2-1.7-2.8-2.7-0.4-0.5-0.9-1-1.3-1.5 0.4 0.5 0.1 0.2-0.5-0.7-0.8-1.3-1.7-2.5-2.4-3.9-0.7-1.3-1.4-2.5-2-3.8-0.4-0.8-0.8-1.6-1.1-2.4-0.1-0.2-0.5-1.1 0 0l-0.6-1.5a86.8 86.8 0 0 1-3.3-9.8c-4.4-14.9-6.2-27.9-6.8-42.8-0.3-6.6-0.3-13.1 0.4-19.7 0.2-1.5-0.3 1.5 0.1-0.5l0.3-1.8c0.2-0.9 0.5-1.8 0.7-2.8 0.4-1.9-0.7 1.1 0.3-0.7 0.5-1-1.3 1.2-0.3 0.5-0.3 0.3-1.1 0.8-2 1.1 7.7-2.9 4.3-15.4-3.5-12.5z" fill="#040000" p-id="3425"></path></svg>'},{name:"18",icon:'<svg t="1624457899440" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3579" ><path d="M75.4 739.8c-78.7-134.4-194-455.7 401.4-579.6 9.8-2 19.2-6.2 29.2-7.5C656.8 133 947.3 205 1000.1 578.4c42.6 223.8 29.7 392.1-822 233.6-43.1-8-80.6-34.4-102.7-72.2z" fill="#F09495" p-id="3580"></path><path d="M704.6 875.4c-129 0-301.8-20.5-526.6-62.3-43.5-8.1-81.2-34.6-103.5-72.7-19.3-32.9-44.8-84.3-57.1-142.5-13.9-65.1-8.8-125.3 15.1-179.2 54.3-122.3 203.7-209.6 444-259.6 4.1-0.9 8.3-2.1 12.3-3.4 5.5-1.7 11.1-3.4 16.9-4.2 29-3.8 75.7-5.9 133.8 5.7 54.5 10.9 105.3 31 150.8 59.9C843.7 251 888.2 296 922.7 351c39.7 63.1 66.1 139.6 78.5 227.3 8.1 42.4 15.2 87.3 12.5 127.9-2.8 42.6-16.4 75.5-41.5 100.7-42.5 42.7-120.3 65-237.8 68.1-9.6 0.2-19.6 0.4-29.8 0.4zM76.3 739.3c22 37.6 59.2 63.7 102.1 71.7 242.5 45.1 424.4 65.3 556.1 61.9 116.9-3.1 194.1-25.2 236.3-67.5 55.4-55.6 44.4-142.5 28.3-226.7C976 415.8 903.4 291.5 789.2 219c-124-78.7-248.1-69.9-283.2-65.3-5.6 0.7-11.2 2.4-16.6 4.1-4.1 1.2-8.3 2.5-12.5 3.4C237.3 211.1 88.5 298 34.5 419.6c-54.6 122.8 2.8 253 41.8 319.7z" fill="#FFFFFF" p-id="3581"></path><path d="M424.1 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3582"></path><path d="M635.9 442.5m-24.7 0a24.7 24.7 0 1 0 49.4 0 24.7 24.7 0 1 0-49.4 0Z" fill="#040000" p-id="3583"></path><path d="M426.2 543.3c17.1 7.9 36.6 26 25.5 46.1-6.9 12.5-19.8 21.2-31.7 28.4-4.5 2.7-0.4 9.8 4.1 7.1 17.4-10.5 41.6-27.6 39-51.1-1.6-14-12.4-24.8-23.5-32.3-3-2-6.1-3.9-9.3-5.4-4.8-2.1-8.9 5-4.1 7.2zM629.5 535.4c-21.8 11.7-40.6 37-25.7 61.3 8.2 13.4 22.2 22.7 35.7 30.3 4.7 2.7 8.9-4.6 4.2-7.2-15.5-8.7-39.9-23.9-36.9-45.2 1.6-11.4 10.7-20.7 19.6-27.2 2.4-1.7 4.8-3.4 7.4-4.8 4.7-2.5 0.4-9.8-4.3-7.2z" fill="#040000" p-id="3584"></path><path d="M457.2 584.6c25.6 25.6 66.7 41 101.8 28.3 18.2-6.6 33.2-19.1 45.5-33.8 4.2-5.1-3-12.4-7.3-7.3-18.5 22-43.3 38.1-73 35-18.6-1.9-36.2-10.8-50.9-22-2.9-2.2-6.1-4.8-8.8-7.5-4.7-4.7-12 2.6-7.3 7.3z" fill="#040000" p-id="3585"></path></svg>'},{name:"19",icon:'<svg t="1624457904464" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3739" ><path d="M915.9 510.5c8.4-19 13.1-39.8 13.1-61.7 0-90-78.9-162.9-176.2-162.9-3.2 0-6.3 0.1-9.5 0.2v-0.2c0-94.8-116.2-171.6-259.6-171.6S224 191.2 224 286v2c-96.2 0-174.1 72-174.1 160.9 0 38 14.3 73 38.2 100.5-41.8 29.4-68.8 75.9-68.8 128.2 0 88.9 78 160.9 174.1 160.9 17.1 0 33.6-2.3 49.3-6.5 28.9 46.1 88.7 77.7 157.6 77.7 49.4 0 94-16.2 126-42.3 32 26.1 76.6 42.3 126 42.3 77.3 0 143-39.7 166.7-95 3.1 0.2 6.3 0.2 9.5 0.2 97.3 0 176.2-72.9 176.2-162.9 0-60.6-35.7-113.4-88.8-141.5z" fill="#5A74B8" p-id="3740"></path><path d="M357.6 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" p-id="3741"></path><path d="M357.5 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" p-id="3742"></path><path d="M531.3 449.5a46.6 73.2 0 1 0 93.2 0 46.6 73.2 0 1 0-93.2 0Z" fill="#FEFEFD" p-id="3743"></path><path d="M531.2 449.5a25.1 39.4 0 1 0 50.2 0 25.1 39.4 0 1 0-50.2 0Z" fill="#040000" p-id="3744"></path><path d="M426.7 574.6c20.9 29.9 59.7 52.2 96.2 38.6 19.2-7.2 34.7-21.2 47.6-36.9 2.8-3.5 3.4-8.3 0-11.7-2.9-2.9-8.9-3.5-11.7 0-16.5 20.2-40.9 40.9-68.1 35.5-17.3-3.4-31-13.2-42.9-25.9-2-2.2-3.9-4.4-5.8-6.7-1.6-1.9 1.1 1.5-0.4-0.6-0.2-0.2-0.3-0.5-0.5-0.7-6.2-8.7-20.6-0.4-14.4 8.4z" fill="#040000" p-id="3745"></path></svg>'},{name:"20",icon:'<svg t="1624457910321" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3899" ><path d="M792.8 301.4c-8.2 0-16.2 0.4-24.2 1.3-12.3-81.8-129.2-145.9-271.8-145.9-137.1 0-250.5 59.3-269.9 136.6C105.3 295.5 7.4 391.2 7.4 508.9c0 119.1 100.2 215.6 223.7 215.6 5.3 0 10.6-0.2 15.8-0.5 14.4 80.5 130.4 143.2 271.3 143.2 135.9 0 248.6-58.3 269.4-134.6 1.7 0 3.4 0.1 5.1 0.1 123.6 0 223.7-96.5 223.7-215.6s-100-215.7-223.6-215.7z" fill="#F6CD50" p-id="3900"></path><path d="M435.9 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" p-id="3901"></path><path d="M588.1 431.5m-52.2 0a52.2 52.2 0 1 0 104.4 0 52.2 52.2 0 1 0-104.4 0Z" fill="#FAFAFA" p-id="3902"></path><path d="M435.9 431.5m-27.8 0a27.8 27.8 0 1 0 55.6 0 27.8 27.8 0 1 0-55.6 0Z" fill="#040000" p-id="3903"></path><path d="M601.9 407.4c-5.7 2.9-11.3 5.9-16.9 9-6.8 3.8-15.3 7.8-20.5 13.8-5.6 6.5 1.6 11.1 6.7 14.4 11.2 7.1 23.3 13 35.1 19 5.7 2.9 10.8-5.7 5.1-8.6-10.9-5.6-21.9-11.1-32.4-17.4-2.4-1.4-4.6-3.1-7-4.6 1 0.6-0.4-0.4-0.4-0.4-1.9-0.3-0.5 4.2 0.5 4.1-0.1 0-0.6 0.3 0.3-0.3 0.5-0.3 1-0.9 1.5-1.3 9.7-7.9 21.9-13.5 33.1-19.2 5.7-2.7 0.6-11.4-5.1-8.5zM406.6 547.6c11.5 14.4 27 26.7 42.7 36.3 32.2 19.8 71.2 27.2 107.6 15.4 29.5-9.6 54.6-29.1 75.5-51.6 10.8-11.6-6.6-29.1-17.5-17.5-9.4 10.1-19.5 19.7-30.8 27.7-4.6 3.2-9.3 6.2-14.2 8.9-5 2.8-9.9 5.1-14.1 6.7-4.6 1.7-9.3 3.2-14.1 4.4-2.2 0.5-4.4 1-6.6 1.4-1 0.2-2 0.3-2.9 0.5 2.6-0.4-2.1 0.2-2.5 0.3-4.1 0.4-8.3 0.5-12.5 0.4-2.2-0.1-4.4-0.2-6.6-0.4-1.1-0.1-2.2-0.2-3.2-0.3-1.5-0.2-1.4-0.2 0.1 0l-2.1-0.3c-7.8-1.3-15.4-3.4-22.8-6.2-0.9-0.4-1.8-0.7-2.8-1.1-3.1-1.2 2.3 1.1-0.7-0.3-1.5-0.7-2.9-1.3-4.4-2-3.7-1.8-7.2-3.7-10.8-5.8-5.7-3.4-11.1-7.1-16.4-11.1 3 2.3-1.1-0.9-1.8-1.5-1.1-0.9-2.1-1.7-3.1-2.6-2.1-1.8-4.2-3.7-6.3-5.6-4.4-4.1-8.7-8.4-12.4-13.1-4.2-5.2-13.1-4.3-17.5 0-5 5.1-4 12.2 0.2 17.4z" fill="#040000" p-id="3904"></path></svg>'}]},{name:"标记图标",type:"sign",list:[{name:"1",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M809.728 429.696a18.901333 18.901333 0 0 0-15.274667-12.885333l-183.466666-26.624-81.92-166.272a18.901333 18.901333 0 0 0-34.005334 0l-81.92 166.272-183.594666 26.624a19.029333 19.029333 0 0 0-10.496 32.298666l132.693333 129.536-31.274667 182.741334a18.816 18.816 0 0 0 27.477334 19.84l164.138666-86.186667 164.096 86.058667a18.773333 18.773333 0 1 0 27.434667-19.84l-31.36-182.741334 132.693333-129.408a18.901333 18.901333 0 0 0 4.778667-19.413333z" fill="#FFFFFF"></path></svg>'},{name:"2",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M644.565333 306.901333c32.128 0 65.834667-5.76 101.077334-17.237333a17.066667 17.066667 0 0 1 22.357333 16.213333v328.32c-1.109333 0.768 10.325333 27.093333-99.370667 19.84-109.653333-7.210667-181.76-45.098667-246.869333-45.098666-65.152 0-49.322667 2.688-74.154667 8.405333v168.064a24.746667 24.746667 0 0 1-24.490666 25.258667 22.528 22.528 0 0 1-17.28-7.253334 24.149333 24.149333 0 0 1-7.168-18.005333V281.258667C299.776 280.490667 328.106667 256 421.76 256s164.437333 50.901333 222.805333 50.901333z" fill="#FFFFFF"></path></svg>'},{name:"3",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M524.074667 225.408l274.517333 274.517333a17.066667 17.066667 0 0 1 0 24.149334l-274.517333 274.517333a17.066667 17.066667 0 0 1-24.149334 0l-274.517333-274.517333a17.066667 17.066667 0 0 1 0-24.149334l274.517333-274.517333a17.066667 17.066667 0 0 1 24.149334 0z" fill="#FFFFFF"></path></svg>'},{name:"4",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M317.866667 300.8h388.266666c9.386667 0 17.066667 7.68 17.066667 17.066667v388.266666a17.066667 17.066667 0 0 1-17.066667 17.066667h-388.266666a17.066667 17.066667 0 0 1-17.066667-17.066667v-388.266666c0-9.386667 7.68-17.066667 17.066667-17.066667z" fill="#FFFFFF"></path></svg>'},{name:"5",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M498.346667 279.082667L248.789333 701.44a15.829333 15.829333 0 0 0 13.653334 23.893333h499.114666a15.829333 15.829333 0 0 0 13.653334-23.893333l-249.6-422.357333a15.829333 15.829333 0 0 0-27.264 0z" fill="#FFFFFF"></path></svg>'},{name:"6",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path><path d="M634.538667 487.808L555.050667 426.24 507.306667 256a201.002667 201.002667 0 0 0-23.594667 20.394667l-0.256-0.256L525.653333 426.666667l-133.290666 59.946666a14.08 14.08 0 0 0-8.021334 15.957334l28.757334 126.378666a14.208 14.208 0 0 0 27.733333-6.229333l-26.24-115.114667 126.037333-56.704 76.416 59.136a14.250667 14.250667 0 0 0 19.968-2.474666 14.08 14.08 0 0 0-2.474666-19.797334z" fill="#6D768D"></path></svg>'},{name:"7",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M497.749333 798.549333l-31.445333-28.501333C313.941333 631.722667 213.333333 540.501333 213.333333 428.8a160.981333 160.981333 0 0 1 162.730667-162.730667c51.498667 0 100.906667 23.978667 133.12 61.696a177.536 177.536 0 0 1 133.162667-61.696 160.981333 160.981333 0 0 1 162.730666 162.730667c0 111.701333-100.608 202.965333-252.970666 341.333333l-31.445334 28.458667a17.066667 17.066667 0 0 1-22.912 0z" fill="#FFFFFF"></path></svg>'},{name:"8",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M374.656 273.194667c5.973333 4.48 12.117333 9.6 18.346667 15.36 6.272 5.717333 11.904 12.373333 16.896 19.84 2.517333 4.010667 5.504 8.490667 9.002666 13.482666a529.493333 529.493333 0 0 1 20.266667 32.213334h155.221333a169.813333 169.813333 0 0 0 9.770667-15.744c2.474667-4.48 5.248-8.96 8.234667-13.482667a460.842667 460.842667 0 0 1 23.253333-31.829333c4.992-6.229333 12.245333-12.373333 21.76-18.346667a34.261333 34.261333 0 0 0 10.112-9.728 31.274667 31.274667 0 0 0 5.248-11.989333 18.56 18.56 0 0 0-1.536-11.605334 17.664 17.664 0 0 0-10.112-8.618666c-4.48-1.493333-8.362667-2.005333-11.605333-1.493334a46.933333 46.933333 0 0 0-9.770667 2.602667c-3.242667 1.28-6.613333 2.645333-10.112 4.138667a32.426667 32.426667 0 0 1-12.757333 2.261333 26.026667 26.026667 0 0 1-12.373334-2.645333 45.653333 45.653333 0 0 1-8.96-6.357334l-8.661333-7.850666a30.336 30.336 0 0 0-11.989333-6.4c-9.984-3.968-18.005333-4.693333-24.021334-2.218667-5.973333 2.474667-11.946667 6.485333-17.962666 11.946667a88.618667 88.618667 0 0 1-11.989334 10.496 7.338667 7.338667 0 0 1-3.754666 1.493333 46.165333 46.165333 0 0 1-8.277334-5.205333 71.808 71.808 0 0 1-7.125333-4.906667 37.973333 37.973333 0 0 1-6.4-6.357333c-3.968-3.968-9.941333-6.613333-17.92-7.850667a31.061333 31.061333 0 0 0-21.76 4.138667c-8.533333 5.461333-14.506667 10.069333-18.048 13.824a29.354667 29.354667 0 0 1-15.744 7.893333 23.978667 23.978667 0 0 1-13.098667-0.768 987.733333 987.733333 0 0 0-14.634666-4.48 80.725333 80.725333 0 0 0-14.250667-2.986667 16.768 16.768 0 0 0-11.989333 2.986667c-6.997333 5.461333-9.258667 12.074667-6.741334 19.84a34.56 34.56 0 0 0 13.482667 18.346667z" fill="#FFFFFF"></path><path d="M780.757333 545.152a219.306667 219.306667 0 0 0-19.882666-65.536 224.981333 224.981333 0 0 0-33.365334-49.792 430.336 430.336 0 0 0-37.12-37.12c-14.506667-11.946667-27.264-23.296-38.272-34.048a544.512 544.512 0 0 1-27.733333-28.842667 305.28 305.28 0 0 1-22.485333-26.197333h-168.746667c-6.485333 8.490667-13.994667 17.493333-22.485333 26.965333a360.96 360.96 0 0 1-26.24 28.074667c-10.538667 10.24-22.272 21.12-35.285334 32.597333a305.493333 305.493333 0 0 0-41.6 44.16 250.026667 250.026667 0 0 0-49.493333 117.589334 216.106667 216.106667 0 0 0 1.877333 70.4 220.586667 220.586667 0 0 0 75.349334 126.549333c21.248 18.005333 47.146667 32.597333 77.653333 43.818667 30.464 11.264 65.493333 16.853333 104.96 16.853333 38.528 0 72.874667-4.864 103.125333-14.592a265.045333 265.045333 0 0 0 78.378667-39.338667c21.973333-16.469333 39.594667-35.797333 52.864-58.026666 13.226667-22.186667 22.101333-45.824 26.624-70.784 4.992-30.421333 5.632-58.026667 1.877333-82.773334z" fill="#FFFFFF"></path><path d="M593.322667 647.509333a20.48 20.48 0 0 1-11.861334 3.2h-50.133333v14.165334c0 4.266667-1.792 8.362667-5.376 12.373333a15.914667 15.914667 0 0 1-13.952 5.333333 24.917333 24.917333 0 0 1-14.336-3.882666c-3.84-2.602667-5.973333-7.210667-6.4-13.824v-14.165334h-48.725333a17.792 17.792 0 0 1-11.818667-3.882666 10.24 10.24 0 0 1-3.968-9.6c0-4.266667 1.578667-7.68 4.693333-10.24a16.768 16.768 0 0 1 11.093334-3.925334h48.682666v-24.789333h-48.682666a15.573333 15.573333 0 0 1-11.52-4.266667 13.525333 13.525333 0 0 1-4.266667-9.941333 15.36 15.36 0 0 1 4.693333-10.624 14.72 14.72 0 0 1 11.093334-4.949333h48.682666l0.725334-14.890667a1053.568 1053.568 0 0 1-40.832-42.538667l-10.752-9.898666a41.216 41.216 0 0 1-6.442667-11.690667c-1.92-4.992-0.938667-10.069333 2.858667-15.274667a13.653333 13.653333 0 0 1 15.786666-3.84c6.186667 2.090667 11.221333 4.821333 15.018667 8.106667 1.92 2.389333 5.248 5.888 10.026667 10.666667l15.061333 14.848 19.328 19.157333 22.186667-20.565333a987.605333 987.605333 0 0 1 29.397333-25.514667 21.162667 21.162667 0 0 1 14.293333-5.674667c5.290667 0 9.557333 2.133333 12.928 6.4 6.186667 7.082667 3.84 15.36-7.168 24.789334a179.072 179.072 0 0 0-12.885333 12.373333c-5.76 5.973333-11.52 11.733333-17.194667 17.408-6.698667 7.082667-14.08 14.378667-22.186666 21.973333v13.44h46.506666c6.698667 0 11.605333 1.536 14.72 4.608a14.165333 14.165333 0 0 1 4.650667 10.282667c0 4.266667-1.450667 7.936-4.309333 11.008-2.858667 3.029333-7.637333 4.352-14.336 3.84l-46.506667 0.768-0.768 24.064h45.866667c13.354667 0 20.053333 4.992 20.053333 14.933333 0.469333 4.693333-0.853333 8.106667-3.925333 10.24z" fill="#6D768D"></path></svg>'},{name:"9",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M512 213.333333l234.666667 341.333334h-128v213.333333h-213.333334v-213.333333h-128L512 213.333333z" fill="#FFFFFF"></path></svg>'},{name:"10",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M533.333333 810.666667L298.666667 469.333333h128V256h213.333333v213.333333h128l-234.666667 341.333334z" fill="#FFFFFF"></path></svg>'},{name:"11",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M213.333333 533.333333L554.666667 298.666667v128h213.333333v213.333333h-213.333333v128l-341.333334-234.666667z" fill="#FFFFFF"></path></svg>'},{name:"12",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M810.666667 533.333333L469.333333 768v-128H256v-213.333333h213.333333V298.666667l341.333334 234.666666z" fill="#FFFFFF"></path></svg>'},{name:"13",icon:'<svg viewBox="0 0 1024 1024"><path d="M0 512c0 282.752 229.248 512 512 512s512-229.248 512-512S794.752 0 512 0 0 229.248 0 512z" fill="#6D768D"></path><path d="M571.349333 508.586667l162.389334-162.346667a44.330667 44.330667 0 1 0-62.72-62.72l-162.389334 162.389333-162.517333-162.389333a44.330667 44.330667 0 1 0-62.72 62.72l162.389333 162.389333-162.389333 162.474667a44.330667 44.330667 0 1 0 62.72 62.72l162.389333-162.346667 162.389334 162.389334a44.330667 44.330667 0 1 0 62.72-62.72l-162.261334-162.56z" fill="#FFFFFF"></path></svg>'},{name:"14",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C233.386667 0 0 225.877333 0 512s225.877333 512 512 512 512-225.877333 512-512S790.613333 0 512 0z" fill="#6D768D"></path><path d="M726.144 311.210667l-277.333333 305.066666-124.8-124.8c-13.866667-13.866667-41.6-13.866667-55.466667 0-13.866667 13.866667-13.866667 41.6 0 55.466667l159.445333 152.533333c13.866667 13.866667 41.6 13.866667 55.466667 0l305.066667-332.8c13.866667-13.866667 13.866667-41.6 0-55.466666-20.778667-13.866667-48.512-13.866667-62.378667 0z" fill="#FFFFFF"></path></svg>'},{name:"15",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M541.952 755.626667a40.618667 40.618667 0 0 1-29.824 12.373333 41.344 41.344 0 0 1-30.122667-12.373333 40.106667 40.106667 0 0 1-12.672-30.122667c0-11.605333 4.096-21.845333 12.672-30.122667a40.405333 40.405333 0 0 1 30.122667-12.714666c11.605333 0 21.546667 4.138667 29.824 12.714666a40.32 40.32 0 0 1 12.714667 30.122667c0 11.861333-4.096 21.76-12.714667 30.122667zM450.986667 241.28A77.866667 77.866667 0 0 1 512.256 213.333333c24.874667 0 45.354667 8.917333 61.354667 27.946667 15.488 18.432 23.722667 41.685333 23.722666 69.674667 0 23.765333-33.152 200.533333-44.672 329.045333h-80.128C463.146667 511.402667 426.666667 334.677333 426.666667 310.954667c0-27.392 8.277333-50.645333 24.32-69.674667z" fill="#FFFFFF"></path></svg>'},{name:"16",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.794667 0 512 0z" fill="#6D768D"></path><path d="M490.666667 682.666667a64 64 0 1 1 0 128 64 64 0 0 1 0-128z m13.994666-490.752c61.397333 0 112.341333 14.634667 153.002667 43.946666 40.533333 29.269333 60.885333 72.618667 60.885333 130.133334 0 35.242667-12.373333 64.938667-29.952 89.045333-10.282667 14.677333-33.664 33.408-62.890666 56.192l-32.426667 22.357333c-15.701333 12.202667-29.696 26.453333-34.858667 42.666667-1.706667 5.546667-3.072 14.677333-3.968 24.533333-0.426667 4.949333-4.864 15.018667-15.232 15.018667h-83.328c-13.568 0-15.957333-10.581333-15.744-15.786667 1.493333-34.005333 4.608-64.213333 18.474667-80.469333 28.074667-32.896 91.904-73.813333 91.904-73.813333a104.106667 104.106667 0 0 0 23.552-24.021334c10.837333-14.933333 19.797333-31.317333 19.797333-49.237333 0-20.565333-6.016-39.338667-18.090666-56.32-12.032-16.938667-34.090667-25.386667-66.005334-25.386667-31.445333 0-53.76 10.410667-66.901333 31.274667-9.685333 15.445333-15.786667 29.610667-18.346667 45.013333-0.853333 5.461333-4.394667 16.981333-16.042666 16.981334H327.210667c-17.322667 0-21.12-11.221333-20.650667-16.64 6.272-68.138667 32.896-114.688 80-144.597334 32-20.565333 71.381333-30.890667 118.101333-30.890666z" fill="#FFFFFF"></path></svg>'},{name:"17",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M336.256 410.026667H253.312a40.021333 40.021333 0 0 0-39.850667 43.264l23.296 278.101333c1.706667 20.693333 19.072 36.608 39.850667 36.608h59.648c11.050667 0 20.010667-8.96 20.010667-19.968v-318.037333a19.968 19.968 0 0 0-20.010667-19.968z m434.432 0h-178.944C653.312 182.314667 548.949333 170.666667 548.949333 170.666667c-44.288 0-35.114667 34.986667-38.442666 40.832 0 84.48-68.010667 155.093333-101.034667 184.362666a39.552 39.552 0 0 0-13.226667 29.653334v322.56c0 11.008 8.96 19.925333 20.010667 19.925333h233.728c30.378667 0 58.154667-17.152 71.68-44.373333 18.176-36.736 40.448-90.112 54.656-133.973334 13.781333-42.410667 26.24-94.976 33.578667-131.968a39.850667 39.850667 0 0 0-39.253334-47.658666z" fill="#FFFFFF"></path></svg>'},{name:"18",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M796.16 413.909333c-31.146667-0.298667-115.626667-0.085333-146.858667-0.085333h-158.464c8.533333-7.68 15.914667-14.506667 23.594667-20.906667 29.781333-24.874667 25.813333-71.082667-14.208-88.874666-22.954667-10.24-44.970667-5.632-64 11.52-34.944 31.274667-69.632 62.677333-104.277333 93.994666a15.488 15.488 0 0 1-11.178667 4.437334c-11.221333-0.085333-26.88-0.128-46.933333-0.170667a17.066667 17.066667 0 0 0-17.109334 17.066667L256 719.701333a17.066667 17.066667 0 0 0 17.066667 17.152l49.578666-0.085333c3.968 0 7.466667 0.768 10.88 2.602667 15.829333 8.832 31.701333 17.493333 47.616 26.24a18.133333 18.133333 0 0 0 9.301334 2.346666h168.405333c6.186667 0 11.946667-0.981333 17.834667-2.56 29.44-7.253333 40.021333-30.293333 38.528-52.565333-0.768-9.728-4.266667-18.346667-9.984-26.24 19.626667-5.76 35.114667-16.213333 42.112-36.096 7.125333-20.394667 1.621333-38.4-12.672-53.333333 28.16-19.754667 34.858667-44.672 18.645333-75.648h140.458667c6.570667 0 13.013333-0.597333 19.370666-2.645334 31.957333-9.813333 48.810667-42.88 35.626667-71.552-10.154667-22.186667-28.629333-33.152-52.608-33.450666z" fill="#FFFFFF"></path></svg>'},{name:"19",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M270.506667 413.909333c31.146667-0.298667 115.626667-0.085333 146.858666-0.085333h158.464c-8.533333-7.68-15.914667-14.506667-23.594666-20.906667-29.781333-24.874667-25.813333-71.082667 14.208-88.874666 22.954667-10.24 44.970667-5.632 64 11.52 34.944 31.274667 69.632 62.677333 104.277333 93.994666 3.413333 2.986667 6.528 4.437333 11.178667 4.437334 11.221333-0.085333 26.88-0.128 46.933333-0.170667a17.066667 17.066667 0 0 1 17.109333 17.066667l0.682667 288.853333a17.066667 17.066667 0 0 1-17.066667 17.152l-49.578666-0.085333a22.101333 22.101333 0 0 0-10.88 2.602666c-15.829333 8.832-31.701333 17.493333-47.616 26.24a18.133333 18.133333 0 0 1-9.301334 2.346667h-168.405333a68.693333 68.693333 0 0 1-17.834667-2.56c-29.44-7.253333-40.021333-30.293333-38.528-52.565333 0.768-9.728 4.266667-18.346667 9.984-26.24-19.626667-5.76-35.114667-16.213333-42.112-36.096-7.125333-20.394667-1.621333-38.4 12.672-53.333334-28.16-19.754667-34.858667-44.672-18.645333-75.648H272.853333c-6.570667 0-13.013333-0.597333-19.370666-2.645333-31.957333-9.813333-48.810667-42.88-35.626667-71.552 10.154667-22.186667 28.629333-33.152 52.608-33.450667z" fill="#FFFFFF"></path></svg>'},{name:"20",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M667.733333 480.128H400v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 213.333333a155.605333 155.605333 0 0 0-155.392 155.434667v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 509.013333v292.010667a28.885333 28.885333 0 0 0 28.885333 28.885333h340.138667a28.885333 28.885333 0 0 0 28.928-28.885333V509.013333a28.885333 28.885333 0 0 0-28.928-28.885333z" fill="#FFFFFF"></path></svg>'},{name:"21",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M400.042667 437.461333v-111.36a97.706667 97.706667 0 0 1 97.621333-97.621333 97.706667 97.706667 0 0 1 97.578667 97.621333 28.885333 28.885333 0 0 0 57.813333 0A155.605333 155.605333 0 0 0 497.621333 170.666667a155.605333 155.605333 0 0 0-155.392 155.434666v111.36h-14.677333A28.885333 28.885333 0 0 0 298.666667 466.346667v292.010666a28.885333 28.885333 0 0 0 28.885333 28.885334h340.138667a28.885333 28.885333 0 0 0 28.928-28.885334V466.346667a28.885333 28.885333 0 0 0-28.928-28.885334H400.042667z" fill="#FFFFFF"></path><path d="M595.242667 437.461333v-111.36a97.706667 97.706667 0 0 0-97.621334-97.621333 97.706667 97.706667 0 0 0-97.578666 97.621333 28.885333 28.885333 0 0 1-57.813334 0A155.605333 155.605333 0 0 1 497.621333 170.666667a155.605333 155.605333 0 0 1 155.434667 155.434666v111.36h14.634667c16 0 28.928 12.928 28.928 28.885334v292.010666a28.885333 28.885333 0 0 1-28.928 28.885334H327.552A28.885333 28.885333 0 0 1 298.666667 758.357333V466.346667c0-15.957333 12.928-28.885333 28.885333-28.885334h267.690667z" fill="#FFFFFF"></path></svg>'},{name:"22",icon:'<svg viewBox="0 0 1024 1024"><path d="M511.999787 512.000213m-511.999787 0a511.999787 511.999787 0 1 0 1023.999573 0 511.999787 511.999787 0 1 0-1023.999573 0Z" fill="#6D768D"></path><path d="M381.354508 364.586941c0 54.015977 29.013321 103.935957 75.946635 130.986613a152.53327 152.53327 0 0 0 151.935936 0 151.12527 151.12527 0 0 0 75.946636-130.986613A151.594604 151.594604 0 0 0 533.333111 213.333671a151.594604 151.594604 0 0 0-151.89327 151.25327zM660.479725 498.901552a185.258589 185.258589 0 0 1-127.146614 50.346646c-49.066646 0-93.866628-19.199992-127.06128-50.346646C317.141201 544.853533 255.999893 637.440161 255.999893 744.106783c0 13.183995 10.709329 23.850657 23.978657 23.850657h506.709122a23.893323 23.893323 0 0 0 23.978657-23.893323c0-106.538622-61.098641-199.25325-150.186604-245.205232z" fill="#FFFFFF"></path></svg>'},{name:"23",icon:'<svg viewBox="0 0 1024 1024"><path d="M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z" fill="#6D768D"></path><path d="M445.610667 401.578667a129.322667 129.322667 0 1 0 258.645333 0 129.322667 129.322667 0 0 0-258.645333 0z m237.568 114.901333a157.354667 157.354667 0 0 1-216.362667 0 236.373333 236.373333 0 0 0-127.957333 209.706667c0 11.264 9.130667 20.394667 20.394666 20.394666h431.402667a20.394667 20.394667 0 0 0 20.394667-20.394666 236.373333 236.373333 0 0 0-127.872-209.706667zM409.813333 401.578667c0-40.362667 14.592-77.397333 38.698667-106.112a112.725333 112.725333 0 0 0-29.013333-3.925334 112.64 112.64 0 0 0-112.426667 112.469334 112.64 112.64 0 0 0 144.853333 107.648 164.693333 164.693333 0 0 1-42.112-110.08z m-18.602666 136.704a136.533333 136.533333 0 0 1-65.706667-34.474667 205.44 205.44 0 0 0-111.232 182.4c0 9.813333 7.936 17.706667 17.706667 17.706667H303.36a273.621333 273.621333 0 0 1 87.893333-165.632z" fill="#FFFFFF"></path></svg>'}]}],$i=(t,e=[])=>{let n=t.split("_"),r=[...Zi,...e].find(t=>t.type===n[0]);return r.list.find(t=>t.name===n[1]).icon};var tA={hyperlink:Xi,note:Ji,nodeIconList:Zi,getNodeIconListIcon:$i};function eA(){let t=this.nodeData.data.image;if(!t)return;let e=this.getImgShowSize(),n=(new An).load(t).size(...e);return this.nodeData.data.imageTitle&&n.attr("title",this.nodeData.data.imageTitle),n.on("dblclick",t=>{this.mindMap.emit("node_img_dblclick",this,t)}),{node:n,width:e[0],height:e[1]}}function nA(){return ni(this.nodeData.data.imageSize.width,this.nodeData.data.imageSize.height,this.mindMap.themeConfig.imgMaxWidth,this.mindMap.themeConfig.imgMaxHeight)}function rA(){let t=this.nodeData.data;if(!t.icon||t.icon.length<=0)return[];let e=this.mindMap.themeConfig.iconSize;return t.icon.map(t=>{let n=tA.getNodeIconListIcon(t,this.mindMap.opt.iconList||[]),r=null;return r=/^<svg/.test(n)?Jr(n):(new An).load(n),r.size(e,e),{node:r,width:e,height:e}})}function iA(){let t=new zr;if(this.nodeData.data.resetRichText||[s.CHANGE_THEME].includes(this.mindMap.renderer.renderSource)){delete this.nodeData.data.resetRichText;let t=yi(this.nodeData.data.text);this.nodeData.data.text=`<p><span style="${this.style.createStyleText()}">${t}</span></p>`}let e=`<div>${this.nodeData.data.text}</div>`,n=document.createElement("div");n.innerHTML=e,n.style.cssText="position: fixed; left: -999999px;";let r=n.children[0];r.classList.add("smm-richtext-node-wrap"),r.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),r.style.maxWidth=this.mindMap.opt.textAutoWrapWidth+"px",this.mindMap.el.appendChild(n);let{width:i,height:A}=r.getBoundingClientRect();i=Math.ceil(i),A=Math.ceil(A),t.attr("data-width",i),t.attr("data-height",A),e=n.innerHTML,this.mindMap.el.removeChild(n);let o=new kr;return o.width(i),o.height(A),o.add(Jr(e)),t.add(o),{node:t,width:i,height:A}}function AA(){if(this.nodeData.data.richText)return this.createRichTextNode();let t=new zr,e=this.getStyle("fontSize",!1,this.nodeData.data.isActive),n=this.getStyle("lineHeight",!1,this.nodeData.data.isActive),r=this.style.getTextFontStyle(),i=this.nodeData.data.text.split(/\n/gim),A=this.mindMap.opt.textAutoWrapWidth,o=!1;i.forEach((t,e)=>{let n=t.split(""),s=[],a=[];while(n.length){let t=n.shift(),e=[...a,t].join("");fi(e,r).width<=A?a.push(t):(s.push(a.join("")),a=[t])}a.length>0&&s.push(a.join("")),s.length>1&&(o=!0),i[e]=s.join("\n")}),i=i.join("\n").split(/\n/gim),i.forEach((r,i)=>{let A=(new Lr).text(r);this.style.text(A),A.y(e*n*i),t.add(A)});let{width:s,height:a}=t.bbox();return s=Math.ceil(s),a=Math.ceil(a),t.attr("data-width",s),t.attr("data-height",a),t.attr("data-ismultiLine",o||i.length>1),{node:t,width:s,height:a}}function oA(){let{hyperlink:t,hyperlinkTitle:e}=this.nodeData.data;if(!t)return;let n=this.mindMap.themeConfig.iconSize,r=new Jr,i=(new qr).to(t).target("_blank");i.node.addEventListener("click",t=>{t.stopPropagation()}),e&&i.attr("title",e),i.rect(n,n).fill({color:"transparent"});let A=Jr(tA.hyperlink).size(n,n);return this.style.iconNode(A),i.add(A),r.add(i),{node:r,width:n,height:n}}function sA(){let t=this.nodeData.data.tag;if(!t||t.length<=0)return[];let e=[];return t.slice(0,this.mindMap.opt.maxTag).forEach((t,n)=>{let r=new zr,i=(new Lr).text(t).x(8).cy(10);this.style.tagText(i,n);let{width:A}=i.bbox(),o=(new tr).size(A+16,20);this.style.tagRect(o,n),r.add(o).add(i),e.push({node:r,width:A+16,height:20})}),e}function aA(){if(!this.nodeData.data.note)return null;let t=this.mindMap.themeConfig.iconSize,e=(new Jr).attr("cursor","pointer");e.add((new tr).size(t,t).fill({color:"transparent"}));let n=Jr(tA.note).size(t,t);return this.style.iconNode(n),e.add(n),this.mindMap.opt.customNoteContentShow||(this.noteEl||(this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`\n position: absolute;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n display: none;\n background-color: #fff;\n z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}\n `,document.body.appendChild(this.noteEl)),this.noteEl.innerText=this.nodeData.data.note),e.on("mouseover",()=>{let{left:n,top:r}=e.node.getBoundingClientRect();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.nodeData.data.note,n,r+t):(this.noteEl.style.left=n+"px",this.noteEl.style.top=r+t+"px",this.noteEl.style.display="block")}),e.on("mouseout",()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"}),{node:e,width:t,height:t}}var lA={createImgNode:eA,getImgShowSize:nA,createIconNode:rA,createRichTextNode:iA,createTextNode:AA,createHyperlinkNode:oA,createTagNode:sA,createNoteNode:aA};class cA{constructor(t={}){this.nodeData=this.handleData(t.data||{}),this.uid=t.uid,this.mindMap=t.mindMap,this.renderer=t.renderer,this.draw=t.draw||null,this.style=new b(this),this.shapeInstance=new Zr(this),this.shapePadding={paddingX:0,paddingY:0},this.isRoot=void 0!==t.isRoot&&t.isRoot,this.isGeneralization=void 0!==t.isGeneralization&&t.isGeneralization,this.generalizationBelongNode=null,this.layerIndex=void 0===t.layerIndex?0:t.layerIndex,this.width=t.width||0,this.height=t.height||0,this._left=t.left||0,this._top=t.top||0,this.customLeft=t.data.data.customLeft||void 0,this.customTop=t.data.data.customTop||void 0,this.isDrag=!1,this.parent=t.parent||null,this.children=t.children||[],this.group=null,this.shapeNode=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this.noteEl=null,this._expandBtn=null,this._lastExpandBtnType=null,this._showExpandBtn=!1,this._openExpandNode=null,this._closeExpandNode=null,this._fillExpandNode=null,this._lines=[],this._generalizationLine=null,this._generalizationNode=null,this._unVisibleRectRegionNode=null,this._isMouseenter=!1,this._rectInfo={imgContentWidth:0,imgContentHeight:0,textContentWidth:0,textContentHeight:0},this._generalizationNodeWidth=0,this._generalizationNodeHeight=0,this.textContentItemMargin=this.mindMap.opt.textContentMargin,this.blockContentMargin=this.mindMap.opt.imgTextMargin,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.isMultipleChoice=!1,this.needLayout=!1,Object.keys(Li).forEach(t=>{this[t]=Li[t].bind(this)}),Object.keys(Pi).forEach(t=>{this[t]=Pi[t].bind(this)}),Object.keys(Yi).forEach(t=>{this[t]=Yi[t].bind(this)}),Object.keys(lA).forEach(t=>{this[t]=lA[t].bind(this)}),this.getSize()}get left(){return this.customLeft||this._left}set left(t){this._left=t}get top(){return this.customTop||this._top}set top(t){this._top=t}reset(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}handleData(t){return t.data.expand=!1!==t.data.expand,t.data.isActive=!0===t.data.isActive,t.children=t.children||[],t}createNodeData(){this._imgData=this.createImgNode(),this._iconData=this.createIconNode(),this._textData=this.createTextNode(),this._hyperlinkData=this.createHyperlinkNode(),this._tagData=this.createTagNode(),this._noteData=this.createNoteNode()}getSize(){this.updateGeneralization(),this.createNodeData();let{width:t,height:e}=this.getNodeRect(),n=this.width!==t||this.height!==e;return this.width=t,this.height=e,n}getNodeRect(){let t=0,e=0,n=0,r=0;this._imgData&&(this._rectInfo.imgContentWidth=t=this._imgData.width,this._rectInfo.imgContentHeight=e=this._imgData.height),this._iconData.length>0&&(n+=this._iconData.reduce((t,e)=>(r=Math.max(r,e.height),t+(e.width+this.textContentItemMargin)),0)),this._textData&&(n+=this._textData.width,r=Math.max(r,this._textData.height)),this._hyperlinkData&&(n+=this._hyperlinkData.width,r=Math.max(r,this._hyperlinkData.height)),this._tagData.length>0&&(n+=this._tagData.reduce((t,e)=>(r=Math.max(r,e.height),t+(e.width+this.textContentItemMargin)),0)),this._noteData&&(n+=this._noteData.width,r=Math.max(r,this._noteData.height)),this._rectInfo.textContentWidth=n,this._rectInfo.textContentHeight=r;let i=e>0&&r>0?this.blockContentMargin:0,{paddingX:A,paddingY:o}=this.getPaddingVale(),s=Math.max(t,n),a=e+r,{paddingX:l,paddingY:c}=this.shapeInstance.getShapePadding(s,a,A,o);return this.shapePadding.paddingX=l,this.shapePadding.paddingY=c,{width:s+2*A+2*l,height:a+2*o+i+2*c}}layout(){this.group.clear();let{width:t,height:e,textContentItemMargin:n}=this,{paddingY:r}=this.getPaddingVale();r+=this.shapePadding.paddingY,this.shapeNode=this.shapeInstance.createShape(),this.group.add(this.shapeNode),this.updateNodeShape(),this.mindMap.opt.alwaysShowExpandBtn||(this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new tr),this._unVisibleRectRegionNode.fill({color:"transparent"}).size(this.expandBtnSize,e).x(t).y(0),this.group.add(this._unVisibleRectRegionNode)),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid);let i=0;this._imgData&&(i=this._imgData.height,this.group.add(this._imgData.node),this._imgData.node.cx(t/2).y(r));let A=new zr,o=0,s=new zr;if(this._iconData&&this._iconData.length>0){let t=0;this._iconData.forEach(e=>{e.node.x(o+t).y((this._rectInfo.textContentHeight-e.height)/2),s.add(e.node),t+=e.width+n}),A.add(s),o+=t}this._textData&&(this._textData.node.attr("data-offsetx",o),this._textData.node.x(o).y(0),A.add(this._textData.node),o+=this._textData.width+n),this._hyperlinkData&&(this._hyperlinkData.node.x(o).y((this._rectInfo.textContentHeight-this._hyperlinkData.height)/2),A.add(this._hyperlinkData.node),o+=this._hyperlinkData.width+n);let a=new zr;if(this._tagData&&this._tagData.length>0){let t=0;this._tagData.forEach(e=>{e.node.x(o+t).y((this._rectInfo.textContentHeight-e.height)/2),a.add(e.node),t+=e.width+n}),A.add(a),o+=t}this._noteData&&(this._noteData.node.x(o).y((this._rectInfo.textContentHeight-this._noteData.height)/2),A.add(this._noteData.node),o+=this._noteData.width),A.translate(t/2-A.bbox().width/2,i+r+(i>0&&this._rectInfo.textContentHeight>0?this.blockContentMargin:0)),this.group.add(A)}bindGroupEvent(){this.group.on("click",t=>{if(this.mindMap.emit("node_click",this,t),this.isMultipleChoice)return t.stopPropagation(),void(this.isMultipleChoice=!1);this.active(t)}),this.group.on("mousedown",t=>{if(this.isRoot&&3===t.which&&t.stopPropagation(),this.isRoot||t.stopPropagation(),t.ctrlKey&&this.mindMap.opt.enableCtrlKeyNodeSelection){this.isMultipleChoice=!0;let t=this.nodeData.data.isActive;t||this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.mindMap.execCommand("SET_NODE_ACTIVE",this,!t),this.mindMap.renderer[t?"removeActiveNode":"addActiveNode"](this),this.mindMap.emit("node_active",t?null:this,this.mindMap.renderer.activeNodeList)}this.mindMap.emit("node_mousedown",this,t)}),this.group.on("mouseup",t=>{this.isRoot||t.stopPropagation(),this.mindMap.emit("node_mouseup",this,t)}),this.group.on("mouseenter",t=>{this._isMouseenter=!0,this.showExpandBtn(),this.mindMap.emit("node_mouseenter",this,t)}),this.group.on("mouseleave",t=>{this._isMouseenter=!1,this.hideExpandBtn(),this.mindMap.emit("node_mouseleave",this,t)}),this.group.on("dblclick",t=>{this.mindMap.opt.readonly||(t.stopPropagation(),this.mindMap.emit("node_dblclick",this,t))}),this.group.on("contextmenu",t=>{this.mindMap.opt.readonly||t.ctrlKey||(t.stopPropagation(),t.preventDefault(),this.nodeData.data.isActive&&this.renderer.clearActive(),this.active(t),this.mindMap.emit("node_contextmenu",t,this))})}active(t){this.mindMap.opt.readonly||(t&&t.stopPropagation(),this.nodeData.data.isActive||(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActive(),this.mindMap.execCommand("SET_NODE_ACTIVE",this,!0),this.renderer.addActiveNode(this),this.mindMap.emit("node_active",this,this.renderer.activeNodeList)))}update(t=!1){if(!this.group)return;let{enableNodeTransitionMove:e,nodeTransitionMoveDuration:n,alwaysShowExpandBtn:r}=this.mindMap.opt;if(r)this._expandBtn&&this.nodeData.children.length<=0?this.removeExpandBtn():this.renderExpandBtn();else{let{isActive:t,expand:e}=this.nodeData.data;!e||t||this._isMouseenter?this.showExpandBtn():this.hideExpandBtn()}this.renderGeneralization();let i=this.group.transform();this.left===i.translateX&&this.top===i.translateY||(!t&&e?this.group.animate(n).translate(this.left-i.translateX,this.top-i.translateY):this.group.translate(this.left-i.translateX,this.top-i.translateY))}reRender(){let t=this.getSize();return this.layout(),this.update(),t}updateNodeShape(){if(!this.shapeNode)return;const t=this.getShape();this.style[t===s.SHAPE.RECTANGLE?"rect":"shape"](this.shapeNode)}render(t=(()=>{})){let{enableNodeTransitionMove:e,nodeTransitionMoveDuration:n}=this.mindMap.opt;this.renderLine();let r=!1;if(this.group?(this.draw.add(this.group),this.needLayout&&(this.needLayout=!1,this.layout()),this.update()):(r=!0,this.group=new zr,this.group.css({cursor:"default"}),this.bindGroupEvent(),this.draw.add(this.group),this.layout(),this.update(r)),this.children&&this.children.length&&!1!==this.nodeData.data.expand){let e=0;ci(this.children.map(n=>()=>{n.render(()=>{e++,e>=this.children.length&&t()})}))}else e&&!r?setTimeout(()=>{t()},n):t();this.nodeData.inserting&&(delete this.nodeData.inserting,this.active(),setTimeout(()=>{this.mindMap.emit("node_dblclick",this)},0))}remove(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.children&&this.children.length&&ci(this.children.map(t=>()=>{t.remove()})))}destroy(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.group=null)}hide(){if(this.group.hide(),this.hideGeneralization(),this.parent){let t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].hide(),this._lines.forEach(t=>{t.hide()})}this.children&&this.children.length&&ci(this.children.map(t=>()=>{t.hide()}))}show(){if(this.group){if(this.group.show(),this.showGeneralization(),this.parent){let t=this.parent.children.indexOf(this);this.parent._lines[t]&&this.parent._lines[t].show(),this._lines.forEach(t=>{t.show()})}this.children&&this.children.length&&ci(this.children.map(t=>()=>{t.show()}))}}renderLine(t=!1){if(!1===this.nodeData.data.expand)return;let e=this.nodeData.children.length;this.mindMap.opt.layout!==s.LAYOUT.FISHBONE||!this.isRoot&&1!==this.layerIndex||(e=0),e>this._lines.length?new Array(e-this._lines.length).fill(0).forEach(()=>{this._lines.push(this.draw.path())}):e<this._lines.length&&(this._lines.slice(e).forEach(t=>{t.remove()}),this._lines=this._lines.slice(0,e)),this.renderer.layout.renderLine(this,this._lines,(t,e)=>{this.styleLine(t,e)},this.style.getStyle("lineStyle",!0)),t&&this.children&&this.children.length>0&&this.children.forEach(e=>{e.renderLine(t)})}getShape(){return this.mindMap.themeConfig.nodeUseLineStyle?s.SHAPE.RECTANGLE:this.style.getStyle("shape",!1,!1)}hasCustomPosition(){return void 0!==this.customLeft&&void 0!==this.customTop}ancestorHasCustomPosition(){let t=this;while(t){if(t.hasCustomPosition())return!0;t=t.parent}return!1}addChildren(t){this.children.push(t)}styleLine(t,e){let n=e.getSelfInhertStyle("lineWidth")||e.getStyle("lineWidth",!0),r=e.getSelfInhertStyle("lineColor")||e.getStyle("lineColor",!0),i=e.getSelfInhertStyle("lineDasharray")||e.getStyle("lineDasharray",!0);this.style.line(t,{width:n,color:r,dasharray:i})}removeLine(){this._lines.forEach(t=>{t.remove()}),this._lines=[]}isParent(t){if(this===t)return!1;let e=t.parent;while(e){if(this===e)return!0;e=e.parent}return!1}isBrother(t){return!(!this.parent||this===t)&&this.parent.children.find(e=>e===t)}getPaddingVale(){let{isActive:t}=this.nodeData.data;return{paddingX:this.getStyle("paddingX",!0,t),paddingY:this.getStyle("paddingY",!0,t)}}getStyle(t,e,n){let r=this.style.merge(t,e,n);return void 0===r?"":r}getSelfStyle(t){return this.style.getSelfStyle(t)}getParentSelfStyle(t){return this.parent?this.parent.getSelfStyle(t)||this.parent.getParentSelfStyle(t):null}getSelfInhertStyle(t){return this.getSelfStyle(t)||this.getParentSelfStyle(t)}getData(t){return t?this.nodeData.data[t]||"":this.nodeData.data}}var uA=cA;class hA{constructor(t){this.max=t||1e3,this.size=0,this.pool=new Map}add(t,e){if(this.delete(t),this.pool.set(t,e),this.size++,this.size>this.max){let t=this.pool.keys(),e=t.next();this.delete(e.value)}}delete(t){this.pool.has(t)&&(this.pool.delete(t),this.size--)}has(t){return this.pool.has(t)}get(t){if(this.pool.has(t))return this.pool.get(t)}}class dA{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.draw=this.mindMap.draw,this.root=null,this.lru=new hA(this.mindMap.opt.maxNodeCacheCount)}doLayout(){throw new Error("【computed】方法为必要方法需要子类进行重写")}renderLine(){throw new Error("【renderLine】方法为必要方法需要子类进行重写")}renderExpandBtn(){throw new Error("【renderExpandBtn】方法为必要方法需要子类进行重写")}renderGeneralization(){}cacheNode(t,e){this.renderer.nodeCache[t]=e,this.lru.add(t,e)}checkIsNeedResizeSources(){return[s.CHANGE_THEME,s.TRANSFORM_TO_NORMAL_NODE].includes(this.renderer.renderSource)}createNode(t,e,n,r){let i=null;if(t&&t._node&&!this.renderer.reRender)i=t._node,i.reset(),i.layerIndex=r,this.cacheNode(t._node.uid,i),this.checkIsNeedResizeSources()&&(i.getSize(),i.needLayout=!0);else if(this.lru.has(t.data.uid)&&!this.renderer.reRender){i=this.lru.get(t.data.uid);let e=JSON.stringify(i.nodeData.data);i.reset(),i.nodeData=i.handleData(t||{}),i.layerIndex=r,this.cacheNode(t.data.uid,i),t._node=i;let n=this.checkIsNeedResizeSources(),A=e!==JSON.stringify(t.data);(n||A)&&(i.getSize(),i.needLayout=!0)}else{let e=this.mindMap.uid++;i=new uA({data:t,uid:e,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:r}),t.data.uid=e,this.cacheNode(e,i),t._node=i,t.data.isActive&&this.renderer.addActiveNode(i)}return n?(i.isRoot=!0,this.root=i):(i.parent=e._node,e._node.addChildren(i)),i}formatPosition(t,e,n){return"number"===typeof t?t:void 0!==a[t]?e*a[t]:/^\d\d*%$/.test(t)?Number.parseFloat(t)/100*e:(e-n)/2}setNodeCenter(t){let{initRootNodePosition:e}=this.mindMap.opt,{CENTER:n}=s.INIT_ROOT_NODE_POSITION;(!e||!Array.isArray(e)||e.length<2)&&(e=[n,n]),t.left=this.formatPosition(e[0],this.mindMap.width,t.width),t.top=this.formatPosition(e[1],this.mindMap.height,t.height)}updateChildren(t,e,n){t.forEach(t=>{t[e]+=n,t.children&&t.children.length&&!t.hasCustomPosition()&&this.updateChildren(t.children,e,n)})}updateChildrenPro(t,e){t.forEach(t=>{Object.keys(e).forEach(n=>{t[n]+=e[n]}),t.children&&t.children.length&&!t.hasCustomPosition()&&this.updateChildrenPro(t.children,e)})}getNodeAreaWidth(t){let e=[],n=(t,r)=>{t.children.length?(r+=t.width/2,t.children.forEach(t=>{n(t,r)})):(r+=t.width,e.push(r))};return n(t,0),Math.max(...e)}quadraticCurvePath(t,e,n,r){let i=t+.2*(n-t),A=e+.8*(r-e);return`M ${t},${e} Q ${i},${A} ${n},${r}`}cubicBezierPath(t,e,n,r){let i=t+(n-t)/2,A=e,o=i,s=r;return`M ${t},${e} C ${i},${A} ${o},${s} ${n},${r}`}getMarginX(t){return 1===t?this.mindMap.themeConfig.second.marginX:this.mindMap.themeConfig.node.marginX}getMarginY(t){return 1===t?this.mindMap.themeConfig.second.marginY:this.mindMap.themeConfig.node.marginY}getNodeWidthWithGeneralization(t){return Math.max(t.width,t.checkHasGeneralization()?t._generalizationNodeWidth:0)}getNodeHeightWithGeneralization(t){return Math.max(t.height,t.checkHasGeneralization()?t._generalizationNodeHeight:0)}getNodeBoundaries(t,e){let{generalizationLineMargin:n,generalizationNodeMargin:r}=this.mindMap.themeConfig,i=t=>{let n=1/0,A=-1/0,o=1/0,s=-1/0;t.children&&t.children.length>0&&t.children.forEach(t=>{let{left:a,right:l,top:c,bottom:u}=i(t),h=t.checkHasGeneralization()&&t.nodeData.data.expand?t._generalizationNodeWidth+r:0,d=t.checkHasGeneralization()&&t.nodeData.data.expand?t._generalizationNodeHeight+r:0;a-("h"===e?h:0)<n&&(n=a-("h"===e?h:0)),l+("h"===e?h:0)>A&&(A=l+("h"===e?h:0)),c<o&&(o=c),u+("v"===e?d:0)>s&&(s=u+("v"===e?d:0))});let a={left:t.left,right:t.left+t.width,top:t.top,bottom:t.top+t.height};return{left:a.left<n?a.left:n,right:a.right>A?a.right:A,top:a.top<o?a.top:o,bottom:a.bottom>s?a.bottom:s}},{left:A,right:o,top:s,bottom:a}=i(t);return{left:A,right:o,top:s,bottom:a,generalizationLineMargin:n,generalizationNodeMargin:r}}getNodeActChildrenLength(t){return t.nodeData.children&&t.nodeData.children.length}}var fA=dA;class pA extends fA{constructor(t={}){super(t)}doLayout(t){let e=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}];ci(e)}computedBaseValue(){ti(this.renderer.renderTree,null,(t,e,n,r)=>{let i=this.createNode(t,e,n,r);if(n?this.setNodeCenter(i):i.left=e._node.left+e._node.width+this.getMarginX(r),!t.data.expand)return!0},(t,e,n,r)=>{let i=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaHeight=i?t._node.children.reduce((t,e)=>t+e.height,0)+(i+1)*this.getMarginY(r+1):0},!0,0)}computedTopValue(){ti(this.root,null,(t,e,n,r)=>{if(t.nodeData.data.expand&&t.children&&t.children.length){let e=this.getMarginY(r+1),n=t.top+t.height/2-t.childrenAreaHeight/2,i=n+e;t.children.forEach(t=>{t.top=i,i+=t.height+e})}},null,!0)}adjustTopValue(){ti(this.root,null,(t,e,n,r)=>{if(!t.nodeData.data.expand)return;let i=t.childrenAreaHeight-2*this.getMarginY(r+1)-t.height;i>0&&this.updateBrothers(t,i/2)},null,!0)}updateBrothers(t,e){if(t.parent){let n=t.parent.children,r=n.findIndex(e=>e===t);n.forEach((n,i)=>{if(n===t||n.hasCustomPosition())return;let A=0;i<r?A=-e:i>r&&(A=e),n.top+=A,n.children&&n.children.length&&this.updateChildren(n.children,"top",A)}),this.updateBrothers(t.parent,e)}}renderLine(t,e,n,r){"curve"===r?this.renderLineCurve(t,e,n):"direct"===r?this.renderLineDirect(t,e,n):this.renderLineStraight(t,e,n)}renderLineStraight(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=this.getMarginX(t.layerIndex+1),l=.6*(a-s),c=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((a,u)=>{let h=0===t.layerIndex?r+A:r+A+s,d=i+o/2,f=a.left,p=a.top+a.height/2,g=c?a.width:0;d=c&&!t.isRoot?d+o/2:d,p=c?p+a.height/2:p;let m=`M ${h},${d} L ${h+l},${d} L ${h+l},${p} L ${f+g},${p}`;e[u].plot(m),n&&n(e[u],a)})}renderLineDirect(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((l,c)=>{let u=0===t.layerIndex?r+A/2:r+A+s,h=i+o/2,d=l.left,f=l.top+l.height/2;h=a&&!t.isRoot?h+o/2:h,f=a?f+l.height/2:f;let p=a?` L ${l.left+l.width},${f}`:"",g=`M ${u},${h} L ${d},${f}`+p;e[c].plot(g),n&&n(e[c],l)})}renderLineCurve(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((l,c)=>{let u=0===t.layerIndex?r+A/2:r+A+s,h=i+o/2,d=l.left,f=l.top+l.height/2,p="";h=a&&!t.isRoot?h+o/2:h,f=a?f+l.height/2:f;let g=a?` L ${l.left+l.width},${f}`:"";p=t.isRoot?this.quadraticCurvePath(u,h,d,f)+g:this.cubicBezierPath(u,h,d,f)+g,e[c].plot(p),n&&n(e[c],l)})}renderExpandBtn(t,e){let{width:n,height:r}=t,{translateX:i,translateY:A}=e.transform(),o=this.mindMap.themeConfig.nodeUseLineStyle?r/2:0,s=n,a=r/2+o;s===i&&a===A||e.translate(s-i,a-A)}renderGeneralization(t,e,n){let{top:r,bottom:i,right:A,generalizationLineMargin:o,generalizationNodeMargin:s}=this.getNodeBoundaries(t,"h"),a=A+o,l=r,c=A+o,u=i,h=a+20,d=l+(u-l)/2,f=`M ${a},${l} Q ${h},${d} ${c},${u}`;e.plot(f),n.left=A+s,n.top=r+(i-r-n.height)/2}}var gA=pA;class mA extends fA{constructor(t={}){super(t)}doLayout(t){let e=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{t(this.root)}];ci(e)}computedBaseValue(){ti(this.renderer.renderTree,null,(t,e,n,r,i)=>{let A=this.createNode(t,e,n,r);if(n?this.setNodeCenter(A):(e._node.dir?A.dir=e._node.dir:A.dir=i%2===0?"right":"left",A.left="right"===A.dir?e._node.left+e._node.width+this.getMarginX(r):e._node.left-this.getMarginX(r)-A.width),!t.data.expand)return!0},(t,e,n,r)=>{if(!t.data.expand)return t._node.leftChildrenAreaHeight=0,void(t._node.rightChildrenAreaHeight=0);let i=0,A=0,o=0,s=0;t._node.children.forEach(t=>{"left"===t.dir?(i++,o+=t.height):(A++,s+=t.height)}),t._node.leftChildrenAreaHeight=o+(i+1)*this.getMarginY(r+1),t._node.rightChildrenAreaHeight=s+(A+1)*this.getMarginY(r+1)},!0,0)}computedTopValue(){ti(this.root,null,(t,e,n,r)=>{if(t.nodeData.data.expand&&t.children&&t.children.length){let e=this.getMarginY(r+1),n=t.top+t.height/2+e,i=n-t.leftChildrenAreaHeight/2,A=n-t.rightChildrenAreaHeight/2;t.children.forEach(t=>{"left"===t.dir?(t.top=i,i+=t.height+e):(t.top=A,A+=t.height+e)})}},null,!0)}adjustTopValue(){ti(this.root,null,(t,e,n,r)=>{if(!t.nodeData.data.expand)return;let i=2*this.getMarginY(r+1)+t.height,A=t.leftChildrenAreaHeight-i,o=t.rightChildrenAreaHeight-i;(A>0||o>0)&&this.updateBrothers(t,A/2,o/2)},null,!0)}updateBrothers(t,e,n){if(t.parent){let r=t.parent.children.filter(e=>e.dir===t.dir),i=r.findIndex(e=>e===t);r.forEach((t,r)=>{if(t.hasCustomPosition())return;let A=0,o="left"===t.dir?e:n;r<i?A=-o:r>i&&(A=o),t.top+=A,t.children&&t.children.length&&this.updateChildren(t.children,"top",A)}),this.updateBrothers(t.parent,e,n)}}renderLine(t,e,n,r){"curve"===r?this.renderLineCurve(t,e,n):"direct"===r?this.renderLineDirect(t,e,n):this.renderLineStraight(t,e,n)}renderLineStraight(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=this.getMarginX(t.layerIndex+1),l=.6*(a-s),c=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((a,u)=>{let h=0,d=0,f=c?a.width:0;"left"===a.dir?(d=-l,h=0===t.layerIndex?r:r-s,f=-f):(d=l,h=0===t.layerIndex?r+A:r+A+s);let p=i+o/2,g="left"===a.dir?a.left+a.width:a.left,m=a.top+a.height/2;p=c&&!t.isRoot?p+o/2:p,m=c?m+a.height/2:m;let w=`M ${h},${p} L ${h+d},${p} L ${h+d},${m} L ${g+f},${m}`;e[u].plot(w),n&&n(e[u],a)})}renderLineDirect(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((l,c)=>{let u=0===t.layerIndex?r+A/2:"left"===l.dir?r-s:r+A+s,h=i+o/2,d="left"===l.dir?l.left+l.width:l.left,f=l.top+l.height/2;h=a&&!t.isRoot?h+o/2:h,f=a?f+l.height/2:f;let p="";a&&(p="left"===l.dir?` L ${l.left},${f}`:` L ${l.left+l.width},${f}`);let g=`M ${u},${h} L ${d},${f}`+p;e[c].plot(g),n&&n(e[c],l)})}renderLineCurve(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=this.mindMap.themeConfig.nodeUseLineStyle;t.children.forEach((l,c)=>{let u=0===t.layerIndex?r+A/2:"left"===l.dir?r-s:r+A+s,h=i+o/2,d="left"===l.dir?l.left+l.width:l.left,f=l.top+l.height/2,p="";h=a&&!t.isRoot?h+o/2:h,f=a?f+l.height/2:f;let g="";this.mindMap.themeConfig.nodeUseLineStyle&&(g="left"===l.dir?` L ${l.left},${f}`:` L ${l.left+l.width},${f}`),p=t.isRoot?this.quadraticCurvePath(u,h,d,f)+g:this.cubicBezierPath(u,h,d,f)+g,e[c].plot(p),n&&n(e[c],l)})}renderExpandBtn(t,e){let{width:n,height:r,expandBtnSize:i}=t,{translateX:A,translateY:o}=e.transform(),s=this.mindMap.themeConfig.nodeUseLineStyle?r/2:0,a="left"===t.dir?0-i:n,l=r/2+s;if(a===A&&l===o)return;let c=a-A,u=l-o;e.translate(c,u)}renderGeneralization(t,e,n){let r="left"===t.dir,{top:i,bottom:A,left:o,right:s,generalizationLineMargin:a,generalizationNodeMargin:l}=this.getNodeBoundaries(t,"h",r),c=r?o-a:s+a,u=c,h=i,d=c,f=A,p=u+(r?-20:20),g=h+(f-h)/2,m=`M ${u},${h} Q ${p},${g} ${d},${f}`;e.plot(m),n.left=c+(r?-l:l)-(r?n.width:0),n.top=i+(A-i-n.height)/2}}var wA=mA;class yA extends fA{constructor(t={}){super(t)}doLayout(t){let e=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}];ci(e)}computedBaseValue(){ti(this.renderer.renderTree,null,(t,e,n,r)=>{let i=this.createNode(t,e,n,r);if(n?this.setNodeCenter(i):e._node.isRoot&&(i.top=e._node.top+e._node.height+this.getMarginX(r)),!t.data.expand)return!0},(t,e,n,r)=>{if(n){let e=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaWidth=e?t._node.children.reduce((t,e)=>t+e.width,0)+(e+1)*this.getMarginX(r+1):0}},!0,0)}computedLeftTopValue(){ti(this.root,null,(t,e,n,r)=>{if(t.nodeData.data.expand&&t.children&&t.children.length){let e=this.getMarginX(r+1),i=this.getMarginY(r+1);if(n){let n=t.left+t.width/2-t.childrenAreaWidth/2,r=n+e;t.children.forEach(t=>{t.left=r,r+=t.width+e})}else{let e=t.top+t.height+i+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach(n=>{n.left=t.left+.5*t.width,n.top=e,e+=n.height+i+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){ti(this.root,null,(t,e,n,r)=>{if(!t.nodeData.data.expand)return;if(e&&e.isRoot){let e=this.getNodeAreaWidth(t),n=e-t.width;n>0&&this.updateBrothersLeft(t,n)}let i=t.children.length;if(e&&!e.isRoot&&i>0){let e=this.getMarginY(r+1),n=t.children.reduce((t,e)=>t+e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),0)+i*e;this.updateBrothersTop(t,n)}},(t,e,n)=>{if(n){let{right:e,left:n}=this.getNodeBoundaries(t,"h"),r=e-n,i=t.left-n-(r-t.width)/2;this.updateChildren(t.children,"left",i)}},!0)}updateBrothersLeft(t,e){if(t.parent){let n=t.parent.children,r=n.findIndex(e=>e===t);n.forEach((t,n)=>{t.hasCustomPosition()||n<=r||(t.left+=e,t.children&&t.children.length&&this.updateChildren(t.children,"left",e))}),this.updateBrothersLeft(t.parent,e)}}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let n=t.parent.children,r=n.findIndex(e=>e===t);n.forEach((t,n)=>{if(t.hasCustomPosition())return;let i=0;n>r&&(i=e),t.top+=i,t.children&&t.children.length&&this.updateChildren(t.children,"top",i)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let a=t.children.length,l=this.getMarginX(t.layerIndex+1);if(t.isRoot){let s=r+A/2,c=i+o,u=.7*l,h=1/0,d=-1/0;t.children.forEach((t,r)=>{let i=t.left+t.width/2,A=t.top;i<h&&(h=i),i>d&&(d=i);let o=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${A} L ${t.left+t.width},${A}`:"",s=`M ${i},${c+u} L ${i},${c+u>A?A+t.height:A}`+o;e[r].plot(s),n&&n(e[r],t)}),h=Math.min(h,s),d=Math.max(d,s);let f=this.draw.path();if(t.style.line(f),f.plot(`M ${s},${c} L ${s},${c+u}`),t._lines.push(f),n&&n(f,t),a>0){let e=this.draw.path();t.style.line(e),e.plot(`M ${h},${c+u} L ${d},${c+u}`),t._lines.push(e),n&&n(e,t)}}else{let r=i+o,A=-1/0,l=t.left+.3*t.width;if(t.children.forEach((o,s)=>{let a=o.top+o.height/2;a>A&&(A=a);let c="",u=o.left,h=o.left+o.width<l,d=!1;h?u=o.left+o.width:o.left<l&&o.left+o.width>l&&(d=!0,a=o.top,A=a),a>i&&a<r?c=`M ${h?t.left:t.left+t.width},${a} L ${u},${a}`:a<r?(d&&(a=o.top+o.height,u=l),c=`M ${l},${i} L ${l},${a} L ${u},${a}`):(d&&(u=l),c=`M ${l},${a} L ${u},${a}`);let f=this.mindMap.themeConfig.nodeUseLineStyle?` L ${u},${a-o.height/2} L ${u},${a+o.height/2}`:"";c+=f,e[s].plot(c),n&&n(e[s],o)}),a>0){let e=this.draw.path();s=a>0?s:0,t.style.line(e),A<r+s?e.hide():(e.plot(`M ${l},${r+s} L ${l},${A}`),e.show()),t._lines.push(e),n&&n(e,t)}}}renderExpandBtn(t,e){let{width:n,height:r,expandBtnSize:i,isRoot:A}=t;if(!A){let{translateX:t,translateY:A}=e.transform();e.translate(.3*n-i/2-t,r+i/2-A)}}renderGeneralization(t,e,n){let{top:r,bottom:i,right:A,generalizationLineMargin:o,generalizationNodeMargin:s}=this.getNodeBoundaries(t,"h"),a=A+o,l=r,c=A+o,u=i,h=a+20,d=l+(u-l)/2,f=`M ${a},${l} Q ${h},${d} ${c},${u}`;e.plot(f),n.left=A+s,n.top=r+(i-r-n.height)/2}}var vA=yA;class bA extends fA{constructor(t={}){super(t)}doLayout(t){let e=[()=>{this.computedBaseValue()},()=>{this.computedLeftValue()},()=>{this.adjustLeftValue()},()=>{t(this.root)}];ci(e)}computedBaseValue(){ti(this.renderer.renderTree,null,(t,e,n,r)=>{let i=this.createNode(t,e,n,r);if(n?this.setNodeCenter(i):i.top=e._node.top+e._node.height+this.getMarginX(r),!t.data.expand)return!0},(t,e,n,r)=>{let i=!1===t.data.expand?0:t._node.children.length;t._node.childrenAreaWidth=i?t._node.children.reduce((t,e)=>t+e.width,0)+(i+1)*this.getMarginY(r+1):0},!0,0)}computedLeftValue(){ti(this.root,null,(t,e,n,r)=>{if(t.nodeData.data.expand&&t.children&&t.children.length){let e=this.getMarginY(r+1),n=t.left+t.width/2-t.childrenAreaWidth/2,i=n+e;t.children.forEach(t=>{t.left=i,i+=t.width+e})}},null,!0)}adjustLeftValue(){ti(this.root,null,(t,e,n,r)=>{if(!t.nodeData.data.expand)return;let i=t.childrenAreaWidth-2*this.getMarginY(r+1)-t.width;i>0&&this.updateBrothers(t,i/2)},null,!0)}updateBrothers(t,e){if(t.parent){let n=t.parent.children,r=n.findIndex(e=>e===t);n.forEach((t,n)=>{if(t.hasCustomPosition())return;let i=0;n<r?i=-e:n>r&&(i=e),t.left+=i,t.children&&t.children.length&&this.updateChildren(t.children,"left",i)}),this.updateBrothers(t.parent,e)}}renderLine(t,e,n,r){"direct"===r?this.renderLineDirect(t,e,n):this.renderLineStraight(t,e,n)}renderLineDirect(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o}=t,s=r+A/2,a=i+o;t.children.forEach((t,r)=>{let i=t.left+t.width/2,A=t.top,o=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${A} L ${t.left+t.width},${A}`:"",l=`M ${s},${a} L ${i},${A}`+o;e[r].plot(l),n&&n(e[r],t)})}renderLineStraight(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:s,isRoot:a}=t;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=r+A/2,c=i+o,u=this.getMarginX(t.layerIndex+1),h=.7*u,d=1/0,f=-1/0,p=t.children.length;t.children.forEach((t,r)=>{let i=t.left+t.width/2,A=c+h>t.top?t.top+t.height:t.top;i<d&&(d=i),i>f&&(f=i);let o=this.mindMap.themeConfig.nodeUseLineStyle?` L ${t.left},${A} L ${t.left+t.width},${A}`:"",s=`M ${i},${c+h} L ${i},${A}`+o;e[r].plot(s),n&&n(e[r],t)}),d=Math.min(l,d),f=Math.max(l,f);let g=this.draw.path();if(t.style.line(g),s=p>0&&!a?s:0,g.plot(`M ${l},${c+s} L ${l},${c+h}`),t._lines.push(g),n&&n(g,t),p>0){let e=this.draw.path();t.style.line(e),e.plot(`M ${d},${c+h} L ${f},${c+h}`),t._lines.push(e),n&&n(e,t)}}renderExpandBtn(t,e){let{width:n,height:r,expandBtnSize:i}=t,{translateX:A,translateY:o}=e.transform();e.translate(n/2-i/2-A,r+i/2-o)}renderGeneralization(t,e,n){let{bottom:r,left:i,right:A,generalizationLineMargin:o,generalizationNodeMargin:s}=this.getNodeBoundaries(t,"v"),a=i,l=r+o,c=A,u=r+o,h=a+(c-a)/2,d=l+20,f=`M ${a},${l} Q ${h},${d} ${c},${u}`;e.plot(f),n.top=r+s,n.left=i+(A-i-n.width)/2}}var BA=bA;class CA extends fA{constructor(t={},e){super(t),this.layout=e}doLayout(t){let e=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}];ci(e)}computedBaseValue(){ti(this.renderer.renderTree,null,(t,e,n,r,i)=>{let A=this.createNode(t,e,n,r);if(n?this.setNodeCenter(A):(this.layout===s.LAYOUT.TIMELINE2?e._node.dir?A.dir=e._node.dir:A.dir=i%2===0?s.TIMELINE_DIR.BOTTOM:s.TIMELINE_DIR.TOP:A.dir="",e._node.isRoot&&(A.top=e._node.top+(t._node.height>e._node.height?-(t._node.height-e._node.height)/2:(e._node.height-t._node.height)/2))),!t.data.expand)return!0},null,!0,0)}computedLeftTopValue(){ti(this.root,null,(t,e,n,r,i)=>{if(t.nodeData.data.expand&&t.children&&t.children.length){let e=this.getMarginX(r+1),i=this.getMarginY(r+1);if(n){let n=t.left+t.width,r=n+e;t.children.forEach(t=>{t.left=r,r+=t.width+e})}else{let e=t.top+t.height+i+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0);t.children.forEach(n=>{n.left=t.left+.5*t.width,n.top=e,e+=n.height+i+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){ti(this.root,null,(t,e,n,r)=>{if(!t.nodeData.data.expand)return;t.isRoot&&this.updateBrothersLeft(t);let i=t.children.length;if(e&&!e.isRoot&&i>0){let e=this.getMarginY(r+1),n=t.children.reduce((t,e)=>t+e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),0)+i*e;this.updateBrothersTop(t,n)}},(t,e,n,r)=>{e&&e.isRoot&&t.dir===s.TIMELINE_DIR.TOP&&t.children.forEach(e=>{let n=this.getNodeAreaHeight(e),r=e.top;e.top=t.top-(e.top-t.top)-n+t.height,this.updateChildren(e.children,"top",e.top-r)})},!0)}getNodeAreaHeight(t){let e=0,n=t=>{e+=t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+this.getMarginY(t.layerIndex),t.children.length&&t.children.forEach(t=>{n(t)})};return n(t),e}updateBrothersLeft(t){let e=t.children,n=0;e.forEach(t=>{t.left+=n,t.children&&t.children.length&&this.updateChildren(t.children,"left",n);let{left:e,right:r}=this.getNodeBoundaries(t,"h"),i=r-e,A=i-t.width;A>0&&(n+=A)})}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let n=t.parent.children,r=n.findIndex(e=>e===t);n.forEach((t,n)=>{if(t.hasCustomPosition())return;let i=0;n>r&&(i=e),t.top+=i,t.children&&t.children.length&&this.updateChildren(t.children,"top",i)}),this.updateBrothersTop(t.parent,e)}}renderLine(t,e,n){if(t.children.length<=0)return[];let{left:r,top:i,width:A,height:o,expandBtnSize:a}=t;this.mindMap.opt.alwaysShowExpandBtn||(a=0);let l=t.children.length;if(t.isRoot){let r=t;t.children.forEach((i,A)=>{let o=r.left+r.width,s=i.left,a=t.top+t.height/2,l=`M ${o},${a} L ${s},${a}`;e[A].plot(l),n&&n(e[A],i),r=i})}else{let r=-1/0,A=1/0,c=t.left+.3*t.width;if(t.children.forEach((t,i)=>{let o=t.top+t.height/2;o>r&&(r=o),o<A&&(A=o);let s=`M ${c},${o} L ${t.left},${o}`;e[i].plot(s),n&&n(e[i],t)}),l>0){let e=this.draw.path();a=l>0?a:0,t.parent&&t.parent.isRoot&&t.dir===s.TIMELINE_DIR.TOP?e.plot(`M ${c},${i} L ${c},${A}`):e.plot(`M ${c},${i+o+a} L ${c},${r}`),t.style.line(e),t._lines.push(e),n&&n(e,t)}}}renderExpandBtn(t,e){let{width:n,height:r,expandBtnSize:i,isRoot:A}=t;if(!A){let{translateX:A,translateY:o}=e.transform();t.parent&&t.parent.isRoot&&t.dir===s.TIMELINE_DIR.TOP?e.translate(.3*n-i/2-A,-i/2-o):e.translate(.3*n-i/2-A,r+i/2-o)}}renderGeneralization(t,e,n){let{top:r,bottom:i,right:A,generalizationLineMargin:o,generalizationNodeMargin:s}=this.getNodeBoundaries(t,"h"),a=A+o,l=r,c=A+o,u=i,h=a+20,d=l+(u-l)/2,f=`M ${a},${l} Q ${h},${d} ${c},${u}`;e.plot(f),n.left=A+s,n.top=r+(i-r-n.height)/2}}var xA=CA,_A={top:{renderExpandBtn({node:t,btn:e,expandBtnSize:n,translateX:r,translateY:i,width:A,height:o}){t.parent&&t.parent.isRoot?e.translate(.3*A-n/2-r,-n/2-i):e.translate(.3*A-n/2-r,o+n/2-i)},renderLine({node:t,line:e,top:n,x:r,lineLength:i,height:A,expandBtnSize:o,maxy:s,ctx:a}){t.parent&&t.parent.isRoot?e.plot(`M ${r},${n} L ${r+i},${n-Math.tan(ui(a.mindMap.opt.fishboneDeg))*i}`):e.plot(`M ${r},${n+A+o} L ${r},${s}`)},computedLeftTopValue({layerIndex:t,node:e,ctx:n}){if(t>=1&&e.children){let t=e.left+e.width*n.childIndent,r=e.top+e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(e=>{e.left=t,e.top+=r,r+=e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)})}},adjustLeftTopValueBefore({node:t,parent:e,ctx:n}){let r=t.children.length;if(e&&!e.isRoot&&r>0){let e=t.children.reduce((t,e)=>t+e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),0);n.updateBrothersTop(t,e)}},adjustLeftTopValueAfter({parent:t,node:e,ctx:n}){if(t&&t.isRoot){let t=e.expandBtnSize;e.children.forEach(r=>{let i=n.getNodeAreaHeight(r),A=r.top,o=r.left;r.top=e.top-(r.top-e.top)-i+e.height,r.left=e.left+e.width*n.indent+(i+t)/Math.tan(ui(n.mindMap.opt.fishboneDeg)),t+=i,n.updateChildrenPro(r.children,{top:r.top-A,left:r.left-o})})}}},bottom:{renderExpandBtn({node:t,btn:e,expandBtnSize:n,translateX:r,translateY:i,width:A,height:o}){t.parent&&t.parent.isRoot?e.translate(.3*A-n/2-r,o+n/2-i):e.translate(.3*A-n/2-r,-n/2-i)},renderLine({node:t,line:e,top:n,x:r,lineLength:i,height:A,miny:o,ctx:s}){t.parent&&t.parent.isRoot?e.plot(`M ${r},${n+A} L ${r+i},${n+A+Math.tan(ui(s.mindMap.opt.fishboneDeg))*i}`):e.plot(`M ${r},${n} L ${r},${o}`)},computedLeftTopValue({layerIndex:t,node:e,ctx:n}){if(1===t&&e.children){let t=e.left+e.width*n.childIndent,r=e.top+e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(e=>{e.left=t,e.top=r+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0),r+=e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)})}if(t>1&&e.children){let t=e.left+e.width*n.childIndent,r=e.top-(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(e=>{e.left=t,e.top=r-e.height,r-=e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)})}},adjustLeftTopValueBefore({node:t,ctx:e,layerIndex:n}){let r=t.children.length;if(n>2&&r>0){let n=t.children.reduce((t,n)=>t+n.height+(e.getNodeActChildrenLength(n)>0?n.expandBtnSize:0),0);e.updateBrothersTop(t,-n)}},adjustLeftTopValueAfter({parent:t,node:e,ctx:n}){if(t&&t.isRoot){let t=0,r=e.expandBtnSize;e.children.forEach(i=>{let A=n.getNodeActChildrenLength(i)>0,o=n.getNodeAreaHeight(i),s=A>0?o-i.height-(A?i.expandBtnSize:0):0,a=t+s,l=i.left;i.top+=a,i.left=e.left+e.width*n.indent+(o+r)/Math.tan(ui(n.mindMap.opt.fishboneDeg)),t+=s,r+=o,n.updateChildrenPro(i.children,{top:a,left:i.left-l})})}}}};class EA extends fA{constructor(t={}){super(t),this.indent=.3,this.childIndent=.5}doLayout(t){let e=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{t(this.root)}];ci(e)}computedBaseValue(){ti(this.renderer.renderTree,null,(t,e,n,r,i)=>{let A=this.createNode(t,e,n,r);if(n?this.setNodeCenter(A):(e._node.dir?A.dir=e._node.dir:A.dir=i%2===0?s.TIMELINE_DIR.TOP:s.TIMELINE_DIR.BOTTOM,e._node.isRoot&&(this.checkIsTop(A)?A.top=e._node.top-A.height:A.top=e._node.top+e._node.height)),!t.data.expand)return!0},null,!0,0)}computedLeftTopValue(){ti(this.root,null,(t,e,n,r)=>{if(t.isRoot){let e=t.left+t.width+t.height,n=t.left+t.width+t.height;t.children.forEach(t=>{this.checkIsTop(t)?(t.left=e,e+=t.width):(t.left=n+20,n+=t.width)})}let i={layerIndex:r,node:t,ctx:this};this.checkIsTop(t)?_A.top.computedLeftTopValue(i):_A.bottom.computedLeftTopValue(i)},null,!0)}adjustLeftTopValue(){ti(this.root,null,(t,e,n,r)=>{if(!t.nodeData.data.expand)return;let i={node:t,parent:e,layerIndex:r,ctx:this};this.checkIsTop(t)?_A.top.adjustLeftTopValueBefore(i):_A.bottom.adjustLeftTopValueBefore(i)},(t,e)=>{let n={parent:e,node:t,ctx:this};if(this.checkIsTop(t)?_A.top.adjustLeftTopValueAfter(n):_A.bottom.adjustLeftTopValueAfter(n),t.isRoot){let e=0,n=0;t.children.forEach(t=>{if(this.checkIsTop(t)){t.left+=e,this.updateChildren(t.children,"left",e);let{left:n,right:r}=this.getNodeBoundaries(t,"h");e+=r-n}else{t.left+=n,this.updateChildren(t.children,"left",n);let{left:e,right:r}=this.getNodeBoundaries(t,"h");n+=r-e}})}},!0)}getNodeAreaHeight(t){let e=0,n=t=>{e+=t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),t.children.length&&t.children.forEach(t=>{n(t)})};return n(t),e}updateBrothersLeft(t){let e=t.children,n=0;e.forEach(t=>{t.left+=n,t.children&&t.children.length&&this.updateChildren(t.children,"left",n);let{left:e,right:r}=this.getNodeBoundaries(t,"h"),i=r-e,A=i-t.width;A>0&&(n+=A)})}updateBrothersTop(t,e){if(t.parent&&!t.parent.isRoot){let n=t.parent.children,r=n.findIndex(e=>e===t);n.forEach((t,n)=>{if(t.hasCustomPosition())return;let i=0;n>r&&(i=e),t.top+=i,t.children&&t.children.length&&this.updateChildren(t.children,"top",i)}),this.checkIsTop(t)?this.updateBrothersTop(t.parent,e):this.updateBrothersTop(t.parent,3===t.layerIndex?0:e)}}checkIsTop(t){return t.dir===s.TIMELINE_DIR.TOP}renderLine(t,e,n){if(1!==t.layerIndex&&t.children.length<=0)return[];let{top:r,height:i,expandBtnSize:A}=t;this.mindMap.opt.alwaysShowExpandBtn||(A=0);let o=t.children.length;if(t.isRoot){let e=-1/0;t.children.forEach(r=>{r.left>e&&(e=r.left);let i=r.left,A=t.height/2,o=A/Math.tan(ui(this.mindMap.opt.fishboneDeg)),s=this.draw.path();this.checkIsTop(r)?s.plot(`M ${i-o},${r.top+r.height+A} L ${r.left},${r.top+r.height}`):s.plot(`M ${i-o},${r.top-A} L ${i},${r.top}`),t.style.line(s),t._lines.push(s),n&&n(s,t)});let r=t.top+t.height/2,i=t.height/2,A=this.draw.path();A.plot(`M ${t.left+t.width},${r} L ${e-i/Math.tan(ui(this.mindMap.opt.fishboneDeg))},${r}`),t.style.line(A),t._lines.push(A),n&&n(A,t)}else{let s=-1/0,a=1/0,l=-1/0,c=t.left+t.width*this.indent;if(t.children.forEach((r,i)=>{r.left>l&&(l=r.left);let A=r.top+r.height/2;if(A>s&&(s=A),A<a&&(a=A),t.layerIndex>1){let t=`M ${c},${A} L ${r.left},${A}`;e[i].plot(t),n&&n(e[i],r)}}),o>=0){let e=this.draw.path();A=o>0?A:0;let u=l-t.left-t.width*this.indent;u=Math.max(u,0);let h={node:t,line:e,top:r,x:c,lineLength:u,height:i,expandBtnSize:A,maxy:s,miny:a,ctx:this};this.checkIsTop(t)?_A.top.renderLine(h):_A.bottom.renderLine(h),t.style.line(e),t._lines.push(e),n&&n(e,t)}}}renderExpandBtn(t,e){let{width:n,height:r,expandBtnSize:i,isRoot:A}=t;if(!A){let{translateX:A,translateY:o}=e.transform(),s={node:t,btn:e,expandBtnSize:i,translateX:A,translateY:o,width:n,height:r};this.checkIsTop(t)?_A.top.renderExpandBtn(s):_A.bottom.renderExpandBtn(s)}}renderGeneralization(t,e,n){let{top:r,bottom:i,right:A,generalizationLineMargin:o,generalizationNodeMargin:s}=this.getNodeBoundaries(t,"h"),a=A+o,l=r,c=A+o,u=i,h=a+20,d=l+(u-l)/2,f=`M ${a},${l} Q ${h},${d} ${c},${u}`;e.plot(f),n.left=A+s,n.top=r+(i-r-n.height)/2}}var FA=EA;class LA{constructor(t){this.renderer=t,this.mindMap=t.mindMap,this.currentNode=null,this.textEditNode=null,this.showTextEdit=!1,this.cacheEditingText="",this.bindEvent()}bindEvent(){this.show=this.show.bind(this),this.onScale=this.onScale.bind(this),this.mindMap.on("node_dblclick",this.show),this.mindMap.on("draw_click",()=>{this.hideEditTextBox()}),this.mindMap.on("body_click",()=>{this.mindMap.opt.isEndNodeTextEditOnClickOuter&&this.hideEditTextBox()}),this.mindMap.on("svg_mousedown",()=>{this.hideEditTextBox()}),this.mindMap.on("expand_btn_click",()=>{this.hideEditTextBox()}),this.mindMap.on("before_node_active",()=>{this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("F2",()=>{this.renderer.activeNodeList.length<=0||this.show(this.renderer.activeNodeList[0])}),this.mindMap.on("scale",this.onScale)}registerTmpShortcut(){this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()})}async show(t){if("function"===typeof this.mindMap.opt.beforeTextEdit){let e=!1;try{e=await this.mindMap.opt.beforeTextEdit(t)}catch(i){e=!1}if(!e)return}this.currentNode=t;let{offsetLeft:e,offsetTop:n}=mi(this.mindMap,t);this.mindMap.view.translateXY(e,n);let r=t._textData.node.node.getBoundingClientRect();this.mindMap.richText?this.mindMap.richText.showEditText(t,r):this.showEditTextBox(t,r)}onScale(){this.currentNode&&(this.mindMap.richText?(this.mindMap.richText.cacheEditingText=this.mindMap.richText.getEditText(),this.mindMap.richText.showTextEdit=!1):(this.cacheEditingText=this.getEditText(),this.showTextEdit=!1),this.show(this.currentNode))}showEditTextBox(t,e){this.mindMap.emit("before_show_text_edit"),this.registerTmpShortcut(),this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),document.body.appendChild(this.textEditNode));let n=this.mindMap.view.scale,r=t.style.merge("lineHeight"),i=t.style.merge("fontSize"),A=(this.cacheEditingText||t.nodeData.data.text).split(/\n/gim),o="true"===t._textData.node.attr("data-ismultiLine");t.style.domText(this.textEditNode,n,o),this.textEditNode.style.zIndex=this.mindMap.opt.nodeTextEditZIndex,this.textEditNode.innerHTML=A.join("<br>"),this.textEditNode.style.minWidth=e.width+10+"px",this.textEditNode.style.minHeight=e.height+6+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=this.mindMap.opt.textAutoWrapWidth*n+"px",o&&1!==r&&(this.textEditNode.style.transform=`translateY(${-(r*i-i)/2*n}px)`),this.showTextEdit=!0,this.cacheEditingText||this.selectNodeText(),this.cacheEditingText=""}selectNodeText(){let t=window.getSelection(),e=document.createRange();e.selectNodeContents(this.textEditNode),t.removeAllRanges(),t.addRange(e)}getEditText(){return ri(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.currentNode=null,this.mindMap.richText)return this.mindMap.richText.hideEditText();this.showTextEdit&&(this.renderer.activeNodeList.forEach(t=>{let e=this.getEditText();this.mindMap.execCommand("SET_NODE_TEXT",t,e),t.isGeneralization&&t.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.showTextEdit=!1)}}var NA={paddingX:15,paddingY:5,imgMaxWidth:100,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",lineDasharray:"none",lineStyle:"straight",generalizationLineWidth:1,generalizationLineColor:"#549688",generalizationLineMargin:0,generalizationNodeMargin:20,associativeLineWidth:2,associativeLineColor:"rgb(51, 51, 51)",associativeLineActiveWidth:8,associativeLineActiveColor:"rgba(2, 167, 240, 1)",associativeLineTextColor:"rgb(51, 51, 51)",associativeLineTextFontSize:14,associativeLineTextLineHeight:1.2,associativeLineTextFontFamily:"微软雅黑, Microsoft YaHei",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",nodeUseLineStyle:!1,root:{shape:"rectangle",fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}},second:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}},node:{shape:"rectangle",marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}},generalization:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}}};const SA=["lineWidth","lineColor","lineDasharray","lineStyle","generalizationLineWidth","generalizationLineColor","associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily","backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize"],UA=t=>{let e=Object.keys(t);for(let n=0;n<e.length;n++)if(!SA.find(t=>t===e[n]))return!1;return!0},kA=["lineColor","lineDasharray","lineWidth"],QA={[s.LAYOUT.LOGICAL_STRUCTURE]:gA,[s.LAYOUT.MIND_MAP]:wA,[s.LAYOUT.CATALOG_ORGANIZATION]:vA,[s.LAYOUT.ORGANIZATION_STRUCTURE]:BA,[s.LAYOUT.TIMELINE]:xA,[s.LAYOUT.TIMELINE2]:xA,[s.LAYOUT.FISHBONE]:FA};class IA{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.themeConfig=this.mindMap.themeConfig,this.draw=this.mindMap.draw,this.renderTree=m()({},this.mindMap.opt.data||{}),this.reRender=!1,this.isRendering=!1,this.hasWaitRendering=!1,this.nodeCache={},this.lastNodeCache={},this.renderSource="",this.activeNodeList=[],this.root=null,this.textEdit=new LA(this),this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys()}setLayout(){this.layout=new(QA[this.mindMap.opt.layout]?QA[this.mindMap.opt.layout]:QA[s.LAYOUT.LOGICAL_STRUCTURE])(this,this.mindMap.opt.layout)}bindEvent(){this.mindMap.on("draw_click",t=>{let e=!0,{useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;if(n){let n=this.mindMap.event.mousedownPos;e=Math.abs(t.clientX-n.x)<=5&&Math.abs(t.clientY-n.y)<=5}e&&this.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")})}registerCommands(){this.selectAll=this.selectAll.bind(this),this.mindMap.command.add("SELECT_ALL",this.selectAll),this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.upNode=this.upNode.bind(this),this.mindMap.command.add("UP_NODE",this.upNode),this.downNode=this.downNode.bind(this),this.mindMap.command.add("DOWN_NODE",this.downNode),this.insertAfter=this.insertAfter.bind(this),this.mindMap.command.add("INSERT_AFTER",this.insertAfter),this.insertBefore=this.insertBefore.bind(this),this.mindMap.command.add("INSERT_BEFORE",this.insertBefore),this.moveNodeTo=this.moveNodeTo.bind(this),this.mindMap.command.add("MOVE_NODE_TO",this.moveNodeTo),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.pasteNode=this.pasteNode.bind(this),this.mindMap.command.add("PASTE_NODE",this.pasteNode),this.cutNode=this.cutNode.bind(this),this.mindMap.command.add("CUT_NODE",this.cutNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearAllActive=this.clearAllActive.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearAllActive),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.expandAllNode=this.expandAllNode.bind(this),this.mindMap.command.add("EXPAND_ALL",this.expandAllNode),this.unexpandAllNode=this.unexpandAllNode.bind(this),this.mindMap.command.add("UNEXPAND_ALL",this.unexpandAllNode),this.expandToLevel=this.expandToLevel.bind(this),this.mindMap.command.add("UNEXPAND_TO_LEVEL",this.expandToLevel),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag),this.addGeneralization=this.addGeneralization.bind(this),this.mindMap.command.add("ADD_GENERALIZATION",this.addGeneralization),this.removeGeneralization=this.removeGeneralization.bind(this),this.mindMap.command.add("REMOVE_GENERALIZATION",this.removeGeneralization),this.setNodeCustomPosition=this.setNodeCustomPosition.bind(this),this.mindMap.command.add("SET_NODE_CUSTOM_POSITION",this.setNodeCustomPosition),this.resetLayout=this.resetLayout.bind(this),this.mindMap.command.add("RESET_LAYOUT",this.resetLayout),this.setNodeShape=this.setNodeShape.bind(this),this.mindMap.command.add("SET_NODE_SHAPE",this.setNodeShape)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Tab",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.insertNodeWrap=()=>{this.textEdit.showTextEdit||this.mindMap.execCommand("INSERT_NODE")},this.mindMap.keyCommand.addShortcut("Enter",this.insertNodeWrap),this.mindMap.keyCommand.addShortcut("Control+s",this.addGeneralization),this.toggleActiveExpand=this.toggleActiveExpand.bind(this),this.mindMap.keyCommand.addShortcut("/",this.toggleActiveExpand),this.removeNodeWrap=()=>{this.mindMap.execCommand("REMOVE_NODE")},this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeNodeWrap),this.mindMap.on("before_show_text_edit",()=>{this.startTextEdit()}),this.mindMap.on("hide_text_edit",()=>{this.endTextEdit()}),this.mindMap.keyCommand.addShortcut("Control+a",()=>{this.mindMap.execCommand("SELECT_ALL")}),this.mindMap.keyCommand.addShortcut("Control+l",this.resetLayout),this.mindMap.keyCommand.addShortcut("Control+Up",this.upNode),this.mindMap.keyCommand.addShortcut("Control+Down",this.downNode)}startTextEdit(){this.mindMap.keyCommand.save()}endTextEdit(){this.mindMap.keyCommand.restore()}render(t=(()=>{}),e){let n=Date.now();this.isRendering?this.hasWaitRendering=!0:(this.isRendering=!0,this.renderSource=e,this.lastNodeCache=this.nodeCache,this.nodeCache={},this.reRender&&this.clearActive(),this.layout.doLayout(r=>{Object.keys(this.lastNodeCache).forEach(t=>{this.nodeCache[t]||(this.lastNodeCache[t].destroy(),this.lastNodeCache[t].parent&&this.lastNodeCache[t].parent.removeLine())}),this.root=r;const i=()=>{this.isRendering=!1,this.mindMap.emit("node_tree_render_end"),t&&t(),this.hasWaitRendering?(this.hasWaitRendering=!1,this.render(t,e)):this.mindMap.richText&&[s.CHANGE_THEME,s.SET_DATA].includes(e)&&this.mindMap.command.addHistory()};let{enableNodeTransitionMove:A,nodeTransitionMoveDuration:o}=this.mindMap.opt;this.root.render(()=>{let t=Date.now()-n;A&&t<=o?setTimeout(()=>{i()},o-t):i()})}),this.mindMap.emit("node_active",null,this.activeNodeList))}clearActive(){this.activeNodeList.forEach(t=>{this.setNodeActive(t,!1)}),this.activeNodeList=[]}clearAllActive(){this.activeNodeList.length<=0||(this.clearActive(),this.mindMap.emit("node_active",null,[]))}addActiveNode(t){let e=this.findActiveNodeIndex(t);-1===e&&this.activeNodeList.push(t)}removeActiveNode(t){let e=this.findActiveNodeIndex(t);-1!==e&&this.activeNodeList.splice(e,1)}findActiveNodeIndex(t){return this.activeNodeList.findIndex(e=>e===t)}getNodeIndex(t){return t.parent?t.parent.children.findIndex(e=>e===t):0}selectAll(){ti(this.root,null,t=>{t.nodeData.data.isActive||(t.nodeData.data.isActive=!0,this.addActiveNode(t),t.showExpandBtn(),setTimeout(()=>{t.updateNodeShape()},0))},null,!0,0,0)}back(t){this.clearAllActive();let e=this.mindMap.command.back(t);e&&(this.renderTree=e,this.mindMap.render())}forward(t){this.clearAllActive();let e=this.mindMap.command.forward(t);e&&(this.renderTree=e,this.mindMap.render())}formatAppointNodes(t){return t?Array.isArray(t)?t:[t]:[]}insertNode(t=!0,e=[],n=null){if(e=this.formatAppointNodes(e),this.activeNodeList.length<=0&&e.length<=0)return;let{defaultInsertSecondLevelNodeText:r,defaultInsertBelowSecondLevelNodeText:i}=this.mindMap.opt,A=e.length>0?e:this.activeNodeList,o=A[0];if(o.isRoot)this.insertChildNode(t,e,n);else{let e=1===o.layerIndex?r:i;1===o.layerIndex&&o.parent.destroy();let A=this.getNodeIndex(o);o.parent.nodeData.children.splice(A+1,0,{inserting:t,data:{text:e,expand:!0,...n||{}},children:[]}),this.mindMap.render()}}insertChildNode(t=!0,e=[],n=null){if(e=this.formatAppointNodes(e),this.activeNodeList.length<=0&&e.length<=0)return;let{defaultInsertSecondLevelNodeText:r,defaultInsertBelowSecondLevelNodeText:i}=this.mindMap.opt,A=e.length>0?e:this.activeNodeList;A.forEach(e=>{e.nodeData.children||(e.nodeData.children=[]);let A=e.isRoot?r:i;e.nodeData.children.push({inserting:t,data:{text:A,expand:!0,...n||{}},children:[]}),e.nodeData.data.expand=!0,e.isRoot&&e.destroy()}),this.mindMap.render()}upNode(){if(this.activeNodeList.length<=0)return;let t=this.activeNodeList[0];if(t.isRoot)return;let e=t.parent,n=e.children,r=n.findIndex(e=>e===t);if(-1===r||0===r)return;let i=r-1;n.splice(r,1),n.splice(i,0,t),e.nodeData.children.splice(r,1),e.nodeData.children.splice(i,0,t.nodeData),this.mindMap.render()}downNode(){if(this.activeNodeList.length<=0)return;let t=this.activeNodeList[0];if(t.isRoot)return;let e=t.parent,n=e.children,r=n.findIndex(e=>e===t);if(-1===r||r===n.length-1)return;let i=r+1;n.splice(r,1),n.splice(i,0,t),e.nodeData.children.splice(r,1),e.nodeData.children.splice(i,0,t.nodeData),this.mindMap.render()}insertBefore(t,e){if(t.isRoot)return;let n=1===t.layerIndex&&1!==e.layerIndex||1!==t.layerIndex&&1===e.layerIndex,r=t.parent,i=r.children,A=i.findIndex(e=>e===t);if(-1===A)return;i.splice(A,1),r.nodeData.children.splice(A,1);let o=e.parent,s=o.children,a=s.findIndex(t=>t===e);-1!==a&&(s.splice(a,0,t),o.nodeData.children.splice(a,0,t.nodeData),this.mindMap.render(()=>{n&&t.reRender()}))}insertAfter(t,e){if(t.isRoot)return;let n=1===t.layerIndex&&1!==e.layerIndex||1!==t.layerIndex&&1===e.layerIndex,r=t.parent,i=r.children,A=i.findIndex(e=>e===t);if(-1===A)return;i.splice(A,1),r.nodeData.children.splice(A,1);let o=e.parent,s=o.children,a=s.findIndex(t=>t===e);-1!==a&&(a++,s.splice(a,0,t),o.nodeData.children.splice(a,0,t.nodeData),this.mindMap.render(()=>{n&&t.reRender()}))}removeNode(t=[]){if(t=this.formatAppointNodes(t),this.activeNodeList.length<=0&&t.length<=0)return;let e=t.length>0,n=e?t:this.activeNodeList,r=n.find(t=>t.isRoot);if(r)this.clearActive(),r.children.forEach(t=>{t.remove()}),r.children=[],r.nodeData.children=[];else for(let i=0;i<n.length;i++){let t=n[i];e&&n.splice(i,1),t.isGeneralization?(this.setNodeData(t.generalizationBelongNode,{generalization:null}),t.generalizationBelongNode.update(),this.removeActiveNode(t),i--):(this.removeActiveNode(t),this.removeOneNode(t),i--)}this.mindMap.emit("node_active",null,this.activeNodeList),this.mindMap.render()}removeOneNode(t){let e=this.getNodeIndex(t);t.remove(),t.parent.children.splice(e,1),t.parent.nodeData.children.splice(e,1)}copyNode(){if(!(this.activeNodeList.length<=0))return oi({},this.activeNodeList[0],!0)}cutNode(t){if(this.activeNodeList.length<=0)return;let e=this.activeNodeList[0];if(e.isRoot)return null;let n=oi({},e,!0);this.removeActiveNode(e),this.removeOneNode(e),this.mindMap.emit("node_active",null,this.activeNodeList),this.mindMap.render(),t&&"function"===typeof t&&t(n)}moveNodeTo(t,e){if(t.isRoot)return;let n=oi({},t,!1,!0);this.removeActiveNode(t),this.removeOneNode(t),this.mindMap.emit("node_active",null,this.activeNodeList),e.nodeData.children.push(n),this.mindMap.render(),e.isRoot&&e.destroy()}pasteNode(t){this.activeNodeList.length<=0||(this.activeNodeList.forEach(e=>{e.nodeData.children.push(ii(t))}),this.mindMap.render())}setNodeStyle(t,e,n,r){let i={};if(i=r?{activeStyle:{...t.nodeData.data.activeStyle||{},[e]:n}}:{[e]:n},this.mindMap.richText){let r=this.mindMap.richText.normalStyleToRichTextStyle({[e]:n});Object.keys(r).length>0&&(this.mindMap.richText.showEditText(t),this.mindMap.richText.formatAllText(r),this.mindMap.richText.hideEditText([t]))}this.setNodeDataRender(t,i),kA.includes(e)&&(t.parent||t).renderLine(!0)}setNodeActive(t,e){this.setNodeData(t,{isActive:e}),e?t.showExpandBtn():t.hideExpandBtn(),t.updateNodeShape()}setNodeExpand(t,e){this.setNodeData(t,{expand:e}),e?(t.children.forEach(t=>{t.render()}),t.renderLine()):(t.children.forEach(t=>{t.remove()}),t.removeLine()),this.mindMap.render()}expandAllNode(){ti(this.renderTree,null,t=>{t.data.expand||(t.data.expand=!0)},null,!0,0,0),this.mindMap.render()}unexpandAllNode(){ti(this.renderTree,null,(t,e,n)=>{t._node=null,n||(t.data.expand=!1)},null,!0,0,0),this.mindMap.render(()=>{this.mindMap.view.reset()})}expandToLevel(t){ti(this.renderTree,null,(e,n,r,i)=>{e._node=null,e.data.expand=i<t},null,!0,0,0),this.mindMap.render()}toggleActiveExpand(){this.activeNodeList.forEach(t=>{t.nodeData.children.length<=0||this.toggleNodeExpand(t)})}toggleNodeExpand(t){this.mindMap.execCommand("SET_NODE_EXPAND",t,!t.nodeData.data.expand)}setNodeText(t,e,n){this.setNodeDataRender(t,{text:e,richText:n})}setNodeImage(t,{url:e,title:n,width:r,height:i}){this.setNodeDataRender(t,{image:e,imageTitle:n||"",imageSize:{width:r,height:i}})}setNodeIcon(t,e){this.setNodeDataRender(t,{icon:e})}setNodeHyperlink(t,e,n=""){this.setNodeDataRender(t,{hyperlink:e,hyperlinkTitle:n})}setNodeNote(t,e){this.setNodeDataRender(t,{note:e})}setNodeTag(t,e){this.setNodeDataRender(t,{tag:e})}addGeneralization(t){this.activeNodeList.length<=0||(this.activeNodeList.forEach(e=>{e.nodeData.data.generalization||e.isRoot||(this.setNodeData(e,{generalization:t||{text:"概要"}}),e.update())}),this.mindMap.render())}removeGeneralization(){this.activeNodeList.length<=0||(this.activeNodeList.forEach(t=>{t.nodeData.data.generalization&&(this.setNodeData(t,{generalization:null}),t.update())}),this.mindMap.render())}setNodeCustomPosition(t,e,n){let r=[t]||!1;r.forEach(t=>{this.setNodeData(t,{customLeft:e,customTop:n})})}resetLayout(){ti(this.root,null,t=>{t.customLeft=void 0,t.customTop=void 0,this.setNodeData(t,{customLeft:void 0,customTop:void 0}),this.mindMap.render()},null,!0,0,0)}setNodeShape(t,e){if(!e||!$r.includes(e))return;let n=[t]||!1;n.forEach(t=>{this.setNodeStyle(t,"shape",e)})}setNodeData(t,e){Object.keys(e).forEach(n=>{t.nodeData.data[n]=e[n]})}setNodeDataRender(t,e){this.setNodeData(t,e);let n=t.reRender();n&&(t.isGeneralization&&t.generalizationBelongNode.updateGeneralization(),this.mindMap.render())}moveNodeToCenter(t){let e=this.mindMap.width/2,n=this.mindMap.height/2,{left:r,top:i,width:A,height:o}=t,s=r+A/2,a=i+o/2,{state:l}=this.mindMap.view.getTransformData(),c=e-l.x,u=n-l.y,h=c-s,d=u-a;this.mindMap.view.translateX(h),this.mindMap.view.translateY(d),this.mindMap.view.setScale(1)}}var TA=IA,OA=m()(NA,{lineColor:"#333",backgroundColor:"#d1f6ec",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"#1fb27d"},second:{fillColor:"#fff",color:"#565656",borderColor:"transparent",borderWidth:0},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333",active:{borderColor:"rgb(57, 80, 96)",borderWidth:3,borderDasharray:"none"}}}),MA=m()(NA,{lineColor:"rgb(115, 161, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(115, 161, 191)",active:{borderColor:"rgb(57, 80, 96)"}},second:{fillColor:"rgb(238, 243, 246)",color:"#333",borderColor:"rgb(115, 161, 191)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(57, 80, 96)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(57, 80, 96)"}},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333",active:{borderColor:"rgb(57, 80, 96)"}}}),DA=m()(NA,{lineColor:"rgb(191, 115, 148)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 148)",active:{borderColor:"rgb(96, 57, 74)"}},second:{fillColor:"rgb(246, 238, 242)",color:"#333",borderColor:"rgb(191, 115, 148)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(96, 57, 74)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(96, 57, 74)"}},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333",active:{borderColor:"rgb(96, 57, 74)"}}}),PA=m()(NA,{lineColor:"rgb(123, 115, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(123, 115, 191)",active:{borderColor:"rgb(61, 57, 96)"}},second:{fillColor:"rgb(239, 238, 246)",color:"#333",borderColor:"rgb(123, 115, 191)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(61, 57, 96)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(61, 57, 96)"}},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333",active:{borderColor:"rgb(61, 57, 96)"}}}),HA=m()(NA,{lineColor:"rgb(191, 115, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 115)",active:{borderColor:"rgb(96, 57, 57)"}},second:{fillColor:"rgb(246, 238, 238)",color:"#333",borderColor:"rgb(191, 115, 115)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(96, 57, 57)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(96, 57, 57)"}},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333",active:{borderColor:"rgb(96, 57, 57)"}}}),RA=m()(NA,{lineColor:"rgb(191, 147, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 147, 115)",active:{borderColor:"rgb(96, 73, 57)"}},second:{fillColor:"rgb(246, 242, 238)",color:"#333",borderColor:"rgb(191, 147, 115)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(96, 73, 57)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(96, 73, 57)"}},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333",active:{borderColor:"rgb(96, 73, 57)"}}}),jA=m()(NA,{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(58, 65, 68)",backgroundImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=",backgroundRepeat:"repeat",root:{fillColor:"rgb(233, 223, 152)",color:"#333",fontSize:24,borderRadius:21,active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}},second:{fillColor:"rgb(164, 197, 192)",borderColor:"transparent",color:"#333",fontSize:16,borderRadius:10,active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}},node:{fontSize:12,color:"#fff",fontWeight:"bold",active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333",active:{fillColor:"rgb(254, 219, 0)",borderColor:"transparent"}}}),zA=m()(NA,{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"#fff",root:{fillColor:"rgb(18, 187, 55)",color:"#fff",fontSize:24,borderRadius:10,active:{borderColor:"rgb(51, 51, 51)"}},second:{fillColor:"rgb(241, 242, 241)",borderColor:"transparent",color:"#1a1a1a",fontSize:18,borderRadius:10,active:{borderColor:"rgb(51, 51, 51)"}},node:{fontSize:14,color:"#1a1a1a",active:{borderColor:"rgb(51, 51, 51)"}},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",borderWidth:2,color:"#1a1a1a",active:{borderColor:"rgb(18, 187, 55)"}}}),qA=m()(NA,{lineColor:"rgb(94, 202, 110)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"#1a1a1a",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(255, 245, 214)",color:"#1a1a1a",fontSize:24,borderRadius:10,borderColor:"rgb(249, 199, 84)",borderWidth:1,active:{borderColor:"rgb(94, 202, 110)"}},second:{fillColor:"rgb(255, 245, 214)",borderColor:"rgb(249, 199, 84)",borderWidth:1,color:"#1a1a1a",fontSize:18,borderRadius:10,active:{borderColor:"rgb(94, 202, 110)"}},node:{fontSize:14,color:"#1a1a1a",active:{borderColor:"rgb(94, 202, 110)"}},generalization:{fillColor:"#fff",borderColor:"#1a1a1a",color:"#1a1a1a",borderWidth:2,active:{borderColor:"rgb(94, 202, 110)"}}}),KA=m()(NA,{lineColor:"rgb(30, 53, 86)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(56, 123, 233)",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(30, 53, 86)",color:"#fff",fontSize:24,borderRadius:10,borderColor:"rgb(189, 197, 201)",borderWidth:2,active:{borderColor:"rgb(169, 218, 218)"}},second:{fillColor:"rgb(169, 218, 218)",borderColor:"rgb(30, 53, 86)",borderWidth:2,color:"#fff",fontSize:18,borderRadius:10,active:{borderColor:"rgb(56, 123, 233)"}},node:{fontSize:14,color:"rgb(30, 53, 86)",borderColor:"rgb(30, 53, 86)",borderWidth:1,marginY:20,active:{borderColor:"rgb(169, 218, 218)"}},generalization:{fillColor:"rgb(56, 123, 233)",borderColor:"rgb(56, 123, 233)",color:"#fff",borderWidth:0,active:{borderColor:"rgb(169, 218, 218)"}}}),GA=m()(NA,{lineColor:"rgb(17, 68, 23)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#fff",backgroundColor:"rgb(15, 16, 17)",root:{fillColor:"rgb(28, 178, 43)",color:"#fff",fontSize:24,borderRadius:10,active:{borderColor:"rgb(17, 68, 23)"}},second:{fillColor:"rgb(55, 56, 58)",color:"rgb(147,148,149)",fontSize:18,borderRadius:10,borderWidth:0,active:{borderColor:"rgb(17, 68, 23)"}},node:{fontSize:14,color:"rgb(147, 148, 149)",active:{borderColor:"rgb(17, 68, 23)"}},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333",active:{borderColor:"rgb(17, 68, 23)"}}}),VA=m()(NA,{lineColor:"rgb(123, 199, 120)",backgroundColor:"rgb(236, 245, 231)",generalizationLineWidth:2,generalizationLineColor:"rgb(123, 199, 120)",root:{fillColor:"rgb(253, 244, 217)",color:"#222",active:{borderColor:"rgb(94, 199, 248)"}},second:{fillColor:"rgb(253, 244, 217)",color:"#222",borderColor:"rgb(242, 200, 104)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(94, 199, 248)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(94, 199, 248)"}},generalization:{fillColor:"rgb(123, 199, 120)",borderColor:"transparent",borderWidth:2,color:"#fff",active:{borderColor:"rgb(94, 199, 248)"}}}),WA=m()(NA,{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"rgb(239, 248, 250)",root:{fillColor:"rgb(255, 255, 255)",color:"#222",active:{borderColor:"rgb(94, 199, 248)"}},second:{fillColor:"rgb(255, 255, 255)",color:"#222",borderColor:"rgb(255, 255, 255)",borderWidth:1,fontSize:14,active:{borderColor:"rgb(94, 199, 248)"}},node:{fontSize:12,color:"#333",active:{borderColor:"rgb(94, 199, 248)"}},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",color:"#333",active:{borderColor:"rgb(94, 199, 248)"}}}),YA=m()(NA,{lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#222",backgroundColor:"rgb(248, 215, 49)",root:{fillColor:"rgb(55, 165, 255)",borderColor:"rgb(51, 51, 51)",borderWidth:3,active:{borderColor:"rgb(255, 160, 36)"}},second:{fillColor:"rgb(255, 160, 36)",color:"#222",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:14,active:{borderColor:"rgb(55, 165, 255)"}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(55, 165, 255)"}},generalization:{borderColor:"#222",borderWidth:3,color:"#222",active:{borderColor:"rgb(55, 165, 255)"}}}),XA=m()(NA,{lineColor:"rgb(166, 101, 106)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(255, 208, 211)",root:{fillColor:"rgb(139, 109, 225)",borderColor:"",borderWidth:0,active:{borderColor:"rgb(243, 104, 138)",borderWidth:2}},second:{fillColor:"rgb(243, 104, 138)",color:"#fff",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(139, 109, 225)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(139, 109, 225)"}},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#222",active:{borderColor:"rgb(139, 109, 225)",borderWidth:2}}}),JA=m()(NA,{lineColor:"rgb(104, 204, 202)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(90, 206, 241)",backgroundColor:"rgb(239, 255, 255)",root:{fillColor:"rgb(0, 192, 184)",borderColor:"",borderWidth:0,active:{borderColor:"rgb(255, 160, 36)",borderWidth:3}},second:{fillColor:"#fff",color:"#222",borderColor:"rgb(184, 235, 233)",borderWidth:2,fontSize:14,active:{borderColor:"rgb(0, 192, 184)"}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(0, 192, 184)"}},generalization:{fillColor:"rgb(90, 206, 241)",borderColor:"transparent",color:"#fff",active:{borderColor:"rgb(0, 192, 184)"}}}),ZA=m()(NA,{lineColor:"rgb(51, 56, 62)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(127, 93, 64)",backgroundColor:"#fff",root:{fillColor:"rgb(51, 56, 62)",color:"rgb(247, 208, 160)",borderColor:"",borderWidth:0,active:{borderColor:"rgb(247, 208, 160)",borderWidth:3}},second:{fillColor:"rgb(239, 209, 176)",color:"rgb(81, 58, 42)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(51, 56, 62)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(0, 192, 184)"}},generalization:{fillColor:"rgb(127, 93, 64)",borderColor:"transparent",color:"rgb(255, 214, 175)",active:{borderColor:"rgb(51, 56, 62)"}}}),$A=m()(NA,{lineColor:"rgb(254, 146, 0)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 222, 69)",backgroundColor:"rgb(255, 246, 243)",root:{fillColor:"rgb(255, 112, 52)",color:"#fff",borderColor:"",borderWidth:0,active:{borderColor:"rgb(51, 51, 51)",borderWidth:3}},second:{fillColor:"#fff",color:"rgb(51, 51, 51)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(255, 112, 52)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(255, 112, 52)"}},generalization:{fillColor:"rgb(255, 222, 69)",borderColor:"transparent",color:"rgb(51, 51, 51)",active:{borderColor:"rgb(255, 112, 52)"}}}),to=m()(NA,{lineColor:"rgb(40, 193, 84)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(251, 158, 0)",backgroundColor:"rgb(238, 255, 243)",root:{fillColor:"rgb(25, 193, 73)",color:"#fff",borderColor:"",borderWidth:0,active:{borderColor:"#222",borderWidth:3}},second:{fillColor:"#fff",color:"rgb(69, 149, 96)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(25, 193, 73)",borderWidth:2}},node:{fontSize:12,color:"#222",active:{borderColor:"rgb(25, 193, 73)"}},generalization:{fillColor:"#fff",borderColor:"rgb(251, 158, 0)",borderWidth:2,color:"rgb(51, 51, 51)",active:{borderColor:"rgb(25, 193, 73)"}}}),eo=m()(NA,{lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",backgroundColor:"rgb(27, 31, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0,active:{borderColor:"rgb(254, 199, 13)",borderWidth:3}},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"rgb(36, 179, 96)",borderWidth:2}},node:{fontSize:12,color:"rgb(204, 204, 204)",active:{borderColor:"rgb(254, 199, 13)"}},generalization:{fillColor:"transparent",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)",active:{borderColor:"rgb(254, 199, 13)"}}}),no=m()(NA,{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(80, 156, 170)",root:{fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(65, 89, 158)",active:{borderColor:"rgb(251, 227, 188)",borderWidth:3}},second:{fillColor:"rgb(251, 227, 188)",color:"rgb(65, 89, 158)",borderColor:"",borderWidth:0,fontSize:14,active:{borderColor:"#fff",borderWidth:2}},node:{fontSize:12,color:"rgb(65, 89, 158)",active:{borderColor:"rgb(251, 227, 188)"}},generalization:{fillColor:"#fff",borderColor:"transparent",color:"rgb(65, 89, 158)",active:{borderColor:"rgb(251, 227, 188)"}}}),ro=m()(NA,{lineColor:"rgb(34, 34, 34)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(34, 34, 34)",root:{fillColor:"#fff",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:24,active:{borderColor:"#a13600"}},second:{fillColor:"rgb(241, 246, 248)",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:18,active:{borderColor:"#a13600"}},node:{fontSize:14,color:"rgb(34, 34, 34)",active:{borderColor:"#a13600"}},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)",active:{borderColor:"#a13600"}}}),io=m()(NA,{lineColor:"rgb(113, 195, 169)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(113, 195, 169)",root:{fillColor:"rgb(16, 160, 121)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24,active:{borderColor:"rgb(173, 91, 12)",borderWidth:3}},second:{fillColor:"rgb(240, 252, 249)",color:"rgb(50, 113, 96)",borderColor:"rgb(113, 195, 169)",borderWidth:2,fontSize:18,active:{borderColor:"rgb(173, 91, 12)"}},node:{fontSize:14,color:"rgb(10, 59, 43)",active:{borderColor:"rgb(173, 91, 12)"}},generalization:{fontSize:14,fillColor:"rgb(246, 238, 211)",borderColor:"",borderWidth:0,color:"rgb(173, 91, 12)",active:{borderColor:"rgb(113, 195, 169)"}}}),Ao=m()(NA,{lineColor:"rgb(173, 123, 91)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(173, 123, 91)",root:{fillColor:"rgb(202, 117, 79)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24,active:{borderColor:"rgb(173, 123, 91)",borderWidth:3}},second:{fillColor:"rgb(245, 231, 216)",color:"rgb(125, 86, 42)",borderColor:"",borderWidth:0,fontSize:18,active:{borderColor:"rgb(173, 123, 91)"}},node:{fontSize:14,color:"rgb(96, 71, 47)",active:{borderColor:"rgb(173, 123, 91)"}},generalization:{fontSize:14,fillColor:"rgb(255, 249, 239)",borderColor:"rgb(173, 123, 91)",borderWidth:2,color:"rgb(122, 83, 44)",active:{borderColor:"rgb(202, 117, 79)"}}}),oo=m()(NA,{backgroundColor:"rgb(255, 238, 228)",lineColor:"rgb(230, 138, 131)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(222, 101, 85)",root:{fillColor:"rgb(207, 44, 44)",color:"rgb(255, 233, 157)",borderColor:"",borderWidth:0,fontSize:24,active:{borderColor:"rgb(255, 233, 157)",borderWidth:3}},second:{fillColor:"rgb(255, 255, 255)",color:"rgb(211, 58, 21)",borderColor:"rgb(222, 101, 85)",borderWidth:2,fontSize:18,active:{borderColor:"rgb(255, 233, 157)"}},node:{fontSize:14,color:"rgb(144, 71, 43)",active:{borderColor:"rgb(255, 233, 157)"}},generalization:{fontSize:14,fillColor:"rgb(255, 247, 211)",borderColor:"rgb(255, 202, 162)",borderWidth:2,color:"rgb(187, 101, 69)",active:{borderColor:"rgb(222, 101, 85)"}}}),so=m()(NA,{backgroundColor:"rgb(27, 31, 34)",lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24,active:{borderColor:"rgb(254, 199, 13)",borderWidth:3}},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18,active:{borderColor:"rgb(36, 179, 96)",borderWidth:3}},node:{fontSize:14,color:"rgb(204, 204, 204)",active:{borderColor:"rgb(254, 199, 13)"}},generalization:{fontSize:14,fillColor:"rgb(27, 31, 34)",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)",active:{borderColor:"rgb(36, 179, 96)"}}}),ao=m()(NA,{backgroundColor:"rgb(32, 37, 49)",lineColor:"rgb(137, 167, 196)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(23, 153, 243)",color:"rgb(255, 255, 255)",borderColor:"",borderWidth:0,fontSize:24,active:{borderColor:"rgb(255, 119, 34)",borderWidth:3}},second:{fillColor:"rgb(70, 78, 94)",color:"rgb(209, 210, 210)",borderColor:"",borderWidth:0,fontSize:18,active:{borderColor:"rgb(255, 119, 34)",borderWidth:3}},node:{fontSize:14,color:"rgb(204, 204, 204)",active:{borderColor:"rgb(255, 119, 34)"}},generalization:{fontSize:14,fillColor:"rgb(255, 119, 34)",borderColor:"",borderWidth:2,color:"#fff",active:{borderColor:"rgb(23, 153, 243)"}}}),lo=m()(NA,{backgroundColor:"rgb(18, 20, 20)",lineColor:"rgb(205, 186, 156)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(245, 224, 191)",root:{fillColor:"rgb(255, 208, 124)",color:"rgb(111, 61, 6)",borderColor:"",borderWidth:0,fontSize:24,active:{borderColor:"#fff",borderWidth:3}},second:{fillColor:"rgb(66, 57, 46)",color:"rgb(225, 201, 158)",borderColor:"rgb(245, 224, 191)",borderWidth:2,fontSize:18,active:{borderColor:"rgb(255, 208, 124)"}},node:{fontSize:14,color:"rgb(231, 203, 155)",active:{borderColor:"rgb(255, 208, 124)"}},generalization:{fontSize:14,fillColor:"rgb(56, 45, 34)",borderColor:"rgb(104, 84, 61)",borderWidth:2,color:"rgb(242, 216, 176)",active:{borderColor:"rgb(255, 208, 124)"}}}),co=m()(NA,{backgroundColor:"#e6f1de",lineColor:"#f5ffad",lineWidth:4,generalizationLineWidth:3,generalizationLineColor:"#749336",root:{fillColor:"#94c143",color:"#fff",borderColor:"#94c143",borderWidth:0,fontSize:24,active:{borderColor:"#749336",borderWidth:3}},second:{fillColor:"#cee498",color:"#749336",borderColor:"#aec668",borderWidth:2,fontSize:18,active:{borderColor:"#749336"}},node:{fontSize:14,color:"#749336",active:{borderColor:"#749336"}},generalization:{fontSize:14,fillColor:"#cee498",borderColor:"#aec668",borderWidth:2,color:"#749336",active:{borderColor:"#749336"}}}),uo=m()(NA,{backgroundColor:"#fff2df",lineColor:"#b0bc47",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#b0bc47",root:{fillColor:"#e68112",color:"#fff",borderColor:"#e68112",borderWidth:0,fontSize:24,active:{borderColor:"#b0bc47",borderWidth:3}},second:{fillColor:"#ffd683",color:"#8c5416",borderColor:"#b0bc47",borderWidth:2,fontSize:18,active:{borderColor:"#e68112"}},node:{fontSize:14,color:"#8c5416",active:{borderColor:"#b0bc47"}},generalization:{fontSize:14,fillColor:"#ffd683",borderColor:"#b0bc47",borderWidth:2,color:"#8c5416",active:{borderColor:"#e68112"}}}),ho=m()(NA,{backgroundColor:"#070616",lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",root:{fillColor:"#ff6811",color:"#110501",borderColor:"#ff6811",borderWidth:0,fontSize:24,active:{borderColor:"#a9a4a9",borderWidth:3}},second:{fillColor:"#070616",color:"#a9a4a9",borderColor:"#ff6811",borderWidth:2,fontSize:18,active:{borderColor:"#110501"}},node:{fontSize:14,color:"#a9a4a9",active:{borderColor:"#ff6811"}},generalization:{fontSize:14,fillColor:"",borderColor:"#ff6811",borderWidth:2,color:"#a9a4a9",active:{borderColor:"#110501"}}}),fo={default:NA,freshGreen:OA,blueSky:MA,brainImpairedPink:DA,romanticPurple:PA,freshRed:HA,earthYellow:RA,classic:jA,classic2:zA,classic3:qA,classic4:KA,dark:GA,classicGreen:VA,classicBlue:WA,minions:YA,pinkGrape:XA,mint:JA,gold:ZA,vitalityOrange:$A,greenLeaf:to,dark2:eo,skyGreen:no,simpleBlack:ro,courseGreen:io,coffee:Ao,redSpirit:oo,blackHumour:so,lateNightOffice:ao,blackGold:lo,avocado:co,autumn:uo,orangeJuice:ho};const po={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(let su=0;su<=9;su++)po[su]=su+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach((t,e)=>{po[t]=e+65});const go=po;class mo{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.shortcutMap={},this.shortcutMapCache={},this.isPause=!1,this.isInSvg=!1,this.bindEvent()}pause(){this.isPause=!0}recovery(){this.isPause=!1}save(){this.shortcutMapCache=this.shortcutMap,this.shortcutMap={}}restore(){this.shortcutMap=this.shortcutMapCache,this.shortcutMapCache={}}bindEvent(){this.mindMap.on("svg_mouseenter",()=>{this.isInSvg=!0}),this.mindMap.on("svg_mouseleave",()=>{this.mindMap.richText&&this.mindMap.richText.showTextEdit||this.mindMap.renderer.textEdit.showTextEdit||this.mindMap.associativeLine&&this.mindMap.associativeLine.showTextEdit||(this.isInSvg=!1)}),window.addEventListener("keydown",t=>{this.isPause||this.mindMap.opt.enableShortcutOnlyWhenMouseInSvg&&!this.isInSvg||Object.keys(this.shortcutMap).forEach(e=>{this.checkKey(t,e)&&(t.stopPropagation(),t.preventDefault(),this.shortcutMap[e].forEach(t=>{t()}))})})}checkKey(t,e){let n=this.getOriginEventCodeArr(t),r=this.getKeyCodeArr(e);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let t=r.findIndex(t=>t===n[i]);if(-1===t)return!1;r.splice(t,1)}return!0}getOriginEventCodeArr(t){let e=[];return(t.ctrlKey||t.metaKey)&&e.push(go["Control"]),t.altKey&&e.push(go["Alt"]),t.shiftKey&&e.push(go["Shift"]),e.includes(t.keyCode)||e.push(t.keyCode),e}getKeyCodeArr(t){let e=t.split(/\s*\+\s*/),n=[];return e.forEach(t=>{n.push(go[t])}),n}addShortcut(t,e){t.split(/\s*\|\s*/).forEach(t=>{this.shortcutMap[t]?this.shortcutMap[t].push(e):this.shortcutMap[t]=[e]})}removeShortcut(t,e){t.split(/\s*\|\s*/).forEach(t=>{if(this.shortcutMap[t])if(e){let n=this.shortcutMap[t].findIndex(t=>t===e);-1!==n&&this.shortcutMap[t].splice(n,1)}else this.shortcutMap[t]=[],delete this.shortcutMap[t]})}getShortcutFn(t){let e=[];return t.split(/\s*\|\s*/).forEach(t=>{e=this.shortcutMap[t]||[]}),e}}class wo{constructor(t={}){this.opt=t,this.mindMap=t.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0,this.registerShortcutKeys(),this.addHistory=gi(this.addHistory,this)}clearHistory(){this.history=[],this.activeHistoryIndex=0,this.mindMap.emit("back_forward",0,0)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Control+z",()=>{this.mindMap.execCommand("BACK")}),this.mindMap.keyCommand.addShortcut("Control+y",()=>{this.mindMap.execCommand("FORWARD")})}exec(t,...e){if(this.commands[t]){if(this.commands[t].forEach(t=>{t(...e)}),["BACK","FORWARD","SET_NODE_ACTIVE","CLEAR_ACTIVE_NODE"].includes(t))return;this.addHistory()}}add(t,e){this.commands[t]?this.commands[t].push(e):this.commands[t]=[e]}remove(t,e){if(this.commands[t])if(e){let n=this.commands[t].find(t=>t===e);-1!==n&&this.commands[t].splice(n,1)}else this.commands[t]=[],delete this.commands[t]}addHistory(){if(this.mindMap.opt.readonly)return;let t=this.getCopyData();this.history.length>0&&JSON.stringify(this.history[this.history.length-1])===JSON.stringify(t)||(this.history=this.history.slice(0,this.activeHistoryIndex+1),this.history.push(ii(t)),this.history.length>this.mindMap.opt.maxHistoryCount&&this.history.shift(),this.activeHistoryIndex=this.history.length-1,this.mindMap.emit("data_change",this.removeDataUid(t)),this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length))}back(t=1){if(!this.mindMap.opt.readonly&&this.activeHistoryIndex-t>=0){this.activeHistoryIndex-=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);let e=ii(this.history[this.activeHistoryIndex]);return this.mindMap.emit("data_change",this.removeDataUid(e)),e}}forward(t=1){if(this.mindMap.opt.readonly)return;let e=this.history.length;if(this.activeHistoryIndex+t<=e-1){this.activeHistoryIndex+=t,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);let e=ii(this.history[this.activeHistoryIndex]);return this.mindMap.emit("data_change",this.removeDataUid(e)),e}}getCopyData(){return Ai({},this.mindMap.renderer.renderTree,!0)}removeDataUid(t){t=ii(t);let e=t=>{delete t.data.uid,t.children&&t.children.length>0&&t.children.forEach(t=>{e(t)})};return e(t),t}}var yo=wo;class vo{constructor(){this.has={},this.queue=[],this.nextTick=gi(this.flush,this)}push(t,e){this.has[t]||(this.has[t]=!0,this.queue.push({name:t,fn:e}),this.nextTick())}flush(){let t=this.queue.slice(0);this.queue=[],t.forEach(({name:t,fn:e})=>{this.has[t]=!1,e()})}}var bo=vo;const Bo={readonly:!1,layout:s.LAYOUT.LOGICAL_STRUCTURE,fishboneDeg:45,theme:"default",themeConfig:{},scaleRatio:.1,maxTag:5,exportPadding:20,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,selectTranslateStep:3,selectTranslateLimit:20,customNoteContentShow:null,enableFreeDrag:!1,watermarkConfig:{text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"#999",opacity:.5,fontSize:14}},textAutoWrapWidth:500,customHandleMousewheel:null,mousewheelAction:s.MOUSE_WHEEL_ACTION.ZOOM,mousewheelMoveStep:100,defaultInsertSecondLevelNodeText:"二级节点",defaultInsertBelowSecondLevelNodeText:"分支主题",expandBtnStyle:{color:"#808080",fill:"#fff"},expandBtnIcon:{open:"",close:""},enableShortcutOnlyWhenMouseInSvg:!0,enableNodeTransitionMove:!0,nodeTransitionMoveDuration:300,initRootNodePosition:null,exportPaddingX:10,exportPaddingY:10,nodeTextEditZIndex:3e3,nodeNoteTooltipZIndex:3e3,isEndNodeTextEditOnClickOuter:!0,maxHistoryCount:1e3,alwaysShowExpandBtn:!1,iconList:[],maxNodeCacheCount:1e3,defaultAssociativeLineText:"关联",fitPadding:50,enableCtrlKeyNodeSelection:!0,useLeftKeySelectionRightKeyDrag:!1,beforeTextEdit:null};class Co{constructor(t={}){this.opt=this.handleOpt(m()(Bo,t)),this.el=this.opt.el,this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.svg=Jr().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.uid=1,this.initTheme(),this.event=new p({mindMap:this}),this.keyCommand=new mo({mindMap:this}),this.command=new yo({mindMap:this}),this.renderer=new TA({mindMap:this}),this.view=new u({mindMap:this,draw:this.draw}),this.batchExecution=new bo,Co.pluginList.forEach(t=>{this.initPlugin(t)}),this.render(),setTimeout(()=>{this.command.addHistory()},0)}handleOpt(t){return l.includes(t.layout)||(t.layout=s.LAYOUT.LOGICAL_STRUCTURE),t.theme=t.theme&&fo[t.theme]?t.theme:"default",t}render(t,e=""){this.batchExecution.push("render",()=>{this.initTheme(),this.renderer.reRender=!1,this.renderer.render(t,e)})}reRender(t,e=""){this.batchExecution.push("render",()=>{this.draw.clear(),this.initTheme(),this.renderer.reRender=!0,this.renderer.render(t,e)})}resize(){this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.svg.size(this.width,this.height)}on(t,e){this.event.on(t,e)}emit(t,...e){this.event.emit(t,...e)}off(t,e){this.event.off(t,e)}initTheme(){this.themeConfig=m()(fo[this.opt.theme],this.opt.themeConfig),b.setBackgroundStyle(this.el,this.themeConfig)}setTheme(t){this.renderer.clearAllActive(),this.opt.theme=t,this.render(null,s.CHANGE_THEME)}getTheme(){return this.opt.theme}setThemeConfig(t){this.opt.themeConfig=t;let e=UA(t);this.render(null,e?"":s.CHANGE_THEME)}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(t){return void 0===t?this.themeConfig:this.themeConfig[t]}getConfig(t){return void 0===t?this.opt:this.opt[t]}updateConfig(t={}){this.opt=this.handleOpt(m.a.all([Bo,this.opt,t]))}getLayout(){return this.opt.layout}setLayout(t){l.includes(t)||(t=s.LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=t,this.view.reset(),this.renderer.setLayout(),this.render()}execCommand(...t){this.command.exec(...t)}setData(t){this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.richText?this.renderer.renderTree=this.richText.handleSetData(t):this.renderer.renderTree=t,this.reRender(()=>{},s.SET_DATA)}setFullData(t){t.root&&this.setData(t.root),t.layout&&this.setLayout(t.layout),t.theme&&(t.theme.template&&this.setTheme(t.theme.template),t.theme.config&&this.setThemeConfig(t.theme.config)),t.view&&this.view.setTransformData(t.view)}getData(t){let e=this.command.removeDataUid(this.command.getCopyData()),n={};return n=t?{layout:this.getLayout(),root:e,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:e,ii(n)}async export(...t){let e=await this.doExport.export(...t);return e}toPos(t,e){return{x:t-this.elRect.left,y:e-this.elRect.top}}setMode(t){[s.MODE.READONLY,s.MODE.EDIT].includes(t)&&(this.opt.readonly=t===s.MODE.READONLY,this.opt.readonly&&this.renderer.clearAllActive(),this.emit("mode_change",t))}getSvgData({paddingX:t=0,paddingY:e=0}={}){const n=this.svg,r=this.draw,i=n.width(),A=n.height(),o=r.transform(),s=this.el.getBoundingClientRect();r.scale(1/o.scaleX,1/o.scaleY);const a=r.rbox();a.width+=t,a.height+=e,r.translate(t/2,e/2),n.size(a.width,a.height),r.translate(-a.x+s.left,-a.y+s.top);let l=n.clone();return(a.width>i||a.height>A)&&this.watermark&&this.watermark.hasWatermark()&&(this.width=a.width,this.height=a.height,this.watermark.draw(),l=n.clone(),this.width=i,this.height=A,this.watermark.draw()),n.size(i,A),r.transform(o),{svg:l,svgHTML:l.svg(),rect:{...a,ratio:a.width/a.height},origWidth:i,origHeight:A,scaleX:o.scaleX,scaleY:o.scaleY}}addPlugin(t,e){let n=Co.hasPlugin(t);-1===n&&(Co.usePlugin(t,e),this.initPlugin(t))}removePlugin(t){let e=Co.hasPlugin(t);-1!==e&&(Co.pluginList.splice(e,1),this[t.instanceName]&&(this[t.instanceName].beforePluginRemove&&this[t.instanceName].beforePluginRemove(),delete this[t.instanceName]))}initPlugin(t){this[t.instanceName]=new t({mindMap:this,pluginOpt:t.pluginOpt})}destroy(){[...Co.pluginList].forEach(t=>{this[t.instanceName]=null}),this.event.unbind(),this.svg.remove(),b.removeBackgroundStyle(this.el),this.el=null}}Co.pluginList=[],Co.usePlugin=(t,e={})=>(t.pluginOpt=e,Co.pluginList.push(t),Co),Co.hasPlugin=t=>Co.pluginList.findIndex(e=>e===t),Co.defineTheme=(t,e={})=>{if(fo[t])return new Error("该主题名称已存在");fo[t]=m()(NA,e)};var xo=Co;class _o{constructor(t){this.mindMap=t.mindMap,this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.startViewPos={x:0,y:0}}calculationMiniMap(t,e){let{svgHTML:n,rect:r,origWidth:i,origHeight:A,scaleX:o,scaleY:s}=this.mindMap.getSvgData(),a=t/e,l=0,c=0;a>r.ratio?(c=e,l=r.ratio*c):(l=t,c=l/r.ratio);let u=l/r.width,h=(t-l)/2,d=(e-c)/2,f=r.x-(r.width*o-r.width)/2,p=r.x2+(r.width*o-r.width)/2,g=r.y-(r.height*s-r.height)/2,m=r.y2+(r.height*s-r.height)/2,w=r.width*o,y=r.height*s,v={left:0,top:0,right:0,bottom:0};return v.left=Math.max(0,-f/w*l)+h+"px",v.right=Math.max(0,(p-i)/w*l)+h+"px",v.top=Math.max(0,-g/y*c)+d+"px",v.bottom=Math.max(0,(m-A)/y*c)+d+"px",{svgHTML:n,viewBoxStyle:v,miniMapBoxScale:u,miniMapBoxLeft:h,miniMapBoxTop:d}}onMousedown(t){this.isMousedown=!0,this.mousedownPos={x:t.clientX,y:t.clientY};let e=this.mindMap.view.getTransformData();this.startViewPos={x:e.state.x,y:e.state.y}}onMousemove(t,e=5){if(!this.isMousedown)return;let n=t.clientX-this.mousedownPos.x,r=t.clientY-this.mousedownPos.y;this.mindMap.view.translateXTo(n*e+this.startViewPos.x),this.mindMap.view.translateYTo(r*e+this.startViewPos.y)}onMouseup(){this.isMousedown=!1}}_o.instanceName="miniMap";var Eo=_o;class Fo{constructor(t={}){this.mindMap=t.mindMap,this.lineSpacing=0,this.textSpacing=0,this.angle=0,this.text="",this.textStyle={},this.watermarkDraw=this.mindMap.svg.group().css({"pointer-events":"none","user-select":"none"}),this.maxLong=Math.sqrt(Math.pow(this.mindMap.width,2)+Math.pow(this.mindMap.height,2)),this.updateWatermark(this.mindMap.opt.watermarkConfig||{})}hasWatermark(){return!!this.text.trim()}handleConfig({text:t,lineSpacing:e,textSpacing:n,angle:r,textStyle:i}){this.text=void 0===t?"":String(t).trim(),this.lineSpacing="number"===typeof e&&e>0?e:100,this.textSpacing="number"===typeof n&&n>0?n:100,this.angle="number"===typeof r&&r>=0&&r<=90?r:30,this.textStyle=Object.assign(this.textStyle,i||{})}draw(){if(this.watermarkDraw.clear(),!this.hasWatermark())return;let t=0;while(t<this.mindMap.width)this.drawText(t),t+=this.lineSpacing/Math.sin(ui(this.angle));let e=this.lineSpacing/Math.cos(ui(this.angle))||this.lineSpacing,n=e;while(n<this.mindMap.height)this.drawText(0,n),n+=e}drawText(t,e){let n=Math.min(this.maxLong,(this.mindMap.width-t)/Math.cos(ui(this.angle))),r=new zr,i=null,A=0,o=-1;while(A<n){let t=(new Lr).text(this.text);r.add(t),t.transform({translateX:A}),this.setTextStyle(t),i=r.bbox(),-1===o&&(o=i.height),A=i.width+this.textSpacing}let s={rotate:this.angle,origin:"top left",translateX:t,translateY:o};void 0!==e&&(s.translateY=e+o),r.transform(s),this.watermarkDraw.add(r)}setTextStyle(t){Object.keys(this.textStyle).forEach(e=>{let n=this.textStyle[e];"color"===e?t.fill(n):t.css(hi(e),n)})}updateWatermark(t){this.mindMap.opt.watermarkConfig=m()(this.mindMap.opt.watermarkConfig,t),this.handleConfig(t),this.draw()}}Fo.instanceName="watermark";var Lo=Fo;class No{constructor(t){this.opt=t,this.mindMap=t.mindMap,this.onKeyup=this.onKeyup.bind(this),this.mindMap.keyCommand.addShortcut(s.KEY_DIR.LEFT,()=>{this.onKeyup(s.KEY_DIR.LEFT)}),this.mindMap.keyCommand.addShortcut(s.KEY_DIR.UP,()=>{this.onKeyup(s.KEY_DIR.UP)}),this.mindMap.keyCommand.addShortcut(s.KEY_DIR.RIGHT,()=>{this.onKeyup(s.KEY_DIR.RIGHT)}),this.mindMap.keyCommand.addShortcut(s.KEY_DIR.DOWN,()=>{this.onKeyup(s.KEY_DIR.DOWN)})}onKeyup(t){if(this.mindMap.renderer.activeNodeList.length>0)this.focus(t);else{let t=this.mindMap.renderer.root;this.mindMap.renderer.moveNodeToCenter(t),t.active()}}focus(t){let e=this.mindMap.renderer.activeNodeList[0],n=this.getNodeRect(e),r=null,i=1/0,A=(t,e)=>{let A=this.getDistance(n,t);A<i&&(r=e,i=A)};this.getFocusNodeByShadowAlgorithm({currentActiveNode:e,currentActiveNodeRect:n,dir:t,checkNodeDis:A}),r||this.getFocusNodeByAreaAlgorithm({currentActiveNode:e,currentActiveNodeRect:n,dir:t,checkNodeDis:A}),r||this.getFocusNodeBySimpleAlgorithm({currentActiveNode:e,currentActiveNodeRect:n,dir:t,checkNodeDis:A}),r&&(this.mindMap.renderer.moveNodeToCenter(r),r.active())}getFocusNodeBySimpleAlgorithm({currentActiveNode:t,currentActiveNodeRect:e,dir:n,checkNodeDis:r}){ei(this.mindMap.renderer.root,i=>{if(i===t)return;let A=this.getNodeRect(i),{left:o,top:a,right:l,bottom:c}=A,u=!1;n===s.KEY_DIR.LEFT?u=l<=e.left:n===s.KEY_DIR.RIGHT?u=o>=e.right:n===s.KEY_DIR.UP?u=c<=e.top:n===s.KEY_DIR.DOWN&&(u=a>=e.bottom),u&&r(A,i)})}getFocusNodeByShadowAlgorithm({currentActiveNode:t,currentActiveNodeRect:e,dir:n,checkNodeDis:r}){ei(this.mindMap.renderer.root,i=>{if(i===t)return;let A=this.getNodeRect(i),{left:o,top:a,right:l,bottom:c}=A,u=!1;n===s.KEY_DIR.LEFT?u=o<e.left&&a<e.bottom&&c>e.top:n===s.KEY_DIR.RIGHT?u=l>e.right&&a<e.bottom&&c>e.top:n===s.KEY_DIR.UP?u=a<e.top&&o<e.right&&l>e.left:n===s.KEY_DIR.DOWN&&(u=c>e.bottom&&o<e.right&&l>e.left),u&&r(A,i)})}getFocusNodeByAreaAlgorithm({currentActiveNode:t,currentActiveNodeRect:e,dir:n,checkNodeDis:r}){let i=(e.right+e.left)/2,A=(e.bottom+e.top)/2;ei(this.mindMap.renderer.root,e=>{if(e===t)return;let o=this.getNodeRect(e),{left:a,top:l,right:c,bottom:u}=o,h=(c+a)/2,d=(u+l)/2,f=h-i,p=d-A;if(0===f&&0===p)return;let g=!1;n===s.KEY_DIR.LEFT?g=f<=0&&f<=p&&f<=-p:n===s.KEY_DIR.RIGHT?g=f>0&&f>=-p&&f>=p:n===s.KEY_DIR.UP?g=p<=0&&p<f&&p<-f:n===s.KEY_DIR.DOWN&&(g=p>0&&-p<f&&p>f),g&&r(o,e)})}getNodeRect(t){let{scaleX:e,scaleY:n,translateX:r,translateY:i}=this.mindMap.draw.transform(),{left:A,top:o,width:s,height:a}=t;return{right:(A+s)*e+r,bottom:(o+a)*n+i,left:A*e+r,top:o*n+i}}getDistance(t,e){let n=this.getCenter(t),r=this.getCenter(e);return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))}getCenter({left:t,right:e,top:n,bottom:r}){return{x:(t+e)/2,y:(n+r)/2}}}No.instanceName="keyboardNavigation";var So=No,Uo=n("77ee");class ko{constructor(t){this.mindMap=t.mindMap}pdf(t,e){let n=new Uo["a"]("","pt","a4"),r=595,i=841,A=r/i,o=new Image;o.onload=()=>{let s,a,l=o.width,c=o.height,u=l/c;l<=r&&c<=i?(s=l,a=c):A>u?(s=u*i,a=i):(s=r,a=r/u),n.addImage(e,"PNG",(r-s)/2,(i-a)/2,s,a),n.save(t)},o.src=e}}ko.instanceName="doExportPDF";var Qo=ko;const Io=t=>{let e=String(t).split(/\s+/);return e.map(t=>{if(/^[\d.]+/.test(t)){let e=/^([\d.]+)(.*)$/.exec(t);return[Number(e[1]),e[2]]}return t})},To=(t,e)=>t*e,Oo=(t,e)=>e/t,Mo={left:0,top:0,center:50,bottom:100,right:100},Do=({backgroundSize:t,drawOpt:e,imageRatio:n,canvasWidth:r,canvasHeight:i,canvasRatio:A})=>{if(t){let o=Io(t);if("auto"===o[0]&&"auto"===o[1])return;if("cover"===o[0])return void(n>A?(e.height=i,e.width=To(n,i)):(e.width=r,e.height=Oo(n,r)));if("contain"===o[0])return void(n>A?(e.width=r,e.height=Oo(n,r)):(e.height=i,e.width=To(n,i)));let s=-1;o[0]&&(Array.isArray(o[0])?"%"===o[0][1]?(e.width=o[0][0]/100*r,s=e.width):(e.width=o[0][0],s=o[0][0]):"auto"===o[0]&&o[1]&&("%"===o[1][1]?e.width=To(n,o[1][0]/100*i):e.width=To(n,o[1][0]))),o[1]&&Array.isArray(o[1])?"%"===o[1][1]?e.height=o[1][0]/100*i:e.height=o[1][0]:-1!==s&&(e.height=Oo(n,s))}},Po=({backgroundPosition:t,drawOpt:e,imgWidth:n,imgHeight:r,canvasWidth:i,canvasHeight:A})=>{if(t){let o=Io(t);if(o=o.map(t=>"string"===typeof t&&void 0!==Mo[t]?[Mo[t],"%"]:t),Array.isArray(o[0])){if(1===o.length&&o.push([50,"%"]),"%"===o[0][1]){let t=o[0][0]/100*i,r=o[0][0]/100*n;e.x=t-r}else e.x=o[0][0];if("%"===o[1][1]){let t=o[1][0]/100*A,n=o[1][0]/100*r;e.y=t-n}else e.y=o[1][0]}}},Ho=({ctx:t,image:e,backgroundRepeat:n,drawOpt:r,imgWidth:i,imgHeight:A,canvasWidth:o,canvasHeight:s})=>{if(n){let a=r.x,l=r.y,c=Math.ceil(a/i),u=Math.ceil(l/A),h=a-c*i,d=l-u*A,f=Io(n);if("no-repeat"===f[0]||i>=o&&A>=s)return;if("repeat-x"===f[0]&&o>i){let n=h;while(n<o)Ro(t,e,{...r,x:n}),n+=i;return!0}if("repeat-y"===f[0]&&s>A){let n=d;while(n<s)Ro(t,e,{...r,y:n}),n+=A;return!0}if("repeat"===f[0]){let n=h;while(n<o){if(s>A){let i=d;while(i<s)Ro(t,e,{...r,x:n,y:i}),i+=A}n+=i}return!0}}},Ro=(t,e,n)=>{t.drawImage(e,n.sx,n.sy,n.swidth,n.sheight,n.x,n.y,n.width,n.height)},jo=(t,e,n,r,{backgroundSize:i,backgroundPosition:A,backgroundRepeat:o},s=(()=>{}))=>{let a=e/n,l=new Image;l.src=r,l.onload=()=>{let r=l.width,c=l.height,u=r/c,h={sx:0,sy:0,swidth:r,sheight:c,x:0,y:0,width:r,height:c};Do({backgroundSize:i,drawOpt:h,imageRatio:u,canvasWidth:e,canvasHeight:n,canvasRatio:a}),Po({backgroundPosition:A,drawOpt:h,imgWidth:h.width,imgHeight:h.height,imageRatio:u,canvasWidth:e,canvasHeight:n,canvasRatio:a});let d=Ho({ctx:t,image:l,backgroundRepeat:o,drawOpt:h,imgWidth:h.width,imgHeight:h.height,imageRatio:u,canvasWidth:e,canvasHeight:n,canvasRatio:a});d||Ro(t,l,h),s()},l.onerror=t=>{s(t)}};var zo=jo;let qo=null;const Ko=t=>(qo||(qo=document.createElement("div")),qo.innerHTML=t,qo.textContent),Go=t=>new Array(t).fill("#").join(""),Vo=t=>new Array(t-6).fill(" ").join("")+"*",Wo=t=>{let e="";return ti(t,null,(t,n,r,i)=>{let A=i+1,o=t.data.richText?Ko(t.data.text):t.data.text;e+=A<=6?Go(A):Vo(A),e+=" "+o;let s=t.data.generalization;if(s&&s.text){let t=s.richText?Ko(s.text):s.text;e+=`[${t}]`}e+="\n\n",t.data.note&&(e+=t.data.note+"\n\n")},()=>{},!0),e};class Yo{constructor(t){this.mindMap=t.mindMap,this.exportPadding=this.mindMap.opt.exportPadding}async export(t,e=!0,n="思维导图",...r){if(this[t]){let i=await this[t](n,...r);return e&&"pdf"!==t&&ai(i,n+"."+t),i}return null}async getSvgData(){let{exportPaddingX:t,exportPaddingY:e}=this.mindMap.opt,{svg:n,svgHTML:r}=this.mindMap.getSvgData({paddingX:t,paddingY:e}),i=n.find("image"),A=i.map(async t=>{let e=t.attr("href")||t.attr("xlink:href"),n=await si(e);t.attr("href",n)});return await Promise.all(A),i.length>0&&(r=n.svg()),{node:n,str:r}}svgToPng(t,e){return new Promise((n,r)=>{const i=new Image;i.setAttribute("crossOrigin","anonymous"),i.onload=async()=>{try{let t=document.createElement("canvas");t.width=i.width+2*this.exportPadding,t.height=i.height+2*this.exportPadding;let r=t.getContext("2d");e||await this.drawBackgroundToCanvas(r,t.width,t.height),r.drawImage(i,0,0,i.width,i.height,this.exportPadding,this.exportPadding,i.width,i.height),n(t.toDataURL())}catch(t){r(t)}},i.onerror=t=>{r(t)},i.src=t})}drawBackgroundToCanvas(t,e,n){return new Promise((r,i)=>{let{backgroundColor:A="#fff",backgroundImage:o,backgroundRepeat:s="no-repeat",backgroundPosition:a="center center",backgroundSize:l="cover"}=this.mindMap.themeConfig;t.save(),t.rect(0,0,e,n),t.fillStyle=A,t.fill(),t.restore(),o&&"none"!==o?(t.save(),zo(t,e,n,o,{backgroundRepeat:s,backgroundPosition:a,backgroundSize:l},e=>{e?i(e):r(),t.restore()})):r()})}drawBackgroundToSvg(t){return new Promise(async e=>{let{backgroundColor:n="#fff",backgroundImage:r,backgroundRepeat:i="repeat"}=this.mindMap.themeConfig;if(t.css("background-color",n),r&&"none"!==r){let n=await si(r);t.css("background-image",`url(${n})`),t.css("background-repeat",i),e()}else e()})}async png(t,e=!1){let{node:n,str:r}=await this.getSvgData();if(this.mindMap.richText){let t=await this.mindMap.richText.handleExportPng(n.node),r=await this.svgToPng(t,e);return r}let i=new Blob([r],{type:"image/svg+xml"}),A=await vi(i),o=await this.svgToPng(A,e);return o}async pdf(t){if(!this.mindMap.doExportPDF)throw new Error("请注册ExportPDF插件");let e=await this.png();this.mindMap.doExportPDF.pdf(t,e)}async svg(t,e){let{node:n}=await this.getSvgData();if(this.mindMap.richText&&e){let t=n.find("foreignObject");t.length>0&&t[0].add(Jr(`<style>${e}</style>`))}n.first().before(Jr(`<title>${t}</title>`)),await this.drawBackgroundToSvg(n);let r=n.svg(),i=new Blob([r],{type:"image/svg+xml"}),A=await vi(i);return A}async json(t,e=!0){let n=this.mindMap.getData(e),r=JSON.stringify(n),i=new Blob([r]),A=await vi(i);return A}async smm(t,e){let n=await this.json(t,e);return n}async md(){let t=this.mindMap.getData(),e=Wo(t),n=new Blob([e]),r=await vi(n);return r}}Yo.instanceName="doExport";var Xo=Yo;class Jo extends fA{constructor({mindMap:t}){super(t.renderer),this.mindMap=t,this.reset(),this.bindEvent()}reset(){this.node=null,this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.drawTransform=null,this.clone=null,this.line=null,this.placeholder=null,this.offsetX=0,this.offsetY=0,this.cloneNodeLeft=0,this.cloneNodeTop=0,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.checkDragOffset=10}bindEvent(){this.checkOverlapNode=li(this.checkOverlapNode,300,this),this.mindMap.on("node_mousedown",(t,e)=>{if(this.mindMap.opt.readonly||t.isGeneralization)return;if(1!==e.which||t.isRoot)return;e.preventDefault(),this.drawTransform=this.mindMap.draw.transform();let{scaleX:n,scaleY:r,translateX:i,translateY:A}=this.drawTransform,{x:o,y:s}=this.mindMap.toPos(e.clientX,e.clientY);this.offsetX=o-(t.left*n+i),this.offsetY=s-(t.top*r+A),this.node=t,this.isMousedown=!0,this.mouseDownX=o,this.mouseDownY=s}),this.mindMap.on("mousemove",t=>{if(this.mindMap.opt.readonly)return;if(!this.isMousedown)return;this.mindMap.emit("node_dragging",this.node),t.preventDefault();let{x:e,y:n}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=n,Math.abs(e-this.mouseDownX)<=this.checkDragOffset&&Math.abs(n-this.mouseDownY)<=this.checkDragOffset&&!this.node.isDrag||(this.mindMap.renderer.clearAllActive(),this.onMove(e,n))}),this.onMouseup=this.onMouseup.bind(this),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("mouseup",this.onMouseup)}onMouseup(t){if(!this.isMousedown)return;this.isMousedown=!1;let e=this.node.isDrag;if(this.node.isDrag=!1,this.node.show(),this.removeCloneNode(),this.overlapNode)this.mindMap.renderer.setNodeActive(this.overlapNode,!1),this.mindMap.execCommand("MOVE_NODE_TO",this.node,this.overlapNode);else if(this.prevNode)this.mindMap.renderer.setNodeActive(this.prevNode,!1),this.mindMap.execCommand("INSERT_AFTER",this.node,this.prevNode);else if(this.nextNode)this.mindMap.renderer.setNodeActive(this.nextNode,!1),this.mindMap.execCommand("INSERT_BEFORE",this.node,this.nextNode);else if(e&&this.mindMap.opt.enableFreeDrag){let{x:e,y:n}=this.mindMap.toPos(t.clientX-this.offsetX,t.clientY-this.offsetY),{scaleX:r,scaleY:i,translateX:A,translateY:o}=this.drawTransform;e=(e-A)/r,n=(n-o)/i,this.node.left=e,this.node.top=n,this.node.customLeft=e,this.node.customTop=n,this.mindMap.execCommand("SET_NODE_CUSTOM_POSITION",this.node,e,n),this.mindMap.render()}this.reset(),this.mindMap.emit("node_dragend")}createCloneNode(){this.clone||(this.clone=this.node.group.clone(),this.clone.opacity(.5),this.clone.css("z-index",99999),this.node.isDrag=!0,this.node.hide(),this.line=this.draw.path(),this.line.opacity(.5),this.node.styleLine(this.line,this.node),this.placeholder=this.draw.rect().fill({color:this.node.style.merge("lineColor",!0)}),this.mindMap.draw.add(this.clone))}removeCloneNode(){this.clone&&(this.clone.remove(),this.line.remove(),this.placeholder.remove())}onMove(t,e){if(!this.isMousedown)return;this.createCloneNode();let{scaleX:n,scaleY:r,translateX:i,translateY:A}=this.drawTransform;this.cloneNodeLeft=t-this.offsetX,this.cloneNodeTop=e-this.offsetY,t=(this.cloneNodeLeft-i)/n,e=(this.cloneNodeTop-A)/r;let o=this.clone.transform();this.clone.translate(t-o.translateX,e-o.translateY);let s=this.node.parent;this.line.plot(this.quadraticCurvePath(s.left+s.width/2,s.top+s.height/2,t+this.node.width/2,e+this.node.height/2)),this.checkOverlapNode()}checkOverlapNode(){if(!this.drawTransform)return;let t=this.mouseMoveX,e=this.mouseMoveY;this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.placeholder.size(0,0),ei(this.mindMap.renderer.root,n=>{if(n.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(n,!1),n===this.node||this.node.isParent(n))return;if(this.overlapNode||this.prevNode&&this.nextNode)return;let r=this.getNodeRect(n),i=r.height/4,A=n.parent?n.parent.children.filter(t=>t!==this.node):[],o=A.findIndex(t=>t===n),s=null,a=null;-1!==o&&(o-1>=0&&(s=A[o-1]),o+1<=A.length-1&&(a=A[o+1]));let l=0;if(s){let t=this.getNodeRect(s);l=r.top-t.bottom,l=l>=10?l/2:0}else l=10;let c=0;if(a){let t=this.getNodeRect(a);c=t.top-r.bottom,c=c>=10?c/2:0}else c=10;if(r.left<=t&&r.right>=t){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!n.isRoot){let t=c>0?e>r.bottom&&e<=r.bottom+c:e>=r.bottom-i&&e<=r.bottom,A=l>0?e<r.top&&e>=r.top-l:e>=r.top&&e<=r.top+i;if(t){this.prevNode=n;let t=c>0?c:5;this.placeholder.size(n.width,t).move(r.originLeft,r.originBottom)}else if(A){this.nextNode=n;let t=l>0?l:5;this.placeholder.size(n.width,t).move(r.originLeft,r.originTop-t)}}this.overlapNode||this.prevNode||this.nextNode||r.top+(l>0?0:i)<=e&&r.bottom-(c>0?0:i)>=e&&(this.overlapNode=n)}}),this.overlapNode&&this.mindMap.renderer.setNodeActive(this.overlapNode,!0)}getNodeRect(t){let{scaleX:e,scaleY:n,translateX:r,translateY:i}=this.drawTransform,{left:A,top:o,width:s,height:a}=t,l=A,c=o,u=o+a,h=(A+s)*e+r,d=(o+a)*n+i;return A=A*e+r,o=o*n+i,{width:s,height:a,left:A,top:o,right:h,bottom:d,originLeft:l,originTop:c,originBottom:u}}}Jo.instanceName="drag";var Zo=Jo;class $o{constructor({mindMap:t}){this.mindMap=t,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.bindEvent()}bindEvent(){this.checkInNodes=li(this.checkInNodes,300,this),this.mindMap.on("mousedown",t=>{if(this.mindMap.opt.readonly)return;let{useLeftKeySelectionRightKeyDrag:e}=this.mindMap.opt;if(!t.ctrlKey&&(e?1!==t.which:3!==t.which))return;t.preventDefault(),this.isMousedown=!0;let{x:n,y:r}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseDownX=n,this.mouseDownY=r,this.createRect(n,r)}),this.mindMap.on("mousemove",t=>{if(this.mindMap.opt.readonly)return;if(!this.isMousedown)return;let{x:e,y:n}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseMoveX=e,this.mouseMoveY=n,Math.abs(e-this.mouseDownX)<=10&&Math.abs(n-this.mouseDownY)<=10||(clearTimeout(this.autoMoveTimer),this.onMove(e,n))}),this.mindMap.on("mouseup",()=>{this.mindMap.opt.readonly||this.isMousedown&&(this.mindMap.emit("node_active",null,this.mindMap.renderer.activeNodeList),clearTimeout(this.autoMoveTimer),this.isMousedown=!1,this.rect&&this.rect.remove(),this.rect=null)})}onMove(t,e){this.rect.plot([[this.mouseDownX,this.mouseDownY],[this.mouseMoveX,this.mouseDownY],[this.mouseMoveX,this.mouseMoveY],[this.mouseDownX,this.mouseMoveY]]),this.checkInNodes();let n=this.mindMap.opt.selectTranslateStep,r=this.mindMap.opt.selectTranslateLimit,i=0;t<=this.mindMap.elRect.left+r&&(this.mouseDownX+=n,this.mindMap.view.translateX(n),i++),t>=this.mindMap.elRect.right-r&&(this.mouseDownX-=n,this.mindMap.view.translateX(-n),i++),e<=this.mindMap.elRect.top+r&&(this.mouseDownY+=n,this.mindMap.view.translateY(n),i++),e>=this.mindMap.elRect.bottom-r&&(this.mouseDownY-=n,this.mindMap.view.translateY(-n),i++),i>0&&this.startAutoMove(t,e)}startAutoMove(t,e){this.autoMoveTimer=setTimeout(()=>{this.onMove(t,e)},20)}createRect(t,e){this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[t,e]])}checkInNodes(){let{scaleX:t,scaleY:e,translateX:n,translateY:r}=this.mindMap.draw.transform(),i=Math.min(this.mouseDownX,this.mouseMoveX),A=Math.min(this.mouseDownY,this.mouseMoveY),o=Math.max(this.mouseDownX,this.mouseMoveX),s=Math.max(this.mouseDownY,this.mouseMoveY);ei(this.mindMap.renderer.root,a=>{let{left:l,top:c,width:u,height:h}=a,d=(l+u)*t+n,f=(c+h)*e+r;if(l=l*t+n,c=c*e+r,(l>=i&&l<=o||d>=i&&d<=o)&&(c>=A&&c<=s||f>=A&&f<=s)){if(a.nodeData.data.isActive)return;this.mindMap.renderer.setNodeActive(a,!0),this.mindMap.renderer.addActiveNode(a)}else if(a.nodeData.data.isActive){if(!a.nodeData.data.isActive)return;this.mindMap.renderer.setNodeActive(a,!1),this.mindMap.renderer.removeActiveNode(a)}})}}$o.instanceName="select";var ts=$o;const es="undefined"!==typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var ns={randomUUID:es};let rs;const is=new Uint8Array(16);function As(){if(!rs&&(rs="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!rs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rs(is)}const os=[];for(let su=0;su<256;++su)os.push((su+256).toString(16).slice(1));function ss(t,e=0){return(os[t[e+0]]+os[t[e+1]]+os[t[e+2]]+os[t[e+3]]+"-"+os[t[e+4]]+os[t[e+5]]+"-"+os[t[e+6]]+os[t[e+7]]+"-"+os[t[e+8]]+os[t[e+9]]+"-"+os[t[e+10]]+os[t[e+11]]+os[t[e+12]]+os[t[e+13]]+os[t[e+14]]+os[t[e+15]]).toLowerCase()}function as(t,e,n){if(ns.randomUUID&&!e&&!t)return ns.randomUUID();t=t||{};const r=t.random||(t.rng||As)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return ss(r)}var ls=as;const cs=(t,e)=>t.nodeData.data.associativeLineTargets.findIndex(t=>t===e.nodeData.data.id),us=(t,e,n,r)=>{let i=t+(n-t)/2,A=e,o=i,s=r;return Math.abs(t-n)<=5&&(i=t+(r-e)/2,o=i),[{x:i,y:A},{x:o,y:s}]},hs=(t,e,n,r)=>`M ${t.x},${t.y} C ${n.x},${n.y} ${r.x},${r.y} ${e.x},${e.y}`,ds=t=>{let{left:e,top:n,width:r,height:i}=t;return{right:e+r,bottom:n+i,left:e,top:n}},fs=(t,e,n,r)=>{let i=us(t,e,n,r);return hs({x:t,y:e},{x:n,y:r},i[0],i[1])},ps=(t,e="right")=>{let{left:n,top:r,width:i,height:A}=t;switch(e){case"left":return{x:n,y:r+A/2};case"right":return{x:n+i,y:r+A/2};case"top":return{x:n+i/2,y:r};case"bottom":return{x:n+i/2,y:r+A};default:break}},gs=(t,e)=>{let n=ds(t),r=(n.right+n.left)/2,i=(n.bottom+n.top)/2,A=ds(e),o=(A.right+A.left)/2,s=(A.bottom+A.top)/2,a=o-r,l=s-i;if(0===a&&0===l)return;let c="",u="";return a<=0&&a<=l&&a<=-l?(c="left",u="right"):a>0&&a>=-l&&a>=l?(c="right",u="left"):l<=0&&l<a&&l<-a?(c="top",u="bottom"):l>0&&-l<a&&l>a&&(c="bottom",u="top"),[ps(t,c),ps(e,u)]},ms=(t,e,n,r)=>{let i=cs(n,r),A=[],o=n.nodeData.data.associativeLineTargetControlOffsets;if(o&&o[i]){let n=o[i];A=[{x:t.x+n[0].x,y:t.y+n[0].y},{x:e.x+n[1].x,y:e.y+n[1].y}]}else A=us(t.x,t.y,e.x,e.y);return{path:hs(t,e,A[0],A[1]),controlPoints:A}},ws=(t,e)=>{let n=us(t.x,t.y,e.x,e.y);return[{x:n[0].x-t.x,y:n[0].y-t.y},{x:n[1].x-e.x,y:n[1].y-e.y}]};function ys(){let{associativeLineActiveColor:t}=this.mindMap.themeConfig;this.controlLine1=this.draw.line().stroke({color:t,width:2}),this.controlLine2=this.draw.line().stroke({color:t,width:2}),this.controlPoint1=this.createOneControlNode("controlPoint1"),this.controlPoint2=this.createOneControlNode("controlPoint2")}function vs(t){let{associativeLineActiveColor:e}=this.mindMap.themeConfig;return this.draw.circle(this.controlPointDiameter).stroke({color:e}).fill({color:"#fff"}).click(t=>{t.stopPropagation()}).mousedown(e=>{this.onControlPointMousedown(e,t)})}function bs(t,e){t.stopPropagation(),this.isControlPointMousedown=!0,this.mousedownControlPointKey=e}function Bs(t){if(!this.isControlPointMousedown||!this.mousedownControlPointKey||!this[this.mousedownControlPointKey])return;t.stopPropagation(),t.preventDefault();let e=this.controlPointDiameter/2,{x:n,y:r}=this.getTransformedEventPos(t);this.controlPointMousemoveState.pos={x:n,y:r},this[this.mousedownControlPointKey].x(n-e).y(r-e);let[i,A,o,s,a]=this.activeLine,[l,c]=gs(s,a);this.controlPointMousemoveState.startPoint=l,this.controlPointMousemoveState.endPoint=c;let u=cs(s,a);this.controlPointMousemoveState.targetIndex=u;let h=[],d=s.nodeData.data.associativeLineTargetControlOffsets;h=d?d[u]:ws(l,c);let f=null,p=null;"controlPoint1"===this.mousedownControlPointKey?(f={x:n,y:r},p={x:c.x+h[1].x,y:c.y+h[1].y},this.controlLine1.plot(l.x,l.y,f.x,f.y)):(f={x:l.x+h[0].x,y:l.y+h[0].y},p={x:n,y:r},this.controlLine2.plot(c.x,c.y,p.x,p.y));let g=hs(l,c,f,p);i.plot(g),A.plot(g),this.updateTextPos(i,o),this.updateTextEditBoxPos(o)}function Cs(t){if(!this.isControlPointMousedown)return;t.stopPropagation(),t.preventDefault();let{pos:e,startPoint:n,endPoint:r,targetIndex:i}=this.controlPointMousemoveState,[,,,A]=this.activeLine,o=[],s=A.nodeData.data.associativeLineTargetControlOffsets;s?o=s:o[i]=ws(n,r);let a=null,l=null;"controlPoint1"===this.mousedownControlPointKey?(a={x:e.x-n.x,y:e.y-n.y},l=o[i][1]):(a=o[i][0],l={x:e.x-r.x,y:e.y-r.y}),o[i]=[a,l],this.mindMap.execCommand("SET_NODE_DATA",A,{associativeLineTargetControlOffsets:o}),setTimeout(()=>{this.resetControlPoint()},0)}function xs(){this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""}}function _s(t,e,n,r){this.controlLine1||this.createControlNodes();let i=this.controlPointDiameter/2;this.controlLine1.plot(t.x,t.y,n.x,n.y),this.controlLine2.plot(e.x,e.y,r.x,r.y),this.controlPoint1.x(n.x-i).y(n.y-i),this.controlPoint2.x(r.x-i).y(r.y-i)}function Es(){this.controlLine1&&([this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.remove()}),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null)}function Fs(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.hide()})}function Ls(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(t=>{t.show()})}var Ns={createControlNodes:ys,createOneControlNode:vs,onControlPointMousedown:bs,onControlPointMousemove:Bs,onControlPointMouseup:Cs,resetControlPoint:xs,renderControls:_s,removeControls:Es,hideControls:Fs,showControls:Ls};function Ss(t){let e=this.draw.group();const n=()=>{this.activeLine&&this.activeLine[3]===t.node&&this.activeLine[4]===t.toNode||this.setActiveLine({...t,text:e})};return e.click(t=>{t.stopPropagation(),n()}),e.on("dblclick",t=>{t.stopPropagation(),n(),this.activeLine&&this.showEditTextBox(e)}),e}function Us(t){this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",t=>{t.stopPropagation()}),this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),document.body.appendChild(this.textEditNode));let{associativeLineTextFontSize:e,associativeLineTextFontFamily:n,associativeLineTextLineHeight:r}=this.mindMap.themeConfig,i=this.mindMap.view.scale,[,,,A,o]=this.activeLine,s=(this.getText(A,o)||this.mindMap.opt.defaultAssociativeLineText).split(/\n/gim);this.textEditNode.style.fontFamily=n,this.textEditNode.style.fontSize=e*i+"px",this.textEditNode.style.lineHeight=s.length>1?r:"normal",this.textEditNode.style.zIndex=this.mindMap.opt.nodeTextEditZIndex,this.textEditNode.innerHTML=s.join("<br>"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(t),this.showTextEdit=!0}function ks(){this.hideEditTextBox()}function Qs(t){let e=t.node.getBoundingClientRect();this.textEditNode.style.minWidth=e.width+10+"px",this.textEditNode.style.minHeight=e.height+6+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px"}function Is(){if(!this.showTextEdit)return;let[t,,e,n,r]=this.activeLine,i=ri(this.textEditNode.innerHTML);this.mindMap.execCommand("SET_NODE_DATA",n,{associativeLineText:{...n.nodeData.data.associativeLineText||{},[r.nodeData.data.id]:i}}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.showTextEdit=!1,this.renderText(i,t,e),this.mindMap.emit("hide_text_edit")}function Ts(t,e){let n=t.nodeData.data.associativeLineText;return n&&n[e.nodeData.data.id]||""}function Os(t,e,n){if(!t)return;let{associativeLineTextFontSize:r,associativeLineTextLineHeight:i}=this.mindMap.themeConfig;n.clear();let A=t.split(/\n/gim);A.forEach((t,e)=>{let A=(new Lr).text(t);A.y(r*i*e),this.styleText(A),n.add(A)}),Ds(e,n)}function Ms(t){let{associativeLineTextColor:e,associativeLineTextFontSize:n,associativeLineTextFontFamily:r}=this.mindMap.themeConfig;t.fill({color:e}).css({"font-family":r,"font-size":n})}function Ds(t,e){let n=t.length(),r=t.pointAt(n/2),{width:i,height:A}=e.bbox();e.x(r.x-i/2),e.y(r.y-A/2)}var Ps={getText:Ts,createText:Ss,styleText:Ms,onScale:ks,showEditTextBox:Us,hideEditTextBox:Is,updateTextEditBoxPos:Qs,renderText:Os,updateTextPos:Ds};class Hs{constructor(t={}){this.mindMap=t.mindMap,this.draw=this.mindMap.draw,this.lineList=[],this.activeLine=null,this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine=null,this.overlapNode=null,this.isNodeDragging=!1,this.markerPath=null,this.marker=this.createMarker(),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null,this.controlPointDiameter=10,this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""},this.checkOverlapNode=li(this.checkOverlapNode,100,this),Object.keys(Ns).forEach(t=>{this[t]=Ns[t].bind(this)}),Object.keys(Ps).forEach(t=>{this[t]=Ps[t].bind(this)}),this.bindEvent()}bindEvent(){this.renderAllLines=this.renderAllLines.bind(this),this.mindMap.on("node_tree_render_end",this.renderAllLines),this.mindMap.on("data_change",this.renderAllLines),this.mindMap.on("draw_click",()=>{this.isControlPointMousedown||this.clearActiveLine()}),this.mindMap.on("node_click",t=>{this.isCreatingLine?this.completeCreateLine(t):this.clearActiveLine()}),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeLine.bind(this)),this.mindMap.command.add("ADD_ASSOCIATIVE_LINE",this.addLine.bind(this)),this.mindMap.on("mousemove",this.onMousemove.bind(this)),this.mindMap.on("node_dragging",this.onNodeDragging.bind(this)),this.mindMap.on("node_dragend",this.onNodeDragend.bind(this)),this.mindMap.on("mouseup",this.onControlPointMouseup.bind(this)),this.mindMap.on("scale",this.onScale)}createMarker(){return this.draw.marker(20,20,t=>{t.ref(2,5),t.size(10,10),t.attr("orient","auto-start-reverse"),this.markerPath=t.path("M0,0 L2,5 L0,10 L10,5 Z")})}renderAllLines(){this.removeAllLines(),this.removeControls(),this.clearActiveLine();let t=this.mindMap.renderer.root;if(!t)return;let e=new Map,n=new Map;ti(t,null,t=>{if(!t)return;let r=t.nodeData.data;r.associativeLineTargets&&r.associativeLineTargets.length>0&&n.set(t,r.associativeLineTargets),r.id&&e.set(r.id,t)},()=>{},!0,0),n.forEach((t,n)=>{t.forEach(t=>{let r=e.get(t);if(!n||!r)return;let[i,A]=gs(n,r);this.drawLine(i,A,n,r)})})}drawLine(t,e,n,r){let{associativeLineWidth:i,associativeLineColor:A,associativeLineActiveWidth:o,associativeLineActiveColor:s}=this.mindMap.themeConfig;this.markerPath.stroke({color:A}).fill({color:A});let{path:a,controlPoints:l}=ms(t,e,n,r),c=this.draw.path();c.stroke({width:i,color:A,dasharray:[6,4]}).fill({color:"none"}),c.plot(a),c.marker("end",this.marker);let u=this.draw.path();u.stroke({width:o,color:"transparent"}).fill({color:"none"}),u.plot(a);let h=this.createText({path:c,clickPath:u,node:n,toNode:r,startPoint:t,endPoint:e,controlPoints:l});u.click(i=>{i.stopPropagation(),this.setActiveLine({path:c,clickPath:u,text:h,node:n,toNode:r,startPoint:t,endPoint:e,controlPoints:l})}),this.renderText(this.getText(n,r),c,h),this.lineList.push([c,u,h,n,r])}setActiveLine({path:t,clickPath:e,text:n,node:r,toNode:i,startPoint:A,endPoint:o,controlPoints:s}){let{associativeLineActiveColor:a}=this.mindMap.themeConfig;this.mindMap.renderer.activeNodeList.length>0?this.clearActiveNodes():(this.clearActiveLine(),this.activeLine=[t,e,n,r,i],e.stroke({color:a}),this.getText(r,i)||this.renderText(this.mindMap.opt.defaultAssociativeLineText,t,n),this.renderControls(A,o,s[0],s[1]),this.mindMap.emit("associative_line_click",t,e,r,i))}removeAllLines(){this.lineList.forEach(t=>{t[0].remove(),t[1].remove(),t[2].remove()}),this.lineList=[]}createLineFromActiveNode(){if(this.mindMap.renderer.activeNodeList.length<=0)return;let t=this.mindMap.renderer.activeNodeList[0];this.createLine(t)}createLine(t){let{associativeLineWidth:e,associativeLineColor:n}=this.mindMap.themeConfig;!this.isCreatingLine&&t&&(this.isCreatingLine=!0,this.creatingStartNode=t,this.creatingLine=this.draw.path(),this.creatingLine.stroke({width:e,color:n,dasharray:[6,4]}).fill({color:"none"}),this.creatingLine.marker("end",this.marker))}onMousemove(t){this.onControlPointMousemove(t),this.updateCreatingLine(t)}updateCreatingLine(t){if(!this.isCreatingLine)return;let{x:e,y:n}=this.getTransformedEventPos(t),r=ps(this.creatingStartNode),i=e>r.x?-10:10,A=fs(r.x,r.y,e+i,n);this.creatingLine.plot(A),this.checkOverlapNode(e,n)}getTransformedEventPos(t){let{x:e,y:n}=this.mindMap.toPos(t.clientX,t.clientY),{scaleX:r,scaleY:i,translateX:A,translateY:o}=this.mindMap.draw.transform();return{x:(e-A)/r,y:(n-o)/i}}checkOverlapNode(t,e){this.overlapNode=null,ei(this.mindMap.renderer.root,n=>{if(n.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(n,!1),n===this.creatingStartNode||this.overlapNode)return;let{left:r,top:i,width:A,height:o}=n,s=r+A,a=i+o;t>=r&&t<=s&&e>=i&&e<=a&&(this.overlapNode=n)}),this.overlapNode&&!this.overlapNode.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(this.overlapNode,!0)}completeCreateLine(t){this.creatingStartNode!==t&&(this.addLine(this.creatingStartNode,t),this.overlapNode&&this.overlapNode.nodeData.data.isActive&&this.mindMap.renderer.setNodeActive(this.overlapNode,!1),this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine.remove(),this.creatingLine=null,this.overlapNode=null)}addLine(t,e){if(!t||!e)return;let n=e.nodeData.data.id;n||(n=ls(),this.mindMap.execCommand("SET_NODE_DATA",e,{id:n}));let r=t.nodeData.data.associativeLineTargets||[];r.push(n);let[i,A]=gs(t,e),o=us(i.x,i.y,A.x,A.y),s=t.nodeData.data.associativeLineTargetControlOffsets||[];s[r.length-1]=[{x:o[0].x-i.x,y:o[0].y-i.y},{x:o[1].x-A.x,y:o[1].y-A.y}],this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:r,associativeLineTargetControlOffsets:s})}removeLine(){if(!this.activeLine)return;let[,,,t,e]=this.activeLine;this.removeControls();let{associativeLineTargets:n,associativeLineTargetControlOffsets:r,associativeLineText:i}=t.nodeData.data,A=cs(t,e),o={};i&&Object.keys(i).forEach(t=>{t!==e.nodeData.data.id&&(o[t]=i[t])}),this.mindMap.execCommand("SET_NODE_DATA",t,{associativeLineTargets:n.filter((t,e)=>e!==A),associativeLineTargetControlOffsets:r?r.filter((t,e)=>e!==A):[],associativeLineText:o})}clearActiveNodes(){this.mindMap.renderer.activeNodeList.length>0&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}clearActiveLine(){if(this.activeLine){let[,t,e,n,r]=this.activeLine;t.stroke({color:"transparent"}),this.hideEditTextBox(),this.getText(n,r)||e.clear(),this.activeLine=null,this.removeControls()}}onNodeDragging(){this.isNodeDragging||(this.isNodeDragging=!0,this.lineList.forEach(t=>{t[0].hide(),t[1].hide(),t[2].hide()}),this.hideControls())}onNodeDragend(){this.isNodeDragging&&(this.lineList.forEach(t=>{t[0].show(),t[1].show(),t[2].show()}),this.showControls(),this.isNodeDragging=!1)}}Hs.instanceName="associativeLine";var Rs=Hs,js=n("4f98"),zs=n.n(js),qs=(n("5ba9"),n("c444")),Ks=n.n(qs);let Gs=!1,Vs=["宋体, SimSun, Songti SC","微软雅黑, Microsoft YaHei","楷体, 楷体_GB2312, SimKai, STKaiti","黑体, SimHei, Heiti SC","隶书, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],Ws=new Array(100).fill(0).map((t,e)=>e+"px");class Ys{constructor({mindMap:t,pluginOpt:e}){this.mindMap=t,this.pluginOpt=e,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.node=null,this.styleEl=null,this.cacheEditingText="",this.lostStyle=!1,this.isCompositing=!1,this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.mindMap.opt.data&&(this.mindMap.opt.data=this.handleSetData(this.mindMap.opt.data))}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionend",this.onCompositionEnd)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionend",this.onCompositionEnd)}appendCss(){let t="\n .ql-editor {\n overflow: hidden;\n padding: 0;\n height: auto;\n line-height: normal;\n -webkit-user-select: text;\n }\n \n .ql-container {\n height: auto;\n font-size: inherit;\n }\n\n .ql-container.ql-snow {\n border: none;\n }\n\n .smm-richtext-node-wrap p {\n font-family: auto;\n }\n\n .smm-richtext-node-edit-wrap p {\n font-family: auto;\n }\n ";this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=t,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&(Vs=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(Ws=this.pluginOpt.fontSizeList)}extendQuill(){if(Gs)return;Gs=!0;const t=zs.a.import("attributors/class/font");t.whitelist=Vs,zs.a.register(t,!0);const e=zs.a.import("attributors/style/font");e.whitelist=Vs,zs.a.register(e,!0);const n=zs.a.import("attributors/class/size");n.whitelist=Ws,zs.a.register(n,!0);const r=zs.a.import("attributors/style/size");r.whitelist=Ws,zs.a.register(r,!0)}showEditText(t,e){if(this.showTextEdit)return;this.node=t,e||(e=t._textData.node.node.getBoundingClientRect()),this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let n=t._textData.node,r=n.attr("data-width"),i=n.attr("data-height"),A=e.width/r,o=e.height/i;const s=6,a=4;this.textEditNode||(this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`position:fixed;box-sizing: border-box;box-shadow: 0 0 20px rgba(0,0,0,.5);outline: none; word-break: break-all;padding: ${a}px ${s}px;`,this.textEditNode.addEventListener("click",t=>{t.stopPropagation()}),document.body.appendChild(this.textEditNode));let l=t.style.merge("fillColor");if(this.textEditNode.style.marginLeft=`-${s*A}px`,this.textEditNode.style.marginTop=`-${a*o}px`,this.textEditNode.style.zIndex=this.mindMap.opt.nodeTextEditZIndex,this.textEditNode.style.backgroundColor="transparent"===l?"#fff":l,this.textEditNode.style.minWidth=r+2*s+"px",this.textEditNode.style.minHeight=i+"px",this.textEditNode.style.left=e.left+"px",this.textEditNode.style.top=e.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=this.mindMap.opt.textAutoWrapWidth+2*s+"px",this.textEditNode.style.transform=`scale(${A}, ${o})`,this.textEditNode.style.transformOrigin="left top",t.nodeData.data.richText)this.textEditNode.innerHTML=this.cacheEditingText||t.nodeData.data.text;else{let e=t.nodeData.data.text.split(/\n/gim).join("<br>"),n=`<p>${e}</p>`;this.textEditNode.innerHTML=this.cacheEditingText||n}this.initQuillEditor(),document.querySelector(".ql-editor").style.minHeight=i+"px",this.showTextEdit=!0,this.focus(),t.nodeData.data.richText||this.setTextStyleIfNotRichText(t),this.cacheEditingText=""}setTextStyleIfNotRichText(t){let e={font:t.style.merge("fontFamily"),color:t.style.merge("color"),italic:"italic"===t.style.merge("fontStyle"),bold:"bold"===t.style.merge("fontWeight"),size:t.style.merge("fontSize")+"px",underline:"underline"===t.style.merge("textDecoration"),strike:"line-through"===t.style.merge("textDecoration")};this.formatAllText(e)}getEditText(){let t=this.quill.container.firstChild.innerHTML;return t.replace(/<p><br><\/p>$/,"")}hideEditText(t){if(!this.showTextEdit)return;let e=this.getEditText(),n=t&&t.length>0?t:this.mindMap.renderer.activeNodeList;n.forEach(t=>{this.mindMap.execCommand("SET_NODE_TEXT",t,e,!0),t.isGeneralization&&t.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,n),this.textEditNode.style.display="none",this.showTextEdit=!1,this.mindMap.emit("rich_text_selection_change",!1),this.node=null}initQuillEditor(){this.quill=new zs.a(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:13,handler:function(){}}}}},theme:"snow"}),this.quill.on("selection-change",t=>{if(this.lastRange=this.range,this.range=null,t){let e=this.quill.getBounds(t.index,t.length),n=this.textEditNode.getBoundingClientRect(),r={left:e.left+n.left,top:e.top+n.top,right:e.right+n.left,bottom:e.bottom+n.top,width:e.width},i=this.quill.getFormat(t.index,t.length),A=!1;0==t.length?A=!1:(this.range=t,A=!0),this.mindMap.emit("rich_text_selection_change",A,r,i)}}),this.quill.on("text-change",()=>{let t=this.quill.getContents(),e=t.ops.length;e<=0||1===e&&"\n"===t.ops[0].insert?(this.lostStyle=!0,this.syncFormatToNodeConfig(null,!0)):this.lostStyle&&!this.isCompositing&&(this.setTextStyleIfNotRichText(this.node),this.lostStyle=!1)})}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1,this.setTextStyleIfNotRichText(this.node))}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(){let t=this.quill.getLength();this.quill.setSelection(t,t)}formatText(t={},e=!1){if(!this.range&&!this.lastRange)return;this.syncFormatToNodeConfig(t,e);let n=!this.range,r=n?this.lastRange:this.range;e?this.quill.removeFormat(r.index,r.length):this.quill.formatText(r.index,r.length,t),n&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(t,e={}){t&&(this.syncFormatToNodeConfig(e),this.quill.formatText(t.index,t.length,e))}formatAllText(t={}){this.syncFormatToNodeConfig(t),this.quill.formatText(0,this.quill.getLength(),t)}syncFormatToNodeConfig(t,e){if(this.node)if(e)["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color"].forEach(t=>{delete this.node.nodeData.data[t]});else{let e=this.richTextStyleToNormalStyle(t);this.mindMap.renderer.setNodeData(this.node,e)}}normalStyleToRichTextStyle(t){let e={};return Object.keys(t).forEach(n=>{let r=t[n];switch(n){case"fontFamily":e.font=r;break;case"fontSize":e.size=r+"px";break;case"fontWeight":e.bold="bold"===r;break;case"fontStyle":e.italic="italic"===r;break;case"textDecoration":e.underline="underline"===r,e.strike="line-through"===r;break;case"color":e.color=r;break;default:break}}),e}richTextStyleToNormalStyle(t){let e={};return Object.keys(t).forEach(n=>{let r=t[n];switch(n){case"font":e.fontFamily=r;break;case"size":e.fontSize=parseFloat(r);break;case"bold":e.fontWeight=r?"bold":"normal";break;case"italic":e.fontStyle=r?"italic":"normal";break;case"underline":e.textDecoration=r?"underline":"none";break;case"strike":e.textDecoration=r?"line-through":"none";break;case"color":e.color=r;break;default:break}}),e}async handleExportPng(t){let e=document.createElement("div");e.style.position="absolute",e.style.left="-9999999px",e.appendChild(t),this.mindMap.el.appendChild(e);let n=t=>{t.style.margin=0,t.style.padding=0,t.hasChildNodes()&&Array.from(t.children).forEach(t=>{n(t)})};n(t);let r=await Ks()(e,{backgroundColor:null});return this.mindMap.el.removeChild(e),r.toDataURL()}transformAllNodesToNormalNode(){ti(this.mindMap.renderer.renderTree,null,t=>{t.data.richText&&(t.data.richText=!1,t.data.text=yi(t.data.text))},null,!0,0,0),this.mindMap.command.clearHistory(),this.mindMap.command.addHistory(),this.mindMap.render(null,s.TRANSFORM_TO_NORMAL_NODE)}handleSetData(t){let e=t=>{t.data.richText||(t.data.richText=!0,t.data.resetRichText=!0),t.children&&t.children.length>0&&Array.from(t.children).forEach(t=>{e(t)})};return e(t),t}beforePluginRemove(){this.transformAllNodesToNormalNode(),document.head.removeChild(this.styleEl)}}Ys.instanceName="richText";var Xs=Ys,Js=n("5e89"),Zs=n.n(Js),$s=n("b7ba"),ta=n.n($s);const ea=t=>new Promise((e,n)=>{Zs.a.loadAsync(t).then(async t=>{try{let r="";if(t.files["content.json"]){let e=await t.files["content.json"].async("string");r=na(e)}else if(t.files["content.xml"]){let e=await t.files["content.xml"].async("string"),n=ta.a.xml2json(e);r=ra(n)}r?e(r):n(new Error("解析失败"))}catch(r){n(r)}},t=>{n(t)})}),na=t=>{let e=JSON.parse(t)[0],n=e.rootTopic,r={},i=(t,e)=>{e.data={text:t.title},t.notes&&(e.data.note=(t.notes.realHTML||t.notes.plain).content),t.href&&/^https?:\/\//.test(t.href)&&(e.data.hyperlink=t.href),t.labels&&t.labels.length>0&&(e.data.tag=t.labels),e.children=[],t.children&&t.children.attached&&t.children.attached.length>0&&t.children.attached.forEach(t=>{let n={};e.children.push(n),i(t,n)})};return i(n,r),r},ra=t=>{let e=JSON.parse(t),n=e.elements,r=null,i=t=>{for(let e=0;e<t.length;e++)if(!r&&"topic"===t[e].name)return void(r=t[e]);t.forEach(t=>{i(t.elements)})};i(n);let A={},o=(t,e)=>t.find(t=>t.name===e),s=(t,e)=>{let n=t.elements;e.data={text:o(n,"title").elements[0].text};try{let t=o(n,"notes");t&&(e.data.note=t.elements[0].elements[0].elements[0].text)}catch(i){console.log(i)}try{t.attributes&&t.attributes["xlink:href"]&&/^https?:\/\//.test(t.attributes["xlink:href"])&&(e.data.hyperlink=t.attributes["xlink:href"])}catch(i){console.log(i)}try{let t=o(n,"labels");t&&(e.data.tag=t.elements.map(t=>t.elements[0].text))}catch(i){console.log(i)}e.children=[];let r=o(n,"children");r&&r.elements&&r.elements.length>0&&r.elements.forEach(t=>{if("topics"===t.name)t.elements.forEach(t=>{let n={};e.children.push(n),s(t,n)});else{let n={};e.children.push(n),s(t,n)}})};return s(r,A),A};var ia={parseXmindFile:ea,transformXmind:na,transformOldXmind:ra};function Aa(t,e){const n=(e||{}).includeImageAlt;return oa(t,"boolean"!==typeof n||n)}function oa(t,e){return aa(t)&&("value"in t&&t.value||e&&"alt"in t&&t.alt||"children"in t&&sa(t.children,e))||Array.isArray(t)&&sa(t,e)||""}function sa(t,e){const n=[];let r=-1;while(++r<t.length)n[r]=oa(t[r],e);return n.join("")}function aa(t){return Boolean(t&&"object"===typeof t)}function la(t,e,n,r){const i=t.length;let A,o=0;if(e=e<0?-e>i?0:i+e:e>i?i:e,n=n>0?n:0,r.length<1e4)A=Array.from(r),A.unshift(e,n),[].splice.apply(t,A);else{n&&[].splice.apply(t,[e,n]);while(o<r.length)A=r.slice(o,o+1e4),A.unshift(e,0),[].splice.apply(t,A),o+=1e4,e+=1e4}}function ca(t,e){return t.length>0?(la(t,t.length,0,e),t):e}const ua={}.hasOwnProperty;function ha(t){const e={};let n=-1;while(++n<t.length)da(e,t[n]);return e}function da(t,e){let n;for(n in e){const r=ua.call(t,n)?t[n]:void 0,i=r||(t[n]={}),A=e[n];let o;for(o in A){ua.call(i,o)||(i[o]=[]);const t=A[o];fa(i[o],Array.isArray(t)?t:t?[t]:[])}}}function fa(t,e){let n=-1;const r=[];while(++n<e.length)("after"===e[n].add?t:r).push(e[n]);la(t,0,0,r)}const pa=/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ga=La(/[A-Za-z]/),ma=La(/\d/),wa=La(/[\dA-Fa-f]/),ya=La(/[\dA-Za-z]/),va=La(/[!-/:-@[-`{-~]/),ba=La(/[#-'*+\--9=?A-Z^-~]/);function Ba(t){return null!==t&&(t<32||127===t)}function Ca(t){return null!==t&&(t<0||32===t)}function xa(t){return null!==t&&t<-2}function _a(t){return-2===t||-1===t||32===t}const Ea=La(/\s/),Fa=La(pa);function La(t){return e;function e(e){return null!==e&&t.test(String.fromCharCode(e))}}function Na(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let A=0;return o;function o(r){return _a(r)?(t.enter(n),s(r)):e(r)}function s(r){return _a(r)&&A++<i?(t.consume(r),s):(t.exit(n),e(r))}}const Sa={tokenize:Ua};function Ua(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(n){if(null!==n)return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Na(t,e,"linePrefix");t.consume(n)}function i(e){return t.enter("paragraph"),A(e)}function A(e){const r=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(e)}function o(e){return null===e?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(e)):xa(e)?(t.consume(e),t.exit("chunkText"),A):(t.consume(e),o)}}const ka={tokenize:Ia},Qa={tokenize:Ta};function Ia(t){const e=this,n=[];let r,i,A,o=0;return s;function s(r){if(o<n.length){const i=n[o];return e.containerState=i[1],t.attempt(i[0].continuation,a,l)(r)}return l(r)}function a(t){if(o++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&w();const n=e.events.length;let i,A=n;while(A--)if("exit"===e.events[A][0]&&"chunkFlow"===e.events[A][1].type){i=e.events[A][1].end;break}m(o);let s=n;while(s<e.events.length)e.events[s][1].end=Object.assign({},i),s++;return la(e.events,A+1,0,e.events.slice(n)),e.events.length=s,l(t)}return s(t)}function l(i){if(o===n.length){if(!r)return h(i);if(r.currentConstruct&&r.currentConstruct.concrete)return f(i);e.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Qa,c,u)(i)}function c(t){return r&&w(),m(o),h(t)}function u(t){return e.parser.lazy[e.now().line]=o!==n.length,A=e.now().offset,f(t)}function h(n){return e.containerState={},t.attempt(Qa,d,f)(n)}function d(t){return o++,n.push([e.currentConstruct,e.containerState]),h(t)}function f(n){return null===n?(r&&w(),m(0),void t.consume(n)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),p(n))}function p(n){return null===n?(g(t.exit("chunkFlow"),!0),m(0),void t.consume(n)):xa(n)?(t.consume(n),g(t.exit("chunkFlow")),o=0,e.interrupt=void 0,s):(t.consume(n),p)}function g(t,n){const s=e.sliceStream(t);if(n&&s.push(null),t.previous=i,i&&(i.next=t),i=t,r.defineSkip(t.start),r.write(s),e.parser.lazy[t.start.line]){let t=r.events.length;while(t--)if(r.events[t][1].start.offset<A&&(!r.events[t][1].end||r.events[t][1].end.offset>A))return;const n=e.events.length;let i,s,a=n;while(a--)if("exit"===e.events[a][0]&&"chunkFlow"===e.events[a][1].type){if(i){s=e.events[a][1].end;break}i=!0}m(o),t=n;while(t<e.events.length)e.events[t][1].end=Object.assign({},s),t++;la(e.events,a+1,0,e.events.slice(n)),e.events.length=t}}function m(r){let i=n.length;while(i-- >r){const r=n[i];e.containerState=r[1],r[0].exit.call(e,t)}n.length=r}function w(){r.write([null]),i=void 0,r=void 0,e.containerState._closeFlow=void 0}}function Ta(t,e,n){return Na(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Oa={tokenize:Ma,partial:!0};function Ma(t,e,n){return Na(t,r,"linePrefix");function r(t){return null===t||xa(t)?e(t):n(t)}}function Da(t){const e={};let n,r,i,A,o,s,a,l=-1;while(++l<t.length){while(l in e)l=e[l];if(n=t[l],l&&"chunkFlow"===n[1].type&&"listItemPrefix"===t[l-1][1].type&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))while(++i<s.length){if("content"===s[i][1].type)break;"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++)}if("enter"===n[0])n[1].contentType&&(Object.assign(e,Pa(t,l)),l=e[l],a=!0);else if(n[1]._container){i=l,r=void 0;while(i--){if(A=t[i],"lineEnding"!==A[1].type&&"lineEndingBlank"!==A[1].type)break;"enter"===A[0]&&(r&&(t[r][1].type="lineEndingBlank"),A[1].type="lineEnding",r=i)}r&&(n[1].end=Object.assign({},t[r][1].start),o=t.slice(r,l),o.unshift(n),la(t,r,l-r+1,o))}}return!a}function Pa(t,e){const n=t[e][1],r=t[e][2];let i=e-1;const A=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,a=[],l={};let c,u,h=-1,d=n,f=0,p=0;const g=[p];while(d){while(t[++i][1]!==d);A.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),u&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),u=d,d=d.next}d=n;while(++h<s.length)"exit"===s[h][0]&&"enter"===s[h-1][0]&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(p=h+1,g.push(p),d._tokenizer=void 0,d.previous=void 0,d=d.next);o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),h=g.length;while(h--){const e=s.slice(g[h],g[h+1]),n=A.pop();a.unshift([n,n+e.length-1]),la(t,n,2,e)}h=-1;while(++h<a.length)l[f+a[h][0]]=f+a[h][1],f+=a[h][1]-a[h][0]-1;return l}const Ha={tokenize:za,resolve:ja},Ra={tokenize:qa,partial:!0};function ja(t){return Da(t),t}function za(t,e){let n;return r;function r(e){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(e)}function i(e){return null===e?A(e):xa(e)?t.check(Ra,o,A)(e):(t.consume(e),i)}function A(n){return t.exit("chunkContent"),t.exit("content"),e(n)}function o(e){return t.consume(e),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function qa(t,e,n){const r=this;return i;function i(e){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Na(t,A,"linePrefix")}function A(i){if(null===i||xa(i))return n(i);const A=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&A&&"linePrefix"===A[1].type&&A[2].sliceSerialize(A[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}}const Ka={tokenize:Ga};function Ga(t){const e=this,n=t.attempt(Oa,r,t.attempt(this.parser.constructs.flowInitial,i,Na(t,t.attempt(this.parser.constructs.flow,i,t.attempt(Ha,i)),"linePrefix")));return n;function r(r){if(null!==r)return t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n;t.consume(r)}function i(r){if(null!==r)return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(r)}}const Va={resolveAll:Ja()},Wa=Xa("string"),Ya=Xa("text");function Xa(t){return{tokenize:e,resolveAll:Ja("text"===t?Za:void 0)};function e(e){const n=this,r=this.parser.constructs[t],i=e.attempt(r,A,o);return A;function A(t){return a(t)?i(t):o(t)}function o(t){if(null!==t)return e.enter("data"),e.consume(t),s;e.consume(t)}function s(t){return a(t)?(e.exit("data"),i(t)):(e.consume(t),s)}function a(t){if(null===t)return!0;const e=r[t];let i=-1;if(e)while(++i<e.length){const t=e[i];if(!t.previous||t.previous.call(n,n.previous))return!0}return!1}}}function Ja(t){return e;function e(e,n){let r,i=-1;while(++i<=e.length)void 0===r?e[i]&&"data"===e[i][1].type&&(r=i,i++):e[i]&&"data"===e[i][1].type||(i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),i=r+2),r=void 0);return t?t(e,n):e}}function Za(t,e){let n=0;while(++n<=t.length)if((n===t.length||"lineEnding"===t[n][1].type)&&"data"===t[n-1][1].type){const r=t[n-1][1],i=e.sliceStream(r);let A,o=i.length,s=-1,a=0;while(o--){const t=i[o];if("string"===typeof t){s=t.length;while(32===t.charCodeAt(s-1))a++,s--;if(s)break;s=-1}else if(-2===t)A=!0,a++;else if(-1!==t){o++;break}}if(a){const i={type:n===t.length||A||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+o,_bufferIndex:o?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(t.splice(n,0,["enter",i,e],["exit",i,e]),n+=2)}n++}return t}function $a(t,e,n){const r=[];let i=-1;while(++i<t.length){const A=t[i].resolveAll;A&&!r.includes(A)&&(e=A(e,n),r.push(A))}return e}function tl(t,e,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},A=[];let o=[],s=[],a=!0;const l={consume:v,enter:b,exit:B,attempt:_(C),check:_(x),interrupt:_(x,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:p,sliceSerialize:f,now:g,defineSkip:m,write:d};let u,h=e.tokenize.call(c,l);return e.resolveAll&&A.push(e),c;function d(t){return o=ca(o,t),w(),null!==o[o.length-1]?[]:(E(e,0),c.events=$a(A,c.events,c),c.events)}function f(t,e){return nl(p(t),e)}function p(t){return el(o,t)}function g(){return Object.assign({},r)}function m(t){i[t.line]=t.column,L()}function w(){let t;while(r._index<o.length){const e=o[r._index];if("string"===typeof e){t=r._index,r._bufferIndex<0&&(r._bufferIndex=0);while(r._index===t&&r._bufferIndex<e.length)y(e.charCodeAt(r._bufferIndex))}else y(e)}}function y(t){a=void 0,u=t,h=h(t)}function v(t){xa(t)?(r.line++,r.column=1,r.offset+=-3===t?2:1,L()):-1!==t&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=t,a=!0}function b(t,e){const n=e||{};return n.type=t,n.start=g(),c.events.push(["enter",n,c]),s.push(n),n}function B(t){const e=s.pop();return e.end=g(),c.events.push(["exit",e,c]),e}function C(t,e){E(t,e.from)}function x(t,e){e.restore()}function _(t,e){return n;function n(n,r,i){let A,o,s,u;return Array.isArray(n)?d(n):"tokenize"in n?d([n]):h(n);function h(t){return e;function e(e){const n=null!==e&&t[e],r=null!==e&&t.null,i=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]];return d(i)(e)}}function d(t){return A=t,o=0,0===t.length?i:f(t[o])}function f(t){return n;function n(n){return u=F(),s=t,t.partial||(c.currentConstruct=t),t.name&&c.parser.constructs.disable.null.includes(t.name)?g(n):t.tokenize.call(e?Object.assign(Object.create(c),e):c,l,p,g)(n)}}function p(e){return a=!0,t(s,u),r}function g(t){return a=!0,u.restore(),++o<A.length?f(A[o]):i}}}function E(t,e){t.resolveAll&&!A.includes(t)&&A.push(t),t.resolve&&la(c.events,e,c.events.length-e,t.resolve(c.events.slice(e),c)),t.resolveTo&&(c.events=t.resolveTo(c.events,c))}function F(){const t=g(),e=c.previous,n=c.currentConstruct,i=c.events.length,A=Array.from(s);return{restore:o,from:i};function o(){r=t,c.previous=e,c.currentConstruct=n,c.events.length=i,s=A,L()}}function L(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function el(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,A=e.end._bufferIndex;let o;return n===i?o=[t[n].slice(r,A)]:(o=t.slice(n,i),r>-1&&(o[0]=o[0].slice(r)),A>0&&o.push(t[i].slice(0,A))),o}function nl(t,e){let n=-1;const r=[];let i;while(++n<t.length){const A=t[n];let o;if("string"===typeof A)o=A;else switch(A){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=e?" ":"\t";break;case-1:if(!e&&i)continue;o=" ";break;default:o=String.fromCharCode(A)}i=-2===A,r.push(o)}return r.join("")}const rl={name:"thematicBreak",tokenize:il};function il(t,e,n){let r,i=0;return A;function A(e){return t.enter("thematicBreak"),r=e,o(e)}function o(A){return A===r?(t.enter("thematicBreakSequence"),s(A)):_a(A)?Na(t,o,"whitespace")(A):i<3||null!==A&&!xa(A)?n(A):(t.exit("thematicBreak"),e(A))}function s(e){return e===r?(t.consume(e),i++,s):(t.exit("thematicBreakSequence"),o(e))}}const Al={name:"list",tokenize:al,continuation:{tokenize:ll},exit:ul},ol={tokenize:hl,partial:!0},sl={tokenize:cl,partial:!0};function al(t,e,n){const r=this,i=r.events[r.events.length-1];let A=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(e){const i=r.containerState.type||(42===e||43===e||45===e?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||e===r.containerState.marker:ma(e)){if(r.containerState.type||(r.containerState.type=i,t.enter(i,{_container:!0})),"listUnordered"===i)return t.enter("listItemPrefix"),42===e||45===e?t.check(rl,n,l)(e):l(e);if(!r.interrupt||49===e)return t.enter("listItemPrefix"),t.enter("listItemValue"),a(e)}return n(e)}function a(e){return ma(e)&&++o<10?(t.consume(e),a):(!r.interrupt||o<2)&&(r.containerState.marker?e===r.containerState.marker:41===e||46===e)?(t.exit("listItemValue"),l(e)):n(e)}function l(e){return t.enter("listItemMarker"),t.consume(e),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||e,t.check(Oa,r.interrupt?n:c,t.attempt(ol,h,u))}function c(t){return r.containerState.initialBlankLine=!0,A++,h(t)}function u(e){return _a(e)?(t.enter("listItemPrefixWhitespace"),t.consume(e),t.exit("listItemPrefixWhitespace"),h):n(e)}function h(n){return r.containerState.size=A+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(n)}}function ll(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Oa,i,A);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Na(t,e,"listItemIndent",r.containerState.size+1)(n)}function A(n){return r.containerState.furtherBlankLines||!_a(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(sl,e,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Na(t,t.attempt(Al,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function cl(t,e,n){const r=this;return Na(t,i,"listItemIndent",r.containerState.size+1);function i(t){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(t):n(t)}}function ul(t){t.exit(this.containerState.type)}function hl(t,e,n){const r=this;return Na(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(t){const i=r.events[r.events.length-1];return!_a(t)&&i&&"listItemPrefixWhitespace"===i[1].type?e(t):n(t)}}const dl={name:"blockQuote",tokenize:fl,continuation:{tokenize:pl},exit:gl};function fl(t,e,n){const r=this;return i;function i(e){if(62===e){const n=r.containerState;return n.open||(t.enter("blockQuote",{_container:!0}),n.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(e),t.exit("blockQuoteMarker"),A}return n(e)}function A(n){return _a(n)?(t.enter("blockQuotePrefixWhitespace"),t.consume(n),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(n))}}function pl(t,e,n){return Na(t,t.attempt(dl,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gl(t){t.exit("blockQuote")}function ml(t,e,n,r,i,A,o,s,a){const l=a||Number.POSITIVE_INFINITY;let c=0;return u;function u(e){return 60===e?(t.enter(r),t.enter(i),t.enter(A),t.consume(e),t.exit(A),h):null===e||41===e||Ba(e)?n(e):(t.enter(r),t.enter(o),t.enter(s),t.enter("chunkString",{contentType:"string"}),p(e))}function h(n){return 62===n?(t.enter(A),t.consume(n),t.exit(A),t.exit(i),t.exit(r),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),d(n))}function d(e){return 62===e?(t.exit("chunkString"),t.exit(s),h(e)):null===e||60===e||xa(e)?n(e):(t.consume(e),92===e?f:d)}function f(e){return 60===e||62===e||92===e?(t.consume(e),d):d(e)}function p(i){return 40===i?++c>l?n(i):(t.consume(i),p):41===i?c--?(t.consume(i),p):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(r),e(i)):null===i||Ca(i)?c?n(i):(t.exit("chunkString"),t.exit(s),t.exit(o),t.exit(r),e(i)):Ba(i)?n(i):(t.consume(i),92===i?g:p)}function g(e){return 40===e||41===e||92===e?(t.consume(e),p):p(e)}}function wl(t,e,n,r,i,A){const o=this;let s,a=0;return l;function l(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),t.enter(A),c}function c(l){return null===l||91===l||93===l&&!s||94===l&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs||a>999?n(l):93===l?(t.exit(A),t.enter(i),t.consume(l),t.exit(i),t.exit(r),e):xa(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),u(l))}function u(e){return null===e||91===e||93===e||xa(e)||a++>999?(t.exit("chunkString"),c(e)):(t.consume(e),s=s||!_a(e),92===e?h:u)}function h(e){return 91===e||92===e||93===e?(t.consume(e),a++,u):u(e)}}function yl(t,e,n,r,i,A){let o;return s;function s(e){return t.enter(r),t.enter(i),t.consume(e),t.exit(i),o=40===e?41:e,a}function a(n){return n===o?(t.enter(i),t.consume(n),t.exit(i),t.exit(r),e):(t.enter(A),l(n))}function l(e){return e===o?(t.exit(A),a(o)):null===e?n(e):xa(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Na(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(e))}function c(e){return e===o||null===e||xa(e)?(t.exit("chunkString"),l(e)):(t.consume(e),92===e?u:c)}function u(e){return e===o||92===e?(t.consume(e),c):c(e)}}function vl(t,e){let n;return r;function r(i){return xa(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):_a(i)?Na(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}function bl(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bl={name:"definition",tokenize:xl},Cl={tokenize:_l,partial:!0};function xl(t,e,n){const r=this;let i;return A;function A(e){return t.enter("definition"),wl.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(e)}function o(e){return i=bl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===e?(t.enter("definitionMarker"),t.consume(e),t.exit("definitionMarker"),vl(t,ml(t,t.attempt(Cl,Na(t,s,"whitespace"),Na(t,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(e)}function s(A){return null===A||xa(A)?(t.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),e(A)):n(A)}}function _l(t,e,n){return r;function r(e){return Ca(e)?vl(t,i)(e):n(e)}function i(e){return 34===e||39===e||40===e?yl(t,Na(t,A,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(e):n(e)}function A(t){return null===t||xa(t)?e(t):n(t)}}const El={name:"codeIndented",tokenize:Ll},Fl={tokenize:Nl,partial:!0};function Ll(t,e,n){const r=this;return i;function i(e){return t.enter("codeIndented"),Na(t,A,"linePrefix",5)(e)}function A(t){const e=r.events[r.events.length-1];return e&&"linePrefix"===e[1].type&&e[2].sliceSerialize(e[1],!0).length>=4?o(t):n(t)}function o(e){return null===e?a(e):xa(e)?t.attempt(Fl,o,a)(e):(t.enter("codeFlowValue"),s(e))}function s(e){return null===e||xa(e)?(t.exit("codeFlowValue"),o(e)):(t.consume(e),s)}function a(n){return t.exit("codeIndented"),e(n)}}function Nl(t,e,n){const r=this;return i;function i(e){return r.parser.lazy[r.now().line]?n(e):xa(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),i):Na(t,A,"linePrefix",5)(e)}function A(t){const A=r.events[r.events.length-1];return A&&"linePrefix"===A[1].type&&A[2].sliceSerialize(A[1],!0).length>=4?e(t):xa(t)?i(t):n(t)}}const Sl={name:"headingAtx",tokenize:kl,resolve:Ul};function Ul(t,e){let n,r,i=t.length-2,A=3;return"whitespace"===t[A][1].type&&(A+=2),i-2>A&&"whitespace"===t[i][1].type&&(i-=2),"atxHeadingSequence"===t[i][1].type&&(A===i-1||i-4>A&&"whitespace"===t[i-2][1].type)&&(i-=A+1===i?2:4),i>A&&(n={type:"atxHeadingText",start:t[A][1].start,end:t[i][1].end},r={type:"chunkText",start:t[A][1].start,end:t[i][1].end,contentType:"text"},la(t,A,i-A+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]])),t}function kl(t,e,n){const r=this;let i=0;return A;function A(e){return t.enter("atxHeading"),t.enter("atxHeadingSequence"),o(e)}function o(A){return 35===A&&i++<6?(t.consume(A),o):null===A||Ca(A)?(t.exit("atxHeadingSequence"),r.interrupt?e(A):s(A)):n(A)}function s(n){return 35===n?(t.enter("atxHeadingSequence"),a(n)):null===n||xa(n)?(t.exit("atxHeading"),e(n)):_a(n)?Na(t,s,"whitespace")(n):(t.enter("atxHeadingText"),l(n))}function a(e){return 35===e?(t.consume(e),a):(t.exit("atxHeadingSequence"),s(e))}function l(e){return null===e||35===e||Ca(e)?(t.exit("atxHeadingText"),s(e)):(t.consume(e),l)}}const Ql={name:"setextUnderline",tokenize:Tl,resolveTo:Il};function Il(t,e){let n,r,i,A=t.length;while(A--)if("enter"===t[A][0]){if("content"===t[A][1].type){n=A;break}"paragraph"===t[A][1].type&&(r=A)}else"content"===t[A][1].type&&t.splice(A,1),i||"definition"!==t[A][1].type||(i=A);const o={type:"setextHeading",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[r][1].type="setextHeadingText",i?(t.splice(r,0,["enter",o,e]),t.splice(i+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[i][1].end)):t[n][1]=o,t.push(["exit",o,e]),t}function Tl(t,e,n){const r=this;let i,A,o=r.events.length;while(o--)if("lineEnding"!==r.events[o][1].type&&"linePrefix"!==r.events[o][1].type&&"content"!==r.events[o][1].type){A="paragraph"===r.events[o][1].type;break}return s;function s(e){return r.parser.lazy[r.now().line]||!r.interrupt&&!A?n(e):(t.enter("setextHeadingLine"),t.enter("setextHeadingLineSequence"),i=e,a(e))}function a(e){return e===i?(t.consume(e),a):(t.exit("setextHeadingLineSequence"),Na(t,l,"lineSuffix")(e))}function l(r){return null===r||xa(r)?(t.exit("setextHeadingLine"),e(r)):n(r)}}const Ol=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ml=["pre","script","style","textarea"],Dl={name:"htmlFlow",tokenize:Rl,resolveTo:Hl,concrete:!0},Pl={tokenize:jl,partial:!0};function Hl(t){let e=t.length;while(e--)if("enter"===t[e][0]&&"htmlFlow"===t[e][1].type)break;return e>1&&"linePrefix"===t[e-2][1].type&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function Rl(t,e,n){const r=this;let i,A,o,s,a;return l;function l(e){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(e),c}function c(s){return 33===s?(t.consume(s),u):47===s?(t.consume(s),f):63===s?(t.consume(s),i=3,r.interrupt?e:T):ga(s)?(t.consume(s),o=String.fromCharCode(s),A=!0,p):n(s)}function u(A){return 45===A?(t.consume(A),i=2,h):91===A?(t.consume(A),i=5,o="CDATA[",s=0,d):ga(A)?(t.consume(A),i=4,r.interrupt?e:T):n(A)}function h(i){return 45===i?(t.consume(i),r.interrupt?e:T):n(i)}function d(i){return i===o.charCodeAt(s++)?(t.consume(i),s===o.length?r.interrupt?e:F:d):n(i)}function f(e){return ga(e)?(t.consume(e),o=String.fromCharCode(e),p):n(e)}function p(s){return null===s||47===s||62===s||Ca(s)?47!==s&&A&&Ml.includes(o.toLowerCase())?(i=1,r.interrupt?e(s):F(s)):Ol.includes(o.toLowerCase())?(i=6,47===s?(t.consume(s),g):r.interrupt?e(s):F(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):A?w(s):m(s)):45===s||ya(s)?(t.consume(s),o+=String.fromCharCode(s),p):n(s)}function g(i){return 62===i?(t.consume(i),r.interrupt?e:F):n(i)}function m(e){return _a(e)?(t.consume(e),m):_(e)}function w(e){return 47===e?(t.consume(e),_):58===e||95===e||ga(e)?(t.consume(e),y):_a(e)?(t.consume(e),w):_(e)}function y(e){return 45===e||46===e||58===e||95===e||ya(e)?(t.consume(e),y):v(e)}function v(e){return 61===e?(t.consume(e),b):_a(e)?(t.consume(e),v):w(e)}function b(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),a=e,B):_a(e)?(t.consume(e),b):(a=null,C(e))}function B(e){return null===e||xa(e)?n(e):e===a?(t.consume(e),x):(t.consume(e),B)}function C(e){return null===e||34===e||39===e||60===e||61===e||62===e||96===e||Ca(e)?v(e):(t.consume(e),C)}function x(t){return 47===t||62===t||_a(t)?w(t):n(t)}function _(e){return 62===e?(t.consume(e),E):n(e)}function E(e){return _a(e)?(t.consume(e),E):null===e||xa(e)?F(e):n(e)}function F(e){return 45===e&&2===i?(t.consume(e),U):60===e&&1===i?(t.consume(e),k):62===e&&4===i?(t.consume(e),O):63===e&&3===i?(t.consume(e),T):93===e&&5===i?(t.consume(e),I):!xa(e)||6!==i&&7!==i?null===e||xa(e)?L(e):(t.consume(e),F):t.check(Pl,O,L)(e)}function L(e){return t.exit("htmlFlowData"),N(e)}function N(e){return null===e?M(e):xa(e)?t.attempt({tokenize:S,partial:!0},N,M)(e):(t.enter("htmlFlowData"),F(e))}function S(t,e,n){return i;function i(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),A}function A(t){return r.parser.lazy[r.now().line]?n(t):e(t)}}function U(e){return 45===e?(t.consume(e),T):F(e)}function k(e){return 47===e?(t.consume(e),o="",Q):F(e)}function Q(e){return 62===e&&Ml.includes(o.toLowerCase())?(t.consume(e),O):ga(e)&&o.length<8?(t.consume(e),o+=String.fromCharCode(e),Q):F(e)}function I(e){return 93===e?(t.consume(e),T):F(e)}function T(e){return 62===e?(t.consume(e),O):45===e&&2===i?(t.consume(e),T):F(e)}function O(e){return null===e||xa(e)?(t.exit("htmlFlowData"),M(e)):(t.consume(e),O)}function M(n){return t.exit("htmlFlow"),e(n)}}function jl(t,e,n){return r;function r(r){return t.exit("htmlFlowData"),t.enter("lineEndingBlank"),t.consume(r),t.exit("lineEndingBlank"),t.attempt(Oa,e,n)}}const zl={name:"codeFenced",tokenize:ql,concrete:!0};function ql(t,e,n){const r=this,i={tokenize:b,partial:!0},A={tokenize:v,partial:!0},o=this.events[this.events.length-1],s=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0;let a,l=0;return c;function c(e){return t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),a=e,u(e)}function u(e){return e===a?(t.consume(e),l++,u):(t.exit("codeFencedFenceSequence"),l<3?n(e):Na(t,h,"whitespace")(e))}function h(e){return null===e||xa(e)?g(e):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),d(e))}function d(e){return null===e||Ca(e)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Na(t,f,"whitespace")(e)):96===e&&e===a?n(e):(t.consume(e),d)}function f(e){return null===e||xa(e)?g(e):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),p(e))}function p(e){return null===e||xa(e)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(e)):96===e&&e===a?n(e):(t.consume(e),p)}function g(n){return t.exit("codeFencedFence"),r.interrupt?e(n):m(n)}function m(e){return null===e?y(e):xa(e)?t.attempt(A,t.attempt(i,y,s?Na(t,m,"linePrefix",s+1):m),y)(e):(t.enter("codeFlowValue"),w(e))}function w(e){return null===e||xa(e)?(t.exit("codeFlowValue"),m(e)):(t.consume(e),w)}function y(n){return t.exit("codeFenced"),e(n)}function v(t,e,n){const r=this;return i;function i(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),A}function A(t){return r.parser.lazy[r.now().line]?n(t):e(t)}}function b(t,e,n){let r=0;return Na(t,i,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(e){return t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),A(e)}function A(e){return e===a?(t.consume(e),r++,A):r<l?n(e):(t.exit("codeFencedFenceSequence"),Na(t,o,"whitespace")(e))}function o(r){return null===r||xa(r)?(t.exit("codeFencedFence"),e(r)):n(r)}}}const Kl={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"",Cayleys:"",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"",Fscr:"",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"",HilbertSpace:"",Hopf:"",HorizontalLine:"─",Hscr:"",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"",Igrave:"Ì",Im:"",Imacr:"Ī",ImaginaryI:"",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:"",Mellintrf:"",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"",Popf:"",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"",ThinSpace:"",Tilde:"",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"",Verbar:"‖",Vert:"‖",VerticalBar:"",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:"",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"",Zopf:"",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:"",emsp14:"",emsp:"",eng:"ŋ",ensp:"",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"",exponentiale:"",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:"",half:"½",hamilt:"",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"",hyphen:"",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"",imagline:"",imagpart:"",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"",midast:"*",midcir:"⫰",middot:"·",minus:"",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:"",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"",orarr:"↻",ord:"⩝",order:"",orderof:"",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"",primes:"",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:"",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"",rationals:"",rbarr:"⤍",rbbrk:"",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"",realine:"",realpart:"",reals:"",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"",rsquor:"",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"",setmn:"",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"",smashp:"⨳",smeparsl:"⧤",smid:"",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"",thinsp:"",thkap:"≈",thksim:"",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Gl={}.hasOwnProperty;function Vl(t){return!!Gl.call(Kl,t)&&Kl[t]}const Wl={name:"characterReference",tokenize:Yl};function Yl(t,e,n){const r=this;let i,A,o=0;return s;function s(e){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(e),t.exit("characterReferenceMarker"),a}function a(e){return 35===e?(t.enter("characterReferenceMarkerNumeric"),t.consume(e),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),i=31,A=ya,c(e))}function l(e){return 88===e||120===e?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(e),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),i=6,A=wa,c):(t.enter("characterReferenceValue"),i=7,A=ma,c(e))}function c(s){let a;return 59===s&&o?(a=t.exit("characterReferenceValue"),A!==ya||Vl(r.sliceSerialize(a))?(t.enter("characterReferenceMarker"),t.consume(s),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(s)):A(s)&&o++<i?(t.consume(s),c):n(s)}}const Xl={name:"characterEscape",tokenize:Jl};function Jl(t,e,n){return r;function r(e){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(e),t.exit("escapeMarker"),i}function i(r){return va(r)?(t.enter("characterEscapeValue"),t.consume(r),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(r)}}const Zl={name:"lineEnding",tokenize:$l};function $l(t,e){return n;function n(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Na(t,e,"linePrefix")}}const tc={name:"labelEnd",tokenize:oc,resolveTo:Ac,resolveAll:ic},ec={tokenize:sc},nc={tokenize:ac},rc={tokenize:lc};function ic(t){let e,n=-1;while(++n<t.length)e=t[n][1],"labelImage"!==e.type&&"labelLink"!==e.type&&"labelEnd"!==e.type||(t.splice(n+1,"labelImage"===e.type?4:2),e.type="data",n++);return t}function Ac(t,e){let n,r,i,A,o=t.length,s=0;while(o--)if(n=t[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===t[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===t[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=o);const a={type:"labelLink"===t[r][1].type?"link":"image",start:Object.assign({},t[r][1].start),end:Object.assign({},t[t.length-1][1].end)},l={type:"label",start:Object.assign({},t[r][1].start),end:Object.assign({},t[i][1].end)},c={type:"labelText",start:Object.assign({},t[r+s+2][1].end),end:Object.assign({},t[i-2][1].start)};return A=[["enter",a,e],["enter",l,e]],A=ca(A,t.slice(r+1,r+s+3)),A=ca(A,[["enter",c,e]]),A=ca(A,$a(e.parser.constructs.insideSpan.null,t.slice(r+s+4,i-3),e)),A=ca(A,[["exit",c,e],t[i-2],t[i-1],["exit",l,e]]),A=ca(A,t.slice(i+1)),A=ca(A,[["exit",a,e]]),la(t,r,t.length,A),t}function oc(t,e,n){const r=this;let i,A,o=r.events.length;while(o--)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){i=r.events[o][1];break}return s;function s(e){return i?i._inactive?l(e):(A=r.parser.defined.includes(bl(r.sliceSerialize({start:i.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelEnd"),a):n(e)}function a(n){return 40===n?t.attempt(ec,e,A?e:l)(n):91===n?t.attempt(nc,e,A?t.attempt(rc,e,l):l)(n):A?e(n):l(n)}function l(t){return i._balanced=!0,n(t)}}function sc(t,e,n){return r;function r(e){return t.enter("resource"),t.enter("resourceMarker"),t.consume(e),t.exit("resourceMarker"),vl(t,i)}function i(e){return 41===e?s(e):ml(t,A,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(e)}function A(e){return Ca(e)?vl(t,o)(e):s(e)}function o(e){return 34===e||39===e||40===e?yl(t,vl(t,s),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(e):s(e)}function s(r){return 41===r?(t.enter("resourceMarker"),t.consume(r),t.exit("resourceMarker"),t.exit("resource"),e):n(r)}}function ac(t,e,n){const r=this;return i;function i(e){return wl.call(r,t,A,n,"reference","referenceMarker","referenceString")(e)}function A(t){return r.parser.defined.includes(bl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(t):n(t)}}function lc(t,e,n){return r;function r(e){return t.enter("reference"),t.enter("referenceMarker"),t.consume(e),t.exit("referenceMarker"),i}function i(r){return 93===r?(t.enter("referenceMarker"),t.consume(r),t.exit("referenceMarker"),t.exit("reference"),e):n(r)}}const cc={name:"labelStartImage",tokenize:uc,resolveAll:tc.resolveAll};function uc(t,e,n){const r=this;return i;function i(e){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(e),t.exit("labelImageMarker"),A}function A(e){return 91===e?(t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelImage"),o):n(e)}function o(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}}function hc(t){return null===t||Ca(t)||Ea(t)?1:Fa(t)?2:void 0}const dc={name:"attention",tokenize:pc,resolveAll:fc};function fc(t,e){let n,r,i,A,o,s,a,l,c=-1;while(++c<t.length)if("enter"===t[c][0]&&"attentionSequence"===t[c][1].type&&t[c][1]._close){n=c;while(n--)if("exit"===t[n][0]&&"attentionSequence"===t[n][1].type&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[c][1]).charCodeAt(0)){if((t[n][1]._close||t[c][1]._open)&&(t[c][1].end.offset-t[c][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[c][1].end.offset-t[c][1].start.offset)%3))continue;s=t[n][1].end.offset-t[n][1].start.offset>1&&t[c][1].end.offset-t[c][1].start.offset>1?2:1;const u=Object.assign({},t[n][1].end),h=Object.assign({},t[c][1].start);gc(u,-s),gc(h,s),A={type:s>1?"strongSequence":"emphasisSequence",start:u,end:Object.assign({},t[n][1].end)},o={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[c][1].start),end:h},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},A.start),end:Object.assign({},o.end)},t[n][1].end=Object.assign({},A.start),t[c][1].start=Object.assign({},o.end),a=[],t[n][1].end.offset-t[n][1].start.offset&&(a=ca(a,[["enter",t[n][1],e],["exit",t[n][1],e]])),a=ca(a,[["enter",r,e],["enter",A,e],["exit",A,e],["enter",i,e]]),a=ca(a,$a(e.parser.constructs.insideSpan.null,t.slice(n+1,c),e)),a=ca(a,[["exit",i,e],["enter",o,e],["exit",o,e],["exit",r,e]]),t[c][1].end.offset-t[c][1].start.offset?(l=2,a=ca(a,[["enter",t[c][1],e],["exit",t[c][1],e]])):l=0,la(t,n-1,c-n+3,a),c=n+a.length-l-2;break}}c=-1;while(++c<t.length)"attentionSequence"===t[c][1].type&&(t[c][1].type="data");return t}function pc(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=hc(r);let A;return o;function o(e){return t.enter("attentionSequence"),A=e,s(e)}function s(o){if(o===A)return t.consume(o),s;const a=t.exit("attentionSequence"),l=hc(o),c=!l||2===l&&i||n.includes(o),u=!i||2===i&&l||n.includes(r);return a._open=Boolean(42===A?c:c&&(i||!u)),a._close=Boolean(42===A?u:u&&(l||!c)),e(o)}}function gc(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const mc={name:"autolink",tokenize:wc};function wc(t,e,n){let r=1;return i;function i(e){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(e),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),A}function A(e){return ga(e)?(t.consume(e),o):ba(e)?l(e):n(e)}function o(t){return 43===t||45===t||46===t||ya(t)?s(t):l(t)}function s(e){return 58===e?(t.consume(e),a):(43===e||45===e||46===e||ya(e))&&r++<32?(t.consume(e),s):l(e)}function a(e){return 62===e?(t.exit("autolinkProtocol"),d(e)):null===e||32===e||60===e||Ba(e)?n(e):(t.consume(e),a)}function l(e){return 64===e?(t.consume(e),r=0,c):ba(e)?(t.consume(e),l):n(e)}function c(t){return ya(t)?u(t):n(t)}function u(e){return 46===e?(t.consume(e),r=0,c):62===e?(t.exit("autolinkProtocol").type="autolinkEmail",d(e)):h(e)}function h(e){return(45===e||ya(e))&&r++<63?(t.consume(e),45===e?h:u):n(e)}function d(n){return t.enter("autolinkMarker"),t.consume(n),t.exit("autolinkMarker"),t.exit("autolink"),e}}const yc={name:"htmlText",tokenize:vc};function vc(t,e,n){const r=this;let i,A,o,s;return a;function a(e){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(e),l}function l(e){return 33===e?(t.consume(e),c):47===e?(t.consume(e),C):63===e?(t.consume(e),b):ga(e)?(t.consume(e),E):n(e)}function c(e){return 45===e?(t.consume(e),u):91===e?(t.consume(e),A="CDATA[",o=0,g):ga(e)?(t.consume(e),v):n(e)}function u(e){return 45===e?(t.consume(e),h):n(e)}function h(e){return null===e||62===e?n(e):45===e?(t.consume(e),d):f(e)}function d(t){return null===t||62===t?n(t):f(t)}function f(e){return null===e?n(e):45===e?(t.consume(e),p):xa(e)?(s=f,I(e)):(t.consume(e),f)}function p(e){return 45===e?(t.consume(e),O):f(e)}function g(e){return e===A.charCodeAt(o++)?(t.consume(e),o===A.length?m:g):n(e)}function m(e){return null===e?n(e):93===e?(t.consume(e),w):xa(e)?(s=m,I(e)):(t.consume(e),m)}function w(e){return 93===e?(t.consume(e),y):m(e)}function y(e){return 62===e?O(e):93===e?(t.consume(e),y):m(e)}function v(e){return null===e||62===e?O(e):xa(e)?(s=v,I(e)):(t.consume(e),v)}function b(e){return null===e?n(e):63===e?(t.consume(e),B):xa(e)?(s=b,I(e)):(t.consume(e),b)}function B(t){return 62===t?O(t):b(t)}function C(e){return ga(e)?(t.consume(e),x):n(e)}function x(e){return 45===e||ya(e)?(t.consume(e),x):_(e)}function _(e){return xa(e)?(s=_,I(e)):_a(e)?(t.consume(e),_):O(e)}function E(e){return 45===e||ya(e)?(t.consume(e),E):47===e||62===e||Ca(e)?F(e):n(e)}function F(e){return 47===e?(t.consume(e),O):58===e||95===e||ga(e)?(t.consume(e),L):xa(e)?(s=F,I(e)):_a(e)?(t.consume(e),F):O(e)}function L(e){return 45===e||46===e||58===e||95===e||ya(e)?(t.consume(e),L):N(e)}function N(e){return 61===e?(t.consume(e),S):xa(e)?(s=N,I(e)):_a(e)?(t.consume(e),N):F(e)}function S(e){return null===e||60===e||61===e||62===e||96===e?n(e):34===e||39===e?(t.consume(e),i=e,U):xa(e)?(s=S,I(e)):_a(e)?(t.consume(e),S):(t.consume(e),i=void 0,Q)}function U(e){return e===i?(t.consume(e),k):null===e?n(e):xa(e)?(s=U,I(e)):(t.consume(e),U)}function k(t){return 62===t||47===t||Ca(t)?F(t):n(t)}function Q(e){return null===e||34===e||39===e||60===e||61===e||96===e?n(e):62===e||Ca(e)?F(e):(t.consume(e),Q)}function I(e){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),Na(t,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function T(e){return t.enter("htmlTextData"),s(e)}function O(r){return 62===r?(t.consume(r),t.exit("htmlTextData"),t.exit("htmlText"),e):n(r)}}const bc={name:"labelStartLink",tokenize:Bc,resolveAll:tc.resolveAll};function Bc(t,e,n){const r=this;return i;function i(e){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(e),t.exit("labelMarker"),t.exit("labelLink"),A}function A(t){return 94===t&&"_hiddenFootnoteSupport"in r.parser.constructs?n(t):e(t)}}const Cc={name:"hardBreakEscape",tokenize:xc};function xc(t,e,n){return r;function r(e){return t.enter("hardBreakEscape"),t.enter("escapeMarker"),t.consume(e),i}function i(r){return xa(r)?(t.exit("escapeMarker"),t.exit("hardBreakEscape"),e(r)):n(r)}}const _c={name:"codeText",tokenize:Lc,resolve:Ec,previous:Fc};function Ec(t){let e,n,r=t.length-4,i=3;if(("lineEnding"===t[i][1].type||"space"===t[i][1].type)&&("lineEnding"===t[r][1].type||"space"===t[r][1].type)){e=i;while(++e<r)if("codeTextData"===t[e][1].type){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}}e=i-1,r++;while(++e<=r)void 0===n?e!==r&&"lineEnding"!==t[e][1].type&&(n=e):e!==r&&"lineEnding"!==t[e][1].type||(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t}function Fc(t){return 96!==t||"characterEscape"===this.events[this.events.length-1][1].type}function Lc(t,e,n){let r,i,A=0;return o;function o(e){return t.enter("codeText"),t.enter("codeTextSequence"),s(e)}function s(e){return 96===e?(t.consume(e),A++,s):(t.exit("codeTextSequence"),a(e))}function a(e){return null===e?n(e):96===e?(i=t.enter("codeTextSequence"),r=0,c(e)):32===e?(t.enter("space"),t.consume(e),t.exit("space"),a):xa(e)?(t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),a):(t.enter("codeTextData"),l(e))}function l(e){return null===e||32===e||96===e||xa(e)?(t.exit("codeTextData"),a(e)):(t.consume(e),l)}function c(n){return 96===n?(t.consume(n),r++,c):r===A?(t.exit("codeTextSequence"),t.exit("codeText"),e(n)):(i.type="codeTextData",l(n))}}const Nc={[42]:Al,[43]:Al,[45]:Al,[48]:Al,[49]:Al,[50]:Al,[51]:Al,[52]:Al,[53]:Al,[54]:Al,[55]:Al,[56]:Al,[57]:Al,[62]:dl},Sc={[91]:Bl},Uc={[-2]:El,[-1]:El,[32]:El},kc={[35]:Sl,[42]:rl,[45]:[Ql,rl],[60]:Dl,[61]:Ql,[95]:rl,[96]:zl,[126]:zl},Qc={[38]:Wl,[92]:Xl},Ic={[-5]:Zl,[-4]:Zl,[-3]:Zl,[33]:cc,[38]:Wl,[42]:dc,[60]:[mc,yc],[91]:bc,[92]:[Cc,Xl],[93]:tc,[95]:dc,[96]:_c},Tc={null:[dc,Va]},Oc={null:[42,95]},Mc={null:[]};function Dc(t={}){const e=ha([r].concat(t.extensions||[])),n={defined:[],lazy:{},constructs:e,content:i(Sa),document:i(ka),flow:i(Ka),string:i(Wa),text:i(Ya)};return n;function i(t){return e;function e(e){return tl(n,t,e)}}}const Pc=/[\0\t\n\r]/g;function Hc(){let t,e=1,n="",r=!0;return i;function i(i,A,o){const s=[];let a,l,c,u,h;i=n+i.toString(A),c=0,n="",r&&(65279===i.charCodeAt(0)&&c++,r=void 0);while(c<i.length){if(Pc.lastIndex=c,a=Pc.exec(i),u=a&&void 0!==a.index?a.index:i.length,h=i.charCodeAt(u),!a){n=i.slice(c);break}if(10===h&&c===u&&t)s.push(-3),t=void 0;else switch(t&&(s.push(-5),t=void 0),c<u&&(s.push(i.slice(c,u)),e+=u-c),h){case 0:s.push(65533),e++;break;case 9:l=4*Math.ceil(e/4),s.push(-2);while(e++<l)s.push(-1);break;case 10:s.push(-4),e=1;break;default:t=!0,e=1}c=u+1}return o&&(t&&s.push(-5),n&&s.push(n),s.push(null)),s}}function Rc(t){while(!Da(t));return t}function jc(t,e){const n=Number.parseInt(t,e);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"<22>":String.fromCharCode(n)}const zc=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function qc(t){return t.replace(zc,Kc)}function Kc(t,e,n){if(e)return e;const r=n.charCodeAt(0);if(35===r){const t=n.charCodeAt(1),e=120===t||88===t;return jc(n.slice(e?2:1),e?16:10)}return Vl(n)||t}function Gc(t){return t&&"object"===typeof t?"position"in t||"type"in t?Wc(t.position):"start"in t||"end"in t?Wc(t):"line"in t||"column"in t?Vc(t):"":""}function Vc(t){return Yc(t&&t.line)+":"+Yc(t&&t.column)}function Wc(t){return Vc(t&&t.start)+"-"+Vc(t&&t.end)}function Yc(t){return t&&"number"===typeof t?t:1}const Xc={}.hasOwnProperty,Jc=function(t,e,n){return"string"!==typeof e&&(n=e,e=void 0),Zc(n)(Rc(Dc(n).document().write(Hc()(t,e,!0))))};function Zc(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(nt),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(Z),blockQuote:s(V),characterEscape:F,characterReference:F,codeFenced:s(W),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(W,a),codeText:s(Y,a),codeTextData:F,data:F,codeFlowValue:F,definition:s(X),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(J),hardBreakEscape:s($),hardBreakTrailing:s($),htmlFlow:s(tt,a),htmlFlowData:F,htmlText:s(tt,a),htmlTextData:F,image:s(et),label:a,link:s(nt),listItem:s(it),listItemValue:f,listOrdered:s(rt,d),listUnordered:s(rt),paragraph:s(At),reference:R,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Z),strong:s(ot),thematicBreak:s(at)},exit:{atxHeading:c(),atxHeadingSequence:C,autolink:c(),autolinkEmail:G,autolinkProtocol:K,blockQuote:c(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:q,codeFenced:c(w),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:L,codeIndented:c(y),codeText:c(Q),codeTextData:L,data:L,definition:c(),definitionDestinationString:B,definitionLabelString:v,definitionTitleString:b,emphasis:c(),hardBreakEscape:c(S),hardBreakTrailing:c(S),htmlFlow:c(U),htmlFlowData:L,htmlText:c(k),htmlTextData:L,image:c(T),label:M,labelText:O,lineEnding:N,link:c(I),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:j,resourceDestinationString:D,resourceTitleString:P,resource:H,setextHeading:c(E),setextHeadingLineSequence:_,setextHeadingText:x,strong:c(),thematicBreak:c()}};tu(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(t){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:e,enter:l,exit:u,buffer:a,resume:h,setData:A,getData:o},s=[];let c=-1;while(++c<t.length)if("listOrdered"===t[c][1].type||"listUnordered"===t[c][1].type)if("enter"===t[c][0])s.push(c);else{const e=s.pop();c=i(t,e,c)}c=-1;while(++c<t.length){const n=e[t[c][0]];Xc.call(n,t[c][1].type)&&n[t[c][1].type].call(Object.assign({sliceSerialize:t[c][2].sliceSerialize},r),t[c][1])}if(r.tokenStack.length>0){const t=r.tokenStack[r.tokenStack.length-1],e=t[1]||nu;e.call(r,void 0,t[0])}n.position={start:$c(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:$c(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},c=-1;while(++c<e.transforms.length)n=e.transforms[c](n)||n;return n}function i(t,e,n){let r,i,A,o,s=e-1,a=-1,l=!1;while(++s<=n){const e=t[s];if("listUnordered"===e[1].type||"listOrdered"===e[1].type||"blockQuote"===e[1].type?("enter"===e[0]?a++:a--,o=void 0):"lineEndingBlank"===e[1].type?"enter"===e[0]&&(!r||o||a||A||(A=s),o=void 0):"linePrefix"===e[1].type||"listItemValue"===e[1].type||"listItemMarker"===e[1].type||"listItemPrefix"===e[1].type||"listItemPrefixWhitespace"===e[1].type||(o=void 0),!a&&"enter"===e[0]&&"listItemPrefix"===e[1].type||-1===a&&"exit"===e[0]&&("listUnordered"===e[1].type||"listOrdered"===e[1].type)){if(r){let o=s;i=void 0;while(o--){const e=t[o];if("lineEnding"===e[1].type||"lineEndingBlank"===e[1].type){if("exit"===e[0])continue;i&&(t[i][1].type="lineEndingBlank",l=!0),e[1].type="lineEnding",i=o}else if("linePrefix"!==e[1].type&&"blockQuotePrefix"!==e[1].type&&"blockQuotePrefixWhitespace"!==e[1].type&&"blockQuoteMarker"!==e[1].type&&"listItemIndent"!==e[1].type)break}A&&(!i||A<i)&&(r._spread=!0),r.end=Object.assign({},i?t[i][1].start:e[1].end),t.splice(i||s,0,["exit",r,e[2]]),s++,n++}"listItemPrefix"===e[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},e[1].start)},t.splice(s,0,["enter",r,e[2]]),s++,n++,A=void 0,o=!0)}}return t[e][1]._spread=l,n}function A(t,e){n[t]=e}function o(t){return n[t]}function s(t,e){return n;function n(n){l.call(this,t(n),n),e&&e.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function l(t,e,n){const r=this.stack[this.stack.length-1];return r.children.push(t),this.stack.push(t),this.tokenStack.push([e,n]),t.position={start:$c(e.start)},t}function c(t){return e;function e(e){t&&t.call(this,e),u.call(this,e)}}function u(t,e){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+t.type+"` ("+Gc({start:t.start,end:t.end})+"): its not open");if(r[0].type!==t.type)if(e)e.call(this,t,r[0]);else{const e=r[1]||nu;e.call(this,t,r[0])}return n.position.end=$c(t.end),n}function h(){return Aa(this.stack.pop())}function d(){A("expectingFirstListItemValue",!0)}function f(t){if(o("expectingFirstListItemValue")){const e=this.stack[this.stack.length-2];e.start=Number.parseInt(this.sliceSerialize(t),10),A("expectingFirstListItemValue")}}function p(){const t=this.resume(),e=this.stack[this.stack.length-1];e.lang=t}function g(){const t=this.resume(),e=this.stack[this.stack.length-1];e.meta=t}function m(){o("flowCodeInside")||(this.buffer(),A("flowCodeInside",!0))}function w(){const t=this.resume(),e=this.stack[this.stack.length-1];e.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),A("flowCodeInside")}function y(){const t=this.resume(),e=this.stack[this.stack.length-1];e.value=t.replace(/(\r?\n|\r)$/g,"")}function v(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=bl(this.sliceSerialize(t)).toLowerCase()}function b(){const t=this.resume(),e=this.stack[this.stack.length-1];e.title=t}function B(){const t=this.resume(),e=this.stack[this.stack.length-1];e.url=t}function C(t){const e=this.stack[this.stack.length-1];if(!e.depth){const n=this.sliceSerialize(t).length;e.depth=n}}function x(){A("setextHeadingSlurpLineEnding",!0)}function _(t){const e=this.stack[this.stack.length-1];e.depth=61===this.sliceSerialize(t).charCodeAt(0)?1:2}function E(){A("setextHeadingSlurpLineEnding")}function F(t){const e=this.stack[this.stack.length-1];let n=e.children[e.children.length-1];n&&"text"===n.type||(n=st(),n.position={start:$c(t.start)},e.children.push(n)),this.stack.push(n)}function L(t){const e=this.stack.pop();e.value+=this.sliceSerialize(t),e.position.end=$c(t.end)}function N(t){const n=this.stack[this.stack.length-1];if(o("atHardBreak")){const e=n.children[n.children.length-1];return e.position.end=$c(t.end),void A("atHardBreak")}!o("setextHeadingSlurpLineEnding")&&e.canContainEols.includes(n.type)&&(F.call(this,t),L.call(this,t))}function S(){A("atHardBreak",!0)}function U(){const t=this.resume(),e=this.stack[this.stack.length-1];e.value=t}function k(){const t=this.resume(),e=this.stack[this.stack.length-1];e.value=t}function Q(){const t=this.resume(),e=this.stack[this.stack.length-1];e.value=t}function I(){const t=this.stack[this.stack.length-1];if(o("inReference")){const e=o("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;A("referenceType")}function T(){const t=this.stack[this.stack.length-1];if(o("inReference")){const e=o("referenceType")||"shortcut";t.type+="Reference",t.referenceType=e,delete t.url,delete t.title}else delete t.identifier,delete t.label;A("referenceType")}function O(t){const e=this.sliceSerialize(t),n=this.stack[this.stack.length-2];n.label=qc(e),n.identifier=bl(e).toLowerCase()}function M(){const t=this.stack[this.stack.length-1],e=this.resume(),n=this.stack[this.stack.length-1];if(A("inReference",!0),"link"===n.type){const e=t.children;n.children=e}else n.alt=e}function D(){const t=this.resume(),e=this.stack[this.stack.length-1];e.url=t}function P(){const t=this.resume(),e=this.stack[this.stack.length-1];e.title=t}function H(){A("inReference")}function R(){A("referenceType","collapsed")}function j(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.label=e,n.identifier=bl(this.sliceSerialize(t)).toLowerCase(),A("referenceType","full")}function z(t){A("characterReferenceType",t.type)}function q(t){const e=this.sliceSerialize(t),n=o("characterReferenceType");let r;if(n)r=jc(e,"characterReferenceMarkerNumeric"===n?10:16),A("characterReferenceType");else{const t=Vl(e);r=t}const i=this.stack.pop();i.value+=r,i.position.end=$c(t.end)}function K(t){L.call(this,t);const e=this.stack[this.stack.length-1];e.url=this.sliceSerialize(t)}function G(t){L.call(this,t);const e=this.stack[this.stack.length-1];e.url="mailto:"+this.sliceSerialize(t)}function V(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function J(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:void 0,children:[]}}function $(){return{type:"break"}}function tt(){return{type:"html",value:""}}function et(){return{type:"image",title:null,url:"",alt:null}}function nt(){return{type:"link",title:null,url:"",children:[]}}function rt(t){return{type:"list",ordered:"listOrdered"===t.type,start:null,spread:t._spread,children:[]}}function it(t){return{type:"listItem",spread:t._spread,checked:null,children:[]}}function At(){return{type:"paragraph",children:[]}}function ot(){return{type:"strong",children:[]}}function st(){return{type:"text",value:""}}function at(){return{type:"thematicBreak"}}}function $c(t){return{line:t.line,column:t.column,offset:t.offset}}function tu(t,e){let n=-1;while(++n<e.length){const r=e[n];Array.isArray(r)?tu(t,r):eu(t,r)}}function eu(t,e){let n;for(n in e)if(Xc.call(e,n))if("canContainEols"===n){const r=e[n];r&&t[n].push(...r)}else if("transforms"===n){const r=e[n];r&&t[n].push(...r)}else if("enter"===n||"exit"===n){const r=e[n];r&&Object.assign(t[n],r)}}function nu(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Gc({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Gc({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Gc({start:e.start,end:e.end})+") is still open")}const ru=t=>{let e=[],n=(t,e)=>{for(let r=0;r<t.length;r++){let i=t[r],A={};if(A.data={text:i.children[0].children[0].value},A.children=[],e.push(A),i.children.length>1)for(let t=1;t<i.children.length;t++){let e=i.children[t];"list"===e.type&&n(e.children,A.children)}}};return n(t.children,e),e},iu=async t=>{const e=Jc(t);let n={children:[]},r=[n.children],i=n.children,A=[-1],o=-1;for(let s=0;s<e.children.length;s++){let t=e.children[s];if("heading"===t.type){if(!t.children[0])continue;let e={};if(e.data={text:t.children[0].value},e.children=[],t.depth>o)i.push(e),r.push(e.children),i=e.children,A.push(t.depth),o=t.depth;else if(t.depth===o)r.pop(),i=r[r.length-1],A.pop(),o=A[A.length-1],i.push(e),r.push(e.children),i=e.children,A.push(t.depth),o=t.depth;else while(A.length)if(r.pop(),i=r[r.length-1],A.pop(),o=A[A.length-1],o<t.depth){i.push(e),r.push(e.children),i=e.children,A.push(t.depth),o=t.depth;break}}else"list"===t.type&&i.push(...ru(t))}return n.children[0]};var Au={transformToMarkdown:Wo,transformMarkdownTo:iu};xo.xmind=ia,xo.markdown=Au,xo.iconList=tA.nodeIconList,xo.usePlugin(Eo).usePlugin(Lo).usePlugin(Zo).usePlugin(So).usePlugin(Qo).usePlugin(Xo).usePlugin(ts).usePlugin(Rs).usePlugin(Xs);var ou=xo;e["default"]=ou},fb24:function(t,e,n){var r=n("09d9"),i=n("10ad");function A(t){var e=r.copyOptions(t);return r.ensureSpacesExists(e),e}t.exports=function(t,e){var n,r,o,s;return n=A(e),r=i(t,n),s="compact"in n&&n.compact?"_parent":"parent",o="addParent"in n&&n.addParent?JSON.stringify(r,(function(t,e){return t===s?"_":e}),n.spaces):JSON.stringify(r,null,n.spaces),o.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}},fd50:function(t,e,n){var r=n("b257"),i=n("5e8c"),A=n("1a33"),o=n("2347"),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&A(e.prototype,s(t))}},fe11:function(t,e,n){var r=n("ec82"),i=n("660c");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},feb8:function(t,e,n){var r=n("5e8c"),i=n("b636"),A=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===A}:function(t){return"object"==typeof t?null!==t:r(t)}}})}));